* configure.ac: Accept --with-system-readline.
[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"
6a30b0a5 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 READLINE READLINE_DEPS READLINE_CFLAGS 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
6a30b0a5 880 --with-system-readline use installed readline library
3841debe
DJ
881 --with-gnu-ld assume the C compiler uses GNU ld default=no
882 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
883 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
884 --without-included-regex don't use included regex; this is the default
885 on systems with version 2 of the GNU C library
886 (use with caution on other system)
887 --with-sysroot=DIR Search for usr/lib et al within DIR.
888 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
889 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
890 --with-tclinclude=DIR Directory where tcl private headers are
891 --with-tkinclude=DIR Directory where tk private headers are
892 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
893 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
894 --with-x use the X Window System
895 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
896
897Some influential environment variables:
898 CC C compiler command
899 CFLAGS C compiler flags
900 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901 nonstandard directory <lib dir>
b4e70030
JB
902 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903 headers in a nonstandard directory <include dir>
bec39cab
AC
904 CPP C preprocessor
905
906Use these variables to override the choices made by `configure' or to help
907it to find libraries and programs with nonstandard names/locations.
908
909_ACEOF
910fi
911
912if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
b4e70030 914 ac_popdir=`pwd`
bec39cab
AC
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
917 ac_builddir=.
918
b4e70030 919if test "$ac_dir" != .; then
bec39cab 920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923else
924 ac_dir_suffix= ac_top_builddir=
925fi
bec39cab
AC
926
927case $srcdir in
b4e70030 928 .) # No --srcdir option. We are building in place.
bec39cab 929 ac_srcdir=.
b4e70030
JB
930 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=.
932 else
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 fi ;;
935 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 936 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
937 ac_top_srcdir=$srcdir ;;
938 *) # Relative path.
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941esac
942
943# Do not use `cd foo && pwd` to compute absolute paths, because
944# the directories may not exist.
945case `pwd` in
946.) ac_abs_builddir="$ac_dir";;
947*)
948 case "$ac_dir" in
949 .) ac_abs_builddir=`pwd`;;
950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
951 *) ac_abs_builddir=`pwd`/"$ac_dir";;
952 esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_top_builddir=${ac_top_builddir}.;;
956*)
957 case ${ac_top_builddir}. in
958 .) ac_abs_top_builddir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
961 esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_srcdir=$ac_srcdir;;
965*)
966 case $ac_srcdir in
967 .) ac_abs_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
970 esac;;
971esac
972case $ac_abs_builddir in
973.) ac_abs_top_srcdir=$ac_top_srcdir;;
974*)
975 case $ac_top_srcdir in
976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
979 esac;;
bec39cab
AC
980esac
981
b4e70030
JB
982 cd $ac_dir
983 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 984 if test -f $ac_srcdir/configure.gnu; then
b4e70030 985 echo
bec39cab
AC
986 $SHELL $ac_srcdir/configure.gnu --help=recursive
987 elif test -f $ac_srcdir/configure; then
b4e70030 988 echo
bec39cab 989 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
990 elif test -f $ac_srcdir/configure.ac ||
991 test -f $ac_srcdir/configure.in; then
992 echo
993 $ac_configure --help
3ace7edb 994 else
bec39cab 995 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
996 fi
997 cd $ac_popdir
bec39cab
AC
998 done
999fi
1000
b4e70030 1001test -n "$ac_init_help" && exit 0
bec39cab
AC
1002if $ac_init_version; then
1003 cat <<\_ACEOF
1004
b4e70030 1005Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1006This configure script is free software; the Free Software Foundation
1007gives unlimited permission to copy, distribute and modify it.
1008_ACEOF
b4e70030 1009 exit 0
bec39cab 1010fi
b4e70030
JB
1011exec 5>config.log
1012cat >&5 <<_ACEOF
bec39cab
AC
1013This file contains any messages produced by compilers while
1014running configure, to aid debugging if configure makes a mistake.
1015
1016It was created by $as_me, which was
b4e70030 1017generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1018
1019 $ $0 $@
1020
1021_ACEOF
1022{
1023cat <<_ASUNAME
1024## --------- ##
1025## Platform. ##
1026## --------- ##
1027
1028hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1029uname -m = `(uname -m) 2>/dev/null || echo unknown`
1030uname -r = `(uname -r) 2>/dev/null || echo unknown`
1031uname -s = `(uname -s) 2>/dev/null || echo unknown`
1032uname -v = `(uname -v) 2>/dev/null || echo unknown`
1033
1034/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1035/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1036
1037/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1038/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1039/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1040hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1041/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1042/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1043/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1044
1045_ASUNAME
1046
1047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048for as_dir in $PATH
1049do
1050 IFS=$as_save_IFS
1051 test -z "$as_dir" && as_dir=.
1052 echo "PATH: $as_dir"
1053done
1054
1055} >&5
1056
1057cat >&5 <<_ACEOF
1058
1059
1060## ----------- ##
1061## Core tests. ##
1062## ----------- ##
1063
1064_ACEOF
1065
1066
1067# Keep a trace of the command line.
1068# Strip out --no-create and --no-recursion so they do not pile up.
1069# Strip out --silent because we don't want to record it for future runs.
1070# Also quote any args containing shell meta-characters.
1071# Make two passes to allow for proper duplicate-argument suppression.
1072ac_configure_args=
1073ac_configure_args0=
1074ac_configure_args1=
1075ac_sep=
1076ac_must_keep_next=false
1077for ac_pass in 1 2
1078do
1079 for ac_arg
1080 do
1081 case $ac_arg in
1082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 continue ;;
b4e70030 1086 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1087 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1088 esac
1089 case $ac_pass in
1090 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1091 2)
1092 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1093 if test $ac_must_keep_next = true; then
1094 ac_must_keep_next=false # Got value, back to normal.
1095 else
1096 case $ac_arg in
1097 *=* | --config-cache | -C | -disable-* | --disable-* \
1098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1100 | -with-* | --with-* | -without-* | --without-* | --x)
1101 case "$ac_configure_args0 " in
1102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1103 esac
1104 ;;
1105 -* ) ac_must_keep_next=true ;;
1106 esac
1107 fi
1108 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1109 # Get rid of the leading space.
1110 ac_sep=" "
1111 ;;
1112 esac
1113 done
1114done
1115$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1116$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1117
1118# When interrupted or exit'd, cleanup temporary files, and complete
1119# config.log. We remove comments because anyway the quotes in there
1120# would cause problems or look ugly.
b4e70030
JB
1121# WARNING: Be sure not to use single quotes in there, as some shells,
1122# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1123trap 'exit_status=$?
1124 # Save into config.log some information that might help in debugging.
1125 {
1126 echo
1127
1128 cat <<\_ASBOX
1129## ---------------- ##
1130## Cache variables. ##
1131## ---------------- ##
1132_ASBOX
1133 echo
1134 # The following way of writing the cache mishandles newlines in values,
b4e70030 1135{
bec39cab 1136 (set) 2>&1 |
b4e70030
JB
1137 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1138 *ac_space=\ *)
bec39cab 1139 sed -n \
b4e70030
JB
1140 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 ;;
bec39cab 1143 *)
b4e70030
JB
1144 sed -n \
1145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1146 ;;
b4e70030
JB
1147 esac;
1148}
bec39cab
AC
1149 echo
1150
1151 cat <<\_ASBOX
1152## ----------------- ##
1153## Output variables. ##
1154## ----------------- ##
1155_ASBOX
1156 echo
1157 for ac_var in $ac_subst_vars
1158 do
b4e70030
JB
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1161 done | sort
1162 echo
1163
1164 if test -n "$ac_subst_files"; then
1165 cat <<\_ASBOX
b4e70030
JB
1166## ------------- ##
1167## Output files. ##
1168## ------------- ##
bec39cab
AC
1169_ASBOX
1170 echo
1171 for ac_var in $ac_subst_files
1172 do
b4e70030
JB
1173 eval ac_val=$`echo $ac_var`
1174 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1175 done | sort
1176 echo
1177 fi
1178
1179 if test -s confdefs.h; then
1180 cat <<\_ASBOX
1181## ----------- ##
1182## confdefs.h. ##
1183## ----------- ##
1184_ASBOX
1185 echo
b4e70030 1186 sed "/^$/d" confdefs.h | sort
bec39cab 1187 echo
3ace7edb 1188 fi
bec39cab
AC
1189 test "$ac_signal" != 0 &&
1190 echo "$as_me: caught signal $ac_signal"
1191 echo "$as_me: exit $exit_status"
1192 } >&5
b4e70030
JB
1193 rm -f core *.core &&
1194 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1195 exit $exit_status
b4e70030 1196 ' 0
bec39cab
AC
1197for ac_signal in 1 2 13 15; do
1198 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199done
1200ac_signal=0
1201
1202# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1203rm -rf conftest* confdefs.h
1204# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1205echo >confdefs.h
bec39cab
AC
1206
1207# Predefined preprocessor variables.
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_NAME "$PACKAGE_NAME"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_VERSION "$PACKAGE_VERSION"
1221_ACEOF
1222
1223
1224cat >>confdefs.h <<_ACEOF
1225#define PACKAGE_STRING "$PACKAGE_STRING"
1226_ACEOF
1227
1228
1229cat >>confdefs.h <<_ACEOF
1230#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231_ACEOF
1232
1233
1234# Let the site file select an alternate cache file if it wants to.
1235# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1236if test -z "$CONFIG_SITE"; then
1237 if test "x$prefix" != xNONE; then
1238 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1239 else
1240 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1241 fi
c906108c 1242fi
b4e70030 1243for ac_site_file in $CONFIG_SITE; do
c906108c 1244 if test -r "$ac_site_file"; then
bec39cab
AC
1245 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1246echo "$as_me: loading site script $ac_site_file" >&6;}
1247 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1248 . "$ac_site_file"
1249 fi
1250done
1251
1252if test -r "$cache_file"; then
bec39cab
AC
1253 # Some versions of bash will fail to source /dev/null (special
1254 # files actually), so we avoid doing that.
1255 if test -f "$cache_file"; then
1256 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1257echo "$as_me: loading cache $cache_file" >&6;}
1258 case $cache_file in
1259 [\\/]* | ?:[\\/]* ) . $cache_file;;
1260 *) . ./$cache_file;;
1261 esac
1262 fi
c906108c 1263else
bec39cab
AC
1264 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1265echo "$as_me: creating cache $cache_file" >&6;}
1266 >$cache_file
1267fi
1268
1269# Check that the precious variables saved in the cache have kept the same
1270# value.
1271ac_cache_corrupted=false
b4e70030
JB
1272for ac_var in `(set) 2>&1 |
1273 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1275 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1276 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1277 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1278 case $ac_old_set,$ac_new_set in
1279 set,)
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1281echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1283 ,set)
1284 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1285echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1286 ac_cache_corrupted=: ;;
1287 ,);;
1288 *)
1289 if test "x$ac_old_val" != "x$ac_new_val"; then
1290 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1291echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1292 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1293echo "$as_me: former value: $ac_old_val" >&2;}
1294 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1295echo "$as_me: current value: $ac_new_val" >&2;}
1296 ac_cache_corrupted=:
1297 fi;;
1298 esac
1299 # Pass precious variables to config.status.
1300 if test "$ac_new_set" = set; then
1301 case $ac_new_val in
b4e70030
JB
1302 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1303 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1304 *) ac_arg=$ac_var=$ac_new_val ;;
1305 esac
1306 case " $ac_configure_args " in
1307 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1308 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309 esac
1310 fi
1311done
1312if $ac_cache_corrupted; then
1313 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1314echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1315 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1316echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1317 { (exit 1); exit 1; }; }
c906108c
SS
1318fi
1319
b4e70030
JB
1320ac_ext=c
1321ac_cpp='$CPP $CPPFLAGS'
1322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1324ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1325
1326
bec39cab
AC
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
bec39cab 1343
b4e70030
JB
1344 ac_config_headers="$ac_config_headers config.h:config.in"
1345
1346echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1347echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1348 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1349if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1350 enableval="$enable_maintainer_mode"
1351 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1352else
1353 USE_MAINTAINER_MODE=no
b4e70030
JB
1354fi;
1355 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1356echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1357
413ccac7
AC
1358
1359if test $USE_MAINTAINER_MODE = yes; then
1360 MAINTAINER_MODE_TRUE=
1361 MAINTAINER_MODE_FALSE='#'
1362else
1363 MAINTAINER_MODE_TRUE='#'
1364 MAINTAINER_MODE_FALSE=
1365fi
85981d60 1366
413ccac7 1367 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1368
c906108c 1369
bec39cab
AC
1370
1371ac_ext=c
1372ac_cpp='$CPP $CPPFLAGS'
1373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1375ac_compiler_gnu=$ac_cv_c_compiler_gnu
1376if test -n "$ac_tool_prefix"; then
1377 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1378set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1379echo "$as_me:$LINENO: checking for $ac_word" >&5
1380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1381if test "${ac_cv_prog_CC+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384 if test -n "$CC"; then
1385 ac_cv_prog_CC="$CC" # Let the user override the test.
1386else
1387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388for as_dir in $PATH
1389do
1390 IFS=$as_save_IFS
1391 test -z "$as_dir" && as_dir=.
1392 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1394 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1396 break 2
1397 fi
1398done
1399done
1400
1401fi
1402fi
1403CC=$ac_cv_prog_CC
1404if test -n "$CC"; then
b4e70030
JB
1405 echo "$as_me:$LINENO: result: $CC" >&5
1406echo "${ECHO_T}$CC" >&6
bec39cab 1407else
b4e70030
JB
1408 echo "$as_me:$LINENO: result: no" >&5
1409echo "${ECHO_T}no" >&6
bec39cab
AC
1410fi
1411
1412fi
1413if test -z "$ac_cv_prog_CC"; then
1414 ac_ct_CC=$CC
1415 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1416set dummy gcc; ac_word=$2
b4e70030
JB
1417echo "$as_me:$LINENO: checking for $ac_word" >&5
1418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1419if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1421else
1422 if test -n "$ac_ct_CC"; then
1423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1424else
1425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426for as_dir in $PATH
1427do
1428 IFS=$as_save_IFS
1429 test -z "$as_dir" && as_dir=.
1430 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1432 ac_cv_prog_ac_ct_CC="gcc"
1433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434 break 2
1435 fi
1436done
1437done
1438
1439fi
1440fi
1441ac_ct_CC=$ac_cv_prog_ac_ct_CC
1442if test -n "$ac_ct_CC"; then
b4e70030
JB
1443 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1444echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1445else
b4e70030
JB
1446 echo "$as_me:$LINENO: result: no" >&5
1447echo "${ECHO_T}no" >&6
bec39cab
AC
1448fi
1449
b4e70030 1450 CC=$ac_ct_CC
bec39cab
AC
1451else
1452 CC="$ac_cv_prog_CC"
1453fi
1454
1455if test -z "$CC"; then
b4e70030
JB
1456 if test -n "$ac_tool_prefix"; then
1457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1458set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1459echo "$as_me:$LINENO: checking for $ac_word" >&5
1460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1461if test "${ac_cv_prog_CC+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1463else
1464 if test -n "$CC"; then
1465 ac_cv_prog_CC="$CC" # Let the user override the test.
1466else
bec39cab
AC
1467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468for as_dir in $PATH
1469do
1470 IFS=$as_save_IFS
1471 test -z "$as_dir" && as_dir=.
1472 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1474 ac_cv_prog_CC="${ac_tool_prefix}cc"
1475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1476 break 2
1477 fi
1478done
1479done
1480
c906108c
SS
1481fi
1482fi
bec39cab 1483CC=$ac_cv_prog_CC
c906108c 1484if test -n "$CC"; then
b4e70030
JB
1485 echo "$as_me:$LINENO: result: $CC" >&5
1486echo "${ECHO_T}$CC" >&6
c906108c 1487else
b4e70030
JB
1488 echo "$as_me:$LINENO: result: no" >&5
1489echo "${ECHO_T}no" >&6
c906108c
SS
1490fi
1491
b4e70030
JB
1492fi
1493if test -z "$ac_cv_prog_CC"; then
1494 ac_ct_CC=$CC
1495 # Extract the first word of "cc", so it can be a program name with args.
1496set dummy cc; ac_word=$2
1497echo "$as_me:$LINENO: checking for $ac_word" >&5
1498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1499if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1500 echo $ECHO_N "(cached) $ECHO_C" >&6
1501else
1502 if test -n "$ac_ct_CC"; then
1503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1504else
1505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506for as_dir in $PATH
1507do
1508 IFS=$as_save_IFS
1509 test -z "$as_dir" && as_dir=.
1510 for ac_exec_ext in '' $ac_executable_extensions; do
1511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1512 ac_cv_prog_ac_ct_CC="cc"
1513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1514 break 2
4e8d927d 1515 fi
b4e70030
JB
1516done
1517done
1518
1519fi
1520fi
1521ac_ct_CC=$ac_cv_prog_ac_ct_CC
1522if test -n "$ac_ct_CC"; then
1523 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1524echo "${ECHO_T}$ac_ct_CC" >&6
1525else
1526 echo "$as_me:$LINENO: result: no" >&5
1527echo "${ECHO_T}no" >&6
1528fi
1529
1530 CC=$ac_ct_CC
1531else
1532 CC="$ac_cv_prog_CC"
1533fi
1534
bec39cab 1535fi
c906108c
SS
1536if test -z "$CC"; then
1537 # Extract the first word of "cc", so it can be a program name with args.
1538set dummy cc; ac_word=$2
b4e70030
JB
1539echo "$as_me:$LINENO: checking for $ac_word" >&5
1540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1541if test "${ac_cv_prog_CC+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1543else
1544 if test -n "$CC"; then
1545 ac_cv_prog_CC="$CC" # Let the user override the test.
1546else
c906108c 1547 ac_prog_rejected=no
bec39cab
AC
1548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549for as_dir in $PATH
1550do
1551 IFS=$as_save_IFS
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1555 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1556 ac_prog_rejected=yes
1557 continue
1558 fi
1559 ac_cv_prog_CC="cc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 break 2
1562 fi
1563done
1564done
1565
c906108c
SS
1566if test $ac_prog_rejected = yes; then
1567 # We found a bogon in the path, so make sure we never use it.
1568 set dummy $ac_cv_prog_CC
1569 shift
bec39cab 1570 if test $# != 0; then
c906108c
SS
1571 # We chose a different compiler from the bogus one.
1572 # However, it has the same basename, so the bogon will be chosen
1573 # first if we set CC to just the basename; use the full file name.
1574 shift
bec39cab 1575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1576 fi
1577fi
1578fi
1579fi
bec39cab 1580CC=$ac_cv_prog_CC
c906108c 1581if test -n "$CC"; then
b4e70030
JB
1582 echo "$as_me:$LINENO: result: $CC" >&5
1583echo "${ECHO_T}$CC" >&6
c906108c 1584else
b4e70030
JB
1585 echo "$as_me:$LINENO: result: no" >&5
1586echo "${ECHO_T}no" >&6
c906108c
SS
1587fi
1588
bec39cab
AC
1589fi
1590if test -z "$CC"; then
1591 if test -n "$ac_tool_prefix"; then
b4e70030 1592 for ac_prog in cl
bec39cab
AC
1593 do
1594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1596echo "$as_me:$LINENO: checking for $ac_word" >&5
1597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1598if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1600else
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1603else
bec39cab
AC
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
1609 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613 break 2
1614 fi
1615done
1616done
1617
c906108c
SS
1618fi
1619fi
bec39cab 1620CC=$ac_cv_prog_CC
c906108c 1621if test -n "$CC"; then
b4e70030
JB
1622 echo "$as_me:$LINENO: result: $CC" >&5
1623echo "${ECHO_T}$CC" >&6
c906108c 1624else
b4e70030
JB
1625 echo "$as_me:$LINENO: result: no" >&5
1626echo "${ECHO_T}no" >&6
c906108c 1627fi
bec39cab
AC
1628
1629 test -n "$CC" && break
1630 done
1631fi
1632if test -z "$CC"; then
1633 ac_ct_CC=$CC
b4e70030 1634 for ac_prog in cl
bec39cab
AC
1635do
1636 # Extract the first word of "$ac_prog", so it can be a program name with args.
1637set dummy $ac_prog; ac_word=$2
b4e70030
JB
1638echo "$as_me:$LINENO: checking for $ac_word" >&5
1639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1640if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 if test -n "$ac_ct_CC"; then
1644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645else
1646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647for as_dir in $PATH
1648do
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1653 ac_cv_prog_ac_ct_CC="$ac_prog"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
c906108c 1656 fi
bec39cab
AC
1657done
1658done
1659
1660fi
1661fi
1662ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663if test -n "$ac_ct_CC"; then
b4e70030
JB
1664 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1666else
b4e70030
JB
1667 echo "$as_me:$LINENO: result: no" >&5
1668echo "${ECHO_T}no" >&6
c906108c
SS
1669fi
1670
bec39cab
AC
1671 test -n "$ac_ct_CC" && break
1672done
c906108c 1673
b4e70030 1674 CC=$ac_ct_CC
bec39cab
AC
1675fi
1676
1677fi
1678
1679
1680test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1681See \`config.log' for more details." >&5
1682echo "$as_me: error: no acceptable C compiler found in \$PATH
1683See \`config.log' for more details." >&2;}
1684 { (exit 1); exit 1; }; }
1685
1686# Provide some information about the compiler.
b4e70030
JB
1687echo "$as_me:$LINENO:" \
1688 "checking for C compiler version" >&5
bec39cab 1689ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1690{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1691 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1692 ac_status=$?
1693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694 (exit $ac_status); }
b4e70030
JB
1695{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1696 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1697 ac_status=$?
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }
b4e70030
JB
1700{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1701 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1702 ac_status=$?
1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 (exit $ac_status); }
1705
1706cat >conftest.$ac_ext <<_ACEOF
1707/* confdefs.h. */
1708_ACEOF
1709cat confdefs.h >>conftest.$ac_ext
1710cat >>conftest.$ac_ext <<_ACEOF
1711/* end confdefs.h. */
1712
1713int
1714main ()
1715{
1716
1717 ;
1718 return 0;
1719}
1720_ACEOF
1721ac_clean_files_save=$ac_clean_files
b4e70030 1722ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1723# Try to create an executable without -o first, disregard a.out.
1724# It will help us diagnose broken compilers, and finding out an intuition
1725# of exeext.
b4e70030
JB
1726echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1727echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1728ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1729if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1730 (eval $ac_link_default) 2>&5
1731 ac_status=$?
1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733 (exit $ac_status); }; then
b4e70030
JB
1734 # Find the output, starting from the most likely. This scheme is
1735# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1736# resort.
1737
1738# Be careful to initialize this variable, since it used to be cached.
1739# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1740ac_cv_exeext=
1741# b.out is created by i960 compilers.
1742for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1743do
1744 test -f "$ac_file" || continue
1745 case $ac_file in
b4e70030
JB
1746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1747 ;;
1748 conftest.$ac_ext )
1749 # This is the source file.
1750 ;;
1751 [ab].out )
1752 # We found the default executable, but exeext='' is most
1753 # certainly right.
1754 break;;
1755 *.* )
1756 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757 # FIXME: I believe we export ac_cv_exeext for Libtool,
1758 # but it would be cool to find out if it's true. Does anybody
1759 # maintain Libtool? --akim.
1760 export ac_cv_exeext
1761 break;;
1762 * )
1763 break;;
bec39cab
AC
1764 esac
1765done
1766else
1767 echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1771See \`config.log' for more details." >&5
1772echo "$as_me: error: C compiler cannot create executables
1773See \`config.log' for more details." >&2;}
1774 { (exit 77); exit 77; }; }
1775fi
1776
b4e70030
JB
1777ac_exeext=$ac_cv_exeext
1778echo "$as_me:$LINENO: result: $ac_file" >&5
1779echo "${ECHO_T}$ac_file" >&6
1780
1781# Check the compiler produces executables we can run. If not, either
bec39cab 1782# the compiler is broken, or we cross compile.
b4e70030
JB
1783echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1784echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1785# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1786# If not cross compiling, check that we can run a simple program.
1787if test "$cross_compiling" != yes; then
1788 if { ac_try='./$ac_file'
1789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1790 (eval $ac_try) 2>&5
1791 ac_status=$?
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }; }; then
1794 cross_compiling=no
c906108c 1795 else
bec39cab
AC
1796 if test "$cross_compiling" = maybe; then
1797 cross_compiling=yes
1798 else
1799 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1800If you meant to cross compile, use \`--host'.
1801See \`config.log' for more details." >&5
1802echo "$as_me: error: cannot run C compiled programs.
1803If you meant to cross compile, use \`--host'.
1804See \`config.log' for more details." >&2;}
1805 { (exit 1); exit 1; }; }
1806 fi
c906108c 1807 fi
bec39cab 1808fi
b4e70030
JB
1809echo "$as_me:$LINENO: result: yes" >&5
1810echo "${ECHO_T}yes" >&6
bec39cab 1811
b4e70030
JB
1812rm -f a.out a.exe conftest$ac_cv_exeext b.out
1813ac_clean_files=$ac_clean_files_save
1814# Check the compiler produces executables we can run. If not, either
1815# the compiler is broken, or we cross compile.
1816echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1817echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1818echo "$as_me:$LINENO: result: $cross_compiling" >&5
1819echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1820
b4e70030
JB
1821echo "$as_me:$LINENO: checking for suffix of executables" >&5
1822echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1824 (eval $ac_link) 2>&5
1825 ac_status=$?
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }; then
b4e70030
JB
1828 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1829# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1830# work properly (i.e., refer to `conftest.exe'), while it won't with
1831# `rm'.
1832for ac_file in conftest.exe conftest conftest.*; do
1833 test -f "$ac_file" || continue
1834 case $ac_file in
1835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1836 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1837 export ac_cv_exeext
1838 break;;
1839 * ) break;;
1840 esac
1841done
c906108c 1842else
bec39cab
AC
1843 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1844See \`config.log' for more details." >&5
1845echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1846See \`config.log' for more details." >&2;}
1847 { (exit 1); exit 1; }; }
c906108c 1848fi
c906108c 1849
b4e70030
JB
1850rm -f conftest$ac_cv_exeext
1851echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1852echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1853
b4e70030 1854rm -f conftest.$ac_ext
bec39cab
AC
1855EXEEXT=$ac_cv_exeext
1856ac_exeext=$EXEEXT
b4e70030
JB
1857echo "$as_me:$LINENO: checking for suffix of object files" >&5
1858echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1859if test "${ac_cv_objext+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861else
b4e70030
JB
1862 cat >conftest.$ac_ext <<_ACEOF
1863/* confdefs.h. */
1864_ACEOF
1865cat confdefs.h >>conftest.$ac_ext
1866cat >>conftest.$ac_ext <<_ACEOF
1867/* end confdefs.h. */
1868
1869int
1870main ()
1871{
1872
1873 ;
1874 return 0;
1875}
1876_ACEOF
1877rm -f conftest.o conftest.obj
bec39cab
AC
1878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1879 (eval $ac_compile) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
b4e70030 1883 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1884 case $ac_file in
b4e70030 1885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1887 break;;
1888 esac
1889done
c906108c 1890else
bec39cab
AC
1891 echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1895See \`config.log' for more details." >&5
1896echo "$as_me: error: cannot compute suffix of object files: cannot compile
1897See \`config.log' for more details." >&2;}
1898 { (exit 1); exit 1; }; }
c906108c
SS
1899fi
1900
b4e70030 1901rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1902fi
b4e70030
JB
1903echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1904echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1905OBJEXT=$ac_cv_objext
1906ac_objext=$OBJEXT
b4e70030
JB
1907echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1908echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1909if test "${ac_cv_c_compiler_gnu+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1911else
bec39cab
AC
1912 cat >conftest.$ac_ext <<_ACEOF
1913/* confdefs.h. */
1914_ACEOF
1915cat confdefs.h >>conftest.$ac_ext
1916cat >>conftest.$ac_ext <<_ACEOF
1917/* end confdefs.h. */
1918
1919int
1920main ()
1921{
1922#ifndef __GNUC__
1923 choke me
1924#endif
1925
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930rm -f conftest.$ac_objext
1931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1932 (eval $ac_compile) 2>conftest.er1
1933 ac_status=$?
1934 grep -v '^ *+' conftest.er1 >conftest.err
1935 rm -f conftest.er1
1936 cat conftest.err >&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); } &&
b4e70030
JB
1939 { ac_try='test -z "$ac_c_werror_flag"
1940 || test ! -s conftest.err'
bec39cab
AC
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 (eval $ac_try) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; } &&
1946 { ac_try='test -s conftest.$ac_objext'
1947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1948 (eval $ac_try) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; }; then
1952 ac_compiler_gnu=yes
1953else
1954 echo "$as_me: failed program was:" >&5
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
b4e70030 1957ac_compiler_gnu=no
bec39cab
AC
1958fi
1959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1960ac_cv_c_compiler_gnu=$ac_compiler_gnu
1961
1962fi
b4e70030
JB
1963echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1964echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1965GCC=`test $ac_compiler_gnu = yes && echo yes`
1966ac_test_CFLAGS=${CFLAGS+set}
1967ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1968CFLAGS="-g"
1969echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1970echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1971if test "${ac_cv_prog_cc_g+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
b4e70030 1974 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1975/* confdefs.h. */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h. */
1980
1981int
1982main ()
1983{
1984
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989rm -f conftest.$ac_objext
1990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1992 ac_status=$?
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
b4e70030
JB
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
bec39cab
AC
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
c906108c
SS
2011 ac_cv_prog_cc_g=yes
2012else
bec39cab
AC
2013 echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2015
b4e70030 2016ac_cv_prog_cc_g=no
4e8d927d 2017fi
bec39cab
AC
2018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019fi
b4e70030
JB
2020echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2021echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2022if test "$ac_test_CFLAGS" = set; then
bec39cab 2023 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2024elif test $ac_cv_prog_cc_g = yes; then
2025 if test "$GCC" = yes; then
2026 CFLAGS="-g -O2"
2027 else
2028 CFLAGS="-g"
2029 fi
2030else
2031 if test "$GCC" = yes; then
2032 CFLAGS="-O2"
2033 else
2034 CFLAGS=
2035 fi
2036fi
b4e70030
JB
2037echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2038echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2039if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
b4e70030 2042 ac_cv_prog_cc_stdc=no
bec39cab
AC
2043ac_save_CC=$CC
2044cat >conftest.$ac_ext <<_ACEOF
2045/* confdefs.h. */
2046_ACEOF
2047cat confdefs.h >>conftest.$ac_ext
2048cat >>conftest.$ac_ext <<_ACEOF
2049/* end confdefs.h. */
c906108c
SS
2050#include <stdarg.h>
2051#include <stdio.h>
2052#include <sys/types.h>
2053#include <sys/stat.h>
2054/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2055struct buf { int x; };
2056FILE * (*rcsopen) (struct buf *, struct stat *, int);
2057static char *e (p, i)
2058 char **p;
2059 int i;
2060{
2061 return p[i];
2062}
2063static char *f (char * (*g) (char **, int), char **p, ...)
2064{
2065 char *s;
2066 va_list v;
2067 va_start (v,p);
2068 s = g (p, va_arg (v,int));
2069 va_end (v);
2070 return s;
2071}
bec39cab
AC
2072
2073/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2074 function prototypes and stuff, but not '\xHH' hex character constants.
2075 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2076 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2078 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2079 that's true only with -std1. */
bec39cab
AC
2080int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2081
c906108c
SS
2082int test (int i, double x);
2083struct s1 {int (*f) (int a);};
2084struct s2 {int (*f) (double a);};
2085int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2086int argc;
2087char **argv;
bec39cab
AC
2088int
2089main ()
2090{
c906108c 2091return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2092 ;
2093 return 0;
2094}
2095_ACEOF
b4e70030
JB
2096# Don't try gcc -ansi; that turns off useful extensions and
2097# breaks some systems' header files.
2098# AIX -qlanglvl=ansi
2099# Ultrix and OSF/1 -std1
2100# HP-UX 10.20 and later -Ae
2101# HP-UX older versions -Aa -D_HPUX_SOURCE
2102# SVR4 -Xc -D__EXTENSIONS__
2103for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2104do
2105 CC="$ac_save_CC $ac_arg"
2106 rm -f conftest.$ac_objext
2107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2108 (eval $ac_compile) 2>conftest.er1
2109 ac_status=$?
2110 grep -v '^ *+' conftest.er1 >conftest.err
2111 rm -f conftest.er1
2112 cat conftest.err >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); } &&
b4e70030
JB
2115 { ac_try='test -z "$ac_c_werror_flag"
2116 || test ! -s conftest.err'
bec39cab
AC
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 (eval $ac_try) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; } &&
2122 { ac_try='test -s conftest.$ac_objext'
2123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124 (eval $ac_try) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; }; then
b4e70030
JB
2128 ac_cv_prog_cc_stdc=$ac_arg
2129break
c906108c 2130else
bec39cab
AC
2131 echo "$as_me: failed program was:" >&5
2132sed 's/^/| /' conftest.$ac_ext >&5
2133
c906108c 2134fi
bec39cab 2135rm -f conftest.err conftest.$ac_objext
c906108c 2136done
b4e70030 2137rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2138CC=$ac_save_CC
c906108c
SS
2139
2140fi
b4e70030
JB
2141
2142case "x$ac_cv_prog_cc_stdc" in
2143 x|xno)
2144 echo "$as_me:$LINENO: result: none needed" >&5
2145echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2146 *)
b4e70030
JB
2147 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2148echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2149 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2150esac
2151
b4e70030
JB
2152# Some people use a C++ compiler to compile C. Since we use `exit',
2153# in C++ we need to declare it. In case someone uses the same compiler
2154# for both compiling C and C++ we need to have the C++ compiler decide
2155# the declaration of exit, since it's the most demanding environment.
2156cat >conftest.$ac_ext <<_ACEOF
2157#ifndef __cplusplus
2158 choke me
2159#endif
2160_ACEOF
2161rm -f conftest.$ac_objext
2162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2164 ac_status=$?
2165 grep -v '^ *+' conftest.er1 >conftest.err
2166 rm -f conftest.er1
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try='test -z "$ac_c_werror_flag"
2171 || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 for ac_declaration in \
2184 '' \
2185 'extern "C" void std::exit (int) throw (); using std::exit;' \
2186 'extern "C" void std::exit (int); using std::exit;' \
2187 'extern "C" void exit (int) throw ();' \
2188 'extern "C" void exit (int);' \
2189 'void exit (int);'
2190do
2191 cat >conftest.$ac_ext <<_ACEOF
2192/* confdefs.h. */
2193_ACEOF
2194cat confdefs.h >>conftest.$ac_ext
2195cat >>conftest.$ac_ext <<_ACEOF
2196/* end confdefs.h. */
2197$ac_declaration
2198#include <stdlib.h>
2199int
2200main ()
2201{
2202exit (42);
2203 ;
2204 return 0;
2205}
2206_ACEOF
2207rm -f conftest.$ac_objext
2208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>conftest.er1
2210 ac_status=$?
2211 grep -v '^ *+' conftest.er1 >conftest.err
2212 rm -f conftest.er1
2213 cat conftest.err >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try='test -z "$ac_c_werror_flag"
2217 || test ! -s conftest.err'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; } &&
2223 { ac_try='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 :
2230else
2231 echo "$as_me: failed program was:" >&5
2232sed 's/^/| /' conftest.$ac_ext >&5
2233
2234continue
2235fi
2236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2237 cat >conftest.$ac_ext <<_ACEOF
2238/* confdefs.h. */
2239_ACEOF
2240cat confdefs.h >>conftest.$ac_ext
2241cat >>conftest.$ac_ext <<_ACEOF
2242/* end confdefs.h. */
2243$ac_declaration
2244int
2245main ()
2246{
2247exit (42);
2248 ;
2249 return 0;
2250}
2251_ACEOF
2252rm -f conftest.$ac_objext
2253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>conftest.er1
2255 ac_status=$?
2256 grep -v '^ *+' conftest.er1 >conftest.err
2257 rm -f conftest.er1
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
2261 { ac_try='test -z "$ac_c_werror_flag"
2262 || test ! -s conftest.err'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2274 break
2275else
2276 echo "$as_me: failed program was:" >&5
2277sed 's/^/| /' conftest.$ac_ext >&5
2278
2279fi
2280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281done
2282rm -f conftest*
2283if test -n "$ac_declaration"; then
2284 echo '#ifdef __cplusplus' >>confdefs.h
2285 echo $ac_declaration >>confdefs.h
2286 echo '#endif' >>confdefs.h
2287fi
2288
2289else
2290 echo "$as_me: failed program was:" >&5
2291sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2292
b4e70030
JB
2293fi
2294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2295ac_ext=c
2296ac_cpp='$CPP $CPPFLAGS'
2297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2300
60ca704f 2301
bec39cab
AC
2302cat >>confdefs.h <<\_ACEOF
2303#define _GNU_SOURCE 1
2304_ACEOF
c906108c
SS
2305
2306
8bb2c122 2307
bec39cab
AC
2308ac_ext=c
2309ac_cpp='$CPP $CPPFLAGS'
2310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2313echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2314echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2315# On Suns, sometimes $CPP names a directory.
2316if test -n "$CPP" && test -d "$CPP"; then
2317 CPP=
8bb2c122 2318fi
bec39cab
AC
2319if test -z "$CPP"; then
2320 if test "${ac_cv_prog_CPP+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322else
2323 # Double quotes because CPP needs to be expanded
2324 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2325 do
2326 ac_preproc_ok=false
2327for ac_c_preproc_warn_flag in '' yes
2328do
2329 # Use a header file that comes with gcc, so configuring glibc
2330 # with a fresh cross-compiler works.
2331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2332 # <limits.h> exists even on freestanding compilers.
2333 # On the NeXT, cc -E runs the code through the compiler's parser,
2334 # not just through cpp. "Syntax error" is here to catch this case.
2335 cat >conftest.$ac_ext <<_ACEOF
2336/* confdefs.h. */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h. */
2341#ifdef __STDC__
2342# include <limits.h>
2343#else
2344# include <assert.h>
2345#endif
2346 Syntax error
2347_ACEOF
2348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 ac_status=$?
2351 grep -v '^ *+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } >/dev/null; then
2356 if test -s conftest.err; then
2357 ac_cpp_err=$ac_c_preproc_warn_flag
2358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2359 else
2360 ac_cpp_err=
2361 fi
8bb2c122 2362else
bec39cab 2363 ac_cpp_err=yes
8bb2c122 2364fi
bec39cab
AC
2365if test -z "$ac_cpp_err"; then
2366 :
8bb2c122 2367else
bec39cab
AC
2368 echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 # Broken: fails on valid input.
2372continue
2373fi
2374rm -f conftest.err conftest.$ac_ext
2375
b4e70030 2376 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2377 # can be detected and how.
2378 cat >conftest.$ac_ext <<_ACEOF
2379/* confdefs.h. */
2380_ACEOF
2381cat confdefs.h >>conftest.$ac_ext
2382cat >>conftest.$ac_ext <<_ACEOF
2383/* end confdefs.h. */
2384#include <ac_nonexistent.h>
2385_ACEOF
2386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2388 ac_status=$?
2389 grep -v '^ *+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } >/dev/null; then
2394 if test -s conftest.err; then
2395 ac_cpp_err=$ac_c_preproc_warn_flag
2396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2397 else
2398 ac_cpp_err=
2399 fi
8bb2c122 2400else
bec39cab 2401 ac_cpp_err=yes
8bb2c122 2402fi
bec39cab
AC
2403if test -z "$ac_cpp_err"; then
2404 # Broken: success on invalid input.
2405continue
8bb2c122 2406else
bec39cab
AC
2407 echo "$as_me: failed program was:" >&5
2408sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2409
bec39cab
AC
2410 # Passes both tests.
2411ac_preproc_ok=:
2412break
8bb2c122 2413fi
bec39cab 2414rm -f conftest.err conftest.$ac_ext
8bb2c122 2415
bec39cab
AC
2416done
2417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2418rm -f conftest.err conftest.$ac_ext
2419if $ac_preproc_ok; then
2420 break
2421fi
8bb2c122 2422
bec39cab
AC
2423 done
2424 ac_cv_prog_CPP=$CPP
ddc9cd0f 2425
c906108c 2426fi
bec39cab
AC
2427 CPP=$ac_cv_prog_CPP
2428else
2429 ac_cv_prog_CPP=$CPP
c906108c 2430fi
b4e70030
JB
2431echo "$as_me:$LINENO: result: $CPP" >&5
2432echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2433ac_preproc_ok=false
2434for ac_c_preproc_warn_flag in '' yes
2435do
2436 # Use a header file that comes with gcc, so configuring glibc
2437 # with a fresh cross-compiler works.
2438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2439 # <limits.h> exists even on freestanding compilers.
2440 # On the NeXT, cc -E runs the code through the compiler's parser,
2441 # not just through cpp. "Syntax error" is here to catch this case.
2442 cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h. */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h. */
2448#ifdef __STDC__
2449# include <limits.h>
2450#else
2451# include <assert.h>
2452#endif
2453 Syntax error
2454_ACEOF
2455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } >/dev/null; then
2463 if test -s conftest.err; then
2464 ac_cpp_err=$ac_c_preproc_warn_flag
2465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2466 else
2467 ac_cpp_err=
2468 fi
c906108c 2469else
bec39cab 2470 ac_cpp_err=yes
c906108c 2471fi
bec39cab
AC
2472if test -z "$ac_cpp_err"; then
2473 :
c906108c 2474else
bec39cab
AC
2475 echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
2478 # Broken: fails on valid input.
2479continue
2480fi
2481rm -f conftest.err conftest.$ac_ext
2482
b4e70030 2483 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2484 # can be detected and how.
2485 cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h. */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h. */
2491#include <ac_nonexistent.h>
2492_ACEOF
2493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495 ac_status=$?
2496 grep -v '^ *+' conftest.er1 >conftest.err
2497 rm -f conftest.er1
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } >/dev/null; then
2501 if test -s conftest.err; then
2502 ac_cpp_err=$ac_c_preproc_warn_flag
2503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2504 else
2505 ac_cpp_err=
2506 fi
c906108c 2507else
bec39cab 2508 ac_cpp_err=yes
c906108c 2509fi
bec39cab
AC
2510if test -z "$ac_cpp_err"; then
2511 # Broken: success on invalid input.
2512continue
c906108c 2513else
bec39cab
AC
2514 echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2516
bec39cab
AC
2517 # Passes both tests.
2518ac_preproc_ok=:
2519break
c906108c 2520fi
bec39cab 2521rm -f conftest.err conftest.$ac_ext
c906108c 2522
bec39cab
AC
2523done
2524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2525rm -f conftest.err conftest.$ac_ext
2526if $ac_preproc_ok; then
c906108c
SS
2527 :
2528else
bec39cab
AC
2529 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2530See \`config.log' for more details." >&5
2531echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2532See \`config.log' for more details." >&2;}
2533 { (exit 1); exit 1; }; }
c906108c 2534fi
c906108c 2535
bec39cab
AC
2536ac_ext=c
2537ac_cpp='$CPP $CPPFLAGS'
2538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541
2542
b4e70030
JB
2543echo "$as_me:$LINENO: checking for egrep" >&5
2544echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2545if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
b4e70030
JB
2548 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2549 then ac_cv_prog_egrep='grep -E'
2550 else ac_cv_prog_egrep='egrep'
bec39cab 2551 fi
4e8d927d 2552fi
b4e70030
JB
2553echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2554echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2555 EGREP=$ac_cv_prog_egrep
c906108c 2556
bec39cab
AC
2557
2558
b4e70030
JB
2559echo "$as_me:$LINENO: checking for AIX" >&5
2560echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2561cat >conftest.$ac_ext <<_ACEOF
2562/* confdefs.h. */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h. */
2567#ifdef _AIX
2568 yes
2569#endif
2570
2571_ACEOF
c906108c 2572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2573 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2574 echo "$as_me:$LINENO: result: yes" >&5
2575echo "${ECHO_T}yes" >&6
bec39cab
AC
2576cat >>confdefs.h <<\_ACEOF
2577#define _ALL_SOURCE 1
2578_ACEOF
2579
c906108c 2580else
b4e70030
JB
2581 echo "$as_me:$LINENO: result: no" >&5
2582echo "${ECHO_T}no" >&6
c906108c
SS
2583fi
2584rm -f conftest*
2585
c906108c 2586
b4e70030
JB
2587echo "$as_me:$LINENO: checking for library containing strerror" >&5
2588echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2589if test "${ac_cv_search_strerror+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2591else
bec39cab 2592 ac_func_search_save_LIBS=$LIBS
b4e70030 2593ac_cv_search_strerror=no
bec39cab
AC
2594cat >conftest.$ac_ext <<_ACEOF
2595/* confdefs.h. */
2596_ACEOF
2597cat confdefs.h >>conftest.$ac_ext
2598cat >>conftest.$ac_ext <<_ACEOF
2599/* end confdefs.h. */
c906108c 2600
b4e70030 2601/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2602#ifdef __cplusplus
2603extern "C"
2604#endif
b4e70030
JB
2605/* We use char because int might match the return type of a gcc2
2606 builtin and then its argument prototype would still apply. */
bec39cab
AC
2607char strerror ();
2608int
2609main ()
2610{
b4e70030 2611strerror ();
bec39cab
AC
2612 ;
2613 return 0;
2614}
2615_ACEOF
b4e70030 2616rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2618 (eval $ac_link) 2>conftest.er1
2619 ac_status=$?
2620 grep -v '^ *+' conftest.er1 >conftest.err
2621 rm -f conftest.er1
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
b4e70030
JB
2625 { ac_try='test -z "$ac_c_werror_flag"
2626 || test ! -s conftest.err'
bec39cab
AC
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest$ac_exeext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
b4e70030 2638 ac_cv_search_strerror="none required"
c906108c 2639else
bec39cab
AC
2640 echo "$as_me: failed program was:" >&5
2641sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2642
2643fi
bec39cab 2644rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2645 conftest$ac_exeext conftest.$ac_ext
2646if test "$ac_cv_search_strerror" = no; then
2647 for ac_lib in cposix; do
2648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2649 cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h. */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h. */
2655
2656/* Override any gcc2 internal prototype to avoid an error. */
2657#ifdef __cplusplus
2658extern "C"
2659#endif
2660/* We use char because int might match the return type of a gcc2
2661 builtin and then its argument prototype would still apply. */
2662char strerror ();
2663int
2664main ()
2665{
2666strerror ();
2667 ;
2668 return 0;
2669}
2670_ACEOF
2671rm -f conftest.$ac_objext conftest$ac_exeext
2672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2673 (eval $ac_link) 2>conftest.er1
2674 ac_status=$?
2675 grep -v '^ *+' conftest.er1 >conftest.err
2676 rm -f conftest.er1
2677 cat conftest.err >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try='test -z "$ac_c_werror_flag"
2681 || test ! -s conftest.err'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 (eval $ac_try) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; } &&
2687 { ac_try='test -s conftest$ac_exeext'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; }; then
2693 ac_cv_search_strerror="-l$ac_lib"
2694break
4e8d927d 2695else
b4e70030
JB
2696 echo "$as_me: failed program was:" >&5
2697sed 's/^/| /' conftest.$ac_ext >&5
2698
2699fi
2700rm -f conftest.err conftest.$ac_objext \
2701 conftest$ac_exeext conftest.$ac_ext
2702 done
c906108c 2703fi
bec39cab 2704LIBS=$ac_func_search_save_LIBS
c906108c 2705fi
b4e70030
JB
2706echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2707echo "${ECHO_T}$ac_cv_search_strerror" >&6
2708if test "$ac_cv_search_strerror" != no; then
2709 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2710
c906108c
SS
2711fi
2712
c906108c 2713
c906108c 2714
bec39cab 2715
b4e70030
JB
2716echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2717echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
bec39cab
AC
2718if test "${am_cv_prog_cc_stdc+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2720else
bec39cab
AC
2721 am_cv_prog_cc_stdc=no
2722ac_save_CC="$CC"
2723# Don't try gcc -ansi; that turns off useful extensions and
2724# breaks some systems' header files.
2725# AIX -qlanglvl=ansi
2726# Ultrix and OSF/1 -std1
2727# HP-UX 10.20 and later -Ae
2728# HP-UX older versions -Aa -D_HPUX_SOURCE
2729# SVR4 -Xc -D__EXTENSIONS__
2730for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2731do
2732 CC="$ac_save_CC $ac_arg"
2733 cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h. */
2739#include <stdarg.h>
2740#include <stdio.h>
2741#include <sys/types.h>
2742#include <sys/stat.h>
2743/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2744struct buf { int x; };
2745FILE * (*rcsopen) (struct buf *, struct stat *, int);
2746static char *e (p, i)
2747 char **p;
2748 int i;
2749{
2750 return p[i];
2751}
2752static char *f (char * (*g) (char **, int), char **p, ...)
2753{
2754 char *s;
2755 va_list v;
2756 va_start (v,p);
2757 s = g (p, va_arg (v,int));
2758 va_end (v);
2759 return s;
2760}
2761int test (int i, double x);
2762struct s1 {int (*f) (int a);};
2763struct s2 {int (*f) (double a);};
2764int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2765int argc;
2766char **argv;
c906108c 2767
bec39cab
AC
2768int
2769main ()
2770{
c906108c 2771
bec39cab 2772return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2773
bec39cab
AC
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778rm -f conftest.$ac_objext
2779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
b4e70030
JB
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
bec39cab
AC
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2801else
bec39cab
AC
2802 echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2804
2805fi
bec39cab
AC
2806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807done
2808CC="$ac_save_CC"
c906108c
SS
2809
2810fi
2811
bec39cab 2812if test -z "$am_cv_prog_cc_stdc"; then
b4e70030
JB
2813 echo "$as_me:$LINENO: result: none needed" >&5
2814echo "${ECHO_T}none needed" >&6
c906108c 2815else
b4e70030
JB
2816 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2817echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2818fi
bec39cab
AC
2819case "x$am_cv_prog_cc_stdc" in
2820 x|xno) ;;
2821 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2822esac
c906108c 2823
c906108c 2824
bec39cab
AC
2825ac_aux_dir=
2826for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2827 if test -f $ac_dir/install-sh; then
2828 ac_aux_dir=$ac_dir
2829 ac_install_sh="$ac_aux_dir/install-sh -c"
2830 break
2831 elif test -f $ac_dir/install.sh; then
2832 ac_aux_dir=$ac_dir
2833 ac_install_sh="$ac_aux_dir/install.sh -c"
2834 break
2835 elif test -f $ac_dir/shtool; then
2836 ac_aux_dir=$ac_dir
2837 ac_install_sh="$ac_aux_dir/shtool install -c"
2838 break
2839 fi
2840done
2841if test -z "$ac_aux_dir"; then
2842 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2843echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2844 { (exit 1); exit 1; }; }
c906108c 2845fi
bec39cab
AC
2846ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2847ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2848ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2849
bec39cab
AC
2850# Make sure we can run config.sub.
2851$ac_config_sub sun4 >/dev/null 2>&1 ||
2852 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2853echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2854 { (exit 1); exit 1; }; }
2855
b4e70030
JB
2856echo "$as_me:$LINENO: checking build system type" >&5
2857echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2858if test "${ac_cv_build+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
b4e70030
JB
2861 ac_cv_build_alias=$build_alias
2862test -z "$ac_cv_build_alias" &&
2863 ac_cv_build_alias=`$ac_config_guess`
2864test -z "$ac_cv_build_alias" &&
bec39cab
AC
2865 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2866echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2867 { (exit 1); exit 1; }; }
b4e70030
JB
2868ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2869 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2870echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab
AC
2871 { (exit 1); exit 1; }; }
2872
2873fi
b4e70030
JB
2874echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2875echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2876build=$ac_cv_build
b4e70030
JB
2877build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2878build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2879build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2880
2881
b4e70030
JB
2882echo "$as_me:$LINENO: checking host system type" >&5
2883echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2884if test "${ac_cv_host+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
b4e70030
JB
2887 ac_cv_host_alias=$host_alias
2888test -z "$ac_cv_host_alias" &&
2889 ac_cv_host_alias=$ac_cv_build_alias
2890ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2891 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2892echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab
AC
2893 { (exit 1); exit 1; }; }
2894
2895fi
b4e70030
JB
2896echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2897echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2898host=$ac_cv_host
b4e70030
JB
2899host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2900host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2901host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2902
2903
b4e70030
JB
2904echo "$as_me:$LINENO: checking target system type" >&5
2905echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2906if test "${ac_cv_target+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
b4e70030
JB
2909 ac_cv_target_alias=$target_alias
2910test "x$ac_cv_target_alias" = "x" &&
2911 ac_cv_target_alias=$ac_cv_host_alias
2912ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2913 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2914echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
2915 { (exit 1); exit 1; }; }
2916
2917fi
b4e70030
JB
2918echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2919echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2920target=$ac_cv_target
b4e70030
JB
2921target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2922target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2923target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2924
c906108c 2925
bec39cab
AC
2926# The aliases save the names the user supplied, while $host etc.
2927# will get canonicalized.
2928test -n "$target_alias" &&
2929 test "$program_prefix$program_suffix$program_transform_name" = \
2930 NONENONEs,x,x, &&
2931 program_prefix=${target_alias}-
c906108c 2932
c906108c 2933
bec39cab
AC
2934CONFIG_OBS=
2935CONFIG_DEPS=
2936CONFIG_SRCS=
2937ENABLE_CFLAGS=
c906108c 2938
bec39cab
AC
2939CONFIG_ALL=
2940CONFIG_CLEAN=
2941CONFIG_INSTALL=
2942CONFIG_UNINSTALL=
2943
20e95c23
DJ
2944# If we haven't got the data from the intl directory,
2945# assume NLS is disabled.
2946USE_NLS=no
2947LIBINTL=
2948LIBINTL_DEP=
2949INCINTL=
2950XGETTEXT=
2951GMSGFMT=
2952POSUB=
3841debe
DJ
2953
2954if test -f ../intl/config.intl; then
2955 . ../intl/config.intl
20e95c23
DJ
2956fi
2957echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2958echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2959if test x"$USE_NLS" != xyes; then
b4e70030
JB
2960 echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6
c906108c 2962else
20e95c23
DJ
2963 echo "$as_me:$LINENO: result: yes" >&5
2964echo "${ECHO_T}yes" >&6
c906108c 2965
20e95c23
DJ
2966cat >>confdefs.h <<\_ACEOF
2967#define ENABLE_NLS 1
bec39cab 2968_ACEOF
c906108c 2969
c906108c 2970
20e95c23
DJ
2971 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2972echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2973 # Look for .po and .gmo files in the source directory.
2974 CATALOGS=
2975 XLINGUAS=
2976 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2977 # If there aren't any .gmo files the shell will give us the
2978 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2979 # weeded out.
2980 case "$cat" in *\**)
2981 continue;;
2982 esac
2983 # The quadruple backslash is collapsed to a double backslash
2984 # by the backticks, then collapsed again by the double quotes,
2985 # leaving us with one backslash in the sed expression (right
2986 # before the dot that mustn't act as a wildcard).
2987 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2988 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2989 # The user is allowed to set LINGUAS to a list of languages to
2990 # install catalogs for. If it's empty that means "all of them."
2991 if test "x$LINGUAS" = x; then
2992 CATALOGS="$CATALOGS $cat"
2993 XLINGUAS="$XLINGUAS $lang"
2994 else
2995 case "$LINGUAS" in *$lang*)
2996 CATALOGS="$CATALOGS $cat"
2997 XLINGUAS="$XLINGUAS $lang"
2998 ;;
2999 esac
3000 fi
3001 done
3002 LINGUAS="$XLINGUAS"
3003 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3004echo "${ECHO_T}$LINGUAS" >&6
c906108c 3005
c906108c 3006
20e95c23 3007 DATADIRNAME=share
c906108c 3008
20e95c23 3009 INSTOBJEXT=.mo
c906108c 3010
20e95c23
DJ
3011 GENCAT=gencat
3012
3013 CATOBJEXT=.gmo
3014
3015fi
3016
3017localedir='${datadir}/locale'
c906108c 3018
bec39cab 3019
20e95c23 3020if test x"$USE_NLS" = xyes; then
bec39cab
AC
3021 CONFIG_ALL="$CONFIG_ALL all-po"
3022 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3023 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3024 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3025fi
3026
3027PACKAGE=gdb
3028
3029cat >>confdefs.h <<_ACEOF
3030#define PACKAGE "$PACKAGE"
3031_ACEOF
3032
3033
3034
3035debugdir=${libdir}/debug
3036
3037
b4e70030 3038# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 3039if test "${with_separate_debug_dir+set}" = set; then
b4e70030
JB
3040 withval="$with_separate_debug_dir"
3041 debugdir="${withval}"
3042fi;
bec39cab
AC
3043
3044
3045 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3046 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3047 ac_define_dir=`eval echo $debugdir`
3048 ac_define_dir=`eval echo $ac_define_dir`
3049
3050cat >>confdefs.h <<_ACEOF
3051#define DEBUGDIR "$ac_define_dir"
3052_ACEOF
3053
3054
3055#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3056
aa28a74e
DJ
3057if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3058 if test "x$prefix" = xNONE; then
3059 test_prefix=/usr/local
3060 else
3061 test_prefix=$prefix
3062 fi
3063else
3064 test_prefix=$exec_prefix
3065fi
3066case ${debugdir} in
3067"${test_prefix}"|"${test_prefix}/"*|\
3068'${exec_prefix}'|'${exec_prefix}/'*)
3069
3070cat >>confdefs.h <<\_ACEOF
3071#define DEBUGDIR_RELOCATABLE 1
3072_ACEOF
3073
3074 ;;
3075esac
3076
b4e70030
JB
3077
3078
bec39cab
AC
3079subdirs="$subdirs doc testsuite"
3080
3081
121ce6e5
DJ
3082# Provide defaults for some variables set by the per-host and per-target
3083# configuration.
3084gdb_host_obs=posix-hdep.o
3085
771b4502
UW
3086if test "${target}" = "${host}"; then
3087 gdb_native=yes
3088else
3089 gdb_native=no
3090fi
3091
bec39cab
AC
3092. $srcdir/configure.host
3093
3094. $srcdir/configure.tgt
3095
3096# Fetch the default architecture and default target vector from BFD.
3097targ=$target; . $srcdir/../bfd/config.bfd
3098
3099# We only want the first architecture, so strip off the others if
3100# there is more than one.
3101targ_archs=`echo $targ_archs | sed 's/ .*//'`
3102
3103if test "x$targ_archs" != x; then
3104
3105cat >>confdefs.h <<_ACEOF
3106#define DEFAULT_BFD_ARCH $targ_archs
3107_ACEOF
3108
3109fi
3110if test "x$targ_defvec" != x; then
3111
3112cat >>confdefs.h <<_ACEOF
3113#define DEFAULT_BFD_VEC $targ_defvec
3114_ACEOF
3115
3116fi
3117
3118test "$program_prefix" != NONE &&
b4e70030 3119 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
3120# Use a double $ so make ignores it.
3121test "$program_suffix" != NONE &&
b4e70030 3122 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
3123# Double any \ or $. echo might interpret backslashes.
3124# By default was `s,x,x', remove it if useless.
3125cat <<\_ACEOF >conftest.sed
3126s/[\\$]/&&/g;s/;s,x,x,$//
3127_ACEOF
3128program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 3129rm conftest.sed
bec39cab
AC
3130
3131
3132# The CLI cannot be disabled yet, but may be in the future.
3133
3134# Enable CLI.
b4e70030 3135# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 3136if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
3137 enableval="$enable_gdbcli"
3138 case $enableval in
bec39cab
AC
3139 yes)
3140 ;;
3141 no)
3142 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3143echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3144 { (exit 1); exit 1; }; } ;;
3145 *)
3146 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3147echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3148 { (exit 1); exit 1; }; } ;;
3149 esac
3150else
3151 enable_gdbcli=yes
b4e70030 3152fi;
bec39cab
AC
3153if test x"$enable_gdbcli" = xyes; then
3154 if test -d $srcdir/cli; then
3155 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3156 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3157 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3158 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3159 fi
3160fi
3161
3162# Enable MI.
b4e70030 3163# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 3164if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
3165 enableval="$enable_gdbmi"
3166 case $enableval in
bec39cab
AC
3167 yes | no)
3168 ;;
3169 *)
3170 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3171echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3172 { (exit 1); exit 1; }; } ;;
3173 esac
3174else
3175 enable_gdbmi=yes
b4e70030 3176fi;
bec39cab
AC
3177if test x"$enable_gdbmi" = xyes; then
3178 if test -d $srcdir/mi; then
3179 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3180 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3181 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3182 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3183 fi
3184fi
3185
3186# Enable TUI.
b4e70030 3187# Check whether --enable-tui or --disable-tui was given.
bec39cab 3188if test "${enable_tui+set}" = set; then
b4e70030
JB
3189 enableval="$enable_tui"
3190 case $enableval in
bec39cab
AC
3191 yes | no)
3192 ;;
3193 *)
3194 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3195echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3196 { (exit 1); exit 1; }; } ;;
3197 esac
3198else
3199 enable_tui=yes
b4e70030 3200fi;
bec39cab
AC
3201
3202# Enable gdbtk.
b4e70030 3203# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 3204if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
3205 enableval="$enable_gdbtk"
3206 case $enableval in
bec39cab
AC
3207 yes | no)
3208 ;;
3209 *)
3210 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3211echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3212 { (exit 1); exit 1; }; } ;;
3213 esac
3214else
04ac69aa 3215 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
3216 enable_gdbtk=yes
3217 else
3218 enable_gdbtk=no
3219 fi
b4e70030 3220fi;
bec39cab
AC
3221# We unconditionally disable gdbtk tests on selected platforms.
3222case $host_os in
3223 go32* | windows*)
3224 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3225echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3226 enable_gdbtk=no ;;
3227esac
3228
3229# Libunwind support.
20e95c23
DJ
3230echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3231echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3232if test "${ac_cv_header_stdc+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235 cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
3241#include <stdlib.h>
3242#include <stdarg.h>
3243#include <string.h>
3244#include <float.h>
3245
3246int
3247main ()
3248{
3249
3250 ;
3251 return 0;
3252}
3253_ACEOF
3254rm -f conftest.$ac_objext
3255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256 (eval $ac_compile) 2>conftest.er1
3257 ac_status=$?
3258 grep -v '^ *+' conftest.er1 >conftest.err
3259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -z "$ac_c_werror_flag"
3264 || test ! -s conftest.err'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; } &&
3270 { ac_try='test -s conftest.$ac_objext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 ac_cv_header_stdc=yes
3277else
3278 echo "$as_me: failed program was:" >&5
3279sed 's/^/| /' conftest.$ac_ext >&5
3280
3281ac_cv_header_stdc=no
3282fi
3283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3284
3285if test $ac_cv_header_stdc = yes; then
3286 # SunOS 4.x string.h does not declare mem*, 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 <string.h>
3294
3295_ACEOF
3296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3308 cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h. */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h. */
3314#include <stdlib.h>
3315
3316_ACEOF
3317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3318 $EGREP "free" >/dev/null 2>&1; then
3319 :
3320else
3321 ac_cv_header_stdc=no
3322fi
3323rm -f conftest*
3324
3325fi
3326
3327if test $ac_cv_header_stdc = yes; then
3328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3329 if test "$cross_compiling" = yes; then
3330 :
3331else
3332 cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h. */
3338#include <ctype.h>
3339#if ((' ' & 0x0FF) == 0x020)
3340# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3341# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3342#else
3343# define ISLOWER(c) \
3344 (('a' <= (c) && (c) <= 'i') \
3345 || ('j' <= (c) && (c) <= 'r') \
3346 || ('s' <= (c) && (c) <= 'z'))
3347# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3348#endif
3349
3350#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3351int
3352main ()
3353{
3354 int i;
3355 for (i = 0; i < 256; i++)
3356 if (XOR (islower (i), ISLOWER (i))
3357 || toupper (i) != TOUPPER (i))
3358 exit(2);
3359 exit (0);
3360}
3361_ACEOF
3362rm -f conftest$ac_exeext
3363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3364 (eval $ac_link) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3373 :
3374else
3375 echo "$as_me: program exited with status $ac_status" >&5
3376echo "$as_me: failed program was:" >&5
3377sed 's/^/| /' conftest.$ac_ext >&5
3378
3379( exit $ac_status )
3380ac_cv_header_stdc=no
3381fi
3382rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3383fi
3384fi
3385fi
3386echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3387echo "${ECHO_T}$ac_cv_header_stdc" >&6
3388if test $ac_cv_header_stdc = yes; then
3389
3390cat >>confdefs.h <<\_ACEOF
3391#define STDC_HEADERS 1
3392_ACEOF
3393
3394fi
3395
3396# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3407 inttypes.h stdint.h unistd.h
3408do
3409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3410echo "$as_me:$LINENO: checking for $ac_header" >&5
3411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3412if eval "test \"\${$as_ac_Header+set}\" = set"; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421$ac_includes_default
3422
3423#include <$ac_header>
3424_ACEOF
3425rm -f conftest.$ac_objext
3426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427 (eval $ac_compile) 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag"
3435 || test ! -s conftest.err'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest.$ac_objext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 eval "$as_ac_Header=yes"
3448else
3449 echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452eval "$as_ac_Header=no"
3453fi
3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455fi
3456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3458if test `eval echo '${'$as_ac_Header'}'` = yes; then
3459 cat >>confdefs.h <<_ACEOF
3460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3461_ACEOF
3462
3463fi
3464
3465done
3466
3467
bec39cab 3468
b4e70030 3469# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3470if test "${with_libunwind+set}" = set; then
b4e70030
JB
3471 withval="$with_libunwind"
3472 case "${withval}" in
bec39cab
AC
3473 yes) enable_libunwind=yes ;;
3474 no) enable_libunwind=no ;;
3475 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3476echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3477 { (exit 1); exit 1; }; } ;;
3478esac
3479else
3480
3481
3482for ac_header in libunwind.h
3483do
3484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3485if eval "test \"\${$as_ac_Header+set}\" = set"; then
3486 echo "$as_me:$LINENO: checking for $ac_header" >&5
3487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3488if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490fi
b4e70030
JB
3491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3493else
3494 # Is the header compilable?
b4e70030
JB
3495echo "$as_me:$LINENO: checking $ac_header usability" >&5
3496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3497cat >conftest.$ac_ext <<_ACEOF
3498/* confdefs.h. */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h. */
3503$ac_includes_default
3504#include <$ac_header>
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
b4e70030
JB
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
bec39cab
AC
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_header_compiler=yes
3529else
3530 echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
b4e70030 3533ac_header_compiler=no
bec39cab
AC
3534fi
3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3536echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3537echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3538
3539# Is the header present?
b4e70030
JB
3540echo "$as_me:$LINENO: checking $ac_header presence" >&5
3541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3542cat >conftest.$ac_ext <<_ACEOF
3543/* confdefs.h. */
3544_ACEOF
3545cat confdefs.h >>conftest.$ac_ext
3546cat >>conftest.$ac_ext <<_ACEOF
3547/* end confdefs.h. */
3548#include <$ac_header>
3549_ACEOF
3550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561 else
3562 ac_cpp_err=
3563 fi
3564else
3565 ac_cpp_err=yes
3566fi
3567if test -z "$ac_cpp_err"; then
3568 ac_header_preproc=yes
3569else
3570 echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573 ac_header_preproc=no
3574fi
3575rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3576echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3577echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3578
3579# So? What about this header?
3580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3581 yes:no: )
3582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3586 ac_header_preproc=yes
3587 ;;
3588 no:yes:* )
3589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3601 (
3602 cat <<\_ASBOX
3603## ------------------------------------------ ##
3604## Report this to the AC_PACKAGE_NAME lists. ##
3605## ------------------------------------------ ##
3606_ASBOX
3607 ) |
3608 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3609 ;;
3610esac
b4e70030
JB
3611echo "$as_me:$LINENO: checking for $ac_header" >&5
3612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3613if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 eval "$as_ac_Header=\$ac_header_preproc"
3617fi
b4e70030
JB
3618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3620
3621fi
3622if test `eval echo '${'$as_ac_Header'}'` = yes; then
3623 cat >>confdefs.h <<_ACEOF
3624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3625_ACEOF
3626
3627fi
3628
3629done
3630
3631
3632for ac_header in libunwind-ia64.h
3633do
3634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3635if eval "test \"\${$as_ac_Header+set}\" = set"; then
3636 echo "$as_me:$LINENO: checking for $ac_header" >&5
3637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3638if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640fi
b4e70030
JB
3641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3643else
3644 # Is the header compilable?
b4e70030
JB
3645echo "$as_me:$LINENO: checking $ac_header usability" >&5
3646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3647cat >conftest.$ac_ext <<_ACEOF
3648/* confdefs.h. */
3649_ACEOF
3650cat confdefs.h >>conftest.$ac_ext
3651cat >>conftest.$ac_ext <<_ACEOF
3652/* end confdefs.h. */
3653$ac_includes_default
3654#include <$ac_header>
3655_ACEOF
3656rm -f conftest.$ac_objext
3657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
b4e70030
JB
3665 { ac_try='test -z "$ac_c_werror_flag"
3666 || test ! -s conftest.err'
bec39cab
AC
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try='test -s conftest.$ac_objext'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_header_compiler=yes
3679else
3680 echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
b4e70030 3683ac_header_compiler=no
bec39cab
AC
3684fi
3685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3687echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3688
3689# Is the header present?
b4e70030
JB
3690echo "$as_me:$LINENO: checking $ac_header presence" >&5
3691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3692cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h. */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h. */
3698#include <$ac_header>
3699_ACEOF
3700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } >/dev/null; then
3708 if test -s conftest.err; then
3709 ac_cpp_err=$ac_c_preproc_warn_flag
3710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3711 else
3712 ac_cpp_err=
3713 fi
3714else
3715 ac_cpp_err=yes
3716fi
3717if test -z "$ac_cpp_err"; then
3718 ac_header_preproc=yes
3719else
3720 echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 ac_header_preproc=no
3724fi
3725rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3727echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3728
3729# So? What about this header?
3730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3731 yes:no: )
3732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3735echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3736 ac_header_preproc=yes
3737 ;;
3738 no:yes:* )
3739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3742echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3744echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3746echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3750echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3751 (
3752 cat <<\_ASBOX
3753## ------------------------------------------ ##
3754## Report this to the AC_PACKAGE_NAME lists. ##
3755## ------------------------------------------ ##
3756_ASBOX
3757 ) |
3758 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3759 ;;
3760esac
b4e70030
JB
3761echo "$as_me:$LINENO: checking for $ac_header" >&5
3762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3763if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766 eval "$as_ac_Header=\$ac_header_preproc"
3767fi
b4e70030
JB
3768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3770
3771fi
3772if test `eval echo '${'$as_ac_Header'}'` = yes; then
3773 cat >>confdefs.h <<_ACEOF
3774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3775_ACEOF
3776
3777fi
3778
3779done
3780
3781 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3782 enable_libunwind=yes;
3783 fi
3784
b4e70030 3785fi;
bec39cab
AC
3786
3787if test x"$enable_libunwind" = xyes; then
3788
3789for ac_header in libunwind.h
3790do
3791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3792if eval "test \"\${$as_ac_Header+set}\" = set"; then
3793 echo "$as_me:$LINENO: checking for $ac_header" >&5
3794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3795if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797fi
b4e70030
JB
3798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3800else
3801 # Is the header compilable?
b4e70030
JB
3802echo "$as_me:$LINENO: checking $ac_header usability" >&5
3803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3804cat >conftest.$ac_ext <<_ACEOF
3805/* confdefs.h. */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h. */
3810$ac_includes_default
3811#include <$ac_header>
3812_ACEOF
3813rm -f conftest.$ac_objext
3814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
b4e70030
JB
3822 { ac_try='test -z "$ac_c_werror_flag"
3823 || test ! -s conftest.err'
bec39cab
AC
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 (eval $ac_try) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3835 ac_header_compiler=yes
3836else
3837 echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
b4e70030 3840ac_header_compiler=no
bec39cab
AC
3841fi
3842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3844echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3845
3846# Is the header present?
b4e70030
JB
3847echo "$as_me:$LINENO: checking $ac_header presence" >&5
3848echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3849cat >conftest.$ac_ext <<_ACEOF
3850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h. */
3855#include <$ac_header>
3856_ACEOF
3857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } >/dev/null; then
3865 if test -s conftest.err; then
3866 ac_cpp_err=$ac_c_preproc_warn_flag
3867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3868 else
3869 ac_cpp_err=
3870 fi
3871else
3872 ac_cpp_err=yes
3873fi
3874if test -z "$ac_cpp_err"; then
3875 ac_header_preproc=yes
3876else
3877 echo "$as_me: failed program was:" >&5
3878sed 's/^/| /' conftest.$ac_ext >&5
3879
3880 ac_header_preproc=no
3881fi
3882rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3884echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3885
3886# So? What about this header?
3887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3888 yes:no: )
3889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3890echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3892echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3893 ac_header_preproc=yes
3894 ;;
3895 no:yes:* )
3896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3899echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3901echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3903echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3905echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3907echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3908 (
3909 cat <<\_ASBOX
3910## ------------------------------------------ ##
3911## Report this to the AC_PACKAGE_NAME lists. ##
3912## ------------------------------------------ ##
3913_ASBOX
3914 ) |
3915 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3916 ;;
3917esac
b4e70030
JB
3918echo "$as_me:$LINENO: checking for $ac_header" >&5
3919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3920if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
3923 eval "$as_ac_Header=\$ac_header_preproc"
3924fi
b4e70030
JB
3925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3927
3928fi
3929if test `eval echo '${'$as_ac_Header'}'` = yes; then
3930 cat >>confdefs.h <<_ACEOF
3931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3932_ACEOF
3933
3934fi
3935
3936done
3937
3938
3939for ac_header in libunwind-ia64.h
3940do
3941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3942if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943 echo "$as_me:$LINENO: checking for $ac_header" >&5
3944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3945if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947fi
b4e70030
JB
3948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3950else
3951 # Is the header compilable?
b4e70030
JB
3952echo "$as_me:$LINENO: checking $ac_header usability" >&5
3953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3954cat >conftest.$ac_ext <<_ACEOF
3955/* confdefs.h. */
3956_ACEOF
3957cat confdefs.h >>conftest.$ac_ext
3958cat >>conftest.$ac_ext <<_ACEOF
3959/* end confdefs.h. */
3960$ac_includes_default
3961#include <$ac_header>
3962_ACEOF
3963rm -f conftest.$ac_objext
3964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
b4e70030
JB
3972 { ac_try='test -z "$ac_c_werror_flag"
3973 || test ! -s conftest.err'
bec39cab
AC
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 (eval $ac_try) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_header_compiler=yes
3986else
3987 echo "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
b4e70030 3990ac_header_compiler=no
bec39cab
AC
3991fi
3992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3994echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3995
3996# Is the header present?
b4e70030
JB
3997echo "$as_me:$LINENO: checking $ac_header presence" >&5
3998echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3999cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
4005#include <$ac_header>
4006_ACEOF
4007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } >/dev/null; then
4015 if test -s conftest.err; then
4016 ac_cpp_err=$ac_c_preproc_warn_flag
4017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4018 else
4019 ac_cpp_err=
4020 fi
4021else
4022 ac_cpp_err=yes
4023fi
4024if test -z "$ac_cpp_err"; then
4025 ac_header_preproc=yes
4026else
4027 echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 ac_header_preproc=no
4031fi
4032rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4034echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4035
4036# So? What about this header?
4037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4038 yes:no: )
4039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4042echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4043 ac_header_preproc=yes
4044 ;;
4045 no:yes:* )
4046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4047echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4049echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4051echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4053echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4057echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4058 (
4059 cat <<\_ASBOX
4060## ------------------------------------------ ##
4061## Report this to the AC_PACKAGE_NAME lists. ##
4062## ------------------------------------------ ##
4063_ASBOX
4064 ) |
4065 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4066 ;;
4067esac
b4e70030
JB
4068echo "$as_me:$LINENO: checking for $ac_header" >&5
4069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4070if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073 eval "$as_ac_Header=\$ac_header_preproc"
4074fi
b4e70030
JB
4075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4077
4078fi
4079if test `eval echo '${'$as_ac_Header'}'` = yes; then
4080 cat >>confdefs.h <<_ACEOF
4081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4082_ACEOF
4083
4084fi
4085
4086done
4087
60ca704f
SE
4088
4089cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4090#define HAVE_LIBUNWIND 1
4091_ACEOF
4092
4093 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4094 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4095 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4096fi
4097
4098# Profiling support.
b4e70030 4099# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4100if test "${enable_profiling+set}" = set; then
b4e70030
JB
4101 enableval="$enable_profiling"
4102 case $enableval in
bec39cab
AC
4103 yes | no)
4104 ;;
4105 *)
4106 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4107echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4108 { (exit 1); exit 1; }; } ;;
4109 esac
4110else
4111 enable_profiling=no
b4e70030 4112fi;
bec39cab
AC
4113
4114
4115
4116for ac_func in monstartup _mcleanup
4117do
4118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4119echo "$as_me:$LINENO: checking for $ac_func" >&5
4120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4121if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 cat >conftest.$ac_ext <<_ACEOF
4125/* confdefs.h. */
4126_ACEOF
4127cat confdefs.h >>conftest.$ac_ext
4128cat >>conftest.$ac_ext <<_ACEOF
4129/* end confdefs.h. */
4130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4132#define $ac_func innocuous_$ac_func
4133
4134/* System header to define __stub macros and hopefully few prototypes,
4135 which can conflict with char $ac_func (); below.
4136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 <limits.h> exists even on freestanding compilers. */
4138
4139#ifdef __STDC__
4140# include <limits.h>
4141#else
4142# include <assert.h>
4143#endif
4144
4145#undef $ac_func
4146
b4e70030 4147/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4148#ifdef __cplusplus
4149extern "C"
b4e70030 4150{
bec39cab 4151#endif
b4e70030
JB
4152/* We use char because int might match the return type of a gcc2
4153 builtin and then its argument prototype would still apply. */
bec39cab
AC
4154char $ac_func ();
4155/* The GNU C library defines this for functions which it implements
4156 to always fail with ENOSYS. Some functions are actually named
4157 something starting with __ and the normal name is an alias. */
b4e70030 4158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4159choke me
b4e70030
JB
4160#else
4161char (*f) () = $ac_func;
4162#endif
4163#ifdef __cplusplus
4164}
bec39cab
AC
4165#endif
4166
4167int
4168main ()
4169{
b4e70030 4170return f != $ac_func;
bec39cab
AC
4171 ;
4172 return 0;
4173}
4174_ACEOF
4175rm -f conftest.$ac_objext conftest$ac_exeext
4176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177 (eval $ac_link) 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
b4e70030
JB
4184 { ac_try='test -z "$ac_c_werror_flag"
4185 || test ! -s conftest.err'
bec39cab
AC
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest$ac_exeext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 eval "$as_ac_var=yes"
4198else
4199 echo "$as_me: failed program was:" >&5
4200sed 's/^/| /' conftest.$ac_ext >&5
4201
b4e70030 4202eval "$as_ac_var=no"
bec39cab
AC
4203fi
4204rm -f conftest.err conftest.$ac_objext \
4205 conftest$ac_exeext conftest.$ac_ext
4206fi
b4e70030
JB
4207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4209if test `eval echo '${'$as_ac_var'}'` = yes; then
4210 cat >>confdefs.h <<_ACEOF
4211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4212_ACEOF
4213
4214fi
4215done
4216
b4e70030
JB
4217echo "$as_me:$LINENO: checking for _etext" >&5
4218echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4219if test "${ac_cv_var__etext+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221else
4222 cat >conftest.$ac_ext <<_ACEOF
4223/* confdefs.h. */
4224_ACEOF
4225cat confdefs.h >>conftest.$ac_ext
4226cat >>conftest.$ac_ext <<_ACEOF
4227/* end confdefs.h. */
4228#include <stdlib.h>
4229extern char _etext;
4230
4231int
4232main ()
4233{
4234free (&_etext);
4235 ;
4236 return 0;
4237}
4238_ACEOF
4239rm -f conftest.$ac_objext conftest$ac_exeext
4240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241 (eval $ac_link) 2>conftest.er1
4242 ac_status=$?
4243 grep -v '^ *+' conftest.er1 >conftest.err
4244 rm -f conftest.er1
4245 cat conftest.err >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } &&
b4e70030
JB
4248 { ac_try='test -z "$ac_c_werror_flag"
4249 || test ! -s conftest.err'
bec39cab
AC
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest$ac_exeext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 (eval $ac_try) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 ac_cv_var__etext=yes
4262else
4263 echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
b4e70030 4266ac_cv_var__etext=no
bec39cab
AC
4267fi
4268rm -f conftest.err conftest.$ac_objext \
4269 conftest$ac_exeext conftest.$ac_ext
4270fi
b4e70030
JB
4271echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4272echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4273if test $ac_cv_var__etext = yes; then
4274
4275cat >>confdefs.h <<\_ACEOF
4276#define HAVE__ETEXT 1
4277_ACEOF
4278
4279fi
4280if test "$enable_profiling" = yes ; then
4281 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4282 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4283echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4284 { (exit 1); exit 1; }; }
4285 fi
4286 PROFILE_CFLAGS=-pg
4287 OLD_CFLAGS="$CFLAGS"
4288 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4289
b4e70030
JB
4290 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4291echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4292if test "${ac_cv_cc_supports_pg+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4294else
bec39cab
AC
4295 cat >conftest.$ac_ext <<_ACEOF
4296/* confdefs.h. */
4297_ACEOF
4298cat confdefs.h >>conftest.$ac_ext
4299cat >>conftest.$ac_ext <<_ACEOF
4300/* end confdefs.h. */
4301
4302int
4303main ()
4304{
4305int x;
4306 ;
4307 return 0;
4308}
4309_ACEOF
4310rm -f conftest.$ac_objext
4311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4312 (eval $ac_compile) 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
b4e70030
JB
4319 { ac_try='test -z "$ac_c_werror_flag"
4320 || test ! -s conftest.err'
bec39cab
AC
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 (eval $ac_try) 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; } &&
4326 { ac_try='test -s conftest.$ac_objext'
4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 (eval $ac_try) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4332 ac_cv_cc_supports_pg=yes
4333else
4334 echo "$as_me: failed program was:" >&5
4335sed 's/^/| /' conftest.$ac_ext >&5
4336
b4e70030 4337ac_cv_cc_supports_pg=no
bec39cab
AC
4338fi
4339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4340fi
b4e70030
JB
4341echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4342echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4343
4344 if test $ac_cv_cc_supports_pg = no; then
4345 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4346echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4347 { (exit 1); exit 1; }; }
4348 fi
4349
4350 CFLAGS="$OLD_CFLAGS"
4351fi
4352
4353# --------------------- #
4354# Checks for programs. #
4355# --------------------- #
4356
4357for ac_prog in gawk mawk nawk awk
4358do
4359 # Extract the first word of "$ac_prog", so it can be a program name with args.
4360set dummy $ac_prog; ac_word=$2
b4e70030
JB
4361echo "$as_me:$LINENO: checking for $ac_word" >&5
4362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4363if test "${ac_cv_prog_AWK+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 if test -n "$AWK"; then
4367 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4376 ac_cv_prog_AWK="$ac_prog"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380done
4381done
4382
4383fi
4384fi
4385AWK=$ac_cv_prog_AWK
4386if test -n "$AWK"; then
b4e70030
JB
4387 echo "$as_me:$LINENO: result: $AWK" >&5
4388echo "${ECHO_T}$AWK" >&6
bec39cab 4389else
b4e70030
JB
4390 echo "$as_me:$LINENO: result: no" >&5
4391echo "${ECHO_T}no" >&6
bec39cab
AC
4392fi
4393
4394 test -n "$AWK" && break
4395done
4396
4397# Find a good install program. We prefer a C program (faster),
4398# so one script is as good as another. But avoid the broken or
4399# incompatible versions:
4400# SysV /etc/install, /usr/sbin/install
4401# SunOS /usr/etc/install
4402# IRIX /sbin/install
4403# AIX /bin/install
4404# AmigaOS /C/install, which installs bootblocks on floppy discs
4405# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4406# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4407# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4408# OS/2's system install, which has a completely different semantic
4409# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4410echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4411echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4412if test -z "$INSTALL"; then
4413if test "${ac_cv_path_install+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 # Account for people who put trailing slashes in PATH elements.
4422case $as_dir/ in
4423 ./ | .// | /cC/* | \
4424 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4425 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4426 /usr/ucb/* ) ;;
c906108c 4427 *)
bec39cab
AC
4428 # OSF1 and SCO ODT 3.0 have their own names for install.
4429 # Don't use installbsd from OSF since it installs stuff as root
4430 # by default.
4431 for ac_prog in ginstall scoinst install; do
4432 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4433 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4434 if test $ac_prog = install &&
4435 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4436 # AIX install. It has an incompatible calling convention.
4437 :
4438 elif test $ac_prog = install &&
4439 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4440 # program-specific install script used by HP pwplus--don't use.
4441 :
4442 else
4443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4444 break 3
4445 fi
4446 fi
4447 done
4448 done
4449 ;;
c906108c 4450esac
bec39cab
AC
4451done
4452
4453
4454fi
4455 if test "${ac_cv_path_install+set}" = set; then
4456 INSTALL=$ac_cv_path_install
4457 else
b4e70030
JB
4458 # As a last resort, use the slow shell script. We don't cache a
4459 # path for INSTALL within a source directory, because that will
bec39cab 4460 # break other packages using the cache if that directory is
b4e70030 4461 # removed, or if the path is relative.
bec39cab
AC
4462 INSTALL=$ac_install_sh
4463 fi
4464fi
b4e70030
JB
4465echo "$as_me:$LINENO: result: $INSTALL" >&5
4466echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4467
4468# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4469# It thinks the first close brace ends the variable substitution.
4470test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4471
4472test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4473
4474test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4475
b4e70030
JB
4476echo "$as_me:$LINENO: checking whether ln -s works" >&5
4477echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4478LN_S=$as_ln_s
4479if test "$LN_S" = "ln -s"; then
b4e70030
JB
4480 echo "$as_me:$LINENO: result: yes" >&5
4481echo "${ECHO_T}yes" >&6
bec39cab 4482else
b4e70030
JB
4483 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4484echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4485fi
4486
4487if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4489set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4490echo "$as_me:$LINENO: checking for $ac_word" >&5
4491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4492if test "${ac_cv_prog_RANLIB+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495 if test -n "$RANLIB"; then
4496 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4497else
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4505 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
4510done
4511
4512fi
4513fi
4514RANLIB=$ac_cv_prog_RANLIB
4515if test -n "$RANLIB"; then
b4e70030
JB
4516 echo "$as_me:$LINENO: result: $RANLIB" >&5
4517echo "${ECHO_T}$RANLIB" >&6
bec39cab 4518else
b4e70030
JB
4519 echo "$as_me:$LINENO: result: no" >&5
4520echo "${ECHO_T}no" >&6
bec39cab
AC
4521fi
4522
4523fi
4524if test -z "$ac_cv_prog_RANLIB"; then
4525 ac_ct_RANLIB=$RANLIB
4526 # Extract the first word of "ranlib", so it can be a program name with args.
4527set dummy ranlib; ac_word=$2
b4e70030
JB
4528echo "$as_me:$LINENO: checking for $ac_word" >&5
4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4530if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533 if test -n "$ac_ct_RANLIB"; then
4534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4543 ac_cv_prog_ac_ct_RANLIB="ranlib"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547done
4548done
4549
b4e70030 4550 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4551fi
4552fi
4553ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4554if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4555 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4556echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4557else
b4e70030
JB
4558 echo "$as_me:$LINENO: result: no" >&5
4559echo "${ECHO_T}no" >&6
bec39cab
AC
4560fi
4561
b4e70030 4562 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4563else
4564 RANLIB="$ac_cv_prog_RANLIB"
4565fi
4566
4567for ac_prog in 'bison -y' byacc
4568do
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570set dummy $ac_prog; ac_word=$2
b4e70030
JB
4571echo "$as_me:$LINENO: checking for $ac_word" >&5
4572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4573if test "${ac_cv_prog_YACC+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576 if test -n "$YACC"; then
4577 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4578else
4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4586 ac_cv_prog_YACC="$ac_prog"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590done
4591done
4592
4593fi
4594fi
4595YACC=$ac_cv_prog_YACC
4596if test -n "$YACC"; then
b4e70030
JB
4597 echo "$as_me:$LINENO: result: $YACC" >&5
4598echo "${ECHO_T}$YACC" >&6
bec39cab 4599else
b4e70030
JB
4600 echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6
bec39cab
AC
4602fi
4603
4604 test -n "$YACC" && break
4605done
4606test -n "$YACC" || YACC="yacc"
4607
4608
4609if test -n "$ac_tool_prefix"; then
4610 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4611set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4612echo "$as_me:$LINENO: checking for $ac_word" >&5
4613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4614if test "${ac_cv_prog_AR+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617 if test -n "$AR"; then
4618 ac_cv_prog_AR="$AR" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4627 ac_cv_prog_AR="${ac_tool_prefix}ar"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632done
4633
4634fi
4635fi
4636AR=$ac_cv_prog_AR
4637if test -n "$AR"; then
b4e70030
JB
4638 echo "$as_me:$LINENO: result: $AR" >&5
4639echo "${ECHO_T}$AR" >&6
bec39cab 4640else
b4e70030
JB
4641 echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6
bec39cab
AC
4643fi
4644
4645fi
4646if test -z "$ac_cv_prog_AR"; then
4647 ac_ct_AR=$AR
4648 # Extract the first word of "ar", so it can be a program name with args.
4649set dummy ar; ac_word=$2
b4e70030
JB
4650echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4652if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 if test -n "$ac_ct_AR"; then
4656 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4665 ac_cv_prog_ac_ct_AR="ar"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669done
4670done
4671
4672fi
4673fi
4674ac_ct_AR=$ac_cv_prog_ac_ct_AR
4675if test -n "$ac_ct_AR"; then
b4e70030
JB
4676 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4677echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4678else
b4e70030
JB
4679 echo "$as_me:$LINENO: result: no" >&5
4680echo "${ECHO_T}no" >&6
bec39cab
AC
4681fi
4682
b4e70030 4683 AR=$ac_ct_AR
bec39cab
AC
4684else
4685 AR="$ac_cv_prog_AR"
4686fi
4687
4688if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4690set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4691echo "$as_me:$LINENO: checking for $ac_word" >&5
4692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4693if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696 if test -n "$DLLTOOL"; then
4697 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4698else
4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4706 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710done
4711done
4712
4713fi
4714fi
4715DLLTOOL=$ac_cv_prog_DLLTOOL
4716if test -n "$DLLTOOL"; then
b4e70030
JB
4717 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4718echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4719else
b4e70030
JB
4720 echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6
bec39cab
AC
4722fi
4723
4724fi
4725if test -z "$ac_cv_prog_DLLTOOL"; then
4726 ac_ct_DLLTOOL=$DLLTOOL
4727 # Extract the first word of "dlltool", so it can be a program name with args.
4728set dummy dlltool; ac_word=$2
b4e70030
JB
4729echo "$as_me:$LINENO: checking for $ac_word" >&5
4730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4731if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733else
4734 if test -n "$ac_ct_DLLTOOL"; then
4735 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4744 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748done
4749done
4750
4751fi
4752fi
4753ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4754if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4755 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4756echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4757else
b4e70030
JB
4758 echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6
bec39cab
AC
4760fi
4761
b4e70030 4762 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4763else
4764 DLLTOOL="$ac_cv_prog_DLLTOOL"
4765fi
4766
4767if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4769set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4770echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4772if test "${ac_cv_prog_WINDRES+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775 if test -n "$WINDRES"; then
4776 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4777else
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4785 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4788 fi
4789done
4790done
4791
4792fi
4793fi
4794WINDRES=$ac_cv_prog_WINDRES
4795if test -n "$WINDRES"; then
b4e70030
JB
4796 echo "$as_me:$LINENO: result: $WINDRES" >&5
4797echo "${ECHO_T}$WINDRES" >&6
bec39cab 4798else
b4e70030
JB
4799 echo "$as_me:$LINENO: result: no" >&5
4800echo "${ECHO_T}no" >&6
bec39cab
AC
4801fi
4802
4803fi
4804if test -z "$ac_cv_prog_WINDRES"; then
4805 ac_ct_WINDRES=$WINDRES
4806 # Extract the first word of "windres", so it can be a program name with args.
4807set dummy windres; ac_word=$2
b4e70030
JB
4808echo "$as_me:$LINENO: checking for $ac_word" >&5
4809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4810if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812else
4813 if test -n "$ac_ct_WINDRES"; then
4814 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4823 ac_cv_prog_ac_ct_WINDRES="windres"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827done
4828done
4829
4830fi
4831fi
4832ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4833if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4834 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4835echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4836else
b4e70030
JB
4837 echo "$as_me:$LINENO: result: no" >&5
4838echo "${ECHO_T}no" >&6
c906108c 4839fi
bec39cab 4840
b4e70030 4841 WINDRES=$ac_ct_WINDRES
c906108c 4842else
bec39cab 4843 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4844fi
4845
bec39cab
AC
4846
4847# Needed for GNU/Hurd.
4848if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4850set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4851echo "$as_me:$LINENO: checking for $ac_word" >&5
4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4853if test "${ac_cv_prog_MIG+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4855else
bec39cab
AC
4856 if test -n "$MIG"; then
4857 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4866 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871done
4872
c906108c 4873fi
bec39cab
AC
4874fi
4875MIG=$ac_cv_prog_MIG
4876if test -n "$MIG"; then
b4e70030
JB
4877 echo "$as_me:$LINENO: result: $MIG" >&5
4878echo "${ECHO_T}$MIG" >&6
c906108c 4879else
b4e70030
JB
4880 echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
c906108c
SS
4882fi
4883
bec39cab
AC
4884fi
4885if test -z "$ac_cv_prog_MIG"; then
4886 ac_ct_MIG=$MIG
4887 # Extract the first word of "mig", so it can be a program name with args.
4888set dummy mig; ac_word=$2
b4e70030
JB
4889echo "$as_me:$LINENO: checking for $ac_word" >&5
4890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4891if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893else
4894 if test -n "$ac_ct_MIG"; then
4895 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4896else
4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4904 ac_cv_prog_ac_ct_MIG="mig"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4907 fi
4908done
4909done
c906108c 4910
bec39cab
AC
4911fi
4912fi
4913ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4914if test -n "$ac_ct_MIG"; then
b4e70030
JB
4915 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4916echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4917else
b4e70030
JB
4918 echo "$as_me:$LINENO: result: no" >&5
4919echo "${ECHO_T}no" >&6
bec39cab 4920fi
c906108c 4921
b4e70030 4922 MIG=$ac_ct_MIG
bec39cab
AC
4923else
4924 MIG="$ac_cv_prog_MIG"
4925fi
c906108c 4926
c906108c 4927
bec39cab
AC
4928# ---------------------- #
4929# Checks for libraries. #
4930# ---------------------- #
c906108c 4931
bec39cab 4932# We might need to link with -lm; most simulators need it.
c906108c 4933
b4e70030
JB
4934echo "$as_me:$LINENO: checking for main in -lm" >&5
4935echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
4936if test "${ac_cv_lib_m_main+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938else
4939 ac_check_lib_save_LIBS=$LIBS
4940LIBS="-lm $LIBS"
4941cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
c906108c 4947
c906108c 4948
bec39cab
AC
4949int
4950main ()
4951{
b4e70030 4952main ();
bec39cab
AC
4953 ;
4954 return 0;
4955}
4956_ACEOF
4957rm -f conftest.$ac_objext conftest$ac_exeext
4958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4959 (eval $ac_link) 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
b4e70030
JB
4966 { ac_try='test -z "$ac_c_werror_flag"
4967 || test ! -s conftest.err'
bec39cab
AC
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; } &&
4973 { ac_try='test -s conftest$ac_exeext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 ac_cv_lib_m_main=yes
4980else
4981 echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
b4e70030 4984ac_cv_lib_m_main=no
bec39cab
AC
4985fi
4986rm -f conftest.err conftest.$ac_objext \
4987 conftest$ac_exeext conftest.$ac_ext
4988LIBS=$ac_check_lib_save_LIBS
4989fi
b4e70030
JB
4990echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4991echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
4992if test $ac_cv_lib_m_main = yes; then
4993 cat >>confdefs.h <<_ACEOF
4994#define HAVE_LIBM 1
4995_ACEOF
4996
4997 LIBS="-lm $LIBS"
c906108c 4998
c906108c 4999fi
bec39cab
AC
5000
5001
5002# We need to link with -lw to get `wctype' on Solaris before Solaris
5003# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5004# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5005# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
5006echo "$as_me:$LINENO: checking for wctype" >&5
5007echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
5008if test "${ac_cv_func_wctype+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010else
5011 cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
5017/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5019#define wctype innocuous_wctype
5020
5021/* System header to define __stub macros and hopefully few prototypes,
5022 which can conflict with char wctype (); below.
5023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024 <limits.h> exists even on freestanding compilers. */
5025
5026#ifdef __STDC__
5027# include <limits.h>
5028#else
5029# include <assert.h>
5030#endif
5031
5032#undef wctype
5033
b4e70030 5034/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5035#ifdef __cplusplus
5036extern "C"
b4e70030 5037{
bec39cab 5038#endif
b4e70030
JB
5039/* We use char because int might match the return type of a gcc2
5040 builtin and then its argument prototype would still apply. */
bec39cab
AC
5041char wctype ();
5042/* The GNU C library defines this for functions which it implements
5043 to always fail with ENOSYS. Some functions are actually named
5044 something starting with __ and the normal name is an alias. */
b4e70030 5045#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5046choke me
b4e70030
JB
5047#else
5048char (*f) () = wctype;
5049#endif
5050#ifdef __cplusplus
5051}
bec39cab
AC
5052#endif
5053
5054int
5055main ()
5056{
b4e70030 5057return f != wctype;
bec39cab
AC
5058 ;
5059 return 0;
5060}
5061_ACEOF
5062rm -f conftest.$ac_objext conftest$ac_exeext
5063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
b4e70030
JB
5071 { ac_try='test -z "$ac_c_werror_flag"
5072 || test ! -s conftest.err'
bec39cab
AC
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try='test -s conftest$ac_exeext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_cv_func_wctype=yes
5085else
5086 echo "$as_me: failed program was:" >&5
5087sed 's/^/| /' conftest.$ac_ext >&5
5088
b4e70030 5089ac_cv_func_wctype=no
bec39cab
AC
5090fi
5091rm -f conftest.err conftest.$ac_objext \
5092 conftest$ac_exeext conftest.$ac_ext
5093fi
b4e70030
JB
5094echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5095echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5096if test $ac_cv_func_wctype = yes; then
5097 :
c906108c 5098else
c906108c 5099
b4e70030
JB
5100echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5101echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5102if test "${ac_cv_lib_w_wctype+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105 ac_check_lib_save_LIBS=$LIBS
5106LIBS="-lw $LIBS"
5107cat >conftest.$ac_ext <<_ACEOF
5108/* confdefs.h. */
5109_ACEOF
5110cat confdefs.h >>conftest.$ac_ext
5111cat >>conftest.$ac_ext <<_ACEOF
5112/* end confdefs.h. */
c906108c 5113
b4e70030 5114/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5115#ifdef __cplusplus
5116extern "C"
5117#endif
b4e70030
JB
5118/* We use char because int might match the return type of a gcc2
5119 builtin and then its argument prototype would still apply. */
bec39cab
AC
5120char wctype ();
5121int
5122main ()
5123{
b4e70030 5124wctype ();
bec39cab
AC
5125 ;
5126 return 0;
5127}
5128_ACEOF
5129rm -f conftest.$ac_objext conftest$ac_exeext
5130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131 (eval $ac_link) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
b4e70030
JB
5138 { ac_try='test -z "$ac_c_werror_flag"
5139 || test ! -s conftest.err'
bec39cab
AC
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest$ac_exeext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 ac_cv_lib_w_wctype=yes
5152else
5153 echo "$as_me: failed program was:" >&5
5154sed 's/^/| /' conftest.$ac_ext >&5
5155
b4e70030 5156ac_cv_lib_w_wctype=no
bec39cab
AC
5157fi
5158rm -f conftest.err conftest.$ac_objext \
5159 conftest$ac_exeext conftest.$ac_ext
5160LIBS=$ac_check_lib_save_LIBS
5161fi
b4e70030
JB
5162echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5163echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5164if test $ac_cv_lib_w_wctype = yes; then
5165 cat >>confdefs.h <<_ACEOF
5166#define HAVE_LIBW 1
5167_ACEOF
c906108c 5168
bec39cab 5169 LIBS="-lw $LIBS"
c906108c 5170
bec39cab 5171fi
c906108c 5172
bec39cab 5173fi
c906108c 5174
ddc9cd0f 5175
bec39cab 5176# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5177echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5178echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5179if test "${ac_cv_search_gethostbyname+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182 ac_func_search_save_LIBS=$LIBS
b4e70030 5183ac_cv_search_gethostbyname=no
bec39cab
AC
5184cat >conftest.$ac_ext <<_ACEOF
5185/* confdefs.h. */
5186_ACEOF
5187cat confdefs.h >>conftest.$ac_ext
5188cat >>conftest.$ac_ext <<_ACEOF
5189/* end confdefs.h. */
ddc9cd0f 5190
b4e70030 5191/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5192#ifdef __cplusplus
5193extern "C"
5194#endif
b4e70030
JB
5195/* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */
bec39cab
AC
5197char gethostbyname ();
5198int
5199main ()
5200{
b4e70030 5201gethostbyname ();
bec39cab
AC
5202 ;
5203 return 0;
5204}
5205_ACEOF
b4e70030 5206rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208 (eval $ac_link) 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
b4e70030
JB
5215 { ac_try='test -z "$ac_c_werror_flag"
5216 || test ! -s conftest.err'
bec39cab
AC
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 (eval $ac_try) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; } &&
5222 { ac_try='test -s conftest$ac_exeext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 (eval $ac_try) 2>&5
5225 ac_status=$?
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
b4e70030 5228 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5229else
5230 echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5232
bec39cab
AC
5233fi
5234rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5235 conftest$ac_exeext conftest.$ac_ext
5236if test "$ac_cv_search_gethostbyname" = no; then
5237 for ac_lib in nsl; do
5238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5239 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5240/* confdefs.h. */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h. */
ddc9cd0f 5245
b4e70030 5246/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5247#ifdef __cplusplus
5248extern "C"
5249#endif
b4e70030
JB
5250/* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5252char gethostbyname ();
bec39cab
AC
5253int
5254main ()
5255{
b4e70030 5256gethostbyname ();
bec39cab
AC
5257 ;
5258 return 0;
5259}
5260_ACEOF
b4e70030 5261rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
b4e70030
JB
5270 { ac_try='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
bec39cab
AC
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
b4e70030
JB
5283 ac_cv_search_gethostbyname="-l$ac_lib"
5284break
bec39cab
AC
5285else
5286 echo "$as_me: failed program was:" >&5
5287sed 's/^/| /' conftest.$ac_ext >&5
5288
5289fi
5290rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5291 conftest$ac_exeext conftest.$ac_ext
5292 done
bec39cab
AC
5293fi
5294LIBS=$ac_func_search_save_LIBS
5295fi
b4e70030
JB
5296echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5297echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5298if test "$ac_cv_search_gethostbyname" != no; then
5299 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5300
bec39cab 5301fi
96baa820 5302
c906108c 5303
b4e70030
JB
5304# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5305echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5306echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5307if test "${ac_cv_search_socketpair+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310 ac_func_search_save_LIBS=$LIBS
5311ac_cv_search_socketpair=no
5312cat >conftest.$ac_ext <<_ACEOF
5313/* confdefs.h. */
5314_ACEOF
5315cat confdefs.h >>conftest.$ac_ext
5316cat >>conftest.$ac_ext <<_ACEOF
5317/* end confdefs.h. */
5318
5319/* Override any gcc2 internal prototype to avoid an error. */
5320#ifdef __cplusplus
5321extern "C"
5322#endif
5323/* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5325char socketpair ();
5326int
5327main ()
5328{
5329socketpair ();
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334rm -f conftest.$ac_objext conftest$ac_exeext
5335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5336 (eval $ac_link) 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -z "$ac_c_werror_flag"
5344 || test ! -s conftest.err'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_search_socketpair="none required"
5357else
5358 echo "$as_me: failed program was:" >&5
5359sed 's/^/| /' conftest.$ac_ext >&5
5360
5361fi
5362rm -f conftest.err conftest.$ac_objext \
5363 conftest$ac_exeext conftest.$ac_ext
5364if test "$ac_cv_search_socketpair" = no; then
5365 for ac_lib in socket; do
5366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5367 cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h. */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h. */
5373
5374/* Override any gcc2 internal prototype to avoid an error. */
5375#ifdef __cplusplus
5376extern "C"
5377#endif
5378/* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5380char socketpair ();
5381int
5382main ()
5383{
5384socketpair ();
5385 ;
5386 return 0;
5387}
5388_ACEOF
5389rm -f conftest.$ac_objext conftest$ac_exeext
5390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5391 (eval $ac_link) 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -z "$ac_c_werror_flag"
5399 || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 (eval $ac_try) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest$ac_exeext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_cv_search_socketpair="-l$ac_lib"
5412break
5413else
5414 echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417fi
5418rm -f conftest.err conftest.$ac_objext \
5419 conftest$ac_exeext conftest.$ac_ext
5420 done
5421fi
5422LIBS=$ac_func_search_save_LIBS
5423fi
5424echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5425echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5426if test "$ac_cv_search_socketpair" != no; then
5427 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5428
5429fi
5430
5431
5432# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5433#
5434# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5435# curses library because the latter might not provide all the
5436# functionality we need. However, this leads to problems on systems
5437# where the linker searches /usr/local/lib, but the compiler doesn't
5438# search /usr/local/include, if ncurses is installed in /usr/local. A
5439# default installation of ncurses on alpha*-dec-osf* will lead to such
5440# a situation.
b4e70030
JB
5441echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5442echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5443if test "${ac_cv_search_waddstr+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446 ac_func_search_save_LIBS=$LIBS
b4e70030 5447ac_cv_search_waddstr=no
bec39cab
AC
5448cat >conftest.$ac_ext <<_ACEOF
5449/* confdefs.h. */
5450_ACEOF
5451cat confdefs.h >>conftest.$ac_ext
5452cat >>conftest.$ac_ext <<_ACEOF
5453/* end confdefs.h. */
c906108c 5454
b4e70030 5455/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5456#ifdef __cplusplus
5457extern "C"
5458#endif
b4e70030
JB
5459/* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
bec39cab
AC
5461char waddstr ();
5462int
5463main ()
5464{
b4e70030 5465waddstr ();
bec39cab
AC
5466 ;
5467 return 0;
5468}
5469_ACEOF
b4e70030 5470rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5472 (eval $ac_link) 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } &&
b4e70030
JB
5479 { ac_try='test -z "$ac_c_werror_flag"
5480 || test ! -s conftest.err'
bec39cab
AC
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; } &&
5486 { ac_try='test -s conftest$ac_exeext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 (eval $ac_try) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
b4e70030 5492 ac_cv_search_waddstr="none required"
bec39cab
AC
5493else
5494 echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5496
5497fi
bec39cab 5498rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5499 conftest$ac_exeext conftest.$ac_ext
5500if test "$ac_cv_search_waddstr" = no; then
5501 for ac_lib in ncurses cursesX curses; do
5502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5503 cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
5509
5510/* Override any gcc2 internal prototype to avoid an error. */
5511#ifdef __cplusplus
5512extern "C"
5513#endif
5514/* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5516char waddstr ();
5517int
5518main ()
5519{
5520waddstr ();
5521 ;
5522 return 0;
5523}
5524_ACEOF
5525rm -f conftest.$ac_objext conftest$ac_exeext
5526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5527 (eval $ac_link) 2>conftest.er1
5528 ac_status=$?
5529 grep -v '^ *+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try='test -z "$ac_c_werror_flag"
5535 || test ! -s conftest.err'
5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 (eval $ac_try) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; } &&
5541 { ac_try='test -s conftest$ac_exeext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_search_waddstr="-l$ac_lib"
5548break
4e8d927d 5549else
b4e70030
JB
5550 echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553fi
5554rm -f conftest.err conftest.$ac_objext \
5555 conftest$ac_exeext conftest.$ac_ext
5556 done
1ba607ad 5557fi
bec39cab
AC
5558LIBS=$ac_func_search_save_LIBS
5559fi
b4e70030
JB
5560echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5561echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5562if test "$ac_cv_search_waddstr" != no; then
5563 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5564
8bb2c122 5565fi
8bb2c122 5566
8bb2c122 5567
bec39cab
AC
5568# Since GDB uses Readline, we need termcap functionality. In many
5569# cases this will be provided by the curses library, but some systems
5570# have a seperate termcap library, or no curses library at all.
8bb2c122 5571
bec39cab
AC
5572case $host_os in
5573 cygwin*)
5574 if test -d $srcdir/libtermcap; then
5575 LIBS="../libtermcap/libtermcap.a $LIBS"
5576 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5577 fi ;;
5578 go32* | *djgpp*)
5579 ac_cv_search_tgetent="none required"
5580 ;;
7ef34f2c
MM
5581 *mingw32*)
5582 ac_cv_search_tgetent="none required"
5583 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5584 ;;
bec39cab 5585esac
627af7ea 5586
bec39cab 5587# These are the libraries checked by Readline.
b4e70030
JB
5588echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5589echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5590if test "${ac_cv_search_tgetent+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593 ac_func_search_save_LIBS=$LIBS
b4e70030 5594ac_cv_search_tgetent=no
bec39cab
AC
5595cat >conftest.$ac_ext <<_ACEOF
5596/* confdefs.h. */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h. */
5601
b4e70030 5602/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5603#ifdef __cplusplus
5604extern "C"
5605#endif
b4e70030
JB
5606/* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
bec39cab
AC
5608char tgetent ();
5609int
5610main ()
5611{
b4e70030 5612tgetent ();
bec39cab
AC
5613 ;
5614 return 0;
5615}
5616_ACEOF
b4e70030 5617rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5619 (eval $ac_link) 2>conftest.er1
5620 ac_status=$?
5621 grep -v '^ *+' conftest.er1 >conftest.err
5622 rm -f conftest.er1
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
b4e70030
JB
5626 { ac_try='test -z "$ac_c_werror_flag"
5627 || test ! -s conftest.err'
bec39cab
AC
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try='test -s conftest$ac_exeext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
b4e70030 5639 ac_cv_search_tgetent="none required"
627af7ea 5640else
bec39cab
AC
5641 echo "$as_me: failed program was:" >&5
5642sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5643
627af7ea 5644fi
bec39cab 5645rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5646 conftest$ac_exeext conftest.$ac_ext
5647if test "$ac_cv_search_tgetent" = no; then
5648 for ac_lib in termcap tinfo curses ncurses; do
5649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5650 cat >conftest.$ac_ext <<_ACEOF
5651/* confdefs.h. */
5652_ACEOF
5653cat confdefs.h >>conftest.$ac_ext
5654cat >>conftest.$ac_ext <<_ACEOF
5655/* end confdefs.h. */
5656
5657/* Override any gcc2 internal prototype to avoid an error. */
5658#ifdef __cplusplus
5659extern "C"
5660#endif
5661/* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
5663char tgetent ();
5664int
5665main ()
5666{
5667tgetent ();
5668 ;
5669 return 0;
5670}
5671_ACEOF
5672rm -f conftest.$ac_objext conftest$ac_exeext
5673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 (eval $ac_link) 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -z "$ac_c_werror_flag"
5682 || test ! -s conftest.err'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 (eval $ac_try) 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; } &&
5688 { ac_try='test -s conftest$ac_exeext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 (eval $ac_try) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_search_tgetent="-l$ac_lib"
5695break
4e8d927d 5696else
b4e70030
JB
5697 echo "$as_me: failed program was:" >&5
5698sed 's/^/| /' conftest.$ac_ext >&5
5699
5700fi
5701rm -f conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
5703 done
bec39cab
AC
5704fi
5705LIBS=$ac_func_search_save_LIBS
5706fi
b4e70030
JB
5707echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5708echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5709if test "$ac_cv_search_tgetent" != no; then
5710 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5711
06825bd1
MK
5712fi
5713
06825bd1 5714
bec39cab
AC
5715if test "$ac_cv_search_tgetent" = no; then
5716 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5717echo "$as_me: error: no termcap library found" >&2;}
5718 { (exit 1); exit 1; }; }
8ee53726
MK
5719fi
5720
3841debe 5721
6a30b0a5
AS
5722# Check whether --with-system-readline or --without-system-readline was given.
5723if test "${with_system_readline+set}" = set; then
5724 withval="$with_system_readline"
5725
5726fi;
5727
5728if test "$with_system_readline" = yes; then
5729 READLINE=-lreadline
5730 READLINE_DEPS=
5731 READLINE_CFLAGS=
5732else
5733 READLINE='$(READLINE_DIR)/libreadline.a'
5734 READLINE_DEPS='$(READLINE)'
5735 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5736fi
5737
5738
5739
5740
5741
3841debe
DJ
5742 if test "X$prefix" = "XNONE"; then
5743 acl_final_prefix="$ac_default_prefix"
5744 else
5745 acl_final_prefix="$prefix"
5746 fi
5747 if test "X$exec_prefix" = "XNONE"; then
5748 acl_final_exec_prefix='${prefix}'
5749 else
5750 acl_final_exec_prefix="$exec_prefix"
5751 fi
5752 acl_save_prefix="$prefix"
5753 prefix="$acl_final_prefix"
5754 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5755 prefix="$acl_save_prefix"
5756
5757
5758# Check whether --with-gnu-ld or --without-gnu-ld was given.
5759if test "${with_gnu_ld+set}" = set; then
5760 withval="$with_gnu_ld"
5761 test "$withval" = no || with_gnu_ld=yes
5762else
5763 with_gnu_ld=no
5764fi;
5765# Prepare PATH_SEPARATOR.
5766# The user is always right.
5767if test "${PATH_SEPARATOR+set}" != set; then
5768 echo "#! /bin/sh" >conf$$.sh
5769 echo "exit 0" >>conf$$.sh
5770 chmod +x conf$$.sh
5771 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5772 PATH_SEPARATOR=';'
5773 else
5774 PATH_SEPARATOR=:
5775 fi
5776 rm -f conf$$.sh
5777fi
5778ac_prog=ld
5779if test "$GCC" = yes; then
5780 # Check if gcc -print-prog-name=ld gives a path.
5781 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5782echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5783 case $host in
5784 *-*-mingw*)
5785 # gcc leaves a trailing carriage return which upsets mingw
5786 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5787 *)
5788 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5789 esac
5790 case $ac_prog in
5791 # Accept absolute paths.
5792 [\\/]* | [A-Za-z]:[\\/]*)
5793 re_direlt='/[^/][^/]*/\.\./'
5794 # Canonicalize the path of ld
5795 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5796 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5797 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5798 done
5799 test -z "$LD" && LD="$ac_prog"
5800 ;;
5801 "")
5802 # If it fails, then pretend we aren't using GCC.
5803 ac_prog=ld
5804 ;;
5805 *)
5806 # If it is relative, then search for the first ld in PATH.
5807 with_gnu_ld=unknown
5808 ;;
5809 esac
5810elif test "$with_gnu_ld" = yes; then
5811 echo "$as_me:$LINENO: checking for GNU ld" >&5
5812echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5813else
5814 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5815echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5816fi
5817if test "${acl_cv_path_LD+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819else
5820 if test -z "$LD"; then
5821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5822 for ac_dir in $PATH; do
5823 test -z "$ac_dir" && ac_dir=.
5824 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5825 acl_cv_path_LD="$ac_dir/$ac_prog"
5826 # Check to see if the program is GNU ld. I'd rather use --version,
5827 # but apparently some GNU ld's only accept -v.
5828 # Break only if it was the GNU/non-GNU ld that we prefer.
5829 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5830 test "$with_gnu_ld" != no && break
5831 else
5832 test "$with_gnu_ld" != yes && break
5833 fi
5834 fi
5835 done
5836 IFS="$ac_save_ifs"
5837else
5838 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5839fi
5840fi
5841
5842LD="$acl_cv_path_LD"
5843if test -n "$LD"; then
5844 echo "$as_me:$LINENO: result: $LD" >&5
5845echo "${ECHO_T}$LD" >&6
5846else
5847 echo "$as_me:$LINENO: result: no" >&5
5848echo "${ECHO_T}no" >&6
5849fi
5850test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5851echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5852 { (exit 1); exit 1; }; }
5853echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5854echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5855if test "${acl_cv_prog_gnu_ld+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857else
5858 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5859if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5860 acl_cv_prog_gnu_ld=yes
5861else
5862 acl_cv_prog_gnu_ld=no
5863fi
5864fi
5865echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5866echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5867with_gnu_ld=$acl_cv_prog_gnu_ld
5868
5869
5870
5871 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5872echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5873if test "${acl_cv_rpath+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876
5877 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5878 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5879 . ./conftest.sh
5880 rm -f ./conftest.sh
5881 acl_cv_rpath=done
5882
5883fi
5884echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5885echo "${ECHO_T}$acl_cv_rpath" >&6
5886 wl="$acl_cv_wl"
5887 libext="$acl_cv_libext"
5888 shlibext="$acl_cv_shlibext"
5889 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5890 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5891 hardcode_direct="$acl_cv_hardcode_direct"
5892 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5893 # Check whether --enable-rpath or --disable-rpath was given.
5894if test "${enable_rpath+set}" = set; then
5895 enableval="$enable_rpath"
5896 :
5897else
5898 enable_rpath=yes
5899fi;
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 use_additional=yes
5910
5911 acl_save_prefix="$prefix"
5912 prefix="$acl_final_prefix"
5913 acl_save_exec_prefix="$exec_prefix"
5914 exec_prefix="$acl_final_exec_prefix"
5915
5916 eval additional_includedir=\"$includedir\"
5917 eval additional_libdir=\"$libdir\"
5918
5919 exec_prefix="$acl_save_exec_prefix"
5920 prefix="$acl_save_prefix"
5921
5922
5923# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5924if test "${with_libexpat_prefix+set}" = set; then
5925 withval="$with_libexpat_prefix"
5926
5927 if test "X$withval" = "Xno"; then
5928 use_additional=no
5929 else
5930 if test "X$withval" = "X"; then
5931
5932 acl_save_prefix="$prefix"
5933 prefix="$acl_final_prefix"
5934 acl_save_exec_prefix="$exec_prefix"
5935 exec_prefix="$acl_final_exec_prefix"
5936
5937 eval additional_includedir=\"$includedir\"
5938 eval additional_libdir=\"$libdir\"
5939
5940 exec_prefix="$acl_save_exec_prefix"
5941 prefix="$acl_save_prefix"
5942
5943 else
5944 additional_includedir="$withval/include"
5945 additional_libdir="$withval/lib"
5946 fi
5947 fi
5948
5949fi;
5950 LIBEXPAT=
5951 LTLIBEXPAT=
5952 INCEXPAT=
5953 rpathdirs=
5954 ltrpathdirs=
5955 names_already_handled=
5956 names_next_round='expat '
5957 while test -n "$names_next_round"; do
5958 names_this_round="$names_next_round"
5959 names_next_round=
5960 for name in $names_this_round; do
5961 already_handled=
5962 for n in $names_already_handled; do
5963 if test "$n" = "$name"; then
5964 already_handled=yes
5965 break
5966 fi
5967 done
5968 if test -z "$already_handled"; then
5969 names_already_handled="$names_already_handled $name"
5970 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5971 eval value=\"\$HAVE_LIB$uppername\"
5972 if test -n "$value"; then
5973 if test "$value" = yes; then
5974 eval value=\"\$LIB$uppername\"
5975 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5976 eval value=\"\$LTLIB$uppername\"
5977 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5978 else
5979 :
5980 fi
5981 else
5982 found_dir=
5983 found_la=
5984 found_so=
5985 found_a=
5986 if test $use_additional = yes; then
5987 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5988 found_dir="$additional_libdir"
5989 found_so="$additional_libdir/lib$name.$shlibext"
5990 if test -f "$additional_libdir/lib$name.la"; then
5991 found_la="$additional_libdir/lib$name.la"
5992 fi
5993 else
5994 if test -f "$additional_libdir/lib$name.$libext"; then
5995 found_dir="$additional_libdir"
5996 found_a="$additional_libdir/lib$name.$libext"
5997 if test -f "$additional_libdir/lib$name.la"; then
5998 found_la="$additional_libdir/lib$name.la"
5999 fi
6000 fi
6001 fi
6002 fi
6003 if test "X$found_dir" = "X"; then
6004 for x in $LDFLAGS $LTLIBEXPAT; do
6005
6006 acl_save_prefix="$prefix"
6007 prefix="$acl_final_prefix"
6008 acl_save_exec_prefix="$exec_prefix"
6009 exec_prefix="$acl_final_exec_prefix"
6010 eval x=\"$x\"
6011 exec_prefix="$acl_save_exec_prefix"
6012 prefix="$acl_save_prefix"
6013
6014 case "$x" in
6015 -L*)
6016 dir=`echo "X$x" | sed -e 's/^X-L//'`
6017 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6018 found_dir="$dir"
6019 found_so="$dir/lib$name.$shlibext"
6020 if test -f "$dir/lib$name.la"; then
6021 found_la="$dir/lib$name.la"
6022 fi
6023 else
6024 if test -f "$dir/lib$name.$libext"; then
6025 found_dir="$dir"
6026 found_a="$dir/lib$name.$libext"
6027 if test -f "$dir/lib$name.la"; then
6028 found_la="$dir/lib$name.la"
6029 fi
6030 fi
6031 fi
6032 ;;
6033 esac
6034 if test "X$found_dir" != "X"; then
6035 break
6036 fi
6037 done
6038 fi
6039 if test "X$found_dir" != "X"; then
6040 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6041 if test "X$found_so" != "X"; then
6042 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6043 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6044 else
6045 haveit=
6046 for x in $ltrpathdirs; do
6047 if test "X$x" = "X$found_dir"; then
6048 haveit=yes
6049 break
6050 fi
6051 done
6052 if test -z "$haveit"; then
6053 ltrpathdirs="$ltrpathdirs $found_dir"
6054 fi
6055 if test "$hardcode_direct" = yes; then
6056 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6057 else
6058 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6059 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6060 haveit=
6061 for x in $rpathdirs; do
6062 if test "X$x" = "X$found_dir"; then
6063 haveit=yes
6064 break
6065 fi
6066 done
6067 if test -z "$haveit"; then
6068 rpathdirs="$rpathdirs $found_dir"
6069 fi
6070 else
6071 haveit=
6072 for x in $LDFLAGS $LIBEXPAT; do
6073
6074 acl_save_prefix="$prefix"
6075 prefix="$acl_final_prefix"
6076 acl_save_exec_prefix="$exec_prefix"
6077 exec_prefix="$acl_final_exec_prefix"
6078 eval x=\"$x\"
6079 exec_prefix="$acl_save_exec_prefix"
6080 prefix="$acl_save_prefix"
6081
6082 if test "X$x" = "X-L$found_dir"; then
6083 haveit=yes
6084 break
6085 fi
6086 done
6087 if test -z "$haveit"; then
6088 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6089 fi
6090 if test "$hardcode_minus_L" != no; then
6091 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6092 else
6093 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6094 fi
6095 fi
6096 fi
6097 fi
6098 else
6099 if test "X$found_a" != "X"; then
6100 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6101 else
6102 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6103 fi
6104 fi
6105 additional_includedir=
6106 case "$found_dir" in
6107 */lib | */lib/)
6108 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6109 additional_includedir="$basedir/include"
6110 ;;
6111 esac
6112 if test "X$additional_includedir" != "X"; then
6113 if test "X$additional_includedir" != "X/usr/include"; then
6114 haveit=
6115 if test "X$additional_includedir" = "X/usr/local/include"; then
6116 if test -n "$GCC"; then
6117 case $host_os in
6118 linux*) haveit=yes;;
6119 esac
6120 fi
6121 fi
6122 if test -z "$haveit"; then
6123 for x in $CPPFLAGS $INCEXPAT; do
6124
6125 acl_save_prefix="$prefix"
6126 prefix="$acl_final_prefix"
6127 acl_save_exec_prefix="$exec_prefix"
6128 exec_prefix="$acl_final_exec_prefix"
6129 eval x=\"$x\"
6130 exec_prefix="$acl_save_exec_prefix"
6131 prefix="$acl_save_prefix"
6132
6133 if test "X$x" = "X-I$additional_includedir"; then
6134 haveit=yes
6135 break
6136 fi
6137 done
6138 if test -z "$haveit"; then
6139 if test -d "$additional_includedir"; then
6140 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6141 fi
6142 fi
6143 fi
6144 fi
6145 fi
6146 if test -n "$found_la"; then
6147 save_libdir="$libdir"
6148 case "$found_la" in
6149 */* | *\\*) . "$found_la" ;;
6150 *) . "./$found_la" ;;
6151 esac
6152 libdir="$save_libdir"
6153 for dep in $dependency_libs; do
6154 case "$dep" in
6155 -L*)
6156 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6157 if test "X$additional_libdir" != "X/usr/lib"; then
6158 haveit=
6159 if test "X$additional_libdir" = "X/usr/local/lib"; then
6160 if test -n "$GCC"; then
6161 case $host_os in
6162 linux*) haveit=yes;;
6163 esac
6164 fi
6165 fi
6166 if test -z "$haveit"; then
6167 haveit=
6168 for x in $LDFLAGS $LIBEXPAT; do
6169
6170 acl_save_prefix="$prefix"
6171 prefix="$acl_final_prefix"
6172 acl_save_exec_prefix="$exec_prefix"
6173 exec_prefix="$acl_final_exec_prefix"
6174 eval x=\"$x\"
6175 exec_prefix="$acl_save_exec_prefix"
6176 prefix="$acl_save_prefix"
6177
6178 if test "X$x" = "X-L$additional_libdir"; then
6179 haveit=yes
6180 break
6181 fi
6182 done
6183 if test -z "$haveit"; then
6184 if test -d "$additional_libdir"; then
6185 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6186 fi
6187 fi
6188 haveit=
6189 for x in $LDFLAGS $LTLIBEXPAT; do
6190
6191 acl_save_prefix="$prefix"
6192 prefix="$acl_final_prefix"
6193 acl_save_exec_prefix="$exec_prefix"
6194 exec_prefix="$acl_final_exec_prefix"
6195 eval x=\"$x\"
6196 exec_prefix="$acl_save_exec_prefix"
6197 prefix="$acl_save_prefix"
6198
6199 if test "X$x" = "X-L$additional_libdir"; then
6200 haveit=yes
6201 break
6202 fi
6203 done
6204 if test -z "$haveit"; then
6205 if test -d "$additional_libdir"; then
6206 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6207 fi
6208 fi
6209 fi
6210 fi
6211 ;;
6212 -R*)
6213 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6214 if test "$enable_rpath" != no; then
6215 haveit=
6216 for x in $rpathdirs; do
6217 if test "X$x" = "X$dir"; then
6218 haveit=yes
6219 break
6220 fi
6221 done
6222 if test -z "$haveit"; then
6223 rpathdirs="$rpathdirs $dir"
6224 fi
6225 haveit=
6226 for x in $ltrpathdirs; do
6227 if test "X$x" = "X$dir"; then
6228 haveit=yes
6229 break
6230 fi
6231 done
6232 if test -z "$haveit"; then
6233 ltrpathdirs="$ltrpathdirs $dir"
6234 fi
6235 fi
6236 ;;
6237 -l*)
6238 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6239 ;;
6240 *.la)
6241 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6242 ;;
6243 *)
6244 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6245 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6246 ;;
6247 esac
6248 done
6249 fi
6250 else
6251 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6252 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6253 fi
6254 fi
6255 fi
6256 done
6257 done
6258 if test "X$rpathdirs" != "X"; then
6259 if test -n "$hardcode_libdir_separator"; then
6260 alldirs=
6261 for found_dir in $rpathdirs; do
6262 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6263 done
6264 acl_save_libdir="$libdir"
6265 libdir="$alldirs"
6266 eval flag=\"$hardcode_libdir_flag_spec\"
6267 libdir="$acl_save_libdir"
6268 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6269 else
6270 for found_dir in $rpathdirs; do
6271 acl_save_libdir="$libdir"
6272 libdir="$found_dir"
6273 eval flag=\"$hardcode_libdir_flag_spec\"
6274 libdir="$acl_save_libdir"
6275 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6276 done
6277 fi
6278 fi
6279 if test "X$ltrpathdirs" != "X"; then
6280 for found_dir in $ltrpathdirs; do
6281 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6282 done
6283 fi
6284
6285
6286 ac_save_CPPFLAGS="$CPPFLAGS"
6287
6288 for element in $INCEXPAT; do
6289 haveit=
6290 for x in $CPPFLAGS; do
6291
6292 acl_save_prefix="$prefix"
6293 prefix="$acl_final_prefix"
6294 acl_save_exec_prefix="$exec_prefix"
6295 exec_prefix="$acl_final_exec_prefix"
6296 eval x=\"$x\"
6297 exec_prefix="$acl_save_exec_prefix"
6298 prefix="$acl_save_prefix"
6299
6300 if test "X$x" = "X$element"; then
6301 haveit=yes
6302 break
6303 fi
6304 done
6305 if test -z "$haveit"; then
6306 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6307 fi
6308 done
6309
6310
6311 echo "$as_me:$LINENO: checking for libexpat" >&5
6312echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6313if test "${ac_cv_libexpat+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316
6317 ac_save_LIBS="$LIBS"
6318 LIBS="$LIBS $LIBEXPAT"
6319 cat >conftest.$ac_ext <<_ACEOF
6320/* confdefs.h. */
6321_ACEOF
6322cat confdefs.h >>conftest.$ac_ext
6323cat >>conftest.$ac_ext <<_ACEOF
6324/* end confdefs.h. */
6325#include "expat.h"
6326int
6327main ()
6328{
6329XML_Parser p = XML_ParserCreate (0);
6330 ;
6331 return 0;
6332}
6333_ACEOF
6334rm -f conftest.$ac_objext conftest$ac_exeext
6335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336 (eval $ac_link) 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -z "$ac_c_werror_flag"
6344 || test ! -s conftest.err'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; } &&
6350 { ac_try='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_libexpat=yes
6357else
6358 echo "$as_me: failed program was:" >&5
6359sed 's/^/| /' conftest.$ac_ext >&5
6360
6361ac_cv_libexpat=no
6362fi
6363rm -f conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6365 LIBS="$ac_save_LIBS"
6366
6367fi
6368echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6369echo "${ECHO_T}$ac_cv_libexpat" >&6
6370 if test "$ac_cv_libexpat" = yes; then
6371 HAVE_LIBEXPAT=yes
6372
6373cat >>confdefs.h <<\_ACEOF
6374#define HAVE_LIBEXPAT 1
6375_ACEOF
6376
6377 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6378echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6379 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6380echo "${ECHO_T}$LIBEXPAT" >&6
6381 else
6382 HAVE_LIBEXPAT=no
6383 CPPFLAGS="$ac_save_CPPFLAGS"
6384 LIBEXPAT=
6385 LTLIBEXPAT=
6386 fi
6387
6388
6389
6390
6391
6392
6393if test "$HAVE_LIBEXPAT" != yes; then
6394 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5
6395echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;}
ca4ca11e
DJ
6396else
6397 save_LIBS=$LIBS
6398 LIBS="$LIBS $LIBEXPAT"
6399
6400for ac_func in XML_StopParser
6401do
6402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6403echo "$as_me:$LINENO: checking for $ac_func" >&5
6404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6405if eval "test \"\${$as_ac_var+set}\" = set"; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407else
6408 cat >conftest.$ac_ext <<_ACEOF
6409/* confdefs.h. */
6410_ACEOF
6411cat confdefs.h >>conftest.$ac_ext
6412cat >>conftest.$ac_ext <<_ACEOF
6413/* end confdefs.h. */
6414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6416#define $ac_func innocuous_$ac_func
6417
6418/* System header to define __stub macros and hopefully few prototypes,
6419 which can conflict with char $ac_func (); below.
6420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6421 <limits.h> exists even on freestanding compilers. */
6422
6423#ifdef __STDC__
6424# include <limits.h>
6425#else
6426# include <assert.h>
6427#endif
6428
6429#undef $ac_func
6430
6431/* Override any gcc2 internal prototype to avoid an error. */
6432#ifdef __cplusplus
6433extern "C"
6434{
6435#endif
6436/* We use char because int might match the return type of a gcc2
6437 builtin and then its argument prototype would still apply. */
6438char $ac_func ();
6439/* The GNU C library defines this for functions which it implements
6440 to always fail with ENOSYS. Some functions are actually named
6441 something starting with __ and the normal name is an alias. */
6442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6443choke me
6444#else
6445char (*f) () = $ac_func;
6446#endif
6447#ifdef __cplusplus
6448}
6449#endif
6450
6451int
6452main ()
6453{
6454return f != $ac_func;
6455 ;
6456 return 0;
6457}
6458_ACEOF
6459rm -f conftest.$ac_objext conftest$ac_exeext
6460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -z "$ac_c_werror_flag"
6469 || test ! -s conftest.err'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 (eval $ac_try) 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; } &&
6475 { ac_try='test -s conftest$ac_exeext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 (eval $ac_try) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 eval "$as_ac_var=yes"
6482else
6483 echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486eval "$as_ac_var=no"
6487fi
6488rm -f conftest.err conftest.$ac_objext \
6489 conftest$ac_exeext conftest.$ac_ext
6490fi
6491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6493if test `eval echo '${'$as_ac_var'}'` = yes; then
6494 cat >>confdefs.h <<_ACEOF
6495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6496_ACEOF
6497
6498fi
6499done
6500
6501 LIBS=$save_LIBS
3841debe
DJ
6502fi
6503
bec39cab
AC
6504# ------------------------- #
6505# Checks for header files. #
6506# ------------------------- #
8ee53726 6507
0e5d83e3 6508
bec39cab
AC
6509
6510
6511
6512
6513ac_header_dirent=no
6514for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6515 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6516echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6517echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6518if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521 cat >conftest.$ac_ext <<_ACEOF
6522/* confdefs.h. */
6523_ACEOF
6524cat confdefs.h >>conftest.$ac_ext
6525cat >>conftest.$ac_ext <<_ACEOF
6526/* end confdefs.h. */
6527#include <sys/types.h>
0e5d83e3 6528#include <$ac_hdr>
bec39cab
AC
6529
6530int
6531main ()
6532{
6533if ((DIR *) 0)
6534return 0;
6535 ;
6536 return 0;
6537}
6538_ACEOF
6539rm -f conftest.$ac_objext
6540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>conftest.er1
6542 ac_status=$?
6543 grep -v '^ *+' conftest.er1 >conftest.err
6544 rm -f conftest.er1
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
b4e70030
JB
6548 { ac_try='test -z "$ac_c_werror_flag"
6549 || test ! -s conftest.err'
bec39cab
AC
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; } &&
6555 { ac_try='test -s conftest.$ac_objext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 eval "$as_ac_Header=yes"
6562else
6563 echo "$as_me: failed program was:" >&5
6564sed 's/^/| /' conftest.$ac_ext >&5
6565
b4e70030 6566eval "$as_ac_Header=no"
bec39cab
AC
6567fi
6568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6569fi
b4e70030
JB
6570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6572if test `eval echo '${'$as_ac_Header'}'` = yes; then
6573 cat >>confdefs.h <<_ACEOF
6574#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6575_ACEOF
6576
6577ac_header_dirent=$ac_hdr; break
0e5d83e3 6578fi
0e5d83e3 6579
bec39cab
AC
6580done
6581# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6582if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6583 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6584echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6585if test "${ac_cv_search_opendir+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588 ac_func_search_save_LIBS=$LIBS
b4e70030 6589ac_cv_search_opendir=no
bec39cab
AC
6590cat >conftest.$ac_ext <<_ACEOF
6591/* confdefs.h. */
6592_ACEOF
6593cat confdefs.h >>conftest.$ac_ext
6594cat >>conftest.$ac_ext <<_ACEOF
6595/* end confdefs.h. */
0e5d83e3 6596
b4e70030 6597/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6598#ifdef __cplusplus
6599extern "C"
6600#endif
b4e70030
JB
6601/* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
bec39cab
AC
6603char opendir ();
6604int
6605main ()
6606{
b4e70030 6607opendir ();
bec39cab
AC
6608 ;
6609 return 0;
6610}
6611_ACEOF
b4e70030 6612rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614 (eval $ac_link) 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
b4e70030
JB
6621 { ac_try='test -z "$ac_c_werror_flag"
6622 || test ! -s conftest.err'
bec39cab
AC
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
b4e70030 6634 ac_cv_search_opendir="none required"
bec39cab
AC
6635else
6636 echo "$as_me: failed program was:" >&5
6637sed 's/^/| /' conftest.$ac_ext >&5
6638
6639fi
bec39cab 6640rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6641 conftest$ac_exeext conftest.$ac_ext
6642if test "$ac_cv_search_opendir" = no; then
6643 for ac_lib in dir; do
6644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6645 cat >conftest.$ac_ext <<_ACEOF
6646/* confdefs.h. */
6647_ACEOF
6648cat confdefs.h >>conftest.$ac_ext
6649cat >>conftest.$ac_ext <<_ACEOF
6650/* end confdefs.h. */
6651
6652/* Override any gcc2 internal prototype to avoid an error. */
6653#ifdef __cplusplus
6654extern "C"
6655#endif
6656/* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */
6658char opendir ();
6659int
6660main ()
6661{
6662opendir ();
6663 ;
6664 return 0;
6665}
6666_ACEOF
6667rm -f conftest.$ac_objext conftest$ac_exeext
6668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest$ac_exeext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_cv_search_opendir="-l$ac_lib"
6690break
4e8d927d 6691else
b4e70030
JB
6692 echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
6694
6695fi
6696rm -f conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
6698 done
0e5d83e3 6699fi
bec39cab 6700LIBS=$ac_func_search_save_LIBS
0e5d83e3 6701fi
b4e70030
JB
6702echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6703echo "${ECHO_T}$ac_cv_search_opendir" >&6
6704if test "$ac_cv_search_opendir" != no; then
6705 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6706
0e5d83e3
JJ
6707fi
6708
d28f9cdf 6709else
b4e70030
JB
6710 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6711echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6712if test "${ac_cv_search_opendir+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715 ac_func_search_save_LIBS=$LIBS
b4e70030 6716ac_cv_search_opendir=no
bec39cab
AC
6717cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h. */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h. */
d28f9cdf 6723
b4e70030 6724/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6725#ifdef __cplusplus
6726extern "C"
d28f9cdf 6727#endif
b4e70030
JB
6728/* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
bec39cab
AC
6730char opendir ();
6731int
6732main ()
6733{
b4e70030 6734opendir ();
bec39cab
AC
6735 ;
6736 return 0;
6737}
6738_ACEOF
b4e70030 6739rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6741 (eval $ac_link) 2>conftest.er1
6742 ac_status=$?
6743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } &&
b4e70030
JB
6748 { ac_try='test -z "$ac_c_werror_flag"
6749 || test ! -s conftest.err'
bec39cab
AC
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; } &&
6755 { ac_try='test -s conftest$ac_exeext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
b4e70030 6761 ac_cv_search_opendir="none required"
d28f9cdf 6762else
bec39cab
AC
6763 echo "$as_me: failed program was:" >&5
6764sed 's/^/| /' conftest.$ac_ext >&5
6765
d28f9cdf 6766fi
bec39cab 6767rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6768 conftest$ac_exeext conftest.$ac_ext
6769if test "$ac_cv_search_opendir" = no; then
6770 for ac_lib in x; do
6771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6772 cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h. */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h. */
6778
6779/* Override any gcc2 internal prototype to avoid an error. */
6780#ifdef __cplusplus
6781extern "C"
6782#endif
6783/* We use char because int might match the return type of a gcc2
6784 builtin and then its argument prototype would still apply. */
6785char opendir ();
6786int
6787main ()
6788{
6789opendir ();
6790 ;
6791 return 0;
6792}
6793_ACEOF
6794rm -f conftest.$ac_objext conftest$ac_exeext
6795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6796 (eval $ac_link) 2>conftest.er1
6797 ac_status=$?
6798 grep -v '^ *+' conftest.er1 >conftest.err
6799 rm -f conftest.er1
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -z "$ac_c_werror_flag"
6804 || test ! -s conftest.err'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; } &&
6810 { ac_try='test -s conftest$ac_exeext'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 ac_cv_search_opendir="-l$ac_lib"
6817break
4e8d927d 6818else
b4e70030
JB
6819 echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822fi
6823rm -f conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6825 done
bec39cab
AC
6826fi
6827LIBS=$ac_func_search_save_LIBS
d28f9cdf 6828fi
b4e70030
JB
6829echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6830echo "${ECHO_T}$ac_cv_search_opendir" >&6
6831if test "$ac_cv_search_opendir" != no; then
6832 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 6833
d28f9cdf
DJ
6834fi
6835
bec39cab 6836fi
b0b1c2c0 6837
b4e70030
JB
6838echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6839echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
6840if test "${ac_cv_header_stat_broken+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 6842else
bec39cab
AC
6843 cat >conftest.$ac_ext <<_ACEOF
6844/* confdefs.h. */
6845_ACEOF
6846cat confdefs.h >>conftest.$ac_ext
6847cat >>conftest.$ac_ext <<_ACEOF
6848/* end confdefs.h. */
6849#include <sys/types.h>
6850#include <sys/stat.h>
b0b1c2c0 6851
b4e70030 6852#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
6853# if S_ISBLK (S_IFDIR)
6854You lose.
6855# endif
6856#endif
b0b1c2c0 6857
b4e70030 6858#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
6859# if S_ISBLK (S_IFCHR)
6860You lose.
6861# endif
6862#endif
d28f9cdf 6863
b4e70030 6864#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
6865# if S_ISLNK (S_IFREG)
6866You lose.
6867# endif
6868#endif
d28f9cdf 6869
b4e70030 6870#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
6871# if S_ISSOCK (S_IFREG)
6872You lose.
6873# endif
6874#endif
6875
6876_ACEOF
6877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6878 $EGREP "You lose" >/dev/null 2>&1; then
6879 ac_cv_header_stat_broken=yes
d28f9cdf 6880else
bec39cab 6881 ac_cv_header_stat_broken=no
d28f9cdf
DJ
6882fi
6883rm -f conftest*
d28f9cdf 6884
d28f9cdf 6885fi
b4e70030
JB
6886echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6887echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 6888if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 6889
bec39cab
AC
6890cat >>confdefs.h <<\_ACEOF
6891#define STAT_MACROS_BROKEN 1
6892_ACEOF
8bb2c122 6893
7a292a7a 6894fi
bec39cab 6895
b4e70030
JB
6896echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6897echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
6898if test "${ac_cv_header_stdc+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 6900else
bec39cab
AC
6901 cat >conftest.$ac_ext <<_ACEOF
6902/* confdefs.h. */
6903_ACEOF
6904cat confdefs.h >>conftest.$ac_ext
6905cat >>conftest.$ac_ext <<_ACEOF
6906/* end confdefs.h. */
6907#include <stdlib.h>
6908#include <stdarg.h>
6909#include <string.h>
6910#include <float.h>
7a292a7a 6911
bec39cab
AC
6912int
6913main ()
6914{
7a292a7a 6915
bec39cab
AC
6916 ;
6917 return 0;
6918}
6919_ACEOF
6920rm -f conftest.$ac_objext
6921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922 (eval $ac_compile) 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
b4e70030
JB
6929 { ac_try='test -z "$ac_c_werror_flag"
6930 || test ! -s conftest.err'
bec39cab
AC
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; } &&
6936 { ac_try='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 ac_cv_header_stdc=yes
c906108c 6943else
bec39cab
AC
6944 echo "$as_me: failed program was:" >&5
6945sed 's/^/| /' conftest.$ac_ext >&5
c906108c 6946
b4e70030 6947ac_cv_header_stdc=no
c906108c 6948fi
bec39cab 6949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6950
bec39cab
AC
6951if test $ac_cv_header_stdc = yes; then
6952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6953 cat >conftest.$ac_ext <<_ACEOF
6954/* confdefs.h. */
6955_ACEOF
6956cat confdefs.h >>conftest.$ac_ext
6957cat >>conftest.$ac_ext <<_ACEOF
6958/* end confdefs.h. */
6959#include <string.h>
c906108c 6960
bec39cab
AC
6961_ACEOF
6962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963 $EGREP "memchr" >/dev/null 2>&1; then
6964 :
8bb2c122 6965else
bec39cab 6966 ac_cv_header_stdc=no
8bb2c122 6967fi
bec39cab
AC
6968rm -f conftest*
6969
c906108c
SS
6970fi
6971
bec39cab
AC
6972if test $ac_cv_header_stdc = yes; then
6973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6974 cat >conftest.$ac_ext <<_ACEOF
6975/* confdefs.h. */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h. */
6980#include <stdlib.h>
6981
6982_ACEOF
6983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6984 $EGREP "free" >/dev/null 2>&1; then
6985 :
c906108c 6986else
bec39cab 6987 ac_cv_header_stdc=no
c906108c 6988fi
bec39cab
AC
6989rm -f conftest*
6990
c906108c
SS
6991fi
6992
bec39cab
AC
6993if test $ac_cv_header_stdc = yes; then
6994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6995 if test "$cross_compiling" = yes; then
6996 :
c906108c 6997else
bec39cab
AC
6998 cat >conftest.$ac_ext <<_ACEOF
6999/* confdefs.h. */
7000_ACEOF
7001cat confdefs.h >>conftest.$ac_ext
7002cat >>conftest.$ac_ext <<_ACEOF
7003/* end confdefs.h. */
7004#include <ctype.h>
7005#if ((' ' & 0x0FF) == 0x020)
7006# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7007# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7008#else
7009# define ISLOWER(c) \
7010 (('a' <= (c) && (c) <= 'i') \
7011 || ('j' <= (c) && (c) <= 'r') \
7012 || ('s' <= (c) && (c) <= 'z'))
7013# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7014#endif
7015
7016#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7017int
7018main ()
7019{
7020 int i;
7021 for (i = 0; i < 256; i++)
7022 if (XOR (islower (i), ISLOWER (i))
7023 || toupper (i) != TOUPPER (i))
b4e70030
JB
7024 exit(2);
7025 exit (0);
bec39cab
AC
7026}
7027_ACEOF
7028rm -f conftest$ac_exeext
7029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7030 (eval $ac_link) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 :
7040else
7041 echo "$as_me: program exited with status $ac_status" >&5
7042echo "$as_me: failed program was:" >&5
7043sed 's/^/| /' conftest.$ac_ext >&5
7044
7045( exit $ac_status )
7046ac_cv_header_stdc=no
c906108c 7047fi
b4e70030 7048rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7049fi
c906108c 7050fi
bec39cab 7051fi
b4e70030
JB
7052echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7053echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 7054if test $ac_cv_header_stdc = yes; then
c906108c 7055
bec39cab
AC
7056cat >>confdefs.h <<\_ACEOF
7057#define STDC_HEADERS 1
7058_ACEOF
c906108c 7059
bec39cab 7060fi
8bb2c122 7061
bec39cab 7062
7cb9022a 7063for ac_header in nlist.h
bec39cab
AC
7064do
7065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7066if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067 echo "$as_me:$LINENO: checking for $ac_header" >&5
7068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7069if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071fi
b4e70030
JB
7072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7074else
7075 # Is the header compilable?
b4e70030
JB
7076echo "$as_me:$LINENO: checking $ac_header usability" >&5
7077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7078cat >conftest.$ac_ext <<_ACEOF
7079/* confdefs.h. */
7080_ACEOF
7081cat confdefs.h >>conftest.$ac_ext
7082cat >>conftest.$ac_ext <<_ACEOF
7083/* end confdefs.h. */
7084$ac_includes_default
7085#include <$ac_header>
7086_ACEOF
7087rm -f conftest.$ac_objext
7088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089 (eval $ac_compile) 2>conftest.er1
7090 ac_status=$?
7091 grep -v '^ *+' conftest.er1 >conftest.err
7092 rm -f conftest.er1
7093 cat conftest.err >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
b4e70030
JB
7096 { ac_try='test -z "$ac_c_werror_flag"
7097 || test ! -s conftest.err'
bec39cab
AC
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 (eval $ac_try) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; } &&
7103 { ac_try='test -s conftest.$ac_objext'
7104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 (eval $ac_try) 2>&5
7106 ac_status=$?
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; }; then
7109 ac_header_compiler=yes
7110else
7111 echo "$as_me: failed program was:" >&5
7112sed 's/^/| /' conftest.$ac_ext >&5
7113
b4e70030 7114ac_header_compiler=no
bec39cab
AC
7115fi
7116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7118echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7119
7120# Is the header present?
b4e70030
JB
7121echo "$as_me:$LINENO: checking $ac_header presence" >&5
7122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7123cat >conftest.$ac_ext <<_ACEOF
7124/* confdefs.h. */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h. */
7129#include <$ac_header>
7130_ACEOF
7131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } >/dev/null; then
7139 if test -s conftest.err; then
7140 ac_cpp_err=$ac_c_preproc_warn_flag
7141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7142 else
7143 ac_cpp_err=
7144 fi
c906108c 7145else
bec39cab 7146 ac_cpp_err=yes
c906108c 7147fi
bec39cab
AC
7148if test -z "$ac_cpp_err"; then
7149 ac_header_preproc=yes
c906108c 7150else
bec39cab
AC
7151 echo "$as_me: failed program was:" >&5
7152sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7153
bec39cab
AC
7154 ac_header_preproc=no
7155fi
7156rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7158echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7159
bec39cab
AC
7160# So? What about this header?
7161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7162 yes:no: )
7163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7167 ac_header_preproc=yes
7168 ;;
7169 no:yes:* )
7170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7182 (
7183 cat <<\_ASBOX
7184## ------------------------------------------ ##
7185## Report this to the AC_PACKAGE_NAME lists. ##
7186## ------------------------------------------ ##
7187_ASBOX
7188 ) |
7189 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7190 ;;
7191esac
b4e70030
JB
7192echo "$as_me:$LINENO: checking for $ac_header" >&5
7193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7194if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7195 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7196else
bec39cab 7197 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7198fi
b4e70030
JB
7199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7201
95ca63c4 7202fi
bec39cab
AC
7203if test `eval echo '${'$as_ac_Header'}'` = yes; then
7204 cat >>confdefs.h <<_ACEOF
7205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7206_ACEOF
7207
95ca63c4
CF
7208fi
7209
bec39cab 7210done
95ca63c4
CF
7211
7212
7cb9022a 7213for ac_header in link.h
bec39cab
AC
7214do
7215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7216echo "$as_me:$LINENO: checking for $ac_header" >&5
7217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7218if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7219 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7220else
7cb9022a 7221 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7222/* confdefs.h. */
7223_ACEOF
7224cat confdefs.h >>conftest.$ac_ext
7225cat >>conftest.$ac_ext <<_ACEOF
7226/* end confdefs.h. */
7cb9022a
MK
7227#if HAVE_SYS_TYPES_H
7228# include <sys/types.h>
7229#endif
7230#if HAVE_NLIST_H
7231# include <nlist.h>
7232#endif
7233
7234
bec39cab
AC
7235#include <$ac_header>
7236_ACEOF
7237rm -f conftest.$ac_objext
7238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
b4e70030
JB
7246 { ac_try='test -z "$ac_c_werror_flag"
7247 || test ! -s conftest.err'
bec39cab
AC
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7cb9022a 7259 eval "$as_ac_Header=yes"
bec39cab
AC
7260else
7261 echo "$as_me: failed program was:" >&5
7262sed 's/^/| /' conftest.$ac_ext >&5
7263
b4e70030 7264eval "$as_ac_Header=no"
bec39cab
AC
7265fi
7266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7267fi
b4e70030
JB
7268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7270if test `eval echo '${'$as_ac_Header'}'` = yes; then
7271 cat >>confdefs.h <<_ACEOF
7272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7273_ACEOF
95ca63c4 7274
bec39cab 7275fi
95ca63c4 7276
bec39cab 7277done
95ca63c4 7278
c906108c 7279
7cb9022a 7280for ac_header in machine/reg.h
bec39cab
AC
7281do
7282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7283if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284 echo "$as_me:$LINENO: checking for $ac_header" >&5
7285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7286if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288fi
b4e70030
JB
7289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7291else
7292 # Is the header compilable?
b4e70030
JB
7293echo "$as_me:$LINENO: checking $ac_header usability" >&5
7294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7295cat >conftest.$ac_ext <<_ACEOF
7296/* confdefs.h. */
7297_ACEOF
7298cat confdefs.h >>conftest.$ac_ext
7299cat >>conftest.$ac_ext <<_ACEOF
7300/* end confdefs.h. */
7301$ac_includes_default
7302#include <$ac_header>
7303_ACEOF
7304rm -f conftest.$ac_objext
7305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306 (eval $ac_compile) 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } &&
b4e70030
JB
7313 { ac_try='test -z "$ac_c_werror_flag"
7314 || test ! -s conftest.err'
bec39cab
AC
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; } &&
7320 { ac_try='test -s conftest.$ac_objext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 (eval $ac_try) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_header_compiler=yes
7327else
7328 echo "$as_me: failed program was:" >&5
7329sed 's/^/| /' conftest.$ac_ext >&5
7330
b4e70030 7331ac_header_compiler=no
bec39cab
AC
7332fi
7333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7335echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7336
7337# Is the header present?
b4e70030
JB
7338echo "$as_me:$LINENO: checking $ac_header presence" >&5
7339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7340cat >conftest.$ac_ext <<_ACEOF
7341/* confdefs.h. */
7342_ACEOF
7343cat confdefs.h >>conftest.$ac_ext
7344cat >>conftest.$ac_ext <<_ACEOF
7345/* end confdefs.h. */
7346#include <$ac_header>
7347_ACEOF
7348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } >/dev/null; then
7356 if test -s conftest.err; then
7357 ac_cpp_err=$ac_c_preproc_warn_flag
7358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7359 else
7360 ac_cpp_err=
7361 fi
75c6e08a 7362else
bec39cab 7363 ac_cpp_err=yes
75c6e08a 7364fi
bec39cab
AC
7365if test -z "$ac_cpp_err"; then
7366 ac_header_preproc=yes
7367else
7368 echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 ac_header_preproc=no
75c6e08a 7372fi
bec39cab 7373rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7375echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7376
7377# So? What about this header?
7378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7379 yes:no: )
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7384 ac_header_preproc=yes
7385 ;;
7386 no:yes:* )
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7399 (
7400 cat <<\_ASBOX
7401## ------------------------------------------ ##
7402## Report this to the AC_PACKAGE_NAME lists. ##
7403## ------------------------------------------ ##
7404_ASBOX
7405 ) |
7406 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7407 ;;
7408esac
b4e70030
JB
7409echo "$as_me:$LINENO: checking for $ac_header" >&5
7410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7412 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7413else
bec39cab
AC
7414 eval "$as_ac_Header=\$ac_header_preproc"
7415fi
b4e70030
JB
7416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7418
75c6e08a 7419fi
bec39cab
AC
7420if test `eval echo '${'$as_ac_Header'}'` = yes; then
7421 cat >>confdefs.h <<_ACEOF
7422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7423_ACEOF
75c6e08a 7424
bec39cab 7425fi
75c6e08a 7426
bec39cab 7427done
75c6e08a
MK
7428
7429
9a156167 7430
bec39cab
AC
7431for ac_header in poll.h sys/poll.h
7432do
7433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7434if eval "test \"\${$as_ac_Header+set}\" = set"; then
7435 echo "$as_me:$LINENO: checking for $ac_header" >&5
7436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7437if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439fi
b4e70030
JB
7440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7442else
7443 # Is the header compilable?
b4e70030
JB
7444echo "$as_me:$LINENO: checking $ac_header usability" >&5
7445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7446cat >conftest.$ac_ext <<_ACEOF
7447/* confdefs.h. */
7448_ACEOF
7449cat confdefs.h >>conftest.$ac_ext
7450cat >>conftest.$ac_ext <<_ACEOF
7451/* end confdefs.h. */
7452$ac_includes_default
7453#include <$ac_header>
7454_ACEOF
7455rm -f conftest.$ac_objext
7456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7457 (eval $ac_compile) 2>conftest.er1
7458 ac_status=$?
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
b4e70030
JB
7464 { ac_try='test -z "$ac_c_werror_flag"
7465 || test ! -s conftest.err'
bec39cab
AC
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 (eval $ac_try) 2>&5
7468 ac_status=$?
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; } &&
7471 { ac_try='test -s conftest.$ac_objext'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; }; then
7477 ac_header_compiler=yes
7478else
7479 echo "$as_me: failed program was:" >&5
7480sed 's/^/| /' conftest.$ac_ext >&5
7481
b4e70030 7482ac_header_compiler=no
bec39cab
AC
7483fi
7484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7486echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7487
7488# Is the header present?
b4e70030
JB
7489echo "$as_me:$LINENO: checking $ac_header presence" >&5
7490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7491cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
7497#include <$ac_header>
7498_ACEOF
7499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7501 ac_status=$?
7502 grep -v '^ *+' conftest.er1 >conftest.err
7503 rm -f conftest.er1
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } >/dev/null; then
7507 if test -s conftest.err; then
7508 ac_cpp_err=$ac_c_preproc_warn_flag
7509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7510 else
7511 ac_cpp_err=
7512 fi
9a156167 7513else
bec39cab 7514 ac_cpp_err=yes
9a156167 7515fi
bec39cab
AC
7516if test -z "$ac_cpp_err"; then
7517 ac_header_preproc=yes
7518else
7519 echo "$as_me: failed program was:" >&5
7520sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7521
bec39cab 7522 ac_header_preproc=no
9a156167 7523fi
bec39cab 7524rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7526echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7527
bec39cab
AC
7528# So? What about this header?
7529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7530 yes:no: )
7531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7535 ac_header_preproc=yes
7536 ;;
7537 no:yes:* )
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7550 (
7551 cat <<\_ASBOX
7552## ------------------------------------------ ##
7553## Report this to the AC_PACKAGE_NAME lists. ##
7554## ------------------------------------------ ##
7555_ASBOX
7556 ) |
7557 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7558 ;;
7559esac
b4e70030
JB
7560echo "$as_me:$LINENO: checking for $ac_header" >&5
7561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7562if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7563 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7564else
bec39cab 7565 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7566fi
b4e70030
JB
7567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7569
bec39cab
AC
7570fi
7571if test `eval echo '${'$as_ac_Header'}'` = yes; then
7572 cat >>confdefs.h <<_ACEOF
7573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7574_ACEOF
9a156167 7575
bec39cab 7576fi
9a156167 7577
bec39cab 7578done
9a156167 7579
9a156167 7580
9a156167 7581
bec39cab
AC
7582
7583for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7584do
7585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7586if eval "test \"\${$as_ac_Header+set}\" = set"; then
7587 echo "$as_me:$LINENO: checking for $ac_header" >&5
7588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7589if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591fi
b4e70030
JB
7592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7594else
7595 # Is the header compilable?
b4e70030
JB
7596echo "$as_me:$LINENO: checking $ac_header usability" >&5
7597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7598cat >conftest.$ac_ext <<_ACEOF
7599/* confdefs.h. */
7600_ACEOF
7601cat confdefs.h >>conftest.$ac_ext
7602cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
7603/* end confdefs.h. */
7604$ac_includes_default
7605#include <$ac_header>
7606_ACEOF
7607rm -f conftest.$ac_objext
7608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7609 (eval $ac_compile) 2>conftest.er1
7610 ac_status=$?
7611 grep -v '^ *+' conftest.er1 >conftest.err
7612 rm -f conftest.er1
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -z "$ac_c_werror_flag"
7617 || test ! -s conftest.err'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 (eval $ac_try) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; } &&
7623 { ac_try='test -s conftest.$ac_objext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 (eval $ac_try) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7629 ac_header_compiler=yes
7630else
7631 echo "$as_me: failed program was:" >&5
7632sed 's/^/| /' conftest.$ac_ext >&5
7633
7634ac_header_compiler=no
7635fi
7636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7638echo "${ECHO_T}$ac_header_compiler" >&6
7639
7640# Is the header present?
7641echo "$as_me:$LINENO: checking $ac_header presence" >&5
7642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7643cat >conftest.$ac_ext <<_ACEOF
7644/* confdefs.h. */
7645_ACEOF
7646cat confdefs.h >>conftest.$ac_ext
7647cat >>conftest.$ac_ext <<_ACEOF
7648/* end confdefs.h. */
7649#include <$ac_header>
7650_ACEOF
7651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } >/dev/null; then
7659 if test -s conftest.err; then
7660 ac_cpp_err=$ac_c_preproc_warn_flag
7661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7662 else
7663 ac_cpp_err=
7664 fi
7665else
7666 ac_cpp_err=yes
7667fi
7668if test -z "$ac_cpp_err"; then
7669 ac_header_preproc=yes
7670else
7671 echo "$as_me: failed program was:" >&5
7672sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 ac_header_preproc=no
7675fi
7676rm -f conftest.err conftest.$ac_ext
7677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7678echo "${ECHO_T}$ac_header_preproc" >&6
7679
7680# So? What about this header?
7681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7682 yes:no: )
7683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7687 ac_header_preproc=yes
7688 ;;
7689 no:yes:* )
7690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7697echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7702 (
7703 cat <<\_ASBOX
7704## ------------------------------------------ ##
7705## Report this to the AC_PACKAGE_NAME lists. ##
7706## ------------------------------------------ ##
7707_ASBOX
7708 ) |
7709 sed "s/^/$as_me: WARNING: /" >&2
7710 ;;
7711esac
7712echo "$as_me:$LINENO: checking for $ac_header" >&5
7713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7714if eval "test \"\${$as_ac_Header+set}\" = set"; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717 eval "$as_ac_Header=\$ac_header_preproc"
7718fi
7719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7721
7722fi
7723if test `eval echo '${'$as_ac_Header'}'` = yes; then
7724 cat >>confdefs.h <<_ACEOF
7725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7726_ACEOF
7727
7728fi
7729
7730done
7731
7732
7733for ac_header in signal.h
7734do
7735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7736if eval "test \"\${$as_ac_Header+set}\" = set"; then
7737 echo "$as_me:$LINENO: checking for $ac_header" >&5
7738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7739if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741fi
7742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7744else
7745 # Is the header compilable?
7746echo "$as_me:$LINENO: checking $ac_header usability" >&5
7747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7748cat >conftest.$ac_ext <<_ACEOF
7749/* confdefs.h. */
7750_ACEOF
7751cat confdefs.h >>conftest.$ac_ext
7752cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
7753/* end confdefs.h. */
7754$ac_includes_default
7755#include <$ac_header>
7756_ACEOF
7757rm -f conftest.$ac_objext
7758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>conftest.er1
7760 ac_status=$?
7761 grep -v '^ *+' conftest.er1 >conftest.err
7762 rm -f conftest.er1
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
b4e70030
JB
7766 { ac_try='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
bec39cab
AC
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 ac_header_compiler=yes
7780else
7781 echo "$as_me: failed program was:" >&5
7782sed 's/^/| /' conftest.$ac_ext >&5
7783
b4e70030 7784ac_header_compiler=no
bec39cab
AC
7785fi
7786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7788echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7789
7790# Is the header present?
b4e70030
JB
7791echo "$as_me:$LINENO: checking $ac_header presence" >&5
7792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7793cat >conftest.$ac_ext <<_ACEOF
7794/* confdefs.h. */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h. */
7799#include <$ac_header>
7800_ACEOF
7801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7803 ac_status=$?
7804 grep -v '^ *+' conftest.er1 >conftest.err
7805 rm -f conftest.er1
7806 cat conftest.err >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } >/dev/null; then
7809 if test -s conftest.err; then
7810 ac_cpp_err=$ac_c_preproc_warn_flag
7811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7812 else
7813 ac_cpp_err=
7814 fi
9a156167 7815else
bec39cab 7816 ac_cpp_err=yes
9a156167 7817fi
bec39cab
AC
7818if test -z "$ac_cpp_err"; then
7819 ac_header_preproc=yes
7820else
7821 echo "$as_me: failed program was:" >&5
7822sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7823
bec39cab 7824 ac_header_preproc=no
9a156167 7825fi
bec39cab 7826rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7828echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7829
bec39cab
AC
7830# So? What about this header?
7831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7832 yes:no: )
7833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7837 ac_header_preproc=yes
7838 ;;
7839 no:yes:* )
7840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7852 (
7853 cat <<\_ASBOX
7854## ------------------------------------------ ##
7855## Report this to the AC_PACKAGE_NAME lists. ##
7856## ------------------------------------------ ##
7857_ASBOX
7858 ) |
7859 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7860 ;;
7861esac
b4e70030
JB
7862echo "$as_me:$LINENO: checking for $ac_header" >&5
7863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7864if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7865 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7866else
bec39cab 7867 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7868fi
b4e70030
JB
7869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
7871
7872fi
bec39cab
AC
7873if test `eval echo '${'$as_ac_Header'}'` = yes; then
7874 cat >>confdefs.h <<_ACEOF
7875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7876_ACEOF
9a156167 7877
bec39cab
AC
7878fi
7879
7880done
9a156167 7881
c890192f 7882
bec39cab
AC
7883for ac_header in stddef.h
7884do
7885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7886if eval "test \"\${$as_ac_Header+set}\" = set"; then
7887 echo "$as_me:$LINENO: checking for $ac_header" >&5
7888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7889if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7891fi
b4e70030
JB
7892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7894else
7895 # Is the header compilable?
b4e70030
JB
7896echo "$as_me:$LINENO: checking $ac_header usability" >&5
7897echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7898cat >conftest.$ac_ext <<_ACEOF
7899/* confdefs.h. */
7900_ACEOF
7901cat confdefs.h >>conftest.$ac_ext
7902cat >>conftest.$ac_ext <<_ACEOF
7903/* end confdefs.h. */
7904$ac_includes_default
7905#include <$ac_header>
7906_ACEOF
7907rm -f conftest.$ac_objext
7908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7909 (eval $ac_compile) 2>conftest.er1
7910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
b4e70030
JB
7916 { ac_try='test -z "$ac_c_werror_flag"
7917 || test ! -s conftest.err'
bec39cab
AC
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; } &&
7923 { ac_try='test -s conftest.$ac_objext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 ac_header_compiler=yes
7930else
7931 echo "$as_me: failed program was:" >&5
7932sed 's/^/| /' conftest.$ac_ext >&5
7933
b4e70030 7934ac_header_compiler=no
bec39cab
AC
7935fi
7936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7938echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7939
7940# Is the header present?
b4e70030
JB
7941echo "$as_me:$LINENO: checking $ac_header presence" >&5
7942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7943cat >conftest.$ac_ext <<_ACEOF
7944/* confdefs.h. */
7945_ACEOF
7946cat confdefs.h >>conftest.$ac_ext
7947cat >>conftest.$ac_ext <<_ACEOF
7948/* end confdefs.h. */
7949#include <$ac_header>
7950_ACEOF
7951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } >/dev/null; then
7959 if test -s conftest.err; then
7960 ac_cpp_err=$ac_c_preproc_warn_flag
7961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7962 else
7963 ac_cpp_err=
7964 fi
c890192f 7965else
bec39cab
AC
7966 ac_cpp_err=yes
7967fi
7968if test -z "$ac_cpp_err"; then
7969 ac_header_preproc=yes
c890192f 7970else
bec39cab
AC
7971 echo "$as_me: failed program was:" >&5
7972sed 's/^/| /' conftest.$ac_ext >&5
7973
7974 ac_header_preproc=no
c890192f 7975fi
bec39cab 7976rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7978echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7979
7980# So? What about this header?
7981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7982 yes:no: )
7983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7987 ac_header_preproc=yes
7988 ;;
7989 no:yes:* )
7990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8002 (
8003 cat <<\_ASBOX
8004## ------------------------------------------ ##
8005## Report this to the AC_PACKAGE_NAME lists. ##
8006## ------------------------------------------ ##
8007_ASBOX
8008 ) |
8009 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8010 ;;
8011esac
b4e70030
JB
8012echo "$as_me:$LINENO: checking for $ac_header" >&5
8013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8014if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8015 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 8016else
bec39cab 8017 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 8018fi
b4e70030
JB
8019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8021
c890192f 8022fi
bec39cab
AC
8023if test `eval echo '${'$as_ac_Header'}'` = yes; then
8024 cat >>confdefs.h <<_ACEOF
8025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8026_ACEOF
c890192f 8027
c890192f
MK
8028fi
8029
bec39cab 8030done
9a156167 8031
bec39cab
AC
8032
8033for ac_header in stdlib.h
8034do
8035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8036if eval "test \"\${$as_ac_Header+set}\" = set"; then
8037 echo "$as_me:$LINENO: checking for $ac_header" >&5
8038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8039if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041fi
b4e70030
JB
8042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8044else
8045 # Is the header compilable?
b4e70030
JB
8046echo "$as_me:$LINENO: checking $ac_header usability" >&5
8047echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8048cat >conftest.$ac_ext <<_ACEOF
8049/* confdefs.h. */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h. */
8054$ac_includes_default
8055#include <$ac_header>
8056_ACEOF
8057rm -f conftest.$ac_objext
8058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8059 (eval $ac_compile) 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
b4e70030
JB
8066 { ac_try='test -z "$ac_c_werror_flag"
8067 || test ! -s conftest.err'
bec39cab
AC
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069 (eval $ac_try) 2>&5
8070 ac_status=$?
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; } &&
8073 { ac_try='test -s conftest.$ac_objext'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 ac_header_compiler=yes
8080else
8081 echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
b4e70030 8084ac_header_compiler=no
bec39cab
AC
8085fi
8086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8088echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8089
8090# Is the header present?
b4e70030
JB
8091echo "$as_me:$LINENO: checking $ac_header presence" >&5
8092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8093cat >conftest.$ac_ext <<_ACEOF
8094/* confdefs.h. */
8095_ACEOF
8096cat confdefs.h >>conftest.$ac_ext
8097cat >>conftest.$ac_ext <<_ACEOF
8098/* end confdefs.h. */
8099#include <$ac_header>
8100_ACEOF
8101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } >/dev/null; then
8109 if test -s conftest.err; then
8110 ac_cpp_err=$ac_c_preproc_warn_flag
8111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8112 else
8113 ac_cpp_err=
8114 fi
9a156167 8115else
bec39cab
AC
8116 ac_cpp_err=yes
8117fi
8118if test -z "$ac_cpp_err"; then
8119 ac_header_preproc=yes
9a156167 8120else
bec39cab
AC
8121 echo "$as_me: failed program was:" >&5
8122sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ac_header_preproc=no
9a156167 8125fi
bec39cab 8126rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8128echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8129
8130# So? What about this header?
8131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8132 yes:no: )
8133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8137 ac_header_preproc=yes
8138 ;;
8139 no:yes:* )
8140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8152 (
8153 cat <<\_ASBOX
8154## ------------------------------------------ ##
8155## Report this to the AC_PACKAGE_NAME lists. ##
8156## ------------------------------------------ ##
8157_ASBOX
8158 ) |
8159 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8160 ;;
8161esac
b4e70030
JB
8162echo "$as_me:$LINENO: checking for $ac_header" >&5
8163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8164if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8165 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8166else
bec39cab 8167 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8168fi
b4e70030
JB
8169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8171
9a156167 8172fi
bec39cab
AC
8173if test `eval echo '${'$as_ac_Header'}'` = yes; then
8174 cat >>confdefs.h <<_ACEOF
8175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8176_ACEOF
9a156167 8177
9a156167
MK
8178fi
8179
bec39cab
AC
8180done
8181
06825bd1 8182
bec39cab
AC
8183for ac_header in stdint.h
8184do
8185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8186if eval "test \"\${$as_ac_Header+set}\" = set"; then
8187 echo "$as_me:$LINENO: checking for $ac_header" >&5
8188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8189if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191fi
b4e70030
JB
8192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8194else
8195 # Is the header compilable?
b4e70030
JB
8196echo "$as_me:$LINENO: checking $ac_header usability" >&5
8197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8198cat >conftest.$ac_ext <<_ACEOF
8199/* confdefs.h. */
8200_ACEOF
8201cat confdefs.h >>conftest.$ac_ext
8202cat >>conftest.$ac_ext <<_ACEOF
8203/* end confdefs.h. */
8204$ac_includes_default
8205#include <$ac_header>
8206_ACEOF
8207rm -f conftest.$ac_objext
8208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209 (eval $ac_compile) 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
b4e70030
JB
8216 { ac_try='test -z "$ac_c_werror_flag"
8217 || test ! -s conftest.err'
bec39cab
AC
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 (eval $ac_try) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_header_compiler=yes
8230else
8231 echo "$as_me: failed program was:" >&5
8232sed 's/^/| /' conftest.$ac_ext >&5
8233
b4e70030 8234ac_header_compiler=no
bec39cab
AC
8235fi
8236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8237echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8238echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8239
8240# Is the header present?
b4e70030
JB
8241echo "$as_me:$LINENO: checking $ac_header presence" >&5
8242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8243cat >conftest.$ac_ext <<_ACEOF
8244/* confdefs.h. */
8245_ACEOF
8246cat confdefs.h >>conftest.$ac_ext
8247cat >>conftest.$ac_ext <<_ACEOF
8248/* end confdefs.h. */
8249#include <$ac_header>
8250_ACEOF
8251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } >/dev/null; then
8259 if test -s conftest.err; then
8260 ac_cpp_err=$ac_c_preproc_warn_flag
8261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8262 else
8263 ac_cpp_err=
8264 fi
06825bd1 8265else
bec39cab
AC
8266 ac_cpp_err=yes
8267fi
8268if test -z "$ac_cpp_err"; then
8269 ac_header_preproc=yes
06825bd1 8270else
bec39cab
AC
8271 echo "$as_me: failed program was:" >&5
8272sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 ac_header_preproc=no
06825bd1 8275fi
bec39cab 8276rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8277echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8278echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8279
8280# So? What about this header?
8281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8282 yes:no: )
8283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8284echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8286echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8287 ac_header_preproc=yes
8288 ;;
8289 no:yes:* )
8290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8291echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8293echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8295echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8297echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8299echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8301echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8302 (
8303 cat <<\_ASBOX
8304## ------------------------------------------ ##
8305## Report this to the AC_PACKAGE_NAME lists. ##
8306## ------------------------------------------ ##
8307_ASBOX
8308 ) |
8309 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8310 ;;
8311esac
b4e70030
JB
8312echo "$as_me:$LINENO: checking for $ac_header" >&5
8313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8314if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8315 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8316else
bec39cab 8317 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8318fi
b4e70030
JB
8319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8321
06825bd1 8322fi
bec39cab
AC
8323if test `eval echo '${'$as_ac_Header'}'` = yes; then
8324 cat >>confdefs.h <<_ACEOF
8325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8326_ACEOF
06825bd1 8327
06825bd1 8328fi
4f0be353 8329
bec39cab 8330done
4f0be353 8331
06825bd1 8332
06825bd1 8333
bec39cab
AC
8334
8335for ac_header in string.h memory.h strings.h
8336do
8337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8338if eval "test \"\${$as_ac_Header+set}\" = set"; then
8339 echo "$as_me:$LINENO: checking for $ac_header" >&5
8340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8341if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343fi
b4e70030
JB
8344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8346else
8347 # Is the header compilable?
b4e70030
JB
8348echo "$as_me:$LINENO: checking $ac_header usability" >&5
8349echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8350cat >conftest.$ac_ext <<_ACEOF
8351/* confdefs.h. */
8352_ACEOF
8353cat confdefs.h >>conftest.$ac_ext
8354cat >>conftest.$ac_ext <<_ACEOF
8355/* end confdefs.h. */
8356$ac_includes_default
8357#include <$ac_header>
8358_ACEOF
8359rm -f conftest.$ac_objext
8360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
b4e70030
JB
8368 { ac_try='test -z "$ac_c_werror_flag"
8369 || test ! -s conftest.err'
bec39cab
AC
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 (eval $ac_try) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest.$ac_objext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 ac_header_compiler=yes
8382else
8383 echo "$as_me: failed program was:" >&5
8384sed 's/^/| /' conftest.$ac_ext >&5
8385
b4e70030 8386ac_header_compiler=no
bec39cab
AC
8387fi
8388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8389echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8390echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8391
8392# Is the header present?
b4e70030
JB
8393echo "$as_me:$LINENO: checking $ac_header presence" >&5
8394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8395cat >conftest.$ac_ext <<_ACEOF
8396/* confdefs.h. */
8397_ACEOF
8398cat confdefs.h >>conftest.$ac_ext
8399cat >>conftest.$ac_ext <<_ACEOF
8400/* end confdefs.h. */
8401#include <$ac_header>
8402_ACEOF
8403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } >/dev/null; then
8411 if test -s conftest.err; then
8412 ac_cpp_err=$ac_c_preproc_warn_flag
8413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8414 else
8415 ac_cpp_err=
8416 fi
06825bd1 8417else
bec39cab
AC
8418 ac_cpp_err=yes
8419fi
8420if test -z "$ac_cpp_err"; then
8421 ac_header_preproc=yes
06825bd1 8422else
bec39cab
AC
8423 echo "$as_me: failed program was:" >&5
8424sed 's/^/| /' conftest.$ac_ext >&5
8425
8426 ac_header_preproc=no
06825bd1 8427fi
bec39cab 8428rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8430echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8431
8432# So? What about this header?
8433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8434 yes:no: )
8435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8439 ac_header_preproc=yes
8440 ;;
8441 no:yes:* )
8442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8454 (
8455 cat <<\_ASBOX
8456## ------------------------------------------ ##
8457## Report this to the AC_PACKAGE_NAME lists. ##
8458## ------------------------------------------ ##
8459_ASBOX
8460 ) |
8461 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8462 ;;
8463esac
b4e70030
JB
8464echo "$as_me:$LINENO: checking for $ac_header" >&5
8465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8466if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468else
8469 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8470fi
b4e70030
JB
8471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8473
06825bd1 8474fi
bec39cab
AC
8475if test `eval echo '${'$as_ac_Header'}'` = yes; then
8476 cat >>confdefs.h <<_ACEOF
8477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8478_ACEOF
06825bd1 8479
06825bd1
MK
8480fi
8481
bec39cab 8482done
5ee754fc 8483
bec39cab
AC
8484
8485for ac_header in sys/fault.h
5ee754fc 8486do
bec39cab 8487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8488if eval "test \"\${$as_ac_Header+set}\" = set"; then
8489 echo "$as_me:$LINENO: checking for $ac_header" >&5
8490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8491if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493fi
b4e70030
JB
8494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8496else
8497 # Is the header compilable?
b4e70030
JB
8498echo "$as_me:$LINENO: checking $ac_header usability" >&5
8499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8500cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
8506$ac_includes_default
8507#include <$ac_header>
8508_ACEOF
8509rm -f conftest.$ac_objext
8510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511 (eval $ac_compile) 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
b4e70030
JB
8518 { ac_try='test -z "$ac_c_werror_flag"
8519 || test ! -s conftest.err'
bec39cab
AC
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 ac_header_compiler=yes
8532else
8533 echo "$as_me: failed program was:" >&5
8534sed 's/^/| /' conftest.$ac_ext >&5
8535
b4e70030 8536ac_header_compiler=no
bec39cab
AC
8537fi
8538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8540echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8541
8542# Is the header present?
b4e70030
JB
8543echo "$as_me:$LINENO: checking $ac_header presence" >&5
8544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8545cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h. */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h. */
8551#include <$ac_header>
8552_ACEOF
8553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } >/dev/null; then
8561 if test -s conftest.err; then
8562 ac_cpp_err=$ac_c_preproc_warn_flag
8563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8564 else
8565 ac_cpp_err=
8566 fi
5ee754fc 8567else
bec39cab 8568 ac_cpp_err=yes
5ee754fc 8569fi
bec39cab
AC
8570if test -z "$ac_cpp_err"; then
8571 ac_header_preproc=yes
8572else
8573 echo "$as_me: failed program was:" >&5
8574sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8575
bec39cab 8576 ac_header_preproc=no
5ee754fc 8577fi
bec39cab 8578rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8581
8582# So? What about this header?
8583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8584 yes:no: )
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8589 ac_header_preproc=yes
8590 ;;
8591 no:yes:* )
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8604 (
8605 cat <<\_ASBOX
8606## ------------------------------------------ ##
8607## Report this to the AC_PACKAGE_NAME lists. ##
8608## ------------------------------------------ ##
8609_ASBOX
8610 ) |
8611 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8612 ;;
8613esac
b4e70030
JB
8614echo "$as_me:$LINENO: checking for $ac_header" >&5
8615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8616if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8617 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8618else
bec39cab 8619 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8620fi
b4e70030
JB
8621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8623
5ee754fc 8624fi
bec39cab
AC
8625if test `eval echo '${'$as_ac_Header'}'` = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8628_ACEOF
c906108c 8629
5ee754fc 8630fi
bec39cab
AC
8631
8632done
8633
8634
8635for ac_header in sys/file.h
8636do
8637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8638if eval "test \"\${$as_ac_Header+set}\" = set"; then
8639 echo "$as_me:$LINENO: checking for $ac_header" >&5
8640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8641if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8643fi
b4e70030
JB
8644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8646else
8647 # Is the header compilable?
b4e70030
JB
8648echo "$as_me:$LINENO: checking $ac_header usability" >&5
8649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8650cat >conftest.$ac_ext <<_ACEOF
8651/* confdefs.h. */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h. */
8656$ac_includes_default
8657#include <$ac_header>
8658_ACEOF
8659rm -f conftest.$ac_objext
8660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8661 (eval $ac_compile) 2>conftest.er1
8662 ac_status=$?
8663 grep -v '^ *+' conftest.er1 >conftest.err
8664 rm -f conftest.er1
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
b4e70030
JB
8668 { ac_try='test -z "$ac_c_werror_flag"
8669 || test ! -s conftest.err'
bec39cab
AC
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 (eval $ac_try) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 (eval $ac_try) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_header_compiler=yes
8682else
8683 echo "$as_me: failed program was:" >&5
8684sed 's/^/| /' conftest.$ac_ext >&5
8685
b4e70030 8686ac_header_compiler=no
bec39cab
AC
8687fi
8688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8690echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8691
8692# Is the header present?
b4e70030
JB
8693echo "$as_me:$LINENO: checking $ac_header presence" >&5
8694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8695cat >conftest.$ac_ext <<_ACEOF
8696/* confdefs.h. */
8697_ACEOF
8698cat confdefs.h >>conftest.$ac_ext
8699cat >>conftest.$ac_ext <<_ACEOF
8700/* end confdefs.h. */
8701#include <$ac_header>
8702_ACEOF
8703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } >/dev/null; then
8711 if test -s conftest.err; then
8712 ac_cpp_err=$ac_c_preproc_warn_flag
8713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8714 else
8715 ac_cpp_err=
8716 fi
5ee754fc 8717else
bec39cab 8718 ac_cpp_err=yes
5ee754fc 8719fi
bec39cab
AC
8720if test -z "$ac_cpp_err"; then
8721 ac_header_preproc=yes
8722else
8723 echo "$as_me: failed program was:" >&5
8724sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8725
bec39cab 8726 ac_header_preproc=no
5ee754fc 8727fi
bec39cab 8728rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8730echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8731
bec39cab
AC
8732# So? What about this header?
8733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8734 yes:no: )
8735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8739 ac_header_preproc=yes
8740 ;;
8741 no:yes:* )
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8754 (
8755 cat <<\_ASBOX
8756## ------------------------------------------ ##
8757## Report this to the AC_PACKAGE_NAME lists. ##
8758## ------------------------------------------ ##
8759_ASBOX
8760 ) |
8761 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8762 ;;
8763esac
b4e70030
JB
8764echo "$as_me:$LINENO: checking for $ac_header" >&5
8765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8766if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8767 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8768else
bec39cab
AC
8769 eval "$as_ac_Header=\$ac_header_preproc"
8770fi
b4e70030
JB
8771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8773
bec39cab
AC
8774fi
8775if test `eval echo '${'$as_ac_Header'}'` = yes; then
8776 cat >>confdefs.h <<_ACEOF
8777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778_ACEOF
5ee754fc 8779
bec39cab 8780fi
5ee754fc 8781
bec39cab 8782done
5ee754fc 8783
5ee754fc 8784
bec39cab
AC
8785for ac_header in sys/filio.h
8786do
8787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8788if eval "test \"\${$as_ac_Header+set}\" = set"; then
8789 echo "$as_me:$LINENO: checking for $ac_header" >&5
8790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8791if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793fi
b4e70030
JB
8794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8796else
8797 # Is the header compilable?
b4e70030
JB
8798echo "$as_me:$LINENO: checking $ac_header usability" >&5
8799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8800cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h. */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h. */
8806$ac_includes_default
8807#include <$ac_header>
8808_ACEOF
8809rm -f conftest.$ac_objext
8810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8811 (eval $ac_compile) 2>conftest.er1
8812 ac_status=$?
8813 grep -v '^ *+' conftest.er1 >conftest.err
8814 rm -f conftest.er1
8815 cat conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } &&
b4e70030
JB
8818 { ac_try='test -z "$ac_c_werror_flag"
8819 || test ! -s conftest.err'
bec39cab
AC
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 (eval $ac_try) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; } &&
8825 { ac_try='test -s conftest.$ac_objext'
8826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 (eval $ac_try) 2>&5
8828 ac_status=$?
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); }; }; then
8831 ac_header_compiler=yes
8832else
8833 echo "$as_me: failed program was:" >&5
8834sed 's/^/| /' conftest.$ac_ext >&5
8835
b4e70030 8836ac_header_compiler=no
bec39cab
AC
8837fi
8838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8840echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8841
8842# Is the header present?
b4e70030
JB
8843echo "$as_me:$LINENO: checking $ac_header presence" >&5
8844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8845cat >conftest.$ac_ext <<_ACEOF
8846/* confdefs.h. */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h. */
8851#include <$ac_header>
8852_ACEOF
8853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } >/dev/null; then
8861 if test -s conftest.err; then
8862 ac_cpp_err=$ac_c_preproc_warn_flag
8863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8864 else
8865 ac_cpp_err=
8866 fi
5ee754fc 8867else
bec39cab 8868 ac_cpp_err=yes
5ee754fc 8869fi
bec39cab
AC
8870if test -z "$ac_cpp_err"; then
8871 ac_header_preproc=yes
8872else
8873 echo "$as_me: failed program was:" >&5
8874sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8875
bec39cab 8876 ac_header_preproc=no
5ee754fc 8877fi
bec39cab 8878rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8880echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8881
bec39cab
AC
8882# So? What about this header?
8883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8884 yes:no: )
8885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8889 ac_header_preproc=yes
8890 ;;
8891 no:yes:* )
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8904 (
8905 cat <<\_ASBOX
8906## ------------------------------------------ ##
8907## Report this to the AC_PACKAGE_NAME lists. ##
8908## ------------------------------------------ ##
8909_ASBOX
8910 ) |
8911 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8912 ;;
8913esac
b4e70030
JB
8914echo "$as_me:$LINENO: checking for $ac_header" >&5
8915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8916if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8917 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8918else
bec39cab 8919 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8920fi
b4e70030
JB
8921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8923
5ee754fc 8924fi
bec39cab
AC
8925if test `eval echo '${'$as_ac_Header'}'` = yes; then
8926 cat >>confdefs.h <<_ACEOF
8927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8928_ACEOF
5ee754fc
MK
8929
8930fi
8931
bec39cab
AC
8932done
8933
8934
8935for ac_header in sys/ioctl.h
8936do
8937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8938if eval "test \"\${$as_ac_Header+set}\" = set"; then
8939 echo "$as_me:$LINENO: checking for $ac_header" >&5
8940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8941if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943fi
b4e70030
JB
8944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8946else
8947 # Is the header compilable?
b4e70030
JB
8948echo "$as_me:$LINENO: checking $ac_header usability" >&5
8949echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8950cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956$ac_includes_default
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
8981 ac_header_compiler=yes
8982else
8983 echo "$as_me: failed program was:" >&5
8984sed 's/^/| /' conftest.$ac_ext >&5
8985
b4e70030 8986ac_header_compiler=no
bec39cab
AC
8987fi
8988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8990echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8991
8992# Is the header present?
b4e70030
JB
8993echo "$as_me:$LINENO: checking $ac_header presence" >&5
8994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8995cat >conftest.$ac_ext <<_ACEOF
8996/* confdefs.h. */
8997_ACEOF
8998cat confdefs.h >>conftest.$ac_ext
8999cat >>conftest.$ac_ext <<_ACEOF
9000/* end confdefs.h. */
9001#include <$ac_header>
9002_ACEOF
9003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev/null; then
9011 if test -s conftest.err; then
9012 ac_cpp_err=$ac_c_preproc_warn_flag
9013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9014 else
9015 ac_cpp_err=
9016 fi
5ee754fc 9017else
bec39cab 9018 ac_cpp_err=yes
5ee754fc 9019fi
bec39cab
AC
9020if test -z "$ac_cpp_err"; then
9021 ac_header_preproc=yes
9022else
9023 echo "$as_me: failed program was:" >&5
9024sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9025
bec39cab 9026 ac_header_preproc=no
5ee754fc 9027fi
bec39cab 9028rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9031
bec39cab
AC
9032# So? What about this header?
9033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9034 yes:no: )
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9039 ac_header_preproc=yes
9040 ;;
9041 no:yes:* )
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9054 (
9055 cat <<\_ASBOX
9056## ------------------------------------------ ##
9057## Report this to the AC_PACKAGE_NAME lists. ##
9058## ------------------------------------------ ##
9059_ASBOX
9060 ) |
9061 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9062 ;;
9063esac
b4e70030
JB
9064echo "$as_me:$LINENO: checking for $ac_header" >&5
9065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 9068else
bec39cab 9069 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9070fi
b4e70030
JB
9071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
9073
9074fi
bec39cab
AC
9075if test `eval echo '${'$as_ac_Header'}'` = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9078_ACEOF
9079
5ee754fc
MK
9080fi
9081
bec39cab 9082done
5ee754fc 9083
5ee754fc 9084
bec39cab 9085for ac_header in sys/param.h
5ee754fc 9086do
bec39cab 9087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9088if eval "test \"\${$as_ac_Header+set}\" = set"; then
9089 echo "$as_me:$LINENO: checking for $ac_header" >&5
9090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9091if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093fi
b4e70030
JB
9094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9096else
9097 # Is the header compilable?
b4e70030
JB
9098echo "$as_me:$LINENO: checking $ac_header usability" >&5
9099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9100cat >conftest.$ac_ext <<_ACEOF
9101/* confdefs.h. */
9102_ACEOF
9103cat confdefs.h >>conftest.$ac_ext
9104cat >>conftest.$ac_ext <<_ACEOF
9105/* end confdefs.h. */
9106$ac_includes_default
9107#include <$ac_header>
9108_ACEOF
9109rm -f conftest.$ac_objext
9110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111 (eval $ac_compile) 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
b4e70030
JB
9118 { ac_try='test -z "$ac_c_werror_flag"
9119 || test ! -s conftest.err'
bec39cab
AC
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; } &&
9125 { ac_try='test -s conftest.$ac_objext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_header_compiler=yes
9132else
9133 echo "$as_me: failed program was:" >&5
9134sed 's/^/| /' conftest.$ac_ext >&5
9135
b4e70030 9136ac_header_compiler=no
bec39cab
AC
9137fi
9138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9140echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9141
9142# Is the header present?
b4e70030
JB
9143echo "$as_me:$LINENO: checking $ac_header presence" >&5
9144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9145cat >conftest.$ac_ext <<_ACEOF
9146/* confdefs.h. */
9147_ACEOF
9148cat confdefs.h >>conftest.$ac_ext
9149cat >>conftest.$ac_ext <<_ACEOF
9150/* end confdefs.h. */
9151#include <$ac_header>
9152_ACEOF
9153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } >/dev/null; then
9161 if test -s conftest.err; then
9162 ac_cpp_err=$ac_c_preproc_warn_flag
9163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9164 else
9165 ac_cpp_err=
9166 fi
5ee754fc 9167else
bec39cab 9168 ac_cpp_err=yes
5ee754fc 9169fi
bec39cab
AC
9170if test -z "$ac_cpp_err"; then
9171 ac_header_preproc=yes
9172else
9173 echo "$as_me: failed program was:" >&5
9174sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9175
bec39cab 9176 ac_header_preproc=no
5ee754fc 9177fi
bec39cab 9178rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9180echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9181
9182# So? What about this header?
9183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9184 yes:no: )
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9189 ac_header_preproc=yes
9190 ;;
9191 no:yes:* )
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9195echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9199echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9204 (
9205 cat <<\_ASBOX
9206## ------------------------------------------ ##
9207## Report this to the AC_PACKAGE_NAME lists. ##
9208## ------------------------------------------ ##
9209_ASBOX
9210 ) |
9211 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9212 ;;
9213esac
b4e70030
JB
9214echo "$as_me:$LINENO: checking for $ac_header" >&5
9215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9216if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9217 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9218else
bec39cab 9219 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9220fi
b4e70030
JB
9221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9223
5ee754fc 9224fi
bec39cab
AC
9225if test `eval echo '${'$as_ac_Header'}'` = yes; then
9226 cat >>confdefs.h <<_ACEOF
9227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9228_ACEOF
9229
5ee754fc 9230fi
bec39cab 9231
5ee754fc
MK
9232done
9233
bec39cab 9234
7eb368b3
NR
9235for ac_header in sys/resource.h
9236do
9237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9238if eval "test \"\${$as_ac_Header+set}\" = set"; then
9239 echo "$as_me:$LINENO: checking for $ac_header" >&5
9240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9241if eval "test \"\${$as_ac_Header+set}\" = set"; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243fi
9244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9246else
9247 # Is the header compilable?
9248echo "$as_me:$LINENO: checking $ac_header usability" >&5
9249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9250cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h. */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h. */
9256$ac_includes_default
9257#include <$ac_header>
9258_ACEOF
9259rm -f conftest.$ac_objext
9260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9261 (eval $ac_compile) 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try='test -z "$ac_c_werror_flag"
9269 || test ! -s conftest.err'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 (eval $ac_try) 2>&5
9272 ac_status=$?
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; } &&
9275 { ac_try='test -s conftest.$ac_objext'
9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 (eval $ac_try) 2>&5
9278 ac_status=$?
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 ac_header_compiler=yes
9282else
9283 echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286ac_header_compiler=no
9287fi
9288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9290echo "${ECHO_T}$ac_header_compiler" >&6
9291
9292# Is the header present?
9293echo "$as_me:$LINENO: checking $ac_header presence" >&5
9294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9295cat >conftest.$ac_ext <<_ACEOF
9296/* confdefs.h. */
9297_ACEOF
9298cat confdefs.h >>conftest.$ac_ext
9299cat >>conftest.$ac_ext <<_ACEOF
9300/* end confdefs.h. */
9301#include <$ac_header>
9302_ACEOF
9303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } >/dev/null; then
9311 if test -s conftest.err; then
9312 ac_cpp_err=$ac_c_preproc_warn_flag
9313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9314 else
9315 ac_cpp_err=
9316 fi
9317else
9318 ac_cpp_err=yes
9319fi
9320if test -z "$ac_cpp_err"; then
9321 ac_header_preproc=yes
9322else
9323 echo "$as_me: failed program was:" >&5
9324sed 's/^/| /' conftest.$ac_ext >&5
9325
9326 ac_header_preproc=no
9327fi
9328rm -f conftest.err conftest.$ac_ext
9329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9330echo "${ECHO_T}$ac_header_preproc" >&6
9331
9332# So? What about this header?
9333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9334 yes:no: )
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9339 ac_header_preproc=yes
9340 ;;
9341 no:yes:* )
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9354 (
9355 cat <<\_ASBOX
9356## ------------------------------------------ ##
9357## Report this to the AC_PACKAGE_NAME lists. ##
9358## ------------------------------------------ ##
9359_ASBOX
9360 ) |
9361 sed "s/^/$as_me: WARNING: /" >&2
9362 ;;
9363esac
9364echo "$as_me:$LINENO: checking for $ac_header" >&5
9365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9366if eval "test \"\${$as_ac_Header+set}\" = set"; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368else
9369 eval "$as_ac_Header=\$ac_header_preproc"
9370fi
9371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9373
9374fi
9375if test `eval echo '${'$as_ac_Header'}'` = yes; then
9376 cat >>confdefs.h <<_ACEOF
9377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9378_ACEOF
9379
9380fi
9381
9382done
9383
9384
bec39cab 9385for ac_header in sys/proc.h
5ee754fc 9386do
bec39cab 9387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9388echo "$as_me:$LINENO: checking for $ac_header" >&5
9389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9390if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9391 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9392else
7cb9022a 9393 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9394/* confdefs.h. */
9395_ACEOF
9396cat confdefs.h >>conftest.$ac_ext
9397cat >>conftest.$ac_ext <<_ACEOF
9398/* end confdefs.h. */
7cb9022a
MK
9399#if HAVE_SYS_PARAM_H
9400# include <sys/param.h>
9401#endif
9402
9403
bec39cab
AC
9404#include <$ac_header>
9405_ACEOF
9406rm -f conftest.$ac_objext
9407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9408 (eval $ac_compile) 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
b4e70030
JB
9415 { ac_try='test -z "$ac_c_werror_flag"
9416 || test ! -s conftest.err'
bec39cab
AC
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; } &&
9422 { ac_try='test -s conftest.$ac_objext'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 (eval $ac_try) 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; }; then
7cb9022a 9428 eval "$as_ac_Header=yes"
bec39cab
AC
9429else
9430 echo "$as_me: failed program was:" >&5
9431sed 's/^/| /' conftest.$ac_ext >&5
9432
b4e70030 9433eval "$as_ac_Header=no"
bec39cab
AC
9434fi
9435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9436fi
b4e70030
JB
9437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9439if test `eval echo '${'$as_ac_Header'}'` = yes; then
9440 cat >>confdefs.h <<_ACEOF
9441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9442_ACEOF
9443
5ee754fc 9444fi
bec39cab 9445
5ee754fc
MK
9446done
9447
bec39cab
AC
9448
9449for ac_header in sys/procfs.h
5ee754fc 9450do
bec39cab 9451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9452if eval "test \"\${$as_ac_Header+set}\" = set"; then
9453 echo "$as_me:$LINENO: checking for $ac_header" >&5
9454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9455if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457fi
b4e70030
JB
9458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9460else
9461 # Is the header compilable?
b4e70030
JB
9462echo "$as_me:$LINENO: checking $ac_header usability" >&5
9463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9464cat >conftest.$ac_ext <<_ACEOF
9465/* confdefs.h. */
9466_ACEOF
9467cat confdefs.h >>conftest.$ac_ext
9468cat >>conftest.$ac_ext <<_ACEOF
9469/* end confdefs.h. */
9470$ac_includes_default
9471#include <$ac_header>
9472_ACEOF
9473rm -f conftest.$ac_objext
9474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475 (eval $ac_compile) 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } &&
b4e70030
JB
9482 { ac_try='test -z "$ac_c_werror_flag"
9483 || test ! -s conftest.err'
bec39cab
AC
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 (eval $ac_try) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
9495 ac_header_compiler=yes
9496else
9497 echo "$as_me: failed program was:" >&5
9498sed 's/^/| /' conftest.$ac_ext >&5
9499
b4e70030 9500ac_header_compiler=no
bec39cab
AC
9501fi
9502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9504echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9505
9506# Is the header present?
b4e70030
JB
9507echo "$as_me:$LINENO: checking $ac_header presence" >&5
9508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9509cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
9515#include <$ac_header>
9516_ACEOF
9517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } >/dev/null; then
9525 if test -s conftest.err; then
9526 ac_cpp_err=$ac_c_preproc_warn_flag
9527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9528 else
9529 ac_cpp_err=
9530 fi
9531else
9532 ac_cpp_err=yes
5ee754fc 9533fi
bec39cab
AC
9534if test -z "$ac_cpp_err"; then
9535 ac_header_preproc=yes
5ee754fc 9536else
bec39cab
AC
9537 echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540 ac_header_preproc=no
5ee754fc 9541fi
bec39cab 9542rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9544echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9545
bec39cab
AC
9546# So? What about this header?
9547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9548 yes:no: )
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9553 ac_header_preproc=yes
9554 ;;
9555 no:yes:* )
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9563echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9568 (
9569 cat <<\_ASBOX
9570## ------------------------------------------ ##
9571## Report this to the AC_PACKAGE_NAME lists. ##
9572## ------------------------------------------ ##
9573_ASBOX
9574 ) |
9575 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9576 ;;
9577esac
b4e70030
JB
9578echo "$as_me:$LINENO: checking for $ac_header" >&5
9579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9580if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582else
9583 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9584fi
b4e70030
JB
9585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9587
5ee754fc 9588fi
bec39cab
AC
9589if test `eval echo '${'$as_ac_Header'}'` = yes; then
9590 cat >>confdefs.h <<_ACEOF
9591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9592_ACEOF
9593
5ee754fc 9594fi
bec39cab 9595
5ee754fc
MK
9596done
9597
bec39cab
AC
9598
9599
9600for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9601do
bec39cab 9602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9603if eval "test \"\${$as_ac_Header+set}\" = set"; then
9604 echo "$as_me:$LINENO: checking for $ac_header" >&5
9605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9606if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608fi
b4e70030
JB
9609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9611else
9612 # Is the header compilable?
b4e70030
JB
9613echo "$as_me:$LINENO: checking $ac_header usability" >&5
9614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9615cat >conftest.$ac_ext <<_ACEOF
9616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h. */
9621$ac_includes_default
9622#include <$ac_header>
9623_ACEOF
9624rm -f conftest.$ac_objext
9625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626 (eval $ac_compile) 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
b4e70030
JB
9633 { ac_try='test -z "$ac_c_werror_flag"
9634 || test ! -s conftest.err'
bec39cab
AC
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest.$ac_objext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 ac_header_compiler=yes
9647else
9648 echo "$as_me: failed program was:" >&5
9649sed 's/^/| /' conftest.$ac_ext >&5
9650
b4e70030 9651ac_header_compiler=no
bec39cab
AC
9652fi
9653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9654echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9655echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9656
9657# Is the header present?
b4e70030
JB
9658echo "$as_me:$LINENO: checking $ac_header presence" >&5
9659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9660cat >conftest.$ac_ext <<_ACEOF
9661/* confdefs.h. */
9662_ACEOF
9663cat confdefs.h >>conftest.$ac_ext
9664cat >>conftest.$ac_ext <<_ACEOF
9665/* end confdefs.h. */
9666#include <$ac_header>
9667_ACEOF
9668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } >/dev/null; then
9676 if test -s conftest.err; then
9677 ac_cpp_err=$ac_c_preproc_warn_flag
9678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9679 else
9680 ac_cpp_err=
9681 fi
9682else
9683 ac_cpp_err=yes
5ee754fc 9684fi
bec39cab
AC
9685if test -z "$ac_cpp_err"; then
9686 ac_header_preproc=yes
5ee754fc 9687else
bec39cab
AC
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 ac_header_preproc=no
5ee754fc 9692fi
bec39cab 9693rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9694echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9696
bec39cab
AC
9697# So? What about this header?
9698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9699 yes:no: )
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9704 ac_header_preproc=yes
9705 ;;
9706 no:yes:* )
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9719 (
9720 cat <<\_ASBOX
9721## ------------------------------------------ ##
9722## Report this to the AC_PACKAGE_NAME lists. ##
9723## ------------------------------------------ ##
9724_ASBOX
9725 ) |
9726 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9727 ;;
9728esac
b4e70030
JB
9729echo "$as_me:$LINENO: checking for $ac_header" >&5
9730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9731if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733else
9734 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9735fi
b4e70030
JB
9736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9738
5ee754fc 9739fi
bec39cab
AC
9740if test `eval echo '${'$as_ac_Header'}'` = yes; then
9741 cat >>confdefs.h <<_ACEOF
9742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9743_ACEOF
9744
5ee754fc 9745fi
bec39cab 9746
5ee754fc
MK
9747done
9748
bec39cab
AC
9749
9750
9751for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9752do
bec39cab 9753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9754if eval "test \"\${$as_ac_Header+set}\" = set"; then
9755 echo "$as_me:$LINENO: checking for $ac_header" >&5
9756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9757if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759fi
b4e70030
JB
9760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9762else
9763 # Is the header compilable?
b4e70030
JB
9764echo "$as_me:$LINENO: checking $ac_header usability" >&5
9765echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9766cat >conftest.$ac_ext <<_ACEOF
9767/* confdefs.h. */
9768_ACEOF
9769cat confdefs.h >>conftest.$ac_ext
9770cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */
9772$ac_includes_default
9773#include <$ac_header>
9774_ACEOF
9775rm -f conftest.$ac_objext
9776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9777 (eval $ac_compile) 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
b4e70030
JB
9784 { ac_try='test -z "$ac_c_werror_flag"
9785 || test ! -s conftest.err'
bec39cab
AC
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try='test -s conftest.$ac_objext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 ac_header_compiler=yes
9798else
9799 echo "$as_me: failed program was:" >&5
9800sed 's/^/| /' conftest.$ac_ext >&5
9801
b4e70030 9802ac_header_compiler=no
bec39cab
AC
9803fi
9804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9805echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9806echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9807
9808# Is the header present?
b4e70030
JB
9809echo "$as_me:$LINENO: checking $ac_header presence" >&5
9810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9811cat >conftest.$ac_ext <<_ACEOF
9812/* confdefs.h. */
9813_ACEOF
9814cat confdefs.h >>conftest.$ac_ext
9815cat >>conftest.$ac_ext <<_ACEOF
9816/* end confdefs.h. */
9817#include <$ac_header>
9818_ACEOF
9819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } >/dev/null; then
9827 if test -s conftest.err; then
9828 ac_cpp_err=$ac_c_preproc_warn_flag
9829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9830 else
9831 ac_cpp_err=
9832 fi
9833else
9834 ac_cpp_err=yes
5ee754fc 9835fi
bec39cab
AC
9836if test -z "$ac_cpp_err"; then
9837 ac_header_preproc=yes
5ee754fc 9838else
bec39cab
AC
9839 echo "$as_me: failed program was:" >&5
9840sed 's/^/| /' conftest.$ac_ext >&5
9841
9842 ac_header_preproc=no
5ee754fc 9843fi
bec39cab 9844rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9845echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9846echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9847
bec39cab
AC
9848# So? What about this header?
9849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9850 yes:no: )
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9855 ac_header_preproc=yes
9856 ;;
9857 no:yes:* )
9858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9870 (
9871 cat <<\_ASBOX
9872## ------------------------------------------ ##
9873## Report this to the AC_PACKAGE_NAME lists. ##
9874## ------------------------------------------ ##
9875_ASBOX
9876 ) |
9877 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9878 ;;
9879esac
b4e70030
JB
9880echo "$as_me:$LINENO: checking for $ac_header" >&5
9881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9882if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884else
9885 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9886fi
b4e70030
JB
9887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9889
5ee754fc 9890fi
bec39cab
AC
9891if test `eval echo '${'$as_ac_Header'}'` = yes; then
9892 cat >>confdefs.h <<_ACEOF
9893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9894_ACEOF
9895
5ee754fc 9896fi
bec39cab 9897
5ee754fc
MK
9898done
9899
bec39cab
AC
9900
9901for ac_header in sys/select.h
5ee754fc 9902do
bec39cab 9903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9904if eval "test \"\${$as_ac_Header+set}\" = set"; then
9905 echo "$as_me:$LINENO: checking for $ac_header" >&5
9906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9907if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909fi
b4e70030
JB
9910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9912else
9913 # Is the header compilable?
b4e70030
JB
9914echo "$as_me:$LINENO: checking $ac_header usability" >&5
9915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9916cat >conftest.$ac_ext <<_ACEOF
9917/* confdefs.h. */
9918_ACEOF
9919cat confdefs.h >>conftest.$ac_ext
9920cat >>conftest.$ac_ext <<_ACEOF
9921/* end confdefs.h. */
9922$ac_includes_default
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
9947 ac_header_compiler=yes
9948else
9949 echo "$as_me: failed program was:" >&5
9950sed 's/^/| /' conftest.$ac_ext >&5
9951
b4e70030 9952ac_header_compiler=no
bec39cab
AC
9953fi
9954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9956echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9957
9958# Is the header present?
b4e70030
JB
9959echo "$as_me:$LINENO: checking $ac_header presence" >&5
9960echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9961cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h. */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
9966/* end confdefs.h. */
9967#include <$ac_header>
9968_ACEOF
9969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } >/dev/null; then
9977 if test -s conftest.err; then
9978 ac_cpp_err=$ac_c_preproc_warn_flag
9979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9980 else
9981 ac_cpp_err=
9982 fi
9983else
9984 ac_cpp_err=yes
5ee754fc 9985fi
bec39cab
AC
9986if test -z "$ac_cpp_err"; then
9987 ac_header_preproc=yes
5ee754fc 9988else
bec39cab
AC
9989 echo "$as_me: failed program was:" >&5
9990sed 's/^/| /' conftest.$ac_ext >&5
9991
9992 ac_header_preproc=no
5ee754fc 9993fi
bec39cab 9994rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9996echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9997
bec39cab
AC
9998# So? What about this header?
9999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10000 yes:no: )
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10004echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10005 ac_header_preproc=yes
10006 ;;
10007 no:yes:* )
10008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10009echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10011echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10013echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10015echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10020 (
10021 cat <<\_ASBOX
10022## ------------------------------------------ ##
10023## Report this to the AC_PACKAGE_NAME lists. ##
10024## ------------------------------------------ ##
10025_ASBOX
10026 ) |
10027 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10028 ;;
10029esac
b4e70030
JB
10030echo "$as_me:$LINENO: checking for $ac_header" >&5
10031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10032if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034else
10035 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10036fi
b4e70030
JB
10037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10039
5ee754fc 10040fi
bec39cab
AC
10041if test `eval echo '${'$as_ac_Header'}'` = yes; then
10042 cat >>confdefs.h <<_ACEOF
10043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10044_ACEOF
10045
5ee754fc 10046fi
bec39cab 10047
5ee754fc
MK
10048done
10049
bec39cab
AC
10050
10051for ac_header in sys/syscall.h
5ee754fc 10052do
bec39cab 10053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10054if eval "test \"\${$as_ac_Header+set}\" = set"; then
10055 echo "$as_me:$LINENO: checking for $ac_header" >&5
10056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10057if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059fi
b4e70030
JB
10060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10062else
10063 # Is the header compilable?
b4e70030
JB
10064echo "$as_me:$LINENO: checking $ac_header usability" >&5
10065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10066cat >conftest.$ac_ext <<_ACEOF
10067/* confdefs.h. */
10068_ACEOF
10069cat confdefs.h >>conftest.$ac_ext
10070cat >>conftest.$ac_ext <<_ACEOF
10071/* end confdefs.h. */
10072$ac_includes_default
10073#include <$ac_header>
10074_ACEOF
10075rm -f conftest.$ac_objext
10076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077 (eval $ac_compile) 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } &&
b4e70030
JB
10084 { ac_try='test -z "$ac_c_werror_flag"
10085 || test ! -s conftest.err'
bec39cab
AC
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest.$ac_objext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 ac_header_compiler=yes
10098else
10099 echo "$as_me: failed program was:" >&5
10100sed 's/^/| /' conftest.$ac_ext >&5
10101
b4e70030 10102ac_header_compiler=no
bec39cab
AC
10103fi
10104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10105echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10106echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10107
10108# Is the header present?
b4e70030
JB
10109echo "$as_me:$LINENO: checking $ac_header presence" >&5
10110echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10111cat >conftest.$ac_ext <<_ACEOF
10112/* confdefs.h. */
10113_ACEOF
10114cat confdefs.h >>conftest.$ac_ext
10115cat >>conftest.$ac_ext <<_ACEOF
10116/* end confdefs.h. */
10117#include <$ac_header>
10118_ACEOF
10119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } >/dev/null; then
10127 if test -s conftest.err; then
10128 ac_cpp_err=$ac_c_preproc_warn_flag
10129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10130 else
10131 ac_cpp_err=
10132 fi
10133else
10134 ac_cpp_err=yes
5ee754fc 10135fi
bec39cab
AC
10136if test -z "$ac_cpp_err"; then
10137 ac_header_preproc=yes
5ee754fc 10138else
bec39cab
AC
10139 echo "$as_me: failed program was:" >&5
10140sed 's/^/| /' conftest.$ac_ext >&5
10141
10142 ac_header_preproc=no
5ee754fc 10143fi
bec39cab 10144rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10145echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10146echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10147
bec39cab
AC
10148# So? What about this header?
10149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10150 yes:no: )
10151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10152echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10154echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10155 ac_header_preproc=yes
10156 ;;
10157 no:yes:* )
10158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10159echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10161echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10163echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10165echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10169echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10170 (
10171 cat <<\_ASBOX
10172## ------------------------------------------ ##
10173## Report this to the AC_PACKAGE_NAME lists. ##
10174## ------------------------------------------ ##
10175_ASBOX
10176 ) |
10177 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10178 ;;
10179esac
b4e70030
JB
10180echo "$as_me:$LINENO: checking for $ac_header" >&5
10181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10182if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184else
10185 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10186fi
b4e70030
JB
10187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10189
5ee754fc 10190fi
bec39cab
AC
10191if test `eval echo '${'$as_ac_Header'}'` = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10194_ACEOF
10195
5ee754fc 10196fi
bec39cab 10197
5ee754fc
MK
10198done
10199
bec39cab
AC
10200
10201for ac_header in sys/types.h
5ee754fc 10202do
bec39cab 10203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10204if eval "test \"\${$as_ac_Header+set}\" = set"; then
10205 echo "$as_me:$LINENO: checking for $ac_header" >&5
10206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10207if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10209fi
b4e70030
JB
10210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10212else
10213 # Is the header compilable?
b4e70030
JB
10214echo "$as_me:$LINENO: checking $ac_header usability" >&5
10215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10216cat >conftest.$ac_ext <<_ACEOF
10217/* confdefs.h. */
10218_ACEOF
10219cat confdefs.h >>conftest.$ac_ext
10220cat >>conftest.$ac_ext <<_ACEOF
10221/* end confdefs.h. */
10222$ac_includes_default
10223#include <$ac_header>
10224_ACEOF
10225rm -f conftest.$ac_objext
10226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10227 (eval $ac_compile) 2>conftest.er1
10228 ac_status=$?
10229 grep -v '^ *+' conftest.er1 >conftest.err
10230 rm -f conftest.er1
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
b4e70030
JB
10234 { ac_try='test -z "$ac_c_werror_flag"
10235 || test ! -s conftest.err'
bec39cab
AC
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest.$ac_objext'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 ac_header_compiler=yes
10248else
10249 echo "$as_me: failed program was:" >&5
10250sed 's/^/| /' conftest.$ac_ext >&5
10251
b4e70030 10252ac_header_compiler=no
bec39cab
AC
10253fi
10254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10256echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10257
10258# Is the header present?
b4e70030
JB
10259echo "$as_me:$LINENO: checking $ac_header presence" >&5
10260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10261cat >conftest.$ac_ext <<_ACEOF
10262/* confdefs.h. */
10263_ACEOF
10264cat confdefs.h >>conftest.$ac_ext
10265cat >>conftest.$ac_ext <<_ACEOF
10266/* end confdefs.h. */
10267#include <$ac_header>
10268_ACEOF
10269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } >/dev/null; then
10277 if test -s conftest.err; then
10278 ac_cpp_err=$ac_c_preproc_warn_flag
10279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10280 else
10281 ac_cpp_err=
10282 fi
10283else
10284 ac_cpp_err=yes
5ee754fc 10285fi
bec39cab
AC
10286if test -z "$ac_cpp_err"; then
10287 ac_header_preproc=yes
5ee754fc 10288else
bec39cab
AC
10289 echo "$as_me: failed program was:" >&5
10290sed 's/^/| /' conftest.$ac_ext >&5
10291
10292 ac_header_preproc=no
5ee754fc 10293fi
bec39cab 10294rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10296echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10297
bec39cab
AC
10298# So? What about this header?
10299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10300 yes:no: )
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10305 ac_header_preproc=yes
10306 ;;
10307 no:yes:* )
10308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10320 (
10321 cat <<\_ASBOX
10322## ------------------------------------------ ##
10323## Report this to the AC_PACKAGE_NAME lists. ##
10324## ------------------------------------------ ##
10325_ASBOX
10326 ) |
10327 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10328 ;;
10329esac
b4e70030
JB
10330echo "$as_me:$LINENO: checking for $ac_header" >&5
10331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10332if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334else
10335 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10336fi
b4e70030
JB
10337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10339
5ee754fc 10340fi
bec39cab
AC
10341if test `eval echo '${'$as_ac_Header'}'` = yes; then
10342 cat >>confdefs.h <<_ACEOF
10343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10344_ACEOF
10345
5ee754fc 10346fi
bec39cab 10347
5ee754fc
MK
10348done
10349
bec39cab
AC
10350
10351for ac_header in sys/user.h
5ee754fc 10352do
bec39cab 10353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10354echo "$as_me:$LINENO: checking for $ac_header" >&5
10355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10356if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10357 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10358else
7cb9022a 10359 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10360/* confdefs.h. */
10361_ACEOF
10362cat confdefs.h >>conftest.$ac_ext
10363cat >>conftest.$ac_ext <<_ACEOF
10364/* end confdefs.h. */
7cb9022a
MK
10365#if HAVE_SYS_PARAM_H
10366# include <sys/param.h>
10367#endif
10368
10369
bec39cab
AC
10370#include <$ac_header>
10371_ACEOF
10372rm -f conftest.$ac_objext
10373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10374 (eval $ac_compile) 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
b4e70030
JB
10381 { ac_try='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
bec39cab
AC
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
7cb9022a 10394 eval "$as_ac_Header=yes"
bec39cab
AC
10395else
10396 echo "$as_me: failed program was:" >&5
10397sed 's/^/| /' conftest.$ac_ext >&5
10398
b4e70030 10399eval "$as_ac_Header=no"
bec39cab
AC
10400fi
10401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10402fi
b4e70030
JB
10403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10405if test `eval echo '${'$as_ac_Header'}'` = yes; then
10406 cat >>confdefs.h <<_ACEOF
10407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10408_ACEOF
10409
5ee754fc 10410fi
bec39cab 10411
5ee754fc
MK
10412done
10413
bec39cab
AC
10414
10415
10416for ac_header in sys/wait.h wait.h
5ee754fc 10417do
bec39cab 10418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10419if eval "test \"\${$as_ac_Header+set}\" = set"; then
10420 echo "$as_me:$LINENO: checking for $ac_header" >&5
10421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10422if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424fi
b4e70030
JB
10425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10427else
10428 # Is the header compilable?
b4e70030
JB
10429echo "$as_me:$LINENO: checking $ac_header usability" >&5
10430echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10431cat >conftest.$ac_ext <<_ACEOF
10432/* confdefs.h. */
10433_ACEOF
10434cat confdefs.h >>conftest.$ac_ext
10435cat >>conftest.$ac_ext <<_ACEOF
10436/* end confdefs.h. */
10437$ac_includes_default
10438#include <$ac_header>
10439_ACEOF
10440rm -f conftest.$ac_objext
10441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442 (eval $ac_compile) 2>conftest.er1
10443 ac_status=$?
10444 grep -v '^ *+' conftest.er1 >conftest.err
10445 rm -f conftest.er1
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
b4e70030
JB
10449 { ac_try='test -z "$ac_c_werror_flag"
10450 || test ! -s conftest.err'
bec39cab
AC
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; } &&
10456 { ac_try='test -s conftest.$ac_objext'
10457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; }; then
10462 ac_header_compiler=yes
10463else
10464 echo "$as_me: failed program was:" >&5
10465sed 's/^/| /' conftest.$ac_ext >&5
10466
b4e70030 10467ac_header_compiler=no
bec39cab
AC
10468fi
10469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10471echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10472
10473# Is the header present?
b4e70030
JB
10474echo "$as_me:$LINENO: checking $ac_header presence" >&5
10475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10476cat >conftest.$ac_ext <<_ACEOF
10477/* confdefs.h. */
10478_ACEOF
10479cat confdefs.h >>conftest.$ac_ext
10480cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h. */
10482#include <$ac_header>
10483_ACEOF
10484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } >/dev/null; then
10492 if test -s conftest.err; then
10493 ac_cpp_err=$ac_c_preproc_warn_flag
10494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10495 else
10496 ac_cpp_err=
10497 fi
10498else
10499 ac_cpp_err=yes
5ee754fc 10500fi
bec39cab
AC
10501if test -z "$ac_cpp_err"; then
10502 ac_header_preproc=yes
5ee754fc 10503else
bec39cab
AC
10504 echo "$as_me: failed program was:" >&5
10505sed 's/^/| /' conftest.$ac_ext >&5
10506
10507 ac_header_preproc=no
5ee754fc 10508fi
bec39cab 10509rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10511echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10512
bec39cab
AC
10513# So? What about this header?
10514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10515 yes:no: )
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10520 ac_header_preproc=yes
10521 ;;
10522 no:yes:* )
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10535 (
10536 cat <<\_ASBOX
10537## ------------------------------------------ ##
10538## Report this to the AC_PACKAGE_NAME lists. ##
10539## ------------------------------------------ ##
10540_ASBOX
10541 ) |
10542 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10543 ;;
10544esac
b4e70030
JB
10545echo "$as_me:$LINENO: checking for $ac_header" >&5
10546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10547if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10549else
10550 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10551fi
b4e70030
JB
10552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10554
9608ab8b 10555fi
bec39cab
AC
10556if test `eval echo '${'$as_ac_Header'}'` = yes; then
10557 cat >>confdefs.h <<_ACEOF
10558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10559_ACEOF
10560
9608ab8b 10561fi
bec39cab 10562
9608ab8b 10563done
5ee754fc 10564
bec39cab
AC
10565
10566
10567
10568for ac_header in termios.h termio.h sgtty.h
5ee754fc 10569do
bec39cab 10570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10571if eval "test \"\${$as_ac_Header+set}\" = set"; then
10572 echo "$as_me:$LINENO: checking for $ac_header" >&5
10573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10574if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576fi
b4e70030
JB
10577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10579else
10580 # Is the header compilable?
b4e70030
JB
10581echo "$as_me:$LINENO: checking $ac_header usability" >&5
10582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10583cat >conftest.$ac_ext <<_ACEOF
10584/* confdefs.h. */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h. */
10589$ac_includes_default
10590#include <$ac_header>
10591_ACEOF
10592rm -f conftest.$ac_objext
10593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10594 (eval $ac_compile) 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
b4e70030
JB
10601 { ac_try='test -z "$ac_c_werror_flag"
10602 || test ! -s conftest.err'
bec39cab
AC
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest.$ac_objext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_header_compiler=yes
10615else
10616 echo "$as_me: failed program was:" >&5
10617sed 's/^/| /' conftest.$ac_ext >&5
10618
b4e70030 10619ac_header_compiler=no
bec39cab
AC
10620fi
10621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10623echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10624
10625# Is the header present?
b4e70030
JB
10626echo "$as_me:$LINENO: checking $ac_header presence" >&5
10627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10628cat >conftest.$ac_ext <<_ACEOF
10629/* confdefs.h. */
10630_ACEOF
10631cat confdefs.h >>conftest.$ac_ext
10632cat >>conftest.$ac_ext <<_ACEOF
10633/* end confdefs.h. */
10634#include <$ac_header>
10635_ACEOF
10636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } >/dev/null; then
10644 if test -s conftest.err; then
10645 ac_cpp_err=$ac_c_preproc_warn_flag
10646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10647 else
10648 ac_cpp_err=
10649 fi
10650else
10651 ac_cpp_err=yes
9608ab8b 10652fi
bec39cab
AC
10653if test -z "$ac_cpp_err"; then
10654 ac_header_preproc=yes
9608ab8b 10655else
bec39cab
AC
10656 echo "$as_me: failed program was:" >&5
10657sed 's/^/| /' conftest.$ac_ext >&5
10658
10659 ac_header_preproc=no
9608ab8b 10660fi
bec39cab 10661rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10663echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10664
bec39cab
AC
10665# So? What about this header?
10666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10667 yes:no: )
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10672 ac_header_preproc=yes
10673 ;;
10674 no:yes:* )
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10687 (
10688 cat <<\_ASBOX
10689## ------------------------------------------ ##
10690## Report this to the AC_PACKAGE_NAME lists. ##
10691## ------------------------------------------ ##
10692_ASBOX
10693 ) |
10694 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10695 ;;
10696esac
b4e70030
JB
10697echo "$as_me:$LINENO: checking for $ac_header" >&5
10698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10699if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701else
10702 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10703fi
b4e70030
JB
10704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10706
9608ab8b 10707fi
bec39cab
AC
10708if test `eval echo '${'$as_ac_Header'}'` = yes; then
10709 cat >>confdefs.h <<_ACEOF
10710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10711_ACEOF
10712
9608ab8b 10713fi
bec39cab 10714
5ee754fc 10715done
9608ab8b 10716
bec39cab
AC
10717
10718for ac_header in unistd.h
78434e59 10719do
bec39cab 10720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10721if eval "test \"\${$as_ac_Header+set}\" = set"; then
10722 echo "$as_me:$LINENO: checking for $ac_header" >&5
10723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10724if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726fi
b4e70030
JB
10727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10729else
10730 # Is the header compilable?
b4e70030
JB
10731echo "$as_me:$LINENO: checking $ac_header usability" >&5
10732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10733cat >conftest.$ac_ext <<_ACEOF
10734/* confdefs.h. */
10735_ACEOF
10736cat confdefs.h >>conftest.$ac_ext
10737cat >>conftest.$ac_ext <<_ACEOF
10738/* end confdefs.h. */
10739$ac_includes_default
10740#include <$ac_header>
10741_ACEOF
10742rm -f conftest.$ac_objext
10743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744 (eval $ac_compile) 2>conftest.er1
10745 ac_status=$?
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -f conftest.er1
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
b4e70030
JB
10751 { ac_try='test -z "$ac_c_werror_flag"
10752 || test ! -s conftest.err'
bec39cab
AC
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 ac_header_compiler=yes
10765else
10766 echo "$as_me: failed program was:" >&5
10767sed 's/^/| /' conftest.$ac_ext >&5
10768
b4e70030 10769ac_header_compiler=no
bec39cab
AC
10770fi
10771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10773echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10774
10775# Is the header present?
b4e70030
JB
10776echo "$as_me:$LINENO: checking $ac_header presence" >&5
10777echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10778cat >conftest.$ac_ext <<_ACEOF
10779/* confdefs.h. */
10780_ACEOF
10781cat confdefs.h >>conftest.$ac_ext
10782cat >>conftest.$ac_ext <<_ACEOF
10783/* end confdefs.h. */
10784#include <$ac_header>
10785_ACEOF
10786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10788 ac_status=$?
10789 grep -v '^ *+' conftest.er1 >conftest.err
10790 rm -f conftest.er1
10791 cat conftest.err >&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } >/dev/null; then
10794 if test -s conftest.err; then
10795 ac_cpp_err=$ac_c_preproc_warn_flag
10796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10797 else
10798 ac_cpp_err=
10799 fi
10800else
10801 ac_cpp_err=yes
78434e59 10802fi
bec39cab
AC
10803if test -z "$ac_cpp_err"; then
10804 ac_header_preproc=yes
78434e59 10805else
bec39cab
AC
10806 echo "$as_me: failed program was:" >&5
10807sed 's/^/| /' conftest.$ac_ext >&5
10808
10809 ac_header_preproc=no
78434e59 10810fi
bec39cab 10811rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10812echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10813echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 10814
bec39cab
AC
10815# So? What about this header?
10816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10817 yes:no: )
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10822 ac_header_preproc=yes
10823 ;;
10824 no:yes:* )
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10832echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10837 (
10838 cat <<\_ASBOX
10839## ------------------------------------------ ##
10840## Report this to the AC_PACKAGE_NAME lists. ##
10841## ------------------------------------------ ##
10842_ASBOX
10843 ) |
10844 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10845 ;;
10846esac
b4e70030
JB
10847echo "$as_me:$LINENO: checking for $ac_header" >&5
10848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10849if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851else
10852 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 10853fi
b4e70030
JB
10854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10856
086ec9eb 10857fi
bec39cab
AC
10858if test `eval echo '${'$as_ac_Header'}'` = yes; then
10859 cat >>confdefs.h <<_ACEOF
10860#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10861_ACEOF
10862
086ec9eb 10863fi
bec39cab 10864
086ec9eb
MK
10865done
10866
9608ab8b 10867
b1d19a62 10868# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
10869# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10870# think that we don't have <curses.h> if we're using GCC.
10871case $host_os in
b1d19a62 10872 solaris2.[789])
5ee754fc 10873 if test "$GCC" = yes; then
bec39cab
AC
10874
10875cat >>confdefs.h <<\_ACEOF
5ee754fc 10876#define _MSE_INT_H 1
bec39cab 10877_ACEOF
5ee754fc
MK
10878
10879 fi ;;
10880esac
bec39cab
AC
10881
10882
10883
10884
10885for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 10886do
bec39cab 10887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10888if eval "test \"\${$as_ac_Header+set}\" = set"; then
10889 echo "$as_me:$LINENO: checking for $ac_header" >&5
10890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10891if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893fi
b4e70030
JB
10894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10896else
10897 # Is the header compilable?
b4e70030
JB
10898echo "$as_me:$LINENO: checking $ac_header usability" >&5
10899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10900cat >conftest.$ac_ext <<_ACEOF
10901/* confdefs.h. */
10902_ACEOF
10903cat confdefs.h >>conftest.$ac_ext
10904cat >>conftest.$ac_ext <<_ACEOF
10905/* end confdefs.h. */
10906$ac_includes_default
10907#include <$ac_header>
10908_ACEOF
10909rm -f conftest.$ac_objext
10910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10911 (eval $ac_compile) 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
b4e70030
JB
10918 { ac_try='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
bec39cab
AC
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest.$ac_objext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 ac_header_compiler=yes
10932else
10933 echo "$as_me: failed program was:" >&5
10934sed 's/^/| /' conftest.$ac_ext >&5
10935
b4e70030 10936ac_header_compiler=no
bec39cab
AC
10937fi
10938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10940echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10941
10942# Is the header present?
b4e70030
JB
10943echo "$as_me:$LINENO: checking $ac_header presence" >&5
10944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10945cat >conftest.$ac_ext <<_ACEOF
10946/* confdefs.h. */
10947_ACEOF
10948cat confdefs.h >>conftest.$ac_ext
10949cat >>conftest.$ac_ext <<_ACEOF
10950/* end confdefs.h. */
10951#include <$ac_header>
10952_ACEOF
10953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10955 ac_status=$?
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } >/dev/null; then
10961 if test -s conftest.err; then
10962 ac_cpp_err=$ac_c_preproc_warn_flag
10963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10964 else
10965 ac_cpp_err=
10966 fi
10967else
10968 ac_cpp_err=yes
c906108c 10969fi
bec39cab
AC
10970if test -z "$ac_cpp_err"; then
10971 ac_header_preproc=yes
10972else
10973 echo "$as_me: failed program was:" >&5
10974sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 ac_header_preproc=no
c906108c 10977fi
bec39cab 10978rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10980echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10981
10982# So? What about this header?
10983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10984 yes:no: )
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10989 ac_header_preproc=yes
10990 ;;
10991 no:yes:* )
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11004 (
11005 cat <<\_ASBOX
11006## ------------------------------------------ ##
11007## Report this to the AC_PACKAGE_NAME lists. ##
11008## ------------------------------------------ ##
11009_ASBOX
11010 ) |
11011 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11012 ;;
11013esac
b4e70030
JB
11014echo "$as_me:$LINENO: checking for $ac_header" >&5
11015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11016if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11017 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11018else
bec39cab 11019 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 11020fi
b4e70030
JB
11021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11023
11024fi
11025if test `eval echo '${'$as_ac_Header'}'` = yes; then
11026 cat >>confdefs.h <<_ACEOF
11027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11028_ACEOF
11029
11030fi
11031
5ee754fc 11032done
c906108c 11033
bec39cab 11034
065a1afc 11035for ac_header in ncurses/term.h
3b78cdbb 11036do
bec39cab 11037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11038if eval "test \"\${$as_ac_Header+set}\" = set"; then
11039 echo "$as_me:$LINENO: checking for $ac_header" >&5
11040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11041if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043fi
b4e70030
JB
11044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11046else
11047 # Is the header compilable?
b4e70030
JB
11048echo "$as_me:$LINENO: checking $ac_header usability" >&5
11049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11050cat >conftest.$ac_ext <<_ACEOF
11051/* confdefs.h. */
11052_ACEOF
11053cat confdefs.h >>conftest.$ac_ext
11054cat >>conftest.$ac_ext <<_ACEOF
11055/* end confdefs.h. */
11056$ac_includes_default
11057#include <$ac_header>
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'
bec39cab
AC
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
11081 ac_header_compiler=yes
11082else
11083 echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
b4e70030 11086ac_header_compiler=no
bec39cab
AC
11087fi
11088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11089echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11090echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11091
11092# Is the header present?
b4e70030
JB
11093echo "$as_me:$LINENO: checking $ac_header presence" >&5
11094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11095cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h. */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h. */
11101#include <$ac_header>
11102_ACEOF
11103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } >/dev/null; then
11111 if test -s conftest.err; then
11112 ac_cpp_err=$ac_c_preproc_warn_flag
11113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11114 else
11115 ac_cpp_err=
11116 fi
11117else
11118 ac_cpp_err=yes
3b78cdbb 11119fi
bec39cab
AC
11120if test -z "$ac_cpp_err"; then
11121 ac_header_preproc=yes
11122else
11123 echo "$as_me: failed program was:" >&5
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
11126 ac_header_preproc=no
3b78cdbb 11127fi
bec39cab 11128rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11129echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11130echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11131
11132# So? What about this header?
11133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11134 yes:no: )
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11139 ac_header_preproc=yes
11140 ;;
11141 no:yes:* )
11142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11154 (
11155 cat <<\_ASBOX
11156## ------------------------------------------ ##
11157## Report this to the AC_PACKAGE_NAME lists. ##
11158## ------------------------------------------ ##
11159_ASBOX
11160 ) |
11161 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11162 ;;
11163esac
b4e70030
JB
11164echo "$as_me:$LINENO: checking for $ac_header" >&5
11165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11166if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11167 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 11168else
bec39cab
AC
11169 eval "$as_ac_Header=\$ac_header_preproc"
11170fi
b4e70030
JB
11171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11173
3b78cdbb 11174fi
bec39cab
AC
11175if test `eval echo '${'$as_ac_Header'}'` = yes; then
11176 cat >>confdefs.h <<_ACEOF
11177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11178_ACEOF
11179
11180fi
11181
3b78cdbb
DA
11182done
11183
c906108c 11184
065a1afc
JB
11185for ac_header in term.h
11186do
11187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11188echo "$as_me:$LINENO: checking for $ac_header" >&5
11189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11190if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192else
11193 cat >conftest.$ac_ext <<_ACEOF
11194/* confdefs.h. */
11195_ACEOF
11196cat confdefs.h >>conftest.$ac_ext
11197cat >>conftest.$ac_ext <<_ACEOF
11198/* end confdefs.h. */
11199#if HAVE_CURSES_H
11200# include <curses.h>
11201#endif
11202
11203
11204#include <$ac_header>
11205_ACEOF
11206rm -f conftest.$ac_objext
11207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
b4e70030
JB
11215 { ac_try='test -z "$ac_c_werror_flag"
11216 || test ! -s conftest.err'
065a1afc
JB
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
11228 eval "$as_ac_Header=yes"
11229else
11230 echo "$as_me: failed program was:" >&5
11231sed 's/^/| /' conftest.$ac_ext >&5
11232
b4e70030 11233eval "$as_ac_Header=no"
065a1afc
JB
11234fi
11235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11236fi
b4e70030
JB
11237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
11239if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242_ACEOF
11243
11244fi
11245
11246done
11247
11248
5ee754fc
MK
11249# FIXME: kettenis/20030102: In most cases we include these
11250# unconditionally, so what's the point in checking these?
bec39cab
AC
11251
11252
11253for ac_header in ctype.h time.h
c906108c 11254do
bec39cab 11255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11256if eval "test \"\${$as_ac_Header+set}\" = set"; then
11257 echo "$as_me:$LINENO: checking for $ac_header" >&5
11258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11259if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261fi
b4e70030
JB
11262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11264else
11265 # Is the header compilable?
b4e70030
JB
11266echo "$as_me:$LINENO: checking $ac_header usability" >&5
11267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11268cat >conftest.$ac_ext <<_ACEOF
11269/* confdefs.h. */
11270_ACEOF
11271cat confdefs.h >>conftest.$ac_ext
11272cat >>conftest.$ac_ext <<_ACEOF
11273/* end confdefs.h. */
11274$ac_includes_default
11275#include <$ac_header>
11276_ACEOF
11277rm -f conftest.$ac_objext
11278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11279 (eval $ac_compile) 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
b4e70030
JB
11286 { ac_try='test -z "$ac_c_werror_flag"
11287 || test ! -s conftest.err'
bec39cab
AC
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; } &&
11293 { ac_try='test -s conftest.$ac_objext'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 ac_header_compiler=yes
11300else
11301 echo "$as_me: failed program was:" >&5
11302sed 's/^/| /' conftest.$ac_ext >&5
11303
b4e70030 11304ac_header_compiler=no
bec39cab
AC
11305fi
11306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11308echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11309
11310# Is the header present?
b4e70030
JB
11311echo "$as_me:$LINENO: checking $ac_header presence" >&5
11312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11313cat >conftest.$ac_ext <<_ACEOF
11314/* confdefs.h. */
11315_ACEOF
11316cat confdefs.h >>conftest.$ac_ext
11317cat >>conftest.$ac_ext <<_ACEOF
11318/* end confdefs.h. */
11319#include <$ac_header>
11320_ACEOF
11321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } >/dev/null; then
11329 if test -s conftest.err; then
11330 ac_cpp_err=$ac_c_preproc_warn_flag
11331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11332 else
11333 ac_cpp_err=
11334 fi
11335else
11336 ac_cpp_err=yes
c906108c 11337fi
bec39cab
AC
11338if test -z "$ac_cpp_err"; then
11339 ac_header_preproc=yes
11340else
11341 echo "$as_me: failed program was:" >&5
11342sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 ac_header_preproc=no
c906108c 11345fi
bec39cab 11346rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11349
11350# So? What about this header?
11351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11352 yes:no: )
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11357 ac_header_preproc=yes
11358 ;;
11359 no:yes:* )
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11372 (
11373 cat <<\_ASBOX
11374## ------------------------------------------ ##
11375## Report this to the AC_PACKAGE_NAME lists. ##
11376## ------------------------------------------ ##
11377_ASBOX
11378 ) |
11379 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11380 ;;
11381esac
b4e70030
JB
11382echo "$as_me:$LINENO: checking for $ac_header" >&5
11383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11384if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11385 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11386else
bec39cab
AC
11387 eval "$as_ac_Header=\$ac_header_preproc"
11388fi
b4e70030
JB
11389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11391
11392fi
11393if test `eval echo '${'$as_ac_Header'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396_ACEOF
11397
c906108c 11398fi
bec39cab 11399
c906108c
SS
11400done
11401
5ee754fc 11402
4e8d927d 11403# Create a header we can use portably to get the standard integer types.
666ec76f 11404
4e8d927d
DJ
11405
11406inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11407
11408acx_cv_header_stdint=stddef.h
11409acx_cv_header_stdint_kind="(already complete)"
11410for i in stdint.h $inttype_headers; do
11411 unset ac_cv_type_uintptr_t
11412 unset ac_cv_type_uintmax_t
11413 unset ac_cv_type_int_least32_t
11414 unset ac_cv_type_int_fast32_t
11415 unset ac_cv_type_uint64_t
11416 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11417 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11418echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 11419if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 11420 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 11421else
bec39cab
AC
11422 cat >conftest.$ac_ext <<_ACEOF
11423/* confdefs.h. */
11424_ACEOF
11425cat confdefs.h >>conftest.$ac_ext
11426cat >>conftest.$ac_ext <<_ACEOF
11427/* end confdefs.h. */
4e8d927d
DJ
11428#include <sys/types.h>
11429#include <$i>
11430
bec39cab
AC
11431int
11432main ()
11433{
b4e70030 11434if ((uintmax_t *) 0)
4e8d927d 11435 return 0;
b4e70030 11436if (sizeof (uintmax_t))
4e8d927d
DJ
11437 return 0;
11438 ;
bec39cab
AC
11439 return 0;
11440}
11441_ACEOF
11442rm -f conftest.$ac_objext
11443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11444 (eval $ac_compile) 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
b4e70030
JB
11451 { ac_try='test -z "$ac_c_werror_flag"
11452 || test ! -s conftest.err'
bec39cab
AC
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; } &&
11458 { ac_try='test -s conftest.$ac_objext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
4e8d927d 11464 ac_cv_type_uintmax_t=yes
40a7debc 11465else
bec39cab
AC
11466 echo "$as_me: failed program was:" >&5
11467sed 's/^/| /' conftest.$ac_ext >&5
11468
b4e70030 11469ac_cv_type_uintmax_t=no
40a7debc 11470fi
bec39cab 11471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11472fi
b4e70030
JB
11473echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11474echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11475if test $ac_cv_type_uintmax_t = yes; then
11476 acx_cv_header_stdint=$i
666ec76f 11477else
4e8d927d 11478 continue
666ec76f 11479fi
4e8d927d 11480
b4e70030
JB
11481 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11482echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11483if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11485else
11486 cat >conftest.$ac_ext <<_ACEOF
11487/* confdefs.h. */
11488_ACEOF
11489cat confdefs.h >>conftest.$ac_ext
11490cat >>conftest.$ac_ext <<_ACEOF
11491/* end confdefs.h. */
4e8d927d
DJ
11492#include <sys/types.h>
11493#include <$i>
11494
666ec76f
MK
11495int
11496main ()
11497{
b4e70030 11498if ((uintptr_t *) 0)
4e8d927d 11499 return 0;
b4e70030 11500if (sizeof (uintptr_t))
4e8d927d 11501 return 0;
666ec76f
MK
11502 ;
11503 return 0;
11504}
11505_ACEOF
11506rm -f conftest.$ac_objext
11507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11508 (eval $ac_compile) 2>conftest.er1
11509 ac_status=$?
11510 grep -v '^ *+' conftest.er1 >conftest.err
11511 rm -f conftest.er1
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } &&
b4e70030
JB
11515 { ac_try='test -z "$ac_c_werror_flag"
11516 || test ! -s conftest.err'
666ec76f
MK
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try='test -s conftest.$ac_objext'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
4e8d927d 11528 ac_cv_type_uintptr_t=yes
666ec76f
MK
11529else
11530 echo "$as_me: failed program was:" >&5
11531sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11532
b4e70030 11533ac_cv_type_uintptr_t=no
a3828db0
MK
11534fi
11535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11536fi
b4e70030
JB
11537echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11538echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11539if test $ac_cv_type_uintptr_t = yes; then
11540 :
a3828db0 11541else
4e8d927d 11542 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11543fi
4e8d927d 11544
b4e70030
JB
11545 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11546echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11547if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549else
11550 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11551/* confdefs.h. */
11552_ACEOF
11553cat confdefs.h >>conftest.$ac_ext
11554cat >>conftest.$ac_ext <<_ACEOF
11555/* end confdefs.h. */
4e8d927d
DJ
11556#include <sys/types.h>
11557#include <$i>
11558
bec39cab
AC
11559int
11560main ()
11561{
b4e70030 11562if ((int_least32_t *) 0)
4e8d927d 11563 return 0;
b4e70030 11564if (sizeof (int_least32_t))
4e8d927d 11565 return 0;
bec39cab
AC
11566 ;
11567 return 0;
11568}
11569_ACEOF
11570rm -f conftest.$ac_objext
11571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11572 (eval $ac_compile) 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
b4e70030
JB
11579 { ac_try='test -z "$ac_c_werror_flag"
11580 || test ! -s conftest.err'
bec39cab
AC
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; } &&
11586 { ac_try='test -s conftest.$ac_objext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
4e8d927d 11592 ac_cv_type_int_least32_t=yes
b9362cc7 11593else
bec39cab
AC
11594 echo "$as_me: failed program was:" >&5
11595sed 's/^/| /' conftest.$ac_ext >&5
11596
b4e70030 11597ac_cv_type_int_least32_t=no
b9362cc7 11598fi
bec39cab 11599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11600fi
b4e70030
JB
11601echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11602echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11603if test $ac_cv_type_int_least32_t = yes; then
11604 :
a3828db0 11605else
4e8d927d 11606 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11607fi
5ee754fc 11608
b4e70030
JB
11609 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11610echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11611if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613else
11614 cat >conftest.$ac_ext <<_ACEOF
11615/* confdefs.h. */
11616_ACEOF
11617cat confdefs.h >>conftest.$ac_ext
11618cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h. */
4e8d927d
DJ
11620#include <sys/types.h>
11621#include <$i>
11622
bec39cab
AC
11623int
11624main ()
11625{
b4e70030 11626if ((int_fast32_t *) 0)
4e8d927d 11627 return 0;
b4e70030 11628if (sizeof (int_fast32_t))
4e8d927d 11629 return 0;
bec39cab
AC
11630 ;
11631 return 0;
11632}
11633_ACEOF
11634rm -f conftest.$ac_objext
11635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11636 (eval $ac_compile) 2>conftest.er1
11637 ac_status=$?
11638 grep -v '^ *+' conftest.er1 >conftest.err
11639 rm -f conftest.er1
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
b4e70030
JB
11643 { ac_try='test -z "$ac_c_werror_flag"
11644 || test ! -s conftest.err'
bec39cab
AC
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest.$ac_objext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
4e8d927d 11656 ac_cv_type_int_fast32_t=yes
c906108c 11657else
bec39cab
AC
11658 echo "$as_me: failed program was:" >&5
11659sed 's/^/| /' conftest.$ac_ext >&5
11660
b4e70030 11661ac_cv_type_int_fast32_t=no
c906108c 11662fi
bec39cab 11663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11664fi
b4e70030
JB
11665echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11666echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
11667if test $ac_cv_type_int_fast32_t = yes; then
11668 :
a3828db0 11669else
4e8d927d 11670 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11671fi
4e8d927d 11672
b4e70030
JB
11673 echo "$as_me:$LINENO: checking for uint64_t" >&5
11674echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11675if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677else
11678 cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h. */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */
4e8d927d
DJ
11684#include <sys/types.h>
11685#include <$i>
11686
bec39cab
AC
11687int
11688main ()
11689{
b4e70030 11690if ((uint64_t *) 0)
4e8d927d 11691 return 0;
b4e70030 11692if (sizeof (uint64_t))
4e8d927d 11693 return 0;
bec39cab
AC
11694 ;
11695 return 0;
11696}
11697_ACEOF
11698rm -f conftest.$ac_objext
11699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700 (eval $ac_compile) 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
b4e70030
JB
11707 { ac_try='test -z "$ac_c_werror_flag"
11708 || test ! -s conftest.err'
bec39cab
AC
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest.$ac_objext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
4e8d927d 11720 ac_cv_type_uint64_t=yes
c906108c 11721else
bec39cab
AC
11722 echo "$as_me: failed program was:" >&5
11723sed 's/^/| /' conftest.$ac_ext >&5
11724
b4e70030 11725ac_cv_type_uint64_t=no
c906108c 11726fi
bec39cab 11727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11728fi
b4e70030
JB
11729echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11730echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
11731if test $ac_cv_type_uint64_t = yes; then
11732 :
a3828db0 11733else
4e8d927d 11734 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
11735fi
11736
4e8d927d
DJ
11737 break
11738done
11739if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 11740 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 11741 for i in stdint.h $inttype_headers; do
3841debe 11742 unset ac_cv_type_uintptr_t
4e8d927d
DJ
11743 unset ac_cv_type_uint32_t
11744 unset ac_cv_type_uint64_t
11745 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11746 echo "$as_me:$LINENO: checking for uint32_t" >&5
11747echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 11748if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 11749 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 11750else
bec39cab
AC
11751 cat >conftest.$ac_ext <<_ACEOF
11752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
4e8d927d
DJ
11757#include <sys/types.h>
11758#include <$i>
11759
a3828db0
MK
11760int
11761main ()
11762{
b4e70030 11763if ((uint32_t *) 0)
4e8d927d 11764 return 0;
b4e70030 11765if (sizeof (uint32_t))
4e8d927d 11766 return 0;
a3828db0
MK
11767 ;
11768 return 0;
11769}
bec39cab
AC
11770_ACEOF
11771rm -f conftest.$ac_objext
11772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773 (eval $ac_compile) 2>conftest.er1
11774 ac_status=$?
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
b4e70030
JB
11780 { ac_try='test -z "$ac_c_werror_flag"
11781 || test ! -s conftest.err'
bec39cab
AC
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest.$ac_objext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
4e8d927d 11793 ac_cv_type_uint32_t=yes
bce58c09 11794else
bec39cab
AC
11795 echo "$as_me: failed program was:" >&5
11796sed 's/^/| /' conftest.$ac_ext >&5
11797
b4e70030 11798ac_cv_type_uint32_t=no
bce58c09 11799fi
bec39cab 11800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 11801fi
b4e70030
JB
11802echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11803echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
11804if test $ac_cv_type_uint32_t = yes; then
11805 acx_cv_header_stdint=$i
a3828db0 11806else
4e8d927d 11807 continue
e5a7de23 11808fi
4e8d927d 11809
b4e70030
JB
11810 echo "$as_me:$LINENO: checking for uint64_t" >&5
11811echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11812if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814else
11815 cat >conftest.$ac_ext <<_ACEOF
11816/* confdefs.h. */
11817_ACEOF
11818cat confdefs.h >>conftest.$ac_ext
11819cat >>conftest.$ac_ext <<_ACEOF
11820/* end confdefs.h. */
4e8d927d
DJ
11821#include <sys/types.h>
11822#include <$i>
11823
e5a7de23
EZ
11824int
11825main ()
11826{
b4e70030 11827if ((uint64_t *) 0)
4e8d927d 11828 return 0;
b4e70030 11829if (sizeof (uint64_t))
4e8d927d 11830 return 0;
e5a7de23
EZ
11831 ;
11832 return 0;
11833}
11834_ACEOF
11835rm -f conftest.$ac_objext
11836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11837 (eval $ac_compile) 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } &&
b4e70030
JB
11844 { ac_try='test -z "$ac_c_werror_flag"
11845 || test ! -s conftest.err'
e5a7de23
EZ
11846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; } &&
11851 { ac_try='test -s conftest.$ac_objext'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
4e8d927d 11857 ac_cv_type_uint64_t=yes
e5a7de23
EZ
11858else
11859 echo "$as_me: failed program was:" >&5
11860sed 's/^/| /' conftest.$ac_ext >&5
11861
b4e70030 11862ac_cv_type_uint64_t=no
e5a7de23
EZ
11863fi
11864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11865fi
b4e70030
JB
11866echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11867echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
11868
11869 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11870echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11871if test "${ac_cv_type_uintptr_t+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11873else
11874 cat >conftest.$ac_ext <<_ACEOF
11875/* confdefs.h. */
11876_ACEOF
11877cat confdefs.h >>conftest.$ac_ext
11878cat >>conftest.$ac_ext <<_ACEOF
11879/* end confdefs.h. */
11880#include <sys/types.h>
11881#include <$i>
11882
11883int
11884main ()
11885{
11886if ((uintptr_t *) 0)
11887 return 0;
11888if (sizeof (uintptr_t))
11889 return 0;
11890 ;
11891 return 0;
11892}
11893_ACEOF
11894rm -f conftest.$ac_objext
11895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11896 (eval $ac_compile) 2>conftest.er1
11897 ac_status=$?
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest.$ac_objext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 ac_cv_type_uintptr_t=yes
e5a7de23 11917else
3841debe
DJ
11918 echo "$as_me: failed program was:" >&5
11919sed 's/^/| /' conftest.$ac_ext >&5
11920
11921ac_cv_type_uintptr_t=no
4e8d927d 11922fi
3841debe
DJ
11923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11924fi
11925echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11926echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 11927
4e8d927d
DJ
11928 break
11929 done
e5a7de23 11930fi
4e8d927d
DJ
11931if test "$acx_cv_header_stdint" = stddef.h; then
11932 acx_cv_header_stdint_kind="(u_intXX_t style)"
11933 for i in sys/types.h $inttype_headers; do
11934 unset ac_cv_type_u_int32_t
11935 unset ac_cv_type_u_int64_t
11936 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
11937 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11938echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 11939if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h. */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h. */
4e8d927d
DJ
11948#include <sys/types.h>
11949#include <$i>
11950
e5a7de23
EZ
11951int
11952main ()
11953{
b4e70030 11954if ((u_int32_t *) 0)
4e8d927d 11955 return 0;
b4e70030 11956if (sizeof (u_int32_t))
4e8d927d 11957 return 0;
e5a7de23
EZ
11958 ;
11959 return 0;
11960}
11961_ACEOF
11962rm -f conftest.$ac_objext
11963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11964 (eval $ac_compile) 2>conftest.er1
11965 ac_status=$?
11966 grep -v '^ *+' conftest.er1 >conftest.err
11967 rm -f conftest.er1
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
b4e70030
JB
11971 { ac_try='test -z "$ac_c_werror_flag"
11972 || test ! -s conftest.err'
e5a7de23
EZ
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
4e8d927d 11984 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
11985else
11986 echo "$as_me: failed program was:" >&5
11987sed 's/^/| /' conftest.$ac_ext >&5
11988
b4e70030 11989ac_cv_type_u_int32_t=no
e5a7de23
EZ
11990fi
11991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11992fi
b4e70030
JB
11993echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11994echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
11995if test $ac_cv_type_u_int32_t = yes; then
11996 acx_cv_header_stdint=$i
e5a7de23 11997else
4e8d927d 11998 continue
a3828db0 11999fi
5ee754fc 12000
b4e70030
JB
12001 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12002echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 12003if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12005else
12006 cat >conftest.$ac_ext <<_ACEOF
12007/* confdefs.h. */
12008_ACEOF
12009cat confdefs.h >>conftest.$ac_ext
12010cat >>conftest.$ac_ext <<_ACEOF
12011/* end confdefs.h. */
4e8d927d
DJ
12012#include <sys/types.h>
12013#include <$i>
12014
bec39cab
AC
12015int
12016main ()
12017{
b4e70030 12018if ((u_int64_t *) 0)
4e8d927d 12019 return 0;
b4e70030 12020if (sizeof (u_int64_t))
4e8d927d 12021 return 0;
bec39cab
AC
12022 ;
12023 return 0;
12024}
12025_ACEOF
a3828db0
MK
12026rm -f conftest.$ac_objext
12027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12028 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
b4e70030
JB
12035 { ac_try='test -z "$ac_c_werror_flag"
12036 || test ! -s conftest.err'
bec39cab
AC
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
a3828db0 12042 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
4e8d927d 12048 ac_cv_type_u_int64_t=yes
bec39cab
AC
12049else
12050 echo "$as_me: failed program was:" >&5
12051sed 's/^/| /' conftest.$ac_ext >&5
12052
b4e70030 12053ac_cv_type_u_int64_t=no
4e8d927d 12054fi
4e8d927d
DJ
12055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12056fi
b4e70030
JB
12057echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12058echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
12059
12060 break
12061 done
12062fi
12063if test "$acx_cv_header_stdint" = stddef.h; then
12064 acx_cv_header_stdint_kind="(using manual detection)"
12065fi
12066
12067test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12068test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12069test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12070test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12071test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12072
12073# ----------------- Summarize what we found so far
12074
b4e70030
JB
12075echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12076echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 12077
b4e70030 12078case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
12079$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12080 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
12081 Xgdb_stdint.h : 'X\(/\)$' \| \
12082 . : '\(.\)' 2>/dev/null ||
4e8d927d 12083echo X/gdb_stdint.h |
b4e70030
JB
12084 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12085 /^X\/\(\/\/\)$/{ s//\1/; q; }
12086 /^X\/\(\/\).*/{ s//\1/; q; }
12087 s/.*/./; q'` in
4e8d927d
DJ
12088 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12089echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12090 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12091echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12092 *) ;;
12093esac
12094
b4e70030
JB
12095echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12096echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
12097
12098# ----------------- done included file, check C basic types --------
12099
12100# Lacking an uintptr_t? Test size of void *
12101case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
12102 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12103echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
12104if test "${ac_cv_type_void_p+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106else
12107 cat >conftest.$ac_ext <<_ACEOF
a3828db0 12108/* confdefs.h. */
bec39cab
AC
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h. */
a3828db0 12113$ac_includes_default
bec39cab
AC
12114int
12115main ()
12116{
b4e70030 12117if ((void * *) 0)
4e8d927d 12118 return 0;
b4e70030 12119if (sizeof (void *))
4e8d927d 12120 return 0;
bec39cab
AC
12121 ;
12122 return 0;
12123}
12124_ACEOF
a3828db0
MK
12125rm -f conftest.$ac_objext
12126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
b4e70030
JB
12134 { ac_try='test -z "$ac_c_werror_flag"
12135 || test ! -s conftest.err'
bec39cab
AC
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
a3828db0 12141 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
4e8d927d 12147 ac_cv_type_void_p=yes
46711df8 12148else
bec39cab
AC
12149 echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
b4e70030 12152ac_cv_type_void_p=no
a3828db0 12153fi
4e8d927d 12154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 12155fi
b4e70030
JB
12156echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12157echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 12158
b4e70030
JB
12159echo "$as_me:$LINENO: checking size of void *" >&5
12160echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 12161if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163else
4e8d927d 12164 if test "$ac_cv_type_void_p" = yes; then
b4e70030 12165 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12168 # This bug is HP SR number 8606223364.
12169 if test "$cross_compiling" = yes; then
12170 # Depending upon the size, compute the lo and hi bounds.
12171cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177$ac_includes_default
12178int
12179main ()
12180{
b4e70030 12181static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
12182test_array [0] = 0
12183
d3ea6809
MM
12184 ;
12185 return 0;
12186}
12187_ACEOF
12188rm -f conftest.$ac_objext
12189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12190 (eval $ac_compile) 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } &&
b4e70030
JB
12197 { ac_try='test -z "$ac_c_werror_flag"
12198 || test ! -s conftest.err'
d3ea6809
MM
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest.$ac_objext'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
4e8d927d
DJ
12210 ac_lo=0 ac_mid=0
12211 while :; do
12212 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12213/* confdefs.h. */
12214_ACEOF
12215cat confdefs.h >>conftest.$ac_ext
12216cat >>conftest.$ac_ext <<_ACEOF
12217/* end confdefs.h. */
12218$ac_includes_default
12219int
12220main ()
12221{
b4e70030 12222static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12223test_array [0] = 0
12224
d3ea6809
MM
12225 ;
12226 return 0;
12227}
12228_ACEOF
12229rm -f conftest.$ac_objext
12230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12231 (eval $ac_compile) 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
b4e70030
JB
12238 { ac_try='test -z "$ac_c_werror_flag"
12239 || test ! -s conftest.err'
d3ea6809
MM
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
4e8d927d 12251 ac_hi=$ac_mid; break
d3ea6809
MM
12252else
12253 echo "$as_me: failed program was:" >&5
12254sed 's/^/| /' conftest.$ac_ext >&5
12255
b4e70030
JB
12256ac_lo=`expr $ac_mid + 1`
12257 if test $ac_lo -le $ac_mid; then
12258 ac_lo= ac_hi=
12259 break
12260 fi
12261 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 12262fi
4e8d927d
DJ
12263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12264 done
bec39cab 12265else
4e8d927d
DJ
12266 echo "$as_me: failed program was:" >&5
12267sed 's/^/| /' conftest.$ac_ext >&5
12268
b4e70030 12269cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h. */
4e8d927d 12275$ac_includes_default
bec39cab
AC
12276int
12277main ()
12278{
b4e70030 12279static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
12280test_array [0] = 0
12281
bec39cab
AC
12282 ;
12283 return 0;
12284}
12285_ACEOF
a3828db0
MK
12286rm -f conftest.$ac_objext
12287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12288 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12289 ac_status=$?
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
b4e70030
JB
12295 { ac_try='test -z "$ac_c_werror_flag"
12296 || test ! -s conftest.err'
bec39cab
AC
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
a3828db0 12302 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
4e8d927d
DJ
12308 ac_hi=-1 ac_mid=-1
12309 while :; do
12310 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
12311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
4e8d927d 12316$ac_includes_default
f9f87d2c
MK
12317int
12318main ()
12319{
b4e70030 12320static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
12321test_array [0] = 0
12322
f9f87d2c
MK
12323 ;
12324 return 0;
12325}
12326_ACEOF
12327rm -f conftest.$ac_objext
12328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329 (eval $ac_compile) 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
b4e70030
JB
12336 { ac_try='test -z "$ac_c_werror_flag"
12337 || test ! -s conftest.err'
f9f87d2c
MK
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; } &&
12343 { ac_try='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
4e8d927d 12349 ac_lo=$ac_mid; break
f9f87d2c
MK
12350else
12351 echo "$as_me: failed program was:" >&5
12352sed 's/^/| /' conftest.$ac_ext >&5
12353
b4e70030
JB
12354ac_hi=`expr '(' $ac_mid ')' - 1`
12355 if test $ac_mid -le $ac_hi; then
12356 ac_lo= ac_hi=
12357 break
12358 fi
12359 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 12360fi
4e8d927d
DJ
12361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12362 done
12363else
12364 echo "$as_me: failed program was:" >&5
12365sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 12366
b4e70030 12367ac_lo= ac_hi=
4e8d927d 12368fi
4e8d927d 12369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 12370fi
4e8d927d
DJ
12371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372# Binary search between lo and hi bounds.
12373while test "x$ac_lo" != "x$ac_hi"; do
12374 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
12375 cat >conftest.$ac_ext <<_ACEOF
12376/* confdefs.h. */
12377_ACEOF
12378cat confdefs.h >>conftest.$ac_ext
12379cat >>conftest.$ac_ext <<_ACEOF
12380/* end confdefs.h. */
4e8d927d 12381$ac_includes_default
3be60c3d
MK
12382int
12383main ()
12384{
b4e70030 12385static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12386test_array [0] = 0
12387
3be60c3d
MK
12388 ;
12389 return 0;
12390}
12391_ACEOF
12392rm -f conftest.$ac_objext
12393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12394 (eval $ac_compile) 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
b4e70030
JB
12401 { ac_try='test -z "$ac_c_werror_flag"
12402 || test ! -s conftest.err'
3be60c3d
MK
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest.$ac_objext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
4e8d927d 12414 ac_hi=$ac_mid
3be60c3d
MK
12415else
12416 echo "$as_me: failed program was:" >&5
12417sed 's/^/| /' conftest.$ac_ext >&5
12418
b4e70030 12419ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 12420fi
4e8d927d
DJ
12421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12422done
12423case $ac_lo in
12424?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 12425'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12426See \`config.log' for more details." >&5
b4e70030 12427echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12428See \`config.log' for more details." >&2;}
b4e70030 12429 { (exit 1); exit 1; }; } ;;
4e8d927d 12430esac
b4e70030
JB
12431else
12432 if test "$cross_compiling" = yes; then
12433 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12434See \`config.log' for more details." >&5
12435echo "$as_me: error: cannot run test program while cross compiling
12436See \`config.log' for more details." >&2;}
12437 { (exit 1); exit 1; }; }
4e8d927d
DJ
12438else
12439 cat >conftest.$ac_ext <<_ACEOF
12440/* confdefs.h. */
3be60c3d 12441_ACEOF
4e8d927d
DJ
12442cat confdefs.h >>conftest.$ac_ext
12443cat >>conftest.$ac_ext <<_ACEOF
12444/* end confdefs.h. */
12445$ac_includes_default
b4e70030
JB
12446long longval () { return (long) (sizeof (void *)); }
12447unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
12448#include <stdio.h>
12449#include <stdlib.h>
12450int
12451main ()
12452{
12453
12454 FILE *f = fopen ("conftest.val", "w");
12455 if (! f)
b4e70030
JB
12456 exit (1);
12457 if (((long) (sizeof (void *))) < 0)
4e8d927d 12458 {
b4e70030
JB
12459 long i = longval ();
12460 if (i != ((long) (sizeof (void *))))
12461 exit (1);
4e8d927d
DJ
12462 fprintf (f, "%ld\n", i);
12463 }
12464 else
12465 {
b4e70030
JB
12466 unsigned long i = ulongval ();
12467 if (i != ((long) (sizeof (void *))))
12468 exit (1);
4e8d927d
DJ
12469 fprintf (f, "%lu\n", i);
12470 }
b4e70030 12471 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12472
4e8d927d
DJ
12473 ;
12474 return 0;
12475}
12476_ACEOF
12477rm -f conftest$ac_exeext
12478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12479 (eval $ac_link) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_sizeof_void_p=`cat conftest.val`
12489else
12490 echo "$as_me: program exited with status $ac_status" >&5
12491echo "$as_me: failed program was:" >&5
12492sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12493
4e8d927d 12494( exit $ac_status )
b4e70030 12495{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12496See \`config.log' for more details." >&5
b4e70030 12497echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12498See \`config.log' for more details." >&2;}
b4e70030
JB
12499 { (exit 1); exit 1; }; }
12500fi
12501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12502fi
4e8d927d
DJ
12503fi
12504rm -f conftest.val
12505else
12506 ac_cv_sizeof_void_p=0
12507fi
12508fi
b4e70030
JB
12509echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12510echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12511cat >>confdefs.h <<_ACEOF
12512#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12513_ACEOF
f9f87d2c 12514
4e8d927d
DJ
12515 ;;
12516esac
46711df8 12517
4e8d927d
DJ
12518# Lacking an uint64_t? Test size of long
12519case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12520 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12521echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12522if test "${ac_cv_type_long+set}" = set; then
bec39cab 12523 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12524else
bec39cab
AC
12525 cat >conftest.$ac_ext <<_ACEOF
12526/* confdefs.h. */
12527_ACEOF
12528cat confdefs.h >>conftest.$ac_ext
12529cat >>conftest.$ac_ext <<_ACEOF
12530/* end confdefs.h. */
4e8d927d 12531$ac_includes_default
bec39cab 12532int
46711df8
MK
12533main ()
12534{
b4e70030 12535if ((long *) 0)
4e8d927d 12536 return 0;
b4e70030 12537if (sizeof (long))
4e8d927d 12538 return 0;
a3828db0
MK
12539 ;
12540 return 0;
46711df8 12541}
bec39cab 12542_ACEOF
a3828db0
MK
12543rm -f conftest.$ac_objext
12544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12545 (eval $ac_compile) 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
b4e70030
JB
12552 { ac_try='test -z "$ac_c_werror_flag"
12553 || test ! -s conftest.err'
a3828db0
MK
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
bec39cab
AC
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12558 (exit $ac_status); }; } &&
12559 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
4e8d927d 12565 ac_cv_type_long=yes
46711df8 12566else
a3828db0 12567 echo "$as_me: failed program was:" >&5
bec39cab
AC
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
b4e70030 12570ac_cv_type_long=no
46711df8 12571fi
4e8d927d 12572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12573fi
b4e70030
JB
12574echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12575echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12576
b4e70030
JB
12577echo "$as_me:$LINENO: checking size of long" >&5
12578echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12579if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12580 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12581else
4e8d927d 12582 if test "$ac_cv_type_long" = yes; then
b4e70030 12583 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12586 # This bug is HP SR number 8606223364.
12587 if test "$cross_compiling" = yes; then
12588 # Depending upon the size, compute the lo and hi bounds.
12589cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12590/* confdefs.h. */
12591_ACEOF
12592cat confdefs.h >>conftest.$ac_ext
12593cat >>conftest.$ac_ext <<_ACEOF
12594/* end confdefs.h. */
4e8d927d 12595$ac_includes_default
4e8d927d
DJ
12596int
12597main ()
12598{
b4e70030 12599static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12600test_array [0] = 0
a3828db0 12601
4e8d927d
DJ
12602 ;
12603 return 0;
12604}
bec39cab
AC
12605_ACEOF
12606rm -f conftest.$ac_objext
12607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608 (eval $ac_compile) 2>conftest.er1
12609 ac_status=$?
12610 grep -v '^ *+' conftest.er1 >conftest.err
12611 rm -f conftest.er1
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
b4e70030
JB
12615 { ac_try='test -z "$ac_c_werror_flag"
12616 || test ! -s conftest.err'
bec39cab
AC
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest.$ac_objext'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
4e8d927d
DJ
12628 ac_lo=0 ac_mid=0
12629 while :; do
12630 cat >conftest.$ac_ext <<_ACEOF
12631/* confdefs.h. */
12632_ACEOF
12633cat confdefs.h >>conftest.$ac_ext
12634cat >>conftest.$ac_ext <<_ACEOF
12635/* end confdefs.h. */
12636$ac_includes_default
4e8d927d
DJ
12637int
12638main ()
12639{
b4e70030 12640static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12641test_array [0] = 0
12642
12643 ;
12644 return 0;
12645}
12646_ACEOF
12647rm -f conftest.$ac_objext
12648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
b4e70030
JB
12656 { ac_try='test -z "$ac_c_werror_flag"
12657 || test ! -s conftest.err'
4e8d927d
DJ
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest.$ac_objext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_hi=$ac_mid; break
12670else
12671 echo "$as_me: failed program was:" >&5
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
b4e70030
JB
12674ac_lo=`expr $ac_mid + 1`
12675 if test $ac_lo -le $ac_mid; then
12676 ac_lo= ac_hi=
12677 break
12678 fi
12679 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12680fi
4e8d927d
DJ
12681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12682 done
12683else
12684 echo "$as_me: failed program was:" >&5
12685sed 's/^/| /' conftest.$ac_ext >&5
12686
b4e70030 12687cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12688/* confdefs.h. */
12689_ACEOF
12690cat confdefs.h >>conftest.$ac_ext
12691cat >>conftest.$ac_ext <<_ACEOF
12692/* end confdefs.h. */
12693$ac_includes_default
4e8d927d
DJ
12694int
12695main ()
12696{
b4e70030 12697static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
12698test_array [0] = 0
12699
12700 ;
12701 return 0;
12702}
12703_ACEOF
12704rm -f conftest.$ac_objext
12705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12706 (eval $ac_compile) 2>conftest.er1
12707 ac_status=$?
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
b4e70030
JB
12713 { ac_try='test -z "$ac_c_werror_flag"
12714 || test ! -s conftest.err'
4e8d927d
DJ
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try='test -s conftest.$ac_objext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 ac_hi=-1 ac_mid=-1
12727 while :; do
12728 cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
12734$ac_includes_default
4e8d927d
DJ
12735int
12736main ()
12737{
b4e70030 12738static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
12739test_array [0] = 0
12740
12741 ;
12742 return 0;
12743}
12744_ACEOF
12745rm -f conftest.$ac_objext
12746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12747 (eval $ac_compile) 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
b4e70030
JB
12754 { ac_try='test -z "$ac_c_werror_flag"
12755 || test ! -s conftest.err'
4e8d927d
DJ
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_lo=$ac_mid; break
12768else
12769 echo "$as_me: failed program was:" >&5
12770sed 's/^/| /' conftest.$ac_ext >&5
12771
b4e70030
JB
12772ac_hi=`expr '(' $ac_mid ')' - 1`
12773 if test $ac_mid -le $ac_hi; then
12774 ac_lo= ac_hi=
12775 break
12776 fi
12777 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12778fi
4e8d927d
DJ
12779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12780 done
12781else
12782 echo "$as_me: failed program was:" >&5
12783sed 's/^/| /' conftest.$ac_ext >&5
12784
b4e70030 12785ac_lo= ac_hi=
4e8d927d 12786fi
4e8d927d
DJ
12787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12788fi
4e8d927d
DJ
12789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12790# Binary search between lo and hi bounds.
12791while test "x$ac_lo" != "x$ac_hi"; do
12792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12793 cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */
12799$ac_includes_default
4e8d927d
DJ
12800int
12801main ()
12802{
b4e70030 12803static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12804test_array [0] = 0
12805
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810rm -f conftest.$ac_objext
12811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812 (eval $ac_compile) 2>conftest.er1
12813 ac_status=$?
12814 grep -v '^ *+' conftest.er1 >conftest.err
12815 rm -f conftest.er1
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
b4e70030
JB
12819 { ac_try='test -z "$ac_c_werror_flag"
12820 || test ! -s conftest.err'
4e8d927d
DJ
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; } &&
12826 { ac_try='test -s conftest.$ac_objext'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 ac_hi=$ac_mid
12833else
12834 echo "$as_me: failed program was:" >&5
12835sed 's/^/| /' conftest.$ac_ext >&5
12836
b4e70030 12837ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12838fi
4e8d927d
DJ
12839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12840done
12841case $ac_lo in
12842?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 12843'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12844See \`config.log' for more details." >&5
b4e70030 12845echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12846See \`config.log' for more details." >&2;}
b4e70030 12847 { (exit 1); exit 1; }; } ;;
4e8d927d 12848esac
b4e70030
JB
12849else
12850 if test "$cross_compiling" = yes; then
12851 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12852See \`config.log' for more details." >&5
12853echo "$as_me: error: cannot run test program while cross compiling
12854See \`config.log' for more details." >&2;}
12855 { (exit 1); exit 1; }; }
4e8d927d
DJ
12856else
12857 cat >conftest.$ac_ext <<_ACEOF
12858/* confdefs.h. */
12859_ACEOF
12860cat confdefs.h >>conftest.$ac_ext
12861cat >>conftest.$ac_ext <<_ACEOF
12862/* end confdefs.h. */
12863$ac_includes_default
b4e70030
JB
12864long longval () { return (long) (sizeof (long)); }
12865unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
12866#include <stdio.h>
12867#include <stdlib.h>
12868int
12869main ()
12870{
12871
12872 FILE *f = fopen ("conftest.val", "w");
12873 if (! f)
b4e70030
JB
12874 exit (1);
12875 if (((long) (sizeof (long))) < 0)
4e8d927d 12876 {
b4e70030
JB
12877 long i = longval ();
12878 if (i != ((long) (sizeof (long))))
12879 exit (1);
4e8d927d
DJ
12880 fprintf (f, "%ld\n", i);
12881 }
12882 else
12883 {
b4e70030
JB
12884 unsigned long i = ulongval ();
12885 if (i != ((long) (sizeof (long))))
12886 exit (1);
4e8d927d
DJ
12887 fprintf (f, "%lu\n", i);
12888 }
b4e70030 12889 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12890
12891 ;
12892 return 0;
12893}
12894_ACEOF
12895rm -f conftest$ac_exeext
12896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_cv_sizeof_long=`cat conftest.val`
12907else
12908 echo "$as_me: program exited with status $ac_status" >&5
12909echo "$as_me: failed program was:" >&5
12910sed 's/^/| /' conftest.$ac_ext >&5
12911
12912( exit $ac_status )
b4e70030 12913{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12914See \`config.log' for more details." >&5
b4e70030 12915echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12916See \`config.log' for more details." >&2;}
b4e70030
JB
12917 { (exit 1); exit 1; }; }
12918fi
12919rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12920fi
4e8d927d
DJ
12921fi
12922rm -f conftest.val
12923else
12924 ac_cv_sizeof_long=0
12925fi
12926fi
b4e70030
JB
12927echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12928echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
12929cat >>confdefs.h <<_ACEOF
12930#define SIZEOF_LONG $ac_cv_sizeof_long
12931_ACEOF
12932
12933 ;;
12934esac
12935
12936if test $acx_cv_header_stdint = stddef.h; then
12937 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
12938 echo "$as_me:$LINENO: checking for int" >&5
12939echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
12940if test "${ac_cv_type_int+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12942else
12943 cat >conftest.$ac_ext <<_ACEOF
12944/* confdefs.h. */
12945_ACEOF
12946cat confdefs.h >>conftest.$ac_ext
12947cat >>conftest.$ac_ext <<_ACEOF
12948/* end confdefs.h. */
12949$ac_includes_default
4e8d927d
DJ
12950int
12951main ()
12952{
b4e70030 12953if ((int *) 0)
4e8d927d 12954 return 0;
b4e70030 12955if (sizeof (int))
4e8d927d
DJ
12956 return 0;
12957 ;
12958 return 0;
12959}
12960_ACEOF
12961rm -f conftest.$ac_objext
12962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>conftest.er1
12964 ac_status=$?
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
b4e70030
JB
12970 { ac_try='test -z "$ac_c_werror_flag"
12971 || test ! -s conftest.err'
4e8d927d
DJ
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest.$ac_objext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_type_int=yes
12984else
12985 echo "$as_me: failed program was:" >&5
12986sed 's/^/| /' conftest.$ac_ext >&5
12987
b4e70030 12988ac_cv_type_int=no
4e8d927d 12989fi
4e8d927d
DJ
12990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12991fi
b4e70030
JB
12992echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12993echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 12994
b4e70030
JB
12995echo "$as_me:$LINENO: checking size of int" >&5
12996echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
12997if test "${ac_cv_sizeof_int+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
12999else
13000 if test "$ac_cv_type_int" = yes; then
b4e70030 13001 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13004 # This bug is HP SR number 8606223364.
13005 if test "$cross_compiling" = yes; then
13006 # Depending upon the size, compute the lo and hi bounds.
13007cat >conftest.$ac_ext <<_ACEOF
13008/* confdefs.h. */
13009_ACEOF
13010cat confdefs.h >>conftest.$ac_ext
13011cat >>conftest.$ac_ext <<_ACEOF
13012/* end confdefs.h. */
13013$ac_includes_default
4e8d927d
DJ
13014int
13015main ()
13016{
b4e70030 13017static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
13018test_array [0] = 0
13019
13020 ;
13021 return 0;
13022}
13023_ACEOF
13024rm -f conftest.$ac_objext
13025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026 (eval $ac_compile) 2>conftest.er1
13027 ac_status=$?
13028 grep -v '^ *+' conftest.er1 >conftest.err
13029 rm -f conftest.er1
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
b4e70030
JB
13033 { ac_try='test -z "$ac_c_werror_flag"
13034 || test ! -s conftest.err'
4e8d927d
DJ
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; } &&
13040 { ac_try='test -s conftest.$ac_objext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13046 ac_lo=0 ac_mid=0
13047 while :; do
13048 cat >conftest.$ac_ext <<_ACEOF
13049/* confdefs.h. */
13050_ACEOF
13051cat confdefs.h >>conftest.$ac_ext
13052cat >>conftest.$ac_ext <<_ACEOF
13053/* end confdefs.h. */
13054$ac_includes_default
4e8d927d
DJ
13055int
13056main ()
13057{
b4e70030 13058static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13059test_array [0] = 0
13060
13061 ;
13062 return 0;
13063}
13064_ACEOF
13065rm -f conftest.$ac_objext
13066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067 (eval $ac_compile) 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
b4e70030
JB
13074 { ac_try='test -z "$ac_c_werror_flag"
13075 || test ! -s conftest.err'
4e8d927d
DJ
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13078 ac_status=$?
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; } &&
13081 { ac_try='test -s conftest.$ac_objext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 ac_hi=$ac_mid; break
13088else
13089 echo "$as_me: failed program was:" >&5
13090sed 's/^/| /' conftest.$ac_ext >&5
13091
b4e70030
JB
13092ac_lo=`expr $ac_mid + 1`
13093 if test $ac_lo -le $ac_mid; then
13094 ac_lo= ac_hi=
13095 break
13096 fi
13097 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13098fi
4e8d927d
DJ
13099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13100 done
13101else
13102 echo "$as_me: failed program was:" >&5
13103sed 's/^/| /' conftest.$ac_ext >&5
13104
b4e70030 13105cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111$ac_includes_default
4e8d927d
DJ
13112int
13113main ()
13114{
b4e70030 13115static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
13116test_array [0] = 0
13117
13118 ;
13119 return 0;
13120}
13121_ACEOF
13122rm -f conftest.$ac_objext
13123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
b4e70030
JB
13131 { ac_try='test -z "$ac_c_werror_flag"
13132 || test ! -s conftest.err'
4e8d927d
DJ
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try='test -s conftest.$ac_objext'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_hi=-1 ac_mid=-1
13145 while :; do
13146 cat >conftest.$ac_ext <<_ACEOF
13147/* confdefs.h. */
13148_ACEOF
13149cat confdefs.h >>conftest.$ac_ext
13150cat >>conftest.$ac_ext <<_ACEOF
13151/* end confdefs.h. */
13152$ac_includes_default
4e8d927d
DJ
13153int
13154main ()
13155{
b4e70030 13156static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
13157test_array [0] = 0
13158
13159 ;
13160 return 0;
13161}
13162_ACEOF
13163rm -f conftest.$ac_objext
13164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165 (eval $ac_compile) 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
b4e70030
JB
13172 { ac_try='test -z "$ac_c_werror_flag"
13173 || test ! -s conftest.err'
4e8d927d
DJ
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try='test -s conftest.$ac_objext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 ac_lo=$ac_mid; break
13186else
13187 echo "$as_me: failed program was:" >&5
13188sed 's/^/| /' conftest.$ac_ext >&5
13189
b4e70030
JB
13190ac_hi=`expr '(' $ac_mid ')' - 1`
13191 if test $ac_mid -le $ac_hi; then
13192 ac_lo= ac_hi=
13193 break
13194 fi
13195 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13196fi
4e8d927d
DJ
13197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13198 done
13199else
13200 echo "$as_me: failed program was:" >&5
13201sed 's/^/| /' conftest.$ac_ext >&5
13202
b4e70030 13203ac_lo= ac_hi=
4e8d927d 13204fi
4e8d927d
DJ
13205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13206fi
4e8d927d
DJ
13207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13208# Binary search between lo and hi bounds.
13209while test "x$ac_lo" != "x$ac_hi"; do
13210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13211 cat >conftest.$ac_ext <<_ACEOF
13212/* confdefs.h. */
13213_ACEOF
13214cat confdefs.h >>conftest.$ac_ext
13215cat >>conftest.$ac_ext <<_ACEOF
13216/* end confdefs.h. */
13217$ac_includes_default
4e8d927d
DJ
13218int
13219main ()
13220{
b4e70030 13221static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13222test_array [0] = 0
13223
13224 ;
13225 return 0;
13226}
13227_ACEOF
13228rm -f conftest.$ac_objext
13229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13230 (eval $ac_compile) 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
b4e70030
JB
13237 { ac_try='test -z "$ac_c_werror_flag"
13238 || test ! -s conftest.err'
4e8d927d
DJ
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13241 ac_status=$?
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest.$ac_objext'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 ac_hi=$ac_mid
13251else
13252 echo "$as_me: failed program was:" >&5
13253sed 's/^/| /' conftest.$ac_ext >&5
13254
b4e70030 13255ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13256fi
4e8d927d
DJ
13257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13258done
13259case $ac_lo in
13260?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 13261'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13262See \`config.log' for more details." >&5
b4e70030 13263echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13264See \`config.log' for more details." >&2;}
b4e70030 13265 { (exit 1); exit 1; }; } ;;
4e8d927d 13266esac
b4e70030
JB
13267else
13268 if test "$cross_compiling" = yes; then
13269 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13270See \`config.log' for more details." >&5
13271echo "$as_me: error: cannot run test program while cross compiling
13272See \`config.log' for more details." >&2;}
13273 { (exit 1); exit 1; }; }
4e8d927d
DJ
13274else
13275 cat >conftest.$ac_ext <<_ACEOF
13276/* confdefs.h. */
13277_ACEOF
13278cat confdefs.h >>conftest.$ac_ext
13279cat >>conftest.$ac_ext <<_ACEOF
13280/* end confdefs.h. */
13281$ac_includes_default
b4e70030
JB
13282long longval () { return (long) (sizeof (int)); }
13283unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
13284#include <stdio.h>
13285#include <stdlib.h>
13286int
13287main ()
13288{
13289
13290 FILE *f = fopen ("conftest.val", "w");
13291 if (! f)
b4e70030
JB
13292 exit (1);
13293 if (((long) (sizeof (int))) < 0)
4e8d927d 13294 {
b4e70030
JB
13295 long i = longval ();
13296 if (i != ((long) (sizeof (int))))
13297 exit (1);
4e8d927d
DJ
13298 fprintf (f, "%ld\n", i);
13299 }
13300 else
13301 {
b4e70030
JB
13302 unsigned long i = ulongval ();
13303 if (i != ((long) (sizeof (int))))
13304 exit (1);
4e8d927d
DJ
13305 fprintf (f, "%lu\n", i);
13306 }
b4e70030 13307 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13308
13309 ;
13310 return 0;
13311}
13312_ACEOF
13313rm -f conftest$ac_exeext
13314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13315 (eval $ac_link) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
13324 ac_cv_sizeof_int=`cat conftest.val`
13325else
13326 echo "$as_me: program exited with status $ac_status" >&5
13327echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330( exit $ac_status )
b4e70030 13331{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13332See \`config.log' for more details." >&5
b4e70030 13333echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13334See \`config.log' for more details." >&2;}
b4e70030
JB
13335 { (exit 1); exit 1; }; }
13336fi
13337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13338fi
4e8d927d
DJ
13339fi
13340rm -f conftest.val
13341else
13342 ac_cv_sizeof_int=0
13343fi
13344fi
b4e70030
JB
13345echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13346echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
13347cat >>confdefs.h <<_ACEOF
13348#define SIZEOF_INT $ac_cv_sizeof_int
13349_ACEOF
13350
13351
b4e70030
JB
13352 echo "$as_me:$LINENO: checking for short" >&5
13353echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
13354if test "${ac_cv_type_short+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356else
13357 cat >conftest.$ac_ext <<_ACEOF
13358/* confdefs.h. */
13359_ACEOF
13360cat confdefs.h >>conftest.$ac_ext
13361cat >>conftest.$ac_ext <<_ACEOF
13362/* end confdefs.h. */
13363$ac_includes_default
4e8d927d
DJ
13364int
13365main ()
13366{
b4e70030 13367if ((short *) 0)
4e8d927d 13368 return 0;
b4e70030 13369if (sizeof (short))
4e8d927d
DJ
13370 return 0;
13371 ;
13372 return 0;
13373}
13374_ACEOF
13375rm -f conftest.$ac_objext
13376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13377 (eval $ac_compile) 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
b4e70030
JB
13384 { ac_try='test -z "$ac_c_werror_flag"
13385 || test ! -s conftest.err'
4e8d927d
DJ
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest.$ac_objext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_cv_type_short=yes
13398else
13399 echo "$as_me: failed program was:" >&5
13400sed 's/^/| /' conftest.$ac_ext >&5
13401
b4e70030 13402ac_cv_type_short=no
4e8d927d 13403fi
4e8d927d
DJ
13404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13405fi
b4e70030
JB
13406echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13407echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 13408
b4e70030
JB
13409echo "$as_me:$LINENO: checking size of short" >&5
13410echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
13411if test "${ac_cv_sizeof_short+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413else
13414 if test "$ac_cv_type_short" = yes; then
b4e70030 13415 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13418 # This bug is HP SR number 8606223364.
13419 if test "$cross_compiling" = yes; then
13420 # Depending upon the size, compute the lo and hi bounds.
13421cat >conftest.$ac_ext <<_ACEOF
13422/* confdefs.h. */
13423_ACEOF
13424cat confdefs.h >>conftest.$ac_ext
13425cat >>conftest.$ac_ext <<_ACEOF
13426/* end confdefs.h. */
13427$ac_includes_default
4e8d927d
DJ
13428int
13429main ()
13430{
b4e70030 13431static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
13432test_array [0] = 0
13433
13434 ;
13435 return 0;
13436}
13437_ACEOF
13438rm -f conftest.$ac_objext
13439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440 (eval $ac_compile) 2>conftest.er1
13441 ac_status=$?
13442 grep -v '^ *+' conftest.er1 >conftest.err
13443 rm -f conftest.er1
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
b4e70030
JB
13447 { ac_try='test -z "$ac_c_werror_flag"
13448 || test ! -s conftest.err'
4e8d927d
DJ
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest.$ac_objext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 ac_lo=0 ac_mid=0
13461 while :; do
13462 cat >conftest.$ac_ext <<_ACEOF
13463/* confdefs.h. */
13464_ACEOF
13465cat confdefs.h >>conftest.$ac_ext
13466cat >>conftest.$ac_ext <<_ACEOF
13467/* end confdefs.h. */
13468$ac_includes_default
4e8d927d
DJ
13469int
13470main ()
13471{
b4e70030 13472static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13473test_array [0] = 0
13474
13475 ;
13476 return 0;
13477}
13478_ACEOF
13479rm -f conftest.$ac_objext
13480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13481 (eval $ac_compile) 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
b4e70030
JB
13488 { ac_try='test -z "$ac_c_werror_flag"
13489 || test ! -s conftest.err'
4e8d927d
DJ
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; } &&
13495 { ac_try='test -s conftest.$ac_objext'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 ac_hi=$ac_mid; break
13502else
13503 echo "$as_me: failed program was:" >&5
13504sed 's/^/| /' conftest.$ac_ext >&5
13505
b4e70030
JB
13506ac_lo=`expr $ac_mid + 1`
13507 if test $ac_lo -le $ac_mid; then
13508 ac_lo= ac_hi=
13509 break
13510 fi
13511 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13512fi
4e8d927d
DJ
13513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13514 done
13515else
13516 echo "$as_me: failed program was:" >&5
13517sed 's/^/| /' conftest.$ac_ext >&5
13518
b4e70030 13519cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13520/* confdefs.h. */
13521_ACEOF
13522cat confdefs.h >>conftest.$ac_ext
13523cat >>conftest.$ac_ext <<_ACEOF
13524/* end confdefs.h. */
13525$ac_includes_default
4e8d927d
DJ
13526int
13527main ()
13528{
b4e70030 13529static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13530test_array [0] = 0
13531
13532 ;
13533 return 0;
13534}
13535_ACEOF
13536rm -f conftest.$ac_objext
13537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538 (eval $ac_compile) 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
b4e70030
JB
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
4e8d927d
DJ
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest.$ac_objext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 ac_hi=-1 ac_mid=-1
13559 while :; do
13560 cat >conftest.$ac_ext <<_ACEOF
13561/* confdefs.h. */
13562_ACEOF
13563cat confdefs.h >>conftest.$ac_ext
13564cat >>conftest.$ac_ext <<_ACEOF
13565/* end confdefs.h. */
13566$ac_includes_default
4e8d927d
DJ
13567int
13568main ()
13569{
b4e70030 13570static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13571test_array [0] = 0
13572
13573 ;
13574 return 0;
13575}
13576_ACEOF
13577rm -f conftest.$ac_objext
13578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579 (eval $ac_compile) 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
b4e70030
JB
13586 { ac_try='test -z "$ac_c_werror_flag"
13587 || test ! -s conftest.err'
4e8d927d
DJ
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
13593 { ac_try='test -s conftest.$ac_objext'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
13599 ac_lo=$ac_mid; break
13600else
13601 echo "$as_me: failed program was:" >&5
13602sed 's/^/| /' conftest.$ac_ext >&5
13603
b4e70030
JB
13604ac_hi=`expr '(' $ac_mid ')' - 1`
13605 if test $ac_mid -le $ac_hi; then
13606 ac_lo= ac_hi=
13607 break
13608 fi
13609 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13610fi
4e8d927d
DJ
13611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13612 done
13613else
13614 echo "$as_me: failed program was:" >&5
13615sed 's/^/| /' conftest.$ac_ext >&5
13616
b4e70030 13617ac_lo= ac_hi=
4e8d927d 13618fi
4e8d927d
DJ
13619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13620fi
4e8d927d
DJ
13621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13622# Binary search between lo and hi bounds.
13623while test "x$ac_lo" != "x$ac_hi"; do
13624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13625 cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */
13631$ac_includes_default
4e8d927d
DJ
13632int
13633main ()
13634{
b4e70030 13635static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13636test_array [0] = 0
13637
13638 ;
13639 return 0;
13640}
13641_ACEOF
13642rm -f conftest.$ac_objext
13643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644 (eval $ac_compile) 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
b4e70030
JB
13651 { ac_try='test -z "$ac_c_werror_flag"
13652 || test ! -s conftest.err'
4e8d927d
DJ
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_hi=$ac_mid
13665else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
b4e70030 13669ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13670fi
4e8d927d
DJ
13671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13672done
13673case $ac_lo in
13674?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 13675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13676See \`config.log' for more details." >&5
b4e70030 13677echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13678See \`config.log' for more details." >&2;}
b4e70030 13679 { (exit 1); exit 1; }; } ;;
4e8d927d 13680esac
b4e70030
JB
13681else
13682 if test "$cross_compiling" = yes; then
13683 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13684See \`config.log' for more details." >&5
13685echo "$as_me: error: cannot run test program while cross compiling
13686See \`config.log' for more details." >&2;}
13687 { (exit 1); exit 1; }; }
4e8d927d
DJ
13688else
13689 cat >conftest.$ac_ext <<_ACEOF
13690/* confdefs.h. */
13691_ACEOF
13692cat confdefs.h >>conftest.$ac_ext
13693cat >>conftest.$ac_ext <<_ACEOF
13694/* end confdefs.h. */
13695$ac_includes_default
b4e70030
JB
13696long longval () { return (long) (sizeof (short)); }
13697unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
13698#include <stdio.h>
13699#include <stdlib.h>
13700int
13701main ()
13702{
13703
13704 FILE *f = fopen ("conftest.val", "w");
13705 if (! f)
b4e70030
JB
13706 exit (1);
13707 if (((long) (sizeof (short))) < 0)
4e8d927d 13708 {
b4e70030
JB
13709 long i = longval ();
13710 if (i != ((long) (sizeof (short))))
13711 exit (1);
4e8d927d
DJ
13712 fprintf (f, "%ld\n", i);
13713 }
13714 else
13715 {
b4e70030
JB
13716 unsigned long i = ulongval ();
13717 if (i != ((long) (sizeof (short))))
13718 exit (1);
4e8d927d
DJ
13719 fprintf (f, "%lu\n", i);
13720 }
b4e70030 13721 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13722
13723 ;
13724 return 0;
13725}
13726_ACEOF
13727rm -f conftest$ac_exeext
13728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13729 (eval $ac_link) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_cv_sizeof_short=`cat conftest.val`
13739else
13740 echo "$as_me: program exited with status $ac_status" >&5
13741echo "$as_me: failed program was:" >&5
13742sed 's/^/| /' conftest.$ac_ext >&5
13743
13744( exit $ac_status )
b4e70030 13745{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13746See \`config.log' for more details." >&5
b4e70030 13747echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13748See \`config.log' for more details." >&2;}
b4e70030
JB
13749 { (exit 1); exit 1; }; }
13750fi
13751rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13752fi
4e8d927d
DJ
13753fi
13754rm -f conftest.val
13755else
13756 ac_cv_sizeof_short=0
13757fi
13758fi
b4e70030
JB
13759echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13760echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
13761cat >>confdefs.h <<_ACEOF
13762#define SIZEOF_SHORT $ac_cv_sizeof_short
13763_ACEOF
13764
13765
b4e70030
JB
13766 echo "$as_me:$LINENO: checking for char" >&5
13767echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
13768if test "${ac_cv_type_char+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13770else
13771 cat >conftest.$ac_ext <<_ACEOF
13772/* confdefs.h. */
13773_ACEOF
13774cat confdefs.h >>conftest.$ac_ext
13775cat >>conftest.$ac_ext <<_ACEOF
13776/* end confdefs.h. */
13777$ac_includes_default
4e8d927d
DJ
13778int
13779main ()
13780{
b4e70030 13781if ((char *) 0)
4e8d927d 13782 return 0;
b4e70030 13783if (sizeof (char))
4e8d927d
DJ
13784 return 0;
13785 ;
13786 return 0;
13787}
13788_ACEOF
13789rm -f conftest.$ac_objext
13790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13791 (eval $ac_compile) 2>conftest.er1
13792 ac_status=$?
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
b4e70030
JB
13798 { ac_try='test -z "$ac_c_werror_flag"
13799 || test ! -s conftest.err'
4e8d927d
DJ
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest.$ac_objext'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_cv_type_char=yes
13812else
13813 echo "$as_me: failed program was:" >&5
13814sed 's/^/| /' conftest.$ac_ext >&5
13815
b4e70030 13816ac_cv_type_char=no
4e8d927d 13817fi
4e8d927d
DJ
13818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13819fi
b4e70030
JB
13820echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13821echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 13822
b4e70030
JB
13823echo "$as_me:$LINENO: checking size of char" >&5
13824echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
13825if test "${ac_cv_sizeof_char+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13827else
13828 if test "$ac_cv_type_char" = yes; then
b4e70030 13829 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13832 # This bug is HP SR number 8606223364.
13833 if test "$cross_compiling" = yes; then
13834 # Depending upon the size, compute the lo and hi bounds.
13835cat >conftest.$ac_ext <<_ACEOF
13836/* confdefs.h. */
13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
13840/* end confdefs.h. */
13841$ac_includes_default
4e8d927d
DJ
13842int
13843main ()
13844{
b4e70030 13845static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
13846test_array [0] = 0
13847
13848 ;
13849 return 0;
13850}
13851_ACEOF
13852rm -f conftest.$ac_objext
13853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13854 (eval $ac_compile) 2>conftest.er1
13855 ac_status=$?
13856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
b4e70030
JB
13861 { ac_try='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
4e8d927d
DJ
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13865 ac_status=$?
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest.$ac_objext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_lo=0 ac_mid=0
13875 while :; do
13876 cat >conftest.$ac_ext <<_ACEOF
13877/* confdefs.h. */
13878_ACEOF
13879cat confdefs.h >>conftest.$ac_ext
13880cat >>conftest.$ac_ext <<_ACEOF
13881/* end confdefs.h. */
13882$ac_includes_default
4e8d927d
DJ
13883int
13884main ()
13885{
b4e70030 13886static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13887test_array [0] = 0
13888
13889 ;
13890 return 0;
13891}
13892_ACEOF
13893rm -f conftest.$ac_objext
13894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13895 (eval $ac_compile) 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
b4e70030
JB
13902 { ac_try='test -z "$ac_c_werror_flag"
13903 || test ! -s conftest.err'
4e8d927d
DJ
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_hi=$ac_mid; break
13916else
13917 echo "$as_me: failed program was:" >&5
13918sed 's/^/| /' conftest.$ac_ext >&5
13919
b4e70030
JB
13920ac_lo=`expr $ac_mid + 1`
13921 if test $ac_lo -le $ac_mid; then
13922 ac_lo= ac_hi=
13923 break
13924 fi
13925 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13926fi
4e8d927d
DJ
13927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13928 done
13929else
13930 echo "$as_me: failed program was:" >&5
13931sed 's/^/| /' conftest.$ac_ext >&5
13932
b4e70030 13933cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13934/* confdefs.h. */
13935_ACEOF
13936cat confdefs.h >>conftest.$ac_ext
13937cat >>conftest.$ac_ext <<_ACEOF
13938/* end confdefs.h. */
13939$ac_includes_default
4e8d927d
DJ
13940int
13941main ()
13942{
b4e70030 13943static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
13944test_array [0] = 0
13945
13946 ;
13947 return 0;
13948}
13949_ACEOF
13950rm -f conftest.$ac_objext
13951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13952 (eval $ac_compile) 2>conftest.er1
13953 ac_status=$?
13954 grep -v '^ *+' conftest.er1 >conftest.err
13955 rm -f conftest.er1
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } &&
b4e70030
JB
13959 { ac_try='test -z "$ac_c_werror_flag"
13960 || test ! -s conftest.err'
4e8d927d
DJ
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; } &&
13966 { ac_try='test -s conftest.$ac_objext'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
13972 ac_hi=-1 ac_mid=-1
13973 while :; do
13974 cat >conftest.$ac_ext <<_ACEOF
13975/* confdefs.h. */
13976_ACEOF
13977cat confdefs.h >>conftest.$ac_ext
13978cat >>conftest.$ac_ext <<_ACEOF
13979/* end confdefs.h. */
13980$ac_includes_default
4e8d927d
DJ
13981int
13982main ()
13983{
b4e70030 13984static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
13985test_array [0] = 0
13986
13987 ;
13988 return 0;
13989}
13990_ACEOF
13991rm -f conftest.$ac_objext
13992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993 (eval $ac_compile) 2>conftest.er1
13994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
b4e70030
JB
14000 { ac_try='test -z "$ac_c_werror_flag"
14001 || test ! -s conftest.err'
4e8d927d
DJ
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14004 ac_status=$?
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; } &&
14007 { ac_try='test -s conftest.$ac_objext'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_lo=$ac_mid; break
14014else
14015 echo "$as_me: failed program was:" >&5
14016sed 's/^/| /' conftest.$ac_ext >&5
14017
b4e70030
JB
14018ac_hi=`expr '(' $ac_mid ')' - 1`
14019 if test $ac_mid -le $ac_hi; then
14020 ac_lo= ac_hi=
14021 break
14022 fi
14023 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14024fi
4e8d927d
DJ
14025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14026 done
14027else
14028 echo "$as_me: failed program was:" >&5
14029sed 's/^/| /' conftest.$ac_ext >&5
14030
b4e70030 14031ac_lo= ac_hi=
4e8d927d 14032fi
4e8d927d
DJ
14033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14034fi
4e8d927d
DJ
14035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14036# Binary search between lo and hi bounds.
14037while test "x$ac_lo" != "x$ac_hi"; do
14038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14039 cat >conftest.$ac_ext <<_ACEOF
14040/* confdefs.h. */
14041_ACEOF
14042cat confdefs.h >>conftest.$ac_ext
14043cat >>conftest.$ac_ext <<_ACEOF
14044/* end confdefs.h. */
14045$ac_includes_default
4e8d927d
DJ
14046int
14047main ()
14048{
b4e70030 14049static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
14050test_array [0] = 0
14051
14052 ;
14053 return 0;
14054}
14055_ACEOF
14056rm -f conftest.$ac_objext
14057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058 (eval $ac_compile) 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
b4e70030
JB
14065 { ac_try='test -z "$ac_c_werror_flag"
14066 || test ! -s conftest.err'
4e8d927d
DJ
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest.$ac_objext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_hi=$ac_mid
14079else
14080 echo "$as_me: failed program was:" >&5
14081sed 's/^/| /' conftest.$ac_ext >&5
14082
b4e70030 14083ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14084fi
4e8d927d
DJ
14085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14086done
14087case $ac_lo in
14088?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 14089'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14090See \`config.log' for more details." >&5
b4e70030 14091echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14092See \`config.log' for more details." >&2;}
b4e70030 14093 { (exit 1); exit 1; }; } ;;
4e8d927d 14094esac
b4e70030
JB
14095else
14096 if test "$cross_compiling" = yes; then
14097 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14098See \`config.log' for more details." >&5
14099echo "$as_me: error: cannot run test program while cross compiling
14100See \`config.log' for more details." >&2;}
14101 { (exit 1); exit 1; }; }
4e8d927d
DJ
14102else
14103 cat >conftest.$ac_ext <<_ACEOF
14104/* confdefs.h. */
14105_ACEOF
14106cat confdefs.h >>conftest.$ac_ext
14107cat >>conftest.$ac_ext <<_ACEOF
14108/* end confdefs.h. */
14109$ac_includes_default
b4e70030
JB
14110long longval () { return (long) (sizeof (char)); }
14111unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
14112#include <stdio.h>
14113#include <stdlib.h>
14114int
14115main ()
14116{
14117
14118 FILE *f = fopen ("conftest.val", "w");
14119 if (! f)
b4e70030
JB
14120 exit (1);
14121 if (((long) (sizeof (char))) < 0)
4e8d927d 14122 {
b4e70030
JB
14123 long i = longval ();
14124 if (i != ((long) (sizeof (char))))
14125 exit (1);
4e8d927d
DJ
14126 fprintf (f, "%ld\n", i);
14127 }
14128 else
14129 {
b4e70030
JB
14130 unsigned long i = ulongval ();
14131 if (i != ((long) (sizeof (char))))
14132 exit (1);
4e8d927d
DJ
14133 fprintf (f, "%lu\n", i);
14134 }
b4e70030 14135 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14136
14137 ;
14138 return 0;
14139}
14140_ACEOF
14141rm -f conftest$ac_exeext
14142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 ac_cv_sizeof_char=`cat conftest.val`
14153else
14154 echo "$as_me: program exited with status $ac_status" >&5
14155echo "$as_me: failed program was:" >&5
14156sed 's/^/| /' conftest.$ac_ext >&5
14157
14158( exit $ac_status )
b4e70030 14159{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14160See \`config.log' for more details." >&5
b4e70030 14161echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14162See \`config.log' for more details." >&2;}
b4e70030
JB
14163 { (exit 1); exit 1; }; }
14164fi
14165rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14166fi
4e8d927d
DJ
14167fi
14168rm -f conftest.val
14169else
14170 ac_cv_sizeof_char=0
14171fi
14172fi
b4e70030
JB
14173echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14174echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
14175cat >>confdefs.h <<_ACEOF
14176#define SIZEOF_CHAR $ac_cv_sizeof_char
14177_ACEOF
14178
14179
14180
b4e70030
JB
14181 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14182echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
14183 case "$ac_cv_sizeof_char" in
14184 1) acx_cv_type_int8_t=char ;;
14185 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14186echo "$as_me: error: no 8-bit type" >&2;}
14187 { (exit please report a bug); exit please report a bug; }; }
14188 esac
b4e70030
JB
14189 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14190echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 14191
b4e70030
JB
14192 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14193echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
14194 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14195 2:*) acx_cv_type_int16_t=int ;;
14196 *:2) acx_cv_type_int16_t=short ;;
14197 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14198echo "$as_me: error: no 16-bit type" >&2;}
14199 { (exit please report a bug); exit please report a bug; }; }
14200 esac
b4e70030
JB
14201 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14202echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 14203
b4e70030
JB
14204 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14205echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
14206 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14207 4:*) acx_cv_type_int32_t=int ;;
14208 *:4) acx_cv_type_int32_t=long ;;
14209 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14210echo "$as_me: error: no 32-bit type" >&2;}
14211 { (exit please report a bug); exit please report a bug; }; }
14212 esac
b4e70030
JB
14213 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14214echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
14215fi
14216
14217# These tests are here to make the output prettier
14218
14219if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14220 case "$ac_cv_sizeof_long" in
14221 8) acx_cv_type_int64_t=long ;;
14222 esac
b4e70030
JB
14223 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14224echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14225 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14226echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
14227fi
14228
14229# Now we can use the above types
14230
14231if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
14232 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14233echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
14234 case $ac_cv_sizeof_void_p in
14235 2) acx_cv_type_intptr_t=int16_t ;;
14236 4) acx_cv_type_intptr_t=int32_t ;;
14237 8) acx_cv_type_intptr_t=int64_t ;;
14238 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14239echo "$as_me: error: no equivalent for intptr_t" >&2;}
14240 { (exit please report a bug); exit please report a bug; }; }
14241 esac
b4e70030
JB
14242 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14243echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
14244fi
14245
14246# ----------------- done all checks, emit header -------------
b4e70030 14247 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
14248
14249
14250
14251
14252# ------------------------- #
14253# Checks for declarations. #
14254# ------------------------- #
14255
b4e70030
JB
14256echo "$as_me:$LINENO: checking whether free is declared" >&5
14257echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
14258if test "${ac_cv_have_decl_free+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14260else
14261 cat >conftest.$ac_ext <<_ACEOF
14262/* confdefs.h. */
14263_ACEOF
14264cat confdefs.h >>conftest.$ac_ext
14265cat >>conftest.$ac_ext <<_ACEOF
14266/* end confdefs.h. */
14267$ac_includes_default
14268int
14269main ()
14270{
14271#ifndef free
14272 char *p = (char *) free;
4e8d927d
DJ
14273#endif
14274
14275 ;
14276 return 0;
14277}
14278_ACEOF
14279rm -f conftest.$ac_objext
14280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281 (eval $ac_compile) 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } &&
b4e70030
JB
14288 { ac_try='test -z "$ac_c_werror_flag"
14289 || test ! -s conftest.err'
4e8d927d
DJ
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; } &&
14295 { ac_try='test -s conftest.$ac_objext'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
14301 ac_cv_have_decl_free=yes
14302else
14303 echo "$as_me: failed program was:" >&5
14304sed 's/^/| /' conftest.$ac_ext >&5
14305
b4e70030 14306ac_cv_have_decl_free=no
4e8d927d 14307fi
4e8d927d
DJ
14308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14309fi
b4e70030
JB
14310echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14311echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
14312if test $ac_cv_have_decl_free = yes; then
14313
14314cat >>confdefs.h <<_ACEOF
14315#define HAVE_DECL_FREE 1
14316_ACEOF
14317
14318
14319else
14320 cat >>confdefs.h <<_ACEOF
14321#define HAVE_DECL_FREE 0
14322_ACEOF
14323
14324
14325fi
b4e70030
JB
14326echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14327echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14328if test "${ac_cv_have_decl_malloc+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330else
14331 cat >conftest.$ac_ext <<_ACEOF
14332/* confdefs.h. */
14333_ACEOF
14334cat confdefs.h >>conftest.$ac_ext
14335cat >>conftest.$ac_ext <<_ACEOF
14336/* end confdefs.h. */
14337$ac_includes_default
14338int
14339main ()
14340{
14341#ifndef malloc
14342 char *p = (char *) malloc;
4e8d927d
DJ
14343#endif
14344
14345 ;
14346 return 0;
14347}
14348_ACEOF
14349rm -f conftest.$ac_objext
14350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14351 (eval $ac_compile) 2>conftest.er1
14352 ac_status=$?
14353 grep -v '^ *+' conftest.er1 >conftest.err
14354 rm -f conftest.er1
14355 cat conftest.err >&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } &&
b4e70030
JB
14358 { ac_try='test -z "$ac_c_werror_flag"
14359 || test ! -s conftest.err'
4e8d927d
DJ
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14362 ac_status=$?
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; } &&
14365 { ac_try='test -s conftest.$ac_objext'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_cv_have_decl_malloc=yes
14372else
14373 echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
b4e70030 14376ac_cv_have_decl_malloc=no
4e8d927d 14377fi
4e8d927d
DJ
14378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14379fi
b4e70030
JB
14380echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14381echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
14382if test $ac_cv_have_decl_malloc = yes; then
14383
14384cat >>confdefs.h <<_ACEOF
14385#define HAVE_DECL_MALLOC 1
14386_ACEOF
14387
14388
14389else
14390 cat >>confdefs.h <<_ACEOF
14391#define HAVE_DECL_MALLOC 0
14392_ACEOF
14393
14394
14395fi
b4e70030
JB
14396echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14397echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14398if test "${ac_cv_have_decl_realloc+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401 cat >conftest.$ac_ext <<_ACEOF
14402/* confdefs.h. */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
14406/* end confdefs.h. */
14407$ac_includes_default
14408int
14409main ()
14410{
14411#ifndef realloc
14412 char *p = (char *) realloc;
4e8d927d
DJ
14413#endif
14414
14415 ;
14416 return 0;
14417}
14418_ACEOF
14419rm -f conftest.$ac_objext
14420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
b4e70030
JB
14428 { ac_try='test -z "$ac_c_werror_flag"
14429 || test ! -s conftest.err'
4e8d927d
DJ
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 ac_cv_have_decl_realloc=yes
14442else
14443 echo "$as_me: failed program was:" >&5
14444sed 's/^/| /' conftest.$ac_ext >&5
14445
b4e70030 14446ac_cv_have_decl_realloc=no
4e8d927d 14447fi
4e8d927d
DJ
14448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14449fi
b4e70030
JB
14450echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14451echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
14452if test $ac_cv_have_decl_realloc = yes; then
14453
14454cat >>confdefs.h <<_ACEOF
14455#define HAVE_DECL_REALLOC 1
14456_ACEOF
14457
14458
14459else
14460 cat >>confdefs.h <<_ACEOF
14461#define HAVE_DECL_REALLOC 0
14462_ACEOF
14463
14464
14465fi
14466
14467
b4e70030
JB
14468echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14469echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14470if test "${ac_cv_have_decl_strerror+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14472else
14473 cat >conftest.$ac_ext <<_ACEOF
14474/* confdefs.h. */
14475_ACEOF
14476cat confdefs.h >>conftest.$ac_ext
14477cat >>conftest.$ac_ext <<_ACEOF
14478/* end confdefs.h. */
14479$ac_includes_default
14480int
14481main ()
14482{
14483#ifndef strerror
14484 char *p = (char *) strerror;
4e8d927d
DJ
14485#endif
14486
14487 ;
14488 return 0;
14489}
14490_ACEOF
14491rm -f conftest.$ac_objext
14492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>conftest.er1
14494 ac_status=$?
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
b4e70030
JB
14500 { ac_try='test -z "$ac_c_werror_flag"
14501 || test ! -s conftest.err'
4e8d927d
DJ
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_cv_have_decl_strerror=yes
14514else
14515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
b4e70030 14518ac_cv_have_decl_strerror=no
4e8d927d 14519fi
4e8d927d
DJ
14520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14521fi
b4e70030
JB
14522echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14523echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14524if test $ac_cv_have_decl_strerror = yes; then
14525
14526cat >>confdefs.h <<_ACEOF
14527#define HAVE_DECL_STRERROR 1
14528_ACEOF
14529
14530
14531else
14532 cat >>confdefs.h <<_ACEOF
14533#define HAVE_DECL_STRERROR 0
14534_ACEOF
14535
14536
14537fi
b4e70030
JB
14538echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14539echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14540if test "${ac_cv_have_decl_strstr+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542else
14543 cat >conftest.$ac_ext <<_ACEOF
14544/* confdefs.h. */
14545_ACEOF
14546cat confdefs.h >>conftest.$ac_ext
14547cat >>conftest.$ac_ext <<_ACEOF
14548/* end confdefs.h. */
14549$ac_includes_default
14550int
14551main ()
14552{
14553#ifndef strstr
14554 char *p = (char *) strstr;
4e8d927d
DJ
14555#endif
14556
14557 ;
14558 return 0;
14559}
14560_ACEOF
14561rm -f conftest.$ac_objext
14562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>conftest.er1
14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
b4e70030
JB
14570 { ac_try='test -z "$ac_c_werror_flag"
14571 || test ! -s conftest.err'
4e8d927d
DJ
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest.$ac_objext'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 ac_cv_have_decl_strstr=yes
14584else
14585 echo "$as_me: failed program was:" >&5
14586sed 's/^/| /' conftest.$ac_ext >&5
14587
b4e70030 14588ac_cv_have_decl_strstr=no
4e8d927d 14589fi
4e8d927d
DJ
14590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14591fi
b4e70030
JB
14592echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14593echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14594if test $ac_cv_have_decl_strstr = yes; then
14595
14596cat >>confdefs.h <<_ACEOF
14597#define HAVE_DECL_STRSTR 1
14598_ACEOF
14599
14600
14601else
14602 cat >>confdefs.h <<_ACEOF
14603#define HAVE_DECL_STRSTR 0
14604_ACEOF
14605
14606
14607fi
14608
14609
b4e70030
JB
14610echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14611echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14612if test "${ac_cv_have_decl_getopt+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614else
14615 cat >conftest.$ac_ext <<_ACEOF
14616/* confdefs.h. */
14617_ACEOF
14618cat confdefs.h >>conftest.$ac_ext
14619cat >>conftest.$ac_ext <<_ACEOF
14620/* end confdefs.h. */
14621$ac_includes_default
14622int
14623main ()
14624{
14625#ifndef getopt
14626 char *p = (char *) getopt;
4e8d927d
DJ
14627#endif
14628
14629 ;
14630 return 0;
14631}
14632_ACEOF
14633rm -f conftest.$ac_objext
14634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14635 (eval $ac_compile) 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
b4e70030
JB
14642 { ac_try='test -z "$ac_c_werror_flag"
14643 || test ! -s conftest.err'
4e8d927d
DJ
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; } &&
14649 { ac_try='test -s conftest.$ac_objext'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_cv_have_decl_getopt=yes
14656else
14657 echo "$as_me: failed program was:" >&5
14658sed 's/^/| /' conftest.$ac_ext >&5
14659
b4e70030 14660ac_cv_have_decl_getopt=no
4e8d927d 14661fi
4e8d927d
DJ
14662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14663fi
b4e70030
JB
14664echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14665echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
14666if test $ac_cv_have_decl_getopt = yes; then
14667
14668cat >>confdefs.h <<_ACEOF
14669#define HAVE_DECL_GETOPT 1
14670_ACEOF
14671
14672
14673else
14674 cat >>confdefs.h <<_ACEOF
14675#define HAVE_DECL_GETOPT 0
14676_ACEOF
14677
14678
14679fi
b4e70030
JB
14680echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14681echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14682if test "${ac_cv_have_decl_snprintf+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684else
14685 cat >conftest.$ac_ext <<_ACEOF
14686/* confdefs.h. */
14687_ACEOF
14688cat confdefs.h >>conftest.$ac_ext
14689cat >>conftest.$ac_ext <<_ACEOF
14690/* end confdefs.h. */
14691$ac_includes_default
14692int
14693main ()
14694{
14695#ifndef snprintf
14696 char *p = (char *) snprintf;
4e8d927d
DJ
14697#endif
14698
14699 ;
14700 return 0;
14701}
14702_ACEOF
14703rm -f conftest.$ac_objext
14704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14705 (eval $ac_compile) 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
b4e70030
JB
14712 { ac_try='test -z "$ac_c_werror_flag"
14713 || test ! -s conftest.err'
4e8d927d
DJ
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; } &&
14719 { ac_try='test -s conftest.$ac_objext'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14725 ac_cv_have_decl_snprintf=yes
14726else
14727 echo "$as_me: failed program was:" >&5
14728sed 's/^/| /' conftest.$ac_ext >&5
14729
b4e70030 14730ac_cv_have_decl_snprintf=no
4e8d927d 14731fi
4e8d927d
DJ
14732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14733fi
b4e70030
JB
14734echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14735echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
14736if test $ac_cv_have_decl_snprintf = yes; then
14737
14738cat >>confdefs.h <<_ACEOF
14739#define HAVE_DECL_SNPRINTF 1
14740_ACEOF
14741
14742
14743else
14744 cat >>confdefs.h <<_ACEOF
14745#define HAVE_DECL_SNPRINTF 0
14746_ACEOF
14747
14748
14749fi
b4e70030
JB
14750echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14751echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14752if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754else
14755 cat >conftest.$ac_ext <<_ACEOF
14756/* confdefs.h. */
14757_ACEOF
14758cat confdefs.h >>conftest.$ac_ext
14759cat >>conftest.$ac_ext <<_ACEOF
14760/* end confdefs.h. */
14761$ac_includes_default
14762int
14763main ()
14764{
14765#ifndef vsnprintf
14766 char *p = (char *) vsnprintf;
4e8d927d
DJ
14767#endif
14768
14769 ;
14770 return 0;
14771}
14772_ACEOF
14773rm -f conftest.$ac_objext
14774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
b4e70030
JB
14782 { ac_try='test -z "$ac_c_werror_flag"
14783 || test ! -s conftest.err'
4e8d927d
DJ
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_cv_have_decl_vsnprintf=yes
14796else
14797 echo "$as_me: failed program was:" >&5
14798sed 's/^/| /' conftest.$ac_ext >&5
14799
b4e70030 14800ac_cv_have_decl_vsnprintf=no
4e8d927d 14801fi
4e8d927d
DJ
14802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14803fi
b4e70030
JB
14804echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14805echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
14806if test $ac_cv_have_decl_vsnprintf = yes; then
14807
14808cat >>confdefs.h <<_ACEOF
14809#define HAVE_DECL_VSNPRINTF 1
14810_ACEOF
14811
14812
14813else
14814 cat >>confdefs.h <<_ACEOF
14815#define HAVE_DECL_VSNPRINTF 0
14816_ACEOF
14817
14818
14819fi
14820
14821
14822
14823# ----------------------- #
14824# Checks for structures. #
14825# ----------------------- #
14826
b4e70030
JB
14827echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14828echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
14829if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831else
14832 cat >conftest.$ac_ext <<_ACEOF
14833/* confdefs.h. */
14834_ACEOF
14835cat confdefs.h >>conftest.$ac_ext
14836cat >>conftest.$ac_ext <<_ACEOF
14837/* end confdefs.h. */
14838$ac_includes_default
14839int
14840main ()
14841{
14842static struct stat ac_aggr;
14843if (ac_aggr.st_blocks)
14844return 0;
14845 ;
14846 return 0;
14847}
14848_ACEOF
14849rm -f conftest.$ac_objext
14850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14851 (eval $ac_compile) 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
b4e70030
JB
14858 { ac_try='test -z "$ac_c_werror_flag"
14859 || test ! -s conftest.err'
4e8d927d
DJ
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest.$ac_objext'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; }; then
14871 ac_cv_member_struct_stat_st_blocks=yes
14872else
14873 echo "$as_me: failed program was:" >&5
14874sed 's/^/| /' conftest.$ac_ext >&5
14875
b4e70030 14876cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14877/* confdefs.h. */
14878_ACEOF
14879cat confdefs.h >>conftest.$ac_ext
14880cat >>conftest.$ac_ext <<_ACEOF
14881/* end confdefs.h. */
14882$ac_includes_default
14883int
14884main ()
14885{
14886static struct stat ac_aggr;
14887if (sizeof ac_aggr.st_blocks)
14888return 0;
14889 ;
14890 return 0;
14891}
14892_ACEOF
14893rm -f conftest.$ac_objext
14894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14895 (eval $ac_compile) 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
b4e70030
JB
14902 { ac_try='test -z "$ac_c_werror_flag"
14903 || test ! -s conftest.err'
4e8d927d
DJ
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; } &&
14909 { ac_try='test -s conftest.$ac_objext'
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 ac_cv_member_struct_stat_st_blocks=yes
14916else
14917 echo "$as_me: failed program was:" >&5
14918sed 's/^/| /' conftest.$ac_ext >&5
14919
b4e70030 14920ac_cv_member_struct_stat_st_blocks=no
4e8d927d 14921fi
4e8d927d
DJ
14922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14923fi
4e8d927d
DJ
14924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14925fi
b4e70030
JB
14926echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14927echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
14928if test $ac_cv_member_struct_stat_st_blocks = yes; then
14929
14930cat >>confdefs.h <<_ACEOF
14931#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14932_ACEOF
14933
14934
14935fi
14936
b4e70030
JB
14937echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14938echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
14939if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14941else
14942 cat >conftest.$ac_ext <<_ACEOF
14943/* confdefs.h. */
14944_ACEOF
14945cat confdefs.h >>conftest.$ac_ext
14946cat >>conftest.$ac_ext <<_ACEOF
14947/* end confdefs.h. */
14948$ac_includes_default
14949int
14950main ()
14951{
14952static struct stat ac_aggr;
14953if (ac_aggr.st_blksize)
14954return 0;
14955 ;
14956 return 0;
14957}
14958_ACEOF
14959rm -f conftest.$ac_objext
14960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14961 (eval $ac_compile) 2>conftest.er1
14962 ac_status=$?
14963 grep -v '^ *+' conftest.er1 >conftest.err
14964 rm -f conftest.er1
14965 cat conftest.err >&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } &&
b4e70030
JB
14968 { ac_try='test -z "$ac_c_werror_flag"
14969 || test ! -s conftest.err'
4e8d927d
DJ
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try='test -s conftest.$ac_objext'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14981 ac_cv_member_struct_stat_st_blksize=yes
14982else
14983 echo "$as_me: failed program was:" >&5
14984sed 's/^/| /' conftest.$ac_ext >&5
14985
b4e70030 14986cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14987/* confdefs.h. */
14988_ACEOF
14989cat confdefs.h >>conftest.$ac_ext
14990cat >>conftest.$ac_ext <<_ACEOF
14991/* end confdefs.h. */
14992$ac_includes_default
14993int
14994main ()
14995{
14996static struct stat ac_aggr;
14997if (sizeof ac_aggr.st_blksize)
14998return 0;
14999 ;
15000 return 0;
15001}
15002_ACEOF
15003rm -f conftest.$ac_objext
15004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15005 (eval $ac_compile) 2>conftest.er1
15006 ac_status=$?
15007 grep -v '^ *+' conftest.er1 >conftest.err
15008 rm -f conftest.er1
15009 cat conftest.err >&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } &&
b4e70030
JB
15012 { ac_try='test -z "$ac_c_werror_flag"
15013 || test ! -s conftest.err'
4e8d927d
DJ
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; } &&
15019 { ac_try='test -s conftest.$ac_objext'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 ac_cv_member_struct_stat_st_blksize=yes
15026else
15027 echo "$as_me: failed program was:" >&5
15028sed 's/^/| /' conftest.$ac_ext >&5
15029
b4e70030 15030ac_cv_member_struct_stat_st_blksize=no
4e8d927d 15031fi
4e8d927d
DJ
15032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15033fi
4e8d927d
DJ
15034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15035fi
b4e70030
JB
15036echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15037echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
15038if test $ac_cv_member_struct_stat_st_blksize = yes; then
15039
15040cat >>confdefs.h <<_ACEOF
15041#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15042_ACEOF
15043
15044
15045fi
15046
15047
15048# ------------------ #
15049# Checks for types. #
15050# ------------------ #
15051
b4e70030
JB
15052echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15053echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
15054if test "${ac_cv_type_signal+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056else
15057 cat >conftest.$ac_ext <<_ACEOF
15058/* confdefs.h. */
15059_ACEOF
15060cat confdefs.h >>conftest.$ac_ext
15061cat >>conftest.$ac_ext <<_ACEOF
15062/* end confdefs.h. */
15063#include <sys/types.h>
15064#include <signal.h>
b4e70030
JB
15065#ifdef signal
15066# undef signal
15067#endif
15068#ifdef __cplusplus
15069extern "C" void (*signal (int, void (*)(int)))(int);
15070#else
15071void (*signal ()) ();
15072#endif
4e8d927d
DJ
15073
15074int
15075main ()
15076{
b4e70030 15077int i;
4e8d927d
DJ
15078 ;
15079 return 0;
15080}
15081_ACEOF
15082rm -f conftest.$ac_objext
15083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15084 (eval $ac_compile) 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
b4e70030
JB
15091 { ac_try='test -z "$ac_c_werror_flag"
15092 || test ! -s conftest.err'
4e8d927d
DJ
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; } &&
15098 { ac_try='test -s conftest.$ac_objext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
b4e70030 15104 ac_cv_type_signal=void
4e8d927d
DJ
15105else
15106 echo "$as_me: failed program was:" >&5
15107sed 's/^/| /' conftest.$ac_ext >&5
15108
b4e70030 15109ac_cv_type_signal=int
4e8d927d 15110fi
4e8d927d
DJ
15111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15112fi
b4e70030
JB
15113echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15114echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
15115
15116cat >>confdefs.h <<_ACEOF
15117#define RETSIGTYPE $ac_cv_type_signal
15118_ACEOF
15119
15120
b4e70030
JB
15121echo "$as_me:$LINENO: checking for socklen_t" >&5
15122echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
15123if test "${ac_cv_type_socklen_t+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15125else
15126 cat >conftest.$ac_ext <<_ACEOF
15127/* confdefs.h. */
15128_ACEOF
15129cat confdefs.h >>conftest.$ac_ext
15130cat >>conftest.$ac_ext <<_ACEOF
15131/* end confdefs.h. */
15132#include <sys/types.h>
15133#include <sys/socket.h>
15134
15135
4e8d927d
DJ
15136int
15137main ()
15138{
b4e70030 15139if ((socklen_t *) 0)
4e8d927d 15140 return 0;
b4e70030 15141if (sizeof (socklen_t))
4e8d927d
DJ
15142 return 0;
15143 ;
15144 return 0;
15145}
15146_ACEOF
15147rm -f conftest.$ac_objext
15148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15149 (eval $ac_compile) 2>conftest.er1
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
b4e70030
JB
15156 { ac_try='test -z "$ac_c_werror_flag"
15157 || test ! -s conftest.err'
4e8d927d
DJ
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; } &&
15163 { ac_try='test -s conftest.$ac_objext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_type_socklen_t=yes
15170else
15171 echo "$as_me: failed program was:" >&5
15172sed 's/^/| /' conftest.$ac_ext >&5
15173
b4e70030 15174ac_cv_type_socklen_t=no
4e8d927d 15175fi
4e8d927d
DJ
15176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15177fi
b4e70030
JB
15178echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15179echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
15180if test $ac_cv_type_socklen_t = yes; then
15181
15182cat >>confdefs.h <<_ACEOF
15183#define HAVE_SOCKLEN_T 1
15184_ACEOF
15185
15186
15187fi
15188
b4e70030
JB
15189echo "$as_me:$LINENO: checking for uintptr_t" >&5
15190echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
15191if test "${ac_cv_type_uintptr_t+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193else
15194 cat >conftest.$ac_ext <<_ACEOF
15195/* confdefs.h. */
15196_ACEOF
15197cat confdefs.h >>conftest.$ac_ext
15198cat >>conftest.$ac_ext <<_ACEOF
15199/* end confdefs.h. */
15200#include <stdint.h>
15201
4e8d927d
DJ
15202int
15203main ()
15204{
b4e70030 15205if ((uintptr_t *) 0)
4e8d927d 15206 return 0;
b4e70030 15207if (sizeof (uintptr_t))
4e8d927d
DJ
15208 return 0;
15209 ;
15210 return 0;
15211}
15212_ACEOF
15213rm -f conftest.$ac_objext
15214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15215 (eval $ac_compile) 2>conftest.er1
15216 ac_status=$?
15217 grep -v '^ *+' conftest.er1 >conftest.err
15218 rm -f conftest.er1
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } &&
b4e70030
JB
15222 { ac_try='test -z "$ac_c_werror_flag"
15223 || test ! -s conftest.err'
4e8d927d
DJ
15224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225 (eval $ac_try) 2>&5
15226 ac_status=$?
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; } &&
15229 { ac_try='test -s conftest.$ac_objext'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; }; then
15235 ac_cv_type_uintptr_t=yes
15236else
15237 echo "$as_me: failed program was:" >&5
15238sed 's/^/| /' conftest.$ac_ext >&5
15239
b4e70030 15240ac_cv_type_uintptr_t=no
4e8d927d 15241fi
4e8d927d
DJ
15242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15243fi
b4e70030
JB
15244echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15245echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
15246if test $ac_cv_type_uintptr_t = yes; then
15247
15248cat >>confdefs.h <<_ACEOF
15249#define HAVE_UINTPTR_T 1
15250_ACEOF
15251
15252
15253fi
15254
15255
15256# ------------------------------------- #
15257# Checks for compiler characteristics. #
15258# ------------------------------------- #
15259
b4e70030
JB
15260echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15261echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
15262if test "${ac_cv_c_const+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264else
15265 cat >conftest.$ac_ext <<_ACEOF
15266/* confdefs.h. */
15267_ACEOF
15268cat confdefs.h >>conftest.$ac_ext
15269cat >>conftest.$ac_ext <<_ACEOF
15270/* end confdefs.h. */
15271
15272int
15273main ()
15274{
15275/* FIXME: Include the comments suggested by Paul. */
15276#ifndef __cplusplus
15277 /* Ultrix mips cc rejects this. */
15278 typedef int charset[2];
15279 const charset x;
15280 /* SunOS 4.1.1 cc rejects this. */
15281 char const *const *ccp;
15282 char **p;
15283 /* NEC SVR4.0.2 mips cc rejects this. */
15284 struct point {int x, y;};
15285 static struct point const zero = {0,0};
15286 /* AIX XL C 1.02.0.0 rejects this.
15287 It does not let you subtract one const X* pointer from another in
15288 an arm of an if-expression whose if-part is not a constant
15289 expression */
15290 const char *g = "string";
15291 ccp = &g + (g ? g-g : 0);
15292 /* HPUX 7.0 cc rejects these. */
15293 ++ccp;
15294 p = (char**) ccp;
15295 ccp = (char const *const *) p;
15296 { /* SCO 3.2v4 cc rejects this. */
15297 char *t;
15298 char const *s = 0 ? (char *) 0 : (char const *) 0;
15299
15300 *t++ = 0;
4e8d927d
DJ
15301 }
15302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15303 int x[] = {25, 17};
15304 const int *foo = &x[0];
15305 ++foo;
15306 }
15307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15308 typedef const int *iptr;
15309 iptr p = 0;
15310 ++p;
15311 }
15312 { /* AIX XL C 1.02.0.0 rejects this saying
15313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15314 struct s { int j; const int *ap[3]; };
15315 struct s *b; b->j = 5;
15316 }
15317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15318 const int foo = 10;
4e8d927d 15319 }
4e8d927d
DJ
15320#endif
15321
15322 ;
15323 return 0;
15324}
15325_ACEOF
15326rm -f conftest.$ac_objext
15327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
b4e70030
JB
15335 { ac_try='test -z "$ac_c_werror_flag"
15336 || test ! -s conftest.err'
4e8d927d
DJ
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_cv_c_const=yes
15349else
15350 echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
b4e70030 15353ac_cv_c_const=no
4e8d927d 15354fi
4e8d927d
DJ
15355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15356fi
b4e70030
JB
15357echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15358echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
15359if test $ac_cv_c_const = no; then
15360
15361cat >>confdefs.h <<\_ACEOF
15362#define const
15363_ACEOF
15364
15365fi
15366
b4e70030
JB
15367echo "$as_me:$LINENO: checking for inline" >&5
15368echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
15369if test "${ac_cv_c_inline+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371else
15372 ac_cv_c_inline=no
15373for ac_kw in inline __inline__ __inline; do
15374 cat >conftest.$ac_ext <<_ACEOF
15375/* confdefs.h. */
15376_ACEOF
15377cat confdefs.h >>conftest.$ac_ext
15378cat >>conftest.$ac_ext <<_ACEOF
15379/* end confdefs.h. */
15380#ifndef __cplusplus
15381typedef int foo_t;
15382static $ac_kw foo_t static_foo () {return 0; }
15383$ac_kw foo_t foo () {return 0; }
15384#endif
15385
15386_ACEOF
15387rm -f conftest.$ac_objext
15388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15389 (eval $ac_compile) 2>conftest.er1
15390 ac_status=$?
15391 grep -v '^ *+' conftest.er1 >conftest.err
15392 rm -f conftest.er1
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } &&
b4e70030
JB
15396 { ac_try='test -z "$ac_c_werror_flag"
15397 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
15403 { ac_try='test -s conftest.$ac_objext'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
b4e70030 15409 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
15410else
15411 echo "$as_me: failed program was:" >&5
15412sed 's/^/| /' conftest.$ac_ext >&5
15413
4e8d927d 15414fi
4e8d927d 15415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
15416done
15417
15418fi
b4e70030
JB
15419echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15420echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 15421
bec39cab 15422
a3828db0
MK
15423case $ac_cv_c_inline in
15424 inline | yes) ;;
15425 *)
15426 case $ac_cv_c_inline in
15427 no) ac_val=;;
15428 *) ac_val=$ac_cv_c_inline;;
15429 esac
15430 cat >>confdefs.h <<_ACEOF
15431#ifndef __cplusplus
15432#define inline $ac_val
15433#endif
15434_ACEOF
bec39cab
AC
15435 ;;
15436esac
bec39cab 15437
74c1b268 15438
a3828db0
MK
15439# ------------------------------ #
15440# Checks for library functions. #
15441# ------------------------------ #
bec39cab 15442
a3828db0
MK
15443# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15444# for constant arguments. Useless!
b4e70030
JB
15445echo "$as_me:$LINENO: checking for working alloca.h" >&5
15446echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 15447if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15449else
15450 cat >conftest.$ac_ext <<_ACEOF
15451/* confdefs.h. */
15452_ACEOF
15453cat confdefs.h >>conftest.$ac_ext
15454cat >>conftest.$ac_ext <<_ACEOF
15455/* end confdefs.h. */
a3828db0 15456#include <alloca.h>
bec39cab
AC
15457int
15458main ()
15459{
a3828db0 15460char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
15461 ;
15462 return 0;
15463}
15464_ACEOF
15465rm -f conftest.$ac_objext conftest$ac_exeext
15466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15467 (eval $ac_link) 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
b4e70030
JB
15474 { ac_try='test -z "$ac_c_werror_flag"
15475 || test ! -s conftest.err'
bec39cab
AC
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; } &&
15481 { ac_try='test -s conftest$ac_exeext'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
a3828db0 15487 ac_cv_working_alloca_h=yes
bec39cab
AC
15488else
15489 echo "$as_me: failed program was:" >&5
15490sed 's/^/| /' conftest.$ac_ext >&5
15491
b4e70030 15492ac_cv_working_alloca_h=no
bec39cab
AC
15493fi
15494rm -f conftest.err conftest.$ac_objext \
15495 conftest$ac_exeext conftest.$ac_ext
15496fi
b4e70030
JB
15497echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15498echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
15499if test $ac_cv_working_alloca_h = yes; then
15500
15501cat >>confdefs.h <<\_ACEOF
15502#define HAVE_ALLOCA_H 1
bec39cab 15503_ACEOF
74c1b268 15504
74c1b268
AC
15505fi
15506
b4e70030
JB
15507echo "$as_me:$LINENO: checking for alloca" >&5
15508echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 15509if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 15510 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 15511else
bec39cab
AC
15512 cat >conftest.$ac_ext <<_ACEOF
15513/* confdefs.h. */
15514_ACEOF
15515cat confdefs.h >>conftest.$ac_ext
15516cat >>conftest.$ac_ext <<_ACEOF
15517/* end confdefs.h. */
a3828db0
MK
15518#ifdef __GNUC__
15519# define alloca __builtin_alloca
15520#else
15521# ifdef _MSC_VER
15522# include <malloc.h>
15523# define alloca _alloca
15524# else
15525# if HAVE_ALLOCA_H
15526# include <alloca.h>
15527# else
15528# ifdef _AIX
15529 #pragma alloca
15530# else
15531# ifndef alloca /* predefined by HP cc +Olibcalls */
15532char *alloca ();
15533# endif
15534# endif
15535# endif
97bf5e38 15536# endif
a3828db0 15537#endif
97bf5e38 15538
bec39cab
AC
15539int
15540main ()
15541{
a3828db0 15542char *p = (char *) alloca (1);
bec39cab
AC
15543 ;
15544 return 0;
15545}
15546_ACEOF
a3828db0
MK
15547rm -f conftest.$ac_objext conftest$ac_exeext
15548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15549 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
b4e70030
JB
15556 { ac_try='test -z "$ac_c_werror_flag"
15557 || test ! -s conftest.err'
bec39cab
AC
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; } &&
a3828db0 15563 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15566 ac_status=$?
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; }; then
a3828db0 15569 ac_cv_func_alloca_works=yes
0200359f 15570else
bec39cab
AC
15571 echo "$as_me: failed program was:" >&5
15572sed 's/^/| /' conftest.$ac_ext >&5
0200359f 15573
b4e70030 15574ac_cv_func_alloca_works=no
0200359f 15575fi
a3828db0
MK
15576rm -f conftest.err conftest.$ac_objext \
15577 conftest$ac_exeext conftest.$ac_ext
72473524 15578fi
b4e70030
JB
15579echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15580echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 15581
a3828db0
MK
15582if test $ac_cv_func_alloca_works = yes; then
15583
15584cat >>confdefs.h <<\_ACEOF
15585#define HAVE_ALLOCA 1
bec39cab
AC
15586_ACEOF
15587
a3828db0
MK
15588else
15589 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15590# that cause trouble. Some versions do not even contain alloca or
15591# contain a buggy version. If you still want to use their alloca,
15592# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 15593
b4e70030 15594ALLOCA=alloca.$ac_objext
bec39cab 15595
a3828db0
MK
15596cat >>confdefs.h <<\_ACEOF
15597#define C_ALLOCA 1
15598_ACEOF
bec39cab 15599
a3828db0 15600
b4e70030
JB
15601echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15602echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 15603if test "${ac_cv_os_cray+set}" = set; then
bec39cab 15604 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15605else
a3828db0 15606 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15607/* confdefs.h. */
15608_ACEOF
15609cat confdefs.h >>conftest.$ac_ext
15610cat >>conftest.$ac_ext <<_ACEOF
15611/* end confdefs.h. */
b4e70030 15612#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
15613webecray
15614#else
15615wenotbecray
15616#endif
15617
15618_ACEOF
15619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15620 $EGREP "webecray" >/dev/null 2>&1; then
15621 ac_cv_os_cray=yes
15622else
15623 ac_cv_os_cray=no
15624fi
15625rm -f conftest*
15626
15627fi
b4e70030
JB
15628echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15629echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
15630if test $ac_cv_os_cray = yes; then
15631 for ac_func in _getb67 GETB67 getb67; do
15632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15633echo "$as_me:$LINENO: checking for $ac_func" >&5
15634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15635if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15637else
15638 cat >conftest.$ac_ext <<_ACEOF
15639/* confdefs.h. */
15640_ACEOF
15641cat confdefs.h >>conftest.$ac_ext
15642cat >>conftest.$ac_ext <<_ACEOF
15643/* end confdefs.h. */
15644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15646#define $ac_func innocuous_$ac_func
15647
15648/* System header to define __stub macros and hopefully few prototypes,
15649 which can conflict with char $ac_func (); below.
15650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15651 <limits.h> exists even on freestanding compilers. */
15652
15653#ifdef __STDC__
15654# include <limits.h>
15655#else
15656# include <assert.h>
15657#endif
15658
15659#undef $ac_func
15660
b4e70030 15661/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
15662#ifdef __cplusplus
15663extern "C"
b4e70030 15664{
a3828db0 15665#endif
b4e70030
JB
15666/* We use char because int might match the return type of a gcc2
15667 builtin and then its argument prototype would still apply. */
a3828db0
MK
15668char $ac_func ();
15669/* The GNU C library defines this for functions which it implements
15670 to always fail with ENOSYS. Some functions are actually named
15671 something starting with __ and the normal name is an alias. */
b4e70030 15672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 15673choke me
b4e70030
JB
15674#else
15675char (*f) () = $ac_func;
15676#endif
15677#ifdef __cplusplus
15678}
a3828db0
MK
15679#endif
15680
15681int
15682main ()
15683{
b4e70030 15684return f != $ac_func;
a3828db0
MK
15685 ;
15686 return 0;
15687}
15688_ACEOF
15689rm -f conftest.$ac_objext conftest$ac_exeext
15690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15691 (eval $ac_link) 2>conftest.er1
15692 ac_status=$?
15693 grep -v '^ *+' conftest.er1 >conftest.err
15694 rm -f conftest.er1
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
b4e70030
JB
15698 { ac_try='test -z "$ac_c_werror_flag"
15699 || test ! -s conftest.err'
a3828db0
MK
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; } &&
15705 { ac_try='test -s conftest$ac_exeext'
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; }; then
15711 eval "$as_ac_var=yes"
15712else
15713 echo "$as_me: failed program was:" >&5
15714sed 's/^/| /' conftest.$ac_ext >&5
15715
b4e70030 15716eval "$as_ac_var=no"
a3828db0
MK
15717fi
15718rm -f conftest.err conftest.$ac_objext \
15719 conftest$ac_exeext conftest.$ac_ext
15720fi
b4e70030
JB
15721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15722echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
15723if test `eval echo '${'$as_ac_var'}'` = yes; then
15724
15725cat >>confdefs.h <<_ACEOF
15726#define CRAY_STACKSEG_END $ac_func
15727_ACEOF
15728
15729 break
15730fi
15731
15732 done
15733fi
15734
b4e70030
JB
15735echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15736echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
15737if test "${ac_cv_c_stack_direction+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739else
15740 if test "$cross_compiling" = yes; then
15741 ac_cv_c_stack_direction=0
15742else
15743 cat >conftest.$ac_ext <<_ACEOF
15744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
15749int
15750find_stack_direction ()
15751{
15752 static char *addr = 0;
15753 auto char dummy;
15754 if (addr == 0)
15755 {
15756 addr = &dummy;
15757 return find_stack_direction ();
15758 }
15759 else
15760 return (&dummy > addr) ? 1 : -1;
15761}
15762
15763int
15764main ()
15765{
b4e70030 15766 exit (find_stack_direction () < 0);
a3828db0
MK
15767}
15768_ACEOF
15769rm -f conftest$ac_exeext
15770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771 (eval $ac_link) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_cv_c_stack_direction=1
15781else
15782 echo "$as_me: program exited with status $ac_status" >&5
15783echo "$as_me: failed program was:" >&5
15784sed 's/^/| /' conftest.$ac_ext >&5
15785
15786( exit $ac_status )
15787ac_cv_c_stack_direction=-1
15788fi
b4e70030 15789rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
15790fi
15791fi
b4e70030
JB
15792echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15793echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
15794
15795cat >>confdefs.h <<_ACEOF
15796#define STACK_DIRECTION $ac_cv_c_stack_direction
15797_ACEOF
15798
15799
15800fi
15801
15802
15803
15804for ac_header in stdlib.h unistd.h
15805do
15806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15807if eval "test \"\${$as_ac_Header+set}\" = set"; then
15808 echo "$as_me:$LINENO: checking for $ac_header" >&5
15809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15810if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812fi
b4e70030
JB
15813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
15815else
15816 # Is the header compilable?
b4e70030
JB
15817echo "$as_me:$LINENO: checking $ac_header usability" >&5
15818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
15819cat >conftest.$ac_ext <<_ACEOF
15820/* confdefs.h. */
15821_ACEOF
15822cat confdefs.h >>conftest.$ac_ext
15823cat >>conftest.$ac_ext <<_ACEOF
15824/* end confdefs.h. */
15825$ac_includes_default
15826#include <$ac_header>
15827_ACEOF
15828rm -f conftest.$ac_objext
15829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830 (eval $ac_compile) 2>conftest.er1
15831 ac_status=$?
bec39cab
AC
15832 grep -v '^ *+' conftest.er1 >conftest.err
15833 rm -f conftest.er1
15834 cat conftest.err >&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } &&
b4e70030
JB
15837 { ac_try='test -z "$ac_c_werror_flag"
15838 || test ! -s conftest.err'
bec39cab
AC
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15841 ac_status=$?
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; } &&
15844 { ac_try='test -s conftest.$ac_objext'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15850 ac_header_compiler=yes
15851else
15852 echo "$as_me: failed program was:" >&5
15853sed 's/^/| /' conftest.$ac_ext >&5
15854
b4e70030 15855ac_header_compiler=no
bec39cab
AC
15856fi
15857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15859echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15860
15861# Is the header present?
b4e70030
JB
15862echo "$as_me:$LINENO: checking $ac_header presence" >&5
15863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15864cat >conftest.$ac_ext <<_ACEOF
15865/* confdefs.h. */
15866_ACEOF
15867cat confdefs.h >>conftest.$ac_ext
15868cat >>conftest.$ac_ext <<_ACEOF
15869/* end confdefs.h. */
15870#include <$ac_header>
15871_ACEOF
15872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15874 ac_status=$?
15875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } >/dev/null; then
15880 if test -s conftest.err; then
15881 ac_cpp_err=$ac_c_preproc_warn_flag
15882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15883 else
15884 ac_cpp_err=
15885 fi
15886else
15887 ac_cpp_err=yes
15888fi
15889if test -z "$ac_cpp_err"; then
15890 ac_header_preproc=yes
97bf5e38 15891else
bec39cab
AC
15892 echo "$as_me: failed program was:" >&5
15893sed 's/^/| /' conftest.$ac_ext >&5
15894
15895 ac_header_preproc=no
72473524 15896fi
bec39cab 15897rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15899echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 15900
bec39cab
AC
15901# So? What about this header?
15902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15903 yes:no: )
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15908 ac_header_preproc=yes
15909 ;;
15910 no:yes:* )
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15923 (
15924 cat <<\_ASBOX
15925## ------------------------------------------ ##
15926## Report this to the AC_PACKAGE_NAME lists. ##
15927## ------------------------------------------ ##
15928_ASBOX
15929 ) |
15930 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15931 ;;
15932esac
b4e70030
JB
15933echo "$as_me:$LINENO: checking for $ac_header" >&5
15934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15935if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15936 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15937else
bec39cab
AC
15938 eval "$as_ac_Header=\$ac_header_preproc"
15939fi
b4e70030
JB
15940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15942
15943fi
15944if test `eval echo '${'$as_ac_Header'}'` = yes; then
15945 cat >>confdefs.h <<_ACEOF
15946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15947_ACEOF
15948
15949fi
15950
15951done
15952
15953
a3828db0 15954for ac_func in getpagesize
bec39cab
AC
15955do
15956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15957echo "$as_me:$LINENO: checking for $ac_func" >&5
15958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15959if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15961else
15962 cat >conftest.$ac_ext <<_ACEOF
15963/* confdefs.h. */
15964_ACEOF
15965cat confdefs.h >>conftest.$ac_ext
15966cat >>conftest.$ac_ext <<_ACEOF
15967/* end confdefs.h. */
15968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15970#define $ac_func innocuous_$ac_func
15971
97bf5e38 15972/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15973 which can conflict with char $ac_func (); below.
15974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15975 <limits.h> exists even on freestanding compilers. */
2b2d558c 15976
bec39cab
AC
15977#ifdef __STDC__
15978# include <limits.h>
15979#else
15980# include <assert.h>
15981#endif
97bf5e38 15982
bec39cab
AC
15983#undef $ac_func
15984
b4e70030 15985/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
15986#ifdef __cplusplus
15987extern "C"
b4e70030 15988{
bec39cab 15989#endif
b4e70030
JB
15990/* We use char because int might match the return type of a gcc2
15991 builtin and then its argument prototype would still apply. */
bec39cab 15992char $ac_func ();
97bf5e38
MK
15993/* The GNU C library defines this for functions which it implements
15994 to always fail with ENOSYS. Some functions are actually named
15995 something starting with __ and the normal name is an alias. */
b4e70030 15996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 15997choke me
b4e70030
JB
15998#else
15999char (*f) () = $ac_func;
16000#endif
16001#ifdef __cplusplus
16002}
97bf5e38
MK
16003#endif
16004
bec39cab
AC
16005int
16006main ()
16007{
b4e70030 16008return f != $ac_func;
bec39cab
AC
16009 ;
16010 return 0;
16011}
16012_ACEOF
16013rm -f conftest.$ac_objext conftest$ac_exeext
16014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16015 (eval $ac_link) 2>conftest.er1
16016 ac_status=$?
16017 grep -v '^ *+' conftest.er1 >conftest.err
16018 rm -f conftest.er1
16019 cat conftest.err >&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } &&
b4e70030
JB
16022 { ac_try='test -z "$ac_c_werror_flag"
16023 || test ! -s conftest.err'
bec39cab
AC
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest$ac_exeext'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 eval "$as_ac_var=yes"
16036else
16037 echo "$as_me: failed program was:" >&5
16038sed 's/^/| /' conftest.$ac_ext >&5
16039
b4e70030 16040eval "$as_ac_var=no"
bec39cab
AC
16041fi
16042rm -f conftest.err conftest.$ac_objext \
16043 conftest$ac_exeext conftest.$ac_ext
16044fi
b4e70030
JB
16045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16047if test `eval echo '${'$as_ac_var'}'` = yes; then
16048 cat >>confdefs.h <<_ACEOF
16049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16050_ACEOF
16051
2b2d558c 16052fi
bec39cab 16053done
2b2d558c 16054
b4e70030
JB
16055echo "$as_me:$LINENO: checking for working mmap" >&5
16056echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 16057if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 16058 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16059else
bec39cab 16060 if test "$cross_compiling" = yes; then
a3828db0 16061 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
16062else
16063 cat >conftest.$ac_ext <<_ACEOF
a3828db0 16064/* confdefs.h. */
bec39cab
AC
16065_ACEOF
16066cat confdefs.h >>conftest.$ac_ext
16067cat >>conftest.$ac_ext <<_ACEOF
16068/* end confdefs.h. */
a3828db0
MK
16069$ac_includes_default
16070/* malloc might have been renamed as rpl_malloc. */
16071#undef malloc
bec39cab 16072
a3828db0
MK
16073/* Thanks to Mike Haertel and Jim Avera for this test.
16074 Here is a matrix of mmap possibilities:
16075 mmap private not fixed
16076 mmap private fixed at somewhere currently unmapped
16077 mmap private fixed at somewhere already mapped
16078 mmap shared not fixed
16079 mmap shared fixed at somewhere currently unmapped
16080 mmap shared fixed at somewhere already mapped
16081 For private mappings, we should verify that changes cannot be read()
16082 back from the file, nor mmap's back from the file at a different
16083 address. (There have been systems where private was not correctly
16084 implemented like the infamous i386 svr4.0, and systems where the
16085 VM page cache was not coherent with the file system buffer cache
16086 like early versions of FreeBSD and possibly contemporary NetBSD.)
16087 For shared mappings, we should conversely verify that changes get
16088 propagated back to all the places they're supposed to be.
7dfa765c 16089
a3828db0
MK
16090 Grep wants private fixed already mapped.
16091 The main things grep needs to know about mmap are:
16092 * does it exist and is it safe to write into the mmap'd area
16093 * how to use it (BSD variants) */
7dfa765c 16094
a3828db0
MK
16095#include <fcntl.h>
16096#include <sys/mman.h>
7dfa765c 16097
a3828db0
MK
16098#if !STDC_HEADERS && !HAVE_STDLIB_H
16099char *malloc ();
16100#endif
7dfa765c 16101
a3828db0
MK
16102/* This mess was copied from the GNU getpagesize.h. */
16103#if !HAVE_GETPAGESIZE
16104/* Assume that all systems that can run configure have sys/param.h. */
16105# if !HAVE_SYS_PARAM_H
16106# define HAVE_SYS_PARAM_H 1
16107# endif
64bb1671 16108
a3828db0
MK
16109# ifdef _SC_PAGESIZE
16110# define getpagesize() sysconf(_SC_PAGESIZE)
16111# else /* no _SC_PAGESIZE */
16112# if HAVE_SYS_PARAM_H
16113# include <sys/param.h>
16114# ifdef EXEC_PAGESIZE
16115# define getpagesize() EXEC_PAGESIZE
16116# else /* no EXEC_PAGESIZE */
16117# ifdef NBPG
16118# define getpagesize() NBPG * CLSIZE
16119# ifndef CLSIZE
16120# define CLSIZE 1
16121# endif /* no CLSIZE */
16122# else /* no NBPG */
16123# ifdef NBPC
16124# define getpagesize() NBPC
16125# else /* no NBPC */
16126# ifdef PAGESIZE
16127# define getpagesize() PAGESIZE
16128# endif /* PAGESIZE */
16129# endif /* no NBPC */
16130# endif /* no NBPG */
16131# endif /* no EXEC_PAGESIZE */
16132# else /* no HAVE_SYS_PARAM_H */
16133# define getpagesize() 8192 /* punt totally */
16134# endif /* no HAVE_SYS_PARAM_H */
16135# endif /* no _SC_PAGESIZE */
64bb1671 16136
a3828db0 16137#endif /* no HAVE_GETPAGESIZE */
64bb1671 16138
a3828db0
MK
16139int
16140main ()
16141{
16142 char *data, *data2, *data3;
16143 int i, pagesize;
16144 int fd;
97bf5e38 16145
a3828db0
MK
16146 pagesize = getpagesize ();
16147
16148 /* First, make a file with some known garbage in it. */
16149 data = (char *) malloc (pagesize);
16150 if (!data)
b4e70030 16151 exit (1);
a3828db0
MK
16152 for (i = 0; i < pagesize; ++i)
16153 *(data + i) = rand ();
16154 umask (0);
16155 fd = creat ("conftest.mmap", 0600);
16156 if (fd < 0)
b4e70030 16157 exit (1);
a3828db0 16158 if (write (fd, data, pagesize) != pagesize)
b4e70030 16159 exit (1);
a3828db0
MK
16160 close (fd);
16161
16162 /* Next, try to mmap the file at a fixed address which already has
16163 something else allocated at it. If we can, also make sure that
16164 we see the same garbage. */
16165 fd = open ("conftest.mmap", O_RDWR);
16166 if (fd < 0)
b4e70030 16167 exit (1);
a3828db0
MK
16168 data2 = (char *) malloc (2 * pagesize);
16169 if (!data2)
b4e70030
JB
16170 exit (1);
16171 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
16172 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16173 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 16174 exit (1);
a3828db0
MK
16175 for (i = 0; i < pagesize; ++i)
16176 if (*(data + i) != *(data2 + i))
b4e70030 16177 exit (1);
a3828db0
MK
16178
16179 /* Finally, make sure that changes to the mapped area do not
16180 percolate back to the file as seen by read(). (This is a bug on
16181 some variants of i386 svr4.0.) */
16182 for (i = 0; i < pagesize; ++i)
16183 *(data2 + i) = *(data2 + i) + 1;
16184 data3 = (char *) malloc (pagesize);
16185 if (!data3)
b4e70030 16186 exit (1);
a3828db0 16187 if (read (fd, data3, pagesize) != pagesize)
b4e70030 16188 exit (1);
a3828db0
MK
16189 for (i = 0; i < pagesize; ++i)
16190 if (*(data + i) != *(data3 + i))
b4e70030 16191 exit (1);
a3828db0 16192 close (fd);
b4e70030 16193 exit (0);
97bf5e38 16194}
bec39cab
AC
16195_ACEOF
16196rm -f conftest$ac_exeext
16197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16198 (eval $ac_link) 2>&5
16199 ac_status=$?
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
a3828db0 16207 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 16208else
bec39cab
AC
16209 echo "$as_me: program exited with status $ac_status" >&5
16210echo "$as_me: failed program was:" >&5
16211sed 's/^/| /' conftest.$ac_ext >&5
16212
16213( exit $ac_status )
a3828db0 16214ac_cv_func_mmap_fixed_mapped=no
0afdd437 16215fi
b4e70030 16216rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 16217fi
a3828db0 16218fi
b4e70030
JB
16219echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16220echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 16221if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
16222
16223cat >>confdefs.h <<\_ACEOF
a3828db0 16224#define HAVE_MMAP 1
bec39cab 16225_ACEOF
0afdd437
MK
16226
16227fi
a3828db0 16228rm -f conftest.mmap
0afdd437 16229
b4e70030
JB
16230echo "$as_me:$LINENO: checking for pid_t" >&5
16231echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 16232if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16234else
16235 cat >conftest.$ac_ext <<_ACEOF
16236/* confdefs.h. */
16237_ACEOF
16238cat confdefs.h >>conftest.$ac_ext
16239cat >>conftest.$ac_ext <<_ACEOF
16240/* end confdefs.h. */
a3828db0 16241$ac_includes_default
bec39cab
AC
16242int
16243main ()
16244{
b4e70030 16245if ((pid_t *) 0)
a3828db0 16246 return 0;
b4e70030 16247if (sizeof (pid_t))
a3828db0 16248 return 0;
bec39cab
AC
16249 ;
16250 return 0;
16251}
16252_ACEOF
a3828db0
MK
16253rm -f conftest.$ac_objext
16254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16255 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16256 ac_status=$?
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } &&
b4e70030
JB
16262 { ac_try='test -z "$ac_c_werror_flag"
16263 || test ! -s conftest.err'
bec39cab
AC
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; } &&
a3828db0 16269 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
a3828db0 16275 ac_cv_type_pid_t=yes
bec39cab
AC
16276else
16277 echo "$as_me: failed program was:" >&5
16278sed 's/^/| /' conftest.$ac_ext >&5
16279
b4e70030 16280ac_cv_type_pid_t=no
bec39cab 16281fi
a3828db0 16282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 16283fi
b4e70030
JB
16284echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16285echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
16286if test $ac_cv_type_pid_t = yes; then
16287 :
16288else
16289
16290cat >>confdefs.h <<_ACEOF
16291#define pid_t int
bec39cab 16292_ACEOF
7e89e357 16293
7e89e357
JT
16294fi
16295
bec39cab 16296
b4e70030
JB
16297
16298for ac_header in unistd.h vfork.h
7be570e7 16299do
a3828db0 16300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16301if eval "test \"\${$as_ac_Header+set}\" = set"; then
16302 echo "$as_me:$LINENO: checking for $ac_header" >&5
16303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16304if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16305 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 16306fi
b4e70030
JB
16307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 16309else
a3828db0 16310 # Is the header compilable?
b4e70030
JB
16311echo "$as_me:$LINENO: checking $ac_header usability" >&5
16312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 16313cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16314/* confdefs.h. */
16315_ACEOF
16316cat confdefs.h >>conftest.$ac_ext
16317cat >>conftest.$ac_ext <<_ACEOF
16318/* end confdefs.h. */
a3828db0
MK
16319$ac_includes_default
16320#include <$ac_header>
bec39cab 16321_ACEOF
a3828db0
MK
16322rm -f conftest.$ac_objext
16323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16324 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16325 ac_status=$?
16326 grep -v '^ *+' conftest.er1 >conftest.err
16327 rm -f conftest.er1
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
b4e70030
JB
16331 { ac_try='test -z "$ac_c_werror_flag"
16332 || test ! -s conftest.err'
bec39cab
AC
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
a3828db0 16338 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
a3828db0 16344 ac_header_compiler=yes
bec39cab
AC
16345else
16346 echo "$as_me: failed program was:" >&5
16347sed 's/^/| /' conftest.$ac_ext >&5
16348
b4e70030 16349ac_header_compiler=no
bec39cab 16350fi
a3828db0 16351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16353echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
16354
16355# Is the header present?
b4e70030
JB
16356echo "$as_me:$LINENO: checking $ac_header presence" >&5
16357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
16358cat >conftest.$ac_ext <<_ACEOF
16359/* confdefs.h. */
16360_ACEOF
16361cat confdefs.h >>conftest.$ac_ext
16362cat >>conftest.$ac_ext <<_ACEOF
16363/* end confdefs.h. */
16364#include <$ac_header>
16365_ACEOF
16366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } >/dev/null; then
16374 if test -s conftest.err; then
16375 ac_cpp_err=$ac_c_preproc_warn_flag
16376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16377 else
16378 ac_cpp_err=
16379 fi
16380else
16381 ac_cpp_err=yes
16382fi
16383if test -z "$ac_cpp_err"; then
16384 ac_header_preproc=yes
16385else
16386 echo "$as_me: failed program was:" >&5
16387sed 's/^/| /' conftest.$ac_ext >&5
16388
16389 ac_header_preproc=no
16390fi
16391rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16393echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
16394
16395# So? What about this header?
16396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16397 yes:no: )
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16401echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16402 ac_header_preproc=yes
16403 ;;
16404 no:yes:* )
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16406echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16408echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16410echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16412echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16416echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16417 (
16418 cat <<\_ASBOX
16419## ------------------------------------------ ##
16420## Report this to the AC_PACKAGE_NAME lists. ##
16421## ------------------------------------------ ##
16422_ASBOX
16423 ) |
16424 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
16425 ;;
16426esac
b4e70030
JB
16427echo "$as_me:$LINENO: checking for $ac_header" >&5
16428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16429if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16431else
16432 eval "$as_ac_Header=\$ac_header_preproc"
16433fi
b4e70030
JB
16434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 16436
bec39cab 16437fi
a3828db0 16438if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 16439 cat >>confdefs.h <<_ACEOF
a3828db0 16440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 16441_ACEOF
14abd0fb 16442
14abd0fb 16443fi
a3828db0 16444
14abd0fb
MK
16445done
16446
bec39cab 16447
a3828db0
MK
16448
16449for ac_func in fork vfork
14abd0fb 16450do
bec39cab 16451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16452echo "$as_me:$LINENO: checking for $ac_func" >&5
16453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16454if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16456else
16457 cat >conftest.$ac_ext <<_ACEOF
16458/* confdefs.h. */
16459_ACEOF
16460cat confdefs.h >>conftest.$ac_ext
16461cat >>conftest.$ac_ext <<_ACEOF
16462/* end confdefs.h. */
16463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16465#define $ac_func innocuous_$ac_func
16466
14abd0fb 16467/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16468 which can conflict with char $ac_func (); below.
16469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16470 <limits.h> exists even on freestanding compilers. */
16471
16472#ifdef __STDC__
16473# include <limits.h>
16474#else
16475# include <assert.h>
16476#endif
14abd0fb 16477
bec39cab 16478#undef $ac_func
14abd0fb 16479
b4e70030 16480/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16481#ifdef __cplusplus
16482extern "C"
b4e70030 16483{
bec39cab 16484#endif
b4e70030
JB
16485/* We use char because int might match the return type of a gcc2
16486 builtin and then its argument prototype would still apply. */
bec39cab 16487char $ac_func ();
14abd0fb
MK
16488/* The GNU C library defines this for functions which it implements
16489 to always fail with ENOSYS. Some functions are actually named
16490 something starting with __ and the normal name is an alias. */
b4e70030 16491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 16492choke me
b4e70030
JB
16493#else
16494char (*f) () = $ac_func;
16495#endif
16496#ifdef __cplusplus
16497}
14abd0fb
MK
16498#endif
16499
bec39cab
AC
16500int
16501main ()
16502{
b4e70030 16503return f != $ac_func;
bec39cab
AC
16504 ;
16505 return 0;
16506}
16507_ACEOF
16508rm -f conftest.$ac_objext conftest$ac_exeext
16509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16510 (eval $ac_link) 2>conftest.er1
16511 ac_status=$?
16512 grep -v '^ *+' conftest.er1 >conftest.err
16513 rm -f conftest.er1
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
b4e70030
JB
16517 { ac_try='test -z "$ac_c_werror_flag"
16518 || test ! -s conftest.err'
bec39cab
AC
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest$ac_exeext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16527 ac_status=$?
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 eval "$as_ac_var=yes"
16531else
16532 echo "$as_me: failed program was:" >&5
16533sed 's/^/| /' conftest.$ac_ext >&5
16534
b4e70030 16535eval "$as_ac_var=no"
bec39cab
AC
16536fi
16537rm -f conftest.err conftest.$ac_objext \
16538 conftest$ac_exeext conftest.$ac_ext
16539fi
b4e70030
JB
16540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16541echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16542if test `eval echo '${'$as_ac_var'}'` = yes; then
16543 cat >>confdefs.h <<_ACEOF
16544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16545_ACEOF
7be570e7 16546
7be570e7
JM
16547fi
16548done
16549
a3828db0 16550if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
16551 echo "$as_me:$LINENO: checking for working fork" >&5
16552echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
16553if test "${ac_cv_func_fork_works+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555else
16556 if test "$cross_compiling" = yes; then
16557 ac_cv_func_fork_works=cross
16558else
16559 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
16560/* By Ruediger Kuhlmann. */
16561 #include <sys/types.h>
16562 #if HAVE_UNISTD_H
16563 # include <unistd.h>
16564 #endif
16565 /* Some systems only have a dummy stub for fork() */
16566 int main ()
16567 {
16568 if (fork() < 0)
16569 exit (1);
16570 exit (0);
16571 }
a3828db0
MK
16572_ACEOF
16573rm -f conftest$ac_exeext
16574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16575 (eval $ac_link) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 ac_cv_func_fork_works=yes
16585else
16586 echo "$as_me: program exited with status $ac_status" >&5
16587echo "$as_me: failed program was:" >&5
16588sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16589
a3828db0
MK
16590( exit $ac_status )
16591ac_cv_func_fork_works=no
16592fi
b4e70030 16593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16594fi
16595fi
b4e70030
JB
16596echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16597echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
16598
16599else
16600 ac_cv_func_fork_works=$ac_cv_func_fork
16601fi
16602if test "x$ac_cv_func_fork_works" = xcross; then
16603 case $host in
16604 *-*-amigaos* | *-*-msdosdjgpp*)
16605 # Override, as these systems have only a dummy fork() stub
16606 ac_cv_func_fork_works=no
16607 ;;
16608 *)
16609 ac_cv_func_fork_works=yes
16610 ;;
16611 esac
16612 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16613echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16614fi
16615ac_cv_func_vfork_works=$ac_cv_func_vfork
16616if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
16617 echo "$as_me:$LINENO: checking for working vfork" >&5
16618echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 16619if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 16620 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16621else
16622 if test "$cross_compiling" = yes; then
16623 ac_cv_func_vfork_works=cross
bec39cab
AC
16624else
16625 cat >conftest.$ac_ext <<_ACEOF
16626/* confdefs.h. */
16627_ACEOF
16628cat confdefs.h >>conftest.$ac_ext
16629cat >>conftest.$ac_ext <<_ACEOF
16630/* end confdefs.h. */
a3828db0 16631/* Thanks to Paul Eggert for this test. */
b4e70030
JB
16632#include <stdio.h>
16633#include <stdlib.h>
16634#include <sys/types.h>
16635#include <sys/stat.h>
a3828db0 16636#include <sys/wait.h>
b4e70030
JB
16637#if HAVE_UNISTD_H
16638# include <unistd.h>
16639#endif
a3828db0
MK
16640#if HAVE_VFORK_H
16641# include <vfork.h>
bec39cab 16642#endif
a3828db0
MK
16643/* On some sparc systems, changes by the child to local and incoming
16644 argument registers are propagated back to the parent. The compiler
16645 is told about this with #include <vfork.h>, but some compilers
16646 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16647 static variable whose address is put into a register that is
16648 clobbered by the vfork. */
16649static void
bec39cab 16650#ifdef __cplusplus
a3828db0
MK
16651sparc_address_test (int arg)
16652# else
16653sparc_address_test (arg) int arg;
c906108c 16654#endif
a3828db0
MK
16655{
16656 static pid_t child;
16657 if (!child) {
16658 child = vfork ();
16659 if (child < 0) {
16660 perror ("vfork");
16661 _exit(2);
16662 }
16663 if (!child) {
16664 arg = getpid();
16665 write(-1, "", 0);
16666 _exit (arg);
16667 }
16668 }
16669}
97bf5e38 16670
bec39cab
AC
16671int
16672main ()
16673{
a3828db0
MK
16674 pid_t parent = getpid ();
16675 pid_t child;
16676
16677 sparc_address_test (0);
16678
16679 child = vfork ();
16680
16681 if (child == 0) {
16682 /* Here is another test for sparc vfork register problems. This
16683 test uses lots of local variables, at least as many local
16684 variables as main has allocated so far including compiler
16685 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16686 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16687 reuse the register of parent for one of the local variables,
16688 since it will think that parent can't possibly be used any more
16689 in this routine. Assigning to the local variable will thus
16690 munge parent in the parent process. */
16691 pid_t
16692 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16693 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16694 /* Convince the compiler that p..p7 are live; otherwise, it might
16695 use the same hardware register for all 8 local variables. */
16696 if (p != p1 || p != p2 || p != p3 || p != p4
16697 || p != p5 || p != p6 || p != p7)
16698 _exit(1);
16699
16700 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16701 from child file descriptors. If the child closes a descriptor
16702 before it execs or exits, this munges the parent's descriptor
16703 as well. Test for this by closing stdout in the child. */
16704 _exit(close(fileno(stdout)) != 0);
16705 } else {
16706 int status;
16707 struct stat st;
16708
16709 while (wait(&status) != child)
16710 ;
b4e70030 16711 exit(
a3828db0
MK
16712 /* Was there some problem with vforking? */
16713 child < 0
16714
16715 /* Did the child fail? (This shouldn't happen.) */
16716 || status
16717
16718 /* Did the vfork/compiler bug occur? */
16719 || parent != getpid()
16720
16721 /* Did the file descriptor bug occur? */
16722 || fstat(fileno(stdout), &st) != 0
16723 );
16724 }
bec39cab
AC
16725}
16726_ACEOF
a3828db0 16727rm -f conftest$ac_exeext
bec39cab 16728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16729 (eval $ac_link) 2>&5
bec39cab
AC
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
a3828db0
MK
16738 ac_cv_func_vfork_works=yes
16739else
16740 echo "$as_me: program exited with status $ac_status" >&5
16741echo "$as_me: failed program was:" >&5
16742sed 's/^/| /' conftest.$ac_ext >&5
16743
16744( exit $ac_status )
16745ac_cv_func_vfork_works=no
16746fi
b4e70030 16747rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16748fi
16749fi
b4e70030
JB
16750echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16751echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
16752
16753fi;
16754if test "x$ac_cv_func_fork_works" = xcross; then
16755 ac_cv_func_vfork_works=$ac_cv_func_vfork
16756 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16757echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16758fi
16759
16760if test "x$ac_cv_func_vfork_works" = xyes; then
16761
16762cat >>confdefs.h <<\_ACEOF
16763#define HAVE_WORKING_VFORK 1
16764_ACEOF
16765
bec39cab 16766else
bec39cab 16767
a3828db0
MK
16768cat >>confdefs.h <<\_ACEOF
16769#define vfork fork
16770_ACEOF
16771
bec39cab 16772fi
a3828db0
MK
16773if test "x$ac_cv_func_fork_works" = xyes; then
16774
16775cat >>confdefs.h <<\_ACEOF
16776#define HAVE_WORKING_FORK 1
bec39cab 16777_ACEOF
c906108c 16778
c906108c
SS
16779fi
16780
bec39cab
AC
16781
16782
a3828db0 16783for ac_func in canonicalize_file_name realpath
97bf5e38 16784do
bec39cab 16785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 16786echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
16787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16788if eval "test \"\${$as_ac_var+set}\" = set"; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790else
16791 cat >conftest.$ac_ext <<_ACEOF
16792/* confdefs.h. */
16793_ACEOF
16794cat confdefs.h >>conftest.$ac_ext
16795cat >>conftest.$ac_ext <<_ACEOF
16796/* end confdefs.h. */
16797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16799#define $ac_func innocuous_$ac_func
16800
16801/* System header to define __stub macros and hopefully few prototypes,
16802 which can conflict with char $ac_func (); below.
16803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16804 <limits.h> exists even on freestanding compilers. */
16805
16806#ifdef __STDC__
16807# include <limits.h>
16808#else
16809# include <assert.h>
16810#endif
16811
16812#undef $ac_func
16813
16814/* Override any gcc2 internal prototype to avoid an error. */
16815#ifdef __cplusplus
16816extern "C"
16817{
16818#endif
16819/* We use char because int might match the return type of a gcc2
16820 builtin and then its argument prototype would still apply. */
16821char $ac_func ();
16822/* The GNU C library defines this for functions which it implements
16823 to always fail with ENOSYS. Some functions are actually named
16824 something starting with __ and the normal name is an alias. */
16825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16826choke me
16827#else
16828char (*f) () = $ac_func;
16829#endif
16830#ifdef __cplusplus
16831}
16832#endif
16833
16834int
16835main ()
16836{
16837return f != $ac_func;
16838 ;
16839 return 0;
16840}
16841_ACEOF
16842rm -f conftest.$ac_objext conftest$ac_exeext
16843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16844 (eval $ac_link) 2>conftest.er1
16845 ac_status=$?
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
16851 { ac_try='test -z "$ac_c_werror_flag"
16852 || test ! -s conftest.err'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest$ac_exeext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 eval "$as_ac_var=yes"
16865else
16866 echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
16869eval "$as_ac_var=no"
16870fi
16871rm -f conftest.err conftest.$ac_objext \
16872 conftest$ac_exeext conftest.$ac_ext
16873fi
16874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16875echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16876if test `eval echo '${'$as_ac_var'}'` = yes; then
16877 cat >>confdefs.h <<_ACEOF
16878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16879_ACEOF
16880
16881fi
16882done
16883
16884
16885for ac_func in getrusage
16886do
16887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16888echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
16889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16890if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892else
16893 cat >conftest.$ac_ext <<_ACEOF
16894/* confdefs.h. */
16895_ACEOF
16896cat confdefs.h >>conftest.$ac_ext
16897cat >>conftest.$ac_ext <<_ACEOF
16898/* end confdefs.h. */
16899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16901#define $ac_func innocuous_$ac_func
16902
d3ea6809
MM
16903/* System header to define __stub macros and hopefully few prototypes,
16904 which can conflict with char $ac_func (); below.
16905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16906 <limits.h> exists even on freestanding compilers. */
16907
16908#ifdef __STDC__
16909# include <limits.h>
16910#else
16911# include <assert.h>
16912#endif
16913
16914#undef $ac_func
16915
b4e70030 16916/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
16917#ifdef __cplusplus
16918extern "C"
b4e70030 16919{
d3ea6809 16920#endif
b4e70030
JB
16921/* We use char because int might match the return type of a gcc2
16922 builtin and then its argument prototype would still apply. */
d3ea6809
MM
16923char $ac_func ();
16924/* The GNU C library defines this for functions which it implements
16925 to always fail with ENOSYS. Some functions are actually named
16926 something starting with __ and the normal name is an alias. */
b4e70030 16927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 16928choke me
b4e70030
JB
16929#else
16930char (*f) () = $ac_func;
16931#endif
16932#ifdef __cplusplus
16933}
d3ea6809
MM
16934#endif
16935
16936int
16937main ()
16938{
b4e70030 16939return f != $ac_func;
d3ea6809
MM
16940 ;
16941 return 0;
16942}
16943_ACEOF
16944rm -f conftest.$ac_objext conftest$ac_exeext
16945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16946 (eval $ac_link) 2>conftest.er1
16947 ac_status=$?
16948 grep -v '^ *+' conftest.er1 >conftest.err
16949 rm -f conftest.er1
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
b4e70030
JB
16953 { ac_try='test -z "$ac_c_werror_flag"
16954 || test ! -s conftest.err'
d3ea6809
MM
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest$ac_exeext'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 eval "$as_ac_var=yes"
16967else
16968 echo "$as_me: failed program was:" >&5
16969sed 's/^/| /' conftest.$ac_ext >&5
16970
b4e70030 16971eval "$as_ac_var=no"
d3ea6809
MM
16972fi
16973rm -f conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975fi
b4e70030
JB
16976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
16978if test `eval echo '${'$as_ac_var'}'` = yes; then
16979 cat >>confdefs.h <<_ACEOF
16980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16981_ACEOF
16982
16983fi
16984done
16985
16986
16987
16988for ac_func in getuid getgid
16989do
16990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16991echo "$as_me:$LINENO: checking for $ac_func" >&5
16992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16993if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995else
16996 cat >conftest.$ac_ext <<_ACEOF
16997/* confdefs.h. */
16998_ACEOF
16999cat confdefs.h >>conftest.$ac_ext
17000cat >>conftest.$ac_ext <<_ACEOF
17001/* end confdefs.h. */
17002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17004#define $ac_func innocuous_$ac_func
17005
97bf5e38 17006/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17007 which can conflict with char $ac_func (); below.
17008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17009 <limits.h> exists even on freestanding compilers. */
c906108c 17010
bec39cab
AC
17011#ifdef __STDC__
17012# include <limits.h>
17013#else
17014# include <assert.h>
17015#endif
97bf5e38 17016
bec39cab
AC
17017#undef $ac_func
17018
b4e70030 17019/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17020#ifdef __cplusplus
17021extern "C"
b4e70030 17022{
bec39cab 17023#endif
b4e70030
JB
17024/* We use char because int might match the return type of a gcc2
17025 builtin and then its argument prototype would still apply. */
bec39cab 17026char $ac_func ();
97bf5e38
MK
17027/* The GNU C library defines this for functions which it implements
17028 to always fail with ENOSYS. Some functions are actually named
17029 something starting with __ and the normal name is an alias. */
b4e70030 17030#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17031choke me
b4e70030
JB
17032#else
17033char (*f) () = $ac_func;
17034#endif
17035#ifdef __cplusplus
17036}
c906108c 17037#endif
97bf5e38 17038
bec39cab
AC
17039int
17040main ()
17041{
b4e70030 17042return f != $ac_func;
bec39cab
AC
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047rm -f conftest.$ac_objext conftest$ac_exeext
17048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17049 (eval $ac_link) 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
b4e70030
JB
17056 { ac_try='test -z "$ac_c_werror_flag"
17057 || test ! -s conftest.err'
bec39cab
AC
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; } &&
17063 { ac_try='test -s conftest$ac_exeext'
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; }; then
17069 eval "$as_ac_var=yes"
17070else
17071 echo "$as_me: failed program was:" >&5
17072sed 's/^/| /' conftest.$ac_ext >&5
17073
b4e70030 17074eval "$as_ac_var=no"
bec39cab
AC
17075fi
17076rm -f conftest.err conftest.$ac_objext \
17077 conftest$ac_exeext conftest.$ac_ext
17078fi
b4e70030
JB
17079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17080echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17081if test `eval echo '${'$as_ac_var'}'` = yes; then
17082 cat >>confdefs.h <<_ACEOF
17083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17084_ACEOF
c906108c 17085
c906108c 17086fi
97bf5e38 17087done
c906108c 17088
bec39cab 17089
a3828db0 17090for ac_func in poll
97bf5e38 17091do
bec39cab 17092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17093echo "$as_me:$LINENO: checking for $ac_func" >&5
17094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17095if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17097else
17098 cat >conftest.$ac_ext <<_ACEOF
17099/* confdefs.h. */
17100_ACEOF
17101cat confdefs.h >>conftest.$ac_ext
17102cat >>conftest.$ac_ext <<_ACEOF
17103/* end confdefs.h. */
17104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17106#define $ac_func innocuous_$ac_func
17107
97bf5e38 17108/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17109 which can conflict with char $ac_func (); below.
17110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17111 <limits.h> exists even on freestanding compilers. */
17112
17113#ifdef __STDC__
17114# include <limits.h>
17115#else
17116# include <assert.h>
17117#endif
c906108c 17118
bec39cab 17119#undef $ac_func
97bf5e38 17120
b4e70030 17121/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17122#ifdef __cplusplus
17123extern "C"
b4e70030 17124{
bec39cab 17125#endif
b4e70030
JB
17126/* We use char because int might match the return type of a gcc2
17127 builtin and then its argument prototype would still apply. */
bec39cab 17128char $ac_func ();
97bf5e38
MK
17129/* The GNU C library defines this for functions which it implements
17130 to always fail with ENOSYS. Some functions are actually named
17131 something starting with __ and the normal name is an alias. */
b4e70030 17132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17133choke me
b4e70030
JB
17134#else
17135char (*f) () = $ac_func;
17136#endif
17137#ifdef __cplusplus
17138}
c906108c 17139#endif
97bf5e38 17140
bec39cab
AC
17141int
17142main ()
17143{
b4e70030 17144return f != $ac_func;
bec39cab
AC
17145 ;
17146 return 0;
17147}
17148_ACEOF
17149rm -f conftest.$ac_objext conftest$ac_exeext
17150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151 (eval $ac_link) 2>conftest.er1
17152 ac_status=$?
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
b4e70030
JB
17158 { ac_try='test -z "$ac_c_werror_flag"
17159 || test ! -s conftest.err'
bec39cab
AC
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest$ac_exeext'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 eval "$as_ac_var=yes"
17172else
17173 echo "$as_me: failed program was:" >&5
17174sed 's/^/| /' conftest.$ac_ext >&5
17175
b4e70030 17176eval "$as_ac_var=no"
bec39cab
AC
17177fi
17178rm -f conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17180fi
b4e70030
JB
17181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17183if test `eval echo '${'$as_ac_var'}'` = yes; then
17184 cat >>confdefs.h <<_ACEOF
17185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17186_ACEOF
c906108c 17187
c906108c 17188fi
97bf5e38 17189done
c906108c 17190
bec39cab 17191
a3828db0 17192for ac_func in pread64
97bf5e38 17193do
bec39cab 17194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17195echo "$as_me:$LINENO: checking for $ac_func" >&5
17196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17197if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199else
17200 cat >conftest.$ac_ext <<_ACEOF
17201/* confdefs.h. */
17202_ACEOF
17203cat confdefs.h >>conftest.$ac_ext
17204cat >>conftest.$ac_ext <<_ACEOF
17205/* end confdefs.h. */
17206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17208#define $ac_func innocuous_$ac_func
17209
97bf5e38 17210/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17211 which can conflict with char $ac_func (); below.
17212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17213 <limits.h> exists even on freestanding compilers. */
17214
17215#ifdef __STDC__
17216# include <limits.h>
17217#else
17218# include <assert.h>
17219#endif
c906108c 17220
bec39cab 17221#undef $ac_func
97bf5e38 17222
b4e70030 17223/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17224#ifdef __cplusplus
17225extern "C"
b4e70030 17226{
bec39cab 17227#endif
b4e70030
JB
17228/* We use char because int might match the return type of a gcc2
17229 builtin and then its argument prototype would still apply. */
bec39cab 17230char $ac_func ();
97bf5e38
MK
17231/* The GNU C library defines this for functions which it implements
17232 to always fail with ENOSYS. Some functions are actually named
17233 something starting with __ and the normal name is an alias. */
b4e70030 17234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17235choke me
b4e70030
JB
17236#else
17237char (*f) () = $ac_func;
17238#endif
17239#ifdef __cplusplus
17240}
c906108c 17241#endif
97bf5e38 17242
bec39cab
AC
17243int
17244main ()
17245{
b4e70030 17246return f != $ac_func;
bec39cab
AC
17247 ;
17248 return 0;
17249}
17250_ACEOF
17251rm -f conftest.$ac_objext conftest$ac_exeext
17252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253 (eval $ac_link) 2>conftest.er1
17254 ac_status=$?
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
b4e70030
JB
17260 { ac_try='test -z "$ac_c_werror_flag"
17261 || test ! -s conftest.err'
bec39cab
AC
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest$ac_exeext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 eval "$as_ac_var=yes"
17274else
17275 echo "$as_me: failed program was:" >&5
17276sed 's/^/| /' conftest.$ac_ext >&5
17277
b4e70030 17278eval "$as_ac_var=no"
bec39cab
AC
17279fi
17280rm -f conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17282fi
b4e70030
JB
17283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17285if test `eval echo '${'$as_ac_var'}'` = yes; then
17286 cat >>confdefs.h <<_ACEOF
17287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17288_ACEOF
c906108c 17289
c906108c 17290fi
97bf5e38 17291done
c906108c 17292
bec39cab 17293
a3828db0 17294for ac_func in sbrk
b757528f 17295do
bec39cab 17296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17297echo "$as_me:$LINENO: checking for $ac_func" >&5
17298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17299if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17301else
17302 cat >conftest.$ac_ext <<_ACEOF
17303/* confdefs.h. */
17304_ACEOF
17305cat confdefs.h >>conftest.$ac_ext
17306cat >>conftest.$ac_ext <<_ACEOF
17307/* end confdefs.h. */
17308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17310#define $ac_func innocuous_$ac_func
17311
b757528f 17312/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17313 which can conflict with char $ac_func (); below.
17314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17315 <limits.h> exists even on freestanding compilers. */
17316
17317#ifdef __STDC__
17318# include <limits.h>
17319#else
17320# include <assert.h>
17321#endif
b757528f 17322
bec39cab 17323#undef $ac_func
b757528f 17324
b4e70030 17325/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17326#ifdef __cplusplus
17327extern "C"
b4e70030 17328{
bec39cab 17329#endif
b4e70030
JB
17330/* We use char because int might match the return type of a gcc2
17331 builtin and then its argument prototype would still apply. */
bec39cab 17332char $ac_func ();
b757528f
JJ
17333/* The GNU C library defines this for functions which it implements
17334 to always fail with ENOSYS. Some functions are actually named
17335 something starting with __ and the normal name is an alias. */
b4e70030 17336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 17337choke me
b4e70030
JB
17338#else
17339char (*f) () = $ac_func;
17340#endif
17341#ifdef __cplusplus
17342}
b757528f
JJ
17343#endif
17344
bec39cab
AC
17345int
17346main ()
17347{
b4e70030 17348return f != $ac_func;
bec39cab
AC
17349 ;
17350 return 0;
17351}
17352_ACEOF
17353rm -f conftest.$ac_objext conftest$ac_exeext
17354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17355 (eval $ac_link) 2>conftest.er1
17356 ac_status=$?
17357 grep -v '^ *+' conftest.er1 >conftest.err
17358 rm -f conftest.er1
17359 cat conftest.err >&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
b4e70030
JB
17362 { ac_try='test -z "$ac_c_werror_flag"
17363 || test ! -s conftest.err'
bec39cab
AC
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; } &&
17369 { ac_try='test -s conftest$ac_exeext'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 eval "$as_ac_var=yes"
17376else
17377 echo "$as_me: failed program was:" >&5
17378sed 's/^/| /' conftest.$ac_ext >&5
17379
b4e70030 17380eval "$as_ac_var=no"
bec39cab
AC
17381fi
17382rm -f conftest.err conftest.$ac_objext \
17383 conftest$ac_exeext conftest.$ac_ext
17384fi
b4e70030
JB
17385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17387if test `eval echo '${'$as_ac_var'}'` = yes; then
17388 cat >>confdefs.h <<_ACEOF
17389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17390_ACEOF
b757528f 17391
b757528f
JJ
17392fi
17393done
17394
bec39cab 17395
a3828db0
MK
17396
17397for ac_func in setpgid setpgrp
bcb3dc3d 17398do
bec39cab 17399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17400echo "$as_me:$LINENO: checking for $ac_func" >&5
17401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17402if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17404else
17405 cat >conftest.$ac_ext <<_ACEOF
17406/* confdefs.h. */
17407_ACEOF
17408cat confdefs.h >>conftest.$ac_ext
17409cat >>conftest.$ac_ext <<_ACEOF
17410/* end confdefs.h. */
17411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17413#define $ac_func innocuous_$ac_func
17414
bcb3dc3d 17415/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17416 which can conflict with char $ac_func (); below.
17417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17418 <limits.h> exists even on freestanding compilers. */
17419
17420#ifdef __STDC__
17421# include <limits.h>
17422#else
17423# include <assert.h>
17424#endif
bcb3dc3d 17425
bec39cab 17426#undef $ac_func
bcb3dc3d 17427
b4e70030 17428/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17429#ifdef __cplusplus
17430extern "C"
b4e70030 17431{
bec39cab 17432#endif
b4e70030
JB
17433/* We use char because int might match the return type of a gcc2
17434 builtin and then its argument prototype would still apply. */
bec39cab 17435char $ac_func ();
bcb3dc3d
MK
17436/* The GNU C library defines this for functions which it implements
17437 to always fail with ENOSYS. Some functions are actually named
17438 something starting with __ and the normal name is an alias. */
b4e70030 17439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 17440choke me
b4e70030
JB
17441#else
17442char (*f) () = $ac_func;
17443#endif
17444#ifdef __cplusplus
17445}
bcb3dc3d
MK
17446#endif
17447
bec39cab
AC
17448int
17449main ()
17450{
b4e70030 17451return f != $ac_func;
bec39cab
AC
17452 ;
17453 return 0;
17454}
17455_ACEOF
17456rm -f conftest.$ac_objext conftest$ac_exeext
17457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17458 (eval $ac_link) 2>conftest.er1
17459 ac_status=$?
17460 grep -v '^ *+' conftest.er1 >conftest.err
17461 rm -f conftest.er1
17462 cat conftest.err >&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } &&
b4e70030
JB
17465 { ac_try='test -z "$ac_c_werror_flag"
17466 || test ! -s conftest.err'
bec39cab
AC
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; } &&
17472 { ac_try='test -s conftest$ac_exeext'
17473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474 (eval $ac_try) 2>&5
17475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; }; then
17478 eval "$as_ac_var=yes"
17479else
17480 echo "$as_me: failed program was:" >&5
17481sed 's/^/| /' conftest.$ac_ext >&5
17482
b4e70030 17483eval "$as_ac_var=no"
bec39cab
AC
17484fi
17485rm -f conftest.err conftest.$ac_objext \
17486 conftest$ac_exeext conftest.$ac_ext
17487fi
b4e70030
JB
17488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17490if test `eval echo '${'$as_ac_var'}'` = yes; then
17491 cat >>confdefs.h <<_ACEOF
17492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17493_ACEOF
bcb3dc3d 17494
bcb3dc3d
MK
17495fi
17496done
17497
bec39cab 17498
a3828db0
MK
17499
17500
17501for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 17502do
bec39cab 17503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17504echo "$as_me:$LINENO: checking for $ac_func" >&5
17505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17506if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17508else
17509 cat >conftest.$ac_ext <<_ACEOF
17510/* confdefs.h. */
17511_ACEOF
17512cat confdefs.h >>conftest.$ac_ext
17513cat >>conftest.$ac_ext <<_ACEOF
17514/* end confdefs.h. */
17515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17517#define $ac_func innocuous_$ac_func
17518
8b9cf735 17519/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17520 which can conflict with char $ac_func (); below.
17521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17522 <limits.h> exists even on freestanding compilers. */
17523
17524#ifdef __STDC__
17525# include <limits.h>
17526#else
17527# include <assert.h>
17528#endif
8b9cf735 17529
bec39cab 17530#undef $ac_func
8b9cf735 17531
b4e70030 17532/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17533#ifdef __cplusplus
17534extern "C"
b4e70030 17535{
a3828db0 17536#endif
b4e70030
JB
17537/* We use char because int might match the return type of a gcc2
17538 builtin and then its argument prototype would still apply. */
a3828db0
MK
17539char $ac_func ();
17540/* The GNU C library defines this for functions which it implements
17541 to always fail with ENOSYS. Some functions are actually named
17542 something starting with __ and the normal name is an alias. */
b4e70030 17543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17544choke me
b4e70030
JB
17545#else
17546char (*f) () = $ac_func;
17547#endif
17548#ifdef __cplusplus
17549}
a3828db0
MK
17550#endif
17551
bec39cab
AC
17552int
17553main ()
17554{
b4e70030 17555return f != $ac_func;
bec39cab
AC
17556 ;
17557 return 0;
17558}
17559_ACEOF
a3828db0
MK
17560rm -f conftest.$ac_objext conftest$ac_exeext
17561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17563 ac_status=$?
17564 grep -v '^ *+' conftest.er1 >conftest.err
17565 rm -f conftest.er1
17566 cat conftest.err >&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
b4e70030
JB
17569 { ac_try='test -z "$ac_c_werror_flag"
17570 || test ! -s conftest.err'
bec39cab
AC
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
a3828db0 17576 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
a3828db0 17582 eval "$as_ac_var=yes"
086ec9eb 17583else
bec39cab
AC
17584 echo "$as_me: failed program was:" >&5
17585sed 's/^/| /' conftest.$ac_ext >&5
17586
b4e70030 17587eval "$as_ac_var=no"
a3828db0
MK
17588fi
17589rm -f conftest.err conftest.$ac_objext \
17590 conftest$ac_exeext conftest.$ac_ext
17591fi
b4e70030
JB
17592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17594if test `eval echo '${'$as_ac_var'}'` = yes; then
17595 cat >>confdefs.h <<_ACEOF
17596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17597_ACEOF
17598
086ec9eb 17599fi
a3828db0
MK
17600done
17601
17602
17603for ac_func in socketpair
17604do
17605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17606echo "$as_me:$LINENO: checking for $ac_func" >&5
17607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17608if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17610else
17611 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17612/* confdefs.h. */
17613_ACEOF
17614cat confdefs.h >>conftest.$ac_ext
17615cat >>conftest.$ac_ext <<_ACEOF
17616/* end confdefs.h. */
a3828db0
MK
17617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17619#define $ac_func innocuous_$ac_func
17620
17621/* System header to define __stub macros and hopefully few prototypes,
17622 which can conflict with char $ac_func (); below.
17623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17624 <limits.h> exists even on freestanding compilers. */
17625
17626#ifdef __STDC__
17627# include <limits.h>
17628#else
17629# include <assert.h>
17630#endif
17631
17632#undef $ac_func
17633
b4e70030 17634/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17635#ifdef __cplusplus
17636extern "C"
b4e70030 17637{
a3828db0 17638#endif
b4e70030
JB
17639/* We use char because int might match the return type of a gcc2
17640 builtin and then its argument prototype would still apply. */
a3828db0
MK
17641char $ac_func ();
17642/* The GNU C library defines this for functions which it implements
17643 to always fail with ENOSYS. Some functions are actually named
17644 something starting with __ and the normal name is an alias. */
b4e70030 17645#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17646choke me
b4e70030
JB
17647#else
17648char (*f) () = $ac_func;
17649#endif
17650#ifdef __cplusplus
17651}
a3828db0
MK
17652#endif
17653
bec39cab
AC
17654int
17655main ()
17656{
b4e70030 17657return f != $ac_func;
bec39cab
AC
17658 ;
17659 return 0;
17660}
17661_ACEOF
a3828db0
MK
17662rm -f conftest.$ac_objext conftest$ac_exeext
17663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17664 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17665 ac_status=$?
17666 grep -v '^ *+' conftest.er1 >conftest.err
17667 rm -f conftest.er1
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
b4e70030
JB
17671 { ac_try='test -z "$ac_c_werror_flag"
17672 || test ! -s conftest.err'
bec39cab
AC
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; } &&
a3828db0 17678 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
a3828db0 17684 eval "$as_ac_var=yes"
086ec9eb 17685else
bec39cab
AC
17686 echo "$as_me: failed program was:" >&5
17687sed 's/^/| /' conftest.$ac_ext >&5
17688
b4e70030 17689eval "$as_ac_var=no"
086ec9eb 17690fi
a3828db0
MK
17691rm -f conftest.err conftest.$ac_objext \
17692 conftest$ac_exeext conftest.$ac_ext
086ec9eb 17693fi
b4e70030
JB
17694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17696if test `eval echo '${'$as_ac_var'}'` = yes; then
17697 cat >>confdefs.h <<_ACEOF
17698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17699_ACEOF
086ec9eb
MK
17700
17701fi
a3828db0 17702done
086ec9eb 17703
a3828db0
MK
17704
17705for ac_func in syscall
17706do
17707as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17708echo "$as_me:$LINENO: checking for $ac_func" >&5
17709echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17710if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17711 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
17712else
17713 cat >conftest.$ac_ext <<_ACEOF
17714/* confdefs.h. */
17715_ACEOF
17716cat confdefs.h >>conftest.$ac_ext
17717cat >>conftest.$ac_ext <<_ACEOF
17718/* end confdefs.h. */
a3828db0
MK
17719/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17721#define $ac_func innocuous_$ac_func
17722
17723/* System header to define __stub macros and hopefully few prototypes,
17724 which can conflict with char $ac_func (); below.
17725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17726 <limits.h> exists even on freestanding compilers. */
17727
17728#ifdef __STDC__
17729# include <limits.h>
17730#else
17731# include <assert.h>
17732#endif
17733
17734#undef $ac_func
17735
b4e70030 17736/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17737#ifdef __cplusplus
17738extern "C"
b4e70030 17739{
a3828db0 17740#endif
b4e70030
JB
17741/* We use char because int might match the return type of a gcc2
17742 builtin and then its argument prototype would still apply. */
a3828db0
MK
17743char $ac_func ();
17744/* The GNU C library defines this for functions which it implements
17745 to always fail with ENOSYS. Some functions are actually named
17746 something starting with __ and the normal name is an alias. */
b4e70030 17747#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17748choke me
b4e70030
JB
17749#else
17750char (*f) () = $ac_func;
17751#endif
17752#ifdef __cplusplus
17753}
c906108c 17754#endif
97bf5e38 17755
bec39cab
AC
17756int
17757main ()
97bf5e38 17758{
b4e70030 17759return f != $ac_func;
bec39cab
AC
17760 ;
17761 return 0;
97bf5e38 17762}
bec39cab 17763_ACEOF
a3828db0 17764rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 17765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17766 (eval $ac_link) 2>conftest.er1
bec39cab 17767 ac_status=$?
a3828db0
MK
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
bec39cab 17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17772 (exit $ac_status); } &&
b4e70030
JB
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
a3828db0
MK
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
a3828db0 17786 eval "$as_ac_var=yes"
c906108c 17787else
a3828db0 17788 echo "$as_me: failed program was:" >&5
bec39cab
AC
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
b4e70030 17791eval "$as_ac_var=no"
97bf5e38 17792fi
a3828db0
MK
17793rm -f conftest.err conftest.$ac_objext \
17794 conftest$ac_exeext conftest.$ac_ext
17795fi
b4e70030
JB
17796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17798if test `eval echo '${'$as_ac_var'}'` = yes; then
17799 cat >>confdefs.h <<_ACEOF
17800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17801_ACEOF
c906108c
SS
17802
17803fi
a3828db0 17804done
c906108c 17805
a3828db0
MK
17806
17807for ac_func in ttrace
17808do
17809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17810echo "$as_me:$LINENO: checking for $ac_func" >&5
17811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17812if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17813 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 17814else
bec39cab
AC
17815 cat >conftest.$ac_ext <<_ACEOF
17816/* confdefs.h. */
17817_ACEOF
17818cat confdefs.h >>conftest.$ac_ext
17819cat >>conftest.$ac_ext <<_ACEOF
17820/* end confdefs.h. */
a3828db0
MK
17821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17823#define $ac_func innocuous_$ac_func
b83266a0 17824
a3828db0
MK
17825/* System header to define __stub macros and hopefully few prototypes,
17826 which can conflict with char $ac_func (); below.
17827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17828 <limits.h> exists even on freestanding compilers. */
17829
17830#ifdef __STDC__
17831# include <limits.h>
17832#else
17833# include <assert.h>
17834#endif
17835
17836#undef $ac_func
17837
b4e70030 17838/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17839#ifdef __cplusplus
17840extern "C"
b4e70030 17841{
a3828db0 17842#endif
b4e70030
JB
17843/* We use char because int might match the return type of a gcc2
17844 builtin and then its argument prototype would still apply. */
a3828db0
MK
17845char $ac_func ();
17846/* The GNU C library defines this for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
b4e70030 17849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17850choke me
b4e70030
JB
17851#else
17852char (*f) () = $ac_func;
17853#endif
17854#ifdef __cplusplus
17855}
a3828db0 17856#endif
97bf5e38 17857
bec39cab
AC
17858int
17859main ()
17860{
b4e70030 17861return f != $ac_func;
bec39cab
AC
17862 ;
17863 return 0;
17864}
17865_ACEOF
a3828db0
MK
17866rm -f conftest.$ac_objext conftest$ac_exeext
17867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17868 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
b4e70030
JB
17875 { ac_try='test -z "$ac_c_werror_flag"
17876 || test ! -s conftest.err'
bec39cab
AC
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
a3828db0 17882 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
a3828db0 17888 eval "$as_ac_var=yes"
b83266a0 17889else
bec39cab
AC
17890 echo "$as_me: failed program was:" >&5
17891sed 's/^/| /' conftest.$ac_ext >&5
17892
b4e70030 17893eval "$as_ac_var=no"
b83266a0 17894fi
a3828db0
MK
17895rm -f conftest.err conftest.$ac_objext \
17896 conftest$ac_exeext conftest.$ac_ext
b83266a0 17897fi
b4e70030
JB
17898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17899echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17900if test `eval echo '${'$as_ac_var'}'` = yes; then
17901 cat >>confdefs.h <<_ACEOF
17902#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17903_ACEOF
b83266a0 17904
97bf5e38 17905fi
a3828db0 17906done
b83266a0 17907
a3828db0
MK
17908
17909for ac_func in wborder
17910do
17911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17912echo "$as_me:$LINENO: checking for $ac_func" >&5
17913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17914if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916else
17917 cat >conftest.$ac_ext <<_ACEOF
17918/* confdefs.h. */
17919_ACEOF
17920cat confdefs.h >>conftest.$ac_ext
17921cat >>conftest.$ac_ext <<_ACEOF
17922/* end confdefs.h. */
a3828db0
MK
17923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17925#define $ac_func innocuous_$ac_func
a4db0f07 17926
a3828db0
MK
17927/* System header to define __stub macros and hopefully few prototypes,
17928 which can conflict with char $ac_func (); below.
17929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17930 <limits.h> exists even on freestanding compilers. */
17931
17932#ifdef __STDC__
17933# include <limits.h>
17934#else
17935# include <assert.h>
17936#endif
17937
17938#undef $ac_func
17939
b4e70030 17940/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17941#ifdef __cplusplus
17942extern "C"
b4e70030 17943{
a3828db0 17944#endif
b4e70030
JB
17945/* We use char because int might match the return type of a gcc2
17946 builtin and then its argument prototype would still apply. */
a3828db0
MK
17947char $ac_func ();
17948/* The GNU C library defines this for functions which it implements
17949 to always fail with ENOSYS. Some functions are actually named
17950 something starting with __ and the normal name is an alias. */
b4e70030 17951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17952choke me
b4e70030
JB
17953#else
17954char (*f) () = $ac_func;
17955#endif
17956#ifdef __cplusplus
17957}
a3828db0 17958#endif
97bf5e38 17959
bec39cab
AC
17960int
17961main ()
17962{
b4e70030 17963return f != $ac_func;
bec39cab
AC
17964 ;
17965 return 0;
17966}
17967_ACEOF
a3828db0
MK
17968rm -f conftest.$ac_objext conftest$ac_exeext
17969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17970 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17971 ac_status=$?
17972 grep -v '^ *+' conftest.er1 >conftest.err
17973 rm -f conftest.er1
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } &&
b4e70030
JB
17977 { ac_try='test -z "$ac_c_werror_flag"
17978 || test ! -s conftest.err'
bec39cab
AC
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; } &&
a3828db0 17984 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; }; then
a3828db0 17990 eval "$as_ac_var=yes"
a4db0f07 17991else
bec39cab
AC
17992 echo "$as_me: failed program was:" >&5
17993sed 's/^/| /' conftest.$ac_ext >&5
17994
b4e70030 17995eval "$as_ac_var=no"
a4db0f07 17996fi
a3828db0
MK
17997rm -f conftest.err conftest.$ac_objext \
17998 conftest$ac_exeext conftest.$ac_ext
a4db0f07 17999fi
b4e70030
JB
18000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18002if test `eval echo '${'$as_ac_var'}'` = yes; then
18003 cat >>confdefs.h <<_ACEOF
18004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18005_ACEOF
a4db0f07
RH
18006
18007fi
a3828db0 18008done
c906108c 18009
06825bd1 18010
a3828db0
MK
18011# Check the return and argument types of ptrace. No canned test for
18012# this, so roll our own.
18013gdb_ptrace_headers='
18014#if HAVE_SYS_TYPES_H
18015# include <sys/types.h>
18016#endif
18017#if HAVE_SYS_PTRACE_H
18018# include <sys/ptrace.h>
18019#endif
18020#if HAVE_UNISTD_H
18021# include <unistd.h>
18022#endif
18023'
18024# There is no point in checking if we don't have a prototype.
b4e70030
JB
18025echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18026echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 18027if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029else
18030 cat >conftest.$ac_ext <<_ACEOF
18031/* confdefs.h. */
18032_ACEOF
18033cat confdefs.h >>conftest.$ac_ext
18034cat >>conftest.$ac_ext <<_ACEOF
18035/* end confdefs.h. */
a3828db0
MK
18036$gdb_ptrace_headers
18037
bec39cab
AC
18038int
18039main ()
18040{
a3828db0
MK
18041#ifndef ptrace
18042 char *p = (char *) ptrace;
06825bd1 18043#endif
a3828db0 18044
bec39cab
AC
18045 ;
18046 return 0;
18047}
18048_ACEOF
18049rm -f conftest.$ac_objext
18050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18051 (eval $ac_compile) 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
b4e70030
JB
18058 { ac_try='test -z "$ac_c_werror_flag"
18059 || test ! -s conftest.err'
bec39cab
AC
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; } &&
18065 { ac_try='test -s conftest.$ac_objext'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
a3828db0 18071 ac_cv_have_decl_ptrace=yes
06825bd1 18072else
bec39cab
AC
18073 echo "$as_me: failed program was:" >&5
18074sed 's/^/| /' conftest.$ac_ext >&5
18075
b4e70030 18076ac_cv_have_decl_ptrace=no
06825bd1 18077fi
bec39cab 18078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 18079fi
b4e70030
JB
18080echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18081echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 18082if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 18083
a3828db0
MK
18084cat >>confdefs.h <<_ACEOF
18085#define HAVE_DECL_PTRACE 1
18086_ACEOF
bec39cab 18087
bec39cab 18088
a3828db0
MK
18089else
18090 cat >>confdefs.h <<_ACEOF
18091#define HAVE_DECL_PTRACE 0
bec39cab 18092_ACEOF
06825bd1 18093
a3828db0
MK
18094
18095 : ${gdb_cv_func_ptrace_ret='int'}
18096 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18097
06825bd1
MK
18098fi
18099
a3828db0
MK
18100
18101# Check return type.
b4e70030
JB
18102echo "$as_me:$LINENO: checking return type of ptrace" >&5
18103echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 18104if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18106else
18107 cat >conftest.$ac_ext <<_ACEOF
18108/* confdefs.h. */
18109_ACEOF
18110cat confdefs.h >>conftest.$ac_ext
18111cat >>conftest.$ac_ext <<_ACEOF
18112/* end confdefs.h. */
a3828db0 18113$gdb_ptrace_headers
bec39cab
AC
18114int
18115main ()
18116{
a3828db0 18117extern int ptrace ();
bec39cab
AC
18118 ;
18119 return 0;
18120}
18121_ACEOF
18122rm -f conftest.$ac_objext
18123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18124 (eval $ac_compile) 2>conftest.er1
18125 ac_status=$?
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
b4e70030
JB
18131 { ac_try='test -z "$ac_c_werror_flag"
18132 || test ! -s conftest.err'
bec39cab
AC
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; } &&
18138 { ac_try='test -s conftest.$ac_objext'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; }; then
a3828db0 18144 gdb_cv_func_ptrace_ret='int'
70f9f479 18145else
bec39cab
AC
18146 echo "$as_me: failed program was:" >&5
18147sed 's/^/| /' conftest.$ac_ext >&5
18148
b4e70030 18149gdb_cv_func_ptrace_ret='long'
70f9f479 18150fi
bec39cab 18151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 18152fi
b4e70030
JB
18153echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18154echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 18155
a3828db0
MK
18156cat >>confdefs.h <<_ACEOF
18157#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 18158_ACEOF
70f9f479 18159
a3828db0 18160# Check argument types.
b4e70030
JB
18161echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18162echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 18163if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165else
a3828db0
MK
18166
18167for gdb_arg1 in 'int' 'long'; do
18168 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18169 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18170 for gdb_arg4 in 'int' 'long'; do
18171 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18172/* confdefs.h. */
18173_ACEOF
18174cat confdefs.h >>conftest.$ac_ext
18175cat >>conftest.$ac_ext <<_ACEOF
18176/* end confdefs.h. */
a3828db0 18177$gdb_ptrace_headers
bec39cab
AC
18178int
18179main ()
18180{
a3828db0
MK
18181
18182extern $gdb_cv_func_ptrace_ret
18183 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18184
bec39cab
AC
18185 ;
18186 return 0;
18187}
18188_ACEOF
18189rm -f conftest.$ac_objext
18190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18191 (eval $ac_compile) 2>conftest.er1
18192 ac_status=$?
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
b4e70030
JB
18198 { ac_try='test -z "$ac_c_werror_flag"
18199 || test ! -s conftest.err'
bec39cab
AC
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest.$ac_objext'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
a3828db0
MK
18211 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18212 break 4;
5c7f2947 18213else
bec39cab
AC
18214 echo "$as_me: failed program was:" >&5
18215sed 's/^/| /' conftest.$ac_ext >&5
18216
5c7f2947 18217fi
bec39cab 18218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18219 for gdb_arg5 in 'int *' 'int' 'long'; do
18220 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18221/* confdefs.h. */
18222_ACEOF
18223cat confdefs.h >>conftest.$ac_ext
18224cat >>conftest.$ac_ext <<_ACEOF
18225/* end confdefs.h. */
a3828db0 18226$gdb_ptrace_headers
bec39cab
AC
18227int
18228main ()
18229{
a3828db0
MK
18230
18231extern $gdb_cv_func_ptrace_ret
18232 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18233
bec39cab
AC
18234 ;
18235 return 0;
18236}
18237_ACEOF
18238rm -f conftest.$ac_objext
18239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18240 (eval $ac_compile) 2>conftest.er1
18241 ac_status=$?
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
b4e70030
JB
18247 { ac_try='test -z "$ac_c_werror_flag"
18248 || test ! -s conftest.err'
bec39cab
AC
18249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; } &&
18254 { ac_try='test -s conftest.$ac_objext'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
a3828db0
MK
18260
18261gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18262 break 5;
78434e59 18263else
bec39cab
AC
18264 echo "$as_me: failed program was:" >&5
18265sed 's/^/| /' conftest.$ac_ext >&5
18266
78434e59 18267fi
bec39cab 18268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18269 done
18270 done
18271 done
18272 done
18273done
18274# Provide a safe default value.
18275: ${gdb_cv_func_ptrace_args='int,int,long,long'}
18276
78434e59 18277fi
b4e70030
JB
18278echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18279echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
18280ac_save_IFS=$IFS; IFS=','
18281set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18282IFS=$ac_save_IFS
18283shift
bec39cab 18284
a3828db0
MK
18285cat >>confdefs.h <<_ACEOF
18286#define PTRACE_TYPE_ARG3 $3
18287_ACEOF
18288
18289if test -n "$5"; then
18290
18291cat >>confdefs.h <<_ACEOF
18292#define PTRACE_TYPE_ARG5 $5
bec39cab 18293_ACEOF
78434e59
MK
18294
18295fi
18296
a3828db0 18297if test "$cross_compiling" = no; then
b4e70030
JB
18298 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18299echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18300if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18301 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18302else
18303 if test "$cross_compiling" = yes; then
18304 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18305echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18306 { (exit 1); exit 1; }; }
bec39cab
AC
18307else
18308 cat >conftest.$ac_ext <<_ACEOF
18309/* confdefs.h. */
18310_ACEOF
18311cat confdefs.h >>conftest.$ac_ext
18312cat >>conftest.$ac_ext <<_ACEOF
18313/* end confdefs.h. */
b4e70030
JB
18314#if HAVE_UNISTD_H
18315# include <unistd.h>
18316#endif
18317
bec39cab
AC
18318int
18319main ()
18320{
a3828db0
MK
18321/* If this system has a BSD-style setpgrp which takes arguments,
18322 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18323 exit successfully. */
b4e70030 18324 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
18325 ;
18326 return 0;
18327}
18328_ACEOF
a3828db0
MK
18329rm -f conftest$ac_exeext
18330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18331 (eval $ac_link) 2>&5
bec39cab
AC
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
a3828db0 18340 ac_cv_func_setpgrp_void=no
c906108c 18341else
a3828db0
MK
18342 echo "$as_me: program exited with status $ac_status" >&5
18343echo "$as_me: failed program was:" >&5
bec39cab
AC
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
a3828db0
MK
18346( exit $ac_status )
18347ac_cv_func_setpgrp_void=yes
c906108c 18348fi
b4e70030 18349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 18350fi
a3828db0 18351fi
b4e70030
JB
18352echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18353echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
18354if test $ac_cv_func_setpgrp_void = yes; then
18355
18356cat >>confdefs.h <<\_ACEOF
18357#define SETPGRP_VOID 1
bec39cab 18358_ACEOF
97bf5e38
MK
18359
18360fi
a3828db0
MK
18361
18362else
b4e70030
JB
18363 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18364echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18365if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18366 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18367else
bec39cab
AC
18368 cat >conftest.$ac_ext <<_ACEOF
18369/* confdefs.h. */
18370_ACEOF
18371cat confdefs.h >>conftest.$ac_ext
18372cat >>conftest.$ac_ext <<_ACEOF
18373/* end confdefs.h. */
a3828db0
MK
18374
18375#include <unistd.h>
18376
bec39cab
AC
18377int
18378main ()
18379{
a3828db0
MK
18380
18381 if (setpgrp(1,1) == -1)
18382 exit (0);
18383 else
18384 exit (1);
18385
bec39cab
AC
18386 ;
18387 return 0;
18388}
18389_ACEOF
18390rm -f conftest.$ac_objext
18391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18392 (eval $ac_compile) 2>conftest.er1
18393 ac_status=$?
18394 grep -v '^ *+' conftest.er1 >conftest.err
18395 rm -f conftest.er1
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
b4e70030
JB
18399 { ac_try='test -z "$ac_c_werror_flag"
18400 || test ! -s conftest.err'
bec39cab
AC
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; } &&
18406 { ac_try='test -s conftest.$ac_objext'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; }; then
a3828db0 18412 ac_cv_func_setpgrp_void=no
c906108c 18413else
bec39cab
AC
18414 echo "$as_me: failed program was:" >&5
18415sed 's/^/| /' conftest.$ac_ext >&5
18416
b4e70030 18417ac_cv_func_setpgrp_void=yes
c906108c 18418fi
bec39cab 18419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18420fi
b4e70030
JB
18421echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18422echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 18423if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 18424 cat >>confdefs.h <<\_ACEOF
a3828db0 18425#define SETPGRP_VOID 1
bec39cab 18426_ACEOF
c3f6f71d 18427
a3828db0 18428fi
c906108c
SS
18429fi
18430
a3828db0
MK
18431# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
18432# since sigsetjmp might only be defined as a macro.
b4e70030
JB
18433echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18434echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 18435if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
18437else
18438 cat >conftest.$ac_ext <<_ACEOF
18439/* confdefs.h. */
18440_ACEOF
18441cat confdefs.h >>conftest.$ac_ext
18442cat >>conftest.$ac_ext <<_ACEOF
18443/* end confdefs.h. */
a3828db0
MK
18444
18445#include <setjmp.h>
18446
bec39cab
AC
18447int
18448main ()
18449{
a3828db0 18450sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
18451 ;
18452 return 0;
18453}
18454_ACEOF
18455rm -f conftest.$ac_objext
18456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18457 (eval $ac_compile) 2>conftest.er1
18458 ac_status=$?
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } &&
b4e70030
JB
18464 { ac_try='test -z "$ac_c_werror_flag"
18465 || test ! -s conftest.err'
bec39cab
AC
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest.$ac_objext'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
a3828db0 18477 gdb_cv_func_sigsetjmp=yes
c906108c 18478else
bec39cab
AC
18479 echo "$as_me: failed program was:" >&5
18480sed 's/^/| /' conftest.$ac_ext >&5
18481
b4e70030 18482gdb_cv_func_sigsetjmp=no
c906108c 18483fi
bec39cab 18484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18485fi
b4e70030
JB
18486echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18487echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 18488if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 18489
a3828db0
MK
18490cat >>confdefs.h <<\_ACEOF
18491#define HAVE_SIGSETJMP 1
bec39cab 18492_ACEOF
c906108c 18493
97bf5e38 18494fi
c906108c 18495
a3828db0
MK
18496# Assume we'll default to using the included libiberty regex.
18497gdb_use_included_regex=yes
18498
18499# However, if the system regex is GNU regex, then default to *not*
18500# using the included regex.
b4e70030
JB
18501echo "$as_me:$LINENO: checking for GNU regex" >&5
18502echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 18503if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505else
18506 cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h. */
a3828db0 18512#include <gnu-versions.h>
bec39cab
AC
18513int
18514main ()
18515{
a3828db0
MK
18516#define REGEX_INTERFACE_VERSION 1
18517#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18518# error "Version mismatch"
18519#endif
bec39cab
AC
18520 ;
18521 return 0;
18522}
18523_ACEOF
18524rm -f conftest.$ac_objext
18525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18526 (eval $ac_compile) 2>conftest.er1
18527 ac_status=$?
18528 grep -v '^ *+' conftest.er1 >conftest.err
18529 rm -f conftest.er1
18530 cat conftest.err >&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } &&
b4e70030
JB
18533 { ac_try='test -z "$ac_c_werror_flag"
18534 || test ! -s conftest.err'
bec39cab
AC
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest.$ac_objext'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
a3828db0 18546 gdb_cv_have_gnu_regex=yes
c906108c 18547else
bec39cab
AC
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
b4e70030 18551gdb_cv_have_gnu_regex=no
c906108c 18552fi
bec39cab 18553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18554fi
b4e70030
JB
18555echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18556echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
18557if test $gdb_cv_have_gnu_regex = yes; then
18558 gdb_use_included_regex=no
18559fi
c906108c 18560
a3828db0 18561
b4e70030 18562# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 18563if test "${with_included_regex+set}" = set; then
b4e70030
JB
18564 withval="$with_included_regex"
18565 gdb_with_regex=$withval
a3828db0
MK
18566else
18567 gdb_with_regex=$gdb_use_included_regex
b4e70030 18568fi;
a3828db0
MK
18569if test "$gdb_with_regex" = yes; then
18570
18571cat >>confdefs.h <<\_ACEOF
18572#define USE_INCLUDED_REGEX 1
bec39cab 18573_ACEOF
c906108c 18574
97bf5e38 18575fi
c906108c 18576
5c45e068 18577# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
18578echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18579echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 18580if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18582else
18583 cat >conftest.$ac_ext <<_ACEOF
18584/* confdefs.h. */
18585_ACEOF
18586cat confdefs.h >>conftest.$ac_ext
18587cat >>conftest.$ac_ext <<_ACEOF
18588/* end confdefs.h. */
a3828db0
MK
18589#include <sys/param.h>
18590#include <sys/proc.h>
5c45e068
MK
18591
18592
bec39cab
AC
18593int
18594main ()
18595{
5c45e068
MK
18596static struct thread ac_aggr;
18597if (ac_aggr.td_pcb)
18598return 0;
bec39cab
AC
18599 ;
18600 return 0;
18601}
18602_ACEOF
18603rm -f conftest.$ac_objext
18604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18605 (eval $ac_compile) 2>conftest.er1
18606 ac_status=$?
18607 grep -v '^ *+' conftest.er1 >conftest.err
18608 rm -f conftest.er1
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
b4e70030
JB
18612 { ac_try='test -z "$ac_c_werror_flag"
18613 || test ! -s conftest.err'
bec39cab
AC
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; } &&
18619 { ac_try='test -s conftest.$ac_objext'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
5c45e068 18625 ac_cv_member_struct_thread_td_pcb=yes
c906108c 18626else
bec39cab
AC
18627 echo "$as_me: failed program was:" >&5
18628sed 's/^/| /' conftest.$ac_ext >&5
18629
b4e70030 18630cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18631/* confdefs.h. */
18632_ACEOF
18633cat confdefs.h >>conftest.$ac_ext
18634cat >>conftest.$ac_ext <<_ACEOF
18635/* end confdefs.h. */
18636#include <sys/param.h>
18637#include <sys/proc.h>
18638
18639
18640int
18641main ()
18642{
18643static struct thread ac_aggr;
18644if (sizeof ac_aggr.td_pcb)
18645return 0;
18646 ;
18647 return 0;
18648}
18649_ACEOF
18650rm -f conftest.$ac_objext
18651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18652 (eval $ac_compile) 2>conftest.er1
18653 ac_status=$?
18654 grep -v '^ *+' conftest.er1 >conftest.err
18655 rm -f conftest.er1
18656 cat conftest.err >&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } &&
b4e70030
JB
18659 { ac_try='test -z "$ac_c_werror_flag"
18660 || test ! -s conftest.err'
5c45e068
MK
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; } &&
18666 { ac_try='test -s conftest.$ac_objext'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 ac_cv_member_struct_thread_td_pcb=yes
18673else
18674 echo "$as_me: failed program was:" >&5
18675sed 's/^/| /' conftest.$ac_ext >&5
18676
b4e70030 18677ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
18678fi
18679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18680fi
bec39cab 18681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18682fi
b4e70030
JB
18683echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18684echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 18685if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 18686
5c45e068 18687cat >>confdefs.h <<_ACEOF
a3828db0 18688#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 18689_ACEOF
c906108c 18690
5c45e068 18691
97bf5e38 18692fi
c906108c 18693
5c45e068 18694
a3828db0 18695# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
18696echo "$as_me:$LINENO: checking for struct lwp" >&5
18697echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 18698if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18700else
18701 cat >conftest.$ac_ext <<_ACEOF
18702/* confdefs.h. */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h. */
a3828db0
MK
18707#include <sys/param.h>
18708#include <sys/lwp.h>
bec39cab
AC
18709int
18710main ()
18711{
a3828db0 18712struct lwp l;
bec39cab
AC
18713 ;
18714 return 0;
18715}
18716_ACEOF
18717rm -f conftest.$ac_objext
18718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719 (eval $ac_compile) 2>conftest.er1
18720 ac_status=$?
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
b4e70030
JB
18726 { ac_try='test -z "$ac_c_werror_flag"
18727 || test ! -s conftest.err'
bec39cab
AC
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest.$ac_objext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
a3828db0 18739 gdb_cv_struct_lwp=yes
c906108c 18740else
bec39cab
AC
18741 echo "$as_me: failed program was:" >&5
18742sed 's/^/| /' conftest.$ac_ext >&5
18743
b4e70030 18744gdb_cv_struct_lwp=no
c906108c 18745fi
bec39cab 18746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18747fi
b4e70030
JB
18748echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18749echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 18750if test $gdb_cv_struct_lwp = yes; then
c906108c 18751
a3828db0
MK
18752cat >>confdefs.h <<\_ACEOF
18753#define HAVE_STRUCT_LWP 1
bec39cab 18754_ACEOF
c906108c 18755
97bf5e38 18756fi
c906108c 18757
a3828db0 18758# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
18759echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18760echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 18761if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18763else
18764 cat >conftest.$ac_ext <<_ACEOF
18765/* confdefs.h. */
18766_ACEOF
18767cat confdefs.h >>conftest.$ac_ext
18768cat >>conftest.$ac_ext <<_ACEOF
18769/* end confdefs.h. */
a3828db0
MK
18770#include <sys/types.h>
18771#include <machine/reg.h>
bec39cab
AC
18772int
18773main ()
18774{
a3828db0 18775struct reg r;
bec39cab
AC
18776 ;
18777 return 0;
18778}
18779_ACEOF
18780rm -f conftest.$ac_objext
18781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18782 (eval $ac_compile) 2>conftest.er1
18783 ac_status=$?
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
b4e70030
JB
18789 { ac_try='test -z "$ac_c_werror_flag"
18790 || test ! -s conftest.err'
bec39cab
AC
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest.$ac_objext'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
a3828db0 18802 gdb_cv_struct_reg=yes
27ca5dad 18803else
bec39cab
AC
18804 echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
b4e70030 18807gdb_cv_struct_reg=no
27ca5dad 18808fi
bec39cab 18809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 18810fi
b4e70030
JB
18811echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18812echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 18813if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
18814
18815cat >>confdefs.h <<\_ACEOF
a3828db0 18816#define HAVE_STRUCT_REG 1
bec39cab 18817_ACEOF
27ca5dad
MC
18818
18819fi
97bf5e38 18820
a3828db0
MK
18821# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18822# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
18823echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18824echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 18825if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 18826 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18827else
bec39cab
AC
18828 cat >conftest.$ac_ext <<_ACEOF
18829/* confdefs.h. */
18830_ACEOF
18831cat confdefs.h >>conftest.$ac_ext
18832cat >>conftest.$ac_ext <<_ACEOF
18833/* end confdefs.h. */
a3828db0 18834#include <machine/reg.h>
5c45e068
MK
18835
18836int
18837main ()
18838{
18839static struct reg ac_aggr;
18840if (ac_aggr.r_fs)
18841return 0;
18842 ;
18843 return 0;
18844}
18845_ACEOF
18846rm -f conftest.$ac_objext
18847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18848 (eval $ac_compile) 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
b4e70030
JB
18855 { ac_try='test -z "$ac_c_werror_flag"
18856 || test ! -s conftest.err'
5c45e068
MK
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest.$ac_objext'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 ac_cv_member_struct_reg_r_fs=yes
18869else
18870 echo "$as_me: failed program was:" >&5
18871sed 's/^/| /' conftest.$ac_ext >&5
18872
b4e70030 18873cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18874/* confdefs.h. */
18875_ACEOF
18876cat confdefs.h >>conftest.$ac_ext
18877cat >>conftest.$ac_ext <<_ACEOF
18878/* end confdefs.h. */
18879#include <machine/reg.h>
18880
bec39cab
AC
18881int
18882main ()
18883{
5c45e068
MK
18884static struct reg ac_aggr;
18885if (sizeof ac_aggr.r_fs)
18886return 0;
bec39cab
AC
18887 ;
18888 return 0;
18889}
18890_ACEOF
18891rm -f conftest.$ac_objext
18892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18893 (eval $ac_compile) 2>conftest.er1
18894 ac_status=$?
18895 grep -v '^ *+' conftest.er1 >conftest.err
18896 rm -f conftest.er1
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } &&
b4e70030
JB
18900 { ac_try='test -z "$ac_c_werror_flag"
18901 || test ! -s conftest.err'
bec39cab
AC
18902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18903 (eval $ac_try) 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; } &&
18907 { ac_try='test -s conftest.$ac_objext'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; }; then
5c45e068 18913 ac_cv_member_struct_reg_r_fs=yes
3862412b 18914else
bec39cab
AC
18915 echo "$as_me: failed program was:" >&5
18916sed 's/^/| /' conftest.$ac_ext >&5
18917
b4e70030 18918ac_cv_member_struct_reg_r_fs=no
3862412b 18919fi
bec39cab 18920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18921fi
5c45e068
MK
18922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18923fi
b4e70030
JB
18924echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18925echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
18926if test $ac_cv_member_struct_reg_r_fs = yes; then
18927
18928cat >>confdefs.h <<_ACEOF
a3828db0 18929#define HAVE_STRUCT_REG_R_FS 1
bec39cab 18930_ACEOF
3862412b 18931
5c45e068 18932
97bf5e38 18933fi
b4e70030
JB
18934echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18935echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 18936if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 18937 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18938else
bec39cab
AC
18939 cat >conftest.$ac_ext <<_ACEOF
18940/* confdefs.h. */
18941_ACEOF
18942cat confdefs.h >>conftest.$ac_ext
18943cat >>conftest.$ac_ext <<_ACEOF
18944/* end confdefs.h. */
a3828db0 18945#include <machine/reg.h>
5c45e068 18946
bec39cab
AC
18947int
18948main ()
18949{
5c45e068
MK
18950static struct reg ac_aggr;
18951if (ac_aggr.r_gs)
18952return 0;
bec39cab
AC
18953 ;
18954 return 0;
18955}
18956_ACEOF
18957rm -f conftest.$ac_objext
18958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18959 (eval $ac_compile) 2>conftest.er1
18960 ac_status=$?
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
b4e70030
JB
18966 { ac_try='test -z "$ac_c_werror_flag"
18967 || test ! -s conftest.err'
bec39cab
AC
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest.$ac_objext'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
5c45e068 18979 ac_cv_member_struct_reg_r_gs=yes
3862412b 18980else
bec39cab
AC
18981 echo "$as_me: failed program was:" >&5
18982sed 's/^/| /' conftest.$ac_ext >&5
18983
b4e70030 18984cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18985/* confdefs.h. */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h. */
18990#include <machine/reg.h>
18991
18992int
18993main ()
18994{
18995static struct reg ac_aggr;
18996if (sizeof ac_aggr.r_gs)
18997return 0;
18998 ;
18999 return 0;
19000}
19001_ACEOF
19002rm -f conftest.$ac_objext
19003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19004 (eval $ac_compile) 2>conftest.er1
19005 ac_status=$?
19006 grep -v '^ *+' conftest.er1 >conftest.err
19007 rm -f conftest.er1
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } &&
b4e70030
JB
19011 { ac_try='test -z "$ac_c_werror_flag"
19012 || test ! -s conftest.err'
5c45e068
MK
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest.$ac_objext'
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_cv_member_struct_reg_r_gs=yes
19025else
19026 echo "$as_me: failed program was:" >&5
19027sed 's/^/| /' conftest.$ac_ext >&5
19028
b4e70030 19029ac_cv_member_struct_reg_r_gs=no
3862412b 19030fi
bec39cab 19031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 19032fi
5c45e068
MK
19033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19034fi
b4e70030
JB
19035echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19036echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
19037if test $ac_cv_member_struct_reg_r_gs = yes; then
19038
19039cat >>confdefs.h <<_ACEOF
a3828db0 19040#define HAVE_STRUCT_REG_R_GS 1
bec39cab 19041_ACEOF
3862412b 19042
5c45e068 19043
97bf5e38 19044fi
3862412b 19045
5c45e068 19046
a3828db0 19047# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
19048echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19049echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 19050if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 19051 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19052else
bec39cab
AC
19053 cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h. */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h. */
a3828db0 19059#include <sys/ptrace.h>
bec39cab
AC
19060int
19061main ()
19062{
a3828db0 19063PTRACE_GETREGS;
bec39cab
AC
19064 ;
19065 return 0;
19066}
19067_ACEOF
19068rm -f conftest.$ac_objext
19069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19070 (eval $ac_compile) 2>conftest.er1
19071 ac_status=$?
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
b4e70030
JB
19077 { ac_try='test -z "$ac_c_werror_flag"
19078 || test ! -s conftest.err'
bec39cab
AC
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try='test -s conftest.$ac_objext'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
a3828db0 19090 gdb_cv_have_ptrace_getregs=yes
451928c5 19091else
bec39cab
AC
19092 echo "$as_me: failed program was:" >&5
19093sed 's/^/| /' conftest.$ac_ext >&5
19094
b4e70030 19095gdb_cv_have_ptrace_getregs=no
451928c5 19096fi
bec39cab 19097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19098fi
19099
b4e70030
JB
19100echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19101echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 19102if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
19103
19104cat >>confdefs.h <<\_ACEOF
a3828db0 19105#define HAVE_PTRACE_GETREGS 1
bec39cab 19106_ACEOF
451928c5 19107
97bf5e38 19108fi
451928c5 19109
a3828db0 19110# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
19111echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19112echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 19113if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 19114 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19115else
bec39cab
AC
19116 cat >conftest.$ac_ext <<_ACEOF
19117/* confdefs.h. */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h. */
a3828db0 19122#include <sys/ptrace.h>
bec39cab
AC
19123int
19124main ()
19125{
a3828db0 19126PTRACE_GETFPXREGS;
bec39cab
AC
19127 ;
19128 return 0;
19129}
19130_ACEOF
19131rm -f conftest.$ac_objext
19132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19133 (eval $ac_compile) 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
b4e70030
JB
19140 { ac_try='test -z "$ac_c_werror_flag"
19141 || test ! -s conftest.err'
bec39cab
AC
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try='test -s conftest.$ac_objext'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
a3828db0 19153 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 19154else
bec39cab
AC
19155 echo "$as_me: failed program was:" >&5
19156sed 's/^/| /' conftest.$ac_ext >&5
19157
b4e70030 19158gdb_cv_have_ptrace_getfpxregs=no
451928c5 19159fi
bec39cab 19160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19161fi
19162
b4e70030
JB
19163echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19164echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 19165if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
19166
19167cat >>confdefs.h <<\_ACEOF
a3828db0 19168#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 19169_ACEOF
451928c5 19170
97bf5e38 19171fi
451928c5 19172
a3828db0 19173# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
19174echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19175echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 19176if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 19177 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19178else
bec39cab
AC
19179 cat >conftest.$ac_ext <<_ACEOF
19180/* confdefs.h. */
19181_ACEOF
19182cat confdefs.h >>conftest.$ac_ext
19183cat >>conftest.$ac_ext <<_ACEOF
19184/* end confdefs.h. */
a3828db0
MK
19185#include <sys/types.h>
19186#include <sys/ptrace.h>
bec39cab
AC
19187int
19188main ()
19189{
a3828db0 19190PT_GETDBREGS;
bec39cab
AC
19191 ;
19192 return 0;
19193}
19194_ACEOF
19195rm -f conftest.$ac_objext
19196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19197 (eval $ac_compile) 2>conftest.er1
19198 ac_status=$?
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
b4e70030
JB
19204 { ac_try='test -z "$ac_c_werror_flag"
19205 || test ! -s conftest.err'
bec39cab
AC
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; } &&
19211 { ac_try='test -s conftest.$ac_objext'
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
a3828db0 19217 gdb_cv_have_pt_getdbregs=yes
3862412b 19218else
bec39cab
AC
19219 echo "$as_me: failed program was:" >&5
19220sed 's/^/| /' conftest.$ac_ext >&5
19221
b4e70030 19222gdb_cv_have_pt_getdbregs=no
3862412b 19223fi
bec39cab 19224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19225fi
19226
b4e70030
JB
19227echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19228echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 19229if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
19230
19231cat >>confdefs.h <<\_ACEOF
a3828db0 19232#define HAVE_PT_GETDBREGS 1
bec39cab 19233_ACEOF
3862412b 19234
97bf5e38 19235fi
3862412b 19236
a3828db0 19237# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
19238echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19239echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 19240if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 19241 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19242else
bec39cab
AC
19243 cat >conftest.$ac_ext <<_ACEOF
19244/* confdefs.h. */
19245_ACEOF
19246cat confdefs.h >>conftest.$ac_ext
19247cat >>conftest.$ac_ext <<_ACEOF
19248/* end confdefs.h. */
a3828db0
MK
19249#include <sys/types.h>
19250#include <sys/ptrace.h>
bec39cab
AC
19251int
19252main ()
19253{
a3828db0 19254PT_GETXMMREGS;
bec39cab
AC
19255 ;
19256 return 0;
19257}
19258_ACEOF
19259rm -f conftest.$ac_objext
19260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19261 (eval $ac_compile) 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
b4e70030
JB
19268 { ac_try='test -z "$ac_c_werror_flag"
19269 || test ! -s conftest.err'
bec39cab
AC
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest.$ac_objext'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
a3828db0 19281 gdb_cv_have_pt_getxmmregs=yes
3862412b 19282else
bec39cab
AC
19283 echo "$as_me: failed program was:" >&5
19284sed 's/^/| /' conftest.$ac_ext >&5
19285
b4e70030 19286gdb_cv_have_pt_getxmmregs=no
3862412b 19287fi
bec39cab 19288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19289fi
19290
b4e70030
JB
19291echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19292echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 19293if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
19294
19295cat >>confdefs.h <<\_ACEOF
a3828db0 19296#define HAVE_PT_GETXMMREGS 1
bec39cab 19297_ACEOF
3862412b 19298
97bf5e38 19299fi
3862412b 19300
eb368090 19301# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
19302
19303if test "${target}" = "${host}"; then
19304 case "${host}" in
97bf5e38 19305 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
19306
19307cat >>confdefs.h <<\_ACEOF
97bf5e38 19308#define NEW_PROC_API 1
bec39cab 19309_ACEOF
97bf5e38
MK
19310
19311 ;;
0bbc026e 19312 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
19313
19314cat >>confdefs.h <<\_ACEOF
97bf5e38 19315#define NEW_PROC_API 1
bec39cab 19316_ACEOF
c960c18f
AC
19317
19318 ;;
19319 mips-sgi-irix5*)
19320 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
19321
19322cat >>confdefs.h <<\_ACEOF
c960c18f 19323#define _KMEMUSER 1
bec39cab 19324_ACEOF
97bf5e38
MK
19325
19326 ;;
19327 esac
19328fi
19329
19330if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
19331 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19332echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19333 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19335else
19336 cat >conftest.$ac_ext <<_ACEOF
19337/* confdefs.h. */
19338_ACEOF
19339cat confdefs.h >>conftest.$ac_ext
19340cat >>conftest.$ac_ext <<_ACEOF
19341/* end confdefs.h. */
596c9d4b
KB
19342
19343#define _SYSCALL32
19344#include <sys/procfs.h>
bec39cab
AC
19345int
19346main ()
19347{
97bf5e38 19348pstatus_t avar
bec39cab
AC
19349 ;
19350 return 0;
19351}
19352_ACEOF
19353rm -f conftest.$ac_objext
19354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19355 (eval $ac_compile) 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
b4e70030
JB
19362 { ac_try='test -z "$ac_c_werror_flag"
19363 || test ! -s conftest.err'
bec39cab
AC
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest.$ac_objext'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
97bf5e38 19375 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 19376else
bec39cab
AC
19377 echo "$as_me: failed program was:" >&5
19378sed 's/^/| /' conftest.$ac_ext >&5
19379
b4e70030 19380bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 19381
596c9d4b 19382fi
bec39cab 19383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19384fi
19385
97bf5e38 19386 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
19387
19388cat >>confdefs.h <<\_ACEOF
97bf5e38 19389#define HAVE_PSTATUS_T 1
bec39cab 19390_ACEOF
596c9d4b
KB
19391
19392 fi
b4e70030
JB
19393 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19394echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 19395
b4e70030
JB
19396 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19397echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19398 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19400else
bec39cab
AC
19401 cat >conftest.$ac_ext <<_ACEOF
19402/* confdefs.h. */
19403_ACEOF
19404cat confdefs.h >>conftest.$ac_ext
19405cat >>conftest.$ac_ext <<_ACEOF
19406/* end confdefs.h. */
596c9d4b
KB
19407
19408#define _SYSCALL32
19409#include <sys/procfs.h>
bec39cab
AC
19410int
19411main ()
19412{
97bf5e38 19413prrun_t avar
bec39cab
AC
19414 ;
19415 return 0;
19416}
19417_ACEOF
19418rm -f conftest.$ac_objext
19419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19420 (eval $ac_compile) 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
b4e70030
JB
19427 { ac_try='test -z "$ac_c_werror_flag"
19428 || test ! -s conftest.err'
bec39cab
AC
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
97bf5e38 19440 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 19441else
bec39cab
AC
19442 echo "$as_me: failed program was:" >&5
19443sed 's/^/| /' conftest.$ac_ext >&5
19444
b4e70030 19445bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 19446
596c9d4b 19447fi
bec39cab 19448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19449fi
19450
97bf5e38 19451 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
19452
19453cat >>confdefs.h <<\_ACEOF
97bf5e38 19454#define HAVE_PRRUN_T 1
bec39cab 19455_ACEOF
596c9d4b
KB
19456
19457 fi
b4e70030
JB
19458 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19459echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 19460
b4e70030
JB
19461 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19462echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19463 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19465else
bec39cab
AC
19466 cat >conftest.$ac_ext <<_ACEOF
19467/* confdefs.h. */
19468_ACEOF
19469cat confdefs.h >>conftest.$ac_ext
19470cat >>conftest.$ac_ext <<_ACEOF
19471/* end confdefs.h. */
596c9d4b
KB
19472
19473#define _SYSCALL32
19474#include <sys/procfs.h>
bec39cab
AC
19475int
19476main ()
19477{
97bf5e38 19478gregset_t avar
bec39cab
AC
19479 ;
19480 return 0;
19481}
19482_ACEOF
19483rm -f conftest.$ac_objext
19484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19485 (eval $ac_compile) 2>conftest.er1
19486 ac_status=$?
19487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
b4e70030
JB
19492 { ac_try='test -z "$ac_c_werror_flag"
19493 || test ! -s conftest.err'
bec39cab
AC
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; } &&
19499 { ac_try='test -s conftest.$ac_objext'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
97bf5e38 19505 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 19506else
bec39cab
AC
19507 echo "$as_me: failed program was:" >&5
19508sed 's/^/| /' conftest.$ac_ext >&5
19509
b4e70030 19510bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 19511
596c9d4b 19512fi
bec39cab 19513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19514fi
19515
97bf5e38 19516 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
19517
19518cat >>confdefs.h <<\_ACEOF
97bf5e38 19519#define HAVE_GREGSET_T 1
bec39cab 19520_ACEOF
596c9d4b
KB
19521
19522 fi
b4e70030
JB
19523 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19524echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 19525
b4e70030
JB
19526 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19527echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19528 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 19530else
bec39cab
AC
19531 cat >conftest.$ac_ext <<_ACEOF
19532/* confdefs.h. */
19533_ACEOF
19534cat confdefs.h >>conftest.$ac_ext
19535cat >>conftest.$ac_ext <<_ACEOF
19536/* end confdefs.h. */
97bf5e38
MK
19537
19538#define _SYSCALL32
d84dd0c5 19539#include <sys/procfs.h>
bec39cab
AC
19540int
19541main ()
19542{
97bf5e38 19543fpregset_t avar
bec39cab
AC
19544 ;
19545 return 0;
19546}
19547_ACEOF
19548rm -f conftest.$ac_objext
19549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19550 (eval $ac_compile) 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
b4e70030
JB
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
bec39cab
AC
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest.$ac_objext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
97bf5e38 19570 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 19571else
bec39cab
AC
19572 echo "$as_me: failed program was:" >&5
19573sed 's/^/| /' conftest.$ac_ext >&5
19574
b4e70030 19575bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 19576
d84dd0c5 19577fi
bec39cab 19578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
19579fi
19580
97bf5e38 19581 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
19582
19583cat >>confdefs.h <<\_ACEOF
97bf5e38 19584#define HAVE_FPREGSET_T 1
bec39cab 19585_ACEOF
d84dd0c5 19586
97bf5e38 19587 fi
b4e70030
JB
19588 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19589echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 19590
b4e70030
JB
19591 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19592echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19593 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19595else
bec39cab
AC
19596 cat >conftest.$ac_ext <<_ACEOF
19597/* confdefs.h. */
19598_ACEOF
19599cat confdefs.h >>conftest.$ac_ext
19600cat >>conftest.$ac_ext <<_ACEOF
19601/* end confdefs.h. */
c906108c 19602
97bf5e38
MK
19603#define _SYSCALL32
19604#include <sys/procfs.h>
bec39cab
AC
19605int
19606main ()
19607{
97bf5e38 19608prgregset_t avar
bec39cab
AC
19609 ;
19610 return 0;
19611}
19612_ACEOF
19613rm -f conftest.$ac_objext
19614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19615 (eval $ac_compile) 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
b4e70030
JB
19622 { ac_try='test -z "$ac_c_werror_flag"
19623 || test ! -s conftest.err'
bec39cab
AC
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; } &&
19629 { ac_try='test -s conftest.$ac_objext'
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
97bf5e38 19635 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 19636else
bec39cab
AC
19637 echo "$as_me: failed program was:" >&5
19638sed 's/^/| /' conftest.$ac_ext >&5
19639
b4e70030 19640bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 19641
c906108c 19642fi
bec39cab 19643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19644fi
19645
97bf5e38 19646 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
19647
19648cat >>confdefs.h <<\_ACEOF
97bf5e38 19649#define HAVE_PRGREGSET_T 1
bec39cab 19650_ACEOF
c906108c 19651
97bf5e38 19652 fi
b4e70030
JB
19653 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19654echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 19655
b4e70030
JB
19656 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19657echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19658 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19660else
bec39cab
AC
19661 cat >conftest.$ac_ext <<_ACEOF
19662/* confdefs.h. */
19663_ACEOF
19664cat confdefs.h >>conftest.$ac_ext
19665cat >>conftest.$ac_ext <<_ACEOF
19666/* end confdefs.h. */
97bf5e38
MK
19667
19668#define _SYSCALL32
19669#include <sys/procfs.h>
bec39cab
AC
19670int
19671main ()
19672{
97bf5e38 19673prfpregset_t avar
bec39cab
AC
19674 ;
19675 return 0;
19676}
19677_ACEOF
19678rm -f conftest.$ac_objext
19679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19680 (eval $ac_compile) 2>conftest.er1
19681 ac_status=$?
19682 grep -v '^ *+' conftest.er1 >conftest.err
19683 rm -f conftest.er1
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } &&
b4e70030
JB
19687 { ac_try='test -z "$ac_c_werror_flag"
19688 || test ! -s conftest.err'
bec39cab
AC
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; } &&
19694 { ac_try='test -s conftest.$ac_objext'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
97bf5e38 19700 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 19701else
bec39cab
AC
19702 echo "$as_me: failed program was:" >&5
19703sed 's/^/| /' conftest.$ac_ext >&5
19704
b4e70030 19705bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 19706
d45fe813 19707fi
bec39cab 19708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19709fi
19710
97bf5e38 19711 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
19712
19713cat >>confdefs.h <<\_ACEOF
97bf5e38 19714#define HAVE_PRFPREGSET_T 1
bec39cab 19715_ACEOF
d45fe813 19716
97bf5e38 19717 fi
b4e70030
JB
19718 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19719echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 19720
b4e70030
JB
19721 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19722echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19723 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19725else
bec39cab
AC
19726 cat >conftest.$ac_ext <<_ACEOF
19727/* confdefs.h. */
19728_ACEOF
19729cat confdefs.h >>conftest.$ac_ext
19730cat >>conftest.$ac_ext <<_ACEOF
19731/* end confdefs.h. */
97bf5e38
MK
19732
19733#define _SYSCALL32
19734#include <sys/procfs.h>
bec39cab
AC
19735int
19736main ()
19737{
97bf5e38 19738prgregset32_t avar
bec39cab
AC
19739 ;
19740 return 0;
19741}
19742_ACEOF
19743rm -f conftest.$ac_objext
19744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } &&
b4e70030
JB
19752 { ac_try='test -z "$ac_c_werror_flag"
19753 || test ! -s conftest.err'
bec39cab
AC
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try='test -s conftest.$ac_objext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
97bf5e38 19765 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 19766else
bec39cab
AC
19767 echo "$as_me: failed program was:" >&5
19768sed 's/^/| /' conftest.$ac_ext >&5
19769
b4e70030 19770bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 19771
d45fe813 19772fi
bec39cab 19773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19774fi
19775
97bf5e38 19776 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
19777
19778cat >>confdefs.h <<\_ACEOF
97bf5e38 19779#define HAVE_PRGREGSET32_T 1
bec39cab 19780_ACEOF
d45fe813 19781
97bf5e38 19782 fi
b4e70030
JB
19783 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19784echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 19785
b4e70030
JB
19786 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19787echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19788 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19790else
bec39cab
AC
19791 cat >conftest.$ac_ext <<_ACEOF
19792/* confdefs.h. */
19793_ACEOF
19794cat confdefs.h >>conftest.$ac_ext
19795cat >>conftest.$ac_ext <<_ACEOF
19796/* end confdefs.h. */
97bf5e38
MK
19797
19798#define _SYSCALL32
19799#include <sys/procfs.h>
bec39cab
AC
19800int
19801main ()
19802{
97bf5e38 19803prfpregset32_t avar
bec39cab
AC
19804 ;
19805 return 0;
19806}
19807_ACEOF
19808rm -f conftest.$ac_objext
19809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810 (eval $ac_compile) 2>conftest.er1
19811 ac_status=$?
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
b4e70030
JB
19817 { ac_try='test -z "$ac_c_werror_flag"
19818 || test ! -s conftest.err'
bec39cab
AC
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest.$ac_objext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
97bf5e38 19830 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 19831else
bec39cab
AC
19832 echo "$as_me: failed program was:" >&5
19833sed 's/^/| /' conftest.$ac_ext >&5
19834
b4e70030 19835bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 19836
d45fe813 19837fi
bec39cab 19838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19839fi
19840
97bf5e38 19841 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
19842
19843cat >>confdefs.h <<\_ACEOF
97bf5e38 19844#define HAVE_PRFPREGSET32_T 1
bec39cab 19845_ACEOF
d45fe813 19846
97bf5e38 19847 fi
b4e70030
JB
19848 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19849echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 19850
b4e70030
JB
19851 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19852echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19853 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19855else
bec39cab
AC
19856 cat >conftest.$ac_ext <<_ACEOF
19857/* confdefs.h. */
19858_ACEOF
19859cat confdefs.h >>conftest.$ac_ext
19860cat >>conftest.$ac_ext <<_ACEOF
19861/* end confdefs.h. */
97bf5e38 19862
d45fe813 19863#define _SYSCALL32
97bf5e38 19864#include <sys/procfs.h>
bec39cab
AC
19865int
19866main ()
19867{
97bf5e38 19868lwpid_t avar
bec39cab
AC
19869 ;
19870 return 0;
19871}
19872_ACEOF
19873rm -f conftest.$ac_objext
19874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19875 (eval $ac_compile) 2>conftest.er1
19876 ac_status=$?
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } &&
b4e70030
JB
19882 { ac_try='test -z "$ac_c_werror_flag"
19883 || test ! -s conftest.err'
bec39cab
AC
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest.$ac_objext'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
97bf5e38 19895 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 19896else
bec39cab
AC
19897 echo "$as_me: failed program was:" >&5
19898sed 's/^/| /' conftest.$ac_ext >&5
19899
b4e70030 19900bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 19901
d45fe813 19902fi
bec39cab 19903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19904fi
19905
97bf5e38 19906 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
19907
19908cat >>confdefs.h <<\_ACEOF
97bf5e38 19909#define HAVE_LWPID_T 1
bec39cab 19910_ACEOF
d45fe813 19911
97bf5e38 19912 fi
b4e70030
JB
19913 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19914echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 19915
b4e70030
JB
19916 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19917echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19918 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19920else
bec39cab
AC
19921 cat >conftest.$ac_ext <<_ACEOF
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
19926/* end confdefs.h. */
c906108c 19927
97bf5e38
MK
19928#define _SYSCALL32
19929#include <sys/procfs.h>
bec39cab
AC
19930int
19931main ()
19932{
97bf5e38 19933psaddr_t avar
bec39cab
AC
19934 ;
19935 return 0;
19936}
19937_ACEOF
19938rm -f conftest.$ac_objext
19939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19940 (eval $ac_compile) 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } &&
b4e70030
JB
19947 { ac_try='test -z "$ac_c_werror_flag"
19948 || test ! -s conftest.err'
bec39cab
AC
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; } &&
19954 { ac_try='test -s conftest.$ac_objext'
19955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956 (eval $ac_try) 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; }; then
97bf5e38 19960 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 19961else
bec39cab
AC
19962 echo "$as_me: failed program was:" >&5
19963sed 's/^/| /' conftest.$ac_ext >&5
19964
b4e70030 19965bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 19966
c906108c 19967fi
bec39cab 19968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19969fi
19970
97bf5e38 19971 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
19972
19973cat >>confdefs.h <<\_ACEOF
97bf5e38 19974#define HAVE_PSADDR_T 1
bec39cab 19975_ACEOF
c906108c 19976
97bf5e38 19977 fi
b4e70030
JB
19978 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19979echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 19980
b4e70030
JB
19981 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19982echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19983 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19985else
bec39cab
AC
19986 cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h. */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h. */
c906108c 19992
97bf5e38
MK
19993#define _SYSCALL32
19994#include <sys/procfs.h>
bec39cab
AC
19995int
19996main ()
19997{
97bf5e38 19998prsysent_t avar
bec39cab
AC
19999 ;
20000 return 0;
20001}
20002_ACEOF
20003rm -f conftest.$ac_objext
20004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20005 (eval $ac_compile) 2>conftest.er1
20006 ac_status=$?
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } &&
b4e70030
JB
20012 { ac_try='test -z "$ac_c_werror_flag"
20013 || test ! -s conftest.err'
bec39cab
AC
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } &&
20019 { ac_try='test -s conftest.$ac_objext'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
97bf5e38 20025 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 20026else
bec39cab
AC
20027 echo "$as_me: failed program was:" >&5
20028sed 's/^/| /' conftest.$ac_ext >&5
20029
b4e70030 20030bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 20031
c906108c 20032fi
bec39cab 20033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20034fi
20035
97bf5e38 20036 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
20037
20038cat >>confdefs.h <<\_ACEOF
97bf5e38 20039#define HAVE_PRSYSENT_T 1
bec39cab 20040_ACEOF
c906108c 20041
97bf5e38 20042 fi
b4e70030
JB
20043 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20044echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 20045
b4e70030
JB
20046 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20047echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20048 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20050else
bec39cab
AC
20051 cat >conftest.$ac_ext <<_ACEOF
20052/* confdefs.h. */
20053_ACEOF
20054cat confdefs.h >>conftest.$ac_ext
20055cat >>conftest.$ac_ext <<_ACEOF
20056/* end confdefs.h. */
c906108c 20057
97bf5e38
MK
20058#define _SYSCALL32
20059#include <sys/procfs.h>
bec39cab
AC
20060int
20061main ()
20062{
97bf5e38 20063pr_sigset_t avar
bec39cab
AC
20064 ;
20065 return 0;
20066}
20067_ACEOF
20068rm -f conftest.$ac_objext
20069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20070 (eval $ac_compile) 2>conftest.er1
20071 ac_status=$?
20072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } &&
b4e70030
JB
20077 { ac_try='test -z "$ac_c_werror_flag"
20078 || test ! -s conftest.err'
bec39cab
AC
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; } &&
20084 { ac_try='test -s conftest.$ac_objext'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
97bf5e38 20090 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 20091else
bec39cab
AC
20092 echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
b4e70030 20095bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 20096
c906108c 20097fi
bec39cab 20098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20099fi
20100
97bf5e38 20101 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
20102
20103cat >>confdefs.h <<\_ACEOF
97bf5e38 20104#define HAVE_PR_SIGSET_T 1
bec39cab 20105_ACEOF
c906108c 20106
97bf5e38 20107 fi
b4e70030
JB
20108 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20109echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 20110
b4e70030
JB
20111 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20112echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20113 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20115else
bec39cab
AC
20116 cat >conftest.$ac_ext <<_ACEOF
20117/* confdefs.h. */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h. */
c906108c 20122
97bf5e38
MK
20123#define _SYSCALL32
20124#include <sys/procfs.h>
bec39cab
AC
20125int
20126main ()
20127{
97bf5e38 20128pr_sigaction64_t avar
bec39cab
AC
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext
20134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135 (eval $ac_compile) 2>conftest.er1
20136 ac_status=$?
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
b4e70030
JB
20142 { ac_try='test -z "$ac_c_werror_flag"
20143 || test ! -s conftest.err'
bec39cab
AC
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest.$ac_objext'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
97bf5e38 20155 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 20156else
bec39cab
AC
20157 echo "$as_me: failed program was:" >&5
20158sed 's/^/| /' conftest.$ac_ext >&5
20159
b4e70030 20160bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 20161
c906108c 20162fi
bec39cab 20163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20164fi
20165
97bf5e38 20166 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
20167
20168cat >>confdefs.h <<\_ACEOF
97bf5e38 20169#define HAVE_PR_SIGACTION64_T 1
bec39cab 20170_ACEOF
c906108c 20171
97bf5e38 20172 fi
b4e70030
JB
20173 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20174echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 20175
b4e70030
JB
20176 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20177echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20178 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20180else
bec39cab
AC
20181 cat >conftest.$ac_ext <<_ACEOF
20182/* confdefs.h. */
20183_ACEOF
20184cat confdefs.h >>conftest.$ac_ext
20185cat >>conftest.$ac_ext <<_ACEOF
20186/* end confdefs.h. */
97bf5e38
MK
20187
20188#define _SYSCALL32
20189#include <sys/procfs.h>
bec39cab
AC
20190int
20191main ()
20192{
97bf5e38 20193pr_siginfo64_t avar
bec39cab
AC
20194 ;
20195 return 0;
20196}
20197_ACEOF
20198rm -f conftest.$ac_objext
20199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20200 (eval $ac_compile) 2>conftest.er1
20201 ac_status=$?
20202 grep -v '^ *+' conftest.er1 >conftest.err
20203 rm -f conftest.er1
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
b4e70030
JB
20207 { ac_try='test -z "$ac_c_werror_flag"
20208 || test ! -s conftest.err'
bec39cab
AC
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; } &&
20214 { ac_try='test -s conftest.$ac_objext'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20217 ac_status=$?
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; }; then
97bf5e38
MK
20220 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20221else
bec39cab
AC
20222 echo "$as_me: failed program was:" >&5
20223sed 's/^/| /' conftest.$ac_ext >&5
20224
b4e70030 20225bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 20226
97bf5e38 20227fi
bec39cab 20228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20229fi
c906108c 20230
97bf5e38 20231 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
20232
20233cat >>confdefs.h <<\_ACEOF
97bf5e38 20234#define HAVE_PR_SIGINFO64_T 1
bec39cab 20235_ACEOF
c906108c 20236
97bf5e38 20237 fi
b4e70030
JB
20238 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20239echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
20240
20241
97bf5e38
MK
20242
20243
20244
97bf5e38 20245 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
20246 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20247echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
20248 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
20250else
20251 if test "$cross_compiling" = yes; then
97bf5e38 20252 gdb_cv_prfpregset_t_broken=yes
c906108c 20253else
bec39cab
AC
20254 cat >conftest.$ac_ext <<_ACEOF
20255/* confdefs.h. */
20256_ACEOF
20257cat confdefs.h >>conftest.$ac_ext
20258cat >>conftest.$ac_ext <<_ACEOF
20259/* end confdefs.h. */
97bf5e38
MK
20260#include <sys/procfs.h>
20261 int main ()
20262 {
20263 if (sizeof (prfpregset_t) == sizeof (void *))
20264 return 1;
20265 return 0;
20266 }
bec39cab
AC
20267_ACEOF
20268rm -f conftest$ac_exeext
20269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20270 (eval $ac_link) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
97bf5e38 20279 gdb_cv_prfpregset_t_broken=no
c906108c 20280else
bec39cab
AC
20281 echo "$as_me: program exited with status $ac_status" >&5
20282echo "$as_me: failed program was:" >&5
20283sed 's/^/| /' conftest.$ac_ext >&5
20284
20285( exit $ac_status )
20286gdb_cv_prfpregset_t_broken=yes
c906108c 20287fi
b4e70030 20288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20289fi
c906108c
SS
20290fi
20291
b4e70030
JB
20292 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20293echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 20294 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
20295
20296cat >>confdefs.h <<\_ACEOF
97bf5e38 20297#define PRFPREGSET_T_BROKEN 1
bec39cab 20298_ACEOF
c906108c 20299
97bf5e38
MK
20300 fi
20301 fi
c906108c 20302
bec39cab 20303
b4e70030
JB
20304 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20305echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20306 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20308else
bec39cab
AC
20309 cat >conftest.$ac_ext <<_ACEOF
20310/* confdefs.h. */
20311_ACEOF
20312cat confdefs.h >>conftest.$ac_ext
20313cat >>conftest.$ac_ext <<_ACEOF
20314/* end confdefs.h. */
97bf5e38
MK
20315#include <unistd.h>
20316#include <sys/types.h>
20317#include <sys/procfs.h>
20318
bec39cab
AC
20319int
20320main ()
20321{
97bf5e38
MK
20322
20323 int dummy;;
20324 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
20325
20326 ;
20327 return 0;
20328}
20329_ACEOF
20330rm -f conftest.$ac_objext
20331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332 (eval $ac_compile) 2>conftest.er1
20333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
b4e70030
JB
20339 { ac_try='test -z "$ac_c_werror_flag"
20340 || test ! -s conftest.err'
bec39cab
AC
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; } &&
20346 { ac_try='test -s conftest.$ac_objext'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; }; then
97bf5e38 20352 gdb_cv_have_procfs_piocset=yes
c906108c 20353else
bec39cab
AC
20354 echo "$as_me: failed program was:" >&5
20355sed 's/^/| /' conftest.$ac_ext >&5
20356
b4e70030 20357gdb_cv_have_procfs_piocset=no
c906108c 20358fi
bec39cab 20359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20360fi
97bf5e38 20361
b4e70030
JB
20362 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20363echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 20364 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
20365
20366cat >>confdefs.h <<\_ACEOF
97bf5e38 20367#define HAVE_PROCFS_PIOCSET 1
bec39cab 20368_ACEOF
97bf5e38
MK
20369
20370 fi
c906108c 20371fi
c906108c 20372
97bf5e38 20373if test ${host} = ${target} ; then
bec39cab 20374
b4e70030
JB
20375 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20376echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20377 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20379else
20380 cat >conftest.$ac_ext <<_ACEOF
20381/* confdefs.h. */
20382_ACEOF
20383cat confdefs.h >>conftest.$ac_ext
20384cat >>conftest.$ac_ext <<_ACEOF
20385/* end confdefs.h. */
97bf5e38 20386#include <link.h>
bec39cab
AC
20387int
20388main ()
20389{
97bf5e38 20390struct link_map lm; (void) lm.l_addr;
bec39cab
AC
20391 ;
20392 return 0;
20393}
20394_ACEOF
20395rm -f conftest.$ac_objext
20396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20397 (eval $ac_compile) 2>conftest.er1
20398 ac_status=$?
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
b4e70030
JB
20404 { ac_try='test -z "$ac_c_werror_flag"
20405 || test ! -s conftest.err'
bec39cab
AC
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } &&
20411 { ac_try='test -s conftest.$ac_objext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20414 ac_status=$?
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
97bf5e38 20417 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 20418else
bec39cab
AC
20419 echo "$as_me: failed program was:" >&5
20420sed 's/^/| /' conftest.$ac_ext >&5
20421
b4e70030 20422gdb_cv_have_struct_link_map_with_l_members=no
c906108c 20423fi
bec39cab 20424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20425fi
20426
b4e70030
JB
20427 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20428echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 20429 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
20430
20431cat >>confdefs.h <<\_ACEOF
97bf5e38 20432#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 20433_ACEOF
97bf5e38
MK
20434
20435 fi
20436
bec39cab 20437
b4e70030
JB
20438 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20439echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20440 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20442else
bec39cab
AC
20443 cat >conftest.$ac_ext <<_ACEOF
20444/* confdefs.h. */
20445_ACEOF
20446cat confdefs.h >>conftest.$ac_ext
20447cat >>conftest.$ac_ext <<_ACEOF
20448/* end confdefs.h. */
97bf5e38
MK
20449#include <sys/types.h>
20450#include <link.h>
bec39cab
AC
20451int
20452main ()
20453{
97bf5e38 20454struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
20455 ;
20456 return 0;
20457}
20458_ACEOF
20459rm -f conftest.$ac_objext
20460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20461 (eval $ac_compile) 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } &&
b4e70030
JB
20468 { ac_try='test -z "$ac_c_werror_flag"
20469 || test ! -s conftest.err'
bec39cab
AC
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; } &&
20475 { ac_try='test -s conftest.$ac_objext'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
97bf5e38
MK
20481 gdb_cv_have_struct_link_map_with_lm_members=yes
20482else
bec39cab
AC
20483 echo "$as_me: failed program was:" >&5
20484sed 's/^/| /' conftest.$ac_ext >&5
20485
b4e70030 20486gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 20487fi
bec39cab 20488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20489fi
c906108c 20490
b4e70030
JB
20491 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20492echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 20493 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
20494
20495cat >>confdefs.h <<\_ACEOF
97bf5e38 20496#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 20497_ACEOF
97bf5e38
MK
20498
20499 fi
20500
bec39cab 20501
b4e70030
JB
20502 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20503echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
20504 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20506else
bec39cab
AC
20507 cat >conftest.$ac_ext <<_ACEOF
20508/* confdefs.h. */
20509_ACEOF
20510cat confdefs.h >>conftest.$ac_ext
20511cat >>conftest.$ac_ext <<_ACEOF
20512/* end confdefs.h. */
97bf5e38
MK
20513#include <sys/types.h>
20514#ifdef HAVE_NLIST_H
20515#include <nlist.h>
20516#endif
20517#include <link.h>
bec39cab
AC
20518int
20519main ()
20520{
97bf5e38 20521struct so_map lm; (void) lm.som_addr;
bec39cab
AC
20522 ;
20523 return 0;
20524}
20525_ACEOF
20526rm -f conftest.$ac_objext
20527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20528 (eval $ac_compile) 2>conftest.er1
20529 ac_status=$?
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } &&
b4e70030
JB
20535 { ac_try='test -z "$ac_c_werror_flag"
20536 || test ! -s conftest.err'
bec39cab
AC
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; } &&
20542 { ac_try='test -s conftest.$ac_objext'
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
97bf5e38
MK
20548 gdb_cv_have_struct_so_map_with_som_members=yes
20549else
bec39cab
AC
20550 echo "$as_me: failed program was:" >&5
20551sed 's/^/| /' conftest.$ac_ext >&5
20552
b4e70030 20553gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 20554fi
bec39cab 20555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20556fi
c906108c 20557
b4e70030
JB
20558 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20559echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 20560 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
20561
20562cat >>confdefs.h <<\_ACEOF
97bf5e38 20563#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 20564_ACEOF
c906108c 20565
97bf5e38 20566 fi
c906108c 20567
bec39cab 20568
b4e70030
JB
20569 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20570echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
20571 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20573else
bec39cab
AC
20574 cat >conftest.$ac_ext <<_ACEOF
20575/* confdefs.h. */
20576_ACEOF
20577cat confdefs.h >>conftest.$ac_ext
20578cat >>conftest.$ac_ext <<_ACEOF
20579/* end confdefs.h. */
97bf5e38
MK
20580#define _SYSCALL32
20581#include <sys/link.h>
bec39cab
AC
20582int
20583main ()
20584{
97bf5e38 20585struct link_map32 l;
bec39cab
AC
20586 ;
20587 return 0;
20588}
20589_ACEOF
20590rm -f conftest.$ac_objext
20591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20592 (eval $ac_compile) 2>conftest.er1
20593 ac_status=$?
20594 grep -v '^ *+' conftest.er1 >conftest.err
20595 rm -f conftest.er1
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } &&
b4e70030
JB
20599 { ac_try='test -z "$ac_c_werror_flag"
20600 || test ! -s conftest.err'
bec39cab
AC
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; } &&
20606 { ac_try='test -s conftest.$ac_objext'
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; }; then
97bf5e38
MK
20612 gdb_cv_have_struct_link_map32=yes
20613else
bec39cab
AC
20614 echo "$as_me: failed program was:" >&5
20615sed 's/^/| /' conftest.$ac_ext >&5
20616
b4e70030 20617gdb_cv_have_struct_link_map32=no
97bf5e38 20618fi
bec39cab 20619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20620fi
c906108c 20621
b4e70030
JB
20622 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20623echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 20624 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
20625
20626cat >>confdefs.h <<\_ACEOF
97bf5e38 20627#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 20628_ACEOF
c906108c 20629
60ca704f
SE
20630
20631cat >>confdefs.h <<\_ACEOF
97bf5e38 20632#define _SYSCALL32 1
bec39cab 20633_ACEOF
c906108c 20634
97bf5e38
MK
20635 fi
20636fi
c906108c 20637
bc8bcb4b 20638# Check if the compiler supports the `long long' type.
c906108c 20639
b4e70030
JB
20640echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20641echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
20642if test "${gdb_cv_c_long_long+set}" = set; then
20643 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20644else
bec39cab
AC
20645 cat >conftest.$ac_ext <<_ACEOF
20646/* confdefs.h. */
20647_ACEOF
20648cat confdefs.h >>conftest.$ac_ext
20649cat >>conftest.$ac_ext <<_ACEOF
20650/* end confdefs.h. */
bc8bcb4b 20651extern long long foo;
bec39cab
AC
20652int
20653main ()
20654{
bc8bcb4b 20655switch (foo & 2) { case 0: return 1; }
bec39cab
AC
20656 ;
20657 return 0;
20658}
20659_ACEOF
20660rm -f conftest.$ac_objext
20661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20662 (eval $ac_compile) 2>conftest.er1
20663 ac_status=$?
20664 grep -v '^ *+' conftest.er1 >conftest.err
20665 rm -f conftest.er1
20666 cat conftest.err >&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } &&
b4e70030
JB
20669 { ac_try='test -z "$ac_c_werror_flag"
20670 || test ! -s conftest.err'
bec39cab
AC
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20673 ac_status=$?
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; } &&
20676 { ac_try='test -s conftest.$ac_objext'
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20679 ac_status=$?
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
97bf5e38
MK
20682 gdb_cv_c_long_long=yes
20683else
bec39cab
AC
20684 echo "$as_me: failed program was:" >&5
20685sed 's/^/| /' conftest.$ac_ext >&5
20686
b4e70030 20687gdb_cv_c_long_long=no
97bf5e38 20688fi
bec39cab 20689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20690fi
b4e70030
JB
20691echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20692echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 20693if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
20694
20695cat >>confdefs.h <<\_ACEOF
97bf5e38 20696#define CC_HAS_LONG_LONG 1
bec39cab 20697_ACEOF
97bf5e38
MK
20698
20699fi
20700
bc8bcb4b 20701# Check if the compiler and runtime support printing long longs.
97bf5e38 20702
b4e70030
JB
20703echo "$as_me:$LINENO: checking for long long support in printf" >&5
20704echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
20705if test "${gdb_cv_printf_has_long_long+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20707else
20708 if test "$cross_compiling" = yes; then
20709 gdb_cv_printf_has_long_long=no
20710else
bec39cab
AC
20711 cat >conftest.$ac_ext <<_ACEOF
20712/* confdefs.h. */
20713_ACEOF
20714cat confdefs.h >>conftest.$ac_ext
20715cat >>conftest.$ac_ext <<_ACEOF
20716/* end confdefs.h. */
bc8bcb4b
MK
20717$ac_includes_default
20718int
20719main ()
20720{
20721char buf[32];
97bf5e38
MK
20722 long long l = 0;
20723 l = (l << 16) + 0x0123;
20724 l = (l << 16) + 0x4567;
20725 l = (l << 16) + 0x89ab;
20726 l = (l << 16) + 0xcdef;
20727 sprintf (buf, "0x%016llx", l);
20728 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
20729 ;
20730 return 0;
c906108c 20731}
bec39cab
AC
20732_ACEOF
20733rm -f conftest$ac_exeext
20734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20735 (eval $ac_link) 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740 (eval $ac_try) 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; }; then
97bf5e38
MK
20744 gdb_cv_printf_has_long_long=yes
20745else
bec39cab
AC
20746 echo "$as_me: program exited with status $ac_status" >&5
20747echo "$as_me: failed program was:" >&5
20748sed 's/^/| /' conftest.$ac_ext >&5
20749
20750( exit $ac_status )
20751gdb_cv_printf_has_long_long=no
97bf5e38 20752fi
b4e70030 20753rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20754fi
97bf5e38 20755fi
b4e70030
JB
20756echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20757echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 20758if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
20759
20760cat >>confdefs.h <<\_ACEOF
97bf5e38 20761#define PRINTF_HAS_LONG_LONG 1
bec39cab 20762_ACEOF
97bf5e38
MK
20763
20764fi
97bf5e38 20765
bc8bcb4b
MK
20766# Check if the compiler supports the `long double' type. We can't use
20767# AC_C_LONG_DOUBLE because that one does additional checks on the
20768# constants defined in <float.h> that fail on some systems,
20769# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 20770
b4e70030
JB
20771echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20772echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 20773if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 20774 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20775else
bec39cab
AC
20776 cat >conftest.$ac_ext <<_ACEOF
20777/* confdefs.h. */
20778_ACEOF
20779cat confdefs.h >>conftest.$ac_ext
20780cat >>conftest.$ac_ext <<_ACEOF
20781/* end confdefs.h. */
97bf5e38 20782long double foo;
bec39cab
AC
20783_ACEOF
20784rm -f conftest.$ac_objext
20785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20786 (eval $ac_compile) 2>conftest.er1
20787 ac_status=$?
20788 grep -v '^ *+' conftest.er1 >conftest.err
20789 rm -f conftest.er1
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
b4e70030
JB
20793 { ac_try='test -z "$ac_c_werror_flag"
20794 || test ! -s conftest.err'
bec39cab
AC
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; } &&
20800 { ac_try='test -s conftest.$ac_objext'
20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20803 ac_status=$?
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
bc8bcb4b 20806 gdb_cv_c_long_double=yes
97bf5e38 20807else
bec39cab
AC
20808 echo "$as_me: failed program was:" >&5
20809sed 's/^/| /' conftest.$ac_ext >&5
20810
b4e70030 20811gdb_cv_c_long_double=no
97bf5e38 20812fi
bec39cab 20813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20814fi
b4e70030
JB
20815echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20816echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 20817if test $gdb_cv_c_long_double = yes; then
c906108c 20818
bc8bcb4b 20819cat >>confdefs.h <<\_ACEOF
97bf5e38 20820#define HAVE_LONG_DOUBLE 1
bec39cab 20821_ACEOF
97bf5e38
MK
20822
20823fi
20824
bc8bcb4b 20825# Check if the compiler and runtime support printing long doubles.
97bf5e38 20826
b4e70030
JB
20827echo "$as_me:$LINENO: checking for long double support in printf" >&5
20828echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
20829if test "${gdb_cv_printf_has_long_double+set}" = set; then
20830 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20831else
20832 if test "$cross_compiling" = yes; then
20833 gdb_cv_printf_has_long_double=no
20834else
bec39cab
AC
20835 cat >conftest.$ac_ext <<_ACEOF
20836/* confdefs.h. */
20837_ACEOF
20838cat confdefs.h >>conftest.$ac_ext
20839cat >>conftest.$ac_ext <<_ACEOF
20840/* end confdefs.h. */
bc8bcb4b
MK
20841$ac_includes_default
20842int
20843main ()
20844{
20845char buf[16];
97bf5e38
MK
20846 long double f = 3.141592653;
20847 sprintf (buf, "%Lg", f);
20848 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
20849 ;
20850 return 0;
97bf5e38 20851}
bec39cab
AC
20852_ACEOF
20853rm -f conftest$ac_exeext
20854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20855 (eval $ac_link) 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; }; then
97bf5e38 20864 gdb_cv_printf_has_long_double=yes
c906108c 20865else
bec39cab
AC
20866 echo "$as_me: program exited with status $ac_status" >&5
20867echo "$as_me: failed program was:" >&5
20868sed 's/^/| /' conftest.$ac_ext >&5
20869
20870( exit $ac_status )
20871gdb_cv_printf_has_long_double=no
c906108c 20872fi
b4e70030 20873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20874fi
c906108c 20875fi
b4e70030
JB
20876echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20877echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 20878if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
20879
20880cat >>confdefs.h <<\_ACEOF
97bf5e38 20881#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 20882_ACEOF
97bf5e38
MK
20883
20884fi
97bf5e38 20885
bc8bcb4b 20886# Check if the compiler and runtime support scanning long doubles.
97bf5e38 20887
b4e70030
JB
20888echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20889echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
20890if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20892else
20893 if test "$cross_compiling" = yes; then
20894 gdb_cv_scanf_has_long_double=no
20895else
bec39cab
AC
20896 cat >conftest.$ac_ext <<_ACEOF
20897/* confdefs.h. */
20898_ACEOF
20899cat confdefs.h >>conftest.$ac_ext
20900cat >>conftest.$ac_ext <<_ACEOF
20901/* end confdefs.h. */
bc8bcb4b
MK
20902#include <stdio.h>
20903int
20904main ()
20905{
20906char *buf = "3.141592653";
97bf5e38
MK
20907 long double f = 0;
20908 sscanf (buf, "%Lg", &f);
20909 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
20910 ;
20911 return 0;
97bf5e38 20912}
bec39cab
AC
20913_ACEOF
20914rm -f conftest$ac_exeext
20915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20916 (eval $ac_link) 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
97bf5e38
MK
20925 gdb_cv_scanf_has_long_double=yes
20926else
bec39cab
AC
20927 echo "$as_me: program exited with status $ac_status" >&5
20928echo "$as_me: failed program was:" >&5
20929sed 's/^/| /' conftest.$ac_ext >&5
20930
20931( exit $ac_status )
20932gdb_cv_scanf_has_long_double=no
97bf5e38 20933fi
b4e70030 20934rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20935fi
c906108c 20936fi
b4e70030
JB
20937echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20938echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 20939if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
20940
20941cat >>confdefs.h <<\_ACEOF
97bf5e38 20942#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 20943_ACEOF
97bf5e38
MK
20944
20945fi
c906108c 20946
438013df
AO
20947case ${host_os} in
20948aix*)
b4e70030
JB
20949 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20950echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
20951if test "${gdb_cv_bigtoc+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 20953else
bec39cab 20954
438013df
AO
20955 SAVE_LDFLAGS=$LDFLAGS
20956
20957 case $GCC in
20958 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20959 *) gdb_cv_bigtoc=-bbigtoc ;;
20960 esac
20961
20962 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
20963 cat >conftest.$ac_ext <<_ACEOF
20964/* confdefs.h. */
20965_ACEOF
20966cat confdefs.h >>conftest.$ac_ext
20967cat >>conftest.$ac_ext <<_ACEOF
20968/* end confdefs.h. */
438013df 20969
bec39cab
AC
20970int
20971main ()
20972{
438013df 20973int i;
bec39cab
AC
20974 ;
20975 return 0;
20976}
20977_ACEOF
20978rm -f conftest.$ac_objext conftest$ac_exeext
20979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20980 (eval $ac_link) 2>conftest.er1
20981 ac_status=$?
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
b4e70030
JB
20987 { ac_try='test -z "$ac_c_werror_flag"
20988 || test ! -s conftest.err'
bec39cab
AC
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try='test -s conftest$ac_exeext'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
438013df
AO
21000 :
21001else
bec39cab
AC
21002 echo "$as_me: failed program was:" >&5
21003sed 's/^/| /' conftest.$ac_ext >&5
21004
b4e70030 21005gdb_cv_bigtoc=
438013df 21006fi
bec39cab
AC
21007rm -f conftest.err conftest.$ac_objext \
21008 conftest$ac_exeext conftest.$ac_ext
ec76baa5 21009 LDFLAGS="${SAVE_LDFLAGS}"
438013df 21010
bec39cab 21011fi
b4e70030
JB
21012echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21013echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
21014 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21015 ;;
21016esac
21017
c906108c
SS
21018
21019
21020if test ${build} = ${host} -a ${host} = ${target} ; then
21021 case ${host_os} in
21022 hpux*)
b4e70030
JB
21023 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21024echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
21025 if test -f /usr/include/dce/cma_config.h ; then
21026 if test "$GCC" = "yes" ; then
b4e70030
JB
21027 echo "$as_me:$LINENO: result: yes" >&5
21028echo "${ECHO_T}yes" >&6
60ca704f
SE
21029
21030cat >>confdefs.h <<\_ACEOF
c906108c 21031#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 21032_ACEOF
c906108c 21033
3483b318 21034 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
21035 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21036 else
b4e70030
JB
21037 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21038echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
21039 fi
21040 else
b4e70030
JB
21041 echo "$as_me:$LINENO: result: no" >&5
21042echo "${ECHO_T}no" >&6
c906108c
SS
21043 fi
21044 ;;
21045 solaris*)
d92419e5
JB
21046 # See if thread_db library is around for Solaris thread debugging.
21047 # Note that we must explicitly test for version 1 of the library
21048 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21049 # the same API.
b4e70030
JB
21050 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21051echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 21052 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
21053 echo "$as_me:$LINENO: result: yes" >&5
21054echo "${ECHO_T}yes" >&6
60ca704f
SE
21055
21056cat >>confdefs.h <<\_ACEOF
c906108c 21057#define HAVE_THREAD_DB_LIB 1
bec39cab 21058_ACEOF
c906108c 21059
3483b318 21060 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 21061 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 21062
b4e70030
JB
21063echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21064echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
21065if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21067else
bec39cab 21068 ac_check_lib_save_LIBS=$LIBS
c906108c 21069LIBS="-ldl $LIBS"
bec39cab
AC
21070cat >conftest.$ac_ext <<_ACEOF
21071/* confdefs.h. */
21072_ACEOF
21073cat confdefs.h >>conftest.$ac_ext
21074cat >>conftest.$ac_ext <<_ACEOF
21075/* end confdefs.h. */
21076
b4e70030 21077/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21078#ifdef __cplusplus
21079extern "C"
21080#endif
b4e70030
JB
21081/* We use char because int might match the return type of a gcc2
21082 builtin and then its argument prototype would still apply. */
bec39cab
AC
21083char dlopen ();
21084int
21085main ()
21086{
b4e70030 21087dlopen ();
bec39cab
AC
21088 ;
21089 return 0;
21090}
21091_ACEOF
21092rm -f conftest.$ac_objext conftest$ac_exeext
21093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21094 (eval $ac_link) 2>conftest.er1
21095 ac_status=$?
21096 grep -v '^ *+' conftest.er1 >conftest.err
21097 rm -f conftest.er1
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } &&
b4e70030
JB
21101 { ac_try='test -z "$ac_c_werror_flag"
21102 || test ! -s conftest.err'
bec39cab
AC
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; } &&
21108 { ac_try='test -s conftest$ac_exeext'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }; then
21114 ac_cv_lib_dl_dlopen=yes
21115else
21116 echo "$as_me: failed program was:" >&5
21117sed 's/^/| /' conftest.$ac_ext >&5
21118
b4e70030 21119ac_cv_lib_dl_dlopen=no
bec39cab
AC
21120fi
21121rm -f conftest.err conftest.$ac_objext \
21122 conftest$ac_exeext conftest.$ac_ext
21123LIBS=$ac_check_lib_save_LIBS
21124fi
b4e70030
JB
21125echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21126echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
21127if test $ac_cv_lib_dl_dlopen = yes; then
21128 cat >>confdefs.h <<_ACEOF
21129#define HAVE_LIBDL 1
21130_ACEOF
c906108c
SS
21131
21132 LIBS="-ldl $LIBS"
21133
c906108c
SS
21134fi
21135
21136 if test "$GCC" = "yes" ; then
21137 # The GNU linker requires the -export-dynamic option to make
21138 # all symbols visible in the dynamic symbol table.
21139 hold_ldflags=$LDFLAGS
b4e70030
JB
21140 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21141echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 21142 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
21143 cat >conftest.$ac_ext <<_ACEOF
21144/* confdefs.h. */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h. */
c906108c 21149
bec39cab
AC
21150int
21151main ()
21152{
c906108c 21153int i;
bec39cab
AC
21154 ;
21155 return 0;
21156}
21157_ACEOF
21158rm -f conftest.$ac_objext conftest$ac_exeext
21159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21160 (eval $ac_link) 2>conftest.er1
21161 ac_status=$?
21162 grep -v '^ *+' conftest.er1 >conftest.err
21163 rm -f conftest.er1
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
b4e70030
JB
21167 { ac_try='test -z "$ac_c_werror_flag"
21168 || test ! -s conftest.err'
bec39cab
AC
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21171 ac_status=$?
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try='test -s conftest$ac_exeext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
c906108c
SS
21180 found=yes
21181else
bec39cab
AC
21182 echo "$as_me: failed program was:" >&5
21183sed 's/^/| /' conftest.$ac_ext >&5
21184
b4e70030 21185found=no
c906108c 21186fi
bec39cab
AC
21187rm -f conftest.err conftest.$ac_objext \
21188 conftest$ac_exeext conftest.$ac_ext
c906108c 21189 LDFLAGS=$hold_ldflags
b4e70030
JB
21190 echo "$as_me:$LINENO: result: $found" >&5
21191echo "${ECHO_T}$found" >&6
c906108c
SS
21192 if test $found = yes; then
21193 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21194 fi
21195 fi
21196 # Sun randomly tweaked the prototypes in <proc_service.h>
21197 # at one point.
b4e70030
JB
21198 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21199echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
21200 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21202else
bec39cab
AC
21203
21204 cat >conftest.$ac_ext <<_ACEOF
21205/* confdefs.h. */
21206_ACEOF
21207cat confdefs.h >>conftest.$ac_ext
21208cat >>conftest.$ac_ext <<_ACEOF
21209/* end confdefs.h. */
c906108c
SS
21210
21211 #include <proc_service.h>
21212 ps_err_e ps_pdwrite
21213 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 21214
bec39cab
AC
21215int
21216main ()
21217{
21218
21219 ;
21220 return 0;
21221}
21222_ACEOF
21223rm -f conftest.$ac_objext
21224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21225 (eval $ac_compile) 2>conftest.er1
21226 ac_status=$?
21227 grep -v '^ *+' conftest.er1 >conftest.err
21228 rm -f conftest.er1
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } &&
b4e70030
JB
21232 { ac_try='test -z "$ac_c_werror_flag"
21233 || test ! -s conftest.err'
bec39cab
AC
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21236 ac_status=$?
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; } &&
21239 { ac_try='test -s conftest.$ac_objext'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
c906108c
SS
21245 gdb_cv_proc_service_is_old=no
21246else
bec39cab
AC
21247 echo "$as_me: failed program was:" >&5
21248sed 's/^/| /' conftest.$ac_ext >&5
21249
b4e70030 21250gdb_cv_proc_service_is_old=yes
c906108c 21251fi
bec39cab
AC
21252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21253
c906108c
SS
21254fi
21255
b4e70030
JB
21256 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21257echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 21258 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
21259
21260cat >>confdefs.h <<\_ACEOF
c906108c 21261#define PROC_SERVICE_IS_OLD 1
bec39cab 21262_ACEOF
c906108c
SS
21263
21264 fi
21265 else
b4e70030
JB
21266 echo "$as_me:$LINENO: result: no" >&5
21267echo "${ECHO_T}no" >&6
c906108c
SS
21268 fi
21269 ;;
d92419e5 21270 aix*)
b4e70030
JB
21271 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21272echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
21273 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275else
21276 cat >conftest.$ac_ext <<_ACEOF
21277/* confdefs.h. */
21278_ACEOF
21279cat confdefs.h >>conftest.$ac_ext
21280cat >>conftest.$ac_ext <<_ACEOF
21281/* end confdefs.h. */
d92419e5 21282#include <sys/pthdebug.h>
bec39cab
AC
21283int
21284main ()
21285{
d92419e5
JB
21286#ifndef PTHDB_VERSION_3
21287 #error
21288 #endif
bec39cab
AC
21289 ;
21290 return 0;
21291}
21292_ACEOF
21293rm -f conftest.$ac_objext
21294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21295 (eval $ac_compile) 2>conftest.er1
21296 ac_status=$?
21297 grep -v '^ *+' conftest.er1 >conftest.err
21298 rm -f conftest.er1
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } &&
b4e70030
JB
21302 { ac_try='test -z "$ac_c_werror_flag"
21303 || test ! -s conftest.err'
bec39cab
AC
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; } &&
21309 { ac_try='test -s conftest.$ac_objext'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; }; then
d92419e5
JB
21315 gdb_cv_have_aix_thread_debug=yes
21316else
bec39cab
AC
21317 echo "$as_me: failed program was:" >&5
21318sed 's/^/| /' conftest.$ac_ext >&5
21319
b4e70030 21320gdb_cv_have_aix_thread_debug=no
d92419e5 21321fi
bec39cab 21322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
21323fi
21324
b4e70030
JB
21325 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21326echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
21327 if test $gdb_cv_have_aix_thread_debug = yes; then
21328 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 21329 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
21330 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21331 fi
21332 ;;
c906108c 21333 esac
bec39cab 21334
c906108c
SS
21335fi
21336
3f47be5c 21337if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
21338 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
21339echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
21340if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21342else
21343 cat >conftest.$ac_ext <<_ACEOF
21344/* confdefs.h. */
21345_ACEOF
21346cat confdefs.h >>conftest.$ac_ext
21347cat >>conftest.$ac_ext <<_ACEOF
21348/* end confdefs.h. */
3f47be5c 21349#include <thread_db.h>
bec39cab
AC
21350int
21351main ()
21352{
3f47be5c 21353int i = TD_NOTALLOC;
bec39cab
AC
21354 ;
21355 return 0;
21356}
21357_ACEOF
21358rm -f conftest.$ac_objext
21359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21360 (eval $ac_compile) 2>conftest.er1
21361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
b4e70030
JB
21367 { ac_try='test -z "$ac_c_werror_flag"
21368 || test ! -s conftest.err'
bec39cab
AC
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest.$ac_objext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
3f47be5c
EZ
21380 gdb_cv_thread_db_h_has_td_notalloc=yes
21381else
bec39cab
AC
21382 echo "$as_me: failed program was:" >&5
21383sed 's/^/| /' conftest.$ac_ext >&5
21384
b4e70030 21385gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 21386
3f47be5c 21387fi
bec39cab 21388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 21389
bec39cab 21390fi
b4e70030
JB
21391echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
21392echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
21393 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
21394echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
21395if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21397else
21398 cat >conftest.$ac_ext <<_ACEOF
21399/* confdefs.h. */
21400_ACEOF
21401cat confdefs.h >>conftest.$ac_ext
21402cat >>conftest.$ac_ext <<_ACEOF
21403/* end confdefs.h. */
21404#include <thread_db.h>
21405int
21406main ()
21407{
21408int i = TD_VERSION;
21409 ;
21410 return 0;
21411}
21412_ACEOF
21413rm -f conftest.$ac_objext
21414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21415 (eval $ac_compile) 2>conftest.er1
21416 ac_status=$?
21417 grep -v '^ *+' conftest.er1 >conftest.err
21418 rm -f conftest.er1
21419 cat conftest.err >&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); } &&
21422 { ac_try='test -z "$ac_c_werror_flag"
21423 || test ! -s conftest.err'
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); }; } &&
21429 { ac_try='test -s conftest.$ac_objext'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435 gdb_cv_thread_db_h_has_td_version=yes
21436else
21437 echo "$as_me: failed program was:" >&5
21438sed 's/^/| /' conftest.$ac_ext >&5
21439
21440gdb_cv_thread_db_h_has_td_version=no
21441
21442fi
21443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21444
21445fi
21446echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21447echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21448 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21449echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21450if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21452else
21453 cat >conftest.$ac_ext <<_ACEOF
21454/* confdefs.h. */
21455_ACEOF
21456cat confdefs.h >>conftest.$ac_ext
21457cat >>conftest.$ac_ext <<_ACEOF
21458/* end confdefs.h. */
21459#include <thread_db.h>
21460int
21461main ()
21462{
21463int i = TD_NOTLS;
21464 ;
21465 return 0;
21466}
21467_ACEOF
21468rm -f conftest.$ac_objext
21469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21470 (eval $ac_compile) 2>conftest.er1
21471 ac_status=$?
21472 grep -v '^ *+' conftest.er1 >conftest.err
21473 rm -f conftest.er1
21474 cat conftest.err >&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } &&
21477 { ac_try='test -z "$ac_c_werror_flag"
21478 || test ! -s conftest.err'
21479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21481 ac_status=$?
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); }; } &&
21484 { ac_try='test -s conftest.$ac_objext'
21485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21487 ac_status=$?
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; }; then
21490 gdb_cv_thread_db_h_has_td_notls=yes
21491else
21492 echo "$as_me: failed program was:" >&5
21493sed 's/^/| /' conftest.$ac_ext >&5
21494
21495gdb_cv_thread_db_h_has_td_notls=no
21496
21497fi
21498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21499
21500fi
21501echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21502echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
21503fi
21504if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
21505
21506cat >>confdefs.h <<\_ACEOF
3f47be5c 21507#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 21508_ACEOF
3f47be5c 21509
59f80f10
DJ
21510fi
21511if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21512
21513cat >>confdefs.h <<\_ACEOF
21514#define THREAD_DB_HAS_TD_VERSION 1
21515_ACEOF
21516
21517fi
21518if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21519
21520cat >>confdefs.h <<\_ACEOF
21521#define THREAD_DB_HAS_TD_NOTLS 1
21522_ACEOF
21523
3f47be5c
EZ
21524fi
21525
b757528f 21526if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
21527 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21528echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
21529if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531else
21532 cat >conftest.$ac_ext <<_ACEOF
21533/* confdefs.h. */
21534_ACEOF
21535cat confdefs.h >>conftest.$ac_ext
21536cat >>conftest.$ac_ext <<_ACEOF
21537/* end confdefs.h. */
b757528f 21538#include <sys/syscall.h>
bec39cab
AC
21539int
21540main ()
21541{
b757528f 21542int i = __NR_tkill;
bec39cab
AC
21543 ;
21544 return 0;
21545}
21546_ACEOF
21547rm -f conftest.$ac_objext
21548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21549 (eval $ac_compile) 2>conftest.er1
21550 ac_status=$?
21551 grep -v '^ *+' conftest.er1 >conftest.err
21552 rm -f conftest.er1
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } &&
b4e70030
JB
21556 { ac_try='test -z "$ac_c_werror_flag"
21557 || test ! -s conftest.err'
bec39cab
AC
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; } &&
21563 { ac_try='test -s conftest.$ac_objext'
21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21566 ac_status=$?
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; }; then
b757528f
JJ
21569 gdb_cv_sys_syscall_h_has_tkill=yes
21570else
bec39cab
AC
21571 echo "$as_me: failed program was:" >&5
21572sed 's/^/| /' conftest.$ac_ext >&5
21573
b4e70030 21574gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 21575
b757528f 21576fi
bec39cab 21577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 21578
bec39cab 21579fi
b4e70030
JB
21580echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21581echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
21582fi
21583if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
21584
21585cat >>confdefs.h <<\_ACEOF
b757528f 21586#define HAVE_TKILL_SYSCALL 1
bec39cab 21587_ACEOF
b757528f
JJ
21588
21589fi
21590
fb40c209 21591
bec39cab 21592
b4e70030 21593# Check whether --with-sysroot or --without-sysroot was given.
030292b7 21594if test "${with_sysroot+set}" = set; then
b4e70030
JB
21595 withval="$with_sysroot"
21596
030292b7 21597 case ${with_sysroot} in
715d1656 21598 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
21599 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21600 esac
21601
21602 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21603
07abfebf
RS
21604 if test "x$prefix" = xNONE; then
21605 test_prefix=/usr/local
21606 else
21607 test_prefix=$prefix
21608 fi
aa28a74e 21609 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 21610 test_exec_prefix=$test_prefix
030292b7 21611 else
07abfebf 21612 test_exec_prefix=$exec_prefix
030292b7
DJ
21613 fi
21614 case ${TARGET_SYSTEM_ROOT} in
715d1656 21615 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
21616 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
21617 '${prefix}'|'${prefix}/'*|\
715d1656 21618 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
21619 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21620 TARGET_SYSTEM_ROOT_DEFINE="$t"
21621 ;;
21622 esac
21623
21624else
bec39cab 21625
030292b7
DJ
21626 TARGET_SYSTEM_ROOT=
21627 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21628
b4e70030 21629fi;
030292b7
DJ
21630
21631
21632
b4e70030 21633# Check whether --enable-werror or --disable-werror was given.
094a342e 21634if test "${enable_werror+set}" = set; then
b4e70030
JB
21635 enableval="$enable_werror"
21636 case "${enableval}" in
094a342e
MK
21637 yes | y) ERROR_ON_WARNING="yes" ;;
21638 no | n) ERROR_ON_WARNING="no" ;;
21639 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21640echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21641 { (exit 1); exit 1; }; } ;;
21642 esac
b4e70030 21643fi;
094a342e
MK
21644
21645# Enable -Werror by default when using gcc
21646if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21647 ERROR_ON_WARNING=yes
21648fi
21649
21650WERROR_CFLAGS=""
21651if test "${ERROR_ON_WARNING}" = yes ; then
21652 WERROR_CFLAGS="-Werror"
21653fi
21654
aa79a185
DJ
21655# The entries after -Wno-pointer-sign are disabled warnings which may
21656# be enabled in the future, which can not currently be used to build
21657# GDB.
21658# NOTE: If you change this list, remember to update
3b851bce 21659# gdb/doc/gdbint.texinfo.
aa79a185
DJ
21660build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21661-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 21662-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 21663
b4e70030 21664# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 21665if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
21666 enableval="$enable_build_warnings"
21667 case "${enableval}" in
c906108c
SS
21668 yes) ;;
21669 no) build_warnings="-w";;
21670 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21671 build_warnings="${build_warnings} ${t}";;
21672 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21673 build_warnings="${t} ${build_warnings}";;
21674 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21675esac
d4f3574e 21676if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 21677 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 21678fi
b4e70030 21679fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 21680if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
21681 enableval="$enable_gdb_build_warnings"
21682 case "${enableval}" in
3b851bce
AC
21683 yes) ;;
21684 no) build_warnings="-w";;
21685 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21686 build_warnings="${build_warnings} ${t}";;
21687 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21688 build_warnings="${t} ${build_warnings}";;
21689 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21690esac
21691if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21692 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21693fi
b4e70030 21694fi; WARN_CFLAGS=""
c906108c
SS
21695if test "x${build_warnings}" != x -a "x$GCC" = xyes
21696then
b4e70030
JB
21697 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21698echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
21699 # Separate out the -Werror flag as some files just cannot be
21700 # compiled with it enabled.
21701 for w in ${build_warnings}; do
21702 case $w in
21703 -Werr*) WERROR_CFLAGS=-Werror ;;
21704 *) # Check that GCC accepts it
4536bbc6
AC
21705 saved_CFLAGS="$CFLAGS"
21706 CFLAGS="$CFLAGS $w"
bec39cab
AC
21707 cat >conftest.$ac_ext <<_ACEOF
21708/* confdefs.h. */
21709_ACEOF
21710cat confdefs.h >>conftest.$ac_ext
21711cat >>conftest.$ac_ext <<_ACEOF
21712/* end confdefs.h. */
4536bbc6 21713
bec39cab
AC
21714int
21715main ()
21716{
4536bbc6 21717
bec39cab
AC
21718 ;
21719 return 0;
21720}
21721_ACEOF
21722rm -f conftest.$ac_objext
21723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21724 (eval $ac_compile) 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
b4e70030
JB
21731 { ac_try='test -z "$ac_c_werror_flag"
21732 || test ! -s conftest.err'
bec39cab
AC
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } &&
21738 { ac_try='test -s conftest.$ac_objext'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
4536bbc6
AC
21744 WARN_CFLAGS="${WARN_CFLAGS} $w"
21745else
bec39cab
AC
21746 echo "$as_me: failed program was:" >&5
21747sed 's/^/| /' conftest.$ac_ext >&5
21748
4536bbc6 21749fi
bec39cab 21750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 21751 CFLAGS="$saved_CFLAGS"
746a987d
AC
21752 esac
21753 done
aa79a185
DJ
21754 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21755echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
21756fi
21757
21758
104c1213 21759
7a292a7a 21760# In the Cygwin environment, we need some additional flags.
b4e70030
JB
21761echo "$as_me:$LINENO: checking for cygwin" >&5
21762echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
21763if test "${gdb_cv_os_cygwin+set}" = set; then
21764 echo $ECHO_N "(cached) $ECHO_C" >&6
21765else
21766 cat >conftest.$ac_ext <<_ACEOF
21767/* confdefs.h. */
21768_ACEOF
21769cat confdefs.h >>conftest.$ac_ext
21770cat >>conftest.$ac_ext <<_ACEOF
21771/* end confdefs.h. */
7a292a7a
SS
21772
21773#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21774lose
21775#endif
bec39cab 21776_ACEOF
7a292a7a 21777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 21778 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
21779 gdb_cv_os_cygwin=yes
21780else
7a292a7a
SS
21781 gdb_cv_os_cygwin=no
21782fi
21783rm -f conftest*
21784
21785fi
b4e70030
JB
21786echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21787echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 21788
aff38e61 21789
3eb25fda 21790SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 21791case ${host} in
95cbc983
AC
21792 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21793 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 21794 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
21795esac
21796
21797
cd0fc7c3
SS
21798# libreadline needs libuser32.a in a cygwin environment
21799WIN32LIBS=
21800if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
21801 WIN32LIBS="-luser32"
21802 case "${target}" in
21803 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21804 ;;
21805 esac
cd0fc7c3 21806fi
c906108c 21807
b4505029
MM
21808# The ser-tcp.c module requires sockets.
21809case ${host} in
21810 *mingw32*)
21811
21812cat >>confdefs.h <<\_ACEOF
21813#define USE_WIN32API 1
21814_ACEOF
21815
21816 WIN32LIBS="$WIN32LIBS -lws2_32"
21817 ;;
21818esac
21819
7a292a7a 21820
31d99776
DJ
21821# Add ELF support to GDB, but only if BFD includes ELF support.
21822OLD_CFLAGS=$CFLAGS
21823OLD_LDFLAGS=$LDFLAGS
21824OLD_LIBS=$LIBS
cab58a69 21825CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776
DJ
21826LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
21827LIBS="$LIBS -lbfd -liberty"
21828echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
21829echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
21830if test "${gdb_cv_var_elf+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21832else
21833 cat >conftest.$ac_ext <<_ACEOF
21834/* confdefs.h. */
21835_ACEOF
21836cat confdefs.h >>conftest.$ac_ext
21837cat >>conftest.$ac_ext <<_ACEOF
21838/* end confdefs.h. */
21839#include <stdlib.h>
21840#include "bfd.h"
21841#include "elf-bfd.h"
21842
21843int
21844main ()
21845{
21846bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
21847 ;
21848 return 0;
21849}
21850_ACEOF
21851rm -f conftest.$ac_objext conftest$ac_exeext
21852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21853 (eval $ac_link) 2>conftest.er1
21854 ac_status=$?
21855 grep -v '^ *+' conftest.er1 >conftest.err
21856 rm -f conftest.er1
21857 cat conftest.err >&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } &&
21860 { ac_try='test -z "$ac_c_werror_flag"
21861 || test ! -s conftest.err'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try='test -s conftest$ac_exeext'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; }; then
21873 gdb_cv_var_elf=yes
21874else
21875 echo "$as_me: failed program was:" >&5
21876sed 's/^/| /' conftest.$ac_ext >&5
21877
21878gdb_cv_var_elf=no
21879fi
21880rm -f conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext conftest.$ac_ext
21882fi
21883echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
21884echo "${ECHO_T}$gdb_cv_var_elf" >&6
21885if test $gdb_cv_var_elf = yes; then
21886 CONFIG_OBS="$CONFIG_OBS elfread.o"
21887
21888cat >>confdefs.h <<\_ACEOF
21889#define HAVE_ELF 1
21890_ACEOF
21891
21892fi
21893CFLAGS=$OLD_CFLAGS
21894LDFLAGS=$OLD_LDFLAGS
21895LIBS=$OLD_LIBS
21896
121ce6e5
DJ
21897# Add any host-specific objects to GDB.
21898CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21899
3fc11d3e
JM
21900LIBGUI="../libgui/src/libgui.a"
21901GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21902
21903
7a292a7a 21904
3fc11d3e
JM
21905WIN32LDAPP=
21906
21907
21908
d91670b9
CV
21909case "${host}" in
21910*-*-cygwin*)
21911 configdir="win"
21912 ;;
21913*)
21914 configdir="unix"
21915 ;;
21916esac
3fc11d3e
JM
21917
21918GDBTKLIBS=
21919if test "${enable_gdbtk}" = "yes"; then
21920
d1c3b63a
KS
21921 # Gdbtk must have an absolute path to srcdir in order to run
21922 # properly when not installed.
21923 here=`pwd`
21924 cd ${srcdir}
21925 GDBTK_SRC_DIR=`pwd`
21926 cd $here
21927
bec39cab 21928
3fc11d3e
JM
21929#
21930# Ok, lets find the tcl configuration
bec39cab 21931# First, look for one uninstalled.
3fc11d3e
JM
21932# the alternative search directory is invoked by --with-tclconfig
21933#
21934
21935if test x"${no_tcl}" = x ; then
21936 # we reset no_tcl in case something fails here
21937 no_tcl=true
bec39cab 21938
b4e70030 21939# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 21940if test "${with_tclconfig+set}" = set; then
b4e70030
JB
21941 withval="$with_tclconfig"
21942 with_tclconfig=${withval}
21943fi;
21944 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21945echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
21946 if test "${ac_cv_c_tclconfig+set}" = set; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21948else
bec39cab 21949
3fc11d3e
JM
21950
21951 # First check to see if --with-tclconfig was specified.
21952 if test x"${with_tclconfig}" != x ; then
21953 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21954 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21955 else
bec39cab
AC
21956 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21957echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21958 { (exit 1); exit 1; }; }
3fc11d3e
JM
21959 fi
21960 fi
21961
21962 # then check for a private Tcl installation
21963 if test x"${ac_cv_c_tclconfig}" = x ; then
21964 for i in \
21965 ../tcl \
21966 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21967 ../../tcl \
21968 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21969 ../../../tcl \
21970 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21971 if test -f "$i/${configdir}/tclConfig.sh" ; then
21972 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21973 break
21974 fi
21975 done
21976 fi
21977 # check in a few common install locations
21978 if test x"${ac_cv_c_tclconfig}" = x ; then
21979 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21980 if test -f "$i/tclConfig.sh" ; then
21981 ac_cv_c_tclconfig=`(cd $i; pwd)`
21982 break
21983 fi
21984 done
21985 fi
21986 # check in a few other private locations
21987 if test x"${ac_cv_c_tclconfig}" = x ; then
21988 for i in \
21989 ${srcdir}/../tcl \
21990 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21991 if test -f "$i/${configdir}/tclConfig.sh" ; then
21992 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21993 break
21994 fi
21995 done
21996 fi
bec39cab 21997
3fc11d3e
JM
21998fi
21999
22000 if test x"${ac_cv_c_tclconfig}" = x ; then
22001 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
22002 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22003echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
22004 else
22005 no_tcl=
22006 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
22007 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22008echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
22009 fi
22010fi
22011
22012 if test -z "${no_tcl}"; then
bec39cab 22013
3fc11d3e
JM
22014 . $TCLCONFIG
22015
3fc11d3e
JM
22016
22017
22018
22019
3fc11d3e
JM
22020
22021
22022
bec39cab
AC
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
3fc11d3e
JM
22042#
22043# Ok, lets find the tk configuration
bec39cab 22044# First, look for one uninstalled.
3fc11d3e
JM
22045# the alternative search directory is invoked by --with-tkconfig
22046#
22047
22048if test x"${no_tk}" = x ; then
22049 # we reset no_tk in case something fails here
22050 no_tk=true
bec39cab 22051
b4e70030 22052# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 22053if test "${with_tkconfig+set}" = set; then
b4e70030
JB
22054 withval="$with_tkconfig"
22055 with_tkconfig=${withval}
22056fi;
22057 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22058echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
22059 if test "${ac_cv_c_tkconfig+set}" = set; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22061else
bec39cab 22062
3fc11d3e
JM
22063
22064 # First check to see if --with-tkconfig was specified.
22065 if test x"${with_tkconfig}" != x ; then
22066 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22067 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22068 else
bec39cab
AC
22069 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22070echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22071 { (exit 1); exit 1; }; }
3fc11d3e
JM
22072 fi
22073 fi
22074
22075 # then check for a private Tk library
22076 if test x"${ac_cv_c_tkconfig}" = x ; then
22077 for i in \
22078 ../tk \
22079 `ls -dr ../tk[4-9]* 2>/dev/null` \
22080 ../../tk \
22081 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22082 ../../../tk \
22083 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22084 if test -f "$i/${configdir}/tkConfig.sh" ; then
22085 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22086 break
22087 fi
22088 done
22089 fi
22090 # check in a few common install locations
22091 if test x"${ac_cv_c_tkconfig}" = x ; then
22092 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22093 if test -f "$i/tkConfig.sh" ; then
22094 ac_cv_c_tkconfig=`(cd $i; pwd)`
22095 break
22096 fi
22097 done
22098 fi
22099 # check in a few other private locations
22100 if test x"${ac_cv_c_tkconfig}" = x ; then
22101 for i in \
22102 ${srcdir}/../tk \
22103 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22104 if test -f "$i/${configdir}/tkConfig.sh" ; then
22105 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22106 break
22107 fi
22108 done
22109 fi
bec39cab 22110
3fc11d3e
JM
22111fi
22112
22113 if test x"${ac_cv_c_tkconfig}" = x ; then
22114 TKCONFIG="# no Tk configs found"
bec39cab
AC
22115 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22116echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
22117 else
22118 no_tk=
22119 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
22120 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22121echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
22122 fi
22123fi
22124
22125
22126
dd2504ab
JM
22127 # now look for Tcl library stuff
22128
d91670b9 22129 tcldir="../tcl/${configdir}/"
dd2504ab
JM
22130
22131 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22132
3fc11d3e
JM
22133 # If $no_tk is nonempty, then we can't do Tk, and there is no
22134 # point to doing Tcl.
22135 if test -z "${no_tk}"; then
bec39cab 22136
3fc11d3e
JM
22137 if test -f "$TKCONFIG" ; then
22138 . $TKCONFIG
22139 fi
22140
3fc11d3e 22141
3fc11d3e
JM
22142
22143
3fc11d3e 22144
bec39cab
AC
22145
22146
22147
22148
22149
22150
22151
22152
22153
3fc11d3e
JM
22154#
22155# Ok, lets find the tcl source trees so we can use the headers
22156# Warning: transition of version 9 to 10 will break this algorithm
22157# because 10 sorts before 9. We also look for just tcl. We have to
22158# be careful that we don't match stuff like tclX by accident.
22159# the alternative search directory is involked by --with-tclinclude
22160#
22161
22162no_tcl=true
b4e70030
JB
22163echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22164echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 22165
b4e70030 22166# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 22167if test "${with_tclinclude+set}" = set; then
b4e70030
JB
22168 withval="$with_tclinclude"
22169 with_tclinclude=${withval}
22170fi;
bec39cab
AC
22171if test "${ac_cv_c_tclh+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22173else
bec39cab 22174
3fc11d3e
JM
22175# first check to see if --with-tclinclude was specified
22176if test x"${with_tclinclude}" != x ; then
22177 if test -f ${with_tclinclude}/tclInt.h ; then
22178 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22179 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22180 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22181 else
bec39cab
AC
22182 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22183echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22184 { (exit 1); exit 1; }; }
3fc11d3e
JM
22185 fi
22186fi
22187
22188# next check if it came with Tcl configuration file
22189if test x"${ac_cv_c_tclconfig}" = x ; then
22190 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22191 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22192 fi
22193fi
22194
22195# next check in private source directory
22196#
22197# since ls returns lowest version numbers first, reverse its output
22198if test x"${ac_cv_c_tclh}" = x ; then
22199 for i in \
22200 ${srcdir}/../tcl \
22201 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22202 ${srcdir}/../../tcl \
22203 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22204 ${srcdir}/../../../tcl \
22205 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22206 if test -f $i/generic/tclInt.h ; then
22207 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22208 break
22209 fi
22210 done
22211fi
22212# finally check in a few common install locations
22213#
22214# since ls returns lowest version numbers first, reverse its output
22215if test x"${ac_cv_c_tclh}" = x ; then
22216 for i in \
22217 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22218 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22219 /usr/local/src/tcl \
22220 /usr/local/lib/tcl \
22221 ${prefix}/include ; do
22222 if test -f $i/generic/tclInt.h ; then
22223 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22224 break
22225 fi
22226 done
22227fi
22228# see if one is installed
22229if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 22230 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
22231 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22232echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22233if test "${ac_cv_header_tclInt_h+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22235fi
b4e70030
JB
22236echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22237echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22238else
22239 # Is the header compilable?
b4e70030
JB
22240echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22241echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
22242cat >conftest.$ac_ext <<_ACEOF
22243/* confdefs.h. */
22244_ACEOF
22245cat confdefs.h >>conftest.$ac_ext
22246cat >>conftest.$ac_ext <<_ACEOF
22247/* end confdefs.h. */
22248$ac_includes_default
22249#include <tclInt.h>
22250_ACEOF
22251rm -f conftest.$ac_objext
22252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22253 (eval $ac_compile) 2>conftest.er1
22254 ac_status=$?
22255 grep -v '^ *+' conftest.er1 >conftest.err
22256 rm -f conftest.er1
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } &&
b4e70030
JB
22260 { ac_try='test -z "$ac_c_werror_flag"
22261 || test ! -s conftest.err'
bec39cab
AC
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263 (eval $ac_try) 2>&5
22264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest.$ac_objext'
22268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269 (eval $ac_try) 2>&5
22270 ac_status=$?
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); }; }; then
22273 ac_header_compiler=yes
22274else
22275 echo "$as_me: failed program was:" >&5
22276sed 's/^/| /' conftest.$ac_ext >&5
22277
b4e70030 22278ac_header_compiler=no
bec39cab
AC
22279fi
22280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22282echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22283
22284# Is the header present?
b4e70030
JB
22285echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22286echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
22287cat >conftest.$ac_ext <<_ACEOF
22288/* confdefs.h. */
22289_ACEOF
22290cat confdefs.h >>conftest.$ac_ext
22291cat >>conftest.$ac_ext <<_ACEOF
22292/* end confdefs.h. */
3fc11d3e 22293#include <tclInt.h>
bec39cab
AC
22294_ACEOF
22295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22297 ac_status=$?
22298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } >/dev/null; then
22303 if test -s conftest.err; then
22304 ac_cpp_err=$ac_c_preproc_warn_flag
22305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22306 else
22307 ac_cpp_err=
22308 fi
22309else
22310 ac_cpp_err=yes
3fc11d3e 22311fi
bec39cab
AC
22312if test -z "$ac_cpp_err"; then
22313 ac_header_preproc=yes
22314else
22315 echo "$as_me: failed program was:" >&5
22316sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 ac_header_preproc=no
3fc11d3e 22319fi
bec39cab 22320rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22322echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22323
22324# So? What about this header?
22325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22326 yes:no: )
22327 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22328echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22329 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22330echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22331 ac_header_preproc=yes
22332 ;;
22333 no:yes:* )
22334 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22335echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
22337echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
22339echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
22340 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
22341echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22342 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
22343echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
22344 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
22345echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22346 (
22347 cat <<\_ASBOX
22348## ------------------------------------------ ##
22349## Report this to the AC_PACKAGE_NAME lists. ##
22350## ------------------------------------------ ##
22351_ASBOX
22352 ) |
22353 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22354 ;;
22355esac
b4e70030
JB
22356echo "$as_me:$LINENO: checking for tclInt.h" >&5
22357echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22358if test "${ac_cv_header_tclInt_h+set}" = set; then
22359 echo $ECHO_N "(cached) $ECHO_C" >&6
22360else
22361 ac_cv_header_tclInt_h=$ac_header_preproc
22362fi
b4e70030
JB
22363echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22364echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22365
22366fi
22367if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
22368 ac_cv_c_tclh=installed
22369else
bec39cab 22370 ac_cv_c_tclh=""
3fc11d3e
JM
22371fi
22372
bec39cab 22373
3fc11d3e
JM
22374fi
22375
22376fi
22377
22378if test x"${ac_cv_c_tclh}" = x ; then
22379 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
22380 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
22381echo "$as_me: error: Can't find Tcl private headers" >&2;}
22382 { (exit 1); exit 1; }; }
3fc11d3e
JM
22383fi
22384if test x"${ac_cv_c_tclh}" != x ; then
22385 no_tcl=""
22386 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
22387 echo "$as_me:$LINENO: result: is installed" >&5
22388echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22389 TCLHDIR=""
22390 else
b4e70030
JB
22391 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
22392echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
22393 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
22394 TCLHDIR="-I${ac_cv_c_tclh}"
22395 fi
22396fi
22397
22398
22399
bec39cab 22400
3fc11d3e
JM
22401#
22402# Ok, lets find the tk source trees so we can use the headers
22403# If the directory (presumably symlink) named "tk" exists, use that one
22404# in preference to any others. Same logic is used when choosing library
22405# and again with Tcl. The search order is the best place to look first, then in
22406# decreasing significance. The loop breaks if the trigger file is found.
22407# Note the gross little conversion here of srcdir by cd'ing to the found
22408# directory. This converts the path from a relative to an absolute, so
22409# recursive cache variables for the path will work right. We check all
22410# the possible paths in one loop rather than many seperate loops to speed
22411# things up.
22412# the alternative search directory is involked by --with-tkinclude
22413#
22414no_tk=true
b4e70030
JB
22415echo "$as_me:$LINENO: checking for Tk private headers" >&5
22416echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 22417
b4e70030 22418# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 22419if test "${with_tkinclude+set}" = set; then
b4e70030
JB
22420 withval="$with_tkinclude"
22421 with_tkinclude=${withval}
22422fi;
bec39cab
AC
22423if test "${ac_cv_c_tkh+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22425else
bec39cab 22426
3fc11d3e
JM
22427# first check to see if --with-tkinclude was specified
22428if test x"${with_tkinclude}" != x ; then
22429 if test -f ${with_tkinclude}/tk.h ; then
22430 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
22431 elif test -f ${with_tkinclude}/generic/tk.h ; then
22432 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
22433 else
bec39cab
AC
22434 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
22435echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
22436 { (exit 1); exit 1; }; }
3fc11d3e
JM
22437 fi
22438fi
22439
22440# next check if it came with Tk configuration file
22441if test x"${ac_cv_c_tkconfig}" = x ; then
22442 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
22443 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
22444 fi
22445fi
22446
22447# next check in private source directory
22448#
22449# since ls returns lowest version numbers first, reverse its output
22450if test x"${ac_cv_c_tkh}" = x ; then
22451 for i in \
22452 ${srcdir}/../tk \
22453 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
22454 ${srcdir}/../../tk \
22455 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
22456 ${srcdir}/../../../tk \
22457 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
22458 if test -f $i/generic/tk.h ; then
22459 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22460 break
22461 fi
22462 done
22463fi
22464# finally check in a few common install locations
22465#
22466# since ls returns lowest version numbers first, reverse its output
22467if test x"${ac_cv_c_tkh}" = x ; then
22468 for i in \
22469 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
22470 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
22471 /usr/local/src/tk \
22472 /usr/local/lib/tk \
22473 ${prefix}/include ; do
22474 if test -f $i/generic/tk.h ; then
22475 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22476 break
22477 fi
22478 done
22479fi
22480# see if one is installed
22481if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 22482 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
22483 echo "$as_me:$LINENO: checking for tk.h" >&5
22484echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22485if test "${ac_cv_header_tk_h+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22487fi
b4e70030
JB
22488echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22489echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
22490else
22491 # Is the header compilable?
b4e70030
JB
22492echo "$as_me:$LINENO: checking tk.h usability" >&5
22493echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
22494cat >conftest.$ac_ext <<_ACEOF
22495/* confdefs.h. */
22496_ACEOF
22497cat confdefs.h >>conftest.$ac_ext
22498cat >>conftest.$ac_ext <<_ACEOF
22499/* end confdefs.h. */
22500$ac_includes_default
3fc11d3e 22501#include <tk.h>
bec39cab
AC
22502_ACEOF
22503rm -f conftest.$ac_objext
22504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22505 (eval $ac_compile) 2>conftest.er1
22506 ac_status=$?
22507 grep -v '^ *+' conftest.er1 >conftest.err
22508 rm -f conftest.er1
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } &&
b4e70030
JB
22512 { ac_try='test -z "$ac_c_werror_flag"
22513 || test ! -s conftest.err'
bec39cab
AC
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try='test -s conftest.$ac_objext'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 ac_header_compiler=yes
22526else
22527 echo "$as_me: failed program was:" >&5
22528sed 's/^/| /' conftest.$ac_ext >&5
22529
b4e70030 22530ac_header_compiler=no
bec39cab
AC
22531fi
22532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22534echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22535
22536# Is the header present?
b4e70030
JB
22537echo "$as_me:$LINENO: checking tk.h presence" >&5
22538echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
22539cat >conftest.$ac_ext <<_ACEOF
22540/* confdefs.h. */
22541_ACEOF
22542cat confdefs.h >>conftest.$ac_ext
22543cat >>conftest.$ac_ext <<_ACEOF
22544/* end confdefs.h. */
22545#include <tk.h>
22546_ACEOF
22547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22549 ac_status=$?
22550 grep -v '^ *+' conftest.er1 >conftest.err
22551 rm -f conftest.er1
22552 cat conftest.err >&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } >/dev/null; then
22555 if test -s conftest.err; then
22556 ac_cpp_err=$ac_c_preproc_warn_flag
22557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22558 else
22559 ac_cpp_err=
22560 fi
22561else
22562 ac_cpp_err=yes
3fc11d3e 22563fi
bec39cab
AC
22564if test -z "$ac_cpp_err"; then
22565 ac_header_preproc=yes
22566else
22567 echo "$as_me: failed program was:" >&5
22568sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 ac_header_preproc=no
22571fi
22572rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22574echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22575
22576# So? What about this header?
22577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22578 yes:no: )
22579 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22580echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22581 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22582echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22583 ac_header_preproc=yes
22584 ;;
22585 no:yes:* )
22586 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22587echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22588 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22589echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22590 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22591echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22592 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22593echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22594 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22595echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22596 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22597echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22598 (
22599 cat <<\_ASBOX
22600## ------------------------------------------ ##
22601## Report this to the AC_PACKAGE_NAME lists. ##
22602## ------------------------------------------ ##
22603_ASBOX
22604 ) |
22605 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22606 ;;
22607esac
b4e70030
JB
22608echo "$as_me:$LINENO: checking for tk.h" >&5
22609echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22610if test "${ac_cv_header_tk_h+set}" = set; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22612else
22613 ac_cv_header_tk_h=$ac_header_preproc
22614fi
b4e70030
JB
22615echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22616echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 22617
3fc11d3e 22618fi
bec39cab 22619if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
22620 ac_cv_c_tkh=installed
22621else
bec39cab 22622 ac_cv_c_tkh=""
3fc11d3e
JM
22623fi
22624
bec39cab 22625
3fc11d3e
JM
22626fi
22627
22628fi
22629
22630if test x"${ac_cv_c_tkh}" != x ; then
22631 no_tk=""
22632 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
22633 echo "$as_me:$LINENO: result: is installed" >&5
22634echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22635 TKHDIR=""
22636 else
b4e70030
JB
22637 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22638echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
22639 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22640 TKHDIR="-I${ac_cv_c_tkh}"
22641 fi
22642else
22643 TKHDIR="# no Tk directory found"
bec39cab
AC
22644 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22645echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
22646 no_tk=true
22647fi
22648
22649
22650
bec39cab 22651
b4e70030
JB
22652echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22653echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22654if test x"${ac_cv_c_itclh}" = x ; then
22655 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22656 if test -f $i/generic/itcl.h ; then
22657 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22658 break
22659 fi
22660 done
22661fi
22662if test x"${ac_cv_c_itclh}" = x ; then
22663 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
22664 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22665echo "$as_me: error: Can't find Itcl private headers" >&2;}
22666 { (exit 1); exit 1; }; }
3fc11d3e
JM
22667fi
22668if test x"${ac_cv_c_itclh}" != x ; then
22669 ITCLHDIR="-I${ac_cv_c_itclh}"
22670fi
22671# should always be here
22672# ITCLLIB="../itcl/itcl/unix/libitcl.a"
22673
22674#AC_SUBST(ITCLLIB)
22675
bec39cab 22676
b4e70030
JB
22677echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22678echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22679if test x"${ac_cv_c_itkh}" = x ; then
22680 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22681 if test -f $i/generic/itk.h ; then
22682 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22683 break
22684 fi
22685 done
22686fi
22687if test x"${ac_cv_c_itkh}" = x ; then
22688 ITKHDIR="# no Itk private headers found"
bec39cab
AC
22689 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22690echo "$as_me: error: Can't find Itk private headers" >&2;}
22691 { (exit 1); exit 1; }; }
3fc11d3e
JM
22692fi
22693if test x"${ac_cv_c_itkh}" != x ; then
22694 ITKHDIR="-I${ac_cv_c_itkh}"
22695fi
22696# should always be here
22697# ITKLIB="../itcl/itk/unix/libitk.a"
22698
22699#AC_SUBST(ITKLIB)
22700
3fc11d3e 22701
dd2504ab
JM
22702
22703 # now look for Tk library stuff
22704
d91670b9 22705 tkdir="../tk/${configdir}/"
dd2504ab
JM
22706
22707 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22708
3fc11d3e
JM
22709 # now look for Itcl library stuff
22710
bec39cab 22711
3fc11d3e
JM
22712#
22713# Ok, lets find the itcl configuration
bec39cab 22714# First, look for one uninstalled.
3fc11d3e
JM
22715# the alternative search directory is invoked by --with-itclconfig
22716#
22717
22718if test x"${no_itcl}" = x ; then
22719 # we reset no_itcl in case something fails here
22720 no_itcl=true
bec39cab 22721
b4e70030 22722# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 22723if test "${with_itclconfig+set}" = set; then
b4e70030
JB
22724 withval="$with_itclconfig"
22725 with_itclconfig=${withval}
22726fi;
22727 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22728echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
22729 if test "${ac_cv_c_itclconfig+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22731else
bec39cab 22732
3fc11d3e
JM
22733
22734 # First check to see if --with-itclconfig was specified.
22735 if test x"${with_itclconfig}" != x ; then
22736 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22737 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22738 else
bec39cab
AC
22739 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22740echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22741 { (exit 1); exit 1; }; }
3fc11d3e
JM
22742 fi
22743 fi
22744
22745 # then check for a private Itcl library
22746 if test x"${ac_cv_c_itclconfig}" = x ; then
22747 for i in \
22748 ../itcl/itcl \
22749 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22750 ../../itcl \
22751 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22752 ../../../itcl \
22753 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22754 if test -f "$i/itclConfig.sh" ; then
22755 ac_cv_c_itclconfig=`(cd $i; pwd)`
22756 break
22757 fi
22758 done
22759 fi
22760 # check in a few common install locations
22761 if test x"${ac_cv_c_itclconfig}" = x ; then
22762 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22763 if test -f "$i/itclConfig.sh" ; then
22764 ac_cv_c_itclconfig=`(cd $i; pwd)`
22765 break
22766 fi
22767 done
22768 fi
22769 # check in a few other private locations
22770 if test x"${ac_cv_c_itclconfig}" = x ; then
22771 for i in \
22772 ${srcdir}/../itcl/itcl \
22773 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22774 if test -f "$i/itclConfig.sh" ; then
22775 ac_cv_c_itclconfig=`(cd $i; pwd)`
22776 break
22777 fi
22778 done
22779 fi
bec39cab 22780
3fc11d3e
JM
22781fi
22782
22783 if test x"${ac_cv_c_itclconfig}" = x ; then
22784 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
22785 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22786echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
22787 else
22788 no_itcl=
22789 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
22790 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22791echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
22792 fi
22793fi
22794
22795 if test -z "${no_itcl}"; then
bec39cab 22796
3fc11d3e
JM
22797 if test -f "$ITCLCONFIG" ; then
22798 . $ITCLCONFIG
22799 fi
22800
3fc11d3e 22801
3fc11d3e
JM
22802
22803
bec39cab
AC
22804
22805
22806
22807
22808
22809
22810
3fc11d3e
JM
22811
22812 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 22813 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
22814 fi
22815
bec39cab 22816
3fc11d3e 22817 # now look for Itk library stuff
bec39cab 22818
3fc11d3e
JM
22819#
22820# Ok, lets find the itk configuration
bec39cab 22821# First, look for one uninstalled.
3fc11d3e
JM
22822# the alternative search directory is invoked by --with-itkconfig
22823#
22824
22825if test x"${no_itk}" = x ; then
22826 # we reset no_itk in case something fails here
22827 no_itk=true
bec39cab 22828
b4e70030 22829# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 22830if test "${with_itkconfig+set}" = set; then
b4e70030
JB
22831 withval="$with_itkconfig"
22832 with_itkconfig=${withval}
22833fi;
22834 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22835echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
22836 if test "${ac_cv_c_itkconfig+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22838else
bec39cab 22839
3fc11d3e
JM
22840
22841 # First check to see if --with-itkconfig was specified.
22842 if test x"${with_itkconfig}" != x ; then
22843 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22844 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22845 else
bec39cab
AC
22846 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22847echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22848 { (exit 1); exit 1; }; }
3fc11d3e
JM
22849 fi
22850 fi
22851
22852 # then check for a private Itk library
22853 if test x"${ac_cv_c_itkconfig}" = x ; then
22854 for i in \
22855 ../itcl/itk \
22856 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22857 ../../itk \
22858 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22859 ../../../itk \
22860 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22861 if test -f "$i/itkConfig.sh" ; then
22862 ac_cv_c_itkconfig=`(cd $i; pwd)`
22863 break
22864 fi
22865 done
22866 fi
22867 # check in a few common install locations
22868 if test x"${ac_cv_c_itkconfig}" = x ; then
22869 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22870 if test -f "$i/itkConfig.sh" ; then
22871 ac_cv_c_itkconfig=`(cd $i; pwd)`
22872 break
22873 fi
22874 done
22875 fi
22876 # check in a few other private locations
22877 if test x"${ac_cv_c_itkconfig}" = x ; then
22878 for i in \
22879 ${srcdir}/../itcl/itk \
22880 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22881 if test -f "$i/itkConfig.sh" ; then
22882 ac_cv_c_itkconfig=`(cd $i; pwd)`
22883 break
22884 fi
22885 done
22886 fi
bec39cab 22887
3fc11d3e
JM
22888fi
22889
22890 if test x"${ac_cv_c_itkconfig}" = x ; then
22891 ITKCONFIG="# no Itk configs found"
bec39cab
AC
22892 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22893echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
22894 else
22895 no_itk=
22896 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
22897 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22898echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
22899 fi
22900fi
22901
22902
bec39cab
AC
22903 if test -z "${no_itcl}"; then
22904
22905 if test -f "$ITKCONFIG" ; then
22906 . $ITKCONFIG
22907 fi
22908
22909
22910
22911
22912
22913
3fc11d3e 22914
3fc11d3e 22915
3fc11d3e
JM
22916
22917
3fc11d3e
JM
22918
22919
3fc11d3e 22920 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 22921 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
22922 fi
22923
4226a5a5 22924 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
22925
22926 # Include some libraries that Tcl and Tk want.
b2a1bd4f 22927 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
22928 # Yes, the ordering seems wrong here. But it isn't.
22929 # TK_LIBS is the list of libraries that need to be linked
22930 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22931 # were in LIBS then any link tests after this point would
22932 # try to include things like `$(LIBGUI)', which wouldn't work.
22933 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
22934
22935 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22936 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22937 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
22938 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22939 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22940 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22941 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
22942
22943 if test x$gdb_cv_os_cygwin = xyes; then
22944 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22945 WIN32LDAPP="-Wl,--subsystem,console"
22946 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22947 fi
22948 fi
22949 fi
ffc6a242 22950
b4e70030
JB
22951
22952
22953subdirs="$subdirs gdbtk"
3ace7edb 22954
3fc11d3e
JM
22955fi
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
dd2504ab 22969
b4e70030
JB
22970echo "$as_me:$LINENO: checking for X" >&5
22971echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 22972
c906108c 22973
b4e70030 22974# Check whether --with-x or --without-x was given.
c906108c 22975if test "${with_x+set}" = set; then
b4e70030 22976 withval="$with_x"
c906108c 22977
b4e70030 22978fi;
c906108c
SS
22979# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22980if test "x$with_x" = xno; then
22981 # The user explicitly disabled X.
22982 have_x=disabled
22983else
22984 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22985 # Both variables are already set.
22986 have_x=yes
22987 else
bec39cab
AC
22988 if test "${ac_cv_have_x+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22990else
22991 # One or both of the vars are not set, and there is no cached value.
bec39cab 22992ac_x_includes=no ac_x_libraries=no
b4e70030 22993rm -fr conftest.dir
bec39cab
AC
22994if mkdir conftest.dir; then
22995 cd conftest.dir
c906108c 22996 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 22997 cat >Imakefile <<'_ACEOF'
c906108c
SS
22998acfindx:
22999 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 23000_ACEOF
b4e70030 23001 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
23002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23003 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23004 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23005 for ac_extension in a so sl; do
23006 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
23007 test -f $ac_im_libdir/libX11.$ac_extension; then
23008 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
23009 fi
23010 done
23011 # Screen out bogus values from the imake configuration. They are
23012 # bogus both because they are the default anyway, and because
23013 # using them would break gcc on systems where it needs fixed includes.
bec39cab 23014 case $ac_im_incroot in
b4e70030 23015 /usr/include) ;;
bec39cab 23016 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 23017 esac
bec39cab 23018 case $ac_im_usrlibdir in
c906108c 23019 /usr/lib | /lib) ;;
bec39cab 23020 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
23021 esac
23022 fi
23023 cd ..
b4e70030 23024 rm -fr conftest.dir
c906108c
SS
23025fi
23026
bec39cab
AC
23027# Standard set of common directories for X headers.
23028# Check X11 before X11Rn because it is often a symlink to the current release.
23029ac_x_header_dirs='
23030/usr/X11/include
23031/usr/X11R6/include
23032/usr/X11R5/include
23033/usr/X11R4/include
23034
23035/usr/include/X11
23036/usr/include/X11R6
23037/usr/include/X11R5
23038/usr/include/X11R4
23039
23040/usr/local/X11/include
23041/usr/local/X11R6/include
23042/usr/local/X11R5/include
23043/usr/local/X11R4/include
23044
23045/usr/local/include/X11
23046/usr/local/include/X11R6
23047/usr/local/include/X11R5
23048/usr/local/include/X11R4
23049
23050/usr/X386/include
23051/usr/x386/include
23052/usr/XFree86/include/X11
23053
23054/usr/include
23055/usr/local/include
23056/usr/unsupported/include
23057/usr/athena/include
23058/usr/local/x11r5/include
23059/usr/lpp/Xamples/include
23060
23061/usr/openwin/include
23062/usr/openwin/share/include'
23063
23064if test "$ac_x_includes" = no; then
59f80f10 23065 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 23066 # First, try using that file with no special directory specified.
bec39cab
AC
23067 cat >conftest.$ac_ext <<_ACEOF
23068/* confdefs.h. */
23069_ACEOF
23070cat confdefs.h >>conftest.$ac_ext
23071cat >>conftest.$ac_ext <<_ACEOF
23072/* end confdefs.h. */
59f80f10 23073#include <X11/Intrinsic.h>
bec39cab
AC
23074_ACEOF
23075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23077 ac_status=$?
23078 grep -v '^ *+' conftest.er1 >conftest.err
23079 rm -f conftest.er1
23080 cat conftest.err >&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } >/dev/null; then
23083 if test -s conftest.err; then
23084 ac_cpp_err=$ac_c_preproc_warn_flag
23085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23086 else
23087 ac_cpp_err=
23088 fi
23089else
23090 ac_cpp_err=yes
23091fi
23092if test -z "$ac_cpp_err"; then
c906108c
SS
23093 # We can compile using X headers with no special include directory.
23094ac_x_includes=
23095else
bec39cab
AC
23096 echo "$as_me: failed program was:" >&5
23097sed 's/^/| /' conftest.$ac_ext >&5
23098
23099 for ac_dir in $ac_x_header_dirs; do
59f80f10 23100 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
23101 ac_x_includes=$ac_dir
23102 break
23103 fi
23104done
c906108c 23105fi
bec39cab
AC
23106rm -f conftest.err conftest.$ac_ext
23107fi # $ac_x_includes = no
c906108c 23108
bec39cab 23109if test "$ac_x_libraries" = no; then
c906108c 23110 # Check for the libraries.
c906108c
SS
23111 # See if we find them without any special options.
23112 # Don't add to $LIBS permanently.
bec39cab 23113 ac_save_LIBS=$LIBS
4e8d927d 23114 LIBS="-lXt $LIBS"
bec39cab
AC
23115 cat >conftest.$ac_ext <<_ACEOF
23116/* confdefs.h. */
23117_ACEOF
23118cat confdefs.h >>conftest.$ac_ext
23119cat >>conftest.$ac_ext <<_ACEOF
23120/* end confdefs.h. */
59f80f10 23121#include <X11/Intrinsic.h>
bec39cab
AC
23122int
23123main ()
23124{
59f80f10 23125XtMalloc (0)
bec39cab
AC
23126 ;
23127 return 0;
23128}
23129_ACEOF
23130rm -f conftest.$ac_objext conftest$ac_exeext
23131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23132 (eval $ac_link) 2>conftest.er1
23133 ac_status=$?
23134 grep -v '^ *+' conftest.er1 >conftest.err
23135 rm -f conftest.er1
23136 cat conftest.err >&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } &&
b4e70030
JB
23139 { ac_try='test -z "$ac_c_werror_flag"
23140 || test ! -s conftest.err'
bec39cab
AC
23141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142 (eval $ac_try) 2>&5
23143 ac_status=$?
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; } &&
23146 { ac_try='test -s conftest$ac_exeext'
23147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148 (eval $ac_try) 2>&5
23149 ac_status=$?
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; }; then
23152 LIBS=$ac_save_LIBS
c906108c
SS
23153# We can link X programs with no special library path.
23154ac_x_libraries=
23155else
bec39cab
AC
23156 echo "$as_me: failed program was:" >&5
23157sed 's/^/| /' conftest.$ac_ext >&5
23158
b4e70030 23159LIBS=$ac_save_LIBS
bec39cab 23160for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 23161do
bec39cab 23162 # Don't even attempt the hair of trying to link an X program!
c906108c 23163 for ac_extension in a so sl; do
b4e70030 23164 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
23165 ac_x_libraries=$ac_dir
23166 break 2
23167 fi
23168 done
23169done
23170fi
bec39cab
AC
23171rm -f conftest.err conftest.$ac_objext \
23172 conftest$ac_exeext conftest.$ac_ext
23173fi # $ac_x_libraries = no
c906108c 23174
bec39cab 23175if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
23176 # Didn't find X anywhere. Cache the known absence of X.
23177 ac_cv_have_x="have_x=no"
23178else
23179 # Record where we found X for the cache.
23180 ac_cv_have_x="have_x=yes \
bec39cab 23181 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
23182fi
23183fi
bec39cab 23184
c906108c
SS
23185 fi
23186 eval "$ac_cv_have_x"
23187fi # $with_x != no
23188
23189if test "$have_x" != yes; then
b4e70030
JB
23190 echo "$as_me:$LINENO: result: $have_x" >&5
23191echo "${ECHO_T}$have_x" >&6
c906108c
SS
23192 no_x=yes
23193else
23194 # If each of the values was on the command line, it overrides each guess.
23195 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23196 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23197 # Update the cache value to reflect the command line values.
23198 ac_cv_have_x="have_x=yes \
23199 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
23200 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23201echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
23202fi
23203
23204
9cc52bde
MK
23205# Check whether we should enable the TUI, but only do so if we really
23206# can.
23207if test x"$enable_tui" = xyes; then
23208 if test -d $srcdir/tui; then
23209 if test "$ac_cv_search_waddstr" != no; then
23210 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23211 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23212 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23213 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23214 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23215 CONFIG_ALL="${CONFIG_ALL} all-tui"
23216 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23217 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23218 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23219 else
bec39cab
AC
23220 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23221echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
23222 fi
23223 fi
23224fi
23225
bec39cab
AC
23226# Unlike the sim directory, whether a simulator is linked is controlled by
23227# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
23228# This code just checks for a few cases where we'd like to ignore those
23229# definitions, even when they're present in the '.mt' file. These cases
23230# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 23231# not part of the source tree.
7a292a7a 23232#
b4e70030 23233# Check whether --enable-sim or --disable-sim was given.
7a292a7a 23234if test "${enable_sim+set}" = set; then
b4e70030
JB
23235 enableval="$enable_sim"
23236 echo "enable_sim = $enable_sim";
7a292a7a
SS
23237 echo "enableval = ${enableval}";
23238 case "${enableval}" in
23239 yes) ignore_sim=false ;;
23240 no) ignore_sim=true ;;
23241 *) ignore_sim=false ;;
23242 esac
23243else
23244 ignore_sim=false
b4e70030 23245fi;
7a292a7a
SS
23246
23247if test ! -d "${srcdir}/../sim"; then
23248 ignore_sim=true
23249fi
23250
23251if test "${ignore_sim}" = "true"; then
23252 IGNORE_SIM="SIM="
23253 IGNORE_SIM_OBS="SIM_OBS="
23254else
23255 IGNORE_SIM=""
23256 IGNORE_SIM_OBS=""
60ca704f
SE
23257
23258cat >>confdefs.h <<\_ACEOF
7a292a7a 23259#define WITH_SIM 1
bec39cab 23260_ACEOF
7a292a7a
SS
23261
23262fi
23263
23264
23265
c906108c
SS
23266
23267
23268
23269
23270
23271
dfcd3bfb 23272
e56ac5c3
AC
23273
23274
b3a90332
AC
23275
23276
c35f4ffc 23277# List of host floatformats.
bec39cab
AC
23278
23279cat >>confdefs.h <<_ACEOF
c35f4ffc 23280#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 23281_ACEOF
c35f4ffc 23282
bec39cab
AC
23283
23284cat >>confdefs.h <<_ACEOF
c35f4ffc 23285#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
23286_ACEOF
23287
c35f4ffc 23288
bec39cab 23289cat >>confdefs.h <<_ACEOF
c35f4ffc 23290#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 23291_ACEOF
c35f4ffc
AC
23292
23293
c906108c
SS
23294# target_subdir is used by the testsuite to find the target libraries.
23295target_subdir=
23296if test "${host}" != "${target}"; then
23297 target_subdir="${target_alias}/"
23298fi
23299
23300
23301frags=
771b4502 23302if test "${gdb_native}" = "yes"; then
0dad8a66
MK
23303 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23304 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
23305 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23306echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23307 { (exit 1); exit 1; }; }
0dad8a66
MK
23308 fi
23309 frags="$frags $host_makefile_frag"
23310else
23311 host_makefile_frag=/dev/null
c906108c 23312fi
c906108c
SS
23313
23314target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23315if test ! -f ${target_makefile_frag}; then
bec39cab
AC
23316 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23317echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23318 { (exit 1); exit 1; }; }
c906108c
SS
23319fi
23320frags="$frags $target_makefile_frag"
23321
23322
23323
23324
23325
23326hostfile=`sed -n '
23327s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23328' ${host_makefile_frag}`
23329
23330targetfile=`sed -n '
b523a1fd 23331s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
23332' ${target_makefile_frag}`
23333
771b4502 23334if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
23335# We pick this up from the host configuration file (.mh) because we
23336# do not have a native configuration Makefile fragment.
c906108c
SS
23337nativefile=`sed -n '
23338s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23339' ${host_makefile_frag}`
c906108c
SS
23340fi
23341
23342
b00a8037 23343if test x"${gdb_osabi}" != x ; then
bec39cab
AC
23344
23345cat >>confdefs.h <<_ACEOF
b00a8037 23346#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 23347_ACEOF
b00a8037
DJ
23348
23349fi
23350
8dcde887 23351# Enable multi-ice-gdb-server.
b4e70030 23352# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 23353if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
23354 enableval="$enable_multi_ice"
23355 case $enableval in
8dcde887
MK
23356 yes | no)
23357 ;;
bec39cab
AC
23358 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
23359echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
23360 { (exit 1); exit 1; }; } ;;
8dcde887 23361 esac
b4e70030 23362fi;
4e8d927d 23363if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
23364
23365
23366subdirs="$subdirs multi-ice"
3ace7edb 23367
a85f51e7
DJ
23368fi
23369
a13e2c95
UW
23370# We only build gdbserver automatically in a native configuration.
23371if test "$gdb_native" = "yes"; then
b4e70030
JB
23372 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
23373echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 23374 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
23375 echo "$as_me:$LINENO: result: yes" >&5
23376echo "${ECHO_T}yes" >&6
23377
23378
23379subdirs="$subdirs gdbserver"
3ace7edb 23380
8dcde887 23381 else
b4e70030
JB
23382 echo "$as_me:$LINENO: result: no" >&5
23383echo "${ECHO_T}no" >&6
8dcde887
MK
23384 fi
23385fi
23386
2c0fc042
AC
23387# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
23388# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
23389# to an empty version.
c906108c
SS
23390
23391files=
23392links=
5a2402b8 23393
c906108c 23394rm -f xm.h
5a2402b8 23395xm_h=""
c906108c 23396if test "${hostfile}" != ""; then
5a2402b8 23397 xm_h=xm.h
0f475e27
AC
23398 case "${hostfile}" in
23399 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
23400 * ) GDB_XM_FILE="${hostfile}"
23401 esac
5a2402b8
AC
23402 files="${files} ${GDB_XM_FILE}"
23403 links="${links} xm.h"
60ca704f
SE
23404
23405cat >>confdefs.h <<_ACEOF
b78960be 23406#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 23407_ACEOF
5a2402b8 23408
c906108c 23409fi
5a2402b8
AC
23410
23411
c906108c 23412rm -f tm.h
5a2402b8 23413tm_h=""
c906108c 23414if test "${targetfile}" != ""; then
5a2402b8 23415 tm_h=tm.h
0f475e27 23416 case "${targetfile}" in
b8c4aece 23417 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
23418 * ) GDB_TM_FILE="${targetfile}"
23419 esac
5a2402b8
AC
23420 files="${files} ${GDB_TM_FILE}"
23421 links="${links} tm.h"
60ca704f
SE
23422
23423cat >>confdefs.h <<_ACEOF
b78960be 23424#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 23425_ACEOF
5a2402b8 23426
c906108c 23427fi
5a2402b8
AC
23428
23429
c906108c 23430rm -f nm.h
5a2402b8 23431nm_h=""
c906108c 23432if test "${nativefile}" != ""; then
5a2402b8 23433 nm_h=nm.h
0f475e27
AC
23434 case "${nativefile}" in
23435 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
23436 * ) GDB_NM_FILE="${nativefile}"
23437 esac
5a2402b8
AC
23438 files="${files} ${GDB_NM_FILE}"
23439 links="${links} nm.h"
60ca704f
SE
23440
23441cat >>confdefs.h <<_ACEOF
b78960be 23442#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 23443_ACEOF
5a2402b8 23444
c906108c 23445fi
5a2402b8
AC
23446
23447
bec39cab
AC
23448ac_sources="$files"
23449ac_dests="$links"
23450while test -n "$ac_sources"; do
23451 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23452 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23453 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23454done
b4e70030 23455 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
23456
23457
c906108c
SS
23458
23459
c906108c 23460
c906108c 23461
bec39cab
AC
23462cat >>confdefs.h <<\_ACEOF
23463#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
23464_ACEOF
c906108c 23465
234b45d4 23466
234b45d4
KB
23467
23468
23469
b4e70030 23470# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 23471if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
23472 withval="$with_libiconv_prefix"
23473
234b45d4
KB
23474 for dir in `echo "$withval" | tr : ' '`; do
23475 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23476 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23477 done
234b45d4 23478
b4e70030 23479fi;
234b45d4 23480
b4e70030
JB
23481 echo "$as_me:$LINENO: checking for iconv" >&5
23482echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
23483if test "${am_cv_func_iconv+set}" = set; then
23484 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 23485else
bec39cab 23486
234b45d4
KB
23487 am_cv_func_iconv="no, consider installing GNU libiconv"
23488 am_cv_lib_iconv=no
bec39cab
AC
23489 cat >conftest.$ac_ext <<_ACEOF
23490/* confdefs.h. */
23491_ACEOF
23492cat confdefs.h >>conftest.$ac_ext
23493cat >>conftest.$ac_ext <<_ACEOF
23494/* end confdefs.h. */
234b45d4
KB
23495#include <stdlib.h>
23496#include <iconv.h>
bec39cab
AC
23497int
23498main ()
23499{
234b45d4
KB
23500iconv_t cd = iconv_open("","");
23501 iconv(cd,NULL,NULL,NULL,NULL);
23502 iconv_close(cd);
bec39cab
AC
23503 ;
23504 return 0;
23505}
23506_ACEOF
23507rm -f conftest.$ac_objext conftest$ac_exeext
23508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509 (eval $ac_link) 2>conftest.er1
23510 ac_status=$?
23511 grep -v '^ *+' conftest.er1 >conftest.err
23512 rm -f conftest.er1
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } &&
b4e70030
JB
23516 { ac_try='test -z "$ac_c_werror_flag"
23517 || test ! -s conftest.err'
bec39cab
AC
23518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519 (eval $ac_try) 2>&5
23520 ac_status=$?
23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); }; } &&
23523 { ac_try='test -s conftest$ac_exeext'
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; }; then
234b45d4
KB
23529 am_cv_func_iconv=yes
23530else
bec39cab
AC
23531 echo "$as_me: failed program was:" >&5
23532sed 's/^/| /' conftest.$ac_ext >&5
23533
234b45d4 23534fi
bec39cab
AC
23535rm -f conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23537 if test "$am_cv_func_iconv" != yes; then
23538 am_save_LIBS="$LIBS"
23539 LIBS="$LIBS -liconv"
bec39cab
AC
23540 cat >conftest.$ac_ext <<_ACEOF
23541/* confdefs.h. */
23542_ACEOF
23543cat confdefs.h >>conftest.$ac_ext
23544cat >>conftest.$ac_ext <<_ACEOF
23545/* end confdefs.h. */
234b45d4
KB
23546#include <stdlib.h>
23547#include <iconv.h>
bec39cab
AC
23548int
23549main ()
23550{
234b45d4
KB
23551iconv_t cd = iconv_open("","");
23552 iconv(cd,NULL,NULL,NULL,NULL);
23553 iconv_close(cd);
bec39cab
AC
23554 ;
23555 return 0;
23556}
23557_ACEOF
23558rm -f conftest.$ac_objext conftest$ac_exeext
23559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23560 (eval $ac_link) 2>conftest.er1
23561 ac_status=$?
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
b4e70030
JB
23567 { ac_try='test -z "$ac_c_werror_flag"
23568 || test ! -s conftest.err'
bec39cab
AC
23569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570 (eval $ac_try) 2>&5
23571 ac_status=$?
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; } &&
23574 { ac_try='test -s conftest$ac_exeext'
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
234b45d4
KB
23580 am_cv_lib_iconv=yes
23581 am_cv_func_iconv=yes
23582else
bec39cab
AC
23583 echo "$as_me: failed program was:" >&5
23584sed 's/^/| /' conftest.$ac_ext >&5
23585
234b45d4 23586fi
bec39cab
AC
23587rm -f conftest.err conftest.$ac_objext \
23588 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23589 LIBS="$am_save_LIBS"
23590 fi
bec39cab
AC
23591
23592fi
b4e70030
JB
23593echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23594echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
23595 if test "$am_cv_func_iconv" = yes; then
23596
23597cat >>confdefs.h <<\_ACEOF
23598#define HAVE_ICONV 1
23599_ACEOF
23600
b4e70030
JB
23601 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23602echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
23603 if test "${am_cv_proto_iconv+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23605else
23606
23607 cat >conftest.$ac_ext <<_ACEOF
23608/* confdefs.h. */
23609_ACEOF
23610cat confdefs.h >>conftest.$ac_ext
23611cat >>conftest.$ac_ext <<_ACEOF
23612/* end confdefs.h. */
23613
23614#include <stdlib.h>
23615#include <iconv.h>
23616extern
23617#ifdef __cplusplus
23618"C"
23619#endif
23620#if defined(__STDC__) || defined(__cplusplus)
23621size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23622#else
23623size_t iconv();
23624#endif
23625
23626int
23627main ()
23628{
23629
23630 ;
23631 return 0;
23632}
23633_ACEOF
23634rm -f conftest.$ac_objext
23635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23636 (eval $ac_compile) 2>conftest.er1
23637 ac_status=$?
23638 grep -v '^ *+' conftest.er1 >conftest.err
23639 rm -f conftest.er1
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } &&
b4e70030
JB
23643 { ac_try='test -z "$ac_c_werror_flag"
23644 || test ! -s conftest.err'
bec39cab
AC
23645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646 (eval $ac_try) 2>&5
23647 ac_status=$?
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); }; } &&
23650 { ac_try='test -s conftest.$ac_objext'
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; }; then
23656 am_cv_proto_iconv_arg1=""
23657else
23658 echo "$as_me: failed program was:" >&5
23659sed 's/^/| /' conftest.$ac_ext >&5
23660
b4e70030 23661am_cv_proto_iconv_arg1="const"
bec39cab
AC
23662fi
23663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23664 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);"
23665fi
23666
23667 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 23668 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
23669 }$am_cv_proto_iconv" >&5
23670echo "${ECHO_T}${ac_t:-
b4e70030 23671 }$am_cv_proto_iconv" >&6
bec39cab
AC
23672
23673cat >>confdefs.h <<_ACEOF
23674#define ICONV_CONST $am_cv_proto_iconv_arg1
23675_ACEOF
23676
23677 fi
23678 LIBICONV=
23679 if test "$am_cv_lib_iconv" = yes; then
23680 LIBICONV="-liconv"
23681 fi
23682
23683
23684
b4e70030
JB
23685 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23686 ac_config_commands="$ac_config_commands default"
bec39cab
AC
23687cat >confcache <<\_ACEOF
23688# This file is a shell script that caches the results of configure
23689# tests run on this system so they can be shared between configure
23690# scripts and configure runs, see configure's option --config-cache.
23691# It is not useful on other systems. If it contains results you don't
23692# want to keep, you may remove or edit it.
23693#
23694# config.status only pays attention to the cache file if you give it
23695# the --recheck option to rerun configure.
23696#
23697# `ac_cv_env_foo' variables (set or unset) will be overridden when
23698# loading this file, other *unset* `ac_cv_foo' will be assigned the
23699# following values.
23700
23701_ACEOF
23702
23703# The following way of writing the cache mishandles newlines in values,
23704# but we know of no workaround that is simple, portable, and efficient.
b4e70030 23705# So, don't put newlines in cache variables' values.
bec39cab
AC
23706# Ultrix sh set writes to stderr and can't be redirected directly,
23707# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 23708{
bec39cab 23709 (set) 2>&1 |
b4e70030
JB
23710 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23711 *ac_space=\ *)
bec39cab
AC
23712 # `set' does not quote correctly, so add quotes (double-quote
23713 # substitution turns \\\\ into \\, and sed turns \\ into \).
23714 sed -n \
23715 "s/'/'\\\\''/g;
23716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 23717 ;;
bec39cab
AC
23718 *)
23719 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
23720 sed -n \
23721 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 23722 ;;
b4e70030
JB
23723 esac;
23724} |
bec39cab
AC
23725 sed '
23726 t clear
b4e70030 23727 : clear
bec39cab
AC
23728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23729 t end
b4e70030
JB
23730 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23731 : end' >>confcache
bec39cab
AC
23732if diff $cache_file confcache >/dev/null 2>&1; then :; else
23733 if test -w $cache_file; then
b4e70030 23734 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
23735 cat confcache >$cache_file
23736 else
b4e70030 23737 echo "not updating unwritable cache $cache_file"
bec39cab
AC
23738 fi
23739fi
23740rm -f confcache
23741
23742test "x$prefix" = xNONE && prefix=$ac_default_prefix
23743# Let make expand exec_prefix.
23744test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23745
b4e70030
JB
23746# VPATH may cause trouble with some makes, so we remove $(srcdir),
23747# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23748# trailing colons and then remove the whole line if VPATH becomes empty
23749# (actually we leave an empty line to preserve line numbers).
23750if test "x$srcdir" = x.; then
23751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23752s/:*\$(srcdir):*/:/;
23753s/:*\${srcdir}:*/:/;
23754s/:*@srcdir@:*/:/;
23755s/^\([^=]*=[ ]*\):*/\1/;
23756s/:*$//;
23757s/^[^=]*=[ ]*$//;
23758}'
23759fi
23760
bec39cab
AC
23761DEFS=-DHAVE_CONFIG_H
23762
23763ac_libobjs=
23764ac_ltlibobjs=
23765for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23766 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
23767 ac_i=`echo "$ac_i" |
23768 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23769 # 2. Add them.
23770 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23771 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
23772done
23773LIBOBJS=$ac_libobjs
23774
23775LTLIBOBJS=$ac_ltlibobjs
23776
23777
85981d60
AC
23778if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23779 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23780Usually this means the macro was only invoked conditionally." >&5
23781echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23782Usually this means the macro was only invoked conditionally." >&2;}
23783 { (exit 1); exit 1; }; }
23784fi
bec39cab
AC
23785
23786: ${CONFIG_STATUS=./config.status}
23787ac_clean_files_save=$ac_clean_files
23788ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23789{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23790echo "$as_me: creating $CONFIG_STATUS" >&6;}
23791cat >$CONFIG_STATUS <<_ACEOF
23792#! $SHELL
23793# Generated by $as_me.
23794# Run this file to recreate the current configuration.
23795# Compiler output produced by configure, useful for debugging
23796# configure, is in config.log if it exists.
23797
23798debug=false
23799ac_cs_recheck=false
23800ac_cs_silent=false
23801SHELL=\${CONFIG_SHELL-$SHELL}
23802_ACEOF
23803
23804cat >>$CONFIG_STATUS <<\_ACEOF
23805## --------------------- ##
23806## M4sh Initialization. ##
23807## --------------------- ##
23808
23809# Be Bourne compatible
23810if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23811 emulate sh
23812 NULLCMD=:
23813 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23814 # is contrary to our usage. Disable this feature.
23815 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
23816elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23817 set -o posix
bec39cab
AC
23818fi
23819DUALCASE=1; export DUALCASE # for MKS sh
23820
23821# Support unset when possible.
23822if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23823 as_unset=unset
23824else
23825 as_unset=false
23826fi
23827
23828
23829# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 23830$as_unset ENV MAIL MAILPATH
bec39cab
AC
23831PS1='$ '
23832PS2='> '
23833PS4='+ '
23834
23835# NLS nuisances.
23836for as_var in \
23837 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23838 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23839 LC_TELEPHONE LC_TIME
23840do
23841 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23842 eval $as_var=C; export $as_var
23843 else
b4e70030 23844 $as_unset $as_var
bec39cab
AC
23845 fi
23846done
23847
23848# Required to use basename.
b4e70030 23849if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23850 as_expr=expr
23851else
23852 as_expr=false
23853fi
23854
b4e70030 23855if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
23856 as_basename=basename
23857else
23858 as_basename=false
23859fi
23860
23861
23862# Name of the executable.
b4e70030 23863as_me=`$as_basename "$0" ||
bec39cab
AC
23864$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23865 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
23866 X"$0" : 'X\(/\)$' \| \
23867 . : '\(.\)' 2>/dev/null ||
bec39cab 23868echo X/"$0" |
b4e70030
JB
23869 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23870 /^X\/\(\/\/\)$/{ s//\1/; q; }
23871 /^X\/\(\/\).*/{ s//\1/; q; }
23872 s/.*/./; q'`
bec39cab 23873
b4e70030
JB
23874
23875# PATH needs CR, and LINENO needs CR and PATH.
23876# Avoid depending upon Character Ranges.
23877as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23878as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23879as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23880as_cr_digits='0123456789'
23881as_cr_alnum=$as_cr_Letters$as_cr_digits
23882
23883# The user is always right.
23884if test "${PATH_SEPARATOR+set}" != set; then
23885 echo "#! /bin/sh" >conf$$.sh
23886 echo "exit 0" >>conf$$.sh
23887 chmod +x conf$$.sh
23888 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23889 PATH_SEPARATOR=';'
23890 else
23891 PATH_SEPARATOR=:
23892 fi
23893 rm -f conf$$.sh
23894fi
bec39cab
AC
23895
23896
b4e70030
JB
23897 as_lineno_1=$LINENO
23898 as_lineno_2=$LINENO
23899 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23900 test "x$as_lineno_1" != "x$as_lineno_2" &&
23901 test "x$as_lineno_3" = "x$as_lineno_2" || {
23902 # Find who we are. Look in the path if we contain no path at all
23903 # relative or not.
23904 case $0 in
23905 *[\\/]* ) as_myself=$0 ;;
23906 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23907for as_dir in $PATH
23908do
23909 IFS=$as_save_IFS
23910 test -z "$as_dir" && as_dir=.
23911 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23912done
bec39cab 23913
b4e70030
JB
23914 ;;
23915 esac
23916 # We did not find ourselves, most probably we were run as `sh COMMAND'
23917 # in which case we are not to be found in the path.
23918 if test "x$as_myself" = x; then
23919 as_myself=$0
23920 fi
23921 if test ! -f "$as_myself"; then
23922 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23923echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23924 { (exit 1); exit 1; }; }
23925 fi
23926 case $CONFIG_SHELL in
23927 '')
23928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23929for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23930do
23931 IFS=$as_save_IFS
23932 test -z "$as_dir" && as_dir=.
23933 for as_base in sh bash ksh sh5; do
23934 case $as_dir in
23935 /*)
23936 if ("$as_dir/$as_base" -c '
bec39cab
AC
23937 as_lineno_1=$LINENO
23938 as_lineno_2=$LINENO
b4e70030 23939 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 23940 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
23941 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23942 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23943 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23944 CONFIG_SHELL=$as_dir/$as_base
23945 export CONFIG_SHELL
23946 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23947 fi;;
23948 esac
23949 done
23950done
23951;;
23952 esac
bec39cab
AC
23953
23954 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23955 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
23956 # line-number line before each line; the second 'sed' does the real
23957 # work. The second script uses 'N' to pair each line-number line
23958 # with the numbered line, and appends trailing '-' during
23959 # substitution so that $LINENO is not a special case at line end.
bec39cab 23960 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
23961 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23962 sed '=' <$as_myself |
bec39cab
AC
23963 sed '
23964 N
b4e70030
JB
23965 s,$,-,
23966 : loop
23967 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 23968 t loop
b4e70030
JB
23969 s,-$,,
23970 s,^['$as_cr_digits']*\n,,
bec39cab 23971 ' >$as_me.lineno &&
b4e70030
JB
23972 chmod +x $as_me.lineno ||
23973 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23974echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
23975 { (exit 1); exit 1; }; }
23976
23977 # Don't try to exec as it changes $[0], causing all sort of problems
23978 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
23979 # original and so on. Autoconf is especially sensible to this).
23980 . ./$as_me.lineno
bec39cab
AC
23981 # Exit status is that of the last command.
23982 exit
23983}
23984
23985
b4e70030
JB
23986case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23987 *c*,-n*) ECHO_N= ECHO_C='
23988' ECHO_T=' ' ;;
23989 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23990 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
23991esac
23992
b4e70030 23993if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23994 as_expr=expr
23995else
23996 as_expr=false
23997fi
23998
23999rm -f conf$$ conf$$.exe conf$$.file
24000echo >conf$$.file
24001if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
24002 # We could just check for DJGPP; but this test a) works b) is more generic
24003 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24004 if test -f conf$$.exe; then
24005 # Don't use ln at all; we don't have any links
bec39cab 24006 as_ln_s='cp -p'
b4e70030
JB
24007 else
24008 as_ln_s='ln -s'
24009 fi
bec39cab
AC
24010elif ln conf$$.file conf$$ 2>/dev/null; then
24011 as_ln_s=ln
24012else
24013 as_ln_s='cp -p'
24014fi
b4e70030 24015rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
24016
24017if mkdir -p . 2>/dev/null; then
24018 as_mkdir_p=:
24019else
24020 test -d ./-p && rmdir ./-p
24021 as_mkdir_p=false
24022fi
24023
b4e70030 24024as_executable_p="test -f"
bec39cab
AC
24025
24026# Sed expression to map a string onto a valid CPP name.
24027as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24028
24029# Sed expression to map a string onto a valid variable name.
24030as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24031
24032
b4e70030
JB
24033# IFS
24034# We need space, tab and new line, in precisely that order.
24035as_nl='
24036'
24037IFS=" $as_nl"
24038
24039# CDPATH.
24040$as_unset CDPATH
24041
bec39cab
AC
24042exec 6>&1
24043
b4e70030 24044# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 24045# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
24046# values after options handling. Logging --version etc. is OK.
24047exec 5>>config.log
24048{
24049 echo
24050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24051## Running $as_me. ##
24052_ASBOX
24053} >&5
24054cat >&5 <<_CSEOF
24055
bec39cab 24056This file was extended by $as_me, which was
b4e70030 24057generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
24058
24059 CONFIG_FILES = $CONFIG_FILES
24060 CONFIG_HEADERS = $CONFIG_HEADERS
24061 CONFIG_LINKS = $CONFIG_LINKS
24062 CONFIG_COMMANDS = $CONFIG_COMMANDS
24063 $ $0 $@
24064
b4e70030
JB
24065_CSEOF
24066echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24067echo >&5
bec39cab
AC
24068_ACEOF
24069
24070# Files that config.status was made for.
b4e70030
JB
24071if test -n "$ac_config_files"; then
24072 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24073fi
234b45d4 24074
b4e70030
JB
24075if test -n "$ac_config_headers"; then
24076 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24077fi
24078
24079if test -n "$ac_config_links"; then
24080 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24081fi
24082
24083if test -n "$ac_config_commands"; then
24084 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24085fi
234b45d4 24086
bec39cab 24087cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 24088
bec39cab
AC
24089ac_cs_usage="\
24090\`$as_me' instantiates files from templates according to the
24091current configuration.
234b45d4 24092
bec39cab 24093Usage: $0 [OPTIONS] [FILE]...
234b45d4 24094
bec39cab
AC
24095 -h, --help print this help, then exit
24096 -V, --version print version number, then exit
24097 -q, --quiet do not print progress messages
24098 -d, --debug don't remove temporary files
24099 --recheck update $as_me by reconfiguring in the same conditions
24100 --file=FILE[:TEMPLATE]
24101 instantiate the configuration file FILE
24102 --header=FILE[:TEMPLATE]
24103 instantiate the configuration header FILE
234b45d4 24104
bec39cab
AC
24105Configuration files:
24106$config_files
234b45d4 24107
bec39cab
AC
24108Configuration headers:
24109$config_headers
234b45d4 24110
bec39cab
AC
24111Configuration links:
24112$config_links
234b45d4 24113
bec39cab
AC
24114Configuration commands:
24115$config_commands
24116
24117Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 24118_ACEOF
b4e70030 24119
bec39cab
AC
24120cat >>$CONFIG_STATUS <<_ACEOF
24121ac_cs_version="\\
24122config.status
b4e70030 24123configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
24124 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24125
b4e70030 24126Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
24127This config.status script is free software; the Free Software Foundation
24128gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
24129srcdir=$srcdir
24130INSTALL="$INSTALL"
bec39cab
AC
24131_ACEOF
24132
24133cat >>$CONFIG_STATUS <<\_ACEOF
24134# If no file are specified by the user, then we need to provide default
24135# value. By we need to know if files were specified by the user.
24136ac_need_defaults=:
24137while test $# != 0
24138do
24139 case $1 in
24140 --*=*)
b4e70030
JB
24141 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24142 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 24143 ac_shift=:
c906108c 24144 ;;
b4e70030 24145 -*)
bec39cab
AC
24146 ac_option=$1
24147 ac_optarg=$2
24148 ac_shift=shift
c906108c 24149 ;;
b4e70030
JB
24150 *) # This is not an option, so the user has probably given explicit
24151 # arguments.
24152 ac_option=$1
24153 ac_need_defaults=false;;
bec39cab 24154 esac
c906108c 24155
bec39cab
AC
24156 case $ac_option in
24157 # Handling of the options.
b4e70030
JB
24158_ACEOF
24159cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
24160 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24161 ac_cs_recheck=: ;;
b4e70030
JB
24162 --version | --vers* | -V )
24163 echo "$ac_cs_version"; exit 0 ;;
24164 --he | --h)
24165 # Conflict between --help and --header
24166 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24167Try \`$0 --help' for more information." >&5
24168echo "$as_me: error: ambiguous option: $1
24169Try \`$0 --help' for more information." >&2;}
24170 { (exit 1); exit 1; }; };;
24171 --help | --hel | -h )
24172 echo "$ac_cs_usage"; exit 0 ;;
24173 --debug | --d* | -d )
bec39cab
AC
24174 debug=: ;;
24175 --file | --fil | --fi | --f )
24176 $ac_shift
24177 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24178 ac_need_defaults=false;;
24179 --header | --heade | --head | --hea )
24180 $ac_shift
24181 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24182 ac_need_defaults=false;;
24183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24184 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24185 ac_cs_silent=: ;;
c906108c 24186
bec39cab 24187 # This is an error.
b4e70030
JB
24188 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24189Try \`$0 --help' for more information." >&5
24190echo "$as_me: error: unrecognized option: $1
24191Try \`$0 --help' for more information." >&2;}
bec39cab 24192 { (exit 1); exit 1; }; } ;;
c906108c 24193
b4e70030 24194 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 24195
bec39cab
AC
24196 esac
24197 shift
24198done
c906108c 24199
bec39cab 24200ac_configure_extra_args=
c906108c 24201
bec39cab
AC
24202if $ac_cs_silent; then
24203 exec 6>/dev/null
24204 ac_configure_extra_args="$ac_configure_extra_args --silent"
24205fi
c906108c 24206
bec39cab
AC
24207_ACEOF
24208cat >>$CONFIG_STATUS <<_ACEOF
24209if \$ac_cs_recheck; then
b4e70030
JB
24210 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24211 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
24212fi
24213
24214_ACEOF
24215
24216cat >>$CONFIG_STATUS <<_ACEOF
c906108c 24217#
b4e70030 24218# INIT-COMMANDS section.
c906108c 24219#
c906108c 24220
b4e70030 24221
4e8d927d
DJ
24222GCC="$GCC"
24223CC="$CC"
24224acx_cv_header_stdint="$acx_cv_header_stdint"
24225acx_cv_type_int8_t="$acx_cv_type_int8_t"
24226acx_cv_type_int16_t="$acx_cv_type_int16_t"
24227acx_cv_type_int32_t="$acx_cv_type_int32_t"
24228acx_cv_type_int64_t="$acx_cv_type_int64_t"
24229acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24230ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24231ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24232ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24233ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24234ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24235ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24236ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24237ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24238
bec39cab
AC
24239
24240gdb_host_cpu=$gdb_host_cpu
24241gdb_target_cpu=$gdb_target_cpu
24242nativefile=$nativefile
24243
24244
24245_ACEOF
24246
4e8d927d 24247
b4e70030
JB
24248
24249cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 24250for ac_config_target in $ac_config_targets
c906108c 24251do
b4e70030
JB
24252 case "$ac_config_target" in
24253 # Handling of arguments.
24254 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24255 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24256 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24257 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24258 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24259 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
24260 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24261echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24262 { (exit 1); exit 1; }; };;
c906108c
SS
24263 esac
24264done
24265
bec39cab
AC
24266# If the user did not use the arguments to specify the items to instantiate,
24267# then the envvar interface is used. Set only those that are not.
24268# We use the long form for the default assignment because of an extremely
24269# bizarre bug on SunOS 4.1.3.
24270if $ac_need_defaults; then
24271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24273 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24275fi
24276
b4e70030
JB
24277# Have a temporary directory for convenience. Make it in the build tree
24278# simply because there is no reason to put it here, and in addition,
24279# creating and moving files from /tmp can sometimes cause problems.
24280# Create a temporary directory, and hook for its removal unless debugging.
24281$debug ||
24282{
24283 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24284 trap '{ (exit 1); exit 1; }' 1 2 13 15
24285}
4e8d927d 24286
b4e70030 24287# Create a (secure) tmp directory for tmp files.
4e8d927d 24288
b4e70030
JB
24289{
24290 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24291 test -n "$tmp" && test -d "$tmp"
24292} ||
24293{
24294 tmp=./confstat$$-$RANDOM
24295 (umask 077 && mkdir $tmp)
24296} ||
24297{
24298 echo "$me: cannot create a temporary directory in ." >&2
24299 { (exit 1); exit 1; }
24300}
4e8d927d 24301
b4e70030 24302_ACEOF
4e8d927d 24303
b4e70030 24304cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 24305
b4e70030
JB
24306#
24307# CONFIG_FILES section.
24308#
4e8d927d 24309
b4e70030
JB
24310# No need to generate the scripts if there are no CONFIG_FILES.
24311# This happens for instance when ./config.status config.h
24312if test -n "\$CONFIG_FILES"; then
24313 # Protect against being on the right side of a sed subst in config.status.
24314 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24315 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24316s,@SHELL@,$SHELL,;t t
24317s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24318s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24319s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24320s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24321s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24322s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24323s,@exec_prefix@,$exec_prefix,;t t
24324s,@prefix@,$prefix,;t t
24325s,@program_transform_name@,$program_transform_name,;t t
24326s,@bindir@,$bindir,;t t
24327s,@sbindir@,$sbindir,;t t
24328s,@libexecdir@,$libexecdir,;t t
24329s,@datadir@,$datadir,;t t
24330s,@sysconfdir@,$sysconfdir,;t t
24331s,@sharedstatedir@,$sharedstatedir,;t t
24332s,@localstatedir@,$localstatedir,;t t
24333s,@libdir@,$libdir,;t t
24334s,@includedir@,$includedir,;t t
24335s,@oldincludedir@,$oldincludedir,;t t
24336s,@infodir@,$infodir,;t t
24337s,@mandir@,$mandir,;t t
24338s,@build_alias@,$build_alias,;t t
24339s,@host_alias@,$host_alias,;t t
24340s,@target_alias@,$target_alias,;t t
24341s,@DEFS@,$DEFS,;t t
24342s,@ECHO_C@,$ECHO_C,;t t
24343s,@ECHO_N@,$ECHO_N,;t t
24344s,@ECHO_T@,$ECHO_T,;t t
24345s,@LIBS@,$LIBS,;t t
24346s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24347s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24348s,@MAINT@,$MAINT,;t t
24349s,@CC@,$CC,;t t
24350s,@CFLAGS@,$CFLAGS,;t t
24351s,@LDFLAGS@,$LDFLAGS,;t t
24352s,@CPPFLAGS@,$CPPFLAGS,;t t
24353s,@ac_ct_CC@,$ac_ct_CC,;t t
24354s,@EXEEXT@,$EXEEXT,;t t
24355s,@OBJEXT@,$OBJEXT,;t t
24356s,@CPP@,$CPP,;t t
24357s,@EGREP@,$EGREP,;t t
24358s,@build@,$build,;t t
24359s,@build_cpu@,$build_cpu,;t t
24360s,@build_vendor@,$build_vendor,;t t
24361s,@build_os@,$build_os,;t t
24362s,@host@,$host,;t t
24363s,@host_cpu@,$host_cpu,;t t
24364s,@host_vendor@,$host_vendor,;t t
24365s,@host_os@,$host_os,;t t
24366s,@target@,$target,;t t
24367s,@target_cpu@,$target_cpu,;t t
24368s,@target_vendor@,$target_vendor,;t t
24369s,@target_os@,$target_os,;t t
b4e70030 24370s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
24371s,@LIBINTL@,$LIBINTL,;t t
24372s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24373s,@INCINTL@,$INCINTL,;t t
b4e70030 24374s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
24375s,@GMSGFMT@,$GMSGFMT,;t t
24376s,@POSUB@,$POSUB,;t t
b4e70030 24377s,@CATALOGS@,$CATALOGS,;t t
b4e70030 24378s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 24379s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
24380s,@GENCAT@,$GENCAT,;t t
24381s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
24382s,@localedir@,$localedir,;t t
24383s,@PACKAGE@,$PACKAGE,;t t
24384s,@subdirs@,$subdirs,;t t
24385s,@AWK@,$AWK,;t t
24386s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24387s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24388s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24389s,@LN_S@,$LN_S,;t t
20e95c23
DJ
24390s,@RANLIB@,$RANLIB,;t t
24391s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
24392s,@YACC@,$YACC,;t t
24393s,@AR@,$AR,;t t
24394s,@ac_ct_AR@,$ac_ct_AR,;t t
24395s,@DLLTOOL@,$DLLTOOL,;t t
24396s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24397s,@WINDRES@,$WINDRES,;t t
24398s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
24399s,@MIG@,$MIG,;t t
24400s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
24401s,@READLINE@,$READLINE,;t t
24402s,@READLINE_DEPS@,$READLINE_DEPS,;t t
24403s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
24404s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
24405s,@LIBEXPAT@,$LIBEXPAT,;t t
24406s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 24407s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
24408s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
24409s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24410s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24411s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
24412s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
24413s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
24414s,@WIN32LIBS@,$WIN32LIBS,;t t
24415s,@LIBGUI@,$LIBGUI,;t t
24416s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
24417s,@WIN32LDAPP@,$WIN32LDAPP,;t t
24418s,@TCL_VERSION@,$TCL_VERSION,;t t
24419s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
24420s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
24421s,@TCL_CC@,$TCL_CC,;t t
24422s,@TCL_DEFS@,$TCL_DEFS,;t t
24423s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
24424s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
24425s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24426s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
24427s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
24428s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
24429s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
24430s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
24431s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
24432s,@TCL_RANLIB@,$TCL_RANLIB,;t t
24433s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
24434s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24435s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
24436s,@TK_VERSION@,$TK_VERSION,;t t
24437s,@TK_DEFS@,$TK_DEFS,;t t
24438s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
24439s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
24440s,@TK_XLIBSW@,$TK_XLIBSW,;t t
24441s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
24442s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
24443s,@TCLHDIR@,$TCLHDIR,;t t
24444s,@TKHDIR@,$TKHDIR,;t t
24445s,@ITCLHDIR@,$ITCLHDIR,;t t
24446s,@ITKHDIR@,$ITKHDIR,;t t
24447s,@ITCL_VERSION@,$ITCL_VERSION,;t t
24448s,@ITCL_DEFS@,$ITCL_DEFS,;t t
24449s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
24450s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
24451s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
24452s,@ITK_VERSION@,$ITK_VERSION,;t t
24453s,@ITK_DEFS@,$ITK_DEFS,;t t
24454s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
24455s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
24456s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
24457s,@X_CFLAGS@,$X_CFLAGS,;t t
24458s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24459s,@X_LIBS@,$X_LIBS,;t t
24460s,@TCL_DEPS@,$TCL_DEPS,;t t
24461s,@TK_DEPS@,$TK_DEPS,;t t
24462s,@ITCLLIB@,$ITCLLIB,;t t
24463s,@ITCL_DEPS@,$ITCL_DEPS,;t t
24464s,@ITKLIB@,$ITKLIB,;t t
24465s,@ITK_DEPS@,$ITK_DEPS,;t t
24466s,@GDBTKLIBS@,$GDBTKLIBS,;t t
24467s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
24468s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
24469s,@IGNORE_SIM@,$IGNORE_SIM,;t t
24470s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
24471s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
24472s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
24473s,@CONFIG_OBS@,$CONFIG_OBS,;t t
24474s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
24475s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
24476s,@CONFIG_ALL@,$CONFIG_ALL,;t t
24477s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
24478s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
24479s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
24480s,@target_subdir@,$target_subdir,;t t
24481s,@frags@,$frags,;t t
24482s,@xm_h@,$xm_h,;t t
24483s,@tm_h@,$tm_h,;t t
24484s,@nm_h@,$nm_h,;t t
24485s,@LIBICONV@,$LIBICONV,;t t
24486s,@LIBOBJS@,$LIBOBJS,;t t
24487s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24488/@host_makefile_frag@/r $host_makefile_frag
24489s,@host_makefile_frag@,,;t t
24490/@target_makefile_frag@/r $target_makefile_frag
24491s,@target_makefile_frag@,,;t t
24492CEOF
24493
24494_ACEOF
24495
24496 cat >>$CONFIG_STATUS <<\_ACEOF
24497 # Split the substitutions into bite-sized pieces for seds with
24498 # small command number limits, like on Digital OSF/1 and HP-UX.
24499 ac_max_sed_lines=48
24500 ac_sed_frag=1 # Number of current file.
24501 ac_beg=1 # First line for current file.
24502 ac_end=$ac_max_sed_lines # Line after last line for current file.
24503 ac_more_lines=:
24504 ac_sed_cmds=
24505 while $ac_more_lines; do
24506 if test $ac_beg -gt 1; then
24507 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24508 else
24509 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 24510 fi
b4e70030
JB
24511 if test ! -s $tmp/subs.frag; then
24512 ac_more_lines=false
24513 else
24514 # The purpose of the label and of the branching condition is to
24515 # speed up the sed processing (if there are no `@' at all, there
24516 # is no need to browse any of the substitutions).
24517 # These are the two extra sed commands mentioned above.
24518 (echo ':t
24519 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24520 if test -z "$ac_sed_cmds"; then
24521 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24522 else
24523 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24524 fi
24525 ac_sed_frag=`expr $ac_sed_frag + 1`
24526 ac_beg=$ac_end
24527 ac_end=`expr $ac_end + $ac_max_sed_lines`
24528 fi
24529 done
24530 if test -z "$ac_sed_cmds"; then
24531 ac_sed_cmds=cat
24532 fi
24533fi # test -n "$CONFIG_FILES"
4e8d927d 24534
b4e70030
JB
24535_ACEOF
24536cat >>$CONFIG_STATUS <<\_ACEOF
24537for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24539 case $ac_file in
24540 - | *:- | *:-:* ) # input from stdin
24541 cat >$tmp/stdin
24542 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24544 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24546 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
24547 esac
24548
b4e70030
JB
24549 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24550 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
24551$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24552 X"$ac_file" : 'X\(//\)[^/]' \| \
24553 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
24554 X"$ac_file" : 'X\(/\)' \| \
24555 . : '\(.\)' 2>/dev/null ||
bec39cab 24556echo X"$ac_file" |
b4e70030
JB
24557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24559 /^X\(\/\/\)$/{ s//\1/; q; }
24560 /^X\(\/\).*/{ s//\1/; q; }
24561 s/.*/./; q'`
24562 { if $as_mkdir_p; then
24563 mkdir -p "$ac_dir"
24564 else
24565 as_dir="$ac_dir"
bec39cab 24566 as_dirs=
b4e70030
JB
24567 while test ! -d "$as_dir"; do
24568 as_dirs="$as_dir $as_dirs"
24569 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
24570$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24571 X"$as_dir" : 'X\(//\)[^/]' \| \
24572 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
24573 X"$as_dir" : 'X\(/\)' \| \
24574 . : '\(.\)' 2>/dev/null ||
bec39cab 24575echo X"$as_dir" |
b4e70030
JB
24576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24578 /^X\(\/\/\)$/{ s//\1/; q; }
24579 /^X\(\/\).*/{ s//\1/; q; }
24580 s/.*/./; q'`
bec39cab 24581 done
b4e70030
JB
24582 test ! -n "$as_dirs" || mkdir $as_dirs
24583 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24584echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 24585 { (exit 1); exit 1; }; }; }
b4e70030 24586
bec39cab
AC
24587 ac_builddir=.
24588
b4e70030 24589if test "$ac_dir" != .; then
bec39cab 24590 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
24591 # A "../" for each directory in $ac_dir_suffix.
24592 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24593else
24594 ac_dir_suffix= ac_top_builddir=
24595fi
bec39cab
AC
24596
24597case $srcdir in
b4e70030 24598 .) # No --srcdir option. We are building in place.
bec39cab 24599 ac_srcdir=.
b4e70030
JB
24600 if test -z "$ac_top_builddir"; then
24601 ac_top_srcdir=.
24602 else
24603 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24604 fi ;;
24605 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 24606 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
24607 ac_top_srcdir=$srcdir ;;
24608 *) # Relative path.
24609 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24610 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
24611esac
24612
b4e70030
JB
24613# Do not use `cd foo && pwd` to compute absolute paths, because
24614# the directories may not exist.
24615case `pwd` in
24616.) ac_abs_builddir="$ac_dir";;
24617*)
24618 case "$ac_dir" in
24619 .) ac_abs_builddir=`pwd`;;
24620 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24621 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24622 esac;;
24623esac
24624case $ac_abs_builddir in
24625.) ac_abs_top_builddir=${ac_top_builddir}.;;
24626*)
24627 case ${ac_top_builddir}. in
24628 .) ac_abs_top_builddir=$ac_abs_builddir;;
24629 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24630 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24631 esac;;
24632esac
24633case $ac_abs_builddir in
24634.) ac_abs_srcdir=$ac_srcdir;;
24635*)
24636 case $ac_srcdir in
24637 .) ac_abs_srcdir=$ac_abs_builddir;;
24638 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24639 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24640 esac;;
24641esac
24642case $ac_abs_builddir in
24643.) ac_abs_top_srcdir=$ac_top_srcdir;;
24644*)
24645 case $ac_top_srcdir in
24646 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24647 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24648 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24649 esac;;
24650esac
c906108c 24651
c906108c 24652
bec39cab
AC
24653 case $INSTALL in
24654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 24655 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 24656 esac
121ce6e5 24657
b4e70030
JB
24658 if test x"$ac_file" != x-; then
24659 { echo "$as_me:$LINENO: creating $ac_file" >&5
24660echo "$as_me: creating $ac_file" >&6;}
24661 rm -f "$ac_file"
24662 fi
24663 # Let's still pretend it is `configure' which instantiates (i.e., don't
24664 # use $as_me), people would be surprised to read:
24665 # /* config.h. Generated by config.status. */
24666 if test x"$ac_file" = x-; then
24667 configure_input=
24668 else
24669 configure_input="$ac_file. "
24670 fi
24671 configure_input=$configure_input"Generated from `echo $ac_file_in |
24672 sed 's,.*/,,'` by configure."
24673
24674 # First look for the input files in the build tree, otherwise in the
24675 # src tree.
24676 ac_file_inputs=`IFS=:
24677 for f in $ac_file_in; do
24678 case $f in
24679 -) echo $tmp/stdin ;;
24680 [\\/$]*)
24681 # Absolute (can't be DOS-style, as IFS=:)
24682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24683echo "$as_me: error: cannot find input file: $f" >&2;}
24684 { (exit 1); exit 1; }; }
24685 echo "$f";;
24686 *) # Relative
24687 if test -f "$f"; then
24688 # Build tree
24689 echo "$f"
24690 elif test -f "$srcdir/$f"; then
24691 # Source tree
24692 echo "$srcdir/$f"
24693 else
24694 # /dev/null tree
24695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24696echo "$as_me: error: cannot find input file: $f" >&2;}
24697 { (exit 1); exit 1; }; }
24698 fi;;
24699 esac
24700 done` || { (exit 1); exit 1; }
4e8d927d 24701_ACEOF
bec39cab
AC
24702cat >>$CONFIG_STATUS <<_ACEOF
24703 sed "$ac_vpsub
24704$extrasub
24705_ACEOF
24706cat >>$CONFIG_STATUS <<\_ACEOF
24707:t
24708/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
24709s,@configure_input@,$configure_input,;t t
24710s,@srcdir@,$ac_srcdir,;t t
24711s,@abs_srcdir@,$ac_abs_srcdir,;t t
24712s,@top_srcdir@,$ac_top_srcdir,;t t
24713s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24714s,@builddir@,$ac_builddir,;t t
24715s,@abs_builddir@,$ac_abs_builddir,;t t
24716s,@top_builddir@,$ac_top_builddir,;t t
24717s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24718s,@INSTALL@,$ac_INSTALL,;t t
24719" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24720 rm -f $tmp/stdin
24721 if test x"$ac_file" != x-; then
24722 mv $tmp/out $ac_file
24723 else
24724 cat $tmp/out
24725 rm -f $tmp/out
24726 fi
24727
24728done
24729_ACEOF
24730cat >>$CONFIG_STATUS <<\_ACEOF
24731
24732#
24733# CONFIG_HEADER section.
24734#
24735
24736# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24737# NAME is the cpp macro being defined and VALUE is the value it is being given.
24738#
24739# ac_d sets the value in "#define NAME VALUE" lines.
24740ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24741ac_dB='[ ].*$,\1#\2'
24742ac_dC=' '
24743ac_dD=',;t'
24744# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24745ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24746ac_uB='$,\1#\2define\3'
24747ac_uC=' '
24748ac_uD=',;t'
24749
24750for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 24752 case $ac_file in
b4e70030
JB
24753 - | *:- | *:-:* ) # input from stdin
24754 cat >$tmp/stdin
24755 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24757 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24759 * ) ac_file_in=$ac_file.in ;;
c906108c 24760 esac
b4e70030
JB
24761
24762 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24763echo "$as_me: creating $ac_file" >&6;}
24764
24765 # First look for the input files in the build tree, otherwise in the
24766 # src tree.
24767 ac_file_inputs=`IFS=:
24768 for f in $ac_file_in; do
24769 case $f in
24770 -) echo $tmp/stdin ;;
24771 [\\/$]*)
24772 # Absolute (can't be DOS-style, as IFS=:)
24773 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24774echo "$as_me: error: cannot find input file: $f" >&2;}
24775 { (exit 1); exit 1; }; }
24776 # Do quote $f, to prevent DOS paths from being IFS'd.
24777 echo "$f";;
24778 *) # Relative
24779 if test -f "$f"; then
24780 # Build tree
24781 echo "$f"
24782 elif test -f "$srcdir/$f"; then
24783 # Source tree
24784 echo "$srcdir/$f"
24785 else
24786 # /dev/null tree
24787 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24788echo "$as_me: error: cannot find input file: $f" >&2;}
24789 { (exit 1); exit 1; }; }
24790 fi;;
24791 esac
24792 done` || { (exit 1); exit 1; }
24793 # Remove the trailing spaces.
24794 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24795
24796_ACEOF
24797
24798# Transform confdefs.h into two sed scripts, `conftest.defines' and
24799# `conftest.undefs', that substitutes the proper values into
24800# config.h.in to produce config.h. The first handles `#define'
24801# templates, and the second `#undef' templates.
24802# And first: Protect against being on the right side of a sed subst in
24803# config.status. Protect against being in an unquoted here document
24804# in config.status.
24805rm -f conftest.defines conftest.undefs
24806# Using a here document instead of a string reduces the quoting nightmare.
24807# Putting comments in sed scripts is not portable.
24808#
24809# `end' is used to avoid that the second main sed command (meant for
24810# 0-ary CPP macros) applies to n-ary macro definitions.
24811# See the Autoconf documentation for `clear'.
24812cat >confdef2sed.sed <<\_ACEOF
24813s/[\\&,]/\\&/g
24814s,[\\$`],\\&,g
24815t clear
24816: clear
24817s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24818t end
24819s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24820: end
24821_ACEOF
24822# If some macros were called several times there might be several times
24823# the same #defines, which is useless. Nevertheless, we may not want to
24824# sort them, since we want the *last* AC-DEFINE to be honored.
24825uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24826sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24827rm -f confdef2sed.sed
24828
24829# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
24830# example, in the case of _POSIX_SOURCE, which is predefined and required
24831# on some systems where configure will not decide to define it.
b4e70030
JB
24832cat >>conftest.undefs <<\_ACEOF
24833s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24834_ACEOF
24835
24836# Break up conftest.defines because some shells have a limit on the size
24837# of here documents, and old seds have small limits too (100 cmds).
24838echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24839echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24840echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24841echo ' :' >>$CONFIG_STATUS
24842rm -f conftest.tail
24843while grep . conftest.defines >/dev/null
bec39cab 24844do
b4e70030
JB
24845 # Write a limited-size here document to $tmp/defines.sed.
24846 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24847 # Speed up: don't consider the non `#define' lines.
24848 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24849 # Work around the forget-to-reset-the-flag bug.
24850 echo 't clr' >>$CONFIG_STATUS
24851 echo ': clr' >>$CONFIG_STATUS
24852 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 24853 echo 'CEOF
b4e70030
JB
24854 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24855 rm -f $tmp/in
24856 mv $tmp/out $tmp/in
24857' >>$CONFIG_STATUS
24858 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
24859 rm -f conftest.defines
24860 mv conftest.tail conftest.defines
24861done
b4e70030
JB
24862rm -f conftest.defines
24863echo ' fi # grep' >>$CONFIG_STATUS
24864echo >>$CONFIG_STATUS
24865
24866# Break up conftest.undefs because some shells have a limit on the size
24867# of here documents, and old seds have small limits too (100 cmds).
24868echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24869rm -f conftest.tail
24870while grep . conftest.undefs >/dev/null
24871do
24872 # Write a limited-size here document to $tmp/undefs.sed.
24873 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24874 # Speed up: don't consider the non `#undef'
24875 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24876 # Work around the forget-to-reset-the-flag bug.
24877 echo 't clr' >>$CONFIG_STATUS
24878 echo ': clr' >>$CONFIG_STATUS
24879 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24880 echo 'CEOF
24881 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24882 rm -f $tmp/in
24883 mv $tmp/out $tmp/in
24884' >>$CONFIG_STATUS
24885 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24886 rm -f conftest.undefs
24887 mv conftest.tail conftest.undefs
24888done
24889rm -f conftest.undefs
bec39cab
AC
24890
24891cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
24892 # Let's still pretend it is `configure' which instantiates (i.e., don't
24893 # use $as_me), people would be surprised to read:
24894 # /* config.h. Generated by config.status. */
24895 if test x"$ac_file" = x-; then
24896 echo "/* Generated by configure. */" >$tmp/config.h
24897 else
24898 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24899 fi
24900 cat $tmp/in >>$tmp/config.h
24901 rm -f $tmp/in
bec39cab 24902 if test x"$ac_file" != x-; then
b4e70030 24903 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
24904 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24905echo "$as_me: $ac_file is unchanged" >&6;}
24906 else
b4e70030
JB
24907 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24908$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24909 X"$ac_file" : 'X\(//\)[^/]' \| \
24910 X"$ac_file" : 'X\(//\)$' \| \
24911 X"$ac_file" : 'X\(/\)' \| \
24912 . : '\(.\)' 2>/dev/null ||
24913echo X"$ac_file" |
24914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24916 /^X\(\/\/\)$/{ s//\1/; q; }
24917 /^X\(\/\).*/{ s//\1/; q; }
24918 s/.*/./; q'`
24919 { if $as_mkdir_p; then
24920 mkdir -p "$ac_dir"
24921 else
24922 as_dir="$ac_dir"
24923 as_dirs=
24924 while test ! -d "$as_dir"; do
24925 as_dirs="$as_dir $as_dirs"
24926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24927$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24928 X"$as_dir" : 'X\(//\)[^/]' \| \
24929 X"$as_dir" : 'X\(//\)$' \| \
24930 X"$as_dir" : 'X\(/\)' \| \
24931 . : '\(.\)' 2>/dev/null ||
24932echo X"$as_dir" |
24933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24935 /^X\(\/\/\)$/{ s//\1/; q; }
24936 /^X\(\/\).*/{ s//\1/; q; }
24937 s/.*/./; q'`
24938 done
24939 test ! -n "$as_dirs" || mkdir $as_dirs
24940 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24941echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24942 { (exit 1); exit 1; }; }; }
24943
bec39cab 24944 rm -f $ac_file
b4e70030 24945 mv $tmp/config.h $ac_file
bec39cab
AC
24946 fi
24947 else
b4e70030
JB
24948 cat $tmp/config.h
24949 rm -f $tmp/config.h
bec39cab 24950 fi
b4e70030
JB
24951done
24952_ACEOF
24953cat >>$CONFIG_STATUS <<\_ACEOF
24954
24955#
24956# CONFIG_LINKS section.
24957#
24958
24959for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24960 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24961 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 24962
b4e70030
JB
24963 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24964echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
24965
24966 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
24967 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24968echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24969 { (exit 1); exit 1; }; }
c906108c 24970 fi
b4e70030
JB
24971 rm -f $ac_dest
24972
24973 # Make relative symlinks.
24974 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24975$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24976 X"$ac_dest" : 'X\(//\)[^/]' \| \
24977 X"$ac_dest" : 'X\(//\)$' \| \
24978 X"$ac_dest" : 'X\(/\)' \| \
24979 . : '\(.\)' 2>/dev/null ||
24980echo X"$ac_dest" |
24981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24983 /^X\(\/\/\)$/{ s//\1/; q; }
24984 /^X\(\/\).*/{ s//\1/; q; }
24985 s/.*/./; q'`
24986 { if $as_mkdir_p; then
24987 mkdir -p "$ac_dest_dir"
24988 else
24989 as_dir="$ac_dest_dir"
24990 as_dirs=
24991 while test ! -d "$as_dir"; do
24992 as_dirs="$as_dir $as_dirs"
24993 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24994$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24995 X"$as_dir" : 'X\(//\)[^/]' \| \
24996 X"$as_dir" : 'X\(//\)$' \| \
24997 X"$as_dir" : 'X\(/\)' \| \
24998 . : '\(.\)' 2>/dev/null ||
24999echo X"$as_dir" |
25000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25002 /^X\(\/\/\)$/{ s//\1/; q; }
25003 /^X\(\/\).*/{ s//\1/; q; }
25004 s/.*/./; q'`
25005 done
25006 test ! -n "$as_dirs" || mkdir $as_dirs
25007 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25008echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25009 { (exit 1); exit 1; }; }; }
25010
25011 ac_builddir=.
25012
25013if test "$ac_dest_dir" != .; then
25014 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25015 # A "../" for each directory in $ac_dir_suffix.
25016 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25017else
25018 ac_dir_suffix= ac_top_builddir=
25019fi
25020
25021case $srcdir in
25022 .) # No --srcdir option. We are building in place.
25023 ac_srcdir=.
25024 if test -z "$ac_top_builddir"; then
25025 ac_top_srcdir=.
25026 else
25027 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25028 fi ;;
25029 [\\/]* | ?:[\\/]* ) # Absolute path.
25030 ac_srcdir=$srcdir$ac_dir_suffix;
25031 ac_top_srcdir=$srcdir ;;
25032 *) # Relative path.
25033 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25034 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25035esac
25036
25037# Do not use `cd foo && pwd` to compute absolute paths, because
25038# the directories may not exist.
25039case `pwd` in
25040.) ac_abs_builddir="$ac_dest_dir";;
25041*)
25042 case "$ac_dest_dir" in
25043 .) ac_abs_builddir=`pwd`;;
25044 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25045 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25046 esac;;
25047esac
25048case $ac_abs_builddir in
25049.) ac_abs_top_builddir=${ac_top_builddir}.;;
25050*)
25051 case ${ac_top_builddir}. in
25052 .) ac_abs_top_builddir=$ac_abs_builddir;;
25053 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25054 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25055 esac;;
25056esac
25057case $ac_abs_builddir in
25058.) ac_abs_srcdir=$ac_srcdir;;
25059*)
25060 case $ac_srcdir in
25061 .) ac_abs_srcdir=$ac_abs_builddir;;
25062 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25063 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25064 esac;;
25065esac
25066case $ac_abs_builddir in
25067.) ac_abs_top_srcdir=$ac_top_srcdir;;
25068*)
25069 case $ac_top_srcdir in
25070 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25071 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25072 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25073 esac;;
25074esac
25075
bec39cab
AC
25076
25077 case $srcdir in
25078 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 25079 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 25080 esac
b4e70030
JB
25081
25082 # Try a symlink, then a hard link, then a copy.
25083 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25084 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25085 cp -p $srcdir/$ac_source $ac_dest ||
25086 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25087echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 25088 { (exit 1); exit 1; }; }
b4e70030
JB
25089done
25090_ACEOF
25091cat >>$CONFIG_STATUS <<\_ACEOF
25092
25093#
25094# CONFIG_COMMANDS section.
25095#
25096for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25097 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25098 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25099 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25100$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25101 X"$ac_dest" : 'X\(//\)[^/]' \| \
25102 X"$ac_dest" : 'X\(//\)$' \| \
25103 X"$ac_dest" : 'X\(/\)' \| \
25104 . : '\(.\)' 2>/dev/null ||
25105echo X"$ac_dest" |
25106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25108 /^X\(\/\/\)$/{ s//\1/; q; }
25109 /^X\(\/\).*/{ s//\1/; q; }
25110 s/.*/./; q'`
25111 { if $as_mkdir_p; then
25112 mkdir -p "$ac_dir"
25113 else
25114 as_dir="$ac_dir"
25115 as_dirs=
25116 while test ! -d "$as_dir"; do
25117 as_dirs="$as_dir $as_dirs"
25118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25119$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25120 X"$as_dir" : 'X\(//\)[^/]' \| \
25121 X"$as_dir" : 'X\(//\)$' \| \
25122 X"$as_dir" : 'X\(/\)' \| \
25123 . : '\(.\)' 2>/dev/null ||
25124echo X"$as_dir" |
25125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25127 /^X\(\/\/\)$/{ s//\1/; q; }
25128 /^X\(\/\).*/{ s//\1/; q; }
25129 s/.*/./; q'`
25130 done
25131 test ! -n "$as_dirs" || mkdir $as_dirs
25132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25133echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25134 { (exit 1); exit 1; }; }; }
25135
25136 ac_builddir=.
25137
25138if test "$ac_dir" != .; then
25139 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25140 # A "../" for each directory in $ac_dir_suffix.
25141 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25142else
25143 ac_dir_suffix= ac_top_builddir=
25144fi
25145
25146case $srcdir in
25147 .) # No --srcdir option. We are building in place.
25148 ac_srcdir=.
25149 if test -z "$ac_top_builddir"; then
25150 ac_top_srcdir=.
25151 else
25152 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25153 fi ;;
25154 [\\/]* | ?:[\\/]* ) # Absolute path.
25155 ac_srcdir=$srcdir$ac_dir_suffix;
25156 ac_top_srcdir=$srcdir ;;
25157 *) # Relative path.
25158 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25159 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25160esac
25161
25162# Do not use `cd foo && pwd` to compute absolute paths, because
25163# the directories may not exist.
25164case `pwd` in
25165.) ac_abs_builddir="$ac_dir";;
25166*)
25167 case "$ac_dir" in
25168 .) ac_abs_builddir=`pwd`;;
25169 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25170 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25171 esac;;
25172esac
25173case $ac_abs_builddir in
25174.) ac_abs_top_builddir=${ac_top_builddir}.;;
25175*)
25176 case ${ac_top_builddir}. in
25177 .) ac_abs_top_builddir=$ac_abs_builddir;;
25178 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25179 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25180 esac;;
25181esac
25182case $ac_abs_builddir in
25183.) ac_abs_srcdir=$ac_srcdir;;
25184*)
25185 case $ac_srcdir in
25186 .) ac_abs_srcdir=$ac_abs_builddir;;
25187 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25188 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25189 esac;;
25190esac
25191case $ac_abs_builddir in
25192.) ac_abs_top_srcdir=$ac_top_srcdir;;
25193*)
25194 case $ac_top_srcdir in
25195 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25196 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25197 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25198 esac;;
25199esac
bec39cab 25200
bec39cab 25201
b4e70030
JB
25202 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25203echo "$as_me: executing $ac_dest commands" >&6;}
25204 case $ac_dest in
25205 gdb_stdint.h )
4e8d927d
DJ
25206if test "$GCC" = yes; then
25207 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25208else
25209 echo "/* generated for $CC */" > tmp-stdint.h
25210fi
25211
25212sed 's/^ *//' >> tmp-stdint.h <<EOF
25213
25214 #ifndef GCC_GENERATED_STDINT_H
25215 #define GCC_GENERATED_STDINT_H 1
25216
25217 #include <sys/types.h>
25218EOF
25219
25220if test "$acx_cv_header_stdint" != stdint.h; then
25221 echo "#include <stddef.h>" >> tmp-stdint.h
25222fi
25223if test "$acx_cv_header_stdint" != stddef.h; then
25224 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25225fi
25226
25227sed 's/^ *//' >> tmp-stdint.h <<EOF
25228 /* glibc uses these symbols as guards to prevent redefinitions. */
25229 #ifdef __int8_t_defined
25230 #define _INT8_T
25231 #define _INT16_T
25232 #define _INT32_T
25233 #endif
25234 #ifdef __uint32_t_defined
25235 #define _UINT32_T
25236 #endif
25237
25238EOF
25239
25240# ----------------- done header, emit basic int types -------------
25241if test "$acx_cv_header_stdint" = stddef.h; then
25242 sed 's/^ *//' >> tmp-stdint.h <<EOF
25243
25244 #ifndef _UINT8_T
25245 #define _UINT8_T
07abfebf
RS
25246 #ifndef __uint8_t_defined
25247 #define __uint8_t_defined
4e8d927d
DJ
25248 typedef unsigned $acx_cv_type_int8_t uint8_t;
25249 #endif
07abfebf 25250 #endif
4e8d927d
DJ
25251
25252 #ifndef _UINT16_T
25253 #define _UINT16_T
07abfebf
RS
25254 #ifndef __uint16_t_defined
25255 #define __uint16_t_defined
4e8d927d
DJ
25256 typedef unsigned $acx_cv_type_int16_t uint16_t;
25257 #endif
07abfebf 25258 #endif
4e8d927d
DJ
25259
25260 #ifndef _UINT32_T
25261 #define _UINT32_T
07abfebf
RS
25262 #ifndef __uint32_t_defined
25263 #define __uint32_t_defined
4e8d927d
DJ
25264 typedef unsigned $acx_cv_type_int32_t uint32_t;
25265 #endif
07abfebf 25266 #endif
4e8d927d
DJ
25267
25268 #ifndef _INT8_T
25269 #define _INT8_T
07abfebf
RS
25270 #ifndef __int8_t_defined
25271 #define __int8_t_defined
4e8d927d
DJ
25272 typedef $acx_cv_type_int8_t int8_t;
25273 #endif
07abfebf 25274 #endif
4e8d927d
DJ
25275
25276 #ifndef _INT16_T
25277 #define _INT16_T
07abfebf
RS
25278 #ifndef __int16_t_defined
25279 #define __int16_t_defined
4e8d927d
DJ
25280 typedef $acx_cv_type_int16_t int16_t;
25281 #endif
07abfebf 25282 #endif
4e8d927d
DJ
25283
25284 #ifndef _INT32_T
25285 #define _INT32_T
07abfebf
RS
25286 #ifndef __int32_t_defined
25287 #define __int32_t_defined
4e8d927d
DJ
25288 typedef $acx_cv_type_int32_t int32_t;
25289 #endif
07abfebf 25290 #endif
4e8d927d
DJ
25291EOF
25292elif test "$ac_cv_type_u_int32_t" = yes; then
25293 sed 's/^ *//' >> tmp-stdint.h <<EOF
25294
25295 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25296 #ifndef _INT8_T
25297 #define _INT8_T
25298 #endif
25299 #ifndef _INT16_T
25300 #define _INT16_T
25301 #endif
25302 #ifndef _INT32_T
25303 #define _INT32_T
25304 #endif
25305
25306 #ifndef _UINT8_T
25307 #define _UINT8_T
07abfebf
RS
25308 #ifndef __uint8_t_defined
25309 #define __uint8_t_defined
4e8d927d
DJ
25310 typedef u_int8_t uint8_t;
25311 #endif
07abfebf 25312 #endif
4e8d927d
DJ
25313
25314 #ifndef _UINT16_T
25315 #define _UINT16_T
07abfebf
RS
25316 #ifndef __uint16_t_defined
25317 #define __uint16_t_defined
4e8d927d
DJ
25318 typedef u_int16_t uint16_t;
25319 #endif
07abfebf 25320 #endif
4e8d927d
DJ
25321
25322 #ifndef _UINT32_T
25323 #define _UINT32_T
07abfebf
RS
25324 #ifndef __uint32_t_defined
25325 #define __uint32_t_defined
4e8d927d
DJ
25326 typedef u_int32_t uint32_t;
25327 #endif
07abfebf 25328 #endif
4e8d927d
DJ
25329EOF
25330else
25331 sed 's/^ *//' >> tmp-stdint.h <<EOF
25332
25333 /* Some systems have guard macros to prevent redefinitions, define them. */
25334 #ifndef _INT8_T
25335 #define _INT8_T
25336 #endif
25337 #ifndef _INT16_T
25338 #define _INT16_T
25339 #endif
25340 #ifndef _INT32_T
25341 #define _INT32_T
25342 #endif
25343 #ifndef _UINT8_T
25344 #define _UINT8_T
25345 #endif
25346 #ifndef _UINT16_T
25347 #define _UINT16_T
25348 #endif
25349 #ifndef _UINT32_T
25350 #define _UINT32_T
25351 #endif
25352EOF
25353fi
25354
25355# ------------- done basic int types, emit int64_t types ------------
25356if test "$ac_cv_type_uint64_t" = yes; then
25357 sed 's/^ *//' >> tmp-stdint.h <<EOF
25358
25359 /* system headers have good uint64_t and int64_t */
25360 #ifndef _INT64_T
25361 #define _INT64_T
25362 #endif
25363 #ifndef _UINT64_T
25364 #define _UINT64_T
25365 #endif
25366EOF
25367elif test "$ac_cv_type_u_int64_t" = yes; then
25368 sed 's/^ *//' >> tmp-stdint.h <<EOF
25369
25370 /* system headers have an u_int64_t (and int64_t) */
25371 #ifndef _INT64_T
25372 #define _INT64_T
25373 #endif
25374 #ifndef _UINT64_T
25375 #define _UINT64_T
07abfebf
RS
25376 #ifndef __uint64_t_defined
25377 #define __uint64_t_defined
4e8d927d
DJ
25378 typedef u_int64_t uint64_t;
25379 #endif
07abfebf 25380 #endif
4e8d927d
DJ
25381EOF
25382elif test -n "$acx_cv_type_int64_t"; then
25383 sed 's/^ *//' >> tmp-stdint.h <<EOF
25384
25385 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25386 #ifndef _INT64_T
25387 #define _INT64_T
25388 typedef $acx_cv_type_int64_t int64_t;
25389 #endif
25390 #ifndef _UINT64_T
25391 #define _UINT64_T
07abfebf
RS
25392 #ifndef __uint64_t_defined
25393 #define __uint64_t_defined
4e8d927d
DJ
25394 typedef unsigned $acx_cv_type_int64_t uint64_t;
25395 #endif
07abfebf 25396 #endif
4e8d927d
DJ
25397EOF
25398else
25399 sed 's/^ *//' >> tmp-stdint.h <<EOF
25400
25401 /* some common heuristics for int64_t, using compiler-specific tests */
25402 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25403 #ifndef _INT64_T
25404 #define _INT64_T
07abfebf 25405 #ifndef __int64_t_defined
4e8d927d
DJ
25406 typedef long long int64_t;
25407 #endif
07abfebf 25408 #endif
4e8d927d
DJ
25409 #ifndef _UINT64_T
25410 #define _UINT64_T
25411 typedef unsigned long long uint64_t;
25412 #endif
25413
25414 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25415 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25416 does not implement __extension__. But that compiler doesn't define
25417 __GNUC_MINOR__. */
25418 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25419 # define __extension__
25420 # endif
25421
25422 # ifndef _INT64_T
25423 # define _INT64_T
25424 __extension__ typedef long long int64_t;
25425 # endif
25426 # ifndef _UINT64_T
25427 # define _UINT64_T
25428 __extension__ typedef unsigned long long uint64_t;
25429 # endif
25430
25431 #elif !defined __STRICT_ANSI__
25432 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25433
25434 # ifndef _INT64_T
25435 # define _INT64_T
25436 typedef __int64 int64_t;
25437 # endif
25438 # ifndef _UINT64_T
25439 # define _UINT64_T
25440 typedef unsigned __int64 uint64_t;
25441 # endif
25442 # endif /* compiler */
25443
25444 #endif /* ANSI version */
25445EOF
25446fi
25447
25448# ------------- done int64_t types, emit intptr types ------------
25449if test "$ac_cv_type_uintptr_t" != yes; then
25450 sed 's/^ *//' >> tmp-stdint.h <<EOF
25451
25452 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
07abfebf 25453 #ifndef __uintptr_t_defined
4e8d927d 25454 typedef u$acx_cv_type_intptr_t uintptr_t;
07abfebf
RS
25455 #endif
25456 #ifndef __intptr_t_defined
4e8d927d 25457 typedef $acx_cv_type_intptr_t intptr_t;
07abfebf 25458 #endif
4e8d927d
DJ
25459EOF
25460fi
25461
25462# ------------- done intptr types, emit int_least types ------------
25463if test "$ac_cv_type_int_least32_t" != yes; then
25464 sed 's/^ *//' >> tmp-stdint.h <<EOF
25465
25466 /* Define int_least types */
25467 typedef int8_t int_least8_t;
25468 typedef int16_t int_least16_t;
25469 typedef int32_t int_least32_t;
25470 #ifdef _INT64_T
25471 typedef int64_t int_least64_t;
25472 #endif
25473
25474 typedef uint8_t uint_least8_t;
25475 typedef uint16_t uint_least16_t;
25476 typedef uint32_t uint_least32_t;
25477 #ifdef _UINT64_T
25478 typedef uint64_t uint_least64_t;
25479 #endif
25480EOF
25481fi
25482
25483# ------------- done intptr types, emit int_fast types ------------
25484if test "$ac_cv_type_int_fast32_t" != yes; then
25485 sed 's/^ *//' >> tmp-stdint.h <<EOF
25486
25487 /* Define int_fast types. short is often slow */
25488 typedef int8_t int_fast8_t;
25489 typedef int int_fast16_t;
25490 typedef int32_t int_fast32_t;
25491 #ifdef _INT64_T
25492 typedef int64_t int_fast64_t;
25493 #endif
25494
25495 typedef uint8_t uint_fast8_t;
25496 typedef unsigned int uint_fast16_t;
25497 typedef uint32_t uint_fast32_t;
25498 #ifdef _UINT64_T
25499 typedef uint64_t uint_fast64_t;
25500 #endif
25501EOF
25502fi
25503
25504if test "$ac_cv_type_uintmax_t" != yes; then
25505 sed 's/^ *//' >> tmp-stdint.h <<EOF
25506
25507 /* Define intmax based on what we found */
25508 #ifdef _INT64_T
25509 typedef int64_t intmax_t;
25510 #else
25511 typedef long intmax_t;
25512 #endif
25513 #ifdef _UINT64_T
25514 typedef uint64_t uintmax_t;
25515 #else
25516 typedef unsigned long uintmax_t;
25517 #endif
25518EOF
25519fi
25520
25521sed 's/^ *//' >> tmp-stdint.h <<EOF
25522
25523 #endif /* GCC_GENERATED_STDINT_H */
25524EOF
25525
25526if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
25527 rm -f tmp-stdint.h
25528else
25529 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
25530fi
25531
4e8d927d 25532 ;;
b4e70030 25533 default )
c906108c 25534
2c0fc042 25535sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
25536/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
25537/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25538mv -f Makefile.tmp Makefile
25539
2acceee2 25540
c906108c
SS
25541case x$CONFIG_HEADERS in
25542xconfig.h:config.in)
25543echo > stamp-h ;;
25544esac
bec39cab
AC
25545 ;;
25546 esac
b4e70030
JB
25547done
25548_ACEOF
c906108c 25549
b4e70030 25550cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25551
25552{ (exit 0); exit 0; }
25553_ACEOF
c906108c 25554chmod +x $CONFIG_STATUS
bec39cab
AC
25555ac_clean_files=$ac_clean_files_save
25556
25557
25558# configure is writing to config.log, and then calls config.status.
25559# config.status does its own redirection, appending to config.log.
25560# Unfortunately, on DOS this fails, as config.log is still kept open
25561# by configure, so config.status won't be able to write to it; its
25562# output is simply discarded. So we exec the FD to /dev/null,
25563# effectively closing config.log, so it can be properly (re)opened and
25564# appended to by config.status. When coming back to configure, we
25565# need to make the FD available again.
25566if test "$no_create" != yes; then
25567 ac_cs_success=:
25568 ac_config_status_args=
25569 test "$silent" = yes &&
25570 ac_config_status_args="$ac_config_status_args --quiet"
25571 exec 5>/dev/null
25572 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25573 exec 5>>config.log
25574 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25575 # would make configure fail if this is the last instruction.
25576 $ac_cs_success || { (exit 1); exit 1; }
25577fi
c906108c 25578
bec39cab
AC
25579#
25580# CONFIG_SUBDIRS section.
25581#
c906108c
SS
25582if test "$no_recursion" != yes; then
25583
25584 # Remove --cache-file and --srcdir arguments so they do not pile up.
25585 ac_sub_configure_args=
25586 ac_prev=
b4e70030 25587 for ac_arg in $ac_configure_args; do
c906108c
SS
25588 if test -n "$ac_prev"; then
25589 ac_prev=
25590 continue
25591 fi
bec39cab 25592 case $ac_arg in
c906108c
SS
25593 -cache-file | --cache-file | --cache-fil | --cache-fi \
25594 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25595 ac_prev=cache_file ;;
25596 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
25597 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25598 | --c=*)
25599 ;;
25600 --config-cache | -C)
c906108c
SS
25601 ;;
25602 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25603 ac_prev=srcdir ;;
25604 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25605 ;;
bec39cab
AC
25606 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25607 ac_prev=prefix ;;
25608 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25609 ;;
b4e70030 25610 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
25611 esac
25612 done
25613
bec39cab
AC
25614 # Always prepend --prefix to ensure using the same prefix
25615 # in subdir configurations.
25616 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25617
b4e70030 25618 ac_popdir=`pwd`
bec39cab 25619 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
25620
25621 # Do not complain, so a configure script can configure whichever
25622 # parts of a large source tree are present.
bec39cab 25623 test -d $srcdir/$ac_dir || continue
c906108c 25624
b4e70030
JB
25625 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25626echo "$as_me: configuring in $ac_dir" >&6;}
25627 { if $as_mkdir_p; then
25628 mkdir -p "$ac_dir"
25629 else
25630 as_dir="$ac_dir"
bec39cab 25631 as_dirs=
b4e70030
JB
25632 while test ! -d "$as_dir"; do
25633 as_dirs="$as_dir $as_dirs"
25634 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25636 X"$as_dir" : 'X\(//\)[^/]' \| \
25637 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25638 X"$as_dir" : 'X\(/\)' \| \
25639 . : '\(.\)' 2>/dev/null ||
bec39cab 25640echo X"$as_dir" |
b4e70030
JB
25641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25643 /^X\(\/\/\)$/{ s//\1/; q; }
25644 /^X\(\/\).*/{ s//\1/; q; }
25645 s/.*/./; q'`
bec39cab 25646 done
b4e70030
JB
25647 test ! -n "$as_dirs" || mkdir $as_dirs
25648 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25649echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25650 { (exit 1); exit 1; }; }; }
b4e70030 25651
bec39cab
AC
25652 ac_builddir=.
25653
b4e70030 25654if test "$ac_dir" != .; then
bec39cab 25655 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25656 # A "../" for each directory in $ac_dir_suffix.
25657 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25658else
25659 ac_dir_suffix= ac_top_builddir=
25660fi
bec39cab
AC
25661
25662case $srcdir in
b4e70030 25663 .) # No --srcdir option. We are building in place.
bec39cab 25664 ac_srcdir=.
b4e70030
JB
25665 if test -z "$ac_top_builddir"; then
25666 ac_top_srcdir=.
25667 else
25668 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25669 fi ;;
25670 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25671 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25672 ac_top_srcdir=$srcdir ;;
25673 *) # Relative path.
25674 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25675 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25676esac
25677
25678# Do not use `cd foo && pwd` to compute absolute paths, because
25679# the directories may not exist.
25680case `pwd` in
25681.) ac_abs_builddir="$ac_dir";;
25682*)
25683 case "$ac_dir" in
25684 .) ac_abs_builddir=`pwd`;;
25685 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25686 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25687 esac;;
25688esac
25689case $ac_abs_builddir in
25690.) ac_abs_top_builddir=${ac_top_builddir}.;;
25691*)
25692 case ${ac_top_builddir}. in
25693 .) ac_abs_top_builddir=$ac_abs_builddir;;
25694 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25695 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25696 esac;;
25697esac
25698case $ac_abs_builddir in
25699.) ac_abs_srcdir=$ac_srcdir;;
25700*)
25701 case $ac_srcdir in
25702 .) ac_abs_srcdir=$ac_abs_builddir;;
25703 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25704 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25705 esac;;
25706esac
25707case $ac_abs_builddir in
25708.) ac_abs_top_srcdir=$ac_top_srcdir;;
25709*)
25710 case $ac_top_srcdir in
25711 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25712 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25713 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25714 esac;;
bec39cab 25715esac
c906108c 25716
c906108c 25717
b4e70030 25718 cd $ac_dir
c906108c
SS
25719
25720 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
25721 if test -f $ac_srcdir/configure.gnu; then
25722 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25723 elif test -f $ac_srcdir/configure; then
25724 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25725 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
25726 ac_sub_configure=$ac_configure
25727 else
bec39cab
AC
25728 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25729echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
25730 ac_sub_configure=
25731 fi
25732
25733 # The recursion is here.
25734 if test -n "$ac_sub_configure"; then
c906108c 25735 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
25736 case $cache_file in
25737 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
25738 *) # Relative path.
25739 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 25740 esac
c906108c 25741
bec39cab
AC
25742 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25743echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 25744 # The eval makes quoting arguments work.
b4e70030
JB
25745 eval $ac_sub_configure $ac_sub_configure_args \
25746 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
25747 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25748echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25749 { (exit 1); exit 1; }; }
c906108c
SS
25750 fi
25751
b4e70030 25752 cd $ac_popdir
c906108c
SS
25753 done
25754fi
25755
25756
25757exit 0
This page took 2.280143 seconds and 4 git commands to generate.