* gdb.base/annota1.exp: Allow .*printf in backtraces.
[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
771b4502
UW
3065if test "${target}" = "${host}"; then
3066 gdb_native=yes
3067else
3068 gdb_native=no
3069fi
3070
bec39cab
AC
3071. $srcdir/configure.host
3072
3073. $srcdir/configure.tgt
3074
3075# Fetch the default architecture and default target vector from BFD.
3076targ=$target; . $srcdir/../bfd/config.bfd
3077
3078# We only want the first architecture, so strip off the others if
3079# there is more than one.
3080targ_archs=`echo $targ_archs | sed 's/ .*//'`
3081
3082if test "x$targ_archs" != x; then
3083
3084cat >>confdefs.h <<_ACEOF
3085#define DEFAULT_BFD_ARCH $targ_archs
3086_ACEOF
3087
3088fi
3089if test "x$targ_defvec" != x; then
3090
3091cat >>confdefs.h <<_ACEOF
3092#define DEFAULT_BFD_VEC $targ_defvec
3093_ACEOF
3094
3095fi
3096
3097test "$program_prefix" != NONE &&
b4e70030 3098 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
3099# Use a double $ so make ignores it.
3100test "$program_suffix" != NONE &&
b4e70030 3101 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
3102# Double any \ or $. echo might interpret backslashes.
3103# By default was `s,x,x', remove it if useless.
3104cat <<\_ACEOF >conftest.sed
3105s/[\\$]/&&/g;s/;s,x,x,$//
3106_ACEOF
3107program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 3108rm conftest.sed
bec39cab
AC
3109
3110
3111# The CLI cannot be disabled yet, but may be in the future.
3112
3113# Enable CLI.
b4e70030 3114# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 3115if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
3116 enableval="$enable_gdbcli"
3117 case $enableval in
bec39cab
AC
3118 yes)
3119 ;;
3120 no)
3121 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3122echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3123 { (exit 1); exit 1; }; } ;;
3124 *)
3125 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3126echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3127 { (exit 1); exit 1; }; } ;;
3128 esac
3129else
3130 enable_gdbcli=yes
b4e70030 3131fi;
bec39cab
AC
3132if test x"$enable_gdbcli" = xyes; then
3133 if test -d $srcdir/cli; then
3134 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3135 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3136 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3137 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3138 fi
3139fi
3140
3141# Enable MI.
b4e70030 3142# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 3143if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
3144 enableval="$enable_gdbmi"
3145 case $enableval in
bec39cab
AC
3146 yes | no)
3147 ;;
3148 *)
3149 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3150echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3151 { (exit 1); exit 1; }; } ;;
3152 esac
3153else
3154 enable_gdbmi=yes
b4e70030 3155fi;
bec39cab
AC
3156if test x"$enable_gdbmi" = xyes; then
3157 if test -d $srcdir/mi; then
3158 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3159 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3160 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3161 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3162 fi
3163fi
3164
3165# Enable TUI.
b4e70030 3166# Check whether --enable-tui or --disable-tui was given.
bec39cab 3167if test "${enable_tui+set}" = set; then
b4e70030
JB
3168 enableval="$enable_tui"
3169 case $enableval in
bec39cab
AC
3170 yes | no)
3171 ;;
3172 *)
3173 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3174echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3175 { (exit 1); exit 1; }; } ;;
3176 esac
3177else
3178 enable_tui=yes
b4e70030 3179fi;
bec39cab
AC
3180
3181# Enable gdbtk.
b4e70030 3182# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 3183if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
3184 enableval="$enable_gdbtk"
3185 case $enableval in
bec39cab
AC
3186 yes | no)
3187 ;;
3188 *)
3189 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3190echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3191 { (exit 1); exit 1; }; } ;;
3192 esac
3193else
04ac69aa 3194 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
3195 enable_gdbtk=yes
3196 else
3197 enable_gdbtk=no
3198 fi
b4e70030 3199fi;
bec39cab
AC
3200# We unconditionally disable gdbtk tests on selected platforms.
3201case $host_os in
3202 go32* | windows*)
3203 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3204echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3205 enable_gdbtk=no ;;
3206esac
3207
3208# Libunwind support.
20e95c23
DJ
3209echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3210echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3211if test "${ac_cv_header_stdc+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
3214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220#include <stdlib.h>
3221#include <stdarg.h>
3222#include <string.h>
3223#include <float.h>
3224
3225int
3226main ()
3227{
3228
3229 ;
3230 return 0;
3231}
3232_ACEOF
3233rm -f conftest.$ac_objext
3234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_header_stdc=yes
3256else
3257 echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260ac_cv_header_stdc=no
3261fi
3262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263
3264if test $ac_cv_header_stdc = yes; then
3265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3266 cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h. */
3272#include <string.h>
3273
3274_ACEOF
3275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276 $EGREP "memchr" >/dev/null 2>&1; then
3277 :
3278else
3279 ac_cv_header_stdc=no
3280fi
3281rm -f conftest*
3282
3283fi
3284
3285if test $ac_cv_header_stdc = yes; then
3286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3287 cat >conftest.$ac_ext <<_ACEOF
3288/* confdefs.h. */
3289_ACEOF
3290cat confdefs.h >>conftest.$ac_ext
3291cat >>conftest.$ac_ext <<_ACEOF
3292/* end confdefs.h. */
3293#include <stdlib.h>
3294
3295_ACEOF
3296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 $EGREP "free" >/dev/null 2>&1; then
3298 :
3299else
3300 ac_cv_header_stdc=no
3301fi
3302rm -f conftest*
3303
3304fi
3305
3306if test $ac_cv_header_stdc = yes; then
3307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3308 if test "$cross_compiling" = yes; then
3309 :
3310else
3311 cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h. */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h. */
3317#include <ctype.h>
3318#if ((' ' & 0x0FF) == 0x020)
3319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3321#else
3322# define ISLOWER(c) \
3323 (('a' <= (c) && (c) <= 'i') \
3324 || ('j' <= (c) && (c) <= 'r') \
3325 || ('s' <= (c) && (c) <= 'z'))
3326# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3327#endif
3328
3329#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3330int
3331main ()
3332{
3333 int i;
3334 for (i = 0; i < 256; i++)
3335 if (XOR (islower (i), ISLOWER (i))
3336 || toupper (i) != TOUPPER (i))
3337 exit(2);
3338 exit (0);
3339}
3340_ACEOF
3341rm -f conftest$ac_exeext
3342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3343 (eval $ac_link) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 :
3353else
3354 echo "$as_me: program exited with status $ac_status" >&5
3355echo "$as_me: failed program was:" >&5
3356sed 's/^/| /' conftest.$ac_ext >&5
3357
3358( exit $ac_status )
3359ac_cv_header_stdc=no
3360fi
3361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3362fi
3363fi
3364fi
3365echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3366echo "${ECHO_T}$ac_cv_header_stdc" >&6
3367if test $ac_cv_header_stdc = yes; then
3368
3369cat >>confdefs.h <<\_ACEOF
3370#define STDC_HEADERS 1
3371_ACEOF
3372
3373fi
3374
3375# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3386 inttypes.h stdint.h unistd.h
3387do
3388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3389echo "$as_me:$LINENO: checking for $ac_header" >&5
3390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3391if eval "test \"\${$as_ac_Header+set}\" = set"; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394 cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h. */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h. */
3400$ac_includes_default
3401
3402#include <$ac_header>
3403_ACEOF
3404rm -f conftest.$ac_objext
3405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406 (eval $ac_compile) 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try='test -z "$ac_c_werror_flag"
3414 || test ! -s conftest.err'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 (eval $ac_try) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 eval "$as_ac_Header=yes"
3427else
3428 echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431eval "$as_ac_Header=no"
3432fi
3433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434fi
3435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3437if test `eval echo '${'$as_ac_Header'}'` = yes; then
3438 cat >>confdefs.h <<_ACEOF
3439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3440_ACEOF
3441
3442fi
3443
3444done
3445
3446
bec39cab 3447
b4e70030 3448# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3449if test "${with_libunwind+set}" = set; then
b4e70030
JB
3450 withval="$with_libunwind"
3451 case "${withval}" in
bec39cab
AC
3452 yes) enable_libunwind=yes ;;
3453 no) enable_libunwind=no ;;
3454 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3455echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3456 { (exit 1); exit 1; }; } ;;
3457esac
3458else
3459
3460
3461for ac_header in libunwind.h
3462do
3463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3464if eval "test \"\${$as_ac_Header+set}\" = set"; then
3465 echo "$as_me:$LINENO: checking for $ac_header" >&5
3466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3467if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469fi
b4e70030
JB
3470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3472else
3473 # Is the header compilable?
b4e70030
JB
3474echo "$as_me:$LINENO: checking $ac_header usability" >&5
3475echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3476cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
3482$ac_includes_default
3483#include <$ac_header>
3484_ACEOF
3485rm -f conftest.$ac_objext
3486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487 (eval $ac_compile) 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
b4e70030
JB
3494 { ac_try='test -z "$ac_c_werror_flag"
3495 || test ! -s conftest.err'
bec39cab
AC
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest.$ac_objext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 ac_header_compiler=yes
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
b4e70030 3512ac_header_compiler=no
bec39cab
AC
3513fi
3514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3516echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3517
3518# Is the header present?
b4e70030
JB
3519echo "$as_me:$LINENO: checking $ac_header presence" >&5
3520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3521cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h. */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h. */
3527#include <$ac_header>
3528_ACEOF
3529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } >/dev/null; then
3537 if test -s conftest.err; then
3538 ac_cpp_err=$ac_c_preproc_warn_flag
3539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3540 else
3541 ac_cpp_err=
3542 fi
3543else
3544 ac_cpp_err=yes
3545fi
3546if test -z "$ac_cpp_err"; then
3547 ac_header_preproc=yes
3548else
3549 echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 ac_header_preproc=no
3553fi
3554rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3555echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3556echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3557
3558# So? What about this header?
3559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3560 yes:no: )
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3565 ac_header_preproc=yes
3566 ;;
3567 no:yes:* )
3568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3580 (
3581 cat <<\_ASBOX
3582## ------------------------------------------ ##
3583## Report this to the AC_PACKAGE_NAME lists. ##
3584## ------------------------------------------ ##
3585_ASBOX
3586 ) |
3587 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3588 ;;
3589esac
b4e70030
JB
3590echo "$as_me:$LINENO: checking for $ac_header" >&5
3591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3592if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595 eval "$as_ac_Header=\$ac_header_preproc"
3596fi
b4e70030
JB
3597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3599
3600fi
3601if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602 cat >>confdefs.h <<_ACEOF
3603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604_ACEOF
3605
3606fi
3607
3608done
3609
3610
3611for ac_header in libunwind-ia64.h
3612do
3613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3614if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo "$as_me:$LINENO: checking for $ac_header" >&5
3616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3617if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619fi
b4e70030
JB
3620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3622else
3623 # Is the header compilable?
b4e70030
JB
3624echo "$as_me:$LINENO: checking $ac_header usability" >&5
3625echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3626cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632$ac_includes_default
3633#include <$ac_header>
3634_ACEOF
3635rm -f conftest.$ac_objext
3636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
b4e70030
JB
3644 { ac_try='test -z "$ac_c_werror_flag"
3645 || test ! -s conftest.err'
bec39cab
AC
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 ac_header_compiler=yes
3658else
3659 echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
b4e70030 3662ac_header_compiler=no
bec39cab
AC
3663fi
3664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3665echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3666echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3667
3668# Is the header present?
b4e70030
JB
3669echo "$as_me:$LINENO: checking $ac_header presence" >&5
3670echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3671cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h. */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h. */
3677#include <$ac_header>
3678_ACEOF
3679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev/null; then
3687 if test -s conftest.err; then
3688 ac_cpp_err=$ac_c_preproc_warn_flag
3689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3690 else
3691 ac_cpp_err=
3692 fi
3693else
3694 ac_cpp_err=yes
3695fi
3696if test -z "$ac_cpp_err"; then
3697 ac_header_preproc=yes
3698else
3699 echo "$as_me: failed program was:" >&5
3700sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 ac_header_preproc=no
3703fi
3704rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3705echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3706echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3707
3708# So? What about this header?
3709case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3710 yes:no: )
3711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3712echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3714echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3715 ac_header_preproc=yes
3716 ;;
3717 no:yes:* )
3718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3719echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3721echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3723echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3725echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3727echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3729echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3730 (
3731 cat <<\_ASBOX
3732## ------------------------------------------ ##
3733## Report this to the AC_PACKAGE_NAME lists. ##
3734## ------------------------------------------ ##
3735_ASBOX
3736 ) |
3737 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3738 ;;
3739esac
b4e70030
JB
3740echo "$as_me:$LINENO: checking for $ac_header" >&5
3741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3742if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745 eval "$as_ac_Header=\$ac_header_preproc"
3746fi
b4e70030
JB
3747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3749
3750fi
3751if test `eval echo '${'$as_ac_Header'}'` = yes; then
3752 cat >>confdefs.h <<_ACEOF
3753#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3754_ACEOF
3755
3756fi
3757
3758done
3759
3760 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3761 enable_libunwind=yes;
3762 fi
3763
b4e70030 3764fi;
bec39cab
AC
3765
3766if test x"$enable_libunwind" = xyes; then
3767
3768for ac_header in libunwind.h
3769do
3770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3771if eval "test \"\${$as_ac_Header+set}\" = set"; then
3772 echo "$as_me:$LINENO: checking for $ac_header" >&5
3773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3774if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776fi
b4e70030
JB
3777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3779else
3780 # Is the header compilable?
b4e70030
JB
3781echo "$as_me:$LINENO: checking $ac_header usability" >&5
3782echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3783cat >conftest.$ac_ext <<_ACEOF
3784/* confdefs.h. */
3785_ACEOF
3786cat confdefs.h >>conftest.$ac_ext
3787cat >>conftest.$ac_ext <<_ACEOF
3788/* end confdefs.h. */
3789$ac_includes_default
3790#include <$ac_header>
3791_ACEOF
3792rm -f conftest.$ac_objext
3793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
b4e70030
JB
3801 { ac_try='test -z "$ac_c_werror_flag"
3802 || test ! -s conftest.err'
bec39cab
AC
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest.$ac_objext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_header_compiler=yes
3815else
3816 echo "$as_me: failed program was:" >&5
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
b4e70030 3819ac_header_compiler=no
bec39cab
AC
3820fi
3821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3823echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3824
3825# Is the header present?
b4e70030
JB
3826echo "$as_me:$LINENO: checking $ac_header presence" >&5
3827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3828cat >conftest.$ac_ext <<_ACEOF
3829/* confdefs.h. */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
3833/* end confdefs.h. */
3834#include <$ac_header>
3835_ACEOF
3836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } >/dev/null; then
3844 if test -s conftest.err; then
3845 ac_cpp_err=$ac_c_preproc_warn_flag
3846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3847 else
3848 ac_cpp_err=
3849 fi
3850else
3851 ac_cpp_err=yes
3852fi
3853if test -z "$ac_cpp_err"; then
3854 ac_header_preproc=yes
3855else
3856 echo "$as_me: failed program was:" >&5
3857sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 ac_header_preproc=no
3860fi
3861rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3863echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3864
3865# So? What about this header?
3866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3867 yes:no: )
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3871echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3872 ac_header_preproc=yes
3873 ;;
3874 no:yes:* )
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3876echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3878echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3880echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3882echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3884echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3886echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3887 (
3888 cat <<\_ASBOX
3889## ------------------------------------------ ##
3890## Report this to the AC_PACKAGE_NAME lists. ##
3891## ------------------------------------------ ##
3892_ASBOX
3893 ) |
3894 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3895 ;;
3896esac
b4e70030
JB
3897echo "$as_me:$LINENO: checking for $ac_header" >&5
3898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3899if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901else
3902 eval "$as_ac_Header=\$ac_header_preproc"
3903fi
b4e70030
JB
3904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3906
3907fi
3908if test `eval echo '${'$as_ac_Header'}'` = yes; then
3909 cat >>confdefs.h <<_ACEOF
3910#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3911_ACEOF
3912
3913fi
3914
3915done
3916
3917
3918for ac_header in libunwind-ia64.h
3919do
3920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3921if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922 echo "$as_me:$LINENO: checking for $ac_header" >&5
3923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3924if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926fi
b4e70030
JB
3927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3929else
3930 # Is the header compilable?
b4e70030
JB
3931echo "$as_me:$LINENO: checking $ac_header usability" >&5
3932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3933cat >conftest.$ac_ext <<_ACEOF
3934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
3938/* end confdefs.h. */
3939$ac_includes_default
3940#include <$ac_header>
3941_ACEOF
3942rm -f conftest.$ac_objext
3943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3944 (eval $ac_compile) 2>conftest.er1
3945 ac_status=$?
3946 grep -v '^ *+' conftest.er1 >conftest.err
3947 rm -f conftest.er1
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
b4e70030
JB
3951 { ac_try='test -z "$ac_c_werror_flag"
3952 || test ! -s conftest.err'
bec39cab
AC
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; }; then
3964 ac_header_compiler=yes
3965else
3966 echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
b4e70030 3969ac_header_compiler=no
bec39cab
AC
3970fi
3971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3973echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3974
3975# Is the header present?
b4e70030
JB
3976echo "$as_me:$LINENO: checking $ac_header presence" >&5
3977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3978cat >conftest.$ac_ext <<_ACEOF
3979/* confdefs.h. */
3980_ACEOF
3981cat confdefs.h >>conftest.$ac_ext
3982cat >>conftest.$ac_ext <<_ACEOF
3983/* end confdefs.h. */
3984#include <$ac_header>
3985_ACEOF
3986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } >/dev/null; then
3994 if test -s conftest.err; then
3995 ac_cpp_err=$ac_c_preproc_warn_flag
3996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3997 else
3998 ac_cpp_err=
3999 fi
4000else
4001 ac_cpp_err=yes
4002fi
4003if test -z "$ac_cpp_err"; then
4004 ac_header_preproc=yes
4005else
4006 echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 ac_header_preproc=no
4010fi
4011rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4013echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4014
4015# So? What about this header?
4016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4017 yes:no: )
4018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4022 ac_header_preproc=yes
4023 ;;
4024 no:yes:* )
4025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4037 (
4038 cat <<\_ASBOX
4039## ------------------------------------------ ##
4040## Report this to the AC_PACKAGE_NAME lists. ##
4041## ------------------------------------------ ##
4042_ASBOX
4043 ) |
4044 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4045 ;;
4046esac
b4e70030
JB
4047echo "$as_me:$LINENO: checking for $ac_header" >&5
4048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4049if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052 eval "$as_ac_Header=\$ac_header_preproc"
4053fi
b4e70030
JB
4054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4056
4057fi
4058if test `eval echo '${'$as_ac_Header'}'` = yes; then
4059 cat >>confdefs.h <<_ACEOF
4060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061_ACEOF
4062
4063fi
4064
4065done
4066
60ca704f
SE
4067
4068cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4069#define HAVE_LIBUNWIND 1
4070_ACEOF
4071
4072 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4073 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4074 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4075fi
4076
4077# Profiling support.
b4e70030 4078# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4079if test "${enable_profiling+set}" = set; then
b4e70030
JB
4080 enableval="$enable_profiling"
4081 case $enableval in
bec39cab
AC
4082 yes | no)
4083 ;;
4084 *)
4085 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4086echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4087 { (exit 1); exit 1; }; } ;;
4088 esac
4089else
4090 enable_profiling=no
b4e70030 4091fi;
bec39cab
AC
4092
4093
4094
4095for ac_func in monstartup _mcleanup
4096do
4097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4098echo "$as_me:$LINENO: checking for $ac_func" >&5
4099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4100if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103 cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4111#define $ac_func innocuous_$ac_func
4112
4113/* System header to define __stub macros and hopefully few prototypes,
4114 which can conflict with char $ac_func (); below.
4115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4116 <limits.h> exists even on freestanding compilers. */
4117
4118#ifdef __STDC__
4119# include <limits.h>
4120#else
4121# include <assert.h>
4122#endif
4123
4124#undef $ac_func
4125
b4e70030 4126/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4127#ifdef __cplusplus
4128extern "C"
b4e70030 4129{
bec39cab 4130#endif
b4e70030
JB
4131/* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
bec39cab
AC
4133char $ac_func ();
4134/* The GNU C library defines this for functions which it implements
4135 to always fail with ENOSYS. Some functions are actually named
4136 something starting with __ and the normal name is an alias. */
b4e70030 4137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4138choke me
b4e70030
JB
4139#else
4140char (*f) () = $ac_func;
4141#endif
4142#ifdef __cplusplus
4143}
bec39cab
AC
4144#endif
4145
4146int
4147main ()
4148{
b4e70030 4149return f != $ac_func;
bec39cab
AC
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext conftest$ac_exeext
4155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4156 (eval $ac_link) 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
b4e70030
JB
4163 { ac_try='test -z "$ac_c_werror_flag"
4164 || test ! -s conftest.err'
bec39cab
AC
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 eval "$as_ac_var=yes"
4177else
4178 echo "$as_me: failed program was:" >&5
4179sed 's/^/| /' conftest.$ac_ext >&5
4180
b4e70030 4181eval "$as_ac_var=no"
bec39cab
AC
4182fi
4183rm -f conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4185fi
b4e70030
JB
4186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4187echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4188if test `eval echo '${'$as_ac_var'}'` = yes; then
4189 cat >>confdefs.h <<_ACEOF
4190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4191_ACEOF
4192
4193fi
4194done
4195
b4e70030
JB
4196echo "$as_me:$LINENO: checking for _etext" >&5
4197echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4198if test "${ac_cv_var__etext+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207#include <stdlib.h>
4208extern char _etext;
4209
4210int
4211main ()
4212{
4213free (&_etext);
4214 ;
4215 return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext conftest$ac_exeext
4219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220 (eval $ac_link) 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
b4e70030
JB
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
bec39cab
AC
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest$ac_exeext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_cv_var__etext=yes
4241else
4242 echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
b4e70030 4245ac_cv_var__etext=no
bec39cab
AC
4246fi
4247rm -f conftest.err conftest.$ac_objext \
4248 conftest$ac_exeext conftest.$ac_ext
4249fi
b4e70030
JB
4250echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4251echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4252if test $ac_cv_var__etext = yes; then
4253
4254cat >>confdefs.h <<\_ACEOF
4255#define HAVE__ETEXT 1
4256_ACEOF
4257
4258fi
4259if test "$enable_profiling" = yes ; then
4260 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4261 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4262echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4263 { (exit 1); exit 1; }; }
4264 fi
4265 PROFILE_CFLAGS=-pg
4266 OLD_CFLAGS="$CFLAGS"
4267 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4268
b4e70030
JB
4269 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4270echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4271if test "${ac_cv_cc_supports_pg+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4273else
bec39cab
AC
4274 cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h. */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h. */
4280
4281int
4282main ()
4283{
4284int x;
4285 ;
4286 return 0;
4287}
4288_ACEOF
4289rm -f conftest.$ac_objext
4290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
b4e70030
JB
4298 { ac_try='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
bec39cab
AC
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_cv_cc_supports_pg=yes
4312else
4313 echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
b4e70030 4316ac_cv_cc_supports_pg=no
bec39cab
AC
4317fi
4318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319fi
b4e70030
JB
4320echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4321echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4322
4323 if test $ac_cv_cc_supports_pg = no; then
4324 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4325echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4326 { (exit 1); exit 1; }; }
4327 fi
4328
4329 CFLAGS="$OLD_CFLAGS"
4330fi
4331
4332# --------------------- #
4333# Checks for programs. #
4334# --------------------- #
4335
4336for ac_prog in gawk mawk nawk awk
4337do
4338 # Extract the first word of "$ac_prog", so it can be a program name with args.
4339set dummy $ac_prog; ac_word=$2
b4e70030
JB
4340echo "$as_me:$LINENO: checking for $ac_word" >&5
4341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4342if test "${ac_cv_prog_AWK+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345 if test -n "$AWK"; then
4346 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4347else
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4355 ac_cv_prog_AWK="$ac_prog"
4356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359done
4360done
4361
4362fi
4363fi
4364AWK=$ac_cv_prog_AWK
4365if test -n "$AWK"; then
b4e70030
JB
4366 echo "$as_me:$LINENO: result: $AWK" >&5
4367echo "${ECHO_T}$AWK" >&6
bec39cab 4368else
b4e70030
JB
4369 echo "$as_me:$LINENO: result: no" >&5
4370echo "${ECHO_T}no" >&6
bec39cab
AC
4371fi
4372
4373 test -n "$AWK" && break
4374done
4375
4376# Find a good install program. We prefer a C program (faster),
4377# so one script is as good as another. But avoid the broken or
4378# incompatible versions:
4379# SysV /etc/install, /usr/sbin/install
4380# SunOS /usr/etc/install
4381# IRIX /sbin/install
4382# AIX /bin/install
4383# AmigaOS /C/install, which installs bootblocks on floppy discs
4384# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4385# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4386# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4387# OS/2's system install, which has a completely different semantic
4388# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4389echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4390echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4391if test -z "$INSTALL"; then
4392if test "${ac_cv_path_install+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 # Account for people who put trailing slashes in PATH elements.
4401case $as_dir/ in
4402 ./ | .// | /cC/* | \
4403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4404 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4405 /usr/ucb/* ) ;;
c906108c 4406 *)
bec39cab
AC
4407 # OSF1 and SCO ODT 3.0 have their own names for install.
4408 # Don't use installbsd from OSF since it installs stuff as root
4409 # by default.
4410 for ac_prog in ginstall scoinst install; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4412 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4413 if test $ac_prog = install &&
4414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4415 # AIX install. It has an incompatible calling convention.
4416 :
4417 elif test $ac_prog = install &&
4418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4419 # program-specific install script used by HP pwplus--don't use.
4420 :
4421 else
4422 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4423 break 3
4424 fi
4425 fi
4426 done
4427 done
4428 ;;
c906108c 4429esac
bec39cab
AC
4430done
4431
4432
4433fi
4434 if test "${ac_cv_path_install+set}" = set; then
4435 INSTALL=$ac_cv_path_install
4436 else
b4e70030
JB
4437 # As a last resort, use the slow shell script. We don't cache a
4438 # path for INSTALL within a source directory, because that will
bec39cab 4439 # break other packages using the cache if that directory is
b4e70030 4440 # removed, or if the path is relative.
bec39cab
AC
4441 INSTALL=$ac_install_sh
4442 fi
4443fi
b4e70030
JB
4444echo "$as_me:$LINENO: result: $INSTALL" >&5
4445echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4446
4447# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4448# It thinks the first close brace ends the variable substitution.
4449test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4450
4451test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4452
4453test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4454
b4e70030
JB
4455echo "$as_me:$LINENO: checking whether ln -s works" >&5
4456echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4457LN_S=$as_ln_s
4458if test "$LN_S" = "ln -s"; then
b4e70030
JB
4459 echo "$as_me:$LINENO: result: yes" >&5
4460echo "${ECHO_T}yes" >&6
bec39cab 4461else
b4e70030
JB
4462 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4463echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4464fi
4465
4466if test -n "$ac_tool_prefix"; then
4467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4468set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4469echo "$as_me:$LINENO: checking for $ac_word" >&5
4470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4471if test "${ac_cv_prog_RANLIB+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474 if test -n "$RANLIB"; then
4475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4476else
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4487 fi
4488done
4489done
4490
4491fi
4492fi
4493RANLIB=$ac_cv_prog_RANLIB
4494if test -n "$RANLIB"; then
b4e70030
JB
4495 echo "$as_me:$LINENO: result: $RANLIB" >&5
4496echo "${ECHO_T}$RANLIB" >&6
bec39cab 4497else
b4e70030
JB
4498 echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
bec39cab
AC
4500fi
4501
4502fi
4503if test -z "$ac_cv_prog_RANLIB"; then
4504 ac_ct_RANLIB=$RANLIB
4505 # Extract the first word of "ranlib", so it can be a program name with args.
4506set dummy ranlib; ac_word=$2
b4e70030
JB
4507echo "$as_me:$LINENO: checking for $ac_word" >&5
4508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4509if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512 if test -n "$ac_ct_RANLIB"; then
4513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4514else
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4522 ac_cv_prog_ac_ct_RANLIB="ranlib"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526done
4527done
4528
b4e70030 4529 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4530fi
4531fi
4532ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4533if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4534 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4535echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4536else
b4e70030
JB
4537 echo "$as_me:$LINENO: result: no" >&5
4538echo "${ECHO_T}no" >&6
bec39cab
AC
4539fi
4540
b4e70030 4541 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4542else
4543 RANLIB="$ac_cv_prog_RANLIB"
4544fi
4545
4546for ac_prog in 'bison -y' byacc
4547do
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549set dummy $ac_prog; ac_word=$2
b4e70030
JB
4550echo "$as_me:$LINENO: checking for $ac_word" >&5
4551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4552if test "${ac_cv_prog_YACC+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555 if test -n "$YACC"; then
4556 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4565 ac_cv_prog_YACC="$ac_prog"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569done
4570done
4571
4572fi
4573fi
4574YACC=$ac_cv_prog_YACC
4575if test -n "$YACC"; then
b4e70030
JB
4576 echo "$as_me:$LINENO: result: $YACC" >&5
4577echo "${ECHO_T}$YACC" >&6
bec39cab 4578else
b4e70030
JB
4579 echo "$as_me:$LINENO: result: no" >&5
4580echo "${ECHO_T}no" >&6
bec39cab
AC
4581fi
4582
4583 test -n "$YACC" && break
4584done
4585test -n "$YACC" || YACC="yacc"
4586
4587
4588if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4590set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4591echo "$as_me:$LINENO: checking for $ac_word" >&5
4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4593if test "${ac_cv_prog_AR+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596 if test -n "$AR"; then
4597 ac_cv_prog_AR="$AR" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4606 ac_cv_prog_AR="${ac_tool_prefix}ar"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610done
4611done
4612
4613fi
4614fi
4615AR=$ac_cv_prog_AR
4616if test -n "$AR"; then
b4e70030
JB
4617 echo "$as_me:$LINENO: result: $AR" >&5
4618echo "${ECHO_T}$AR" >&6
bec39cab 4619else
b4e70030
JB
4620 echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6
bec39cab
AC
4622fi
4623
4624fi
4625if test -z "$ac_cv_prog_AR"; then
4626 ac_ct_AR=$AR
4627 # Extract the first word of "ar", so it can be a program name with args.
4628set dummy ar; ac_word=$2
b4e70030
JB
4629echo "$as_me:$LINENO: checking for $ac_word" >&5
4630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4631if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634 if test -n "$ac_ct_AR"; then
4635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4636else
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4644 ac_cv_prog_ac_ct_AR="ar"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4647 fi
4648done
4649done
4650
4651fi
4652fi
4653ac_ct_AR=$ac_cv_prog_ac_ct_AR
4654if test -n "$ac_ct_AR"; then
b4e70030
JB
4655 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4656echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4657else
b4e70030
JB
4658 echo "$as_me:$LINENO: result: no" >&5
4659echo "${ECHO_T}no" >&6
bec39cab
AC
4660fi
4661
b4e70030 4662 AR=$ac_ct_AR
bec39cab
AC
4663else
4664 AR="$ac_cv_prog_AR"
4665fi
4666
4667if test -n "$ac_tool_prefix"; then
4668 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4669set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4670echo "$as_me:$LINENO: checking for $ac_word" >&5
4671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4672if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675 if test -n "$DLLTOOL"; then
4676 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4677else
4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4685 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689done
4690done
4691
4692fi
4693fi
4694DLLTOOL=$ac_cv_prog_DLLTOOL
4695if test -n "$DLLTOOL"; then
b4e70030
JB
4696 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4697echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4698else
b4e70030
JB
4699 echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6
bec39cab
AC
4701fi
4702
4703fi
4704if test -z "$ac_cv_prog_DLLTOOL"; then
4705 ac_ct_DLLTOOL=$DLLTOOL
4706 # Extract the first word of "dlltool", so it can be a program name with args.
4707set dummy dlltool; ac_word=$2
b4e70030
JB
4708echo "$as_me:$LINENO: checking for $ac_word" >&5
4709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4710if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713 if test -n "$ac_ct_DLLTOOL"; then
4714 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4723 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727done
4728done
4729
4730fi
4731fi
4732ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4733if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4734 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4735echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4736else
b4e70030
JB
4737 echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6
bec39cab
AC
4739fi
4740
b4e70030 4741 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4742else
4743 DLLTOOL="$ac_cv_prog_DLLTOOL"
4744fi
4745
4746if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4748set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4749echo "$as_me:$LINENO: checking for $ac_word" >&5
4750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4751if test "${ac_cv_prog_WINDRES+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754 if test -n "$WINDRES"; then
4755 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4764 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768done
4769done
4770
4771fi
4772fi
4773WINDRES=$ac_cv_prog_WINDRES
4774if test -n "$WINDRES"; then
b4e70030
JB
4775 echo "$as_me:$LINENO: result: $WINDRES" >&5
4776echo "${ECHO_T}$WINDRES" >&6
bec39cab 4777else
b4e70030
JB
4778 echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6
bec39cab
AC
4780fi
4781
4782fi
4783if test -z "$ac_cv_prog_WINDRES"; then
4784 ac_ct_WINDRES=$WINDRES
4785 # Extract the first word of "windres", so it can be a program name with args.
4786set dummy windres; ac_word=$2
b4e70030
JB
4787echo "$as_me:$LINENO: checking for $ac_word" >&5
4788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4789if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792 if test -n "$ac_ct_WINDRES"; then
4793 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4794else
4795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4802 ac_cv_prog_ac_ct_WINDRES="windres"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4805 fi
4806done
4807done
4808
4809fi
4810fi
4811ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4812if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4813 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4814echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4815else
b4e70030
JB
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
c906108c 4818fi
bec39cab 4819
b4e70030 4820 WINDRES=$ac_ct_WINDRES
c906108c 4821else
bec39cab 4822 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4823fi
4824
bec39cab
AC
4825
4826# Needed for GNU/Hurd.
4827if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4829set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4830echo "$as_me:$LINENO: checking for $ac_word" >&5
4831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4832if test "${ac_cv_prog_MIG+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4834else
bec39cab
AC
4835 if test -n "$MIG"; then
4836 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4837else
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4845 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4848 fi
4849done
4850done
4851
c906108c 4852fi
bec39cab
AC
4853fi
4854MIG=$ac_cv_prog_MIG
4855if test -n "$MIG"; then
b4e70030
JB
4856 echo "$as_me:$LINENO: result: $MIG" >&5
4857echo "${ECHO_T}$MIG" >&6
c906108c 4858else
b4e70030
JB
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
c906108c
SS
4861fi
4862
bec39cab
AC
4863fi
4864if test -z "$ac_cv_prog_MIG"; then
4865 ac_ct_MIG=$MIG
4866 # Extract the first word of "mig", so it can be a program name with args.
4867set dummy mig; ac_word=$2
b4e70030
JB
4868echo "$as_me:$LINENO: checking for $ac_word" >&5
4869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4870if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872else
4873 if test -n "$ac_ct_MIG"; then
4874 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4883 ac_cv_prog_ac_ct_MIG="mig"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887done
4888done
c906108c 4889
bec39cab
AC
4890fi
4891fi
4892ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4893if test -n "$ac_ct_MIG"; then
b4e70030
JB
4894 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4895echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4896else
b4e70030
JB
4897 echo "$as_me:$LINENO: result: no" >&5
4898echo "${ECHO_T}no" >&6
bec39cab 4899fi
c906108c 4900
b4e70030 4901 MIG=$ac_ct_MIG
bec39cab
AC
4902else
4903 MIG="$ac_cv_prog_MIG"
4904fi
c906108c 4905
c906108c 4906
bec39cab
AC
4907# ---------------------- #
4908# Checks for libraries. #
4909# ---------------------- #
c906108c 4910
bec39cab 4911# We might need to link with -lm; most simulators need it.
c906108c 4912
b4e70030
JB
4913echo "$as_me:$LINENO: checking for main in -lm" >&5
4914echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
4915if test "${ac_cv_lib_m_main+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918 ac_check_lib_save_LIBS=$LIBS
4919LIBS="-lm $LIBS"
4920cat >conftest.$ac_ext <<_ACEOF
4921/* confdefs.h. */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h. */
c906108c 4926
c906108c 4927
bec39cab
AC
4928int
4929main ()
4930{
b4e70030 4931main ();
bec39cab
AC
4932 ;
4933 return 0;
4934}
4935_ACEOF
4936rm -f conftest.$ac_objext conftest$ac_exeext
4937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
b4e70030
JB
4945 { ac_try='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
bec39cab
AC
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 ac_cv_lib_m_main=yes
4959else
4960 echo "$as_me: failed program was:" >&5
4961sed 's/^/| /' conftest.$ac_ext >&5
4962
b4e70030 4963ac_cv_lib_m_main=no
bec39cab
AC
4964fi
4965rm -f conftest.err conftest.$ac_objext \
4966 conftest$ac_exeext conftest.$ac_ext
4967LIBS=$ac_check_lib_save_LIBS
4968fi
b4e70030
JB
4969echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4970echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
4971if test $ac_cv_lib_m_main = yes; then
4972 cat >>confdefs.h <<_ACEOF
4973#define HAVE_LIBM 1
4974_ACEOF
4975
4976 LIBS="-lm $LIBS"
c906108c 4977
c906108c 4978fi
bec39cab
AC
4979
4980
4981# We need to link with -lw to get `wctype' on Solaris before Solaris
4982# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
4983# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
4984# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
4985echo "$as_me:$LINENO: checking for wctype" >&5
4986echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
4987if test "${ac_cv_func_wctype+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990 cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h. */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h. */
4996/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
4997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4998#define wctype innocuous_wctype
4999
5000/* System header to define __stub macros and hopefully few prototypes,
5001 which can conflict with char wctype (); below.
5002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003 <limits.h> exists even on freestanding compilers. */
5004
5005#ifdef __STDC__
5006# include <limits.h>
5007#else
5008# include <assert.h>
5009#endif
5010
5011#undef wctype
5012
b4e70030 5013/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5014#ifdef __cplusplus
5015extern "C"
b4e70030 5016{
bec39cab 5017#endif
b4e70030
JB
5018/* We use char because int might match the return type of a gcc2
5019 builtin and then its argument prototype would still apply. */
bec39cab
AC
5020char wctype ();
5021/* The GNU C library defines this for functions which it implements
5022 to always fail with ENOSYS. Some functions are actually named
5023 something starting with __ and the normal name is an alias. */
b4e70030 5024#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5025choke me
b4e70030
JB
5026#else
5027char (*f) () = wctype;
5028#endif
5029#ifdef __cplusplus
5030}
bec39cab
AC
5031#endif
5032
5033int
5034main ()
5035{
b4e70030 5036return f != wctype;
bec39cab
AC
5037 ;
5038 return 0;
5039}
5040_ACEOF
5041rm -f conftest.$ac_objext conftest$ac_exeext
5042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043 (eval $ac_link) 2>conftest.er1
5044 ac_status=$?
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
b4e70030
JB
5050 { ac_try='test -z "$ac_c_werror_flag"
5051 || test ! -s conftest.err'
bec39cab
AC
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; } &&
5057 { ac_try='test -s conftest$ac_exeext'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 (eval $ac_try) 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_func_wctype=yes
5064else
5065 echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
b4e70030 5068ac_cv_func_wctype=no
bec39cab
AC
5069fi
5070rm -f conftest.err conftest.$ac_objext \
5071 conftest$ac_exeext conftest.$ac_ext
5072fi
b4e70030
JB
5073echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5074echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5075if test $ac_cv_func_wctype = yes; then
5076 :
c906108c 5077else
c906108c 5078
b4e70030
JB
5079echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5080echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5081if test "${ac_cv_lib_w_wctype+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084 ac_check_lib_save_LIBS=$LIBS
5085LIBS="-lw $LIBS"
5086cat >conftest.$ac_ext <<_ACEOF
5087/* confdefs.h. */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h. */
c906108c 5092
b4e70030 5093/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5094#ifdef __cplusplus
5095extern "C"
5096#endif
b4e70030
JB
5097/* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */
bec39cab
AC
5099char wctype ();
5100int
5101main ()
5102{
b4e70030 5103wctype ();
bec39cab
AC
5104 ;
5105 return 0;
5106}
5107_ACEOF
5108rm -f conftest.$ac_objext conftest$ac_exeext
5109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
b4e70030
JB
5117 { ac_try='test -z "$ac_c_werror_flag"
5118 || test ! -s conftest.err'
bec39cab
AC
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest$ac_exeext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_lib_w_wctype=yes
5131else
5132 echo "$as_me: failed program was:" >&5
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
b4e70030 5135ac_cv_lib_w_wctype=no
bec39cab
AC
5136fi
5137rm -f conftest.err conftest.$ac_objext \
5138 conftest$ac_exeext conftest.$ac_ext
5139LIBS=$ac_check_lib_save_LIBS
5140fi
b4e70030
JB
5141echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5142echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5143if test $ac_cv_lib_w_wctype = yes; then
5144 cat >>confdefs.h <<_ACEOF
5145#define HAVE_LIBW 1
5146_ACEOF
c906108c 5147
bec39cab 5148 LIBS="-lw $LIBS"
c906108c 5149
bec39cab 5150fi
c906108c 5151
bec39cab 5152fi
c906108c 5153
ddc9cd0f 5154
bec39cab 5155# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5156echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5157echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5158if test "${ac_cv_search_gethostbyname+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161 ac_func_search_save_LIBS=$LIBS
b4e70030 5162ac_cv_search_gethostbyname=no
bec39cab
AC
5163cat >conftest.$ac_ext <<_ACEOF
5164/* confdefs.h. */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>conftest.$ac_ext <<_ACEOF
5168/* end confdefs.h. */
ddc9cd0f 5169
b4e70030 5170/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5171#ifdef __cplusplus
5172extern "C"
5173#endif
b4e70030
JB
5174/* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
bec39cab
AC
5176char gethostbyname ();
5177int
5178main ()
5179{
b4e70030 5180gethostbyname ();
bec39cab
AC
5181 ;
5182 return 0;
5183}
5184_ACEOF
b4e70030 5185rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187 (eval $ac_link) 2>conftest.er1
5188 ac_status=$?
5189 grep -v '^ *+' conftest.er1 >conftest.err
5190 rm -f conftest.er1
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
b4e70030
JB
5194 { ac_try='test -z "$ac_c_werror_flag"
5195 || test ! -s conftest.err'
bec39cab
AC
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; } &&
5201 { ac_try='test -s conftest$ac_exeext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
b4e70030 5207 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5208else
5209 echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5211
bec39cab
AC
5212fi
5213rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5214 conftest$ac_exeext conftest.$ac_ext
5215if test "$ac_cv_search_gethostbyname" = no; then
5216 for ac_lib in nsl; do
5217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5218 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5219/* confdefs.h. */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h. */
ddc9cd0f 5224
b4e70030 5225/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5226#ifdef __cplusplus
5227extern "C"
5228#endif
b4e70030
JB
5229/* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5231char gethostbyname ();
bec39cab
AC
5232int
5233main ()
5234{
b4e70030 5235gethostbyname ();
bec39cab
AC
5236 ;
5237 return 0;
5238}
5239_ACEOF
b4e70030 5240rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
b4e70030
JB
5249 { ac_try='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
bec39cab
AC
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
b4e70030
JB
5262 ac_cv_search_gethostbyname="-l$ac_lib"
5263break
bec39cab
AC
5264else
5265 echo "$as_me: failed program was:" >&5
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
5268fi
5269rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5270 conftest$ac_exeext conftest.$ac_ext
5271 done
bec39cab
AC
5272fi
5273LIBS=$ac_func_search_save_LIBS
5274fi
b4e70030
JB
5275echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5276echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5277if test "$ac_cv_search_gethostbyname" != no; then
5278 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5279
bec39cab 5280fi
96baa820 5281
c906108c 5282
b4e70030
JB
5283# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5284echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5285echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5286if test "${ac_cv_search_socketpair+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
5289 ac_func_search_save_LIBS=$LIBS
5290ac_cv_search_socketpair=no
5291cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297
5298/* Override any gcc2 internal prototype to avoid an error. */
5299#ifdef __cplusplus
5300extern "C"
5301#endif
5302/* We use char because int might match the return type of a gcc2
5303 builtin and then its argument prototype would still apply. */
5304char socketpair ();
5305int
5306main ()
5307{
5308socketpair ();
5309 ;
5310 return 0;
5311}
5312_ACEOF
5313rm -f conftest.$ac_objext conftest$ac_exeext
5314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>conftest.er1
5316 ac_status=$?
5317 grep -v '^ *+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try='test -z "$ac_c_werror_flag"
5323 || test ! -s conftest.err'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; } &&
5329 { ac_try='test -s conftest$ac_exeext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 (eval $ac_try) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_cv_search_socketpair="none required"
5336else
5337 echo "$as_me: failed program was:" >&5
5338sed 's/^/| /' conftest.$ac_ext >&5
5339
5340fi
5341rm -f conftest.err conftest.$ac_objext \
5342 conftest$ac_exeext conftest.$ac_ext
5343if test "$ac_cv_search_socketpair" = no; then
5344 for ac_lib in socket; do
5345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5346 cat >conftest.$ac_ext <<_ACEOF
5347/* confdefs.h. */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h. */
5352
5353/* Override any gcc2 internal prototype to avoid an error. */
5354#ifdef __cplusplus
5355extern "C"
5356#endif
5357/* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */
5359char socketpair ();
5360int
5361main ()
5362{
5363socketpair ();
5364 ;
5365 return 0;
5366}
5367_ACEOF
5368rm -f conftest.$ac_objext conftest$ac_exeext
5369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_c_werror_flag"
5378 || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest$ac_exeext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_cv_search_socketpair="-l$ac_lib"
5391break
5392else
5393 echo "$as_me: failed program was:" >&5
5394sed 's/^/| /' conftest.$ac_ext >&5
5395
5396fi
5397rm -f conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
5399 done
5400fi
5401LIBS=$ac_func_search_save_LIBS
5402fi
5403echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5404echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5405if test "$ac_cv_search_socketpair" != no; then
5406 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5407
5408fi
5409
5410
5411# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5412#
5413# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5414# curses library because the latter might not provide all the
5415# functionality we need. However, this leads to problems on systems
5416# where the linker searches /usr/local/lib, but the compiler doesn't
5417# search /usr/local/include, if ncurses is installed in /usr/local. A
5418# default installation of ncurses on alpha*-dec-osf* will lead to such
5419# a situation.
b4e70030
JB
5420echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5421echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5422if test "${ac_cv_search_waddstr+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425 ac_func_search_save_LIBS=$LIBS
b4e70030 5426ac_cv_search_waddstr=no
bec39cab
AC
5427cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
c906108c 5433
b4e70030 5434/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5435#ifdef __cplusplus
5436extern "C"
5437#endif
b4e70030
JB
5438/* We use char because int might match the return type of a gcc2
5439 builtin and then its argument prototype would still apply. */
bec39cab
AC
5440char waddstr ();
5441int
5442main ()
5443{
b4e70030 5444waddstr ();
bec39cab
AC
5445 ;
5446 return 0;
5447}
5448_ACEOF
b4e70030 5449rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5451 (eval $ac_link) 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
b4e70030
JB
5458 { ac_try='test -z "$ac_c_werror_flag"
5459 || test ! -s conftest.err'
bec39cab
AC
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try='test -s conftest$ac_exeext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
b4e70030 5471 ac_cv_search_waddstr="none required"
bec39cab
AC
5472else
5473 echo "$as_me: failed program was:" >&5
5474sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5475
5476fi
bec39cab 5477rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5478 conftest$ac_exeext conftest.$ac_ext
5479if test "$ac_cv_search_waddstr" = no; then
5480 for ac_lib in ncurses cursesX curses; do
5481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5482 cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h. */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h. */
5488
5489/* Override any gcc2 internal prototype to avoid an error. */
5490#ifdef __cplusplus
5491extern "C"
5492#endif
5493/* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5495char waddstr ();
5496int
5497main ()
5498{
5499waddstr ();
5500 ;
5501 return 0;
5502}
5503_ACEOF
5504rm -f conftest.$ac_objext conftest$ac_exeext
5505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506 (eval $ac_link) 2>conftest.er1
5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } &&
5513 { ac_try='test -z "$ac_c_werror_flag"
5514 || test ! -s conftest.err'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 (eval $ac_try) 2>&5
5517 ac_status=$?
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; } &&
5520 { ac_try='test -s conftest$ac_exeext'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 (eval $ac_try) 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
5526 ac_cv_search_waddstr="-l$ac_lib"
5527break
4e8d927d 5528else
b4e70030
JB
5529 echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
5532fi
5533rm -f conftest.err conftest.$ac_objext \
5534 conftest$ac_exeext conftest.$ac_ext
5535 done
1ba607ad 5536fi
bec39cab
AC
5537LIBS=$ac_func_search_save_LIBS
5538fi
b4e70030
JB
5539echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5540echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5541if test "$ac_cv_search_waddstr" != no; then
5542 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5543
8bb2c122 5544fi
8bb2c122 5545
8bb2c122 5546
bec39cab
AC
5547# Since GDB uses Readline, we need termcap functionality. In many
5548# cases this will be provided by the curses library, but some systems
5549# have a seperate termcap library, or no curses library at all.
8bb2c122 5550
bec39cab
AC
5551case $host_os in
5552 cygwin*)
5553 if test -d $srcdir/libtermcap; then
5554 LIBS="../libtermcap/libtermcap.a $LIBS"
5555 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5556 fi ;;
5557 go32* | *djgpp*)
5558 ac_cv_search_tgetent="none required"
5559 ;;
7ef34f2c
MM
5560 *mingw32*)
5561 ac_cv_search_tgetent="none required"
5562 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5563 ;;
bec39cab 5564esac
627af7ea 5565
bec39cab 5566# These are the libraries checked by Readline.
b4e70030
JB
5567echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5568echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5569if test "${ac_cv_search_tgetent+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572 ac_func_search_save_LIBS=$LIBS
b4e70030 5573ac_cv_search_tgetent=no
bec39cab
AC
5574cat >conftest.$ac_ext <<_ACEOF
5575/* confdefs.h. */
5576_ACEOF
5577cat confdefs.h >>conftest.$ac_ext
5578cat >>conftest.$ac_ext <<_ACEOF
5579/* end confdefs.h. */
5580
b4e70030 5581/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5582#ifdef __cplusplus
5583extern "C"
5584#endif
b4e70030
JB
5585/* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
bec39cab
AC
5587char tgetent ();
5588int
5589main ()
5590{
b4e70030 5591tgetent ();
bec39cab
AC
5592 ;
5593 return 0;
5594}
5595_ACEOF
b4e70030 5596rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
b4e70030
JB
5605 { ac_try='test -z "$ac_c_werror_flag"
5606 || test ! -s conftest.err'
bec39cab
AC
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest$ac_exeext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 (eval $ac_try) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
b4e70030 5618 ac_cv_search_tgetent="none required"
627af7ea 5619else
bec39cab
AC
5620 echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5622
627af7ea 5623fi
bec39cab 5624rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5625 conftest$ac_exeext conftest.$ac_ext
5626if test "$ac_cv_search_tgetent" = no; then
5627 for ac_lib in termcap tinfo curses ncurses; do
5628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5629 cat >conftest.$ac_ext <<_ACEOF
5630/* confdefs.h. */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h. */
5635
5636/* Override any gcc2 internal prototype to avoid an error. */
5637#ifdef __cplusplus
5638extern "C"
5639#endif
5640/* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5642char tgetent ();
5643int
5644main ()
5645{
5646tgetent ();
5647 ;
5648 return 0;
5649}
5650_ACEOF
5651rm -f conftest.$ac_objext conftest$ac_exeext
5652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_search_tgetent="-l$ac_lib"
5674break
4e8d927d 5675else
b4e70030
JB
5676 echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
5679fi
5680rm -f conftest.err conftest.$ac_objext \
5681 conftest$ac_exeext conftest.$ac_ext
5682 done
bec39cab
AC
5683fi
5684LIBS=$ac_func_search_save_LIBS
5685fi
b4e70030
JB
5686echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5687echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5688if test "$ac_cv_search_tgetent" != no; then
5689 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5690
06825bd1
MK
5691fi
5692
06825bd1 5693
bec39cab
AC
5694if test "$ac_cv_search_tgetent" = no; then
5695 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5696echo "$as_me: error: no termcap library found" >&2;}
5697 { (exit 1); exit 1; }; }
8ee53726
MK
5698fi
5699
3841debe
DJ
5700
5701 if test "X$prefix" = "XNONE"; then
5702 acl_final_prefix="$ac_default_prefix"
5703 else
5704 acl_final_prefix="$prefix"
5705 fi
5706 if test "X$exec_prefix" = "XNONE"; then
5707 acl_final_exec_prefix='${prefix}'
5708 else
5709 acl_final_exec_prefix="$exec_prefix"
5710 fi
5711 acl_save_prefix="$prefix"
5712 prefix="$acl_final_prefix"
5713 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5714 prefix="$acl_save_prefix"
5715
5716
5717# Check whether --with-gnu-ld or --without-gnu-ld was given.
5718if test "${with_gnu_ld+set}" = set; then
5719 withval="$with_gnu_ld"
5720 test "$withval" = no || with_gnu_ld=yes
5721else
5722 with_gnu_ld=no
5723fi;
5724# Prepare PATH_SEPARATOR.
5725# The user is always right.
5726if test "${PATH_SEPARATOR+set}" != set; then
5727 echo "#! /bin/sh" >conf$$.sh
5728 echo "exit 0" >>conf$$.sh
5729 chmod +x conf$$.sh
5730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5731 PATH_SEPARATOR=';'
5732 else
5733 PATH_SEPARATOR=:
5734 fi
5735 rm -f conf$$.sh
5736fi
5737ac_prog=ld
5738if test "$GCC" = yes; then
5739 # Check if gcc -print-prog-name=ld gives a path.
5740 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5741echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5742 case $host in
5743 *-*-mingw*)
5744 # gcc leaves a trailing carriage return which upsets mingw
5745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5746 *)
5747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5748 esac
5749 case $ac_prog in
5750 # Accept absolute paths.
5751 [\\/]* | [A-Za-z]:[\\/]*)
5752 re_direlt='/[^/][^/]*/\.\./'
5753 # Canonicalize the path of ld
5754 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5755 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5756 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5757 done
5758 test -z "$LD" && LD="$ac_prog"
5759 ;;
5760 "")
5761 # If it fails, then pretend we aren't using GCC.
5762 ac_prog=ld
5763 ;;
5764 *)
5765 # If it is relative, then search for the first ld in PATH.
5766 with_gnu_ld=unknown
5767 ;;
5768 esac
5769elif test "$with_gnu_ld" = yes; then
5770 echo "$as_me:$LINENO: checking for GNU ld" >&5
5771echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5772else
5773 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5774echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5775fi
5776if test "${acl_cv_path_LD+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779 if test -z "$LD"; then
5780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5781 for ac_dir in $PATH; do
5782 test -z "$ac_dir" && ac_dir=.
5783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5784 acl_cv_path_LD="$ac_dir/$ac_prog"
5785 # Check to see if the program is GNU ld. I'd rather use --version,
5786 # but apparently some GNU ld's only accept -v.
5787 # Break only if it was the GNU/non-GNU ld that we prefer.
5788 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5789 test "$with_gnu_ld" != no && break
5790 else
5791 test "$with_gnu_ld" != yes && break
5792 fi
5793 fi
5794 done
5795 IFS="$ac_save_ifs"
5796else
5797 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5798fi
5799fi
5800
5801LD="$acl_cv_path_LD"
5802if test -n "$LD"; then
5803 echo "$as_me:$LINENO: result: $LD" >&5
5804echo "${ECHO_T}$LD" >&6
5805else
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808fi
5809test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5810echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5811 { (exit 1); exit 1; }; }
5812echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5813echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5814if test "${acl_cv_prog_gnu_ld+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5818if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5819 acl_cv_prog_gnu_ld=yes
5820else
5821 acl_cv_prog_gnu_ld=no
5822fi
5823fi
5824echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5825echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5826with_gnu_ld=$acl_cv_prog_gnu_ld
5827
5828
5829
5830 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5831echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5832if test "${acl_cv_rpath+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835
5836 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5837 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5838 . ./conftest.sh
5839 rm -f ./conftest.sh
5840 acl_cv_rpath=done
5841
5842fi
5843echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5844echo "${ECHO_T}$acl_cv_rpath" >&6
5845 wl="$acl_cv_wl"
5846 libext="$acl_cv_libext"
5847 shlibext="$acl_cv_shlibext"
5848 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5849 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5850 hardcode_direct="$acl_cv_hardcode_direct"
5851 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5852 # Check whether --enable-rpath or --disable-rpath was given.
5853if test "${enable_rpath+set}" = set; then
5854 enableval="$enable_rpath"
5855 :
5856else
5857 enable_rpath=yes
5858fi;
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868 use_additional=yes
5869
5870 acl_save_prefix="$prefix"
5871 prefix="$acl_final_prefix"
5872 acl_save_exec_prefix="$exec_prefix"
5873 exec_prefix="$acl_final_exec_prefix"
5874
5875 eval additional_includedir=\"$includedir\"
5876 eval additional_libdir=\"$libdir\"
5877
5878 exec_prefix="$acl_save_exec_prefix"
5879 prefix="$acl_save_prefix"
5880
5881
5882# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5883if test "${with_libexpat_prefix+set}" = set; then
5884 withval="$with_libexpat_prefix"
5885
5886 if test "X$withval" = "Xno"; then
5887 use_additional=no
5888 else
5889 if test "X$withval" = "X"; then
5890
5891 acl_save_prefix="$prefix"
5892 prefix="$acl_final_prefix"
5893 acl_save_exec_prefix="$exec_prefix"
5894 exec_prefix="$acl_final_exec_prefix"
5895
5896 eval additional_includedir=\"$includedir\"
5897 eval additional_libdir=\"$libdir\"
5898
5899 exec_prefix="$acl_save_exec_prefix"
5900 prefix="$acl_save_prefix"
5901
5902 else
5903 additional_includedir="$withval/include"
5904 additional_libdir="$withval/lib"
5905 fi
5906 fi
5907
5908fi;
5909 LIBEXPAT=
5910 LTLIBEXPAT=
5911 INCEXPAT=
5912 rpathdirs=
5913 ltrpathdirs=
5914 names_already_handled=
5915 names_next_round='expat '
5916 while test -n "$names_next_round"; do
5917 names_this_round="$names_next_round"
5918 names_next_round=
5919 for name in $names_this_round; do
5920 already_handled=
5921 for n in $names_already_handled; do
5922 if test "$n" = "$name"; then
5923 already_handled=yes
5924 break
5925 fi
5926 done
5927 if test -z "$already_handled"; then
5928 names_already_handled="$names_already_handled $name"
5929 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5930 eval value=\"\$HAVE_LIB$uppername\"
5931 if test -n "$value"; then
5932 if test "$value" = yes; then
5933 eval value=\"\$LIB$uppername\"
5934 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5935 eval value=\"\$LTLIB$uppername\"
5936 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5937 else
5938 :
5939 fi
5940 else
5941 found_dir=
5942 found_la=
5943 found_so=
5944 found_a=
5945 if test $use_additional = yes; then
5946 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5947 found_dir="$additional_libdir"
5948 found_so="$additional_libdir/lib$name.$shlibext"
5949 if test -f "$additional_libdir/lib$name.la"; then
5950 found_la="$additional_libdir/lib$name.la"
5951 fi
5952 else
5953 if test -f "$additional_libdir/lib$name.$libext"; then
5954 found_dir="$additional_libdir"
5955 found_a="$additional_libdir/lib$name.$libext"
5956 if test -f "$additional_libdir/lib$name.la"; then
5957 found_la="$additional_libdir/lib$name.la"
5958 fi
5959 fi
5960 fi
5961 fi
5962 if test "X$found_dir" = "X"; then
5963 for x in $LDFLAGS $LTLIBEXPAT; do
5964
5965 acl_save_prefix="$prefix"
5966 prefix="$acl_final_prefix"
5967 acl_save_exec_prefix="$exec_prefix"
5968 exec_prefix="$acl_final_exec_prefix"
5969 eval x=\"$x\"
5970 exec_prefix="$acl_save_exec_prefix"
5971 prefix="$acl_save_prefix"
5972
5973 case "$x" in
5974 -L*)
5975 dir=`echo "X$x" | sed -e 's/^X-L//'`
5976 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5977 found_dir="$dir"
5978 found_so="$dir/lib$name.$shlibext"
5979 if test -f "$dir/lib$name.la"; then
5980 found_la="$dir/lib$name.la"
5981 fi
5982 else
5983 if test -f "$dir/lib$name.$libext"; then
5984 found_dir="$dir"
5985 found_a="$dir/lib$name.$libext"
5986 if test -f "$dir/lib$name.la"; then
5987 found_la="$dir/lib$name.la"
5988 fi
5989 fi
5990 fi
5991 ;;
5992 esac
5993 if test "X$found_dir" != "X"; then
5994 break
5995 fi
5996 done
5997 fi
5998 if test "X$found_dir" != "X"; then
5999 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6000 if test "X$found_so" != "X"; then
6001 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6002 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6003 else
6004 haveit=
6005 for x in $ltrpathdirs; do
6006 if test "X$x" = "X$found_dir"; then
6007 haveit=yes
6008 break
6009 fi
6010 done
6011 if test -z "$haveit"; then
6012 ltrpathdirs="$ltrpathdirs $found_dir"
6013 fi
6014 if test "$hardcode_direct" = yes; then
6015 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6016 else
6017 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6018 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6019 haveit=
6020 for x in $rpathdirs; do
6021 if test "X$x" = "X$found_dir"; then
6022 haveit=yes
6023 break
6024 fi
6025 done
6026 if test -z "$haveit"; then
6027 rpathdirs="$rpathdirs $found_dir"
6028 fi
6029 else
6030 haveit=
6031 for x in $LDFLAGS $LIBEXPAT; do
6032
6033 acl_save_prefix="$prefix"
6034 prefix="$acl_final_prefix"
6035 acl_save_exec_prefix="$exec_prefix"
6036 exec_prefix="$acl_final_exec_prefix"
6037 eval x=\"$x\"
6038 exec_prefix="$acl_save_exec_prefix"
6039 prefix="$acl_save_prefix"
6040
6041 if test "X$x" = "X-L$found_dir"; then
6042 haveit=yes
6043 break
6044 fi
6045 done
6046 if test -z "$haveit"; then
6047 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6048 fi
6049 if test "$hardcode_minus_L" != no; then
6050 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6051 else
6052 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6053 fi
6054 fi
6055 fi
6056 fi
6057 else
6058 if test "X$found_a" != "X"; then
6059 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6060 else
6061 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6062 fi
6063 fi
6064 additional_includedir=
6065 case "$found_dir" in
6066 */lib | */lib/)
6067 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6068 additional_includedir="$basedir/include"
6069 ;;
6070 esac
6071 if test "X$additional_includedir" != "X"; then
6072 if test "X$additional_includedir" != "X/usr/include"; then
6073 haveit=
6074 if test "X$additional_includedir" = "X/usr/local/include"; then
6075 if test -n "$GCC"; then
6076 case $host_os in
6077 linux*) haveit=yes;;
6078 esac
6079 fi
6080 fi
6081 if test -z "$haveit"; then
6082 for x in $CPPFLAGS $INCEXPAT; do
6083
6084 acl_save_prefix="$prefix"
6085 prefix="$acl_final_prefix"
6086 acl_save_exec_prefix="$exec_prefix"
6087 exec_prefix="$acl_final_exec_prefix"
6088 eval x=\"$x\"
6089 exec_prefix="$acl_save_exec_prefix"
6090 prefix="$acl_save_prefix"
6091
6092 if test "X$x" = "X-I$additional_includedir"; then
6093 haveit=yes
6094 break
6095 fi
6096 done
6097 if test -z "$haveit"; then
6098 if test -d "$additional_includedir"; then
6099 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6100 fi
6101 fi
6102 fi
6103 fi
6104 fi
6105 if test -n "$found_la"; then
6106 save_libdir="$libdir"
6107 case "$found_la" in
6108 */* | *\\*) . "$found_la" ;;
6109 *) . "./$found_la" ;;
6110 esac
6111 libdir="$save_libdir"
6112 for dep in $dependency_libs; do
6113 case "$dep" in
6114 -L*)
6115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6116 if test "X$additional_libdir" != "X/usr/lib"; then
6117 haveit=
6118 if test "X$additional_libdir" = "X/usr/local/lib"; then
6119 if test -n "$GCC"; then
6120 case $host_os in
6121 linux*) haveit=yes;;
6122 esac
6123 fi
6124 fi
6125 if test -z "$haveit"; then
6126 haveit=
6127 for x in $LDFLAGS $LIBEXPAT; do
6128
6129 acl_save_prefix="$prefix"
6130 prefix="$acl_final_prefix"
6131 acl_save_exec_prefix="$exec_prefix"
6132 exec_prefix="$acl_final_exec_prefix"
6133 eval x=\"$x\"
6134 exec_prefix="$acl_save_exec_prefix"
6135 prefix="$acl_save_prefix"
6136
6137 if test "X$x" = "X-L$additional_libdir"; then
6138 haveit=yes
6139 break
6140 fi
6141 done
6142 if test -z "$haveit"; then
6143 if test -d "$additional_libdir"; then
6144 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6145 fi
6146 fi
6147 haveit=
6148 for x in $LDFLAGS $LTLIBEXPAT; do
6149
6150 acl_save_prefix="$prefix"
6151 prefix="$acl_final_prefix"
6152 acl_save_exec_prefix="$exec_prefix"
6153 exec_prefix="$acl_final_exec_prefix"
6154 eval x=\"$x\"
6155 exec_prefix="$acl_save_exec_prefix"
6156 prefix="$acl_save_prefix"
6157
6158 if test "X$x" = "X-L$additional_libdir"; then
6159 haveit=yes
6160 break
6161 fi
6162 done
6163 if test -z "$haveit"; then
6164 if test -d "$additional_libdir"; then
6165 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6166 fi
6167 fi
6168 fi
6169 fi
6170 ;;
6171 -R*)
6172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6173 if test "$enable_rpath" != no; then
6174 haveit=
6175 for x in $rpathdirs; do
6176 if test "X$x" = "X$dir"; then
6177 haveit=yes
6178 break
6179 fi
6180 done
6181 if test -z "$haveit"; then
6182 rpathdirs="$rpathdirs $dir"
6183 fi
6184 haveit=
6185 for x in $ltrpathdirs; do
6186 if test "X$x" = "X$dir"; then
6187 haveit=yes
6188 break
6189 fi
6190 done
6191 if test -z "$haveit"; then
6192 ltrpathdirs="$ltrpathdirs $dir"
6193 fi
6194 fi
6195 ;;
6196 -l*)
6197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6198 ;;
6199 *.la)
6200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6201 ;;
6202 *)
6203 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6204 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6205 ;;
6206 esac
6207 done
6208 fi
6209 else
6210 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6211 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6212 fi
6213 fi
6214 fi
6215 done
6216 done
6217 if test "X$rpathdirs" != "X"; then
6218 if test -n "$hardcode_libdir_separator"; then
6219 alldirs=
6220 for found_dir in $rpathdirs; do
6221 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6222 done
6223 acl_save_libdir="$libdir"
6224 libdir="$alldirs"
6225 eval flag=\"$hardcode_libdir_flag_spec\"
6226 libdir="$acl_save_libdir"
6227 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6228 else
6229 for found_dir in $rpathdirs; do
6230 acl_save_libdir="$libdir"
6231 libdir="$found_dir"
6232 eval flag=\"$hardcode_libdir_flag_spec\"
6233 libdir="$acl_save_libdir"
6234 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6235 done
6236 fi
6237 fi
6238 if test "X$ltrpathdirs" != "X"; then
6239 for found_dir in $ltrpathdirs; do
6240 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6241 done
6242 fi
6243
6244
6245 ac_save_CPPFLAGS="$CPPFLAGS"
6246
6247 for element in $INCEXPAT; do
6248 haveit=
6249 for x in $CPPFLAGS; do
6250
6251 acl_save_prefix="$prefix"
6252 prefix="$acl_final_prefix"
6253 acl_save_exec_prefix="$exec_prefix"
6254 exec_prefix="$acl_final_exec_prefix"
6255 eval x=\"$x\"
6256 exec_prefix="$acl_save_exec_prefix"
6257 prefix="$acl_save_prefix"
6258
6259 if test "X$x" = "X$element"; then
6260 haveit=yes
6261 break
6262 fi
6263 done
6264 if test -z "$haveit"; then
6265 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6266 fi
6267 done
6268
6269
6270 echo "$as_me:$LINENO: checking for libexpat" >&5
6271echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6272if test "${ac_cv_libexpat+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275
6276 ac_save_LIBS="$LIBS"
6277 LIBS="$LIBS $LIBEXPAT"
6278 cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284#include "expat.h"
6285int
6286main ()
6287{
6288XML_Parser p = XML_ParserCreate (0);
6289 ;
6290 return 0;
6291}
6292_ACEOF
6293rm -f conftest.$ac_objext conftest$ac_exeext
6294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6295 (eval $ac_link) 2>conftest.er1
6296 ac_status=$?
6297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_c_werror_flag"
6303 || test ! -s conftest.err'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 ac_cv_libexpat=yes
6316else
6317 echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320ac_cv_libexpat=no
6321fi
6322rm -f conftest.err conftest.$ac_objext \
6323 conftest$ac_exeext conftest.$ac_ext
6324 LIBS="$ac_save_LIBS"
6325
6326fi
6327echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6328echo "${ECHO_T}$ac_cv_libexpat" >&6
6329 if test "$ac_cv_libexpat" = yes; then
6330 HAVE_LIBEXPAT=yes
6331
6332cat >>confdefs.h <<\_ACEOF
6333#define HAVE_LIBEXPAT 1
6334_ACEOF
6335
6336 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6337echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6338 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6339echo "${ECHO_T}$LIBEXPAT" >&6
6340 else
6341 HAVE_LIBEXPAT=no
6342 CPPFLAGS="$ac_save_CPPFLAGS"
6343 LIBEXPAT=
6344 LTLIBEXPAT=
6345 fi
6346
6347
6348
6349
6350
6351
6352if test "$HAVE_LIBEXPAT" != yes; then
6353 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5
6354echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;}
6355fi
6356
bec39cab
AC
6357# ------------------------- #
6358# Checks for header files. #
6359# ------------------------- #
8ee53726 6360
0e5d83e3 6361
bec39cab
AC
6362
6363
6364
6365
6366ac_header_dirent=no
6367for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6368 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6369echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6370echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6371if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374 cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h. */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h. */
6380#include <sys/types.h>
0e5d83e3 6381#include <$ac_hdr>
bec39cab
AC
6382
6383int
6384main ()
6385{
6386if ((DIR *) 0)
6387return 0;
6388 ;
6389 return 0;
6390}
6391_ACEOF
6392rm -f conftest.$ac_objext
6393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
b4e70030
JB
6401 { ac_try='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 eval "$as_ac_Header=yes"
6415else
6416 echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
b4e70030 6419eval "$as_ac_Header=no"
bec39cab
AC
6420fi
6421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6422fi
b4e70030
JB
6423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6425if test `eval echo '${'$as_ac_Header'}'` = yes; then
6426 cat >>confdefs.h <<_ACEOF
6427#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6428_ACEOF
6429
6430ac_header_dirent=$ac_hdr; break
0e5d83e3 6431fi
0e5d83e3 6432
bec39cab
AC
6433done
6434# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6435if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6436 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6437echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6438if test "${ac_cv_search_opendir+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440else
6441 ac_func_search_save_LIBS=$LIBS
b4e70030 6442ac_cv_search_opendir=no
bec39cab
AC
6443cat >conftest.$ac_ext <<_ACEOF
6444/* confdefs.h. */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h. */
0e5d83e3 6449
b4e70030 6450/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6451#ifdef __cplusplus
6452extern "C"
6453#endif
b4e70030
JB
6454/* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
bec39cab
AC
6456char opendir ();
6457int
6458main ()
6459{
b4e70030 6460opendir ();
bec39cab
AC
6461 ;
6462 return 0;
6463}
6464_ACEOF
b4e70030 6465rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6467 (eval $ac_link) 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } &&
b4e70030
JB
6474 { ac_try='test -z "$ac_c_werror_flag"
6475 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
6481 { ac_try='test -s conftest$ac_exeext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
b4e70030 6487 ac_cv_search_opendir="none required"
bec39cab
AC
6488else
6489 echo "$as_me: failed program was:" >&5
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492fi
bec39cab 6493rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6494 conftest$ac_exeext conftest.$ac_ext
6495if test "$ac_cv_search_opendir" = no; then
6496 for ac_lib in dir; do
6497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h. */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h. */
6504
6505/* Override any gcc2 internal prototype to avoid an error. */
6506#ifdef __cplusplus
6507extern "C"
6508#endif
6509/* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6511char opendir ();
6512int
6513main ()
6514{
6515opendir ();
6516 ;
6517 return 0;
6518}
6519_ACEOF
6520rm -f conftest.$ac_objext conftest$ac_exeext
6521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
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); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 (eval $ac_try) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_search_opendir="-l$ac_lib"
6543break
4e8d927d 6544else
b4e70030
JB
6545 echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548fi
6549rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6551 done
0e5d83e3 6552fi
bec39cab 6553LIBS=$ac_func_search_save_LIBS
0e5d83e3 6554fi
b4e70030
JB
6555echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6556echo "${ECHO_T}$ac_cv_search_opendir" >&6
6557if test "$ac_cv_search_opendir" != no; then
6558 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6559
0e5d83e3
JJ
6560fi
6561
d28f9cdf 6562else
b4e70030
JB
6563 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6564echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6565if test "${ac_cv_search_opendir+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568 ac_func_search_save_LIBS=$LIBS
b4e70030 6569ac_cv_search_opendir=no
bec39cab
AC
6570cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h. */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h. */
d28f9cdf 6576
b4e70030 6577/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6578#ifdef __cplusplus
6579extern "C"
d28f9cdf 6580#endif
b4e70030
JB
6581/* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
bec39cab
AC
6583char opendir ();
6584int
6585main ()
6586{
b4e70030 6587opendir ();
bec39cab
AC
6588 ;
6589 return 0;
6590}
6591_ACEOF
b4e70030 6592rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594 (eval $ac_link) 2>conftest.er1
6595 ac_status=$?
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
b4e70030
JB
6601 { ac_try='test -z "$ac_c_werror_flag"
6602 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
6608 { ac_try='test -s conftest$ac_exeext'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
b4e70030 6614 ac_cv_search_opendir="none required"
d28f9cdf 6615else
bec39cab
AC
6616 echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
d28f9cdf 6619fi
bec39cab 6620rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6621 conftest$ac_exeext conftest.$ac_ext
6622if test "$ac_cv_search_opendir" = no; then
6623 for ac_lib in x; do
6624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6625 cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h. */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h. */
6631
6632/* Override any gcc2 internal prototype to avoid an error. */
6633#ifdef __cplusplus
6634extern "C"
6635#endif
6636/* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6638char opendir ();
6639int
6640main ()
6641{
6642opendir ();
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647rm -f conftest.$ac_objext conftest$ac_exeext
6648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>conftest.er1
6650 ac_status=$?
6651 grep -v '^ *+' conftest.er1 >conftest.err
6652 rm -f conftest.er1
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -z "$ac_c_werror_flag"
6657 || test ! -s conftest.err'
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); }; } &&
6663 { ac_try='test -s conftest$ac_exeext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 (eval $ac_try) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_search_opendir="-l$ac_lib"
6670break
4e8d927d 6671else
b4e70030
JB
6672 echo "$as_me: failed program was:" >&5
6673sed 's/^/| /' conftest.$ac_ext >&5
6674
6675fi
6676rm -f conftest.err conftest.$ac_objext \
6677 conftest$ac_exeext conftest.$ac_ext
6678 done
bec39cab
AC
6679fi
6680LIBS=$ac_func_search_save_LIBS
d28f9cdf 6681fi
b4e70030
JB
6682echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6683echo "${ECHO_T}$ac_cv_search_opendir" >&6
6684if test "$ac_cv_search_opendir" != no; then
6685 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 6686
d28f9cdf
DJ
6687fi
6688
bec39cab 6689fi
b0b1c2c0 6690
b4e70030
JB
6691echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6692echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
6693if test "${ac_cv_header_stat_broken+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 6695else
bec39cab
AC
6696 cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h. */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h. */
6702#include <sys/types.h>
6703#include <sys/stat.h>
b0b1c2c0 6704
b4e70030 6705#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
6706# if S_ISBLK (S_IFDIR)
6707You lose.
6708# endif
6709#endif
b0b1c2c0 6710
b4e70030 6711#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
6712# if S_ISBLK (S_IFCHR)
6713You lose.
6714# endif
6715#endif
d28f9cdf 6716
b4e70030 6717#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
6718# if S_ISLNK (S_IFREG)
6719You lose.
6720# endif
6721#endif
d28f9cdf 6722
b4e70030 6723#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
6724# if S_ISSOCK (S_IFREG)
6725You lose.
6726# endif
6727#endif
6728
6729_ACEOF
6730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6731 $EGREP "You lose" >/dev/null 2>&1; then
6732 ac_cv_header_stat_broken=yes
d28f9cdf 6733else
bec39cab 6734 ac_cv_header_stat_broken=no
d28f9cdf
DJ
6735fi
6736rm -f conftest*
d28f9cdf 6737
d28f9cdf 6738fi
b4e70030
JB
6739echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6740echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 6741if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 6742
bec39cab
AC
6743cat >>confdefs.h <<\_ACEOF
6744#define STAT_MACROS_BROKEN 1
6745_ACEOF
8bb2c122 6746
7a292a7a 6747fi
bec39cab 6748
b4e70030
JB
6749echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6750echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
6751if test "${ac_cv_header_stdc+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 6753else
bec39cab
AC
6754 cat >conftest.$ac_ext <<_ACEOF
6755/* confdefs.h. */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h. */
6760#include <stdlib.h>
6761#include <stdarg.h>
6762#include <string.h>
6763#include <float.h>
7a292a7a 6764
bec39cab
AC
6765int
6766main ()
6767{
7a292a7a 6768
bec39cab
AC
6769 ;
6770 return 0;
6771}
6772_ACEOF
6773rm -f conftest.$ac_objext
6774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775 (eval $ac_compile) 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
b4e70030
JB
6782 { ac_try='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
6789 { ac_try='test -s conftest.$ac_objext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_header_stdc=yes
c906108c 6796else
bec39cab
AC
6797 echo "$as_me: failed program was:" >&5
6798sed 's/^/| /' conftest.$ac_ext >&5
c906108c 6799
b4e70030 6800ac_cv_header_stdc=no
c906108c 6801fi
bec39cab 6802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6803
bec39cab
AC
6804if test $ac_cv_header_stdc = yes; then
6805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6806 cat >conftest.$ac_ext <<_ACEOF
6807/* confdefs.h. */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h. */
6812#include <string.h>
c906108c 6813
bec39cab
AC
6814_ACEOF
6815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6816 $EGREP "memchr" >/dev/null 2>&1; then
6817 :
8bb2c122 6818else
bec39cab 6819 ac_cv_header_stdc=no
8bb2c122 6820fi
bec39cab
AC
6821rm -f conftest*
6822
c906108c
SS
6823fi
6824
bec39cab
AC
6825if test $ac_cv_header_stdc = yes; then
6826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6827 cat >conftest.$ac_ext <<_ACEOF
6828/* confdefs.h. */
6829_ACEOF
6830cat confdefs.h >>conftest.$ac_ext
6831cat >>conftest.$ac_ext <<_ACEOF
6832/* end confdefs.h. */
6833#include <stdlib.h>
6834
6835_ACEOF
6836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837 $EGREP "free" >/dev/null 2>&1; then
6838 :
c906108c 6839else
bec39cab 6840 ac_cv_header_stdc=no
c906108c 6841fi
bec39cab
AC
6842rm -f conftest*
6843
c906108c
SS
6844fi
6845
bec39cab
AC
6846if test $ac_cv_header_stdc = yes; then
6847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6848 if test "$cross_compiling" = yes; then
6849 :
c906108c 6850else
bec39cab
AC
6851 cat >conftest.$ac_ext <<_ACEOF
6852/* confdefs.h. */
6853_ACEOF
6854cat confdefs.h >>conftest.$ac_ext
6855cat >>conftest.$ac_ext <<_ACEOF
6856/* end confdefs.h. */
6857#include <ctype.h>
6858#if ((' ' & 0x0FF) == 0x020)
6859# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6860# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6861#else
6862# define ISLOWER(c) \
6863 (('a' <= (c) && (c) <= 'i') \
6864 || ('j' <= (c) && (c) <= 'r') \
6865 || ('s' <= (c) && (c) <= 'z'))
6866# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6867#endif
6868
6869#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6870int
6871main ()
6872{
6873 int i;
6874 for (i = 0; i < 256; i++)
6875 if (XOR (islower (i), ISLOWER (i))
6876 || toupper (i) != TOUPPER (i))
b4e70030
JB
6877 exit(2);
6878 exit (0);
bec39cab
AC
6879}
6880_ACEOF
6881rm -f conftest$ac_exeext
6882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6892 :
6893else
6894 echo "$as_me: program exited with status $ac_status" >&5
6895echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
6898( exit $ac_status )
6899ac_cv_header_stdc=no
c906108c 6900fi
b4e70030 6901rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 6902fi
c906108c 6903fi
bec39cab 6904fi
b4e70030
JB
6905echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6906echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 6907if test $ac_cv_header_stdc = yes; then
c906108c 6908
bec39cab
AC
6909cat >>confdefs.h <<\_ACEOF
6910#define STDC_HEADERS 1
6911_ACEOF
c906108c 6912
bec39cab 6913fi
8bb2c122 6914
bec39cab 6915
7cb9022a 6916for ac_header in nlist.h
bec39cab
AC
6917do
6918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
6919if eval "test \"\${$as_ac_Header+set}\" = set"; then
6920 echo "$as_me:$LINENO: checking for $ac_header" >&5
6921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6922if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924fi
b4e70030
JB
6925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6927else
6928 # Is the header compilable?
b4e70030
JB
6929echo "$as_me:$LINENO: checking $ac_header usability" >&5
6930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
6931cat >conftest.$ac_ext <<_ACEOF
6932/* confdefs.h. */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h. */
6937$ac_includes_default
6938#include <$ac_header>
6939_ACEOF
6940rm -f conftest.$ac_objext
6941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6942 (eval $ac_compile) 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
b4e70030
JB
6949 { ac_try='test -z "$ac_c_werror_flag"
6950 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
6956 { ac_try='test -s conftest.$ac_objext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 ac_header_compiler=yes
6963else
6964 echo "$as_me: failed program was:" >&5
6965sed 's/^/| /' conftest.$ac_ext >&5
6966
b4e70030 6967ac_header_compiler=no
bec39cab
AC
6968fi
6969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
6970echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6971echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
6972
6973# Is the header present?
b4e70030
JB
6974echo "$as_me:$LINENO: checking $ac_header presence" >&5
6975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
6976cat >conftest.$ac_ext <<_ACEOF
6977/* confdefs.h. */
6978_ACEOF
6979cat confdefs.h >>conftest.$ac_ext
6980cat >>conftest.$ac_ext <<_ACEOF
6981/* end confdefs.h. */
6982#include <$ac_header>
6983_ACEOF
6984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } >/dev/null; then
6992 if test -s conftest.err; then
6993 ac_cpp_err=$ac_c_preproc_warn_flag
6994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6995 else
6996 ac_cpp_err=
6997 fi
c906108c 6998else
bec39cab 6999 ac_cpp_err=yes
c906108c 7000fi
bec39cab
AC
7001if test -z "$ac_cpp_err"; then
7002 ac_header_preproc=yes
c906108c 7003else
bec39cab
AC
7004 echo "$as_me: failed program was:" >&5
7005sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7006
bec39cab
AC
7007 ac_header_preproc=no
7008fi
7009rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7010echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7011echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7012
bec39cab
AC
7013# So? What about this header?
7014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7015 yes:no: )
7016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7019echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7020 ac_header_preproc=yes
7021 ;;
7022 no:yes:* )
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7026echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7028echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7030echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7032echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7034echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7035 (
7036 cat <<\_ASBOX
7037## ------------------------------------------ ##
7038## Report this to the AC_PACKAGE_NAME lists. ##
7039## ------------------------------------------ ##
7040_ASBOX
7041 ) |
7042 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7043 ;;
7044esac
b4e70030
JB
7045echo "$as_me:$LINENO: checking for $ac_header" >&5
7046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7047if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7048 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7049else
bec39cab 7050 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7051fi
b4e70030
JB
7052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7054
95ca63c4 7055fi
bec39cab
AC
7056if test `eval echo '${'$as_ac_Header'}'` = yes; then
7057 cat >>confdefs.h <<_ACEOF
7058#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7059_ACEOF
7060
95ca63c4
CF
7061fi
7062
bec39cab 7063done
95ca63c4
CF
7064
7065
7cb9022a 7066for ac_header in link.h
bec39cab
AC
7067do
7068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7069echo "$as_me:$LINENO: checking for $ac_header" >&5
7070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7071if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7072 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7073else
7cb9022a 7074 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7075/* confdefs.h. */
7076_ACEOF
7077cat confdefs.h >>conftest.$ac_ext
7078cat >>conftest.$ac_ext <<_ACEOF
7079/* end confdefs.h. */
7cb9022a
MK
7080#if HAVE_SYS_TYPES_H
7081# include <sys/types.h>
7082#endif
7083#if HAVE_NLIST_H
7084# include <nlist.h>
7085#endif
7086
7087
bec39cab
AC
7088#include <$ac_header>
7089_ACEOF
7090rm -f conftest.$ac_objext
7091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
b4e70030
JB
7099 { ac_try='test -z "$ac_c_werror_flag"
7100 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
7106 { ac_try='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7cb9022a 7112 eval "$as_ac_Header=yes"
bec39cab
AC
7113else
7114 echo "$as_me: failed program was:" >&5
7115sed 's/^/| /' conftest.$ac_ext >&5
7116
b4e70030 7117eval "$as_ac_Header=no"
bec39cab
AC
7118fi
7119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7120fi
b4e70030
JB
7121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7123if test `eval echo '${'$as_ac_Header'}'` = yes; then
7124 cat >>confdefs.h <<_ACEOF
7125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7126_ACEOF
95ca63c4 7127
bec39cab 7128fi
95ca63c4 7129
bec39cab 7130done
95ca63c4 7131
c906108c 7132
7cb9022a 7133for ac_header in machine/reg.h
bec39cab
AC
7134do
7135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7136if eval "test \"\${$as_ac_Header+set}\" = set"; then
7137 echo "$as_me:$LINENO: checking for $ac_header" >&5
7138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7139if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141fi
b4e70030
JB
7142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7144else
7145 # Is the header compilable?
b4e70030
JB
7146echo "$as_me:$LINENO: checking $ac_header usability" >&5
7147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7148cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h. */
7154$ac_includes_default
7155#include <$ac_header>
7156_ACEOF
7157rm -f conftest.$ac_objext
7158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159 (eval $ac_compile) 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
b4e70030
JB
7166 { ac_try='test -z "$ac_c_werror_flag"
7167 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
7173 { ac_try='test -s conftest.$ac_objext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 (eval $ac_try) 2>&5
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_header_compiler=yes
7180else
7181 echo "$as_me: failed program was:" >&5
7182sed 's/^/| /' conftest.$ac_ext >&5
7183
b4e70030 7184ac_header_compiler=no
bec39cab
AC
7185fi
7186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7187echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7188echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7189
7190# Is the header present?
b4e70030
JB
7191echo "$as_me:$LINENO: checking $ac_header presence" >&5
7192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7193cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h. */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h. */
7199#include <$ac_header>
7200_ACEOF
7201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } >/dev/null; then
7209 if test -s conftest.err; then
7210 ac_cpp_err=$ac_c_preproc_warn_flag
7211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7212 else
7213 ac_cpp_err=
7214 fi
75c6e08a 7215else
bec39cab 7216 ac_cpp_err=yes
75c6e08a 7217fi
bec39cab
AC
7218if test -z "$ac_cpp_err"; then
7219 ac_header_preproc=yes
7220else
7221 echo "$as_me: failed program was:" >&5
7222sed 's/^/| /' conftest.$ac_ext >&5
7223
7224 ac_header_preproc=no
75c6e08a 7225fi
bec39cab 7226rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7227echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7228echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7229
7230# So? What about this header?
7231case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7232 yes:no: )
7233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7234echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7236echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7237 ac_header_preproc=yes
7238 ;;
7239 no:yes:* )
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7241echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7243echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7245echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7247echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7251echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7252 (
7253 cat <<\_ASBOX
7254## ------------------------------------------ ##
7255## Report this to the AC_PACKAGE_NAME lists. ##
7256## ------------------------------------------ ##
7257_ASBOX
7258 ) |
7259 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7260 ;;
7261esac
b4e70030
JB
7262echo "$as_me:$LINENO: checking for $ac_header" >&5
7263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7264if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7265 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7266else
bec39cab
AC
7267 eval "$as_ac_Header=\$ac_header_preproc"
7268fi
b4e70030
JB
7269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7270echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7271
75c6e08a 7272fi
bec39cab
AC
7273if test `eval echo '${'$as_ac_Header'}'` = yes; then
7274 cat >>confdefs.h <<_ACEOF
7275#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276_ACEOF
75c6e08a 7277
bec39cab 7278fi
75c6e08a 7279
bec39cab 7280done
75c6e08a
MK
7281
7282
9a156167 7283
bec39cab
AC
7284for ac_header in poll.h sys/poll.h
7285do
7286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7287if eval "test \"\${$as_ac_Header+set}\" = set"; then
7288 echo "$as_me:$LINENO: checking for $ac_header" >&5
7289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7290if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292fi
b4e70030
JB
7293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7295else
7296 # Is the header compilable?
b4e70030
JB
7297echo "$as_me:$LINENO: checking $ac_header usability" >&5
7298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7299cat >conftest.$ac_ext <<_ACEOF
7300/* confdefs.h. */
7301_ACEOF
7302cat confdefs.h >>conftest.$ac_ext
7303cat >>conftest.$ac_ext <<_ACEOF
7304/* end confdefs.h. */
7305$ac_includes_default
7306#include <$ac_header>
7307_ACEOF
7308rm -f conftest.$ac_objext
7309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
b4e70030
JB
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
7324 { ac_try='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_header_compiler=yes
7331else
7332 echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
b4e70030 7335ac_header_compiler=no
bec39cab
AC
7336fi
7337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7338echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7339echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7340
7341# Is the header present?
b4e70030
JB
7342echo "$as_me:$LINENO: checking $ac_header presence" >&5
7343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7344cat >conftest.$ac_ext <<_ACEOF
7345/* confdefs.h. */
7346_ACEOF
7347cat confdefs.h >>conftest.$ac_ext
7348cat >>conftest.$ac_ext <<_ACEOF
7349/* end confdefs.h. */
7350#include <$ac_header>
7351_ACEOF
7352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7354 ac_status=$?
7355 grep -v '^ *+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } >/dev/null; then
7360 if test -s conftest.err; then
7361 ac_cpp_err=$ac_c_preproc_warn_flag
7362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7363 else
7364 ac_cpp_err=
7365 fi
9a156167 7366else
bec39cab 7367 ac_cpp_err=yes
9a156167 7368fi
bec39cab
AC
7369if test -z "$ac_cpp_err"; then
7370 ac_header_preproc=yes
7371else
7372 echo "$as_me: failed program was:" >&5
7373sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7374
bec39cab 7375 ac_header_preproc=no
9a156167 7376fi
bec39cab 7377rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7379echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7380
bec39cab
AC
7381# So? What about this header?
7382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7383 yes:no: )
7384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7387echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7388 ac_header_preproc=yes
7389 ;;
7390 no:yes:* )
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7392echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7394echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7396echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7398echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7402echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7403 (
7404 cat <<\_ASBOX
7405## ------------------------------------------ ##
7406## Report this to the AC_PACKAGE_NAME lists. ##
7407## ------------------------------------------ ##
7408_ASBOX
7409 ) |
7410 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7411 ;;
7412esac
b4e70030
JB
7413echo "$as_me:$LINENO: checking for $ac_header" >&5
7414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7415if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7416 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7417else
bec39cab 7418 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7419fi
b4e70030
JB
7420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7422
bec39cab
AC
7423fi
7424if test `eval echo '${'$as_ac_Header'}'` = yes; then
7425 cat >>confdefs.h <<_ACEOF
7426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7427_ACEOF
9a156167 7428
bec39cab 7429fi
9a156167 7430
bec39cab 7431done
9a156167 7432
9a156167 7433
9a156167 7434
bec39cab
AC
7435
7436for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7437do
7438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7439if eval "test \"\${$as_ac_Header+set}\" = set"; then
7440 echo "$as_me:$LINENO: checking for $ac_header" >&5
7441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7442if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444fi
b4e70030
JB
7445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7446echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7447else
7448 # Is the header compilable?
b4e70030
JB
7449echo "$as_me:$LINENO: checking $ac_header usability" >&5
7450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7451cat >conftest.$ac_ext <<_ACEOF
7452/* confdefs.h. */
7453_ACEOF
7454cat confdefs.h >>conftest.$ac_ext
7455cat >>conftest.$ac_ext <<_ACEOF
7456/* end confdefs.h. */
7457$ac_includes_default
7458#include <$ac_header>
7459_ACEOF
7460rm -f conftest.$ac_objext
7461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
b4e70030
JB
7469 { ac_try='test -z "$ac_c_werror_flag"
7470 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_header_compiler=yes
7483else
7484 echo "$as_me: failed program was:" >&5
7485sed 's/^/| /' conftest.$ac_ext >&5
7486
b4e70030 7487ac_header_compiler=no
bec39cab
AC
7488fi
7489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7490echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7491echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7492
7493# Is the header present?
b4e70030
JB
7494echo "$as_me:$LINENO: checking $ac_header presence" >&5
7495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7496cat >conftest.$ac_ext <<_ACEOF
7497/* confdefs.h. */
7498_ACEOF
7499cat confdefs.h >>conftest.$ac_ext
7500cat >>conftest.$ac_ext <<_ACEOF
7501/* end confdefs.h. */
7502#include <$ac_header>
7503_ACEOF
7504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } >/dev/null; then
7512 if test -s conftest.err; then
7513 ac_cpp_err=$ac_c_preproc_warn_flag
7514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7515 else
7516 ac_cpp_err=
7517 fi
9a156167 7518else
bec39cab 7519 ac_cpp_err=yes
9a156167 7520fi
bec39cab
AC
7521if test -z "$ac_cpp_err"; then
7522 ac_header_preproc=yes
7523else
7524 echo "$as_me: failed program was:" >&5
7525sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7526
bec39cab 7527 ac_header_preproc=no
9a156167 7528fi
bec39cab 7529rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7530echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7531echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7532
bec39cab
AC
7533# So? What about this header?
7534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7535 yes:no: )
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7540 ac_header_preproc=yes
7541 ;;
7542 no:yes:* )
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7555 (
7556 cat <<\_ASBOX
7557## ------------------------------------------ ##
7558## Report this to the AC_PACKAGE_NAME lists. ##
7559## ------------------------------------------ ##
7560_ASBOX
7561 ) |
7562 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7563 ;;
7564esac
b4e70030
JB
7565echo "$as_me:$LINENO: checking for $ac_header" >&5
7566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7567if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7568 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7569else
bec39cab 7570 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7571fi
b4e70030
JB
7572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
7574
7575fi
bec39cab
AC
7576if test `eval echo '${'$as_ac_Header'}'` = yes; then
7577 cat >>confdefs.h <<_ACEOF
7578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7579_ACEOF
9a156167 7580
bec39cab
AC
7581fi
7582
7583done
9a156167 7584
c890192f 7585
bec39cab
AC
7586for ac_header in stddef.h
7587do
7588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7589if eval "test \"\${$as_ac_Header+set}\" = set"; then
7590 echo "$as_me:$LINENO: checking for $ac_header" >&5
7591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7592if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594fi
b4e70030
JB
7595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7597else
7598 # Is the header compilable?
b4e70030
JB
7599echo "$as_me:$LINENO: checking $ac_header usability" >&5
7600echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7601cat >conftest.$ac_ext <<_ACEOF
7602/* confdefs.h. */
7603_ACEOF
7604cat confdefs.h >>conftest.$ac_ext
7605cat >>conftest.$ac_ext <<_ACEOF
7606/* end confdefs.h. */
7607$ac_includes_default
7608#include <$ac_header>
7609_ACEOF
7610rm -f conftest.$ac_objext
7611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7612 (eval $ac_compile) 2>conftest.er1
7613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
b4e70030
JB
7619 { ac_try='test -z "$ac_c_werror_flag"
7620 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
7626 { ac_try='test -s conftest.$ac_objext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 ac_header_compiler=yes
7633else
7634 echo "$as_me: failed program was:" >&5
7635sed 's/^/| /' conftest.$ac_ext >&5
7636
b4e70030 7637ac_header_compiler=no
bec39cab
AC
7638fi
7639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7641echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7642
7643# Is the header present?
b4e70030
JB
7644echo "$as_me:$LINENO: checking $ac_header presence" >&5
7645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7646cat >conftest.$ac_ext <<_ACEOF
7647/* confdefs.h. */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h. */
7652#include <$ac_header>
7653_ACEOF
7654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } >/dev/null; then
7662 if test -s conftest.err; then
7663 ac_cpp_err=$ac_c_preproc_warn_flag
7664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7665 else
7666 ac_cpp_err=
7667 fi
c890192f 7668else
bec39cab
AC
7669 ac_cpp_err=yes
7670fi
7671if test -z "$ac_cpp_err"; then
7672 ac_header_preproc=yes
c890192f 7673else
bec39cab
AC
7674 echo "$as_me: failed program was:" >&5
7675sed 's/^/| /' conftest.$ac_ext >&5
7676
7677 ac_header_preproc=no
c890192f 7678fi
bec39cab 7679rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7681echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7682
7683# So? What about this header?
7684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7685 yes:no: )
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7690 ac_header_preproc=yes
7691 ;;
7692 no:yes:* )
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7696echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7700echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7705 (
7706 cat <<\_ASBOX
7707## ------------------------------------------ ##
7708## Report this to the AC_PACKAGE_NAME lists. ##
7709## ------------------------------------------ ##
7710_ASBOX
7711 ) |
7712 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7713 ;;
7714esac
b4e70030
JB
7715echo "$as_me:$LINENO: checking for $ac_header" >&5
7716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7717if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7718 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 7719else
bec39cab 7720 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 7721fi
b4e70030
JB
7722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7724
c890192f 7725fi
bec39cab
AC
7726if test `eval echo '${'$as_ac_Header'}'` = yes; then
7727 cat >>confdefs.h <<_ACEOF
7728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7729_ACEOF
c890192f 7730
c890192f
MK
7731fi
7732
bec39cab 7733done
9a156167 7734
bec39cab
AC
7735
7736for ac_header in stdlib.h
7737do
7738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7739if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740 echo "$as_me:$LINENO: checking for $ac_header" >&5
7741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7742if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744fi
b4e70030
JB
7745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7747else
7748 # Is the header compilable?
b4e70030
JB
7749echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7751cat >conftest.$ac_ext <<_ACEOF
7752/* confdefs.h. */
7753_ACEOF
7754cat confdefs.h >>conftest.$ac_ext
7755cat >>conftest.$ac_ext <<_ACEOF
7756/* end confdefs.h. */
7757$ac_includes_default
7758#include <$ac_header>
7759_ACEOF
7760rm -f conftest.$ac_objext
7761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762 (eval $ac_compile) 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
b4e70030
JB
7769 { ac_try='test -z "$ac_c_werror_flag"
7770 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
7776 { ac_try='test -s conftest.$ac_objext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_header_compiler=yes
7783else
7784 echo "$as_me: failed program was:" >&5
7785sed 's/^/| /' conftest.$ac_ext >&5
7786
b4e70030 7787ac_header_compiler=no
bec39cab
AC
7788fi
7789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7790echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7791echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7792
7793# Is the header present?
b4e70030
JB
7794echo "$as_me:$LINENO: checking $ac_header presence" >&5
7795echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7796cat >conftest.$ac_ext <<_ACEOF
7797/* confdefs.h. */
7798_ACEOF
7799cat confdefs.h >>conftest.$ac_ext
7800cat >>conftest.$ac_ext <<_ACEOF
7801/* end confdefs.h. */
7802#include <$ac_header>
7803_ACEOF
7804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } >/dev/null; then
7812 if test -s conftest.err; then
7813 ac_cpp_err=$ac_c_preproc_warn_flag
7814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7815 else
7816 ac_cpp_err=
7817 fi
9a156167 7818else
bec39cab
AC
7819 ac_cpp_err=yes
7820fi
7821if test -z "$ac_cpp_err"; then
7822 ac_header_preproc=yes
9a156167 7823else
bec39cab
AC
7824 echo "$as_me: failed program was:" >&5
7825sed 's/^/| /' conftest.$ac_ext >&5
7826
7827 ac_header_preproc=no
9a156167 7828fi
bec39cab 7829rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7830echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7831echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7832
7833# So? What about this header?
7834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7835 yes:no: )
7836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7837echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7839echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7840 ac_header_preproc=yes
7841 ;;
7842 no:yes:* )
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7846echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7848echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7850echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7854echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7855 (
7856 cat <<\_ASBOX
7857## ------------------------------------------ ##
7858## Report this to the AC_PACKAGE_NAME lists. ##
7859## ------------------------------------------ ##
7860_ASBOX
7861 ) |
7862 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7863 ;;
7864esac
b4e70030
JB
7865echo "$as_me:$LINENO: checking for $ac_header" >&5
7866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7867if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7868 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7869else
bec39cab 7870 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7871fi
b4e70030
JB
7872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7874
9a156167 7875fi
bec39cab
AC
7876if test `eval echo '${'$as_ac_Header'}'` = yes; then
7877 cat >>confdefs.h <<_ACEOF
7878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7879_ACEOF
9a156167 7880
9a156167
MK
7881fi
7882
bec39cab
AC
7883done
7884
06825bd1 7885
bec39cab
AC
7886for ac_header in stdint.h
7887do
7888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7889if eval "test \"\${$as_ac_Header+set}\" = set"; then
7890 echo "$as_me:$LINENO: checking for $ac_header" >&5
7891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7892if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894fi
b4e70030
JB
7895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7897else
7898 # Is the header compilable?
b4e70030
JB
7899echo "$as_me:$LINENO: checking $ac_header usability" >&5
7900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7901cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h. */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h. */
7907$ac_includes_default
7908#include <$ac_header>
7909_ACEOF
7910rm -f conftest.$ac_objext
7911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7912 (eval $ac_compile) 2>conftest.er1
7913 ac_status=$?
7914 grep -v '^ *+' conftest.er1 >conftest.err
7915 rm -f conftest.er1
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
b4e70030
JB
7919 { ac_try='test -z "$ac_c_werror_flag"
7920 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
7926 { ac_try='test -s conftest.$ac_objext'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; }; then
7932 ac_header_compiler=yes
7933else
7934 echo "$as_me: failed program was:" >&5
7935sed 's/^/| /' conftest.$ac_ext >&5
7936
b4e70030 7937ac_header_compiler=no
bec39cab
AC
7938fi
7939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7940echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7941echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7942
7943# Is the header present?
b4e70030
JB
7944echo "$as_me:$LINENO: checking $ac_header presence" >&5
7945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7946cat >conftest.$ac_ext <<_ACEOF
7947/* confdefs.h. */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
7951/* end confdefs.h. */
7952#include <$ac_header>
7953_ACEOF
7954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } >/dev/null; then
7962 if test -s conftest.err; then
7963 ac_cpp_err=$ac_c_preproc_warn_flag
7964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7965 else
7966 ac_cpp_err=
7967 fi
06825bd1 7968else
bec39cab
AC
7969 ac_cpp_err=yes
7970fi
7971if test -z "$ac_cpp_err"; then
7972 ac_header_preproc=yes
06825bd1 7973else
bec39cab
AC
7974 echo "$as_me: failed program was:" >&5
7975sed 's/^/| /' conftest.$ac_ext >&5
7976
7977 ac_header_preproc=no
06825bd1 7978fi
bec39cab 7979rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7980echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7981echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7982
7983# So? What about this header?
7984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7985 yes:no: )
7986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7989echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7990 ac_header_preproc=yes
7991 ;;
7992 no:yes:* )
7993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7994echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7996echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7998echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8000echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8002echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8004echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8005 (
8006 cat <<\_ASBOX
8007## ------------------------------------------ ##
8008## Report this to the AC_PACKAGE_NAME lists. ##
8009## ------------------------------------------ ##
8010_ASBOX
8011 ) |
8012 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8013 ;;
8014esac
b4e70030
JB
8015echo "$as_me:$LINENO: checking for $ac_header" >&5
8016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8017if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8018 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8019else
bec39cab 8020 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8021fi
b4e70030
JB
8022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8023echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8024
06825bd1 8025fi
bec39cab
AC
8026if test `eval echo '${'$as_ac_Header'}'` = yes; then
8027 cat >>confdefs.h <<_ACEOF
8028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8029_ACEOF
06825bd1 8030
06825bd1 8031fi
4f0be353 8032
bec39cab 8033done
4f0be353 8034
06825bd1 8035
06825bd1 8036
bec39cab
AC
8037
8038for ac_header in string.h memory.h strings.h
8039do
8040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8041if eval "test \"\${$as_ac_Header+set}\" = set"; then
8042 echo "$as_me:$LINENO: checking for $ac_header" >&5
8043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8044if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046fi
b4e70030
JB
8047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8049else
8050 # Is the header compilable?
b4e70030
JB
8051echo "$as_me:$LINENO: checking $ac_header usability" >&5
8052echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8053cat >conftest.$ac_ext <<_ACEOF
8054/* confdefs.h. */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h. */
8059$ac_includes_default
8060#include <$ac_header>
8061_ACEOF
8062rm -f conftest.$ac_objext
8063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064 (eval $ac_compile) 2>conftest.er1
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
b4e70030
JB
8071 { ac_try='test -z "$ac_c_werror_flag"
8072 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
8078 { ac_try='test -s conftest.$ac_objext'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8084 ac_header_compiler=yes
8085else
8086 echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
b4e70030 8089ac_header_compiler=no
bec39cab
AC
8090fi
8091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8092echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8093echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8094
8095# Is the header present?
b4e70030
JB
8096echo "$as_me:$LINENO: checking $ac_header presence" >&5
8097echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8098cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h. */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h. */
8104#include <$ac_header>
8105_ACEOF
8106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } >/dev/null; then
8114 if test -s conftest.err; then
8115 ac_cpp_err=$ac_c_preproc_warn_flag
8116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8117 else
8118 ac_cpp_err=
8119 fi
06825bd1 8120else
bec39cab
AC
8121 ac_cpp_err=yes
8122fi
8123if test -z "$ac_cpp_err"; then
8124 ac_header_preproc=yes
06825bd1 8125else
bec39cab
AC
8126 echo "$as_me: failed program was:" >&5
8127sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 ac_header_preproc=no
06825bd1 8130fi
bec39cab 8131rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8132echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8133echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8134
8135# So? What about this header?
8136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8137 yes:no: )
8138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8139echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8141echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8142 ac_header_preproc=yes
8143 ;;
8144 no:yes:* )
8145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8146echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8148echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8150echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8152echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8154echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8156echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8157 (
8158 cat <<\_ASBOX
8159## ------------------------------------------ ##
8160## Report this to the AC_PACKAGE_NAME lists. ##
8161## ------------------------------------------ ##
8162_ASBOX
8163 ) |
8164 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8165 ;;
8166esac
b4e70030
JB
8167echo "$as_me:$LINENO: checking for $ac_header" >&5
8168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8169if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8171else
8172 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8173fi
b4e70030
JB
8174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8176
06825bd1 8177fi
bec39cab
AC
8178if test `eval echo '${'$as_ac_Header'}'` = yes; then
8179 cat >>confdefs.h <<_ACEOF
8180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8181_ACEOF
06825bd1 8182
06825bd1
MK
8183fi
8184
bec39cab 8185done
5ee754fc 8186
bec39cab
AC
8187
8188for ac_header in sys/fault.h
5ee754fc 8189do
bec39cab 8190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8191if eval "test \"\${$as_ac_Header+set}\" = set"; then
8192 echo "$as_me:$LINENO: checking for $ac_header" >&5
8193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8194if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196fi
b4e70030
JB
8197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8199else
8200 # Is the header compilable?
b4e70030
JB
8201echo "$as_me:$LINENO: checking $ac_header usability" >&5
8202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8203cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h. */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h. */
8209$ac_includes_default
8210#include <$ac_header>
8211_ACEOF
8212rm -f conftest.$ac_objext
8213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8214 (eval $ac_compile) 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
b4e70030
JB
8221 { ac_try='test -z "$ac_c_werror_flag"
8222 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
8228 { ac_try='test -s conftest.$ac_objext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_header_compiler=yes
8235else
8236 echo "$as_me: failed program was:" >&5
8237sed 's/^/| /' conftest.$ac_ext >&5
8238
b4e70030 8239ac_header_compiler=no
bec39cab
AC
8240fi
8241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8243echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8244
8245# Is the header present?
b4e70030
JB
8246echo "$as_me:$LINENO: checking $ac_header presence" >&5
8247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8248cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */
8254#include <$ac_header>
8255_ACEOF
8256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } >/dev/null; then
8264 if test -s conftest.err; then
8265 ac_cpp_err=$ac_c_preproc_warn_flag
8266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8267 else
8268 ac_cpp_err=
8269 fi
5ee754fc 8270else
bec39cab 8271 ac_cpp_err=yes
5ee754fc 8272fi
bec39cab
AC
8273if test -z "$ac_cpp_err"; then
8274 ac_header_preproc=yes
8275else
8276 echo "$as_me: failed program was:" >&5
8277sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8278
bec39cab 8279 ac_header_preproc=no
5ee754fc 8280fi
bec39cab 8281rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8283echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8284
8285# So? What about this header?
8286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8287 yes:no: )
8288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8292 ac_header_preproc=yes
8293 ;;
8294 no:yes:* )
8295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8298echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8302echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8307 (
8308 cat <<\_ASBOX
8309## ------------------------------------------ ##
8310## Report this to the AC_PACKAGE_NAME lists. ##
8311## ------------------------------------------ ##
8312_ASBOX
8313 ) |
8314 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8315 ;;
8316esac
b4e70030
JB
8317echo "$as_me:$LINENO: checking for $ac_header" >&5
8318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8319if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8320 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8321else
bec39cab 8322 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8323fi
b4e70030
JB
8324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8326
5ee754fc 8327fi
bec39cab
AC
8328if test `eval echo '${'$as_ac_Header'}'` = yes; then
8329 cat >>confdefs.h <<_ACEOF
8330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8331_ACEOF
c906108c 8332
5ee754fc 8333fi
bec39cab
AC
8334
8335done
8336
8337
8338for ac_header in sys/file.h
8339do
8340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8341if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342 echo "$as_me:$LINENO: checking for $ac_header" >&5
8343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8344if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346fi
b4e70030
JB
8347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8349else
8350 # Is the header compilable?
b4e70030
JB
8351echo "$as_me:$LINENO: checking $ac_header usability" >&5
8352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8353cat >conftest.$ac_ext <<_ACEOF
8354/* confdefs.h. */
8355_ACEOF
8356cat confdefs.h >>conftest.$ac_ext
8357cat >>conftest.$ac_ext <<_ACEOF
8358/* end confdefs.h. */
8359$ac_includes_default
8360#include <$ac_header>
8361_ACEOF
8362rm -f conftest.$ac_objext
8363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364 (eval $ac_compile) 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
b4e70030
JB
8371 { ac_try='test -z "$ac_c_werror_flag"
8372 || test ! -s conftest.err'
bec39cab
AC
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 ac_header_compiler=yes
8385else
8386 echo "$as_me: failed program was:" >&5
8387sed 's/^/| /' conftest.$ac_ext >&5
8388
b4e70030 8389ac_header_compiler=no
bec39cab
AC
8390fi
8391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8393echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8394
8395# Is the header present?
b4e70030
JB
8396echo "$as_me:$LINENO: checking $ac_header presence" >&5
8397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8398cat >conftest.$ac_ext <<_ACEOF
8399/* confdefs.h. */
8400_ACEOF
8401cat confdefs.h >>conftest.$ac_ext
8402cat >>conftest.$ac_ext <<_ACEOF
8403/* end confdefs.h. */
8404#include <$ac_header>
8405_ACEOF
8406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } >/dev/null; then
8414 if test -s conftest.err; then
8415 ac_cpp_err=$ac_c_preproc_warn_flag
8416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8417 else
8418 ac_cpp_err=
8419 fi
5ee754fc 8420else
bec39cab 8421 ac_cpp_err=yes
5ee754fc 8422fi
bec39cab
AC
8423if test -z "$ac_cpp_err"; then
8424 ac_header_preproc=yes
8425else
8426 echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8428
bec39cab 8429 ac_header_preproc=no
5ee754fc 8430fi
bec39cab 8431rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8433echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8434
bec39cab
AC
8435# So? What about this header?
8436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8437 yes:no: )
8438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8442 ac_header_preproc=yes
8443 ;;
8444 no:yes:* )
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8457 (
8458 cat <<\_ASBOX
8459## ------------------------------------------ ##
8460## Report this to the AC_PACKAGE_NAME lists. ##
8461## ------------------------------------------ ##
8462_ASBOX
8463 ) |
8464 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8465 ;;
8466esac
b4e70030
JB
8467echo "$as_me:$LINENO: checking for $ac_header" >&5
8468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8470 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8471else
bec39cab
AC
8472 eval "$as_ac_Header=\$ac_header_preproc"
8473fi
b4e70030
JB
8474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8476
bec39cab
AC
8477fi
8478if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481_ACEOF
5ee754fc 8482
bec39cab 8483fi
5ee754fc 8484
bec39cab 8485done
5ee754fc 8486
5ee754fc 8487
bec39cab
AC
8488for ac_header in sys/filio.h
8489do
8490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8491if eval "test \"\${$as_ac_Header+set}\" = set"; then
8492 echo "$as_me:$LINENO: checking for $ac_header" >&5
8493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8494if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496fi
b4e70030
JB
8497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8499else
8500 # Is the header compilable?
b4e70030
JB
8501echo "$as_me:$LINENO: checking $ac_header usability" >&5
8502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8503cat >conftest.$ac_ext <<_ACEOF
8504/* confdefs.h. */
8505_ACEOF
8506cat confdefs.h >>conftest.$ac_ext
8507cat >>conftest.$ac_ext <<_ACEOF
8508/* end confdefs.h. */
8509$ac_includes_default
8510#include <$ac_header>
8511_ACEOF
8512rm -f conftest.$ac_objext
8513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514 (eval $ac_compile) 2>conftest.er1
8515 ac_status=$?
8516 grep -v '^ *+' conftest.er1 >conftest.err
8517 rm -f conftest.er1
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
b4e70030
JB
8521 { ac_try='test -z "$ac_c_werror_flag"
8522 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
8528 { ac_try='test -s conftest.$ac_objext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_header_compiler=yes
8535else
8536 echo "$as_me: failed program was:" >&5
8537sed 's/^/| /' conftest.$ac_ext >&5
8538
b4e70030 8539ac_header_compiler=no
bec39cab
AC
8540fi
8541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8543echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8544
8545# Is the header present?
b4e70030
JB
8546echo "$as_me:$LINENO: checking $ac_header presence" >&5
8547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8548cat >conftest.$ac_ext <<_ACEOF
8549/* confdefs.h. */
8550_ACEOF
8551cat confdefs.h >>conftest.$ac_ext
8552cat >>conftest.$ac_ext <<_ACEOF
8553/* end confdefs.h. */
8554#include <$ac_header>
8555_ACEOF
8556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8558 ac_status=$?
8559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } >/dev/null; then
8564 if test -s conftest.err; then
8565 ac_cpp_err=$ac_c_preproc_warn_flag
8566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8567 else
8568 ac_cpp_err=
8569 fi
5ee754fc 8570else
bec39cab 8571 ac_cpp_err=yes
5ee754fc 8572fi
bec39cab
AC
8573if test -z "$ac_cpp_err"; then
8574 ac_header_preproc=yes
8575else
8576 echo "$as_me: failed program was:" >&5
8577sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8578
bec39cab 8579 ac_header_preproc=no
5ee754fc 8580fi
bec39cab 8581rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8583echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8584
bec39cab
AC
8585# So? What about this header?
8586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8587 yes:no: )
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8592 ac_header_preproc=yes
8593 ;;
8594 no:yes:* )
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8598echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8602echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8607 (
8608 cat <<\_ASBOX
8609## ------------------------------------------ ##
8610## Report this to the AC_PACKAGE_NAME lists. ##
8611## ------------------------------------------ ##
8612_ASBOX
8613 ) |
8614 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8615 ;;
8616esac
b4e70030
JB
8617echo "$as_me:$LINENO: checking for $ac_header" >&5
8618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8619if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8620 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8621else
bec39cab 8622 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8623fi
b4e70030
JB
8624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8626
5ee754fc 8627fi
bec39cab
AC
8628if test `eval echo '${'$as_ac_Header'}'` = yes; then
8629 cat >>confdefs.h <<_ACEOF
8630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8631_ACEOF
5ee754fc
MK
8632
8633fi
8634
bec39cab
AC
8635done
8636
8637
8638for ac_header in sys/ioctl.h
8639do
8640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8641if eval "test \"\${$as_ac_Header+set}\" = set"; then
8642 echo "$as_me:$LINENO: checking for $ac_header" >&5
8643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8644if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646fi
b4e70030
JB
8647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8649else
8650 # Is the header compilable?
b4e70030
JB
8651echo "$as_me:$LINENO: checking $ac_header usability" >&5
8652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8653cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659$ac_includes_default
8660#include <$ac_header>
8661_ACEOF
8662rm -f conftest.$ac_objext
8663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664 (eval $ac_compile) 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
b4e70030
JB
8671 { ac_try='test -z "$ac_c_werror_flag"
8672 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
8678 { ac_try='test -s conftest.$ac_objext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 ac_header_compiler=yes
8685else
8686 echo "$as_me: failed program was:" >&5
8687sed 's/^/| /' conftest.$ac_ext >&5
8688
b4e70030 8689ac_header_compiler=no
bec39cab
AC
8690fi
8691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8692echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8693echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8694
8695# Is the header present?
b4e70030
JB
8696echo "$as_me:$LINENO: checking $ac_header presence" >&5
8697echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8698cat >conftest.$ac_ext <<_ACEOF
8699/* confdefs.h. */
8700_ACEOF
8701cat confdefs.h >>conftest.$ac_ext
8702cat >>conftest.$ac_ext <<_ACEOF
8703/* end confdefs.h. */
8704#include <$ac_header>
8705_ACEOF
8706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } >/dev/null; then
8714 if test -s conftest.err; then
8715 ac_cpp_err=$ac_c_preproc_warn_flag
8716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8717 else
8718 ac_cpp_err=
8719 fi
5ee754fc 8720else
bec39cab 8721 ac_cpp_err=yes
5ee754fc 8722fi
bec39cab
AC
8723if test -z "$ac_cpp_err"; then
8724 ac_header_preproc=yes
8725else
8726 echo "$as_me: failed program was:" >&5
8727sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8728
bec39cab 8729 ac_header_preproc=no
5ee754fc 8730fi
bec39cab 8731rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8732echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8733echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8734
bec39cab
AC
8735# So? What about this header?
8736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8737 yes:no: )
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8741echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8742 ac_header_preproc=yes
8743 ;;
8744 no:yes:* )
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8746echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8748echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8750echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8752echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8756echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8757 (
8758 cat <<\_ASBOX
8759## ------------------------------------------ ##
8760## Report this to the AC_PACKAGE_NAME lists. ##
8761## ------------------------------------------ ##
8762_ASBOX
8763 ) |
8764 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8765 ;;
8766esac
b4e70030
JB
8767echo "$as_me:$LINENO: checking for $ac_header" >&5
8768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8769if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8770 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8771else
bec39cab 8772 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8773fi
b4e70030
JB
8774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
8776
8777fi
bec39cab
AC
8778if test `eval echo '${'$as_ac_Header'}'` = yes; then
8779 cat >>confdefs.h <<_ACEOF
8780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8781_ACEOF
8782
5ee754fc
MK
8783fi
8784
bec39cab 8785done
5ee754fc 8786
5ee754fc 8787
bec39cab 8788for ac_header in sys/param.h
5ee754fc 8789do
bec39cab 8790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8791if eval "test \"\${$as_ac_Header+set}\" = set"; then
8792 echo "$as_me:$LINENO: checking for $ac_header" >&5
8793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8794if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8796fi
b4e70030
JB
8797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8799else
8800 # Is the header compilable?
b4e70030
JB
8801echo "$as_me:$LINENO: checking $ac_header usability" >&5
8802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8803cat >conftest.$ac_ext <<_ACEOF
8804/* confdefs.h. */
8805_ACEOF
8806cat confdefs.h >>conftest.$ac_ext
8807cat >>conftest.$ac_ext <<_ACEOF
8808/* end confdefs.h. */
8809$ac_includes_default
8810#include <$ac_header>
8811_ACEOF
8812rm -f conftest.$ac_objext
8813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8814 (eval $ac_compile) 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
b4e70030
JB
8821 { ac_try='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
8828 { ac_try='test -s conftest.$ac_objext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_header_compiler=yes
8835else
8836 echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
b4e70030 8839ac_header_compiler=no
bec39cab
AC
8840fi
8841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8842echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8843echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8844
8845# Is the header present?
b4e70030
JB
8846echo "$as_me:$LINENO: checking $ac_header presence" >&5
8847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8848cat >conftest.$ac_ext <<_ACEOF
8849/* confdefs.h. */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h. */
8854#include <$ac_header>
8855_ACEOF
8856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8858 ac_status=$?
8859 grep -v '^ *+' conftest.er1 >conftest.err
8860 rm -f conftest.er1
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } >/dev/null; then
8864 if test -s conftest.err; then
8865 ac_cpp_err=$ac_c_preproc_warn_flag
8866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8867 else
8868 ac_cpp_err=
8869 fi
5ee754fc 8870else
bec39cab 8871 ac_cpp_err=yes
5ee754fc 8872fi
bec39cab
AC
8873if test -z "$ac_cpp_err"; then
8874 ac_header_preproc=yes
8875else
8876 echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8878
bec39cab 8879 ac_header_preproc=no
5ee754fc 8880fi
bec39cab 8881rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8883echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8884
8885# So? What about this header?
8886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8887 yes:no: )
8888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8892 ac_header_preproc=yes
8893 ;;
8894 no:yes:* )
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8907 (
8908 cat <<\_ASBOX
8909## ------------------------------------------ ##
8910## Report this to the AC_PACKAGE_NAME lists. ##
8911## ------------------------------------------ ##
8912_ASBOX
8913 ) |
8914 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8915 ;;
8916esac
b4e70030
JB
8917echo "$as_me:$LINENO: checking for $ac_header" >&5
8918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8919if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8920 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8921else
bec39cab 8922 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8923fi
b4e70030
JB
8924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8926
5ee754fc 8927fi
bec39cab
AC
8928if test `eval echo '${'$as_ac_Header'}'` = yes; then
8929 cat >>confdefs.h <<_ACEOF
8930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8931_ACEOF
8932
5ee754fc 8933fi
bec39cab 8934
5ee754fc
MK
8935done
8936
bec39cab
AC
8937
8938for ac_header in sys/proc.h
5ee754fc 8939do
bec39cab 8940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8941echo "$as_me:$LINENO: checking for $ac_header" >&5
8942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8944 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 8945else
7cb9022a 8946 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
8947/* confdefs.h. */
8948_ACEOF
8949cat confdefs.h >>conftest.$ac_ext
8950cat >>conftest.$ac_ext <<_ACEOF
8951/* end confdefs.h. */
7cb9022a
MK
8952#if HAVE_SYS_PARAM_H
8953# include <sys/param.h>
8954#endif
8955
8956
bec39cab
AC
8957#include <$ac_header>
8958_ACEOF
8959rm -f conftest.$ac_objext
8960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961 (eval $ac_compile) 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
b4e70030
JB
8968 { ac_try='test -z "$ac_c_werror_flag"
8969 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
8975 { ac_try='test -s conftest.$ac_objext'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
7cb9022a 8981 eval "$as_ac_Header=yes"
bec39cab
AC
8982else
8983 echo "$as_me: failed program was:" >&5
8984sed 's/^/| /' conftest.$ac_ext >&5
8985
b4e70030 8986eval "$as_ac_Header=no"
bec39cab
AC
8987fi
8988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 8989fi
b4e70030
JB
8990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8992if test `eval echo '${'$as_ac_Header'}'` = yes; then
8993 cat >>confdefs.h <<_ACEOF
8994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8995_ACEOF
8996
5ee754fc 8997fi
bec39cab 8998
5ee754fc
MK
8999done
9000
bec39cab
AC
9001
9002for ac_header in sys/procfs.h
5ee754fc 9003do
bec39cab 9004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9005if eval "test \"\${$as_ac_Header+set}\" = set"; then
9006 echo "$as_me:$LINENO: checking for $ac_header" >&5
9007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9008if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9010fi
b4e70030
JB
9011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9013else
9014 # Is the header compilable?
b4e70030
JB
9015echo "$as_me:$LINENO: checking $ac_header usability" >&5
9016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9017cat >conftest.$ac_ext <<_ACEOF
9018/* confdefs.h. */
9019_ACEOF
9020cat confdefs.h >>conftest.$ac_ext
9021cat >>conftest.$ac_ext <<_ACEOF
9022/* end confdefs.h. */
9023$ac_includes_default
9024#include <$ac_header>
9025_ACEOF
9026rm -f conftest.$ac_objext
9027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
b4e70030
JB
9035 { ac_try='test -z "$ac_c_werror_flag"
9036 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
9042 { ac_try='test -s conftest.$ac_objext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 ac_header_compiler=yes
9049else
9050 echo "$as_me: failed program was:" >&5
9051sed 's/^/| /' conftest.$ac_ext >&5
9052
b4e70030 9053ac_header_compiler=no
bec39cab
AC
9054fi
9055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9056echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9057echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9058
9059# Is the header present?
b4e70030
JB
9060echo "$as_me:$LINENO: checking $ac_header presence" >&5
9061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9062cat >conftest.$ac_ext <<_ACEOF
9063/* confdefs.h. */
9064_ACEOF
9065cat confdefs.h >>conftest.$ac_ext
9066cat >>conftest.$ac_ext <<_ACEOF
9067/* end confdefs.h. */
9068#include <$ac_header>
9069_ACEOF
9070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } >/dev/null; then
9078 if test -s conftest.err; then
9079 ac_cpp_err=$ac_c_preproc_warn_flag
9080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9081 else
9082 ac_cpp_err=
9083 fi
9084else
9085 ac_cpp_err=yes
5ee754fc 9086fi
bec39cab
AC
9087if test -z "$ac_cpp_err"; then
9088 ac_header_preproc=yes
5ee754fc 9089else
bec39cab
AC
9090 echo "$as_me: failed program was:" >&5
9091sed 's/^/| /' conftest.$ac_ext >&5
9092
9093 ac_header_preproc=no
5ee754fc 9094fi
bec39cab 9095rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9096echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9097echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9098
bec39cab
AC
9099# So? What about this header?
9100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9101 yes:no: )
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9103echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9105echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9106 ac_header_preproc=yes
9107 ;;
9108 no:yes:* )
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9110echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9112echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9114echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9116echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9118echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9120echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9121 (
9122 cat <<\_ASBOX
9123## ------------------------------------------ ##
9124## Report this to the AC_PACKAGE_NAME lists. ##
9125## ------------------------------------------ ##
9126_ASBOX
9127 ) |
9128 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9129 ;;
9130esac
b4e70030
JB
9131echo "$as_me:$LINENO: checking for $ac_header" >&5
9132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9133if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135else
9136 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9137fi
b4e70030
JB
9138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9140
5ee754fc 9141fi
bec39cab
AC
9142if test `eval echo '${'$as_ac_Header'}'` = yes; then
9143 cat >>confdefs.h <<_ACEOF
9144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9145_ACEOF
9146
5ee754fc 9147fi
bec39cab 9148
5ee754fc
MK
9149done
9150
bec39cab
AC
9151
9152
9153for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9154do
bec39cab 9155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9156if eval "test \"\${$as_ac_Header+set}\" = set"; then
9157 echo "$as_me:$LINENO: checking for $ac_header" >&5
9158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9159if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9161fi
b4e70030
JB
9162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9164else
9165 # Is the header compilable?
b4e70030
JB
9166echo "$as_me:$LINENO: checking $ac_header usability" >&5
9167echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9168cat >conftest.$ac_ext <<_ACEOF
9169/* confdefs.h. */
9170_ACEOF
9171cat confdefs.h >>conftest.$ac_ext
9172cat >>conftest.$ac_ext <<_ACEOF
9173/* end confdefs.h. */
9174$ac_includes_default
9175#include <$ac_header>
9176_ACEOF
9177rm -f conftest.$ac_objext
9178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
b4e70030
JB
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_header_compiler=yes
9200else
9201 echo "$as_me: failed program was:" >&5
9202sed 's/^/| /' conftest.$ac_ext >&5
9203
b4e70030 9204ac_header_compiler=no
bec39cab
AC
9205fi
9206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9207echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9208echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9209
9210# Is the header present?
b4e70030
JB
9211echo "$as_me:$LINENO: checking $ac_header presence" >&5
9212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9213cat >conftest.$ac_ext <<_ACEOF
9214/* confdefs.h. */
9215_ACEOF
9216cat confdefs.h >>conftest.$ac_ext
9217cat >>conftest.$ac_ext <<_ACEOF
9218/* end confdefs.h. */
9219#include <$ac_header>
9220_ACEOF
9221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9223 ac_status=$?
9224 grep -v '^ *+' conftest.er1 >conftest.err
9225 rm -f conftest.er1
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } >/dev/null; then
9229 if test -s conftest.err; then
9230 ac_cpp_err=$ac_c_preproc_warn_flag
9231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9232 else
9233 ac_cpp_err=
9234 fi
9235else
9236 ac_cpp_err=yes
5ee754fc 9237fi
bec39cab
AC
9238if test -z "$ac_cpp_err"; then
9239 ac_header_preproc=yes
5ee754fc 9240else
bec39cab
AC
9241 echo "$as_me: failed program was:" >&5
9242sed 's/^/| /' conftest.$ac_ext >&5
9243
9244 ac_header_preproc=no
5ee754fc 9245fi
bec39cab 9246rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9247echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9248echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9249
bec39cab
AC
9250# So? What about this header?
9251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9252 yes:no: )
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9257 ac_header_preproc=yes
9258 ;;
9259 no:yes:* )
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9272 (
9273 cat <<\_ASBOX
9274## ------------------------------------------ ##
9275## Report this to the AC_PACKAGE_NAME lists. ##
9276## ------------------------------------------ ##
9277_ASBOX
9278 ) |
9279 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9280 ;;
9281esac
b4e70030
JB
9282echo "$as_me:$LINENO: checking for $ac_header" >&5
9283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9284if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286else
9287 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9288fi
b4e70030
JB
9289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9291
5ee754fc 9292fi
bec39cab
AC
9293if test `eval echo '${'$as_ac_Header'}'` = yes; then
9294 cat >>confdefs.h <<_ACEOF
9295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9296_ACEOF
9297
5ee754fc 9298fi
bec39cab 9299
5ee754fc
MK
9300done
9301
bec39cab
AC
9302
9303
9304for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9305do
bec39cab 9306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9307if eval "test \"\${$as_ac_Header+set}\" = set"; then
9308 echo "$as_me:$LINENO: checking for $ac_header" >&5
9309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9310if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9312fi
b4e70030
JB
9313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9315else
9316 # Is the header compilable?
b4e70030
JB
9317echo "$as_me:$LINENO: checking $ac_header usability" >&5
9318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9319cat >conftest.$ac_ext <<_ACEOF
9320/* confdefs.h. */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h. */
9325$ac_includes_default
9326#include <$ac_header>
9327_ACEOF
9328rm -f conftest.$ac_objext
9329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9330 (eval $ac_compile) 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
b4e70030
JB
9337 { ac_try='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
9344 { ac_try='test -s conftest.$ac_objext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 (eval $ac_try) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_header_compiler=yes
9351else
9352 echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
b4e70030 9355ac_header_compiler=no
bec39cab
AC
9356fi
9357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9359echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9360
9361# Is the header present?
b4e70030
JB
9362echo "$as_me:$LINENO: checking $ac_header presence" >&5
9363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9364cat >conftest.$ac_ext <<_ACEOF
9365/* confdefs.h. */
9366_ACEOF
9367cat confdefs.h >>conftest.$ac_ext
9368cat >>conftest.$ac_ext <<_ACEOF
9369/* end confdefs.h. */
9370#include <$ac_header>
9371_ACEOF
9372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9374 ac_status=$?
9375 grep -v '^ *+' conftest.er1 >conftest.err
9376 rm -f conftest.er1
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } >/dev/null; then
9380 if test -s conftest.err; then
9381 ac_cpp_err=$ac_c_preproc_warn_flag
9382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9383 else
9384 ac_cpp_err=
9385 fi
9386else
9387 ac_cpp_err=yes
5ee754fc 9388fi
bec39cab
AC
9389if test -z "$ac_cpp_err"; then
9390 ac_header_preproc=yes
5ee754fc 9391else
bec39cab
AC
9392 echo "$as_me: failed program was:" >&5
9393sed 's/^/| /' conftest.$ac_ext >&5
9394
9395 ac_header_preproc=no
5ee754fc 9396fi
bec39cab 9397rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9399echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9400
bec39cab
AC
9401# So? What about this header?
9402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9403 yes:no: )
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9408 ac_header_preproc=yes
9409 ;;
9410 no:yes:* )
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9418echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9423 (
9424 cat <<\_ASBOX
9425## ------------------------------------------ ##
9426## Report this to the AC_PACKAGE_NAME lists. ##
9427## ------------------------------------------ ##
9428_ASBOX
9429 ) |
9430 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9431 ;;
9432esac
b4e70030
JB
9433echo "$as_me:$LINENO: checking for $ac_header" >&5
9434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9435if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9437else
9438 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9439fi
b4e70030
JB
9440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9442
5ee754fc 9443fi
bec39cab
AC
9444if test `eval echo '${'$as_ac_Header'}'` = yes; then
9445 cat >>confdefs.h <<_ACEOF
9446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9447_ACEOF
9448
5ee754fc 9449fi
bec39cab 9450
5ee754fc
MK
9451done
9452
bec39cab
AC
9453
9454for ac_header in sys/select.h
5ee754fc 9455do
bec39cab 9456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9457if eval "test \"\${$as_ac_Header+set}\" = set"; then
9458 echo "$as_me:$LINENO: checking for $ac_header" >&5
9459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9460if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9462fi
b4e70030
JB
9463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9465else
9466 # Is the header compilable?
b4e70030
JB
9467echo "$as_me:$LINENO: checking $ac_header usability" >&5
9468echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9469cat >conftest.$ac_ext <<_ACEOF
9470/* confdefs.h. */
9471_ACEOF
9472cat confdefs.h >>conftest.$ac_ext
9473cat >>conftest.$ac_ext <<_ACEOF
9474/* end confdefs.h. */
9475$ac_includes_default
9476#include <$ac_header>
9477_ACEOF
9478rm -f conftest.$ac_objext
9479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
b4e70030
JB
9487 { ac_try='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_header_compiler=yes
9501else
9502 echo "$as_me: failed program was:" >&5
9503sed 's/^/| /' conftest.$ac_ext >&5
9504
b4e70030 9505ac_header_compiler=no
bec39cab
AC
9506fi
9507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9509echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9510
9511# Is the header present?
b4e70030
JB
9512echo "$as_me:$LINENO: checking $ac_header presence" >&5
9513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9514cat >conftest.$ac_ext <<_ACEOF
9515/* confdefs.h. */
9516_ACEOF
9517cat confdefs.h >>conftest.$ac_ext
9518cat >>conftest.$ac_ext <<_ACEOF
9519/* end confdefs.h. */
9520#include <$ac_header>
9521_ACEOF
9522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9524 ac_status=$?
9525 grep -v '^ *+' conftest.er1 >conftest.err
9526 rm -f conftest.er1
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } >/dev/null; then
9530 if test -s conftest.err; then
9531 ac_cpp_err=$ac_c_preproc_warn_flag
9532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9533 else
9534 ac_cpp_err=
9535 fi
9536else
9537 ac_cpp_err=yes
5ee754fc 9538fi
bec39cab
AC
9539if test -z "$ac_cpp_err"; then
9540 ac_header_preproc=yes
5ee754fc 9541else
bec39cab
AC
9542 echo "$as_me: failed program was:" >&5
9543sed 's/^/| /' conftest.$ac_ext >&5
9544
9545 ac_header_preproc=no
5ee754fc 9546fi
bec39cab 9547rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9549echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9550
bec39cab
AC
9551# So? What about this header?
9552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9553 yes:no: )
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9558 ac_header_preproc=yes
9559 ;;
9560 no:yes:* )
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9573 (
9574 cat <<\_ASBOX
9575## ------------------------------------------ ##
9576## Report this to the AC_PACKAGE_NAME lists. ##
9577## ------------------------------------------ ##
9578_ASBOX
9579 ) |
9580 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9581 ;;
9582esac
b4e70030
JB
9583echo "$as_me:$LINENO: checking for $ac_header" >&5
9584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9585if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587else
9588 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9589fi
b4e70030
JB
9590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9592
5ee754fc 9593fi
bec39cab
AC
9594if test `eval echo '${'$as_ac_Header'}'` = yes; then
9595 cat >>confdefs.h <<_ACEOF
9596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9597_ACEOF
9598
5ee754fc 9599fi
bec39cab 9600
5ee754fc
MK
9601done
9602
bec39cab
AC
9603
9604for ac_header in sys/syscall.h
5ee754fc 9605do
bec39cab 9606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9607if eval "test \"\${$as_ac_Header+set}\" = set"; then
9608 echo "$as_me:$LINENO: checking for $ac_header" >&5
9609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9610if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612fi
b4e70030
JB
9613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9615else
9616 # Is the header compilable?
b4e70030
JB
9617echo "$as_me:$LINENO: checking $ac_header usability" >&5
9618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9619cat >conftest.$ac_ext <<_ACEOF
9620/* confdefs.h. */
9621_ACEOF
9622cat confdefs.h >>conftest.$ac_ext
9623cat >>conftest.$ac_ext <<_ACEOF
9624/* end confdefs.h. */
9625$ac_includes_default
9626#include <$ac_header>
9627_ACEOF
9628rm -f conftest.$ac_objext
9629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9630 (eval $ac_compile) 2>conftest.er1
9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
b4e70030
JB
9637 { ac_try='test -z "$ac_c_werror_flag"
9638 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
9644 { ac_try='test -s conftest.$ac_objext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_header_compiler=yes
9651else
9652 echo "$as_me: failed program was:" >&5
9653sed 's/^/| /' conftest.$ac_ext >&5
9654
b4e70030 9655ac_header_compiler=no
bec39cab
AC
9656fi
9657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9658echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9659echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9660
9661# Is the header present?
b4e70030
JB
9662echo "$as_me:$LINENO: checking $ac_header presence" >&5
9663echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9664cat >conftest.$ac_ext <<_ACEOF
9665/* confdefs.h. */
9666_ACEOF
9667cat confdefs.h >>conftest.$ac_ext
9668cat >>conftest.$ac_ext <<_ACEOF
9669/* end confdefs.h. */
9670#include <$ac_header>
9671_ACEOF
9672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } >/dev/null; then
9680 if test -s conftest.err; then
9681 ac_cpp_err=$ac_c_preproc_warn_flag
9682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9683 else
9684 ac_cpp_err=
9685 fi
9686else
9687 ac_cpp_err=yes
5ee754fc 9688fi
bec39cab
AC
9689if test -z "$ac_cpp_err"; then
9690 ac_header_preproc=yes
5ee754fc 9691else
bec39cab
AC
9692 echo "$as_me: failed program was:" >&5
9693sed 's/^/| /' conftest.$ac_ext >&5
9694
9695 ac_header_preproc=no
5ee754fc 9696fi
bec39cab 9697rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9698echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9699echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9700
bec39cab
AC
9701# So? What about this header?
9702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9703 yes:no: )
9704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9705echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9707echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9708 ac_header_preproc=yes
9709 ;;
9710 no:yes:* )
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9712echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9714echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9716echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9718echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9720echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9722echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9723 (
9724 cat <<\_ASBOX
9725## ------------------------------------------ ##
9726## Report this to the AC_PACKAGE_NAME lists. ##
9727## ------------------------------------------ ##
9728_ASBOX
9729 ) |
9730 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9731 ;;
9732esac
b4e70030
JB
9733echo "$as_me:$LINENO: checking for $ac_header" >&5
9734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9735if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9739fi
b4e70030
JB
9740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9742
5ee754fc 9743fi
bec39cab
AC
9744if test `eval echo '${'$as_ac_Header'}'` = yes; then
9745 cat >>confdefs.h <<_ACEOF
9746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9747_ACEOF
9748
5ee754fc 9749fi
bec39cab 9750
5ee754fc
MK
9751done
9752
bec39cab
AC
9753
9754for ac_header in sys/types.h
5ee754fc 9755do
bec39cab 9756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9757if eval "test \"\${$as_ac_Header+set}\" = set"; then
9758 echo "$as_me:$LINENO: checking for $ac_header" >&5
9759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9760if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762fi
b4e70030
JB
9763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9765else
9766 # Is the header compilable?
b4e70030
JB
9767echo "$as_me:$LINENO: checking $ac_header usability" >&5
9768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9769cat >conftest.$ac_ext <<_ACEOF
9770/* confdefs.h. */
9771_ACEOF
9772cat confdefs.h >>conftest.$ac_ext
9773cat >>conftest.$ac_ext <<_ACEOF
9774/* end confdefs.h. */
9775$ac_includes_default
9776#include <$ac_header>
9777_ACEOF
9778rm -f conftest.$ac_objext
9779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9780 (eval $ac_compile) 2>conftest.er1
9781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
b4e70030
JB
9787 { ac_try='test -z "$ac_c_werror_flag"
9788 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
9794 { ac_try='test -s conftest.$ac_objext'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 (eval $ac_try) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }; then
9800 ac_header_compiler=yes
9801else
9802 echo "$as_me: failed program was:" >&5
9803sed 's/^/| /' conftest.$ac_ext >&5
9804
b4e70030 9805ac_header_compiler=no
bec39cab
AC
9806fi
9807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9809echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9810
9811# Is the header present?
b4e70030
JB
9812echo "$as_me:$LINENO: checking $ac_header presence" >&5
9813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9814cat >conftest.$ac_ext <<_ACEOF
9815/* confdefs.h. */
9816_ACEOF
9817cat confdefs.h >>conftest.$ac_ext
9818cat >>conftest.$ac_ext <<_ACEOF
9819/* end confdefs.h. */
9820#include <$ac_header>
9821_ACEOF
9822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } >/dev/null; then
9830 if test -s conftest.err; then
9831 ac_cpp_err=$ac_c_preproc_warn_flag
9832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9833 else
9834 ac_cpp_err=
9835 fi
9836else
9837 ac_cpp_err=yes
5ee754fc 9838fi
bec39cab
AC
9839if test -z "$ac_cpp_err"; then
9840 ac_header_preproc=yes
5ee754fc 9841else
bec39cab
AC
9842 echo "$as_me: failed program was:" >&5
9843sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 ac_header_preproc=no
5ee754fc 9846fi
bec39cab 9847rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9848echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9849echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9850
bec39cab
AC
9851# So? What about this header?
9852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9853 yes:no: )
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9858 ac_header_preproc=yes
9859 ;;
9860 no:yes:* )
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9873 (
9874 cat <<\_ASBOX
9875## ------------------------------------------ ##
9876## Report this to the AC_PACKAGE_NAME lists. ##
9877## ------------------------------------------ ##
9878_ASBOX
9879 ) |
9880 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9881 ;;
9882esac
b4e70030
JB
9883echo "$as_me:$LINENO: checking for $ac_header" >&5
9884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9885if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9887else
9888 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9889fi
b4e70030
JB
9890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9892
5ee754fc 9893fi
bec39cab
AC
9894if test `eval echo '${'$as_ac_Header'}'` = yes; then
9895 cat >>confdefs.h <<_ACEOF
9896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9897_ACEOF
9898
5ee754fc 9899fi
bec39cab 9900
5ee754fc
MK
9901done
9902
bec39cab
AC
9903
9904for ac_header in sys/user.h
5ee754fc 9905do
bec39cab 9906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9907echo "$as_me:$LINENO: checking for $ac_header" >&5
9908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9909if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9910 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9911else
7cb9022a 9912 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9913/* confdefs.h. */
9914_ACEOF
9915cat confdefs.h >>conftest.$ac_ext
9916cat >>conftest.$ac_ext <<_ACEOF
9917/* end confdefs.h. */
7cb9022a
MK
9918#if HAVE_SYS_PARAM_H
9919# include <sys/param.h>
9920#endif
9921
9922
bec39cab
AC
9923#include <$ac_header>
9924_ACEOF
9925rm -f conftest.$ac_objext
9926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9927 (eval $ac_compile) 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
b4e70030
JB
9934 { ac_try='test -z "$ac_c_werror_flag"
9935 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
9941 { ac_try='test -s conftest.$ac_objext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
7cb9022a 9947 eval "$as_ac_Header=yes"
bec39cab
AC
9948else
9949 echo "$as_me: failed program was:" >&5
9950sed 's/^/| /' conftest.$ac_ext >&5
9951
b4e70030 9952eval "$as_ac_Header=no"
bec39cab
AC
9953fi
9954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9955fi
b4e70030
JB
9956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9958if test `eval echo '${'$as_ac_Header'}'` = yes; then
9959 cat >>confdefs.h <<_ACEOF
9960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9961_ACEOF
9962
5ee754fc 9963fi
bec39cab 9964
5ee754fc
MK
9965done
9966
bec39cab
AC
9967
9968
9969for ac_header in sys/wait.h wait.h
5ee754fc 9970do
bec39cab 9971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9972if eval "test \"\${$as_ac_Header+set}\" = set"; then
9973 echo "$as_me:$LINENO: checking for $ac_header" >&5
9974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9975if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977fi
b4e70030
JB
9978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9980else
9981 # Is the header compilable?
b4e70030
JB
9982echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9984cat >conftest.$ac_ext <<_ACEOF
9985/* confdefs.h. */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h. */
9990$ac_includes_default
9991#include <$ac_header>
9992_ACEOF
9993rm -f conftest.$ac_objext
9994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995 (eval $ac_compile) 2>conftest.er1
9996 ac_status=$?
9997 grep -v '^ *+' conftest.er1 >conftest.err
9998 rm -f conftest.er1
9999 cat conftest.err >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
b4e70030
JB
10002 { ac_try='test -z "$ac_c_werror_flag"
10003 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
10009 { ac_try='test -s conftest.$ac_objext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_header_compiler=yes
10016else
10017 echo "$as_me: failed program was:" >&5
10018sed 's/^/| /' conftest.$ac_ext >&5
10019
b4e70030 10020ac_header_compiler=no
bec39cab
AC
10021fi
10022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10024echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10025
10026# Is the header present?
b4e70030
JB
10027echo "$as_me:$LINENO: checking $ac_header presence" >&5
10028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10029cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h. */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
10034/* end confdefs.h. */
10035#include <$ac_header>
10036_ACEOF
10037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } >/dev/null; then
10045 if test -s conftest.err; then
10046 ac_cpp_err=$ac_c_preproc_warn_flag
10047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10048 else
10049 ac_cpp_err=
10050 fi
10051else
10052 ac_cpp_err=yes
5ee754fc 10053fi
bec39cab
AC
10054if test -z "$ac_cpp_err"; then
10055 ac_header_preproc=yes
5ee754fc 10056else
bec39cab
AC
10057 echo "$as_me: failed program was:" >&5
10058sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 ac_header_preproc=no
5ee754fc 10061fi
bec39cab 10062rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10064echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10065
bec39cab
AC
10066# So? What about this header?
10067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10068 yes:no: )
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10073 ac_header_preproc=yes
10074 ;;
10075 no:yes:* )
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10083echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10088 (
10089 cat <<\_ASBOX
10090## ------------------------------------------ ##
10091## Report this to the AC_PACKAGE_NAME lists. ##
10092## ------------------------------------------ ##
10093_ASBOX
10094 ) |
10095 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10096 ;;
10097esac
b4e70030
JB
10098echo "$as_me:$LINENO: checking for $ac_header" >&5
10099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10100if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102else
10103 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10104fi
b4e70030
JB
10105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10107
9608ab8b 10108fi
bec39cab
AC
10109if test `eval echo '${'$as_ac_Header'}'` = yes; then
10110 cat >>confdefs.h <<_ACEOF
10111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10112_ACEOF
10113
9608ab8b 10114fi
bec39cab 10115
9608ab8b 10116done
5ee754fc 10117
bec39cab
AC
10118
10119
10120
10121for ac_header in termios.h termio.h sgtty.h
5ee754fc 10122do
bec39cab 10123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10124if eval "test \"\${$as_ac_Header+set}\" = set"; then
10125 echo "$as_me:$LINENO: checking for $ac_header" >&5
10126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10127if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129fi
b4e70030
JB
10130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10132else
10133 # Is the header compilable?
b4e70030
JB
10134echo "$as_me:$LINENO: checking $ac_header usability" >&5
10135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10136cat >conftest.$ac_ext <<_ACEOF
10137/* confdefs.h. */
10138_ACEOF
10139cat confdefs.h >>conftest.$ac_ext
10140cat >>conftest.$ac_ext <<_ACEOF
10141/* end confdefs.h. */
10142$ac_includes_default
10143#include <$ac_header>
10144_ACEOF
10145rm -f conftest.$ac_objext
10146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10147 (eval $ac_compile) 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
b4e70030
JB
10154 { ac_try='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
10161 { ac_try='test -s conftest.$ac_objext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_header_compiler=yes
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
b4e70030 10172ac_header_compiler=no
bec39cab
AC
10173fi
10174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10176echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10177
10178# Is the header present?
b4e70030
JB
10179echo "$as_me:$LINENO: checking $ac_header presence" >&5
10180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10181cat >conftest.$ac_ext <<_ACEOF
10182/* confdefs.h. */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h. */
10187#include <$ac_header>
10188_ACEOF
10189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } >/dev/null; then
10197 if test -s conftest.err; then
10198 ac_cpp_err=$ac_c_preproc_warn_flag
10199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10200 else
10201 ac_cpp_err=
10202 fi
10203else
10204 ac_cpp_err=yes
9608ab8b 10205fi
bec39cab
AC
10206if test -z "$ac_cpp_err"; then
10207 ac_header_preproc=yes
9608ab8b 10208else
bec39cab
AC
10209 echo "$as_me: failed program was:" >&5
10210sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 ac_header_preproc=no
9608ab8b 10213fi
bec39cab 10214rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10216echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10217
bec39cab
AC
10218# So? What about this header?
10219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10220 yes:no: )
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10225 ac_header_preproc=yes
10226 ;;
10227 no:yes:* )
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10240 (
10241 cat <<\_ASBOX
10242## ------------------------------------------ ##
10243## Report this to the AC_PACKAGE_NAME lists. ##
10244## ------------------------------------------ ##
10245_ASBOX
10246 ) |
10247 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10248 ;;
10249esac
b4e70030
JB
10250echo "$as_me:$LINENO: checking for $ac_header" >&5
10251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10252if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254else
10255 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10256fi
b4e70030
JB
10257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10259
9608ab8b 10260fi
bec39cab
AC
10261if test `eval echo '${'$as_ac_Header'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10264_ACEOF
10265
9608ab8b 10266fi
bec39cab 10267
5ee754fc 10268done
9608ab8b 10269
bec39cab
AC
10270
10271for ac_header in unistd.h
78434e59 10272do
bec39cab 10273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10274if eval "test \"\${$as_ac_Header+set}\" = set"; then
10275 echo "$as_me:$LINENO: checking for $ac_header" >&5
10276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10277if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279fi
b4e70030
JB
10280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10282else
10283 # Is the header compilable?
b4e70030
JB
10284echo "$as_me:$LINENO: checking $ac_header usability" >&5
10285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10286cat >conftest.$ac_ext <<_ACEOF
10287/* confdefs.h. */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h. */
10292$ac_includes_default
10293#include <$ac_header>
10294_ACEOF
10295rm -f conftest.$ac_objext
10296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297 (eval $ac_compile) 2>conftest.er1
10298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
b4e70030
JB
10304 { ac_try='test -z "$ac_c_werror_flag"
10305 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_header_compiler=yes
10318else
10319 echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
b4e70030 10322ac_header_compiler=no
bec39cab
AC
10323fi
10324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10325echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10327
10328# Is the header present?
b4e70030
JB
10329echo "$as_me:$LINENO: checking $ac_header presence" >&5
10330echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10331cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h. */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
10336/* end confdefs.h. */
10337#include <$ac_header>
10338_ACEOF
10339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10341 ac_status=$?
10342 grep -v '^ *+' conftest.er1 >conftest.err
10343 rm -f conftest.er1
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } >/dev/null; then
10347 if test -s conftest.err; then
10348 ac_cpp_err=$ac_c_preproc_warn_flag
10349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10350 else
10351 ac_cpp_err=
10352 fi
10353else
10354 ac_cpp_err=yes
78434e59 10355fi
bec39cab
AC
10356if test -z "$ac_cpp_err"; then
10357 ac_header_preproc=yes
78434e59 10358else
bec39cab
AC
10359 echo "$as_me: failed program was:" >&5
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
10362 ac_header_preproc=no
78434e59 10363fi
bec39cab 10364rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10365echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 10367
bec39cab
AC
10368# So? What about this header?
10369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10370 yes:no: )
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375 ac_header_preproc=yes
10376 ;;
10377 no:yes:* )
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10381echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10385echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10390 (
10391 cat <<\_ASBOX
10392## ------------------------------------------ ##
10393## Report this to the AC_PACKAGE_NAME lists. ##
10394## ------------------------------------------ ##
10395_ASBOX
10396 ) |
10397 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10398 ;;
10399esac
b4e70030
JB
10400echo "$as_me:$LINENO: checking for $ac_header" >&5
10401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10402if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404else
10405 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 10406fi
b4e70030
JB
10407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10409
086ec9eb 10410fi
bec39cab
AC
10411if test `eval echo '${'$as_ac_Header'}'` = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10414_ACEOF
10415
086ec9eb 10416fi
bec39cab 10417
086ec9eb
MK
10418done
10419
9608ab8b 10420
b1d19a62 10421# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
10422# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10423# think that we don't have <curses.h> if we're using GCC.
10424case $host_os in
b1d19a62 10425 solaris2.[789])
5ee754fc 10426 if test "$GCC" = yes; then
bec39cab
AC
10427
10428cat >>confdefs.h <<\_ACEOF
5ee754fc 10429#define _MSE_INT_H 1
bec39cab 10430_ACEOF
5ee754fc
MK
10431
10432 fi ;;
10433esac
bec39cab
AC
10434
10435
10436
10437
10438for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 10439do
bec39cab 10440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10441if eval "test \"\${$as_ac_Header+set}\" = set"; then
10442 echo "$as_me:$LINENO: checking for $ac_header" >&5
10443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10444if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10446fi
b4e70030
JB
10447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10449else
10450 # Is the header compilable?
b4e70030
JB
10451echo "$as_me:$LINENO: checking $ac_header usability" >&5
10452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10453cat >conftest.$ac_ext <<_ACEOF
10454/* confdefs.h. */
10455_ACEOF
10456cat confdefs.h >>conftest.$ac_ext
10457cat >>conftest.$ac_ext <<_ACEOF
10458/* end confdefs.h. */
10459$ac_includes_default
10460#include <$ac_header>
10461_ACEOF
10462rm -f conftest.$ac_objext
10463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464 (eval $ac_compile) 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
b4e70030
JB
10471 { ac_try='test -z "$ac_c_werror_flag"
10472 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
10478 { ac_try='test -s conftest.$ac_objext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_header_compiler=yes
10485else
10486 echo "$as_me: failed program was:" >&5
10487sed 's/^/| /' conftest.$ac_ext >&5
10488
b4e70030 10489ac_header_compiler=no
bec39cab
AC
10490fi
10491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10492echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10493echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10494
10495# Is the header present?
b4e70030
JB
10496echo "$as_me:$LINENO: checking $ac_header presence" >&5
10497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10498cat >conftest.$ac_ext <<_ACEOF
10499/* confdefs.h. */
10500_ACEOF
10501cat confdefs.h >>conftest.$ac_ext
10502cat >>conftest.$ac_ext <<_ACEOF
10503/* end confdefs.h. */
10504#include <$ac_header>
10505_ACEOF
10506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } >/dev/null; then
10514 if test -s conftest.err; then
10515 ac_cpp_err=$ac_c_preproc_warn_flag
10516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10517 else
10518 ac_cpp_err=
10519 fi
10520else
10521 ac_cpp_err=yes
c906108c 10522fi
bec39cab
AC
10523if test -z "$ac_cpp_err"; then
10524 ac_header_preproc=yes
10525else
10526 echo "$as_me: failed program was:" >&5
10527sed 's/^/| /' conftest.$ac_ext >&5
10528
10529 ac_header_preproc=no
c906108c 10530fi
bec39cab 10531rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10532echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10533echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10534
10535# So? What about this header?
10536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10537 yes:no: )
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10539echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10541echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10542 ac_header_preproc=yes
10543 ;;
10544 no:yes:* )
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10550echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10552echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10556echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10557 (
10558 cat <<\_ASBOX
10559## ------------------------------------------ ##
10560## Report this to the AC_PACKAGE_NAME lists. ##
10561## ------------------------------------------ ##
10562_ASBOX
10563 ) |
10564 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10565 ;;
10566esac
b4e70030
JB
10567echo "$as_me:$LINENO: checking for $ac_header" >&5
10568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10569if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10570 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 10571else
bec39cab 10572 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10573fi
b4e70030
JB
10574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10576
10577fi
10578if test `eval echo '${'$as_ac_Header'}'` = yes; then
10579 cat >>confdefs.h <<_ACEOF
10580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10581_ACEOF
10582
10583fi
10584
5ee754fc 10585done
c906108c 10586
bec39cab 10587
065a1afc 10588for ac_header in ncurses/term.h
3b78cdbb 10589do
bec39cab 10590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10591if eval "test \"\${$as_ac_Header+set}\" = set"; then
10592 echo "$as_me:$LINENO: checking for $ac_header" >&5
10593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10594if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596fi
b4e70030
JB
10597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10599else
10600 # Is the header compilable?
b4e70030
JB
10601echo "$as_me:$LINENO: checking $ac_header usability" >&5
10602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10603cat >conftest.$ac_ext <<_ACEOF
10604/* confdefs.h. */
10605_ACEOF
10606cat confdefs.h >>conftest.$ac_ext
10607cat >>conftest.$ac_ext <<_ACEOF
10608/* end confdefs.h. */
10609$ac_includes_default
10610#include <$ac_header>
10611_ACEOF
10612rm -f conftest.$ac_objext
10613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10614 (eval $ac_compile) 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } &&
b4e70030
JB
10621 { ac_try='test -z "$ac_c_werror_flag"
10622 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
10628 { ac_try='test -s conftest.$ac_objext'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10634 ac_header_compiler=yes
10635else
10636 echo "$as_me: failed program was:" >&5
10637sed 's/^/| /' conftest.$ac_ext >&5
10638
b4e70030 10639ac_header_compiler=no
bec39cab
AC
10640fi
10641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10642echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10643echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10644
10645# Is the header present?
b4e70030
JB
10646echo "$as_me:$LINENO: checking $ac_header presence" >&5
10647echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10648cat >conftest.$ac_ext <<_ACEOF
10649/* confdefs.h. */
10650_ACEOF
10651cat confdefs.h >>conftest.$ac_ext
10652cat >>conftest.$ac_ext <<_ACEOF
10653/* end confdefs.h. */
10654#include <$ac_header>
10655_ACEOF
10656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } >/dev/null; then
10664 if test -s conftest.err; then
10665 ac_cpp_err=$ac_c_preproc_warn_flag
10666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10667 else
10668 ac_cpp_err=
10669 fi
10670else
10671 ac_cpp_err=yes
3b78cdbb 10672fi
bec39cab
AC
10673if test -z "$ac_cpp_err"; then
10674 ac_header_preproc=yes
10675else
10676 echo "$as_me: failed program was:" >&5
10677sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 ac_header_preproc=no
3b78cdbb 10680fi
bec39cab 10681rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10682echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10683echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10684
10685# So? What about this header?
10686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10687 yes:no: )
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10689echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10691echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10692 ac_header_preproc=yes
10693 ;;
10694 no:yes:* )
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10696echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10698echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10700echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10702echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10704echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10706echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10707 (
10708 cat <<\_ASBOX
10709## ------------------------------------------ ##
10710## Report this to the AC_PACKAGE_NAME lists. ##
10711## ------------------------------------------ ##
10712_ASBOX
10713 ) |
10714 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10715 ;;
10716esac
b4e70030
JB
10717echo "$as_me:$LINENO: checking for $ac_header" >&5
10718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10719if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10720 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 10721else
bec39cab
AC
10722 eval "$as_ac_Header=\$ac_header_preproc"
10723fi
b4e70030
JB
10724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10726
3b78cdbb 10727fi
bec39cab
AC
10728if test `eval echo '${'$as_ac_Header'}'` = yes; then
10729 cat >>confdefs.h <<_ACEOF
10730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10731_ACEOF
10732
10733fi
10734
3b78cdbb
DA
10735done
10736
c906108c 10737
065a1afc
JB
10738for ac_header in term.h
10739do
10740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10741echo "$as_me:$LINENO: checking for $ac_header" >&5
10742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10743if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745else
10746 cat >conftest.$ac_ext <<_ACEOF
10747/* confdefs.h. */
10748_ACEOF
10749cat confdefs.h >>conftest.$ac_ext
10750cat >>conftest.$ac_ext <<_ACEOF
10751/* end confdefs.h. */
10752#if HAVE_CURSES_H
10753# include <curses.h>
10754#endif
10755
10756
10757#include <$ac_header>
10758_ACEOF
10759rm -f conftest.$ac_objext
10760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10761 (eval $ac_compile) 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } &&
b4e70030
JB
10768 { ac_try='test -z "$ac_c_werror_flag"
10769 || test ! -s conftest.err'
065a1afc
JB
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); }; } &&
10775 { ac_try='test -s conftest.$ac_objext'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 eval "$as_ac_Header=yes"
10782else
10783 echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
b4e70030 10786eval "$as_ac_Header=no"
065a1afc
JB
10787fi
10788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10789fi
b4e70030
JB
10790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
10792if test `eval echo '${'$as_ac_Header'}'` = yes; then
10793 cat >>confdefs.h <<_ACEOF
10794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10795_ACEOF
10796
10797fi
10798
10799done
10800
10801
5ee754fc
MK
10802# FIXME: kettenis/20030102: In most cases we include these
10803# unconditionally, so what's the point in checking these?
bec39cab
AC
10804
10805
10806for ac_header in ctype.h time.h
c906108c 10807do
bec39cab 10808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10809if eval "test \"\${$as_ac_Header+set}\" = set"; then
10810 echo "$as_me:$LINENO: checking for $ac_header" >&5
10811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10812if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814fi
b4e70030
JB
10815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10817else
10818 # Is the header compilable?
b4e70030
JB
10819echo "$as_me:$LINENO: checking $ac_header usability" >&5
10820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10821cat >conftest.$ac_ext <<_ACEOF
10822/* confdefs.h. */
10823_ACEOF
10824cat confdefs.h >>conftest.$ac_ext
10825cat >>conftest.$ac_ext <<_ACEOF
10826/* end confdefs.h. */
10827$ac_includes_default
10828#include <$ac_header>
10829_ACEOF
10830rm -f conftest.$ac_objext
10831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832 (eval $ac_compile) 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
b4e70030
JB
10839 { ac_try='test -z "$ac_c_werror_flag"
10840 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
10846 { ac_try='test -s conftest.$ac_objext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_header_compiler=yes
10853else
10854 echo "$as_me: failed program was:" >&5
10855sed 's/^/| /' conftest.$ac_ext >&5
10856
b4e70030 10857ac_header_compiler=no
bec39cab
AC
10858fi
10859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10861echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10862
10863# Is the header present?
b4e70030
JB
10864echo "$as_me:$LINENO: checking $ac_header presence" >&5
10865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10866cat >conftest.$ac_ext <<_ACEOF
10867/* confdefs.h. */
10868_ACEOF
10869cat confdefs.h >>conftest.$ac_ext
10870cat >>conftest.$ac_ext <<_ACEOF
10871/* end confdefs.h. */
10872#include <$ac_header>
10873_ACEOF
10874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } >/dev/null; then
10882 if test -s conftest.err; then
10883 ac_cpp_err=$ac_c_preproc_warn_flag
10884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10885 else
10886 ac_cpp_err=
10887 fi
10888else
10889 ac_cpp_err=yes
c906108c 10890fi
bec39cab
AC
10891if test -z "$ac_cpp_err"; then
10892 ac_header_preproc=yes
10893else
10894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 ac_header_preproc=no
c906108c 10898fi
bec39cab 10899rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10901echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10902
10903# So? What about this header?
10904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10905 yes:no: )
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10910 ac_header_preproc=yes
10911 ;;
10912 no:yes:* )
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10920echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10925 (
10926 cat <<\_ASBOX
10927## ------------------------------------------ ##
10928## Report this to the AC_PACKAGE_NAME lists. ##
10929## ------------------------------------------ ##
10930_ASBOX
10931 ) |
10932 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10933 ;;
10934esac
b4e70030
JB
10935echo "$as_me:$LINENO: checking for $ac_header" >&5
10936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10937if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10938 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 10939else
bec39cab
AC
10940 eval "$as_ac_Header=\$ac_header_preproc"
10941fi
b4e70030
JB
10942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10944
10945fi
10946if test `eval echo '${'$as_ac_Header'}'` = yes; then
10947 cat >>confdefs.h <<_ACEOF
10948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10949_ACEOF
10950
c906108c 10951fi
bec39cab 10952
c906108c
SS
10953done
10954
5ee754fc 10955
4e8d927d 10956# Create a header we can use portably to get the standard integer types.
666ec76f 10957
4e8d927d
DJ
10958
10959inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
10960
10961acx_cv_header_stdint=stddef.h
10962acx_cv_header_stdint_kind="(already complete)"
10963for i in stdint.h $inttype_headers; do
10964 unset ac_cv_type_uintptr_t
10965 unset ac_cv_type_uintmax_t
10966 unset ac_cv_type_int_least32_t
10967 unset ac_cv_type_int_fast32_t
10968 unset ac_cv_type_uint64_t
10969 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
10970 echo "$as_me:$LINENO: checking for uintmax_t" >&5
10971echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 10972if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 10973 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 10974else
bec39cab
AC
10975 cat >conftest.$ac_ext <<_ACEOF
10976/* confdefs.h. */
10977_ACEOF
10978cat confdefs.h >>conftest.$ac_ext
10979cat >>conftest.$ac_ext <<_ACEOF
10980/* end confdefs.h. */
4e8d927d
DJ
10981#include <sys/types.h>
10982#include <$i>
10983
bec39cab
AC
10984int
10985main ()
10986{
b4e70030 10987if ((uintmax_t *) 0)
4e8d927d 10988 return 0;
b4e70030 10989if (sizeof (uintmax_t))
4e8d927d
DJ
10990 return 0;
10991 ;
bec39cab
AC
10992 return 0;
10993}
10994_ACEOF
10995rm -f conftest.$ac_objext
10996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10997 (eval $ac_compile) 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } &&
b4e70030
JB
11004 { ac_try='test -z "$ac_c_werror_flag"
11005 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
11011 { ac_try='test -s conftest.$ac_objext'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; }; then
4e8d927d 11017 ac_cv_type_uintmax_t=yes
40a7debc 11018else
bec39cab
AC
11019 echo "$as_me: failed program was:" >&5
11020sed 's/^/| /' conftest.$ac_ext >&5
11021
b4e70030 11022ac_cv_type_uintmax_t=no
40a7debc 11023fi
bec39cab 11024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11025fi
b4e70030
JB
11026echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11027echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11028if test $ac_cv_type_uintmax_t = yes; then
11029 acx_cv_header_stdint=$i
666ec76f 11030else
4e8d927d 11031 continue
666ec76f 11032fi
4e8d927d 11033
b4e70030
JB
11034 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11035echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11036if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038else
11039 cat >conftest.$ac_ext <<_ACEOF
11040/* confdefs.h. */
11041_ACEOF
11042cat confdefs.h >>conftest.$ac_ext
11043cat >>conftest.$ac_ext <<_ACEOF
11044/* end confdefs.h. */
4e8d927d
DJ
11045#include <sys/types.h>
11046#include <$i>
11047
666ec76f
MK
11048int
11049main ()
11050{
b4e70030 11051if ((uintptr_t *) 0)
4e8d927d 11052 return 0;
b4e70030 11053if (sizeof (uintptr_t))
4e8d927d 11054 return 0;
666ec76f
MK
11055 ;
11056 return 0;
11057}
11058_ACEOF
11059rm -f conftest.$ac_objext
11060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11061 (eval $ac_compile) 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
b4e70030
JB
11068 { ac_try='test -z "$ac_c_werror_flag"
11069 || test ! -s conftest.err'
666ec76f
MK
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); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
4e8d927d 11081 ac_cv_type_uintptr_t=yes
666ec76f
MK
11082else
11083 echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11085
b4e70030 11086ac_cv_type_uintptr_t=no
a3828db0
MK
11087fi
11088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11089fi
b4e70030
JB
11090echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11091echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11092if test $ac_cv_type_uintptr_t = yes; then
11093 :
a3828db0 11094else
4e8d927d 11095 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11096fi
4e8d927d 11097
b4e70030
JB
11098 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11099echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11100if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102else
11103 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11104/* confdefs.h. */
11105_ACEOF
11106cat confdefs.h >>conftest.$ac_ext
11107cat >>conftest.$ac_ext <<_ACEOF
11108/* end confdefs.h. */
4e8d927d
DJ
11109#include <sys/types.h>
11110#include <$i>
11111
bec39cab
AC
11112int
11113main ()
11114{
b4e70030 11115if ((int_least32_t *) 0)
4e8d927d 11116 return 0;
b4e70030 11117if (sizeof (int_least32_t))
4e8d927d 11118 return 0;
bec39cab
AC
11119 ;
11120 return 0;
11121}
11122_ACEOF
11123rm -f conftest.$ac_objext
11124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11125 (eval $ac_compile) 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
b4e70030
JB
11132 { ac_try='test -z "$ac_c_werror_flag"
11133 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
11139 { ac_try='test -s conftest.$ac_objext'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
4e8d927d 11145 ac_cv_type_int_least32_t=yes
b9362cc7 11146else
bec39cab
AC
11147 echo "$as_me: failed program was:" >&5
11148sed 's/^/| /' conftest.$ac_ext >&5
11149
b4e70030 11150ac_cv_type_int_least32_t=no
b9362cc7 11151fi
bec39cab 11152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11153fi
b4e70030
JB
11154echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11155echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11156if test $ac_cv_type_int_least32_t = yes; then
11157 :
a3828db0 11158else
4e8d927d 11159 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11160fi
5ee754fc 11161
b4e70030
JB
11162 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11163echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11164if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166else
11167 cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
4e8d927d
DJ
11173#include <sys/types.h>
11174#include <$i>
11175
bec39cab
AC
11176int
11177main ()
11178{
b4e70030 11179if ((int_fast32_t *) 0)
4e8d927d 11180 return 0;
b4e70030 11181if (sizeof (int_fast32_t))
4e8d927d 11182 return 0;
bec39cab
AC
11183 ;
11184 return 0;
11185}
11186_ACEOF
11187rm -f conftest.$ac_objext
11188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189 (eval $ac_compile) 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
b4e70030
JB
11196 { ac_try='test -z "$ac_c_werror_flag"
11197 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
11203 { ac_try='test -s conftest.$ac_objext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
4e8d927d 11209 ac_cv_type_int_fast32_t=yes
c906108c 11210else
bec39cab
AC
11211 echo "$as_me: failed program was:" >&5
11212sed 's/^/| /' conftest.$ac_ext >&5
11213
b4e70030 11214ac_cv_type_int_fast32_t=no
c906108c 11215fi
bec39cab 11216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11217fi
b4e70030
JB
11218echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11219echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
11220if test $ac_cv_type_int_fast32_t = yes; then
11221 :
a3828db0 11222else
4e8d927d 11223 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11224fi
4e8d927d 11225
b4e70030
JB
11226 echo "$as_me:$LINENO: checking for uint64_t" >&5
11227echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11228if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230else
11231 cat >conftest.$ac_ext <<_ACEOF
11232/* confdefs.h. */
11233_ACEOF
11234cat confdefs.h >>conftest.$ac_ext
11235cat >>conftest.$ac_ext <<_ACEOF
11236/* end confdefs.h. */
4e8d927d
DJ
11237#include <sys/types.h>
11238#include <$i>
11239
bec39cab
AC
11240int
11241main ()
11242{
b4e70030 11243if ((uint64_t *) 0)
4e8d927d 11244 return 0;
b4e70030 11245if (sizeof (uint64_t))
4e8d927d 11246 return 0;
bec39cab
AC
11247 ;
11248 return 0;
11249}
11250_ACEOF
11251rm -f conftest.$ac_objext
11252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11253 (eval $ac_compile) 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
b4e70030
JB
11260 { ac_try='test -z "$ac_c_werror_flag"
11261 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
11267 { ac_try='test -s conftest.$ac_objext'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; }; then
4e8d927d 11273 ac_cv_type_uint64_t=yes
c906108c 11274else
bec39cab
AC
11275 echo "$as_me: failed program was:" >&5
11276sed 's/^/| /' conftest.$ac_ext >&5
11277
b4e70030 11278ac_cv_type_uint64_t=no
c906108c 11279fi
bec39cab 11280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11281fi
b4e70030
JB
11282echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11283echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
11284if test $ac_cv_type_uint64_t = yes; then
11285 :
a3828db0 11286else
4e8d927d 11287 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
11288fi
11289
4e8d927d
DJ
11290 break
11291done
11292if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 11293 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 11294 for i in stdint.h $inttype_headers; do
3841debe 11295 unset ac_cv_type_uintptr_t
4e8d927d
DJ
11296 unset ac_cv_type_uint32_t
11297 unset ac_cv_type_uint64_t
11298 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11299 echo "$as_me:$LINENO: checking for uint32_t" >&5
11300echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 11301if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 11302 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 11303else
bec39cab
AC
11304 cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
4e8d927d
DJ
11310#include <sys/types.h>
11311#include <$i>
11312
a3828db0
MK
11313int
11314main ()
11315{
b4e70030 11316if ((uint32_t *) 0)
4e8d927d 11317 return 0;
b4e70030 11318if (sizeof (uint32_t))
4e8d927d 11319 return 0;
a3828db0
MK
11320 ;
11321 return 0;
11322}
bec39cab
AC
11323_ACEOF
11324rm -f conftest.$ac_objext
11325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 (eval $ac_compile) 2>conftest.er1
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
b4e70030
JB
11333 { ac_try='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
11340 { ac_try='test -s conftest.$ac_objext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
4e8d927d 11346 ac_cv_type_uint32_t=yes
bce58c09 11347else
bec39cab
AC
11348 echo "$as_me: failed program was:" >&5
11349sed 's/^/| /' conftest.$ac_ext >&5
11350
b4e70030 11351ac_cv_type_uint32_t=no
bce58c09 11352fi
bec39cab 11353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 11354fi
b4e70030
JB
11355echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11356echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
11357if test $ac_cv_type_uint32_t = yes; then
11358 acx_cv_header_stdint=$i
a3828db0 11359else
4e8d927d 11360 continue
e5a7de23 11361fi
4e8d927d 11362
b4e70030
JB
11363 echo "$as_me:$LINENO: checking for uint64_t" >&5
11364echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11365if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11367else
11368 cat >conftest.$ac_ext <<_ACEOF
11369/* confdefs.h. */
11370_ACEOF
11371cat confdefs.h >>conftest.$ac_ext
11372cat >>conftest.$ac_ext <<_ACEOF
11373/* end confdefs.h. */
4e8d927d
DJ
11374#include <sys/types.h>
11375#include <$i>
11376
e5a7de23
EZ
11377int
11378main ()
11379{
b4e70030 11380if ((uint64_t *) 0)
4e8d927d 11381 return 0;
b4e70030 11382if (sizeof (uint64_t))
4e8d927d 11383 return 0;
e5a7de23
EZ
11384 ;
11385 return 0;
11386}
11387_ACEOF
11388rm -f conftest.$ac_objext
11389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
b4e70030
JB
11397 { ac_try='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
e5a7de23
EZ
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); }; } &&
11404 { ac_try='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
4e8d927d 11410 ac_cv_type_uint64_t=yes
e5a7de23
EZ
11411else
11412 echo "$as_me: failed program was:" >&5
11413sed 's/^/| /' conftest.$ac_ext >&5
11414
b4e70030 11415ac_cv_type_uint64_t=no
e5a7de23
EZ
11416fi
11417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11418fi
b4e70030
JB
11419echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11420echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
11421
11422 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11423echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11424if test "${ac_cv_type_uintptr_t+set}" = set; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11426else
11427 cat >conftest.$ac_ext <<_ACEOF
11428/* confdefs.h. */
11429_ACEOF
11430cat confdefs.h >>conftest.$ac_ext
11431cat >>conftest.$ac_ext <<_ACEOF
11432/* end confdefs.h. */
11433#include <sys/types.h>
11434#include <$i>
11435
11436int
11437main ()
11438{
11439if ((uintptr_t *) 0)
11440 return 0;
11441if (sizeof (uintptr_t))
11442 return 0;
11443 ;
11444 return 0;
11445}
11446_ACEOF
11447rm -f conftest.$ac_objext
11448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449 (eval $ac_compile) 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -z "$ac_c_werror_flag"
11457 || test ! -s conftest.err'
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); }; } &&
11463 { ac_try='test -s conftest.$ac_objext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 ac_cv_type_uintptr_t=yes
e5a7de23 11470else
3841debe
DJ
11471 echo "$as_me: failed program was:" >&5
11472sed 's/^/| /' conftest.$ac_ext >&5
11473
11474ac_cv_type_uintptr_t=no
4e8d927d 11475fi
3841debe
DJ
11476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11477fi
11478echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11479echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 11480
4e8d927d
DJ
11481 break
11482 done
e5a7de23 11483fi
4e8d927d
DJ
11484if test "$acx_cv_header_stdint" = stddef.h; then
11485 acx_cv_header_stdint_kind="(u_intXX_t style)"
11486 for i in sys/types.h $inttype_headers; do
11487 unset ac_cv_type_u_int32_t
11488 unset ac_cv_type_u_int64_t
11489 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
11490 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11491echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 11492if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
4e8d927d
DJ
11501#include <sys/types.h>
11502#include <$i>
11503
e5a7de23
EZ
11504int
11505main ()
11506{
b4e70030 11507if ((u_int32_t *) 0)
4e8d927d 11508 return 0;
b4e70030 11509if (sizeof (u_int32_t))
4e8d927d 11510 return 0;
e5a7de23
EZ
11511 ;
11512 return 0;
11513}
11514_ACEOF
11515rm -f conftest.$ac_objext
11516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11517 (eval $ac_compile) 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
b4e70030
JB
11524 { ac_try='test -z "$ac_c_werror_flag"
11525 || test ! -s conftest.err'
e5a7de23
EZ
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); }; } &&
11531 { ac_try='test -s conftest.$ac_objext'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; }; then
4e8d927d 11537 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
11538else
11539 echo "$as_me: failed program was:" >&5
11540sed 's/^/| /' conftest.$ac_ext >&5
11541
b4e70030 11542ac_cv_type_u_int32_t=no
e5a7de23
EZ
11543fi
11544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11545fi
b4e70030
JB
11546echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11547echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
11548if test $ac_cv_type_u_int32_t = yes; then
11549 acx_cv_header_stdint=$i
e5a7de23 11550else
4e8d927d 11551 continue
a3828db0 11552fi
5ee754fc 11553
b4e70030
JB
11554 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11555echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 11556if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558else
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
4e8d927d
DJ
11565#include <sys/types.h>
11566#include <$i>
11567
bec39cab
AC
11568int
11569main ()
11570{
b4e70030 11571if ((u_int64_t *) 0)
4e8d927d 11572 return 0;
b4e70030 11573if (sizeof (u_int64_t))
4e8d927d 11574 return 0;
bec39cab
AC
11575 ;
11576 return 0;
11577}
11578_ACEOF
a3828db0
MK
11579rm -f conftest.$ac_objext
11580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11581 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
b4e70030
JB
11588 { ac_try='test -z "$ac_c_werror_flag"
11589 || test ! -s conftest.err'
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); }; } &&
a3828db0 11595 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
4e8d927d 11601 ac_cv_type_u_int64_t=yes
bec39cab
AC
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
b4e70030 11606ac_cv_type_u_int64_t=no
4e8d927d 11607fi
4e8d927d
DJ
11608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11609fi
b4e70030
JB
11610echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11611echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
11612
11613 break
11614 done
11615fi
11616if test "$acx_cv_header_stdint" = stddef.h; then
11617 acx_cv_header_stdint_kind="(using manual detection)"
11618fi
11619
11620test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11621test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11622test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11623test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11624test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11625
11626# ----------------- Summarize what we found so far
11627
b4e70030
JB
11628echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
11629echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 11630
b4e70030 11631case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
11632$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
11633 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
11634 Xgdb_stdint.h : 'X\(/\)$' \| \
11635 . : '\(.\)' 2>/dev/null ||
4e8d927d 11636echo X/gdb_stdint.h |
b4e70030
JB
11637 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11638 /^X\/\(\/\/\)$/{ s//\1/; q; }
11639 /^X\/\(\/\).*/{ s//\1/; q; }
11640 s/.*/./; q'` in
4e8d927d
DJ
11641 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11642echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11643 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11644echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11645 *) ;;
11646esac
11647
b4e70030
JB
11648echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11649echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
11650
11651# ----------------- done included file, check C basic types --------
11652
11653# Lacking an uintptr_t? Test size of void *
11654case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
11655 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
11656echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
11657if test "${ac_cv_type_void_p+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659else
11660 cat >conftest.$ac_ext <<_ACEOF
a3828db0 11661/* confdefs.h. */
bec39cab
AC
11662_ACEOF
11663cat confdefs.h >>conftest.$ac_ext
11664cat >>conftest.$ac_ext <<_ACEOF
11665/* end confdefs.h. */
a3828db0 11666$ac_includes_default
bec39cab
AC
11667int
11668main ()
11669{
b4e70030 11670if ((void * *) 0)
4e8d927d 11671 return 0;
b4e70030 11672if (sizeof (void *))
4e8d927d 11673 return 0;
bec39cab
AC
11674 ;
11675 return 0;
11676}
11677_ACEOF
a3828db0
MK
11678rm -f conftest.$ac_objext
11679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11680 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } &&
b4e70030
JB
11687 { ac_try='test -z "$ac_c_werror_flag"
11688 || test ! -s conftest.err'
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); }; } &&
a3828db0 11694 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
4e8d927d 11700 ac_cv_type_void_p=yes
46711df8 11701else
bec39cab
AC
11702 echo "$as_me: failed program was:" >&5
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
b4e70030 11705ac_cv_type_void_p=no
a3828db0 11706fi
4e8d927d 11707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 11708fi
b4e70030
JB
11709echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11710echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 11711
b4e70030
JB
11712echo "$as_me:$LINENO: checking size of void *" >&5
11713echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 11714if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
4e8d927d 11717 if test "$ac_cv_type_void_p" = yes; then
b4e70030 11718 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
11719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11721 # This bug is HP SR number 8606223364.
11722 if test "$cross_compiling" = yes; then
11723 # Depending upon the size, compute the lo and hi bounds.
11724cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
11730$ac_includes_default
11731int
11732main ()
11733{
b4e70030 11734static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
11735test_array [0] = 0
11736
d3ea6809
MM
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext
11742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
b4e70030
JB
11750 { ac_try='test -z "$ac_c_werror_flag"
11751 || test ! -s conftest.err'
d3ea6809
MM
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); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
4e8d927d
DJ
11763 ac_lo=0 ac_mid=0
11764 while :; do
11765 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
11766/* confdefs.h. */
11767_ACEOF
11768cat confdefs.h >>conftest.$ac_ext
11769cat >>conftest.$ac_ext <<_ACEOF
11770/* end confdefs.h. */
11771$ac_includes_default
11772int
11773main ()
11774{
b4e70030 11775static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
11776test_array [0] = 0
11777
d3ea6809
MM
11778 ;
11779 return 0;
11780}
11781_ACEOF
11782rm -f conftest.$ac_objext
11783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11784 (eval $ac_compile) 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
b4e70030
JB
11791 { ac_try='test -z "$ac_c_werror_flag"
11792 || test ! -s conftest.err'
d3ea6809
MM
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); }; } &&
11798 { ac_try='test -s conftest.$ac_objext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
4e8d927d 11804 ac_hi=$ac_mid; break
d3ea6809
MM
11805else
11806 echo "$as_me: failed program was:" >&5
11807sed 's/^/| /' conftest.$ac_ext >&5
11808
b4e70030
JB
11809ac_lo=`expr $ac_mid + 1`
11810 if test $ac_lo -le $ac_mid; then
11811 ac_lo= ac_hi=
11812 break
11813 fi
11814 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 11815fi
4e8d927d
DJ
11816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11817 done
bec39cab 11818else
4e8d927d
DJ
11819 echo "$as_me: failed program was:" >&5
11820sed 's/^/| /' conftest.$ac_ext >&5
11821
b4e70030 11822cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
4e8d927d 11828$ac_includes_default
bec39cab
AC
11829int
11830main ()
11831{
b4e70030 11832static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
11833test_array [0] = 0
11834
bec39cab
AC
11835 ;
11836 return 0;
11837}
11838_ACEOF
a3828db0
MK
11839rm -f conftest.$ac_objext
11840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11841 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
b4e70030
JB
11848 { ac_try='test -z "$ac_c_werror_flag"
11849 || test ! -s conftest.err'
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); }; } &&
a3828db0 11855 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
4e8d927d
DJ
11861 ac_hi=-1 ac_mid=-1
11862 while :; do
11863 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
11864/* confdefs.h. */
11865_ACEOF
11866cat confdefs.h >>conftest.$ac_ext
11867cat >>conftest.$ac_ext <<_ACEOF
11868/* end confdefs.h. */
4e8d927d 11869$ac_includes_default
f9f87d2c
MK
11870int
11871main ()
11872{
b4e70030 11873static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
11874test_array [0] = 0
11875
f9f87d2c
MK
11876 ;
11877 return 0;
11878}
11879_ACEOF
11880rm -f conftest.$ac_objext
11881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11882 (eval $ac_compile) 2>conftest.er1
11883 ac_status=$?
11884 grep -v '^ *+' conftest.er1 >conftest.err
11885 rm -f conftest.er1
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
b4e70030
JB
11889 { ac_try='test -z "$ac_c_werror_flag"
11890 || test ! -s conftest.err'
f9f87d2c
MK
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); }; } &&
11896 { ac_try='test -s conftest.$ac_objext'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
4e8d927d 11902 ac_lo=$ac_mid; break
f9f87d2c
MK
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
b4e70030
JB
11907ac_hi=`expr '(' $ac_mid ')' - 1`
11908 if test $ac_mid -le $ac_hi; then
11909 ac_lo= ac_hi=
11910 break
11911 fi
11912 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 11913fi
4e8d927d
DJ
11914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11915 done
11916else
11917 echo "$as_me: failed program was:" >&5
11918sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 11919
b4e70030 11920ac_lo= ac_hi=
4e8d927d 11921fi
4e8d927d 11922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 11923fi
4e8d927d
DJ
11924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11925# Binary search between lo and hi bounds.
11926while test "x$ac_lo" != "x$ac_hi"; do
11927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
11928 cat >conftest.$ac_ext <<_ACEOF
11929/* confdefs.h. */
11930_ACEOF
11931cat confdefs.h >>conftest.$ac_ext
11932cat >>conftest.$ac_ext <<_ACEOF
11933/* end confdefs.h. */
4e8d927d 11934$ac_includes_default
3be60c3d
MK
11935int
11936main ()
11937{
b4e70030 11938static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
11939test_array [0] = 0
11940
3be60c3d
MK
11941 ;
11942 return 0;
11943}
11944_ACEOF
11945rm -f conftest.$ac_objext
11946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11947 (eval $ac_compile) 2>conftest.er1
11948 ac_status=$?
11949 grep -v '^ *+' conftest.er1 >conftest.err
11950 rm -f conftest.er1
11951 cat conftest.err >&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } &&
b4e70030
JB
11954 { ac_try='test -z "$ac_c_werror_flag"
11955 || test ! -s conftest.err'
3be60c3d
MK
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; } &&
11961 { ac_try='test -s conftest.$ac_objext'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
4e8d927d 11967 ac_hi=$ac_mid
3be60c3d
MK
11968else
11969 echo "$as_me: failed program was:" >&5
11970sed 's/^/| /' conftest.$ac_ext >&5
11971
b4e70030 11972ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 11973fi
4e8d927d
DJ
11974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11975done
11976case $ac_lo in
11977?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 11978'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 11979See \`config.log' for more details." >&5
b4e70030 11980echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 11981See \`config.log' for more details." >&2;}
b4e70030 11982 { (exit 1); exit 1; }; } ;;
4e8d927d 11983esac
b4e70030
JB
11984else
11985 if test "$cross_compiling" = yes; then
11986 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11987See \`config.log' for more details." >&5
11988echo "$as_me: error: cannot run test program while cross compiling
11989See \`config.log' for more details." >&2;}
11990 { (exit 1); exit 1; }; }
4e8d927d
DJ
11991else
11992 cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h. */
3be60c3d 11994_ACEOF
4e8d927d
DJ
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h. */
11998$ac_includes_default
b4e70030
JB
11999long longval () { return (long) (sizeof (void *)); }
12000unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
12001#include <stdio.h>
12002#include <stdlib.h>
12003int
12004main ()
12005{
12006
12007 FILE *f = fopen ("conftest.val", "w");
12008 if (! f)
b4e70030
JB
12009 exit (1);
12010 if (((long) (sizeof (void *))) < 0)
4e8d927d 12011 {
b4e70030
JB
12012 long i = longval ();
12013 if (i != ((long) (sizeof (void *))))
12014 exit (1);
4e8d927d
DJ
12015 fprintf (f, "%ld\n", i);
12016 }
12017 else
12018 {
b4e70030
JB
12019 unsigned long i = ulongval ();
12020 if (i != ((long) (sizeof (void *))))
12021 exit (1);
4e8d927d
DJ
12022 fprintf (f, "%lu\n", i);
12023 }
b4e70030 12024 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12025
4e8d927d
DJ
12026 ;
12027 return 0;
12028}
12029_ACEOF
12030rm -f conftest$ac_exeext
12031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032 (eval $ac_link) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 ac_cv_sizeof_void_p=`cat conftest.val`
12042else
12043 echo "$as_me: program exited with status $ac_status" >&5
12044echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12046
4e8d927d 12047( exit $ac_status )
b4e70030 12048{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12049See \`config.log' for more details." >&5
b4e70030 12050echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12051See \`config.log' for more details." >&2;}
b4e70030
JB
12052 { (exit 1); exit 1; }; }
12053fi
12054rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12055fi
4e8d927d
DJ
12056fi
12057rm -f conftest.val
12058else
12059 ac_cv_sizeof_void_p=0
12060fi
12061fi
b4e70030
JB
12062echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12063echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12064cat >>confdefs.h <<_ACEOF
12065#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12066_ACEOF
f9f87d2c 12067
4e8d927d
DJ
12068 ;;
12069esac
46711df8 12070
4e8d927d
DJ
12071# Lacking an uint64_t? Test size of long
12072case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12073 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12074echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12075if test "${ac_cv_type_long+set}" = set; then
bec39cab 12076 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12077else
bec39cab
AC
12078 cat >conftest.$ac_ext <<_ACEOF
12079/* confdefs.h. */
12080_ACEOF
12081cat confdefs.h >>conftest.$ac_ext
12082cat >>conftest.$ac_ext <<_ACEOF
12083/* end confdefs.h. */
4e8d927d 12084$ac_includes_default
bec39cab 12085int
46711df8
MK
12086main ()
12087{
b4e70030 12088if ((long *) 0)
4e8d927d 12089 return 0;
b4e70030 12090if (sizeof (long))
4e8d927d 12091 return 0;
a3828db0
MK
12092 ;
12093 return 0;
46711df8 12094}
bec39cab 12095_ACEOF
a3828db0
MK
12096rm -f conftest.$ac_objext
12097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12098 (eval $ac_compile) 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
b4e70030
JB
12105 { ac_try='test -z "$ac_c_werror_flag"
12106 || test ! -s conftest.err'
a3828db0
MK
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
bec39cab
AC
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
4e8d927d 12118 ac_cv_type_long=yes
46711df8 12119else
a3828db0 12120 echo "$as_me: failed program was:" >&5
bec39cab
AC
12121sed 's/^/| /' conftest.$ac_ext >&5
12122
b4e70030 12123ac_cv_type_long=no
46711df8 12124fi
4e8d927d 12125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12126fi
b4e70030
JB
12127echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12128echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12129
b4e70030
JB
12130echo "$as_me:$LINENO: checking size of long" >&5
12131echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12132if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12133 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12134else
4e8d927d 12135 if test "$ac_cv_type_long" = yes; then
b4e70030 12136 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12139 # This bug is HP SR number 8606223364.
12140 if test "$cross_compiling" = yes; then
12141 # Depending upon the size, compute the lo and hi bounds.
12142cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12143/* confdefs.h. */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */
4e8d927d 12148$ac_includes_default
4e8d927d
DJ
12149int
12150main ()
12151{
b4e70030 12152static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12153test_array [0] = 0
a3828db0 12154
4e8d927d
DJ
12155 ;
12156 return 0;
12157}
bec39cab
AC
12158_ACEOF
12159rm -f conftest.$ac_objext
12160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
b4e70030
JB
12168 { ac_try='test -z "$ac_c_werror_flag"
12169 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
12175 { ac_try='test -s conftest.$ac_objext'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
4e8d927d
DJ
12181 ac_lo=0 ac_mid=0
12182 while :; do
12183 cat >conftest.$ac_ext <<_ACEOF
12184/* confdefs.h. */
12185_ACEOF
12186cat confdefs.h >>conftest.$ac_ext
12187cat >>conftest.$ac_ext <<_ACEOF
12188/* end confdefs.h. */
12189$ac_includes_default
4e8d927d
DJ
12190int
12191main ()
12192{
b4e70030 12193static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12194test_array [0] = 0
12195
12196 ;
12197 return 0;
12198}
12199_ACEOF
12200rm -f conftest.$ac_objext
12201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
b4e70030
JB
12209 { ac_try='test -z "$ac_c_werror_flag"
12210 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
12216 { ac_try='test -s conftest.$ac_objext'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12219 ac_status=$?
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; }; then
12222 ac_hi=$ac_mid; break
12223else
12224 echo "$as_me: failed program was:" >&5
12225sed 's/^/| /' conftest.$ac_ext >&5
12226
b4e70030
JB
12227ac_lo=`expr $ac_mid + 1`
12228 if test $ac_lo -le $ac_mid; then
12229 ac_lo= ac_hi=
12230 break
12231 fi
12232 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12233fi
4e8d927d
DJ
12234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12235 done
12236else
12237 echo "$as_me: failed program was:" >&5
12238sed 's/^/| /' conftest.$ac_ext >&5
12239
b4e70030 12240cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12241/* confdefs.h. */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h. */
12246$ac_includes_default
4e8d927d
DJ
12247int
12248main ()
12249{
b4e70030 12250static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
12251test_array [0] = 0
12252
12253 ;
12254 return 0;
12255}
12256_ACEOF
12257rm -f conftest.$ac_objext
12258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12259 (eval $ac_compile) 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
b4e70030
JB
12266 { ac_try='test -z "$ac_c_werror_flag"
12267 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
12273 { ac_try='test -s conftest.$ac_objext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 ac_hi=-1 ac_mid=-1
12280 while :; do
12281 cat >conftest.$ac_ext <<_ACEOF
12282/* confdefs.h. */
12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
12286/* end confdefs.h. */
12287$ac_includes_default
4e8d927d
DJ
12288int
12289main ()
12290{
b4e70030 12291static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
12292test_array [0] = 0
12293
12294 ;
12295 return 0;
12296}
12297_ACEOF
12298rm -f conftest.$ac_objext
12299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300 (eval $ac_compile) 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
b4e70030
JB
12307 { ac_try='test -z "$ac_c_werror_flag"
12308 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
12314 { ac_try='test -s conftest.$ac_objext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_lo=$ac_mid; break
12321else
12322 echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
b4e70030
JB
12325ac_hi=`expr '(' $ac_mid ')' - 1`
12326 if test $ac_mid -le $ac_hi; then
12327 ac_lo= ac_hi=
12328 break
12329 fi
12330 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12331fi
4e8d927d
DJ
12332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12333 done
12334else
12335 echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
b4e70030 12338ac_lo= ac_hi=
4e8d927d 12339fi
4e8d927d
DJ
12340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12341fi
4e8d927d
DJ
12342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12343# Binary search between lo and hi bounds.
12344while test "x$ac_lo" != "x$ac_hi"; do
12345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12346 cat >conftest.$ac_ext <<_ACEOF
12347/* confdefs.h. */
12348_ACEOF
12349cat confdefs.h >>conftest.$ac_ext
12350cat >>conftest.$ac_ext <<_ACEOF
12351/* end confdefs.h. */
12352$ac_includes_default
4e8d927d
DJ
12353int
12354main ()
12355{
b4e70030 12356static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12357test_array [0] = 0
12358
12359 ;
12360 return 0;
12361}
12362_ACEOF
12363rm -f conftest.$ac_objext
12364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365 (eval $ac_compile) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
b4e70030
JB
12372 { ac_try='test -z "$ac_c_werror_flag"
12373 || test ! -s conftest.err'
4e8d927d
DJ
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_hi=$ac_mid
12386else
12387 echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
b4e70030 12390ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12391fi
4e8d927d
DJ
12392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12393done
12394case $ac_lo in
12395?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 12396'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12397See \`config.log' for more details." >&5
b4e70030 12398echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12399See \`config.log' for more details." >&2;}
b4e70030 12400 { (exit 1); exit 1; }; } ;;
4e8d927d 12401esac
b4e70030
JB
12402else
12403 if test "$cross_compiling" = yes; then
12404 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12405See \`config.log' for more details." >&5
12406echo "$as_me: error: cannot run test program while cross compiling
12407See \`config.log' for more details." >&2;}
12408 { (exit 1); exit 1; }; }
4e8d927d
DJ
12409else
12410 cat >conftest.$ac_ext <<_ACEOF
12411/* confdefs.h. */
12412_ACEOF
12413cat confdefs.h >>conftest.$ac_ext
12414cat >>conftest.$ac_ext <<_ACEOF
12415/* end confdefs.h. */
12416$ac_includes_default
b4e70030
JB
12417long longval () { return (long) (sizeof (long)); }
12418unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
12419#include <stdio.h>
12420#include <stdlib.h>
12421int
12422main ()
12423{
12424
12425 FILE *f = fopen ("conftest.val", "w");
12426 if (! f)
b4e70030
JB
12427 exit (1);
12428 if (((long) (sizeof (long))) < 0)
4e8d927d 12429 {
b4e70030
JB
12430 long i = longval ();
12431 if (i != ((long) (sizeof (long))))
12432 exit (1);
4e8d927d
DJ
12433 fprintf (f, "%ld\n", i);
12434 }
12435 else
12436 {
b4e70030
JB
12437 unsigned long i = ulongval ();
12438 if (i != ((long) (sizeof (long))))
12439 exit (1);
4e8d927d
DJ
12440 fprintf (f, "%lu\n", i);
12441 }
b4e70030 12442 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12443
12444 ;
12445 return 0;
12446}
12447_ACEOF
12448rm -f conftest$ac_exeext
12449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12450 (eval $ac_link) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_sizeof_long=`cat conftest.val`
12460else
12461 echo "$as_me: program exited with status $ac_status" >&5
12462echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465( exit $ac_status )
b4e70030 12466{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12467See \`config.log' for more details." >&5
b4e70030 12468echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12469See \`config.log' for more details." >&2;}
b4e70030
JB
12470 { (exit 1); exit 1; }; }
12471fi
12472rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12473fi
4e8d927d
DJ
12474fi
12475rm -f conftest.val
12476else
12477 ac_cv_sizeof_long=0
12478fi
12479fi
b4e70030
JB
12480echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12481echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
12482cat >>confdefs.h <<_ACEOF
12483#define SIZEOF_LONG $ac_cv_sizeof_long
12484_ACEOF
12485
12486 ;;
12487esac
12488
12489if test $acx_cv_header_stdint = stddef.h; then
12490 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
12491 echo "$as_me:$LINENO: checking for int" >&5
12492echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
12493if test "${ac_cv_type_int+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495else
12496 cat >conftest.$ac_ext <<_ACEOF
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h. */
12502$ac_includes_default
4e8d927d
DJ
12503int
12504main ()
12505{
b4e70030 12506if ((int *) 0)
4e8d927d 12507 return 0;
b4e70030 12508if (sizeof (int))
4e8d927d
DJ
12509 return 0;
12510 ;
12511 return 0;
12512}
12513_ACEOF
12514rm -f conftest.$ac_objext
12515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
b4e70030
JB
12523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
12530 { ac_try='test -s conftest.$ac_objext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 ac_cv_type_int=yes
12537else
12538 echo "$as_me: failed program was:" >&5
12539sed 's/^/| /' conftest.$ac_ext >&5
12540
b4e70030 12541ac_cv_type_int=no
4e8d927d 12542fi
4e8d927d
DJ
12543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12544fi
b4e70030
JB
12545echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12546echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 12547
b4e70030
JB
12548echo "$as_me:$LINENO: checking size of int" >&5
12549echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
12550if test "${ac_cv_sizeof_int+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552else
12553 if test "$ac_cv_type_int" = yes; then
b4e70030 12554 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12557 # This bug is HP SR number 8606223364.
12558 if test "$cross_compiling" = yes; then
12559 # Depending upon the size, compute the lo and hi bounds.
12560cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h. */
12566$ac_includes_default
4e8d927d
DJ
12567int
12568main ()
12569{
b4e70030 12570static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
12571test_array [0] = 0
12572
12573 ;
12574 return 0;
12575}
12576_ACEOF
12577rm -f conftest.$ac_objext
12578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579 (eval $ac_compile) 2>conftest.er1
12580 ac_status=$?
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
b4e70030
JB
12586 { ac_try='test -z "$ac_c_werror_flag"
12587 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
12593 { ac_try='test -s conftest.$ac_objext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 ac_lo=0 ac_mid=0
12600 while :; do
12601 cat >conftest.$ac_ext <<_ACEOF
12602/* confdefs.h. */
12603_ACEOF
12604cat confdefs.h >>conftest.$ac_ext
12605cat >>conftest.$ac_ext <<_ACEOF
12606/* end confdefs.h. */
12607$ac_includes_default
4e8d927d
DJ
12608int
12609main ()
12610{
b4e70030 12611static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
12612test_array [0] = 0
12613
12614 ;
12615 return 0;
12616}
12617_ACEOF
12618rm -f conftest.$ac_objext
12619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
b4e70030
JB
12627 { ac_try='test -z "$ac_c_werror_flag"
12628 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
12634 { ac_try='test -s conftest.$ac_objext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_hi=$ac_mid; break
12641else
12642 echo "$as_me: failed program was:" >&5
12643sed 's/^/| /' conftest.$ac_ext >&5
12644
b4e70030
JB
12645ac_lo=`expr $ac_mid + 1`
12646 if test $ac_lo -le $ac_mid; then
12647 ac_lo= ac_hi=
12648 break
12649 fi
12650 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12651fi
4e8d927d
DJ
12652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12653 done
12654else
12655 echo "$as_me: failed program was:" >&5
12656sed 's/^/| /' conftest.$ac_ext >&5
12657
b4e70030 12658cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h. */
12664$ac_includes_default
4e8d927d
DJ
12665int
12666main ()
12667{
b4e70030 12668static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
12669test_array [0] = 0
12670
12671 ;
12672 return 0;
12673}
12674_ACEOF
12675rm -f conftest.$ac_objext
12676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12677 (eval $ac_compile) 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
b4e70030
JB
12684 { ac_try='test -z "$ac_c_werror_flag"
12685 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
12691 { ac_try='test -s conftest.$ac_objext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12697 ac_hi=-1 ac_mid=-1
12698 while :; do
12699 cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
12705$ac_includes_default
4e8d927d
DJ
12706int
12707main ()
12708{
b4e70030 12709static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
12710test_array [0] = 0
12711
12712 ;
12713 return 0;
12714}
12715_ACEOF
12716rm -f conftest.$ac_objext
12717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718 (eval $ac_compile) 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
b4e70030
JB
12725 { ac_try='test -z "$ac_c_werror_flag"
12726 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
12732 { ac_try='test -s conftest.$ac_objext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_lo=$ac_mid; break
12739else
12740 echo "$as_me: failed program was:" >&5
12741sed 's/^/| /' conftest.$ac_ext >&5
12742
b4e70030
JB
12743ac_hi=`expr '(' $ac_mid ')' - 1`
12744 if test $ac_mid -le $ac_hi; then
12745 ac_lo= ac_hi=
12746 break
12747 fi
12748 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12749fi
4e8d927d
DJ
12750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12751 done
12752else
12753 echo "$as_me: failed program was:" >&5
12754sed 's/^/| /' conftest.$ac_ext >&5
12755
b4e70030 12756ac_lo= ac_hi=
4e8d927d 12757fi
4e8d927d
DJ
12758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759fi
4e8d927d
DJ
12760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12761# Binary search between lo and hi bounds.
12762while test "x$ac_lo" != "x$ac_hi"; do
12763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12764 cat >conftest.$ac_ext <<_ACEOF
12765/* confdefs.h. */
12766_ACEOF
12767cat confdefs.h >>conftest.$ac_ext
12768cat >>conftest.$ac_ext <<_ACEOF
12769/* end confdefs.h. */
12770$ac_includes_default
4e8d927d
DJ
12771int
12772main ()
12773{
b4e70030 12774static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
12775test_array [0] = 0
12776
12777 ;
12778 return 0;
12779}
12780_ACEOF
12781rm -f conftest.$ac_objext
12782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12783 (eval $ac_compile) 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
b4e70030
JB
12790 { ac_try='test -z "$ac_c_werror_flag"
12791 || test ! -s conftest.err'
4e8d927d
DJ
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest.$ac_objext'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12803 ac_hi=$ac_mid
12804else
12805 echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
b4e70030 12808ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12809fi
4e8d927d
DJ
12810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12811done
12812case $ac_lo in
12813?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 12814'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 12815See \`config.log' for more details." >&5
b4e70030 12816echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 12817See \`config.log' for more details." >&2;}
b4e70030 12818 { (exit 1); exit 1; }; } ;;
4e8d927d 12819esac
b4e70030
JB
12820else
12821 if test "$cross_compiling" = yes; then
12822 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12823See \`config.log' for more details." >&5
12824echo "$as_me: error: cannot run test program while cross compiling
12825See \`config.log' for more details." >&2;}
12826 { (exit 1); exit 1; }; }
4e8d927d
DJ
12827else
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834$ac_includes_default
b4e70030
JB
12835long longval () { return (long) (sizeof (int)); }
12836unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
12837#include <stdio.h>
12838#include <stdlib.h>
12839int
12840main ()
12841{
12842
12843 FILE *f = fopen ("conftest.val", "w");
12844 if (! f)
b4e70030
JB
12845 exit (1);
12846 if (((long) (sizeof (int))) < 0)
4e8d927d 12847 {
b4e70030
JB
12848 long i = longval ();
12849 if (i != ((long) (sizeof (int))))
12850 exit (1);
4e8d927d
DJ
12851 fprintf (f, "%ld\n", i);
12852 }
12853 else
12854 {
b4e70030
JB
12855 unsigned long i = ulongval ();
12856 if (i != ((long) (sizeof (int))))
12857 exit (1);
4e8d927d
DJ
12858 fprintf (f, "%lu\n", i);
12859 }
b4e70030 12860 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12861
12862 ;
12863 return 0;
12864}
12865_ACEOF
12866rm -f conftest$ac_exeext
12867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12868 (eval $ac_link) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12877 ac_cv_sizeof_int=`cat conftest.val`
12878else
12879 echo "$as_me: program exited with status $ac_status" >&5
12880echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883( exit $ac_status )
b4e70030 12884{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 12885See \`config.log' for more details." >&5
b4e70030 12886echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 12887See \`config.log' for more details." >&2;}
b4e70030
JB
12888 { (exit 1); exit 1; }; }
12889fi
12890rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12891fi
4e8d927d
DJ
12892fi
12893rm -f conftest.val
12894else
12895 ac_cv_sizeof_int=0
12896fi
12897fi
b4e70030
JB
12898echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12899echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
12900cat >>confdefs.h <<_ACEOF
12901#define SIZEOF_INT $ac_cv_sizeof_int
12902_ACEOF
12903
12904
b4e70030
JB
12905 echo "$as_me:$LINENO: checking for short" >&5
12906echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
12907if test "${ac_cv_type_short+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909else
12910 cat >conftest.$ac_ext <<_ACEOF
12911/* confdefs.h. */
12912_ACEOF
12913cat confdefs.h >>conftest.$ac_ext
12914cat >>conftest.$ac_ext <<_ACEOF
12915/* end confdefs.h. */
12916$ac_includes_default
4e8d927d
DJ
12917int
12918main ()
12919{
b4e70030 12920if ((short *) 0)
4e8d927d 12921 return 0;
b4e70030 12922if (sizeof (short))
4e8d927d
DJ
12923 return 0;
12924 ;
12925 return 0;
12926}
12927_ACEOF
12928rm -f conftest.$ac_objext
12929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930 (eval $ac_compile) 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
b4e70030
JB
12937 { ac_try='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
12944 { ac_try='test -s conftest.$ac_objext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_type_short=yes
12951else
12952 echo "$as_me: failed program was:" >&5
12953sed 's/^/| /' conftest.$ac_ext >&5
12954
b4e70030 12955ac_cv_type_short=no
4e8d927d 12956fi
4e8d927d
DJ
12957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12958fi
b4e70030
JB
12959echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12960echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 12961
b4e70030
JB
12962echo "$as_me:$LINENO: checking size of short" >&5
12963echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
12964if test "${ac_cv_sizeof_short+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12966else
12967 if test "$ac_cv_type_short" = yes; then
b4e70030 12968 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12971 # This bug is HP SR number 8606223364.
12972 if test "$cross_compiling" = yes; then
12973 # Depending upon the size, compute the lo and hi bounds.
12974cat >conftest.$ac_ext <<_ACEOF
12975/* confdefs.h. */
12976_ACEOF
12977cat confdefs.h >>conftest.$ac_ext
12978cat >>conftest.$ac_ext <<_ACEOF
12979/* end confdefs.h. */
12980$ac_includes_default
4e8d927d
DJ
12981int
12982main ()
12983{
b4e70030 12984static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
12985test_array [0] = 0
12986
12987 ;
12988 return 0;
12989}
12990_ACEOF
12991rm -f conftest.$ac_objext
12992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993 (eval $ac_compile) 2>conftest.er1
12994 ac_status=$?
12995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
b4e70030
JB
13000 { ac_try='test -z "$ac_c_werror_flag"
13001 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_lo=0 ac_mid=0
13014 while :; do
13015 cat >conftest.$ac_ext <<_ACEOF
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
13021$ac_includes_default
4e8d927d
DJ
13022int
13023main ()
13024{
b4e70030 13025static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13026test_array [0] = 0
13027
13028 ;
13029 return 0;
13030}
13031_ACEOF
13032rm -f conftest.$ac_objext
13033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>conftest.er1
13035 ac_status=$?
13036 grep -v '^ *+' conftest.er1 >conftest.err
13037 rm -f conftest.er1
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
b4e70030
JB
13041 { ac_try='test -z "$ac_c_werror_flag"
13042 || test ! -s conftest.err'
4e8d927d
DJ
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_hi=$ac_mid; break
13055else
13056 echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
b4e70030
JB
13059ac_lo=`expr $ac_mid + 1`
13060 if test $ac_lo -le $ac_mid; then
13061 ac_lo= ac_hi=
13062 break
13063 fi
13064 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13065fi
4e8d927d
DJ
13066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13067 done
13068else
13069 echo "$as_me: failed program was:" >&5
13070sed 's/^/| /' conftest.$ac_ext >&5
13071
b4e70030 13072cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13073/* confdefs.h. */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
13077/* end confdefs.h. */
13078$ac_includes_default
4e8d927d
DJ
13079int
13080main ()
13081{
b4e70030 13082static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13083test_array [0] = 0
13084
13085 ;
13086 return 0;
13087}
13088_ACEOF
13089rm -f conftest.$ac_objext
13090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13091 (eval $ac_compile) 2>conftest.er1
13092 ac_status=$?
13093 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
b4e70030
JB
13098 { ac_try='test -z "$ac_c_werror_flag"
13099 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13105 { ac_try='test -s conftest.$ac_objext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_hi=-1 ac_mid=-1
13112 while :; do
13113 cat >conftest.$ac_ext <<_ACEOF
13114/* confdefs.h. */
13115_ACEOF
13116cat confdefs.h >>conftest.$ac_ext
13117cat >>conftest.$ac_ext <<_ACEOF
13118/* end confdefs.h. */
13119$ac_includes_default
4e8d927d
DJ
13120int
13121main ()
13122{
b4e70030 13123static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13124test_array [0] = 0
13125
13126 ;
13127 return 0;
13128}
13129_ACEOF
13130rm -f conftest.$ac_objext
13131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132 (eval $ac_compile) 2>conftest.er1
13133 ac_status=$?
13134 grep -v '^ *+' conftest.er1 >conftest.err
13135 rm -f conftest.er1
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
b4e70030
JB
13139 { ac_try='test -z "$ac_c_werror_flag"
13140 || test ! -s conftest.err'
4e8d927d
DJ
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest.$ac_objext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_lo=$ac_mid; break
13153else
13154 echo "$as_me: failed program was:" >&5
13155sed 's/^/| /' conftest.$ac_ext >&5
13156
b4e70030
JB
13157ac_hi=`expr '(' $ac_mid ')' - 1`
13158 if test $ac_mid -le $ac_hi; then
13159 ac_lo= ac_hi=
13160 break
13161 fi
13162 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13163fi
4e8d927d
DJ
13164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13165 done
13166else
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
b4e70030 13170ac_lo= ac_hi=
4e8d927d 13171fi
4e8d927d
DJ
13172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13173fi
4e8d927d
DJ
13174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13175# Binary search between lo and hi bounds.
13176while test "x$ac_lo" != "x$ac_hi"; do
13177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13178 cat >conftest.$ac_ext <<_ACEOF
13179/* confdefs.h. */
13180_ACEOF
13181cat confdefs.h >>conftest.$ac_ext
13182cat >>conftest.$ac_ext <<_ACEOF
13183/* end confdefs.h. */
13184$ac_includes_default
4e8d927d
DJ
13185int
13186main ()
13187{
b4e70030 13188static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13189test_array [0] = 0
13190
13191 ;
13192 return 0;
13193}
13194_ACEOF
13195rm -f conftest.$ac_objext
13196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
b4e70030
JB
13204 { ac_try='test -z "$ac_c_werror_flag"
13205 || test ! -s conftest.err'
4e8d927d
DJ
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_hi=$ac_mid
13218else
13219 echo "$as_me: failed program was:" >&5
13220sed 's/^/| /' conftest.$ac_ext >&5
13221
b4e70030 13222ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13223fi
4e8d927d
DJ
13224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13225done
13226case $ac_lo in
13227?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 13228'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13229See \`config.log' for more details." >&5
b4e70030 13230echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13231See \`config.log' for more details." >&2;}
b4e70030 13232 { (exit 1); exit 1; }; } ;;
4e8d927d 13233esac
b4e70030
JB
13234else
13235 if test "$cross_compiling" = yes; then
13236 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13237See \`config.log' for more details." >&5
13238echo "$as_me: error: cannot run test program while cross compiling
13239See \`config.log' for more details." >&2;}
13240 { (exit 1); exit 1; }; }
4e8d927d
DJ
13241else
13242 cat >conftest.$ac_ext <<_ACEOF
13243/* confdefs.h. */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
13247/* end confdefs.h. */
13248$ac_includes_default
b4e70030
JB
13249long longval () { return (long) (sizeof (short)); }
13250unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
13251#include <stdio.h>
13252#include <stdlib.h>
13253int
13254main ()
13255{
13256
13257 FILE *f = fopen ("conftest.val", "w");
13258 if (! f)
b4e70030
JB
13259 exit (1);
13260 if (((long) (sizeof (short))) < 0)
4e8d927d 13261 {
b4e70030
JB
13262 long i = longval ();
13263 if (i != ((long) (sizeof (short))))
13264 exit (1);
4e8d927d
DJ
13265 fprintf (f, "%ld\n", i);
13266 }
13267 else
13268 {
b4e70030
JB
13269 unsigned long i = ulongval ();
13270 if (i != ((long) (sizeof (short))))
13271 exit (1);
4e8d927d
DJ
13272 fprintf (f, "%lu\n", i);
13273 }
b4e70030 13274 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13275
13276 ;
13277 return 0;
13278}
13279_ACEOF
13280rm -f conftest$ac_exeext
13281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13282 (eval $ac_link) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13291 ac_cv_sizeof_short=`cat conftest.val`
13292else
13293 echo "$as_me: program exited with status $ac_status" >&5
13294echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297( exit $ac_status )
b4e70030 13298{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13299See \`config.log' for more details." >&5
b4e70030 13300echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13301See \`config.log' for more details." >&2;}
b4e70030
JB
13302 { (exit 1); exit 1; }; }
13303fi
13304rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13305fi
4e8d927d
DJ
13306fi
13307rm -f conftest.val
13308else
13309 ac_cv_sizeof_short=0
13310fi
13311fi
b4e70030
JB
13312echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13313echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
13314cat >>confdefs.h <<_ACEOF
13315#define SIZEOF_SHORT $ac_cv_sizeof_short
13316_ACEOF
13317
13318
b4e70030
JB
13319 echo "$as_me:$LINENO: checking for char" >&5
13320echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
13321if test "${ac_cv_type_char+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323else
13324 cat >conftest.$ac_ext <<_ACEOF
13325/* confdefs.h. */
13326_ACEOF
13327cat confdefs.h >>conftest.$ac_ext
13328cat >>conftest.$ac_ext <<_ACEOF
13329/* end confdefs.h. */
13330$ac_includes_default
4e8d927d
DJ
13331int
13332main ()
13333{
b4e70030 13334if ((char *) 0)
4e8d927d 13335 return 0;
b4e70030 13336if (sizeof (char))
4e8d927d
DJ
13337 return 0;
13338 ;
13339 return 0;
13340}
13341_ACEOF
13342rm -f conftest.$ac_objext
13343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>conftest.er1
13345 ac_status=$?
13346 grep -v '^ *+' conftest.er1 >conftest.err
13347 rm -f conftest.er1
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } &&
b4e70030
JB
13351 { ac_try='test -z "$ac_c_werror_flag"
13352 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13358 { ac_try='test -s conftest.$ac_objext'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 ac_cv_type_char=yes
13365else
13366 echo "$as_me: failed program was:" >&5
13367sed 's/^/| /' conftest.$ac_ext >&5
13368
b4e70030 13369ac_cv_type_char=no
4e8d927d 13370fi
4e8d927d
DJ
13371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13372fi
b4e70030
JB
13373echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13374echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 13375
b4e70030
JB
13376echo "$as_me:$LINENO: checking size of char" >&5
13377echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
13378if test "${ac_cv_sizeof_char+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13380else
13381 if test "$ac_cv_type_char" = yes; then
b4e70030 13382 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13385 # This bug is HP SR number 8606223364.
13386 if test "$cross_compiling" = yes; then
13387 # Depending upon the size, compute the lo and hi bounds.
13388cat >conftest.$ac_ext <<_ACEOF
13389/* confdefs.h. */
13390_ACEOF
13391cat confdefs.h >>conftest.$ac_ext
13392cat >>conftest.$ac_ext <<_ACEOF
13393/* end confdefs.h. */
13394$ac_includes_default
4e8d927d
DJ
13395int
13396main ()
13397{
b4e70030 13398static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
13399test_array [0] = 0
13400
13401 ;
13402 return 0;
13403}
13404_ACEOF
13405rm -f conftest.$ac_objext
13406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13407 (eval $ac_compile) 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
b4e70030
JB
13414 { ac_try='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13421 { ac_try='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_lo=0 ac_mid=0
13428 while :; do
13429 cat >conftest.$ac_ext <<_ACEOF
13430/* confdefs.h. */
13431_ACEOF
13432cat confdefs.h >>conftest.$ac_ext
13433cat >>conftest.$ac_ext <<_ACEOF
13434/* end confdefs.h. */
13435$ac_includes_default
4e8d927d
DJ
13436int
13437main ()
13438{
b4e70030 13439static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13440test_array [0] = 0
13441
13442 ;
13443 return 0;
13444}
13445_ACEOF
13446rm -f conftest.$ac_objext
13447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448 (eval $ac_compile) 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
b4e70030
JB
13455 { ac_try='test -z "$ac_c_werror_flag"
13456 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13462 { ac_try='test -s conftest.$ac_objext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_hi=$ac_mid; break
13469else
13470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
b4e70030
JB
13473ac_lo=`expr $ac_mid + 1`
13474 if test $ac_lo -le $ac_mid; then
13475 ac_lo= ac_hi=
13476 break
13477 fi
13478 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13479fi
4e8d927d
DJ
13480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13481 done
13482else
13483 echo "$as_me: failed program was:" >&5
13484sed 's/^/| /' conftest.$ac_ext >&5
13485
b4e70030 13486cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13487/* confdefs.h. */
13488_ACEOF
13489cat confdefs.h >>conftest.$ac_ext
13490cat >>conftest.$ac_ext <<_ACEOF
13491/* end confdefs.h. */
13492$ac_includes_default
4e8d927d
DJ
13493int
13494main ()
13495{
b4e70030 13496static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
13497test_array [0] = 0
13498
13499 ;
13500 return 0;
13501}
13502_ACEOF
13503rm -f conftest.$ac_objext
13504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13505 (eval $ac_compile) 2>conftest.er1
13506 ac_status=$?
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
b4e70030
JB
13512 { ac_try='test -z "$ac_c_werror_flag"
13513 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13519 { ac_try='test -s conftest.$ac_objext'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 ac_hi=-1 ac_mid=-1
13526 while :; do
13527 cat >conftest.$ac_ext <<_ACEOF
13528/* confdefs.h. */
13529_ACEOF
13530cat confdefs.h >>conftest.$ac_ext
13531cat >>conftest.$ac_ext <<_ACEOF
13532/* end confdefs.h. */
13533$ac_includes_default
4e8d927d
DJ
13534int
13535main ()
13536{
b4e70030 13537static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
13538test_array [0] = 0
13539
13540 ;
13541 return 0;
13542}
13543_ACEOF
13544rm -f conftest.$ac_objext
13545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13546 (eval $ac_compile) 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
b4e70030
JB
13553 { ac_try='test -z "$ac_c_werror_flag"
13554 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13560 { ac_try='test -s conftest.$ac_objext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 ac_lo=$ac_mid; break
13567else
13568 echo "$as_me: failed program was:" >&5
13569sed 's/^/| /' conftest.$ac_ext >&5
13570
b4e70030
JB
13571ac_hi=`expr '(' $ac_mid ')' - 1`
13572 if test $ac_mid -le $ac_hi; then
13573 ac_lo= ac_hi=
13574 break
13575 fi
13576 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13577fi
4e8d927d
DJ
13578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13579 done
13580else
13581 echo "$as_me: failed program was:" >&5
13582sed 's/^/| /' conftest.$ac_ext >&5
13583
b4e70030 13584ac_lo= ac_hi=
4e8d927d 13585fi
4e8d927d
DJ
13586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13587fi
4e8d927d
DJ
13588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13589# Binary search between lo and hi bounds.
13590while test "x$ac_lo" != "x$ac_hi"; do
13591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13592 cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h. */
13598$ac_includes_default
4e8d927d
DJ
13599int
13600main ()
13601{
b4e70030 13602static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13603test_array [0] = 0
13604
13605 ;
13606 return 0;
13607}
13608_ACEOF
13609rm -f conftest.$ac_objext
13610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13611 (eval $ac_compile) 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
b4e70030
JB
13618 { ac_try='test -z "$ac_c_werror_flag"
13619 || test ! -s conftest.err'
4e8d927d
DJ
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } &&
13625 { ac_try='test -s conftest.$ac_objext'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 ac_hi=$ac_mid
13632else
13633 echo "$as_me: failed program was:" >&5
13634sed 's/^/| /' conftest.$ac_ext >&5
13635
b4e70030 13636ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13637fi
4e8d927d
DJ
13638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13639done
13640case $ac_lo in
13641?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 13642'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 13643See \`config.log' for more details." >&5
b4e70030 13644echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 13645See \`config.log' for more details." >&2;}
b4e70030 13646 { (exit 1); exit 1; }; } ;;
4e8d927d 13647esac
b4e70030
JB
13648else
13649 if test "$cross_compiling" = yes; then
13650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13651See \`config.log' for more details." >&5
13652echo "$as_me: error: cannot run test program while cross compiling
13653See \`config.log' for more details." >&2;}
13654 { (exit 1); exit 1; }; }
4e8d927d
DJ
13655else
13656 cat >conftest.$ac_ext <<_ACEOF
13657/* confdefs.h. */
13658_ACEOF
13659cat confdefs.h >>conftest.$ac_ext
13660cat >>conftest.$ac_ext <<_ACEOF
13661/* end confdefs.h. */
13662$ac_includes_default
b4e70030
JB
13663long longval () { return (long) (sizeof (char)); }
13664unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
13665#include <stdio.h>
13666#include <stdlib.h>
13667int
13668main ()
13669{
13670
13671 FILE *f = fopen ("conftest.val", "w");
13672 if (! f)
b4e70030
JB
13673 exit (1);
13674 if (((long) (sizeof (char))) < 0)
4e8d927d 13675 {
b4e70030
JB
13676 long i = longval ();
13677 if (i != ((long) (sizeof (char))))
13678 exit (1);
4e8d927d
DJ
13679 fprintf (f, "%ld\n", i);
13680 }
13681 else
13682 {
b4e70030
JB
13683 unsigned long i = ulongval ();
13684 if (i != ((long) (sizeof (char))))
13685 exit (1);
4e8d927d
DJ
13686 fprintf (f, "%lu\n", i);
13687 }
b4e70030 13688 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13689
13690 ;
13691 return 0;
13692}
13693_ACEOF
13694rm -f conftest$ac_exeext
13695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13696 (eval $ac_link) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ac_cv_sizeof_char=`cat conftest.val`
13706else
13707 echo "$as_me: program exited with status $ac_status" >&5
13708echo "$as_me: failed program was:" >&5
13709sed 's/^/| /' conftest.$ac_ext >&5
13710
13711( exit $ac_status )
b4e70030 13712{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 13713See \`config.log' for more details." >&5
b4e70030 13714echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 13715See \`config.log' for more details." >&2;}
b4e70030
JB
13716 { (exit 1); exit 1; }; }
13717fi
13718rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13719fi
4e8d927d
DJ
13720fi
13721rm -f conftest.val
13722else
13723 ac_cv_sizeof_char=0
13724fi
13725fi
b4e70030
JB
13726echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13727echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
13728cat >>confdefs.h <<_ACEOF
13729#define SIZEOF_CHAR $ac_cv_sizeof_char
13730_ACEOF
13731
13732
13733
b4e70030
JB
13734 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
13735echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
13736 case "$ac_cv_sizeof_char" in
13737 1) acx_cv_type_int8_t=char ;;
13738 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
13739echo "$as_me: error: no 8-bit type" >&2;}
13740 { (exit please report a bug); exit please report a bug; }; }
13741 esac
b4e70030
JB
13742 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
13743echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 13744
b4e70030
JB
13745 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
13746echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
13747 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13748 2:*) acx_cv_type_int16_t=int ;;
13749 *:2) acx_cv_type_int16_t=short ;;
13750 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
13751echo "$as_me: error: no 16-bit type" >&2;}
13752 { (exit please report a bug); exit please report a bug; }; }
13753 esac
b4e70030
JB
13754 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
13755echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 13756
b4e70030
JB
13757 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
13758echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
13759 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13760 4:*) acx_cv_type_int32_t=int ;;
13761 *:4) acx_cv_type_int32_t=long ;;
13762 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
13763echo "$as_me: error: no 32-bit type" >&2;}
13764 { (exit please report a bug); exit please report a bug; }; }
13765 esac
b4e70030
JB
13766 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
13767echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
13768fi
13769
13770# These tests are here to make the output prettier
13771
13772if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13773 case "$ac_cv_sizeof_long" in
13774 8) acx_cv_type_int64_t=long ;;
13775 esac
b4e70030
JB
13776 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
13777echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
13778 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13779echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
13780fi
13781
13782# Now we can use the above types
13783
13784if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
13785 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
13786echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
13787 case $ac_cv_sizeof_void_p in
13788 2) acx_cv_type_intptr_t=int16_t ;;
13789 4) acx_cv_type_intptr_t=int32_t ;;
13790 8) acx_cv_type_intptr_t=int64_t ;;
13791 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
13792echo "$as_me: error: no equivalent for intptr_t" >&2;}
13793 { (exit please report a bug); exit please report a bug; }; }
13794 esac
b4e70030
JB
13795 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
13796echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
13797fi
13798
13799# ----------------- done all checks, emit header -------------
b4e70030 13800 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
13801
13802
13803
13804
13805# ------------------------- #
13806# Checks for declarations. #
13807# ------------------------- #
13808
b4e70030
JB
13809echo "$as_me:$LINENO: checking whether free is declared" >&5
13810echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
13811if test "${ac_cv_have_decl_free+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813else
13814 cat >conftest.$ac_ext <<_ACEOF
13815/* confdefs.h. */
13816_ACEOF
13817cat confdefs.h >>conftest.$ac_ext
13818cat >>conftest.$ac_ext <<_ACEOF
13819/* end confdefs.h. */
13820$ac_includes_default
13821int
13822main ()
13823{
13824#ifndef free
13825 char *p = (char *) free;
4e8d927d
DJ
13826#endif
13827
13828 ;
13829 return 0;
13830}
13831_ACEOF
13832rm -f conftest.$ac_objext
13833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
b4e70030
JB
13841 { ac_try='test -z "$ac_c_werror_flag"
13842 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13848 { ac_try='test -s conftest.$ac_objext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_cv_have_decl_free=yes
13855else
13856 echo "$as_me: failed program was:" >&5
13857sed 's/^/| /' conftest.$ac_ext >&5
13858
b4e70030 13859ac_cv_have_decl_free=no
4e8d927d 13860fi
4e8d927d
DJ
13861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13862fi
b4e70030
JB
13863echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13864echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
13865if test $ac_cv_have_decl_free = yes; then
13866
13867cat >>confdefs.h <<_ACEOF
13868#define HAVE_DECL_FREE 1
13869_ACEOF
13870
13871
13872else
13873 cat >>confdefs.h <<_ACEOF
13874#define HAVE_DECL_FREE 0
13875_ACEOF
13876
13877
13878fi
b4e70030
JB
13879echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13880echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
13881if test "${ac_cv_have_decl_malloc+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883else
13884 cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h. */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
13889/* end confdefs.h. */
13890$ac_includes_default
13891int
13892main ()
13893{
13894#ifndef malloc
13895 char *p = (char *) malloc;
4e8d927d
DJ
13896#endif
13897
13898 ;
13899 return 0;
13900}
13901_ACEOF
13902rm -f conftest.$ac_objext
13903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904 (eval $ac_compile) 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
b4e70030
JB
13911 { ac_try='test -z "$ac_c_werror_flag"
13912 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_have_decl_malloc=yes
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
b4e70030 13929ac_cv_have_decl_malloc=no
4e8d927d 13930fi
4e8d927d
DJ
13931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13932fi
b4e70030
JB
13933echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13934echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
13935if test $ac_cv_have_decl_malloc = yes; then
13936
13937cat >>confdefs.h <<_ACEOF
13938#define HAVE_DECL_MALLOC 1
13939_ACEOF
13940
13941
13942else
13943 cat >>confdefs.h <<_ACEOF
13944#define HAVE_DECL_MALLOC 0
13945_ACEOF
13946
13947
13948fi
b4e70030
JB
13949echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13950echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
13951if test "${ac_cv_have_decl_realloc+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953else
13954 cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960$ac_includes_default
13961int
13962main ()
13963{
13964#ifndef realloc
13965 char *p = (char *) realloc;
4e8d927d
DJ
13966#endif
13967
13968 ;
13969 return 0;
13970}
13971_ACEOF
13972rm -f conftest.$ac_objext
13973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>conftest.er1
13975 ac_status=$?
13976 grep -v '^ *+' conftest.er1 >conftest.err
13977 rm -f conftest.er1
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } &&
b4e70030
JB
13981 { ac_try='test -z "$ac_c_werror_flag"
13982 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13988 { ac_try='test -s conftest.$ac_objext'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 ac_cv_have_decl_realloc=yes
13995else
13996 echo "$as_me: failed program was:" >&5
13997sed 's/^/| /' conftest.$ac_ext >&5
13998
b4e70030 13999ac_cv_have_decl_realloc=no
4e8d927d 14000fi
4e8d927d
DJ
14001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14002fi
b4e70030
JB
14003echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14004echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
14005if test $ac_cv_have_decl_realloc = yes; then
14006
14007cat >>confdefs.h <<_ACEOF
14008#define HAVE_DECL_REALLOC 1
14009_ACEOF
14010
14011
14012else
14013 cat >>confdefs.h <<_ACEOF
14014#define HAVE_DECL_REALLOC 0
14015_ACEOF
14016
14017
14018fi
14019
14020
b4e70030
JB
14021echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14022echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14023if test "${ac_cv_have_decl_strerror+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14025else
14026 cat >conftest.$ac_ext <<_ACEOF
14027/* confdefs.h. */
14028_ACEOF
14029cat confdefs.h >>conftest.$ac_ext
14030cat >>conftest.$ac_ext <<_ACEOF
14031/* end confdefs.h. */
14032$ac_includes_default
14033int
14034main ()
14035{
14036#ifndef strerror
14037 char *p = (char *) strerror;
4e8d927d
DJ
14038#endif
14039
14040 ;
14041 return 0;
14042}
14043_ACEOF
14044rm -f conftest.$ac_objext
14045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046 (eval $ac_compile) 2>conftest.er1
14047 ac_status=$?
14048 grep -v '^ *+' conftest.er1 >conftest.err
14049 rm -f conftest.er1
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
b4e70030
JB
14053 { ac_try='test -z "$ac_c_werror_flag"
14054 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14060 { ac_try='test -s conftest.$ac_objext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_have_decl_strerror=yes
14067else
14068 echo "$as_me: failed program was:" >&5
14069sed 's/^/| /' conftest.$ac_ext >&5
14070
b4e70030 14071ac_cv_have_decl_strerror=no
4e8d927d 14072fi
4e8d927d
DJ
14073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14074fi
b4e70030
JB
14075echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14076echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14077if test $ac_cv_have_decl_strerror = yes; then
14078
14079cat >>confdefs.h <<_ACEOF
14080#define HAVE_DECL_STRERROR 1
14081_ACEOF
14082
14083
14084else
14085 cat >>confdefs.h <<_ACEOF
14086#define HAVE_DECL_STRERROR 0
14087_ACEOF
14088
14089
14090fi
b4e70030
JB
14091echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14092echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14093if test "${ac_cv_have_decl_strstr+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095else
14096 cat >conftest.$ac_ext <<_ACEOF
14097/* confdefs.h. */
14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
14101/* end confdefs.h. */
14102$ac_includes_default
14103int
14104main ()
14105{
14106#ifndef strstr
14107 char *p = (char *) strstr;
4e8d927d
DJ
14108#endif
14109
14110 ;
14111 return 0;
14112}
14113_ACEOF
14114rm -f conftest.$ac_objext
14115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116 (eval $ac_compile) 2>conftest.er1
14117 ac_status=$?
14118 grep -v '^ *+' conftest.er1 >conftest.err
14119 rm -f conftest.er1
14120 cat conftest.err >&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
b4e70030
JB
14123 { ac_try='test -z "$ac_c_werror_flag"
14124 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14130 { ac_try='test -s conftest.$ac_objext'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 ac_cv_have_decl_strstr=yes
14137else
14138 echo "$as_me: failed program was:" >&5
14139sed 's/^/| /' conftest.$ac_ext >&5
14140
b4e70030 14141ac_cv_have_decl_strstr=no
4e8d927d 14142fi
4e8d927d
DJ
14143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14144fi
b4e70030
JB
14145echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14146echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14147if test $ac_cv_have_decl_strstr = yes; then
14148
14149cat >>confdefs.h <<_ACEOF
14150#define HAVE_DECL_STRSTR 1
14151_ACEOF
14152
14153
14154else
14155 cat >>confdefs.h <<_ACEOF
14156#define HAVE_DECL_STRSTR 0
14157_ACEOF
14158
14159
14160fi
14161
14162
b4e70030
JB
14163echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14164echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14165if test "${ac_cv_have_decl_getopt+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167else
14168 cat >conftest.$ac_ext <<_ACEOF
14169/* confdefs.h. */
14170_ACEOF
14171cat confdefs.h >>conftest.$ac_ext
14172cat >>conftest.$ac_ext <<_ACEOF
14173/* end confdefs.h. */
14174$ac_includes_default
14175int
14176main ()
14177{
14178#ifndef getopt
14179 char *p = (char *) getopt;
4e8d927d
DJ
14180#endif
14181
14182 ;
14183 return 0;
14184}
14185_ACEOF
14186rm -f conftest.$ac_objext
14187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14188 (eval $ac_compile) 2>conftest.er1
14189 ac_status=$?
14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
b4e70030
JB
14195 { ac_try='test -z "$ac_c_werror_flag"
14196 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14202 { ac_try='test -s conftest.$ac_objext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_cv_have_decl_getopt=yes
14209else
14210 echo "$as_me: failed program was:" >&5
14211sed 's/^/| /' conftest.$ac_ext >&5
14212
b4e70030 14213ac_cv_have_decl_getopt=no
4e8d927d 14214fi
4e8d927d
DJ
14215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14216fi
b4e70030
JB
14217echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14218echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
14219if test $ac_cv_have_decl_getopt = yes; then
14220
14221cat >>confdefs.h <<_ACEOF
14222#define HAVE_DECL_GETOPT 1
14223_ACEOF
14224
14225
14226else
14227 cat >>confdefs.h <<_ACEOF
14228#define HAVE_DECL_GETOPT 0
14229_ACEOF
14230
14231
14232fi
b4e70030
JB
14233echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14234echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14235if test "${ac_cv_have_decl_snprintf+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237else
14238 cat >conftest.$ac_ext <<_ACEOF
14239/* confdefs.h. */
14240_ACEOF
14241cat confdefs.h >>conftest.$ac_ext
14242cat >>conftest.$ac_ext <<_ACEOF
14243/* end confdefs.h. */
14244$ac_includes_default
14245int
14246main ()
14247{
14248#ifndef snprintf
14249 char *p = (char *) snprintf;
4e8d927d
DJ
14250#endif
14251
14252 ;
14253 return 0;
14254}
14255_ACEOF
14256rm -f conftest.$ac_objext
14257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14258 (eval $ac_compile) 2>conftest.er1
14259 ac_status=$?
14260 grep -v '^ *+' conftest.er1 >conftest.err
14261 rm -f conftest.er1
14262 cat conftest.err >&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
b4e70030
JB
14265 { ac_try='test -z "$ac_c_werror_flag"
14266 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14272 { ac_try='test -s conftest.$ac_objext'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 ac_cv_have_decl_snprintf=yes
14279else
14280 echo "$as_me: failed program was:" >&5
14281sed 's/^/| /' conftest.$ac_ext >&5
14282
b4e70030 14283ac_cv_have_decl_snprintf=no
4e8d927d 14284fi
4e8d927d
DJ
14285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14286fi
b4e70030
JB
14287echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14288echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
14289if test $ac_cv_have_decl_snprintf = yes; then
14290
14291cat >>confdefs.h <<_ACEOF
14292#define HAVE_DECL_SNPRINTF 1
14293_ACEOF
14294
14295
14296else
14297 cat >>confdefs.h <<_ACEOF
14298#define HAVE_DECL_SNPRINTF 0
14299_ACEOF
14300
14301
14302fi
b4e70030
JB
14303echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14304echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14305if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14307else
14308 cat >conftest.$ac_ext <<_ACEOF
14309/* confdefs.h. */
14310_ACEOF
14311cat confdefs.h >>conftest.$ac_ext
14312cat >>conftest.$ac_ext <<_ACEOF
14313/* end confdefs.h. */
14314$ac_includes_default
14315int
14316main ()
14317{
14318#ifndef vsnprintf
14319 char *p = (char *) vsnprintf;
4e8d927d
DJ
14320#endif
14321
14322 ;
14323 return 0;
14324}
14325_ACEOF
14326rm -f conftest.$ac_objext
14327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328 (eval $ac_compile) 2>conftest.er1
14329 ac_status=$?
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
b4e70030
JB
14335 { ac_try='test -z "$ac_c_werror_flag"
14336 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14342 { ac_try='test -s conftest.$ac_objext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_cv_have_decl_vsnprintf=yes
14349else
14350 echo "$as_me: failed program was:" >&5
14351sed 's/^/| /' conftest.$ac_ext >&5
14352
b4e70030 14353ac_cv_have_decl_vsnprintf=no
4e8d927d 14354fi
4e8d927d
DJ
14355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14356fi
b4e70030
JB
14357echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14358echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
14359if test $ac_cv_have_decl_vsnprintf = yes; then
14360
14361cat >>confdefs.h <<_ACEOF
14362#define HAVE_DECL_VSNPRINTF 1
14363_ACEOF
14364
14365
14366else
14367 cat >>confdefs.h <<_ACEOF
14368#define HAVE_DECL_VSNPRINTF 0
14369_ACEOF
14370
14371
14372fi
14373
14374
14375
14376# ----------------------- #
14377# Checks for structures. #
14378# ----------------------- #
14379
b4e70030
JB
14380echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14381echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
14382if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384else
14385 cat >conftest.$ac_ext <<_ACEOF
14386/* confdefs.h. */
14387_ACEOF
14388cat confdefs.h >>conftest.$ac_ext
14389cat >>conftest.$ac_ext <<_ACEOF
14390/* end confdefs.h. */
14391$ac_includes_default
14392int
14393main ()
14394{
14395static struct stat ac_aggr;
14396if (ac_aggr.st_blocks)
14397return 0;
14398 ;
14399 return 0;
14400}
14401_ACEOF
14402rm -f conftest.$ac_objext
14403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14404 (eval $ac_compile) 2>conftest.er1
14405 ac_status=$?
14406 grep -v '^ *+' conftest.er1 >conftest.err
14407 rm -f conftest.er1
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
b4e70030
JB
14411 { ac_try='test -z "$ac_c_werror_flag"
14412 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14418 { ac_try='test -s conftest.$ac_objext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 ac_cv_member_struct_stat_st_blocks=yes
14425else
14426 echo "$as_me: failed program was:" >&5
14427sed 's/^/| /' conftest.$ac_ext >&5
14428
b4e70030 14429cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14430/* confdefs.h. */
14431_ACEOF
14432cat confdefs.h >>conftest.$ac_ext
14433cat >>conftest.$ac_ext <<_ACEOF
14434/* end confdefs.h. */
14435$ac_includes_default
14436int
14437main ()
14438{
14439static struct stat ac_aggr;
14440if (sizeof ac_aggr.st_blocks)
14441return 0;
14442 ;
14443 return 0;
14444}
14445_ACEOF
14446rm -f conftest.$ac_objext
14447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14448 (eval $ac_compile) 2>conftest.er1
14449 ac_status=$?
14450 grep -v '^ *+' conftest.er1 >conftest.err
14451 rm -f conftest.er1
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
b4e70030
JB
14455 { ac_try='test -z "$ac_c_werror_flag"
14456 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14462 { ac_try='test -s conftest.$ac_objext'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 ac_cv_member_struct_stat_st_blocks=yes
14469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
b4e70030 14473ac_cv_member_struct_stat_st_blocks=no
4e8d927d 14474fi
4e8d927d
DJ
14475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14476fi
4e8d927d
DJ
14477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14478fi
b4e70030
JB
14479echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14480echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
14481if test $ac_cv_member_struct_stat_st_blocks = yes; then
14482
14483cat >>confdefs.h <<_ACEOF
14484#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14485_ACEOF
14486
14487
14488fi
14489
b4e70030
JB
14490echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14491echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
14492if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494else
14495 cat >conftest.$ac_ext <<_ACEOF
14496/* confdefs.h. */
14497_ACEOF
14498cat confdefs.h >>conftest.$ac_ext
14499cat >>conftest.$ac_ext <<_ACEOF
14500/* end confdefs.h. */
14501$ac_includes_default
14502int
14503main ()
14504{
14505static struct stat ac_aggr;
14506if (ac_aggr.st_blksize)
14507return 0;
14508 ;
14509 return 0;
14510}
14511_ACEOF
14512rm -f conftest.$ac_objext
14513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14514 (eval $ac_compile) 2>conftest.er1
14515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
b4e70030
JB
14521 { ac_try='test -z "$ac_c_werror_flag"
14522 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14528 { ac_try='test -s conftest.$ac_objext'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_cv_member_struct_stat_st_blksize=yes
14535else
14536 echo "$as_me: failed program was:" >&5
14537sed 's/^/| /' conftest.$ac_ext >&5
14538
b4e70030 14539cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
14544/* end confdefs.h. */
14545$ac_includes_default
14546int
14547main ()
14548{
14549static struct stat ac_aggr;
14550if (sizeof ac_aggr.st_blksize)
14551return 0;
14552 ;
14553 return 0;
14554}
14555_ACEOF
14556rm -f conftest.$ac_objext
14557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14558 (eval $ac_compile) 2>conftest.er1
14559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
b4e70030
JB
14565 { ac_try='test -z "$ac_c_werror_flag"
14566 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14572 { ac_try='test -s conftest.$ac_objext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_member_struct_stat_st_blksize=yes
14579else
14580 echo "$as_me: failed program was:" >&5
14581sed 's/^/| /' conftest.$ac_ext >&5
14582
b4e70030 14583ac_cv_member_struct_stat_st_blksize=no
4e8d927d 14584fi
4e8d927d
DJ
14585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14586fi
4e8d927d
DJ
14587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14588fi
b4e70030
JB
14589echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14590echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
14591if test $ac_cv_member_struct_stat_st_blksize = yes; then
14592
14593cat >>confdefs.h <<_ACEOF
14594#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14595_ACEOF
14596
14597
14598fi
14599
14600
14601# ------------------ #
14602# Checks for types. #
14603# ------------------ #
14604
b4e70030
JB
14605echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14606echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
14607if test "${ac_cv_type_signal+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14609else
14610 cat >conftest.$ac_ext <<_ACEOF
14611/* confdefs.h. */
14612_ACEOF
14613cat confdefs.h >>conftest.$ac_ext
14614cat >>conftest.$ac_ext <<_ACEOF
14615/* end confdefs.h. */
14616#include <sys/types.h>
14617#include <signal.h>
b4e70030
JB
14618#ifdef signal
14619# undef signal
14620#endif
14621#ifdef __cplusplus
14622extern "C" void (*signal (int, void (*)(int)))(int);
14623#else
14624void (*signal ()) ();
14625#endif
4e8d927d
DJ
14626
14627int
14628main ()
14629{
b4e70030 14630int i;
4e8d927d
DJ
14631 ;
14632 return 0;
14633}
14634_ACEOF
14635rm -f conftest.$ac_objext
14636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
b4e70030
JB
14644 { ac_try='test -z "$ac_c_werror_flag"
14645 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
b4e70030 14657 ac_cv_type_signal=void
4e8d927d
DJ
14658else
14659 echo "$as_me: failed program was:" >&5
14660sed 's/^/| /' conftest.$ac_ext >&5
14661
b4e70030 14662ac_cv_type_signal=int
4e8d927d 14663fi
4e8d927d
DJ
14664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14665fi
b4e70030
JB
14666echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14667echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
14668
14669cat >>confdefs.h <<_ACEOF
14670#define RETSIGTYPE $ac_cv_type_signal
14671_ACEOF
14672
14673
b4e70030
JB
14674echo "$as_me:$LINENO: checking for socklen_t" >&5
14675echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
14676if test "${ac_cv_type_socklen_t+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14678else
14679 cat >conftest.$ac_ext <<_ACEOF
14680/* confdefs.h. */
14681_ACEOF
14682cat confdefs.h >>conftest.$ac_ext
14683cat >>conftest.$ac_ext <<_ACEOF
14684/* end confdefs.h. */
14685#include <sys/types.h>
14686#include <sys/socket.h>
14687
14688
4e8d927d
DJ
14689int
14690main ()
14691{
b4e70030 14692if ((socklen_t *) 0)
4e8d927d 14693 return 0;
b4e70030 14694if (sizeof (socklen_t))
4e8d927d
DJ
14695 return 0;
14696 ;
14697 return 0;
14698}
14699_ACEOF
14700rm -f conftest.$ac_objext
14701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14702 (eval $ac_compile) 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
b4e70030
JB
14709 { ac_try='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14716 { ac_try='test -s conftest.$ac_objext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_cv_type_socklen_t=yes
14723else
14724 echo "$as_me: failed program was:" >&5
14725sed 's/^/| /' conftest.$ac_ext >&5
14726
b4e70030 14727ac_cv_type_socklen_t=no
4e8d927d 14728fi
4e8d927d
DJ
14729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14730fi
b4e70030
JB
14731echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14732echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
14733if test $ac_cv_type_socklen_t = yes; then
14734
14735cat >>confdefs.h <<_ACEOF
14736#define HAVE_SOCKLEN_T 1
14737_ACEOF
14738
14739
14740fi
14741
b4e70030
JB
14742echo "$as_me:$LINENO: checking for uintptr_t" >&5
14743echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
14744if test "${ac_cv_type_uintptr_t+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746else
14747 cat >conftest.$ac_ext <<_ACEOF
14748/* confdefs.h. */
14749_ACEOF
14750cat confdefs.h >>conftest.$ac_ext
14751cat >>conftest.$ac_ext <<_ACEOF
14752/* end confdefs.h. */
14753#include <stdint.h>
14754
4e8d927d
DJ
14755int
14756main ()
14757{
b4e70030 14758if ((uintptr_t *) 0)
4e8d927d 14759 return 0;
b4e70030 14760if (sizeof (uintptr_t))
4e8d927d
DJ
14761 return 0;
14762 ;
14763 return 0;
14764}
14765_ACEOF
14766rm -f conftest.$ac_objext
14767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768 (eval $ac_compile) 2>conftest.er1
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
b4e70030
JB
14775 { ac_try='test -z "$ac_c_werror_flag"
14776 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_cv_type_uintptr_t=yes
14789else
14790 echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
b4e70030 14793ac_cv_type_uintptr_t=no
4e8d927d 14794fi
4e8d927d
DJ
14795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796fi
b4e70030
JB
14797echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14798echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
14799if test $ac_cv_type_uintptr_t = yes; then
14800
14801cat >>confdefs.h <<_ACEOF
14802#define HAVE_UINTPTR_T 1
14803_ACEOF
14804
14805
14806fi
14807
14808
14809# ------------------------------------- #
14810# Checks for compiler characteristics. #
14811# ------------------------------------- #
14812
b4e70030
JB
14813echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14814echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
14815if test "${ac_cv_c_const+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14817else
14818 cat >conftest.$ac_ext <<_ACEOF
14819/* confdefs.h. */
14820_ACEOF
14821cat confdefs.h >>conftest.$ac_ext
14822cat >>conftest.$ac_ext <<_ACEOF
14823/* end confdefs.h. */
14824
14825int
14826main ()
14827{
14828/* FIXME: Include the comments suggested by Paul. */
14829#ifndef __cplusplus
14830 /* Ultrix mips cc rejects this. */
14831 typedef int charset[2];
14832 const charset x;
14833 /* SunOS 4.1.1 cc rejects this. */
14834 char const *const *ccp;
14835 char **p;
14836 /* NEC SVR4.0.2 mips cc rejects this. */
14837 struct point {int x, y;};
14838 static struct point const zero = {0,0};
14839 /* AIX XL C 1.02.0.0 rejects this.
14840 It does not let you subtract one const X* pointer from another in
14841 an arm of an if-expression whose if-part is not a constant
14842 expression */
14843 const char *g = "string";
14844 ccp = &g + (g ? g-g : 0);
14845 /* HPUX 7.0 cc rejects these. */
14846 ++ccp;
14847 p = (char**) ccp;
14848 ccp = (char const *const *) p;
14849 { /* SCO 3.2v4 cc rejects this. */
14850 char *t;
14851 char const *s = 0 ? (char *) 0 : (char const *) 0;
14852
14853 *t++ = 0;
4e8d927d
DJ
14854 }
14855 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14856 int x[] = {25, 17};
14857 const int *foo = &x[0];
14858 ++foo;
14859 }
14860 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14861 typedef const int *iptr;
14862 iptr p = 0;
14863 ++p;
14864 }
14865 { /* AIX XL C 1.02.0.0 rejects this saying
14866 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14867 struct s { int j; const int *ap[3]; };
14868 struct s *b; b->j = 5;
14869 }
14870 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14871 const int foo = 10;
4e8d927d 14872 }
4e8d927d
DJ
14873#endif
14874
14875 ;
14876 return 0;
14877}
14878_ACEOF
14879rm -f conftest.$ac_objext
14880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14881 (eval $ac_compile) 2>conftest.er1
14882 ac_status=$?
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
b4e70030
JB
14888 { ac_try='test -z "$ac_c_werror_flag"
14889 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14895 { ac_try='test -s conftest.$ac_objext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 ac_cv_c_const=yes
14902else
14903 echo "$as_me: failed program was:" >&5
14904sed 's/^/| /' conftest.$ac_ext >&5
14905
b4e70030 14906ac_cv_c_const=no
4e8d927d 14907fi
4e8d927d
DJ
14908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14909fi
b4e70030
JB
14910echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14911echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
14912if test $ac_cv_c_const = no; then
14913
14914cat >>confdefs.h <<\_ACEOF
14915#define const
14916_ACEOF
14917
14918fi
14919
b4e70030
JB
14920echo "$as_me:$LINENO: checking for inline" >&5
14921echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
14922if test "${ac_cv_c_inline+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14924else
14925 ac_cv_c_inline=no
14926for ac_kw in inline __inline__ __inline; do
14927 cat >conftest.$ac_ext <<_ACEOF
14928/* confdefs.h. */
14929_ACEOF
14930cat confdefs.h >>conftest.$ac_ext
14931cat >>conftest.$ac_ext <<_ACEOF
14932/* end confdefs.h. */
14933#ifndef __cplusplus
14934typedef int foo_t;
14935static $ac_kw foo_t static_foo () {return 0; }
14936$ac_kw foo_t foo () {return 0; }
14937#endif
14938
14939_ACEOF
14940rm -f conftest.$ac_objext
14941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14942 (eval $ac_compile) 2>conftest.er1
14943 ac_status=$?
14944 grep -v '^ *+' conftest.er1 >conftest.err
14945 rm -f conftest.er1
14946 cat conftest.err >&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } &&
b4e70030
JB
14949 { ac_try='test -z "$ac_c_werror_flag"
14950 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14956 { ac_try='test -s conftest.$ac_objext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
b4e70030 14962 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
14963else
14964 echo "$as_me: failed program was:" >&5
14965sed 's/^/| /' conftest.$ac_ext >&5
14966
4e8d927d 14967fi
4e8d927d 14968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
14969done
14970
14971fi
b4e70030
JB
14972echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14973echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 14974
bec39cab 14975
a3828db0
MK
14976case $ac_cv_c_inline in
14977 inline | yes) ;;
14978 *)
14979 case $ac_cv_c_inline in
14980 no) ac_val=;;
14981 *) ac_val=$ac_cv_c_inline;;
14982 esac
14983 cat >>confdefs.h <<_ACEOF
14984#ifndef __cplusplus
14985#define inline $ac_val
14986#endif
14987_ACEOF
bec39cab
AC
14988 ;;
14989esac
bec39cab 14990
74c1b268 14991
a3828db0
MK
14992# ------------------------------ #
14993# Checks for library functions. #
14994# ------------------------------ #
bec39cab 14995
a3828db0
MK
14996# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14997# for constant arguments. Useless!
b4e70030
JB
14998echo "$as_me:$LINENO: checking for working alloca.h" >&5
14999echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 15000if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
15001 echo $ECHO_N "(cached) $ECHO_C" >&6
15002else
15003 cat >conftest.$ac_ext <<_ACEOF
15004/* confdefs.h. */
15005_ACEOF
15006cat confdefs.h >>conftest.$ac_ext
15007cat >>conftest.$ac_ext <<_ACEOF
15008/* end confdefs.h. */
a3828db0 15009#include <alloca.h>
bec39cab
AC
15010int
15011main ()
15012{
a3828db0 15013char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
15014 ;
15015 return 0;
15016}
15017_ACEOF
15018rm -f conftest.$ac_objext conftest$ac_exeext
15019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020 (eval $ac_link) 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
b4e70030
JB
15027 { ac_try='test -z "$ac_c_werror_flag"
15028 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
15034 { ac_try='test -s conftest$ac_exeext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
a3828db0 15040 ac_cv_working_alloca_h=yes
bec39cab
AC
15041else
15042 echo "$as_me: failed program was:" >&5
15043sed 's/^/| /' conftest.$ac_ext >&5
15044
b4e70030 15045ac_cv_working_alloca_h=no
bec39cab
AC
15046fi
15047rm -f conftest.err conftest.$ac_objext \
15048 conftest$ac_exeext conftest.$ac_ext
15049fi
b4e70030
JB
15050echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15051echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
15052if test $ac_cv_working_alloca_h = yes; then
15053
15054cat >>confdefs.h <<\_ACEOF
15055#define HAVE_ALLOCA_H 1
bec39cab 15056_ACEOF
74c1b268 15057
74c1b268
AC
15058fi
15059
b4e70030
JB
15060echo "$as_me:$LINENO: checking for alloca" >&5
15061echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 15062if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 15063 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 15064else
bec39cab
AC
15065 cat >conftest.$ac_ext <<_ACEOF
15066/* confdefs.h. */
15067_ACEOF
15068cat confdefs.h >>conftest.$ac_ext
15069cat >>conftest.$ac_ext <<_ACEOF
15070/* end confdefs.h. */
a3828db0
MK
15071#ifdef __GNUC__
15072# define alloca __builtin_alloca
15073#else
15074# ifdef _MSC_VER
15075# include <malloc.h>
15076# define alloca _alloca
15077# else
15078# if HAVE_ALLOCA_H
15079# include <alloca.h>
15080# else
15081# ifdef _AIX
15082 #pragma alloca
15083# else
15084# ifndef alloca /* predefined by HP cc +Olibcalls */
15085char *alloca ();
15086# endif
15087# endif
15088# endif
97bf5e38 15089# endif
a3828db0 15090#endif
97bf5e38 15091
bec39cab
AC
15092int
15093main ()
15094{
a3828db0 15095char *p = (char *) alloca (1);
bec39cab
AC
15096 ;
15097 return 0;
15098}
15099_ACEOF
a3828db0
MK
15100rm -f conftest.$ac_objext conftest$ac_exeext
15101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15102 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
b4e70030
JB
15109 { ac_try='test -z "$ac_c_werror_flag"
15110 || test ! -s conftest.err'
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); }; } &&
a3828db0 15116 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
a3828db0 15122 ac_cv_func_alloca_works=yes
0200359f 15123else
bec39cab
AC
15124 echo "$as_me: failed program was:" >&5
15125sed 's/^/| /' conftest.$ac_ext >&5
0200359f 15126
b4e70030 15127ac_cv_func_alloca_works=no
0200359f 15128fi
a3828db0
MK
15129rm -f conftest.err conftest.$ac_objext \
15130 conftest$ac_exeext conftest.$ac_ext
72473524 15131fi
b4e70030
JB
15132echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15133echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 15134
a3828db0
MK
15135if test $ac_cv_func_alloca_works = yes; then
15136
15137cat >>confdefs.h <<\_ACEOF
15138#define HAVE_ALLOCA 1
bec39cab
AC
15139_ACEOF
15140
a3828db0
MK
15141else
15142 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15143# that cause trouble. Some versions do not even contain alloca or
15144# contain a buggy version. If you still want to use their alloca,
15145# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 15146
b4e70030 15147ALLOCA=alloca.$ac_objext
bec39cab 15148
a3828db0
MK
15149cat >>confdefs.h <<\_ACEOF
15150#define C_ALLOCA 1
15151_ACEOF
bec39cab 15152
a3828db0 15153
b4e70030
JB
15154echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15155echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 15156if test "${ac_cv_os_cray+set}" = set; then
bec39cab 15157 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15158else
a3828db0 15159 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15160/* confdefs.h. */
15161_ACEOF
15162cat confdefs.h >>conftest.$ac_ext
15163cat >>conftest.$ac_ext <<_ACEOF
15164/* end confdefs.h. */
b4e70030 15165#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
15166webecray
15167#else
15168wenotbecray
15169#endif
15170
15171_ACEOF
15172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15173 $EGREP "webecray" >/dev/null 2>&1; then
15174 ac_cv_os_cray=yes
15175else
15176 ac_cv_os_cray=no
15177fi
15178rm -f conftest*
15179
15180fi
b4e70030
JB
15181echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15182echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
15183if test $ac_cv_os_cray = yes; then
15184 for ac_func in _getb67 GETB67 getb67; do
15185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15186echo "$as_me:$LINENO: checking for $ac_func" >&5
15187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15188if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15190else
15191 cat >conftest.$ac_ext <<_ACEOF
15192/* confdefs.h. */
15193_ACEOF
15194cat confdefs.h >>conftest.$ac_ext
15195cat >>conftest.$ac_ext <<_ACEOF
15196/* end confdefs.h. */
15197/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15199#define $ac_func innocuous_$ac_func
15200
15201/* System header to define __stub macros and hopefully few prototypes,
15202 which can conflict with char $ac_func (); below.
15203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15204 <limits.h> exists even on freestanding compilers. */
15205
15206#ifdef __STDC__
15207# include <limits.h>
15208#else
15209# include <assert.h>
15210#endif
15211
15212#undef $ac_func
15213
b4e70030 15214/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
15215#ifdef __cplusplus
15216extern "C"
b4e70030 15217{
a3828db0 15218#endif
b4e70030
JB
15219/* We use char because int might match the return type of a gcc2
15220 builtin and then its argument prototype would still apply. */
a3828db0
MK
15221char $ac_func ();
15222/* The GNU C library defines this for functions which it implements
15223 to always fail with ENOSYS. Some functions are actually named
15224 something starting with __ and the normal name is an alias. */
b4e70030 15225#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 15226choke me
b4e70030
JB
15227#else
15228char (*f) () = $ac_func;
15229#endif
15230#ifdef __cplusplus
15231}
a3828db0
MK
15232#endif
15233
15234int
15235main ()
15236{
b4e70030 15237return f != $ac_func;
a3828db0
MK
15238 ;
15239 return 0;
15240}
15241_ACEOF
15242rm -f conftest.$ac_objext conftest$ac_exeext
15243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15244 (eval $ac_link) 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
b4e70030
JB
15251 { ac_try='test -z "$ac_c_werror_flag"
15252 || test ! -s conftest.err'
a3828db0
MK
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); }; } &&
15258 { ac_try='test -s conftest$ac_exeext'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 eval "$as_ac_var=yes"
15265else
15266 echo "$as_me: failed program was:" >&5
15267sed 's/^/| /' conftest.$ac_ext >&5
15268
b4e70030 15269eval "$as_ac_var=no"
a3828db0
MK
15270fi
15271rm -f conftest.err conftest.$ac_objext \
15272 conftest$ac_exeext conftest.$ac_ext
15273fi
b4e70030
JB
15274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15275echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
15276if test `eval echo '${'$as_ac_var'}'` = yes; then
15277
15278cat >>confdefs.h <<_ACEOF
15279#define CRAY_STACKSEG_END $ac_func
15280_ACEOF
15281
15282 break
15283fi
15284
15285 done
15286fi
15287
b4e70030
JB
15288echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15289echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
15290if test "${ac_cv_c_stack_direction+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15292else
15293 if test "$cross_compiling" = yes; then
15294 ac_cv_c_stack_direction=0
15295else
15296 cat >conftest.$ac_ext <<_ACEOF
15297/* confdefs.h. */
15298_ACEOF
15299cat confdefs.h >>conftest.$ac_ext
15300cat >>conftest.$ac_ext <<_ACEOF
15301/* end confdefs.h. */
15302int
15303find_stack_direction ()
15304{
15305 static char *addr = 0;
15306 auto char dummy;
15307 if (addr == 0)
15308 {
15309 addr = &dummy;
15310 return find_stack_direction ();
15311 }
15312 else
15313 return (&dummy > addr) ? 1 : -1;
15314}
15315
15316int
15317main ()
15318{
b4e70030 15319 exit (find_stack_direction () < 0);
a3828db0
MK
15320}
15321_ACEOF
15322rm -f conftest$ac_exeext
15323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_c_stack_direction=1
15334else
15335 echo "$as_me: program exited with status $ac_status" >&5
15336echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339( exit $ac_status )
15340ac_cv_c_stack_direction=-1
15341fi
b4e70030 15342rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
15343fi
15344fi
b4e70030
JB
15345echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15346echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
15347
15348cat >>confdefs.h <<_ACEOF
15349#define STACK_DIRECTION $ac_cv_c_stack_direction
15350_ACEOF
15351
15352
15353fi
15354
15355
15356
15357for ac_header in stdlib.h unistd.h
15358do
15359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15360if eval "test \"\${$as_ac_Header+set}\" = set"; then
15361 echo "$as_me:$LINENO: checking for $ac_header" >&5
15362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15363if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15365fi
b4e70030
JB
15366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
15368else
15369 # Is the header compilable?
b4e70030
JB
15370echo "$as_me:$LINENO: checking $ac_header usability" >&5
15371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
15372cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378$ac_includes_default
15379#include <$ac_header>
15380_ACEOF
15381rm -f conftest.$ac_objext
15382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15383 (eval $ac_compile) 2>conftest.er1
15384 ac_status=$?
bec39cab
AC
15385 grep -v '^ *+' conftest.er1 >conftest.err
15386 rm -f conftest.er1
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
b4e70030
JB
15390 { ac_try='test -z "$ac_c_werror_flag"
15391 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_header_compiler=yes
15404else
15405 echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
b4e70030 15408ac_header_compiler=no
bec39cab
AC
15409fi
15410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15412echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15413
15414# Is the header present?
b4e70030
JB
15415echo "$as_me:$LINENO: checking $ac_header presence" >&5
15416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15417cat >conftest.$ac_ext <<_ACEOF
15418/* confdefs.h. */
15419_ACEOF
15420cat confdefs.h >>conftest.$ac_ext
15421cat >>conftest.$ac_ext <<_ACEOF
15422/* end confdefs.h. */
15423#include <$ac_header>
15424_ACEOF
15425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } >/dev/null; then
15433 if test -s conftest.err; then
15434 ac_cpp_err=$ac_c_preproc_warn_flag
15435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15436 else
15437 ac_cpp_err=
15438 fi
15439else
15440 ac_cpp_err=yes
15441fi
15442if test -z "$ac_cpp_err"; then
15443 ac_header_preproc=yes
97bf5e38 15444else
bec39cab
AC
15445 echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
15448 ac_header_preproc=no
72473524 15449fi
bec39cab 15450rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15452echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 15453
bec39cab
AC
15454# So? What about this header?
15455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15456 yes:no: )
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15461 ac_header_preproc=yes
15462 ;;
15463 no:yes:* )
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15476 (
15477 cat <<\_ASBOX
15478## ------------------------------------------ ##
15479## Report this to the AC_PACKAGE_NAME lists. ##
15480## ------------------------------------------ ##
15481_ASBOX
15482 ) |
15483 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15484 ;;
15485esac
b4e70030
JB
15486echo "$as_me:$LINENO: checking for $ac_header" >&5
15487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15488if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15489 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15490else
bec39cab
AC
15491 eval "$as_ac_Header=\$ac_header_preproc"
15492fi
b4e70030
JB
15493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15495
15496fi
15497if test `eval echo '${'$as_ac_Header'}'` = yes; then
15498 cat >>confdefs.h <<_ACEOF
15499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15500_ACEOF
15501
15502fi
15503
15504done
15505
15506
a3828db0 15507for ac_func in getpagesize
bec39cab
AC
15508do
15509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15510echo "$as_me:$LINENO: checking for $ac_func" >&5
15511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15512if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514else
15515 cat >conftest.$ac_ext <<_ACEOF
15516/* confdefs.h. */
15517_ACEOF
15518cat confdefs.h >>conftest.$ac_ext
15519cat >>conftest.$ac_ext <<_ACEOF
15520/* end confdefs.h. */
15521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15523#define $ac_func innocuous_$ac_func
15524
97bf5e38 15525/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15526 which can conflict with char $ac_func (); below.
15527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15528 <limits.h> exists even on freestanding compilers. */
2b2d558c 15529
bec39cab
AC
15530#ifdef __STDC__
15531# include <limits.h>
15532#else
15533# include <assert.h>
15534#endif
97bf5e38 15535
bec39cab
AC
15536#undef $ac_func
15537
b4e70030 15538/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
15539#ifdef __cplusplus
15540extern "C"
b4e70030 15541{
bec39cab 15542#endif
b4e70030
JB
15543/* We use char because int might match the return type of a gcc2
15544 builtin and then its argument prototype would still apply. */
bec39cab 15545char $ac_func ();
97bf5e38
MK
15546/* The GNU C library defines this for functions which it implements
15547 to always fail with ENOSYS. Some functions are actually named
15548 something starting with __ and the normal name is an alias. */
b4e70030 15549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 15550choke me
b4e70030
JB
15551#else
15552char (*f) () = $ac_func;
15553#endif
15554#ifdef __cplusplus
15555}
97bf5e38
MK
15556#endif
15557
bec39cab
AC
15558int
15559main ()
15560{
b4e70030 15561return f != $ac_func;
bec39cab
AC
15562 ;
15563 return 0;
15564}
15565_ACEOF
15566rm -f conftest.$ac_objext conftest$ac_exeext
15567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15568 (eval $ac_link) 2>conftest.er1
15569 ac_status=$?
15570 grep -v '^ *+' conftest.er1 >conftest.err
15571 rm -f conftest.er1
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
b4e70030
JB
15575 { ac_try='test -z "$ac_c_werror_flag"
15576 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
15582 { ac_try='test -s conftest$ac_exeext'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15585 ac_status=$?
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15588 eval "$as_ac_var=yes"
15589else
15590 echo "$as_me: failed program was:" >&5
15591sed 's/^/| /' conftest.$ac_ext >&5
15592
b4e70030 15593eval "$as_ac_var=no"
bec39cab
AC
15594fi
15595rm -f conftest.err conftest.$ac_objext \
15596 conftest$ac_exeext conftest.$ac_ext
15597fi
b4e70030
JB
15598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15599echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
15600if test `eval echo '${'$as_ac_var'}'` = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15603_ACEOF
15604
2b2d558c 15605fi
bec39cab 15606done
2b2d558c 15607
b4e70030
JB
15608echo "$as_me:$LINENO: checking for working mmap" >&5
15609echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 15610if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 15611 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15612else
bec39cab 15613 if test "$cross_compiling" = yes; then
a3828db0 15614 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
15615else
15616 cat >conftest.$ac_ext <<_ACEOF
a3828db0 15617/* confdefs.h. */
bec39cab
AC
15618_ACEOF
15619cat confdefs.h >>conftest.$ac_ext
15620cat >>conftest.$ac_ext <<_ACEOF
15621/* end confdefs.h. */
a3828db0
MK
15622$ac_includes_default
15623/* malloc might have been renamed as rpl_malloc. */
15624#undef malloc
bec39cab 15625
a3828db0
MK
15626/* Thanks to Mike Haertel and Jim Avera for this test.
15627 Here is a matrix of mmap possibilities:
15628 mmap private not fixed
15629 mmap private fixed at somewhere currently unmapped
15630 mmap private fixed at somewhere already mapped
15631 mmap shared not fixed
15632 mmap shared fixed at somewhere currently unmapped
15633 mmap shared fixed at somewhere already mapped
15634 For private mappings, we should verify that changes cannot be read()
15635 back from the file, nor mmap's back from the file at a different
15636 address. (There have been systems where private was not correctly
15637 implemented like the infamous i386 svr4.0, and systems where the
15638 VM page cache was not coherent with the file system buffer cache
15639 like early versions of FreeBSD and possibly contemporary NetBSD.)
15640 For shared mappings, we should conversely verify that changes get
15641 propagated back to all the places they're supposed to be.
7dfa765c 15642
a3828db0
MK
15643 Grep wants private fixed already mapped.
15644 The main things grep needs to know about mmap are:
15645 * does it exist and is it safe to write into the mmap'd area
15646 * how to use it (BSD variants) */
7dfa765c 15647
a3828db0
MK
15648#include <fcntl.h>
15649#include <sys/mman.h>
7dfa765c 15650
a3828db0
MK
15651#if !STDC_HEADERS && !HAVE_STDLIB_H
15652char *malloc ();
15653#endif
7dfa765c 15654
a3828db0
MK
15655/* This mess was copied from the GNU getpagesize.h. */
15656#if !HAVE_GETPAGESIZE
15657/* Assume that all systems that can run configure have sys/param.h. */
15658# if !HAVE_SYS_PARAM_H
15659# define HAVE_SYS_PARAM_H 1
15660# endif
64bb1671 15661
a3828db0
MK
15662# ifdef _SC_PAGESIZE
15663# define getpagesize() sysconf(_SC_PAGESIZE)
15664# else /* no _SC_PAGESIZE */
15665# if HAVE_SYS_PARAM_H
15666# include <sys/param.h>
15667# ifdef EXEC_PAGESIZE
15668# define getpagesize() EXEC_PAGESIZE
15669# else /* no EXEC_PAGESIZE */
15670# ifdef NBPG
15671# define getpagesize() NBPG * CLSIZE
15672# ifndef CLSIZE
15673# define CLSIZE 1
15674# endif /* no CLSIZE */
15675# else /* no NBPG */
15676# ifdef NBPC
15677# define getpagesize() NBPC
15678# else /* no NBPC */
15679# ifdef PAGESIZE
15680# define getpagesize() PAGESIZE
15681# endif /* PAGESIZE */
15682# endif /* no NBPC */
15683# endif /* no NBPG */
15684# endif /* no EXEC_PAGESIZE */
15685# else /* no HAVE_SYS_PARAM_H */
15686# define getpagesize() 8192 /* punt totally */
15687# endif /* no HAVE_SYS_PARAM_H */
15688# endif /* no _SC_PAGESIZE */
64bb1671 15689
a3828db0 15690#endif /* no HAVE_GETPAGESIZE */
64bb1671 15691
a3828db0
MK
15692int
15693main ()
15694{
15695 char *data, *data2, *data3;
15696 int i, pagesize;
15697 int fd;
97bf5e38 15698
a3828db0
MK
15699 pagesize = getpagesize ();
15700
15701 /* First, make a file with some known garbage in it. */
15702 data = (char *) malloc (pagesize);
15703 if (!data)
b4e70030 15704 exit (1);
a3828db0
MK
15705 for (i = 0; i < pagesize; ++i)
15706 *(data + i) = rand ();
15707 umask (0);
15708 fd = creat ("conftest.mmap", 0600);
15709 if (fd < 0)
b4e70030 15710 exit (1);
a3828db0 15711 if (write (fd, data, pagesize) != pagesize)
b4e70030 15712 exit (1);
a3828db0
MK
15713 close (fd);
15714
15715 /* Next, try to mmap the file at a fixed address which already has
15716 something else allocated at it. If we can, also make sure that
15717 we see the same garbage. */
15718 fd = open ("conftest.mmap", O_RDWR);
15719 if (fd < 0)
b4e70030 15720 exit (1);
a3828db0
MK
15721 data2 = (char *) malloc (2 * pagesize);
15722 if (!data2)
b4e70030
JB
15723 exit (1);
15724 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
15725 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15726 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 15727 exit (1);
a3828db0
MK
15728 for (i = 0; i < pagesize; ++i)
15729 if (*(data + i) != *(data2 + i))
b4e70030 15730 exit (1);
a3828db0
MK
15731
15732 /* Finally, make sure that changes to the mapped area do not
15733 percolate back to the file as seen by read(). (This is a bug on
15734 some variants of i386 svr4.0.) */
15735 for (i = 0; i < pagesize; ++i)
15736 *(data2 + i) = *(data2 + i) + 1;
15737 data3 = (char *) malloc (pagesize);
15738 if (!data3)
b4e70030 15739 exit (1);
a3828db0 15740 if (read (fd, data3, pagesize) != pagesize)
b4e70030 15741 exit (1);
a3828db0
MK
15742 for (i = 0; i < pagesize; ++i)
15743 if (*(data + i) != *(data3 + i))
b4e70030 15744 exit (1);
a3828db0 15745 close (fd);
b4e70030 15746 exit (0);
97bf5e38 15747}
bec39cab
AC
15748_ACEOF
15749rm -f conftest$ac_exeext
15750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751 (eval $ac_link) 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
a3828db0 15760 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 15761else
bec39cab
AC
15762 echo "$as_me: program exited with status $ac_status" >&5
15763echo "$as_me: failed program was:" >&5
15764sed 's/^/| /' conftest.$ac_ext >&5
15765
15766( exit $ac_status )
a3828db0 15767ac_cv_func_mmap_fixed_mapped=no
0afdd437 15768fi
b4e70030 15769rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 15770fi
a3828db0 15771fi
b4e70030
JB
15772echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15773echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 15774if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
15775
15776cat >>confdefs.h <<\_ACEOF
a3828db0 15777#define HAVE_MMAP 1
bec39cab 15778_ACEOF
0afdd437
MK
15779
15780fi
a3828db0 15781rm -f conftest.mmap
0afdd437 15782
b4e70030
JB
15783echo "$as_me:$LINENO: checking for pid_t" >&5
15784echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 15785if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787else
15788 cat >conftest.$ac_ext <<_ACEOF
15789/* confdefs.h. */
15790_ACEOF
15791cat confdefs.h >>conftest.$ac_ext
15792cat >>conftest.$ac_ext <<_ACEOF
15793/* end confdefs.h. */
a3828db0 15794$ac_includes_default
bec39cab
AC
15795int
15796main ()
15797{
b4e70030 15798if ((pid_t *) 0)
a3828db0 15799 return 0;
b4e70030 15800if (sizeof (pid_t))
a3828db0 15801 return 0;
bec39cab
AC
15802 ;
15803 return 0;
15804}
15805_ACEOF
a3828db0
MK
15806rm -f conftest.$ac_objext
15807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15808 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
15809 ac_status=$?
15810 grep -v '^ *+' conftest.er1 >conftest.err
15811 rm -f conftest.er1
15812 cat conftest.err >&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } &&
b4e70030
JB
15815 { ac_try='test -z "$ac_c_werror_flag"
15816 || test ! -s conftest.err'
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); }; } &&
a3828db0 15822 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
a3828db0 15828 ac_cv_type_pid_t=yes
bec39cab
AC
15829else
15830 echo "$as_me: failed program was:" >&5
15831sed 's/^/| /' conftest.$ac_ext >&5
15832
b4e70030 15833ac_cv_type_pid_t=no
bec39cab 15834fi
a3828db0 15835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 15836fi
b4e70030
JB
15837echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15838echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
15839if test $ac_cv_type_pid_t = yes; then
15840 :
15841else
15842
15843cat >>confdefs.h <<_ACEOF
15844#define pid_t int
bec39cab 15845_ACEOF
7e89e357 15846
7e89e357
JT
15847fi
15848
bec39cab 15849
b4e70030
JB
15850
15851for ac_header in unistd.h vfork.h
7be570e7 15852do
a3828db0 15853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15854if eval "test \"\${$as_ac_Header+set}\" = set"; then
15855 echo "$as_me:$LINENO: checking for $ac_header" >&5
15856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15857if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15858 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 15859fi
b4e70030
JB
15860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15862else
a3828db0 15863 # Is the header compilable?
b4e70030
JB
15864echo "$as_me:$LINENO: checking $ac_header usability" >&5
15865echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 15866cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15867/* confdefs.h. */
15868_ACEOF
15869cat confdefs.h >>conftest.$ac_ext
15870cat >>conftest.$ac_ext <<_ACEOF
15871/* end confdefs.h. */
a3828db0
MK
15872$ac_includes_default
15873#include <$ac_header>
bec39cab 15874_ACEOF
a3828db0
MK
15875rm -f conftest.$ac_objext
15876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15877 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
15878 ac_status=$?
15879 grep -v '^ *+' conftest.er1 >conftest.err
15880 rm -f conftest.er1
15881 cat conftest.err >&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } &&
b4e70030
JB
15884 { ac_try='test -z "$ac_c_werror_flag"
15885 || test ! -s conftest.err'
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); }; } &&
a3828db0 15891 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
a3828db0 15897 ac_header_compiler=yes
bec39cab
AC
15898else
15899 echo "$as_me: failed program was:" >&5
15900sed 's/^/| /' conftest.$ac_ext >&5
15901
b4e70030 15902ac_header_compiler=no
bec39cab 15903fi
a3828db0 15904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15905echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15906echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
15907
15908# Is the header present?
b4e70030
JB
15909echo "$as_me:$LINENO: checking $ac_header presence" >&5
15910echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
15911cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917#include <$ac_header>
15918_ACEOF
15919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15921 ac_status=$?
15922 grep -v '^ *+' conftest.er1 >conftest.err
15923 rm -f conftest.er1
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } >/dev/null; then
15927 if test -s conftest.err; then
15928 ac_cpp_err=$ac_c_preproc_warn_flag
15929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15930 else
15931 ac_cpp_err=
15932 fi
15933else
15934 ac_cpp_err=yes
15935fi
15936if test -z "$ac_cpp_err"; then
15937 ac_header_preproc=yes
15938else
15939 echo "$as_me: failed program was:" >&5
15940sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 ac_header_preproc=no
15943fi
15944rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15945echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15946echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
15947
15948# So? What about this header?
15949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15950 yes:no: )
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15954echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15955 ac_header_preproc=yes
15956 ;;
15957 no:yes:* )
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15959echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15961echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15963echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15965echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15969echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15970 (
15971 cat <<\_ASBOX
15972## ------------------------------------------ ##
15973## Report this to the AC_PACKAGE_NAME lists. ##
15974## ------------------------------------------ ##
15975_ASBOX
15976 ) |
15977 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
15978 ;;
15979esac
b4e70030
JB
15980echo "$as_me:$LINENO: checking for $ac_header" >&5
15981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15982if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984else
15985 eval "$as_ac_Header=\$ac_header_preproc"
15986fi
b4e70030
JB
15987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 15989
bec39cab 15990fi
a3828db0 15991if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 15992 cat >>confdefs.h <<_ACEOF
a3828db0 15993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 15994_ACEOF
14abd0fb 15995
14abd0fb 15996fi
a3828db0 15997
14abd0fb
MK
15998done
15999
bec39cab 16000
a3828db0
MK
16001
16002for ac_func in fork vfork
14abd0fb 16003do
bec39cab 16004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16005echo "$as_me:$LINENO: checking for $ac_func" >&5
16006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16007if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16008 echo $ECHO_N "(cached) $ECHO_C" >&6
16009else
16010 cat >conftest.$ac_ext <<_ACEOF
16011/* confdefs.h. */
16012_ACEOF
16013cat confdefs.h >>conftest.$ac_ext
16014cat >>conftest.$ac_ext <<_ACEOF
16015/* end confdefs.h. */
16016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16018#define $ac_func innocuous_$ac_func
16019
14abd0fb 16020/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16021 which can conflict with char $ac_func (); below.
16022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16023 <limits.h> exists even on freestanding compilers. */
16024
16025#ifdef __STDC__
16026# include <limits.h>
16027#else
16028# include <assert.h>
16029#endif
14abd0fb 16030
bec39cab 16031#undef $ac_func
14abd0fb 16032
b4e70030 16033/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16034#ifdef __cplusplus
16035extern "C"
b4e70030 16036{
bec39cab 16037#endif
b4e70030
JB
16038/* We use char because int might match the return type of a gcc2
16039 builtin and then its argument prototype would still apply. */
bec39cab 16040char $ac_func ();
14abd0fb
MK
16041/* The GNU C library defines this for functions which it implements
16042 to always fail with ENOSYS. Some functions are actually named
16043 something starting with __ and the normal name is an alias. */
b4e70030 16044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 16045choke me
b4e70030
JB
16046#else
16047char (*f) () = $ac_func;
16048#endif
16049#ifdef __cplusplus
16050}
14abd0fb
MK
16051#endif
16052
bec39cab
AC
16053int
16054main ()
16055{
b4e70030 16056return f != $ac_func;
bec39cab
AC
16057 ;
16058 return 0;
16059}
16060_ACEOF
16061rm -f conftest.$ac_objext conftest$ac_exeext
16062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063 (eval $ac_link) 2>conftest.er1
16064 ac_status=$?
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
b4e70030
JB
16070 { ac_try='test -z "$ac_c_werror_flag"
16071 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
16077 { ac_try='test -s conftest$ac_exeext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 eval "$as_ac_var=yes"
16084else
16085 echo "$as_me: failed program was:" >&5
16086sed 's/^/| /' conftest.$ac_ext >&5
16087
b4e70030 16088eval "$as_ac_var=no"
bec39cab
AC
16089fi
16090rm -f conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
16092fi
b4e70030
JB
16093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16094echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16095if test `eval echo '${'$as_ac_var'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16098_ACEOF
7be570e7 16099
7be570e7
JM
16100fi
16101done
16102
a3828db0 16103if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
16104 echo "$as_me:$LINENO: checking for working fork" >&5
16105echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
16106if test "${ac_cv_func_fork_works+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108else
16109 if test "$cross_compiling" = yes; then
16110 ac_cv_func_fork_works=cross
16111else
16112 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
16113/* By Ruediger Kuhlmann. */
16114 #include <sys/types.h>
16115 #if HAVE_UNISTD_H
16116 # include <unistd.h>
16117 #endif
16118 /* Some systems only have a dummy stub for fork() */
16119 int main ()
16120 {
16121 if (fork() < 0)
16122 exit (1);
16123 exit (0);
16124 }
a3828db0
MK
16125_ACEOF
16126rm -f conftest$ac_exeext
16127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16128 (eval $ac_link) 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_cv_func_fork_works=yes
16138else
16139 echo "$as_me: program exited with status $ac_status" >&5
16140echo "$as_me: failed program was:" >&5
16141sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16142
a3828db0
MK
16143( exit $ac_status )
16144ac_cv_func_fork_works=no
16145fi
b4e70030 16146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16147fi
16148fi
b4e70030
JB
16149echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16150echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
16151
16152else
16153 ac_cv_func_fork_works=$ac_cv_func_fork
16154fi
16155if test "x$ac_cv_func_fork_works" = xcross; then
16156 case $host in
16157 *-*-amigaos* | *-*-msdosdjgpp*)
16158 # Override, as these systems have only a dummy fork() stub
16159 ac_cv_func_fork_works=no
16160 ;;
16161 *)
16162 ac_cv_func_fork_works=yes
16163 ;;
16164 esac
16165 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16166echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16167fi
16168ac_cv_func_vfork_works=$ac_cv_func_vfork
16169if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
16170 echo "$as_me:$LINENO: checking for working vfork" >&5
16171echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 16172if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 16173 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16174else
16175 if test "$cross_compiling" = yes; then
16176 ac_cv_func_vfork_works=cross
bec39cab
AC
16177else
16178 cat >conftest.$ac_ext <<_ACEOF
16179/* confdefs.h. */
16180_ACEOF
16181cat confdefs.h >>conftest.$ac_ext
16182cat >>conftest.$ac_ext <<_ACEOF
16183/* end confdefs.h. */
a3828db0 16184/* Thanks to Paul Eggert for this test. */
b4e70030
JB
16185#include <stdio.h>
16186#include <stdlib.h>
16187#include <sys/types.h>
16188#include <sys/stat.h>
a3828db0 16189#include <sys/wait.h>
b4e70030
JB
16190#if HAVE_UNISTD_H
16191# include <unistd.h>
16192#endif
a3828db0
MK
16193#if HAVE_VFORK_H
16194# include <vfork.h>
bec39cab 16195#endif
a3828db0
MK
16196/* On some sparc systems, changes by the child to local and incoming
16197 argument registers are propagated back to the parent. The compiler
16198 is told about this with #include <vfork.h>, but some compilers
16199 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16200 static variable whose address is put into a register that is
16201 clobbered by the vfork. */
16202static void
bec39cab 16203#ifdef __cplusplus
a3828db0
MK
16204sparc_address_test (int arg)
16205# else
16206sparc_address_test (arg) int arg;
c906108c 16207#endif
a3828db0
MK
16208{
16209 static pid_t child;
16210 if (!child) {
16211 child = vfork ();
16212 if (child < 0) {
16213 perror ("vfork");
16214 _exit(2);
16215 }
16216 if (!child) {
16217 arg = getpid();
16218 write(-1, "", 0);
16219 _exit (arg);
16220 }
16221 }
16222}
97bf5e38 16223
bec39cab
AC
16224int
16225main ()
16226{
a3828db0
MK
16227 pid_t parent = getpid ();
16228 pid_t child;
16229
16230 sparc_address_test (0);
16231
16232 child = vfork ();
16233
16234 if (child == 0) {
16235 /* Here is another test for sparc vfork register problems. This
16236 test uses lots of local variables, at least as many local
16237 variables as main has allocated so far including compiler
16238 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16239 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16240 reuse the register of parent for one of the local variables,
16241 since it will think that parent can't possibly be used any more
16242 in this routine. Assigning to the local variable will thus
16243 munge parent in the parent process. */
16244 pid_t
16245 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16246 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16247 /* Convince the compiler that p..p7 are live; otherwise, it might
16248 use the same hardware register for all 8 local variables. */
16249 if (p != p1 || p != p2 || p != p3 || p != p4
16250 || p != p5 || p != p6 || p != p7)
16251 _exit(1);
16252
16253 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16254 from child file descriptors. If the child closes a descriptor
16255 before it execs or exits, this munges the parent's descriptor
16256 as well. Test for this by closing stdout in the child. */
16257 _exit(close(fileno(stdout)) != 0);
16258 } else {
16259 int status;
16260 struct stat st;
16261
16262 while (wait(&status) != child)
16263 ;
b4e70030 16264 exit(
a3828db0
MK
16265 /* Was there some problem with vforking? */
16266 child < 0
16267
16268 /* Did the child fail? (This shouldn't happen.) */
16269 || status
16270
16271 /* Did the vfork/compiler bug occur? */
16272 || parent != getpid()
16273
16274 /* Did the file descriptor bug occur? */
16275 || fstat(fileno(stdout), &st) != 0
16276 );
16277 }
bec39cab
AC
16278}
16279_ACEOF
a3828db0 16280rm -f conftest$ac_exeext
bec39cab 16281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16282 (eval $ac_link) 2>&5
bec39cab
AC
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
a3828db0
MK
16291 ac_cv_func_vfork_works=yes
16292else
16293 echo "$as_me: program exited with status $ac_status" >&5
16294echo "$as_me: failed program was:" >&5
16295sed 's/^/| /' conftest.$ac_ext >&5
16296
16297( exit $ac_status )
16298ac_cv_func_vfork_works=no
16299fi
b4e70030 16300rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16301fi
16302fi
b4e70030
JB
16303echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16304echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
16305
16306fi;
16307if test "x$ac_cv_func_fork_works" = xcross; then
16308 ac_cv_func_vfork_works=$ac_cv_func_vfork
16309 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16310echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16311fi
16312
16313if test "x$ac_cv_func_vfork_works" = xyes; then
16314
16315cat >>confdefs.h <<\_ACEOF
16316#define HAVE_WORKING_VFORK 1
16317_ACEOF
16318
bec39cab 16319else
bec39cab 16320
a3828db0
MK
16321cat >>confdefs.h <<\_ACEOF
16322#define vfork fork
16323_ACEOF
16324
bec39cab 16325fi
a3828db0
MK
16326if test "x$ac_cv_func_fork_works" = xyes; then
16327
16328cat >>confdefs.h <<\_ACEOF
16329#define HAVE_WORKING_FORK 1
bec39cab 16330_ACEOF
c906108c 16331
c906108c
SS
16332fi
16333
bec39cab
AC
16334
16335
a3828db0 16336for ac_func in canonicalize_file_name realpath
97bf5e38 16337do
bec39cab 16338as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16339echo "$as_me:$LINENO: checking for $ac_func" >&5
16340echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16341if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343else
16344 cat >conftest.$ac_ext <<_ACEOF
16345/* confdefs.h. */
16346_ACEOF
16347cat confdefs.h >>conftest.$ac_ext
16348cat >>conftest.$ac_ext <<_ACEOF
16349/* end confdefs.h. */
16350/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16352#define $ac_func innocuous_$ac_func
16353
d3ea6809
MM
16354/* System header to define __stub macros and hopefully few prototypes,
16355 which can conflict with char $ac_func (); below.
16356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16357 <limits.h> exists even on freestanding compilers. */
16358
16359#ifdef __STDC__
16360# include <limits.h>
16361#else
16362# include <assert.h>
16363#endif
16364
16365#undef $ac_func
16366
b4e70030 16367/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
16368#ifdef __cplusplus
16369extern "C"
b4e70030 16370{
d3ea6809 16371#endif
b4e70030
JB
16372/* We use char because int might match the return type of a gcc2
16373 builtin and then its argument prototype would still apply. */
d3ea6809
MM
16374char $ac_func ();
16375/* The GNU C library defines this for functions which it implements
16376 to always fail with ENOSYS. Some functions are actually named
16377 something starting with __ and the normal name is an alias. */
b4e70030 16378#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 16379choke me
b4e70030
JB
16380#else
16381char (*f) () = $ac_func;
16382#endif
16383#ifdef __cplusplus
16384}
d3ea6809
MM
16385#endif
16386
16387int
16388main ()
16389{
b4e70030 16390return f != $ac_func;
d3ea6809
MM
16391 ;
16392 return 0;
16393}
16394_ACEOF
16395rm -f conftest.$ac_objext conftest$ac_exeext
16396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397 (eval $ac_link) 2>conftest.er1
16398 ac_status=$?
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
b4e70030
JB
16404 { ac_try='test -z "$ac_c_werror_flag"
16405 || test ! -s conftest.err'
d3ea6809
MM
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); }; } &&
16411 { ac_try='test -s conftest$ac_exeext'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 eval "$as_ac_var=yes"
16418else
16419 echo "$as_me: failed program was:" >&5
16420sed 's/^/| /' conftest.$ac_ext >&5
16421
b4e70030 16422eval "$as_ac_var=no"
d3ea6809
MM
16423fi
16424rm -f conftest.err conftest.$ac_objext \
16425 conftest$ac_exeext conftest.$ac_ext
16426fi
b4e70030
JB
16427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16428echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
16429if test `eval echo '${'$as_ac_var'}'` = yes; then
16430 cat >>confdefs.h <<_ACEOF
16431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16432_ACEOF
16433
16434fi
16435done
16436
16437
16438
16439for ac_func in getuid getgid
16440do
16441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16442echo "$as_me:$LINENO: checking for $ac_func" >&5
16443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16444if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446else
16447 cat >conftest.$ac_ext <<_ACEOF
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
16453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16455#define $ac_func innocuous_$ac_func
16456
97bf5e38 16457/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16458 which can conflict with char $ac_func (); below.
16459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16460 <limits.h> exists even on freestanding compilers. */
c906108c 16461
bec39cab
AC
16462#ifdef __STDC__
16463# include <limits.h>
16464#else
16465# include <assert.h>
16466#endif
97bf5e38 16467
bec39cab
AC
16468#undef $ac_func
16469
b4e70030 16470/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16471#ifdef __cplusplus
16472extern "C"
b4e70030 16473{
bec39cab 16474#endif
b4e70030
JB
16475/* We use char because int might match the return type of a gcc2
16476 builtin and then its argument prototype would still apply. */
bec39cab 16477char $ac_func ();
97bf5e38
MK
16478/* The GNU C library defines this for functions which it implements
16479 to always fail with ENOSYS. Some functions are actually named
16480 something starting with __ and the normal name is an alias. */
b4e70030 16481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16482choke me
b4e70030
JB
16483#else
16484char (*f) () = $ac_func;
16485#endif
16486#ifdef __cplusplus
16487}
c906108c 16488#endif
97bf5e38 16489
bec39cab
AC
16490int
16491main ()
16492{
b4e70030 16493return f != $ac_func;
bec39cab
AC
16494 ;
16495 return 0;
16496}
16497_ACEOF
16498rm -f conftest.$ac_objext conftest$ac_exeext
16499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16500 (eval $ac_link) 2>conftest.er1
16501 ac_status=$?
16502 grep -v '^ *+' conftest.er1 >conftest.err
16503 rm -f conftest.er1
16504 cat conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
b4e70030
JB
16507 { ac_try='test -z "$ac_c_werror_flag"
16508 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
16514 { ac_try='test -s conftest$ac_exeext'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 eval "$as_ac_var=yes"
16521else
16522 echo "$as_me: failed program was:" >&5
16523sed 's/^/| /' conftest.$ac_ext >&5
16524
b4e70030 16525eval "$as_ac_var=no"
bec39cab
AC
16526fi
16527rm -f conftest.err conftest.$ac_objext \
16528 conftest$ac_exeext conftest.$ac_ext
16529fi
b4e70030
JB
16530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16531echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16532if test `eval echo '${'$as_ac_var'}'` = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16535_ACEOF
c906108c 16536
c906108c 16537fi
97bf5e38 16538done
c906108c 16539
bec39cab 16540
a3828db0 16541for ac_func in poll
97bf5e38 16542do
bec39cab 16543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16544echo "$as_me:$LINENO: checking for $ac_func" >&5
16545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16546if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16548else
16549 cat >conftest.$ac_ext <<_ACEOF
16550/* confdefs.h. */
16551_ACEOF
16552cat confdefs.h >>conftest.$ac_ext
16553cat >>conftest.$ac_ext <<_ACEOF
16554/* end confdefs.h. */
16555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16557#define $ac_func innocuous_$ac_func
16558
97bf5e38 16559/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16560 which can conflict with char $ac_func (); below.
16561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16562 <limits.h> exists even on freestanding compilers. */
16563
16564#ifdef __STDC__
16565# include <limits.h>
16566#else
16567# include <assert.h>
16568#endif
c906108c 16569
bec39cab 16570#undef $ac_func
97bf5e38 16571
b4e70030 16572/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16573#ifdef __cplusplus
16574extern "C"
b4e70030 16575{
bec39cab 16576#endif
b4e70030
JB
16577/* We use char because int might match the return type of a gcc2
16578 builtin and then its argument prototype would still apply. */
bec39cab 16579char $ac_func ();
97bf5e38
MK
16580/* The GNU C library defines this for functions which it implements
16581 to always fail with ENOSYS. Some functions are actually named
16582 something starting with __ and the normal name is an alias. */
b4e70030 16583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16584choke me
b4e70030
JB
16585#else
16586char (*f) () = $ac_func;
16587#endif
16588#ifdef __cplusplus
16589}
c906108c 16590#endif
97bf5e38 16591
bec39cab
AC
16592int
16593main ()
16594{
b4e70030 16595return f != $ac_func;
bec39cab
AC
16596 ;
16597 return 0;
16598}
16599_ACEOF
16600rm -f conftest.$ac_objext conftest$ac_exeext
16601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16602 (eval $ac_link) 2>conftest.er1
16603 ac_status=$?
16604 grep -v '^ *+' conftest.er1 >conftest.err
16605 rm -f conftest.er1
16606 cat conftest.err >&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } &&
b4e70030
JB
16609 { ac_try='test -z "$ac_c_werror_flag"
16610 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 eval "$as_ac_var=yes"
16623else
16624 echo "$as_me: failed program was:" >&5
16625sed 's/^/| /' conftest.$ac_ext >&5
16626
b4e70030 16627eval "$as_ac_var=no"
bec39cab
AC
16628fi
16629rm -f conftest.err conftest.$ac_objext \
16630 conftest$ac_exeext conftest.$ac_ext
16631fi
b4e70030
JB
16632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16634if test `eval echo '${'$as_ac_var'}'` = yes; then
16635 cat >>confdefs.h <<_ACEOF
16636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16637_ACEOF
c906108c 16638
c906108c 16639fi
97bf5e38 16640done
c906108c 16641
bec39cab 16642
a3828db0 16643for ac_func in pread64
97bf5e38 16644do
bec39cab 16645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16646echo "$as_me:$LINENO: checking for $ac_func" >&5
16647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16648if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650else
16651 cat >conftest.$ac_ext <<_ACEOF
16652/* confdefs.h. */
16653_ACEOF
16654cat confdefs.h >>conftest.$ac_ext
16655cat >>conftest.$ac_ext <<_ACEOF
16656/* end confdefs.h. */
16657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16659#define $ac_func innocuous_$ac_func
16660
97bf5e38 16661/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16662 which can conflict with char $ac_func (); below.
16663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16664 <limits.h> exists even on freestanding compilers. */
16665
16666#ifdef __STDC__
16667# include <limits.h>
16668#else
16669# include <assert.h>
16670#endif
c906108c 16671
bec39cab 16672#undef $ac_func
97bf5e38 16673
b4e70030 16674/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16675#ifdef __cplusplus
16676extern "C"
b4e70030 16677{
bec39cab 16678#endif
b4e70030
JB
16679/* We use char because int might match the return type of a gcc2
16680 builtin and then its argument prototype would still apply. */
bec39cab 16681char $ac_func ();
97bf5e38
MK
16682/* The GNU C library defines this for functions which it implements
16683 to always fail with ENOSYS. Some functions are actually named
16684 something starting with __ and the normal name is an alias. */
b4e70030 16685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16686choke me
b4e70030
JB
16687#else
16688char (*f) () = $ac_func;
16689#endif
16690#ifdef __cplusplus
16691}
c906108c 16692#endif
97bf5e38 16693
bec39cab
AC
16694int
16695main ()
16696{
b4e70030 16697return f != $ac_func;
bec39cab
AC
16698 ;
16699 return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext conftest$ac_exeext
16703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704 (eval $ac_link) 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
b4e70030
JB
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 eval "$as_ac_var=yes"
16725else
16726 echo "$as_me: failed program was:" >&5
16727sed 's/^/| /' conftest.$ac_ext >&5
16728
b4e70030 16729eval "$as_ac_var=no"
bec39cab
AC
16730fi
16731rm -f conftest.err conftest.$ac_objext \
16732 conftest$ac_exeext conftest.$ac_ext
16733fi
b4e70030
JB
16734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16735echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16736if test `eval echo '${'$as_ac_var'}'` = yes; then
16737 cat >>confdefs.h <<_ACEOF
16738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16739_ACEOF
c906108c 16740
c906108c 16741fi
97bf5e38 16742done
c906108c 16743
bec39cab 16744
a3828db0 16745for ac_func in sbrk
b757528f 16746do
bec39cab 16747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16748echo "$as_me:$LINENO: checking for $ac_func" >&5
16749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16750if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16752else
16753 cat >conftest.$ac_ext <<_ACEOF
16754/* confdefs.h. */
16755_ACEOF
16756cat confdefs.h >>conftest.$ac_ext
16757cat >>conftest.$ac_ext <<_ACEOF
16758/* end confdefs.h. */
16759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16761#define $ac_func innocuous_$ac_func
16762
b757528f 16763/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16764 which can conflict with char $ac_func (); below.
16765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766 <limits.h> exists even on freestanding compilers. */
16767
16768#ifdef __STDC__
16769# include <limits.h>
16770#else
16771# include <assert.h>
16772#endif
b757528f 16773
bec39cab 16774#undef $ac_func
b757528f 16775
b4e70030 16776/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16777#ifdef __cplusplus
16778extern "C"
b4e70030 16779{
bec39cab 16780#endif
b4e70030
JB
16781/* We use char because int might match the return type of a gcc2
16782 builtin and then its argument prototype would still apply. */
bec39cab 16783char $ac_func ();
b757528f
JJ
16784/* The GNU C library defines this for functions which it implements
16785 to always fail with ENOSYS. Some functions are actually named
16786 something starting with __ and the normal name is an alias. */
b4e70030 16787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 16788choke me
b4e70030
JB
16789#else
16790char (*f) () = $ac_func;
16791#endif
16792#ifdef __cplusplus
16793}
b757528f
JJ
16794#endif
16795
bec39cab
AC
16796int
16797main ()
16798{
b4e70030 16799return f != $ac_func;
bec39cab
AC
16800 ;
16801 return 0;
16802}
16803_ACEOF
16804rm -f conftest.$ac_objext conftest$ac_exeext
16805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16806 (eval $ac_link) 2>conftest.er1
16807 ac_status=$?
16808 grep -v '^ *+' conftest.er1 >conftest.err
16809 rm -f conftest.er1
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
b4e70030
JB
16813 { ac_try='test -z "$ac_c_werror_flag"
16814 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
16820 { ac_try='test -s conftest$ac_exeext'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 eval "$as_ac_var=yes"
16827else
16828 echo "$as_me: failed program was:" >&5
16829sed 's/^/| /' conftest.$ac_ext >&5
16830
b4e70030 16831eval "$as_ac_var=no"
bec39cab
AC
16832fi
16833rm -f conftest.err conftest.$ac_objext \
16834 conftest$ac_exeext conftest.$ac_ext
16835fi
b4e70030
JB
16836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16837echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16838if test `eval echo '${'$as_ac_var'}'` = yes; then
16839 cat >>confdefs.h <<_ACEOF
16840#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16841_ACEOF
b757528f 16842
b757528f
JJ
16843fi
16844done
16845
bec39cab 16846
a3828db0
MK
16847
16848for ac_func in setpgid setpgrp
bcb3dc3d 16849do
bec39cab 16850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16851echo "$as_me:$LINENO: checking for $ac_func" >&5
16852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16853if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16855else
16856 cat >conftest.$ac_ext <<_ACEOF
16857/* confdefs.h. */
16858_ACEOF
16859cat confdefs.h >>conftest.$ac_ext
16860cat >>conftest.$ac_ext <<_ACEOF
16861/* end confdefs.h. */
16862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16864#define $ac_func innocuous_$ac_func
16865
bcb3dc3d 16866/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16867 which can conflict with char $ac_func (); below.
16868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16869 <limits.h> exists even on freestanding compilers. */
16870
16871#ifdef __STDC__
16872# include <limits.h>
16873#else
16874# include <assert.h>
16875#endif
bcb3dc3d 16876
bec39cab 16877#undef $ac_func
bcb3dc3d 16878
b4e70030 16879/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16880#ifdef __cplusplus
16881extern "C"
b4e70030 16882{
bec39cab 16883#endif
b4e70030
JB
16884/* We use char because int might match the return type of a gcc2
16885 builtin and then its argument prototype would still apply. */
bec39cab 16886char $ac_func ();
bcb3dc3d
MK
16887/* The GNU C library defines this for functions which it implements
16888 to always fail with ENOSYS. Some functions are actually named
16889 something starting with __ and the normal name is an alias. */
b4e70030 16890#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 16891choke me
b4e70030
JB
16892#else
16893char (*f) () = $ac_func;
16894#endif
16895#ifdef __cplusplus
16896}
bcb3dc3d
MK
16897#endif
16898
bec39cab
AC
16899int
16900main ()
16901{
b4e70030 16902return f != $ac_func;
bec39cab
AC
16903 ;
16904 return 0;
16905}
16906_ACEOF
16907rm -f conftest.$ac_objext conftest$ac_exeext
16908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16909 (eval $ac_link) 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
b4e70030
JB
16916 { ac_try='test -z "$ac_c_werror_flag"
16917 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
16923 { ac_try='test -s conftest$ac_exeext'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 eval "$as_ac_var=yes"
16930else
16931 echo "$as_me: failed program was:" >&5
16932sed 's/^/| /' conftest.$ac_ext >&5
16933
b4e70030 16934eval "$as_ac_var=no"
bec39cab
AC
16935fi
16936rm -f conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16938fi
b4e70030
JB
16939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16940echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16941if test `eval echo '${'$as_ac_var'}'` = yes; then
16942 cat >>confdefs.h <<_ACEOF
16943#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16944_ACEOF
bcb3dc3d 16945
bcb3dc3d
MK
16946fi
16947done
16948
bec39cab 16949
a3828db0
MK
16950
16951
16952for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 16953do
bec39cab 16954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16955echo "$as_me:$LINENO: checking for $ac_func" >&5
16956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16957if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16959else
16960 cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
16966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16968#define $ac_func innocuous_$ac_func
16969
8b9cf735 16970/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16971 which can conflict with char $ac_func (); below.
16972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16973 <limits.h> exists even on freestanding compilers. */
16974
16975#ifdef __STDC__
16976# include <limits.h>
16977#else
16978# include <assert.h>
16979#endif
8b9cf735 16980
bec39cab 16981#undef $ac_func
8b9cf735 16982
b4e70030 16983/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
16984#ifdef __cplusplus
16985extern "C"
b4e70030 16986{
a3828db0 16987#endif
b4e70030
JB
16988/* We use char because int might match the return type of a gcc2
16989 builtin and then its argument prototype would still apply. */
a3828db0
MK
16990char $ac_func ();
16991/* The GNU C library defines this for functions which it implements
16992 to always fail with ENOSYS. Some functions are actually named
16993 something starting with __ and the normal name is an alias. */
b4e70030 16994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 16995choke me
b4e70030
JB
16996#else
16997char (*f) () = $ac_func;
16998#endif
16999#ifdef __cplusplus
17000}
a3828db0
MK
17001#endif
17002
bec39cab
AC
17003int
17004main ()
17005{
b4e70030 17006return f != $ac_func;
bec39cab
AC
17007 ;
17008 return 0;
17009}
17010_ACEOF
a3828db0
MK
17011rm -f conftest.$ac_objext conftest$ac_exeext
17012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17013 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
b4e70030
JB
17020 { ac_try='test -z "$ac_c_werror_flag"
17021 || test ! -s conftest.err'
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); }; } &&
a3828db0 17027 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
a3828db0 17033 eval "$as_ac_var=yes"
086ec9eb 17034else
bec39cab
AC
17035 echo "$as_me: failed program was:" >&5
17036sed 's/^/| /' conftest.$ac_ext >&5
17037
b4e70030 17038eval "$as_ac_var=no"
a3828db0
MK
17039fi
17040rm -f conftest.err conftest.$ac_objext \
17041 conftest$ac_exeext conftest.$ac_ext
17042fi
b4e70030
JB
17043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17045if test `eval echo '${'$as_ac_var'}'` = yes; then
17046 cat >>confdefs.h <<_ACEOF
17047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17048_ACEOF
17049
086ec9eb 17050fi
a3828db0
MK
17051done
17052
17053
17054for ac_func in socketpair
17055do
17056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17057echo "$as_me:$LINENO: checking for $ac_func" >&5
17058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17059if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061else
17062 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17063/* confdefs.h. */
17064_ACEOF
17065cat confdefs.h >>conftest.$ac_ext
17066cat >>conftest.$ac_ext <<_ACEOF
17067/* end confdefs.h. */
a3828db0
MK
17068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17070#define $ac_func innocuous_$ac_func
17071
17072/* System header to define __stub macros and hopefully few prototypes,
17073 which can conflict with char $ac_func (); below.
17074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17075 <limits.h> exists even on freestanding compilers. */
17076
17077#ifdef __STDC__
17078# include <limits.h>
17079#else
17080# include <assert.h>
17081#endif
17082
17083#undef $ac_func
17084
b4e70030 17085/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17086#ifdef __cplusplus
17087extern "C"
b4e70030 17088{
a3828db0 17089#endif
b4e70030
JB
17090/* We use char because int might match the return type of a gcc2
17091 builtin and then its argument prototype would still apply. */
a3828db0
MK
17092char $ac_func ();
17093/* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
b4e70030 17096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17097choke me
b4e70030
JB
17098#else
17099char (*f) () = $ac_func;
17100#endif
17101#ifdef __cplusplus
17102}
a3828db0
MK
17103#endif
17104
bec39cab
AC
17105int
17106main ()
17107{
b4e70030 17108return f != $ac_func;
bec39cab
AC
17109 ;
17110 return 0;
17111}
17112_ACEOF
a3828db0
MK
17113rm -f conftest.$ac_objext conftest$ac_exeext
17114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
b4e70030
JB
17122 { ac_try='test -z "$ac_c_werror_flag"
17123 || test ! -s conftest.err'
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); }; } &&
a3828db0 17129 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
a3828db0 17135 eval "$as_ac_var=yes"
086ec9eb 17136else
bec39cab
AC
17137 echo "$as_me: failed program was:" >&5
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
b4e70030 17140eval "$as_ac_var=no"
086ec9eb 17141fi
a3828db0
MK
17142rm -f conftest.err conftest.$ac_objext \
17143 conftest$ac_exeext conftest.$ac_ext
086ec9eb 17144fi
b4e70030
JB
17145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17147if test `eval echo '${'$as_ac_var'}'` = yes; then
17148 cat >>confdefs.h <<_ACEOF
17149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17150_ACEOF
086ec9eb
MK
17151
17152fi
a3828db0 17153done
086ec9eb 17154
a3828db0
MK
17155
17156for ac_func in syscall
17157do
17158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17159echo "$as_me:$LINENO: checking for $ac_func" >&5
17160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17161if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17162 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
17163else
17164 cat >conftest.$ac_ext <<_ACEOF
17165/* confdefs.h. */
17166_ACEOF
17167cat confdefs.h >>conftest.$ac_ext
17168cat >>conftest.$ac_ext <<_ACEOF
17169/* end confdefs.h. */
a3828db0
MK
17170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17172#define $ac_func innocuous_$ac_func
17173
17174/* System header to define __stub macros and hopefully few prototypes,
17175 which can conflict with char $ac_func (); below.
17176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17177 <limits.h> exists even on freestanding compilers. */
17178
17179#ifdef __STDC__
17180# include <limits.h>
17181#else
17182# include <assert.h>
17183#endif
17184
17185#undef $ac_func
17186
b4e70030 17187/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17188#ifdef __cplusplus
17189extern "C"
b4e70030 17190{
a3828db0 17191#endif
b4e70030
JB
17192/* We use char because int might match the return type of a gcc2
17193 builtin and then its argument prototype would still apply. */
a3828db0
MK
17194char $ac_func ();
17195/* The GNU C library defines this for functions which it implements
17196 to always fail with ENOSYS. Some functions are actually named
17197 something starting with __ and the normal name is an alias. */
b4e70030 17198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17199choke me
b4e70030
JB
17200#else
17201char (*f) () = $ac_func;
17202#endif
17203#ifdef __cplusplus
17204}
c906108c 17205#endif
97bf5e38 17206
bec39cab
AC
17207int
17208main ()
97bf5e38 17209{
b4e70030 17210return f != $ac_func;
bec39cab
AC
17211 ;
17212 return 0;
97bf5e38 17213}
bec39cab 17214_ACEOF
a3828db0 17215rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 17216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17217 (eval $ac_link) 2>conftest.er1
bec39cab 17218 ac_status=$?
a3828db0
MK
17219 grep -v '^ *+' conftest.er1 >conftest.err
17220 rm -f conftest.er1
17221 cat conftest.err >&5
bec39cab 17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17223 (exit $ac_status); } &&
b4e70030
JB
17224 { ac_try='test -z "$ac_c_werror_flag"
17225 || test ! -s conftest.err'
a3828db0
MK
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); }; } &&
17231 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
a3828db0 17237 eval "$as_ac_var=yes"
c906108c 17238else
a3828db0 17239 echo "$as_me: failed program was:" >&5
bec39cab
AC
17240sed 's/^/| /' conftest.$ac_ext >&5
17241
b4e70030 17242eval "$as_ac_var=no"
97bf5e38 17243fi
a3828db0
MK
17244rm -f conftest.err conftest.$ac_objext \
17245 conftest$ac_exeext conftest.$ac_ext
17246fi
b4e70030
JB
17247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17249if test `eval echo '${'$as_ac_var'}'` = yes; then
17250 cat >>confdefs.h <<_ACEOF
17251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17252_ACEOF
c906108c
SS
17253
17254fi
a3828db0 17255done
c906108c 17256
a3828db0
MK
17257
17258for ac_func in ttrace
17259do
17260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17261echo "$as_me:$LINENO: checking for $ac_func" >&5
17262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17263if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17264 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 17265else
bec39cab
AC
17266 cat >conftest.$ac_ext <<_ACEOF
17267/* confdefs.h. */
17268_ACEOF
17269cat confdefs.h >>conftest.$ac_ext
17270cat >>conftest.$ac_ext <<_ACEOF
17271/* end confdefs.h. */
a3828db0
MK
17272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17274#define $ac_func innocuous_$ac_func
b83266a0 17275
a3828db0
MK
17276/* System header to define __stub macros and hopefully few prototypes,
17277 which can conflict with char $ac_func (); below.
17278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17279 <limits.h> exists even on freestanding compilers. */
17280
17281#ifdef __STDC__
17282# include <limits.h>
17283#else
17284# include <assert.h>
17285#endif
17286
17287#undef $ac_func
17288
b4e70030 17289/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17290#ifdef __cplusplus
17291extern "C"
b4e70030 17292{
a3828db0 17293#endif
b4e70030
JB
17294/* We use char because int might match the return type of a gcc2
17295 builtin and then its argument prototype would still apply. */
a3828db0
MK
17296char $ac_func ();
17297/* The GNU C library defines this for functions which it implements
17298 to always fail with ENOSYS. Some functions are actually named
17299 something starting with __ and the normal name is an alias. */
b4e70030 17300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17301choke me
b4e70030
JB
17302#else
17303char (*f) () = $ac_func;
17304#endif
17305#ifdef __cplusplus
17306}
a3828db0 17307#endif
97bf5e38 17308
bec39cab
AC
17309int
17310main ()
17311{
b4e70030 17312return f != $ac_func;
bec39cab
AC
17313 ;
17314 return 0;
17315}
17316_ACEOF
a3828db0
MK
17317rm -f conftest.$ac_objext conftest$ac_exeext
17318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17319 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17320 ac_status=$?
17321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
b4e70030
JB
17326 { ac_try='test -z "$ac_c_werror_flag"
17327 || test ! -s conftest.err'
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); }; } &&
a3828db0 17333 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17336 ac_status=$?
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
a3828db0 17339 eval "$as_ac_var=yes"
b83266a0 17340else
bec39cab
AC
17341 echo "$as_me: failed program was:" >&5
17342sed 's/^/| /' conftest.$ac_ext >&5
17343
b4e70030 17344eval "$as_ac_var=no"
b83266a0 17345fi
a3828db0
MK
17346rm -f conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
b83266a0 17348fi
b4e70030
JB
17349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17350echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17351if test `eval echo '${'$as_ac_var'}'` = yes; then
17352 cat >>confdefs.h <<_ACEOF
17353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17354_ACEOF
b83266a0 17355
97bf5e38 17356fi
a3828db0 17357done
b83266a0 17358
a3828db0
MK
17359
17360for ac_func in wborder
17361do
17362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17363echo "$as_me:$LINENO: checking for $ac_func" >&5
17364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17365if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17367else
17368 cat >conftest.$ac_ext <<_ACEOF
17369/* confdefs.h. */
17370_ACEOF
17371cat confdefs.h >>conftest.$ac_ext
17372cat >>conftest.$ac_ext <<_ACEOF
17373/* end confdefs.h. */
a3828db0
MK
17374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17376#define $ac_func innocuous_$ac_func
a4db0f07 17377
a3828db0
MK
17378/* System header to define __stub macros and hopefully few prototypes,
17379 which can conflict with char $ac_func (); below.
17380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381 <limits.h> exists even on freestanding compilers. */
17382
17383#ifdef __STDC__
17384# include <limits.h>
17385#else
17386# include <assert.h>
17387#endif
17388
17389#undef $ac_func
17390
b4e70030 17391/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17392#ifdef __cplusplus
17393extern "C"
b4e70030 17394{
a3828db0 17395#endif
b4e70030
JB
17396/* We use char because int might match the return type of a gcc2
17397 builtin and then its argument prototype would still apply. */
a3828db0
MK
17398char $ac_func ();
17399/* The GNU C library defines this for functions which it implements
17400 to always fail with ENOSYS. Some functions are actually named
17401 something starting with __ and the normal name is an alias. */
b4e70030 17402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17403choke me
b4e70030
JB
17404#else
17405char (*f) () = $ac_func;
17406#endif
17407#ifdef __cplusplus
17408}
a3828db0 17409#endif
97bf5e38 17410
bec39cab
AC
17411int
17412main ()
17413{
b4e70030 17414return f != $ac_func;
bec39cab
AC
17415 ;
17416 return 0;
17417}
17418_ACEOF
a3828db0
MK
17419rm -f conftest.$ac_objext conftest$ac_exeext
17420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
b4e70030
JB
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
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); }; } &&
a3828db0 17435 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
a3828db0 17441 eval "$as_ac_var=yes"
a4db0f07 17442else
bec39cab
AC
17443 echo "$as_me: failed program was:" >&5
17444sed 's/^/| /' conftest.$ac_ext >&5
17445
b4e70030 17446eval "$as_ac_var=no"
a4db0f07 17447fi
a3828db0
MK
17448rm -f conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
a4db0f07 17450fi
b4e70030
JB
17451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17452echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17453if test `eval echo '${'$as_ac_var'}'` = yes; then
17454 cat >>confdefs.h <<_ACEOF
17455#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17456_ACEOF
a4db0f07
RH
17457
17458fi
a3828db0 17459done
c906108c 17460
06825bd1 17461
a3828db0
MK
17462# Check the return and argument types of ptrace. No canned test for
17463# this, so roll our own.
17464gdb_ptrace_headers='
17465#if HAVE_SYS_TYPES_H
17466# include <sys/types.h>
17467#endif
17468#if HAVE_SYS_PTRACE_H
17469# include <sys/ptrace.h>
17470#endif
17471#if HAVE_UNISTD_H
17472# include <unistd.h>
17473#endif
17474'
17475# There is no point in checking if we don't have a prototype.
b4e70030
JB
17476echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
17477echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 17478if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480else
17481 cat >conftest.$ac_ext <<_ACEOF
17482/* confdefs.h. */
17483_ACEOF
17484cat confdefs.h >>conftest.$ac_ext
17485cat >>conftest.$ac_ext <<_ACEOF
17486/* end confdefs.h. */
a3828db0
MK
17487$gdb_ptrace_headers
17488
bec39cab
AC
17489int
17490main ()
17491{
a3828db0
MK
17492#ifndef ptrace
17493 char *p = (char *) ptrace;
06825bd1 17494#endif
a3828db0 17495
bec39cab
AC
17496 ;
17497 return 0;
17498}
17499_ACEOF
17500rm -f conftest.$ac_objext
17501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17502 (eval $ac_compile) 2>conftest.er1
17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
b4e70030
JB
17509 { ac_try='test -z "$ac_c_werror_flag"
17510 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
17516 { ac_try='test -s conftest.$ac_objext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
a3828db0 17522 ac_cv_have_decl_ptrace=yes
06825bd1 17523else
bec39cab
AC
17524 echo "$as_me: failed program was:" >&5
17525sed 's/^/| /' conftest.$ac_ext >&5
17526
b4e70030 17527ac_cv_have_decl_ptrace=no
06825bd1 17528fi
bec39cab 17529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 17530fi
b4e70030
JB
17531echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
17532echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 17533if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 17534
a3828db0
MK
17535cat >>confdefs.h <<_ACEOF
17536#define HAVE_DECL_PTRACE 1
17537_ACEOF
bec39cab 17538
bec39cab 17539
a3828db0
MK
17540else
17541 cat >>confdefs.h <<_ACEOF
17542#define HAVE_DECL_PTRACE 0
bec39cab 17543_ACEOF
06825bd1 17544
a3828db0
MK
17545
17546 : ${gdb_cv_func_ptrace_ret='int'}
17547 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17548
06825bd1
MK
17549fi
17550
a3828db0
MK
17551
17552# Check return type.
b4e70030
JB
17553echo "$as_me:$LINENO: checking return type of ptrace" >&5
17554echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 17555if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17557else
17558 cat >conftest.$ac_ext <<_ACEOF
17559/* confdefs.h. */
17560_ACEOF
17561cat confdefs.h >>conftest.$ac_ext
17562cat >>conftest.$ac_ext <<_ACEOF
17563/* end confdefs.h. */
a3828db0 17564$gdb_ptrace_headers
bec39cab
AC
17565int
17566main ()
17567{
a3828db0 17568extern int ptrace ();
bec39cab
AC
17569 ;
17570 return 0;
17571}
17572_ACEOF
17573rm -f conftest.$ac_objext
17574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17575 (eval $ac_compile) 2>conftest.er1
17576 ac_status=$?
17577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
b4e70030
JB
17582 { ac_try='test -z "$ac_c_werror_flag"
17583 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
17589 { ac_try='test -s conftest.$ac_objext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
a3828db0 17595 gdb_cv_func_ptrace_ret='int'
70f9f479 17596else
bec39cab
AC
17597 echo "$as_me: failed program was:" >&5
17598sed 's/^/| /' conftest.$ac_ext >&5
17599
b4e70030 17600gdb_cv_func_ptrace_ret='long'
70f9f479 17601fi
bec39cab 17602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 17603fi
b4e70030
JB
17604echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
17605echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 17606
a3828db0
MK
17607cat >>confdefs.h <<_ACEOF
17608#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 17609_ACEOF
70f9f479 17610
a3828db0 17611# Check argument types.
b4e70030
JB
17612echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
17613echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 17614if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17616else
a3828db0
MK
17617
17618for gdb_arg1 in 'int' 'long'; do
17619 for gdb_arg2 in 'pid_t' 'int' 'long'; do
17620 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
17621 for gdb_arg4 in 'int' 'long'; do
17622 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17623/* confdefs.h. */
17624_ACEOF
17625cat confdefs.h >>conftest.$ac_ext
17626cat >>conftest.$ac_ext <<_ACEOF
17627/* end confdefs.h. */
a3828db0 17628$gdb_ptrace_headers
bec39cab
AC
17629int
17630main ()
17631{
a3828db0
MK
17632
17633extern $gdb_cv_func_ptrace_ret
17634 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
17635
bec39cab
AC
17636 ;
17637 return 0;
17638}
17639_ACEOF
17640rm -f conftest.$ac_objext
17641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
b4e70030
JB
17649 { ac_try='test -z "$ac_c_werror_flag"
17650 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
a3828db0
MK
17662 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
17663 break 4;
5c7f2947 17664else
bec39cab
AC
17665 echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
5c7f2947 17668fi
bec39cab 17669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17670 for gdb_arg5 in 'int *' 'int' 'long'; do
17671 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17672/* confdefs.h. */
17673_ACEOF
17674cat confdefs.h >>conftest.$ac_ext
17675cat >>conftest.$ac_ext <<_ACEOF
17676/* end confdefs.h. */
a3828db0 17677$gdb_ptrace_headers
bec39cab
AC
17678int
17679main ()
17680{
a3828db0
MK
17681
17682extern $gdb_cv_func_ptrace_ret
17683 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
17684
bec39cab
AC
17685 ;
17686 return 0;
17687}
17688_ACEOF
17689rm -f conftest.$ac_objext
17690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17691 (eval $ac_compile) 2>conftest.er1
17692 ac_status=$?
17693 grep -v '^ *+' conftest.er1 >conftest.err
17694 rm -f conftest.er1
17695 cat conftest.err >&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
b4e70030
JB
17698 { ac_try='test -z "$ac_c_werror_flag"
17699 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
17705 { ac_try='test -s conftest.$ac_objext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
a3828db0
MK
17711
17712gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
17713 break 5;
78434e59 17714else
bec39cab
AC
17715 echo "$as_me: failed program was:" >&5
17716sed 's/^/| /' conftest.$ac_ext >&5
17717
78434e59 17718fi
bec39cab 17719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17720 done
17721 done
17722 done
17723 done
17724done
17725# Provide a safe default value.
17726: ${gdb_cv_func_ptrace_args='int,int,long,long'}
17727
78434e59 17728fi
b4e70030
JB
17729echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
17730echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
17731ac_save_IFS=$IFS; IFS=','
17732set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
17733IFS=$ac_save_IFS
17734shift
bec39cab 17735
a3828db0
MK
17736cat >>confdefs.h <<_ACEOF
17737#define PTRACE_TYPE_ARG3 $3
17738_ACEOF
17739
17740if test -n "$5"; then
17741
17742cat >>confdefs.h <<_ACEOF
17743#define PTRACE_TYPE_ARG5 $5
bec39cab 17744_ACEOF
78434e59
MK
17745
17746fi
17747
a3828db0 17748if test "$cross_compiling" = no; then
b4e70030
JB
17749 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17750echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 17751if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 17752 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
17753else
17754 if test "$cross_compiling" = yes; then
17755 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17756echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17757 { (exit 1); exit 1; }; }
bec39cab
AC
17758else
17759 cat >conftest.$ac_ext <<_ACEOF
17760/* confdefs.h. */
17761_ACEOF
17762cat confdefs.h >>conftest.$ac_ext
17763cat >>conftest.$ac_ext <<_ACEOF
17764/* end confdefs.h. */
b4e70030
JB
17765#if HAVE_UNISTD_H
17766# include <unistd.h>
17767#endif
17768
bec39cab
AC
17769int
17770main ()
17771{
a3828db0
MK
17772/* If this system has a BSD-style setpgrp which takes arguments,
17773 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17774 exit successfully. */
b4e70030 17775 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
17776 ;
17777 return 0;
17778}
17779_ACEOF
a3828db0
MK
17780rm -f conftest$ac_exeext
17781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17782 (eval $ac_link) 2>&5
bec39cab
AC
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
a3828db0 17791 ac_cv_func_setpgrp_void=no
c906108c 17792else
a3828db0
MK
17793 echo "$as_me: program exited with status $ac_status" >&5
17794echo "$as_me: failed program was:" >&5
bec39cab
AC
17795sed 's/^/| /' conftest.$ac_ext >&5
17796
a3828db0
MK
17797( exit $ac_status )
17798ac_cv_func_setpgrp_void=yes
c906108c 17799fi
b4e70030 17800rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 17801fi
a3828db0 17802fi
b4e70030
JB
17803echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17804echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
17805if test $ac_cv_func_setpgrp_void = yes; then
17806
17807cat >>confdefs.h <<\_ACEOF
17808#define SETPGRP_VOID 1
bec39cab 17809_ACEOF
97bf5e38
MK
17810
17811fi
a3828db0
MK
17812
17813else
b4e70030
JB
17814 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17815echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 17816if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 17817 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17818else
bec39cab
AC
17819 cat >conftest.$ac_ext <<_ACEOF
17820/* confdefs.h. */
17821_ACEOF
17822cat confdefs.h >>conftest.$ac_ext
17823cat >>conftest.$ac_ext <<_ACEOF
17824/* end confdefs.h. */
a3828db0
MK
17825
17826#include <unistd.h>
17827
bec39cab
AC
17828int
17829main ()
17830{
a3828db0
MK
17831
17832 if (setpgrp(1,1) == -1)
17833 exit (0);
17834 else
17835 exit (1);
17836
bec39cab
AC
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17843 (eval $ac_compile) 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
b4e70030
JB
17850 { ac_try='test -z "$ac_c_werror_flag"
17851 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
17857 { ac_try='test -s conftest.$ac_objext'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
a3828db0 17863 ac_cv_func_setpgrp_void=no
c906108c 17864else
bec39cab
AC
17865 echo "$as_me: failed program was:" >&5
17866sed 's/^/| /' conftest.$ac_ext >&5
17867
b4e70030 17868ac_cv_func_setpgrp_void=yes
c906108c 17869fi
bec39cab 17870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17871fi
b4e70030
JB
17872echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17873echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 17874if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 17875 cat >>confdefs.h <<\_ACEOF
a3828db0 17876#define SETPGRP_VOID 1
bec39cab 17877_ACEOF
c3f6f71d 17878
a3828db0 17879fi
c906108c
SS
17880fi
17881
a3828db0
MK
17882# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17883# since sigsetjmp might only be defined as a macro.
b4e70030
JB
17884echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17885echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 17886if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17888else
17889 cat >conftest.$ac_ext <<_ACEOF
17890/* confdefs.h. */
17891_ACEOF
17892cat confdefs.h >>conftest.$ac_ext
17893cat >>conftest.$ac_ext <<_ACEOF
17894/* end confdefs.h. */
a3828db0
MK
17895
17896#include <setjmp.h>
17897
bec39cab
AC
17898int
17899main ()
17900{
a3828db0 17901sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
17902 ;
17903 return 0;
17904}
17905_ACEOF
17906rm -f conftest.$ac_objext
17907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17908 (eval $ac_compile) 2>conftest.er1
17909 ac_status=$?
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
b4e70030
JB
17915 { ac_try='test -z "$ac_c_werror_flag"
17916 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
17922 { ac_try='test -s conftest.$ac_objext'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
a3828db0 17928 gdb_cv_func_sigsetjmp=yes
c906108c 17929else
bec39cab
AC
17930 echo "$as_me: failed program was:" >&5
17931sed 's/^/| /' conftest.$ac_ext >&5
17932
b4e70030 17933gdb_cv_func_sigsetjmp=no
c906108c 17934fi
bec39cab 17935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17936fi
b4e70030
JB
17937echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
17938echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 17939if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 17940
a3828db0
MK
17941cat >>confdefs.h <<\_ACEOF
17942#define HAVE_SIGSETJMP 1
bec39cab 17943_ACEOF
c906108c 17944
97bf5e38 17945fi
c906108c 17946
a3828db0
MK
17947# Assume we'll default to using the included libiberty regex.
17948gdb_use_included_regex=yes
17949
17950# However, if the system regex is GNU regex, then default to *not*
17951# using the included regex.
b4e70030
JB
17952echo "$as_me:$LINENO: checking for GNU regex" >&5
17953echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 17954if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17956else
17957 cat >conftest.$ac_ext <<_ACEOF
17958/* confdefs.h. */
17959_ACEOF
17960cat confdefs.h >>conftest.$ac_ext
17961cat >>conftest.$ac_ext <<_ACEOF
17962/* end confdefs.h. */
a3828db0 17963#include <gnu-versions.h>
bec39cab
AC
17964int
17965main ()
17966{
a3828db0
MK
17967#define REGEX_INTERFACE_VERSION 1
17968#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17969# error "Version mismatch"
17970#endif
bec39cab
AC
17971 ;
17972 return 0;
17973}
17974_ACEOF
17975rm -f conftest.$ac_objext
17976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17977 (eval $ac_compile) 2>conftest.er1
17978 ac_status=$?
17979 grep -v '^ *+' conftest.er1 >conftest.err
17980 rm -f conftest.er1
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
b4e70030
JB
17984 { ac_try='test -z "$ac_c_werror_flag"
17985 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
17991 { ac_try='test -s conftest.$ac_objext'
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
a3828db0 17997 gdb_cv_have_gnu_regex=yes
c906108c 17998else
bec39cab
AC
17999 echo "$as_me: failed program was:" >&5
18000sed 's/^/| /' conftest.$ac_ext >&5
18001
b4e70030 18002gdb_cv_have_gnu_regex=no
c906108c 18003fi
bec39cab 18004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18005fi
b4e70030
JB
18006echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18007echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
18008if test $gdb_cv_have_gnu_regex = yes; then
18009 gdb_use_included_regex=no
18010fi
c906108c 18011
a3828db0 18012
b4e70030 18013# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 18014if test "${with_included_regex+set}" = set; then
b4e70030
JB
18015 withval="$with_included_regex"
18016 gdb_with_regex=$withval
a3828db0
MK
18017else
18018 gdb_with_regex=$gdb_use_included_regex
b4e70030 18019fi;
a3828db0
MK
18020if test "$gdb_with_regex" = yes; then
18021
18022cat >>confdefs.h <<\_ACEOF
18023#define USE_INCLUDED_REGEX 1
bec39cab 18024_ACEOF
c906108c 18025
97bf5e38 18026fi
c906108c 18027
5c45e068 18028# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
18029echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18030echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 18031if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18033else
18034 cat >conftest.$ac_ext <<_ACEOF
18035/* confdefs.h. */
18036_ACEOF
18037cat confdefs.h >>conftest.$ac_ext
18038cat >>conftest.$ac_ext <<_ACEOF
18039/* end confdefs.h. */
a3828db0
MK
18040#include <sys/param.h>
18041#include <sys/proc.h>
5c45e068
MK
18042
18043
bec39cab
AC
18044int
18045main ()
18046{
5c45e068
MK
18047static struct thread ac_aggr;
18048if (ac_aggr.td_pcb)
18049return 0;
bec39cab
AC
18050 ;
18051 return 0;
18052}
18053_ACEOF
18054rm -f conftest.$ac_objext
18055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18056 (eval $ac_compile) 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } &&
b4e70030
JB
18063 { ac_try='test -z "$ac_c_werror_flag"
18064 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18070 { ac_try='test -s conftest.$ac_objext'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
5c45e068 18076 ac_cv_member_struct_thread_td_pcb=yes
c906108c 18077else
bec39cab
AC
18078 echo "$as_me: failed program was:" >&5
18079sed 's/^/| /' conftest.$ac_ext >&5
18080
b4e70030 18081cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18082/* confdefs.h. */
18083_ACEOF
18084cat confdefs.h >>conftest.$ac_ext
18085cat >>conftest.$ac_ext <<_ACEOF
18086/* end confdefs.h. */
18087#include <sys/param.h>
18088#include <sys/proc.h>
18089
18090
18091int
18092main ()
18093{
18094static struct thread ac_aggr;
18095if (sizeof ac_aggr.td_pcb)
18096return 0;
18097 ;
18098 return 0;
18099}
18100_ACEOF
18101rm -f conftest.$ac_objext
18102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18103 (eval $ac_compile) 2>conftest.er1
18104 ac_status=$?
18105 grep -v '^ *+' conftest.er1 >conftest.err
18106 rm -f conftest.er1
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
b4e70030
JB
18110 { ac_try='test -z "$ac_c_werror_flag"
18111 || test ! -s conftest.err'
5c45e068
MK
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); }; } &&
18117 { ac_try='test -s conftest.$ac_objext'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
18123 ac_cv_member_struct_thread_td_pcb=yes
18124else
18125 echo "$as_me: failed program was:" >&5
18126sed 's/^/| /' conftest.$ac_ext >&5
18127
b4e70030 18128ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
18129fi
18130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18131fi
bec39cab 18132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18133fi
b4e70030
JB
18134echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18135echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 18136if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 18137
5c45e068 18138cat >>confdefs.h <<_ACEOF
a3828db0 18139#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 18140_ACEOF
c906108c 18141
5c45e068 18142
97bf5e38 18143fi
c906108c 18144
5c45e068 18145
a3828db0 18146# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
18147echo "$as_me:$LINENO: checking for struct lwp" >&5
18148echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 18149if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18151else
18152 cat >conftest.$ac_ext <<_ACEOF
18153/* confdefs.h. */
18154_ACEOF
18155cat confdefs.h >>conftest.$ac_ext
18156cat >>conftest.$ac_ext <<_ACEOF
18157/* end confdefs.h. */
a3828db0
MK
18158#include <sys/param.h>
18159#include <sys/lwp.h>
bec39cab
AC
18160int
18161main ()
18162{
a3828db0 18163struct lwp l;
bec39cab
AC
18164 ;
18165 return 0;
18166}
18167_ACEOF
18168rm -f conftest.$ac_objext
18169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18170 (eval $ac_compile) 2>conftest.er1
18171 ac_status=$?
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } &&
b4e70030
JB
18177 { ac_try='test -z "$ac_c_werror_flag"
18178 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18184 { ac_try='test -s conftest.$ac_objext'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
a3828db0 18190 gdb_cv_struct_lwp=yes
c906108c 18191else
bec39cab
AC
18192 echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
b4e70030 18195gdb_cv_struct_lwp=no
c906108c 18196fi
bec39cab 18197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18198fi
b4e70030
JB
18199echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18200echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 18201if test $gdb_cv_struct_lwp = yes; then
c906108c 18202
a3828db0
MK
18203cat >>confdefs.h <<\_ACEOF
18204#define HAVE_STRUCT_LWP 1
bec39cab 18205_ACEOF
c906108c 18206
97bf5e38 18207fi
c906108c 18208
a3828db0 18209# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
18210echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18211echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 18212if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214else
18215 cat >conftest.$ac_ext <<_ACEOF
18216/* confdefs.h. */
18217_ACEOF
18218cat confdefs.h >>conftest.$ac_ext
18219cat >>conftest.$ac_ext <<_ACEOF
18220/* end confdefs.h. */
a3828db0
MK
18221#include <sys/types.h>
18222#include <machine/reg.h>
bec39cab
AC
18223int
18224main ()
18225{
a3828db0 18226struct reg r;
bec39cab
AC
18227 ;
18228 return 0;
18229}
18230_ACEOF
18231rm -f conftest.$ac_objext
18232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18233 (eval $ac_compile) 2>conftest.er1
18234 ac_status=$?
18235 grep -v '^ *+' conftest.er1 >conftest.err
18236 rm -f conftest.er1
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
b4e70030
JB
18240 { ac_try='test -z "$ac_c_werror_flag"
18241 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18247 { ac_try='test -s conftest.$ac_objext'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
a3828db0 18253 gdb_cv_struct_reg=yes
27ca5dad 18254else
bec39cab
AC
18255 echo "$as_me: failed program was:" >&5
18256sed 's/^/| /' conftest.$ac_ext >&5
18257
b4e70030 18258gdb_cv_struct_reg=no
27ca5dad 18259fi
bec39cab 18260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 18261fi
b4e70030
JB
18262echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18263echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 18264if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
18265
18266cat >>confdefs.h <<\_ACEOF
a3828db0 18267#define HAVE_STRUCT_REG 1
bec39cab 18268_ACEOF
27ca5dad
MC
18269
18270fi
97bf5e38 18271
a3828db0
MK
18272# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18273# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
18274echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18275echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 18276if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 18277 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18278else
bec39cab
AC
18279 cat >conftest.$ac_ext <<_ACEOF
18280/* confdefs.h. */
18281_ACEOF
18282cat confdefs.h >>conftest.$ac_ext
18283cat >>conftest.$ac_ext <<_ACEOF
18284/* end confdefs.h. */
a3828db0 18285#include <machine/reg.h>
5c45e068
MK
18286
18287int
18288main ()
18289{
18290static struct reg ac_aggr;
18291if (ac_aggr.r_fs)
18292return 0;
18293 ;
18294 return 0;
18295}
18296_ACEOF
18297rm -f conftest.$ac_objext
18298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18299 (eval $ac_compile) 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
b4e70030
JB
18306 { ac_try='test -z "$ac_c_werror_flag"
18307 || test ! -s conftest.err'
5c45e068
MK
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); }; } &&
18313 { ac_try='test -s conftest.$ac_objext'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 ac_cv_member_struct_reg_r_fs=yes
18320else
18321 echo "$as_me: failed program was:" >&5
18322sed 's/^/| /' conftest.$ac_ext >&5
18323
b4e70030 18324cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18325/* confdefs.h. */
18326_ACEOF
18327cat confdefs.h >>conftest.$ac_ext
18328cat >>conftest.$ac_ext <<_ACEOF
18329/* end confdefs.h. */
18330#include <machine/reg.h>
18331
bec39cab
AC
18332int
18333main ()
18334{
5c45e068
MK
18335static struct reg ac_aggr;
18336if (sizeof ac_aggr.r_fs)
18337return 0;
bec39cab
AC
18338 ;
18339 return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext
18343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344 (eval $ac_compile) 2>conftest.er1
18345 ac_status=$?
18346 grep -v '^ *+' conftest.er1 >conftest.err
18347 rm -f conftest.er1
18348 cat conftest.err >&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
b4e70030
JB
18351 { ac_try='test -z "$ac_c_werror_flag"
18352 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18358 { ac_try='test -s conftest.$ac_objext'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
5c45e068 18364 ac_cv_member_struct_reg_r_fs=yes
3862412b 18365else
bec39cab
AC
18366 echo "$as_me: failed program was:" >&5
18367sed 's/^/| /' conftest.$ac_ext >&5
18368
b4e70030 18369ac_cv_member_struct_reg_r_fs=no
3862412b 18370fi
bec39cab 18371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18372fi
5c45e068
MK
18373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18374fi
b4e70030
JB
18375echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18376echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
18377if test $ac_cv_member_struct_reg_r_fs = yes; then
18378
18379cat >>confdefs.h <<_ACEOF
a3828db0 18380#define HAVE_STRUCT_REG_R_FS 1
bec39cab 18381_ACEOF
3862412b 18382
5c45e068 18383
97bf5e38 18384fi
b4e70030
JB
18385echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18386echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 18387if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 18388 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18389else
bec39cab
AC
18390 cat >conftest.$ac_ext <<_ACEOF
18391/* confdefs.h. */
18392_ACEOF
18393cat confdefs.h >>conftest.$ac_ext
18394cat >>conftest.$ac_ext <<_ACEOF
18395/* end confdefs.h. */
a3828db0 18396#include <machine/reg.h>
5c45e068 18397
bec39cab
AC
18398int
18399main ()
18400{
5c45e068
MK
18401static struct reg ac_aggr;
18402if (ac_aggr.r_gs)
18403return 0;
bec39cab
AC
18404 ;
18405 return 0;
18406}
18407_ACEOF
18408rm -f conftest.$ac_objext
18409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18410 (eval $ac_compile) 2>conftest.er1
18411 ac_status=$?
18412 grep -v '^ *+' conftest.er1 >conftest.err
18413 rm -f conftest.er1
18414 cat conftest.err >&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
b4e70030
JB
18417 { ac_try='test -z "$ac_c_werror_flag"
18418 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18424 { ac_try='test -s conftest.$ac_objext'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
5c45e068 18430 ac_cv_member_struct_reg_r_gs=yes
3862412b 18431else
bec39cab
AC
18432 echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
b4e70030 18435cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18436/* confdefs.h. */
18437_ACEOF
18438cat confdefs.h >>conftest.$ac_ext
18439cat >>conftest.$ac_ext <<_ACEOF
18440/* end confdefs.h. */
18441#include <machine/reg.h>
18442
18443int
18444main ()
18445{
18446static struct reg ac_aggr;
18447if (sizeof ac_aggr.r_gs)
18448return 0;
18449 ;
18450 return 0;
18451}
18452_ACEOF
18453rm -f conftest.$ac_objext
18454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18455 (eval $ac_compile) 2>conftest.er1
18456 ac_status=$?
18457 grep -v '^ *+' conftest.er1 >conftest.err
18458 rm -f conftest.er1
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } &&
b4e70030
JB
18462 { ac_try='test -z "$ac_c_werror_flag"
18463 || test ! -s conftest.err'
5c45e068
MK
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); }; } &&
18469 { ac_try='test -s conftest.$ac_objext'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_cv_member_struct_reg_r_gs=yes
18476else
18477 echo "$as_me: failed program was:" >&5
18478sed 's/^/| /' conftest.$ac_ext >&5
18479
b4e70030 18480ac_cv_member_struct_reg_r_gs=no
3862412b 18481fi
bec39cab 18482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18483fi
5c45e068
MK
18484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18485fi
b4e70030
JB
18486echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
18487echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
18488if test $ac_cv_member_struct_reg_r_gs = yes; then
18489
18490cat >>confdefs.h <<_ACEOF
a3828db0 18491#define HAVE_STRUCT_REG_R_GS 1
bec39cab 18492_ACEOF
3862412b 18493
5c45e068 18494
97bf5e38 18495fi
3862412b 18496
5c45e068 18497
a3828db0 18498# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
18499echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
18500echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 18501if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 18502 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 18503else
bec39cab
AC
18504 cat >conftest.$ac_ext <<_ACEOF
18505/* confdefs.h. */
18506_ACEOF
18507cat confdefs.h >>conftest.$ac_ext
18508cat >>conftest.$ac_ext <<_ACEOF
18509/* end confdefs.h. */
a3828db0 18510#include <sys/ptrace.h>
bec39cab
AC
18511int
18512main ()
18513{
a3828db0 18514PTRACE_GETREGS;
bec39cab
AC
18515 ;
18516 return 0;
18517}
18518_ACEOF
18519rm -f conftest.$ac_objext
18520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18521 (eval $ac_compile) 2>conftest.er1
18522 ac_status=$?
18523 grep -v '^ *+' conftest.er1 >conftest.err
18524 rm -f conftest.er1
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } &&
b4e70030
JB
18528 { ac_try='test -z "$ac_c_werror_flag"
18529 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18535 { ac_try='test -s conftest.$ac_objext'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
a3828db0 18541 gdb_cv_have_ptrace_getregs=yes
451928c5 18542else
bec39cab
AC
18543 echo "$as_me: failed program was:" >&5
18544sed 's/^/| /' conftest.$ac_ext >&5
18545
b4e70030 18546gdb_cv_have_ptrace_getregs=no
451928c5 18547fi
bec39cab 18548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
18549fi
18550
b4e70030
JB
18551echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
18552echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 18553if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
18554
18555cat >>confdefs.h <<\_ACEOF
a3828db0 18556#define HAVE_PTRACE_GETREGS 1
bec39cab 18557_ACEOF
451928c5 18558
97bf5e38 18559fi
451928c5 18560
a3828db0 18561# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
18562echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
18563echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 18564if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 18565 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 18566else
bec39cab
AC
18567 cat >conftest.$ac_ext <<_ACEOF
18568/* confdefs.h. */
18569_ACEOF
18570cat confdefs.h >>conftest.$ac_ext
18571cat >>conftest.$ac_ext <<_ACEOF
18572/* end confdefs.h. */
a3828db0 18573#include <sys/ptrace.h>
bec39cab
AC
18574int
18575main ()
18576{
a3828db0 18577PTRACE_GETFPXREGS;
bec39cab
AC
18578 ;
18579 return 0;
18580}
18581_ACEOF
18582rm -f conftest.$ac_objext
18583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18584 (eval $ac_compile) 2>conftest.er1
18585 ac_status=$?
18586 grep -v '^ *+' conftest.er1 >conftest.err
18587 rm -f conftest.er1
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } &&
b4e70030
JB
18591 { ac_try='test -z "$ac_c_werror_flag"
18592 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18598 { ac_try='test -s conftest.$ac_objext'
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; }; then
a3828db0 18604 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 18605else
bec39cab
AC
18606 echo "$as_me: failed program was:" >&5
18607sed 's/^/| /' conftest.$ac_ext >&5
18608
b4e70030 18609gdb_cv_have_ptrace_getfpxregs=no
451928c5 18610fi
bec39cab 18611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
18612fi
18613
b4e70030
JB
18614echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
18615echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 18616if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
18617
18618cat >>confdefs.h <<\_ACEOF
a3828db0 18619#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 18620_ACEOF
451928c5 18621
97bf5e38 18622fi
451928c5 18623
a3828db0 18624# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
18625echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
18626echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 18627if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 18628 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18629else
bec39cab
AC
18630 cat >conftest.$ac_ext <<_ACEOF
18631/* confdefs.h. */
18632_ACEOF
18633cat confdefs.h >>conftest.$ac_ext
18634cat >>conftest.$ac_ext <<_ACEOF
18635/* end confdefs.h. */
a3828db0
MK
18636#include <sys/types.h>
18637#include <sys/ptrace.h>
bec39cab
AC
18638int
18639main ()
18640{
a3828db0 18641PT_GETDBREGS;
bec39cab
AC
18642 ;
18643 return 0;
18644}
18645_ACEOF
18646rm -f conftest.$ac_objext
18647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648 (eval $ac_compile) 2>conftest.er1
18649 ac_status=$?
18650 grep -v '^ *+' conftest.er1 >conftest.err
18651 rm -f conftest.er1
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
b4e70030
JB
18655 { ac_try='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18662 { ac_try='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
a3828db0 18668 gdb_cv_have_pt_getdbregs=yes
3862412b 18669else
bec39cab
AC
18670 echo "$as_me: failed program was:" >&5
18671sed 's/^/| /' conftest.$ac_ext >&5
18672
b4e70030 18673gdb_cv_have_pt_getdbregs=no
3862412b 18674fi
bec39cab 18675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
18676fi
18677
b4e70030
JB
18678echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
18679echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 18680if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
18681
18682cat >>confdefs.h <<\_ACEOF
a3828db0 18683#define HAVE_PT_GETDBREGS 1
bec39cab 18684_ACEOF
3862412b 18685
97bf5e38 18686fi
3862412b 18687
a3828db0 18688# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
18689echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
18690echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 18691if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 18692 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18693else
bec39cab
AC
18694 cat >conftest.$ac_ext <<_ACEOF
18695/* confdefs.h. */
18696_ACEOF
18697cat confdefs.h >>conftest.$ac_ext
18698cat >>conftest.$ac_ext <<_ACEOF
18699/* end confdefs.h. */
a3828db0
MK
18700#include <sys/types.h>
18701#include <sys/ptrace.h>
bec39cab
AC
18702int
18703main ()
18704{
a3828db0 18705PT_GETXMMREGS;
bec39cab
AC
18706 ;
18707 return 0;
18708}
18709_ACEOF
18710rm -f conftest.$ac_objext
18711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18712 (eval $ac_compile) 2>conftest.er1
18713 ac_status=$?
18714 grep -v '^ *+' conftest.er1 >conftest.err
18715 rm -f conftest.er1
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } &&
b4e70030
JB
18719 { ac_try='test -z "$ac_c_werror_flag"
18720 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
a3828db0 18732 gdb_cv_have_pt_getxmmregs=yes
3862412b 18733else
bec39cab
AC
18734 echo "$as_me: failed program was:" >&5
18735sed 's/^/| /' conftest.$ac_ext >&5
18736
b4e70030 18737gdb_cv_have_pt_getxmmregs=no
3862412b 18738fi
bec39cab 18739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
18740fi
18741
b4e70030
JB
18742echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
18743echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 18744if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
18745
18746cat >>confdefs.h <<\_ACEOF
a3828db0 18747#define HAVE_PT_GETXMMREGS 1
bec39cab 18748_ACEOF
3862412b 18749
97bf5e38 18750fi
3862412b 18751
97bf5e38
MK
18752# If we are configured native on GNU/Linux, work around problems with
18753# sys/procfs.h
18754# Also detect which type of /proc is in use, such as for Unixware or Solaris.
18755
18756if test "${target}" = "${host}"; then
18757 case "${host}" in
18758 i[3456]86-*-linux*)
60ca704f
SE
18759
18760cat >>confdefs.h <<\_ACEOF
97bf5e38 18761#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 18762_ACEOF
97bf5e38 18763
60ca704f
SE
18764
18765cat >>confdefs.h <<\_ACEOF
97bf5e38 18766#define sys_quotactl 1
bec39cab 18767_ACEOF
97bf5e38
MK
18768
18769 ;;
97bf5e38 18770 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
18771
18772cat >>confdefs.h <<\_ACEOF
97bf5e38 18773#define NEW_PROC_API 1
bec39cab 18774_ACEOF
97bf5e38
MK
18775
18776 ;;
0bbc026e 18777 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
18778
18779cat >>confdefs.h <<\_ACEOF
97bf5e38 18780#define NEW_PROC_API 1
bec39cab 18781_ACEOF
c960c18f
AC
18782
18783 ;;
18784 mips-sgi-irix5*)
18785 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
18786
18787cat >>confdefs.h <<\_ACEOF
c960c18f 18788#define _KMEMUSER 1
bec39cab 18789_ACEOF
97bf5e38
MK
18790
18791 ;;
18792 esac
18793fi
18794
18795if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
18796 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18797echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18798 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800else
18801 cat >conftest.$ac_ext <<_ACEOF
18802/* confdefs.h. */
18803_ACEOF
18804cat confdefs.h >>conftest.$ac_ext
18805cat >>conftest.$ac_ext <<_ACEOF
18806/* end confdefs.h. */
596c9d4b
KB
18807
18808#define _SYSCALL32
18809#include <sys/procfs.h>
bec39cab
AC
18810int
18811main ()
18812{
97bf5e38 18813pstatus_t avar
bec39cab
AC
18814 ;
18815 return 0;
18816}
18817_ACEOF
18818rm -f conftest.$ac_objext
18819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18820 (eval $ac_compile) 2>conftest.er1
18821 ac_status=$?
18822 grep -v '^ *+' conftest.er1 >conftest.err
18823 rm -f conftest.er1
18824 cat conftest.err >&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } &&
b4e70030
JB
18827 { ac_try='test -z "$ac_c_werror_flag"
18828 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18834 { ac_try='test -s conftest.$ac_objext'
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18837 ac_status=$?
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
97bf5e38 18840 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 18841else
bec39cab
AC
18842 echo "$as_me: failed program was:" >&5
18843sed 's/^/| /' conftest.$ac_ext >&5
18844
b4e70030 18845bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 18846
596c9d4b 18847fi
bec39cab 18848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18849fi
18850
97bf5e38 18851 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
18852
18853cat >>confdefs.h <<\_ACEOF
97bf5e38 18854#define HAVE_PSTATUS_T 1
bec39cab 18855_ACEOF
596c9d4b
KB
18856
18857 fi
b4e70030
JB
18858 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18859echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 18860
b4e70030
JB
18861 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
18862echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18863 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 18865else
bec39cab
AC
18866 cat >conftest.$ac_ext <<_ACEOF
18867/* confdefs.h. */
18868_ACEOF
18869cat confdefs.h >>conftest.$ac_ext
18870cat >>conftest.$ac_ext <<_ACEOF
18871/* end confdefs.h. */
596c9d4b
KB
18872
18873#define _SYSCALL32
18874#include <sys/procfs.h>
bec39cab
AC
18875int
18876main ()
18877{
97bf5e38 18878prrun_t avar
bec39cab
AC
18879 ;
18880 return 0;
18881}
18882_ACEOF
18883rm -f conftest.$ac_objext
18884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18885 (eval $ac_compile) 2>conftest.er1
18886 ac_status=$?
18887 grep -v '^ *+' conftest.er1 >conftest.err
18888 rm -f conftest.er1
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
b4e70030
JB
18892 { ac_try='test -z "$ac_c_werror_flag"
18893 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18899 { ac_try='test -s conftest.$ac_objext'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
97bf5e38 18905 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 18906else
bec39cab
AC
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
b4e70030 18910bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 18911
596c9d4b 18912fi
bec39cab 18913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18914fi
18915
97bf5e38 18916 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
18917
18918cat >>confdefs.h <<\_ACEOF
97bf5e38 18919#define HAVE_PRRUN_T 1
bec39cab 18920_ACEOF
596c9d4b
KB
18921
18922 fi
b4e70030
JB
18923 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18924echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 18925
b4e70030
JB
18926 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18927echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18928 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 18930else
bec39cab
AC
18931 cat >conftest.$ac_ext <<_ACEOF
18932/* confdefs.h. */
18933_ACEOF
18934cat confdefs.h >>conftest.$ac_ext
18935cat >>conftest.$ac_ext <<_ACEOF
18936/* end confdefs.h. */
596c9d4b
KB
18937
18938#define _SYSCALL32
18939#include <sys/procfs.h>
bec39cab
AC
18940int
18941main ()
18942{
97bf5e38 18943gregset_t avar
bec39cab
AC
18944 ;
18945 return 0;
18946}
18947_ACEOF
18948rm -f conftest.$ac_objext
18949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18950 (eval $ac_compile) 2>conftest.er1
18951 ac_status=$?
18952 grep -v '^ *+' conftest.er1 >conftest.err
18953 rm -f conftest.er1
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
b4e70030
JB
18957 { ac_try='test -z "$ac_c_werror_flag"
18958 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18964 { ac_try='test -s conftest.$ac_objext'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
97bf5e38 18970 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 18971else
bec39cab
AC
18972 echo "$as_me: failed program was:" >&5
18973sed 's/^/| /' conftest.$ac_ext >&5
18974
b4e70030 18975bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 18976
596c9d4b 18977fi
bec39cab 18978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18979fi
18980
97bf5e38 18981 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
18982
18983cat >>confdefs.h <<\_ACEOF
97bf5e38 18984#define HAVE_GREGSET_T 1
bec39cab 18985_ACEOF
596c9d4b
KB
18986
18987 fi
b4e70030
JB
18988 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18989echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 18990
b4e70030
JB
18991 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18992echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18993 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 18995else
bec39cab
AC
18996 cat >conftest.$ac_ext <<_ACEOF
18997/* confdefs.h. */
18998_ACEOF
18999cat confdefs.h >>conftest.$ac_ext
19000cat >>conftest.$ac_ext <<_ACEOF
19001/* end confdefs.h. */
97bf5e38
MK
19002
19003#define _SYSCALL32
d84dd0c5 19004#include <sys/procfs.h>
bec39cab
AC
19005int
19006main ()
19007{
97bf5e38 19008fpregset_t avar
bec39cab
AC
19009 ;
19010 return 0;
19011}
19012_ACEOF
19013rm -f conftest.$ac_objext
19014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19015 (eval $ac_compile) 2>conftest.er1
19016 ac_status=$?
19017 grep -v '^ *+' conftest.er1 >conftest.err
19018 rm -f conftest.er1
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
b4e70030
JB
19022 { ac_try='test -z "$ac_c_werror_flag"
19023 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19029 { ac_try='test -s conftest.$ac_objext'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
97bf5e38 19035 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 19036else
bec39cab
AC
19037 echo "$as_me: failed program was:" >&5
19038sed 's/^/| /' conftest.$ac_ext >&5
19039
b4e70030 19040bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 19041
d84dd0c5 19042fi
bec39cab 19043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
19044fi
19045
97bf5e38 19046 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
19047
19048cat >>confdefs.h <<\_ACEOF
97bf5e38 19049#define HAVE_FPREGSET_T 1
bec39cab 19050_ACEOF
d84dd0c5 19051
97bf5e38 19052 fi
b4e70030
JB
19053 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19054echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 19055
b4e70030
JB
19056 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19057echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19058 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19060else
bec39cab
AC
19061 cat >conftest.$ac_ext <<_ACEOF
19062/* confdefs.h. */
19063_ACEOF
19064cat confdefs.h >>conftest.$ac_ext
19065cat >>conftest.$ac_ext <<_ACEOF
19066/* end confdefs.h. */
c906108c 19067
97bf5e38
MK
19068#define _SYSCALL32
19069#include <sys/procfs.h>
bec39cab
AC
19070int
19071main ()
19072{
97bf5e38 19073prgregset_t avar
bec39cab
AC
19074 ;
19075 return 0;
19076}
19077_ACEOF
19078rm -f conftest.$ac_objext
19079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19080 (eval $ac_compile) 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
b4e70030
JB
19087 { ac_try='test -z "$ac_c_werror_flag"
19088 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19094 { ac_try='test -s conftest.$ac_objext'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
97bf5e38 19100 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 19101else
bec39cab
AC
19102 echo "$as_me: failed program was:" >&5
19103sed 's/^/| /' conftest.$ac_ext >&5
19104
b4e70030 19105bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 19106
c906108c 19107fi
bec39cab 19108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19109fi
19110
97bf5e38 19111 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
19112
19113cat >>confdefs.h <<\_ACEOF
97bf5e38 19114#define HAVE_PRGREGSET_T 1
bec39cab 19115_ACEOF
c906108c 19116
97bf5e38 19117 fi
b4e70030
JB
19118 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19119echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 19120
b4e70030
JB
19121 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19122echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19123 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19125else
bec39cab
AC
19126 cat >conftest.$ac_ext <<_ACEOF
19127/* confdefs.h. */
19128_ACEOF
19129cat confdefs.h >>conftest.$ac_ext
19130cat >>conftest.$ac_ext <<_ACEOF
19131/* end confdefs.h. */
97bf5e38
MK
19132
19133#define _SYSCALL32
19134#include <sys/procfs.h>
bec39cab
AC
19135int
19136main ()
19137{
97bf5e38 19138prfpregset_t avar
bec39cab
AC
19139 ;
19140 return 0;
19141}
19142_ACEOF
19143rm -f conftest.$ac_objext
19144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19145 (eval $ac_compile) 2>conftest.er1
19146 ac_status=$?
19147 grep -v '^ *+' conftest.er1 >conftest.err
19148 rm -f conftest.er1
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
b4e70030
JB
19152 { ac_try='test -z "$ac_c_werror_flag"
19153 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19159 { ac_try='test -s conftest.$ac_objext'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; }; then
97bf5e38 19165 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 19166else
bec39cab
AC
19167 echo "$as_me: failed program was:" >&5
19168sed 's/^/| /' conftest.$ac_ext >&5
19169
b4e70030 19170bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 19171
d45fe813 19172fi
bec39cab 19173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19174fi
19175
97bf5e38 19176 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
19177
19178cat >>confdefs.h <<\_ACEOF
97bf5e38 19179#define HAVE_PRFPREGSET_T 1
bec39cab 19180_ACEOF
d45fe813 19181
97bf5e38 19182 fi
b4e70030
JB
19183 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19184echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 19185
b4e70030
JB
19186 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19187echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19188 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19190else
bec39cab
AC
19191 cat >conftest.$ac_ext <<_ACEOF
19192/* confdefs.h. */
19193_ACEOF
19194cat confdefs.h >>conftest.$ac_ext
19195cat >>conftest.$ac_ext <<_ACEOF
19196/* end confdefs.h. */
97bf5e38
MK
19197
19198#define _SYSCALL32
19199#include <sys/procfs.h>
bec39cab
AC
19200int
19201main ()
19202{
97bf5e38 19203prgregset32_t avar
bec39cab
AC
19204 ;
19205 return 0;
19206}
19207_ACEOF
19208rm -f conftest.$ac_objext
19209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19210 (eval $ac_compile) 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
b4e70030
JB
19217 { ac_try='test -z "$ac_c_werror_flag"
19218 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19224 { ac_try='test -s conftest.$ac_objext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
97bf5e38 19230 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 19231else
bec39cab
AC
19232 echo "$as_me: failed program was:" >&5
19233sed 's/^/| /' conftest.$ac_ext >&5
19234
b4e70030 19235bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 19236
d45fe813 19237fi
bec39cab 19238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19239fi
19240
97bf5e38 19241 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
19242
19243cat >>confdefs.h <<\_ACEOF
97bf5e38 19244#define HAVE_PRGREGSET32_T 1
bec39cab 19245_ACEOF
d45fe813 19246
97bf5e38 19247 fi
b4e70030
JB
19248 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19249echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 19250
b4e70030
JB
19251 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19252echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19253 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19255else
bec39cab
AC
19256 cat >conftest.$ac_ext <<_ACEOF
19257/* confdefs.h. */
19258_ACEOF
19259cat confdefs.h >>conftest.$ac_ext
19260cat >>conftest.$ac_ext <<_ACEOF
19261/* end confdefs.h. */
97bf5e38
MK
19262
19263#define _SYSCALL32
19264#include <sys/procfs.h>
bec39cab
AC
19265int
19266main ()
19267{
97bf5e38 19268prfpregset32_t avar
bec39cab
AC
19269 ;
19270 return 0;
19271}
19272_ACEOF
19273rm -f conftest.$ac_objext
19274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
19276 ac_status=$?
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
b4e70030
JB
19282 { ac_try='test -z "$ac_c_werror_flag"
19283 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
97bf5e38 19295 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 19296else
bec39cab
AC
19297 echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
b4e70030 19300bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 19301
d45fe813 19302fi
bec39cab 19303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19304fi
19305
97bf5e38 19306 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
19307
19308cat >>confdefs.h <<\_ACEOF
97bf5e38 19309#define HAVE_PRFPREGSET32_T 1
bec39cab 19310_ACEOF
d45fe813 19311
97bf5e38 19312 fi
b4e70030
JB
19313 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19314echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 19315
b4e70030
JB
19316 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19317echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19318 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19320else
bec39cab
AC
19321 cat >conftest.$ac_ext <<_ACEOF
19322/* confdefs.h. */
19323_ACEOF
19324cat confdefs.h >>conftest.$ac_ext
19325cat >>conftest.$ac_ext <<_ACEOF
19326/* end confdefs.h. */
97bf5e38 19327
d45fe813 19328#define _SYSCALL32
97bf5e38 19329#include <sys/procfs.h>
bec39cab
AC
19330int
19331main ()
19332{
97bf5e38 19333lwpid_t avar
bec39cab
AC
19334 ;
19335 return 0;
19336}
19337_ACEOF
19338rm -f conftest.$ac_objext
19339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19340 (eval $ac_compile) 2>conftest.er1
19341 ac_status=$?
19342 grep -v '^ *+' conftest.er1 >conftest.err
19343 rm -f conftest.er1
19344 cat conftest.err >&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
b4e70030
JB
19347 { ac_try='test -z "$ac_c_werror_flag"
19348 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19354 { ac_try='test -s conftest.$ac_objext'
19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
97bf5e38 19360 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 19361else
bec39cab
AC
19362 echo "$as_me: failed program was:" >&5
19363sed 's/^/| /' conftest.$ac_ext >&5
19364
b4e70030 19365bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 19366
d45fe813 19367fi
bec39cab 19368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19369fi
19370
97bf5e38 19371 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
19372
19373cat >>confdefs.h <<\_ACEOF
97bf5e38 19374#define HAVE_LWPID_T 1
bec39cab 19375_ACEOF
d45fe813 19376
97bf5e38 19377 fi
b4e70030
JB
19378 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19379echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 19380
b4e70030
JB
19381 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19382echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19383 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19385else
bec39cab
AC
19386 cat >conftest.$ac_ext <<_ACEOF
19387/* confdefs.h. */
19388_ACEOF
19389cat confdefs.h >>conftest.$ac_ext
19390cat >>conftest.$ac_ext <<_ACEOF
19391/* end confdefs.h. */
c906108c 19392
97bf5e38
MK
19393#define _SYSCALL32
19394#include <sys/procfs.h>
bec39cab
AC
19395int
19396main ()
19397{
97bf5e38 19398psaddr_t avar
bec39cab
AC
19399 ;
19400 return 0;
19401}
19402_ACEOF
19403rm -f conftest.$ac_objext
19404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19405 (eval $ac_compile) 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
b4e70030
JB
19412 { ac_try='test -z "$ac_c_werror_flag"
19413 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
97bf5e38 19425 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 19426else
bec39cab
AC
19427 echo "$as_me: failed program was:" >&5
19428sed 's/^/| /' conftest.$ac_ext >&5
19429
b4e70030 19430bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 19431
c906108c 19432fi
bec39cab 19433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19434fi
19435
97bf5e38 19436 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
19437
19438cat >>confdefs.h <<\_ACEOF
97bf5e38 19439#define HAVE_PSADDR_T 1
bec39cab 19440_ACEOF
c906108c 19441
97bf5e38 19442 fi
b4e70030
JB
19443 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19444echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 19445
b4e70030
JB
19446 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19447echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19448 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19450else
bec39cab
AC
19451 cat >conftest.$ac_ext <<_ACEOF
19452/* confdefs.h. */
19453_ACEOF
19454cat confdefs.h >>conftest.$ac_ext
19455cat >>conftest.$ac_ext <<_ACEOF
19456/* end confdefs.h. */
c906108c 19457
97bf5e38
MK
19458#define _SYSCALL32
19459#include <sys/procfs.h>
bec39cab
AC
19460int
19461main ()
19462{
97bf5e38 19463prsysent_t avar
bec39cab
AC
19464 ;
19465 return 0;
19466}
19467_ACEOF
19468rm -f conftest.$ac_objext
19469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19470 (eval $ac_compile) 2>conftest.er1
19471 ac_status=$?
19472 grep -v '^ *+' conftest.er1 >conftest.err
19473 rm -f conftest.er1
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } &&
b4e70030
JB
19477 { ac_try='test -z "$ac_c_werror_flag"
19478 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19484 { ac_try='test -s conftest.$ac_objext'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; }; then
97bf5e38 19490 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 19491else
bec39cab
AC
19492 echo "$as_me: failed program was:" >&5
19493sed 's/^/| /' conftest.$ac_ext >&5
19494
b4e70030 19495bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 19496
c906108c 19497fi
bec39cab 19498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19499fi
19500
97bf5e38 19501 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
19502
19503cat >>confdefs.h <<\_ACEOF
97bf5e38 19504#define HAVE_PRSYSENT_T 1
bec39cab 19505_ACEOF
c906108c 19506
97bf5e38 19507 fi
b4e70030
JB
19508 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
19509echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 19510
b4e70030
JB
19511 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
19512echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19513 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19515else
bec39cab
AC
19516 cat >conftest.$ac_ext <<_ACEOF
19517/* confdefs.h. */
19518_ACEOF
19519cat confdefs.h >>conftest.$ac_ext
19520cat >>conftest.$ac_ext <<_ACEOF
19521/* end confdefs.h. */
c906108c 19522
97bf5e38
MK
19523#define _SYSCALL32
19524#include <sys/procfs.h>
bec39cab
AC
19525int
19526main ()
19527{
97bf5e38 19528pr_sigset_t avar
bec39cab
AC
19529 ;
19530 return 0;
19531}
19532_ACEOF
19533rm -f conftest.$ac_objext
19534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19535 (eval $ac_compile) 2>conftest.er1
19536 ac_status=$?
19537 grep -v '^ *+' conftest.er1 >conftest.err
19538 rm -f conftest.er1
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
b4e70030
JB
19542 { ac_try='test -z "$ac_c_werror_flag"
19543 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19549 { ac_try='test -s conftest.$ac_objext'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
97bf5e38 19555 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 19556else
bec39cab
AC
19557 echo "$as_me: failed program was:" >&5
19558sed 's/^/| /' conftest.$ac_ext >&5
19559
b4e70030 19560bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 19561
c906108c 19562fi
bec39cab 19563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19564fi
19565
97bf5e38 19566 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
19567
19568cat >>confdefs.h <<\_ACEOF
97bf5e38 19569#define HAVE_PR_SIGSET_T 1
bec39cab 19570_ACEOF
c906108c 19571
97bf5e38 19572 fi
b4e70030
JB
19573 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
19574echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 19575
b4e70030
JB
19576 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
19577echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19578 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19580else
bec39cab
AC
19581 cat >conftest.$ac_ext <<_ACEOF
19582/* confdefs.h. */
19583_ACEOF
19584cat confdefs.h >>conftest.$ac_ext
19585cat >>conftest.$ac_ext <<_ACEOF
19586/* end confdefs.h. */
c906108c 19587
97bf5e38
MK
19588#define _SYSCALL32
19589#include <sys/procfs.h>
bec39cab
AC
19590int
19591main ()
19592{
97bf5e38 19593pr_sigaction64_t avar
bec39cab
AC
19594 ;
19595 return 0;
19596}
19597_ACEOF
19598rm -f conftest.$ac_objext
19599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19600 (eval $ac_compile) 2>conftest.er1
19601 ac_status=$?
19602 grep -v '^ *+' conftest.er1 >conftest.err
19603 rm -f conftest.er1
19604 cat conftest.err >&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
b4e70030
JB
19607 { ac_try='test -z "$ac_c_werror_flag"
19608 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19614 { ac_try='test -s conftest.$ac_objext'
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
97bf5e38 19620 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 19621else
bec39cab
AC
19622 echo "$as_me: failed program was:" >&5
19623sed 's/^/| /' conftest.$ac_ext >&5
19624
b4e70030 19625bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 19626
c906108c 19627fi
bec39cab 19628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19629fi
19630
97bf5e38 19631 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
19632
19633cat >>confdefs.h <<\_ACEOF
97bf5e38 19634#define HAVE_PR_SIGACTION64_T 1
bec39cab 19635_ACEOF
c906108c 19636
97bf5e38 19637 fi
b4e70030
JB
19638 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
19639echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 19640
b4e70030
JB
19641 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
19642echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19643 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19645else
bec39cab
AC
19646 cat >conftest.$ac_ext <<_ACEOF
19647/* confdefs.h. */
19648_ACEOF
19649cat confdefs.h >>conftest.$ac_ext
19650cat >>conftest.$ac_ext <<_ACEOF
19651/* end confdefs.h. */
97bf5e38
MK
19652
19653#define _SYSCALL32
19654#include <sys/procfs.h>
bec39cab
AC
19655int
19656main ()
19657{
97bf5e38 19658pr_siginfo64_t avar
bec39cab
AC
19659 ;
19660 return 0;
19661}
19662_ACEOF
19663rm -f conftest.$ac_objext
19664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665 (eval $ac_compile) 2>conftest.er1
19666 ac_status=$?
19667 grep -v '^ *+' conftest.er1 >conftest.err
19668 rm -f conftest.er1
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } &&
b4e70030
JB
19672 { ac_try='test -z "$ac_c_werror_flag"
19673 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19679 { ac_try='test -s conftest.$ac_objext'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; }; then
97bf5e38
MK
19685 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
19686else
bec39cab
AC
19687 echo "$as_me: failed program was:" >&5
19688sed 's/^/| /' conftest.$ac_ext >&5
19689
b4e70030 19690bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 19691
97bf5e38 19692fi
bec39cab 19693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19694fi
c906108c 19695
97bf5e38 19696 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
19697
19698cat >>confdefs.h <<\_ACEOF
97bf5e38 19699#define HAVE_PR_SIGINFO64_T 1
bec39cab 19700_ACEOF
c906108c 19701
97bf5e38 19702 fi
b4e70030
JB
19703 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
19704echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
19705
19706
97bf5e38
MK
19707
19708
19709
97bf5e38 19710 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
19711 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
19712echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
19713 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
19715else
19716 if test "$cross_compiling" = yes; then
97bf5e38 19717 gdb_cv_prfpregset_t_broken=yes
c906108c 19718else
bec39cab
AC
19719 cat >conftest.$ac_ext <<_ACEOF
19720/* confdefs.h. */
19721_ACEOF
19722cat confdefs.h >>conftest.$ac_ext
19723cat >>conftest.$ac_ext <<_ACEOF
19724/* end confdefs.h. */
97bf5e38
MK
19725#include <sys/procfs.h>
19726 int main ()
19727 {
19728 if (sizeof (prfpregset_t) == sizeof (void *))
19729 return 1;
19730 return 0;
19731 }
bec39cab
AC
19732_ACEOF
19733rm -f conftest$ac_exeext
19734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19735 (eval $ac_link) 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
97bf5e38 19744 gdb_cv_prfpregset_t_broken=no
c906108c 19745else
bec39cab
AC
19746 echo "$as_me: program exited with status $ac_status" >&5
19747echo "$as_me: failed program was:" >&5
19748sed 's/^/| /' conftest.$ac_ext >&5
19749
19750( exit $ac_status )
19751gdb_cv_prfpregset_t_broken=yes
c906108c 19752fi
b4e70030 19753rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19754fi
c906108c
SS
19755fi
19756
b4e70030
JB
19757 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
19758echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 19759 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
19760
19761cat >>confdefs.h <<\_ACEOF
97bf5e38 19762#define PRFPREGSET_T_BROKEN 1
bec39cab 19763_ACEOF
c906108c 19764
97bf5e38
MK
19765 fi
19766 fi
c906108c 19767
bec39cab 19768
b4e70030
JB
19769 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
19770echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19771 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19773else
bec39cab
AC
19774 cat >conftest.$ac_ext <<_ACEOF
19775/* confdefs.h. */
19776_ACEOF
19777cat confdefs.h >>conftest.$ac_ext
19778cat >>conftest.$ac_ext <<_ACEOF
19779/* end confdefs.h. */
97bf5e38
MK
19780#include <unistd.h>
19781#include <sys/types.h>
19782#include <sys/procfs.h>
19783
bec39cab
AC
19784int
19785main ()
19786{
97bf5e38
MK
19787
19788 int dummy;;
19789 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
19790
19791 ;
19792 return 0;
19793}
19794_ACEOF
19795rm -f conftest.$ac_objext
19796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797 (eval $ac_compile) 2>conftest.er1
19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
b4e70030
JB
19804 { ac_try='test -z "$ac_c_werror_flag"
19805 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19811 { ac_try='test -s conftest.$ac_objext'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
97bf5e38 19817 gdb_cv_have_procfs_piocset=yes
c906108c 19818else
bec39cab
AC
19819 echo "$as_me: failed program was:" >&5
19820sed 's/^/| /' conftest.$ac_ext >&5
19821
b4e70030 19822gdb_cv_have_procfs_piocset=no
c906108c 19823fi
bec39cab 19824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19825fi
97bf5e38 19826
b4e70030
JB
19827 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
19828echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 19829 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
19830
19831cat >>confdefs.h <<\_ACEOF
97bf5e38 19832#define HAVE_PROCFS_PIOCSET 1
bec39cab 19833_ACEOF
97bf5e38
MK
19834
19835 fi
c906108c 19836fi
c906108c 19837
97bf5e38 19838if test ${host} = ${target} ; then
bec39cab 19839
b4e70030
JB
19840 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
19841echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
19842 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19844else
19845 cat >conftest.$ac_ext <<_ACEOF
19846/* confdefs.h. */
19847_ACEOF
19848cat confdefs.h >>conftest.$ac_ext
19849cat >>conftest.$ac_ext <<_ACEOF
19850/* end confdefs.h. */
97bf5e38 19851#include <link.h>
bec39cab
AC
19852int
19853main ()
19854{
97bf5e38 19855struct link_map lm; (void) lm.l_addr;
bec39cab
AC
19856 ;
19857 return 0;
19858}
19859_ACEOF
19860rm -f conftest.$ac_objext
19861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19862 (eval $ac_compile) 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
b4e70030
JB
19869 { ac_try='test -z "$ac_c_werror_flag"
19870 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19876 { ac_try='test -s conftest.$ac_objext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
97bf5e38 19882 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 19883else
bec39cab
AC
19884 echo "$as_me: failed program was:" >&5
19885sed 's/^/| /' conftest.$ac_ext >&5
19886
b4e70030 19887gdb_cv_have_struct_link_map_with_l_members=no
c906108c 19888fi
bec39cab 19889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19890fi
19891
b4e70030
JB
19892 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19893echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 19894 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
19895
19896cat >>confdefs.h <<\_ACEOF
97bf5e38 19897#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 19898_ACEOF
97bf5e38
MK
19899
19900 fi
19901
bec39cab 19902
b4e70030
JB
19903 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19904echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
19905 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19907else
bec39cab
AC
19908 cat >conftest.$ac_ext <<_ACEOF
19909/* confdefs.h. */
19910_ACEOF
19911cat confdefs.h >>conftest.$ac_ext
19912cat >>conftest.$ac_ext <<_ACEOF
19913/* end confdefs.h. */
97bf5e38
MK
19914#include <sys/types.h>
19915#include <link.h>
bec39cab
AC
19916int
19917main ()
19918{
97bf5e38 19919struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
19920 ;
19921 return 0;
19922}
19923_ACEOF
19924rm -f conftest.$ac_objext
19925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926 (eval $ac_compile) 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
b4e70030
JB
19933 { ac_try='test -z "$ac_c_werror_flag"
19934 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
19940 { ac_try='test -s conftest.$ac_objext'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
97bf5e38
MK
19946 gdb_cv_have_struct_link_map_with_lm_members=yes
19947else
bec39cab
AC
19948 echo "$as_me: failed program was:" >&5
19949sed 's/^/| /' conftest.$ac_ext >&5
19950
b4e70030 19951gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 19952fi
bec39cab 19953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19954fi
c906108c 19955
b4e70030
JB
19956 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19957echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 19958 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
19959
19960cat >>confdefs.h <<\_ACEOF
97bf5e38 19961#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 19962_ACEOF
97bf5e38
MK
19963
19964 fi
19965
bec39cab 19966
b4e70030
JB
19967 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19968echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
19969 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19971else
bec39cab
AC
19972 cat >conftest.$ac_ext <<_ACEOF
19973/* confdefs.h. */
19974_ACEOF
19975cat confdefs.h >>conftest.$ac_ext
19976cat >>conftest.$ac_ext <<_ACEOF
19977/* end confdefs.h. */
97bf5e38
MK
19978#include <sys/types.h>
19979#ifdef HAVE_NLIST_H
19980#include <nlist.h>
19981#endif
19982#include <link.h>
bec39cab
AC
19983int
19984main ()
19985{
97bf5e38 19986struct so_map lm; (void) lm.som_addr;
bec39cab
AC
19987 ;
19988 return 0;
19989}
19990_ACEOF
19991rm -f conftest.$ac_objext
19992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
b4e70030
JB
20000 { ac_try='test -z "$ac_c_werror_flag"
20001 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
97bf5e38
MK
20013 gdb_cv_have_struct_so_map_with_som_members=yes
20014else
bec39cab
AC
20015 echo "$as_me: failed program was:" >&5
20016sed 's/^/| /' conftest.$ac_ext >&5
20017
b4e70030 20018gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 20019fi
bec39cab 20020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20021fi
c906108c 20022
b4e70030
JB
20023 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20024echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 20025 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
20026
20027cat >>confdefs.h <<\_ACEOF
97bf5e38 20028#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 20029_ACEOF
c906108c 20030
97bf5e38 20031 fi
c906108c 20032
bec39cab 20033
b4e70030
JB
20034 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20035echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
20036 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20038else
bec39cab
AC
20039 cat >conftest.$ac_ext <<_ACEOF
20040/* confdefs.h. */
20041_ACEOF
20042cat confdefs.h >>conftest.$ac_ext
20043cat >>conftest.$ac_ext <<_ACEOF
20044/* end confdefs.h. */
97bf5e38
MK
20045#define _SYSCALL32
20046#include <sys/link.h>
bec39cab
AC
20047int
20048main ()
20049{
97bf5e38 20050struct link_map32 l;
bec39cab
AC
20051 ;
20052 return 0;
20053}
20054_ACEOF
20055rm -f conftest.$ac_objext
20056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20057 (eval $ac_compile) 2>conftest.er1
20058 ac_status=$?
20059 grep -v '^ *+' conftest.er1 >conftest.err
20060 rm -f conftest.er1
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } &&
b4e70030
JB
20064 { ac_try='test -z "$ac_c_werror_flag"
20065 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20071 { ac_try='test -s conftest.$ac_objext'
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; }; then
97bf5e38
MK
20077 gdb_cv_have_struct_link_map32=yes
20078else
bec39cab
AC
20079 echo "$as_me: failed program was:" >&5
20080sed 's/^/| /' conftest.$ac_ext >&5
20081
b4e70030 20082gdb_cv_have_struct_link_map32=no
97bf5e38 20083fi
bec39cab 20084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20085fi
c906108c 20086
b4e70030
JB
20087 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20088echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 20089 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
20090
20091cat >>confdefs.h <<\_ACEOF
97bf5e38 20092#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 20093_ACEOF
c906108c 20094
60ca704f
SE
20095
20096cat >>confdefs.h <<\_ACEOF
97bf5e38 20097#define _SYSCALL32 1
bec39cab 20098_ACEOF
c906108c 20099
97bf5e38
MK
20100 fi
20101fi
c906108c 20102
bc8bcb4b 20103# Check if the compiler supports the `long long' type.
c906108c 20104
b4e70030
JB
20105echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20106echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
20107if test "${gdb_cv_c_long_long+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20109else
bec39cab
AC
20110 cat >conftest.$ac_ext <<_ACEOF
20111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
20115/* end confdefs.h. */
bc8bcb4b 20116extern long long foo;
bec39cab
AC
20117int
20118main ()
20119{
bc8bcb4b 20120switch (foo & 2) { case 0: return 1; }
bec39cab
AC
20121 ;
20122 return 0;
20123}
20124_ACEOF
20125rm -f conftest.$ac_objext
20126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20127 (eval $ac_compile) 2>conftest.er1
20128 ac_status=$?
20129 grep -v '^ *+' conftest.er1 >conftest.err
20130 rm -f conftest.er1
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
b4e70030
JB
20134 { ac_try='test -z "$ac_c_werror_flag"
20135 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20141 { ac_try='test -s conftest.$ac_objext'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
97bf5e38
MK
20147 gdb_cv_c_long_long=yes
20148else
bec39cab
AC
20149 echo "$as_me: failed program was:" >&5
20150sed 's/^/| /' conftest.$ac_ext >&5
20151
b4e70030 20152gdb_cv_c_long_long=no
97bf5e38 20153fi
bec39cab 20154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20155fi
b4e70030
JB
20156echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20157echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 20158if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
20159
20160cat >>confdefs.h <<\_ACEOF
97bf5e38 20161#define CC_HAS_LONG_LONG 1
bec39cab 20162_ACEOF
97bf5e38
MK
20163
20164fi
20165
bc8bcb4b 20166# Check if the compiler and runtime support printing long longs.
97bf5e38 20167
b4e70030
JB
20168echo "$as_me:$LINENO: checking for long long support in printf" >&5
20169echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
20170if test "${gdb_cv_printf_has_long_long+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20172else
20173 if test "$cross_compiling" = yes; then
20174 gdb_cv_printf_has_long_long=no
20175else
bec39cab
AC
20176 cat >conftest.$ac_ext <<_ACEOF
20177/* confdefs.h. */
20178_ACEOF
20179cat confdefs.h >>conftest.$ac_ext
20180cat >>conftest.$ac_ext <<_ACEOF
20181/* end confdefs.h. */
bc8bcb4b
MK
20182$ac_includes_default
20183int
20184main ()
20185{
20186char buf[32];
97bf5e38
MK
20187 long long l = 0;
20188 l = (l << 16) + 0x0123;
20189 l = (l << 16) + 0x4567;
20190 l = (l << 16) + 0x89ab;
20191 l = (l << 16) + 0xcdef;
20192 sprintf (buf, "0x%016llx", l);
20193 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
20194 ;
20195 return 0;
c906108c 20196}
bec39cab
AC
20197_ACEOF
20198rm -f conftest$ac_exeext
20199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20200 (eval $ac_link) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
97bf5e38
MK
20209 gdb_cv_printf_has_long_long=yes
20210else
bec39cab
AC
20211 echo "$as_me: program exited with status $ac_status" >&5
20212echo "$as_me: failed program was:" >&5
20213sed 's/^/| /' conftest.$ac_ext >&5
20214
20215( exit $ac_status )
20216gdb_cv_printf_has_long_long=no
97bf5e38 20217fi
b4e70030 20218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20219fi
97bf5e38 20220fi
b4e70030
JB
20221echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20222echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 20223if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
20224
20225cat >>confdefs.h <<\_ACEOF
97bf5e38 20226#define PRINTF_HAS_LONG_LONG 1
bec39cab 20227_ACEOF
97bf5e38
MK
20228
20229fi
97bf5e38 20230
bc8bcb4b
MK
20231# Check if the compiler supports the `long double' type. We can't use
20232# AC_C_LONG_DOUBLE because that one does additional checks on the
20233# constants defined in <float.h> that fail on some systems,
20234# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 20235
b4e70030
JB
20236echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20237echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 20238if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 20239 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20240else
bec39cab
AC
20241 cat >conftest.$ac_ext <<_ACEOF
20242/* confdefs.h. */
20243_ACEOF
20244cat confdefs.h >>conftest.$ac_ext
20245cat >>conftest.$ac_ext <<_ACEOF
20246/* end confdefs.h. */
97bf5e38 20247long double foo;
bec39cab
AC
20248_ACEOF
20249rm -f conftest.$ac_objext
20250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20251 (eval $ac_compile) 2>conftest.er1
20252 ac_status=$?
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } &&
b4e70030
JB
20258 { ac_try='test -z "$ac_c_werror_flag"
20259 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20265 { ac_try='test -s conftest.$ac_objext'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
bc8bcb4b 20271 gdb_cv_c_long_double=yes
97bf5e38 20272else
bec39cab
AC
20273 echo "$as_me: failed program was:" >&5
20274sed 's/^/| /' conftest.$ac_ext >&5
20275
b4e70030 20276gdb_cv_c_long_double=no
97bf5e38 20277fi
bec39cab 20278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20279fi
b4e70030
JB
20280echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20281echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 20282if test $gdb_cv_c_long_double = yes; then
c906108c 20283
bc8bcb4b 20284cat >>confdefs.h <<\_ACEOF
97bf5e38 20285#define HAVE_LONG_DOUBLE 1
bec39cab 20286_ACEOF
97bf5e38
MK
20287
20288fi
20289
bc8bcb4b 20290# Check if the compiler and runtime support printing long doubles.
97bf5e38 20291
b4e70030
JB
20292echo "$as_me:$LINENO: checking for long double support in printf" >&5
20293echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
20294if test "${gdb_cv_printf_has_long_double+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20296else
20297 if test "$cross_compiling" = yes; then
20298 gdb_cv_printf_has_long_double=no
20299else
bec39cab
AC
20300 cat >conftest.$ac_ext <<_ACEOF
20301/* confdefs.h. */
20302_ACEOF
20303cat confdefs.h >>conftest.$ac_ext
20304cat >>conftest.$ac_ext <<_ACEOF
20305/* end confdefs.h. */
bc8bcb4b
MK
20306$ac_includes_default
20307int
20308main ()
20309{
20310char buf[16];
97bf5e38
MK
20311 long double f = 3.141592653;
20312 sprintf (buf, "%Lg", f);
20313 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
20314 ;
20315 return 0;
97bf5e38 20316}
bec39cab
AC
20317_ACEOF
20318rm -f conftest$ac_exeext
20319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20320 (eval $ac_link) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
97bf5e38 20329 gdb_cv_printf_has_long_double=yes
c906108c 20330else
bec39cab
AC
20331 echo "$as_me: program exited with status $ac_status" >&5
20332echo "$as_me: failed program was:" >&5
20333sed 's/^/| /' conftest.$ac_ext >&5
20334
20335( exit $ac_status )
20336gdb_cv_printf_has_long_double=no
c906108c 20337fi
b4e70030 20338rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20339fi
c906108c 20340fi
b4e70030
JB
20341echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20342echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 20343if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
20344
20345cat >>confdefs.h <<\_ACEOF
97bf5e38 20346#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 20347_ACEOF
97bf5e38
MK
20348
20349fi
97bf5e38 20350
bc8bcb4b 20351# Check if the compiler and runtime support scanning long doubles.
97bf5e38 20352
b4e70030
JB
20353echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20354echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
20355if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20357else
20358 if test "$cross_compiling" = yes; then
20359 gdb_cv_scanf_has_long_double=no
20360else
bec39cab
AC
20361 cat >conftest.$ac_ext <<_ACEOF
20362/* confdefs.h. */
20363_ACEOF
20364cat confdefs.h >>conftest.$ac_ext
20365cat >>conftest.$ac_ext <<_ACEOF
20366/* end confdefs.h. */
bc8bcb4b
MK
20367#include <stdio.h>
20368int
20369main ()
20370{
20371char *buf = "3.141592653";
97bf5e38
MK
20372 long double f = 0;
20373 sscanf (buf, "%Lg", &f);
20374 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
20375 ;
20376 return 0;
97bf5e38 20377}
bec39cab
AC
20378_ACEOF
20379rm -f conftest$ac_exeext
20380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381 (eval $ac_link) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
97bf5e38
MK
20390 gdb_cv_scanf_has_long_double=yes
20391else
bec39cab
AC
20392 echo "$as_me: program exited with status $ac_status" >&5
20393echo "$as_me: failed program was:" >&5
20394sed 's/^/| /' conftest.$ac_ext >&5
20395
20396( exit $ac_status )
20397gdb_cv_scanf_has_long_double=no
97bf5e38 20398fi
b4e70030 20399rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20400fi
c906108c 20401fi
b4e70030
JB
20402echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20403echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 20404if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
20405
20406cat >>confdefs.h <<\_ACEOF
97bf5e38 20407#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 20408_ACEOF
97bf5e38
MK
20409
20410fi
c906108c 20411
438013df
AO
20412case ${host_os} in
20413aix*)
b4e70030
JB
20414 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20415echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
20416if test "${gdb_cv_bigtoc+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 20418else
bec39cab 20419
438013df
AO
20420 SAVE_LDFLAGS=$LDFLAGS
20421
20422 case $GCC in
20423 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20424 *) gdb_cv_bigtoc=-bbigtoc ;;
20425 esac
20426
20427 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
20428 cat >conftest.$ac_ext <<_ACEOF
20429/* confdefs.h. */
20430_ACEOF
20431cat confdefs.h >>conftest.$ac_ext
20432cat >>conftest.$ac_ext <<_ACEOF
20433/* end confdefs.h. */
438013df 20434
bec39cab
AC
20435int
20436main ()
20437{
438013df 20438int i;
bec39cab
AC
20439 ;
20440 return 0;
20441}
20442_ACEOF
20443rm -f conftest.$ac_objext conftest$ac_exeext
20444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20445 (eval $ac_link) 2>conftest.er1
20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } &&
b4e70030
JB
20452 { ac_try='test -z "$ac_c_werror_flag"
20453 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20459 { ac_try='test -s conftest$ac_exeext'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
438013df
AO
20465 :
20466else
bec39cab
AC
20467 echo "$as_me: failed program was:" >&5
20468sed 's/^/| /' conftest.$ac_ext >&5
20469
b4e70030 20470gdb_cv_bigtoc=
438013df 20471fi
bec39cab
AC
20472rm -f conftest.err conftest.$ac_objext \
20473 conftest$ac_exeext conftest.$ac_ext
ec76baa5 20474 LDFLAGS="${SAVE_LDFLAGS}"
438013df 20475
bec39cab 20476fi
b4e70030
JB
20477echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
20478echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
20479 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
20480 ;;
20481esac
20482
c906108c
SS
20483
20484
20485if test ${build} = ${host} -a ${host} = ${target} ; then
20486 case ${host_os} in
20487 hpux*)
b4e70030
JB
20488 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
20489echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
20490 if test -f /usr/include/dce/cma_config.h ; then
20491 if test "$GCC" = "yes" ; then
b4e70030
JB
20492 echo "$as_me:$LINENO: result: yes" >&5
20493echo "${ECHO_T}yes" >&6
60ca704f
SE
20494
20495cat >>confdefs.h <<\_ACEOF
c906108c 20496#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 20497_ACEOF
c906108c 20498
3483b318 20499 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
20500 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
20501 else
b4e70030
JB
20502 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
20503echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
20504 fi
20505 else
b4e70030
JB
20506 echo "$as_me:$LINENO: result: no" >&5
20507echo "${ECHO_T}no" >&6
c906108c
SS
20508 fi
20509 ;;
20510 solaris*)
d92419e5
JB
20511 # See if thread_db library is around for Solaris thread debugging.
20512 # Note that we must explicitly test for version 1 of the library
20513 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
20514 # the same API.
b4e70030
JB
20515 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
20516echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 20517 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
20518 echo "$as_me:$LINENO: result: yes" >&5
20519echo "${ECHO_T}yes" >&6
60ca704f
SE
20520
20521cat >>confdefs.h <<\_ACEOF
c906108c 20522#define HAVE_THREAD_DB_LIB 1
bec39cab 20523_ACEOF
c906108c 20524
3483b318 20525 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 20526 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 20527
b4e70030
JB
20528echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20529echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
20530if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20532else
bec39cab 20533 ac_check_lib_save_LIBS=$LIBS
c906108c 20534LIBS="-ldl $LIBS"
bec39cab
AC
20535cat >conftest.$ac_ext <<_ACEOF
20536/* confdefs.h. */
20537_ACEOF
20538cat confdefs.h >>conftest.$ac_ext
20539cat >>conftest.$ac_ext <<_ACEOF
20540/* end confdefs.h. */
20541
b4e70030 20542/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
20543#ifdef __cplusplus
20544extern "C"
20545#endif
b4e70030
JB
20546/* We use char because int might match the return type of a gcc2
20547 builtin and then its argument prototype would still apply. */
bec39cab
AC
20548char dlopen ();
20549int
20550main ()
20551{
b4e70030 20552dlopen ();
bec39cab
AC
20553 ;
20554 return 0;
20555}
20556_ACEOF
20557rm -f conftest.$ac_objext conftest$ac_exeext
20558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20559 (eval $ac_link) 2>conftest.er1
20560 ac_status=$?
20561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } &&
b4e70030
JB
20566 { ac_try='test -z "$ac_c_werror_flag"
20567 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20573 { ac_try='test -s conftest$ac_exeext'
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20576 ac_status=$?
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; }; then
20579 ac_cv_lib_dl_dlopen=yes
20580else
20581 echo "$as_me: failed program was:" >&5
20582sed 's/^/| /' conftest.$ac_ext >&5
20583
b4e70030 20584ac_cv_lib_dl_dlopen=no
bec39cab
AC
20585fi
20586rm -f conftest.err conftest.$ac_objext \
20587 conftest$ac_exeext conftest.$ac_ext
20588LIBS=$ac_check_lib_save_LIBS
20589fi
b4e70030
JB
20590echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20591echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
20592if test $ac_cv_lib_dl_dlopen = yes; then
20593 cat >>confdefs.h <<_ACEOF
20594#define HAVE_LIBDL 1
20595_ACEOF
c906108c
SS
20596
20597 LIBS="-ldl $LIBS"
20598
c906108c
SS
20599fi
20600
20601 if test "$GCC" = "yes" ; then
20602 # The GNU linker requires the -export-dynamic option to make
20603 # all symbols visible in the dynamic symbol table.
20604 hold_ldflags=$LDFLAGS
b4e70030
JB
20605 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
20606echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 20607 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
20608 cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
c906108c 20614
bec39cab
AC
20615int
20616main ()
20617{
c906108c 20618int i;
bec39cab
AC
20619 ;
20620 return 0;
20621}
20622_ACEOF
20623rm -f conftest.$ac_objext conftest$ac_exeext
20624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20625 (eval $ac_link) 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } &&
b4e70030
JB
20632 { ac_try='test -z "$ac_c_werror_flag"
20633 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20639 { ac_try='test -s conftest$ac_exeext'
20640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
c906108c
SS
20645 found=yes
20646else
bec39cab
AC
20647 echo "$as_me: failed program was:" >&5
20648sed 's/^/| /' conftest.$ac_ext >&5
20649
b4e70030 20650found=no
c906108c 20651fi
bec39cab
AC
20652rm -f conftest.err conftest.$ac_objext \
20653 conftest$ac_exeext conftest.$ac_ext
c906108c 20654 LDFLAGS=$hold_ldflags
b4e70030
JB
20655 echo "$as_me:$LINENO: result: $found" >&5
20656echo "${ECHO_T}$found" >&6
c906108c
SS
20657 if test $found = yes; then
20658 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
20659 fi
20660 fi
20661 # Sun randomly tweaked the prototypes in <proc_service.h>
20662 # at one point.
b4e70030
JB
20663 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
20664echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
20665 if test "${gdb_cv_proc_service_is_old+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20667else
bec39cab
AC
20668
20669 cat >conftest.$ac_ext <<_ACEOF
20670/* confdefs.h. */
20671_ACEOF
20672cat confdefs.h >>conftest.$ac_ext
20673cat >>conftest.$ac_ext <<_ACEOF
20674/* end confdefs.h. */
c906108c
SS
20675
20676 #include <proc_service.h>
20677 ps_err_e ps_pdwrite
20678 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 20679
bec39cab
AC
20680int
20681main ()
20682{
20683
20684 ;
20685 return 0;
20686}
20687_ACEOF
20688rm -f conftest.$ac_objext
20689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20690 (eval $ac_compile) 2>conftest.er1
20691 ac_status=$?
20692 grep -v '^ *+' conftest.er1 >conftest.err
20693 rm -f conftest.er1
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } &&
b4e70030
JB
20697 { ac_try='test -z "$ac_c_werror_flag"
20698 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20704 { ac_try='test -s conftest.$ac_objext'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; }; then
c906108c
SS
20710 gdb_cv_proc_service_is_old=no
20711else
bec39cab
AC
20712 echo "$as_me: failed program was:" >&5
20713sed 's/^/| /' conftest.$ac_ext >&5
20714
b4e70030 20715gdb_cv_proc_service_is_old=yes
c906108c 20716fi
bec39cab
AC
20717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20718
c906108c
SS
20719fi
20720
b4e70030
JB
20721 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
20722echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 20723 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
20724
20725cat >>confdefs.h <<\_ACEOF
c906108c 20726#define PROC_SERVICE_IS_OLD 1
bec39cab 20727_ACEOF
c906108c
SS
20728
20729 fi
20730 else
b4e70030
JB
20731 echo "$as_me:$LINENO: result: no" >&5
20732echo "${ECHO_T}no" >&6
c906108c
SS
20733 fi
20734 ;;
d92419e5 20735 aix*)
b4e70030
JB
20736 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
20737echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
20738 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20740else
20741 cat >conftest.$ac_ext <<_ACEOF
20742/* confdefs.h. */
20743_ACEOF
20744cat confdefs.h >>conftest.$ac_ext
20745cat >>conftest.$ac_ext <<_ACEOF
20746/* end confdefs.h. */
d92419e5 20747#include <sys/pthdebug.h>
bec39cab
AC
20748int
20749main ()
20750{
d92419e5
JB
20751#ifndef PTHDB_VERSION_3
20752 #error
20753 #endif
bec39cab
AC
20754 ;
20755 return 0;
20756}
20757_ACEOF
20758rm -f conftest.$ac_objext
20759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20760 (eval $ac_compile) 2>conftest.er1
20761 ac_status=$?
20762 grep -v '^ *+' conftest.er1 >conftest.err
20763 rm -f conftest.er1
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } &&
b4e70030
JB
20767 { ac_try='test -z "$ac_c_werror_flag"
20768 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20774 { ac_try='test -s conftest.$ac_objext'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
d92419e5
JB
20780 gdb_cv_have_aix_thread_debug=yes
20781else
bec39cab
AC
20782 echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
b4e70030 20785gdb_cv_have_aix_thread_debug=no
d92419e5 20786fi
bec39cab 20787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
20788fi
20789
b4e70030
JB
20790 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
20791echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
20792 if test $gdb_cv_have_aix_thread_debug = yes; then
20793 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 20794 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
20795 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
20796 fi
20797 ;;
c906108c 20798 esac
bec39cab 20799
c906108c
SS
20800fi
20801
3f47be5c 20802if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
20803 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
20804echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
20805if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20807else
20808 cat >conftest.$ac_ext <<_ACEOF
20809/* confdefs.h. */
20810_ACEOF
20811cat confdefs.h >>conftest.$ac_ext
20812cat >>conftest.$ac_ext <<_ACEOF
20813/* end confdefs.h. */
3f47be5c 20814#include <thread_db.h>
bec39cab
AC
20815int
20816main ()
20817{
3f47be5c 20818int i = TD_NOTALLOC;
bec39cab
AC
20819 ;
20820 return 0;
20821}
20822_ACEOF
20823rm -f conftest.$ac_objext
20824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20825 (eval $ac_compile) 2>conftest.er1
20826 ac_status=$?
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
b4e70030
JB
20832 { ac_try='test -z "$ac_c_werror_flag"
20833 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20839 { ac_try='test -s conftest.$ac_objext'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; }; then
3f47be5c
EZ
20845 gdb_cv_thread_db_h_has_td_notalloc=yes
20846else
bec39cab
AC
20847 echo "$as_me: failed program was:" >&5
20848sed 's/^/| /' conftest.$ac_ext >&5
20849
b4e70030 20850gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 20851
3f47be5c 20852fi
bec39cab 20853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 20854
bec39cab 20855fi
b4e70030
JB
20856echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
20857echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
20858fi
20859if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
20860
20861cat >>confdefs.h <<\_ACEOF
3f47be5c 20862#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 20863_ACEOF
3f47be5c
EZ
20864
20865fi
20866
b757528f 20867if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
20868 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
20869echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
20870if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20872else
20873 cat >conftest.$ac_ext <<_ACEOF
20874/* confdefs.h. */
20875_ACEOF
20876cat confdefs.h >>conftest.$ac_ext
20877cat >>conftest.$ac_ext <<_ACEOF
20878/* end confdefs.h. */
b757528f 20879#include <sys/syscall.h>
bec39cab
AC
20880int
20881main ()
20882{
b757528f 20883int i = __NR_tkill;
bec39cab
AC
20884 ;
20885 return 0;
20886}
20887_ACEOF
20888rm -f conftest.$ac_objext
20889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20890 (eval $ac_compile) 2>conftest.er1
20891 ac_status=$?
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
b4e70030
JB
20897 { ac_try='test -z "$ac_c_werror_flag"
20898 || test ! -s conftest.err'
bec39cab
AC
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try='test -s conftest.$ac_objext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
b757528f
JJ
20910 gdb_cv_sys_syscall_h_has_tkill=yes
20911else
bec39cab
AC
20912 echo "$as_me: failed program was:" >&5
20913sed 's/^/| /' conftest.$ac_ext >&5
20914
b4e70030 20915gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 20916
b757528f 20917fi
bec39cab 20918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 20919
bec39cab 20920fi
b4e70030
JB
20921echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
20922echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
20923fi
20924if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
20925
20926cat >>confdefs.h <<\_ACEOF
b757528f 20927#define HAVE_TKILL_SYSCALL 1
bec39cab 20928_ACEOF
b757528f
JJ
20929
20930fi
20931
fb40c209 20932
bec39cab 20933
b4e70030 20934# Check whether --with-sysroot or --without-sysroot was given.
030292b7 20935if test "${with_sysroot+set}" = set; then
b4e70030
JB
20936 withval="$with_sysroot"
20937
030292b7 20938 case ${with_sysroot} in
715d1656 20939 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
20940 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
20941 esac
20942
20943 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
20944
20945 if test "x$exec_prefix" = xNONE; then
20946 if test "x$prefix" = xNONE; then
20947 test_prefix=/usr/local
20948 else
20949 test_prefix=$prefix
20950 fi
20951 else
20952 test_prefix=$exec_prefix
20953 fi
20954 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
20955 "${test_prefix}"|"${test_prefix}/"*|\
20956 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
20957 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
20958 TARGET_SYSTEM_ROOT_DEFINE="$t"
20959 ;;
20960 esac
20961
20962else
bec39cab 20963
030292b7
DJ
20964 TARGET_SYSTEM_ROOT=
20965 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
20966
b4e70030 20967fi;
030292b7
DJ
20968
20969
20970
b4e70030 20971# Check whether --enable-werror or --disable-werror was given.
094a342e 20972if test "${enable_werror+set}" = set; then
b4e70030
JB
20973 enableval="$enable_werror"
20974 case "${enableval}" in
094a342e
MK
20975 yes | y) ERROR_ON_WARNING="yes" ;;
20976 no | n) ERROR_ON_WARNING="no" ;;
20977 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
20978echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
20979 { (exit 1); exit 1; }; } ;;
20980 esac
b4e70030 20981fi;
094a342e
MK
20982
20983# Enable -Werror by default when using gcc
20984if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
20985 ERROR_ON_WARNING=yes
20986fi
20987
20988WERROR_CFLAGS=""
20989if test "${ERROR_ON_WARNING}" = yes ; then
20990 WERROR_CFLAGS="-Werror"
20991fi
20992
3b851bce
AC
20993# NOTE: Don't add -Wall or -Wunused, they both include
20994# -Wunused-parameter which reports bogus warnings.
20995# NOTE: If you add to this list, remember to update
20996# gdb/doc/gdbint.texinfo.
1decb323 20997build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
a3b362c4 20998-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
7be93b9e 20999-Wunused-label -Wunused-function -Wno-pointer-sign"
a3b362c4
JB
21000
21001# GCC supports -Wuninitialized only with -O or -On, n != 0.
ca231fcc 21002if test x${CFLAGS+set} = xset; then
a3b362c4
JB
21003 case "${CFLAGS}" in
21004 *"-O0"* ) ;;
21005 *"-O"* )
21006 build_warnings="${build_warnings} -Wuninitialized"
21007 ;;
21008 esac
21009else
21010 build_warnings="${build_warnings} -Wuninitialized"
21011fi
21012
d8038014 21013# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 21014# -Wunused-function -Wunused-variable -Wunused-value
93d56215 21015# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
21016# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
21017# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
21018# -Woverloaded-virtual -Winline -Werror"
b4e70030 21019# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 21020if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
21021 enableval="$enable_build_warnings"
21022 case "${enableval}" in
c906108c
SS
21023 yes) ;;
21024 no) build_warnings="-w";;
21025 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21026 build_warnings="${build_warnings} ${t}";;
21027 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21028 build_warnings="${t} ${build_warnings}";;
21029 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21030esac
d4f3574e 21031if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 21032 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 21033fi
b4e70030 21034fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 21035if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
21036 enableval="$enable_gdb_build_warnings"
21037 case "${enableval}" in
3b851bce
AC
21038 yes) ;;
21039 no) build_warnings="-w";;
21040 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21041 build_warnings="${build_warnings} ${t}";;
21042 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21043 build_warnings="${t} ${build_warnings}";;
21044 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21045esac
21046if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21047 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21048fi
b4e70030 21049fi; WARN_CFLAGS=""
c906108c
SS
21050if test "x${build_warnings}" != x -a "x$GCC" = xyes
21051then
b4e70030
JB
21052 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21053echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
21054 # Separate out the -Werror flag as some files just cannot be
21055 # compiled with it enabled.
21056 for w in ${build_warnings}; do
21057 case $w in
21058 -Werr*) WERROR_CFLAGS=-Werror ;;
21059 *) # Check that GCC accepts it
4536bbc6
AC
21060 saved_CFLAGS="$CFLAGS"
21061 CFLAGS="$CFLAGS $w"
bec39cab
AC
21062 cat >conftest.$ac_ext <<_ACEOF
21063/* confdefs.h. */
21064_ACEOF
21065cat confdefs.h >>conftest.$ac_ext
21066cat >>conftest.$ac_ext <<_ACEOF
21067/* end confdefs.h. */
4536bbc6 21068
bec39cab
AC
21069int
21070main ()
21071{
4536bbc6 21072
bec39cab
AC
21073 ;
21074 return 0;
21075}
21076_ACEOF
21077rm -f conftest.$ac_objext
21078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21079 (eval $ac_compile) 2>conftest.er1
21080 ac_status=$?
21081 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } &&
b4e70030
JB
21086 { ac_try='test -z "$ac_c_werror_flag"
21087 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
21093 { ac_try='test -s conftest.$ac_objext'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
4536bbc6
AC
21099 WARN_CFLAGS="${WARN_CFLAGS} $w"
21100else
bec39cab
AC
21101 echo "$as_me: failed program was:" >&5
21102sed 's/^/| /' conftest.$ac_ext >&5
21103
4536bbc6 21104fi
bec39cab 21105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 21106 CFLAGS="$saved_CFLAGS"
746a987d
AC
21107 esac
21108 done
b4e70030
JB
21109 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
21110echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
21111fi
21112
21113
104c1213 21114
7a292a7a 21115# In the Cygwin environment, we need some additional flags.
b4e70030
JB
21116echo "$as_me:$LINENO: checking for cygwin" >&5
21117echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
21118if test "${gdb_cv_os_cygwin+set}" = set; then
21119 echo $ECHO_N "(cached) $ECHO_C" >&6
21120else
21121 cat >conftest.$ac_ext <<_ACEOF
21122/* confdefs.h. */
21123_ACEOF
21124cat confdefs.h >>conftest.$ac_ext
21125cat >>conftest.$ac_ext <<_ACEOF
21126/* end confdefs.h. */
7a292a7a
SS
21127
21128#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21129lose
21130#endif
bec39cab 21131_ACEOF
7a292a7a 21132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 21133 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
21134 gdb_cv_os_cygwin=yes
21135else
7a292a7a
SS
21136 gdb_cv_os_cygwin=no
21137fi
21138rm -f conftest*
21139
21140fi
b4e70030
JB
21141echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21142echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 21143
aff38e61 21144
3eb25fda 21145SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 21146case ${host} in
95cbc983
AC
21147 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21148 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 21149 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
21150esac
21151
21152
cd0fc7c3
SS
21153# libreadline needs libuser32.a in a cygwin environment
21154WIN32LIBS=
21155if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
21156 WIN32LIBS="-luser32"
21157 case "${target}" in
21158 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21159 ;;
21160 esac
cd0fc7c3 21161fi
c906108c 21162
b4505029
MM
21163# The ser-tcp.c module requires sockets.
21164case ${host} in
21165 *mingw32*)
21166
21167cat >>confdefs.h <<\_ACEOF
21168#define USE_WIN32API 1
21169_ACEOF
21170
21171 WIN32LIBS="$WIN32LIBS -lws2_32"
21172 ;;
21173esac
21174
7a292a7a 21175
121ce6e5
DJ
21176# Add any host-specific objects to GDB.
21177CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21178
3fc11d3e
JM
21179LIBGUI="../libgui/src/libgui.a"
21180GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21181
21182
7a292a7a 21183
3fc11d3e
JM
21184WIN32LDAPP=
21185
21186
21187
d91670b9
CV
21188case "${host}" in
21189*-*-cygwin*)
21190 configdir="win"
21191 ;;
21192*)
21193 configdir="unix"
21194 ;;
21195esac
3fc11d3e
JM
21196
21197GDBTKLIBS=
21198if test "${enable_gdbtk}" = "yes"; then
21199
d1c3b63a
KS
21200 # Gdbtk must have an absolute path to srcdir in order to run
21201 # properly when not installed.
21202 here=`pwd`
21203 cd ${srcdir}
21204 GDBTK_SRC_DIR=`pwd`
21205 cd $here
21206
bec39cab 21207
3fc11d3e
JM
21208#
21209# Ok, lets find the tcl configuration
bec39cab 21210# First, look for one uninstalled.
3fc11d3e
JM
21211# the alternative search directory is invoked by --with-tclconfig
21212#
21213
21214if test x"${no_tcl}" = x ; then
21215 # we reset no_tcl in case something fails here
21216 no_tcl=true
bec39cab 21217
b4e70030 21218# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 21219if test "${with_tclconfig+set}" = set; then
b4e70030
JB
21220 withval="$with_tclconfig"
21221 with_tclconfig=${withval}
21222fi;
21223 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21224echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
21225 if test "${ac_cv_c_tclconfig+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21227else
bec39cab 21228
3fc11d3e
JM
21229
21230 # First check to see if --with-tclconfig was specified.
21231 if test x"${with_tclconfig}" != x ; then
21232 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21233 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21234 else
bec39cab
AC
21235 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21236echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21237 { (exit 1); exit 1; }; }
3fc11d3e
JM
21238 fi
21239 fi
21240
21241 # then check for a private Tcl installation
21242 if test x"${ac_cv_c_tclconfig}" = x ; then
21243 for i in \
21244 ../tcl \
21245 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21246 ../../tcl \
21247 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21248 ../../../tcl \
21249 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21250 if test -f "$i/${configdir}/tclConfig.sh" ; then
21251 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21252 break
21253 fi
21254 done
21255 fi
21256 # check in a few common install locations
21257 if test x"${ac_cv_c_tclconfig}" = x ; then
21258 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21259 if test -f "$i/tclConfig.sh" ; then
21260 ac_cv_c_tclconfig=`(cd $i; pwd)`
21261 break
21262 fi
21263 done
21264 fi
21265 # check in a few other private locations
21266 if test x"${ac_cv_c_tclconfig}" = x ; then
21267 for i in \
21268 ${srcdir}/../tcl \
21269 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21270 if test -f "$i/${configdir}/tclConfig.sh" ; then
21271 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21272 break
21273 fi
21274 done
21275 fi
bec39cab 21276
3fc11d3e
JM
21277fi
21278
21279 if test x"${ac_cv_c_tclconfig}" = x ; then
21280 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
21281 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
21282echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
21283 else
21284 no_tcl=
21285 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
21286 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
21287echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
21288 fi
21289fi
21290
21291 if test -z "${no_tcl}"; then
bec39cab 21292
3fc11d3e
JM
21293 . $TCLCONFIG
21294
3fc11d3e
JM
21295
21296
21297
21298
3fc11d3e
JM
21299
21300
21301
bec39cab
AC
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
3fc11d3e
JM
21321#
21322# Ok, lets find the tk configuration
bec39cab 21323# First, look for one uninstalled.
3fc11d3e
JM
21324# the alternative search directory is invoked by --with-tkconfig
21325#
21326
21327if test x"${no_tk}" = x ; then
21328 # we reset no_tk in case something fails here
21329 no_tk=true
bec39cab 21330
b4e70030 21331# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 21332if test "${with_tkconfig+set}" = set; then
b4e70030
JB
21333 withval="$with_tkconfig"
21334 with_tkconfig=${withval}
21335fi;
21336 echo "$as_me:$LINENO: checking for Tk configuration" >&5
21337echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
21338 if test "${ac_cv_c_tkconfig+set}" = set; then
21339 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21340else
bec39cab 21341
3fc11d3e
JM
21342
21343 # First check to see if --with-tkconfig was specified.
21344 if test x"${with_tkconfig}" != x ; then
21345 if test -f "${with_tkconfig}/tkConfig.sh" ; then
21346 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
21347 else
bec39cab
AC
21348 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
21349echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
21350 { (exit 1); exit 1; }; }
3fc11d3e
JM
21351 fi
21352 fi
21353
21354 # then check for a private Tk library
21355 if test x"${ac_cv_c_tkconfig}" = x ; then
21356 for i in \
21357 ../tk \
21358 `ls -dr ../tk[4-9]* 2>/dev/null` \
21359 ../../tk \
21360 `ls -dr ../../tk[4-9]* 2>/dev/null` \
21361 ../../../tk \
21362 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
21363 if test -f "$i/${configdir}/tkConfig.sh" ; then
21364 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21365 break
21366 fi
21367 done
21368 fi
21369 # check in a few common install locations
21370 if test x"${ac_cv_c_tkconfig}" = x ; then
21371 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21372 if test -f "$i/tkConfig.sh" ; then
21373 ac_cv_c_tkconfig=`(cd $i; pwd)`
21374 break
21375 fi
21376 done
21377 fi
21378 # check in a few other private locations
21379 if test x"${ac_cv_c_tkconfig}" = x ; then
21380 for i in \
21381 ${srcdir}/../tk \
21382 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
21383 if test -f "$i/${configdir}/tkConfig.sh" ; then
21384 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21385 break
21386 fi
21387 done
21388 fi
bec39cab 21389
3fc11d3e
JM
21390fi
21391
21392 if test x"${ac_cv_c_tkconfig}" = x ; then
21393 TKCONFIG="# no Tk configs found"
bec39cab
AC
21394 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
21395echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
21396 else
21397 no_tk=
21398 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
21399 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
21400echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
21401 fi
21402fi
21403
21404
21405
dd2504ab
JM
21406 # now look for Tcl library stuff
21407
d91670b9 21408 tcldir="../tcl/${configdir}/"
dd2504ab
JM
21409
21410 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
21411
3fc11d3e
JM
21412 # If $no_tk is nonempty, then we can't do Tk, and there is no
21413 # point to doing Tcl.
21414 if test -z "${no_tk}"; then
bec39cab 21415
3fc11d3e
JM
21416 if test -f "$TKCONFIG" ; then
21417 . $TKCONFIG
21418 fi
21419
3fc11d3e 21420
3fc11d3e
JM
21421
21422
3fc11d3e 21423
bec39cab
AC
21424
21425
21426
21427
21428
21429
21430
21431
21432
3fc11d3e
JM
21433#
21434# Ok, lets find the tcl source trees so we can use the headers
21435# Warning: transition of version 9 to 10 will break this algorithm
21436# because 10 sorts before 9. We also look for just tcl. We have to
21437# be careful that we don't match stuff like tclX by accident.
21438# the alternative search directory is involked by --with-tclinclude
21439#
21440
21441no_tcl=true
b4e70030
JB
21442echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
21443echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 21444
b4e70030 21445# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 21446if test "${with_tclinclude+set}" = set; then
b4e70030
JB
21447 withval="$with_tclinclude"
21448 with_tclinclude=${withval}
21449fi;
bec39cab
AC
21450if test "${ac_cv_c_tclh+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21452else
bec39cab 21453
3fc11d3e
JM
21454# first check to see if --with-tclinclude was specified
21455if test x"${with_tclinclude}" != x ; then
21456 if test -f ${with_tclinclude}/tclInt.h ; then
21457 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
21458 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
21459 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
21460 else
bec39cab
AC
21461 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
21462echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
21463 { (exit 1); exit 1; }; }
3fc11d3e
JM
21464 fi
21465fi
21466
21467# next check if it came with Tcl configuration file
21468if test x"${ac_cv_c_tclconfig}" = x ; then
21469 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
21470 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
21471 fi
21472fi
21473
21474# next check in private source directory
21475#
21476# since ls returns lowest version numbers first, reverse its output
21477if test x"${ac_cv_c_tclh}" = x ; then
21478 for i in \
21479 ${srcdir}/../tcl \
21480 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
21481 ${srcdir}/../../tcl \
21482 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
21483 ${srcdir}/../../../tcl \
21484 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
21485 if test -f $i/generic/tclInt.h ; then
21486 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21487 break
21488 fi
21489 done
21490fi
21491# finally check in a few common install locations
21492#
21493# since ls returns lowest version numbers first, reverse its output
21494if test x"${ac_cv_c_tclh}" = x ; then
21495 for i in \
21496 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
21497 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
21498 /usr/local/src/tcl \
21499 /usr/local/lib/tcl \
21500 ${prefix}/include ; do
21501 if test -f $i/generic/tclInt.h ; then
21502 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21503 break
21504 fi
21505 done
21506fi
21507# see if one is installed
21508if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 21509 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
21510 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21511echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
21512if test "${ac_cv_header_tclInt_h+set}" = set; then
21513 echo $ECHO_N "(cached) $ECHO_C" >&6
21514fi
b4e70030
JB
21515echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21516echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
21517else
21518 # Is the header compilable?
b4e70030
JB
21519echo "$as_me:$LINENO: checking tclInt.h usability" >&5
21520echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
21521cat >conftest.$ac_ext <<_ACEOF
21522/* confdefs.h. */
21523_ACEOF
21524cat confdefs.h >>conftest.$ac_ext
21525cat >>conftest.$ac_ext <<_ACEOF
21526/* end confdefs.h. */
21527$ac_includes_default
21528#include <tclInt.h>
21529_ACEOF
21530rm -f conftest.$ac_objext
21531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21532 (eval $ac_compile) 2>conftest.er1
21533 ac_status=$?
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } &&
b4e70030
JB
21539 { ac_try='test -z "$ac_c_werror_flag"
21540 || test ! -s conftest.err'
bec39cab
AC
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; } &&
21546 { ac_try='test -s conftest.$ac_objext'
21547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548 (eval $ac_try) 2>&5
21549 ac_status=$?
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); }; }; then
21552 ac_header_compiler=yes
21553else
21554 echo "$as_me: failed program was:" >&5
21555sed 's/^/| /' conftest.$ac_ext >&5
21556
b4e70030 21557ac_header_compiler=no
bec39cab
AC
21558fi
21559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
21560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21561echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
21562
21563# Is the header present?
b4e70030
JB
21564echo "$as_me:$LINENO: checking tclInt.h presence" >&5
21565echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
21566cat >conftest.$ac_ext <<_ACEOF
21567/* confdefs.h. */
21568_ACEOF
21569cat confdefs.h >>conftest.$ac_ext
21570cat >>conftest.$ac_ext <<_ACEOF
21571/* end confdefs.h. */
3fc11d3e 21572#include <tclInt.h>
bec39cab
AC
21573_ACEOF
21574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21576 ac_status=$?
21577 grep -v '^ *+' conftest.er1 >conftest.err
21578 rm -f conftest.er1
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } >/dev/null; then
21582 if test -s conftest.err; then
21583 ac_cpp_err=$ac_c_preproc_warn_flag
21584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21585 else
21586 ac_cpp_err=
21587 fi
21588else
21589 ac_cpp_err=yes
3fc11d3e 21590fi
bec39cab
AC
21591if test -z "$ac_cpp_err"; then
21592 ac_header_preproc=yes
21593else
21594 echo "$as_me: failed program was:" >&5
21595sed 's/^/| /' conftest.$ac_ext >&5
21596
21597 ac_header_preproc=no
3fc11d3e 21598fi
bec39cab 21599rm -f conftest.err conftest.$ac_ext
b4e70030
JB
21600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21601echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
21602
21603# So? What about this header?
21604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21605 yes:no: )
21606 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21607echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21608 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
21609echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
21610 ac_header_preproc=yes
21611 ;;
21612 no:yes:* )
21613 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
21614echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
21616echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
21618echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
21620echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21621 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
21622echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
21624echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
21625 (
21626 cat <<\_ASBOX
21627## ------------------------------------------ ##
21628## Report this to the AC_PACKAGE_NAME lists. ##
21629## ------------------------------------------ ##
21630_ASBOX
21631 ) |
21632 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
21633 ;;
21634esac
b4e70030
JB
21635echo "$as_me:$LINENO: checking for tclInt.h" >&5
21636echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
21637if test "${ac_cv_header_tclInt_h+set}" = set; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21639else
21640 ac_cv_header_tclInt_h=$ac_header_preproc
21641fi
b4e70030
JB
21642echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21643echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
21644
21645fi
21646if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
21647 ac_cv_c_tclh=installed
21648else
bec39cab 21649 ac_cv_c_tclh=""
3fc11d3e
JM
21650fi
21651
bec39cab 21652
3fc11d3e
JM
21653fi
21654
21655fi
21656
21657if test x"${ac_cv_c_tclh}" = x ; then
21658 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
21659 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
21660echo "$as_me: error: Can't find Tcl private headers" >&2;}
21661 { (exit 1); exit 1; }; }
3fc11d3e
JM
21662fi
21663if test x"${ac_cv_c_tclh}" != x ; then
21664 no_tcl=""
21665 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
21666 echo "$as_me:$LINENO: result: is installed" >&5
21667echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
21668 TCLHDIR=""
21669 else
b4e70030
JB
21670 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
21671echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
21672 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
21673 TCLHDIR="-I${ac_cv_c_tclh}"
21674 fi
21675fi
21676
21677
21678
bec39cab 21679
3fc11d3e
JM
21680#
21681# Ok, lets find the tk source trees so we can use the headers
21682# If the directory (presumably symlink) named "tk" exists, use that one
21683# in preference to any others. Same logic is used when choosing library
21684# and again with Tcl. The search order is the best place to look first, then in
21685# decreasing significance. The loop breaks if the trigger file is found.
21686# Note the gross little conversion here of srcdir by cd'ing to the found
21687# directory. This converts the path from a relative to an absolute, so
21688# recursive cache variables for the path will work right. We check all
21689# the possible paths in one loop rather than many seperate loops to speed
21690# things up.
21691# the alternative search directory is involked by --with-tkinclude
21692#
21693no_tk=true
b4e70030
JB
21694echo "$as_me:$LINENO: checking for Tk private headers" >&5
21695echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 21696
b4e70030 21697# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 21698if test "${with_tkinclude+set}" = set; then
b4e70030
JB
21699 withval="$with_tkinclude"
21700 with_tkinclude=${withval}
21701fi;
bec39cab
AC
21702if test "${ac_cv_c_tkh+set}" = set; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21704else
bec39cab 21705
3fc11d3e
JM
21706# first check to see if --with-tkinclude was specified
21707if test x"${with_tkinclude}" != x ; then
21708 if test -f ${with_tkinclude}/tk.h ; then
21709 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
21710 elif test -f ${with_tkinclude}/generic/tk.h ; then
21711 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
21712 else
bec39cab
AC
21713 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
21714echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
21715 { (exit 1); exit 1; }; }
3fc11d3e
JM
21716 fi
21717fi
21718
21719# next check if it came with Tk configuration file
21720if test x"${ac_cv_c_tkconfig}" = x ; then
21721 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
21722 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
21723 fi
21724fi
21725
21726# next check in private source directory
21727#
21728# since ls returns lowest version numbers first, reverse its output
21729if test x"${ac_cv_c_tkh}" = x ; then
21730 for i in \
21731 ${srcdir}/../tk \
21732 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
21733 ${srcdir}/../../tk \
21734 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
21735 ${srcdir}/../../../tk \
21736 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
21737 if test -f $i/generic/tk.h ; then
21738 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21739 break
21740 fi
21741 done
21742fi
21743# finally check in a few common install locations
21744#
21745# since ls returns lowest version numbers first, reverse its output
21746if test x"${ac_cv_c_tkh}" = x ; then
21747 for i in \
21748 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
21749 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
21750 /usr/local/src/tk \
21751 /usr/local/lib/tk \
21752 ${prefix}/include ; do
21753 if test -f $i/generic/tk.h ; then
21754 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21755 break
21756 fi
21757 done
21758fi
21759# see if one is installed
21760if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 21761 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
21762 echo "$as_me:$LINENO: checking for tk.h" >&5
21763echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
21764if test "${ac_cv_header_tk_h+set}" = set; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21766fi
b4e70030
JB
21767echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21768echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
21769else
21770 # Is the header compilable?
b4e70030
JB
21771echo "$as_me:$LINENO: checking tk.h usability" >&5
21772echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
21773cat >conftest.$ac_ext <<_ACEOF
21774/* confdefs.h. */
21775_ACEOF
21776cat confdefs.h >>conftest.$ac_ext
21777cat >>conftest.$ac_ext <<_ACEOF
21778/* end confdefs.h. */
21779$ac_includes_default
3fc11d3e 21780#include <tk.h>
bec39cab
AC
21781_ACEOF
21782rm -f conftest.$ac_objext
21783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21784 (eval $ac_compile) 2>conftest.er1
21785 ac_status=$?
21786 grep -v '^ *+' conftest.er1 >conftest.err
21787 rm -f conftest.er1
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } &&
b4e70030
JB
21791 { ac_try='test -z "$ac_c_werror_flag"
21792 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
21798 { ac_try='test -s conftest.$ac_objext'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21801 ac_status=$?
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
21804 ac_header_compiler=yes
21805else
21806 echo "$as_me: failed program was:" >&5
21807sed 's/^/| /' conftest.$ac_ext >&5
21808
b4e70030 21809ac_header_compiler=no
bec39cab
AC
21810fi
21811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
21812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21813echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
21814
21815# Is the header present?
b4e70030
JB
21816echo "$as_me:$LINENO: checking tk.h presence" >&5
21817echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
21818cat >conftest.$ac_ext <<_ACEOF
21819/* confdefs.h. */
21820_ACEOF
21821cat confdefs.h >>conftest.$ac_ext
21822cat >>conftest.$ac_ext <<_ACEOF
21823/* end confdefs.h. */
21824#include <tk.h>
21825_ACEOF
21826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21828 ac_status=$?
21829 grep -v '^ *+' conftest.er1 >conftest.err
21830 rm -f conftest.er1
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } >/dev/null; then
21834 if test -s conftest.err; then
21835 ac_cpp_err=$ac_c_preproc_warn_flag
21836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21837 else
21838 ac_cpp_err=
21839 fi
21840else
21841 ac_cpp_err=yes
3fc11d3e 21842fi
bec39cab
AC
21843if test -z "$ac_cpp_err"; then
21844 ac_header_preproc=yes
21845else
21846 echo "$as_me: failed program was:" >&5
21847sed 's/^/| /' conftest.$ac_ext >&5
21848
21849 ac_header_preproc=no
21850fi
21851rm -f conftest.err conftest.$ac_ext
b4e70030
JB
21852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21853echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
21854
21855# So? What about this header?
21856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21857 yes:no: )
21858 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
21859echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21860 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
21861echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
21862 ac_header_preproc=yes
21863 ;;
21864 no:yes:* )
21865 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
21866echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
21868echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
21870echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
21872echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
21874echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
21876echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
21877 (
21878 cat <<\_ASBOX
21879## ------------------------------------------ ##
21880## Report this to the AC_PACKAGE_NAME lists. ##
21881## ------------------------------------------ ##
21882_ASBOX
21883 ) |
21884 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
21885 ;;
21886esac
b4e70030
JB
21887echo "$as_me:$LINENO: checking for tk.h" >&5
21888echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
21889if test "${ac_cv_header_tk_h+set}" = set; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21891else
21892 ac_cv_header_tk_h=$ac_header_preproc
21893fi
b4e70030
JB
21894echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21895echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 21896
3fc11d3e 21897fi
bec39cab 21898if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
21899 ac_cv_c_tkh=installed
21900else
bec39cab 21901 ac_cv_c_tkh=""
3fc11d3e
JM
21902fi
21903
bec39cab 21904
3fc11d3e
JM
21905fi
21906
21907fi
21908
21909if test x"${ac_cv_c_tkh}" != x ; then
21910 no_tk=""
21911 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
21912 echo "$as_me:$LINENO: result: is installed" >&5
21913echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
21914 TKHDIR=""
21915 else
b4e70030
JB
21916 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
21917echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
21918 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
21919 TKHDIR="-I${ac_cv_c_tkh}"
21920 fi
21921else
21922 TKHDIR="# no Tk directory found"
bec39cab
AC
21923 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
21924echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
21925 no_tk=true
21926fi
21927
21928
21929
bec39cab 21930
b4e70030
JB
21931echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
21932echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21933if test x"${ac_cv_c_itclh}" = x ; then
21934 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
21935 if test -f $i/generic/itcl.h ; then
21936 ac_cv_c_itclh=`(cd $i/generic; pwd)`
21937 break
21938 fi
21939 done
21940fi
21941if test x"${ac_cv_c_itclh}" = x ; then
21942 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
21943 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
21944echo "$as_me: error: Can't find Itcl private headers" >&2;}
21945 { (exit 1); exit 1; }; }
3fc11d3e
JM
21946fi
21947if test x"${ac_cv_c_itclh}" != x ; then
21948 ITCLHDIR="-I${ac_cv_c_itclh}"
21949fi
21950# should always be here
21951# ITCLLIB="../itcl/itcl/unix/libitcl.a"
21952
21953#AC_SUBST(ITCLLIB)
21954
bec39cab 21955
b4e70030
JB
21956echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
21957echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21958if test x"${ac_cv_c_itkh}" = x ; then
21959 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
21960 if test -f $i/generic/itk.h ; then
21961 ac_cv_c_itkh=`(cd $i/generic; pwd)`
21962 break
21963 fi
21964 done
21965fi
21966if test x"${ac_cv_c_itkh}" = x ; then
21967 ITKHDIR="# no Itk private headers found"
bec39cab
AC
21968 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
21969echo "$as_me: error: Can't find Itk private headers" >&2;}
21970 { (exit 1); exit 1; }; }
3fc11d3e
JM
21971fi
21972if test x"${ac_cv_c_itkh}" != x ; then
21973 ITKHDIR="-I${ac_cv_c_itkh}"
21974fi
21975# should always be here
21976# ITKLIB="../itcl/itk/unix/libitk.a"
21977
21978#AC_SUBST(ITKLIB)
21979
3fc11d3e 21980
dd2504ab
JM
21981
21982 # now look for Tk library stuff
21983
d91670b9 21984 tkdir="../tk/${configdir}/"
dd2504ab
JM
21985
21986 TK_DEPS="${tkdir}${TK_LIB_FILE}"
21987
3fc11d3e
JM
21988 # now look for Itcl library stuff
21989
bec39cab 21990
3fc11d3e
JM
21991#
21992# Ok, lets find the itcl configuration
bec39cab 21993# First, look for one uninstalled.
3fc11d3e
JM
21994# the alternative search directory is invoked by --with-itclconfig
21995#
21996
21997if test x"${no_itcl}" = x ; then
21998 # we reset no_itcl in case something fails here
21999 no_itcl=true
bec39cab 22000
b4e70030 22001# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 22002if test "${with_itclconfig+set}" = set; then
b4e70030
JB
22003 withval="$with_itclconfig"
22004 with_itclconfig=${withval}
22005fi;
22006 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22007echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
22008 if test "${ac_cv_c_itclconfig+set}" = set; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22010else
bec39cab 22011
3fc11d3e
JM
22012
22013 # First check to see if --with-itclconfig was specified.
22014 if test x"${with_itclconfig}" != x ; then
22015 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22016 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22017 else
bec39cab
AC
22018 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22019echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22020 { (exit 1); exit 1; }; }
3fc11d3e
JM
22021 fi
22022 fi
22023
22024 # then check for a private Itcl library
22025 if test x"${ac_cv_c_itclconfig}" = x ; then
22026 for i in \
22027 ../itcl/itcl \
22028 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22029 ../../itcl \
22030 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22031 ../../../itcl \
22032 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22033 if test -f "$i/itclConfig.sh" ; then
22034 ac_cv_c_itclconfig=`(cd $i; pwd)`
22035 break
22036 fi
22037 done
22038 fi
22039 # check in a few common install locations
22040 if test x"${ac_cv_c_itclconfig}" = x ; then
22041 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22042 if test -f "$i/itclConfig.sh" ; then
22043 ac_cv_c_itclconfig=`(cd $i; pwd)`
22044 break
22045 fi
22046 done
22047 fi
22048 # check in a few other private locations
22049 if test x"${ac_cv_c_itclconfig}" = x ; then
22050 for i in \
22051 ${srcdir}/../itcl/itcl \
22052 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22053 if test -f "$i/itclConfig.sh" ; then
22054 ac_cv_c_itclconfig=`(cd $i; pwd)`
22055 break
22056 fi
22057 done
22058 fi
bec39cab 22059
3fc11d3e
JM
22060fi
22061
22062 if test x"${ac_cv_c_itclconfig}" = x ; then
22063 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
22064 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22065echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
22066 else
22067 no_itcl=
22068 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
22069 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22070echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
22071 fi
22072fi
22073
22074 if test -z "${no_itcl}"; then
bec39cab 22075
3fc11d3e
JM
22076 if test -f "$ITCLCONFIG" ; then
22077 . $ITCLCONFIG
22078 fi
22079
3fc11d3e 22080
3fc11d3e
JM
22081
22082
bec39cab
AC
22083
22084
22085
22086
22087
22088
22089
3fc11d3e
JM
22090
22091 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 22092 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
22093 fi
22094
bec39cab 22095
3fc11d3e 22096 # now look for Itk library stuff
bec39cab 22097
3fc11d3e
JM
22098#
22099# Ok, lets find the itk configuration
bec39cab 22100# First, look for one uninstalled.
3fc11d3e
JM
22101# the alternative search directory is invoked by --with-itkconfig
22102#
22103
22104if test x"${no_itk}" = x ; then
22105 # we reset no_itk in case something fails here
22106 no_itk=true
bec39cab 22107
b4e70030 22108# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 22109if test "${with_itkconfig+set}" = set; then
b4e70030
JB
22110 withval="$with_itkconfig"
22111 with_itkconfig=${withval}
22112fi;
22113 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22114echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
22115 if test "${ac_cv_c_itkconfig+set}" = set; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22117else
bec39cab 22118
3fc11d3e
JM
22119
22120 # First check to see if --with-itkconfig was specified.
22121 if test x"${with_itkconfig}" != x ; then
22122 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22123 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22124 else
bec39cab
AC
22125 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22126echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22127 { (exit 1); exit 1; }; }
3fc11d3e
JM
22128 fi
22129 fi
22130
22131 # then check for a private Itk library
22132 if test x"${ac_cv_c_itkconfig}" = x ; then
22133 for i in \
22134 ../itcl/itk \
22135 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22136 ../../itk \
22137 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22138 ../../../itk \
22139 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22140 if test -f "$i/itkConfig.sh" ; then
22141 ac_cv_c_itkconfig=`(cd $i; pwd)`
22142 break
22143 fi
22144 done
22145 fi
22146 # check in a few common install locations
22147 if test x"${ac_cv_c_itkconfig}" = x ; then
22148 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22149 if test -f "$i/itkConfig.sh" ; then
22150 ac_cv_c_itkconfig=`(cd $i; pwd)`
22151 break
22152 fi
22153 done
22154 fi
22155 # check in a few other private locations
22156 if test x"${ac_cv_c_itkconfig}" = x ; then
22157 for i in \
22158 ${srcdir}/../itcl/itk \
22159 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22160 if test -f "$i/itkConfig.sh" ; then
22161 ac_cv_c_itkconfig=`(cd $i; pwd)`
22162 break
22163 fi
22164 done
22165 fi
bec39cab 22166
3fc11d3e
JM
22167fi
22168
22169 if test x"${ac_cv_c_itkconfig}" = x ; then
22170 ITKCONFIG="# no Itk configs found"
bec39cab
AC
22171 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22172echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
22173 else
22174 no_itk=
22175 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
22176 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22177echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
22178 fi
22179fi
22180
22181
bec39cab
AC
22182 if test -z "${no_itcl}"; then
22183
22184 if test -f "$ITKCONFIG" ; then
22185 . $ITKCONFIG
22186 fi
22187
22188
22189
22190
22191
22192
3fc11d3e 22193
3fc11d3e 22194
3fc11d3e
JM
22195
22196
3fc11d3e
JM
22197
22198
3fc11d3e 22199 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 22200 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
22201 fi
22202
4226a5a5 22203 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
22204
22205 # Include some libraries that Tcl and Tk want.
b2a1bd4f 22206 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
22207 # Yes, the ordering seems wrong here. But it isn't.
22208 # TK_LIBS is the list of libraries that need to be linked
22209 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22210 # were in LIBS then any link tests after this point would
22211 # try to include things like `$(LIBGUI)', which wouldn't work.
22212 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
22213
22214 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22215 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22216 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
22217 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22218 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22219 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22220 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
22221
22222 if test x$gdb_cv_os_cygwin = xyes; then
22223 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22224 WIN32LDAPP="-Wl,--subsystem,console"
22225 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22226 fi
22227 fi
22228 fi
ffc6a242 22229
b4e70030
JB
22230
22231
22232subdirs="$subdirs gdbtk"
3ace7edb 22233
3fc11d3e
JM
22234fi
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
dd2504ab 22248
b4e70030
JB
22249echo "$as_me:$LINENO: checking for X" >&5
22250echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 22251
c906108c 22252
b4e70030 22253# Check whether --with-x or --without-x was given.
c906108c 22254if test "${with_x+set}" = set; then
b4e70030 22255 withval="$with_x"
c906108c 22256
b4e70030 22257fi;
c906108c
SS
22258# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22259if test "x$with_x" = xno; then
22260 # The user explicitly disabled X.
22261 have_x=disabled
22262else
22263 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22264 # Both variables are already set.
22265 have_x=yes
22266 else
bec39cab
AC
22267 if test "${ac_cv_have_x+set}" = set; then
22268 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22269else
22270 # One or both of the vars are not set, and there is no cached value.
bec39cab 22271ac_x_includes=no ac_x_libraries=no
b4e70030 22272rm -fr conftest.dir
bec39cab
AC
22273if mkdir conftest.dir; then
22274 cd conftest.dir
c906108c 22275 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 22276 cat >Imakefile <<'_ACEOF'
c906108c
SS
22277acfindx:
22278 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 22279_ACEOF
b4e70030 22280 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
22281 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22282 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22283 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22284 for ac_extension in a so sl; do
22285 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
22286 test -f $ac_im_libdir/libX11.$ac_extension; then
22287 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
22288 fi
22289 done
22290 # Screen out bogus values from the imake configuration. They are
22291 # bogus both because they are the default anyway, and because
22292 # using them would break gcc on systems where it needs fixed includes.
bec39cab 22293 case $ac_im_incroot in
b4e70030 22294 /usr/include) ;;
bec39cab 22295 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 22296 esac
bec39cab 22297 case $ac_im_usrlibdir in
c906108c 22298 /usr/lib | /lib) ;;
bec39cab 22299 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
22300 esac
22301 fi
22302 cd ..
b4e70030 22303 rm -fr conftest.dir
c906108c
SS
22304fi
22305
bec39cab
AC
22306# Standard set of common directories for X headers.
22307# Check X11 before X11Rn because it is often a symlink to the current release.
22308ac_x_header_dirs='
22309/usr/X11/include
22310/usr/X11R6/include
22311/usr/X11R5/include
22312/usr/X11R4/include
22313
22314/usr/include/X11
22315/usr/include/X11R6
22316/usr/include/X11R5
22317/usr/include/X11R4
22318
22319/usr/local/X11/include
22320/usr/local/X11R6/include
22321/usr/local/X11R5/include
22322/usr/local/X11R4/include
22323
22324/usr/local/include/X11
22325/usr/local/include/X11R6
22326/usr/local/include/X11R5
22327/usr/local/include/X11R4
22328
22329/usr/X386/include
22330/usr/x386/include
22331/usr/XFree86/include/X11
22332
22333/usr/include
22334/usr/local/include
22335/usr/unsupported/include
22336/usr/athena/include
22337/usr/local/x11r5/include
22338/usr/lpp/Xamples/include
22339
22340/usr/openwin/include
22341/usr/openwin/share/include'
22342
22343if test "$ac_x_includes" = no; then
771b4502 22344 # Guess where to find include files, by looking for Xlib.h.
c906108c 22345 # First, try using that file with no special directory specified.
bec39cab
AC
22346 cat >conftest.$ac_ext <<_ACEOF
22347/* confdefs.h. */
22348_ACEOF
22349cat confdefs.h >>conftest.$ac_ext
22350cat >>conftest.$ac_ext <<_ACEOF
22351/* end confdefs.h. */
771b4502 22352#include <X11/Xlib.h>
bec39cab
AC
22353_ACEOF
22354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22356 ac_status=$?
22357 grep -v '^ *+' conftest.er1 >conftest.err
22358 rm -f conftest.er1
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } >/dev/null; then
22362 if test -s conftest.err; then
22363 ac_cpp_err=$ac_c_preproc_warn_flag
22364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22365 else
22366 ac_cpp_err=
22367 fi
22368else
22369 ac_cpp_err=yes
22370fi
22371if test -z "$ac_cpp_err"; then
c906108c
SS
22372 # We can compile using X headers with no special include directory.
22373ac_x_includes=
22374else
bec39cab
AC
22375 echo "$as_me: failed program was:" >&5
22376sed 's/^/| /' conftest.$ac_ext >&5
22377
22378 for ac_dir in $ac_x_header_dirs; do
771b4502 22379 if test -r "$ac_dir/X11/Xlib.h"; then
bec39cab
AC
22380 ac_x_includes=$ac_dir
22381 break
22382 fi
22383done
c906108c 22384fi
bec39cab
AC
22385rm -f conftest.err conftest.$ac_ext
22386fi # $ac_x_includes = no
c906108c 22387
bec39cab 22388if test "$ac_x_libraries" = no; then
c906108c 22389 # Check for the libraries.
c906108c
SS
22390 # See if we find them without any special options.
22391 # Don't add to $LIBS permanently.
bec39cab 22392 ac_save_LIBS=$LIBS
4e8d927d 22393 LIBS="-lXt $LIBS"
bec39cab
AC
22394 cat >conftest.$ac_ext <<_ACEOF
22395/* confdefs.h. */
22396_ACEOF
22397cat confdefs.h >>conftest.$ac_ext
22398cat >>conftest.$ac_ext <<_ACEOF
22399/* end confdefs.h. */
771b4502 22400#include <X11/Xlib.h>
bec39cab
AC
22401int
22402main ()
22403{
771b4502 22404XrmInitialize ()
bec39cab
AC
22405 ;
22406 return 0;
22407}
22408_ACEOF
22409rm -f conftest.$ac_objext conftest$ac_exeext
22410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22411 (eval $ac_link) 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } &&
b4e70030
JB
22418 { ac_try='test -z "$ac_c_werror_flag"
22419 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
22425 { ac_try='test -s conftest$ac_exeext'
22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427 (eval $ac_try) 2>&5
22428 ac_status=$?
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; }; then
22431 LIBS=$ac_save_LIBS
c906108c
SS
22432# We can link X programs with no special library path.
22433ac_x_libraries=
22434else
bec39cab
AC
22435 echo "$as_me: failed program was:" >&5
22436sed 's/^/| /' conftest.$ac_ext >&5
22437
b4e70030 22438LIBS=$ac_save_LIBS
bec39cab 22439for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 22440do
bec39cab 22441 # Don't even attempt the hair of trying to link an X program!
c906108c 22442 for ac_extension in a so sl; do
b4e70030 22443 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
22444 ac_x_libraries=$ac_dir
22445 break 2
22446 fi
22447 done
22448done
22449fi
bec39cab
AC
22450rm -f conftest.err conftest.$ac_objext \
22451 conftest$ac_exeext conftest.$ac_ext
22452fi # $ac_x_libraries = no
c906108c 22453
bec39cab 22454if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
22455 # Didn't find X anywhere. Cache the known absence of X.
22456 ac_cv_have_x="have_x=no"
22457else
22458 # Record where we found X for the cache.
22459 ac_cv_have_x="have_x=yes \
bec39cab 22460 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
22461fi
22462fi
bec39cab 22463
c906108c
SS
22464 fi
22465 eval "$ac_cv_have_x"
22466fi # $with_x != no
22467
22468if test "$have_x" != yes; then
b4e70030
JB
22469 echo "$as_me:$LINENO: result: $have_x" >&5
22470echo "${ECHO_T}$have_x" >&6
c906108c
SS
22471 no_x=yes
22472else
22473 # If each of the values was on the command line, it overrides each guess.
22474 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22475 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22476 # Update the cache value to reflect the command line values.
22477 ac_cv_have_x="have_x=yes \
22478 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
22479 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22480echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
22481fi
22482
22483
9cc52bde
MK
22484# Check whether we should enable the TUI, but only do so if we really
22485# can.
22486if test x"$enable_tui" = xyes; then
22487 if test -d $srcdir/tui; then
22488 if test "$ac_cv_search_waddstr" != no; then
22489 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22490 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22491 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22492 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
22493 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22494 CONFIG_ALL="${CONFIG_ALL} all-tui"
22495 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
22496 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
22497 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
22498 else
bec39cab
AC
22499 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
22500echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
22501 fi
22502 fi
22503fi
22504
bec39cab
AC
22505# Unlike the sim directory, whether a simulator is linked is controlled by
22506# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
22507# This code just checks for a few cases where we'd like to ignore those
22508# definitions, even when they're present in the '.mt' file. These cases
22509# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 22510# not part of the source tree.
7a292a7a 22511#
b4e70030 22512# Check whether --enable-sim or --disable-sim was given.
7a292a7a 22513if test "${enable_sim+set}" = set; then
b4e70030
JB
22514 enableval="$enable_sim"
22515 echo "enable_sim = $enable_sim";
7a292a7a
SS
22516 echo "enableval = ${enableval}";
22517 case "${enableval}" in
22518 yes) ignore_sim=false ;;
22519 no) ignore_sim=true ;;
22520 *) ignore_sim=false ;;
22521 esac
22522else
22523 ignore_sim=false
b4e70030 22524fi;
7a292a7a
SS
22525
22526if test ! -d "${srcdir}/../sim"; then
22527 ignore_sim=true
22528fi
22529
22530if test "${ignore_sim}" = "true"; then
22531 IGNORE_SIM="SIM="
22532 IGNORE_SIM_OBS="SIM_OBS="
22533else
22534 IGNORE_SIM=""
22535 IGNORE_SIM_OBS=""
60ca704f
SE
22536
22537cat >>confdefs.h <<\_ACEOF
7a292a7a 22538#define WITH_SIM 1
bec39cab 22539_ACEOF
7a292a7a
SS
22540
22541fi
22542
22543
22544
c906108c
SS
22545
22546
22547
22548
22549
22550
dfcd3bfb 22551
e56ac5c3
AC
22552
22553
b3a90332
AC
22554
22555
c35f4ffc 22556# List of host floatformats.
bec39cab
AC
22557
22558cat >>confdefs.h <<_ACEOF
c35f4ffc 22559#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 22560_ACEOF
c35f4ffc 22561
bec39cab
AC
22562
22563cat >>confdefs.h <<_ACEOF
c35f4ffc 22564#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
22565_ACEOF
22566
c35f4ffc 22567
bec39cab 22568cat >>confdefs.h <<_ACEOF
c35f4ffc 22569#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 22570_ACEOF
c35f4ffc
AC
22571
22572
c906108c
SS
22573# target_subdir is used by the testsuite to find the target libraries.
22574target_subdir=
22575if test "${host}" != "${target}"; then
22576 target_subdir="${target_alias}/"
22577fi
22578
22579
22580frags=
771b4502 22581if test "${gdb_native}" = "yes"; then
0dad8a66
MK
22582 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
22583 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
22584 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
22585echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
22586 { (exit 1); exit 1; }; }
0dad8a66
MK
22587 fi
22588 frags="$frags $host_makefile_frag"
22589else
22590 host_makefile_frag=/dev/null
c906108c 22591fi
c906108c
SS
22592
22593target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
22594if test ! -f ${target_makefile_frag}; then
bec39cab
AC
22595 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
22596echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
22597 { (exit 1); exit 1; }; }
c906108c
SS
22598fi
22599frags="$frags $target_makefile_frag"
22600
22601
22602
22603
22604
22605hostfile=`sed -n '
22606s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22607' ${host_makefile_frag}`
22608
22609targetfile=`sed -n '
2c0fc042 22610s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
22611' ${target_makefile_frag}`
22612
771b4502 22613if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
22614# We pick this up from the host configuration file (.mh) because we
22615# do not have a native configuration Makefile fragment.
c906108c
SS
22616nativefile=`sed -n '
22617s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22618' ${host_makefile_frag}`
c906108c
SS
22619fi
22620
22621
b00a8037 22622if test x"${gdb_osabi}" != x ; then
bec39cab
AC
22623
22624cat >>confdefs.h <<_ACEOF
b00a8037 22625#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 22626_ACEOF
b00a8037
DJ
22627
22628fi
22629
8dcde887 22630# Enable multi-ice-gdb-server.
b4e70030 22631# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 22632if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
22633 enableval="$enable_multi_ice"
22634 case $enableval in
8dcde887
MK
22635 yes | no)
22636 ;;
bec39cab
AC
22637 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
22638echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
22639 { (exit 1); exit 1; }; } ;;
8dcde887 22640 esac
b4e70030 22641fi;
4e8d927d 22642if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
22643
22644
22645subdirs="$subdirs multi-ice"
3ace7edb 22646
a85f51e7
DJ
22647fi
22648
a13e2c95
UW
22649# We only build gdbserver automatically in a native configuration.
22650if test "$gdb_native" = "yes"; then
b4e70030
JB
22651 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
22652echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 22653 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
22654 echo "$as_me:$LINENO: result: yes" >&5
22655echo "${ECHO_T}yes" >&6
22656
22657
22658subdirs="$subdirs gdbserver"
3ace7edb 22659
8dcde887 22660 else
b4e70030
JB
22661 echo "$as_me:$LINENO: result: no" >&5
22662echo "${ECHO_T}no" >&6
8dcde887
MK
22663 fi
22664fi
22665
2c0fc042
AC
22666# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
22667# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
22668# to an empty version.
c906108c
SS
22669
22670files=
22671links=
5a2402b8 22672
c906108c 22673rm -f xm.h
5a2402b8 22674xm_h=""
c906108c 22675if test "${hostfile}" != ""; then
5a2402b8 22676 xm_h=xm.h
0f475e27
AC
22677 case "${hostfile}" in
22678 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
22679 * ) GDB_XM_FILE="${hostfile}"
22680 esac
5a2402b8
AC
22681 files="${files} ${GDB_XM_FILE}"
22682 links="${links} xm.h"
60ca704f
SE
22683
22684cat >>confdefs.h <<_ACEOF
b78960be 22685#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 22686_ACEOF
5a2402b8 22687
c906108c 22688fi
5a2402b8
AC
22689
22690
c906108c 22691rm -f tm.h
5a2402b8 22692tm_h=""
c906108c 22693if test "${targetfile}" != ""; then
5a2402b8 22694 tm_h=tm.h
0f475e27 22695 case "${targetfile}" in
b8c4aece 22696 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
22697 * ) GDB_TM_FILE="${targetfile}"
22698 esac
5a2402b8
AC
22699 files="${files} ${GDB_TM_FILE}"
22700 links="${links} tm.h"
60ca704f
SE
22701
22702cat >>confdefs.h <<_ACEOF
b78960be 22703#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 22704_ACEOF
5a2402b8 22705
c906108c 22706fi
5a2402b8
AC
22707
22708
c906108c 22709rm -f nm.h
5a2402b8 22710nm_h=""
c906108c 22711if test "${nativefile}" != ""; then
5a2402b8 22712 nm_h=nm.h
0f475e27
AC
22713 case "${nativefile}" in
22714 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
22715 * ) GDB_NM_FILE="${nativefile}"
22716 esac
5a2402b8
AC
22717 files="${files} ${GDB_NM_FILE}"
22718 links="${links} nm.h"
60ca704f
SE
22719
22720cat >>confdefs.h <<_ACEOF
b78960be 22721#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 22722_ACEOF
5a2402b8 22723
c906108c 22724fi
5a2402b8
AC
22725
22726
bec39cab
AC
22727ac_sources="$files"
22728ac_dests="$links"
22729while test -n "$ac_sources"; do
22730 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22731 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22732 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22733done
b4e70030 22734 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
22735
22736
c906108c
SS
22737
22738
c906108c 22739
c906108c 22740
bec39cab
AC
22741cat >>confdefs.h <<\_ACEOF
22742#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
22743_ACEOF
c906108c 22744
234b45d4 22745
234b45d4
KB
22746
22747
22748
b4e70030 22749# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 22750if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
22751 withval="$with_libiconv_prefix"
22752
234b45d4
KB
22753 for dir in `echo "$withval" | tr : ' '`; do
22754 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
22755 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
22756 done
234b45d4 22757
b4e70030 22758fi;
234b45d4 22759
b4e70030
JB
22760 echo "$as_me:$LINENO: checking for iconv" >&5
22761echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
22762if test "${am_cv_func_iconv+set}" = set; then
22763 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 22764else
bec39cab 22765
234b45d4
KB
22766 am_cv_func_iconv="no, consider installing GNU libiconv"
22767 am_cv_lib_iconv=no
bec39cab
AC
22768 cat >conftest.$ac_ext <<_ACEOF
22769/* confdefs.h. */
22770_ACEOF
22771cat confdefs.h >>conftest.$ac_ext
22772cat >>conftest.$ac_ext <<_ACEOF
22773/* end confdefs.h. */
234b45d4
KB
22774#include <stdlib.h>
22775#include <iconv.h>
bec39cab
AC
22776int
22777main ()
22778{
234b45d4
KB
22779iconv_t cd = iconv_open("","");
22780 iconv(cd,NULL,NULL,NULL,NULL);
22781 iconv_close(cd);
bec39cab
AC
22782 ;
22783 return 0;
22784}
22785_ACEOF
22786rm -f conftest.$ac_objext conftest$ac_exeext
22787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22788 (eval $ac_link) 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } &&
b4e70030
JB
22795 { ac_try='test -z "$ac_c_werror_flag"
22796 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
22802 { ac_try='test -s conftest$ac_exeext'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
234b45d4
KB
22808 am_cv_func_iconv=yes
22809else
bec39cab
AC
22810 echo "$as_me: failed program was:" >&5
22811sed 's/^/| /' conftest.$ac_ext >&5
22812
234b45d4 22813fi
bec39cab
AC
22814rm -f conftest.err conftest.$ac_objext \
22815 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
22816 if test "$am_cv_func_iconv" != yes; then
22817 am_save_LIBS="$LIBS"
22818 LIBS="$LIBS -liconv"
bec39cab
AC
22819 cat >conftest.$ac_ext <<_ACEOF
22820/* confdefs.h. */
22821_ACEOF
22822cat confdefs.h >>conftest.$ac_ext
22823cat >>conftest.$ac_ext <<_ACEOF
22824/* end confdefs.h. */
234b45d4
KB
22825#include <stdlib.h>
22826#include <iconv.h>
bec39cab
AC
22827int
22828main ()
22829{
234b45d4
KB
22830iconv_t cd = iconv_open("","");
22831 iconv(cd,NULL,NULL,NULL,NULL);
22832 iconv_close(cd);
bec39cab
AC
22833 ;
22834 return 0;
22835}
22836_ACEOF
22837rm -f conftest.$ac_objext conftest$ac_exeext
22838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22839 (eval $ac_link) 2>conftest.er1
22840 ac_status=$?
22841 grep -v '^ *+' conftest.er1 >conftest.err
22842 rm -f conftest.er1
22843 cat conftest.err >&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } &&
b4e70030
JB
22846 { ac_try='test -z "$ac_c_werror_flag"
22847 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
22853 { ac_try='test -s conftest$ac_exeext'
22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855 (eval $ac_try) 2>&5
22856 ac_status=$?
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
234b45d4
KB
22859 am_cv_lib_iconv=yes
22860 am_cv_func_iconv=yes
22861else
bec39cab
AC
22862 echo "$as_me: failed program was:" >&5
22863sed 's/^/| /' conftest.$ac_ext >&5
22864
234b45d4 22865fi
bec39cab
AC
22866rm -f conftest.err conftest.$ac_objext \
22867 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
22868 LIBS="$am_save_LIBS"
22869 fi
bec39cab
AC
22870
22871fi
b4e70030
JB
22872echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22873echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
22874 if test "$am_cv_func_iconv" = yes; then
22875
22876cat >>confdefs.h <<\_ACEOF
22877#define HAVE_ICONV 1
22878_ACEOF
22879
b4e70030
JB
22880 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22881echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
22882 if test "${am_cv_proto_iconv+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22884else
22885
22886 cat >conftest.$ac_ext <<_ACEOF
22887/* confdefs.h. */
22888_ACEOF
22889cat confdefs.h >>conftest.$ac_ext
22890cat >>conftest.$ac_ext <<_ACEOF
22891/* end confdefs.h. */
22892
22893#include <stdlib.h>
22894#include <iconv.h>
22895extern
22896#ifdef __cplusplus
22897"C"
22898#endif
22899#if defined(__STDC__) || defined(__cplusplus)
22900size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22901#else
22902size_t iconv();
22903#endif
22904
22905int
22906main ()
22907{
22908
22909 ;
22910 return 0;
22911}
22912_ACEOF
22913rm -f conftest.$ac_objext
22914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22915 (eval $ac_compile) 2>conftest.er1
22916 ac_status=$?
22917 grep -v '^ *+' conftest.er1 >conftest.err
22918 rm -f conftest.er1
22919 cat conftest.err >&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } &&
b4e70030
JB
22922 { ac_try='test -z "$ac_c_werror_flag"
22923 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
22929 { ac_try='test -s conftest.$ac_objext'
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935 am_cv_proto_iconv_arg1=""
22936else
22937 echo "$as_me: failed program was:" >&5
22938sed 's/^/| /' conftest.$ac_ext >&5
22939
b4e70030 22940am_cv_proto_iconv_arg1="const"
bec39cab
AC
22941fi
22942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22943 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);"
22944fi
22945
22946 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 22947 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
22948 }$am_cv_proto_iconv" >&5
22949echo "${ECHO_T}${ac_t:-
b4e70030 22950 }$am_cv_proto_iconv" >&6
bec39cab
AC
22951
22952cat >>confdefs.h <<_ACEOF
22953#define ICONV_CONST $am_cv_proto_iconv_arg1
22954_ACEOF
22955
22956 fi
22957 LIBICONV=
22958 if test "$am_cv_lib_iconv" = yes; then
22959 LIBICONV="-liconv"
22960 fi
22961
22962
22963
b4e70030
JB
22964 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
22965 ac_config_commands="$ac_config_commands default"
bec39cab
AC
22966cat >confcache <<\_ACEOF
22967# This file is a shell script that caches the results of configure
22968# tests run on this system so they can be shared between configure
22969# scripts and configure runs, see configure's option --config-cache.
22970# It is not useful on other systems. If it contains results you don't
22971# want to keep, you may remove or edit it.
22972#
22973# config.status only pays attention to the cache file if you give it
22974# the --recheck option to rerun configure.
22975#
22976# `ac_cv_env_foo' variables (set or unset) will be overridden when
22977# loading this file, other *unset* `ac_cv_foo' will be assigned the
22978# following values.
22979
22980_ACEOF
22981
22982# The following way of writing the cache mishandles newlines in values,
22983# but we know of no workaround that is simple, portable, and efficient.
b4e70030 22984# So, don't put newlines in cache variables' values.
bec39cab
AC
22985# Ultrix sh set writes to stderr and can't be redirected directly,
22986# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 22987{
bec39cab 22988 (set) 2>&1 |
b4e70030
JB
22989 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22990 *ac_space=\ *)
bec39cab
AC
22991 # `set' does not quote correctly, so add quotes (double-quote
22992 # substitution turns \\\\ into \\, and sed turns \\ into \).
22993 sed -n \
22994 "s/'/'\\\\''/g;
22995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 22996 ;;
bec39cab
AC
22997 *)
22998 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
22999 sed -n \
23000 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 23001 ;;
b4e70030
JB
23002 esac;
23003} |
bec39cab
AC
23004 sed '
23005 t clear
b4e70030 23006 : clear
bec39cab
AC
23007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23008 t end
b4e70030
JB
23009 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23010 : end' >>confcache
bec39cab
AC
23011if diff $cache_file confcache >/dev/null 2>&1; then :; else
23012 if test -w $cache_file; then
b4e70030 23013 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
23014 cat confcache >$cache_file
23015 else
b4e70030 23016 echo "not updating unwritable cache $cache_file"
bec39cab
AC
23017 fi
23018fi
23019rm -f confcache
23020
23021test "x$prefix" = xNONE && prefix=$ac_default_prefix
23022# Let make expand exec_prefix.
23023test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23024
b4e70030
JB
23025# VPATH may cause trouble with some makes, so we remove $(srcdir),
23026# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23027# trailing colons and then remove the whole line if VPATH becomes empty
23028# (actually we leave an empty line to preserve line numbers).
23029if test "x$srcdir" = x.; then
23030 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23031s/:*\$(srcdir):*/:/;
23032s/:*\${srcdir}:*/:/;
23033s/:*@srcdir@:*/:/;
23034s/^\([^=]*=[ ]*\):*/\1/;
23035s/:*$//;
23036s/^[^=]*=[ ]*$//;
23037}'
23038fi
23039
bec39cab
AC
23040DEFS=-DHAVE_CONFIG_H
23041
23042ac_libobjs=
23043ac_ltlibobjs=
23044for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23045 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
23046 ac_i=`echo "$ac_i" |
23047 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23048 # 2. Add them.
23049 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23050 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
23051done
23052LIBOBJS=$ac_libobjs
23053
23054LTLIBOBJS=$ac_ltlibobjs
23055
23056
85981d60
AC
23057if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23058 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23059Usually this means the macro was only invoked conditionally." >&5
23060echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23061Usually this means the macro was only invoked conditionally." >&2;}
23062 { (exit 1); exit 1; }; }
23063fi
bec39cab
AC
23064
23065: ${CONFIG_STATUS=./config.status}
23066ac_clean_files_save=$ac_clean_files
23067ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23068{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23069echo "$as_me: creating $CONFIG_STATUS" >&6;}
23070cat >$CONFIG_STATUS <<_ACEOF
23071#! $SHELL
23072# Generated by $as_me.
23073# Run this file to recreate the current configuration.
23074# Compiler output produced by configure, useful for debugging
23075# configure, is in config.log if it exists.
23076
23077debug=false
23078ac_cs_recheck=false
23079ac_cs_silent=false
23080SHELL=\${CONFIG_SHELL-$SHELL}
23081_ACEOF
23082
23083cat >>$CONFIG_STATUS <<\_ACEOF
23084## --------------------- ##
23085## M4sh Initialization. ##
23086## --------------------- ##
23087
23088# Be Bourne compatible
23089if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23090 emulate sh
23091 NULLCMD=:
23092 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23093 # is contrary to our usage. Disable this feature.
23094 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
23095elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23096 set -o posix
bec39cab
AC
23097fi
23098DUALCASE=1; export DUALCASE # for MKS sh
23099
23100# Support unset when possible.
23101if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23102 as_unset=unset
23103else
23104 as_unset=false
23105fi
23106
23107
23108# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 23109$as_unset ENV MAIL MAILPATH
bec39cab
AC
23110PS1='$ '
23111PS2='> '
23112PS4='+ '
23113
23114# NLS nuisances.
23115for as_var in \
23116 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23117 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23118 LC_TELEPHONE LC_TIME
23119do
23120 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23121 eval $as_var=C; export $as_var
23122 else
b4e70030 23123 $as_unset $as_var
bec39cab
AC
23124 fi
23125done
23126
23127# Required to use basename.
b4e70030 23128if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23129 as_expr=expr
23130else
23131 as_expr=false
23132fi
23133
b4e70030 23134if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
23135 as_basename=basename
23136else
23137 as_basename=false
23138fi
23139
23140
23141# Name of the executable.
b4e70030 23142as_me=`$as_basename "$0" ||
bec39cab
AC
23143$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23144 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
23145 X"$0" : 'X\(/\)$' \| \
23146 . : '\(.\)' 2>/dev/null ||
bec39cab 23147echo X/"$0" |
b4e70030
JB
23148 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23149 /^X\/\(\/\/\)$/{ s//\1/; q; }
23150 /^X\/\(\/\).*/{ s//\1/; q; }
23151 s/.*/./; q'`
bec39cab 23152
b4e70030
JB
23153
23154# PATH needs CR, and LINENO needs CR and PATH.
23155# Avoid depending upon Character Ranges.
23156as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23157as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23158as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23159as_cr_digits='0123456789'
23160as_cr_alnum=$as_cr_Letters$as_cr_digits
23161
23162# The user is always right.
23163if test "${PATH_SEPARATOR+set}" != set; then
23164 echo "#! /bin/sh" >conf$$.sh
23165 echo "exit 0" >>conf$$.sh
23166 chmod +x conf$$.sh
23167 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23168 PATH_SEPARATOR=';'
23169 else
23170 PATH_SEPARATOR=:
23171 fi
23172 rm -f conf$$.sh
23173fi
bec39cab
AC
23174
23175
b4e70030
JB
23176 as_lineno_1=$LINENO
23177 as_lineno_2=$LINENO
23178 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23179 test "x$as_lineno_1" != "x$as_lineno_2" &&
23180 test "x$as_lineno_3" = "x$as_lineno_2" || {
23181 # Find who we are. Look in the path if we contain no path at all
23182 # relative or not.
23183 case $0 in
23184 *[\\/]* ) as_myself=$0 ;;
23185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23186for as_dir in $PATH
23187do
23188 IFS=$as_save_IFS
23189 test -z "$as_dir" && as_dir=.
23190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23191done
bec39cab 23192
b4e70030
JB
23193 ;;
23194 esac
23195 # We did not find ourselves, most probably we were run as `sh COMMAND'
23196 # in which case we are not to be found in the path.
23197 if test "x$as_myself" = x; then
23198 as_myself=$0
23199 fi
23200 if test ! -f "$as_myself"; then
23201 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23202echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23203 { (exit 1); exit 1; }; }
23204 fi
23205 case $CONFIG_SHELL in
23206 '')
23207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23208for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23209do
23210 IFS=$as_save_IFS
23211 test -z "$as_dir" && as_dir=.
23212 for as_base in sh bash ksh sh5; do
23213 case $as_dir in
23214 /*)
23215 if ("$as_dir/$as_base" -c '
bec39cab
AC
23216 as_lineno_1=$LINENO
23217 as_lineno_2=$LINENO
b4e70030 23218 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 23219 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
23220 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23221 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23222 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23223 CONFIG_SHELL=$as_dir/$as_base
23224 export CONFIG_SHELL
23225 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23226 fi;;
23227 esac
23228 done
23229done
23230;;
23231 esac
bec39cab
AC
23232
23233 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23234 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
23235 # line-number line before each line; the second 'sed' does the real
23236 # work. The second script uses 'N' to pair each line-number line
23237 # with the numbered line, and appends trailing '-' during
23238 # substitution so that $LINENO is not a special case at line end.
bec39cab 23239 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
23240 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23241 sed '=' <$as_myself |
bec39cab
AC
23242 sed '
23243 N
b4e70030
JB
23244 s,$,-,
23245 : loop
23246 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 23247 t loop
b4e70030
JB
23248 s,-$,,
23249 s,^['$as_cr_digits']*\n,,
bec39cab 23250 ' >$as_me.lineno &&
b4e70030
JB
23251 chmod +x $as_me.lineno ||
23252 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23253echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
23254 { (exit 1); exit 1; }; }
23255
23256 # Don't try to exec as it changes $[0], causing all sort of problems
23257 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
23258 # original and so on. Autoconf is especially sensible to this).
23259 . ./$as_me.lineno
bec39cab
AC
23260 # Exit status is that of the last command.
23261 exit
23262}
23263
23264
b4e70030
JB
23265case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23266 *c*,-n*) ECHO_N= ECHO_C='
23267' ECHO_T=' ' ;;
23268 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23269 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
23270esac
23271
b4e70030 23272if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23273 as_expr=expr
23274else
23275 as_expr=false
23276fi
23277
23278rm -f conf$$ conf$$.exe conf$$.file
23279echo >conf$$.file
23280if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
23281 # We could just check for DJGPP; but this test a) works b) is more generic
23282 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23283 if test -f conf$$.exe; then
23284 # Don't use ln at all; we don't have any links
bec39cab 23285 as_ln_s='cp -p'
b4e70030
JB
23286 else
23287 as_ln_s='ln -s'
23288 fi
bec39cab
AC
23289elif ln conf$$.file conf$$ 2>/dev/null; then
23290 as_ln_s=ln
23291else
23292 as_ln_s='cp -p'
23293fi
b4e70030 23294rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
23295
23296if mkdir -p . 2>/dev/null; then
23297 as_mkdir_p=:
23298else
23299 test -d ./-p && rmdir ./-p
23300 as_mkdir_p=false
23301fi
23302
b4e70030 23303as_executable_p="test -f"
bec39cab
AC
23304
23305# Sed expression to map a string onto a valid CPP name.
23306as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23307
23308# Sed expression to map a string onto a valid variable name.
23309as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23310
23311
b4e70030
JB
23312# IFS
23313# We need space, tab and new line, in precisely that order.
23314as_nl='
23315'
23316IFS=" $as_nl"
23317
23318# CDPATH.
23319$as_unset CDPATH
23320
bec39cab
AC
23321exec 6>&1
23322
b4e70030 23323# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 23324# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
23325# values after options handling. Logging --version etc. is OK.
23326exec 5>>config.log
23327{
23328 echo
23329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23330## Running $as_me. ##
23331_ASBOX
23332} >&5
23333cat >&5 <<_CSEOF
23334
bec39cab 23335This file was extended by $as_me, which was
b4e70030 23336generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
23337
23338 CONFIG_FILES = $CONFIG_FILES
23339 CONFIG_HEADERS = $CONFIG_HEADERS
23340 CONFIG_LINKS = $CONFIG_LINKS
23341 CONFIG_COMMANDS = $CONFIG_COMMANDS
23342 $ $0 $@
23343
b4e70030
JB
23344_CSEOF
23345echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23346echo >&5
bec39cab
AC
23347_ACEOF
23348
23349# Files that config.status was made for.
b4e70030
JB
23350if test -n "$ac_config_files"; then
23351 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23352fi
234b45d4 23353
b4e70030
JB
23354if test -n "$ac_config_headers"; then
23355 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23356fi
23357
23358if test -n "$ac_config_links"; then
23359 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23360fi
23361
23362if test -n "$ac_config_commands"; then
23363 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23364fi
234b45d4 23365
bec39cab 23366cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 23367
bec39cab
AC
23368ac_cs_usage="\
23369\`$as_me' instantiates files from templates according to the
23370current configuration.
234b45d4 23371
bec39cab 23372Usage: $0 [OPTIONS] [FILE]...
234b45d4 23373
bec39cab
AC
23374 -h, --help print this help, then exit
23375 -V, --version print version number, then exit
23376 -q, --quiet do not print progress messages
23377 -d, --debug don't remove temporary files
23378 --recheck update $as_me by reconfiguring in the same conditions
23379 --file=FILE[:TEMPLATE]
23380 instantiate the configuration file FILE
23381 --header=FILE[:TEMPLATE]
23382 instantiate the configuration header FILE
234b45d4 23383
bec39cab
AC
23384Configuration files:
23385$config_files
234b45d4 23386
bec39cab
AC
23387Configuration headers:
23388$config_headers
234b45d4 23389
bec39cab
AC
23390Configuration links:
23391$config_links
234b45d4 23392
bec39cab
AC
23393Configuration commands:
23394$config_commands
23395
23396Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 23397_ACEOF
b4e70030 23398
bec39cab
AC
23399cat >>$CONFIG_STATUS <<_ACEOF
23400ac_cs_version="\\
23401config.status
b4e70030 23402configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
23403 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23404
b4e70030 23405Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
23406This config.status script is free software; the Free Software Foundation
23407gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
23408srcdir=$srcdir
23409INSTALL="$INSTALL"
bec39cab
AC
23410_ACEOF
23411
23412cat >>$CONFIG_STATUS <<\_ACEOF
23413# If no file are specified by the user, then we need to provide default
23414# value. By we need to know if files were specified by the user.
23415ac_need_defaults=:
23416while test $# != 0
23417do
23418 case $1 in
23419 --*=*)
b4e70030
JB
23420 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23421 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 23422 ac_shift=:
c906108c 23423 ;;
b4e70030 23424 -*)
bec39cab
AC
23425 ac_option=$1
23426 ac_optarg=$2
23427 ac_shift=shift
c906108c 23428 ;;
b4e70030
JB
23429 *) # This is not an option, so the user has probably given explicit
23430 # arguments.
23431 ac_option=$1
23432 ac_need_defaults=false;;
bec39cab 23433 esac
c906108c 23434
bec39cab
AC
23435 case $ac_option in
23436 # Handling of the options.
b4e70030
JB
23437_ACEOF
23438cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
23439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23440 ac_cs_recheck=: ;;
b4e70030
JB
23441 --version | --vers* | -V )
23442 echo "$ac_cs_version"; exit 0 ;;
23443 --he | --h)
23444 # Conflict between --help and --header
23445 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23446Try \`$0 --help' for more information." >&5
23447echo "$as_me: error: ambiguous option: $1
23448Try \`$0 --help' for more information." >&2;}
23449 { (exit 1); exit 1; }; };;
23450 --help | --hel | -h )
23451 echo "$ac_cs_usage"; exit 0 ;;
23452 --debug | --d* | -d )
bec39cab
AC
23453 debug=: ;;
23454 --file | --fil | --fi | --f )
23455 $ac_shift
23456 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23457 ac_need_defaults=false;;
23458 --header | --heade | --head | --hea )
23459 $ac_shift
23460 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23461 ac_need_defaults=false;;
23462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23464 ac_cs_silent=: ;;
c906108c 23465
bec39cab 23466 # This is an error.
b4e70030
JB
23467 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23468Try \`$0 --help' for more information." >&5
23469echo "$as_me: error: unrecognized option: $1
23470Try \`$0 --help' for more information." >&2;}
bec39cab 23471 { (exit 1); exit 1; }; } ;;
c906108c 23472
b4e70030 23473 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 23474
bec39cab
AC
23475 esac
23476 shift
23477done
c906108c 23478
bec39cab 23479ac_configure_extra_args=
c906108c 23480
bec39cab
AC
23481if $ac_cs_silent; then
23482 exec 6>/dev/null
23483 ac_configure_extra_args="$ac_configure_extra_args --silent"
23484fi
c906108c 23485
bec39cab
AC
23486_ACEOF
23487cat >>$CONFIG_STATUS <<_ACEOF
23488if \$ac_cs_recheck; then
b4e70030
JB
23489 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23490 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
23491fi
23492
23493_ACEOF
23494
23495cat >>$CONFIG_STATUS <<_ACEOF
c906108c 23496#
b4e70030 23497# INIT-COMMANDS section.
c906108c 23498#
c906108c 23499
b4e70030 23500
4e8d927d
DJ
23501GCC="$GCC"
23502CC="$CC"
23503acx_cv_header_stdint="$acx_cv_header_stdint"
23504acx_cv_type_int8_t="$acx_cv_type_int8_t"
23505acx_cv_type_int16_t="$acx_cv_type_int16_t"
23506acx_cv_type_int32_t="$acx_cv_type_int32_t"
23507acx_cv_type_int64_t="$acx_cv_type_int64_t"
23508acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23509ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23510ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23511ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23512ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23513ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23514ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23515ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23516ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23517
bec39cab
AC
23518
23519gdb_host_cpu=$gdb_host_cpu
23520gdb_target_cpu=$gdb_target_cpu
23521nativefile=$nativefile
23522
23523
23524_ACEOF
23525
4e8d927d 23526
b4e70030
JB
23527
23528cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 23529for ac_config_target in $ac_config_targets
c906108c 23530do
b4e70030
JB
23531 case "$ac_config_target" in
23532 # Handling of arguments.
23533 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23534 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
23535 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
23536 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
23537 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23538 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
23539 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23540echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23541 { (exit 1); exit 1; }; };;
c906108c
SS
23542 esac
23543done
23544
bec39cab
AC
23545# If the user did not use the arguments to specify the items to instantiate,
23546# then the envvar interface is used. Set only those that are not.
23547# We use the long form for the default assignment because of an extremely
23548# bizarre bug on SunOS 4.1.3.
23549if $ac_need_defaults; then
23550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23551 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23552 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23554fi
23555
b4e70030
JB
23556# Have a temporary directory for convenience. Make it in the build tree
23557# simply because there is no reason to put it here, and in addition,
23558# creating and moving files from /tmp can sometimes cause problems.
23559# Create a temporary directory, and hook for its removal unless debugging.
23560$debug ||
23561{
23562 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23563 trap '{ (exit 1); exit 1; }' 1 2 13 15
23564}
4e8d927d 23565
b4e70030 23566# Create a (secure) tmp directory for tmp files.
4e8d927d 23567
b4e70030
JB
23568{
23569 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23570 test -n "$tmp" && test -d "$tmp"
23571} ||
23572{
23573 tmp=./confstat$$-$RANDOM
23574 (umask 077 && mkdir $tmp)
23575} ||
23576{
23577 echo "$me: cannot create a temporary directory in ." >&2
23578 { (exit 1); exit 1; }
23579}
4e8d927d 23580
b4e70030 23581_ACEOF
4e8d927d 23582
b4e70030 23583cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 23584
b4e70030
JB
23585#
23586# CONFIG_FILES section.
23587#
4e8d927d 23588
b4e70030
JB
23589# No need to generate the scripts if there are no CONFIG_FILES.
23590# This happens for instance when ./config.status config.h
23591if test -n "\$CONFIG_FILES"; then
23592 # Protect against being on the right side of a sed subst in config.status.
23593 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23594 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23595s,@SHELL@,$SHELL,;t t
23596s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23597s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23598s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23599s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23600s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23601s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23602s,@exec_prefix@,$exec_prefix,;t t
23603s,@prefix@,$prefix,;t t
23604s,@program_transform_name@,$program_transform_name,;t t
23605s,@bindir@,$bindir,;t t
23606s,@sbindir@,$sbindir,;t t
23607s,@libexecdir@,$libexecdir,;t t
23608s,@datadir@,$datadir,;t t
23609s,@sysconfdir@,$sysconfdir,;t t
23610s,@sharedstatedir@,$sharedstatedir,;t t
23611s,@localstatedir@,$localstatedir,;t t
23612s,@libdir@,$libdir,;t t
23613s,@includedir@,$includedir,;t t
23614s,@oldincludedir@,$oldincludedir,;t t
23615s,@infodir@,$infodir,;t t
23616s,@mandir@,$mandir,;t t
23617s,@build_alias@,$build_alias,;t t
23618s,@host_alias@,$host_alias,;t t
23619s,@target_alias@,$target_alias,;t t
23620s,@DEFS@,$DEFS,;t t
23621s,@ECHO_C@,$ECHO_C,;t t
23622s,@ECHO_N@,$ECHO_N,;t t
23623s,@ECHO_T@,$ECHO_T,;t t
23624s,@LIBS@,$LIBS,;t t
23625s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23626s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23627s,@MAINT@,$MAINT,;t t
23628s,@CC@,$CC,;t t
23629s,@CFLAGS@,$CFLAGS,;t t
23630s,@LDFLAGS@,$LDFLAGS,;t t
23631s,@CPPFLAGS@,$CPPFLAGS,;t t
23632s,@ac_ct_CC@,$ac_ct_CC,;t t
23633s,@EXEEXT@,$EXEEXT,;t t
23634s,@OBJEXT@,$OBJEXT,;t t
23635s,@CPP@,$CPP,;t t
23636s,@EGREP@,$EGREP,;t t
23637s,@build@,$build,;t t
23638s,@build_cpu@,$build_cpu,;t t
23639s,@build_vendor@,$build_vendor,;t t
23640s,@build_os@,$build_os,;t t
23641s,@host@,$host,;t t
23642s,@host_cpu@,$host_cpu,;t t
23643s,@host_vendor@,$host_vendor,;t t
23644s,@host_os@,$host_os,;t t
23645s,@target@,$target,;t t
23646s,@target_cpu@,$target_cpu,;t t
23647s,@target_vendor@,$target_vendor,;t t
23648s,@target_os@,$target_os,;t t
b4e70030 23649s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
23650s,@LIBINTL@,$LIBINTL,;t t
23651s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23652s,@INCINTL@,$INCINTL,;t t
b4e70030 23653s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
23654s,@GMSGFMT@,$GMSGFMT,;t t
23655s,@POSUB@,$POSUB,;t t
b4e70030 23656s,@CATALOGS@,$CATALOGS,;t t
b4e70030 23657s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 23658s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
23659s,@GENCAT@,$GENCAT,;t t
23660s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
23661s,@localedir@,$localedir,;t t
23662s,@PACKAGE@,$PACKAGE,;t t
23663s,@subdirs@,$subdirs,;t t
23664s,@AWK@,$AWK,;t t
23665s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23666s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23667s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23668s,@LN_S@,$LN_S,;t t
20e95c23
DJ
23669s,@RANLIB@,$RANLIB,;t t
23670s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
23671s,@YACC@,$YACC,;t t
23672s,@AR@,$AR,;t t
23673s,@ac_ct_AR@,$ac_ct_AR,;t t
23674s,@DLLTOOL@,$DLLTOOL,;t t
23675s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23676s,@WINDRES@,$WINDRES,;t t
23677s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
23678s,@MIG@,$MIG,;t t
23679s,@ac_ct_MIG@,$ac_ct_MIG,;t t
3841debe
DJ
23680s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
23681s,@LIBEXPAT@,$LIBEXPAT,;t t
23682s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 23683s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
23684s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
23685s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
23686s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
23687s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23688s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
23689s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
23690s,@WIN32LIBS@,$WIN32LIBS,;t t
23691s,@LIBGUI@,$LIBGUI,;t t
23692s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
23693s,@WIN32LDAPP@,$WIN32LDAPP,;t t
23694s,@TCL_VERSION@,$TCL_VERSION,;t t
23695s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
23696s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
23697s,@TCL_CC@,$TCL_CC,;t t
23698s,@TCL_DEFS@,$TCL_DEFS,;t t
23699s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
23700s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
23701s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23702s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
23703s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
23704s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
23705s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
23706s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
23707s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
23708s,@TCL_RANLIB@,$TCL_RANLIB,;t t
23709s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
23710s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23711s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
23712s,@TK_VERSION@,$TK_VERSION,;t t
23713s,@TK_DEFS@,$TK_DEFS,;t t
23714s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
23715s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
23716s,@TK_XLIBSW@,$TK_XLIBSW,;t t
23717s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
23718s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
23719s,@TCLHDIR@,$TCLHDIR,;t t
23720s,@TKHDIR@,$TKHDIR,;t t
23721s,@ITCLHDIR@,$ITCLHDIR,;t t
23722s,@ITKHDIR@,$ITKHDIR,;t t
23723s,@ITCL_VERSION@,$ITCL_VERSION,;t t
23724s,@ITCL_DEFS@,$ITCL_DEFS,;t t
23725s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
23726s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
23727s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
23728s,@ITK_VERSION@,$ITK_VERSION,;t t
23729s,@ITK_DEFS@,$ITK_DEFS,;t t
23730s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
23731s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
23732s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
23733s,@X_CFLAGS@,$X_CFLAGS,;t t
23734s,@X_LDFLAGS@,$X_LDFLAGS,;t t
23735s,@X_LIBS@,$X_LIBS,;t t
23736s,@TCL_DEPS@,$TCL_DEPS,;t t
23737s,@TK_DEPS@,$TK_DEPS,;t t
23738s,@ITCLLIB@,$ITCLLIB,;t t
23739s,@ITCL_DEPS@,$ITCL_DEPS,;t t
23740s,@ITKLIB@,$ITKLIB,;t t
23741s,@ITK_DEPS@,$ITK_DEPS,;t t
23742s,@GDBTKLIBS@,$GDBTKLIBS,;t t
23743s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
23744s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
23745s,@IGNORE_SIM@,$IGNORE_SIM,;t t
23746s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
23747s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
23748s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
23749s,@CONFIG_OBS@,$CONFIG_OBS,;t t
23750s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
23751s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
23752s,@CONFIG_ALL@,$CONFIG_ALL,;t t
23753s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
23754s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
23755s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
23756s,@target_subdir@,$target_subdir,;t t
23757s,@frags@,$frags,;t t
23758s,@xm_h@,$xm_h,;t t
23759s,@tm_h@,$tm_h,;t t
23760s,@nm_h@,$nm_h,;t t
23761s,@LIBICONV@,$LIBICONV,;t t
23762s,@LIBOBJS@,$LIBOBJS,;t t
23763s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23764/@host_makefile_frag@/r $host_makefile_frag
23765s,@host_makefile_frag@,,;t t
23766/@target_makefile_frag@/r $target_makefile_frag
23767s,@target_makefile_frag@,,;t t
23768CEOF
23769
23770_ACEOF
23771
23772 cat >>$CONFIG_STATUS <<\_ACEOF
23773 # Split the substitutions into bite-sized pieces for seds with
23774 # small command number limits, like on Digital OSF/1 and HP-UX.
23775 ac_max_sed_lines=48
23776 ac_sed_frag=1 # Number of current file.
23777 ac_beg=1 # First line for current file.
23778 ac_end=$ac_max_sed_lines # Line after last line for current file.
23779 ac_more_lines=:
23780 ac_sed_cmds=
23781 while $ac_more_lines; do
23782 if test $ac_beg -gt 1; then
23783 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23784 else
23785 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 23786 fi
b4e70030
JB
23787 if test ! -s $tmp/subs.frag; then
23788 ac_more_lines=false
23789 else
23790 # The purpose of the label and of the branching condition is to
23791 # speed up the sed processing (if there are no `@' at all, there
23792 # is no need to browse any of the substitutions).
23793 # These are the two extra sed commands mentioned above.
23794 (echo ':t
23795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23796 if test -z "$ac_sed_cmds"; then
23797 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23798 else
23799 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23800 fi
23801 ac_sed_frag=`expr $ac_sed_frag + 1`
23802 ac_beg=$ac_end
23803 ac_end=`expr $ac_end + $ac_max_sed_lines`
23804 fi
23805 done
23806 if test -z "$ac_sed_cmds"; then
23807 ac_sed_cmds=cat
23808 fi
23809fi # test -n "$CONFIG_FILES"
4e8d927d 23810
b4e70030
JB
23811_ACEOF
23812cat >>$CONFIG_STATUS <<\_ACEOF
23813for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23814 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23815 case $ac_file in
23816 - | *:- | *:-:* ) # input from stdin
23817 cat >$tmp/stdin
23818 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23819 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23820 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23822 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
23823 esac
23824
b4e70030
JB
23825 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23826 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
23827$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23828 X"$ac_file" : 'X\(//\)[^/]' \| \
23829 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
23830 X"$ac_file" : 'X\(/\)' \| \
23831 . : '\(.\)' 2>/dev/null ||
bec39cab 23832echo X"$ac_file" |
b4e70030
JB
23833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23834 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23835 /^X\(\/\/\)$/{ s//\1/; q; }
23836 /^X\(\/\).*/{ s//\1/; q; }
23837 s/.*/./; q'`
23838 { if $as_mkdir_p; then
23839 mkdir -p "$ac_dir"
23840 else
23841 as_dir="$ac_dir"
bec39cab 23842 as_dirs=
b4e70030
JB
23843 while test ! -d "$as_dir"; do
23844 as_dirs="$as_dir $as_dirs"
23845 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
23846$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23847 X"$as_dir" : 'X\(//\)[^/]' \| \
23848 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
23849 X"$as_dir" : 'X\(/\)' \| \
23850 . : '\(.\)' 2>/dev/null ||
bec39cab 23851echo X"$as_dir" |
b4e70030
JB
23852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23854 /^X\(\/\/\)$/{ s//\1/; q; }
23855 /^X\(\/\).*/{ s//\1/; q; }
23856 s/.*/./; q'`
bec39cab 23857 done
b4e70030
JB
23858 test ! -n "$as_dirs" || mkdir $as_dirs
23859 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23860echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 23861 { (exit 1); exit 1; }; }; }
b4e70030 23862
bec39cab
AC
23863 ac_builddir=.
23864
b4e70030 23865if test "$ac_dir" != .; then
bec39cab 23866 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
23867 # A "../" for each directory in $ac_dir_suffix.
23868 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23869else
23870 ac_dir_suffix= ac_top_builddir=
23871fi
bec39cab
AC
23872
23873case $srcdir in
b4e70030 23874 .) # No --srcdir option. We are building in place.
bec39cab 23875 ac_srcdir=.
b4e70030
JB
23876 if test -z "$ac_top_builddir"; then
23877 ac_top_srcdir=.
23878 else
23879 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23880 fi ;;
23881 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 23882 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
23883 ac_top_srcdir=$srcdir ;;
23884 *) # Relative path.
23885 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23886 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
23887esac
23888
b4e70030
JB
23889# Do not use `cd foo && pwd` to compute absolute paths, because
23890# the directories may not exist.
23891case `pwd` in
23892.) ac_abs_builddir="$ac_dir";;
23893*)
23894 case "$ac_dir" in
23895 .) ac_abs_builddir=`pwd`;;
23896 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23897 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23898 esac;;
23899esac
23900case $ac_abs_builddir in
23901.) ac_abs_top_builddir=${ac_top_builddir}.;;
23902*)
23903 case ${ac_top_builddir}. in
23904 .) ac_abs_top_builddir=$ac_abs_builddir;;
23905 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23906 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23907 esac;;
23908esac
23909case $ac_abs_builddir in
23910.) ac_abs_srcdir=$ac_srcdir;;
23911*)
23912 case $ac_srcdir in
23913 .) ac_abs_srcdir=$ac_abs_builddir;;
23914 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23915 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23916 esac;;
23917esac
23918case $ac_abs_builddir in
23919.) ac_abs_top_srcdir=$ac_top_srcdir;;
23920*)
23921 case $ac_top_srcdir in
23922 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23923 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23924 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23925 esac;;
23926esac
c906108c 23927
c906108c 23928
bec39cab
AC
23929 case $INSTALL in
23930 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 23931 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 23932 esac
121ce6e5 23933
b4e70030
JB
23934 if test x"$ac_file" != x-; then
23935 { echo "$as_me:$LINENO: creating $ac_file" >&5
23936echo "$as_me: creating $ac_file" >&6;}
23937 rm -f "$ac_file"
23938 fi
23939 # Let's still pretend it is `configure' which instantiates (i.e., don't
23940 # use $as_me), people would be surprised to read:
23941 # /* config.h. Generated by config.status. */
23942 if test x"$ac_file" = x-; then
23943 configure_input=
23944 else
23945 configure_input="$ac_file. "
23946 fi
23947 configure_input=$configure_input"Generated from `echo $ac_file_in |
23948 sed 's,.*/,,'` by configure."
23949
23950 # First look for the input files in the build tree, otherwise in the
23951 # src tree.
23952 ac_file_inputs=`IFS=:
23953 for f in $ac_file_in; do
23954 case $f in
23955 -) echo $tmp/stdin ;;
23956 [\\/$]*)
23957 # Absolute (can't be DOS-style, as IFS=:)
23958 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23959echo "$as_me: error: cannot find input file: $f" >&2;}
23960 { (exit 1); exit 1; }; }
23961 echo "$f";;
23962 *) # Relative
23963 if test -f "$f"; then
23964 # Build tree
23965 echo "$f"
23966 elif test -f "$srcdir/$f"; then
23967 # Source tree
23968 echo "$srcdir/$f"
23969 else
23970 # /dev/null tree
23971 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23972echo "$as_me: error: cannot find input file: $f" >&2;}
23973 { (exit 1); exit 1; }; }
23974 fi;;
23975 esac
23976 done` || { (exit 1); exit 1; }
4e8d927d 23977_ACEOF
bec39cab
AC
23978cat >>$CONFIG_STATUS <<_ACEOF
23979 sed "$ac_vpsub
23980$extrasub
23981_ACEOF
23982cat >>$CONFIG_STATUS <<\_ACEOF
23983:t
23984/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
23985s,@configure_input@,$configure_input,;t t
23986s,@srcdir@,$ac_srcdir,;t t
23987s,@abs_srcdir@,$ac_abs_srcdir,;t t
23988s,@top_srcdir@,$ac_top_srcdir,;t t
23989s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23990s,@builddir@,$ac_builddir,;t t
23991s,@abs_builddir@,$ac_abs_builddir,;t t
23992s,@top_builddir@,$ac_top_builddir,;t t
23993s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23994s,@INSTALL@,$ac_INSTALL,;t t
23995" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23996 rm -f $tmp/stdin
23997 if test x"$ac_file" != x-; then
23998 mv $tmp/out $ac_file
23999 else
24000 cat $tmp/out
24001 rm -f $tmp/out
24002 fi
24003
24004done
24005_ACEOF
24006cat >>$CONFIG_STATUS <<\_ACEOF
24007
24008#
24009# CONFIG_HEADER section.
24010#
24011
24012# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24013# NAME is the cpp macro being defined and VALUE is the value it is being given.
24014#
24015# ac_d sets the value in "#define NAME VALUE" lines.
24016ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24017ac_dB='[ ].*$,\1#\2'
24018ac_dC=' '
24019ac_dD=',;t'
24020# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24021ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24022ac_uB='$,\1#\2define\3'
24023ac_uC=' '
24024ac_uD=',;t'
24025
24026for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24027 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 24028 case $ac_file in
b4e70030
JB
24029 - | *:- | *:-:* ) # input from stdin
24030 cat >$tmp/stdin
24031 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24033 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24035 * ) ac_file_in=$ac_file.in ;;
c906108c 24036 esac
b4e70030
JB
24037
24038 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24039echo "$as_me: creating $ac_file" >&6;}
24040
24041 # First look for the input files in the build tree, otherwise in the
24042 # src tree.
24043 ac_file_inputs=`IFS=:
24044 for f in $ac_file_in; do
24045 case $f in
24046 -) echo $tmp/stdin ;;
24047 [\\/$]*)
24048 # Absolute (can't be DOS-style, as IFS=:)
24049 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24050echo "$as_me: error: cannot find input file: $f" >&2;}
24051 { (exit 1); exit 1; }; }
24052 # Do quote $f, to prevent DOS paths from being IFS'd.
24053 echo "$f";;
24054 *) # Relative
24055 if test -f "$f"; then
24056 # Build tree
24057 echo "$f"
24058 elif test -f "$srcdir/$f"; then
24059 # Source tree
24060 echo "$srcdir/$f"
24061 else
24062 # /dev/null tree
24063 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24064echo "$as_me: error: cannot find input file: $f" >&2;}
24065 { (exit 1); exit 1; }; }
24066 fi;;
24067 esac
24068 done` || { (exit 1); exit 1; }
24069 # Remove the trailing spaces.
24070 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24071
24072_ACEOF
24073
24074# Transform confdefs.h into two sed scripts, `conftest.defines' and
24075# `conftest.undefs', that substitutes the proper values into
24076# config.h.in to produce config.h. The first handles `#define'
24077# templates, and the second `#undef' templates.
24078# And first: Protect against being on the right side of a sed subst in
24079# config.status. Protect against being in an unquoted here document
24080# in config.status.
24081rm -f conftest.defines conftest.undefs
24082# Using a here document instead of a string reduces the quoting nightmare.
24083# Putting comments in sed scripts is not portable.
24084#
24085# `end' is used to avoid that the second main sed command (meant for
24086# 0-ary CPP macros) applies to n-ary macro definitions.
24087# See the Autoconf documentation for `clear'.
24088cat >confdef2sed.sed <<\_ACEOF
24089s/[\\&,]/\\&/g
24090s,[\\$`],\\&,g
24091t clear
24092: clear
24093s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24094t end
24095s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24096: end
24097_ACEOF
24098# If some macros were called several times there might be several times
24099# the same #defines, which is useless. Nevertheless, we may not want to
24100# sort them, since we want the *last* AC-DEFINE to be honored.
24101uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24102sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24103rm -f confdef2sed.sed
24104
24105# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
24106# example, in the case of _POSIX_SOURCE, which is predefined and required
24107# on some systems where configure will not decide to define it.
b4e70030
JB
24108cat >>conftest.undefs <<\_ACEOF
24109s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24110_ACEOF
24111
24112# Break up conftest.defines because some shells have a limit on the size
24113# of here documents, and old seds have small limits too (100 cmds).
24114echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24115echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24116echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24117echo ' :' >>$CONFIG_STATUS
24118rm -f conftest.tail
24119while grep . conftest.defines >/dev/null
bec39cab 24120do
b4e70030
JB
24121 # Write a limited-size here document to $tmp/defines.sed.
24122 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24123 # Speed up: don't consider the non `#define' lines.
24124 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24125 # Work around the forget-to-reset-the-flag bug.
24126 echo 't clr' >>$CONFIG_STATUS
24127 echo ': clr' >>$CONFIG_STATUS
24128 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 24129 echo 'CEOF
b4e70030
JB
24130 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24131 rm -f $tmp/in
24132 mv $tmp/out $tmp/in
24133' >>$CONFIG_STATUS
24134 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
24135 rm -f conftest.defines
24136 mv conftest.tail conftest.defines
24137done
b4e70030
JB
24138rm -f conftest.defines
24139echo ' fi # grep' >>$CONFIG_STATUS
24140echo >>$CONFIG_STATUS
24141
24142# Break up conftest.undefs because some shells have a limit on the size
24143# of here documents, and old seds have small limits too (100 cmds).
24144echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24145rm -f conftest.tail
24146while grep . conftest.undefs >/dev/null
24147do
24148 # Write a limited-size here document to $tmp/undefs.sed.
24149 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24150 # Speed up: don't consider the non `#undef'
24151 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24152 # Work around the forget-to-reset-the-flag bug.
24153 echo 't clr' >>$CONFIG_STATUS
24154 echo ': clr' >>$CONFIG_STATUS
24155 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24156 echo 'CEOF
24157 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24158 rm -f $tmp/in
24159 mv $tmp/out $tmp/in
24160' >>$CONFIG_STATUS
24161 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24162 rm -f conftest.undefs
24163 mv conftest.tail conftest.undefs
24164done
24165rm -f conftest.undefs
bec39cab
AC
24166
24167cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
24168 # Let's still pretend it is `configure' which instantiates (i.e., don't
24169 # use $as_me), people would be surprised to read:
24170 # /* config.h. Generated by config.status. */
24171 if test x"$ac_file" = x-; then
24172 echo "/* Generated by configure. */" >$tmp/config.h
24173 else
24174 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24175 fi
24176 cat $tmp/in >>$tmp/config.h
24177 rm -f $tmp/in
bec39cab 24178 if test x"$ac_file" != x-; then
b4e70030 24179 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
24180 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24181echo "$as_me: $ac_file is unchanged" >&6;}
24182 else
b4e70030
JB
24183 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24184$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24185 X"$ac_file" : 'X\(//\)[^/]' \| \
24186 X"$ac_file" : 'X\(//\)$' \| \
24187 X"$ac_file" : 'X\(/\)' \| \
24188 . : '\(.\)' 2>/dev/null ||
24189echo X"$ac_file" |
24190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24192 /^X\(\/\/\)$/{ s//\1/; q; }
24193 /^X\(\/\).*/{ s//\1/; q; }
24194 s/.*/./; q'`
24195 { if $as_mkdir_p; then
24196 mkdir -p "$ac_dir"
24197 else
24198 as_dir="$ac_dir"
24199 as_dirs=
24200 while test ! -d "$as_dir"; do
24201 as_dirs="$as_dir $as_dirs"
24202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24204 X"$as_dir" : 'X\(//\)[^/]' \| \
24205 X"$as_dir" : 'X\(//\)$' \| \
24206 X"$as_dir" : 'X\(/\)' \| \
24207 . : '\(.\)' 2>/dev/null ||
24208echo X"$as_dir" |
24209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24211 /^X\(\/\/\)$/{ s//\1/; q; }
24212 /^X\(\/\).*/{ s//\1/; q; }
24213 s/.*/./; q'`
24214 done
24215 test ! -n "$as_dirs" || mkdir $as_dirs
24216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24217echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24218 { (exit 1); exit 1; }; }; }
24219
bec39cab 24220 rm -f $ac_file
b4e70030 24221 mv $tmp/config.h $ac_file
bec39cab
AC
24222 fi
24223 else
b4e70030
JB
24224 cat $tmp/config.h
24225 rm -f $tmp/config.h
bec39cab 24226 fi
b4e70030
JB
24227done
24228_ACEOF
24229cat >>$CONFIG_STATUS <<\_ACEOF
24230
24231#
24232# CONFIG_LINKS section.
24233#
24234
24235for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24236 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24237 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 24238
b4e70030
JB
24239 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24240echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
24241
24242 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
24243 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24244echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24245 { (exit 1); exit 1; }; }
c906108c 24246 fi
b4e70030
JB
24247 rm -f $ac_dest
24248
24249 # Make relative symlinks.
24250 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24251$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24252 X"$ac_dest" : 'X\(//\)[^/]' \| \
24253 X"$ac_dest" : 'X\(//\)$' \| \
24254 X"$ac_dest" : 'X\(/\)' \| \
24255 . : '\(.\)' 2>/dev/null ||
24256echo X"$ac_dest" |
24257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24259 /^X\(\/\/\)$/{ s//\1/; q; }
24260 /^X\(\/\).*/{ s//\1/; q; }
24261 s/.*/./; q'`
24262 { if $as_mkdir_p; then
24263 mkdir -p "$ac_dest_dir"
24264 else
24265 as_dir="$ac_dest_dir"
24266 as_dirs=
24267 while test ! -d "$as_dir"; do
24268 as_dirs="$as_dir $as_dirs"
24269 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24270$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24271 X"$as_dir" : 'X\(//\)[^/]' \| \
24272 X"$as_dir" : 'X\(//\)$' \| \
24273 X"$as_dir" : 'X\(/\)' \| \
24274 . : '\(.\)' 2>/dev/null ||
24275echo X"$as_dir" |
24276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24278 /^X\(\/\/\)$/{ s//\1/; q; }
24279 /^X\(\/\).*/{ s//\1/; q; }
24280 s/.*/./; q'`
24281 done
24282 test ! -n "$as_dirs" || mkdir $as_dirs
24283 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24284echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24285 { (exit 1); exit 1; }; }; }
24286
24287 ac_builddir=.
24288
24289if test "$ac_dest_dir" != .; then
24290 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24291 # A "../" for each directory in $ac_dir_suffix.
24292 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24293else
24294 ac_dir_suffix= ac_top_builddir=
24295fi
24296
24297case $srcdir in
24298 .) # No --srcdir option. We are building in place.
24299 ac_srcdir=.
24300 if test -z "$ac_top_builddir"; then
24301 ac_top_srcdir=.
24302 else
24303 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24304 fi ;;
24305 [\\/]* | ?:[\\/]* ) # Absolute path.
24306 ac_srcdir=$srcdir$ac_dir_suffix;
24307 ac_top_srcdir=$srcdir ;;
24308 *) # Relative path.
24309 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24310 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24311esac
24312
24313# Do not use `cd foo && pwd` to compute absolute paths, because
24314# the directories may not exist.
24315case `pwd` in
24316.) ac_abs_builddir="$ac_dest_dir";;
24317*)
24318 case "$ac_dest_dir" in
24319 .) ac_abs_builddir=`pwd`;;
24320 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24321 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24322 esac;;
24323esac
24324case $ac_abs_builddir in
24325.) ac_abs_top_builddir=${ac_top_builddir}.;;
24326*)
24327 case ${ac_top_builddir}. in
24328 .) ac_abs_top_builddir=$ac_abs_builddir;;
24329 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24330 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24331 esac;;
24332esac
24333case $ac_abs_builddir in
24334.) ac_abs_srcdir=$ac_srcdir;;
24335*)
24336 case $ac_srcdir in
24337 .) ac_abs_srcdir=$ac_abs_builddir;;
24338 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24339 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24340 esac;;
24341esac
24342case $ac_abs_builddir in
24343.) ac_abs_top_srcdir=$ac_top_srcdir;;
24344*)
24345 case $ac_top_srcdir in
24346 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24347 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24348 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24349 esac;;
24350esac
24351
bec39cab
AC
24352
24353 case $srcdir in
24354 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 24355 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 24356 esac
b4e70030
JB
24357
24358 # Try a symlink, then a hard link, then a copy.
24359 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24360 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24361 cp -p $srcdir/$ac_source $ac_dest ||
24362 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24363echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 24364 { (exit 1); exit 1; }; }
b4e70030
JB
24365done
24366_ACEOF
24367cat >>$CONFIG_STATUS <<\_ACEOF
24368
24369#
24370# CONFIG_COMMANDS section.
24371#
24372for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24373 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24374 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24375 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24376$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24377 X"$ac_dest" : 'X\(//\)[^/]' \| \
24378 X"$ac_dest" : 'X\(//\)$' \| \
24379 X"$ac_dest" : 'X\(/\)' \| \
24380 . : '\(.\)' 2>/dev/null ||
24381echo X"$ac_dest" |
24382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24384 /^X\(\/\/\)$/{ s//\1/; q; }
24385 /^X\(\/\).*/{ s//\1/; q; }
24386 s/.*/./; q'`
24387 { if $as_mkdir_p; then
24388 mkdir -p "$ac_dir"
24389 else
24390 as_dir="$ac_dir"
24391 as_dirs=
24392 while test ! -d "$as_dir"; do
24393 as_dirs="$as_dir $as_dirs"
24394 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24395$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24396 X"$as_dir" : 'X\(//\)[^/]' \| \
24397 X"$as_dir" : 'X\(//\)$' \| \
24398 X"$as_dir" : 'X\(/\)' \| \
24399 . : '\(.\)' 2>/dev/null ||
24400echo X"$as_dir" |
24401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24403 /^X\(\/\/\)$/{ s//\1/; q; }
24404 /^X\(\/\).*/{ s//\1/; q; }
24405 s/.*/./; q'`
24406 done
24407 test ! -n "$as_dirs" || mkdir $as_dirs
24408 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24409echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24410 { (exit 1); exit 1; }; }; }
24411
24412 ac_builddir=.
24413
24414if test "$ac_dir" != .; then
24415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24416 # A "../" for each directory in $ac_dir_suffix.
24417 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24418else
24419 ac_dir_suffix= ac_top_builddir=
24420fi
24421
24422case $srcdir in
24423 .) # No --srcdir option. We are building in place.
24424 ac_srcdir=.
24425 if test -z "$ac_top_builddir"; then
24426 ac_top_srcdir=.
24427 else
24428 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24429 fi ;;
24430 [\\/]* | ?:[\\/]* ) # Absolute path.
24431 ac_srcdir=$srcdir$ac_dir_suffix;
24432 ac_top_srcdir=$srcdir ;;
24433 *) # Relative path.
24434 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24435 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24436esac
24437
24438# Do not use `cd foo && pwd` to compute absolute paths, because
24439# the directories may not exist.
24440case `pwd` in
24441.) ac_abs_builddir="$ac_dir";;
24442*)
24443 case "$ac_dir" in
24444 .) ac_abs_builddir=`pwd`;;
24445 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24446 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24447 esac;;
24448esac
24449case $ac_abs_builddir in
24450.) ac_abs_top_builddir=${ac_top_builddir}.;;
24451*)
24452 case ${ac_top_builddir}. in
24453 .) ac_abs_top_builddir=$ac_abs_builddir;;
24454 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24455 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24456 esac;;
24457esac
24458case $ac_abs_builddir in
24459.) ac_abs_srcdir=$ac_srcdir;;
24460*)
24461 case $ac_srcdir in
24462 .) ac_abs_srcdir=$ac_abs_builddir;;
24463 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24464 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24465 esac;;
24466esac
24467case $ac_abs_builddir in
24468.) ac_abs_top_srcdir=$ac_top_srcdir;;
24469*)
24470 case $ac_top_srcdir in
24471 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24472 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24473 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24474 esac;;
24475esac
bec39cab 24476
bec39cab 24477
b4e70030
JB
24478 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24479echo "$as_me: executing $ac_dest commands" >&6;}
24480 case $ac_dest in
24481 gdb_stdint.h )
4e8d927d
DJ
24482if test "$GCC" = yes; then
24483 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24484else
24485 echo "/* generated for $CC */" > tmp-stdint.h
24486fi
24487
24488sed 's/^ *//' >> tmp-stdint.h <<EOF
24489
24490 #ifndef GCC_GENERATED_STDINT_H
24491 #define GCC_GENERATED_STDINT_H 1
24492
24493 #include <sys/types.h>
24494EOF
24495
24496if test "$acx_cv_header_stdint" != stdint.h; then
24497 echo "#include <stddef.h>" >> tmp-stdint.h
24498fi
24499if test "$acx_cv_header_stdint" != stddef.h; then
24500 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24501fi
24502
24503sed 's/^ *//' >> tmp-stdint.h <<EOF
24504 /* glibc uses these symbols as guards to prevent redefinitions. */
24505 #ifdef __int8_t_defined
24506 #define _INT8_T
24507 #define _INT16_T
24508 #define _INT32_T
24509 #endif
24510 #ifdef __uint32_t_defined
24511 #define _UINT32_T
24512 #endif
24513
24514EOF
24515
24516# ----------------- done header, emit basic int types -------------
24517if test "$acx_cv_header_stdint" = stddef.h; then
24518 sed 's/^ *//' >> tmp-stdint.h <<EOF
24519
24520 #ifndef _UINT8_T
24521 #define _UINT8_T
24522 typedef unsigned $acx_cv_type_int8_t uint8_t;
24523 #endif
24524
24525 #ifndef _UINT16_T
24526 #define _UINT16_T
24527 typedef unsigned $acx_cv_type_int16_t uint16_t;
24528 #endif
24529
24530 #ifndef _UINT32_T
24531 #define _UINT32_T
24532 typedef unsigned $acx_cv_type_int32_t uint32_t;
24533 #endif
24534
24535 #ifndef _INT8_T
24536 #define _INT8_T
24537 typedef $acx_cv_type_int8_t int8_t;
24538 #endif
24539
24540 #ifndef _INT16_T
24541 #define _INT16_T
24542 typedef $acx_cv_type_int16_t int16_t;
24543 #endif
24544
24545 #ifndef _INT32_T
24546 #define _INT32_T
24547 typedef $acx_cv_type_int32_t int32_t;
24548 #endif
24549EOF
24550elif test "$ac_cv_type_u_int32_t" = yes; then
24551 sed 's/^ *//' >> tmp-stdint.h <<EOF
24552
24553 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24554 #ifndef _INT8_T
24555 #define _INT8_T
24556 #endif
24557 #ifndef _INT16_T
24558 #define _INT16_T
24559 #endif
24560 #ifndef _INT32_T
24561 #define _INT32_T
24562 #endif
24563
24564 #ifndef _UINT8_T
24565 #define _UINT8_T
24566 typedef u_int8_t uint8_t;
24567 #endif
24568
24569 #ifndef _UINT16_T
24570 #define _UINT16_T
24571 typedef u_int16_t uint16_t;
24572 #endif
24573
24574 #ifndef _UINT32_T
24575 #define _UINT32_T
24576 typedef u_int32_t uint32_t;
24577 #endif
24578EOF
24579else
24580 sed 's/^ *//' >> tmp-stdint.h <<EOF
24581
24582 /* Some systems have guard macros to prevent redefinitions, define them. */
24583 #ifndef _INT8_T
24584 #define _INT8_T
24585 #endif
24586 #ifndef _INT16_T
24587 #define _INT16_T
24588 #endif
24589 #ifndef _INT32_T
24590 #define _INT32_T
24591 #endif
24592 #ifndef _UINT8_T
24593 #define _UINT8_T
24594 #endif
24595 #ifndef _UINT16_T
24596 #define _UINT16_T
24597 #endif
24598 #ifndef _UINT32_T
24599 #define _UINT32_T
24600 #endif
24601EOF
24602fi
24603
24604# ------------- done basic int types, emit int64_t types ------------
24605if test "$ac_cv_type_uint64_t" = yes; then
24606 sed 's/^ *//' >> tmp-stdint.h <<EOF
24607
24608 /* system headers have good uint64_t and int64_t */
24609 #ifndef _INT64_T
24610 #define _INT64_T
24611 #endif
24612 #ifndef _UINT64_T
24613 #define _UINT64_T
24614 #endif
24615EOF
24616elif test "$ac_cv_type_u_int64_t" = yes; then
24617 sed 's/^ *//' >> tmp-stdint.h <<EOF
24618
24619 /* system headers have an u_int64_t (and int64_t) */
24620 #ifndef _INT64_T
24621 #define _INT64_T
24622 #endif
24623 #ifndef _UINT64_T
24624 #define _UINT64_T
24625 typedef u_int64_t uint64_t;
24626 #endif
24627EOF
24628elif test -n "$acx_cv_type_int64_t"; then
24629 sed 's/^ *//' >> tmp-stdint.h <<EOF
24630
24631 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24632 #ifndef _INT64_T
24633 #define _INT64_T
24634 typedef $acx_cv_type_int64_t int64_t;
24635 #endif
24636 #ifndef _UINT64_T
24637 #define _UINT64_T
24638 typedef unsigned $acx_cv_type_int64_t uint64_t;
24639 #endif
24640EOF
24641else
24642 sed 's/^ *//' >> tmp-stdint.h <<EOF
24643
24644 /* some common heuristics for int64_t, using compiler-specific tests */
24645 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24646 #ifndef _INT64_T
24647 #define _INT64_T
24648 typedef long long int64_t;
24649 #endif
24650 #ifndef _UINT64_T
24651 #define _UINT64_T
24652 typedef unsigned long long uint64_t;
24653 #endif
24654
24655 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24656 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24657 does not implement __extension__. But that compiler doesn't define
24658 __GNUC_MINOR__. */
24659 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24660 # define __extension__
24661 # endif
24662
24663 # ifndef _INT64_T
24664 # define _INT64_T
24665 __extension__ typedef long long int64_t;
24666 # endif
24667 # ifndef _UINT64_T
24668 # define _UINT64_T
24669 __extension__ typedef unsigned long long uint64_t;
24670 # endif
24671
24672 #elif !defined __STRICT_ANSI__
24673 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24674
24675 # ifndef _INT64_T
24676 # define _INT64_T
24677 typedef __int64 int64_t;
24678 # endif
24679 # ifndef _UINT64_T
24680 # define _UINT64_T
24681 typedef unsigned __int64 uint64_t;
24682 # endif
24683 # endif /* compiler */
24684
24685 #endif /* ANSI version */
24686EOF
24687fi
24688
24689# ------------- done int64_t types, emit intptr types ------------
24690if test "$ac_cv_type_uintptr_t" != yes; then
24691 sed 's/^ *//' >> tmp-stdint.h <<EOF
24692
24693 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24694 typedef u$acx_cv_type_intptr_t uintptr_t;
24695 typedef $acx_cv_type_intptr_t intptr_t;
24696EOF
24697fi
24698
24699# ------------- done intptr types, emit int_least types ------------
24700if test "$ac_cv_type_int_least32_t" != yes; then
24701 sed 's/^ *//' >> tmp-stdint.h <<EOF
24702
24703 /* Define int_least types */
24704 typedef int8_t int_least8_t;
24705 typedef int16_t int_least16_t;
24706 typedef int32_t int_least32_t;
24707 #ifdef _INT64_T
24708 typedef int64_t int_least64_t;
24709 #endif
24710
24711 typedef uint8_t uint_least8_t;
24712 typedef uint16_t uint_least16_t;
24713 typedef uint32_t uint_least32_t;
24714 #ifdef _UINT64_T
24715 typedef uint64_t uint_least64_t;
24716 #endif
24717EOF
24718fi
24719
24720# ------------- done intptr types, emit int_fast types ------------
24721if test "$ac_cv_type_int_fast32_t" != yes; then
24722 sed 's/^ *//' >> tmp-stdint.h <<EOF
24723
24724 /* Define int_fast types. short is often slow */
24725 typedef int8_t int_fast8_t;
24726 typedef int int_fast16_t;
24727 typedef int32_t int_fast32_t;
24728 #ifdef _INT64_T
24729 typedef int64_t int_fast64_t;
24730 #endif
24731
24732 typedef uint8_t uint_fast8_t;
24733 typedef unsigned int uint_fast16_t;
24734 typedef uint32_t uint_fast32_t;
24735 #ifdef _UINT64_T
24736 typedef uint64_t uint_fast64_t;
24737 #endif
24738EOF
24739fi
24740
24741if test "$ac_cv_type_uintmax_t" != yes; then
24742 sed 's/^ *//' >> tmp-stdint.h <<EOF
24743
24744 /* Define intmax based on what we found */
24745 #ifdef _INT64_T
24746 typedef int64_t intmax_t;
24747 #else
24748 typedef long intmax_t;
24749 #endif
24750 #ifdef _UINT64_T
24751 typedef uint64_t uintmax_t;
24752 #else
24753 typedef unsigned long uintmax_t;
24754 #endif
24755EOF
24756fi
24757
24758sed 's/^ *//' >> tmp-stdint.h <<EOF
24759
24760 #endif /* GCC_GENERATED_STDINT_H */
24761EOF
24762
24763if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
24764 rm -f tmp-stdint.h
24765else
24766 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
24767fi
24768
4e8d927d 24769 ;;
b4e70030 24770 default )
c906108c 24771
2c0fc042 24772sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
24773/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
24774/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
24775mv -f Makefile.tmp Makefile
24776
2acceee2 24777
c906108c
SS
24778case x$CONFIG_HEADERS in
24779xconfig.h:config.in)
24780echo > stamp-h ;;
24781esac
bec39cab
AC
24782 ;;
24783 esac
b4e70030
JB
24784done
24785_ACEOF
c906108c 24786
b4e70030 24787cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
24788
24789{ (exit 0); exit 0; }
24790_ACEOF
c906108c 24791chmod +x $CONFIG_STATUS
bec39cab
AC
24792ac_clean_files=$ac_clean_files_save
24793
24794
24795# configure is writing to config.log, and then calls config.status.
24796# config.status does its own redirection, appending to config.log.
24797# Unfortunately, on DOS this fails, as config.log is still kept open
24798# by configure, so config.status won't be able to write to it; its
24799# output is simply discarded. So we exec the FD to /dev/null,
24800# effectively closing config.log, so it can be properly (re)opened and
24801# appended to by config.status. When coming back to configure, we
24802# need to make the FD available again.
24803if test "$no_create" != yes; then
24804 ac_cs_success=:
24805 ac_config_status_args=
24806 test "$silent" = yes &&
24807 ac_config_status_args="$ac_config_status_args --quiet"
24808 exec 5>/dev/null
24809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24810 exec 5>>config.log
24811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24812 # would make configure fail if this is the last instruction.
24813 $ac_cs_success || { (exit 1); exit 1; }
24814fi
c906108c 24815
bec39cab
AC
24816#
24817# CONFIG_SUBDIRS section.
24818#
c906108c
SS
24819if test "$no_recursion" != yes; then
24820
24821 # Remove --cache-file and --srcdir arguments so they do not pile up.
24822 ac_sub_configure_args=
24823 ac_prev=
b4e70030 24824 for ac_arg in $ac_configure_args; do
c906108c
SS
24825 if test -n "$ac_prev"; then
24826 ac_prev=
24827 continue
24828 fi
bec39cab 24829 case $ac_arg in
c906108c
SS
24830 -cache-file | --cache-file | --cache-fil | --cache-fi \
24831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24832 ac_prev=cache_file ;;
24833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
24834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24835 | --c=*)
24836 ;;
24837 --config-cache | -C)
c906108c
SS
24838 ;;
24839 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24840 ac_prev=srcdir ;;
24841 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24842 ;;
bec39cab
AC
24843 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24844 ac_prev=prefix ;;
24845 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24846 ;;
b4e70030 24847 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
24848 esac
24849 done
24850
bec39cab
AC
24851 # Always prepend --prefix to ensure using the same prefix
24852 # in subdir configurations.
24853 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24854
b4e70030 24855 ac_popdir=`pwd`
bec39cab 24856 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
24857
24858 # Do not complain, so a configure script can configure whichever
24859 # parts of a large source tree are present.
bec39cab 24860 test -d $srcdir/$ac_dir || continue
c906108c 24861
b4e70030
JB
24862 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24863echo "$as_me: configuring in $ac_dir" >&6;}
24864 { if $as_mkdir_p; then
24865 mkdir -p "$ac_dir"
24866 else
24867 as_dir="$ac_dir"
bec39cab 24868 as_dirs=
b4e70030
JB
24869 while test ! -d "$as_dir"; do
24870 as_dirs="$as_dir $as_dirs"
24871 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
24872$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24873 X"$as_dir" : 'X\(//\)[^/]' \| \
24874 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
24875 X"$as_dir" : 'X\(/\)' \| \
24876 . : '\(.\)' 2>/dev/null ||
bec39cab 24877echo X"$as_dir" |
b4e70030
JB
24878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24880 /^X\(\/\/\)$/{ s//\1/; q; }
24881 /^X\(\/\).*/{ s//\1/; q; }
24882 s/.*/./; q'`
bec39cab 24883 done
b4e70030
JB
24884 test ! -n "$as_dirs" || mkdir $as_dirs
24885 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24886echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 24887 { (exit 1); exit 1; }; }; }
b4e70030 24888
bec39cab
AC
24889 ac_builddir=.
24890
b4e70030 24891if test "$ac_dir" != .; then
bec39cab 24892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
24893 # A "../" for each directory in $ac_dir_suffix.
24894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24895else
24896 ac_dir_suffix= ac_top_builddir=
24897fi
bec39cab
AC
24898
24899case $srcdir in
b4e70030 24900 .) # No --srcdir option. We are building in place.
bec39cab 24901 ac_srcdir=.
b4e70030
JB
24902 if test -z "$ac_top_builddir"; then
24903 ac_top_srcdir=.
24904 else
24905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24906 fi ;;
24907 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 24908 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
24909 ac_top_srcdir=$srcdir ;;
24910 *) # Relative path.
24911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24913esac
24914
24915# Do not use `cd foo && pwd` to compute absolute paths, because
24916# the directories may not exist.
24917case `pwd` in
24918.) ac_abs_builddir="$ac_dir";;
24919*)
24920 case "$ac_dir" in
24921 .) ac_abs_builddir=`pwd`;;
24922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24924 esac;;
24925esac
24926case $ac_abs_builddir in
24927.) ac_abs_top_builddir=${ac_top_builddir}.;;
24928*)
24929 case ${ac_top_builddir}. in
24930 .) ac_abs_top_builddir=$ac_abs_builddir;;
24931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24933 esac;;
24934esac
24935case $ac_abs_builddir in
24936.) ac_abs_srcdir=$ac_srcdir;;
24937*)
24938 case $ac_srcdir in
24939 .) ac_abs_srcdir=$ac_abs_builddir;;
24940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24942 esac;;
24943esac
24944case $ac_abs_builddir in
24945.) ac_abs_top_srcdir=$ac_top_srcdir;;
24946*)
24947 case $ac_top_srcdir in
24948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24951 esac;;
bec39cab 24952esac
c906108c 24953
c906108c 24954
b4e70030 24955 cd $ac_dir
c906108c
SS
24956
24957 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
24958 if test -f $ac_srcdir/configure.gnu; then
24959 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24960 elif test -f $ac_srcdir/configure; then
24961 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24962 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
24963 ac_sub_configure=$ac_configure
24964 else
bec39cab
AC
24965 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24966echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
24967 ac_sub_configure=
24968 fi
24969
24970 # The recursion is here.
24971 if test -n "$ac_sub_configure"; then
c906108c 24972 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
24973 case $cache_file in
24974 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
24975 *) # Relative path.
24976 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 24977 esac
c906108c 24978
bec39cab
AC
24979 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24980echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 24981 # The eval makes quoting arguments work.
b4e70030
JB
24982 eval $ac_sub_configure $ac_sub_configure_args \
24983 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
24984 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24985echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24986 { (exit 1); exit 1; }; }
c906108c
SS
24987 fi
24988
b4e70030 24989 cd $ac_popdir
c906108c
SS
24990 done
24991fi
24992
24993
24994exit 0
This page took 2.778078 seconds and 4 git commands to generate.