* score-tdep.c (score_push_dummy_call): Don't mix declarations and
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
b4e70030 3# Generated by GNU Autoconf 2.59.
c906108c 4#
b4e70030 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
bec39cab
AC
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 33$as_unset ENV MAIL MAILPATH
bec39cab
AC
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
b4e70030 47 $as_unset $as_var
bec39cab
AC
48 fi
49done
50
51# Required to use basename.
b4e70030 52if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
53 as_expr=expr
54else
55 as_expr=false
56fi
57
b4e70030 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
b4e70030 66as_me=`$as_basename "$0" ||
bec39cab
AC
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
bec39cab 71echo X/"$0" |
b4e70030
JB
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
bec39cab 76
4e8d927d 77
b4e70030
JB
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
4e8d927d 85
b4e70030
JB
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
4e8d927d
DJ
97fi
98
4e8d927d 99
b4e70030
JB
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
4e8d927d 116
b4e70030
JB
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
bec39cab 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4e70030 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab
AC
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
b4e70030
JB
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
bec39cab 137 /*)
b4e70030 138 if ("$as_dir/$as_base" -c '
4e8d927d
DJ
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
b4e70030 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4e8d927d 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
bec39cab
AC
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
bec39cab 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
bec39cab
AC
165 sed '
166 N
b4e70030
JB
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 170 t loop
b4e70030
JB
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
bec39cab 173 ' >$as_me.lineno &&
b4e70030 174 chmod +x $as_me.lineno ||
bec39cab
AC
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
bec39cab
AC
182 # Exit status is that of the last command.
183 exit
184}
185
186
b4e70030
JB
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
192esac
193
b4e70030 194if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
bec39cab 207 as_ln_s='cp -p'
b4e70030
JB
208 else
209 as_ln_s='ln -s'
210 fi
bec39cab
AC
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
b4e70030 216rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
b4e70030 225as_executable_p="test -f"
bec39cab
AC
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
b4e70030
JB
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
bec39cab 242
c906108c 243
bec39cab
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
b4e70030
JB
249exec 6>&1
250
bec39cab
AC
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
b4e70030
JB
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
bec39cab
AC
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
20e95c23 275ac_subdirs_all="$ac_subdirs_all doc testsuite"
bec39cab
AC
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
b4e70030
JB
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
bec39cab
AC
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
b4e70030
JB
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
3841debe 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
b4e70030 317ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
318
319# Initialize some variables set by options.
bec39cab
AC
320ac_init_help=
321ac_init_version=false
c906108c
SS
322# The variables have the same names as the options, with
323# dashes changed to underlines.
bec39cab 324cache_file=/dev/null
c906108c 325exec_prefix=NONE
c906108c 326no_create=
c906108c
SS
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
c906108c
SS
335verbose=
336x_includes=NONE
337x_libraries=NONE
bec39cab
AC
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
b4e70030 347datadir='${prefix}/share'
c906108c
SS
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
b4e70030 351libdir='${exec_prefix}/lib'
c906108c
SS
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
b4e70030
JB
354infodir='${prefix}/info'
355mandir='${prefix}/man'
c906108c 356
c906108c
SS
357ac_prev=
358for ac_option
359do
c906108c
SS
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
b4e70030 362 eval "$ac_prev=\$ac_option"
c906108c
SS
363 ac_prev=
364 continue
365 fi
366
b4e70030 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
b4e70030 371 case $ac_option in
c906108c
SS
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 376 bindir=$ac_optarg ;;
c906108c
SS
377
378 -build | --build | --buil | --bui | --bu)
bec39cab 379 ac_prev=build_alias ;;
c906108c 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 381 build_alias=$ac_optarg ;;
c906108c
SS
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
c906108c 392
b4e70030 393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 394 ac_prev=datadir ;;
b4e70030
JB
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
bec39cab 397 datadir=$ac_optarg ;;
c906108c
SS
398
399 -disable-* | --disable-*)
bec39cab 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 401 # Reject names that are not valid shell variable names.
bec39cab
AC
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030 406 eval "enable_$ac_feature=no" ;;
c906108c
SS
407
408 -enable-* | --enable-*)
bec39cab 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 410 # Reject names that are not valid shell variable names.
bec39cab
AC
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030
JB
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
bec39cab 428 exec_prefix=$ac_optarg ;;
c906108c
SS
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
bec39cab
AC
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
c906108c
SS
440
441 -host | --host | --hos | --ho)
bec39cab 442 ac_prev=host_alias ;;
c906108c 443 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 444 host_alias=$ac_optarg ;;
c906108c
SS
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 451 includedir=$ac_optarg ;;
c906108c
SS
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 456 infodir=$ac_optarg ;;
c906108c
SS
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 461 libdir=$ac_optarg ;;
c906108c
SS
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
bec39cab 468 libexecdir=$ac_optarg ;;
c906108c
SS
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 477 localstatedir=$ac_optarg ;;
c906108c
SS
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 482 mandir=$ac_optarg ;;
c906108c
SS
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 489 | --no-cr | --no-c | -n)
c906108c
SS
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 503 oldincludedir=$ac_optarg ;;
c906108c
SS
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 508 prefix=$ac_optarg ;;
c906108c
SS
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 515 program_prefix=$ac_optarg ;;
c906108c
SS
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 522 program_suffix=$ac_optarg ;;
c906108c
SS
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 539 program_transform_name=$ac_optarg ;;
c906108c
SS
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
bec39cab 549 sbindir=$ac_optarg ;;
c906108c
SS
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
bec39cab 560 sharedstatedir=$ac_optarg ;;
c906108c
SS
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
bec39cab 565 site=$ac_optarg ;;
3ace7edb 566
c906108c
SS
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 570 srcdir=$ac_optarg ;;
c906108c
SS
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 577 sysconfdir=$ac_optarg ;;
c906108c
SS
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 580 ac_prev=target_alias ;;
c906108c 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 582 target_alias=$ac_optarg ;;
c906108c
SS
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
bec39cab
AC
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
c906108c
SS
589
590 -with-* | --with-*)
bec39cab 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 592 # Reject names that are not valid shell variable names.
bec39cab
AC
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
c906108c 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
602
603 -without-* | --without-*)
bec39cab 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 605 # Reject names that are not valid shell variable names.
bec39cab
AC
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
b4e70030 610 eval "with_$ac_package=no" ;;
c906108c
SS
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 621 x_includes=$ac_optarg ;;
c906108c
SS
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 628 x_libraries=$ac_optarg ;;
c906108c 629
bec39cab
AC
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
c906108c
SS
633 ;;
634
bec39cab
AC
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
b4e70030
JB
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
643 export $ac_envvar ;;
644
c906108c 645 *)
bec39cab
AC
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
bec39cab
AC
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
c906108c 660fi
c906108c 661
b4e70030
JB
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
c906108c 664do
b4e70030 665 eval ac_val=$`echo $ac_var`
bec39cab 666 case $ac_val in
b4e70030
JB
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
c906108c
SS
682 esac
683done
684
bec39cab
AC
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
c906108c 702
bec39cab
AC
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
c906108c 707
c906108c
SS
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
b4e70030
JB
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
bec39cab 719echo X"$0" |
b4e70030
JB
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
c906108c 725 srcdir=$ac_confdir
b4e70030 726 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
b4e70030
JB
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 738 { (exit 1); exit 1; }; }
b4e70030 739 fi
c906108c 740fi
b4e70030
JB
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 743 { (exit 1); exit 1; }; }
b4e70030
JB
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
c906108c 777
bec39cab
AC
778#
779# Report the --help message.
780#
781if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE. See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
b4e70030
JB
805_ACEOF
806
807 cat <<_ACEOF
bec39cab
AC
808Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
b4e70030 825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b4e70030
JB
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
834_ACEOF
835
836 cat <<\_ACEOF
837
838Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
bec39cab
AC
863 --disable-gdbcli disable command-line interface (CLI)
864 --disable-gdbmi disable machine-interface (MI)
865 --enable-tui enable full-screen terminal user interface (TUI)
866 --enable-gdbtk enable gdbtk graphical user interface (GUI)
867 --enable-profiling enable profiling of GDB
3841debe 868 --disable-rpath do not hardcode runtime library paths
094a342e 869 --enable-werror treat compile warnings as errors
bec39cab
AC
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
874
875Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bec39cab
AC
878 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
3841debe
DJ
880 --with-gnu-ld assume the C compiler uses GNU ld default=no
881 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
882 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
883 --without-included-regex don't use included regex; this is the default
884 on systems with version 2 of the GNU C library
885 (use with caution on other system)
886 --with-sysroot=DIR Search for usr/lib et al within DIR.
887 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
888 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
889 --with-tclinclude=DIR Directory where tcl private headers are
890 --with-tkinclude=DIR Directory where tk private headers are
891 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
892 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
893 --with-x use the X Window System
894 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
895
896Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
b4e70030
JB
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
bec39cab
AC
903 CPP C preprocessor
904
905Use these variables to override the choices made by `configure' or to help
906it to find libraries and programs with nonstandard names/locations.
907
908_ACEOF
909fi
910
911if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
b4e70030 913 ac_popdir=`pwd`
bec39cab
AC
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
916 ac_builddir=.
917
b4e70030 918if test "$ac_dir" != .; then
bec39cab 919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922else
923 ac_dir_suffix= ac_top_builddir=
924fi
bec39cab
AC
925
926case $srcdir in
b4e70030 927 .) # No --srcdir option. We are building in place.
bec39cab 928 ac_srcdir=.
b4e70030
JB
929 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=.
931 else
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933 fi ;;
934 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 935 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
936 ac_top_srcdir=$srcdir ;;
937 *) # Relative path.
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940esac
941
942# Do not use `cd foo && pwd` to compute absolute paths, because
943# the directories may not exist.
944case `pwd` in
945.) ac_abs_builddir="$ac_dir";;
946*)
947 case "$ac_dir" in
948 .) ac_abs_builddir=`pwd`;;
949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_top_builddir=${ac_top_builddir}.;;
955*)
956 case ${ac_top_builddir}. in
957 .) ac_abs_top_builddir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_srcdir=$ac_srcdir;;
964*)
965 case $ac_srcdir in
966 .) ac_abs_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 esac;;
970esac
971case $ac_abs_builddir in
972.) ac_abs_top_srcdir=$ac_top_srcdir;;
973*)
974 case $ac_top_srcdir in
975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
978 esac;;
bec39cab
AC
979esac
980
b4e70030
JB
981 cd $ac_dir
982 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 983 if test -f $ac_srcdir/configure.gnu; then
b4e70030 984 echo
bec39cab
AC
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
b4e70030 987 echo
bec39cab 988 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
991 echo
992 $ac_configure --help
3ace7edb 993 else
bec39cab 994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
995 fi
996 cd $ac_popdir
bec39cab
AC
997 done
998fi
999
b4e70030 1000test -n "$ac_init_help" && exit 0
bec39cab
AC
1001if $ac_init_version; then
1002 cat <<\_ACEOF
1003
b4e70030 1004Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1005This configure script is free software; the Free Software Foundation
1006gives unlimited permission to copy, distribute and modify it.
1007_ACEOF
b4e70030 1008 exit 0
bec39cab 1009fi
b4e70030
JB
1010exec 5>config.log
1011cat >&5 <<_ACEOF
bec39cab
AC
1012This file contains any messages produced by compilers while
1013running configure, to aid debugging if configure makes a mistake.
1014
1015It was created by $as_me, which was
b4e70030 1016generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1017
1018 $ $0 $@
1019
1020_ACEOF
1021{
1022cat <<_ASUNAME
1023## --------- ##
1024## Platform. ##
1025## --------- ##
1026
1027hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031uname -v = `(uname -v) 2>/dev/null || echo unknown`
1032
1033/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1035
1036/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1037/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1038/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1039hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1040/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1041/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1042/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1043
1044_ASUNAME
1045
1046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1047for as_dir in $PATH
1048do
1049 IFS=$as_save_IFS
1050 test -z "$as_dir" && as_dir=.
1051 echo "PATH: $as_dir"
1052done
1053
1054} >&5
1055
1056cat >&5 <<_ACEOF
1057
1058
1059## ----------- ##
1060## Core tests. ##
1061## ----------- ##
1062
1063_ACEOF
1064
1065
1066# Keep a trace of the command line.
1067# Strip out --no-create and --no-recursion so they do not pile up.
1068# Strip out --silent because we don't want to record it for future runs.
1069# Also quote any args containing shell meta-characters.
1070# Make two passes to allow for proper duplicate-argument suppression.
1071ac_configure_args=
1072ac_configure_args0=
1073ac_configure_args1=
1074ac_sep=
1075ac_must_keep_next=false
1076for ac_pass in 1 2
1077do
1078 for ac_arg
1079 do
1080 case $ac_arg in
1081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 continue ;;
b4e70030 1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1086 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1087 esac
1088 case $ac_pass in
1089 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 2)
1091 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092 if test $ac_must_keep_next = true; then
1093 ac_must_keep_next=false # Got value, back to normal.
1094 else
1095 case $ac_arg in
1096 *=* | --config-cache | -C | -disable-* | --disable-* \
1097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099 | -with-* | --with-* | -without-* | --without-* | --x)
1100 case "$ac_configure_args0 " in
1101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 esac
1103 ;;
1104 -* ) ac_must_keep_next=true ;;
1105 esac
1106 fi
1107 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108 # Get rid of the leading space.
1109 ac_sep=" "
1110 ;;
1111 esac
1112 done
1113done
1114$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116
1117# When interrupted or exit'd, cleanup temporary files, and complete
1118# config.log. We remove comments because anyway the quotes in there
1119# would cause problems or look ugly.
b4e70030
JB
1120# WARNING: Be sure not to use single quotes in there, as some shells,
1121# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1122trap 'exit_status=$?
1123 # Save into config.log some information that might help in debugging.
1124 {
1125 echo
1126
1127 cat <<\_ASBOX
1128## ---------------- ##
1129## Cache variables. ##
1130## ---------------- ##
1131_ASBOX
1132 echo
1133 # The following way of writing the cache mishandles newlines in values,
b4e70030 1134{
bec39cab 1135 (set) 2>&1 |
b4e70030
JB
1136 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 *ac_space=\ *)
bec39cab 1138 sed -n \
b4e70030
JB
1139 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 ;;
bec39cab 1142 *)
b4e70030
JB
1143 sed -n \
1144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1145 ;;
b4e70030
JB
1146 esac;
1147}
bec39cab
AC
1148 echo
1149
1150 cat <<\_ASBOX
1151## ----------------- ##
1152## Output variables. ##
1153## ----------------- ##
1154_ASBOX
1155 echo
1156 for ac_var in $ac_subst_vars
1157 do
b4e70030
JB
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1160 done | sort
1161 echo
1162
1163 if test -n "$ac_subst_files"; then
1164 cat <<\_ASBOX
b4e70030
JB
1165## ------------- ##
1166## Output files. ##
1167## ------------- ##
bec39cab
AC
1168_ASBOX
1169 echo
1170 for ac_var in $ac_subst_files
1171 do
b4e70030
JB
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1174 done | sort
1175 echo
1176 fi
1177
1178 if test -s confdefs.h; then
1179 cat <<\_ASBOX
1180## ----------- ##
1181## confdefs.h. ##
1182## ----------- ##
1183_ASBOX
1184 echo
b4e70030 1185 sed "/^$/d" confdefs.h | sort
bec39cab 1186 echo
3ace7edb 1187 fi
bec39cab
AC
1188 test "$ac_signal" != 0 &&
1189 echo "$as_me: caught signal $ac_signal"
1190 echo "$as_me: exit $exit_status"
1191 } >&5
b4e70030
JB
1192 rm -f core *.core &&
1193 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1194 exit $exit_status
b4e70030 1195 ' 0
bec39cab
AC
1196for ac_signal in 1 2 13 15; do
1197 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1198done
1199ac_signal=0
1200
1201# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1202rm -rf conftest* confdefs.h
1203# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204echo >confdefs.h
bec39cab
AC
1205
1206# Predefined preprocessor variables.
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_NAME "$PACKAGE_NAME"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_VERSION "$PACKAGE_VERSION"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_STRING "$PACKAGE_STRING"
1225_ACEOF
1226
1227
1228cat >>confdefs.h <<_ACEOF
1229#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1230_ACEOF
1231
1232
1233# Let the site file select an alternate cache file if it wants to.
1234# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1235if test -z "$CONFIG_SITE"; then
1236 if test "x$prefix" != xNONE; then
1237 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 else
1239 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 fi
c906108c 1241fi
b4e70030 1242for ac_site_file in $CONFIG_SITE; do
c906108c 1243 if test -r "$ac_site_file"; then
bec39cab
AC
1244 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245echo "$as_me: loading site script $ac_site_file" >&6;}
1246 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1247 . "$ac_site_file"
1248 fi
1249done
1250
1251if test -r "$cache_file"; then
bec39cab
AC
1252 # Some versions of bash will fail to source /dev/null (special
1253 # files actually), so we avoid doing that.
1254 if test -f "$cache_file"; then
1255 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256echo "$as_me: loading cache $cache_file" >&6;}
1257 case $cache_file in
1258 [\\/]* | ?:[\\/]* ) . $cache_file;;
1259 *) . ./$cache_file;;
1260 esac
1261 fi
c906108c 1262else
bec39cab
AC
1263 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264echo "$as_me: creating cache $cache_file" >&6;}
1265 >$cache_file
1266fi
1267
1268# Check that the precious variables saved in the cache have kept the same
1269# value.
1270ac_cache_corrupted=false
b4e70030
JB
1271for ac_var in `(set) 2>&1 |
1272 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1275 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1277 case $ac_old_set,$ac_new_set in
1278 set,)
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1282 ,set)
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1286 ,);;
1287 *)
1288 if test "x$ac_old_val" != "x$ac_new_val"; then
1289 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1292echo "$as_me: former value: $ac_old_val" >&2;}
1293 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1294echo "$as_me: current value: $ac_new_val" >&2;}
1295 ac_cache_corrupted=:
1296 fi;;
1297 esac
1298 # Pass precious variables to config.status.
1299 if test "$ac_new_set" = set; then
1300 case $ac_new_val in
b4e70030
JB
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1303 *) ac_arg=$ac_var=$ac_new_val ;;
1304 esac
1305 case " $ac_configure_args " in
1306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1307 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1308 esac
1309 fi
1310done
1311if $ac_cache_corrupted; then
1312 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316 { (exit 1); exit 1; }; }
c906108c
SS
1317fi
1318
b4e70030
JB
1319ac_ext=c
1320ac_cpp='$CPP $CPPFLAGS'
1321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1324
1325
bec39cab
AC
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
bec39cab 1342
b4e70030
JB
1343 ac_config_headers="$ac_config_headers config.h:config.in"
1344
1345echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1346echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1347 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1348if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1349 enableval="$enable_maintainer_mode"
1350 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1351else
1352 USE_MAINTAINER_MODE=no
b4e70030
JB
1353fi;
1354 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1355echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1356
413ccac7
AC
1357
1358if test $USE_MAINTAINER_MODE = yes; then
1359 MAINTAINER_MODE_TRUE=
1360 MAINTAINER_MODE_FALSE='#'
1361else
1362 MAINTAINER_MODE_TRUE='#'
1363 MAINTAINER_MODE_FALSE=
1364fi
85981d60 1365
413ccac7 1366 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1367
c906108c 1368
bec39cab
AC
1369
1370ac_ext=c
1371ac_cpp='$CPP $CPPFLAGS'
1372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375if test -n "$ac_tool_prefix"; then
1376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1377set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1378echo "$as_me:$LINENO: checking for $ac_word" >&5
1379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1380if test "${ac_cv_prog_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383 if test -n "$CC"; then
1384 ac_cv_prog_CC="$CC" # Let the user override the test.
1385else
1386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387for as_dir in $PATH
1388do
1389 IFS=$as_save_IFS
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395 break 2
1396 fi
1397done
1398done
1399
1400fi
1401fi
1402CC=$ac_cv_prog_CC
1403if test -n "$CC"; then
b4e70030
JB
1404 echo "$as_me:$LINENO: result: $CC" >&5
1405echo "${ECHO_T}$CC" >&6
bec39cab 1406else
b4e70030
JB
1407 echo "$as_me:$LINENO: result: no" >&5
1408echo "${ECHO_T}no" >&6
bec39cab
AC
1409fi
1410
1411fi
1412if test -z "$ac_cv_prog_CC"; then
1413 ac_ct_CC=$CC
1414 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1415set dummy gcc; ac_word=$2
b4e70030
JB
1416echo "$as_me:$LINENO: checking for $ac_word" >&5
1417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1418if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420else
1421 if test -n "$ac_ct_CC"; then
1422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1423else
1424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425for as_dir in $PATH
1426do
1427 IFS=$as_save_IFS
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1431 ac_cv_prog_ac_ct_CC="gcc"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 break 2
1434 fi
1435done
1436done
1437
1438fi
1439fi
1440ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441if test -n "$ac_ct_CC"; then
b4e70030
JB
1442 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1444else
b4e70030
JB
1445 echo "$as_me:$LINENO: result: no" >&5
1446echo "${ECHO_T}no" >&6
bec39cab
AC
1447fi
1448
b4e70030 1449 CC=$ac_ct_CC
bec39cab
AC
1450else
1451 CC="$ac_cv_prog_CC"
1452fi
1453
1454if test -z "$CC"; then
b4e70030
JB
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1457set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1458echo "$as_me:$LINENO: checking for $ac_word" >&5
1459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1460if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1462else
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1465else
bec39cab
AC
1466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467for as_dir in $PATH
1468do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1473 ac_cv_prog_CC="${ac_tool_prefix}cc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 break 2
1476 fi
1477done
1478done
1479
c906108c
SS
1480fi
1481fi
bec39cab 1482CC=$ac_cv_prog_CC
c906108c 1483if test -n "$CC"; then
b4e70030
JB
1484 echo "$as_me:$LINENO: result: $CC" >&5
1485echo "${ECHO_T}$CC" >&6
c906108c 1486else
b4e70030
JB
1487 echo "$as_me:$LINENO: result: no" >&5
1488echo "${ECHO_T}no" >&6
c906108c
SS
1489fi
1490
b4e70030
JB
1491fi
1492if test -z "$ac_cv_prog_CC"; then
1493 ac_ct_CC=$CC
1494 # Extract the first word of "cc", so it can be a program name with args.
1495set dummy cc; ac_word=$2
1496echo "$as_me:$LINENO: checking for $ac_word" >&5
1497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501 if test -n "$ac_ct_CC"; then
1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1503else
1504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505for as_dir in $PATH
1506do
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_ac_ct_CC="cc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 break 2
4e8d927d 1514 fi
b4e70030
JB
1515done
1516done
1517
1518fi
1519fi
1520ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521if test -n "$ac_ct_CC"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523echo "${ECHO_T}$ac_ct_CC" >&6
1524else
1525 echo "$as_me:$LINENO: result: no" >&5
1526echo "${ECHO_T}no" >&6
1527fi
1528
1529 CC=$ac_ct_CC
1530else
1531 CC="$ac_cv_prog_CC"
1532fi
1533
bec39cab 1534fi
c906108c
SS
1535if test -z "$CC"; then
1536 # Extract the first word of "cc", so it can be a program name with args.
1537set dummy cc; ac_word=$2
b4e70030
JB
1538echo "$as_me:$LINENO: checking for $ac_word" >&5
1539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1540if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1542else
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1545else
c906108c 1546 ac_prog_rejected=no
bec39cab
AC
1547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548for as_dir in $PATH
1549do
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1555 ac_prog_rejected=yes
1556 continue
1557 fi
1558 ac_cv_prog_CC="cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562done
1563done
1564
c906108c
SS
1565if test $ac_prog_rejected = yes; then
1566 # We found a bogon in the path, so make sure we never use it.
1567 set dummy $ac_cv_prog_CC
1568 shift
bec39cab 1569 if test $# != 0; then
c906108c
SS
1570 # We chose a different compiler from the bogus one.
1571 # However, it has the same basename, so the bogon will be chosen
1572 # first if we set CC to just the basename; use the full file name.
1573 shift
bec39cab 1574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1575 fi
1576fi
1577fi
1578fi
bec39cab 1579CC=$ac_cv_prog_CC
c906108c 1580if test -n "$CC"; then
b4e70030
JB
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582echo "${ECHO_T}$CC" >&6
c906108c 1583else
b4e70030
JB
1584 echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
c906108c
SS
1586fi
1587
bec39cab
AC
1588fi
1589if test -z "$CC"; then
1590 if test -n "$ac_tool_prefix"; then
b4e70030 1591 for ac_prog in cl
bec39cab
AC
1592 do
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1595echo "$as_me:$LINENO: checking for $ac_word" >&5
1596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1597if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1599else
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1602else
bec39cab
AC
1603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604for as_dir in $PATH
1605do
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 break 2
1613 fi
1614done
1615done
1616
c906108c
SS
1617fi
1618fi
bec39cab 1619CC=$ac_cv_prog_CC
c906108c 1620if test -n "$CC"; then
b4e70030
JB
1621 echo "$as_me:$LINENO: result: $CC" >&5
1622echo "${ECHO_T}$CC" >&6
c906108c 1623else
b4e70030
JB
1624 echo "$as_me:$LINENO: result: no" >&5
1625echo "${ECHO_T}no" >&6
c906108c 1626fi
bec39cab
AC
1627
1628 test -n "$CC" && break
1629 done
1630fi
1631if test -z "$CC"; then
1632 ac_ct_CC=$CC
b4e70030 1633 for ac_prog in cl
bec39cab
AC
1634do
1635 # Extract the first word of "$ac_prog", so it can be a program name with args.
1636set dummy $ac_prog; ac_word=$2
b4e70030
JB
1637echo "$as_me:$LINENO: checking for $ac_word" >&5
1638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642 if test -n "$ac_ct_CC"; then
1643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644else
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1652 ac_cv_prog_ac_ct_CC="$ac_prog"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
c906108c 1655 fi
bec39cab
AC
1656done
1657done
1658
1659fi
1660fi
1661ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662if test -n "$ac_ct_CC"; then
b4e70030
JB
1663 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1665else
b4e70030
JB
1666 echo "$as_me:$LINENO: result: no" >&5
1667echo "${ECHO_T}no" >&6
c906108c
SS
1668fi
1669
bec39cab
AC
1670 test -n "$ac_ct_CC" && break
1671done
c906108c 1672
b4e70030 1673 CC=$ac_ct_CC
bec39cab
AC
1674fi
1675
1676fi
1677
1678
1679test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1680See \`config.log' for more details." >&5
1681echo "$as_me: error: no acceptable C compiler found in \$PATH
1682See \`config.log' for more details." >&2;}
1683 { (exit 1); exit 1; }; }
1684
1685# Provide some information about the compiler.
b4e70030
JB
1686echo "$as_me:$LINENO:" \
1687 "checking for C compiler version" >&5
bec39cab 1688ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1689{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1690 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1691 ac_status=$?
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
b4e70030
JB
1694{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1695 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1696 ac_status=$?
1697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698 (exit $ac_status); }
b4e70030
JB
1699{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1700 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704
1705cat >conftest.$ac_ext <<_ACEOF
1706/* confdefs.h. */
1707_ACEOF
1708cat confdefs.h >>conftest.$ac_ext
1709cat >>conftest.$ac_ext <<_ACEOF
1710/* end confdefs.h. */
1711
1712int
1713main ()
1714{
1715
1716 ;
1717 return 0;
1718}
1719_ACEOF
1720ac_clean_files_save=$ac_clean_files
b4e70030 1721ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1722# Try to create an executable without -o first, disregard a.out.
1723# It will help us diagnose broken compilers, and finding out an intuition
1724# of exeext.
b4e70030
JB
1725echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1726echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1727ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1728if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1729 (eval $ac_link_default) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }; then
b4e70030
JB
1733 # Find the output, starting from the most likely. This scheme is
1734# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1735# resort.
1736
1737# Be careful to initialize this variable, since it used to be cached.
1738# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1739ac_cv_exeext=
1740# b.out is created by i960 compilers.
1741for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1742do
1743 test -f "$ac_file" || continue
1744 case $ac_file in
b4e70030
JB
1745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1746 ;;
1747 conftest.$ac_ext )
1748 # This is the source file.
1749 ;;
1750 [ab].out )
1751 # We found the default executable, but exeext='' is most
1752 # certainly right.
1753 break;;
1754 *.* )
1755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 # FIXME: I believe we export ac_cv_exeext for Libtool,
1757 # but it would be cool to find out if it's true. Does anybody
1758 # maintain Libtool? --akim.
1759 export ac_cv_exeext
1760 break;;
1761 * )
1762 break;;
bec39cab
AC
1763 esac
1764done
1765else
1766 echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1770See \`config.log' for more details." >&5
1771echo "$as_me: error: C compiler cannot create executables
1772See \`config.log' for more details." >&2;}
1773 { (exit 77); exit 77; }; }
1774fi
1775
b4e70030
JB
1776ac_exeext=$ac_cv_exeext
1777echo "$as_me:$LINENO: result: $ac_file" >&5
1778echo "${ECHO_T}$ac_file" >&6
1779
1780# Check the compiler produces executables we can run. If not, either
bec39cab 1781# the compiler is broken, or we cross compile.
b4e70030
JB
1782echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1783echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1784# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785# If not cross compiling, check that we can run a simple program.
1786if test "$cross_compiling" != yes; then
1787 if { ac_try='./$ac_file'
1788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 (eval $ac_try) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1793 cross_compiling=no
c906108c 1794 else
bec39cab
AC
1795 if test "$cross_compiling" = maybe; then
1796 cross_compiling=yes
1797 else
1798 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1799If you meant to cross compile, use \`--host'.
1800See \`config.log' for more details." >&5
1801echo "$as_me: error: cannot run C compiled programs.
1802If you meant to cross compile, use \`--host'.
1803See \`config.log' for more details." >&2;}
1804 { (exit 1); exit 1; }; }
1805 fi
c906108c 1806 fi
bec39cab 1807fi
b4e70030
JB
1808echo "$as_me:$LINENO: result: yes" >&5
1809echo "${ECHO_T}yes" >&6
bec39cab 1810
b4e70030
JB
1811rm -f a.out a.exe conftest$ac_cv_exeext b.out
1812ac_clean_files=$ac_clean_files_save
1813# Check the compiler produces executables we can run. If not, either
1814# the compiler is broken, or we cross compile.
1815echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1816echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1817echo "$as_me:$LINENO: result: $cross_compiling" >&5
1818echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1819
b4e70030
JB
1820echo "$as_me:$LINENO: checking for suffix of executables" >&5
1821echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1823 (eval $ac_link) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
b4e70030
JB
1827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1828# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1829# work properly (i.e., refer to `conftest.exe'), while it won't with
1830# `rm'.
1831for ac_file in conftest.exe conftest conftest.*; do
1832 test -f "$ac_file" || continue
1833 case $ac_file in
1834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 export ac_cv_exeext
1837 break;;
1838 * ) break;;
1839 esac
1840done
c906108c 1841else
bec39cab
AC
1842 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1843See \`config.log' for more details." >&5
1844echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1845See \`config.log' for more details." >&2;}
1846 { (exit 1); exit 1; }; }
c906108c 1847fi
c906108c 1848
b4e70030
JB
1849rm -f conftest$ac_cv_exeext
1850echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1851echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1852
b4e70030 1853rm -f conftest.$ac_ext
bec39cab
AC
1854EXEEXT=$ac_cv_exeext
1855ac_exeext=$EXEEXT
b4e70030
JB
1856echo "$as_me:$LINENO: checking for suffix of object files" >&5
1857echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1858if test "${ac_cv_objext+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
b4e70030
JB
1861 cat >conftest.$ac_ext <<_ACEOF
1862/* confdefs.h. */
1863_ACEOF
1864cat confdefs.h >>conftest.$ac_ext
1865cat >>conftest.$ac_ext <<_ACEOF
1866/* end confdefs.h. */
1867
1868int
1869main ()
1870{
1871
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876rm -f conftest.o conftest.obj
bec39cab
AC
1877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1879 ac_status=$?
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
b4e70030 1882 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1883 case $ac_file in
b4e70030 1884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1886 break;;
1887 esac
1888done
c906108c 1889else
bec39cab
AC
1890 echo "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1894See \`config.log' for more details." >&5
1895echo "$as_me: error: cannot compute suffix of object files: cannot compile
1896See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
c906108c
SS
1898fi
1899
b4e70030 1900rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1901fi
b4e70030
JB
1902echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1903echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1904OBJEXT=$ac_cv_objext
1905ac_objext=$OBJEXT
b4e70030
JB
1906echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1907echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1908if test "${ac_cv_c_compiler_gnu+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1910else
bec39cab
AC
1911 cat >conftest.$ac_ext <<_ACEOF
1912/* confdefs.h. */
1913_ACEOF
1914cat confdefs.h >>conftest.$ac_ext
1915cat >>conftest.$ac_ext <<_ACEOF
1916/* end confdefs.h. */
1917
1918int
1919main ()
1920{
1921#ifndef __GNUC__
1922 choke me
1923#endif
1924
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929rm -f conftest.$ac_objext
1930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>conftest.er1
1932 ac_status=$?
1933 grep -v '^ *+' conftest.er1 >conftest.err
1934 rm -f conftest.er1
1935 cat conftest.err >&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); } &&
b4e70030
JB
1938 { ac_try='test -z "$ac_c_werror_flag"
1939 || test ! -s conftest.err'
bec39cab
AC
1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 (eval $ac_try) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1951 ac_compiler_gnu=yes
1952else
1953 echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
b4e70030 1956ac_compiler_gnu=no
bec39cab
AC
1957fi
1958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1959ac_cv_c_compiler_gnu=$ac_compiler_gnu
1960
1961fi
b4e70030
JB
1962echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1963echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1964GCC=`test $ac_compiler_gnu = yes && echo yes`
1965ac_test_CFLAGS=${CFLAGS+set}
1966ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1967CFLAGS="-g"
1968echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1969echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1970if test "${ac_cv_prog_cc_g+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
b4e70030 1973 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1974/* confdefs.h. */
1975_ACEOF
1976cat confdefs.h >>conftest.$ac_ext
1977cat >>conftest.$ac_ext <<_ACEOF
1978/* end confdefs.h. */
1979
1980int
1981main ()
1982{
1983
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
b4e70030
JB
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
bec39cab
AC
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
c906108c
SS
2010 ac_cv_prog_cc_g=yes
2011else
bec39cab
AC
2012 echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2014
b4e70030 2015ac_cv_prog_cc_g=no
4e8d927d 2016fi
bec39cab
AC
2017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018fi
b4e70030
JB
2019echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2020echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2021if test "$ac_test_CFLAGS" = set; then
bec39cab 2022 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2023elif test $ac_cv_prog_cc_g = yes; then
2024 if test "$GCC" = yes; then
2025 CFLAGS="-g -O2"
2026 else
2027 CFLAGS="-g"
2028 fi
2029else
2030 if test "$GCC" = yes; then
2031 CFLAGS="-O2"
2032 else
2033 CFLAGS=
2034 fi
2035fi
b4e70030
JB
2036echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2037echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2038if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
b4e70030 2041 ac_cv_prog_cc_stdc=no
bec39cab
AC
2042ac_save_CC=$CC
2043cat >conftest.$ac_ext <<_ACEOF
2044/* confdefs.h. */
2045_ACEOF
2046cat confdefs.h >>conftest.$ac_ext
2047cat >>conftest.$ac_ext <<_ACEOF
2048/* end confdefs.h. */
c906108c
SS
2049#include <stdarg.h>
2050#include <stdio.h>
2051#include <sys/types.h>
2052#include <sys/stat.h>
2053/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2054struct buf { int x; };
2055FILE * (*rcsopen) (struct buf *, struct stat *, int);
2056static char *e (p, i)
2057 char **p;
2058 int i;
2059{
2060 return p[i];
2061}
2062static char *f (char * (*g) (char **, int), char **p, ...)
2063{
2064 char *s;
2065 va_list v;
2066 va_start (v,p);
2067 s = g (p, va_arg (v,int));
2068 va_end (v);
2069 return s;
2070}
bec39cab
AC
2071
2072/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2073 function prototypes and stuff, but not '\xHH' hex character constants.
2074 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2075 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2077 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2078 that's true only with -std1. */
bec39cab
AC
2079int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2080
c906108c
SS
2081int test (int i, double x);
2082struct s1 {int (*f) (int a);};
2083struct s2 {int (*f) (double a);};
2084int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2085int argc;
2086char **argv;
bec39cab
AC
2087int
2088main ()
2089{
c906108c 2090return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2091 ;
2092 return 0;
2093}
2094_ACEOF
b4e70030
JB
2095# Don't try gcc -ansi; that turns off useful extensions and
2096# breaks some systems' header files.
2097# AIX -qlanglvl=ansi
2098# Ultrix and OSF/1 -std1
2099# HP-UX 10.20 and later -Ae
2100# HP-UX older versions -Aa -D_HPUX_SOURCE
2101# SVR4 -Xc -D__EXTENSIONS__
2102for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2103do
2104 CC="$ac_save_CC $ac_arg"
2105 rm -f conftest.$ac_objext
2106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 (eval $ac_compile) 2>conftest.er1
2108 ac_status=$?
2109 grep -v '^ *+' conftest.er1 >conftest.err
2110 rm -f conftest.er1
2111 cat conftest.err >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
b4e70030
JB
2114 { ac_try='test -z "$ac_c_werror_flag"
2115 || test ! -s conftest.err'
bec39cab
AC
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
b4e70030
JB
2127 ac_cv_prog_cc_stdc=$ac_arg
2128break
c906108c 2129else
bec39cab
AC
2130 echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
c906108c 2133fi
bec39cab 2134rm -f conftest.err conftest.$ac_objext
c906108c 2135done
b4e70030 2136rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2137CC=$ac_save_CC
c906108c
SS
2138
2139fi
b4e70030
JB
2140
2141case "x$ac_cv_prog_cc_stdc" in
2142 x|xno)
2143 echo "$as_me:$LINENO: result: none needed" >&5
2144echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2145 *)
b4e70030
JB
2146 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2147echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2148 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2149esac
2150
b4e70030
JB
2151# Some people use a C++ compiler to compile C. Since we use `exit',
2152# in C++ we need to declare it. In case someone uses the same compiler
2153# for both compiling C and C++ we need to have the C++ compiler decide
2154# the declaration of exit, since it's the most demanding environment.
2155cat >conftest.$ac_ext <<_ACEOF
2156#ifndef __cplusplus
2157 choke me
2158#endif
2159_ACEOF
2160rm -f conftest.$ac_objext
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
2163 ac_status=$?
2164 grep -v '^ *+' conftest.er1 >conftest.err
2165 rm -f conftest.er1
2166 cat conftest.err >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -z "$ac_c_werror_flag"
2170 || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 for ac_declaration in \
2183 '' \
2184 'extern "C" void std::exit (int) throw (); using std::exit;' \
2185 'extern "C" void std::exit (int); using std::exit;' \
2186 'extern "C" void exit (int) throw ();' \
2187 'extern "C" void exit (int);' \
2188 'void exit (int);'
2189do
2190 cat >conftest.$ac_ext <<_ACEOF
2191/* confdefs.h. */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h. */
2196$ac_declaration
2197#include <stdlib.h>
2198int
2199main ()
2200{
2201exit (42);
2202 ;
2203 return 0;
2204}
2205_ACEOF
2206rm -f conftest.$ac_objext
2207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag"
2216 || test ! -s conftest.err'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 :
2229else
2230 echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233continue
2234fi
2235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2236 cat >conftest.$ac_ext <<_ACEOF
2237/* confdefs.h. */
2238_ACEOF
2239cat confdefs.h >>conftest.$ac_ext
2240cat >>conftest.$ac_ext <<_ACEOF
2241/* end confdefs.h. */
2242$ac_declaration
2243int
2244main ()
2245{
2246exit (42);
2247 ;
2248 return 0;
2249}
2250_ACEOF
2251rm -f conftest.$ac_objext
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2254 ac_status=$?
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 break
2274else
2275 echo "$as_me: failed program was:" >&5
2276sed 's/^/| /' conftest.$ac_ext >&5
2277
2278fi
2279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280done
2281rm -f conftest*
2282if test -n "$ac_declaration"; then
2283 echo '#ifdef __cplusplus' >>confdefs.h
2284 echo $ac_declaration >>confdefs.h
2285 echo '#endif' >>confdefs.h
2286fi
2287
2288else
2289 echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2291
b4e70030
JB
2292fi
2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2299
60ca704f 2300
bec39cab
AC
2301cat >>confdefs.h <<\_ACEOF
2302#define _GNU_SOURCE 1
2303_ACEOF
c906108c
SS
2304
2305
8bb2c122 2306
bec39cab
AC
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2312echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2313echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2314# On Suns, sometimes $CPP names a directory.
2315if test -n "$CPP" && test -d "$CPP"; then
2316 CPP=
8bb2c122 2317fi
bec39cab
AC
2318if test -z "$CPP"; then
2319 if test "${ac_cv_prog_CPP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322 # Double quotes because CPP needs to be expanded
2323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2324 do
2325 ac_preproc_ok=false
2326for ac_c_preproc_warn_flag in '' yes
2327do
2328 # Use a header file that comes with gcc, so configuring glibc
2329 # with a fresh cross-compiler works.
2330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331 # <limits.h> exists even on freestanding compilers.
2332 # On the NeXT, cc -E runs the code through the compiler's parser,
2333 # not just through cpp. "Syntax error" is here to catch this case.
2334 cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
2340#ifdef __STDC__
2341# include <limits.h>
2342#else
2343# include <assert.h>
2344#endif
2345 Syntax error
2346_ACEOF
2347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2358 else
2359 ac_cpp_err=
2360 fi
8bb2c122 2361else
bec39cab 2362 ac_cpp_err=yes
8bb2c122 2363fi
bec39cab
AC
2364if test -z "$ac_cpp_err"; then
2365 :
8bb2c122 2366else
bec39cab
AC
2367 echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 # Broken: fails on valid input.
2371continue
2372fi
2373rm -f conftest.err conftest.$ac_ext
2374
b4e70030 2375 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2376 # can be detected and how.
2377 cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
2383#include <ac_nonexistent.h>
2384_ACEOF
2385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } >/dev/null; then
2393 if test -s conftest.err; then
2394 ac_cpp_err=$ac_c_preproc_warn_flag
2395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2396 else
2397 ac_cpp_err=
2398 fi
8bb2c122 2399else
bec39cab 2400 ac_cpp_err=yes
8bb2c122 2401fi
bec39cab
AC
2402if test -z "$ac_cpp_err"; then
2403 # Broken: success on invalid input.
2404continue
8bb2c122 2405else
bec39cab
AC
2406 echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2408
bec39cab
AC
2409 # Passes both tests.
2410ac_preproc_ok=:
2411break
8bb2c122 2412fi
bec39cab 2413rm -f conftest.err conftest.$ac_ext
8bb2c122 2414
bec39cab
AC
2415done
2416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2417rm -f conftest.err conftest.$ac_ext
2418if $ac_preproc_ok; then
2419 break
2420fi
8bb2c122 2421
bec39cab
AC
2422 done
2423 ac_cv_prog_CPP=$CPP
ddc9cd0f 2424
c906108c 2425fi
bec39cab
AC
2426 CPP=$ac_cv_prog_CPP
2427else
2428 ac_cv_prog_CPP=$CPP
c906108c 2429fi
b4e70030
JB
2430echo "$as_me:$LINENO: result: $CPP" >&5
2431echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2432ac_preproc_ok=false
2433for ac_c_preproc_warn_flag in '' yes
2434do
2435 # Use a header file that comes with gcc, so configuring glibc
2436 # with a fresh cross-compiler works.
2437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2438 # <limits.h> exists even on freestanding compilers.
2439 # On the NeXT, cc -E runs the code through the compiler's parser,
2440 # not just through cpp. "Syntax error" is here to catch this case.
2441 cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h. */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h. */
2447#ifdef __STDC__
2448# include <limits.h>
2449#else
2450# include <assert.h>
2451#endif
2452 Syntax error
2453_ACEOF
2454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
2464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2465 else
2466 ac_cpp_err=
2467 fi
c906108c 2468else
bec39cab 2469 ac_cpp_err=yes
c906108c 2470fi
bec39cab
AC
2471if test -z "$ac_cpp_err"; then
2472 :
c906108c 2473else
bec39cab
AC
2474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 # Broken: fails on valid input.
2478continue
2479fi
2480rm -f conftest.err conftest.$ac_ext
2481
b4e70030 2482 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2483 # can be detected and how.
2484 cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490#include <ac_nonexistent.h>
2491_ACEOF
2492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2503 else
2504 ac_cpp_err=
2505 fi
c906108c 2506else
bec39cab 2507 ac_cpp_err=yes
c906108c 2508fi
bec39cab
AC
2509if test -z "$ac_cpp_err"; then
2510 # Broken: success on invalid input.
2511continue
c906108c 2512else
bec39cab
AC
2513 echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2515
bec39cab
AC
2516 # Passes both tests.
2517ac_preproc_ok=:
2518break
c906108c 2519fi
bec39cab 2520rm -f conftest.err conftest.$ac_ext
c906108c 2521
bec39cab
AC
2522done
2523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2524rm -f conftest.err conftest.$ac_ext
2525if $ac_preproc_ok; then
c906108c
SS
2526 :
2527else
bec39cab
AC
2528 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2529See \`config.log' for more details." >&5
2530echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2531See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
c906108c 2533fi
c906108c 2534
bec39cab
AC
2535ac_ext=c
2536ac_cpp='$CPP $CPPFLAGS'
2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
b4e70030
JB
2542echo "$as_me:$LINENO: checking for egrep" >&5
2543echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2544if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
b4e70030
JB
2547 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2548 then ac_cv_prog_egrep='grep -E'
2549 else ac_cv_prog_egrep='egrep'
bec39cab 2550 fi
4e8d927d 2551fi
b4e70030
JB
2552echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2553echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2554 EGREP=$ac_cv_prog_egrep
c906108c 2555
bec39cab
AC
2556
2557
b4e70030
JB
2558echo "$as_me:$LINENO: checking for AIX" >&5
2559echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2560cat >conftest.$ac_ext <<_ACEOF
2561/* confdefs.h. */
2562_ACEOF
2563cat confdefs.h >>conftest.$ac_ext
2564cat >>conftest.$ac_ext <<_ACEOF
2565/* end confdefs.h. */
2566#ifdef _AIX
2567 yes
2568#endif
2569
2570_ACEOF
c906108c 2571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2572 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2573 echo "$as_me:$LINENO: result: yes" >&5
2574echo "${ECHO_T}yes" >&6
bec39cab
AC
2575cat >>confdefs.h <<\_ACEOF
2576#define _ALL_SOURCE 1
2577_ACEOF
2578
c906108c 2579else
b4e70030
JB
2580 echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6
c906108c
SS
2582fi
2583rm -f conftest*
2584
c906108c 2585
b4e70030
JB
2586echo "$as_me:$LINENO: checking for library containing strerror" >&5
2587echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2588if test "${ac_cv_search_strerror+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2590else
bec39cab 2591 ac_func_search_save_LIBS=$LIBS
b4e70030 2592ac_cv_search_strerror=no
bec39cab
AC
2593cat >conftest.$ac_ext <<_ACEOF
2594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
c906108c 2599
b4e70030 2600/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2601#ifdef __cplusplus
2602extern "C"
2603#endif
b4e70030
JB
2604/* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
bec39cab
AC
2606char strerror ();
2607int
2608main ()
2609{
b4e70030 2610strerror ();
bec39cab
AC
2611 ;
2612 return 0;
2613}
2614_ACEOF
b4e70030 2615rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2617 (eval $ac_link) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
b4e70030
JB
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
bec39cab
AC
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest$ac_exeext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
b4e70030 2637 ac_cv_search_strerror="none required"
c906108c 2638else
bec39cab
AC
2639 echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2641
2642fi
bec39cab 2643rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2644 conftest$ac_exeext conftest.$ac_ext
2645if test "$ac_cv_search_strerror" = no; then
2646 for ac_lib in cposix; do
2647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2648 cat >conftest.$ac_ext <<_ACEOF
2649/* confdefs.h. */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h. */
2654
2655/* Override any gcc2 internal prototype to avoid an error. */
2656#ifdef __cplusplus
2657extern "C"
2658#endif
2659/* We use char because int might match the return type of a gcc2
2660 builtin and then its argument prototype would still apply. */
2661char strerror ();
2662int
2663main ()
2664{
2665strerror ();
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext conftest$ac_exeext
2671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672 (eval $ac_link) 2>conftest.er1
2673 ac_status=$?
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest$ac_exeext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_search_strerror="-l$ac_lib"
2693break
4e8d927d 2694else
b4e70030
JB
2695 echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698fi
2699rm -f conftest.err conftest.$ac_objext \
2700 conftest$ac_exeext conftest.$ac_ext
2701 done
c906108c 2702fi
bec39cab 2703LIBS=$ac_func_search_save_LIBS
c906108c 2704fi
b4e70030
JB
2705echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2706echo "${ECHO_T}$ac_cv_search_strerror" >&6
2707if test "$ac_cv_search_strerror" != no; then
2708 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2709
c906108c
SS
2710fi
2711
c906108c 2712
c906108c 2713
bec39cab 2714
b4e70030
JB
2715echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2716echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
bec39cab
AC
2717if test "${am_cv_prog_cc_stdc+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2719else
bec39cab
AC
2720 am_cv_prog_cc_stdc=no
2721ac_save_CC="$CC"
2722# Don't try gcc -ansi; that turns off useful extensions and
2723# breaks some systems' header files.
2724# AIX -qlanglvl=ansi
2725# Ultrix and OSF/1 -std1
2726# HP-UX 10.20 and later -Ae
2727# HP-UX older versions -Aa -D_HPUX_SOURCE
2728# SVR4 -Xc -D__EXTENSIONS__
2729for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730do
2731 CC="$ac_save_CC $ac_arg"
2732 cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h. */
2738#include <stdarg.h>
2739#include <stdio.h>
2740#include <sys/types.h>
2741#include <sys/stat.h>
2742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743struct buf { int x; };
2744FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745static char *e (p, i)
2746 char **p;
2747 int i;
2748{
2749 return p[i];
2750}
2751static char *f (char * (*g) (char **, int), char **p, ...)
2752{
2753 char *s;
2754 va_list v;
2755 va_start (v,p);
2756 s = g (p, va_arg (v,int));
2757 va_end (v);
2758 return s;
2759}
2760int test (int i, double x);
2761struct s1 {int (*f) (int a);};
2762struct s2 {int (*f) (double a);};
2763int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764int argc;
2765char **argv;
c906108c 2766
bec39cab
AC
2767int
2768main ()
2769{
c906108c 2770
bec39cab 2771return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2772
bec39cab
AC
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
b4e70030
JB
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
bec39cab
AC
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2800else
bec39cab
AC
2801 echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2803
2804fi
bec39cab
AC
2805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806done
2807CC="$ac_save_CC"
c906108c
SS
2808
2809fi
2810
bec39cab 2811if test -z "$am_cv_prog_cc_stdc"; then
b4e70030
JB
2812 echo "$as_me:$LINENO: result: none needed" >&5
2813echo "${ECHO_T}none needed" >&6
c906108c 2814else
b4e70030
JB
2815 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2816echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2817fi
bec39cab
AC
2818case "x$am_cv_prog_cc_stdc" in
2819 x|xno) ;;
2820 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2821esac
c906108c 2822
c906108c 2823
bec39cab
AC
2824ac_aux_dir=
2825for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2826 if test -f $ac_dir/install-sh; then
2827 ac_aux_dir=$ac_dir
2828 ac_install_sh="$ac_aux_dir/install-sh -c"
2829 break
2830 elif test -f $ac_dir/install.sh; then
2831 ac_aux_dir=$ac_dir
2832 ac_install_sh="$ac_aux_dir/install.sh -c"
2833 break
2834 elif test -f $ac_dir/shtool; then
2835 ac_aux_dir=$ac_dir
2836 ac_install_sh="$ac_aux_dir/shtool install -c"
2837 break
2838 fi
2839done
2840if test -z "$ac_aux_dir"; then
2841 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2842echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2843 { (exit 1); exit 1; }; }
c906108c 2844fi
bec39cab
AC
2845ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2846ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2847ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2848
bec39cab
AC
2849# Make sure we can run config.sub.
2850$ac_config_sub sun4 >/dev/null 2>&1 ||
2851 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2852echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2853 { (exit 1); exit 1; }; }
2854
b4e70030
JB
2855echo "$as_me:$LINENO: checking build system type" >&5
2856echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2857if test "${ac_cv_build+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
b4e70030
JB
2860 ac_cv_build_alias=$build_alias
2861test -z "$ac_cv_build_alias" &&
2862 ac_cv_build_alias=`$ac_config_guess`
2863test -z "$ac_cv_build_alias" &&
bec39cab
AC
2864 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2865echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2866 { (exit 1); exit 1; }; }
b4e70030
JB
2867ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2868 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2869echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab
AC
2870 { (exit 1); exit 1; }; }
2871
2872fi
b4e70030
JB
2873echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2874echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2875build=$ac_cv_build
b4e70030
JB
2876build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2877build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2878build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2879
2880
b4e70030
JB
2881echo "$as_me:$LINENO: checking host system type" >&5
2882echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2883if test "${ac_cv_host+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
b4e70030
JB
2886 ac_cv_host_alias=$host_alias
2887test -z "$ac_cv_host_alias" &&
2888 ac_cv_host_alias=$ac_cv_build_alias
2889ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2890 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2891echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab
AC
2892 { (exit 1); exit 1; }; }
2893
2894fi
b4e70030
JB
2895echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2896echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2897host=$ac_cv_host
b4e70030
JB
2898host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2899host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2900host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2901
2902
b4e70030
JB
2903echo "$as_me:$LINENO: checking target system type" >&5
2904echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2905if test "${ac_cv_target+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
b4e70030
JB
2908 ac_cv_target_alias=$target_alias
2909test "x$ac_cv_target_alias" = "x" &&
2910 ac_cv_target_alias=$ac_cv_host_alias
2911ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2912 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2913echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
2914 { (exit 1); exit 1; }; }
2915
2916fi
b4e70030
JB
2917echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2918echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2919target=$ac_cv_target
b4e70030
JB
2920target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2921target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2922target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2923
c906108c 2924
bec39cab
AC
2925# The aliases save the names the user supplied, while $host etc.
2926# will get canonicalized.
2927test -n "$target_alias" &&
2928 test "$program_prefix$program_suffix$program_transform_name" = \
2929 NONENONEs,x,x, &&
2930 program_prefix=${target_alias}-
c906108c 2931
c906108c 2932
bec39cab
AC
2933CONFIG_OBS=
2934CONFIG_DEPS=
2935CONFIG_SRCS=
2936ENABLE_CFLAGS=
c906108c 2937
bec39cab
AC
2938CONFIG_ALL=
2939CONFIG_CLEAN=
2940CONFIG_INSTALL=
2941CONFIG_UNINSTALL=
2942
20e95c23
DJ
2943# If we haven't got the data from the intl directory,
2944# assume NLS is disabled.
2945USE_NLS=no
2946LIBINTL=
2947LIBINTL_DEP=
2948INCINTL=
2949XGETTEXT=
2950GMSGFMT=
2951POSUB=
3841debe
DJ
2952
2953if test -f ../intl/config.intl; then
2954 . ../intl/config.intl
20e95c23
DJ
2955fi
2956echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2957echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2958if test x"$USE_NLS" != xyes; then
b4e70030
JB
2959 echo "$as_me:$LINENO: result: no" >&5
2960echo "${ECHO_T}no" >&6
c906108c 2961else
20e95c23
DJ
2962 echo "$as_me:$LINENO: result: yes" >&5
2963echo "${ECHO_T}yes" >&6
c906108c 2964
20e95c23
DJ
2965cat >>confdefs.h <<\_ACEOF
2966#define ENABLE_NLS 1
bec39cab 2967_ACEOF
c906108c 2968
c906108c 2969
20e95c23
DJ
2970 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2971echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2972 # Look for .po and .gmo files in the source directory.
2973 CATALOGS=
2974 XLINGUAS=
2975 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2976 # If there aren't any .gmo files the shell will give us the
2977 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2978 # weeded out.
2979 case "$cat" in *\**)
2980 continue;;
2981 esac
2982 # The quadruple backslash is collapsed to a double backslash
2983 # by the backticks, then collapsed again by the double quotes,
2984 # leaving us with one backslash in the sed expression (right
2985 # before the dot that mustn't act as a wildcard).
2986 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2987 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2988 # The user is allowed to set LINGUAS to a list of languages to
2989 # install catalogs for. If it's empty that means "all of them."
2990 if test "x$LINGUAS" = x; then
2991 CATALOGS="$CATALOGS $cat"
2992 XLINGUAS="$XLINGUAS $lang"
2993 else
2994 case "$LINGUAS" in *$lang*)
2995 CATALOGS="$CATALOGS $cat"
2996 XLINGUAS="$XLINGUAS $lang"
2997 ;;
2998 esac
2999 fi
3000 done
3001 LINGUAS="$XLINGUAS"
3002 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3003echo "${ECHO_T}$LINGUAS" >&6
c906108c 3004
c906108c 3005
20e95c23 3006 DATADIRNAME=share
c906108c 3007
20e95c23 3008 INSTOBJEXT=.mo
c906108c 3009
20e95c23
DJ
3010 GENCAT=gencat
3011
3012 CATOBJEXT=.gmo
3013
3014fi
3015
3016localedir='${datadir}/locale'
c906108c 3017
bec39cab 3018
20e95c23 3019if test x"$USE_NLS" = xyes; then
bec39cab
AC
3020 CONFIG_ALL="$CONFIG_ALL all-po"
3021 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3022 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3023 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3024fi
3025
3026PACKAGE=gdb
3027
3028cat >>confdefs.h <<_ACEOF
3029#define PACKAGE "$PACKAGE"
3030_ACEOF
3031
3032
3033
3034debugdir=${libdir}/debug
3035
3036
b4e70030 3037# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 3038if test "${with_separate_debug_dir+set}" = set; then
b4e70030
JB
3039 withval="$with_separate_debug_dir"
3040 debugdir="${withval}"
3041fi;
bec39cab
AC
3042
3043
3044 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3046 ac_define_dir=`eval echo $debugdir`
3047 ac_define_dir=`eval echo $ac_define_dir`
3048
3049cat >>confdefs.h <<_ACEOF
3050#define DEBUGDIR "$ac_define_dir"
3051_ACEOF
3052
3053
3054#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3055
b4e70030
JB
3056
3057
bec39cab
AC
3058subdirs="$subdirs doc testsuite"
3059
3060
121ce6e5
DJ
3061# Provide defaults for some variables set by the per-host and per-target
3062# configuration.
3063gdb_host_obs=posix-hdep.o
3064
771b4502
UW
3065if test "${target}" = "${host}"; then
3066 gdb_native=yes
3067else
3068 gdb_native=no
3069fi
3070
bec39cab
AC
3071. $srcdir/configure.host
3072
3073. $srcdir/configure.tgt
3074
3075# Fetch the default architecture and default target vector from BFD.
3076targ=$target; . $srcdir/../bfd/config.bfd
3077
3078# We only want the first architecture, so strip off the others if
3079# there is more than one.
3080targ_archs=`echo $targ_archs | sed 's/ .*//'`
3081
3082if test "x$targ_archs" != x; then
3083
3084cat >>confdefs.h <<_ACEOF
3085#define DEFAULT_BFD_ARCH $targ_archs
3086_ACEOF
3087
3088fi
3089if test "x$targ_defvec" != x; then
3090
3091cat >>confdefs.h <<_ACEOF
3092#define DEFAULT_BFD_VEC $targ_defvec
3093_ACEOF
3094
3095fi
3096
3097test "$program_prefix" != NONE &&
b4e70030 3098 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
3099# Use a double $ so make ignores it.
3100test "$program_suffix" != NONE &&
b4e70030 3101 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
3102# Double any \ or $. echo might interpret backslashes.
3103# By default was `s,x,x', remove it if useless.
3104cat <<\_ACEOF >conftest.sed
3105s/[\\$]/&&/g;s/;s,x,x,$//
3106_ACEOF
3107program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 3108rm conftest.sed
bec39cab
AC
3109
3110
3111# The CLI cannot be disabled yet, but may be in the future.
3112
3113# Enable CLI.
b4e70030 3114# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 3115if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
3116 enableval="$enable_gdbcli"
3117 case $enableval in
bec39cab
AC
3118 yes)
3119 ;;
3120 no)
3121 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3122echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3123 { (exit 1); exit 1; }; } ;;
3124 *)
3125 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3126echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3127 { (exit 1); exit 1; }; } ;;
3128 esac
3129else
3130 enable_gdbcli=yes
b4e70030 3131fi;
bec39cab
AC
3132if test x"$enable_gdbcli" = xyes; then
3133 if test -d $srcdir/cli; then
3134 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3135 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3136 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3137 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3138 fi
3139fi
3140
3141# Enable MI.
b4e70030 3142# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 3143if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
3144 enableval="$enable_gdbmi"
3145 case $enableval in
bec39cab
AC
3146 yes | no)
3147 ;;
3148 *)
3149 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3150echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3151 { (exit 1); exit 1; }; } ;;
3152 esac
3153else
3154 enable_gdbmi=yes
b4e70030 3155fi;
bec39cab
AC
3156if test x"$enable_gdbmi" = xyes; then
3157 if test -d $srcdir/mi; then
3158 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3159 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3160 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3161 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3162 fi
3163fi
3164
3165# Enable TUI.
b4e70030 3166# Check whether --enable-tui or --disable-tui was given.
bec39cab 3167if test "${enable_tui+set}" = set; then
b4e70030
JB
3168 enableval="$enable_tui"
3169 case $enableval in
bec39cab
AC
3170 yes | no)
3171 ;;
3172 *)
3173 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3174echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3175 { (exit 1); exit 1; }; } ;;
3176 esac
3177else
3178 enable_tui=yes
b4e70030 3179fi;
bec39cab
AC
3180
3181# Enable gdbtk.
b4e70030 3182# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 3183if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
3184 enableval="$enable_gdbtk"
3185 case $enableval in
bec39cab
AC
3186 yes | no)
3187 ;;
3188 *)
3189 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3190echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3191 { (exit 1); exit 1; }; } ;;
3192 esac
3193else
04ac69aa 3194 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
3195 enable_gdbtk=yes
3196 else
3197 enable_gdbtk=no
3198 fi
b4e70030 3199fi;
bec39cab
AC
3200# We unconditionally disable gdbtk tests on selected platforms.
3201case $host_os in
3202 go32* | windows*)
3203 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3204echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3205 enable_gdbtk=no ;;
3206esac
3207
3208# Libunwind support.
20e95c23
DJ
3209echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3210echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3211if test "${ac_cv_header_stdc+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
3214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220#include <stdlib.h>
3221#include <stdarg.h>
3222#include <string.h>
3223#include <float.h>
3224
3225int
3226main ()
3227{
3228
3229 ;
3230 return 0;
3231}
3232_ACEOF
3233rm -f conftest.$ac_objext
3234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_header_stdc=yes
3256else
3257 echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260ac_cv_header_stdc=no
3261fi
3262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263
3264if test $ac_cv_header_stdc = yes; then
3265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3266 cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h. */
3272#include <string.h>
3273
3274_ACEOF
3275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276 $EGREP "memchr" >/dev/null 2>&1; then
3277 :
3278else
3279 ac_cv_header_stdc=no
3280fi
3281rm -f conftest*
3282
3283fi
3284
3285if test $ac_cv_header_stdc = yes; then
3286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3287 cat >conftest.$ac_ext <<_ACEOF
3288/* confdefs.h. */
3289_ACEOF
3290cat confdefs.h >>conftest.$ac_ext
3291cat >>conftest.$ac_ext <<_ACEOF
3292/* end confdefs.h. */
3293#include <stdlib.h>
3294
3295_ACEOF
3296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 $EGREP "free" >/dev/null 2>&1; then
3298 :
3299else
3300 ac_cv_header_stdc=no
3301fi
3302rm -f conftest*
3303
3304fi
3305
3306if test $ac_cv_header_stdc = yes; then
3307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3308 if test "$cross_compiling" = yes; then
3309 :
3310else
3311 cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h. */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h. */
3317#include <ctype.h>
3318#if ((' ' & 0x0FF) == 0x020)
3319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3321#else
3322# define ISLOWER(c) \
3323 (('a' <= (c) && (c) <= 'i') \
3324 || ('j' <= (c) && (c) <= 'r') \
3325 || ('s' <= (c) && (c) <= 'z'))
3326# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3327#endif
3328
3329#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3330int
3331main ()
3332{
3333 int i;
3334 for (i = 0; i < 256; i++)
3335 if (XOR (islower (i), ISLOWER (i))
3336 || toupper (i) != TOUPPER (i))
3337 exit(2);
3338 exit (0);
3339}
3340_ACEOF
3341rm -f conftest$ac_exeext
3342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3343 (eval $ac_link) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 :
3353else
3354 echo "$as_me: program exited with status $ac_status" >&5
3355echo "$as_me: failed program was:" >&5
3356sed 's/^/| /' conftest.$ac_ext >&5
3357
3358( exit $ac_status )
3359ac_cv_header_stdc=no
3360fi
3361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3362fi
3363fi
3364fi
3365echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3366echo "${ECHO_T}$ac_cv_header_stdc" >&6
3367if test $ac_cv_header_stdc = yes; then
3368
3369cat >>confdefs.h <<\_ACEOF
3370#define STDC_HEADERS 1
3371_ACEOF
3372
3373fi
3374
3375# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3386 inttypes.h stdint.h unistd.h
3387do
3388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3389echo "$as_me:$LINENO: checking for $ac_header" >&5
3390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3391if eval "test \"\${$as_ac_Header+set}\" = set"; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394 cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h. */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h. */
3400$ac_includes_default
3401
3402#include <$ac_header>
3403_ACEOF
3404rm -f conftest.$ac_objext
3405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406 (eval $ac_compile) 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try='test -z "$ac_c_werror_flag"
3414 || test ! -s conftest.err'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 (eval $ac_try) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 eval "$as_ac_Header=yes"
3427else
3428 echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431eval "$as_ac_Header=no"
3432fi
3433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434fi
3435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3437if test `eval echo '${'$as_ac_Header'}'` = yes; then
3438 cat >>confdefs.h <<_ACEOF
3439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3440_ACEOF
3441
3442fi
3443
3444done
3445
3446
bec39cab 3447
b4e70030 3448# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3449if test "${with_libunwind+set}" = set; then
b4e70030
JB
3450 withval="$with_libunwind"
3451 case "${withval}" in
bec39cab
AC
3452 yes) enable_libunwind=yes ;;
3453 no) enable_libunwind=no ;;
3454 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3455echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3456 { (exit 1); exit 1; }; } ;;
3457esac
3458else
3459
3460
3461for ac_header in libunwind.h
3462do
3463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3464if eval "test \"\${$as_ac_Header+set}\" = set"; then
3465 echo "$as_me:$LINENO: checking for $ac_header" >&5
3466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3467if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469fi
b4e70030
JB
3470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3472else
3473 # Is the header compilable?
b4e70030
JB
3474echo "$as_me:$LINENO: checking $ac_header usability" >&5
3475echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3476cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
3482$ac_includes_default
3483#include <$ac_header>
3484_ACEOF
3485rm -f conftest.$ac_objext
3486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487 (eval $ac_compile) 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
b4e70030
JB
3494 { ac_try='test -z "$ac_c_werror_flag"
3495 || test ! -s conftest.err'
bec39cab
AC
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest.$ac_objext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 ac_header_compiler=yes
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
b4e70030 3512ac_header_compiler=no
bec39cab
AC
3513fi
3514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3516echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3517
3518# Is the header present?
b4e70030
JB
3519echo "$as_me:$LINENO: checking $ac_header presence" >&5
3520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3521cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h. */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h. */
3527#include <$ac_header>
3528_ACEOF
3529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } >/dev/null; then
3537 if test -s conftest.err; then
3538 ac_cpp_err=$ac_c_preproc_warn_flag
3539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3540 else
3541 ac_cpp_err=
3542 fi
3543else
3544 ac_cpp_err=yes
3545fi
3546if test -z "$ac_cpp_err"; then
3547 ac_header_preproc=yes
3548else
3549 echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 ac_header_preproc=no
3553fi
3554rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3555echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3556echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3557
3558# So? What about this header?
3559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3560 yes:no: )
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3565 ac_header_preproc=yes
3566 ;;
3567 no:yes:* )
3568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3580 (
3581 cat <<\_ASBOX
3582## ------------------------------------------ ##
3583## Report this to the AC_PACKAGE_NAME lists. ##
3584## ------------------------------------------ ##
3585_ASBOX
3586 ) |
3587 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3588 ;;
3589esac
b4e70030
JB
3590echo "$as_me:$LINENO: checking for $ac_header" >&5
3591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3592if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595 eval "$as_ac_Header=\$ac_header_preproc"
3596fi
b4e70030
JB
3597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3599
3600fi
3601if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602 cat >>confdefs.h <<_ACEOF
3603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604_ACEOF
3605
3606fi
3607
3608done
3609
3610
3611for ac_header in libunwind-ia64.h
3612do
3613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3614if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo "$as_me:$LINENO: checking for $ac_header" >&5
3616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3617if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619fi
b4e70030
JB
3620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3622else
3623 # Is the header compilable?
b4e70030
JB
3624echo "$as_me:$LINENO: checking $ac_header usability" >&5
3625echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3626cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632$ac_includes_default
3633#include <$ac_header>
3634_ACEOF
3635rm -f conftest.$ac_objext
3636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
b4e70030
JB
3644 { ac_try='test -z "$ac_c_werror_flag"
3645 || test ! -s conftest.err'
bec39cab
AC
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 ac_header_compiler=yes
3658else
3659 echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
b4e70030 3662ac_header_compiler=no
bec39cab
AC
3663fi
3664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3665echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3666echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3667
3668# Is the header present?
b4e70030
JB
3669echo "$as_me:$LINENO: checking $ac_header presence" >&5
3670echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3671cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h. */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h. */
3677#include <$ac_header>
3678_ACEOF
3679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev/null; then
3687 if test -s conftest.err; then
3688 ac_cpp_err=$ac_c_preproc_warn_flag
3689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3690 else
3691 ac_cpp_err=
3692 fi
3693else
3694 ac_cpp_err=yes
3695fi
3696if test -z "$ac_cpp_err"; then
3697 ac_header_preproc=yes
3698else
3699 echo "$as_me: failed program was:" >&5
3700sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 ac_header_preproc=no
3703fi
3704rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3705echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3706echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3707
3708# So? What about this header?
3709case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3710 yes:no: )
3711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3712echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3714echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3715 ac_header_preproc=yes
3716 ;;
3717 no:yes:* )
3718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3719echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3721echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3723echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3725echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3727echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3729echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3730 (
3731 cat <<\_ASBOX
3732## ------------------------------------------ ##
3733## Report this to the AC_PACKAGE_NAME lists. ##
3734## ------------------------------------------ ##
3735_ASBOX
3736 ) |
3737 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3738 ;;
3739esac
b4e70030
JB
3740echo "$as_me:$LINENO: checking for $ac_header" >&5
3741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3742if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745 eval "$as_ac_Header=\$ac_header_preproc"
3746fi
b4e70030
JB
3747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3749
3750fi
3751if test `eval echo '${'$as_ac_Header'}'` = yes; then
3752 cat >>confdefs.h <<_ACEOF
3753#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3754_ACEOF
3755
3756fi
3757
3758done
3759
3760 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3761 enable_libunwind=yes;
3762 fi
3763
b4e70030 3764fi;
bec39cab
AC
3765
3766if test x"$enable_libunwind" = xyes; then
3767
3768for ac_header in libunwind.h
3769do
3770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3771if eval "test \"\${$as_ac_Header+set}\" = set"; then
3772 echo "$as_me:$LINENO: checking for $ac_header" >&5
3773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3774if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776fi
b4e70030
JB
3777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3779else
3780 # Is the header compilable?
b4e70030
JB
3781echo "$as_me:$LINENO: checking $ac_header usability" >&5
3782echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3783cat >conftest.$ac_ext <<_ACEOF
3784/* confdefs.h. */
3785_ACEOF
3786cat confdefs.h >>conftest.$ac_ext
3787cat >>conftest.$ac_ext <<_ACEOF
3788/* end confdefs.h. */
3789$ac_includes_default
3790#include <$ac_header>
3791_ACEOF
3792rm -f conftest.$ac_objext
3793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
b4e70030
JB
3801 { ac_try='test -z "$ac_c_werror_flag"
3802 || test ! -s conftest.err'
bec39cab
AC
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest.$ac_objext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_header_compiler=yes
3815else
3816 echo "$as_me: failed program was:" >&5
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
b4e70030 3819ac_header_compiler=no
bec39cab
AC
3820fi
3821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3823echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3824
3825# Is the header present?
b4e70030
JB
3826echo "$as_me:$LINENO: checking $ac_header presence" >&5
3827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3828cat >conftest.$ac_ext <<_ACEOF
3829/* confdefs.h. */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
3833/* end confdefs.h. */
3834#include <$ac_header>
3835_ACEOF
3836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } >/dev/null; then
3844 if test -s conftest.err; then
3845 ac_cpp_err=$ac_c_preproc_warn_flag
3846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3847 else
3848 ac_cpp_err=
3849 fi
3850else
3851 ac_cpp_err=yes
3852fi
3853if test -z "$ac_cpp_err"; then
3854 ac_header_preproc=yes
3855else
3856 echo "$as_me: failed program was:" >&5
3857sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 ac_header_preproc=no
3860fi
3861rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3863echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3864
3865# So? What about this header?
3866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3867 yes:no: )
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3871echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3872 ac_header_preproc=yes
3873 ;;
3874 no:yes:* )
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3876echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3878echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3880echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3882echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3884echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3886echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3887 (
3888 cat <<\_ASBOX
3889## ------------------------------------------ ##
3890## Report this to the AC_PACKAGE_NAME lists. ##
3891## ------------------------------------------ ##
3892_ASBOX
3893 ) |
3894 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3895 ;;
3896esac
b4e70030
JB
3897echo "$as_me:$LINENO: checking for $ac_header" >&5
3898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3899if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901else
3902 eval "$as_ac_Header=\$ac_header_preproc"
3903fi
b4e70030
JB
3904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3906
3907fi
3908if test `eval echo '${'$as_ac_Header'}'` = yes; then
3909 cat >>confdefs.h <<_ACEOF
3910#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3911_ACEOF
3912
3913fi
3914
3915done
3916
3917
3918for ac_header in libunwind-ia64.h
3919do
3920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3921if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922 echo "$as_me:$LINENO: checking for $ac_header" >&5
3923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3924if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926fi
b4e70030
JB
3927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3929else
3930 # Is the header compilable?
b4e70030
JB
3931echo "$as_me:$LINENO: checking $ac_header usability" >&5
3932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3933cat >conftest.$ac_ext <<_ACEOF
3934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
3938/* end confdefs.h. */
3939$ac_includes_default
3940#include <$ac_header>
3941_ACEOF
3942rm -f conftest.$ac_objext
3943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3944 (eval $ac_compile) 2>conftest.er1
3945 ac_status=$?
3946 grep -v '^ *+' conftest.er1 >conftest.err
3947 rm -f conftest.er1
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
b4e70030
JB
3951 { ac_try='test -z "$ac_c_werror_flag"
3952 || test ! -s conftest.err'
bec39cab
AC
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; }; then
3964 ac_header_compiler=yes
3965else
3966 echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
b4e70030 3969ac_header_compiler=no
bec39cab
AC
3970fi
3971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3973echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3974
3975# Is the header present?
b4e70030
JB
3976echo "$as_me:$LINENO: checking $ac_header presence" >&5
3977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3978cat >conftest.$ac_ext <<_ACEOF
3979/* confdefs.h. */
3980_ACEOF
3981cat confdefs.h >>conftest.$ac_ext
3982cat >>conftest.$ac_ext <<_ACEOF
3983/* end confdefs.h. */
3984#include <$ac_header>
3985_ACEOF
3986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } >/dev/null; then
3994 if test -s conftest.err; then
3995 ac_cpp_err=$ac_c_preproc_warn_flag
3996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3997 else
3998 ac_cpp_err=
3999 fi
4000else
4001 ac_cpp_err=yes
4002fi
4003if test -z "$ac_cpp_err"; then
4004 ac_header_preproc=yes
4005else
4006 echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 ac_header_preproc=no
4010fi
4011rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4013echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4014
4015# So? What about this header?
4016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4017 yes:no: )
4018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4022 ac_header_preproc=yes
4023 ;;
4024 no:yes:* )
4025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4037 (
4038 cat <<\_ASBOX
4039## ------------------------------------------ ##
4040## Report this to the AC_PACKAGE_NAME lists. ##
4041## ------------------------------------------ ##
4042_ASBOX
4043 ) |
4044 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4045 ;;
4046esac
b4e70030
JB
4047echo "$as_me:$LINENO: checking for $ac_header" >&5
4048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4049if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052 eval "$as_ac_Header=\$ac_header_preproc"
4053fi
b4e70030
JB
4054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4056
4057fi
4058if test `eval echo '${'$as_ac_Header'}'` = yes; then
4059 cat >>confdefs.h <<_ACEOF
4060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061_ACEOF
4062
4063fi
4064
4065done
4066
60ca704f
SE
4067
4068cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4069#define HAVE_LIBUNWIND 1
4070_ACEOF
4071
4072 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4073 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4074 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4075fi
4076
4077# Profiling support.
b4e70030 4078# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4079if test "${enable_profiling+set}" = set; then
b4e70030
JB
4080 enableval="$enable_profiling"
4081 case $enableval in
bec39cab
AC
4082 yes | no)
4083 ;;
4084 *)
4085 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4086echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4087 { (exit 1); exit 1; }; } ;;
4088 esac
4089else
4090 enable_profiling=no
b4e70030 4091fi;
bec39cab
AC
4092
4093
4094
4095for ac_func in monstartup _mcleanup
4096do
4097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4098echo "$as_me:$LINENO: checking for $ac_func" >&5
4099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4100if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103 cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4111#define $ac_func innocuous_$ac_func
4112
4113/* System header to define __stub macros and hopefully few prototypes,
4114 which can conflict with char $ac_func (); below.
4115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4116 <limits.h> exists even on freestanding compilers. */
4117
4118#ifdef __STDC__
4119# include <limits.h>
4120#else
4121# include <assert.h>
4122#endif
4123
4124#undef $ac_func
4125
b4e70030 4126/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4127#ifdef __cplusplus
4128extern "C"
b4e70030 4129{
bec39cab 4130#endif
b4e70030
JB
4131/* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
bec39cab
AC
4133char $ac_func ();
4134/* The GNU C library defines this for functions which it implements
4135 to always fail with ENOSYS. Some functions are actually named
4136 something starting with __ and the normal name is an alias. */
b4e70030 4137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4138choke me
b4e70030
JB
4139#else
4140char (*f) () = $ac_func;
4141#endif
4142#ifdef __cplusplus
4143}
bec39cab
AC
4144#endif
4145
4146int
4147main ()
4148{
b4e70030 4149return f != $ac_func;
bec39cab
AC
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext conftest$ac_exeext
4155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4156 (eval $ac_link) 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
b4e70030
JB
4163 { ac_try='test -z "$ac_c_werror_flag"
4164 || test ! -s conftest.err'
bec39cab
AC
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 eval "$as_ac_var=yes"
4177else
4178 echo "$as_me: failed program was:" >&5
4179sed 's/^/| /' conftest.$ac_ext >&5
4180
b4e70030 4181eval "$as_ac_var=no"
bec39cab
AC
4182fi
4183rm -f conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4185fi
b4e70030
JB
4186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4187echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4188if test `eval echo '${'$as_ac_var'}'` = yes; then
4189 cat >>confdefs.h <<_ACEOF
4190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4191_ACEOF
4192
4193fi
4194done
4195
b4e70030
JB
4196echo "$as_me:$LINENO: checking for _etext" >&5
4197echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4198if test "${ac_cv_var__etext+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207#include <stdlib.h>
4208extern char _etext;
4209
4210int
4211main ()
4212{
4213free (&_etext);
4214 ;
4215 return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext conftest$ac_exeext
4219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220 (eval $ac_link) 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
b4e70030
JB
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
bec39cab
AC
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest$ac_exeext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_cv_var__etext=yes
4241else
4242 echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
b4e70030 4245ac_cv_var__etext=no
bec39cab
AC
4246fi
4247rm -f conftest.err conftest.$ac_objext \
4248 conftest$ac_exeext conftest.$ac_ext
4249fi
b4e70030
JB
4250echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4251echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4252if test $ac_cv_var__etext = yes; then
4253
4254cat >>confdefs.h <<\_ACEOF
4255#define HAVE__ETEXT 1
4256_ACEOF
4257
4258fi
4259if test "$enable_profiling" = yes ; then
4260 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4261 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4262echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4263 { (exit 1); exit 1; }; }
4264 fi
4265 PROFILE_CFLAGS=-pg
4266 OLD_CFLAGS="$CFLAGS"
4267 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4268
b4e70030
JB
4269 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4270echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4271if test "${ac_cv_cc_supports_pg+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4273else
bec39cab
AC
4274 cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h. */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h. */
4280
4281int
4282main ()
4283{
4284int x;
4285 ;
4286 return 0;
4287}
4288_ACEOF
4289rm -f conftest.$ac_objext
4290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
b4e70030
JB
4298 { ac_try='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
bec39cab
AC
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_cv_cc_supports_pg=yes
4312else
4313 echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
b4e70030 4316ac_cv_cc_supports_pg=no
bec39cab
AC
4317fi
4318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319fi
b4e70030
JB
4320echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4321echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4322
4323 if test $ac_cv_cc_supports_pg = no; then
4324 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4325echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4326 { (exit 1); exit 1; }; }
4327 fi
4328
4329 CFLAGS="$OLD_CFLAGS"
4330fi
4331
4332# --------------------- #
4333# Checks for programs. #
4334# --------------------- #
4335
4336for ac_prog in gawk mawk nawk awk
4337do
4338 # Extract the first word of "$ac_prog", so it can be a program name with args.
4339set dummy $ac_prog; ac_word=$2
b4e70030
JB
4340echo "$as_me:$LINENO: checking for $ac_word" >&5
4341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4342if test "${ac_cv_prog_AWK+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345 if test -n "$AWK"; then
4346 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4347else
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4355 ac_cv_prog_AWK="$ac_prog"
4356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359done
4360done
4361
4362fi
4363fi
4364AWK=$ac_cv_prog_AWK
4365if test -n "$AWK"; then
b4e70030
JB
4366 echo "$as_me:$LINENO: result: $AWK" >&5
4367echo "${ECHO_T}$AWK" >&6
bec39cab 4368else
b4e70030
JB
4369 echo "$as_me:$LINENO: result: no" >&5
4370echo "${ECHO_T}no" >&6
bec39cab
AC
4371fi
4372
4373 test -n "$AWK" && break
4374done
4375
4376# Find a good install program. We prefer a C program (faster),
4377# so one script is as good as another. But avoid the broken or
4378# incompatible versions:
4379# SysV /etc/install, /usr/sbin/install
4380# SunOS /usr/etc/install
4381# IRIX /sbin/install
4382# AIX /bin/install
4383# AmigaOS /C/install, which installs bootblocks on floppy discs
4384# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4385# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4386# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4387# OS/2's system install, which has a completely different semantic
4388# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4389echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4390echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4391if test -z "$INSTALL"; then
4392if test "${ac_cv_path_install+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 # Account for people who put trailing slashes in PATH elements.
4401case $as_dir/ in
4402 ./ | .// | /cC/* | \
4403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4404 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4405 /usr/ucb/* ) ;;
c906108c 4406 *)
bec39cab
AC
4407 # OSF1 and SCO ODT 3.0 have their own names for install.
4408 # Don't use installbsd from OSF since it installs stuff as root
4409 # by default.
4410 for ac_prog in ginstall scoinst install; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4412 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4413 if test $ac_prog = install &&
4414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4415 # AIX install. It has an incompatible calling convention.
4416 :
4417 elif test $ac_prog = install &&
4418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4419 # program-specific install script used by HP pwplus--don't use.
4420 :
4421 else
4422 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4423 break 3
4424 fi
4425 fi
4426 done
4427 done
4428 ;;
c906108c 4429esac
bec39cab
AC
4430done
4431
4432
4433fi
4434 if test "${ac_cv_path_install+set}" = set; then
4435 INSTALL=$ac_cv_path_install
4436 else
b4e70030
JB
4437 # As a last resort, use the slow shell script. We don't cache a
4438 # path for INSTALL within a source directory, because that will
bec39cab 4439 # break other packages using the cache if that directory is
b4e70030 4440 # removed, or if the path is relative.
bec39cab
AC
4441 INSTALL=$ac_install_sh
4442 fi
4443fi
b4e70030
JB
4444echo "$as_me:$LINENO: result: $INSTALL" >&5
4445echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4446
4447# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4448# It thinks the first close brace ends the variable substitution.
4449test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4450
4451test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4452
4453test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4454
b4e70030
JB
4455echo "$as_me:$LINENO: checking whether ln -s works" >&5
4456echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4457LN_S=$as_ln_s
4458if test "$LN_S" = "ln -s"; then
b4e70030
JB
4459 echo "$as_me:$LINENO: result: yes" >&5
4460echo "${ECHO_T}yes" >&6
bec39cab 4461else
b4e70030
JB
4462 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4463echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4464fi
4465
4466if test -n "$ac_tool_prefix"; then
4467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4468set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4469echo "$as_me:$LINENO: checking for $ac_word" >&5
4470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4471if test "${ac_cv_prog_RANLIB+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474 if test -n "$RANLIB"; then
4475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4476else
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4487 fi
4488done
4489done
4490
4491fi
4492fi
4493RANLIB=$ac_cv_prog_RANLIB
4494if test -n "$RANLIB"; then
b4e70030
JB
4495 echo "$as_me:$LINENO: result: $RANLIB" >&5
4496echo "${ECHO_T}$RANLIB" >&6
bec39cab 4497else
b4e70030
JB
4498 echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
bec39cab
AC
4500fi
4501
4502fi
4503if test -z "$ac_cv_prog_RANLIB"; then
4504 ac_ct_RANLIB=$RANLIB
4505 # Extract the first word of "ranlib", so it can be a program name with args.
4506set dummy ranlib; ac_word=$2
b4e70030
JB
4507echo "$as_me:$LINENO: checking for $ac_word" >&5
4508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4509if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512 if test -n "$ac_ct_RANLIB"; then
4513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4514else
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4522 ac_cv_prog_ac_ct_RANLIB="ranlib"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526done
4527done
4528
b4e70030 4529 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4530fi
4531fi
4532ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4533if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4534 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4535echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4536else
b4e70030
JB
4537 echo "$as_me:$LINENO: result: no" >&5
4538echo "${ECHO_T}no" >&6
bec39cab
AC
4539fi
4540
b4e70030 4541 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4542else
4543 RANLIB="$ac_cv_prog_RANLIB"
4544fi
4545
4546for ac_prog in 'bison -y' byacc
4547do
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549set dummy $ac_prog; ac_word=$2
b4e70030
JB
4550echo "$as_me:$LINENO: checking for $ac_word" >&5
4551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4552if test "${ac_cv_prog_YACC+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555 if test -n "$YACC"; then
4556 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4565 ac_cv_prog_YACC="$ac_prog"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569done
4570done
4571
4572fi
4573fi
4574YACC=$ac_cv_prog_YACC
4575if test -n "$YACC"; then
b4e70030
JB
4576 echo "$as_me:$LINENO: result: $YACC" >&5
4577echo "${ECHO_T}$YACC" >&6
bec39cab 4578else
b4e70030
JB
4579 echo "$as_me:$LINENO: result: no" >&5
4580echo "${ECHO_T}no" >&6
bec39cab
AC
4581fi
4582
4583 test -n "$YACC" && break
4584done
4585test -n "$YACC" || YACC="yacc"
4586
4587
4588if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4590set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4591echo "$as_me:$LINENO: checking for $ac_word" >&5
4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4593if test "${ac_cv_prog_AR+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596 if test -n "$AR"; then
4597 ac_cv_prog_AR="$AR" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4606 ac_cv_prog_AR="${ac_tool_prefix}ar"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610done
4611done
4612
4613fi
4614fi
4615AR=$ac_cv_prog_AR
4616if test -n "$AR"; then
b4e70030
JB
4617 echo "$as_me:$LINENO: result: $AR" >&5
4618echo "${ECHO_T}$AR" >&6
bec39cab 4619else
b4e70030
JB
4620 echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6
bec39cab
AC
4622fi
4623
4624fi
4625if test -z "$ac_cv_prog_AR"; then
4626 ac_ct_AR=$AR
4627 # Extract the first word of "ar", so it can be a program name with args.
4628set dummy ar; ac_word=$2
b4e70030
JB
4629echo "$as_me:$LINENO: checking for $ac_word" >&5
4630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4631if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634 if test -n "$ac_ct_AR"; then
4635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4636else
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4644 ac_cv_prog_ac_ct_AR="ar"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4647 fi
4648done
4649done
4650
4651fi
4652fi
4653ac_ct_AR=$ac_cv_prog_ac_ct_AR
4654if test -n "$ac_ct_AR"; then
b4e70030
JB
4655 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4656echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4657else
b4e70030
JB
4658 echo "$as_me:$LINENO: result: no" >&5
4659echo "${ECHO_T}no" >&6
bec39cab
AC
4660fi
4661
b4e70030 4662 AR=$ac_ct_AR
bec39cab
AC
4663else
4664 AR="$ac_cv_prog_AR"
4665fi
4666
4667if test -n "$ac_tool_prefix"; then
4668 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4669set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4670echo "$as_me:$LINENO: checking for $ac_word" >&5
4671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4672if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675 if test -n "$DLLTOOL"; then
4676 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4677else
4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4685 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689done
4690done
4691
4692fi
4693fi
4694DLLTOOL=$ac_cv_prog_DLLTOOL
4695if test -n "$DLLTOOL"; then
b4e70030
JB
4696 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4697echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4698else
b4e70030
JB
4699 echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6
bec39cab
AC
4701fi
4702
4703fi
4704if test -z "$ac_cv_prog_DLLTOOL"; then
4705 ac_ct_DLLTOOL=$DLLTOOL
4706 # Extract the first word of "dlltool", so it can be a program name with args.
4707set dummy dlltool; ac_word=$2
b4e70030
JB
4708echo "$as_me:$LINENO: checking for $ac_word" >&5
4709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4710if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713 if test -n "$ac_ct_DLLTOOL"; then
4714 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4723 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727done
4728done
4729
4730fi
4731fi
4732ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4733if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4734 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4735echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4736else
b4e70030
JB
4737 echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6
bec39cab
AC
4739fi
4740
b4e70030 4741 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4742else
4743 DLLTOOL="$ac_cv_prog_DLLTOOL"
4744fi
4745
4746if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4748set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4749echo "$as_me:$LINENO: checking for $ac_word" >&5
4750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4751if test "${ac_cv_prog_WINDRES+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754 if test -n "$WINDRES"; then
4755 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4764 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768done
4769done
4770
4771fi
4772fi
4773WINDRES=$ac_cv_prog_WINDRES
4774if test -n "$WINDRES"; then
b4e70030
JB
4775 echo "$as_me:$LINENO: result: $WINDRES" >&5
4776echo "${ECHO_T}$WINDRES" >&6
bec39cab 4777else
b4e70030
JB
4778 echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6
bec39cab
AC
4780fi
4781
4782fi
4783if test -z "$ac_cv_prog_WINDRES"; then
4784 ac_ct_WINDRES=$WINDRES
4785 # Extract the first word of "windres", so it can be a program name with args.
4786set dummy windres; ac_word=$2
b4e70030
JB
4787echo "$as_me:$LINENO: checking for $ac_word" >&5
4788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4789if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792 if test -n "$ac_ct_WINDRES"; then
4793 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4794else
4795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4802 ac_cv_prog_ac_ct_WINDRES="windres"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4805 fi
4806done
4807done
4808
4809fi
4810fi
4811ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4812if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4813 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4814echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4815else
b4e70030
JB
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
c906108c 4818fi
bec39cab 4819
b4e70030 4820 WINDRES=$ac_ct_WINDRES
c906108c 4821else
bec39cab 4822 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4823fi
4824
bec39cab
AC
4825
4826# Needed for GNU/Hurd.
4827if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4829set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4830echo "$as_me:$LINENO: checking for $ac_word" >&5
4831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4832if test "${ac_cv_prog_MIG+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4834else
bec39cab
AC
4835 if test -n "$MIG"; then
4836 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4837else
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4845 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4848 fi
4849done
4850done
4851
c906108c 4852fi
bec39cab
AC
4853fi
4854MIG=$ac_cv_prog_MIG
4855if test -n "$MIG"; then
b4e70030
JB
4856 echo "$as_me:$LINENO: result: $MIG" >&5
4857echo "${ECHO_T}$MIG" >&6
c906108c 4858else
b4e70030
JB
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
c906108c
SS
4861fi
4862
bec39cab
AC
4863fi
4864if test -z "$ac_cv_prog_MIG"; then
4865 ac_ct_MIG=$MIG
4866 # Extract the first word of "mig", so it can be a program name with args.
4867set dummy mig; ac_word=$2
b4e70030
JB
4868echo "$as_me:$LINENO: checking for $ac_word" >&5
4869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4870if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872else
4873 if test -n "$ac_ct_MIG"; then
4874 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4883 ac_cv_prog_ac_ct_MIG="mig"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887done
4888done
c906108c 4889
bec39cab
AC
4890fi
4891fi
4892ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4893if test -n "$ac_ct_MIG"; then
b4e70030
JB
4894 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4895echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4896else
b4e70030
JB
4897 echo "$as_me:$LINENO: result: no" >&5
4898echo "${ECHO_T}no" >&6
bec39cab 4899fi
c906108c 4900
b4e70030 4901 MIG=$ac_ct_MIG
bec39cab
AC
4902else
4903 MIG="$ac_cv_prog_MIG"
4904fi
c906108c 4905
c906108c 4906
bec39cab
AC
4907# ---------------------- #
4908# Checks for libraries. #
4909# ---------------------- #
c906108c 4910
bec39cab 4911# We might need to link with -lm; most simulators need it.
c906108c 4912
b4e70030
JB
4913echo "$as_me:$LINENO: checking for main in -lm" >&5
4914echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
4915if test "${ac_cv_lib_m_main+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918 ac_check_lib_save_LIBS=$LIBS
4919LIBS="-lm $LIBS"
4920cat >conftest.$ac_ext <<_ACEOF
4921/* confdefs.h. */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h. */
c906108c 4926
c906108c 4927
bec39cab
AC
4928int
4929main ()
4930{
b4e70030 4931main ();
bec39cab
AC
4932 ;
4933 return 0;
4934}
4935_ACEOF
4936rm -f conftest.$ac_objext conftest$ac_exeext
4937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
b4e70030
JB
4945 { ac_try='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
bec39cab
AC
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 ac_cv_lib_m_main=yes
4959else
4960 echo "$as_me: failed program was:" >&5
4961sed 's/^/| /' conftest.$ac_ext >&5
4962
b4e70030 4963ac_cv_lib_m_main=no
bec39cab
AC
4964fi
4965rm -f conftest.err conftest.$ac_objext \
4966 conftest$ac_exeext conftest.$ac_ext
4967LIBS=$ac_check_lib_save_LIBS
4968fi
b4e70030
JB
4969echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4970echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
4971if test $ac_cv_lib_m_main = yes; then
4972 cat >>confdefs.h <<_ACEOF
4973#define HAVE_LIBM 1
4974_ACEOF
4975
4976 LIBS="-lm $LIBS"
c906108c 4977
c906108c 4978fi
bec39cab
AC
4979
4980
4981# We need to link with -lw to get `wctype' on Solaris before Solaris
4982# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
4983# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
4984# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
4985echo "$as_me:$LINENO: checking for wctype" >&5
4986echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
4987if test "${ac_cv_func_wctype+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990 cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h. */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h. */
4996/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
4997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4998#define wctype innocuous_wctype
4999
5000/* System header to define __stub macros and hopefully few prototypes,
5001 which can conflict with char wctype (); below.
5002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003 <limits.h> exists even on freestanding compilers. */
5004
5005#ifdef __STDC__
5006# include <limits.h>
5007#else
5008# include <assert.h>
5009#endif
5010
5011#undef wctype
5012
b4e70030 5013/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5014#ifdef __cplusplus
5015extern "C"
b4e70030 5016{
bec39cab 5017#endif
b4e70030
JB
5018/* We use char because int might match the return type of a gcc2
5019 builtin and then its argument prototype would still apply. */
bec39cab
AC
5020char wctype ();
5021/* The GNU C library defines this for functions which it implements
5022 to always fail with ENOSYS. Some functions are actually named
5023 something starting with __ and the normal name is an alias. */
b4e70030 5024#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5025choke me
b4e70030
JB
5026#else
5027char (*f) () = wctype;
5028#endif
5029#ifdef __cplusplus
5030}
bec39cab
AC
5031#endif
5032
5033int
5034main ()
5035{
b4e70030 5036return f != wctype;
bec39cab
AC
5037 ;
5038 return 0;
5039}
5040_ACEOF
5041rm -f conftest.$ac_objext conftest$ac_exeext
5042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043 (eval $ac_link) 2>conftest.er1
5044 ac_status=$?
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
b4e70030
JB
5050 { ac_try='test -z "$ac_c_werror_flag"
5051 || test ! -s conftest.err'
bec39cab
AC
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; } &&
5057 { ac_try='test -s conftest$ac_exeext'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 (eval $ac_try) 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_func_wctype=yes
5064else
5065 echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
b4e70030 5068ac_cv_func_wctype=no
bec39cab
AC
5069fi
5070rm -f conftest.err conftest.$ac_objext \
5071 conftest$ac_exeext conftest.$ac_ext
5072fi
b4e70030
JB
5073echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5074echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5075if test $ac_cv_func_wctype = yes; then
5076 :
c906108c 5077else
c906108c 5078
b4e70030
JB
5079echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5080echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5081if test "${ac_cv_lib_w_wctype+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084 ac_check_lib_save_LIBS=$LIBS
5085LIBS="-lw $LIBS"
5086cat >conftest.$ac_ext <<_ACEOF
5087/* confdefs.h. */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h. */
c906108c 5092
b4e70030 5093/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5094#ifdef __cplusplus
5095extern "C"
5096#endif
b4e70030
JB
5097/* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */
bec39cab
AC
5099char wctype ();
5100int
5101main ()
5102{
b4e70030 5103wctype ();
bec39cab
AC
5104 ;
5105 return 0;
5106}
5107_ACEOF
5108rm -f conftest.$ac_objext conftest$ac_exeext
5109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
b4e70030
JB
5117 { ac_try='test -z "$ac_c_werror_flag"
5118 || test ! -s conftest.err'
bec39cab
AC
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest$ac_exeext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_lib_w_wctype=yes
5131else
5132 echo "$as_me: failed program was:" >&5
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
b4e70030 5135ac_cv_lib_w_wctype=no
bec39cab
AC
5136fi
5137rm -f conftest.err conftest.$ac_objext \
5138 conftest$ac_exeext conftest.$ac_ext
5139LIBS=$ac_check_lib_save_LIBS
5140fi
b4e70030
JB
5141echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5142echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5143if test $ac_cv_lib_w_wctype = yes; then
5144 cat >>confdefs.h <<_ACEOF
5145#define HAVE_LIBW 1
5146_ACEOF
c906108c 5147
bec39cab 5148 LIBS="-lw $LIBS"
c906108c 5149
bec39cab 5150fi
c906108c 5151
bec39cab 5152fi
c906108c 5153
ddc9cd0f 5154
bec39cab 5155# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5156echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5157echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5158if test "${ac_cv_search_gethostbyname+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161 ac_func_search_save_LIBS=$LIBS
b4e70030 5162ac_cv_search_gethostbyname=no
bec39cab
AC
5163cat >conftest.$ac_ext <<_ACEOF
5164/* confdefs.h. */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>conftest.$ac_ext <<_ACEOF
5168/* end confdefs.h. */
ddc9cd0f 5169
b4e70030 5170/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5171#ifdef __cplusplus
5172extern "C"
5173#endif
b4e70030
JB
5174/* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
bec39cab
AC
5176char gethostbyname ();
5177int
5178main ()
5179{
b4e70030 5180gethostbyname ();
bec39cab
AC
5181 ;
5182 return 0;
5183}
5184_ACEOF
b4e70030 5185rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187 (eval $ac_link) 2>conftest.er1
5188 ac_status=$?
5189 grep -v '^ *+' conftest.er1 >conftest.err
5190 rm -f conftest.er1
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
b4e70030
JB
5194 { ac_try='test -z "$ac_c_werror_flag"
5195 || test ! -s conftest.err'
bec39cab
AC
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; } &&
5201 { ac_try='test -s conftest$ac_exeext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
b4e70030 5207 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5208else
5209 echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5211
bec39cab
AC
5212fi
5213rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5214 conftest$ac_exeext conftest.$ac_ext
5215if test "$ac_cv_search_gethostbyname" = no; then
5216 for ac_lib in nsl; do
5217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5218 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5219/* confdefs.h. */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h. */
ddc9cd0f 5224
b4e70030 5225/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5226#ifdef __cplusplus
5227extern "C"
5228#endif
b4e70030
JB
5229/* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5231char gethostbyname ();
bec39cab
AC
5232int
5233main ()
5234{
b4e70030 5235gethostbyname ();
bec39cab
AC
5236 ;
5237 return 0;
5238}
5239_ACEOF
b4e70030 5240rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
b4e70030
JB
5249 { ac_try='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
bec39cab
AC
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
b4e70030
JB
5262 ac_cv_search_gethostbyname="-l$ac_lib"
5263break
bec39cab
AC
5264else
5265 echo "$as_me: failed program was:" >&5
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
5268fi
5269rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5270 conftest$ac_exeext conftest.$ac_ext
5271 done
bec39cab
AC
5272fi
5273LIBS=$ac_func_search_save_LIBS
5274fi
b4e70030
JB
5275echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5276echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5277if test "$ac_cv_search_gethostbyname" != no; then
5278 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5279
bec39cab 5280fi
96baa820 5281
c906108c 5282
b4e70030
JB
5283# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5284echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5285echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5286if test "${ac_cv_search_socketpair+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
5289 ac_func_search_save_LIBS=$LIBS
5290ac_cv_search_socketpair=no
5291cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297
5298/* Override any gcc2 internal prototype to avoid an error. */
5299#ifdef __cplusplus
5300extern "C"
5301#endif
5302/* We use char because int might match the return type of a gcc2
5303 builtin and then its argument prototype would still apply. */
5304char socketpair ();
5305int
5306main ()
5307{
5308socketpair ();
5309 ;
5310 return 0;
5311}
5312_ACEOF
5313rm -f conftest.$ac_objext conftest$ac_exeext
5314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>conftest.er1
5316 ac_status=$?
5317 grep -v '^ *+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try='test -z "$ac_c_werror_flag"
5323 || test ! -s conftest.err'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; } &&
5329 { ac_try='test -s conftest$ac_exeext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 (eval $ac_try) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_cv_search_socketpair="none required"
5336else
5337 echo "$as_me: failed program was:" >&5
5338sed 's/^/| /' conftest.$ac_ext >&5
5339
5340fi
5341rm -f conftest.err conftest.$ac_objext \
5342 conftest$ac_exeext conftest.$ac_ext
5343if test "$ac_cv_search_socketpair" = no; then
5344 for ac_lib in socket; do
5345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5346 cat >conftest.$ac_ext <<_ACEOF
5347/* confdefs.h. */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h. */
5352
5353/* Override any gcc2 internal prototype to avoid an error. */
5354#ifdef __cplusplus
5355extern "C"
5356#endif
5357/* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */
5359char socketpair ();
5360int
5361main ()
5362{
5363socketpair ();
5364 ;
5365 return 0;
5366}
5367_ACEOF
5368rm -f conftest.$ac_objext conftest$ac_exeext
5369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_c_werror_flag"
5378 || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest$ac_exeext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_cv_search_socketpair="-l$ac_lib"
5391break
5392else
5393 echo "$as_me: failed program was:" >&5
5394sed 's/^/| /' conftest.$ac_ext >&5
5395
5396fi
5397rm -f conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
5399 done
5400fi
5401LIBS=$ac_func_search_save_LIBS
5402fi
5403echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5404echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5405if test "$ac_cv_search_socketpair" != no; then
5406 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5407
5408fi
5409
5410
5411# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5412#
5413# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5414# curses library because the latter might not provide all the
5415# functionality we need. However, this leads to problems on systems
5416# where the linker searches /usr/local/lib, but the compiler doesn't
5417# search /usr/local/include, if ncurses is installed in /usr/local. A
5418# default installation of ncurses on alpha*-dec-osf* will lead to such
5419# a situation.
b4e70030
JB
5420echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5421echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5422if test "${ac_cv_search_waddstr+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425 ac_func_search_save_LIBS=$LIBS
b4e70030 5426ac_cv_search_waddstr=no
bec39cab
AC
5427cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
c906108c 5433
b4e70030 5434/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5435#ifdef __cplusplus
5436extern "C"
5437#endif
b4e70030
JB
5438/* We use char because int might match the return type of a gcc2
5439 builtin and then its argument prototype would still apply. */
bec39cab
AC
5440char waddstr ();
5441int
5442main ()
5443{
b4e70030 5444waddstr ();
bec39cab
AC
5445 ;
5446 return 0;
5447}
5448_ACEOF
b4e70030 5449rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5451 (eval $ac_link) 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
b4e70030
JB
5458 { ac_try='test -z "$ac_c_werror_flag"
5459 || test ! -s conftest.err'
bec39cab
AC
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try='test -s conftest$ac_exeext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
b4e70030 5471 ac_cv_search_waddstr="none required"
bec39cab
AC
5472else
5473 echo "$as_me: failed program was:" >&5
5474sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5475
5476fi
bec39cab 5477rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5478 conftest$ac_exeext conftest.$ac_ext
5479if test "$ac_cv_search_waddstr" = no; then
5480 for ac_lib in ncurses cursesX curses; do
5481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5482 cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h. */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h. */
5488
5489/* Override any gcc2 internal prototype to avoid an error. */
5490#ifdef __cplusplus
5491extern "C"
5492#endif
5493/* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5495char waddstr ();
5496int
5497main ()
5498{
5499waddstr ();
5500 ;
5501 return 0;
5502}
5503_ACEOF
5504rm -f conftest.$ac_objext conftest$ac_exeext
5505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506 (eval $ac_link) 2>conftest.er1
5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } &&
5513 { ac_try='test -z "$ac_c_werror_flag"
5514 || test ! -s conftest.err'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 (eval $ac_try) 2>&5
5517 ac_status=$?
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; } &&
5520 { ac_try='test -s conftest$ac_exeext'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 (eval $ac_try) 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
5526 ac_cv_search_waddstr="-l$ac_lib"
5527break
4e8d927d 5528else
b4e70030
JB
5529 echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
5532fi
5533rm -f conftest.err conftest.$ac_objext \
5534 conftest$ac_exeext conftest.$ac_ext
5535 done
1ba607ad 5536fi
bec39cab
AC
5537LIBS=$ac_func_search_save_LIBS
5538fi
b4e70030
JB
5539echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5540echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5541if test "$ac_cv_search_waddstr" != no; then
5542 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5543
8bb2c122 5544fi
8bb2c122 5545
8bb2c122 5546
bec39cab
AC
5547# Since GDB uses Readline, we need termcap functionality. In many
5548# cases this will be provided by the curses library, but some systems
5549# have a seperate termcap library, or no curses library at all.
8bb2c122 5550
bec39cab
AC
5551case $host_os in
5552 cygwin*)
5553 if test -d $srcdir/libtermcap; then
5554 LIBS="../libtermcap/libtermcap.a $LIBS"
5555 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5556 fi ;;
5557 go32* | *djgpp*)
5558 ac_cv_search_tgetent="none required"
5559 ;;
7ef34f2c
MM
5560 *mingw32*)
5561 ac_cv_search_tgetent="none required"
5562 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5563 ;;
bec39cab 5564esac
627af7ea 5565
bec39cab 5566# These are the libraries checked by Readline.
b4e70030
JB
5567echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5568echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5569if test "${ac_cv_search_tgetent+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572 ac_func_search_save_LIBS=$LIBS
b4e70030 5573ac_cv_search_tgetent=no
bec39cab
AC
5574cat >conftest.$ac_ext <<_ACEOF
5575/* confdefs.h. */
5576_ACEOF
5577cat confdefs.h >>conftest.$ac_ext
5578cat >>conftest.$ac_ext <<_ACEOF
5579/* end confdefs.h. */
5580
b4e70030 5581/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5582#ifdef __cplusplus
5583extern "C"
5584#endif
b4e70030
JB
5585/* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
bec39cab
AC
5587char tgetent ();
5588int
5589main ()
5590{
b4e70030 5591tgetent ();
bec39cab
AC
5592 ;
5593 return 0;
5594}
5595_ACEOF
b4e70030 5596rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
b4e70030
JB
5605 { ac_try='test -z "$ac_c_werror_flag"
5606 || test ! -s conftest.err'
bec39cab
AC
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest$ac_exeext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 (eval $ac_try) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
b4e70030 5618 ac_cv_search_tgetent="none required"
627af7ea 5619else
bec39cab
AC
5620 echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5622
627af7ea 5623fi
bec39cab 5624rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5625 conftest$ac_exeext conftest.$ac_ext
5626if test "$ac_cv_search_tgetent" = no; then
5627 for ac_lib in termcap tinfo curses ncurses; do
5628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5629 cat >conftest.$ac_ext <<_ACEOF
5630/* confdefs.h. */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h. */
5635
5636/* Override any gcc2 internal prototype to avoid an error. */
5637#ifdef __cplusplus
5638extern "C"
5639#endif
5640/* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5642char tgetent ();
5643int
5644main ()
5645{
5646tgetent ();
5647 ;
5648 return 0;
5649}
5650_ACEOF
5651rm -f conftest.$ac_objext conftest$ac_exeext
5652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_search_tgetent="-l$ac_lib"
5674break
4e8d927d 5675else
b4e70030
JB
5676 echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
5679fi
5680rm -f conftest.err conftest.$ac_objext \
5681 conftest$ac_exeext conftest.$ac_ext
5682 done
bec39cab
AC
5683fi
5684LIBS=$ac_func_search_save_LIBS
5685fi
b4e70030
JB
5686echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5687echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5688if test "$ac_cv_search_tgetent" != no; then
5689 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5690
06825bd1
MK
5691fi
5692
06825bd1 5693
bec39cab
AC
5694if test "$ac_cv_search_tgetent" = no; then
5695 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5696echo "$as_me: error: no termcap library found" >&2;}
5697 { (exit 1); exit 1; }; }
8ee53726
MK
5698fi
5699
3841debe
DJ
5700
5701 if test "X$prefix" = "XNONE"; then
5702 acl_final_prefix="$ac_default_prefix"
5703 else
5704 acl_final_prefix="$prefix"
5705 fi
5706 if test "X$exec_prefix" = "XNONE"; then
5707 acl_final_exec_prefix='${prefix}'
5708 else
5709 acl_final_exec_prefix="$exec_prefix"
5710 fi
5711 acl_save_prefix="$prefix"
5712 prefix="$acl_final_prefix"
5713 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5714 prefix="$acl_save_prefix"
5715
5716
5717# Check whether --with-gnu-ld or --without-gnu-ld was given.
5718if test "${with_gnu_ld+set}" = set; then
5719 withval="$with_gnu_ld"
5720 test "$withval" = no || with_gnu_ld=yes
5721else
5722 with_gnu_ld=no
5723fi;
5724# Prepare PATH_SEPARATOR.
5725# The user is always right.
5726if test "${PATH_SEPARATOR+set}" != set; then
5727 echo "#! /bin/sh" >conf$$.sh
5728 echo "exit 0" >>conf$$.sh
5729 chmod +x conf$$.sh
5730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5731 PATH_SEPARATOR=';'
5732 else
5733 PATH_SEPARATOR=:
5734 fi
5735 rm -f conf$$.sh
5736fi
5737ac_prog=ld
5738if test "$GCC" = yes; then
5739 # Check if gcc -print-prog-name=ld gives a path.
5740 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5741echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5742 case $host in
5743 *-*-mingw*)
5744 # gcc leaves a trailing carriage return which upsets mingw
5745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5746 *)
5747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5748 esac
5749 case $ac_prog in
5750 # Accept absolute paths.
5751 [\\/]* | [A-Za-z]:[\\/]*)
5752 re_direlt='/[^/][^/]*/\.\./'
5753 # Canonicalize the path of ld
5754 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5755 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5756 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5757 done
5758 test -z "$LD" && LD="$ac_prog"
5759 ;;
5760 "")
5761 # If it fails, then pretend we aren't using GCC.
5762 ac_prog=ld
5763 ;;
5764 *)
5765 # If it is relative, then search for the first ld in PATH.
5766 with_gnu_ld=unknown
5767 ;;
5768 esac
5769elif test "$with_gnu_ld" = yes; then
5770 echo "$as_me:$LINENO: checking for GNU ld" >&5
5771echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5772else
5773 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5774echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5775fi
5776if test "${acl_cv_path_LD+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779 if test -z "$LD"; then
5780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5781 for ac_dir in $PATH; do
5782 test -z "$ac_dir" && ac_dir=.
5783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5784 acl_cv_path_LD="$ac_dir/$ac_prog"
5785 # Check to see if the program is GNU ld. I'd rather use --version,
5786 # but apparently some GNU ld's only accept -v.
5787 # Break only if it was the GNU/non-GNU ld that we prefer.
5788 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5789 test "$with_gnu_ld" != no && break
5790 else
5791 test "$with_gnu_ld" != yes && break
5792 fi
5793 fi
5794 done
5795 IFS="$ac_save_ifs"
5796else
5797 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5798fi
5799fi
5800
5801LD="$acl_cv_path_LD"
5802if test -n "$LD"; then
5803 echo "$as_me:$LINENO: result: $LD" >&5
5804echo "${ECHO_T}$LD" >&6
5805else
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808fi
5809test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5810echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5811 { (exit 1); exit 1; }; }
5812echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5813echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5814if test "${acl_cv_prog_gnu_ld+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5818if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5819 acl_cv_prog_gnu_ld=yes
5820else
5821 acl_cv_prog_gnu_ld=no
5822fi
5823fi
5824echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5825echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5826with_gnu_ld=$acl_cv_prog_gnu_ld
5827
5828
5829
5830 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5831echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5832if test "${acl_cv_rpath+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835
5836 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5837 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5838 . ./conftest.sh
5839 rm -f ./conftest.sh
5840 acl_cv_rpath=done
5841
5842fi
5843echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5844echo "${ECHO_T}$acl_cv_rpath" >&6
5845 wl="$acl_cv_wl"
5846 libext="$acl_cv_libext"
5847 shlibext="$acl_cv_shlibext"
5848 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5849 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5850 hardcode_direct="$acl_cv_hardcode_direct"
5851 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5852 # Check whether --enable-rpath or --disable-rpath was given.
5853if test "${enable_rpath+set}" = set; then
5854 enableval="$enable_rpath"
5855 :
5856else
5857 enable_rpath=yes
5858fi;
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868 use_additional=yes
5869
5870 acl_save_prefix="$prefix"
5871 prefix="$acl_final_prefix"
5872 acl_save_exec_prefix="$exec_prefix"
5873 exec_prefix="$acl_final_exec_prefix"
5874
5875 eval additional_includedir=\"$includedir\"
5876 eval additional_libdir=\"$libdir\"
5877
5878 exec_prefix="$acl_save_exec_prefix"
5879 prefix="$acl_save_prefix"
5880
5881
5882# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5883if test "${with_libexpat_prefix+set}" = set; then
5884 withval="$with_libexpat_prefix"
5885
5886 if test "X$withval" = "Xno"; then
5887 use_additional=no
5888 else
5889 if test "X$withval" = "X"; then
5890
5891 acl_save_prefix="$prefix"
5892 prefix="$acl_final_prefix"
5893 acl_save_exec_prefix="$exec_prefix"
5894 exec_prefix="$acl_final_exec_prefix"
5895
5896 eval additional_includedir=\"$includedir\"
5897 eval additional_libdir=\"$libdir\"
5898
5899 exec_prefix="$acl_save_exec_prefix"
5900 prefix="$acl_save_prefix"
5901
5902 else
5903 additional_includedir="$withval/include"
5904 additional_libdir="$withval/lib"
5905 fi
5906 fi
5907
5908fi;
5909 LIBEXPAT=
5910 LTLIBEXPAT=
5911 INCEXPAT=
5912 rpathdirs=
5913 ltrpathdirs=
5914 names_already_handled=
5915 names_next_round='expat '
5916 while test -n "$names_next_round"; do
5917 names_this_round="$names_next_round"
5918 names_next_round=
5919 for name in $names_this_round; do
5920 already_handled=
5921 for n in $names_already_handled; do
5922 if test "$n" = "$name"; then
5923 already_handled=yes
5924 break
5925 fi
5926 done
5927 if test -z "$already_handled"; then
5928 names_already_handled="$names_already_handled $name"
5929 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5930 eval value=\"\$HAVE_LIB$uppername\"
5931 if test -n "$value"; then
5932 if test "$value" = yes; then
5933 eval value=\"\$LIB$uppername\"
5934 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5935 eval value=\"\$LTLIB$uppername\"
5936 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5937 else
5938 :
5939 fi
5940 else
5941 found_dir=
5942 found_la=
5943 found_so=
5944 found_a=
5945 if test $use_additional = yes; then
5946 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5947 found_dir="$additional_libdir"
5948 found_so="$additional_libdir/lib$name.$shlibext"
5949 if test -f "$additional_libdir/lib$name.la"; then
5950 found_la="$additional_libdir/lib$name.la"
5951 fi
5952 else
5953 if test -f "$additional_libdir/lib$name.$libext"; then
5954 found_dir="$additional_libdir"
5955 found_a="$additional_libdir/lib$name.$libext"
5956 if test -f "$additional_libdir/lib$name.la"; then
5957 found_la="$additional_libdir/lib$name.la"
5958 fi
5959 fi
5960 fi
5961 fi
5962 if test "X$found_dir" = "X"; then
5963 for x in $LDFLAGS $LTLIBEXPAT; do
5964
5965 acl_save_prefix="$prefix"
5966 prefix="$acl_final_prefix"
5967 acl_save_exec_prefix="$exec_prefix"
5968 exec_prefix="$acl_final_exec_prefix"
5969 eval x=\"$x\"
5970 exec_prefix="$acl_save_exec_prefix"
5971 prefix="$acl_save_prefix"
5972
5973 case "$x" in
5974 -L*)
5975 dir=`echo "X$x" | sed -e 's/^X-L//'`
5976 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5977 found_dir="$dir"
5978 found_so="$dir/lib$name.$shlibext"
5979 if test -f "$dir/lib$name.la"; then
5980 found_la="$dir/lib$name.la"
5981 fi
5982 else
5983 if test -f "$dir/lib$name.$libext"; then
5984 found_dir="$dir"
5985 found_a="$dir/lib$name.$libext"
5986 if test -f "$dir/lib$name.la"; then
5987 found_la="$dir/lib$name.la"
5988 fi
5989 fi
5990 fi
5991 ;;
5992 esac
5993 if test "X$found_dir" != "X"; then
5994 break
5995 fi
5996 done
5997 fi
5998 if test "X$found_dir" != "X"; then
5999 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6000 if test "X$found_so" != "X"; then
6001 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6002 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6003 else
6004 haveit=
6005 for x in $ltrpathdirs; do
6006 if test "X$x" = "X$found_dir"; then
6007 haveit=yes
6008 break
6009 fi
6010 done
6011 if test -z "$haveit"; then
6012 ltrpathdirs="$ltrpathdirs $found_dir"
6013 fi
6014 if test "$hardcode_direct" = yes; then
6015 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6016 else
6017 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6018 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6019 haveit=
6020 for x in $rpathdirs; do
6021 if test "X$x" = "X$found_dir"; then
6022 haveit=yes
6023 break
6024 fi
6025 done
6026 if test -z "$haveit"; then
6027 rpathdirs="$rpathdirs $found_dir"
6028 fi
6029 else
6030 haveit=
6031 for x in $LDFLAGS $LIBEXPAT; do
6032
6033 acl_save_prefix="$prefix"
6034 prefix="$acl_final_prefix"
6035 acl_save_exec_prefix="$exec_prefix"
6036 exec_prefix="$acl_final_exec_prefix"
6037 eval x=\"$x\"
6038 exec_prefix="$acl_save_exec_prefix"
6039 prefix="$acl_save_prefix"
6040
6041 if test "X$x" = "X-L$found_dir"; then
6042 haveit=yes
6043 break
6044 fi
6045 done
6046 if test -z "$haveit"; then
6047 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6048 fi
6049 if test "$hardcode_minus_L" != no; then
6050 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6051 else
6052 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6053 fi
6054 fi
6055 fi
6056 fi
6057 else
6058 if test "X$found_a" != "X"; then
6059 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6060 else
6061 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6062 fi
6063 fi
6064 additional_includedir=
6065 case "$found_dir" in
6066 */lib | */lib/)
6067 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6068 additional_includedir="$basedir/include"
6069 ;;
6070 esac
6071 if test "X$additional_includedir" != "X"; then
6072 if test "X$additional_includedir" != "X/usr/include"; then
6073 haveit=
6074 if test "X$additional_includedir" = "X/usr/local/include"; then
6075 if test -n "$GCC"; then
6076 case $host_os in
6077 linux*) haveit=yes;;
6078 esac
6079 fi
6080 fi
6081 if test -z "$haveit"; then
6082 for x in $CPPFLAGS $INCEXPAT; do
6083
6084 acl_save_prefix="$prefix"
6085 prefix="$acl_final_prefix"
6086 acl_save_exec_prefix="$exec_prefix"
6087 exec_prefix="$acl_final_exec_prefix"
6088 eval x=\"$x\"
6089 exec_prefix="$acl_save_exec_prefix"
6090 prefix="$acl_save_prefix"
6091
6092 if test "X$x" = "X-I$additional_includedir"; then
6093 haveit=yes
6094 break
6095 fi
6096 done
6097 if test -z "$haveit"; then
6098 if test -d "$additional_includedir"; then
6099 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6100 fi
6101 fi
6102 fi
6103 fi
6104 fi
6105 if test -n "$found_la"; then
6106 save_libdir="$libdir"
6107 case "$found_la" in
6108 */* | *\\*) . "$found_la" ;;
6109 *) . "./$found_la" ;;
6110 esac
6111 libdir="$save_libdir"
6112 for dep in $dependency_libs; do
6113 case "$dep" in
6114 -L*)
6115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6116 if test "X$additional_libdir" != "X/usr/lib"; then
6117 haveit=
6118 if test "X$additional_libdir" = "X/usr/local/lib"; then
6119 if test -n "$GCC"; then
6120 case $host_os in
6121 linux*) haveit=yes;;
6122 esac
6123 fi
6124 fi
6125 if test -z "$haveit"; then
6126 haveit=
6127 for x in $LDFLAGS $LIBEXPAT; do
6128
6129 acl_save_prefix="$prefix"
6130 prefix="$acl_final_prefix"
6131 acl_save_exec_prefix="$exec_prefix"
6132 exec_prefix="$acl_final_exec_prefix"
6133 eval x=\"$x\"
6134 exec_prefix="$acl_save_exec_prefix"
6135 prefix="$acl_save_prefix"
6136
6137 if test "X$x" = "X-L$additional_libdir"; then
6138 haveit=yes
6139 break
6140 fi
6141 done
6142 if test -z "$haveit"; then
6143 if test -d "$additional_libdir"; then
6144 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6145 fi
6146 fi
6147 haveit=
6148 for x in $LDFLAGS $LTLIBEXPAT; do
6149
6150 acl_save_prefix="$prefix"
6151 prefix="$acl_final_prefix"
6152 acl_save_exec_prefix="$exec_prefix"
6153 exec_prefix="$acl_final_exec_prefix"
6154 eval x=\"$x\"
6155 exec_prefix="$acl_save_exec_prefix"
6156 prefix="$acl_save_prefix"
6157
6158 if test "X$x" = "X-L$additional_libdir"; then
6159 haveit=yes
6160 break
6161 fi
6162 done
6163 if test -z "$haveit"; then
6164 if test -d "$additional_libdir"; then
6165 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6166 fi
6167 fi
6168 fi
6169 fi
6170 ;;
6171 -R*)
6172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6173 if test "$enable_rpath" != no; then
6174 haveit=
6175 for x in $rpathdirs; do
6176 if test "X$x" = "X$dir"; then
6177 haveit=yes
6178 break
6179 fi
6180 done
6181 if test -z "$haveit"; then
6182 rpathdirs="$rpathdirs $dir"
6183 fi
6184 haveit=
6185 for x in $ltrpathdirs; do
6186 if test "X$x" = "X$dir"; then
6187 haveit=yes
6188 break
6189 fi
6190 done
6191 if test -z "$haveit"; then
6192 ltrpathdirs="$ltrpathdirs $dir"
6193 fi
6194 fi
6195 ;;
6196 -l*)
6197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6198 ;;
6199 *.la)
6200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6201 ;;
6202 *)
6203 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6204 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6205 ;;
6206 esac
6207 done
6208 fi
6209 else
6210 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6211 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6212 fi
6213 fi
6214 fi
6215 done
6216 done
6217 if test "X$rpathdirs" != "X"; then
6218 if test -n "$hardcode_libdir_separator"; then
6219 alldirs=
6220 for found_dir in $rpathdirs; do
6221 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6222 done
6223 acl_save_libdir="$libdir"
6224 libdir="$alldirs"
6225 eval flag=\"$hardcode_libdir_flag_spec\"
6226 libdir="$acl_save_libdir"
6227 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6228 else
6229 for found_dir in $rpathdirs; do
6230 acl_save_libdir="$libdir"
6231 libdir="$found_dir"
6232 eval flag=\"$hardcode_libdir_flag_spec\"
6233 libdir="$acl_save_libdir"
6234 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6235 done
6236 fi
6237 fi
6238 if test "X$ltrpathdirs" != "X"; then
6239 for found_dir in $ltrpathdirs; do
6240 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6241 done
6242 fi
6243
6244
6245 ac_save_CPPFLAGS="$CPPFLAGS"
6246
6247 for element in $INCEXPAT; do
6248 haveit=
6249 for x in $CPPFLAGS; do
6250
6251 acl_save_prefix="$prefix"
6252 prefix="$acl_final_prefix"
6253 acl_save_exec_prefix="$exec_prefix"
6254 exec_prefix="$acl_final_exec_prefix"
6255 eval x=\"$x\"
6256 exec_prefix="$acl_save_exec_prefix"
6257 prefix="$acl_save_prefix"
6258
6259 if test "X$x" = "X$element"; then
6260 haveit=yes
6261 break
6262 fi
6263 done
6264 if test -z "$haveit"; then
6265 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6266 fi
6267 done
6268
6269
6270 echo "$as_me:$LINENO: checking for libexpat" >&5
6271echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6272if test "${ac_cv_libexpat+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275
6276 ac_save_LIBS="$LIBS"
6277 LIBS="$LIBS $LIBEXPAT"
6278 cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284#include "expat.h"
6285int
6286main ()
6287{
6288XML_Parser p = XML_ParserCreate (0);
6289 ;
6290 return 0;
6291}
6292_ACEOF
6293rm -f conftest.$ac_objext conftest$ac_exeext
6294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6295 (eval $ac_link) 2>conftest.er1
6296 ac_status=$?
6297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_c_werror_flag"
6303 || test ! -s conftest.err'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 ac_cv_libexpat=yes
6316else
6317 echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320ac_cv_libexpat=no
6321fi
6322rm -f conftest.err conftest.$ac_objext \
6323 conftest$ac_exeext conftest.$ac_ext
6324 LIBS="$ac_save_LIBS"
6325
6326fi
6327echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6328echo "${ECHO_T}$ac_cv_libexpat" >&6
6329 if test "$ac_cv_libexpat" = yes; then
6330 HAVE_LIBEXPAT=yes
6331
6332cat >>confdefs.h <<\_ACEOF
6333#define HAVE_LIBEXPAT 1
6334_ACEOF
6335
6336 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6337echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6338 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6339echo "${ECHO_T}$LIBEXPAT" >&6
6340 else
6341 HAVE_LIBEXPAT=no
6342 CPPFLAGS="$ac_save_CPPFLAGS"
6343 LIBEXPAT=
6344 LTLIBEXPAT=
6345 fi
6346
6347
6348
6349
6350
6351
6352if test "$HAVE_LIBEXPAT" != yes; then
6353 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5
6354echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;}
ca4ca11e
DJ
6355else
6356 save_LIBS=$LIBS
6357 LIBS="$LIBS $LIBEXPAT"
6358
6359for ac_func in XML_StopParser
6360do
6361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6362echo "$as_me:$LINENO: checking for $ac_func" >&5
6363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6364if eval "test \"\${$as_ac_var+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366else
6367 cat >conftest.$ac_ext <<_ACEOF
6368/* confdefs.h. */
6369_ACEOF
6370cat confdefs.h >>conftest.$ac_ext
6371cat >>conftest.$ac_ext <<_ACEOF
6372/* end confdefs.h. */
6373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6375#define $ac_func innocuous_$ac_func
6376
6377/* System header to define __stub macros and hopefully few prototypes,
6378 which can conflict with char $ac_func (); below.
6379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6380 <limits.h> exists even on freestanding compilers. */
6381
6382#ifdef __STDC__
6383# include <limits.h>
6384#else
6385# include <assert.h>
6386#endif
6387
6388#undef $ac_func
6389
6390/* Override any gcc2 internal prototype to avoid an error. */
6391#ifdef __cplusplus
6392extern "C"
6393{
6394#endif
6395/* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6397char $ac_func ();
6398/* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6402choke me
6403#else
6404char (*f) () = $ac_func;
6405#endif
6406#ifdef __cplusplus
6407}
6408#endif
6409
6410int
6411main ()
6412{
6413return f != $ac_func;
6414 ;
6415 return 0;
6416}
6417_ACEOF
6418rm -f conftest.$ac_objext conftest$ac_exeext
6419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6420 (eval $ac_link) 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_c_werror_flag"
6428 || test ! -s conftest.err'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; } &&
6434 { ac_try='test -s conftest$ac_exeext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 eval "$as_ac_var=yes"
6441else
6442 echo "$as_me: failed program was:" >&5
6443sed 's/^/| /' conftest.$ac_ext >&5
6444
6445eval "$as_ac_var=no"
6446fi
6447rm -f conftest.err conftest.$ac_objext \
6448 conftest$ac_exeext conftest.$ac_ext
6449fi
6450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6452if test `eval echo '${'$as_ac_var'}'` = yes; then
6453 cat >>confdefs.h <<_ACEOF
6454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6455_ACEOF
6456
6457fi
6458done
6459
6460 LIBS=$save_LIBS
3841debe
DJ
6461fi
6462
bec39cab
AC
6463# ------------------------- #
6464# Checks for header files. #
6465# ------------------------- #
8ee53726 6466
0e5d83e3 6467
bec39cab
AC
6468
6469
6470
6471
6472ac_header_dirent=no
6473for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6474 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6475echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6476echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6477if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 cat >conftest.$ac_ext <<_ACEOF
6481/* confdefs.h. */
6482_ACEOF
6483cat confdefs.h >>conftest.$ac_ext
6484cat >>conftest.$ac_ext <<_ACEOF
6485/* end confdefs.h. */
6486#include <sys/types.h>
0e5d83e3 6487#include <$ac_hdr>
bec39cab
AC
6488
6489int
6490main ()
6491{
6492if ((DIR *) 0)
6493return 0;
6494 ;
6495 return 0;
6496}
6497_ACEOF
6498rm -f conftest.$ac_objext
6499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
b4e70030
JB
6507 { ac_try='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
bec39cab
AC
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 eval "$as_ac_Header=yes"
6521else
6522 echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
b4e70030 6525eval "$as_ac_Header=no"
bec39cab
AC
6526fi
6527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528fi
b4e70030
JB
6529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6531if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532 cat >>confdefs.h <<_ACEOF
6533#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6534_ACEOF
6535
6536ac_header_dirent=$ac_hdr; break
0e5d83e3 6537fi
0e5d83e3 6538
bec39cab
AC
6539done
6540# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6541if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6542 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6543echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6544if test "${ac_cv_search_opendir+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 ac_func_search_save_LIBS=$LIBS
b4e70030 6548ac_cv_search_opendir=no
bec39cab
AC
6549cat >conftest.$ac_ext <<_ACEOF
6550/* confdefs.h. */
6551_ACEOF
6552cat confdefs.h >>conftest.$ac_ext
6553cat >>conftest.$ac_ext <<_ACEOF
6554/* end confdefs.h. */
0e5d83e3 6555
b4e70030 6556/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6557#ifdef __cplusplus
6558extern "C"
6559#endif
b4e70030
JB
6560/* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
bec39cab
AC
6562char opendir ();
6563int
6564main ()
6565{
b4e70030 6566opendir ();
bec39cab
AC
6567 ;
6568 return 0;
6569}
6570_ACEOF
b4e70030 6571rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
b4e70030
JB
6580 { ac_try='test -z "$ac_c_werror_flag"
6581 || test ! -s conftest.err'
bec39cab
AC
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; } &&
6587 { ac_try='test -s conftest$ac_exeext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 (eval $ac_try) 2>&5
6590 ac_status=$?
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
b4e70030 6593 ac_cv_search_opendir="none required"
bec39cab
AC
6594else
6595 echo "$as_me: failed program was:" >&5
6596sed 's/^/| /' conftest.$ac_ext >&5
6597
6598fi
bec39cab 6599rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6600 conftest$ac_exeext conftest.$ac_ext
6601if test "$ac_cv_search_opendir" = no; then
6602 for ac_lib in dir; do
6603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6604 cat >conftest.$ac_ext <<_ACEOF
6605/* confdefs.h. */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h. */
6610
6611/* Override any gcc2 internal prototype to avoid an error. */
6612#ifdef __cplusplus
6613extern "C"
6614#endif
6615/* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6617char opendir ();
6618int
6619main ()
6620{
6621opendir ();
6622 ;
6623 return 0;
6624}
6625_ACEOF
6626rm -f conftest.$ac_objext conftest$ac_exeext
6627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag"
6636 || test ! -s conftest.err'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_search_opendir="-l$ac_lib"
6649break
4e8d927d 6650else
b4e70030
JB
6651 echo "$as_me: failed program was:" >&5
6652sed 's/^/| /' conftest.$ac_ext >&5
6653
6654fi
6655rm -f conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657 done
0e5d83e3 6658fi
bec39cab 6659LIBS=$ac_func_search_save_LIBS
0e5d83e3 6660fi
b4e70030
JB
6661echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6662echo "${ECHO_T}$ac_cv_search_opendir" >&6
6663if test "$ac_cv_search_opendir" != no; then
6664 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6665
0e5d83e3
JJ
6666fi
6667
d28f9cdf 6668else
b4e70030
JB
6669 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6670echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6671if test "${ac_cv_search_opendir+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674 ac_func_search_save_LIBS=$LIBS
b4e70030 6675ac_cv_search_opendir=no
bec39cab
AC
6676cat >conftest.$ac_ext <<_ACEOF
6677/* confdefs.h. */
6678_ACEOF
6679cat confdefs.h >>conftest.$ac_ext
6680cat >>conftest.$ac_ext <<_ACEOF
6681/* end confdefs.h. */
d28f9cdf 6682
b4e70030 6683/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6684#ifdef __cplusplus
6685extern "C"
d28f9cdf 6686#endif
b4e70030
JB
6687/* We use char because int might match the return type of a gcc2
6688 builtin and then its argument prototype would still apply. */
bec39cab
AC
6689char opendir ();
6690int
6691main ()
6692{
b4e70030 6693opendir ();
bec39cab
AC
6694 ;
6695 return 0;
6696}
6697_ACEOF
b4e70030 6698rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700 (eval $ac_link) 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
b4e70030
JB
6707 { ac_try='test -z "$ac_c_werror_flag"
6708 || test ! -s conftest.err'
bec39cab
AC
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 (eval $ac_try) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; } &&
6714 { ac_try='test -s conftest$ac_exeext'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 (eval $ac_try) 2>&5
6717 ac_status=$?
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; }; then
b4e70030 6720 ac_cv_search_opendir="none required"
d28f9cdf 6721else
bec39cab
AC
6722 echo "$as_me: failed program was:" >&5
6723sed 's/^/| /' conftest.$ac_ext >&5
6724
d28f9cdf 6725fi
bec39cab 6726rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6727 conftest$ac_exeext conftest.$ac_ext
6728if test "$ac_cv_search_opendir" = no; then
6729 for ac_lib in x; do
6730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6731 cat >conftest.$ac_ext <<_ACEOF
6732/* confdefs.h. */
6733_ACEOF
6734cat confdefs.h >>conftest.$ac_ext
6735cat >>conftest.$ac_ext <<_ACEOF
6736/* end confdefs.h. */
6737
6738/* Override any gcc2 internal prototype to avoid an error. */
6739#ifdef __cplusplus
6740extern "C"
6741#endif
6742/* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6744char opendir ();
6745int
6746main ()
6747{
6748opendir ();
6749 ;
6750 return 0;
6751}
6752_ACEOF
6753rm -f conftest.$ac_objext conftest$ac_exeext
6754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -z "$ac_c_werror_flag"
6763 || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try='test -s conftest$ac_exeext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_search_opendir="-l$ac_lib"
6776break
4e8d927d 6777else
b4e70030
JB
6778 echo "$as_me: failed program was:" >&5
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
6781fi
6782rm -f conftest.err conftest.$ac_objext \
6783 conftest$ac_exeext conftest.$ac_ext
6784 done
bec39cab
AC
6785fi
6786LIBS=$ac_func_search_save_LIBS
d28f9cdf 6787fi
b4e70030
JB
6788echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6789echo "${ECHO_T}$ac_cv_search_opendir" >&6
6790if test "$ac_cv_search_opendir" != no; then
6791 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 6792
d28f9cdf
DJ
6793fi
6794
bec39cab 6795fi
b0b1c2c0 6796
b4e70030
JB
6797echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6798echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
6799if test "${ac_cv_header_stat_broken+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 6801else
bec39cab
AC
6802 cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h. */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h. */
6808#include <sys/types.h>
6809#include <sys/stat.h>
b0b1c2c0 6810
b4e70030 6811#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
6812# if S_ISBLK (S_IFDIR)
6813You lose.
6814# endif
6815#endif
b0b1c2c0 6816
b4e70030 6817#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
6818# if S_ISBLK (S_IFCHR)
6819You lose.
6820# endif
6821#endif
d28f9cdf 6822
b4e70030 6823#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
6824# if S_ISLNK (S_IFREG)
6825You lose.
6826# endif
6827#endif
d28f9cdf 6828
b4e70030 6829#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
6830# if S_ISSOCK (S_IFREG)
6831You lose.
6832# endif
6833#endif
6834
6835_ACEOF
6836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837 $EGREP "You lose" >/dev/null 2>&1; then
6838 ac_cv_header_stat_broken=yes
d28f9cdf 6839else
bec39cab 6840 ac_cv_header_stat_broken=no
d28f9cdf
DJ
6841fi
6842rm -f conftest*
d28f9cdf 6843
d28f9cdf 6844fi
b4e70030
JB
6845echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6846echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 6847if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 6848
bec39cab
AC
6849cat >>confdefs.h <<\_ACEOF
6850#define STAT_MACROS_BROKEN 1
6851_ACEOF
8bb2c122 6852
7a292a7a 6853fi
bec39cab 6854
b4e70030
JB
6855echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6856echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
6857if test "${ac_cv_header_stdc+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 6859else
bec39cab
AC
6860 cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
6866#include <stdlib.h>
6867#include <stdarg.h>
6868#include <string.h>
6869#include <float.h>
7a292a7a 6870
bec39cab
AC
6871int
6872main ()
6873{
7a292a7a 6874
bec39cab
AC
6875 ;
6876 return 0;
6877}
6878_ACEOF
6879rm -f conftest.$ac_objext
6880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6881 (eval $ac_compile) 2>conftest.er1
6882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
b4e70030
JB
6888 { ac_try='test -z "$ac_c_werror_flag"
6889 || test ! -s conftest.err'
bec39cab
AC
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest.$ac_objext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_header_stdc=yes
c906108c 6902else
bec39cab
AC
6903 echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
c906108c 6905
b4e70030 6906ac_cv_header_stdc=no
c906108c 6907fi
bec39cab 6908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6909
bec39cab
AC
6910if test $ac_cv_header_stdc = yes; then
6911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6912 cat >conftest.$ac_ext <<_ACEOF
6913/* confdefs.h. */
6914_ACEOF
6915cat confdefs.h >>conftest.$ac_ext
6916cat >>conftest.$ac_ext <<_ACEOF
6917/* end confdefs.h. */
6918#include <string.h>
c906108c 6919
bec39cab
AC
6920_ACEOF
6921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6922 $EGREP "memchr" >/dev/null 2>&1; then
6923 :
8bb2c122 6924else
bec39cab 6925 ac_cv_header_stdc=no
8bb2c122 6926fi
bec39cab
AC
6927rm -f conftest*
6928
c906108c
SS
6929fi
6930
bec39cab
AC
6931if test $ac_cv_header_stdc = yes; then
6932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6933 cat >conftest.$ac_ext <<_ACEOF
6934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
6939#include <stdlib.h>
6940
6941_ACEOF
6942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943 $EGREP "free" >/dev/null 2>&1; then
6944 :
c906108c 6945else
bec39cab 6946 ac_cv_header_stdc=no
c906108c 6947fi
bec39cab
AC
6948rm -f conftest*
6949
c906108c
SS
6950fi
6951
bec39cab
AC
6952if test $ac_cv_header_stdc = yes; then
6953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6954 if test "$cross_compiling" = yes; then
6955 :
c906108c 6956else
bec39cab
AC
6957 cat >conftest.$ac_ext <<_ACEOF
6958/* confdefs.h. */
6959_ACEOF
6960cat confdefs.h >>conftest.$ac_ext
6961cat >>conftest.$ac_ext <<_ACEOF
6962/* end confdefs.h. */
6963#include <ctype.h>
6964#if ((' ' & 0x0FF) == 0x020)
6965# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6966# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6967#else
6968# define ISLOWER(c) \
6969 (('a' <= (c) && (c) <= 'i') \
6970 || ('j' <= (c) && (c) <= 'r') \
6971 || ('s' <= (c) && (c) <= 'z'))
6972# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6973#endif
6974
6975#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6976int
6977main ()
6978{
6979 int i;
6980 for (i = 0; i < 256; i++)
6981 if (XOR (islower (i), ISLOWER (i))
6982 || toupper (i) != TOUPPER (i))
b4e70030
JB
6983 exit(2);
6984 exit (0);
bec39cab
AC
6985}
6986_ACEOF
6987rm -f conftest$ac_exeext
6988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989 (eval $ac_link) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 :
6999else
7000 echo "$as_me: program exited with status $ac_status" >&5
7001echo "$as_me: failed program was:" >&5
7002sed 's/^/| /' conftest.$ac_ext >&5
7003
7004( exit $ac_status )
7005ac_cv_header_stdc=no
c906108c 7006fi
b4e70030 7007rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7008fi
c906108c 7009fi
bec39cab 7010fi
b4e70030
JB
7011echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7012echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 7013if test $ac_cv_header_stdc = yes; then
c906108c 7014
bec39cab
AC
7015cat >>confdefs.h <<\_ACEOF
7016#define STDC_HEADERS 1
7017_ACEOF
c906108c 7018
bec39cab 7019fi
8bb2c122 7020
bec39cab 7021
7cb9022a 7022for ac_header in nlist.h
bec39cab
AC
7023do
7024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7025if eval "test \"\${$as_ac_Header+set}\" = set"; then
7026 echo "$as_me:$LINENO: checking for $ac_header" >&5
7027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7028if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030fi
b4e70030
JB
7031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7033else
7034 # Is the header compilable?
b4e70030
JB
7035echo "$as_me:$LINENO: checking $ac_header usability" >&5
7036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7037cat >conftest.$ac_ext <<_ACEOF
7038/* confdefs.h. */
7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h. */
7043$ac_includes_default
7044#include <$ac_header>
7045_ACEOF
7046rm -f conftest.$ac_objext
7047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048 (eval $ac_compile) 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
b4e70030
JB
7055 { ac_try='test -z "$ac_c_werror_flag"
7056 || test ! -s conftest.err'
bec39cab
AC
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try='test -s conftest.$ac_objext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 (eval $ac_try) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_header_compiler=yes
7069else
7070 echo "$as_me: failed program was:" >&5
7071sed 's/^/| /' conftest.$ac_ext >&5
7072
b4e70030 7073ac_header_compiler=no
bec39cab
AC
7074fi
7075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7077echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7078
7079# Is the header present?
b4e70030
JB
7080echo "$as_me:$LINENO: checking $ac_header presence" >&5
7081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7082cat >conftest.$ac_ext <<_ACEOF
7083/* confdefs.h. */
7084_ACEOF
7085cat confdefs.h >>conftest.$ac_ext
7086cat >>conftest.$ac_ext <<_ACEOF
7087/* end confdefs.h. */
7088#include <$ac_header>
7089_ACEOF
7090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } >/dev/null; then
7098 if test -s conftest.err; then
7099 ac_cpp_err=$ac_c_preproc_warn_flag
7100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7101 else
7102 ac_cpp_err=
7103 fi
c906108c 7104else
bec39cab 7105 ac_cpp_err=yes
c906108c 7106fi
bec39cab
AC
7107if test -z "$ac_cpp_err"; then
7108 ac_header_preproc=yes
c906108c 7109else
bec39cab
AC
7110 echo "$as_me: failed program was:" >&5
7111sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7112
bec39cab
AC
7113 ac_header_preproc=no
7114fi
7115rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7117echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7118
bec39cab
AC
7119# So? What about this header?
7120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7121 yes:no: )
7122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7126 ac_header_preproc=yes
7127 ;;
7128 no:yes:* )
7129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7132echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7136echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7141 (
7142 cat <<\_ASBOX
7143## ------------------------------------------ ##
7144## Report this to the AC_PACKAGE_NAME lists. ##
7145## ------------------------------------------ ##
7146_ASBOX
7147 ) |
7148 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7149 ;;
7150esac
b4e70030
JB
7151echo "$as_me:$LINENO: checking for $ac_header" >&5
7152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7153if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7154 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7155else
bec39cab 7156 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7157fi
b4e70030
JB
7158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7160
95ca63c4 7161fi
bec39cab
AC
7162if test `eval echo '${'$as_ac_Header'}'` = yes; then
7163 cat >>confdefs.h <<_ACEOF
7164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165_ACEOF
7166
95ca63c4
CF
7167fi
7168
bec39cab 7169done
95ca63c4
CF
7170
7171
7cb9022a 7172for ac_header in link.h
bec39cab
AC
7173do
7174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7175echo "$as_me:$LINENO: checking for $ac_header" >&5
7176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7177if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7178 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7179else
7cb9022a 7180 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7181/* confdefs.h. */
7182_ACEOF
7183cat confdefs.h >>conftest.$ac_ext
7184cat >>conftest.$ac_ext <<_ACEOF
7185/* end confdefs.h. */
7cb9022a
MK
7186#if HAVE_SYS_TYPES_H
7187# include <sys/types.h>
7188#endif
7189#if HAVE_NLIST_H
7190# include <nlist.h>
7191#endif
7192
7193
bec39cab
AC
7194#include <$ac_header>
7195_ACEOF
7196rm -f conftest.$ac_objext
7197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
b4e70030
JB
7205 { ac_try='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
bec39cab
AC
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7cb9022a 7218 eval "$as_ac_Header=yes"
bec39cab
AC
7219else
7220 echo "$as_me: failed program was:" >&5
7221sed 's/^/| /' conftest.$ac_ext >&5
7222
b4e70030 7223eval "$as_ac_Header=no"
bec39cab
AC
7224fi
7225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7226fi
b4e70030
JB
7227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7229if test `eval echo '${'$as_ac_Header'}'` = yes; then
7230 cat >>confdefs.h <<_ACEOF
7231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7232_ACEOF
95ca63c4 7233
bec39cab 7234fi
95ca63c4 7235
bec39cab 7236done
95ca63c4 7237
c906108c 7238
7cb9022a 7239for ac_header in machine/reg.h
bec39cab
AC
7240do
7241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7242if eval "test \"\${$as_ac_Header+set}\" = set"; then
7243 echo "$as_me:$LINENO: checking for $ac_header" >&5
7244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7245if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247fi
b4e70030
JB
7248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7250else
7251 # Is the header compilable?
b4e70030
JB
7252echo "$as_me:$LINENO: checking $ac_header usability" >&5
7253echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7254cat >conftest.$ac_ext <<_ACEOF
7255/* confdefs.h. */
7256_ACEOF
7257cat confdefs.h >>conftest.$ac_ext
7258cat >>conftest.$ac_ext <<_ACEOF
7259/* end confdefs.h. */
7260$ac_includes_default
7261#include <$ac_header>
7262_ACEOF
7263rm -f conftest.$ac_objext
7264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
b4e70030
JB
7272 { ac_try='test -z "$ac_c_werror_flag"
7273 || test ! -s conftest.err'
bec39cab
AC
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try='test -s conftest.$ac_objext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_header_compiler=yes
7286else
7287 echo "$as_me: failed program was:" >&5
7288sed 's/^/| /' conftest.$ac_ext >&5
7289
b4e70030 7290ac_header_compiler=no
bec39cab
AC
7291fi
7292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7293echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7294echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7295
7296# Is the header present?
b4e70030
JB
7297echo "$as_me:$LINENO: checking $ac_header presence" >&5
7298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7299cat >conftest.$ac_ext <<_ACEOF
7300/* confdefs.h. */
7301_ACEOF
7302cat confdefs.h >>conftest.$ac_ext
7303cat >>conftest.$ac_ext <<_ACEOF
7304/* end confdefs.h. */
7305#include <$ac_header>
7306_ACEOF
7307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } >/dev/null; then
7315 if test -s conftest.err; then
7316 ac_cpp_err=$ac_c_preproc_warn_flag
7317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7318 else
7319 ac_cpp_err=
7320 fi
75c6e08a 7321else
bec39cab 7322 ac_cpp_err=yes
75c6e08a 7323fi
bec39cab
AC
7324if test -z "$ac_cpp_err"; then
7325 ac_header_preproc=yes
7326else
7327 echo "$as_me: failed program was:" >&5
7328sed 's/^/| /' conftest.$ac_ext >&5
7329
7330 ac_header_preproc=no
75c6e08a 7331fi
bec39cab 7332rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7333echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7334echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7335
7336# So? What about this header?
7337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7338 yes:no: )
7339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7340echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7342echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7343 ac_header_preproc=yes
7344 ;;
7345 no:yes:* )
7346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7347echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7349echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7351echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7353echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7355echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7357echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7358 (
7359 cat <<\_ASBOX
7360## ------------------------------------------ ##
7361## Report this to the AC_PACKAGE_NAME lists. ##
7362## ------------------------------------------ ##
7363_ASBOX
7364 ) |
7365 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7366 ;;
7367esac
b4e70030
JB
7368echo "$as_me:$LINENO: checking for $ac_header" >&5
7369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7370if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7371 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7372else
bec39cab
AC
7373 eval "$as_ac_Header=\$ac_header_preproc"
7374fi
b4e70030
JB
7375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7377
75c6e08a 7378fi
bec39cab
AC
7379if test `eval echo '${'$as_ac_Header'}'` = yes; then
7380 cat >>confdefs.h <<_ACEOF
7381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7382_ACEOF
75c6e08a 7383
bec39cab 7384fi
75c6e08a 7385
bec39cab 7386done
75c6e08a
MK
7387
7388
9a156167 7389
bec39cab
AC
7390for ac_header in poll.h sys/poll.h
7391do
7392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7393if eval "test \"\${$as_ac_Header+set}\" = set"; then
7394 echo "$as_me:$LINENO: checking for $ac_header" >&5
7395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7396if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398fi
b4e70030
JB
7399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7401else
7402 # Is the header compilable?
b4e70030
JB
7403echo "$as_me:$LINENO: checking $ac_header usability" >&5
7404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7405cat >conftest.$ac_ext <<_ACEOF
7406/* confdefs.h. */
7407_ACEOF
7408cat confdefs.h >>conftest.$ac_ext
7409cat >>conftest.$ac_ext <<_ACEOF
7410/* end confdefs.h. */
7411$ac_includes_default
7412#include <$ac_header>
7413_ACEOF
7414rm -f conftest.$ac_objext
7415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
b4e70030
JB
7423 { ac_try='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
bec39cab
AC
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_header_compiler=yes
7437else
7438 echo "$as_me: failed program was:" >&5
7439sed 's/^/| /' conftest.$ac_ext >&5
7440
b4e70030 7441ac_header_compiler=no
bec39cab
AC
7442fi
7443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7445echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7446
7447# Is the header present?
b4e70030
JB
7448echo "$as_me:$LINENO: checking $ac_header presence" >&5
7449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7450cat >conftest.$ac_ext <<_ACEOF
7451/* confdefs.h. */
7452_ACEOF
7453cat confdefs.h >>conftest.$ac_ext
7454cat >>conftest.$ac_ext <<_ACEOF
7455/* end confdefs.h. */
7456#include <$ac_header>
7457_ACEOF
7458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } >/dev/null; then
7466 if test -s conftest.err; then
7467 ac_cpp_err=$ac_c_preproc_warn_flag
7468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7469 else
7470 ac_cpp_err=
7471 fi
9a156167 7472else
bec39cab 7473 ac_cpp_err=yes
9a156167 7474fi
bec39cab
AC
7475if test -z "$ac_cpp_err"; then
7476 ac_header_preproc=yes
7477else
7478 echo "$as_me: failed program was:" >&5
7479sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7480
bec39cab 7481 ac_header_preproc=no
9a156167 7482fi
bec39cab 7483rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7485echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7486
bec39cab
AC
7487# So? What about this header?
7488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7489 yes:no: )
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7494 ac_header_preproc=yes
7495 ;;
7496 no:yes:* )
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7500echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7504echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7509 (
7510 cat <<\_ASBOX
7511## ------------------------------------------ ##
7512## Report this to the AC_PACKAGE_NAME lists. ##
7513## ------------------------------------------ ##
7514_ASBOX
7515 ) |
7516 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7517 ;;
7518esac
b4e70030
JB
7519echo "$as_me:$LINENO: checking for $ac_header" >&5
7520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7521if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7522 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7523else
bec39cab 7524 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7525fi
b4e70030
JB
7526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7528
bec39cab
AC
7529fi
7530if test `eval echo '${'$as_ac_Header'}'` = yes; then
7531 cat >>confdefs.h <<_ACEOF
7532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7533_ACEOF
9a156167 7534
bec39cab 7535fi
9a156167 7536
bec39cab 7537done
9a156167 7538
9a156167 7539
9a156167 7540
bec39cab
AC
7541
7542for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7543do
7544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7545if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546 echo "$as_me:$LINENO: checking for $ac_header" >&5
7547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7548if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550fi
b4e70030
JB
7551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7553else
7554 # Is the header compilable?
b4e70030
JB
7555echo "$as_me:$LINENO: checking $ac_header usability" >&5
7556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7557cat >conftest.$ac_ext <<_ACEOF
7558/* confdefs.h. */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h. */
7563$ac_includes_default
7564#include <$ac_header>
7565_ACEOF
7566rm -f conftest.$ac_objext
7567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568 (eval $ac_compile) 2>conftest.er1
7569 ac_status=$?
7570 grep -v '^ *+' conftest.er1 >conftest.err
7571 rm -f conftest.er1
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
b4e70030
JB
7575 { ac_try='test -z "$ac_c_werror_flag"
7576 || test ! -s conftest.err'
bec39cab
AC
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest.$ac_objext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_header_compiler=yes
7589else
7590 echo "$as_me: failed program was:" >&5
7591sed 's/^/| /' conftest.$ac_ext >&5
7592
b4e70030 7593ac_header_compiler=no
bec39cab
AC
7594fi
7595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7597echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7598
7599# Is the header present?
b4e70030
JB
7600echo "$as_me:$LINENO: checking $ac_header presence" >&5
7601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7602cat >conftest.$ac_ext <<_ACEOF
7603/* confdefs.h. */
7604_ACEOF
7605cat confdefs.h >>conftest.$ac_ext
7606cat >>conftest.$ac_ext <<_ACEOF
7607/* end confdefs.h. */
7608#include <$ac_header>
7609_ACEOF
7610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } >/dev/null; then
7618 if test -s conftest.err; then
7619 ac_cpp_err=$ac_c_preproc_warn_flag
7620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7621 else
7622 ac_cpp_err=
7623 fi
9a156167 7624else
bec39cab 7625 ac_cpp_err=yes
9a156167 7626fi
bec39cab
AC
7627if test -z "$ac_cpp_err"; then
7628 ac_header_preproc=yes
7629else
7630 echo "$as_me: failed program was:" >&5
7631sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7632
bec39cab 7633 ac_header_preproc=no
9a156167 7634fi
bec39cab 7635rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7636echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7637echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7638
bec39cab
AC
7639# So? What about this header?
7640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7641 yes:no: )
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7643echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7645echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7646 ac_header_preproc=yes
7647 ;;
7648 no:yes:* )
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7650echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7652echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7654echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7656echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7658echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7660echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7661 (
7662 cat <<\_ASBOX
7663## ------------------------------------------ ##
7664## Report this to the AC_PACKAGE_NAME lists. ##
7665## ------------------------------------------ ##
7666_ASBOX
7667 ) |
7668 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7669 ;;
7670esac
b4e70030
JB
7671echo "$as_me:$LINENO: checking for $ac_header" >&5
7672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7673if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7674 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7675else
bec39cab 7676 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7677fi
b4e70030
JB
7678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
7680
7681fi
bec39cab
AC
7682if test `eval echo '${'$as_ac_Header'}'` = yes; then
7683 cat >>confdefs.h <<_ACEOF
7684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7685_ACEOF
9a156167 7686
bec39cab
AC
7687fi
7688
7689done
9a156167 7690
c890192f 7691
bec39cab
AC
7692for ac_header in stddef.h
7693do
7694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7695if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696 echo "$as_me:$LINENO: checking for $ac_header" >&5
7697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7698if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7700fi
b4e70030
JB
7701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7703else
7704 # Is the header compilable?
b4e70030
JB
7705echo "$as_me:$LINENO: checking $ac_header usability" >&5
7706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7707cat >conftest.$ac_ext <<_ACEOF
7708/* confdefs.h. */
7709_ACEOF
7710cat confdefs.h >>conftest.$ac_ext
7711cat >>conftest.$ac_ext <<_ACEOF
7712/* end confdefs.h. */
7713$ac_includes_default
7714#include <$ac_header>
7715_ACEOF
7716rm -f conftest.$ac_objext
7717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
b4e70030
JB
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
bec39cab
AC
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_header_compiler=yes
7739else
7740 echo "$as_me: failed program was:" >&5
7741sed 's/^/| /' conftest.$ac_ext >&5
7742
b4e70030 7743ac_header_compiler=no
bec39cab
AC
7744fi
7745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7747echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7748
7749# Is the header present?
b4e70030
JB
7750echo "$as_me:$LINENO: checking $ac_header presence" >&5
7751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7752cat >conftest.$ac_ext <<_ACEOF
7753/* confdefs.h. */
7754_ACEOF
7755cat confdefs.h >>conftest.$ac_ext
7756cat >>conftest.$ac_ext <<_ACEOF
7757/* end confdefs.h. */
7758#include <$ac_header>
7759_ACEOF
7760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } >/dev/null; then
7768 if test -s conftest.err; then
7769 ac_cpp_err=$ac_c_preproc_warn_flag
7770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7771 else
7772 ac_cpp_err=
7773 fi
c890192f 7774else
bec39cab
AC
7775 ac_cpp_err=yes
7776fi
7777if test -z "$ac_cpp_err"; then
7778 ac_header_preproc=yes
c890192f 7779else
bec39cab
AC
7780 echo "$as_me: failed program was:" >&5
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7783 ac_header_preproc=no
c890192f 7784fi
bec39cab 7785rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7788
7789# So? What about this header?
7790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7791 yes:no: )
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7796 ac_header_preproc=yes
7797 ;;
7798 no:yes:* )
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7806echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7811 (
7812 cat <<\_ASBOX
7813## ------------------------------------------ ##
7814## Report this to the AC_PACKAGE_NAME lists. ##
7815## ------------------------------------------ ##
7816_ASBOX
7817 ) |
7818 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7819 ;;
7820esac
b4e70030
JB
7821echo "$as_me:$LINENO: checking for $ac_header" >&5
7822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7823if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7824 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 7825else
bec39cab 7826 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 7827fi
b4e70030
JB
7828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7830
c890192f 7831fi
bec39cab
AC
7832if test `eval echo '${'$as_ac_Header'}'` = yes; then
7833 cat >>confdefs.h <<_ACEOF
7834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7835_ACEOF
c890192f 7836
c890192f
MK
7837fi
7838
bec39cab 7839done
9a156167 7840
bec39cab
AC
7841
7842for ac_header in stdlib.h
7843do
7844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7845if eval "test \"\${$as_ac_Header+set}\" = set"; then
7846 echo "$as_me:$LINENO: checking for $ac_header" >&5
7847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7850fi
b4e70030
JB
7851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7853else
7854 # Is the header compilable?
b4e70030
JB
7855echo "$as_me:$LINENO: checking $ac_header usability" >&5
7856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7857cat >conftest.$ac_ext <<_ACEOF
7858/* confdefs.h. */
7859_ACEOF
7860cat confdefs.h >>conftest.$ac_ext
7861cat >>conftest.$ac_ext <<_ACEOF
7862/* end confdefs.h. */
7863$ac_includes_default
7864#include <$ac_header>
7865_ACEOF
7866rm -f conftest.$ac_objext
7867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868 (eval $ac_compile) 2>conftest.er1
7869 ac_status=$?
7870 grep -v '^ *+' conftest.er1 >conftest.err
7871 rm -f conftest.er1
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } &&
b4e70030
JB
7875 { ac_try='test -z "$ac_c_werror_flag"
7876 || test ! -s conftest.err'
bec39cab
AC
7877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 (eval $ac_try) 2>&5
7879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; } &&
7882 { ac_try='test -s conftest.$ac_objext'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 (eval $ac_try) 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 ac_header_compiler=yes
7889else
7890 echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
b4e70030 7893ac_header_compiler=no
bec39cab
AC
7894fi
7895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7897echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7898
7899# Is the header present?
b4e70030
JB
7900echo "$as_me:$LINENO: checking $ac_header presence" >&5
7901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7902cat >conftest.$ac_ext <<_ACEOF
7903/* confdefs.h. */
7904_ACEOF
7905cat confdefs.h >>conftest.$ac_ext
7906cat >>conftest.$ac_ext <<_ACEOF
7907/* end confdefs.h. */
7908#include <$ac_header>
7909_ACEOF
7910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } >/dev/null; then
7918 if test -s conftest.err; then
7919 ac_cpp_err=$ac_c_preproc_warn_flag
7920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7921 else
7922 ac_cpp_err=
7923 fi
9a156167 7924else
bec39cab
AC
7925 ac_cpp_err=yes
7926fi
7927if test -z "$ac_cpp_err"; then
7928 ac_header_preproc=yes
9a156167 7929else
bec39cab
AC
7930 echo "$as_me: failed program was:" >&5
7931sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 ac_header_preproc=no
9a156167 7934fi
bec39cab 7935rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7937echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7938
7939# So? What about this header?
7940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7941 yes:no: )
7942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7946 ac_header_preproc=yes
7947 ;;
7948 no:yes:* )
7949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7952echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7956echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7961 (
7962 cat <<\_ASBOX
7963## ------------------------------------------ ##
7964## Report this to the AC_PACKAGE_NAME lists. ##
7965## ------------------------------------------ ##
7966_ASBOX
7967 ) |
7968 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7969 ;;
7970esac
b4e70030
JB
7971echo "$as_me:$LINENO: checking for $ac_header" >&5
7972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7973if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7974 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7975else
bec39cab 7976 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7977fi
b4e70030
JB
7978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7980
9a156167 7981fi
bec39cab
AC
7982if test `eval echo '${'$as_ac_Header'}'` = yes; then
7983 cat >>confdefs.h <<_ACEOF
7984#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7985_ACEOF
9a156167 7986
9a156167
MK
7987fi
7988
bec39cab
AC
7989done
7990
06825bd1 7991
bec39cab
AC
7992for ac_header in stdint.h
7993do
7994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7995if eval "test \"\${$as_ac_Header+set}\" = set"; then
7996 echo "$as_me:$LINENO: checking for $ac_header" >&5
7997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7998if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000fi
b4e70030
JB
8001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8003else
8004 # Is the header compilable?
b4e70030
JB
8005echo "$as_me:$LINENO: checking $ac_header usability" >&5
8006echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8007cat >conftest.$ac_ext <<_ACEOF
8008/* confdefs.h. */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h. */
8013$ac_includes_default
8014#include <$ac_header>
8015_ACEOF
8016rm -f conftest.$ac_objext
8017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018 (eval $ac_compile) 2>conftest.er1
8019 ac_status=$?
8020 grep -v '^ *+' conftest.er1 >conftest.err
8021 rm -f conftest.er1
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
b4e70030
JB
8025 { ac_try='test -z "$ac_c_werror_flag"
8026 || test ! -s conftest.err'
bec39cab
AC
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; } &&
8032 { ac_try='test -s conftest.$ac_objext'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 (eval $ac_try) 2>&5
8035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8038 ac_header_compiler=yes
8039else
8040 echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
b4e70030 8043ac_header_compiler=no
bec39cab
AC
8044fi
8045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8047echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8048
8049# Is the header present?
b4e70030
JB
8050echo "$as_me:$LINENO: checking $ac_header presence" >&5
8051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8052cat >conftest.$ac_ext <<_ACEOF
8053/* confdefs.h. */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h. */
8058#include <$ac_header>
8059_ACEOF
8060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } >/dev/null; then
8068 if test -s conftest.err; then
8069 ac_cpp_err=$ac_c_preproc_warn_flag
8070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8071 else
8072 ac_cpp_err=
8073 fi
06825bd1 8074else
bec39cab
AC
8075 ac_cpp_err=yes
8076fi
8077if test -z "$ac_cpp_err"; then
8078 ac_header_preproc=yes
06825bd1 8079else
bec39cab
AC
8080 echo "$as_me: failed program was:" >&5
8081sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_header_preproc=no
06825bd1 8084fi
bec39cab 8085rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8087echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8088
8089# So? What about this header?
8090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8091 yes:no: )
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8096 ac_header_preproc=yes
8097 ;;
8098 no:yes:* )
8099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8102echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8106echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8111 (
8112 cat <<\_ASBOX
8113## ------------------------------------------ ##
8114## Report this to the AC_PACKAGE_NAME lists. ##
8115## ------------------------------------------ ##
8116_ASBOX
8117 ) |
8118 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8119 ;;
8120esac
b4e70030
JB
8121echo "$as_me:$LINENO: checking for $ac_header" >&5
8122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8123if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8124 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8125else
bec39cab 8126 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8127fi
b4e70030
JB
8128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8130
06825bd1 8131fi
bec39cab
AC
8132if test `eval echo '${'$as_ac_Header'}'` = yes; then
8133 cat >>confdefs.h <<_ACEOF
8134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8135_ACEOF
06825bd1 8136
06825bd1 8137fi
4f0be353 8138
bec39cab 8139done
4f0be353 8140
06825bd1 8141
06825bd1 8142
bec39cab
AC
8143
8144for ac_header in string.h memory.h strings.h
8145do
8146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8147if eval "test \"\${$as_ac_Header+set}\" = set"; then
8148 echo "$as_me:$LINENO: checking for $ac_header" >&5
8149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8150if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152fi
b4e70030
JB
8153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8155else
8156 # Is the header compilable?
b4e70030
JB
8157echo "$as_me:$LINENO: checking $ac_header usability" >&5
8158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8159cat >conftest.$ac_ext <<_ACEOF
8160/* confdefs.h. */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h. */
8165$ac_includes_default
8166#include <$ac_header>
8167_ACEOF
8168rm -f conftest.$ac_objext
8169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170 (eval $ac_compile) 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
b4e70030
JB
8177 { ac_try='test -z "$ac_c_werror_flag"
8178 || test ! -s conftest.err'
bec39cab
AC
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest.$ac_objext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_header_compiler=yes
8191else
8192 echo "$as_me: failed program was:" >&5
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
b4e70030 8195ac_header_compiler=no
bec39cab
AC
8196fi
8197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8199echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8200
8201# Is the header present?
b4e70030
JB
8202echo "$as_me:$LINENO: checking $ac_header presence" >&5
8203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8204cat >conftest.$ac_ext <<_ACEOF
8205/* confdefs.h. */
8206_ACEOF
8207cat confdefs.h >>conftest.$ac_ext
8208cat >>conftest.$ac_ext <<_ACEOF
8209/* end confdefs.h. */
8210#include <$ac_header>
8211_ACEOF
8212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8214 ac_status=$?
8215 grep -v '^ *+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } >/dev/null; then
8220 if test -s conftest.err; then
8221 ac_cpp_err=$ac_c_preproc_warn_flag
8222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8223 else
8224 ac_cpp_err=
8225 fi
06825bd1 8226else
bec39cab
AC
8227 ac_cpp_err=yes
8228fi
8229if test -z "$ac_cpp_err"; then
8230 ac_header_preproc=yes
06825bd1 8231else
bec39cab
AC
8232 echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
8235 ac_header_preproc=no
06825bd1 8236fi
bec39cab 8237rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8239echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8240
8241# So? What about this header?
8242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8243 yes:no: )
8244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8248 ac_header_preproc=yes
8249 ;;
8250 no:yes:* )
8251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8263 (
8264 cat <<\_ASBOX
8265## ------------------------------------------ ##
8266## Report this to the AC_PACKAGE_NAME lists. ##
8267## ------------------------------------------ ##
8268_ASBOX
8269 ) |
8270 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8271 ;;
8272esac
b4e70030
JB
8273echo "$as_me:$LINENO: checking for $ac_header" >&5
8274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8275if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277else
8278 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8279fi
b4e70030
JB
8280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8282
06825bd1 8283fi
bec39cab
AC
8284if test `eval echo '${'$as_ac_Header'}'` = yes; then
8285 cat >>confdefs.h <<_ACEOF
8286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8287_ACEOF
06825bd1 8288
06825bd1
MK
8289fi
8290
bec39cab 8291done
5ee754fc 8292
bec39cab
AC
8293
8294for ac_header in sys/fault.h
5ee754fc 8295do
bec39cab 8296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8297if eval "test \"\${$as_ac_Header+set}\" = set"; then
8298 echo "$as_me:$LINENO: checking for $ac_header" >&5
8299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8300if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302fi
b4e70030
JB
8303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8305else
8306 # Is the header compilable?
b4e70030
JB
8307echo "$as_me:$LINENO: checking $ac_header usability" >&5
8308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8309cat >conftest.$ac_ext <<_ACEOF
8310/* confdefs.h. */
8311_ACEOF
8312cat confdefs.h >>conftest.$ac_ext
8313cat >>conftest.$ac_ext <<_ACEOF
8314/* end confdefs.h. */
8315$ac_includes_default
8316#include <$ac_header>
8317_ACEOF
8318rm -f conftest.$ac_objext
8319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320 (eval $ac_compile) 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
b4e70030
JB
8327 { ac_try='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
bec39cab
AC
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest.$ac_objext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 ac_header_compiler=yes
8341else
8342 echo "$as_me: failed program was:" >&5
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
b4e70030 8345ac_header_compiler=no
bec39cab
AC
8346fi
8347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8349echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8350
8351# Is the header present?
b4e70030
JB
8352echo "$as_me:$LINENO: checking $ac_header presence" >&5
8353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8354cat >conftest.$ac_ext <<_ACEOF
8355/* confdefs.h. */
8356_ACEOF
8357cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h. */
8360#include <$ac_header>
8361_ACEOF
8362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8364 ac_status=$?
8365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } >/dev/null; then
8370 if test -s conftest.err; then
8371 ac_cpp_err=$ac_c_preproc_warn_flag
8372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8373 else
8374 ac_cpp_err=
8375 fi
5ee754fc 8376else
bec39cab 8377 ac_cpp_err=yes
5ee754fc 8378fi
bec39cab
AC
8379if test -z "$ac_cpp_err"; then
8380 ac_header_preproc=yes
8381else
8382 echo "$as_me: failed program was:" >&5
8383sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8384
bec39cab 8385 ac_header_preproc=no
5ee754fc 8386fi
bec39cab 8387rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8389echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8390
8391# So? What about this header?
8392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8393 yes:no: )
8394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8398 ac_header_preproc=yes
8399 ;;
8400 no:yes:* )
8401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8408echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8413 (
8414 cat <<\_ASBOX
8415## ------------------------------------------ ##
8416## Report this to the AC_PACKAGE_NAME lists. ##
8417## ------------------------------------------ ##
8418_ASBOX
8419 ) |
8420 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8421 ;;
8422esac
b4e70030
JB
8423echo "$as_me:$LINENO: checking for $ac_header" >&5
8424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8425if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8426 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8427else
bec39cab 8428 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8429fi
b4e70030
JB
8430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8432
5ee754fc 8433fi
bec39cab
AC
8434if test `eval echo '${'$as_ac_Header'}'` = yes; then
8435 cat >>confdefs.h <<_ACEOF
8436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8437_ACEOF
c906108c 8438
5ee754fc 8439fi
bec39cab
AC
8440
8441done
8442
8443
8444for ac_header in sys/file.h
8445do
8446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8447if eval "test \"\${$as_ac_Header+set}\" = set"; then
8448 echo "$as_me:$LINENO: checking for $ac_header" >&5
8449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8450if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452fi
b4e70030
JB
8453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8454echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8455else
8456 # Is the header compilable?
b4e70030
JB
8457echo "$as_me:$LINENO: checking $ac_header usability" >&5
8458echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8459cat >conftest.$ac_ext <<_ACEOF
8460/* confdefs.h. */
8461_ACEOF
8462cat confdefs.h >>conftest.$ac_ext
8463cat >>conftest.$ac_ext <<_ACEOF
8464/* end confdefs.h. */
8465$ac_includes_default
8466#include <$ac_header>
8467_ACEOF
8468rm -f conftest.$ac_objext
8469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>conftest.er1
8471 ac_status=$?
8472 grep -v '^ *+' conftest.er1 >conftest.err
8473 rm -f conftest.er1
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
b4e70030
JB
8477 { ac_try='test -z "$ac_c_werror_flag"
8478 || test ! -s conftest.err'
bec39cab
AC
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest.$ac_objext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_header_compiler=yes
8491else
8492 echo "$as_me: failed program was:" >&5
8493sed 's/^/| /' conftest.$ac_ext >&5
8494
b4e70030 8495ac_header_compiler=no
bec39cab
AC
8496fi
8497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8498echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8499echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8500
8501# Is the header present?
b4e70030
JB
8502echo "$as_me:$LINENO: checking $ac_header presence" >&5
8503echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8504cat >conftest.$ac_ext <<_ACEOF
8505/* confdefs.h. */
8506_ACEOF
8507cat confdefs.h >>conftest.$ac_ext
8508cat >>conftest.$ac_ext <<_ACEOF
8509/* end confdefs.h. */
8510#include <$ac_header>
8511_ACEOF
8512if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8514 ac_status=$?
8515 grep -v '^ *+' conftest.er1 >conftest.err
8516 rm -f conftest.er1
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } >/dev/null; then
8520 if test -s conftest.err; then
8521 ac_cpp_err=$ac_c_preproc_warn_flag
8522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8523 else
8524 ac_cpp_err=
8525 fi
5ee754fc 8526else
bec39cab 8527 ac_cpp_err=yes
5ee754fc 8528fi
bec39cab
AC
8529if test -z "$ac_cpp_err"; then
8530 ac_header_preproc=yes
8531else
8532 echo "$as_me: failed program was:" >&5
8533sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8534
bec39cab 8535 ac_header_preproc=no
5ee754fc 8536fi
bec39cab 8537rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8538echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8539echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8540
bec39cab
AC
8541# So? What about this header?
8542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8543 yes:no: )
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8545echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8547echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8548 ac_header_preproc=yes
8549 ;;
8550 no:yes:* )
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8552echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8554echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8556echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8558echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8562echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8563 (
8564 cat <<\_ASBOX
8565## ------------------------------------------ ##
8566## Report this to the AC_PACKAGE_NAME lists. ##
8567## ------------------------------------------ ##
8568_ASBOX
8569 ) |
8570 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8571 ;;
8572esac
b4e70030
JB
8573echo "$as_me:$LINENO: checking for $ac_header" >&5
8574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8575if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8576 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8577else
bec39cab
AC
8578 eval "$as_ac_Header=\$ac_header_preproc"
8579fi
b4e70030
JB
8580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8582
bec39cab
AC
8583fi
8584if test `eval echo '${'$as_ac_Header'}'` = yes; then
8585 cat >>confdefs.h <<_ACEOF
8586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8587_ACEOF
5ee754fc 8588
bec39cab 8589fi
5ee754fc 8590
bec39cab 8591done
5ee754fc 8592
5ee754fc 8593
bec39cab
AC
8594for ac_header in sys/filio.h
8595do
8596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8597if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598 echo "$as_me:$LINENO: checking for $ac_header" >&5
8599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8600if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602fi
b4e70030
JB
8603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8605else
8606 # Is the header compilable?
b4e70030
JB
8607echo "$as_me:$LINENO: checking $ac_header usability" >&5
8608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8609cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
8615$ac_includes_default
8616#include <$ac_header>
8617_ACEOF
8618rm -f conftest.$ac_objext
8619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8620 (eval $ac_compile) 2>conftest.er1
8621 ac_status=$?
8622 grep -v '^ *+' conftest.er1 >conftest.err
8623 rm -f conftest.er1
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
b4e70030
JB
8627 { ac_try='test -z "$ac_c_werror_flag"
8628 || test ! -s conftest.err'
bec39cab
AC
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 (eval $ac_try) 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; } &&
8634 { ac_try='test -s conftest.$ac_objext'
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 (eval $ac_try) 2>&5
8637 ac_status=$?
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; }; then
8640 ac_header_compiler=yes
8641else
8642 echo "$as_me: failed program was:" >&5
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
b4e70030 8645ac_header_compiler=no
bec39cab
AC
8646fi
8647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8649echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8650
8651# Is the header present?
b4e70030
JB
8652echo "$as_me:$LINENO: checking $ac_header presence" >&5
8653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8654cat >conftest.$ac_ext <<_ACEOF
8655/* confdefs.h. */
8656_ACEOF
8657cat confdefs.h >>conftest.$ac_ext
8658cat >>conftest.$ac_ext <<_ACEOF
8659/* end confdefs.h. */
8660#include <$ac_header>
8661_ACEOF
8662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } >/dev/null; then
8670 if test -s conftest.err; then
8671 ac_cpp_err=$ac_c_preproc_warn_flag
8672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8673 else
8674 ac_cpp_err=
8675 fi
5ee754fc 8676else
bec39cab 8677 ac_cpp_err=yes
5ee754fc 8678fi
bec39cab
AC
8679if test -z "$ac_cpp_err"; then
8680 ac_header_preproc=yes
8681else
8682 echo "$as_me: failed program was:" >&5
8683sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8684
bec39cab 8685 ac_header_preproc=no
5ee754fc 8686fi
bec39cab 8687rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8689echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8690
bec39cab
AC
8691# So? What about this header?
8692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8693 yes:no: )
8694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8698 ac_header_preproc=yes
8699 ;;
8700 no:yes:* )
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8713 (
8714 cat <<\_ASBOX
8715## ------------------------------------------ ##
8716## Report this to the AC_PACKAGE_NAME lists. ##
8717## ------------------------------------------ ##
8718_ASBOX
8719 ) |
8720 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8721 ;;
8722esac
b4e70030
JB
8723echo "$as_me:$LINENO: checking for $ac_header" >&5
8724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8725if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8726 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8727else
bec39cab 8728 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8729fi
b4e70030
JB
8730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8732
5ee754fc 8733fi
bec39cab
AC
8734if test `eval echo '${'$as_ac_Header'}'` = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8737_ACEOF
5ee754fc
MK
8738
8739fi
8740
bec39cab
AC
8741done
8742
8743
8744for ac_header in sys/ioctl.h
8745do
8746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8747if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748 echo "$as_me:$LINENO: checking for $ac_header" >&5
8749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8750if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752fi
b4e70030
JB
8753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8755else
8756 # Is the header compilable?
b4e70030
JB
8757echo "$as_me:$LINENO: checking $ac_header usability" >&5
8758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8759cat >conftest.$ac_ext <<_ACEOF
8760/* confdefs.h. */
8761_ACEOF
8762cat confdefs.h >>conftest.$ac_ext
8763cat >>conftest.$ac_ext <<_ACEOF
8764/* end confdefs.h. */
8765$ac_includes_default
8766#include <$ac_header>
8767_ACEOF
8768rm -f conftest.$ac_objext
8769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8770 (eval $ac_compile) 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
b4e70030
JB
8777 { ac_try='test -z "$ac_c_werror_flag"
8778 || test ! -s conftest.err'
bec39cab
AC
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 (eval $ac_try) 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; } &&
8784 { ac_try='test -s conftest.$ac_objext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_header_compiler=yes
8791else
8792 echo "$as_me: failed program was:" >&5
8793sed 's/^/| /' conftest.$ac_ext >&5
8794
b4e70030 8795ac_header_compiler=no
bec39cab
AC
8796fi
8797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8799echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8800
8801# Is the header present?
b4e70030
JB
8802echo "$as_me:$LINENO: checking $ac_header presence" >&5
8803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8804cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h. */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
8809/* end confdefs.h. */
8810#include <$ac_header>
8811_ACEOF
8812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } >/dev/null; then
8820 if test -s conftest.err; then
8821 ac_cpp_err=$ac_c_preproc_warn_flag
8822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8823 else
8824 ac_cpp_err=
8825 fi
5ee754fc 8826else
bec39cab 8827 ac_cpp_err=yes
5ee754fc 8828fi
bec39cab
AC
8829if test -z "$ac_cpp_err"; then
8830 ac_header_preproc=yes
8831else
8832 echo "$as_me: failed program was:" >&5
8833sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8834
bec39cab 8835 ac_header_preproc=no
5ee754fc 8836fi
bec39cab 8837rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8839echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8840
bec39cab
AC
8841# So? What about this header?
8842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8843 yes:no: )
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8848 ac_header_preproc=yes
8849 ;;
8850 no:yes:* )
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8863 (
8864 cat <<\_ASBOX
8865## ------------------------------------------ ##
8866## Report this to the AC_PACKAGE_NAME lists. ##
8867## ------------------------------------------ ##
8868_ASBOX
8869 ) |
8870 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8871 ;;
8872esac
b4e70030
JB
8873echo "$as_me:$LINENO: checking for $ac_header" >&5
8874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8875if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8876 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8877else
bec39cab 8878 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8879fi
b4e70030
JB
8880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
8882
8883fi
bec39cab
AC
8884if test `eval echo '${'$as_ac_Header'}'` = yes; then
8885 cat >>confdefs.h <<_ACEOF
8886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8887_ACEOF
8888
5ee754fc
MK
8889fi
8890
bec39cab 8891done
5ee754fc 8892
5ee754fc 8893
bec39cab 8894for ac_header in sys/param.h
5ee754fc 8895do
bec39cab 8896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8897if eval "test \"\${$as_ac_Header+set}\" = set"; then
8898 echo "$as_me:$LINENO: checking for $ac_header" >&5
8899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8900if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902fi
b4e70030
JB
8903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8905else
8906 # Is the header compilable?
b4e70030
JB
8907echo "$as_me:$LINENO: checking $ac_header usability" >&5
8908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8909cat >conftest.$ac_ext <<_ACEOF
8910/* confdefs.h. */
8911_ACEOF
8912cat confdefs.h >>conftest.$ac_ext
8913cat >>conftest.$ac_ext <<_ACEOF
8914/* end confdefs.h. */
8915$ac_includes_default
8916#include <$ac_header>
8917_ACEOF
8918rm -f conftest.$ac_objext
8919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8920 (eval $ac_compile) 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
b4e70030
JB
8927 { ac_try='test -z "$ac_c_werror_flag"
8928 || test ! -s conftest.err'
bec39cab
AC
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest.$ac_objext'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 (eval $ac_try) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 ac_header_compiler=yes
8941else
8942 echo "$as_me: failed program was:" >&5
8943sed 's/^/| /' conftest.$ac_ext >&5
8944
b4e70030 8945ac_header_compiler=no
bec39cab
AC
8946fi
8947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8949echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8950
8951# Is the header present?
b4e70030
JB
8952echo "$as_me:$LINENO: checking $ac_header presence" >&5
8953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8954cat >conftest.$ac_ext <<_ACEOF
8955/* confdefs.h. */
8956_ACEOF
8957cat confdefs.h >>conftest.$ac_ext
8958cat >>conftest.$ac_ext <<_ACEOF
8959/* end confdefs.h. */
8960#include <$ac_header>
8961_ACEOF
8962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8964 ac_status=$?
8965 grep -v '^ *+' conftest.er1 >conftest.err
8966 rm -f conftest.er1
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } >/dev/null; then
8970 if test -s conftest.err; then
8971 ac_cpp_err=$ac_c_preproc_warn_flag
8972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8973 else
8974 ac_cpp_err=
8975 fi
5ee754fc 8976else
bec39cab 8977 ac_cpp_err=yes
5ee754fc 8978fi
bec39cab
AC
8979if test -z "$ac_cpp_err"; then
8980 ac_header_preproc=yes
8981else
8982 echo "$as_me: failed program was:" >&5
8983sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8984
bec39cab 8985 ac_header_preproc=no
5ee754fc 8986fi
bec39cab 8987rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8989echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8990
8991# So? What about this header?
8992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8993 yes:no: )
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8998 ac_header_preproc=yes
8999 ;;
9000 no:yes:* )
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9004echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9008echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9013 (
9014 cat <<\_ASBOX
9015## ------------------------------------------ ##
9016## Report this to the AC_PACKAGE_NAME lists. ##
9017## ------------------------------------------ ##
9018_ASBOX
9019 ) |
9020 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9021 ;;
9022esac
b4e70030
JB
9023echo "$as_me:$LINENO: checking for $ac_header" >&5
9024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9025if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9026 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9027else
bec39cab 9028 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9029fi
b4e70030
JB
9030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9032
5ee754fc 9033fi
bec39cab
AC
9034if test `eval echo '${'$as_ac_Header'}'` = yes; then
9035 cat >>confdefs.h <<_ACEOF
9036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9037_ACEOF
9038
5ee754fc 9039fi
bec39cab 9040
5ee754fc
MK
9041done
9042
bec39cab
AC
9043
9044for ac_header in sys/proc.h
5ee754fc 9045do
bec39cab 9046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9047echo "$as_me:$LINENO: checking for $ac_header" >&5
9048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9049if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9050 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9051else
7cb9022a 9052 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9053/* confdefs.h. */
9054_ACEOF
9055cat confdefs.h >>conftest.$ac_ext
9056cat >>conftest.$ac_ext <<_ACEOF
9057/* end confdefs.h. */
7cb9022a
MK
9058#if HAVE_SYS_PARAM_H
9059# include <sys/param.h>
9060#endif
9061
9062
bec39cab
AC
9063#include <$ac_header>
9064_ACEOF
9065rm -f conftest.$ac_objext
9066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067 (eval $ac_compile) 2>conftest.er1
9068 ac_status=$?
9069 grep -v '^ *+' conftest.er1 >conftest.err
9070 rm -f conftest.er1
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } &&
b4e70030
JB
9074 { ac_try='test -z "$ac_c_werror_flag"
9075 || test ! -s conftest.err'
bec39cab
AC
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 (eval $ac_try) 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; } &&
9081 { ac_try='test -s conftest.$ac_objext'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 (eval $ac_try) 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; }; then
7cb9022a 9087 eval "$as_ac_Header=yes"
bec39cab
AC
9088else
9089 echo "$as_me: failed program was:" >&5
9090sed 's/^/| /' conftest.$ac_ext >&5
9091
b4e70030 9092eval "$as_ac_Header=no"
bec39cab
AC
9093fi
9094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9095fi
b4e70030
JB
9096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9098if test `eval echo '${'$as_ac_Header'}'` = yes; then
9099 cat >>confdefs.h <<_ACEOF
9100#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9101_ACEOF
9102
5ee754fc 9103fi
bec39cab 9104
5ee754fc
MK
9105done
9106
bec39cab
AC
9107
9108for ac_header in sys/procfs.h
5ee754fc 9109do
bec39cab 9110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9111if eval "test \"\${$as_ac_Header+set}\" = set"; then
9112 echo "$as_me:$LINENO: checking for $ac_header" >&5
9113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9114if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116fi
b4e70030
JB
9117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9119else
9120 # Is the header compilable?
b4e70030
JB
9121echo "$as_me:$LINENO: checking $ac_header usability" >&5
9122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9123cat >conftest.$ac_ext <<_ACEOF
9124/* confdefs.h. */
9125_ACEOF
9126cat confdefs.h >>conftest.$ac_ext
9127cat >>conftest.$ac_ext <<_ACEOF
9128/* end confdefs.h. */
9129$ac_includes_default
9130#include <$ac_header>
9131_ACEOF
9132rm -f conftest.$ac_objext
9133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9134 (eval $ac_compile) 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
b4e70030
JB
9141 { ac_try='test -z "$ac_c_werror_flag"
9142 || test ! -s conftest.err'
bec39cab
AC
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest.$ac_objext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_header_compiler=yes
9155else
9156 echo "$as_me: failed program was:" >&5
9157sed 's/^/| /' conftest.$ac_ext >&5
9158
b4e70030 9159ac_header_compiler=no
bec39cab
AC
9160fi
9161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9162echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9163echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9164
9165# Is the header present?
b4e70030
JB
9166echo "$as_me:$LINENO: checking $ac_header presence" >&5
9167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9168cat >conftest.$ac_ext <<_ACEOF
9169/* confdefs.h. */
9170_ACEOF
9171cat confdefs.h >>conftest.$ac_ext
9172cat >>conftest.$ac_ext <<_ACEOF
9173/* end confdefs.h. */
9174#include <$ac_header>
9175_ACEOF
9176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9178 ac_status=$?
9179 grep -v '^ *+' conftest.er1 >conftest.err
9180 rm -f conftest.er1
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } >/dev/null; then
9184 if test -s conftest.err; then
9185 ac_cpp_err=$ac_c_preproc_warn_flag
9186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9187 else
9188 ac_cpp_err=
9189 fi
9190else
9191 ac_cpp_err=yes
5ee754fc 9192fi
bec39cab
AC
9193if test -z "$ac_cpp_err"; then
9194 ac_header_preproc=yes
5ee754fc 9195else
bec39cab
AC
9196 echo "$as_me: failed program was:" >&5
9197sed 's/^/| /' conftest.$ac_ext >&5
9198
9199 ac_header_preproc=no
5ee754fc 9200fi
bec39cab 9201rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9202echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9203echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9204
bec39cab
AC
9205# So? What about this header?
9206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9207 yes:no: )
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9209echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9211echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9212 ac_header_preproc=yes
9213 ;;
9214 no:yes:* )
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9216echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9218echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9220echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9222echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9226echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9227 (
9228 cat <<\_ASBOX
9229## ------------------------------------------ ##
9230## Report this to the AC_PACKAGE_NAME lists. ##
9231## ------------------------------------------ ##
9232_ASBOX
9233 ) |
9234 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9235 ;;
9236esac
b4e70030
JB
9237echo "$as_me:$LINENO: checking for $ac_header" >&5
9238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9239if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241else
9242 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9243fi
b4e70030
JB
9244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9246
5ee754fc 9247fi
bec39cab
AC
9248if test `eval echo '${'$as_ac_Header'}'` = yes; then
9249 cat >>confdefs.h <<_ACEOF
9250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9251_ACEOF
9252
5ee754fc 9253fi
bec39cab 9254
5ee754fc
MK
9255done
9256
bec39cab
AC
9257
9258
9259for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9260do
bec39cab 9261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9262if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo "$as_me:$LINENO: checking for $ac_header" >&5
9264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9265if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267fi
b4e70030
JB
9268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9270else
9271 # Is the header compilable?
b4e70030
JB
9272echo "$as_me:$LINENO: checking $ac_header usability" >&5
9273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9274cat >conftest.$ac_ext <<_ACEOF
9275/* confdefs.h. */
9276_ACEOF
9277cat confdefs.h >>conftest.$ac_ext
9278cat >>conftest.$ac_ext <<_ACEOF
9279/* end confdefs.h. */
9280$ac_includes_default
9281#include <$ac_header>
9282_ACEOF
9283rm -f conftest.$ac_objext
9284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285 (eval $ac_compile) 2>conftest.er1
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
b4e70030
JB
9292 { ac_try='test -z "$ac_c_werror_flag"
9293 || test ! -s conftest.err'
bec39cab
AC
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; } &&
9299 { ac_try='test -s conftest.$ac_objext'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 (eval $ac_try) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 ac_header_compiler=yes
9306else
9307 echo "$as_me: failed program was:" >&5
9308sed 's/^/| /' conftest.$ac_ext >&5
9309
b4e70030 9310ac_header_compiler=no
bec39cab
AC
9311fi
9312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9314echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9315
9316# Is the header present?
b4e70030
JB
9317echo "$as_me:$LINENO: checking $ac_header presence" >&5
9318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9319cat >conftest.$ac_ext <<_ACEOF
9320/* confdefs.h. */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h. */
9325#include <$ac_header>
9326_ACEOF
9327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9329 ac_status=$?
9330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } >/dev/null; then
9335 if test -s conftest.err; then
9336 ac_cpp_err=$ac_c_preproc_warn_flag
9337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9338 else
9339 ac_cpp_err=
9340 fi
9341else
9342 ac_cpp_err=yes
5ee754fc 9343fi
bec39cab
AC
9344if test -z "$ac_cpp_err"; then
9345 ac_header_preproc=yes
5ee754fc 9346else
bec39cab
AC
9347 echo "$as_me: failed program was:" >&5
9348sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_header_preproc=no
5ee754fc 9351fi
bec39cab 9352rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9354echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9355
bec39cab
AC
9356# So? What about this header?
9357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9358 yes:no: )
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9363 ac_header_preproc=yes
9364 ;;
9365 no:yes:* )
9366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9378 (
9379 cat <<\_ASBOX
9380## ------------------------------------------ ##
9381## Report this to the AC_PACKAGE_NAME lists. ##
9382## ------------------------------------------ ##
9383_ASBOX
9384 ) |
9385 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9386 ;;
9387esac
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
AC
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392else
9393 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9394fi
b4e70030
JB
9395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9397
5ee754fc 9398fi
bec39cab
AC
9399if test `eval echo '${'$as_ac_Header'}'` = yes; then
9400 cat >>confdefs.h <<_ACEOF
9401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9402_ACEOF
9403
5ee754fc 9404fi
bec39cab 9405
5ee754fc
MK
9406done
9407
bec39cab
AC
9408
9409
9410for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9411do
bec39cab 9412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9413if eval "test \"\${$as_ac_Header+set}\" = set"; then
9414 echo "$as_me:$LINENO: checking for $ac_header" >&5
9415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418fi
b4e70030
JB
9419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9421else
9422 # Is the header compilable?
b4e70030
JB
9423echo "$as_me:$LINENO: checking $ac_header usability" >&5
9424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9425cat >conftest.$ac_ext <<_ACEOF
9426/* confdefs.h. */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h. */
9431$ac_includes_default
9432#include <$ac_header>
9433_ACEOF
9434rm -f conftest.$ac_objext
9435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436 (eval $ac_compile) 2>conftest.er1
9437 ac_status=$?
9438 grep -v '^ *+' conftest.er1 >conftest.err
9439 rm -f conftest.er1
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
b4e70030
JB
9443 { ac_try='test -z "$ac_c_werror_flag"
9444 || test ! -s conftest.err'
bec39cab
AC
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } &&
9450 { ac_try='test -s conftest.$ac_objext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 ac_header_compiler=yes
9457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
b4e70030 9461ac_header_compiler=no
bec39cab
AC
9462fi
9463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9465echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9466
9467# Is the header present?
b4e70030
JB
9468echo "$as_me:$LINENO: checking $ac_header presence" >&5
9469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9470cat >conftest.$ac_ext <<_ACEOF
9471/* confdefs.h. */
9472_ACEOF
9473cat confdefs.h >>conftest.$ac_ext
9474cat >>conftest.$ac_ext <<_ACEOF
9475/* end confdefs.h. */
9476#include <$ac_header>
9477_ACEOF
9478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } >/dev/null; then
9486 if test -s conftest.err; then
9487 ac_cpp_err=$ac_c_preproc_warn_flag
9488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9489 else
9490 ac_cpp_err=
9491 fi
9492else
9493 ac_cpp_err=yes
5ee754fc 9494fi
bec39cab
AC
9495if test -z "$ac_cpp_err"; then
9496 ac_header_preproc=yes
5ee754fc 9497else
bec39cab
AC
9498 echo "$as_me: failed program was:" >&5
9499sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 ac_header_preproc=no
5ee754fc 9502fi
bec39cab 9503rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9505echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9506
bec39cab
AC
9507# So? What about this header?
9508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9509 yes:no: )
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9514 ac_header_preproc=yes
9515 ;;
9516 no:yes:* )
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9529 (
9530 cat <<\_ASBOX
9531## ------------------------------------------ ##
9532## Report this to the AC_PACKAGE_NAME lists. ##
9533## ------------------------------------------ ##
9534_ASBOX
9535 ) |
9536 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9537 ;;
9538esac
b4e70030
JB
9539echo "$as_me:$LINENO: checking for $ac_header" >&5
9540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9541if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543else
9544 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9545fi
b4e70030
JB
9546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9548
5ee754fc 9549fi
bec39cab
AC
9550if test `eval echo '${'$as_ac_Header'}'` = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9553_ACEOF
9554
5ee754fc 9555fi
bec39cab 9556
5ee754fc
MK
9557done
9558
bec39cab
AC
9559
9560for ac_header in sys/select.h
5ee754fc 9561do
bec39cab 9562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9563if eval "test \"\${$as_ac_Header+set}\" = set"; then
9564 echo "$as_me:$LINENO: checking for $ac_header" >&5
9565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9566if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568fi
b4e70030
JB
9569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9571else
9572 # Is the header compilable?
b4e70030
JB
9573echo "$as_me:$LINENO: checking $ac_header usability" >&5
9574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9575cat >conftest.$ac_ext <<_ACEOF
9576/* confdefs.h. */
9577_ACEOF
9578cat confdefs.h >>conftest.$ac_ext
9579cat >>conftest.$ac_ext <<_ACEOF
9580/* end confdefs.h. */
9581$ac_includes_default
9582#include <$ac_header>
9583_ACEOF
9584rm -f conftest.$ac_objext
9585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
b4e70030
JB
9593 { ac_try='test -z "$ac_c_werror_flag"
9594 || test ! -s conftest.err'
bec39cab
AC
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9606 ac_header_compiler=yes
9607else
9608 echo "$as_me: failed program was:" >&5
9609sed 's/^/| /' conftest.$ac_ext >&5
9610
b4e70030 9611ac_header_compiler=no
bec39cab
AC
9612fi
9613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9615echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9616
9617# Is the header present?
b4e70030
JB
9618echo "$as_me:$LINENO: checking $ac_header presence" >&5
9619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9620cat >conftest.$ac_ext <<_ACEOF
9621/* confdefs.h. */
9622_ACEOF
9623cat confdefs.h >>conftest.$ac_ext
9624cat >>conftest.$ac_ext <<_ACEOF
9625/* end confdefs.h. */
9626#include <$ac_header>
9627_ACEOF
9628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } >/dev/null; then
9636 if test -s conftest.err; then
9637 ac_cpp_err=$ac_c_preproc_warn_flag
9638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9639 else
9640 ac_cpp_err=
9641 fi
9642else
9643 ac_cpp_err=yes
5ee754fc 9644fi
bec39cab
AC
9645if test -z "$ac_cpp_err"; then
9646 ac_header_preproc=yes
5ee754fc 9647else
bec39cab
AC
9648 echo "$as_me: failed program was:" >&5
9649sed 's/^/| /' conftest.$ac_ext >&5
9650
9651 ac_header_preproc=no
5ee754fc 9652fi
bec39cab 9653rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9655echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9656
bec39cab
AC
9657# So? What about this header?
9658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9659 yes:no: )
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9664 ac_header_preproc=yes
9665 ;;
9666 no:yes:* )
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9679 (
9680 cat <<\_ASBOX
9681## ------------------------------------------ ##
9682## Report this to the AC_PACKAGE_NAME lists. ##
9683## ------------------------------------------ ##
9684_ASBOX
9685 ) |
9686 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9687 ;;
9688esac
b4e70030
JB
9689echo "$as_me:$LINENO: checking for $ac_header" >&5
9690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9691if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693else
9694 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9695fi
b4e70030
JB
9696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9698
5ee754fc 9699fi
bec39cab
AC
9700if test `eval echo '${'$as_ac_Header'}'` = yes; then
9701 cat >>confdefs.h <<_ACEOF
9702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9703_ACEOF
9704
5ee754fc 9705fi
bec39cab 9706
5ee754fc
MK
9707done
9708
bec39cab
AC
9709
9710for ac_header in sys/syscall.h
5ee754fc 9711do
bec39cab 9712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9713if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714 echo "$as_me:$LINENO: checking for $ac_header" >&5
9715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718fi
b4e70030
JB
9719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9721else
9722 # Is the header compilable?
b4e70030
JB
9723echo "$as_me:$LINENO: checking $ac_header usability" >&5
9724echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9725cat >conftest.$ac_ext <<_ACEOF
9726/* confdefs.h. */
9727_ACEOF
9728cat confdefs.h >>conftest.$ac_ext
9729cat >>conftest.$ac_ext <<_ACEOF
9730/* end confdefs.h. */
9731$ac_includes_default
9732#include <$ac_header>
9733_ACEOF
9734rm -f conftest.$ac_objext
9735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736 (eval $ac_compile) 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
b4e70030
JB
9743 { ac_try='test -z "$ac_c_werror_flag"
9744 || test ! -s conftest.err'
bec39cab
AC
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest.$ac_objext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 (eval $ac_try) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_header_compiler=yes
9757else
9758 echo "$as_me: failed program was:" >&5
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
b4e70030 9761ac_header_compiler=no
bec39cab
AC
9762fi
9763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9765echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9766
9767# Is the header present?
b4e70030
JB
9768echo "$as_me:$LINENO: checking $ac_header presence" >&5
9769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9770cat >conftest.$ac_ext <<_ACEOF
9771/* confdefs.h. */
9772_ACEOF
9773cat confdefs.h >>conftest.$ac_ext
9774cat >>conftest.$ac_ext <<_ACEOF
9775/* end confdefs.h. */
9776#include <$ac_header>
9777_ACEOF
9778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } >/dev/null; then
9786 if test -s conftest.err; then
9787 ac_cpp_err=$ac_c_preproc_warn_flag
9788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9789 else
9790 ac_cpp_err=
9791 fi
9792else
9793 ac_cpp_err=yes
5ee754fc 9794fi
bec39cab
AC
9795if test -z "$ac_cpp_err"; then
9796 ac_header_preproc=yes
5ee754fc 9797else
bec39cab
AC
9798 echo "$as_me: failed program was:" >&5
9799sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 ac_header_preproc=no
5ee754fc 9802fi
bec39cab 9803rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9805echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9806
bec39cab
AC
9807# So? What about this header?
9808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9809 yes:no: )
9810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9814 ac_header_preproc=yes
9815 ;;
9816 no:yes:* )
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9824echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9829 (
9830 cat <<\_ASBOX
9831## ------------------------------------------ ##
9832## Report this to the AC_PACKAGE_NAME lists. ##
9833## ------------------------------------------ ##
9834_ASBOX
9835 ) |
9836 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9837 ;;
9838esac
b4e70030
JB
9839echo "$as_me:$LINENO: checking for $ac_header" >&5
9840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9841if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843else
9844 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9845fi
b4e70030
JB
9846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9848
5ee754fc 9849fi
bec39cab
AC
9850if test `eval echo '${'$as_ac_Header'}'` = yes; then
9851 cat >>confdefs.h <<_ACEOF
9852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9853_ACEOF
9854
5ee754fc 9855fi
bec39cab 9856
5ee754fc
MK
9857done
9858
bec39cab
AC
9859
9860for ac_header in sys/types.h
5ee754fc 9861do
bec39cab 9862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9863if eval "test \"\${$as_ac_Header+set}\" = set"; then
9864 echo "$as_me:$LINENO: checking for $ac_header" >&5
9865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9866if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868fi
b4e70030
JB
9869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9871else
9872 # Is the header compilable?
b4e70030
JB
9873echo "$as_me:$LINENO: checking $ac_header usability" >&5
9874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9875cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
9881$ac_includes_default
9882#include <$ac_header>
9883_ACEOF
9884rm -f conftest.$ac_objext
9885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886 (eval $ac_compile) 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
b4e70030
JB
9893 { ac_try='test -z "$ac_c_werror_flag"
9894 || test ! -s conftest.err'
bec39cab
AC
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 (eval $ac_try) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest.$ac_objext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_header_compiler=yes
9907else
9908 echo "$as_me: failed program was:" >&5
9909sed 's/^/| /' conftest.$ac_ext >&5
9910
b4e70030 9911ac_header_compiler=no
bec39cab
AC
9912fi
9913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9914echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9915echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9916
9917# Is the header present?
b4e70030
JB
9918echo "$as_me:$LINENO: checking $ac_header presence" >&5
9919echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9920cat >conftest.$ac_ext <<_ACEOF
9921/* confdefs.h. */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
9925/* end confdefs.h. */
9926#include <$ac_header>
9927_ACEOF
9928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } >/dev/null; then
9936 if test -s conftest.err; then
9937 ac_cpp_err=$ac_c_preproc_warn_flag
9938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9939 else
9940 ac_cpp_err=
9941 fi
9942else
9943 ac_cpp_err=yes
5ee754fc 9944fi
bec39cab
AC
9945if test -z "$ac_cpp_err"; then
9946 ac_header_preproc=yes
5ee754fc 9947else
bec39cab
AC
9948 echo "$as_me: failed program was:" >&5
9949sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 ac_header_preproc=no
5ee754fc 9952fi
bec39cab 9953rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9954echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9955echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9956
bec39cab
AC
9957# So? What about this header?
9958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9959 yes:no: )
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9964 ac_header_preproc=yes
9965 ;;
9966 no:yes:* )
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9974echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9979 (
9980 cat <<\_ASBOX
9981## ------------------------------------------ ##
9982## Report this to the AC_PACKAGE_NAME lists. ##
9983## ------------------------------------------ ##
9984_ASBOX
9985 ) |
9986 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9987 ;;
9988esac
b4e70030
JB
9989echo "$as_me:$LINENO: checking for $ac_header" >&5
9990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9991if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993else
9994 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9995fi
b4e70030
JB
9996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9998
5ee754fc 9999fi
bec39cab
AC
10000if test `eval echo '${'$as_ac_Header'}'` = yes; then
10001 cat >>confdefs.h <<_ACEOF
10002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10003_ACEOF
10004
5ee754fc 10005fi
bec39cab 10006
5ee754fc
MK
10007done
10008
bec39cab
AC
10009
10010for ac_header in sys/user.h
5ee754fc 10011do
bec39cab 10012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10013echo "$as_me:$LINENO: checking for $ac_header" >&5
10014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10015if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10016 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10017else
7cb9022a 10018 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10019/* confdefs.h. */
10020_ACEOF
10021cat confdefs.h >>conftest.$ac_ext
10022cat >>conftest.$ac_ext <<_ACEOF
10023/* end confdefs.h. */
7cb9022a
MK
10024#if HAVE_SYS_PARAM_H
10025# include <sys/param.h>
10026#endif
10027
10028
bec39cab
AC
10029#include <$ac_header>
10030_ACEOF
10031rm -f conftest.$ac_objext
10032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10033 (eval $ac_compile) 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
b4e70030
JB
10040 { ac_try='test -z "$ac_c_werror_flag"
10041 || test ! -s conftest.err'
bec39cab
AC
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; } &&
10047 { ac_try='test -s conftest.$ac_objext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
7cb9022a 10053 eval "$as_ac_Header=yes"
bec39cab
AC
10054else
10055 echo "$as_me: failed program was:" >&5
10056sed 's/^/| /' conftest.$ac_ext >&5
10057
b4e70030 10058eval "$as_ac_Header=no"
bec39cab
AC
10059fi
10060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10061fi
b4e70030
JB
10062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10064if test `eval echo '${'$as_ac_Header'}'` = yes; then
10065 cat >>confdefs.h <<_ACEOF
10066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10067_ACEOF
10068
5ee754fc 10069fi
bec39cab 10070
5ee754fc
MK
10071done
10072
bec39cab
AC
10073
10074
10075for ac_header in sys/wait.h wait.h
5ee754fc 10076do
bec39cab 10077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10078if eval "test \"\${$as_ac_Header+set}\" = set"; then
10079 echo "$as_me:$LINENO: checking for $ac_header" >&5
10080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10081if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083fi
b4e70030
JB
10084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10086else
10087 # Is the header compilable?
b4e70030
JB
10088echo "$as_me:$LINENO: checking $ac_header usability" >&5
10089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10090cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h. */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h. */
10096$ac_includes_default
10097#include <$ac_header>
10098_ACEOF
10099rm -f conftest.$ac_objext
10100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101 (eval $ac_compile) 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
b4e70030
JB
10108 { ac_try='test -z "$ac_c_werror_flag"
10109 || test ! -s conftest.err'
bec39cab
AC
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; } &&
10115 { ac_try='test -s conftest.$ac_objext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 ac_header_compiler=yes
10122else
10123 echo "$as_me: failed program was:" >&5
10124sed 's/^/| /' conftest.$ac_ext >&5
10125
b4e70030 10126ac_header_compiler=no
bec39cab
AC
10127fi
10128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10130echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10131
10132# Is the header present?
b4e70030
JB
10133echo "$as_me:$LINENO: checking $ac_header presence" >&5
10134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10135cat >conftest.$ac_ext <<_ACEOF
10136/* confdefs.h. */
10137_ACEOF
10138cat confdefs.h >>conftest.$ac_ext
10139cat >>conftest.$ac_ext <<_ACEOF
10140/* end confdefs.h. */
10141#include <$ac_header>
10142_ACEOF
10143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } >/dev/null; then
10151 if test -s conftest.err; then
10152 ac_cpp_err=$ac_c_preproc_warn_flag
10153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10154 else
10155 ac_cpp_err=
10156 fi
10157else
10158 ac_cpp_err=yes
5ee754fc 10159fi
bec39cab
AC
10160if test -z "$ac_cpp_err"; then
10161 ac_header_preproc=yes
5ee754fc 10162else
bec39cab
AC
10163 echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
10166 ac_header_preproc=no
5ee754fc 10167fi
bec39cab 10168rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10170echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10171
bec39cab
AC
10172# So? What about this header?
10173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10174 yes:no: )
10175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10179 ac_header_preproc=yes
10180 ;;
10181 no:yes:* )
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10194 (
10195 cat <<\_ASBOX
10196## ------------------------------------------ ##
10197## Report this to the AC_PACKAGE_NAME lists. ##
10198## ------------------------------------------ ##
10199_ASBOX
10200 ) |
10201 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10202 ;;
10203esac
b4e70030
JB
10204echo "$as_me:$LINENO: checking for $ac_header" >&5
10205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10206if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208else
10209 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10210fi
b4e70030
JB
10211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10213
9608ab8b 10214fi
bec39cab
AC
10215if test `eval echo '${'$as_ac_Header'}'` = yes; then
10216 cat >>confdefs.h <<_ACEOF
10217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10218_ACEOF
10219
9608ab8b 10220fi
bec39cab 10221
9608ab8b 10222done
5ee754fc 10223
bec39cab
AC
10224
10225
10226
10227for ac_header in termios.h termio.h sgtty.h
5ee754fc 10228do
bec39cab 10229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10230if eval "test \"\${$as_ac_Header+set}\" = set"; then
10231 echo "$as_me:$LINENO: checking for $ac_header" >&5
10232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10233if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235fi
b4e70030
JB
10236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10238else
10239 # Is the header compilable?
b4e70030
JB
10240echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10242cat >conftest.$ac_ext <<_ACEOF
10243/* confdefs.h. */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h. */
10248$ac_includes_default
10249#include <$ac_header>
10250_ACEOF
10251rm -f conftest.$ac_objext
10252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
b4e70030
JB
10260 { ac_try='test -z "$ac_c_werror_flag"
10261 || test ! -s conftest.err'
bec39cab
AC
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest.$ac_objext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_header_compiler=yes
10274else
10275 echo "$as_me: failed program was:" >&5
10276sed 's/^/| /' conftest.$ac_ext >&5
10277
b4e70030 10278ac_header_compiler=no
bec39cab
AC
10279fi
10280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10282echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10283
10284# Is the header present?
b4e70030
JB
10285echo "$as_me:$LINENO: checking $ac_header presence" >&5
10286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10287cat >conftest.$ac_ext <<_ACEOF
10288/* confdefs.h. */
10289_ACEOF
10290cat confdefs.h >>conftest.$ac_ext
10291cat >>conftest.$ac_ext <<_ACEOF
10292/* end confdefs.h. */
10293#include <$ac_header>
10294_ACEOF
10295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } >/dev/null; then
10303 if test -s conftest.err; then
10304 ac_cpp_err=$ac_c_preproc_warn_flag
10305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10306 else
10307 ac_cpp_err=
10308 fi
10309else
10310 ac_cpp_err=yes
9608ab8b 10311fi
bec39cab
AC
10312if test -z "$ac_cpp_err"; then
10313 ac_header_preproc=yes
9608ab8b 10314else
bec39cab
AC
10315 echo "$as_me: failed program was:" >&5
10316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 ac_header_preproc=no
9608ab8b 10319fi
bec39cab 10320rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10323
bec39cab
AC
10324# So? What about this header?
10325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10326 yes:no: )
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10331 ac_header_preproc=yes
10332 ;;
10333 no:yes:* )
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10337echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10341echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10346 (
10347 cat <<\_ASBOX
10348## ------------------------------------------ ##
10349## Report this to the AC_PACKAGE_NAME lists. ##
10350## ------------------------------------------ ##
10351_ASBOX
10352 ) |
10353 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10354 ;;
10355esac
b4e70030
JB
10356echo "$as_me:$LINENO: checking for $ac_header" >&5
10357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10358if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360else
10361 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10362fi
b4e70030
JB
10363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10365
9608ab8b 10366fi
bec39cab
AC
10367if test `eval echo '${'$as_ac_Header'}'` = yes; then
10368 cat >>confdefs.h <<_ACEOF
10369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10370_ACEOF
10371
9608ab8b 10372fi
bec39cab 10373
5ee754fc 10374done
9608ab8b 10375
bec39cab
AC
10376
10377for ac_header in unistd.h
78434e59 10378do
bec39cab 10379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10380if eval "test \"\${$as_ac_Header+set}\" = set"; then
10381 echo "$as_me:$LINENO: checking for $ac_header" >&5
10382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10383if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385fi
b4e70030
JB
10386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10388else
10389 # Is the header compilable?
b4e70030
JB
10390echo "$as_me:$LINENO: checking $ac_header usability" >&5
10391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10392cat >conftest.$ac_ext <<_ACEOF
10393/* confdefs.h. */
10394_ACEOF
10395cat confdefs.h >>conftest.$ac_ext
10396cat >>conftest.$ac_ext <<_ACEOF
10397/* end confdefs.h. */
10398$ac_includes_default
10399#include <$ac_header>
10400_ACEOF
10401rm -f conftest.$ac_objext
10402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403 (eval $ac_compile) 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
b4e70030
JB
10410 { ac_try='test -z "$ac_c_werror_flag"
10411 || test ! -s conftest.err'
bec39cab
AC
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; } &&
10417 { ac_try='test -s conftest.$ac_objext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10423 ac_header_compiler=yes
10424else
10425 echo "$as_me: failed program was:" >&5
10426sed 's/^/| /' conftest.$ac_ext >&5
10427
b4e70030 10428ac_header_compiler=no
bec39cab
AC
10429fi
10430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10432echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10433
10434# Is the header present?
b4e70030
JB
10435echo "$as_me:$LINENO: checking $ac_header presence" >&5
10436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10437cat >conftest.$ac_ext <<_ACEOF
10438/* confdefs.h. */
10439_ACEOF
10440cat confdefs.h >>conftest.$ac_ext
10441cat >>conftest.$ac_ext <<_ACEOF
10442/* end confdefs.h. */
10443#include <$ac_header>
10444_ACEOF
10445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } >/dev/null; then
10453 if test -s conftest.err; then
10454 ac_cpp_err=$ac_c_preproc_warn_flag
10455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10456 else
10457 ac_cpp_err=
10458 fi
10459else
10460 ac_cpp_err=yes
78434e59 10461fi
bec39cab
AC
10462if test -z "$ac_cpp_err"; then
10463 ac_header_preproc=yes
78434e59 10464else
bec39cab
AC
10465 echo "$as_me: failed program was:" >&5
10466sed 's/^/| /' conftest.$ac_ext >&5
10467
10468 ac_header_preproc=no
78434e59 10469fi
bec39cab 10470rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10472echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 10473
bec39cab
AC
10474# So? What about this header?
10475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10476 yes:no: )
10477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10481 ac_header_preproc=yes
10482 ;;
10483 no:yes:* )
10484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10496 (
10497 cat <<\_ASBOX
10498## ------------------------------------------ ##
10499## Report this to the AC_PACKAGE_NAME lists. ##
10500## ------------------------------------------ ##
10501_ASBOX
10502 ) |
10503 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10504 ;;
10505esac
b4e70030
JB
10506echo "$as_me:$LINENO: checking for $ac_header" >&5
10507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10508if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10510else
10511 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 10512fi
b4e70030
JB
10513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10515
086ec9eb 10516fi
bec39cab
AC
10517if test `eval echo '${'$as_ac_Header'}'` = yes; then
10518 cat >>confdefs.h <<_ACEOF
10519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10520_ACEOF
10521
086ec9eb 10522fi
bec39cab 10523
086ec9eb
MK
10524done
10525
9608ab8b 10526
b1d19a62 10527# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
10528# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10529# think that we don't have <curses.h> if we're using GCC.
10530case $host_os in
b1d19a62 10531 solaris2.[789])
5ee754fc 10532 if test "$GCC" = yes; then
bec39cab
AC
10533
10534cat >>confdefs.h <<\_ACEOF
5ee754fc 10535#define _MSE_INT_H 1
bec39cab 10536_ACEOF
5ee754fc
MK
10537
10538 fi ;;
10539esac
bec39cab
AC
10540
10541
10542
10543
10544for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 10545do
bec39cab 10546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10547if eval "test \"\${$as_ac_Header+set}\" = set"; then
10548 echo "$as_me:$LINENO: checking for $ac_header" >&5
10549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10550if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552fi
b4e70030
JB
10553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10555else
10556 # Is the header compilable?
b4e70030
JB
10557echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10559cat >conftest.$ac_ext <<_ACEOF
10560/* confdefs.h. */
10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
10564/* end confdefs.h. */
10565$ac_includes_default
10566#include <$ac_header>
10567_ACEOF
10568rm -f conftest.$ac_objext
10569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10570 (eval $ac_compile) 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
b4e70030
JB
10577 { ac_try='test -z "$ac_c_werror_flag"
10578 || test ! -s conftest.err'
bec39cab
AC
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest.$ac_objext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_header_compiler=yes
10591else
10592 echo "$as_me: failed program was:" >&5
10593sed 's/^/| /' conftest.$ac_ext >&5
10594
b4e70030 10595ac_header_compiler=no
bec39cab
AC
10596fi
10597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10598echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10599echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10600
10601# Is the header present?
b4e70030
JB
10602echo "$as_me:$LINENO: checking $ac_header presence" >&5
10603echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10604cat >conftest.$ac_ext <<_ACEOF
10605/* confdefs.h. */
10606_ACEOF
10607cat confdefs.h >>conftest.$ac_ext
10608cat >>conftest.$ac_ext <<_ACEOF
10609/* end confdefs.h. */
10610#include <$ac_header>
10611_ACEOF
10612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } >/dev/null; then
10620 if test -s conftest.err; then
10621 ac_cpp_err=$ac_c_preproc_warn_flag
10622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10623 else
10624 ac_cpp_err=
10625 fi
10626else
10627 ac_cpp_err=yes
c906108c 10628fi
bec39cab
AC
10629if test -z "$ac_cpp_err"; then
10630 ac_header_preproc=yes
10631else
10632 echo "$as_me: failed program was:" >&5
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
10635 ac_header_preproc=no
c906108c 10636fi
bec39cab 10637rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10638echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10639echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10640
10641# So? What about this header?
10642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10643 yes:no: )
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10645echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10647echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10648 ac_header_preproc=yes
10649 ;;
10650 no:yes:* )
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10654echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10656echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10658echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10660echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10662echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10663 (
10664 cat <<\_ASBOX
10665## ------------------------------------------ ##
10666## Report this to the AC_PACKAGE_NAME lists. ##
10667## ------------------------------------------ ##
10668_ASBOX
10669 ) |
10670 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10671 ;;
10672esac
b4e70030
JB
10673echo "$as_me:$LINENO: checking for $ac_header" >&5
10674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10675if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10676 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 10677else
bec39cab 10678 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10679fi
b4e70030
JB
10680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10682
10683fi
10684if test `eval echo '${'$as_ac_Header'}'` = yes; then
10685 cat >>confdefs.h <<_ACEOF
10686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10687_ACEOF
10688
10689fi
10690
5ee754fc 10691done
c906108c 10692
bec39cab 10693
065a1afc 10694for ac_header in ncurses/term.h
3b78cdbb 10695do
bec39cab 10696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10697if eval "test \"\${$as_ac_Header+set}\" = set"; then
10698 echo "$as_me:$LINENO: checking for $ac_header" >&5
10699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10700if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10702fi
b4e70030
JB
10703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10705else
10706 # Is the header compilable?
b4e70030
JB
10707echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10709cat >conftest.$ac_ext <<_ACEOF
10710/* confdefs.h. */
10711_ACEOF
10712cat confdefs.h >>conftest.$ac_ext
10713cat >>conftest.$ac_ext <<_ACEOF
10714/* end confdefs.h. */
10715$ac_includes_default
10716#include <$ac_header>
10717_ACEOF
10718rm -f conftest.$ac_objext
10719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720 (eval $ac_compile) 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
b4e70030
JB
10727 { ac_try='test -z "$ac_c_werror_flag"
10728 || test ! -s conftest.err'
bec39cab
AC
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; } &&
10734 { ac_try='test -s conftest.$ac_objext'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_header_compiler=yes
10741else
10742 echo "$as_me: failed program was:" >&5
10743sed 's/^/| /' conftest.$ac_ext >&5
10744
b4e70030 10745ac_header_compiler=no
bec39cab
AC
10746fi
10747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10749echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10750
10751# Is the header present?
b4e70030
JB
10752echo "$as_me:$LINENO: checking $ac_header presence" >&5
10753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10754cat >conftest.$ac_ext <<_ACEOF
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
10760#include <$ac_header>
10761_ACEOF
10762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } >/dev/null; then
10770 if test -s conftest.err; then
10771 ac_cpp_err=$ac_c_preproc_warn_flag
10772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10773 else
10774 ac_cpp_err=
10775 fi
10776else
10777 ac_cpp_err=yes
3b78cdbb 10778fi
bec39cab
AC
10779if test -z "$ac_cpp_err"; then
10780 ac_header_preproc=yes
10781else
10782 echo "$as_me: failed program was:" >&5
10783sed 's/^/| /' conftest.$ac_ext >&5
10784
10785 ac_header_preproc=no
3b78cdbb 10786fi
bec39cab 10787rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10790
10791# So? What about this header?
10792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10793 yes:no: )
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798 ac_header_preproc=yes
10799 ;;
10800 no:yes:* )
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10804echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10808echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10813 (
10814 cat <<\_ASBOX
10815## ------------------------------------------ ##
10816## Report this to the AC_PACKAGE_NAME lists. ##
10817## ------------------------------------------ ##
10818_ASBOX
10819 ) |
10820 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10821 ;;
10822esac
b4e70030
JB
10823echo "$as_me:$LINENO: checking for $ac_header" >&5
10824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10825if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10826 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 10827else
bec39cab
AC
10828 eval "$as_ac_Header=\$ac_header_preproc"
10829fi
b4e70030
JB
10830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10832
3b78cdbb 10833fi
bec39cab
AC
10834if test `eval echo '${'$as_ac_Header'}'` = yes; then
10835 cat >>confdefs.h <<_ACEOF
10836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10837_ACEOF
10838
10839fi
10840
3b78cdbb
DA
10841done
10842
c906108c 10843
065a1afc
JB
10844for ac_header in term.h
10845do
10846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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
065a1afc
JB
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851else
10852 cat >conftest.$ac_ext <<_ACEOF
10853/* confdefs.h. */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h. */
10858#if HAVE_CURSES_H
10859# include <curses.h>
10860#endif
10861
10862
10863#include <$ac_header>
10864_ACEOF
10865rm -f conftest.$ac_objext
10866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10867 (eval $ac_compile) 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
b4e70030
JB
10874 { ac_try='test -z "$ac_c_werror_flag"
10875 || test ! -s conftest.err'
065a1afc
JB
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try='test -s conftest.$ac_objext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 eval "$as_ac_Header=yes"
10888else
10889 echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
b4e70030 10892eval "$as_ac_Header=no"
065a1afc
JB
10893fi
10894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10895fi
b4e70030
JB
10896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
10898if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901_ACEOF
10902
10903fi
10904
10905done
10906
10907
5ee754fc
MK
10908# FIXME: kettenis/20030102: In most cases we include these
10909# unconditionally, so what's the point in checking these?
bec39cab
AC
10910
10911
10912for ac_header in ctype.h time.h
c906108c 10913do
bec39cab 10914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10915if eval "test \"\${$as_ac_Header+set}\" = set"; then
10916 echo "$as_me:$LINENO: checking for $ac_header" >&5
10917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10918if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920fi
b4e70030
JB
10921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10923else
10924 # Is the header compilable?
b4e70030
JB
10925echo "$as_me:$LINENO: checking $ac_header usability" >&5
10926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10927cat >conftest.$ac_ext <<_ACEOF
10928/* confdefs.h. */
10929_ACEOF
10930cat confdefs.h >>conftest.$ac_ext
10931cat >>conftest.$ac_ext <<_ACEOF
10932/* end confdefs.h. */
10933$ac_includes_default
10934#include <$ac_header>
10935_ACEOF
10936rm -f conftest.$ac_objext
10937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938 (eval $ac_compile) 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
b4e70030
JB
10945 { ac_try='test -z "$ac_c_werror_flag"
10946 || test ! -s conftest.err'
bec39cab
AC
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest.$ac_objext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_header_compiler=yes
10959else
10960 echo "$as_me: failed program was:" >&5
10961sed 's/^/| /' conftest.$ac_ext >&5
10962
b4e70030 10963ac_header_compiler=no
bec39cab
AC
10964fi
10965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10967echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10968
10969# Is the header present?
b4e70030
JB
10970echo "$as_me:$LINENO: checking $ac_header presence" >&5
10971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10972cat >conftest.$ac_ext <<_ACEOF
10973/* confdefs.h. */
10974_ACEOF
10975cat confdefs.h >>conftest.$ac_ext
10976cat >>conftest.$ac_ext <<_ACEOF
10977/* end confdefs.h. */
10978#include <$ac_header>
10979_ACEOF
10980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } >/dev/null; then
10988 if test -s conftest.err; then
10989 ac_cpp_err=$ac_c_preproc_warn_flag
10990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10991 else
10992 ac_cpp_err=
10993 fi
10994else
10995 ac_cpp_err=yes
c906108c 10996fi
bec39cab
AC
10997if test -z "$ac_cpp_err"; then
10998 ac_header_preproc=yes
10999else
11000 echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 ac_header_preproc=no
c906108c 11004fi
bec39cab 11005rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11007echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11008
11009# So? What about this header?
11010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11011 yes:no: )
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11016 ac_header_preproc=yes
11017 ;;
11018 no:yes:* )
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11022echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11026echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11031 (
11032 cat <<\_ASBOX
11033## ------------------------------------------ ##
11034## Report this to the AC_PACKAGE_NAME lists. ##
11035## ------------------------------------------ ##
11036_ASBOX
11037 ) |
11038 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11039 ;;
11040esac
b4e70030
JB
11041echo "$as_me:$LINENO: checking for $ac_header" >&5
11042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11043if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11044 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11045else
bec39cab
AC
11046 eval "$as_ac_Header=\$ac_header_preproc"
11047fi
b4e70030
JB
11048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11050
11051fi
11052if test `eval echo '${'$as_ac_Header'}'` = yes; then
11053 cat >>confdefs.h <<_ACEOF
11054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11055_ACEOF
11056
c906108c 11057fi
bec39cab 11058
c906108c
SS
11059done
11060
5ee754fc 11061
4e8d927d 11062# Create a header we can use portably to get the standard integer types.
666ec76f 11063
4e8d927d
DJ
11064
11065inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11066
11067acx_cv_header_stdint=stddef.h
11068acx_cv_header_stdint_kind="(already complete)"
11069for i in stdint.h $inttype_headers; do
11070 unset ac_cv_type_uintptr_t
11071 unset ac_cv_type_uintmax_t
11072 unset ac_cv_type_int_least32_t
11073 unset ac_cv_type_int_fast32_t
11074 unset ac_cv_type_uint64_t
11075 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11076 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11077echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 11078if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 11079 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 11080else
bec39cab
AC
11081 cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h. */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h. */
4e8d927d
DJ
11087#include <sys/types.h>
11088#include <$i>
11089
bec39cab
AC
11090int
11091main ()
11092{
b4e70030 11093if ((uintmax_t *) 0)
4e8d927d 11094 return 0;
b4e70030 11095if (sizeof (uintmax_t))
4e8d927d
DJ
11096 return 0;
11097 ;
bec39cab
AC
11098 return 0;
11099}
11100_ACEOF
11101rm -f conftest.$ac_objext
11102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103 (eval $ac_compile) 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
b4e70030
JB
11110 { ac_try='test -z "$ac_c_werror_flag"
11111 || test ! -s conftest.err'
bec39cab
AC
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; } &&
11117 { ac_try='test -s conftest.$ac_objext'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
4e8d927d 11123 ac_cv_type_uintmax_t=yes
40a7debc 11124else
bec39cab
AC
11125 echo "$as_me: failed program was:" >&5
11126sed 's/^/| /' conftest.$ac_ext >&5
11127
b4e70030 11128ac_cv_type_uintmax_t=no
40a7debc 11129fi
bec39cab 11130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11131fi
b4e70030
JB
11132echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11133echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11134if test $ac_cv_type_uintmax_t = yes; then
11135 acx_cv_header_stdint=$i
666ec76f 11136else
4e8d927d 11137 continue
666ec76f 11138fi
4e8d927d 11139
b4e70030
JB
11140 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11141echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11142if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144else
11145 cat >conftest.$ac_ext <<_ACEOF
11146/* confdefs.h. */
11147_ACEOF
11148cat confdefs.h >>conftest.$ac_ext
11149cat >>conftest.$ac_ext <<_ACEOF
11150/* end confdefs.h. */
4e8d927d
DJ
11151#include <sys/types.h>
11152#include <$i>
11153
666ec76f
MK
11154int
11155main ()
11156{
b4e70030 11157if ((uintptr_t *) 0)
4e8d927d 11158 return 0;
b4e70030 11159if (sizeof (uintptr_t))
4e8d927d 11160 return 0;
666ec76f
MK
11161 ;
11162 return 0;
11163}
11164_ACEOF
11165rm -f conftest.$ac_objext
11166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11167 (eval $ac_compile) 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } &&
b4e70030
JB
11174 { ac_try='test -z "$ac_c_werror_flag"
11175 || test ! -s conftest.err'
666ec76f
MK
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest.$ac_objext'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
4e8d927d 11187 ac_cv_type_uintptr_t=yes
666ec76f
MK
11188else
11189 echo "$as_me: failed program was:" >&5
11190sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11191
b4e70030 11192ac_cv_type_uintptr_t=no
a3828db0
MK
11193fi
11194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11195fi
b4e70030
JB
11196echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11197echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11198if test $ac_cv_type_uintptr_t = yes; then
11199 :
a3828db0 11200else
4e8d927d 11201 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11202fi
4e8d927d 11203
b4e70030
JB
11204 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11205echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11206if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208else
11209 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11210/* confdefs.h. */
11211_ACEOF
11212cat confdefs.h >>conftest.$ac_ext
11213cat >>conftest.$ac_ext <<_ACEOF
11214/* end confdefs.h. */
4e8d927d
DJ
11215#include <sys/types.h>
11216#include <$i>
11217
bec39cab
AC
11218int
11219main ()
11220{
b4e70030 11221if ((int_least32_t *) 0)
4e8d927d 11222 return 0;
b4e70030 11223if (sizeof (int_least32_t))
4e8d927d 11224 return 0;
bec39cab
AC
11225 ;
11226 return 0;
11227}
11228_ACEOF
11229rm -f conftest.$ac_objext
11230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11231 (eval $ac_compile) 2>conftest.er1
11232 ac_status=$?
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } &&
b4e70030
JB
11238 { ac_try='test -z "$ac_c_werror_flag"
11239 || test ! -s conftest.err'
bec39cab
AC
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; } &&
11245 { ac_try='test -s conftest.$ac_objext'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
4e8d927d 11251 ac_cv_type_int_least32_t=yes
b9362cc7 11252else
bec39cab
AC
11253 echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
b4e70030 11256ac_cv_type_int_least32_t=no
b9362cc7 11257fi
bec39cab 11258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11259fi
b4e70030
JB
11260echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11261echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11262if test $ac_cv_type_int_least32_t = yes; then
11263 :
a3828db0 11264else
4e8d927d 11265 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11266fi
5ee754fc 11267
b4e70030
JB
11268 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11269echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11270if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273 cat >conftest.$ac_ext <<_ACEOF
11274/* confdefs.h. */
11275_ACEOF
11276cat confdefs.h >>conftest.$ac_ext
11277cat >>conftest.$ac_ext <<_ACEOF
11278/* end confdefs.h. */
4e8d927d
DJ
11279#include <sys/types.h>
11280#include <$i>
11281
bec39cab
AC
11282int
11283main ()
11284{
b4e70030 11285if ((int_fast32_t *) 0)
4e8d927d 11286 return 0;
b4e70030 11287if (sizeof (int_fast32_t))
4e8d927d 11288 return 0;
bec39cab
AC
11289 ;
11290 return 0;
11291}
11292_ACEOF
11293rm -f conftest.$ac_objext
11294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295 (eval $ac_compile) 2>conftest.er1
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
b4e70030
JB
11302 { ac_try='test -z "$ac_c_werror_flag"
11303 || test ! -s conftest.err'
bec39cab
AC
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
4e8d927d 11315 ac_cv_type_int_fast32_t=yes
c906108c 11316else
bec39cab
AC
11317 echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
b4e70030 11320ac_cv_type_int_fast32_t=no
c906108c 11321fi
bec39cab 11322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11323fi
b4e70030
JB
11324echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11325echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
11326if test $ac_cv_type_int_fast32_t = yes; then
11327 :
a3828db0 11328else
4e8d927d 11329 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11330fi
4e8d927d 11331
b4e70030
JB
11332 echo "$as_me:$LINENO: checking for uint64_t" >&5
11333echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11334if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336else
11337 cat >conftest.$ac_ext <<_ACEOF
11338/* confdefs.h. */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h. */
4e8d927d
DJ
11343#include <sys/types.h>
11344#include <$i>
11345
bec39cab
AC
11346int
11347main ()
11348{
b4e70030 11349if ((uint64_t *) 0)
4e8d927d 11350 return 0;
b4e70030 11351if (sizeof (uint64_t))
4e8d927d 11352 return 0;
bec39cab
AC
11353 ;
11354 return 0;
11355}
11356_ACEOF
11357rm -f conftest.$ac_objext
11358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359 (eval $ac_compile) 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
b4e70030
JB
11366 { ac_try='test -z "$ac_c_werror_flag"
11367 || test ! -s conftest.err'
bec39cab
AC
11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11370 ac_status=$?
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest.$ac_objext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
4e8d927d 11379 ac_cv_type_uint64_t=yes
c906108c 11380else
bec39cab
AC
11381 echo "$as_me: failed program was:" >&5
11382sed 's/^/| /' conftest.$ac_ext >&5
11383
b4e70030 11384ac_cv_type_uint64_t=no
c906108c 11385fi
bec39cab 11386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11387fi
b4e70030
JB
11388echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11389echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
11390if test $ac_cv_type_uint64_t = yes; then
11391 :
a3828db0 11392else
4e8d927d 11393 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
11394fi
11395
4e8d927d
DJ
11396 break
11397done
11398if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 11399 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 11400 for i in stdint.h $inttype_headers; do
3841debe 11401 unset ac_cv_type_uintptr_t
4e8d927d
DJ
11402 unset ac_cv_type_uint32_t
11403 unset ac_cv_type_uint64_t
11404 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11405 echo "$as_me:$LINENO: checking for uint32_t" >&5
11406echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 11407if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 11408 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 11409else
bec39cab
AC
11410 cat >conftest.$ac_ext <<_ACEOF
11411/* confdefs.h. */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h. */
4e8d927d
DJ
11416#include <sys/types.h>
11417#include <$i>
11418
a3828db0
MK
11419int
11420main ()
11421{
b4e70030 11422if ((uint32_t *) 0)
4e8d927d 11423 return 0;
b4e70030 11424if (sizeof (uint32_t))
4e8d927d 11425 return 0;
a3828db0
MK
11426 ;
11427 return 0;
11428}
bec39cab
AC
11429_ACEOF
11430rm -f conftest.$ac_objext
11431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11432 (eval $ac_compile) 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
b4e70030
JB
11439 { ac_try='test -z "$ac_c_werror_flag"
11440 || test ! -s conftest.err'
bec39cab
AC
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest.$ac_objext'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
4e8d927d 11452 ac_cv_type_uint32_t=yes
bce58c09 11453else
bec39cab
AC
11454 echo "$as_me: failed program was:" >&5
11455sed 's/^/| /' conftest.$ac_ext >&5
11456
b4e70030 11457ac_cv_type_uint32_t=no
bce58c09 11458fi
bec39cab 11459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 11460fi
b4e70030
JB
11461echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11462echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
11463if test $ac_cv_type_uint32_t = yes; then
11464 acx_cv_header_stdint=$i
a3828db0 11465else
4e8d927d 11466 continue
e5a7de23 11467fi
4e8d927d 11468
b4e70030
JB
11469 echo "$as_me:$LINENO: checking for uint64_t" >&5
11470echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11471if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473else
11474 cat >conftest.$ac_ext <<_ACEOF
11475/* confdefs.h. */
11476_ACEOF
11477cat confdefs.h >>conftest.$ac_ext
11478cat >>conftest.$ac_ext <<_ACEOF
11479/* end confdefs.h. */
4e8d927d
DJ
11480#include <sys/types.h>
11481#include <$i>
11482
e5a7de23
EZ
11483int
11484main ()
11485{
b4e70030 11486if ((uint64_t *) 0)
4e8d927d 11487 return 0;
b4e70030 11488if (sizeof (uint64_t))
4e8d927d 11489 return 0;
e5a7de23
EZ
11490 ;
11491 return 0;
11492}
11493_ACEOF
11494rm -f conftest.$ac_objext
11495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11496 (eval $ac_compile) 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
b4e70030
JB
11503 { ac_try='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
e5a7de23
EZ
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest.$ac_objext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
4e8d927d 11516 ac_cv_type_uint64_t=yes
e5a7de23
EZ
11517else
11518 echo "$as_me: failed program was:" >&5
11519sed 's/^/| /' conftest.$ac_ext >&5
11520
b4e70030 11521ac_cv_type_uint64_t=no
e5a7de23
EZ
11522fi
11523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11524fi
b4e70030
JB
11525echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11526echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
11527
11528 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11529echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11530if test "${ac_cv_type_uintptr_t+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532else
11533 cat >conftest.$ac_ext <<_ACEOF
11534/* confdefs.h. */
11535_ACEOF
11536cat confdefs.h >>conftest.$ac_ext
11537cat >>conftest.$ac_ext <<_ACEOF
11538/* end confdefs.h. */
11539#include <sys/types.h>
11540#include <$i>
11541
11542int
11543main ()
11544{
11545if ((uintptr_t *) 0)
11546 return 0;
11547if (sizeof (uintptr_t))
11548 return 0;
11549 ;
11550 return 0;
11551}
11552_ACEOF
11553rm -f conftest.$ac_objext
11554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555 (eval $ac_compile) 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_c_werror_flag"
11563 || test ! -s conftest.err'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest.$ac_objext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 ac_cv_type_uintptr_t=yes
e5a7de23 11576else
3841debe
DJ
11577 echo "$as_me: failed program was:" >&5
11578sed 's/^/| /' conftest.$ac_ext >&5
11579
11580ac_cv_type_uintptr_t=no
4e8d927d 11581fi
3841debe
DJ
11582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11583fi
11584echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11585echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 11586
4e8d927d
DJ
11587 break
11588 done
e5a7de23 11589fi
4e8d927d
DJ
11590if test "$acx_cv_header_stdint" = stddef.h; then
11591 acx_cv_header_stdint_kind="(u_intXX_t style)"
11592 for i in sys/types.h $inttype_headers; do
11593 unset ac_cv_type_u_int32_t
11594 unset ac_cv_type_u_int64_t
11595 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
11596 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11597echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 11598if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600else
11601 cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
4e8d927d
DJ
11607#include <sys/types.h>
11608#include <$i>
11609
e5a7de23
EZ
11610int
11611main ()
11612{
b4e70030 11613if ((u_int32_t *) 0)
4e8d927d 11614 return 0;
b4e70030 11615if (sizeof (u_int32_t))
4e8d927d 11616 return 0;
e5a7de23
EZ
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext
11622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
b4e70030
JB
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
e5a7de23
EZ
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
4e8d927d 11643 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
11644else
11645 echo "$as_me: failed program was:" >&5
11646sed 's/^/| /' conftest.$ac_ext >&5
11647
b4e70030 11648ac_cv_type_u_int32_t=no
e5a7de23
EZ
11649fi
11650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11651fi
b4e70030
JB
11652echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11653echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
11654if test $ac_cv_type_u_int32_t = yes; then
11655 acx_cv_header_stdint=$i
e5a7de23 11656else
4e8d927d 11657 continue
a3828db0 11658fi
5ee754fc 11659
b4e70030
JB
11660 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11661echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 11662if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664else
11665 cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
4e8d927d
DJ
11671#include <sys/types.h>
11672#include <$i>
11673
bec39cab
AC
11674int
11675main ()
11676{
b4e70030 11677if ((u_int64_t *) 0)
4e8d927d 11678 return 0;
b4e70030 11679if (sizeof (u_int64_t))
4e8d927d 11680 return 0;
bec39cab
AC
11681 ;
11682 return 0;
11683}
11684_ACEOF
a3828db0
MK
11685rm -f conftest.$ac_objext
11686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
b4e70030
JB
11694 { ac_try='test -z "$ac_c_werror_flag"
11695 || test ! -s conftest.err'
bec39cab
AC
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
a3828db0 11701 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
4e8d927d 11707 ac_cv_type_u_int64_t=yes
bec39cab
AC
11708else
11709 echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
b4e70030 11712ac_cv_type_u_int64_t=no
4e8d927d 11713fi
4e8d927d
DJ
11714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715fi
b4e70030
JB
11716echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11717echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
11718
11719 break
11720 done
11721fi
11722if test "$acx_cv_header_stdint" = stddef.h; then
11723 acx_cv_header_stdint_kind="(using manual detection)"
11724fi
11725
11726test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11727test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11728test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11729test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11730test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11731
11732# ----------------- Summarize what we found so far
11733
b4e70030
JB
11734echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
11735echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 11736
b4e70030 11737case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
11738$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
11739 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
11740 Xgdb_stdint.h : 'X\(/\)$' \| \
11741 . : '\(.\)' 2>/dev/null ||
4e8d927d 11742echo X/gdb_stdint.h |
b4e70030
JB
11743 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11744 /^X\/\(\/\/\)$/{ s//\1/; q; }
11745 /^X\/\(\/\).*/{ s//\1/; q; }
11746 s/.*/./; q'` in
4e8d927d
DJ
11747 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11748echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11749 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11750echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11751 *) ;;
11752esac
11753
b4e70030
JB
11754echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11755echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
11756
11757# ----------------- done included file, check C basic types --------
11758
11759# Lacking an uintptr_t? Test size of void *
11760case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
11761 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
11762echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
11763if test "${ac_cv_type_void_p+set}" = set; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11765else
11766 cat >conftest.$ac_ext <<_ACEOF
a3828db0 11767/* confdefs.h. */
bec39cab
AC
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
a3828db0 11772$ac_includes_default
bec39cab
AC
11773int
11774main ()
11775{
b4e70030 11776if ((void * *) 0)
4e8d927d 11777 return 0;
b4e70030 11778if (sizeof (void *))
4e8d927d 11779 return 0;
bec39cab
AC
11780 ;
11781 return 0;
11782}
11783_ACEOF
a3828db0
MK
11784rm -f conftest.$ac_objext
11785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
b4e70030
JB
11793 { ac_try='test -z "$ac_c_werror_flag"
11794 || test ! -s conftest.err'
bec39cab
AC
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; } &&
a3828db0 11800 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; }; then
4e8d927d 11806 ac_cv_type_void_p=yes
46711df8 11807else
bec39cab
AC
11808 echo "$as_me: failed program was:" >&5
11809sed 's/^/| /' conftest.$ac_ext >&5
11810
b4e70030 11811ac_cv_type_void_p=no
a3828db0 11812fi
4e8d927d 11813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 11814fi
b4e70030
JB
11815echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11816echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 11817
b4e70030
JB
11818echo "$as_me:$LINENO: checking size of void *" >&5
11819echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 11820if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822else
4e8d927d 11823 if test "$ac_cv_type_void_p" = yes; then
b4e70030 11824 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
11825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11827 # This bug is HP SR number 8606223364.
11828 if test "$cross_compiling" = yes; then
11829 # Depending upon the size, compute the lo and hi bounds.
11830cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
11831/* confdefs.h. */
11832_ACEOF
11833cat confdefs.h >>conftest.$ac_ext
11834cat >>conftest.$ac_ext <<_ACEOF
11835/* end confdefs.h. */
11836$ac_includes_default
11837int
11838main ()
11839{
b4e70030 11840static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
11841test_array [0] = 0
11842
d3ea6809
MM
11843 ;
11844 return 0;
11845}
11846_ACEOF
11847rm -f conftest.$ac_objext
11848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849 (eval $ac_compile) 2>conftest.er1
11850 ac_status=$?
11851 grep -v '^ *+' conftest.er1 >conftest.err
11852 rm -f conftest.er1
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
b4e70030
JB
11856 { ac_try='test -z "$ac_c_werror_flag"
11857 || test ! -s conftest.err'
d3ea6809
MM
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; } &&
11863 { ac_try='test -s conftest.$ac_objext'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
4e8d927d
DJ
11869 ac_lo=0 ac_mid=0
11870 while :; do
11871 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
11872/* confdefs.h. */
11873_ACEOF
11874cat confdefs.h >>conftest.$ac_ext
11875cat >>conftest.$ac_ext <<_ACEOF
11876/* end confdefs.h. */
11877$ac_includes_default
11878int
11879main ()
11880{
b4e70030 11881static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
11882test_array [0] = 0
11883
d3ea6809
MM
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext
11889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890 (eval $ac_compile) 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
b4e70030
JB
11897 { ac_try='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
d3ea6809
MM
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4e8d927d 11910 ac_hi=$ac_mid; break
d3ea6809
MM
11911else
11912 echo "$as_me: failed program was:" >&5
11913sed 's/^/| /' conftest.$ac_ext >&5
11914
b4e70030
JB
11915ac_lo=`expr $ac_mid + 1`
11916 if test $ac_lo -le $ac_mid; then
11917 ac_lo= ac_hi=
11918 break
11919 fi
11920 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 11921fi
4e8d927d
DJ
11922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11923 done
bec39cab 11924else
4e8d927d
DJ
11925 echo "$as_me: failed program was:" >&5
11926sed 's/^/| /' conftest.$ac_ext >&5
11927
b4e70030 11928cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11929/* confdefs.h. */
11930_ACEOF
11931cat confdefs.h >>conftest.$ac_ext
11932cat >>conftest.$ac_ext <<_ACEOF
11933/* end confdefs.h. */
4e8d927d 11934$ac_includes_default
bec39cab
AC
11935int
11936main ()
11937{
b4e70030 11938static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
11939test_array [0] = 0
11940
bec39cab
AC
11941 ;
11942 return 0;
11943}
11944_ACEOF
a3828db0
MK
11945rm -f conftest.$ac_objext
11946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11947 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11948 ac_status=$?
11949 grep -v '^ *+' conftest.er1 >conftest.err
11950 rm -f conftest.er1
11951 cat conftest.err >&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } &&
b4e70030
JB
11954 { ac_try='test -z "$ac_c_werror_flag"
11955 || test ! -s conftest.err'
bec39cab
AC
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; } &&
a3828db0 11961 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
4e8d927d
DJ
11967 ac_hi=-1 ac_mid=-1
11968 while :; do
11969 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
11970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
4e8d927d 11975$ac_includes_default
f9f87d2c
MK
11976int
11977main ()
11978{
b4e70030 11979static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
11980test_array [0] = 0
11981
f9f87d2c
MK
11982 ;
11983 return 0;
11984}
11985_ACEOF
11986rm -f conftest.$ac_objext
11987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11988 (eval $ac_compile) 2>conftest.er1
11989 ac_status=$?
11990 grep -v '^ *+' conftest.er1 >conftest.err
11991 rm -f conftest.er1
11992 cat conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
b4e70030
JB
11995 { ac_try='test -z "$ac_c_werror_flag"
11996 || test ! -s conftest.err'
f9f87d2c
MK
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest.$ac_objext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
4e8d927d 12008 ac_lo=$ac_mid; break
f9f87d2c
MK
12009else
12010 echo "$as_me: failed program was:" >&5
12011sed 's/^/| /' conftest.$ac_ext >&5
12012
b4e70030
JB
12013ac_hi=`expr '(' $ac_mid ')' - 1`
12014 if test $ac_mid -le $ac_hi; then
12015 ac_lo= ac_hi=
12016 break
12017 fi
12018 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 12019fi
4e8d927d
DJ
12020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12021 done
12022else
12023 echo "$as_me: failed program was:" >&5
12024sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 12025
b4e70030 12026ac_lo= ac_hi=
4e8d927d 12027fi
4e8d927d 12028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 12029fi
4e8d927d
DJ
12030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12031# Binary search between lo and hi bounds.
12032while test "x$ac_lo" != "x$ac_hi"; do
12033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
12034 cat >conftest.$ac_ext <<_ACEOF
12035/* confdefs.h. */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h. */
4e8d927d 12040$ac_includes_default
3be60c3d
MK
12041int
12042main ()
12043{
b4e70030 12044static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12045test_array [0] = 0
12046
3be60c3d
MK
12047 ;
12048 return 0;
12049}
12050_ACEOF
12051rm -f conftest.$ac_objext
12052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
b4e70030
JB
12060 { ac_try='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
3be60c3d
MK
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
4e8d927d 12073 ac_hi=$ac_mid
3be60c3d
MK
12074else
12075 echo "$as_me: failed program was:" >&5
12076sed 's/^/| /' conftest.$ac_ext >&5
12077
b4e70030 12078ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 12079fi
4e8d927d
DJ
12080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081done
12082case $ac_lo in
12083?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 12084'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12085See \`config.log' for more details." >&5
b4e70030 12086echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12087See \`config.log' for more details." >&2;}
b4e70030 12088 { (exit 1); exit 1; }; } ;;
4e8d927d 12089esac
b4e70030
JB
12090else
12091 if test "$cross_compiling" = yes; then
12092 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12093See \`config.log' for more details." >&5
12094echo "$as_me: error: cannot run test program while cross compiling
12095See \`config.log' for more details." >&2;}
12096 { (exit 1); exit 1; }; }
4e8d927d
DJ
12097else
12098 cat >conftest.$ac_ext <<_ACEOF
12099/* confdefs.h. */
3be60c3d 12100_ACEOF
4e8d927d
DJ
12101cat confdefs.h >>conftest.$ac_ext
12102cat >>conftest.$ac_ext <<_ACEOF
12103/* end confdefs.h. */
12104$ac_includes_default
b4e70030
JB
12105long longval () { return (long) (sizeof (void *)); }
12106unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
12107#include <stdio.h>
12108#include <stdlib.h>
12109int
12110main ()
12111{
12112
12113 FILE *f = fopen ("conftest.val", "w");
12114 if (! f)
b4e70030
JB
12115 exit (1);
12116 if (((long) (sizeof (void *))) < 0)
4e8d927d 12117 {
b4e70030
JB
12118 long i = longval ();
12119 if (i != ((long) (sizeof (void *))))
12120 exit (1);
4e8d927d
DJ
12121 fprintf (f, "%ld\n", i);
12122 }
12123 else
12124 {
b4e70030
JB
12125 unsigned long i = ulongval ();
12126 if (i != ((long) (sizeof (void *))))
12127 exit (1);
4e8d927d
DJ
12128 fprintf (f, "%lu\n", i);
12129 }
b4e70030 12130 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12131
4e8d927d
DJ
12132 ;
12133 return 0;
12134}
12135_ACEOF
12136rm -f conftest$ac_exeext
12137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138 (eval $ac_link) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
12147 ac_cv_sizeof_void_p=`cat conftest.val`
12148else
12149 echo "$as_me: program exited with status $ac_status" >&5
12150echo "$as_me: failed program was:" >&5
12151sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12152
4e8d927d 12153( exit $ac_status )
b4e70030 12154{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12155See \`config.log' for more details." >&5
b4e70030 12156echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12157See \`config.log' for more details." >&2;}
b4e70030
JB
12158 { (exit 1); exit 1; }; }
12159fi
12160rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12161fi
4e8d927d
DJ
12162fi
12163rm -f conftest.val
12164else
12165 ac_cv_sizeof_void_p=0
12166fi
12167fi
b4e70030
JB
12168echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12169echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12170cat >>confdefs.h <<_ACEOF
12171#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12172_ACEOF
f9f87d2c 12173
4e8d927d
DJ
12174 ;;
12175esac
46711df8 12176
4e8d927d
DJ
12177# Lacking an uint64_t? Test size of long
12178case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12179 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12180echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12181if test "${ac_cv_type_long+set}" = set; then
bec39cab 12182 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12183else
bec39cab
AC
12184 cat >conftest.$ac_ext <<_ACEOF
12185/* confdefs.h. */
12186_ACEOF
12187cat confdefs.h >>conftest.$ac_ext
12188cat >>conftest.$ac_ext <<_ACEOF
12189/* end confdefs.h. */
4e8d927d 12190$ac_includes_default
bec39cab 12191int
46711df8
MK
12192main ()
12193{
b4e70030 12194if ((long *) 0)
4e8d927d 12195 return 0;
b4e70030 12196if (sizeof (long))
4e8d927d 12197 return 0;
a3828db0
MK
12198 ;
12199 return 0;
46711df8 12200}
bec39cab 12201_ACEOF
a3828db0
MK
12202rm -f conftest.$ac_objext
12203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204 (eval $ac_compile) 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
b4e70030
JB
12211 { ac_try='test -z "$ac_c_werror_flag"
12212 || test ! -s conftest.err'
a3828db0
MK
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
bec39cab
AC
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
4e8d927d 12224 ac_cv_type_long=yes
46711df8 12225else
a3828db0 12226 echo "$as_me: failed program was:" >&5
bec39cab
AC
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
b4e70030 12229ac_cv_type_long=no
46711df8 12230fi
4e8d927d 12231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12232fi
b4e70030
JB
12233echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12234echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12235
b4e70030
JB
12236echo "$as_me:$LINENO: checking size of long" >&5
12237echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12238if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12239 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12240else
4e8d927d 12241 if test "$ac_cv_type_long" = yes; then
b4e70030 12242 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12245 # This bug is HP SR number 8606223364.
12246 if test "$cross_compiling" = yes; then
12247 # Depending upon the size, compute the lo and hi bounds.
12248cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12249/* confdefs.h. */
12250_ACEOF
12251cat confdefs.h >>conftest.$ac_ext
12252cat >>conftest.$ac_ext <<_ACEOF
12253/* end confdefs.h. */
4e8d927d 12254$ac_includes_default
4e8d927d
DJ
12255int
12256main ()
12257{
b4e70030 12258static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12259test_array [0] = 0
a3828db0 12260
4e8d927d
DJ
12261 ;
12262 return 0;
12263}
bec39cab
AC
12264_ACEOF
12265rm -f conftest.$ac_objext
12266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
b4e70030
JB
12274 { ac_try='test -z "$ac_c_werror_flag"
12275 || test ! -s conftest.err'
bec39cab
AC
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest.$ac_objext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
4e8d927d
DJ
12287 ac_lo=0 ac_mid=0
12288 while :; do
12289 cat >conftest.$ac_ext <<_ACEOF
12290/* confdefs.h. */
12291_ACEOF
12292cat confdefs.h >>conftest.$ac_ext
12293cat >>conftest.$ac_ext <<_ACEOF
12294/* end confdefs.h. */
12295$ac_includes_default
4e8d927d
DJ
12296int
12297main ()
12298{
b4e70030 12299static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12300test_array [0] = 0
12301
12302 ;
12303 return 0;
12304}
12305_ACEOF
12306rm -f conftest.$ac_objext
12307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12308 (eval $ac_compile) 2>conftest.er1
12309 ac_status=$?
12310 grep -v '^ *+' conftest.er1 >conftest.err
12311 rm -f conftest.er1
12312 cat conftest.err >&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } &&
b4e70030
JB
12315 { ac_try='test -z "$ac_c_werror_flag"
12316 || test ! -s conftest.err'
4e8d927d
DJ
12317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; } &&
12322 { ac_try='test -s conftest.$ac_objext'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; }; then
12328 ac_hi=$ac_mid; break
12329else
12330 echo "$as_me: failed program was:" >&5
12331sed 's/^/| /' conftest.$ac_ext >&5
12332
b4e70030
JB
12333ac_lo=`expr $ac_mid + 1`
12334 if test $ac_lo -le $ac_mid; then
12335 ac_lo= ac_hi=
12336 break
12337 fi
12338 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12339fi
4e8d927d
DJ
12340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12341 done
12342else
12343 echo "$as_me: failed program was:" >&5
12344sed 's/^/| /' conftest.$ac_ext >&5
12345
b4e70030 12346cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12347/* confdefs.h. */
12348_ACEOF
12349cat confdefs.h >>conftest.$ac_ext
12350cat >>conftest.$ac_ext <<_ACEOF
12351/* end confdefs.h. */
12352$ac_includes_default
4e8d927d
DJ
12353int
12354main ()
12355{
b4e70030 12356static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
12357test_array [0] = 0
12358
12359 ;
12360 return 0;
12361}
12362_ACEOF
12363rm -f conftest.$ac_objext
12364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365 (eval $ac_compile) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
b4e70030
JB
12372 { ac_try='test -z "$ac_c_werror_flag"
12373 || test ! -s conftest.err'
4e8d927d
DJ
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_hi=-1 ac_mid=-1
12386 while :; do
12387 cat >conftest.$ac_ext <<_ACEOF
12388/* confdefs.h. */
12389_ACEOF
12390cat confdefs.h >>conftest.$ac_ext
12391cat >>conftest.$ac_ext <<_ACEOF
12392/* end confdefs.h. */
12393$ac_includes_default
4e8d927d
DJ
12394int
12395main ()
12396{
b4e70030 12397static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
12398test_array [0] = 0
12399
12400 ;
12401 return 0;
12402}
12403_ACEOF
12404rm -f conftest.$ac_objext
12405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>conftest.er1
12407 ac_status=$?
12408 grep -v '^ *+' conftest.er1 >conftest.err
12409 rm -f conftest.er1
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
b4e70030
JB
12413 { ac_try='test -z "$ac_c_werror_flag"
12414 || test ! -s conftest.err'
4e8d927d
DJ
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try='test -s conftest.$ac_objext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 ac_lo=$ac_mid; break
12427else
12428 echo "$as_me: failed program was:" >&5
12429sed 's/^/| /' conftest.$ac_ext >&5
12430
b4e70030
JB
12431ac_hi=`expr '(' $ac_mid ')' - 1`
12432 if test $ac_mid -le $ac_hi; then
12433 ac_lo= ac_hi=
12434 break
12435 fi
12436 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12437fi
4e8d927d
DJ
12438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12439 done
12440else
12441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
b4e70030 12444ac_lo= ac_hi=
4e8d927d 12445fi
4e8d927d
DJ
12446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12447fi
4e8d927d
DJ
12448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12449# Binary search between lo and hi bounds.
12450while test "x$ac_lo" != "x$ac_hi"; do
12451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12452 cat >conftest.$ac_ext <<_ACEOF
12453/* confdefs.h. */
12454_ACEOF
12455cat confdefs.h >>conftest.$ac_ext
12456cat >>conftest.$ac_ext <<_ACEOF
12457/* end confdefs.h. */
12458$ac_includes_default
4e8d927d
DJ
12459int
12460main ()
12461{
b4e70030 12462static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12463test_array [0] = 0
12464
12465 ;
12466 return 0;
12467}
12468_ACEOF
12469rm -f conftest.$ac_objext
12470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471 (eval $ac_compile) 2>conftest.er1
12472 ac_status=$?
12473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
b4e70030
JB
12478 { ac_try='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
4e8d927d
DJ
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest.$ac_objext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_hi=$ac_mid
12492else
12493 echo "$as_me: failed program was:" >&5
12494sed 's/^/| /' conftest.$ac_ext >&5
12495
b4e70030 12496ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12497fi
4e8d927d
DJ
12498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12499done
12500case $ac_lo in
12501?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 12502'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12503See \`config.log' for more details." >&5
b4e70030 12504echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12505See \`config.log' for more details." >&2;}
b4e70030 12506 { (exit 1); exit 1; }; } ;;
4e8d927d 12507esac
b4e70030
JB
12508else
12509 if test "$cross_compiling" = yes; then
12510 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12511See \`config.log' for more details." >&5
12512echo "$as_me: error: cannot run test program while cross compiling
12513See \`config.log' for more details." >&2;}
12514 { (exit 1); exit 1; }; }
4e8d927d
DJ
12515else
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522$ac_includes_default
b4e70030
JB
12523long longval () { return (long) (sizeof (long)); }
12524unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
12525#include <stdio.h>
12526#include <stdlib.h>
12527int
12528main ()
12529{
12530
12531 FILE *f = fopen ("conftest.val", "w");
12532 if (! f)
b4e70030
JB
12533 exit (1);
12534 if (((long) (sizeof (long))) < 0)
4e8d927d 12535 {
b4e70030
JB
12536 long i = longval ();
12537 if (i != ((long) (sizeof (long))))
12538 exit (1);
4e8d927d
DJ
12539 fprintf (f, "%ld\n", i);
12540 }
12541 else
12542 {
b4e70030
JB
12543 unsigned long i = ulongval ();
12544 if (i != ((long) (sizeof (long))))
12545 exit (1);
4e8d927d
DJ
12546 fprintf (f, "%lu\n", i);
12547 }
b4e70030 12548 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12549
12550 ;
12551 return 0;
12552}
12553_ACEOF
12554rm -f conftest$ac_exeext
12555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
12565 ac_cv_sizeof_long=`cat conftest.val`
12566else
12567 echo "$as_me: program exited with status $ac_status" >&5
12568echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
12571( exit $ac_status )
b4e70030 12572{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12573See \`config.log' for more details." >&5
b4e70030 12574echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12575See \`config.log' for more details." >&2;}
b4e70030
JB
12576 { (exit 1); exit 1; }; }
12577fi
12578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12579fi
4e8d927d
DJ
12580fi
12581rm -f conftest.val
12582else
12583 ac_cv_sizeof_long=0
12584fi
12585fi
b4e70030
JB
12586echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12587echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
12588cat >>confdefs.h <<_ACEOF
12589#define SIZEOF_LONG $ac_cv_sizeof_long
12590_ACEOF
12591
12592 ;;
12593esac
12594
12595if test $acx_cv_header_stdint = stddef.h; then
12596 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
12597 echo "$as_me:$LINENO: checking for int" >&5
12598echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
12599if test "${ac_cv_type_int+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601else
12602 cat >conftest.$ac_ext <<_ACEOF
12603/* confdefs.h. */
12604_ACEOF
12605cat confdefs.h >>conftest.$ac_ext
12606cat >>conftest.$ac_ext <<_ACEOF
12607/* end confdefs.h. */
12608$ac_includes_default
4e8d927d
DJ
12609int
12610main ()
12611{
b4e70030 12612if ((int *) 0)
4e8d927d 12613 return 0;
b4e70030 12614if (sizeof (int))
4e8d927d
DJ
12615 return 0;
12616 ;
12617 return 0;
12618}
12619_ACEOF
12620rm -f conftest.$ac_objext
12621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622 (eval $ac_compile) 2>conftest.er1
12623 ac_status=$?
12624 grep -v '^ *+' conftest.er1 >conftest.err
12625 rm -f conftest.er1
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
b4e70030
JB
12629 { ac_try='test -z "$ac_c_werror_flag"
12630 || test ! -s conftest.err'
4e8d927d
DJ
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; } &&
12636 { ac_try='test -s conftest.$ac_objext'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12639 ac_status=$?
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; }; then
12642 ac_cv_type_int=yes
12643else
12644 echo "$as_me: failed program was:" >&5
12645sed 's/^/| /' conftest.$ac_ext >&5
12646
b4e70030 12647ac_cv_type_int=no
4e8d927d 12648fi
4e8d927d
DJ
12649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12650fi
b4e70030
JB
12651echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12652echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 12653
b4e70030
JB
12654echo "$as_me:$LINENO: checking size of int" >&5
12655echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
12656if test "${ac_cv_sizeof_int+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658else
12659 if test "$ac_cv_type_int" = yes; then
b4e70030 12660 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12663 # This bug is HP SR number 8606223364.
12664 if test "$cross_compiling" = yes; then
12665 # Depending upon the size, compute the lo and hi bounds.
12666cat >conftest.$ac_ext <<_ACEOF
12667/* confdefs.h. */
12668_ACEOF
12669cat confdefs.h >>conftest.$ac_ext
12670cat >>conftest.$ac_ext <<_ACEOF
12671/* end confdefs.h. */
12672$ac_includes_default
4e8d927d
DJ
12673int
12674main ()
12675{
b4e70030 12676static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
12677test_array [0] = 0
12678
12679 ;
12680 return 0;
12681}
12682_ACEOF
12683rm -f conftest.$ac_objext
12684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
b4e70030
JB
12692 { ac_try='test -z "$ac_c_werror_flag"
12693 || test ! -s conftest.err'
4e8d927d
DJ
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 ac_lo=0 ac_mid=0
12706 while :; do
12707 cat >conftest.$ac_ext <<_ACEOF
12708/* confdefs.h. */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
12712/* end confdefs.h. */
12713$ac_includes_default
4e8d927d
DJ
12714int
12715main ()
12716{
b4e70030 12717static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
12718test_array [0] = 0
12719
12720 ;
12721 return 0;
12722}
12723_ACEOF
12724rm -f conftest.$ac_objext
12725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
b4e70030
JB
12733 { ac_try='test -z "$ac_c_werror_flag"
12734 || test ! -s conftest.err'
4e8d927d
DJ
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest.$ac_objext'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_hi=$ac_mid; break
12747else
12748 echo "$as_me: failed program was:" >&5
12749sed 's/^/| /' conftest.$ac_ext >&5
12750
b4e70030
JB
12751ac_lo=`expr $ac_mid + 1`
12752 if test $ac_lo -le $ac_mid; then
12753 ac_lo= ac_hi=
12754 break
12755 fi
12756 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12757fi
4e8d927d
DJ
12758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759 done
12760else
12761 echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
b4e70030 12764cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12765/* confdefs.h. */
12766_ACEOF
12767cat confdefs.h >>conftest.$ac_ext
12768cat >>conftest.$ac_ext <<_ACEOF
12769/* end confdefs.h. */
12770$ac_includes_default
4e8d927d
DJ
12771int
12772main ()
12773{
b4e70030 12774static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
12775test_array [0] = 0
12776
12777 ;
12778 return 0;
12779}
12780_ACEOF
12781rm -f conftest.$ac_objext
12782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12783 (eval $ac_compile) 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
b4e70030
JB
12790 { ac_try='test -z "$ac_c_werror_flag"
12791 || test ! -s conftest.err'
4e8d927d
DJ
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest.$ac_objext'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12803 ac_hi=-1 ac_mid=-1
12804 while :; do
12805 cat >conftest.$ac_ext <<_ACEOF
12806/* confdefs.h. */
12807_ACEOF
12808cat confdefs.h >>conftest.$ac_ext
12809cat >>conftest.$ac_ext <<_ACEOF
12810/* end confdefs.h. */
12811$ac_includes_default
4e8d927d
DJ
12812int
12813main ()
12814{
b4e70030 12815static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
12816test_array [0] = 0
12817
12818 ;
12819 return 0;
12820}
12821_ACEOF
12822rm -f conftest.$ac_objext
12823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824 (eval $ac_compile) 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
b4e70030
JB
12831 { ac_try='test -z "$ac_c_werror_flag"
12832 || test ! -s conftest.err'
4e8d927d
DJ
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest.$ac_objext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 ac_lo=$ac_mid; break
12845else
12846 echo "$as_me: failed program was:" >&5
12847sed 's/^/| /' conftest.$ac_ext >&5
12848
b4e70030
JB
12849ac_hi=`expr '(' $ac_mid ')' - 1`
12850 if test $ac_mid -le $ac_hi; then
12851 ac_lo= ac_hi=
12852 break
12853 fi
12854 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12855fi
4e8d927d
DJ
12856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12857 done
12858else
12859 echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
12861
b4e70030 12862ac_lo= ac_hi=
4e8d927d 12863fi
4e8d927d
DJ
12864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12865fi
4e8d927d
DJ
12866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12867# Binary search between lo and hi bounds.
12868while test "x$ac_lo" != "x$ac_hi"; do
12869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12870 cat >conftest.$ac_ext <<_ACEOF
12871/* confdefs.h. */
12872_ACEOF
12873cat confdefs.h >>conftest.$ac_ext
12874cat >>conftest.$ac_ext <<_ACEOF
12875/* end confdefs.h. */
12876$ac_includes_default
4e8d927d
DJ
12877int
12878main ()
12879{
b4e70030 12880static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
12881test_array [0] = 0
12882
12883 ;
12884 return 0;
12885}
12886_ACEOF
12887rm -f conftest.$ac_objext
12888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
b4e70030
JB
12896 { ac_try='test -z "$ac_c_werror_flag"
12897 || test ! -s conftest.err'
4e8d927d
DJ
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_hi=$ac_mid
12910else
12911 echo "$as_me: failed program was:" >&5
12912sed 's/^/| /' conftest.$ac_ext >&5
12913
b4e70030 12914ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12915fi
4e8d927d
DJ
12916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12917done
12918case $ac_lo in
12919?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 12920'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 12921See \`config.log' for more details." >&5
b4e70030 12922echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 12923See \`config.log' for more details." >&2;}
b4e70030 12924 { (exit 1); exit 1; }; } ;;
4e8d927d 12925esac
b4e70030
JB
12926else
12927 if test "$cross_compiling" = yes; then
12928 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12929See \`config.log' for more details." >&5
12930echo "$as_me: error: cannot run test program while cross compiling
12931See \`config.log' for more details." >&2;}
12932 { (exit 1); exit 1; }; }
4e8d927d
DJ
12933else
12934 cat >conftest.$ac_ext <<_ACEOF
12935/* confdefs.h. */
12936_ACEOF
12937cat confdefs.h >>conftest.$ac_ext
12938cat >>conftest.$ac_ext <<_ACEOF
12939/* end confdefs.h. */
12940$ac_includes_default
b4e70030
JB
12941long longval () { return (long) (sizeof (int)); }
12942unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
12943#include <stdio.h>
12944#include <stdlib.h>
12945int
12946main ()
12947{
12948
12949 FILE *f = fopen ("conftest.val", "w");
12950 if (! f)
b4e70030
JB
12951 exit (1);
12952 if (((long) (sizeof (int))) < 0)
4e8d927d 12953 {
b4e70030
JB
12954 long i = longval ();
12955 if (i != ((long) (sizeof (int))))
12956 exit (1);
4e8d927d
DJ
12957 fprintf (f, "%ld\n", i);
12958 }
12959 else
12960 {
b4e70030
JB
12961 unsigned long i = ulongval ();
12962 if (i != ((long) (sizeof (int))))
12963 exit (1);
4e8d927d
DJ
12964 fprintf (f, "%lu\n", i);
12965 }
b4e70030 12966 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12967
12968 ;
12969 return 0;
12970}
12971_ACEOF
12972rm -f conftest$ac_exeext
12973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974 (eval $ac_link) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_int=`cat conftest.val`
12984else
12985 echo "$as_me: program exited with status $ac_status" >&5
12986echo "$as_me: failed program was:" >&5
12987sed 's/^/| /' conftest.$ac_ext >&5
12988
12989( exit $ac_status )
b4e70030 12990{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 12991See \`config.log' for more details." >&5
b4e70030 12992echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 12993See \`config.log' for more details." >&2;}
b4e70030
JB
12994 { (exit 1); exit 1; }; }
12995fi
12996rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12997fi
4e8d927d
DJ
12998fi
12999rm -f conftest.val
13000else
13001 ac_cv_sizeof_int=0
13002fi
13003fi
b4e70030
JB
13004echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13005echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
13006cat >>confdefs.h <<_ACEOF
13007#define SIZEOF_INT $ac_cv_sizeof_int
13008_ACEOF
13009
13010
b4e70030
JB
13011 echo "$as_me:$LINENO: checking for short" >&5
13012echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
13013if test "${ac_cv_type_short+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13015else
13016 cat >conftest.$ac_ext <<_ACEOF
13017/* confdefs.h. */
13018_ACEOF
13019cat confdefs.h >>conftest.$ac_ext
13020cat >>conftest.$ac_ext <<_ACEOF
13021/* end confdefs.h. */
13022$ac_includes_default
4e8d927d
DJ
13023int
13024main ()
13025{
b4e70030 13026if ((short *) 0)
4e8d927d 13027 return 0;
b4e70030 13028if (sizeof (short))
4e8d927d
DJ
13029 return 0;
13030 ;
13031 return 0;
13032}
13033_ACEOF
13034rm -f conftest.$ac_objext
13035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13036 (eval $ac_compile) 2>conftest.er1
13037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
b4e70030
JB
13043 { ac_try='test -z "$ac_c_werror_flag"
13044 || test ! -s conftest.err'
4e8d927d
DJ
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } &&
13050 { ac_try='test -s conftest.$ac_objext'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_type_short=yes
13057else
13058 echo "$as_me: failed program was:" >&5
13059sed 's/^/| /' conftest.$ac_ext >&5
13060
b4e70030 13061ac_cv_type_short=no
4e8d927d 13062fi
4e8d927d
DJ
13063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13064fi
b4e70030
JB
13065echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13066echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 13067
b4e70030
JB
13068echo "$as_me:$LINENO: checking size of short" >&5
13069echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
13070if test "${ac_cv_sizeof_short+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13072else
13073 if test "$ac_cv_type_short" = yes; then
b4e70030 13074 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13077 # This bug is HP SR number 8606223364.
13078 if test "$cross_compiling" = yes; then
13079 # Depending upon the size, compute the lo and hi bounds.
13080cat >conftest.$ac_ext <<_ACEOF
13081/* confdefs.h. */
13082_ACEOF
13083cat confdefs.h >>conftest.$ac_ext
13084cat >>conftest.$ac_ext <<_ACEOF
13085/* end confdefs.h. */
13086$ac_includes_default
4e8d927d
DJ
13087int
13088main ()
13089{
b4e70030 13090static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
13091test_array [0] = 0
13092
13093 ;
13094 return 0;
13095}
13096_ACEOF
13097rm -f conftest.$ac_objext
13098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
b4e70030
JB
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
4e8d927d
DJ
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_lo=0 ac_mid=0
13120 while :; do
13121 cat >conftest.$ac_ext <<_ACEOF
13122/* confdefs.h. */
13123_ACEOF
13124cat confdefs.h >>conftest.$ac_ext
13125cat >>conftest.$ac_ext <<_ACEOF
13126/* end confdefs.h. */
13127$ac_includes_default
4e8d927d
DJ
13128int
13129main ()
13130{
b4e70030 13131static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13132test_array [0] = 0
13133
13134 ;
13135 return 0;
13136}
13137_ACEOF
13138rm -f conftest.$ac_objext
13139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140 (eval $ac_compile) 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
b4e70030
JB
13147 { ac_try='test -z "$ac_c_werror_flag"
13148 || test ! -s conftest.err'
4e8d927d
DJ
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_hi=$ac_mid; break
13161else
13162 echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
b4e70030
JB
13165ac_lo=`expr $ac_mid + 1`
13166 if test $ac_lo -le $ac_mid; then
13167 ac_lo= ac_hi=
13168 break
13169 fi
13170 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13171fi
4e8d927d
DJ
13172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13173 done
13174else
13175 echo "$as_me: failed program was:" >&5
13176sed 's/^/| /' conftest.$ac_ext >&5
13177
b4e70030 13178cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13179/* confdefs.h. */
13180_ACEOF
13181cat confdefs.h >>conftest.$ac_ext
13182cat >>conftest.$ac_ext <<_ACEOF
13183/* end confdefs.h. */
13184$ac_includes_default
4e8d927d
DJ
13185int
13186main ()
13187{
b4e70030 13188static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13189test_array [0] = 0
13190
13191 ;
13192 return 0;
13193}
13194_ACEOF
13195rm -f conftest.$ac_objext
13196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
b4e70030
JB
13204 { ac_try='test -z "$ac_c_werror_flag"
13205 || test ! -s conftest.err'
4e8d927d
DJ
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_hi=-1 ac_mid=-1
13218 while :; do
13219 cat >conftest.$ac_ext <<_ACEOF
13220/* confdefs.h. */
13221_ACEOF
13222cat confdefs.h >>conftest.$ac_ext
13223cat >>conftest.$ac_ext <<_ACEOF
13224/* end confdefs.h. */
13225$ac_includes_default
4e8d927d
DJ
13226int
13227main ()
13228{
b4e70030 13229static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13230test_array [0] = 0
13231
13232 ;
13233 return 0;
13234}
13235_ACEOF
13236rm -f conftest.$ac_objext
13237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
b4e70030
JB
13245 { ac_try='test -z "$ac_c_werror_flag"
13246 || test ! -s conftest.err'
4e8d927d
DJ
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 ac_lo=$ac_mid; break
13259else
13260 echo "$as_me: failed program was:" >&5
13261sed 's/^/| /' conftest.$ac_ext >&5
13262
b4e70030
JB
13263ac_hi=`expr '(' $ac_mid ')' - 1`
13264 if test $ac_mid -le $ac_hi; then
13265 ac_lo= ac_hi=
13266 break
13267 fi
13268 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13269fi
4e8d927d
DJ
13270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13271 done
13272else
13273 echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
b4e70030 13276ac_lo= ac_hi=
4e8d927d 13277fi
4e8d927d
DJ
13278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13279fi
4e8d927d
DJ
13280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13281# Binary search between lo and hi bounds.
13282while test "x$ac_lo" != "x$ac_hi"; do
13283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13284 cat >conftest.$ac_ext <<_ACEOF
13285/* confdefs.h. */
13286_ACEOF
13287cat confdefs.h >>conftest.$ac_ext
13288cat >>conftest.$ac_ext <<_ACEOF
13289/* end confdefs.h. */
13290$ac_includes_default
4e8d927d
DJ
13291int
13292main ()
13293{
b4e70030 13294static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13295test_array [0] = 0
13296
13297 ;
13298 return 0;
13299}
13300_ACEOF
13301rm -f conftest.$ac_objext
13302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13303 (eval $ac_compile) 2>conftest.er1
13304 ac_status=$?
13305 grep -v '^ *+' conftest.er1 >conftest.err
13306 rm -f conftest.er1
13307 cat conftest.err >&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
b4e70030
JB
13310 { ac_try='test -z "$ac_c_werror_flag"
13311 || test ! -s conftest.err'
4e8d927d
DJ
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 ac_hi=$ac_mid
13324else
13325 echo "$as_me: failed program was:" >&5
13326sed 's/^/| /' conftest.$ac_ext >&5
13327
b4e70030 13328ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13329fi
4e8d927d
DJ
13330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13331done
13332case $ac_lo in
13333?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 13334'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13335See \`config.log' for more details." >&5
b4e70030 13336echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13337See \`config.log' for more details." >&2;}
b4e70030 13338 { (exit 1); exit 1; }; } ;;
4e8d927d 13339esac
b4e70030
JB
13340else
13341 if test "$cross_compiling" = yes; then
13342 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13343See \`config.log' for more details." >&5
13344echo "$as_me: error: cannot run test program while cross compiling
13345See \`config.log' for more details." >&2;}
13346 { (exit 1); exit 1; }; }
4e8d927d
DJ
13347else
13348 cat >conftest.$ac_ext <<_ACEOF
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
13354$ac_includes_default
b4e70030
JB
13355long longval () { return (long) (sizeof (short)); }
13356unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
13357#include <stdio.h>
13358#include <stdlib.h>
13359int
13360main ()
13361{
13362
13363 FILE *f = fopen ("conftest.val", "w");
13364 if (! f)
b4e70030
JB
13365 exit (1);
13366 if (((long) (sizeof (short))) < 0)
4e8d927d 13367 {
b4e70030
JB
13368 long i = longval ();
13369 if (i != ((long) (sizeof (short))))
13370 exit (1);
4e8d927d
DJ
13371 fprintf (f, "%ld\n", i);
13372 }
13373 else
13374 {
b4e70030
JB
13375 unsigned long i = ulongval ();
13376 if (i != ((long) (sizeof (short))))
13377 exit (1);
4e8d927d
DJ
13378 fprintf (f, "%lu\n", i);
13379 }
b4e70030 13380 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13381
13382 ;
13383 return 0;
13384}
13385_ACEOF
13386rm -f conftest$ac_exeext
13387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_short=`cat conftest.val`
13398else
13399 echo "$as_me: program exited with status $ac_status" >&5
13400echo "$as_me: failed program was:" >&5
13401sed 's/^/| /' conftest.$ac_ext >&5
13402
13403( exit $ac_status )
b4e70030 13404{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13405See \`config.log' for more details." >&5
b4e70030 13406echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13407See \`config.log' for more details." >&2;}
b4e70030
JB
13408 { (exit 1); exit 1; }; }
13409fi
13410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13411fi
4e8d927d
DJ
13412fi
13413rm -f conftest.val
13414else
13415 ac_cv_sizeof_short=0
13416fi
13417fi
b4e70030
JB
13418echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13419echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
13420cat >>confdefs.h <<_ACEOF
13421#define SIZEOF_SHORT $ac_cv_sizeof_short
13422_ACEOF
13423
13424
b4e70030
JB
13425 echo "$as_me:$LINENO: checking for char" >&5
13426echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
13427if test "${ac_cv_type_char+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429else
13430 cat >conftest.$ac_ext <<_ACEOF
13431/* confdefs.h. */
13432_ACEOF
13433cat confdefs.h >>conftest.$ac_ext
13434cat >>conftest.$ac_ext <<_ACEOF
13435/* end confdefs.h. */
13436$ac_includes_default
4e8d927d
DJ
13437int
13438main ()
13439{
b4e70030 13440if ((char *) 0)
4e8d927d 13441 return 0;
b4e70030 13442if (sizeof (char))
4e8d927d
DJ
13443 return 0;
13444 ;
13445 return 0;
13446}
13447_ACEOF
13448rm -f conftest.$ac_objext
13449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13450 (eval $ac_compile) 2>conftest.er1
13451 ac_status=$?
13452 grep -v '^ *+' conftest.er1 >conftest.err
13453 rm -f conftest.er1
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } &&
b4e70030
JB
13457 { ac_try='test -z "$ac_c_werror_flag"
13458 || test ! -s conftest.err'
4e8d927d
DJ
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } &&
13464 { ac_try='test -s conftest.$ac_objext'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 ac_cv_type_char=yes
13471else
13472 echo "$as_me: failed program was:" >&5
13473sed 's/^/| /' conftest.$ac_ext >&5
13474
b4e70030 13475ac_cv_type_char=no
4e8d927d 13476fi
4e8d927d
DJ
13477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13478fi
b4e70030
JB
13479echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13480echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 13481
b4e70030
JB
13482echo "$as_me:$LINENO: checking size of char" >&5
13483echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
13484if test "${ac_cv_sizeof_char+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486else
13487 if test "$ac_cv_type_char" = yes; then
b4e70030 13488 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13491 # This bug is HP SR number 8606223364.
13492 if test "$cross_compiling" = yes; then
13493 # Depending upon the size, compute the lo and hi bounds.
13494cat >conftest.$ac_ext <<_ACEOF
13495/* confdefs.h. */
13496_ACEOF
13497cat confdefs.h >>conftest.$ac_ext
13498cat >>conftest.$ac_ext <<_ACEOF
13499/* end confdefs.h. */
13500$ac_includes_default
4e8d927d
DJ
13501int
13502main ()
13503{
b4e70030 13504static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
13505test_array [0] = 0
13506
13507 ;
13508 return 0;
13509}
13510_ACEOF
13511rm -f conftest.$ac_objext
13512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513 (eval $ac_compile) 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
b4e70030
JB
13520 { ac_try='test -z "$ac_c_werror_flag"
13521 || test ! -s conftest.err'
4e8d927d
DJ
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest.$ac_objext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_lo=0 ac_mid=0
13534 while :; do
13535 cat >conftest.$ac_ext <<_ACEOF
13536/* confdefs.h. */
13537_ACEOF
13538cat confdefs.h >>conftest.$ac_ext
13539cat >>conftest.$ac_ext <<_ACEOF
13540/* end confdefs.h. */
13541$ac_includes_default
4e8d927d
DJ
13542int
13543main ()
13544{
b4e70030 13545static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13546test_array [0] = 0
13547
13548 ;
13549 return 0;
13550}
13551_ACEOF
13552rm -f conftest.$ac_objext
13553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
b4e70030
JB
13561 { ac_try='test -z "$ac_c_werror_flag"
13562 || test ! -s conftest.err'
4e8d927d
DJ
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; } &&
13568 { ac_try='test -s conftest.$ac_objext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 ac_hi=$ac_mid; break
13575else
13576 echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
b4e70030
JB
13579ac_lo=`expr $ac_mid + 1`
13580 if test $ac_lo -le $ac_mid; then
13581 ac_lo= ac_hi=
13582 break
13583 fi
13584 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13585fi
4e8d927d
DJ
13586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13587 done
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
b4e70030 13592cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h. */
13598$ac_includes_default
4e8d927d
DJ
13599int
13600main ()
13601{
b4e70030 13602static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
13603test_array [0] = 0
13604
13605 ;
13606 return 0;
13607}
13608_ACEOF
13609rm -f conftest.$ac_objext
13610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13611 (eval $ac_compile) 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
b4e70030
JB
13618 { ac_try='test -z "$ac_c_werror_flag"
13619 || test ! -s conftest.err'
4e8d927d
DJ
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } &&
13625 { ac_try='test -s conftest.$ac_objext'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 ac_hi=-1 ac_mid=-1
13632 while :; do
13633 cat >conftest.$ac_ext <<_ACEOF
13634/* confdefs.h. */
13635_ACEOF
13636cat confdefs.h >>conftest.$ac_ext
13637cat >>conftest.$ac_ext <<_ACEOF
13638/* end confdefs.h. */
13639$ac_includes_default
4e8d927d
DJ
13640int
13641main ()
13642{
b4e70030 13643static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
13644test_array [0] = 0
13645
13646 ;
13647 return 0;
13648}
13649_ACEOF
13650rm -f conftest.$ac_objext
13651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13652 (eval $ac_compile) 2>conftest.er1
13653 ac_status=$?
13654 grep -v '^ *+' conftest.er1 >conftest.err
13655 rm -f conftest.er1
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
b4e70030
JB
13659 { ac_try='test -z "$ac_c_werror_flag"
13660 || test ! -s conftest.err'
4e8d927d
DJ
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; } &&
13666 { ac_try='test -s conftest.$ac_objext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_lo=$ac_mid; break
13673else
13674 echo "$as_me: failed program was:" >&5
13675sed 's/^/| /' conftest.$ac_ext >&5
13676
b4e70030
JB
13677ac_hi=`expr '(' $ac_mid ')' - 1`
13678 if test $ac_mid -le $ac_hi; then
13679 ac_lo= ac_hi=
13680 break
13681 fi
13682 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13683fi
4e8d927d
DJ
13684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13685 done
13686else
13687 echo "$as_me: failed program was:" >&5
13688sed 's/^/| /' conftest.$ac_ext >&5
13689
b4e70030 13690ac_lo= ac_hi=
4e8d927d 13691fi
4e8d927d
DJ
13692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13693fi
4e8d927d
DJ
13694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695# Binary search between lo and hi bounds.
13696while test "x$ac_lo" != "x$ac_hi"; do
13697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13698 cat >conftest.$ac_ext <<_ACEOF
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
13704$ac_includes_default
4e8d927d
DJ
13705int
13706main ()
13707{
b4e70030 13708static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13709test_array [0] = 0
13710
13711 ;
13712 return 0;
13713}
13714_ACEOF
13715rm -f conftest.$ac_objext
13716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>conftest.er1
13718 ac_status=$?
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
b4e70030
JB
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
4e8d927d
DJ
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_hi=$ac_mid
13738else
13739 echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
b4e70030 13742ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13743fi
4e8d927d
DJ
13744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13745done
13746case $ac_lo in
13747?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 13748'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 13749See \`config.log' for more details." >&5
b4e70030 13750echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 13751See \`config.log' for more details." >&2;}
b4e70030 13752 { (exit 1); exit 1; }; } ;;
4e8d927d 13753esac
b4e70030
JB
13754else
13755 if test "$cross_compiling" = yes; then
13756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13757See \`config.log' for more details." >&5
13758echo "$as_me: error: cannot run test program while cross compiling
13759See \`config.log' for more details." >&2;}
13760 { (exit 1); exit 1; }; }
4e8d927d
DJ
13761else
13762 cat >conftest.$ac_ext <<_ACEOF
13763/* confdefs.h. */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
13767/* end confdefs.h. */
13768$ac_includes_default
b4e70030
JB
13769long longval () { return (long) (sizeof (char)); }
13770unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
13771#include <stdio.h>
13772#include <stdlib.h>
13773int
13774main ()
13775{
13776
13777 FILE *f = fopen ("conftest.val", "w");
13778 if (! f)
b4e70030
JB
13779 exit (1);
13780 if (((long) (sizeof (char))) < 0)
4e8d927d 13781 {
b4e70030
JB
13782 long i = longval ();
13783 if (i != ((long) (sizeof (char))))
13784 exit (1);
4e8d927d
DJ
13785 fprintf (f, "%ld\n", i);
13786 }
13787 else
13788 {
b4e70030
JB
13789 unsigned long i = ulongval ();
13790 if (i != ((long) (sizeof (char))))
13791 exit (1);
4e8d927d
DJ
13792 fprintf (f, "%lu\n", i);
13793 }
b4e70030 13794 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13795
13796 ;
13797 return 0;
13798}
13799_ACEOF
13800rm -f conftest$ac_exeext
13801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13802 (eval $ac_link) 2>&5
13803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_char=`cat conftest.val`
13812else
13813 echo "$as_me: program exited with status $ac_status" >&5
13814echo "$as_me: failed program was:" >&5
13815sed 's/^/| /' conftest.$ac_ext >&5
13816
13817( exit $ac_status )
b4e70030 13818{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 13819See \`config.log' for more details." >&5
b4e70030 13820echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 13821See \`config.log' for more details." >&2;}
b4e70030
JB
13822 { (exit 1); exit 1; }; }
13823fi
13824rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13825fi
4e8d927d
DJ
13826fi
13827rm -f conftest.val
13828else
13829 ac_cv_sizeof_char=0
13830fi
13831fi
b4e70030
JB
13832echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13833echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
13834cat >>confdefs.h <<_ACEOF
13835#define SIZEOF_CHAR $ac_cv_sizeof_char
13836_ACEOF
13837
13838
13839
b4e70030
JB
13840 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
13841echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
13842 case "$ac_cv_sizeof_char" in
13843 1) acx_cv_type_int8_t=char ;;
13844 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
13845echo "$as_me: error: no 8-bit type" >&2;}
13846 { (exit please report a bug); exit please report a bug; }; }
13847 esac
b4e70030
JB
13848 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
13849echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 13850
b4e70030
JB
13851 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
13852echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
13853 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13854 2:*) acx_cv_type_int16_t=int ;;
13855 *:2) acx_cv_type_int16_t=short ;;
13856 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
13857echo "$as_me: error: no 16-bit type" >&2;}
13858 { (exit please report a bug); exit please report a bug; }; }
13859 esac
b4e70030
JB
13860 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
13861echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 13862
b4e70030
JB
13863 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
13864echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
13865 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13866 4:*) acx_cv_type_int32_t=int ;;
13867 *:4) acx_cv_type_int32_t=long ;;
13868 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
13869echo "$as_me: error: no 32-bit type" >&2;}
13870 { (exit please report a bug); exit please report a bug; }; }
13871 esac
b4e70030
JB
13872 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
13873echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
13874fi
13875
13876# These tests are here to make the output prettier
13877
13878if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13879 case "$ac_cv_sizeof_long" in
13880 8) acx_cv_type_int64_t=long ;;
13881 esac
b4e70030
JB
13882 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
13883echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
13884 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13885echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
13886fi
13887
13888# Now we can use the above types
13889
13890if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
13891 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
13892echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
13893 case $ac_cv_sizeof_void_p in
13894 2) acx_cv_type_intptr_t=int16_t ;;
13895 4) acx_cv_type_intptr_t=int32_t ;;
13896 8) acx_cv_type_intptr_t=int64_t ;;
13897 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
13898echo "$as_me: error: no equivalent for intptr_t" >&2;}
13899 { (exit please report a bug); exit please report a bug; }; }
13900 esac
b4e70030
JB
13901 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
13902echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
13903fi
13904
13905# ----------------- done all checks, emit header -------------
b4e70030 13906 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
13907
13908
13909
13910
13911# ------------------------- #
13912# Checks for declarations. #
13913# ------------------------- #
13914
b4e70030
JB
13915echo "$as_me:$LINENO: checking whether free is declared" >&5
13916echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
13917if test "${ac_cv_have_decl_free+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13919else
13920 cat >conftest.$ac_ext <<_ACEOF
13921/* confdefs.h. */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
13925/* end confdefs.h. */
13926$ac_includes_default
13927int
13928main ()
13929{
13930#ifndef free
13931 char *p = (char *) free;
4e8d927d
DJ
13932#endif
13933
13934 ;
13935 return 0;
13936}
13937_ACEOF
13938rm -f conftest.$ac_objext
13939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13940 (eval $ac_compile) 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
b4e70030
JB
13947 { ac_try='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
4e8d927d
DJ
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_cv_have_decl_free=yes
13961else
13962 echo "$as_me: failed program was:" >&5
13963sed 's/^/| /' conftest.$ac_ext >&5
13964
b4e70030 13965ac_cv_have_decl_free=no
4e8d927d 13966fi
4e8d927d
DJ
13967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13968fi
b4e70030
JB
13969echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13970echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
13971if test $ac_cv_have_decl_free = yes; then
13972
13973cat >>confdefs.h <<_ACEOF
13974#define HAVE_DECL_FREE 1
13975_ACEOF
13976
13977
13978else
13979 cat >>confdefs.h <<_ACEOF
13980#define HAVE_DECL_FREE 0
13981_ACEOF
13982
13983
13984fi
b4e70030
JB
13985echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13986echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
13987if test "${ac_cv_have_decl_malloc+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989else
13990 cat >conftest.$ac_ext <<_ACEOF
13991/* confdefs.h. */
13992_ACEOF
13993cat confdefs.h >>conftest.$ac_ext
13994cat >>conftest.$ac_ext <<_ACEOF
13995/* end confdefs.h. */
13996$ac_includes_default
13997int
13998main ()
13999{
14000#ifndef malloc
14001 char *p = (char *) malloc;
4e8d927d
DJ
14002#endif
14003
14004 ;
14005 return 0;
14006}
14007_ACEOF
14008rm -f conftest.$ac_objext
14009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>conftest.er1
14011 ac_status=$?
14012 grep -v '^ *+' conftest.er1 >conftest.err
14013 rm -f conftest.er1
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } &&
b4e70030
JB
14017 { ac_try='test -z "$ac_c_werror_flag"
14018 || test ! -s conftest.err'
4e8d927d
DJ
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; } &&
14024 { ac_try='test -s conftest.$ac_objext'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_cv_have_decl_malloc=yes
14031else
14032 echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
b4e70030 14035ac_cv_have_decl_malloc=no
4e8d927d 14036fi
4e8d927d
DJ
14037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14038fi
b4e70030
JB
14039echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14040echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
14041if test $ac_cv_have_decl_malloc = yes; then
14042
14043cat >>confdefs.h <<_ACEOF
14044#define HAVE_DECL_MALLOC 1
14045_ACEOF
14046
14047
14048else
14049 cat >>confdefs.h <<_ACEOF
14050#define HAVE_DECL_MALLOC 0
14051_ACEOF
14052
14053
14054fi
b4e70030
JB
14055echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14056echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14057if test "${ac_cv_have_decl_realloc+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059else
14060 cat >conftest.$ac_ext <<_ACEOF
14061/* confdefs.h. */
14062_ACEOF
14063cat confdefs.h >>conftest.$ac_ext
14064cat >>conftest.$ac_ext <<_ACEOF
14065/* end confdefs.h. */
14066$ac_includes_default
14067int
14068main ()
14069{
14070#ifndef realloc
14071 char *p = (char *) realloc;
4e8d927d
DJ
14072#endif
14073
14074 ;
14075 return 0;
14076}
14077_ACEOF
14078rm -f conftest.$ac_objext
14079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080 (eval $ac_compile) 2>conftest.er1
14081 ac_status=$?
14082 grep -v '^ *+' conftest.er1 >conftest.err
14083 rm -f conftest.er1
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
b4e70030
JB
14087 { ac_try='test -z "$ac_c_werror_flag"
14088 || test ! -s conftest.err'
4e8d927d
DJ
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; } &&
14094 { ac_try='test -s conftest.$ac_objext'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 ac_cv_have_decl_realloc=yes
14101else
14102 echo "$as_me: failed program was:" >&5
14103sed 's/^/| /' conftest.$ac_ext >&5
14104
b4e70030 14105ac_cv_have_decl_realloc=no
4e8d927d 14106fi
4e8d927d
DJ
14107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14108fi
b4e70030
JB
14109echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14110echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
14111if test $ac_cv_have_decl_realloc = yes; then
14112
14113cat >>confdefs.h <<_ACEOF
14114#define HAVE_DECL_REALLOC 1
14115_ACEOF
14116
14117
14118else
14119 cat >>confdefs.h <<_ACEOF
14120#define HAVE_DECL_REALLOC 0
14121_ACEOF
14122
14123
14124fi
14125
14126
b4e70030
JB
14127echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14128echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14129if test "${ac_cv_have_decl_strerror+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14131else
14132 cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h. */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
14137/* end confdefs.h. */
14138$ac_includes_default
14139int
14140main ()
14141{
14142#ifndef strerror
14143 char *p = (char *) strerror;
4e8d927d
DJ
14144#endif
14145
14146 ;
14147 return 0;
14148}
14149_ACEOF
14150rm -f conftest.$ac_objext
14151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14152 (eval $ac_compile) 2>conftest.er1
14153 ac_status=$?
14154 grep -v '^ *+' conftest.er1 >conftest.err
14155 rm -f conftest.er1
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
b4e70030
JB
14159 { ac_try='test -z "$ac_c_werror_flag"
14160 || test ! -s conftest.err'
4e8d927d
DJ
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; } &&
14166 { ac_try='test -s conftest.$ac_objext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 ac_cv_have_decl_strerror=yes
14173else
14174 echo "$as_me: failed program was:" >&5
14175sed 's/^/| /' conftest.$ac_ext >&5
14176
b4e70030 14177ac_cv_have_decl_strerror=no
4e8d927d 14178fi
4e8d927d
DJ
14179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14180fi
b4e70030
JB
14181echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14182echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14183if test $ac_cv_have_decl_strerror = yes; then
14184
14185cat >>confdefs.h <<_ACEOF
14186#define HAVE_DECL_STRERROR 1
14187_ACEOF
14188
14189
14190else
14191 cat >>confdefs.h <<_ACEOF
14192#define HAVE_DECL_STRERROR 0
14193_ACEOF
14194
14195
14196fi
b4e70030
JB
14197echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14198echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14199if test "${ac_cv_have_decl_strstr+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201else
14202 cat >conftest.$ac_ext <<_ACEOF
14203/* confdefs.h. */
14204_ACEOF
14205cat confdefs.h >>conftest.$ac_ext
14206cat >>conftest.$ac_ext <<_ACEOF
14207/* end confdefs.h. */
14208$ac_includes_default
14209int
14210main ()
14211{
14212#ifndef strstr
14213 char *p = (char *) strstr;
4e8d927d
DJ
14214#endif
14215
14216 ;
14217 return 0;
14218}
14219_ACEOF
14220rm -f conftest.$ac_objext
14221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14222 (eval $ac_compile) 2>conftest.er1
14223 ac_status=$?
14224 grep -v '^ *+' conftest.er1 >conftest.err
14225 rm -f conftest.er1
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
b4e70030
JB
14229 { ac_try='test -z "$ac_c_werror_flag"
14230 || test ! -s conftest.err'
4e8d927d
DJ
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest.$ac_objext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_cv_have_decl_strstr=yes
14243else
14244 echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
b4e70030 14247ac_cv_have_decl_strstr=no
4e8d927d 14248fi
4e8d927d
DJ
14249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14250fi
b4e70030
JB
14251echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14252echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14253if test $ac_cv_have_decl_strstr = yes; then
14254
14255cat >>confdefs.h <<_ACEOF
14256#define HAVE_DECL_STRSTR 1
14257_ACEOF
14258
14259
14260else
14261 cat >>confdefs.h <<_ACEOF
14262#define HAVE_DECL_STRSTR 0
14263_ACEOF
14264
14265
14266fi
14267
14268
b4e70030
JB
14269echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14270echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14271if test "${ac_cv_have_decl_getopt+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273else
14274 cat >conftest.$ac_ext <<_ACEOF
14275/* confdefs.h. */
14276_ACEOF
14277cat confdefs.h >>conftest.$ac_ext
14278cat >>conftest.$ac_ext <<_ACEOF
14279/* end confdefs.h. */
14280$ac_includes_default
14281int
14282main ()
14283{
14284#ifndef getopt
14285 char *p = (char *) getopt;
4e8d927d
DJ
14286#endif
14287
14288 ;
14289 return 0;
14290}
14291_ACEOF
14292rm -f conftest.$ac_objext
14293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294 (eval $ac_compile) 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
b4e70030
JB
14301 { ac_try='test -z "$ac_c_werror_flag"
14302 || test ! -s conftest.err'
4e8d927d
DJ
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; } &&
14308 { ac_try='test -s conftest.$ac_objext'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_have_decl_getopt=yes
14315else
14316 echo "$as_me: failed program was:" >&5
14317sed 's/^/| /' conftest.$ac_ext >&5
14318
b4e70030 14319ac_cv_have_decl_getopt=no
4e8d927d 14320fi
4e8d927d
DJ
14321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14322fi
b4e70030
JB
14323echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14324echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
14325if test $ac_cv_have_decl_getopt = yes; then
14326
14327cat >>confdefs.h <<_ACEOF
14328#define HAVE_DECL_GETOPT 1
14329_ACEOF
14330
14331
14332else
14333 cat >>confdefs.h <<_ACEOF
14334#define HAVE_DECL_GETOPT 0
14335_ACEOF
14336
14337
14338fi
b4e70030
JB
14339echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14340echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14341if test "${ac_cv_have_decl_snprintf+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14343else
14344 cat >conftest.$ac_ext <<_ACEOF
14345/* confdefs.h. */
14346_ACEOF
14347cat confdefs.h >>conftest.$ac_ext
14348cat >>conftest.$ac_ext <<_ACEOF
14349/* end confdefs.h. */
14350$ac_includes_default
14351int
14352main ()
14353{
14354#ifndef snprintf
14355 char *p = (char *) snprintf;
4e8d927d
DJ
14356#endif
14357
14358 ;
14359 return 0;
14360}
14361_ACEOF
14362rm -f conftest.$ac_objext
14363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364 (eval $ac_compile) 2>conftest.er1
14365 ac_status=$?
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
b4e70030
JB
14371 { ac_try='test -z "$ac_c_werror_flag"
14372 || test ! -s conftest.err'
4e8d927d
DJ
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } &&
14378 { ac_try='test -s conftest.$ac_objext'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 ac_cv_have_decl_snprintf=yes
14385else
14386 echo "$as_me: failed program was:" >&5
14387sed 's/^/| /' conftest.$ac_ext >&5
14388
b4e70030 14389ac_cv_have_decl_snprintf=no
4e8d927d 14390fi
4e8d927d
DJ
14391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14392fi
b4e70030
JB
14393echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14394echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
14395if test $ac_cv_have_decl_snprintf = yes; then
14396
14397cat >>confdefs.h <<_ACEOF
14398#define HAVE_DECL_SNPRINTF 1
14399_ACEOF
14400
14401
14402else
14403 cat >>confdefs.h <<_ACEOF
14404#define HAVE_DECL_SNPRINTF 0
14405_ACEOF
14406
14407
14408fi
b4e70030
JB
14409echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14410echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14411if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14413else
14414 cat >conftest.$ac_ext <<_ACEOF
14415/* confdefs.h. */
14416_ACEOF
14417cat confdefs.h >>conftest.$ac_ext
14418cat >>conftest.$ac_ext <<_ACEOF
14419/* end confdefs.h. */
14420$ac_includes_default
14421int
14422main ()
14423{
14424#ifndef vsnprintf
14425 char *p = (char *) vsnprintf;
4e8d927d
DJ
14426#endif
14427
14428 ;
14429 return 0;
14430}
14431_ACEOF
14432rm -f conftest.$ac_objext
14433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434 (eval $ac_compile) 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
b4e70030
JB
14441 { ac_try='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
4e8d927d
DJ
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_have_decl_vsnprintf=yes
14455else
14456 echo "$as_me: failed program was:" >&5
14457sed 's/^/| /' conftest.$ac_ext >&5
14458
b4e70030 14459ac_cv_have_decl_vsnprintf=no
4e8d927d 14460fi
4e8d927d
DJ
14461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14462fi
b4e70030
JB
14463echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14464echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
14465if test $ac_cv_have_decl_vsnprintf = yes; then
14466
14467cat >>confdefs.h <<_ACEOF
14468#define HAVE_DECL_VSNPRINTF 1
14469_ACEOF
14470
14471
14472else
14473 cat >>confdefs.h <<_ACEOF
14474#define HAVE_DECL_VSNPRINTF 0
14475_ACEOF
14476
14477
14478fi
14479
14480
14481
14482# ----------------------- #
14483# Checks for structures. #
14484# ----------------------- #
14485
b4e70030
JB
14486echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14487echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
14488if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14490else
14491 cat >conftest.$ac_ext <<_ACEOF
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
14496/* end confdefs.h. */
14497$ac_includes_default
14498int
14499main ()
14500{
14501static struct stat ac_aggr;
14502if (ac_aggr.st_blocks)
14503return 0;
14504 ;
14505 return 0;
14506}
14507_ACEOF
14508rm -f conftest.$ac_objext
14509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
b4e70030
JB
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
4e8d927d
DJ
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_cv_member_struct_stat_st_blocks=yes
14531else
14532 echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
b4e70030 14535cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14536/* confdefs.h. */
14537_ACEOF
14538cat confdefs.h >>conftest.$ac_ext
14539cat >>conftest.$ac_ext <<_ACEOF
14540/* end confdefs.h. */
14541$ac_includes_default
14542int
14543main ()
14544{
14545static struct stat ac_aggr;
14546if (sizeof ac_aggr.st_blocks)
14547return 0;
14548 ;
14549 return 0;
14550}
14551_ACEOF
14552rm -f conftest.$ac_objext
14553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14554 (eval $ac_compile) 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
b4e70030
JB
14561 { ac_try='test -z "$ac_c_werror_flag"
14562 || test ! -s conftest.err'
4e8d927d
DJ
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest.$ac_objext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_cv_member_struct_stat_st_blocks=yes
14575else
14576 echo "$as_me: failed program was:" >&5
14577sed 's/^/| /' conftest.$ac_ext >&5
14578
b4e70030 14579ac_cv_member_struct_stat_st_blocks=no
4e8d927d 14580fi
4e8d927d
DJ
14581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14582fi
4e8d927d
DJ
14583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14584fi
b4e70030
JB
14585echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14586echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
14587if test $ac_cv_member_struct_stat_st_blocks = yes; then
14588
14589cat >>confdefs.h <<_ACEOF
14590#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14591_ACEOF
14592
14593
14594fi
14595
b4e70030
JB
14596echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14597echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
14598if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600else
14601 cat >conftest.$ac_ext <<_ACEOF
14602/* confdefs.h. */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
14606/* end confdefs.h. */
14607$ac_includes_default
14608int
14609main ()
14610{
14611static struct stat ac_aggr;
14612if (ac_aggr.st_blksize)
14613return 0;
14614 ;
14615 return 0;
14616}
14617_ACEOF
14618rm -f conftest.$ac_objext
14619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620 (eval $ac_compile) 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
b4e70030
JB
14627 { ac_try='test -z "$ac_c_werror_flag"
14628 || test ! -s conftest.err'
4e8d927d
DJ
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest.$ac_objext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 ac_cv_member_struct_stat_st_blksize=yes
14641else
14642 echo "$as_me: failed program was:" >&5
14643sed 's/^/| /' conftest.$ac_ext >&5
14644
b4e70030 14645cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14646/* confdefs.h. */
14647_ACEOF
14648cat confdefs.h >>conftest.$ac_ext
14649cat >>conftest.$ac_ext <<_ACEOF
14650/* end confdefs.h. */
14651$ac_includes_default
14652int
14653main ()
14654{
14655static struct stat ac_aggr;
14656if (sizeof ac_aggr.st_blksize)
14657return 0;
14658 ;
14659 return 0;
14660}
14661_ACEOF
14662rm -f conftest.$ac_objext
14663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664 (eval $ac_compile) 2>conftest.er1
14665 ac_status=$?
14666 grep -v '^ *+' conftest.er1 >conftest.err
14667 rm -f conftest.er1
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
b4e70030
JB
14671 { ac_try='test -z "$ac_c_werror_flag"
14672 || test ! -s conftest.err'
4e8d927d
DJ
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; } &&
14678 { ac_try='test -s conftest.$ac_objext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 ac_cv_member_struct_stat_st_blksize=yes
14685else
14686 echo "$as_me: failed program was:" >&5
14687sed 's/^/| /' conftest.$ac_ext >&5
14688
b4e70030 14689ac_cv_member_struct_stat_st_blksize=no
4e8d927d 14690fi
4e8d927d
DJ
14691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692fi
4e8d927d
DJ
14693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694fi
b4e70030
JB
14695echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14696echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
14697if test $ac_cv_member_struct_stat_st_blksize = yes; then
14698
14699cat >>confdefs.h <<_ACEOF
14700#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14701_ACEOF
14702
14703
14704fi
14705
14706
14707# ------------------ #
14708# Checks for types. #
14709# ------------------ #
14710
b4e70030
JB
14711echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14712echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
14713if test "${ac_cv_type_signal+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715else
14716 cat >conftest.$ac_ext <<_ACEOF
14717/* confdefs.h. */
14718_ACEOF
14719cat confdefs.h >>conftest.$ac_ext
14720cat >>conftest.$ac_ext <<_ACEOF
14721/* end confdefs.h. */
14722#include <sys/types.h>
14723#include <signal.h>
b4e70030
JB
14724#ifdef signal
14725# undef signal
14726#endif
14727#ifdef __cplusplus
14728extern "C" void (*signal (int, void (*)(int)))(int);
14729#else
14730void (*signal ()) ();
14731#endif
4e8d927d
DJ
14732
14733int
14734main ()
14735{
b4e70030 14736int i;
4e8d927d
DJ
14737 ;
14738 return 0;
14739}
14740_ACEOF
14741rm -f conftest.$ac_objext
14742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743 (eval $ac_compile) 2>conftest.er1
14744 ac_status=$?
14745 grep -v '^ *+' conftest.er1 >conftest.err
14746 rm -f conftest.er1
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
b4e70030
JB
14750 { ac_try='test -z "$ac_c_werror_flag"
14751 || test ! -s conftest.err'
4e8d927d
DJ
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
b4e70030 14763 ac_cv_type_signal=void
4e8d927d
DJ
14764else
14765 echo "$as_me: failed program was:" >&5
14766sed 's/^/| /' conftest.$ac_ext >&5
14767
b4e70030 14768ac_cv_type_signal=int
4e8d927d 14769fi
4e8d927d
DJ
14770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14771fi
b4e70030
JB
14772echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14773echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
14774
14775cat >>confdefs.h <<_ACEOF
14776#define RETSIGTYPE $ac_cv_type_signal
14777_ACEOF
14778
14779
b4e70030
JB
14780echo "$as_me:$LINENO: checking for socklen_t" >&5
14781echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
14782if test "${ac_cv_type_socklen_t+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784else
14785 cat >conftest.$ac_ext <<_ACEOF
14786/* confdefs.h. */
14787_ACEOF
14788cat confdefs.h >>conftest.$ac_ext
14789cat >>conftest.$ac_ext <<_ACEOF
14790/* end confdefs.h. */
14791#include <sys/types.h>
14792#include <sys/socket.h>
14793
14794
4e8d927d
DJ
14795int
14796main ()
14797{
b4e70030 14798if ((socklen_t *) 0)
4e8d927d 14799 return 0;
b4e70030 14800if (sizeof (socklen_t))
4e8d927d
DJ
14801 return 0;
14802 ;
14803 return 0;
14804}
14805_ACEOF
14806rm -f conftest.$ac_objext
14807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14808 (eval $ac_compile) 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
b4e70030
JB
14815 { ac_try='test -z "$ac_c_werror_flag"
14816 || test ! -s conftest.err'
4e8d927d
DJ
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try='test -s conftest.$ac_objext'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 ac_cv_type_socklen_t=yes
14829else
14830 echo "$as_me: failed program was:" >&5
14831sed 's/^/| /' conftest.$ac_ext >&5
14832
b4e70030 14833ac_cv_type_socklen_t=no
4e8d927d 14834fi
4e8d927d
DJ
14835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14836fi
b4e70030
JB
14837echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14838echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
14839if test $ac_cv_type_socklen_t = yes; then
14840
14841cat >>confdefs.h <<_ACEOF
14842#define HAVE_SOCKLEN_T 1
14843_ACEOF
14844
14845
14846fi
14847
b4e70030
JB
14848echo "$as_me:$LINENO: checking for uintptr_t" >&5
14849echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
14850if test "${ac_cv_type_uintptr_t+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852else
14853 cat >conftest.$ac_ext <<_ACEOF
14854/* confdefs.h. */
14855_ACEOF
14856cat confdefs.h >>conftest.$ac_ext
14857cat >>conftest.$ac_ext <<_ACEOF
14858/* end confdefs.h. */
14859#include <stdint.h>
14860
4e8d927d
DJ
14861int
14862main ()
14863{
b4e70030 14864if ((uintptr_t *) 0)
4e8d927d 14865 return 0;
b4e70030 14866if (sizeof (uintptr_t))
4e8d927d
DJ
14867 return 0;
14868 ;
14869 return 0;
14870}
14871_ACEOF
14872rm -f conftest.$ac_objext
14873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874 (eval $ac_compile) 2>conftest.er1
14875 ac_status=$?
14876 grep -v '^ *+' conftest.er1 >conftest.err
14877 rm -f conftest.er1
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
b4e70030
JB
14881 { ac_try='test -z "$ac_c_werror_flag"
14882 || test ! -s conftest.err'
4e8d927d
DJ
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; } &&
14888 { ac_try='test -s conftest.$ac_objext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_type_uintptr_t=yes
14895else
14896 echo "$as_me: failed program was:" >&5
14897sed 's/^/| /' conftest.$ac_ext >&5
14898
b4e70030 14899ac_cv_type_uintptr_t=no
4e8d927d 14900fi
4e8d927d
DJ
14901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14902fi
b4e70030
JB
14903echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14904echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
14905if test $ac_cv_type_uintptr_t = yes; then
14906
14907cat >>confdefs.h <<_ACEOF
14908#define HAVE_UINTPTR_T 1
14909_ACEOF
14910
14911
14912fi
14913
14914
14915# ------------------------------------- #
14916# Checks for compiler characteristics. #
14917# ------------------------------------- #
14918
b4e70030
JB
14919echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14920echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
14921if test "${ac_cv_c_const+set}" = set; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14923else
14924 cat >conftest.$ac_ext <<_ACEOF
14925/* confdefs.h. */
14926_ACEOF
14927cat confdefs.h >>conftest.$ac_ext
14928cat >>conftest.$ac_ext <<_ACEOF
14929/* end confdefs.h. */
14930
14931int
14932main ()
14933{
14934/* FIXME: Include the comments suggested by Paul. */
14935#ifndef __cplusplus
14936 /* Ultrix mips cc rejects this. */
14937 typedef int charset[2];
14938 const charset x;
14939 /* SunOS 4.1.1 cc rejects this. */
14940 char const *const *ccp;
14941 char **p;
14942 /* NEC SVR4.0.2 mips cc rejects this. */
14943 struct point {int x, y;};
14944 static struct point const zero = {0,0};
14945 /* AIX XL C 1.02.0.0 rejects this.
14946 It does not let you subtract one const X* pointer from another in
14947 an arm of an if-expression whose if-part is not a constant
14948 expression */
14949 const char *g = "string";
14950 ccp = &g + (g ? g-g : 0);
14951 /* HPUX 7.0 cc rejects these. */
14952 ++ccp;
14953 p = (char**) ccp;
14954 ccp = (char const *const *) p;
14955 { /* SCO 3.2v4 cc rejects this. */
14956 char *t;
14957 char const *s = 0 ? (char *) 0 : (char const *) 0;
14958
14959 *t++ = 0;
4e8d927d
DJ
14960 }
14961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14962 int x[] = {25, 17};
14963 const int *foo = &x[0];
14964 ++foo;
14965 }
14966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14967 typedef const int *iptr;
14968 iptr p = 0;
14969 ++p;
14970 }
14971 { /* AIX XL C 1.02.0.0 rejects this saying
14972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14973 struct s { int j; const int *ap[3]; };
14974 struct s *b; b->j = 5;
14975 }
14976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14977 const int foo = 10;
4e8d927d 14978 }
4e8d927d
DJ
14979#endif
14980
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
b4e70030
JB
14994 { ac_try='test -z "$ac_c_werror_flag"
14995 || test ! -s conftest.err'
4e8d927d
DJ
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_cv_c_const=yes
15008else
15009 echo "$as_me: failed program was:" >&5
15010sed 's/^/| /' conftest.$ac_ext >&5
15011
b4e70030 15012ac_cv_c_const=no
4e8d927d 15013fi
4e8d927d
DJ
15014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15015fi
b4e70030
JB
15016echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15017echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
15018if test $ac_cv_c_const = no; then
15019
15020cat >>confdefs.h <<\_ACEOF
15021#define const
15022_ACEOF
15023
15024fi
15025
b4e70030
JB
15026echo "$as_me:$LINENO: checking for inline" >&5
15027echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
15028if test "${ac_cv_c_inline+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else
15031 ac_cv_c_inline=no
15032for ac_kw in inline __inline__ __inline; do
15033 cat >conftest.$ac_ext <<_ACEOF
15034/* confdefs.h. */
15035_ACEOF
15036cat confdefs.h >>conftest.$ac_ext
15037cat >>conftest.$ac_ext <<_ACEOF
15038/* end confdefs.h. */
15039#ifndef __cplusplus
15040typedef int foo_t;
15041static $ac_kw foo_t static_foo () {return 0; }
15042$ac_kw foo_t foo () {return 0; }
15043#endif
15044
15045_ACEOF
15046rm -f conftest.$ac_objext
15047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15048 (eval $ac_compile) 2>conftest.er1
15049 ac_status=$?
15050 grep -v '^ *+' conftest.er1 >conftest.err
15051 rm -f conftest.er1
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } &&
b4e70030
JB
15055 { ac_try='test -z "$ac_c_werror_flag"
15056 || test ! -s conftest.err'
4e8d927d
DJ
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
b4e70030 15068 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
15069else
15070 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
4e8d927d 15073fi
4e8d927d 15074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
15075done
15076
15077fi
b4e70030
JB
15078echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15079echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 15080
bec39cab 15081
a3828db0
MK
15082case $ac_cv_c_inline in
15083 inline | yes) ;;
15084 *)
15085 case $ac_cv_c_inline in
15086 no) ac_val=;;
15087 *) ac_val=$ac_cv_c_inline;;
15088 esac
15089 cat >>confdefs.h <<_ACEOF
15090#ifndef __cplusplus
15091#define inline $ac_val
15092#endif
15093_ACEOF
bec39cab
AC
15094 ;;
15095esac
bec39cab 15096
74c1b268 15097
a3828db0
MK
15098# ------------------------------ #
15099# Checks for library functions. #
15100# ------------------------------ #
bec39cab 15101
a3828db0
MK
15102# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15103# for constant arguments. Useless!
b4e70030
JB
15104echo "$as_me:$LINENO: checking for working alloca.h" >&5
15105echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 15106if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15108else
15109 cat >conftest.$ac_ext <<_ACEOF
15110/* confdefs.h. */
15111_ACEOF
15112cat confdefs.h >>conftest.$ac_ext
15113cat >>conftest.$ac_ext <<_ACEOF
15114/* end confdefs.h. */
a3828db0 15115#include <alloca.h>
bec39cab
AC
15116int
15117main ()
15118{
a3828db0 15119char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
15120 ;
15121 return 0;
15122}
15123_ACEOF
15124rm -f conftest.$ac_objext conftest$ac_exeext
15125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15126 (eval $ac_link) 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
b4e70030
JB
15133 { ac_try='test -z "$ac_c_werror_flag"
15134 || test ! -s conftest.err'
bec39cab
AC
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; } &&
15140 { ac_try='test -s conftest$ac_exeext'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; }; then
a3828db0 15146 ac_cv_working_alloca_h=yes
bec39cab
AC
15147else
15148 echo "$as_me: failed program was:" >&5
15149sed 's/^/| /' conftest.$ac_ext >&5
15150
b4e70030 15151ac_cv_working_alloca_h=no
bec39cab
AC
15152fi
15153rm -f conftest.err conftest.$ac_objext \
15154 conftest$ac_exeext conftest.$ac_ext
15155fi
b4e70030
JB
15156echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15157echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
15158if test $ac_cv_working_alloca_h = yes; then
15159
15160cat >>confdefs.h <<\_ACEOF
15161#define HAVE_ALLOCA_H 1
bec39cab 15162_ACEOF
74c1b268 15163
74c1b268
AC
15164fi
15165
b4e70030
JB
15166echo "$as_me:$LINENO: checking for alloca" >&5
15167echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 15168if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 15169 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 15170else
bec39cab
AC
15171 cat >conftest.$ac_ext <<_ACEOF
15172/* confdefs.h. */
15173_ACEOF
15174cat confdefs.h >>conftest.$ac_ext
15175cat >>conftest.$ac_ext <<_ACEOF
15176/* end confdefs.h. */
a3828db0
MK
15177#ifdef __GNUC__
15178# define alloca __builtin_alloca
15179#else
15180# ifdef _MSC_VER
15181# include <malloc.h>
15182# define alloca _alloca
15183# else
15184# if HAVE_ALLOCA_H
15185# include <alloca.h>
15186# else
15187# ifdef _AIX
15188 #pragma alloca
15189# else
15190# ifndef alloca /* predefined by HP cc +Olibcalls */
15191char *alloca ();
15192# endif
15193# endif
15194# endif
97bf5e38 15195# endif
a3828db0 15196#endif
97bf5e38 15197
bec39cab
AC
15198int
15199main ()
15200{
a3828db0 15201char *p = (char *) alloca (1);
bec39cab
AC
15202 ;
15203 return 0;
15204}
15205_ACEOF
a3828db0
MK
15206rm -f conftest.$ac_objext conftest$ac_exeext
15207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15208 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15209 ac_status=$?
15210 grep -v '^ *+' conftest.er1 >conftest.err
15211 rm -f conftest.er1
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
b4e70030
JB
15215 { ac_try='test -z "$ac_c_werror_flag"
15216 || test ! -s conftest.err'
bec39cab
AC
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15219 ac_status=$?
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; } &&
a3828db0 15222 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
a3828db0 15228 ac_cv_func_alloca_works=yes
0200359f 15229else
bec39cab
AC
15230 echo "$as_me: failed program was:" >&5
15231sed 's/^/| /' conftest.$ac_ext >&5
0200359f 15232
b4e70030 15233ac_cv_func_alloca_works=no
0200359f 15234fi
a3828db0
MK
15235rm -f conftest.err conftest.$ac_objext \
15236 conftest$ac_exeext conftest.$ac_ext
72473524 15237fi
b4e70030
JB
15238echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15239echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 15240
a3828db0
MK
15241if test $ac_cv_func_alloca_works = yes; then
15242
15243cat >>confdefs.h <<\_ACEOF
15244#define HAVE_ALLOCA 1
bec39cab
AC
15245_ACEOF
15246
a3828db0
MK
15247else
15248 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15249# that cause trouble. Some versions do not even contain alloca or
15250# contain a buggy version. If you still want to use their alloca,
15251# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 15252
b4e70030 15253ALLOCA=alloca.$ac_objext
bec39cab 15254
a3828db0
MK
15255cat >>confdefs.h <<\_ACEOF
15256#define C_ALLOCA 1
15257_ACEOF
bec39cab 15258
a3828db0 15259
b4e70030
JB
15260echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15261echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 15262if test "${ac_cv_os_cray+set}" = set; then
bec39cab 15263 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15264else
a3828db0 15265 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15266/* confdefs.h. */
15267_ACEOF
15268cat confdefs.h >>conftest.$ac_ext
15269cat >>conftest.$ac_ext <<_ACEOF
15270/* end confdefs.h. */
b4e70030 15271#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
15272webecray
15273#else
15274wenotbecray
15275#endif
15276
15277_ACEOF
15278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15279 $EGREP "webecray" >/dev/null 2>&1; then
15280 ac_cv_os_cray=yes
15281else
15282 ac_cv_os_cray=no
15283fi
15284rm -f conftest*
15285
15286fi
b4e70030
JB
15287echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15288echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
15289if test $ac_cv_os_cray = yes; then
15290 for ac_func in _getb67 GETB67 getb67; do
15291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15292echo "$as_me:$LINENO: checking for $ac_func" >&5
15293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15294if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15296else
15297 cat >conftest.$ac_ext <<_ACEOF
15298/* confdefs.h. */
15299_ACEOF
15300cat confdefs.h >>conftest.$ac_ext
15301cat >>conftest.$ac_ext <<_ACEOF
15302/* end confdefs.h. */
15303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15305#define $ac_func innocuous_$ac_func
15306
15307/* System header to define __stub macros and hopefully few prototypes,
15308 which can conflict with char $ac_func (); below.
15309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15310 <limits.h> exists even on freestanding compilers. */
15311
15312#ifdef __STDC__
15313# include <limits.h>
15314#else
15315# include <assert.h>
15316#endif
15317
15318#undef $ac_func
15319
b4e70030 15320/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
15321#ifdef __cplusplus
15322extern "C"
b4e70030 15323{
a3828db0 15324#endif
b4e70030
JB
15325/* We use char because int might match the return type of a gcc2
15326 builtin and then its argument prototype would still apply. */
a3828db0
MK
15327char $ac_func ();
15328/* The GNU C library defines this for functions which it implements
15329 to always fail with ENOSYS. Some functions are actually named
15330 something starting with __ and the normal name is an alias. */
b4e70030 15331#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 15332choke me
b4e70030
JB
15333#else
15334char (*f) () = $ac_func;
15335#endif
15336#ifdef __cplusplus
15337}
a3828db0
MK
15338#endif
15339
15340int
15341main ()
15342{
b4e70030 15343return f != $ac_func;
a3828db0
MK
15344 ;
15345 return 0;
15346}
15347_ACEOF
15348rm -f conftest.$ac_objext conftest$ac_exeext
15349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350 (eval $ac_link) 2>conftest.er1
15351 ac_status=$?
15352 grep -v '^ *+' conftest.er1 >conftest.err
15353 rm -f conftest.er1
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
b4e70030
JB
15357 { ac_try='test -z "$ac_c_werror_flag"
15358 || test ! -s conftest.err'
a3828db0
MK
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 eval "$as_ac_var=yes"
15371else
15372 echo "$as_me: failed program was:" >&5
15373sed 's/^/| /' conftest.$ac_ext >&5
15374
b4e70030 15375eval "$as_ac_var=no"
a3828db0
MK
15376fi
15377rm -f conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15379fi
b4e70030
JB
15380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
15382if test `eval echo '${'$as_ac_var'}'` = yes; then
15383
15384cat >>confdefs.h <<_ACEOF
15385#define CRAY_STACKSEG_END $ac_func
15386_ACEOF
15387
15388 break
15389fi
15390
15391 done
15392fi
15393
b4e70030
JB
15394echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15395echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
15396if test "${ac_cv_c_stack_direction+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398else
15399 if test "$cross_compiling" = yes; then
15400 ac_cv_c_stack_direction=0
15401else
15402 cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
15407/* end confdefs.h. */
15408int
15409find_stack_direction ()
15410{
15411 static char *addr = 0;
15412 auto char dummy;
15413 if (addr == 0)
15414 {
15415 addr = &dummy;
15416 return find_stack_direction ();
15417 }
15418 else
15419 return (&dummy > addr) ? 1 : -1;
15420}
15421
15422int
15423main ()
15424{
b4e70030 15425 exit (find_stack_direction () < 0);
a3828db0
MK
15426}
15427_ACEOF
15428rm -f conftest$ac_exeext
15429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_c_stack_direction=1
15440else
15441 echo "$as_me: program exited with status $ac_status" >&5
15442echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5
15444
15445( exit $ac_status )
15446ac_cv_c_stack_direction=-1
15447fi
b4e70030 15448rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
15449fi
15450fi
b4e70030
JB
15451echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15452echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
15453
15454cat >>confdefs.h <<_ACEOF
15455#define STACK_DIRECTION $ac_cv_c_stack_direction
15456_ACEOF
15457
15458
15459fi
15460
15461
15462
15463for ac_header in stdlib.h unistd.h
15464do
15465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15466if eval "test \"\${$as_ac_Header+set}\" = set"; then
15467 echo "$as_me:$LINENO: checking for $ac_header" >&5
15468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15469if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15471fi
b4e70030
JB
15472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
15474else
15475 # Is the header compilable?
b4e70030
JB
15476echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
15478cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
15484$ac_includes_default
15485#include <$ac_header>
15486_ACEOF
15487rm -f conftest.$ac_objext
15488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489 (eval $ac_compile) 2>conftest.er1
15490 ac_status=$?
bec39cab
AC
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
b4e70030
JB
15496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
bec39cab
AC
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 ac_header_compiler=yes
15510else
15511 echo "$as_me: failed program was:" >&5
15512sed 's/^/| /' conftest.$ac_ext >&5
15513
b4e70030 15514ac_header_compiler=no
bec39cab
AC
15515fi
15516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15517echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15519
15520# Is the header present?
b4e70030
JB
15521echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15523cat >conftest.$ac_ext <<_ACEOF
15524/* confdefs.h. */
15525_ACEOF
15526cat confdefs.h >>conftest.$ac_ext
15527cat >>conftest.$ac_ext <<_ACEOF
15528/* end confdefs.h. */
15529#include <$ac_header>
15530_ACEOF
15531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } >/dev/null; then
15539 if test -s conftest.err; then
15540 ac_cpp_err=$ac_c_preproc_warn_flag
15541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15542 else
15543 ac_cpp_err=
15544 fi
15545else
15546 ac_cpp_err=yes
15547fi
15548if test -z "$ac_cpp_err"; then
15549 ac_header_preproc=yes
97bf5e38 15550else
bec39cab
AC
15551 echo "$as_me: failed program was:" >&5
15552sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 ac_header_preproc=no
72473524 15555fi
bec39cab 15556rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15557echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 15559
bec39cab
AC
15560# So? What about this header?
15561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562 yes:no: )
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567 ac_header_preproc=yes
15568 ;;
15569 no:yes:* )
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15573echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15577echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15582 (
15583 cat <<\_ASBOX
15584## ------------------------------------------ ##
15585## Report this to the AC_PACKAGE_NAME lists. ##
15586## ------------------------------------------ ##
15587_ASBOX
15588 ) |
15589 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15590 ;;
15591esac
b4e70030
JB
15592echo "$as_me:$LINENO: checking for $ac_header" >&5
15593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15594if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15595 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15596else
bec39cab
AC
15597 eval "$as_ac_Header=\$ac_header_preproc"
15598fi
b4e70030
JB
15599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15601
15602fi
15603if test `eval echo '${'$as_ac_Header'}'` = yes; then
15604 cat >>confdefs.h <<_ACEOF
15605#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15606_ACEOF
15607
15608fi
15609
15610done
15611
15612
a3828db0 15613for ac_func in getpagesize
bec39cab
AC
15614do
15615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15616echo "$as_me:$LINENO: checking for $ac_func" >&5
15617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15618if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15620else
15621 cat >conftest.$ac_ext <<_ACEOF
15622/* confdefs.h. */
15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h. */
15627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15629#define $ac_func innocuous_$ac_func
15630
97bf5e38 15631/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15632 which can conflict with char $ac_func (); below.
15633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15634 <limits.h> exists even on freestanding compilers. */
2b2d558c 15635
bec39cab
AC
15636#ifdef __STDC__
15637# include <limits.h>
15638#else
15639# include <assert.h>
15640#endif
97bf5e38 15641
bec39cab
AC
15642#undef $ac_func
15643
b4e70030 15644/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
15645#ifdef __cplusplus
15646extern "C"
b4e70030 15647{
bec39cab 15648#endif
b4e70030
JB
15649/* We use char because int might match the return type of a gcc2
15650 builtin and then its argument prototype would still apply. */
bec39cab 15651char $ac_func ();
97bf5e38
MK
15652/* The GNU C library defines this for functions which it implements
15653 to always fail with ENOSYS. Some functions are actually named
15654 something starting with __ and the normal name is an alias. */
b4e70030 15655#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 15656choke me
b4e70030
JB
15657#else
15658char (*f) () = $ac_func;
15659#endif
15660#ifdef __cplusplus
15661}
97bf5e38
MK
15662#endif
15663
bec39cab
AC
15664int
15665main ()
15666{
b4e70030 15667return f != $ac_func;
bec39cab
AC
15668 ;
15669 return 0;
15670}
15671_ACEOF
15672rm -f conftest.$ac_objext conftest$ac_exeext
15673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15674 (eval $ac_link) 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
b4e70030
JB
15681 { ac_try='test -z "$ac_c_werror_flag"
15682 || test ! -s conftest.err'
bec39cab
AC
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest$ac_exeext'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 eval "$as_ac_var=yes"
15695else
15696 echo "$as_me: failed program was:" >&5
15697sed 's/^/| /' conftest.$ac_ext >&5
15698
b4e70030 15699eval "$as_ac_var=no"
bec39cab
AC
15700fi
15701rm -f conftest.err conftest.$ac_objext \
15702 conftest$ac_exeext conftest.$ac_ext
15703fi
b4e70030
JB
15704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15705echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
15706if test `eval echo '${'$as_ac_var'}'` = yes; then
15707 cat >>confdefs.h <<_ACEOF
15708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15709_ACEOF
15710
2b2d558c 15711fi
bec39cab 15712done
2b2d558c 15713
b4e70030
JB
15714echo "$as_me:$LINENO: checking for working mmap" >&5
15715echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 15716if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 15717 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15718else
bec39cab 15719 if test "$cross_compiling" = yes; then
a3828db0 15720 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
15721else
15722 cat >conftest.$ac_ext <<_ACEOF
a3828db0 15723/* confdefs.h. */
bec39cab
AC
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
15727/* end confdefs.h. */
a3828db0
MK
15728$ac_includes_default
15729/* malloc might have been renamed as rpl_malloc. */
15730#undef malloc
bec39cab 15731
a3828db0
MK
15732/* Thanks to Mike Haertel and Jim Avera for this test.
15733 Here is a matrix of mmap possibilities:
15734 mmap private not fixed
15735 mmap private fixed at somewhere currently unmapped
15736 mmap private fixed at somewhere already mapped
15737 mmap shared not fixed
15738 mmap shared fixed at somewhere currently unmapped
15739 mmap shared fixed at somewhere already mapped
15740 For private mappings, we should verify that changes cannot be read()
15741 back from the file, nor mmap's back from the file at a different
15742 address. (There have been systems where private was not correctly
15743 implemented like the infamous i386 svr4.0, and systems where the
15744 VM page cache was not coherent with the file system buffer cache
15745 like early versions of FreeBSD and possibly contemporary NetBSD.)
15746 For shared mappings, we should conversely verify that changes get
15747 propagated back to all the places they're supposed to be.
7dfa765c 15748
a3828db0
MK
15749 Grep wants private fixed already mapped.
15750 The main things grep needs to know about mmap are:
15751 * does it exist and is it safe to write into the mmap'd area
15752 * how to use it (BSD variants) */
7dfa765c 15753
a3828db0
MK
15754#include <fcntl.h>
15755#include <sys/mman.h>
7dfa765c 15756
a3828db0
MK
15757#if !STDC_HEADERS && !HAVE_STDLIB_H
15758char *malloc ();
15759#endif
7dfa765c 15760
a3828db0
MK
15761/* This mess was copied from the GNU getpagesize.h. */
15762#if !HAVE_GETPAGESIZE
15763/* Assume that all systems that can run configure have sys/param.h. */
15764# if !HAVE_SYS_PARAM_H
15765# define HAVE_SYS_PARAM_H 1
15766# endif
64bb1671 15767
a3828db0
MK
15768# ifdef _SC_PAGESIZE
15769# define getpagesize() sysconf(_SC_PAGESIZE)
15770# else /* no _SC_PAGESIZE */
15771# if HAVE_SYS_PARAM_H
15772# include <sys/param.h>
15773# ifdef EXEC_PAGESIZE
15774# define getpagesize() EXEC_PAGESIZE
15775# else /* no EXEC_PAGESIZE */
15776# ifdef NBPG
15777# define getpagesize() NBPG * CLSIZE
15778# ifndef CLSIZE
15779# define CLSIZE 1
15780# endif /* no CLSIZE */
15781# else /* no NBPG */
15782# ifdef NBPC
15783# define getpagesize() NBPC
15784# else /* no NBPC */
15785# ifdef PAGESIZE
15786# define getpagesize() PAGESIZE
15787# endif /* PAGESIZE */
15788# endif /* no NBPC */
15789# endif /* no NBPG */
15790# endif /* no EXEC_PAGESIZE */
15791# else /* no HAVE_SYS_PARAM_H */
15792# define getpagesize() 8192 /* punt totally */
15793# endif /* no HAVE_SYS_PARAM_H */
15794# endif /* no _SC_PAGESIZE */
64bb1671 15795
a3828db0 15796#endif /* no HAVE_GETPAGESIZE */
64bb1671 15797
a3828db0
MK
15798int
15799main ()
15800{
15801 char *data, *data2, *data3;
15802 int i, pagesize;
15803 int fd;
97bf5e38 15804
a3828db0
MK
15805 pagesize = getpagesize ();
15806
15807 /* First, make a file with some known garbage in it. */
15808 data = (char *) malloc (pagesize);
15809 if (!data)
b4e70030 15810 exit (1);
a3828db0
MK
15811 for (i = 0; i < pagesize; ++i)
15812 *(data + i) = rand ();
15813 umask (0);
15814 fd = creat ("conftest.mmap", 0600);
15815 if (fd < 0)
b4e70030 15816 exit (1);
a3828db0 15817 if (write (fd, data, pagesize) != pagesize)
b4e70030 15818 exit (1);
a3828db0
MK
15819 close (fd);
15820
15821 /* Next, try to mmap the file at a fixed address which already has
15822 something else allocated at it. If we can, also make sure that
15823 we see the same garbage. */
15824 fd = open ("conftest.mmap", O_RDWR);
15825 if (fd < 0)
b4e70030 15826 exit (1);
a3828db0
MK
15827 data2 = (char *) malloc (2 * pagesize);
15828 if (!data2)
b4e70030
JB
15829 exit (1);
15830 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
15831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 15833 exit (1);
a3828db0
MK
15834 for (i = 0; i < pagesize; ++i)
15835 if (*(data + i) != *(data2 + i))
b4e70030 15836 exit (1);
a3828db0
MK
15837
15838 /* Finally, make sure that changes to the mapped area do not
15839 percolate back to the file as seen by read(). (This is a bug on
15840 some variants of i386 svr4.0.) */
15841 for (i = 0; i < pagesize; ++i)
15842 *(data2 + i) = *(data2 + i) + 1;
15843 data3 = (char *) malloc (pagesize);
15844 if (!data3)
b4e70030 15845 exit (1);
a3828db0 15846 if (read (fd, data3, pagesize) != pagesize)
b4e70030 15847 exit (1);
a3828db0
MK
15848 for (i = 0; i < pagesize; ++i)
15849 if (*(data + i) != *(data3 + i))
b4e70030 15850 exit (1);
a3828db0 15851 close (fd);
b4e70030 15852 exit (0);
97bf5e38 15853}
bec39cab
AC
15854_ACEOF
15855rm -f conftest$ac_exeext
15856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
a3828db0 15866 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 15867else
bec39cab
AC
15868 echo "$as_me: program exited with status $ac_status" >&5
15869echo "$as_me: failed program was:" >&5
15870sed 's/^/| /' conftest.$ac_ext >&5
15871
15872( exit $ac_status )
a3828db0 15873ac_cv_func_mmap_fixed_mapped=no
0afdd437 15874fi
b4e70030 15875rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 15876fi
a3828db0 15877fi
b4e70030
JB
15878echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15879echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 15880if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
15881
15882cat >>confdefs.h <<\_ACEOF
a3828db0 15883#define HAVE_MMAP 1
bec39cab 15884_ACEOF
0afdd437
MK
15885
15886fi
a3828db0 15887rm -f conftest.mmap
0afdd437 15888
b4e70030
JB
15889echo "$as_me:$LINENO: checking for pid_t" >&5
15890echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 15891if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893else
15894 cat >conftest.$ac_ext <<_ACEOF
15895/* confdefs.h. */
15896_ACEOF
15897cat confdefs.h >>conftest.$ac_ext
15898cat >>conftest.$ac_ext <<_ACEOF
15899/* end confdefs.h. */
a3828db0 15900$ac_includes_default
bec39cab
AC
15901int
15902main ()
15903{
b4e70030 15904if ((pid_t *) 0)
a3828db0 15905 return 0;
b4e70030 15906if (sizeof (pid_t))
a3828db0 15907 return 0;
bec39cab
AC
15908 ;
15909 return 0;
15910}
15911_ACEOF
a3828db0
MK
15912rm -f conftest.$ac_objext
15913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15914 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
15915 ac_status=$?
15916 grep -v '^ *+' conftest.er1 >conftest.err
15917 rm -f conftest.er1
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
b4e70030
JB
15921 { ac_try='test -z "$ac_c_werror_flag"
15922 || test ! -s conftest.err'
bec39cab
AC
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15925 ac_status=$?
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } &&
a3828db0 15928 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
a3828db0 15934 ac_cv_type_pid_t=yes
bec39cab
AC
15935else
15936 echo "$as_me: failed program was:" >&5
15937sed 's/^/| /' conftest.$ac_ext >&5
15938
b4e70030 15939ac_cv_type_pid_t=no
bec39cab 15940fi
a3828db0 15941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 15942fi
b4e70030
JB
15943echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15944echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
15945if test $ac_cv_type_pid_t = yes; then
15946 :
15947else
15948
15949cat >>confdefs.h <<_ACEOF
15950#define pid_t int
bec39cab 15951_ACEOF
7e89e357 15952
7e89e357
JT
15953fi
15954
bec39cab 15955
b4e70030
JB
15956
15957for ac_header in unistd.h vfork.h
7be570e7 15958do
a3828db0 15959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15960if eval "test \"\${$as_ac_Header+set}\" = set"; then
15961 echo "$as_me:$LINENO: checking for $ac_header" >&5
15962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15963if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15964 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 15965fi
b4e70030
JB
15966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15968else
a3828db0 15969 # Is the header compilable?
b4e70030
JB
15970echo "$as_me:$LINENO: checking $ac_header usability" >&5
15971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 15972cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15973/* confdefs.h. */
15974_ACEOF
15975cat confdefs.h >>conftest.$ac_ext
15976cat >>conftest.$ac_ext <<_ACEOF
15977/* end confdefs.h. */
a3828db0
MK
15978$ac_includes_default
15979#include <$ac_header>
bec39cab 15980_ACEOF
a3828db0
MK
15981rm -f conftest.$ac_objext
15982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15983 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
15984 ac_status=$?
15985 grep -v '^ *+' conftest.er1 >conftest.err
15986 rm -f conftest.er1
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
b4e70030
JB
15990 { ac_try='test -z "$ac_c_werror_flag"
15991 || test ! -s conftest.err'
bec39cab
AC
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } &&
a3828db0 15997 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16000 ac_status=$?
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }; then
a3828db0 16003 ac_header_compiler=yes
bec39cab
AC
16004else
16005 echo "$as_me: failed program was:" >&5
16006sed 's/^/| /' conftest.$ac_ext >&5
16007
b4e70030 16008ac_header_compiler=no
bec39cab 16009fi
a3828db0 16010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16012echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
16013
16014# Is the header present?
b4e70030
JB
16015echo "$as_me:$LINENO: checking $ac_header presence" >&5
16016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
16017cat >conftest.$ac_ext <<_ACEOF
16018/* confdefs.h. */
16019_ACEOF
16020cat confdefs.h >>conftest.$ac_ext
16021cat >>conftest.$ac_ext <<_ACEOF
16022/* end confdefs.h. */
16023#include <$ac_header>
16024_ACEOF
16025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } >/dev/null; then
16033 if test -s conftest.err; then
16034 ac_cpp_err=$ac_c_preproc_warn_flag
16035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16036 else
16037 ac_cpp_err=
16038 fi
16039else
16040 ac_cpp_err=yes
16041fi
16042if test -z "$ac_cpp_err"; then
16043 ac_header_preproc=yes
16044else
16045 echo "$as_me: failed program was:" >&5
16046sed 's/^/| /' conftest.$ac_ext >&5
16047
16048 ac_header_preproc=no
16049fi
16050rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16052echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
16053
16054# So? What about this header?
16055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16056 yes:no: )
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16061 ac_header_preproc=yes
16062 ;;
16063 no:yes:* )
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16067echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16071echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16076 (
16077 cat <<\_ASBOX
16078## ------------------------------------------ ##
16079## Report this to the AC_PACKAGE_NAME lists. ##
16080## ------------------------------------------ ##
16081_ASBOX
16082 ) |
16083 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
16084 ;;
16085esac
b4e70030
JB
16086echo "$as_me:$LINENO: checking for $ac_header" >&5
16087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16088if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090else
16091 eval "$as_ac_Header=\$ac_header_preproc"
16092fi
b4e70030
JB
16093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 16095
bec39cab 16096fi
a3828db0 16097if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 16098 cat >>confdefs.h <<_ACEOF
a3828db0 16099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 16100_ACEOF
14abd0fb 16101
14abd0fb 16102fi
a3828db0 16103
14abd0fb
MK
16104done
16105
bec39cab 16106
a3828db0
MK
16107
16108for ac_func in fork vfork
14abd0fb 16109do
bec39cab 16110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16111echo "$as_me:$LINENO: checking for $ac_func" >&5
16112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16113if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115else
16116 cat >conftest.$ac_ext <<_ACEOF
16117/* confdefs.h. */
16118_ACEOF
16119cat confdefs.h >>conftest.$ac_ext
16120cat >>conftest.$ac_ext <<_ACEOF
16121/* end confdefs.h. */
16122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16124#define $ac_func innocuous_$ac_func
16125
14abd0fb 16126/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16127 which can conflict with char $ac_func (); below.
16128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16129 <limits.h> exists even on freestanding compilers. */
16130
16131#ifdef __STDC__
16132# include <limits.h>
16133#else
16134# include <assert.h>
16135#endif
14abd0fb 16136
bec39cab 16137#undef $ac_func
14abd0fb 16138
b4e70030 16139/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16140#ifdef __cplusplus
16141extern "C"
b4e70030 16142{
bec39cab 16143#endif
b4e70030
JB
16144/* We use char because int might match the return type of a gcc2
16145 builtin and then its argument prototype would still apply. */
bec39cab 16146char $ac_func ();
14abd0fb
MK
16147/* The GNU C library defines this for functions which it implements
16148 to always fail with ENOSYS. Some functions are actually named
16149 something starting with __ and the normal name is an alias. */
b4e70030 16150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 16151choke me
b4e70030
JB
16152#else
16153char (*f) () = $ac_func;
16154#endif
16155#ifdef __cplusplus
16156}
14abd0fb
MK
16157#endif
16158
bec39cab
AC
16159int
16160main ()
16161{
b4e70030 16162return f != $ac_func;
bec39cab
AC
16163 ;
16164 return 0;
16165}
16166_ACEOF
16167rm -f conftest.$ac_objext conftest$ac_exeext
16168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16169 (eval $ac_link) 2>conftest.er1
16170 ac_status=$?
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
b4e70030
JB
16176 { ac_try='test -z "$ac_c_werror_flag"
16177 || test ! -s conftest.err'
bec39cab
AC
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; } &&
16183 { ac_try='test -s conftest$ac_exeext'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 eval "$as_ac_var=yes"
16190else
16191 echo "$as_me: failed program was:" >&5
16192sed 's/^/| /' conftest.$ac_ext >&5
16193
b4e70030 16194eval "$as_ac_var=no"
bec39cab
AC
16195fi
16196rm -f conftest.err conftest.$ac_objext \
16197 conftest$ac_exeext conftest.$ac_ext
16198fi
b4e70030
JB
16199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16200echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16201if test `eval echo '${'$as_ac_var'}'` = yes; then
16202 cat >>confdefs.h <<_ACEOF
16203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16204_ACEOF
7be570e7 16205
7be570e7
JM
16206fi
16207done
16208
a3828db0 16209if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
16210 echo "$as_me:$LINENO: checking for working fork" >&5
16211echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
16212if test "${ac_cv_func_fork_works+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16214else
16215 if test "$cross_compiling" = yes; then
16216 ac_cv_func_fork_works=cross
16217else
16218 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
16219/* By Ruediger Kuhlmann. */
16220 #include <sys/types.h>
16221 #if HAVE_UNISTD_H
16222 # include <unistd.h>
16223 #endif
16224 /* Some systems only have a dummy stub for fork() */
16225 int main ()
16226 {
16227 if (fork() < 0)
16228 exit (1);
16229 exit (0);
16230 }
a3828db0
MK
16231_ACEOF
16232rm -f conftest$ac_exeext
16233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16234 (eval $ac_link) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_func_fork_works=yes
16244else
16245 echo "$as_me: program exited with status $ac_status" >&5
16246echo "$as_me: failed program was:" >&5
16247sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16248
a3828db0
MK
16249( exit $ac_status )
16250ac_cv_func_fork_works=no
16251fi
b4e70030 16252rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16253fi
16254fi
b4e70030
JB
16255echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16256echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
16257
16258else
16259 ac_cv_func_fork_works=$ac_cv_func_fork
16260fi
16261if test "x$ac_cv_func_fork_works" = xcross; then
16262 case $host in
16263 *-*-amigaos* | *-*-msdosdjgpp*)
16264 # Override, as these systems have only a dummy fork() stub
16265 ac_cv_func_fork_works=no
16266 ;;
16267 *)
16268 ac_cv_func_fork_works=yes
16269 ;;
16270 esac
16271 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16272echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16273fi
16274ac_cv_func_vfork_works=$ac_cv_func_vfork
16275if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
16276 echo "$as_me:$LINENO: checking for working vfork" >&5
16277echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 16278if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 16279 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16280else
16281 if test "$cross_compiling" = yes; then
16282 ac_cv_func_vfork_works=cross
bec39cab
AC
16283else
16284 cat >conftest.$ac_ext <<_ACEOF
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
a3828db0 16290/* Thanks to Paul Eggert for this test. */
b4e70030
JB
16291#include <stdio.h>
16292#include <stdlib.h>
16293#include <sys/types.h>
16294#include <sys/stat.h>
a3828db0 16295#include <sys/wait.h>
b4e70030
JB
16296#if HAVE_UNISTD_H
16297# include <unistd.h>
16298#endif
a3828db0
MK
16299#if HAVE_VFORK_H
16300# include <vfork.h>
bec39cab 16301#endif
a3828db0
MK
16302/* On some sparc systems, changes by the child to local and incoming
16303 argument registers are propagated back to the parent. The compiler
16304 is told about this with #include <vfork.h>, but some compilers
16305 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16306 static variable whose address is put into a register that is
16307 clobbered by the vfork. */
16308static void
bec39cab 16309#ifdef __cplusplus
a3828db0
MK
16310sparc_address_test (int arg)
16311# else
16312sparc_address_test (arg) int arg;
c906108c 16313#endif
a3828db0
MK
16314{
16315 static pid_t child;
16316 if (!child) {
16317 child = vfork ();
16318 if (child < 0) {
16319 perror ("vfork");
16320 _exit(2);
16321 }
16322 if (!child) {
16323 arg = getpid();
16324 write(-1, "", 0);
16325 _exit (arg);
16326 }
16327 }
16328}
97bf5e38 16329
bec39cab
AC
16330int
16331main ()
16332{
a3828db0
MK
16333 pid_t parent = getpid ();
16334 pid_t child;
16335
16336 sparc_address_test (0);
16337
16338 child = vfork ();
16339
16340 if (child == 0) {
16341 /* Here is another test for sparc vfork register problems. This
16342 test uses lots of local variables, at least as many local
16343 variables as main has allocated so far including compiler
16344 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16345 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16346 reuse the register of parent for one of the local variables,
16347 since it will think that parent can't possibly be used any more
16348 in this routine. Assigning to the local variable will thus
16349 munge parent in the parent process. */
16350 pid_t
16351 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16352 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16353 /* Convince the compiler that p..p7 are live; otherwise, it might
16354 use the same hardware register for all 8 local variables. */
16355 if (p != p1 || p != p2 || p != p3 || p != p4
16356 || p != p5 || p != p6 || p != p7)
16357 _exit(1);
16358
16359 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16360 from child file descriptors. If the child closes a descriptor
16361 before it execs or exits, this munges the parent's descriptor
16362 as well. Test for this by closing stdout in the child. */
16363 _exit(close(fileno(stdout)) != 0);
16364 } else {
16365 int status;
16366 struct stat st;
16367
16368 while (wait(&status) != child)
16369 ;
b4e70030 16370 exit(
a3828db0
MK
16371 /* Was there some problem with vforking? */
16372 child < 0
16373
16374 /* Did the child fail? (This shouldn't happen.) */
16375 || status
16376
16377 /* Did the vfork/compiler bug occur? */
16378 || parent != getpid()
16379
16380 /* Did the file descriptor bug occur? */
16381 || fstat(fileno(stdout), &st) != 0
16382 );
16383 }
bec39cab
AC
16384}
16385_ACEOF
a3828db0 16386rm -f conftest$ac_exeext
bec39cab 16387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16388 (eval $ac_link) 2>&5
bec39cab
AC
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
a3828db0
MK
16397 ac_cv_func_vfork_works=yes
16398else
16399 echo "$as_me: program exited with status $ac_status" >&5
16400echo "$as_me: failed program was:" >&5
16401sed 's/^/| /' conftest.$ac_ext >&5
16402
16403( exit $ac_status )
16404ac_cv_func_vfork_works=no
16405fi
b4e70030 16406rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16407fi
16408fi
b4e70030
JB
16409echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16410echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
16411
16412fi;
16413if test "x$ac_cv_func_fork_works" = xcross; then
16414 ac_cv_func_vfork_works=$ac_cv_func_vfork
16415 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16416echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16417fi
16418
16419if test "x$ac_cv_func_vfork_works" = xyes; then
16420
16421cat >>confdefs.h <<\_ACEOF
16422#define HAVE_WORKING_VFORK 1
16423_ACEOF
16424
bec39cab 16425else
bec39cab 16426
a3828db0
MK
16427cat >>confdefs.h <<\_ACEOF
16428#define vfork fork
16429_ACEOF
16430
bec39cab 16431fi
a3828db0
MK
16432if test "x$ac_cv_func_fork_works" = xyes; then
16433
16434cat >>confdefs.h <<\_ACEOF
16435#define HAVE_WORKING_FORK 1
bec39cab 16436_ACEOF
c906108c 16437
c906108c
SS
16438fi
16439
bec39cab
AC
16440
16441
a3828db0 16442for ac_func in canonicalize_file_name realpath
97bf5e38 16443do
bec39cab 16444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16445echo "$as_me:$LINENO: checking for $ac_func" >&5
16446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16447if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449else
16450 cat >conftest.$ac_ext <<_ACEOF
16451/* confdefs.h. */
16452_ACEOF
16453cat confdefs.h >>conftest.$ac_ext
16454cat >>conftest.$ac_ext <<_ACEOF
16455/* end confdefs.h. */
16456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16458#define $ac_func innocuous_$ac_func
16459
d3ea6809
MM
16460/* System header to define __stub macros and hopefully few prototypes,
16461 which can conflict with char $ac_func (); below.
16462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16463 <limits.h> exists even on freestanding compilers. */
16464
16465#ifdef __STDC__
16466# include <limits.h>
16467#else
16468# include <assert.h>
16469#endif
16470
16471#undef $ac_func
16472
b4e70030 16473/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
16474#ifdef __cplusplus
16475extern "C"
b4e70030 16476{
d3ea6809 16477#endif
b4e70030
JB
16478/* We use char because int might match the return type of a gcc2
16479 builtin and then its argument prototype would still apply. */
d3ea6809
MM
16480char $ac_func ();
16481/* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
b4e70030 16484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 16485choke me
b4e70030
JB
16486#else
16487char (*f) () = $ac_func;
16488#endif
16489#ifdef __cplusplus
16490}
d3ea6809
MM
16491#endif
16492
16493int
16494main ()
16495{
b4e70030 16496return f != $ac_func;
d3ea6809
MM
16497 ;
16498 return 0;
16499}
16500_ACEOF
16501rm -f conftest.$ac_objext conftest$ac_exeext
16502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16503 (eval $ac_link) 2>conftest.er1
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
b4e70030
JB
16510 { ac_try='test -z "$ac_c_werror_flag"
16511 || test ! -s conftest.err'
d3ea6809
MM
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest$ac_exeext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 eval "$as_ac_var=yes"
16524else
16525 echo "$as_me: failed program was:" >&5
16526sed 's/^/| /' conftest.$ac_ext >&5
16527
b4e70030 16528eval "$as_ac_var=no"
d3ea6809
MM
16529fi
16530rm -f conftest.err conftest.$ac_objext \
16531 conftest$ac_exeext conftest.$ac_ext
16532fi
b4e70030
JB
16533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16534echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
16535if test `eval echo '${'$as_ac_var'}'` = yes; then
16536 cat >>confdefs.h <<_ACEOF
16537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16538_ACEOF
16539
16540fi
16541done
16542
16543
16544
16545for ac_func in getuid getgid
16546do
16547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16548echo "$as_me:$LINENO: checking for $ac_func" >&5
16549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16550if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16552else
16553 cat >conftest.$ac_ext <<_ACEOF
16554/* confdefs.h. */
16555_ACEOF
16556cat confdefs.h >>conftest.$ac_ext
16557cat >>conftest.$ac_ext <<_ACEOF
16558/* end confdefs.h. */
16559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16561#define $ac_func innocuous_$ac_func
16562
97bf5e38 16563/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16564 which can conflict with char $ac_func (); below.
16565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566 <limits.h> exists even on freestanding compilers. */
c906108c 16567
bec39cab
AC
16568#ifdef __STDC__
16569# include <limits.h>
16570#else
16571# include <assert.h>
16572#endif
97bf5e38 16573
bec39cab
AC
16574#undef $ac_func
16575
b4e70030 16576/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16577#ifdef __cplusplus
16578extern "C"
b4e70030 16579{
bec39cab 16580#endif
b4e70030
JB
16581/* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
bec39cab 16583char $ac_func ();
97bf5e38
MK
16584/* The GNU C library defines this for functions which it implements
16585 to always fail with ENOSYS. Some functions are actually named
16586 something starting with __ and the normal name is an alias. */
b4e70030 16587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16588choke me
b4e70030
JB
16589#else
16590char (*f) () = $ac_func;
16591#endif
16592#ifdef __cplusplus
16593}
c906108c 16594#endif
97bf5e38 16595
bec39cab
AC
16596int
16597main ()
16598{
b4e70030 16599return f != $ac_func;
bec39cab
AC
16600 ;
16601 return 0;
16602}
16603_ACEOF
16604rm -f conftest.$ac_objext conftest$ac_exeext
16605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606 (eval $ac_link) 2>conftest.er1
16607 ac_status=$?
16608 grep -v '^ *+' conftest.er1 >conftest.err
16609 rm -f conftest.er1
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } &&
b4e70030
JB
16613 { ac_try='test -z "$ac_c_werror_flag"
16614 || test ! -s conftest.err'
bec39cab
AC
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 eval "$as_ac_var=yes"
16627else
16628 echo "$as_me: failed program was:" >&5
16629sed 's/^/| /' conftest.$ac_ext >&5
16630
b4e70030 16631eval "$as_ac_var=no"
bec39cab
AC
16632fi
16633rm -f conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16635fi
b4e70030
JB
16636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16638if test `eval echo '${'$as_ac_var'}'` = yes; then
16639 cat >>confdefs.h <<_ACEOF
16640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16641_ACEOF
c906108c 16642
c906108c 16643fi
97bf5e38 16644done
c906108c 16645
bec39cab 16646
a3828db0 16647for ac_func in poll
97bf5e38 16648do
bec39cab 16649as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16650echo "$as_me:$LINENO: checking for $ac_func" >&5
16651echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16652if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16654else
16655 cat >conftest.$ac_ext <<_ACEOF
16656/* confdefs.h. */
16657_ACEOF
16658cat confdefs.h >>conftest.$ac_ext
16659cat >>conftest.$ac_ext <<_ACEOF
16660/* end confdefs.h. */
16661/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16663#define $ac_func innocuous_$ac_func
16664
97bf5e38 16665/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16666 which can conflict with char $ac_func (); below.
16667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16668 <limits.h> exists even on freestanding compilers. */
16669
16670#ifdef __STDC__
16671# include <limits.h>
16672#else
16673# include <assert.h>
16674#endif
c906108c 16675
bec39cab 16676#undef $ac_func
97bf5e38 16677
b4e70030 16678/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16679#ifdef __cplusplus
16680extern "C"
b4e70030 16681{
bec39cab 16682#endif
b4e70030
JB
16683/* We use char because int might match the return type of a gcc2
16684 builtin and then its argument prototype would still apply. */
bec39cab 16685char $ac_func ();
97bf5e38
MK
16686/* The GNU C library defines this for functions which it implements
16687 to always fail with ENOSYS. Some functions are actually named
16688 something starting with __ and the normal name is an alias. */
b4e70030 16689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16690choke me
b4e70030
JB
16691#else
16692char (*f) () = $ac_func;
16693#endif
16694#ifdef __cplusplus
16695}
c906108c 16696#endif
97bf5e38 16697
bec39cab
AC
16698int
16699main ()
16700{
b4e70030 16701return f != $ac_func;
bec39cab
AC
16702 ;
16703 return 0;
16704}
16705_ACEOF
16706rm -f conftest.$ac_objext conftest$ac_exeext
16707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16708 (eval $ac_link) 2>conftest.er1
16709 ac_status=$?
16710 grep -v '^ *+' conftest.er1 >conftest.err
16711 rm -f conftest.er1
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
b4e70030
JB
16715 { ac_try='test -z "$ac_c_werror_flag"
16716 || test ! -s conftest.err'
bec39cab
AC
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; } &&
16722 { ac_try='test -s conftest$ac_exeext'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 eval "$as_ac_var=yes"
16729else
16730 echo "$as_me: failed program was:" >&5
16731sed 's/^/| /' conftest.$ac_ext >&5
16732
b4e70030 16733eval "$as_ac_var=no"
bec39cab
AC
16734fi
16735rm -f conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16737fi
b4e70030
JB
16738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16739echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16740if test `eval echo '${'$as_ac_var'}'` = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16743_ACEOF
c906108c 16744
c906108c 16745fi
97bf5e38 16746done
c906108c 16747
bec39cab 16748
a3828db0 16749for ac_func in pread64
97bf5e38 16750do
bec39cab 16751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16752echo "$as_me:$LINENO: checking for $ac_func" >&5
16753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16754if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756else
16757 cat >conftest.$ac_ext <<_ACEOF
16758/* confdefs.h. */
16759_ACEOF
16760cat confdefs.h >>conftest.$ac_ext
16761cat >>conftest.$ac_ext <<_ACEOF
16762/* end confdefs.h. */
16763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765#define $ac_func innocuous_$ac_func
16766
97bf5e38 16767/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16768 which can conflict with char $ac_func (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
16771
16772#ifdef __STDC__
16773# include <limits.h>
16774#else
16775# include <assert.h>
16776#endif
c906108c 16777
bec39cab 16778#undef $ac_func
97bf5e38 16779
b4e70030 16780/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16781#ifdef __cplusplus
16782extern "C"
b4e70030 16783{
bec39cab 16784#endif
b4e70030
JB
16785/* We use char because int might match the return type of a gcc2
16786 builtin and then its argument prototype would still apply. */
bec39cab 16787char $ac_func ();
97bf5e38
MK
16788/* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
b4e70030 16791#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16792choke me
b4e70030
JB
16793#else
16794char (*f) () = $ac_func;
16795#endif
16796#ifdef __cplusplus
16797}
c906108c 16798#endif
97bf5e38 16799
bec39cab
AC
16800int
16801main ()
16802{
b4e70030 16803return f != $ac_func;
bec39cab
AC
16804 ;
16805 return 0;
16806}
16807_ACEOF
16808rm -f conftest.$ac_objext conftest$ac_exeext
16809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16810 (eval $ac_link) 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
b4e70030
JB
16817 { ac_try='test -z "$ac_c_werror_flag"
16818 || test ! -s conftest.err'
bec39cab
AC
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest$ac_exeext'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 eval "$as_ac_var=yes"
16831else
16832 echo "$as_me: failed program was:" >&5
16833sed 's/^/| /' conftest.$ac_ext >&5
16834
b4e70030 16835eval "$as_ac_var=no"
bec39cab
AC
16836fi
16837rm -f conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16839fi
b4e70030
JB
16840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16841echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16842if test `eval echo '${'$as_ac_var'}'` = yes; then
16843 cat >>confdefs.h <<_ACEOF
16844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16845_ACEOF
c906108c 16846
c906108c 16847fi
97bf5e38 16848done
c906108c 16849
bec39cab 16850
a3828db0 16851for ac_func in sbrk
b757528f 16852do
bec39cab 16853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16854echo "$as_me:$LINENO: checking for $ac_func" >&5
16855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16856if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16858else
16859 cat >conftest.$ac_ext <<_ACEOF
16860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h. */
16865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16867#define $ac_func innocuous_$ac_func
16868
b757528f 16869/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16870 which can conflict with char $ac_func (); below.
16871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16872 <limits.h> exists even on freestanding compilers. */
16873
16874#ifdef __STDC__
16875# include <limits.h>
16876#else
16877# include <assert.h>
16878#endif
b757528f 16879
bec39cab 16880#undef $ac_func
b757528f 16881
b4e70030 16882/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16883#ifdef __cplusplus
16884extern "C"
b4e70030 16885{
bec39cab 16886#endif
b4e70030
JB
16887/* We use char because int might match the return type of a gcc2
16888 builtin and then its argument prototype would still apply. */
bec39cab 16889char $ac_func ();
b757528f
JJ
16890/* The GNU C library defines this for functions which it implements
16891 to always fail with ENOSYS. Some functions are actually named
16892 something starting with __ and the normal name is an alias. */
b4e70030 16893#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 16894choke me
b4e70030
JB
16895#else
16896char (*f) () = $ac_func;
16897#endif
16898#ifdef __cplusplus
16899}
b757528f
JJ
16900#endif
16901
bec39cab
AC
16902int
16903main ()
16904{
b4e70030 16905return f != $ac_func;
bec39cab
AC
16906 ;
16907 return 0;
16908}
16909_ACEOF
16910rm -f conftest.$ac_objext conftest$ac_exeext
16911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>conftest.er1
16913 ac_status=$?
16914 grep -v '^ *+' conftest.er1 >conftest.err
16915 rm -f conftest.er1
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
b4e70030
JB
16919 { ac_try='test -z "$ac_c_werror_flag"
16920 || test ! -s conftest.err'
bec39cab
AC
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest$ac_exeext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 eval "$as_ac_var=yes"
16933else
16934 echo "$as_me: failed program was:" >&5
16935sed 's/^/| /' conftest.$ac_ext >&5
16936
b4e70030 16937eval "$as_ac_var=no"
bec39cab
AC
16938fi
16939rm -f conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16941fi
b4e70030
JB
16942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16943echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16944if test `eval echo '${'$as_ac_var'}'` = yes; then
16945 cat >>confdefs.h <<_ACEOF
16946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16947_ACEOF
b757528f 16948
b757528f
JJ
16949fi
16950done
16951
bec39cab 16952
a3828db0
MK
16953
16954for ac_func in setpgid setpgrp
bcb3dc3d 16955do
bec39cab 16956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16957echo "$as_me:$LINENO: checking for $ac_func" >&5
16958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16959if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16960 echo $ECHO_N "(cached) $ECHO_C" >&6
16961else
16962 cat >conftest.$ac_ext <<_ACEOF
16963/* confdefs.h. */
16964_ACEOF
16965cat confdefs.h >>conftest.$ac_ext
16966cat >>conftest.$ac_ext <<_ACEOF
16967/* end confdefs.h. */
16968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16970#define $ac_func innocuous_$ac_func
16971
bcb3dc3d 16972/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16973 which can conflict with char $ac_func (); below.
16974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16975 <limits.h> exists even on freestanding compilers. */
16976
16977#ifdef __STDC__
16978# include <limits.h>
16979#else
16980# include <assert.h>
16981#endif
bcb3dc3d 16982
bec39cab 16983#undef $ac_func
bcb3dc3d 16984
b4e70030 16985/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16986#ifdef __cplusplus
16987extern "C"
b4e70030 16988{
bec39cab 16989#endif
b4e70030
JB
16990/* We use char because int might match the return type of a gcc2
16991 builtin and then its argument prototype would still apply. */
bec39cab 16992char $ac_func ();
bcb3dc3d
MK
16993/* The GNU C library defines this for functions which it implements
16994 to always fail with ENOSYS. Some functions are actually named
16995 something starting with __ and the normal name is an alias. */
b4e70030 16996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 16997choke me
b4e70030
JB
16998#else
16999char (*f) () = $ac_func;
17000#endif
17001#ifdef __cplusplus
17002}
bcb3dc3d
MK
17003#endif
17004
bec39cab
AC
17005int
17006main ()
17007{
b4e70030 17008return f != $ac_func;
bec39cab
AC
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013rm -f conftest.$ac_objext conftest$ac_exeext
17014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
b4e70030
JB
17022 { ac_try='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
bec39cab
AC
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 eval "$as_ac_var=yes"
17036else
17037 echo "$as_me: failed program was:" >&5
17038sed 's/^/| /' conftest.$ac_ext >&5
17039
b4e70030 17040eval "$as_ac_var=no"
bec39cab
AC
17041fi
17042rm -f conftest.err conftest.$ac_objext \
17043 conftest$ac_exeext conftest.$ac_ext
17044fi
b4e70030
JB
17045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17047if test `eval echo '${'$as_ac_var'}'` = yes; then
17048 cat >>confdefs.h <<_ACEOF
17049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17050_ACEOF
bcb3dc3d 17051
bcb3dc3d
MK
17052fi
17053done
17054
bec39cab 17055
a3828db0
MK
17056
17057
17058for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 17059do
bec39cab 17060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17061echo "$as_me:$LINENO: checking for $ac_func" >&5
17062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17063if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065else
17066 cat >conftest.$ac_ext <<_ACEOF
17067/* confdefs.h. */
17068_ACEOF
17069cat confdefs.h >>conftest.$ac_ext
17070cat >>conftest.$ac_ext <<_ACEOF
17071/* end confdefs.h. */
17072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17074#define $ac_func innocuous_$ac_func
17075
8b9cf735 17076/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17077 which can conflict with char $ac_func (); below.
17078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079 <limits.h> exists even on freestanding compilers. */
17080
17081#ifdef __STDC__
17082# include <limits.h>
17083#else
17084# include <assert.h>
17085#endif
8b9cf735 17086
bec39cab 17087#undef $ac_func
8b9cf735 17088
b4e70030 17089/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17090#ifdef __cplusplus
17091extern "C"
b4e70030 17092{
a3828db0 17093#endif
b4e70030
JB
17094/* We use char because int might match the return type of a gcc2
17095 builtin and then its argument prototype would still apply. */
a3828db0
MK
17096char $ac_func ();
17097/* The GNU C library defines this for functions which it implements
17098 to always fail with ENOSYS. Some functions are actually named
17099 something starting with __ and the normal name is an alias. */
b4e70030 17100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17101choke me
b4e70030
JB
17102#else
17103char (*f) () = $ac_func;
17104#endif
17105#ifdef __cplusplus
17106}
a3828db0
MK
17107#endif
17108
bec39cab
AC
17109int
17110main ()
17111{
b4e70030 17112return f != $ac_func;
bec39cab
AC
17113 ;
17114 return 0;
17115}
17116_ACEOF
a3828db0
MK
17117rm -f conftest.$ac_objext conftest$ac_exeext
17118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17120 ac_status=$?
17121 grep -v '^ *+' conftest.er1 >conftest.err
17122 rm -f conftest.er1
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
b4e70030
JB
17126 { ac_try='test -z "$ac_c_werror_flag"
17127 || test ! -s conftest.err'
bec39cab
AC
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17130 ac_status=$?
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; } &&
a3828db0 17133 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
a3828db0 17139 eval "$as_ac_var=yes"
086ec9eb 17140else
bec39cab
AC
17141 echo "$as_me: failed program was:" >&5
17142sed 's/^/| /' conftest.$ac_ext >&5
17143
b4e70030 17144eval "$as_ac_var=no"
a3828db0
MK
17145fi
17146rm -f conftest.err conftest.$ac_objext \
17147 conftest$ac_exeext conftest.$ac_ext
17148fi
b4e70030
JB
17149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17151if test `eval echo '${'$as_ac_var'}'` = yes; then
17152 cat >>confdefs.h <<_ACEOF
17153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17154_ACEOF
17155
086ec9eb 17156fi
a3828db0
MK
17157done
17158
17159
17160for ac_func in socketpair
17161do
17162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17163echo "$as_me:$LINENO: checking for $ac_func" >&5
17164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17165if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167else
17168 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17169/* confdefs.h. */
17170_ACEOF
17171cat confdefs.h >>conftest.$ac_ext
17172cat >>conftest.$ac_ext <<_ACEOF
17173/* end confdefs.h. */
a3828db0
MK
17174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17176#define $ac_func innocuous_$ac_func
17177
17178/* System header to define __stub macros and hopefully few prototypes,
17179 which can conflict with char $ac_func (); below.
17180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17181 <limits.h> exists even on freestanding compilers. */
17182
17183#ifdef __STDC__
17184# include <limits.h>
17185#else
17186# include <assert.h>
17187#endif
17188
17189#undef $ac_func
17190
b4e70030 17191/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17192#ifdef __cplusplus
17193extern "C"
b4e70030 17194{
a3828db0 17195#endif
b4e70030
JB
17196/* We use char because int might match the return type of a gcc2
17197 builtin and then its argument prototype would still apply. */
a3828db0
MK
17198char $ac_func ();
17199/* The GNU C library defines this for functions which it implements
17200 to always fail with ENOSYS. Some functions are actually named
17201 something starting with __ and the normal name is an alias. */
b4e70030 17202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17203choke me
b4e70030
JB
17204#else
17205char (*f) () = $ac_func;
17206#endif
17207#ifdef __cplusplus
17208}
a3828db0
MK
17209#endif
17210
bec39cab
AC
17211int
17212main ()
17213{
b4e70030 17214return f != $ac_func;
bec39cab
AC
17215 ;
17216 return 0;
17217}
17218_ACEOF
a3828db0
MK
17219rm -f conftest.$ac_objext conftest$ac_exeext
17220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17221 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17222 ac_status=$?
17223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
b4e70030
JB
17228 { ac_try='test -z "$ac_c_werror_flag"
17229 || test ! -s conftest.err'
bec39cab
AC
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
a3828db0 17235 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
a3828db0 17241 eval "$as_ac_var=yes"
086ec9eb 17242else
bec39cab
AC
17243 echo "$as_me: failed program was:" >&5
17244sed 's/^/| /' conftest.$ac_ext >&5
17245
b4e70030 17246eval "$as_ac_var=no"
086ec9eb 17247fi
a3828db0
MK
17248rm -f conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
086ec9eb 17250fi
b4e70030
JB
17251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17252echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17253if test `eval echo '${'$as_ac_var'}'` = yes; then
17254 cat >>confdefs.h <<_ACEOF
17255#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17256_ACEOF
086ec9eb
MK
17257
17258fi
a3828db0 17259done
086ec9eb 17260
a3828db0
MK
17261
17262for ac_func in syscall
17263do
17264as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17265echo "$as_me:$LINENO: checking for $ac_func" >&5
17266echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17267if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17268 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
17269else
17270 cat >conftest.$ac_ext <<_ACEOF
17271/* confdefs.h. */
17272_ACEOF
17273cat confdefs.h >>conftest.$ac_ext
17274cat >>conftest.$ac_ext <<_ACEOF
17275/* end confdefs.h. */
a3828db0
MK
17276/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17278#define $ac_func innocuous_$ac_func
17279
17280/* System header to define __stub macros and hopefully few prototypes,
17281 which can conflict with char $ac_func (); below.
17282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17283 <limits.h> exists even on freestanding compilers. */
17284
17285#ifdef __STDC__
17286# include <limits.h>
17287#else
17288# include <assert.h>
17289#endif
17290
17291#undef $ac_func
17292
b4e70030 17293/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17294#ifdef __cplusplus
17295extern "C"
b4e70030 17296{
a3828db0 17297#endif
b4e70030
JB
17298/* We use char because int might match the return type of a gcc2
17299 builtin and then its argument prototype would still apply. */
a3828db0
MK
17300char $ac_func ();
17301/* The GNU C library defines this for functions which it implements
17302 to always fail with ENOSYS. Some functions are actually named
17303 something starting with __ and the normal name is an alias. */
b4e70030 17304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17305choke me
b4e70030
JB
17306#else
17307char (*f) () = $ac_func;
17308#endif
17309#ifdef __cplusplus
17310}
c906108c 17311#endif
97bf5e38 17312
bec39cab
AC
17313int
17314main ()
97bf5e38 17315{
b4e70030 17316return f != $ac_func;
bec39cab
AC
17317 ;
17318 return 0;
97bf5e38 17319}
bec39cab 17320_ACEOF
a3828db0 17321rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 17322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17323 (eval $ac_link) 2>conftest.er1
bec39cab 17324 ac_status=$?
a3828db0
MK
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
bec39cab 17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17329 (exit $ac_status); } &&
b4e70030
JB
17330 { ac_try='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
a3828db0
MK
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
a3828db0 17343 eval "$as_ac_var=yes"
c906108c 17344else
a3828db0 17345 echo "$as_me: failed program was:" >&5
bec39cab
AC
17346sed 's/^/| /' conftest.$ac_ext >&5
17347
b4e70030 17348eval "$as_ac_var=no"
97bf5e38 17349fi
a3828db0
MK
17350rm -f conftest.err conftest.$ac_objext \
17351 conftest$ac_exeext conftest.$ac_ext
17352fi
b4e70030
JB
17353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17354echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17355if test `eval echo '${'$as_ac_var'}'` = yes; then
17356 cat >>confdefs.h <<_ACEOF
17357#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17358_ACEOF
c906108c
SS
17359
17360fi
a3828db0 17361done
c906108c 17362
a3828db0
MK
17363
17364for ac_func in ttrace
17365do
17366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17367echo "$as_me:$LINENO: checking for $ac_func" >&5
17368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17369if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17370 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 17371else
bec39cab
AC
17372 cat >conftest.$ac_ext <<_ACEOF
17373/* confdefs.h. */
17374_ACEOF
17375cat confdefs.h >>conftest.$ac_ext
17376cat >>conftest.$ac_ext <<_ACEOF
17377/* end confdefs.h. */
a3828db0
MK
17378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17380#define $ac_func innocuous_$ac_func
b83266a0 17381
a3828db0
MK
17382/* System header to define __stub macros and hopefully few prototypes,
17383 which can conflict with char $ac_func (); below.
17384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17385 <limits.h> exists even on freestanding compilers. */
17386
17387#ifdef __STDC__
17388# include <limits.h>
17389#else
17390# include <assert.h>
17391#endif
17392
17393#undef $ac_func
17394
b4e70030 17395/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17396#ifdef __cplusplus
17397extern "C"
b4e70030 17398{
a3828db0 17399#endif
b4e70030
JB
17400/* We use char because int might match the return type of a gcc2
17401 builtin and then its argument prototype would still apply. */
a3828db0
MK
17402char $ac_func ();
17403/* The GNU C library defines this for functions which it implements
17404 to always fail with ENOSYS. Some functions are actually named
17405 something starting with __ and the normal name is an alias. */
b4e70030 17406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17407choke me
b4e70030
JB
17408#else
17409char (*f) () = $ac_func;
17410#endif
17411#ifdef __cplusplus
17412}
a3828db0 17413#endif
97bf5e38 17414
bec39cab
AC
17415int
17416main ()
17417{
b4e70030 17418return f != $ac_func;
bec39cab
AC
17419 ;
17420 return 0;
17421}
17422_ACEOF
a3828db0
MK
17423rm -f conftest.$ac_objext conftest$ac_exeext
17424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17426 ac_status=$?
17427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
b4e70030
JB
17432 { ac_try='test -z "$ac_c_werror_flag"
17433 || test ! -s conftest.err'
bec39cab
AC
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
a3828db0 17439 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
a3828db0 17445 eval "$as_ac_var=yes"
b83266a0 17446else
bec39cab
AC
17447 echo "$as_me: failed program was:" >&5
17448sed 's/^/| /' conftest.$ac_ext >&5
17449
b4e70030 17450eval "$as_ac_var=no"
b83266a0 17451fi
a3828db0
MK
17452rm -f conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
b83266a0 17454fi
b4e70030
JB
17455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17456echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17457if test `eval echo '${'$as_ac_var'}'` = yes; then
17458 cat >>confdefs.h <<_ACEOF
17459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17460_ACEOF
b83266a0 17461
97bf5e38 17462fi
a3828db0 17463done
b83266a0 17464
a3828db0
MK
17465
17466for ac_func in wborder
17467do
17468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17469echo "$as_me:$LINENO: checking for $ac_func" >&5
17470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17471if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17473else
17474 cat >conftest.$ac_ext <<_ACEOF
17475/* confdefs.h. */
17476_ACEOF
17477cat confdefs.h >>conftest.$ac_ext
17478cat >>conftest.$ac_ext <<_ACEOF
17479/* end confdefs.h. */
a3828db0
MK
17480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17482#define $ac_func innocuous_$ac_func
a4db0f07 17483
a3828db0
MK
17484/* System header to define __stub macros and hopefully few prototypes,
17485 which can conflict with char $ac_func (); below.
17486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17487 <limits.h> exists even on freestanding compilers. */
17488
17489#ifdef __STDC__
17490# include <limits.h>
17491#else
17492# include <assert.h>
17493#endif
17494
17495#undef $ac_func
17496
b4e70030 17497/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17498#ifdef __cplusplus
17499extern "C"
b4e70030 17500{
a3828db0 17501#endif
b4e70030
JB
17502/* We use char because int might match the return type of a gcc2
17503 builtin and then its argument prototype would still apply. */
a3828db0
MK
17504char $ac_func ();
17505/* The GNU C library defines this for functions which it implements
17506 to always fail with ENOSYS. Some functions are actually named
17507 something starting with __ and the normal name is an alias. */
b4e70030 17508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17509choke me
b4e70030
JB
17510#else
17511char (*f) () = $ac_func;
17512#endif
17513#ifdef __cplusplus
17514}
a3828db0 17515#endif
97bf5e38 17516
bec39cab
AC
17517int
17518main ()
17519{
b4e70030 17520return f != $ac_func;
bec39cab
AC
17521 ;
17522 return 0;
17523}
17524_ACEOF
a3828db0
MK
17525rm -f conftest.$ac_objext conftest$ac_exeext
17526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17528 ac_status=$?
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
b4e70030
JB
17534 { ac_try='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
bec39cab
AC
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
a3828db0 17541 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
a3828db0 17547 eval "$as_ac_var=yes"
a4db0f07 17548else
bec39cab
AC
17549 echo "$as_me: failed program was:" >&5
17550sed 's/^/| /' conftest.$ac_ext >&5
17551
b4e70030 17552eval "$as_ac_var=no"
a4db0f07 17553fi
a3828db0
MK
17554rm -f conftest.err conftest.$ac_objext \
17555 conftest$ac_exeext conftest.$ac_ext
a4db0f07 17556fi
b4e70030
JB
17557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17559if test `eval echo '${'$as_ac_var'}'` = yes; then
17560 cat >>confdefs.h <<_ACEOF
17561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17562_ACEOF
a4db0f07
RH
17563
17564fi
a3828db0 17565done
c906108c 17566
06825bd1 17567
a3828db0
MK
17568# Check the return and argument types of ptrace. No canned test for
17569# this, so roll our own.
17570gdb_ptrace_headers='
17571#if HAVE_SYS_TYPES_H
17572# include <sys/types.h>
17573#endif
17574#if HAVE_SYS_PTRACE_H
17575# include <sys/ptrace.h>
17576#endif
17577#if HAVE_UNISTD_H
17578# include <unistd.h>
17579#endif
17580'
17581# There is no point in checking if we don't have a prototype.
b4e70030
JB
17582echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
17583echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 17584if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17586else
17587 cat >conftest.$ac_ext <<_ACEOF
17588/* confdefs.h. */
17589_ACEOF
17590cat confdefs.h >>conftest.$ac_ext
17591cat >>conftest.$ac_ext <<_ACEOF
17592/* end confdefs.h. */
a3828db0
MK
17593$gdb_ptrace_headers
17594
bec39cab
AC
17595int
17596main ()
17597{
a3828db0
MK
17598#ifndef ptrace
17599 char *p = (char *) ptrace;
06825bd1 17600#endif
a3828db0 17601
bec39cab
AC
17602 ;
17603 return 0;
17604}
17605_ACEOF
17606rm -f conftest.$ac_objext
17607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17608 (eval $ac_compile) 2>conftest.er1
17609 ac_status=$?
17610 grep -v '^ *+' conftest.er1 >conftest.err
17611 rm -f conftest.er1
17612 cat conftest.err >&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } &&
b4e70030
JB
17615 { ac_try='test -z "$ac_c_werror_flag"
17616 || test ! -s conftest.err'
bec39cab
AC
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; } &&
17622 { ac_try='test -s conftest.$ac_objext'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
a3828db0 17628 ac_cv_have_decl_ptrace=yes
06825bd1 17629else
bec39cab
AC
17630 echo "$as_me: failed program was:" >&5
17631sed 's/^/| /' conftest.$ac_ext >&5
17632
b4e70030 17633ac_cv_have_decl_ptrace=no
06825bd1 17634fi
bec39cab 17635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 17636fi
b4e70030
JB
17637echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
17638echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 17639if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 17640
a3828db0
MK
17641cat >>confdefs.h <<_ACEOF
17642#define HAVE_DECL_PTRACE 1
17643_ACEOF
bec39cab 17644
bec39cab 17645
a3828db0
MK
17646else
17647 cat >>confdefs.h <<_ACEOF
17648#define HAVE_DECL_PTRACE 0
bec39cab 17649_ACEOF
06825bd1 17650
a3828db0
MK
17651
17652 : ${gdb_cv_func_ptrace_ret='int'}
17653 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17654
06825bd1
MK
17655fi
17656
a3828db0
MK
17657
17658# Check return type.
b4e70030
JB
17659echo "$as_me:$LINENO: checking return type of ptrace" >&5
17660echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 17661if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17663else
17664 cat >conftest.$ac_ext <<_ACEOF
17665/* confdefs.h. */
17666_ACEOF
17667cat confdefs.h >>conftest.$ac_ext
17668cat >>conftest.$ac_ext <<_ACEOF
17669/* end confdefs.h. */
a3828db0 17670$gdb_ptrace_headers
bec39cab
AC
17671int
17672main ()
17673{
a3828db0 17674extern int ptrace ();
bec39cab
AC
17675 ;
17676 return 0;
17677}
17678_ACEOF
17679rm -f conftest.$ac_objext
17680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17681 (eval $ac_compile) 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
b4e70030
JB
17688 { ac_try='test -z "$ac_c_werror_flag"
17689 || test ! -s conftest.err'
bec39cab
AC
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
a3828db0 17701 gdb_cv_func_ptrace_ret='int'
70f9f479 17702else
bec39cab
AC
17703 echo "$as_me: failed program was:" >&5
17704sed 's/^/| /' conftest.$ac_ext >&5
17705
b4e70030 17706gdb_cv_func_ptrace_ret='long'
70f9f479 17707fi
bec39cab 17708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 17709fi
b4e70030
JB
17710echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
17711echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 17712
a3828db0
MK
17713cat >>confdefs.h <<_ACEOF
17714#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 17715_ACEOF
70f9f479 17716
a3828db0 17717# Check argument types.
b4e70030
JB
17718echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
17719echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 17720if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17722else
a3828db0
MK
17723
17724for gdb_arg1 in 'int' 'long'; do
17725 for gdb_arg2 in 'pid_t' 'int' 'long'; do
17726 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
17727 for gdb_arg4 in 'int' 'long'; do
17728 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
a3828db0 17734$gdb_ptrace_headers
bec39cab
AC
17735int
17736main ()
17737{
a3828db0
MK
17738
17739extern $gdb_cv_func_ptrace_ret
17740 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
17741
bec39cab
AC
17742 ;
17743 return 0;
17744}
17745_ACEOF
17746rm -f conftest.$ac_objext
17747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17748 (eval $ac_compile) 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
b4e70030
JB
17755 { ac_try='test -z "$ac_c_werror_flag"
17756 || test ! -s conftest.err'
bec39cab
AC
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest.$ac_objext'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
a3828db0
MK
17768 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
17769 break 4;
5c7f2947 17770else
bec39cab
AC
17771 echo "$as_me: failed program was:" >&5
17772sed 's/^/| /' conftest.$ac_ext >&5
17773
5c7f2947 17774fi
bec39cab 17775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17776 for gdb_arg5 in 'int *' 'int' 'long'; do
17777 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17778/* confdefs.h. */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h. */
a3828db0 17783$gdb_ptrace_headers
bec39cab
AC
17784int
17785main ()
17786{
a3828db0
MK
17787
17788extern $gdb_cv_func_ptrace_ret
17789 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
17790
bec39cab
AC
17791 ;
17792 return 0;
17793}
17794_ACEOF
17795rm -f conftest.$ac_objext
17796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797 (eval $ac_compile) 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
b4e70030
JB
17804 { ac_try='test -z "$ac_c_werror_flag"
17805 || test ! -s conftest.err'
bec39cab
AC
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest.$ac_objext'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
a3828db0
MK
17817
17818gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
17819 break 5;
78434e59 17820else
bec39cab
AC
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
78434e59 17824fi
bec39cab 17825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17826 done
17827 done
17828 done
17829 done
17830done
17831# Provide a safe default value.
17832: ${gdb_cv_func_ptrace_args='int,int,long,long'}
17833
78434e59 17834fi
b4e70030
JB
17835echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
17836echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
17837ac_save_IFS=$IFS; IFS=','
17838set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
17839IFS=$ac_save_IFS
17840shift
bec39cab 17841
a3828db0
MK
17842cat >>confdefs.h <<_ACEOF
17843#define PTRACE_TYPE_ARG3 $3
17844_ACEOF
17845
17846if test -n "$5"; then
17847
17848cat >>confdefs.h <<_ACEOF
17849#define PTRACE_TYPE_ARG5 $5
bec39cab 17850_ACEOF
78434e59
MK
17851
17852fi
17853
a3828db0 17854if test "$cross_compiling" = no; then
b4e70030
JB
17855 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17856echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 17857if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 17858 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
17859else
17860 if test "$cross_compiling" = yes; then
17861 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17862echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17863 { (exit 1); exit 1; }; }
bec39cab
AC
17864else
17865 cat >conftest.$ac_ext <<_ACEOF
17866/* confdefs.h. */
17867_ACEOF
17868cat confdefs.h >>conftest.$ac_ext
17869cat >>conftest.$ac_ext <<_ACEOF
17870/* end confdefs.h. */
b4e70030
JB
17871#if HAVE_UNISTD_H
17872# include <unistd.h>
17873#endif
17874
bec39cab
AC
17875int
17876main ()
17877{
a3828db0
MK
17878/* If this system has a BSD-style setpgrp which takes arguments,
17879 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17880 exit successfully. */
b4e70030 17881 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
17882 ;
17883 return 0;
17884}
17885_ACEOF
a3828db0
MK
17886rm -f conftest$ac_exeext
17887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>&5
bec39cab
AC
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
a3828db0 17897 ac_cv_func_setpgrp_void=no
c906108c 17898else
a3828db0
MK
17899 echo "$as_me: program exited with status $ac_status" >&5
17900echo "$as_me: failed program was:" >&5
bec39cab
AC
17901sed 's/^/| /' conftest.$ac_ext >&5
17902
a3828db0
MK
17903( exit $ac_status )
17904ac_cv_func_setpgrp_void=yes
c906108c 17905fi
b4e70030 17906rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 17907fi
a3828db0 17908fi
b4e70030
JB
17909echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17910echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
17911if test $ac_cv_func_setpgrp_void = yes; then
17912
17913cat >>confdefs.h <<\_ACEOF
17914#define SETPGRP_VOID 1
bec39cab 17915_ACEOF
97bf5e38
MK
17916
17917fi
a3828db0
MK
17918
17919else
b4e70030
JB
17920 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17921echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 17922if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 17923 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17924else
bec39cab
AC
17925 cat >conftest.$ac_ext <<_ACEOF
17926/* confdefs.h. */
17927_ACEOF
17928cat confdefs.h >>conftest.$ac_ext
17929cat >>conftest.$ac_ext <<_ACEOF
17930/* end confdefs.h. */
a3828db0
MK
17931
17932#include <unistd.h>
17933
bec39cab
AC
17934int
17935main ()
17936{
a3828db0
MK
17937
17938 if (setpgrp(1,1) == -1)
17939 exit (0);
17940 else
17941 exit (1);
17942
bec39cab
AC
17943 ;
17944 return 0;
17945}
17946_ACEOF
17947rm -f conftest.$ac_objext
17948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17949 (eval $ac_compile) 2>conftest.er1
17950 ac_status=$?
17951 grep -v '^ *+' conftest.er1 >conftest.err
17952 rm -f conftest.er1
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
b4e70030
JB
17956 { ac_try='test -z "$ac_c_werror_flag"
17957 || test ! -s conftest.err'
bec39cab
AC
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; } &&
17963 { ac_try='test -s conftest.$ac_objext'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
a3828db0 17969 ac_cv_func_setpgrp_void=no
c906108c 17970else
bec39cab
AC
17971 echo "$as_me: failed program was:" >&5
17972sed 's/^/| /' conftest.$ac_ext >&5
17973
b4e70030 17974ac_cv_func_setpgrp_void=yes
c906108c 17975fi
bec39cab 17976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17977fi
b4e70030
JB
17978echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17979echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 17980if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 17981 cat >>confdefs.h <<\_ACEOF
a3828db0 17982#define SETPGRP_VOID 1
bec39cab 17983_ACEOF
c3f6f71d 17984
a3828db0 17985fi
c906108c
SS
17986fi
17987
a3828db0
MK
17988# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17989# since sigsetjmp might only be defined as a macro.
b4e70030
JB
17990echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17991echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 17992if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994else
17995 cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h. */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h. */
a3828db0
MK
18001
18002#include <setjmp.h>
18003
bec39cab
AC
18004int
18005main ()
18006{
a3828db0 18007sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012rm -f conftest.$ac_objext
18013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18014 (eval $ac_compile) 2>conftest.er1
18015 ac_status=$?
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
b4e70030
JB
18021 { ac_try='test -z "$ac_c_werror_flag"
18022 || test ! -s conftest.err'
bec39cab
AC
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; } &&
18028 { ac_try='test -s conftest.$ac_objext'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
a3828db0 18034 gdb_cv_func_sigsetjmp=yes
c906108c 18035else
bec39cab
AC
18036 echo "$as_me: failed program was:" >&5
18037sed 's/^/| /' conftest.$ac_ext >&5
18038
b4e70030 18039gdb_cv_func_sigsetjmp=no
c906108c 18040fi
bec39cab 18041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18042fi
b4e70030
JB
18043echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18044echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 18045if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 18046
a3828db0
MK
18047cat >>confdefs.h <<\_ACEOF
18048#define HAVE_SIGSETJMP 1
bec39cab 18049_ACEOF
c906108c 18050
97bf5e38 18051fi
c906108c 18052
a3828db0
MK
18053# Assume we'll default to using the included libiberty regex.
18054gdb_use_included_regex=yes
18055
18056# However, if the system regex is GNU regex, then default to *not*
18057# using the included regex.
b4e70030
JB
18058echo "$as_me:$LINENO: checking for GNU regex" >&5
18059echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 18060if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18062else
18063 cat >conftest.$ac_ext <<_ACEOF
18064/* confdefs.h. */
18065_ACEOF
18066cat confdefs.h >>conftest.$ac_ext
18067cat >>conftest.$ac_ext <<_ACEOF
18068/* end confdefs.h. */
a3828db0 18069#include <gnu-versions.h>
bec39cab
AC
18070int
18071main ()
18072{
a3828db0
MK
18073#define REGEX_INTERFACE_VERSION 1
18074#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18075# error "Version mismatch"
18076#endif
bec39cab
AC
18077 ;
18078 return 0;
18079}
18080_ACEOF
18081rm -f conftest.$ac_objext
18082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18083 (eval $ac_compile) 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
b4e70030
JB
18090 { ac_try='test -z "$ac_c_werror_flag"
18091 || test ! -s conftest.err'
bec39cab
AC
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest.$ac_objext'
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
a3828db0 18103 gdb_cv_have_gnu_regex=yes
c906108c 18104else
bec39cab
AC
18105 echo "$as_me: failed program was:" >&5
18106sed 's/^/| /' conftest.$ac_ext >&5
18107
b4e70030 18108gdb_cv_have_gnu_regex=no
c906108c 18109fi
bec39cab 18110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18111fi
b4e70030
JB
18112echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18113echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
18114if test $gdb_cv_have_gnu_regex = yes; then
18115 gdb_use_included_regex=no
18116fi
c906108c 18117
a3828db0 18118
b4e70030 18119# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 18120if test "${with_included_regex+set}" = set; then
b4e70030
JB
18121 withval="$with_included_regex"
18122 gdb_with_regex=$withval
a3828db0
MK
18123else
18124 gdb_with_regex=$gdb_use_included_regex
b4e70030 18125fi;
a3828db0
MK
18126if test "$gdb_with_regex" = yes; then
18127
18128cat >>confdefs.h <<\_ACEOF
18129#define USE_INCLUDED_REGEX 1
bec39cab 18130_ACEOF
c906108c 18131
97bf5e38 18132fi
c906108c 18133
5c45e068 18134# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
18135echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18136echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 18137if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18139else
18140 cat >conftest.$ac_ext <<_ACEOF
18141/* confdefs.h. */
18142_ACEOF
18143cat confdefs.h >>conftest.$ac_ext
18144cat >>conftest.$ac_ext <<_ACEOF
18145/* end confdefs.h. */
a3828db0
MK
18146#include <sys/param.h>
18147#include <sys/proc.h>
5c45e068
MK
18148
18149
bec39cab
AC
18150int
18151main ()
18152{
5c45e068
MK
18153static struct thread ac_aggr;
18154if (ac_aggr.td_pcb)
18155return 0;
bec39cab
AC
18156 ;
18157 return 0;
18158}
18159_ACEOF
18160rm -f conftest.$ac_objext
18161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18162 (eval $ac_compile) 2>conftest.er1
18163 ac_status=$?
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
b4e70030
JB
18169 { ac_try='test -z "$ac_c_werror_flag"
18170 || test ! -s conftest.err'
bec39cab
AC
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; } &&
18176 { ac_try='test -s conftest.$ac_objext'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
5c45e068 18182 ac_cv_member_struct_thread_td_pcb=yes
c906108c 18183else
bec39cab
AC
18184 echo "$as_me: failed program was:" >&5
18185sed 's/^/| /' conftest.$ac_ext >&5
18186
b4e70030 18187cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18188/* confdefs.h. */
18189_ACEOF
18190cat confdefs.h >>conftest.$ac_ext
18191cat >>conftest.$ac_ext <<_ACEOF
18192/* end confdefs.h. */
18193#include <sys/param.h>
18194#include <sys/proc.h>
18195
18196
18197int
18198main ()
18199{
18200static struct thread ac_aggr;
18201if (sizeof ac_aggr.td_pcb)
18202return 0;
18203 ;
18204 return 0;
18205}
18206_ACEOF
18207rm -f conftest.$ac_objext
18208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18209 (eval $ac_compile) 2>conftest.er1
18210 ac_status=$?
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
b4e70030
JB
18216 { ac_try='test -z "$ac_c_werror_flag"
18217 || test ! -s conftest.err'
5c45e068
MK
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest.$ac_objext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 ac_cv_member_struct_thread_td_pcb=yes
18230else
18231 echo "$as_me: failed program was:" >&5
18232sed 's/^/| /' conftest.$ac_ext >&5
18233
b4e70030 18234ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
18235fi
18236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18237fi
bec39cab 18238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18239fi
b4e70030
JB
18240echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18241echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 18242if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 18243
5c45e068 18244cat >>confdefs.h <<_ACEOF
a3828db0 18245#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 18246_ACEOF
c906108c 18247
5c45e068 18248
97bf5e38 18249fi
c906108c 18250
5c45e068 18251
a3828db0 18252# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
18253echo "$as_me:$LINENO: checking for struct lwp" >&5
18254echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 18255if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
18256 echo $ECHO_N "(cached) $ECHO_C" >&6
18257else
18258 cat >conftest.$ac_ext <<_ACEOF
18259/* confdefs.h. */
18260_ACEOF
18261cat confdefs.h >>conftest.$ac_ext
18262cat >>conftest.$ac_ext <<_ACEOF
18263/* end confdefs.h. */
a3828db0
MK
18264#include <sys/param.h>
18265#include <sys/lwp.h>
bec39cab
AC
18266int
18267main ()
18268{
a3828db0 18269struct lwp l;
bec39cab
AC
18270 ;
18271 return 0;
18272}
18273_ACEOF
18274rm -f conftest.$ac_objext
18275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18276 (eval $ac_compile) 2>conftest.er1
18277 ac_status=$?
18278 grep -v '^ *+' conftest.er1 >conftest.err
18279 rm -f conftest.er1
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
b4e70030
JB
18283 { ac_try='test -z "$ac_c_werror_flag"
18284 || test ! -s conftest.err'
bec39cab
AC
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try='test -s conftest.$ac_objext'
18291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292 (eval $ac_try) 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
a3828db0 18296 gdb_cv_struct_lwp=yes
c906108c 18297else
bec39cab
AC
18298 echo "$as_me: failed program was:" >&5
18299sed 's/^/| /' conftest.$ac_ext >&5
18300
b4e70030 18301gdb_cv_struct_lwp=no
c906108c 18302fi
bec39cab 18303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18304fi
b4e70030
JB
18305echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18306echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 18307if test $gdb_cv_struct_lwp = yes; then
c906108c 18308
a3828db0
MK
18309cat >>confdefs.h <<\_ACEOF
18310#define HAVE_STRUCT_LWP 1
bec39cab 18311_ACEOF
c906108c 18312
97bf5e38 18313fi
c906108c 18314
a3828db0 18315# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
18316echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18317echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 18318if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18320else
18321 cat >conftest.$ac_ext <<_ACEOF
18322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
a3828db0
MK
18327#include <sys/types.h>
18328#include <machine/reg.h>
bec39cab
AC
18329int
18330main ()
18331{
a3828db0 18332struct reg r;
bec39cab
AC
18333 ;
18334 return 0;
18335}
18336_ACEOF
18337rm -f conftest.$ac_objext
18338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18339 (eval $ac_compile) 2>conftest.er1
18340 ac_status=$?
18341 grep -v '^ *+' conftest.er1 >conftest.err
18342 rm -f conftest.er1
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } &&
b4e70030
JB
18346 { ac_try='test -z "$ac_c_werror_flag"
18347 || test ! -s conftest.err'
bec39cab
AC
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } &&
18353 { ac_try='test -s conftest.$ac_objext'
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
a3828db0 18359 gdb_cv_struct_reg=yes
27ca5dad 18360else
bec39cab
AC
18361 echo "$as_me: failed program was:" >&5
18362sed 's/^/| /' conftest.$ac_ext >&5
18363
b4e70030 18364gdb_cv_struct_reg=no
27ca5dad 18365fi
bec39cab 18366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 18367fi
b4e70030
JB
18368echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18369echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 18370if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
18371
18372cat >>confdefs.h <<\_ACEOF
a3828db0 18373#define HAVE_STRUCT_REG 1
bec39cab 18374_ACEOF
27ca5dad
MC
18375
18376fi
97bf5e38 18377
a3828db0
MK
18378# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18379# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
18380echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18381echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 18382if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 18383 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18384else
bec39cab
AC
18385 cat >conftest.$ac_ext <<_ACEOF
18386/* confdefs.h. */
18387_ACEOF
18388cat confdefs.h >>conftest.$ac_ext
18389cat >>conftest.$ac_ext <<_ACEOF
18390/* end confdefs.h. */
a3828db0 18391#include <machine/reg.h>
5c45e068
MK
18392
18393int
18394main ()
18395{
18396static struct reg ac_aggr;
18397if (ac_aggr.r_fs)
18398return 0;
18399 ;
18400 return 0;
18401}
18402_ACEOF
18403rm -f conftest.$ac_objext
18404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18405 (eval $ac_compile) 2>conftest.er1
18406 ac_status=$?
18407 grep -v '^ *+' conftest.er1 >conftest.err
18408 rm -f conftest.er1
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
b4e70030
JB
18412 { ac_try='test -z "$ac_c_werror_flag"
18413 || test ! -s conftest.err'
5c45e068
MK
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; } &&
18419 { ac_try='test -s conftest.$ac_objext'
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
18425 ac_cv_member_struct_reg_r_fs=yes
18426else
18427 echo "$as_me: failed program was:" >&5
18428sed 's/^/| /' conftest.$ac_ext >&5
18429
b4e70030 18430cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18431/* confdefs.h. */
18432_ACEOF
18433cat confdefs.h >>conftest.$ac_ext
18434cat >>conftest.$ac_ext <<_ACEOF
18435/* end confdefs.h. */
18436#include <machine/reg.h>
18437
bec39cab
AC
18438int
18439main ()
18440{
5c45e068
MK
18441static struct reg ac_aggr;
18442if (sizeof ac_aggr.r_fs)
18443return 0;
bec39cab
AC
18444 ;
18445 return 0;
18446}
18447_ACEOF
18448rm -f conftest.$ac_objext
18449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450 (eval $ac_compile) 2>conftest.er1
18451 ac_status=$?
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
b4e70030
JB
18457 { ac_try='test -z "$ac_c_werror_flag"
18458 || test ! -s conftest.err'
bec39cab
AC
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
5c45e068 18470 ac_cv_member_struct_reg_r_fs=yes
3862412b 18471else
bec39cab
AC
18472 echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
b4e70030 18475ac_cv_member_struct_reg_r_fs=no
3862412b 18476fi
bec39cab 18477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18478fi
5c45e068
MK
18479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18480fi
b4e70030
JB
18481echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18482echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
18483if test $ac_cv_member_struct_reg_r_fs = yes; then
18484
18485cat >>confdefs.h <<_ACEOF
a3828db0 18486#define HAVE_STRUCT_REG_R_FS 1
bec39cab 18487_ACEOF
3862412b 18488
5c45e068 18489
97bf5e38 18490fi
b4e70030
JB
18491echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18492echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 18493if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 18494 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18495else
bec39cab
AC
18496 cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h. */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h. */
a3828db0 18502#include <machine/reg.h>
5c45e068 18503
bec39cab
AC
18504int
18505main ()
18506{
5c45e068
MK
18507static struct reg ac_aggr;
18508if (ac_aggr.r_gs)
18509return 0;
bec39cab
AC
18510 ;
18511 return 0;
18512}
18513_ACEOF
18514rm -f conftest.$ac_objext
18515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18516 (eval $ac_compile) 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
b4e70030
JB
18523 { ac_try='test -z "$ac_c_werror_flag"
18524 || test ! -s conftest.err'
bec39cab
AC
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest.$ac_objext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
5c45e068 18536 ac_cv_member_struct_reg_r_gs=yes
3862412b 18537else
bec39cab
AC
18538 echo "$as_me: failed program was:" >&5
18539sed 's/^/| /' conftest.$ac_ext >&5
18540
b4e70030 18541cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18542/* confdefs.h. */
18543_ACEOF
18544cat confdefs.h >>conftest.$ac_ext
18545cat >>conftest.$ac_ext <<_ACEOF
18546/* end confdefs.h. */
18547#include <machine/reg.h>
18548
18549int
18550main ()
18551{
18552static struct reg ac_aggr;
18553if (sizeof ac_aggr.r_gs)
18554return 0;
18555 ;
18556 return 0;
18557}
18558_ACEOF
18559rm -f conftest.$ac_objext
18560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18561 (eval $ac_compile) 2>conftest.er1
18562 ac_status=$?
18563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } &&
b4e70030
JB
18568 { ac_try='test -z "$ac_c_werror_flag"
18569 || test ! -s conftest.err'
5c45e068
MK
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; } &&
18575 { ac_try='test -s conftest.$ac_objext'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 ac_cv_member_struct_reg_r_gs=yes
18582else
18583 echo "$as_me: failed program was:" >&5
18584sed 's/^/| /' conftest.$ac_ext >&5
18585
b4e70030 18586ac_cv_member_struct_reg_r_gs=no
3862412b 18587fi
bec39cab 18588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18589fi
5c45e068
MK
18590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18591fi
b4e70030
JB
18592echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
18593echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
18594if test $ac_cv_member_struct_reg_r_gs = yes; then
18595
18596cat >>confdefs.h <<_ACEOF
a3828db0 18597#define HAVE_STRUCT_REG_R_GS 1
bec39cab 18598_ACEOF
3862412b 18599
5c45e068 18600
97bf5e38 18601fi
3862412b 18602
5c45e068 18603
a3828db0 18604# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
18605echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
18606echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 18607if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 18608 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 18609else
bec39cab
AC
18610 cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h. */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h. */
a3828db0 18616#include <sys/ptrace.h>
bec39cab
AC
18617int
18618main ()
18619{
a3828db0 18620PTRACE_GETREGS;
bec39cab
AC
18621 ;
18622 return 0;
18623}
18624_ACEOF
18625rm -f conftest.$ac_objext
18626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627 (eval $ac_compile) 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } &&
b4e70030
JB
18634 { ac_try='test -z "$ac_c_werror_flag"
18635 || test ! -s conftest.err'
bec39cab
AC
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest.$ac_objext'
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
a3828db0 18647 gdb_cv_have_ptrace_getregs=yes
451928c5 18648else
bec39cab
AC
18649 echo "$as_me: failed program was:" >&5
18650sed 's/^/| /' conftest.$ac_ext >&5
18651
b4e70030 18652gdb_cv_have_ptrace_getregs=no
451928c5 18653fi
bec39cab 18654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
18655fi
18656
b4e70030
JB
18657echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
18658echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 18659if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
18660
18661cat >>confdefs.h <<\_ACEOF
a3828db0 18662#define HAVE_PTRACE_GETREGS 1
bec39cab 18663_ACEOF
451928c5 18664
97bf5e38 18665fi
451928c5 18666
a3828db0 18667# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
18668echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
18669echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 18670if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 18671 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 18672else
bec39cab
AC
18673 cat >conftest.$ac_ext <<_ACEOF
18674/* confdefs.h. */
18675_ACEOF
18676cat confdefs.h >>conftest.$ac_ext
18677cat >>conftest.$ac_ext <<_ACEOF
18678/* end confdefs.h. */
a3828db0 18679#include <sys/ptrace.h>
bec39cab
AC
18680int
18681main ()
18682{
a3828db0 18683PTRACE_GETFPXREGS;
bec39cab
AC
18684 ;
18685 return 0;
18686}
18687_ACEOF
18688rm -f conftest.$ac_objext
18689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18690 (eval $ac_compile) 2>conftest.er1
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
b4e70030
JB
18697 { ac_try='test -z "$ac_c_werror_flag"
18698 || test ! -s conftest.err'
bec39cab
AC
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest.$ac_objext'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
a3828db0 18710 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 18711else
bec39cab
AC
18712 echo "$as_me: failed program was:" >&5
18713sed 's/^/| /' conftest.$ac_ext >&5
18714
b4e70030 18715gdb_cv_have_ptrace_getfpxregs=no
451928c5 18716fi
bec39cab 18717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
18718fi
18719
b4e70030
JB
18720echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
18721echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 18722if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
18723
18724cat >>confdefs.h <<\_ACEOF
a3828db0 18725#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 18726_ACEOF
451928c5 18727
97bf5e38 18728fi
451928c5 18729
a3828db0 18730# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
18731echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
18732echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 18733if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 18734 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18735else
bec39cab
AC
18736 cat >conftest.$ac_ext <<_ACEOF
18737/* confdefs.h. */
18738_ACEOF
18739cat confdefs.h >>conftest.$ac_ext
18740cat >>conftest.$ac_ext <<_ACEOF
18741/* end confdefs.h. */
a3828db0
MK
18742#include <sys/types.h>
18743#include <sys/ptrace.h>
bec39cab
AC
18744int
18745main ()
18746{
a3828db0 18747PT_GETDBREGS;
bec39cab
AC
18748 ;
18749 return 0;
18750}
18751_ACEOF
18752rm -f conftest.$ac_objext
18753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18754 (eval $ac_compile) 2>conftest.er1
18755 ac_status=$?
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
b4e70030
JB
18761 { ac_try='test -z "$ac_c_werror_flag"
18762 || test ! -s conftest.err'
bec39cab
AC
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest.$ac_objext'
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18771 ac_status=$?
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
a3828db0 18774 gdb_cv_have_pt_getdbregs=yes
3862412b 18775else
bec39cab
AC
18776 echo "$as_me: failed program was:" >&5
18777sed 's/^/| /' conftest.$ac_ext >&5
18778
b4e70030 18779gdb_cv_have_pt_getdbregs=no
3862412b 18780fi
bec39cab 18781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
18782fi
18783
b4e70030
JB
18784echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
18785echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 18786if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
18787
18788cat >>confdefs.h <<\_ACEOF
a3828db0 18789#define HAVE_PT_GETDBREGS 1
bec39cab 18790_ACEOF
3862412b 18791
97bf5e38 18792fi
3862412b 18793
a3828db0 18794# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
18795echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
18796echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 18797if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 18798 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18799else
bec39cab
AC
18800 cat >conftest.$ac_ext <<_ACEOF
18801/* confdefs.h. */
18802_ACEOF
18803cat confdefs.h >>conftest.$ac_ext
18804cat >>conftest.$ac_ext <<_ACEOF
18805/* end confdefs.h. */
a3828db0
MK
18806#include <sys/types.h>
18807#include <sys/ptrace.h>
bec39cab
AC
18808int
18809main ()
18810{
a3828db0 18811PT_GETXMMREGS;
bec39cab
AC
18812 ;
18813 return 0;
18814}
18815_ACEOF
18816rm -f conftest.$ac_objext
18817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18818 (eval $ac_compile) 2>conftest.er1
18819 ac_status=$?
18820 grep -v '^ *+' conftest.er1 >conftest.err
18821 rm -f conftest.er1
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
b4e70030
JB
18825 { ac_try='test -z "$ac_c_werror_flag"
18826 || test ! -s conftest.err'
bec39cab
AC
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest.$ac_objext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
a3828db0 18838 gdb_cv_have_pt_getxmmregs=yes
3862412b 18839else
bec39cab
AC
18840 echo "$as_me: failed program was:" >&5
18841sed 's/^/| /' conftest.$ac_ext >&5
18842
b4e70030 18843gdb_cv_have_pt_getxmmregs=no
3862412b 18844fi
bec39cab 18845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
18846fi
18847
b4e70030
JB
18848echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
18849echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 18850if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
18851
18852cat >>confdefs.h <<\_ACEOF
a3828db0 18853#define HAVE_PT_GETXMMREGS 1
bec39cab 18854_ACEOF
3862412b 18855
97bf5e38 18856fi
3862412b 18857
97bf5e38
MK
18858# If we are configured native on GNU/Linux, work around problems with
18859# sys/procfs.h
18860# Also detect which type of /proc is in use, such as for Unixware or Solaris.
18861
18862if test "${target}" = "${host}"; then
18863 case "${host}" in
18864 i[3456]86-*-linux*)
60ca704f
SE
18865
18866cat >>confdefs.h <<\_ACEOF
97bf5e38 18867#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 18868_ACEOF
97bf5e38 18869
60ca704f
SE
18870
18871cat >>confdefs.h <<\_ACEOF
97bf5e38 18872#define sys_quotactl 1
bec39cab 18873_ACEOF
97bf5e38
MK
18874
18875 ;;
97bf5e38 18876 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
18877
18878cat >>confdefs.h <<\_ACEOF
97bf5e38 18879#define NEW_PROC_API 1
bec39cab 18880_ACEOF
97bf5e38
MK
18881
18882 ;;
0bbc026e 18883 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
18884
18885cat >>confdefs.h <<\_ACEOF
97bf5e38 18886#define NEW_PROC_API 1
bec39cab 18887_ACEOF
c960c18f
AC
18888
18889 ;;
18890 mips-sgi-irix5*)
18891 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
18892
18893cat >>confdefs.h <<\_ACEOF
c960c18f 18894#define _KMEMUSER 1
bec39cab 18895_ACEOF
97bf5e38
MK
18896
18897 ;;
18898 esac
18899fi
18900
18901if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
18902 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18903echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18904 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18905 echo $ECHO_N "(cached) $ECHO_C" >&6
18906else
18907 cat >conftest.$ac_ext <<_ACEOF
18908/* confdefs.h. */
18909_ACEOF
18910cat confdefs.h >>conftest.$ac_ext
18911cat >>conftest.$ac_ext <<_ACEOF
18912/* end confdefs.h. */
596c9d4b
KB
18913
18914#define _SYSCALL32
18915#include <sys/procfs.h>
bec39cab
AC
18916int
18917main ()
18918{
97bf5e38 18919pstatus_t avar
bec39cab
AC
18920 ;
18921 return 0;
18922}
18923_ACEOF
18924rm -f conftest.$ac_objext
18925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18926 (eval $ac_compile) 2>conftest.er1
18927 ac_status=$?
18928 grep -v '^ *+' conftest.er1 >conftest.err
18929 rm -f conftest.er1
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
b4e70030
JB
18933 { ac_try='test -z "$ac_c_werror_flag"
18934 || test ! -s conftest.err'
bec39cab
AC
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try='test -s conftest.$ac_objext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
97bf5e38 18946 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 18947else
bec39cab
AC
18948 echo "$as_me: failed program was:" >&5
18949sed 's/^/| /' conftest.$ac_ext >&5
18950
b4e70030 18951bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 18952
596c9d4b 18953fi
bec39cab 18954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18955fi
18956
97bf5e38 18957 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
18958
18959cat >>confdefs.h <<\_ACEOF
97bf5e38 18960#define HAVE_PSTATUS_T 1
bec39cab 18961_ACEOF
596c9d4b
KB
18962
18963 fi
b4e70030
JB
18964 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18965echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 18966
b4e70030
JB
18967 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
18968echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18969 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 18971else
bec39cab
AC
18972 cat >conftest.$ac_ext <<_ACEOF
18973/* confdefs.h. */
18974_ACEOF
18975cat confdefs.h >>conftest.$ac_ext
18976cat >>conftest.$ac_ext <<_ACEOF
18977/* end confdefs.h. */
596c9d4b
KB
18978
18979#define _SYSCALL32
18980#include <sys/procfs.h>
bec39cab
AC
18981int
18982main ()
18983{
97bf5e38 18984prrun_t avar
bec39cab
AC
18985 ;
18986 return 0;
18987}
18988_ACEOF
18989rm -f conftest.$ac_objext
18990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991 (eval $ac_compile) 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } &&
b4e70030
JB
18998 { ac_try='test -z "$ac_c_werror_flag"
18999 || test ! -s conftest.err'
bec39cab
AC
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest.$ac_objext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
97bf5e38 19011 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 19012else
bec39cab
AC
19013 echo "$as_me: failed program was:" >&5
19014sed 's/^/| /' conftest.$ac_ext >&5
19015
b4e70030 19016bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 19017
596c9d4b 19018fi
bec39cab 19019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19020fi
19021
97bf5e38 19022 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
19023
19024cat >>confdefs.h <<\_ACEOF
97bf5e38 19025#define HAVE_PRRUN_T 1
bec39cab 19026_ACEOF
596c9d4b
KB
19027
19028 fi
b4e70030
JB
19029 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19030echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 19031
b4e70030
JB
19032 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19033echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19034 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19036else
bec39cab
AC
19037 cat >conftest.$ac_ext <<_ACEOF
19038/* confdefs.h. */
19039_ACEOF
19040cat confdefs.h >>conftest.$ac_ext
19041cat >>conftest.$ac_ext <<_ACEOF
19042/* end confdefs.h. */
596c9d4b
KB
19043
19044#define _SYSCALL32
19045#include <sys/procfs.h>
bec39cab
AC
19046int
19047main ()
19048{
97bf5e38 19049gregset_t avar
bec39cab
AC
19050 ;
19051 return 0;
19052}
19053_ACEOF
19054rm -f conftest.$ac_objext
19055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19057 ac_status=$?
19058 grep -v '^ *+' conftest.er1 >conftest.err
19059 rm -f conftest.er1
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
b4e70030
JB
19063 { ac_try='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
bec39cab
AC
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
97bf5e38 19076 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 19077else
bec39cab
AC
19078 echo "$as_me: failed program was:" >&5
19079sed 's/^/| /' conftest.$ac_ext >&5
19080
b4e70030 19081bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 19082
596c9d4b 19083fi
bec39cab 19084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19085fi
19086
97bf5e38 19087 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
19088
19089cat >>confdefs.h <<\_ACEOF
97bf5e38 19090#define HAVE_GREGSET_T 1
bec39cab 19091_ACEOF
596c9d4b
KB
19092
19093 fi
b4e70030
JB
19094 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19095echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 19096
b4e70030
JB
19097 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19098echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19099 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 19101else
bec39cab
AC
19102 cat >conftest.$ac_ext <<_ACEOF
19103/* confdefs.h. */
19104_ACEOF
19105cat confdefs.h >>conftest.$ac_ext
19106cat >>conftest.$ac_ext <<_ACEOF
19107/* end confdefs.h. */
97bf5e38
MK
19108
19109#define _SYSCALL32
d84dd0c5 19110#include <sys/procfs.h>
bec39cab
AC
19111int
19112main ()
19113{
97bf5e38 19114fpregset_t avar
bec39cab
AC
19115 ;
19116 return 0;
19117}
19118_ACEOF
19119rm -f conftest.$ac_objext
19120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121 (eval $ac_compile) 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
b4e70030
JB
19128 { ac_try='test -z "$ac_c_werror_flag"
19129 || test ! -s conftest.err'
bec39cab
AC
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest.$ac_objext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
97bf5e38 19141 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 19142else
bec39cab
AC
19143 echo "$as_me: failed program was:" >&5
19144sed 's/^/| /' conftest.$ac_ext >&5
19145
b4e70030 19146bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 19147
d84dd0c5 19148fi
bec39cab 19149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
19150fi
19151
97bf5e38 19152 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
19153
19154cat >>confdefs.h <<\_ACEOF
97bf5e38 19155#define HAVE_FPREGSET_T 1
bec39cab 19156_ACEOF
d84dd0c5 19157
97bf5e38 19158 fi
b4e70030
JB
19159 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19160echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 19161
b4e70030
JB
19162 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19163echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19164 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19166else
bec39cab
AC
19167 cat >conftest.$ac_ext <<_ACEOF
19168/* confdefs.h. */
19169_ACEOF
19170cat confdefs.h >>conftest.$ac_ext
19171cat >>conftest.$ac_ext <<_ACEOF
19172/* end confdefs.h. */
c906108c 19173
97bf5e38
MK
19174#define _SYSCALL32
19175#include <sys/procfs.h>
bec39cab
AC
19176int
19177main ()
19178{
97bf5e38 19179prgregset_t avar
bec39cab
AC
19180 ;
19181 return 0;
19182}
19183_ACEOF
19184rm -f conftest.$ac_objext
19185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19186 (eval $ac_compile) 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
b4e70030
JB
19193 { ac_try='test -z "$ac_c_werror_flag"
19194 || test ! -s conftest.err'
bec39cab
AC
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest.$ac_objext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
97bf5e38 19206 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 19207else
bec39cab
AC
19208 echo "$as_me: failed program was:" >&5
19209sed 's/^/| /' conftest.$ac_ext >&5
19210
b4e70030 19211bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 19212
c906108c 19213fi
bec39cab 19214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19215fi
19216
97bf5e38 19217 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
19218
19219cat >>confdefs.h <<\_ACEOF
97bf5e38 19220#define HAVE_PRGREGSET_T 1
bec39cab 19221_ACEOF
c906108c 19222
97bf5e38 19223 fi
b4e70030
JB
19224 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19225echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 19226
b4e70030
JB
19227 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19228echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19229 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19231else
bec39cab
AC
19232 cat >conftest.$ac_ext <<_ACEOF
19233/* confdefs.h. */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h. */
97bf5e38
MK
19238
19239#define _SYSCALL32
19240#include <sys/procfs.h>
bec39cab
AC
19241int
19242main ()
19243{
97bf5e38 19244prfpregset_t avar
bec39cab
AC
19245 ;
19246 return 0;
19247}
19248_ACEOF
19249rm -f conftest.$ac_objext
19250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19251 (eval $ac_compile) 2>conftest.er1
19252 ac_status=$?
19253 grep -v '^ *+' conftest.er1 >conftest.err
19254 rm -f conftest.er1
19255 cat conftest.err >&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
b4e70030
JB
19258 { ac_try='test -z "$ac_c_werror_flag"
19259 || test ! -s conftest.err'
bec39cab
AC
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try='test -s conftest.$ac_objext'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
97bf5e38 19271 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 19272else
bec39cab
AC
19273 echo "$as_me: failed program was:" >&5
19274sed 's/^/| /' conftest.$ac_ext >&5
19275
b4e70030 19276bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 19277
d45fe813 19278fi
bec39cab 19279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19280fi
19281
97bf5e38 19282 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
19283
19284cat >>confdefs.h <<\_ACEOF
97bf5e38 19285#define HAVE_PRFPREGSET_T 1
bec39cab 19286_ACEOF
d45fe813 19287
97bf5e38 19288 fi
b4e70030
JB
19289 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19290echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 19291
b4e70030
JB
19292 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19293echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19294 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19296else
bec39cab
AC
19297 cat >conftest.$ac_ext <<_ACEOF
19298/* confdefs.h. */
19299_ACEOF
19300cat confdefs.h >>conftest.$ac_ext
19301cat >>conftest.$ac_ext <<_ACEOF
19302/* end confdefs.h. */
97bf5e38
MK
19303
19304#define _SYSCALL32
19305#include <sys/procfs.h>
bec39cab
AC
19306int
19307main ()
19308{
97bf5e38 19309prgregset32_t avar
bec39cab
AC
19310 ;
19311 return 0;
19312}
19313_ACEOF
19314rm -f conftest.$ac_objext
19315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316 (eval $ac_compile) 2>conftest.er1
19317 ac_status=$?
19318 grep -v '^ *+' conftest.er1 >conftest.err
19319 rm -f conftest.er1
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } &&
b4e70030
JB
19323 { ac_try='test -z "$ac_c_werror_flag"
19324 || test ! -s conftest.err'
bec39cab
AC
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; } &&
19330 { ac_try='test -s conftest.$ac_objext'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
97bf5e38 19336 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 19337else
bec39cab
AC
19338 echo "$as_me: failed program was:" >&5
19339sed 's/^/| /' conftest.$ac_ext >&5
19340
b4e70030 19341bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 19342
d45fe813 19343fi
bec39cab 19344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19345fi
19346
97bf5e38 19347 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
19348
19349cat >>confdefs.h <<\_ACEOF
97bf5e38 19350#define HAVE_PRGREGSET32_T 1
bec39cab 19351_ACEOF
d45fe813 19352
97bf5e38 19353 fi
b4e70030
JB
19354 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19355echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 19356
b4e70030
JB
19357 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19358echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19359 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19361else
bec39cab
AC
19362 cat >conftest.$ac_ext <<_ACEOF
19363/* confdefs.h. */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h. */
97bf5e38
MK
19368
19369#define _SYSCALL32
19370#include <sys/procfs.h>
bec39cab
AC
19371int
19372main ()
19373{
97bf5e38 19374prfpregset32_t avar
bec39cab
AC
19375 ;
19376 return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext
19380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19382 ac_status=$?
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
b4e70030
JB
19388 { ac_try='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
bec39cab
AC
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
97bf5e38 19401 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 19402else
bec39cab
AC
19403 echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
b4e70030 19406bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 19407
d45fe813 19408fi
bec39cab 19409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19410fi
19411
97bf5e38 19412 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
19413
19414cat >>confdefs.h <<\_ACEOF
97bf5e38 19415#define HAVE_PRFPREGSET32_T 1
bec39cab 19416_ACEOF
d45fe813 19417
97bf5e38 19418 fi
b4e70030
JB
19419 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19420echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 19421
b4e70030
JB
19422 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19423echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19424 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19426else
bec39cab
AC
19427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
97bf5e38 19433
d45fe813 19434#define _SYSCALL32
97bf5e38 19435#include <sys/procfs.h>
bec39cab
AC
19436int
19437main ()
19438{
97bf5e38 19439lwpid_t avar
bec39cab
AC
19440 ;
19441 return 0;
19442}
19443_ACEOF
19444rm -f conftest.$ac_objext
19445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19446 (eval $ac_compile) 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
b4e70030
JB
19453 { ac_try='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
bec39cab
AC
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest.$ac_objext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
97bf5e38 19466 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 19467else
bec39cab
AC
19468 echo "$as_me: failed program was:" >&5
19469sed 's/^/| /' conftest.$ac_ext >&5
19470
b4e70030 19471bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 19472
d45fe813 19473fi
bec39cab 19474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19475fi
19476
97bf5e38 19477 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
19478
19479cat >>confdefs.h <<\_ACEOF
97bf5e38 19480#define HAVE_LWPID_T 1
bec39cab 19481_ACEOF
d45fe813 19482
97bf5e38 19483 fi
b4e70030
JB
19484 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19485echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 19486
b4e70030
JB
19487 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19488echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19489 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19491else
bec39cab
AC
19492 cat >conftest.$ac_ext <<_ACEOF
19493/* confdefs.h. */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
19497/* end confdefs.h. */
c906108c 19498
97bf5e38
MK
19499#define _SYSCALL32
19500#include <sys/procfs.h>
bec39cab
AC
19501int
19502main ()
19503{
97bf5e38 19504psaddr_t avar
bec39cab
AC
19505 ;
19506 return 0;
19507}
19508_ACEOF
19509rm -f conftest.$ac_objext
19510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511 (eval $ac_compile) 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
b4e70030
JB
19518 { ac_try='test -z "$ac_c_werror_flag"
19519 || test ! -s conftest.err'
bec39cab
AC
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; } &&
19525 { ac_try='test -s conftest.$ac_objext'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
97bf5e38 19531 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 19532else
bec39cab
AC
19533 echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
b4e70030 19536bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 19537
c906108c 19538fi
bec39cab 19539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19540fi
19541
97bf5e38 19542 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
19543
19544cat >>confdefs.h <<\_ACEOF
97bf5e38 19545#define HAVE_PSADDR_T 1
bec39cab 19546_ACEOF
c906108c 19547
97bf5e38 19548 fi
b4e70030
JB
19549 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19550echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 19551
b4e70030
JB
19552 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19553echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19554 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19556else
bec39cab
AC
19557 cat >conftest.$ac_ext <<_ACEOF
19558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
c906108c 19563
97bf5e38
MK
19564#define _SYSCALL32
19565#include <sys/procfs.h>
bec39cab
AC
19566int
19567main ()
19568{
97bf5e38 19569prsysent_t avar
bec39cab
AC
19570 ;
19571 return 0;
19572}
19573_ACEOF
19574rm -f conftest.$ac_objext
19575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
b4e70030
JB
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
bec39cab
AC
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
97bf5e38 19596 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 19597else
bec39cab
AC
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
b4e70030 19601bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 19602
c906108c 19603fi
bec39cab 19604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19605fi
19606
97bf5e38 19607 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
19608
19609cat >>confdefs.h <<\_ACEOF
97bf5e38 19610#define HAVE_PRSYSENT_T 1
bec39cab 19611_ACEOF
c906108c 19612
97bf5e38 19613 fi
b4e70030
JB
19614 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
19615echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 19616
b4e70030
JB
19617 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
19618echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19619 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19621else
bec39cab
AC
19622 cat >conftest.$ac_ext <<_ACEOF
19623/* confdefs.h. */
19624_ACEOF
19625cat confdefs.h >>conftest.$ac_ext
19626cat >>conftest.$ac_ext <<_ACEOF
19627/* end confdefs.h. */
c906108c 19628
97bf5e38
MK
19629#define _SYSCALL32
19630#include <sys/procfs.h>
bec39cab
AC
19631int
19632main ()
19633{
97bf5e38 19634pr_sigset_t avar
bec39cab
AC
19635 ;
19636 return 0;
19637}
19638_ACEOF
19639rm -f conftest.$ac_objext
19640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641 (eval $ac_compile) 2>conftest.er1
19642 ac_status=$?
19643 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } &&
b4e70030
JB
19648 { ac_try='test -z "$ac_c_werror_flag"
19649 || test ! -s conftest.err'
bec39cab
AC
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest.$ac_objext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
97bf5e38 19661 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 19662else
bec39cab
AC
19663 echo "$as_me: failed program was:" >&5
19664sed 's/^/| /' conftest.$ac_ext >&5
19665
b4e70030 19666bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 19667
c906108c 19668fi
bec39cab 19669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19670fi
19671
97bf5e38 19672 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
19673
19674cat >>confdefs.h <<\_ACEOF
97bf5e38 19675#define HAVE_PR_SIGSET_T 1
bec39cab 19676_ACEOF
c906108c 19677
97bf5e38 19678 fi
b4e70030
JB
19679 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
19680echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 19681
b4e70030
JB
19682 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
19683echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19684 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19686else
bec39cab
AC
19687 cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h. */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h. */
c906108c 19693
97bf5e38
MK
19694#define _SYSCALL32
19695#include <sys/procfs.h>
bec39cab
AC
19696int
19697main ()
19698{
97bf5e38 19699pr_sigaction64_t avar
bec39cab
AC
19700 ;
19701 return 0;
19702}
19703_ACEOF
19704rm -f conftest.$ac_objext
19705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19706 (eval $ac_compile) 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
b4e70030
JB
19713 { ac_try='test -z "$ac_c_werror_flag"
19714 || test ! -s conftest.err'
bec39cab
AC
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
97bf5e38 19726 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 19727else
bec39cab
AC
19728 echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
b4e70030 19731bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 19732
c906108c 19733fi
bec39cab 19734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19735fi
19736
97bf5e38 19737 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
19738
19739cat >>confdefs.h <<\_ACEOF
97bf5e38 19740#define HAVE_PR_SIGACTION64_T 1
bec39cab 19741_ACEOF
c906108c 19742
97bf5e38 19743 fi
b4e70030
JB
19744 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
19745echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 19746
b4e70030
JB
19747 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
19748echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19749 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19751else
bec39cab
AC
19752 cat >conftest.$ac_ext <<_ACEOF
19753/* confdefs.h. */
19754_ACEOF
19755cat confdefs.h >>conftest.$ac_ext
19756cat >>conftest.$ac_ext <<_ACEOF
19757/* end confdefs.h. */
97bf5e38
MK
19758
19759#define _SYSCALL32
19760#include <sys/procfs.h>
bec39cab
AC
19761int
19762main ()
19763{
97bf5e38 19764pr_siginfo64_t avar
bec39cab
AC
19765 ;
19766 return 0;
19767}
19768_ACEOF
19769rm -f conftest.$ac_objext
19770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19771 (eval $ac_compile) 2>conftest.er1
19772 ac_status=$?
19773 grep -v '^ *+' conftest.er1 >conftest.err
19774 rm -f conftest.er1
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } &&
b4e70030
JB
19778 { ac_try='test -z "$ac_c_werror_flag"
19779 || test ! -s conftest.err'
bec39cab
AC
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } &&
19785 { ac_try='test -s conftest.$ac_objext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
97bf5e38
MK
19791 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
19792else
bec39cab
AC
19793 echo "$as_me: failed program was:" >&5
19794sed 's/^/| /' conftest.$ac_ext >&5
19795
b4e70030 19796bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 19797
97bf5e38 19798fi
bec39cab 19799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19800fi
c906108c 19801
97bf5e38 19802 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
19803
19804cat >>confdefs.h <<\_ACEOF
97bf5e38 19805#define HAVE_PR_SIGINFO64_T 1
bec39cab 19806_ACEOF
c906108c 19807
97bf5e38 19808 fi
b4e70030
JB
19809 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
19810echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
19811
19812
97bf5e38
MK
19813
19814
19815
97bf5e38 19816 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
19817 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
19818echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
19819 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
19821else
19822 if test "$cross_compiling" = yes; then
97bf5e38 19823 gdb_cv_prfpregset_t_broken=yes
c906108c 19824else
bec39cab
AC
19825 cat >conftest.$ac_ext <<_ACEOF
19826/* confdefs.h. */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h. */
97bf5e38
MK
19831#include <sys/procfs.h>
19832 int main ()
19833 {
19834 if (sizeof (prfpregset_t) == sizeof (void *))
19835 return 1;
19836 return 0;
19837 }
bec39cab
AC
19838_ACEOF
19839rm -f conftest$ac_exeext
19840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19841 (eval $ac_link) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; }; then
97bf5e38 19850 gdb_cv_prfpregset_t_broken=no
c906108c 19851else
bec39cab
AC
19852 echo "$as_me: program exited with status $ac_status" >&5
19853echo "$as_me: failed program was:" >&5
19854sed 's/^/| /' conftest.$ac_ext >&5
19855
19856( exit $ac_status )
19857gdb_cv_prfpregset_t_broken=yes
c906108c 19858fi
b4e70030 19859rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19860fi
c906108c
SS
19861fi
19862
b4e70030
JB
19863 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
19864echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 19865 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
19866
19867cat >>confdefs.h <<\_ACEOF
97bf5e38 19868#define PRFPREGSET_T_BROKEN 1
bec39cab 19869_ACEOF
c906108c 19870
97bf5e38
MK
19871 fi
19872 fi
c906108c 19873
bec39cab 19874
b4e70030
JB
19875 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
19876echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19877 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19879else
bec39cab
AC
19880 cat >conftest.$ac_ext <<_ACEOF
19881/* confdefs.h. */
19882_ACEOF
19883cat confdefs.h >>conftest.$ac_ext
19884cat >>conftest.$ac_ext <<_ACEOF
19885/* end confdefs.h. */
97bf5e38
MK
19886#include <unistd.h>
19887#include <sys/types.h>
19888#include <sys/procfs.h>
19889
bec39cab
AC
19890int
19891main ()
19892{
97bf5e38
MK
19893
19894 int dummy;;
19895 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
19896
19897 ;
19898 return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext
19902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903 (eval $ac_compile) 2>conftest.er1
19904 ac_status=$?
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
b4e70030
JB
19910 { ac_try='test -z "$ac_c_werror_flag"
19911 || test ! -s conftest.err'
bec39cab
AC
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest.$ac_objext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
97bf5e38 19923 gdb_cv_have_procfs_piocset=yes
c906108c 19924else
bec39cab
AC
19925 echo "$as_me: failed program was:" >&5
19926sed 's/^/| /' conftest.$ac_ext >&5
19927
b4e70030 19928gdb_cv_have_procfs_piocset=no
c906108c 19929fi
bec39cab 19930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19931fi
97bf5e38 19932
b4e70030
JB
19933 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
19934echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 19935 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
19936
19937cat >>confdefs.h <<\_ACEOF
97bf5e38 19938#define HAVE_PROCFS_PIOCSET 1
bec39cab 19939_ACEOF
97bf5e38
MK
19940
19941 fi
c906108c 19942fi
c906108c 19943
97bf5e38 19944if test ${host} = ${target} ; then
bec39cab 19945
b4e70030
JB
19946 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
19947echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
19948 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19950else
19951 cat >conftest.$ac_ext <<_ACEOF
19952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h. */
97bf5e38 19957#include <link.h>
bec39cab
AC
19958int
19959main ()
19960{
97bf5e38 19961struct link_map lm; (void) lm.l_addr;
bec39cab
AC
19962 ;
19963 return 0;
19964}
19965_ACEOF
19966rm -f conftest.$ac_objext
19967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19968 (eval $ac_compile) 2>conftest.er1
19969 ac_status=$?
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } &&
b4e70030
JB
19975 { ac_try='test -z "$ac_c_werror_flag"
19976 || test ! -s conftest.err'
bec39cab
AC
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } &&
19982 { ac_try='test -s conftest.$ac_objext'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
97bf5e38 19988 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 19989else
bec39cab
AC
19990 echo "$as_me: failed program was:" >&5
19991sed 's/^/| /' conftest.$ac_ext >&5
19992
b4e70030 19993gdb_cv_have_struct_link_map_with_l_members=no
c906108c 19994fi
bec39cab 19995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19996fi
19997
b4e70030
JB
19998 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19999echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 20000 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
20001
20002cat >>confdefs.h <<\_ACEOF
97bf5e38 20003#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 20004_ACEOF
97bf5e38
MK
20005
20006 fi
20007
bec39cab 20008
b4e70030
JB
20009 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20010echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20011 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20013else
bec39cab
AC
20014 cat >conftest.$ac_ext <<_ACEOF
20015/* confdefs.h. */
20016_ACEOF
20017cat confdefs.h >>conftest.$ac_ext
20018cat >>conftest.$ac_ext <<_ACEOF
20019/* end confdefs.h. */
97bf5e38
MK
20020#include <sys/types.h>
20021#include <link.h>
bec39cab
AC
20022int
20023main ()
20024{
97bf5e38 20025struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
20026 ;
20027 return 0;
20028}
20029_ACEOF
20030rm -f conftest.$ac_objext
20031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20032 (eval $ac_compile) 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
b4e70030
JB
20039 { ac_try='test -z "$ac_c_werror_flag"
20040 || test ! -s conftest.err'
bec39cab
AC
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest.$ac_objext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
97bf5e38
MK
20052 gdb_cv_have_struct_link_map_with_lm_members=yes
20053else
bec39cab
AC
20054 echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
20056
b4e70030 20057gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 20058fi
bec39cab 20059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20060fi
c906108c 20061
b4e70030
JB
20062 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20063echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 20064 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
20065
20066cat >>confdefs.h <<\_ACEOF
97bf5e38 20067#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 20068_ACEOF
97bf5e38
MK
20069
20070 fi
20071
bec39cab 20072
b4e70030
JB
20073 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20074echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
20075 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20077else
bec39cab
AC
20078 cat >conftest.$ac_ext <<_ACEOF
20079/* confdefs.h. */
20080_ACEOF
20081cat confdefs.h >>conftest.$ac_ext
20082cat >>conftest.$ac_ext <<_ACEOF
20083/* end confdefs.h. */
97bf5e38
MK
20084#include <sys/types.h>
20085#ifdef HAVE_NLIST_H
20086#include <nlist.h>
20087#endif
20088#include <link.h>
bec39cab
AC
20089int
20090main ()
20091{
97bf5e38 20092struct so_map lm; (void) lm.som_addr;
bec39cab
AC
20093 ;
20094 return 0;
20095}
20096_ACEOF
20097rm -f conftest.$ac_objext
20098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20099 (eval $ac_compile) 2>conftest.er1
20100 ac_status=$?
20101 grep -v '^ *+' conftest.er1 >conftest.err
20102 rm -f conftest.er1
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
b4e70030
JB
20106 { ac_try='test -z "$ac_c_werror_flag"
20107 || test ! -s conftest.err'
bec39cab
AC
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; } &&
20113 { ac_try='test -s conftest.$ac_objext'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
97bf5e38
MK
20119 gdb_cv_have_struct_so_map_with_som_members=yes
20120else
bec39cab
AC
20121 echo "$as_me: failed program was:" >&5
20122sed 's/^/| /' conftest.$ac_ext >&5
20123
b4e70030 20124gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 20125fi
bec39cab 20126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20127fi
c906108c 20128
b4e70030
JB
20129 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20130echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 20131 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
20132
20133cat >>confdefs.h <<\_ACEOF
97bf5e38 20134#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 20135_ACEOF
c906108c 20136
97bf5e38 20137 fi
c906108c 20138
bec39cab 20139
b4e70030
JB
20140 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20141echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
20142 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20144else
bec39cab
AC
20145 cat >conftest.$ac_ext <<_ACEOF
20146/* confdefs.h. */
20147_ACEOF
20148cat confdefs.h >>conftest.$ac_ext
20149cat >>conftest.$ac_ext <<_ACEOF
20150/* end confdefs.h. */
97bf5e38
MK
20151#define _SYSCALL32
20152#include <sys/link.h>
bec39cab
AC
20153int
20154main ()
20155{
97bf5e38 20156struct link_map32 l;
bec39cab
AC
20157 ;
20158 return 0;
20159}
20160_ACEOF
20161rm -f conftest.$ac_objext
20162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163 (eval $ac_compile) 2>conftest.er1
20164 ac_status=$?
20165 grep -v '^ *+' conftest.er1 >conftest.err
20166 rm -f conftest.er1
20167 cat conftest.err >&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); } &&
b4e70030
JB
20170 { ac_try='test -z "$ac_c_werror_flag"
20171 || test ! -s conftest.err'
bec39cab
AC
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try='test -s conftest.$ac_objext'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
97bf5e38
MK
20183 gdb_cv_have_struct_link_map32=yes
20184else
bec39cab
AC
20185 echo "$as_me: failed program was:" >&5
20186sed 's/^/| /' conftest.$ac_ext >&5
20187
b4e70030 20188gdb_cv_have_struct_link_map32=no
97bf5e38 20189fi
bec39cab 20190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20191fi
c906108c 20192
b4e70030
JB
20193 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20194echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 20195 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
20196
20197cat >>confdefs.h <<\_ACEOF
97bf5e38 20198#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 20199_ACEOF
c906108c 20200
60ca704f
SE
20201
20202cat >>confdefs.h <<\_ACEOF
97bf5e38 20203#define _SYSCALL32 1
bec39cab 20204_ACEOF
c906108c 20205
97bf5e38
MK
20206 fi
20207fi
c906108c 20208
bc8bcb4b 20209# Check if the compiler supports the `long long' type.
c906108c 20210
b4e70030
JB
20211echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20212echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
20213if test "${gdb_cv_c_long_long+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20215else
bec39cab
AC
20216 cat >conftest.$ac_ext <<_ACEOF
20217/* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
bc8bcb4b 20222extern long long foo;
bec39cab
AC
20223int
20224main ()
20225{
bc8bcb4b 20226switch (foo & 2) { case 0: return 1; }
bec39cab
AC
20227 ;
20228 return 0;
20229}
20230_ACEOF
20231rm -f conftest.$ac_objext
20232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20233 (eval $ac_compile) 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
b4e70030
JB
20240 { ac_try='test -z "$ac_c_werror_flag"
20241 || test ! -s conftest.err'
bec39cab
AC
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; } &&
20247 { ac_try='test -s conftest.$ac_objext'
20248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249 (eval $ac_try) 2>&5
20250 ac_status=$?
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
97bf5e38
MK
20253 gdb_cv_c_long_long=yes
20254else
bec39cab
AC
20255 echo "$as_me: failed program was:" >&5
20256sed 's/^/| /' conftest.$ac_ext >&5
20257
b4e70030 20258gdb_cv_c_long_long=no
97bf5e38 20259fi
bec39cab 20260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20261fi
b4e70030
JB
20262echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20263echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 20264if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
20265
20266cat >>confdefs.h <<\_ACEOF
97bf5e38 20267#define CC_HAS_LONG_LONG 1
bec39cab 20268_ACEOF
97bf5e38
MK
20269
20270fi
20271
bc8bcb4b 20272# Check if the compiler and runtime support printing long longs.
97bf5e38 20273
b4e70030
JB
20274echo "$as_me:$LINENO: checking for long long support in printf" >&5
20275echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
20276if test "${gdb_cv_printf_has_long_long+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20278else
20279 if test "$cross_compiling" = yes; then
20280 gdb_cv_printf_has_long_long=no
20281else
bec39cab
AC
20282 cat >conftest.$ac_ext <<_ACEOF
20283/* confdefs.h. */
20284_ACEOF
20285cat confdefs.h >>conftest.$ac_ext
20286cat >>conftest.$ac_ext <<_ACEOF
20287/* end confdefs.h. */
bc8bcb4b
MK
20288$ac_includes_default
20289int
20290main ()
20291{
20292char buf[32];
97bf5e38
MK
20293 long long l = 0;
20294 l = (l << 16) + 0x0123;
20295 l = (l << 16) + 0x4567;
20296 l = (l << 16) + 0x89ab;
20297 l = (l << 16) + 0xcdef;
20298 sprintf (buf, "0x%016llx", l);
20299 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
20300 ;
20301 return 0;
c906108c 20302}
bec39cab
AC
20303_ACEOF
20304rm -f conftest$ac_exeext
20305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20306 (eval $ac_link) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
97bf5e38
MK
20315 gdb_cv_printf_has_long_long=yes
20316else
bec39cab
AC
20317 echo "$as_me: program exited with status $ac_status" >&5
20318echo "$as_me: failed program was:" >&5
20319sed 's/^/| /' conftest.$ac_ext >&5
20320
20321( exit $ac_status )
20322gdb_cv_printf_has_long_long=no
97bf5e38 20323fi
b4e70030 20324rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20325fi
97bf5e38 20326fi
b4e70030
JB
20327echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20328echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 20329if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
20330
20331cat >>confdefs.h <<\_ACEOF
97bf5e38 20332#define PRINTF_HAS_LONG_LONG 1
bec39cab 20333_ACEOF
97bf5e38
MK
20334
20335fi
97bf5e38 20336
bc8bcb4b
MK
20337# Check if the compiler supports the `long double' type. We can't use
20338# AC_C_LONG_DOUBLE because that one does additional checks on the
20339# constants defined in <float.h> that fail on some systems,
20340# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 20341
b4e70030
JB
20342echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20343echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 20344if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 20345 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20346else
bec39cab
AC
20347 cat >conftest.$ac_ext <<_ACEOF
20348/* confdefs.h. */
20349_ACEOF
20350cat confdefs.h >>conftest.$ac_ext
20351cat >>conftest.$ac_ext <<_ACEOF
20352/* end confdefs.h. */
97bf5e38 20353long double foo;
bec39cab
AC
20354_ACEOF
20355rm -f conftest.$ac_objext
20356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
b4e70030
JB
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
bec39cab
AC
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
bc8bcb4b 20377 gdb_cv_c_long_double=yes
97bf5e38 20378else
bec39cab
AC
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
b4e70030 20382gdb_cv_c_long_double=no
97bf5e38 20383fi
bec39cab 20384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20385fi
b4e70030
JB
20386echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20387echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 20388if test $gdb_cv_c_long_double = yes; then
c906108c 20389
bc8bcb4b 20390cat >>confdefs.h <<\_ACEOF
97bf5e38 20391#define HAVE_LONG_DOUBLE 1
bec39cab 20392_ACEOF
97bf5e38
MK
20393
20394fi
20395
bc8bcb4b 20396# Check if the compiler and runtime support printing long doubles.
97bf5e38 20397
b4e70030
JB
20398echo "$as_me:$LINENO: checking for long double support in printf" >&5
20399echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
20400if test "${gdb_cv_printf_has_long_double+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20402else
20403 if test "$cross_compiling" = yes; then
20404 gdb_cv_printf_has_long_double=no
20405else
bec39cab
AC
20406 cat >conftest.$ac_ext <<_ACEOF
20407/* confdefs.h. */
20408_ACEOF
20409cat confdefs.h >>conftest.$ac_ext
20410cat >>conftest.$ac_ext <<_ACEOF
20411/* end confdefs.h. */
bc8bcb4b
MK
20412$ac_includes_default
20413int
20414main ()
20415{
20416char buf[16];
97bf5e38
MK
20417 long double f = 3.141592653;
20418 sprintf (buf, "%Lg", f);
20419 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
20420 ;
20421 return 0;
97bf5e38 20422}
bec39cab
AC
20423_ACEOF
20424rm -f conftest$ac_exeext
20425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20426 (eval $ac_link) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
97bf5e38 20435 gdb_cv_printf_has_long_double=yes
c906108c 20436else
bec39cab
AC
20437 echo "$as_me: program exited with status $ac_status" >&5
20438echo "$as_me: failed program was:" >&5
20439sed 's/^/| /' conftest.$ac_ext >&5
20440
20441( exit $ac_status )
20442gdb_cv_printf_has_long_double=no
c906108c 20443fi
b4e70030 20444rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20445fi
c906108c 20446fi
b4e70030
JB
20447echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20448echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 20449if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
20450
20451cat >>confdefs.h <<\_ACEOF
97bf5e38 20452#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 20453_ACEOF
97bf5e38
MK
20454
20455fi
97bf5e38 20456
bc8bcb4b 20457# Check if the compiler and runtime support scanning long doubles.
97bf5e38 20458
b4e70030
JB
20459echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20460echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
20461if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20463else
20464 if test "$cross_compiling" = yes; then
20465 gdb_cv_scanf_has_long_double=no
20466else
bec39cab
AC
20467 cat >conftest.$ac_ext <<_ACEOF
20468/* confdefs.h. */
20469_ACEOF
20470cat confdefs.h >>conftest.$ac_ext
20471cat >>conftest.$ac_ext <<_ACEOF
20472/* end confdefs.h. */
bc8bcb4b
MK
20473#include <stdio.h>
20474int
20475main ()
20476{
20477char *buf = "3.141592653";
97bf5e38
MK
20478 long double f = 0;
20479 sscanf (buf, "%Lg", &f);
20480 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
20481 ;
20482 return 0;
97bf5e38 20483}
bec39cab
AC
20484_ACEOF
20485rm -f conftest$ac_exeext
20486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20487 (eval $ac_link) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
97bf5e38
MK
20496 gdb_cv_scanf_has_long_double=yes
20497else
bec39cab
AC
20498 echo "$as_me: program exited with status $ac_status" >&5
20499echo "$as_me: failed program was:" >&5
20500sed 's/^/| /' conftest.$ac_ext >&5
20501
20502( exit $ac_status )
20503gdb_cv_scanf_has_long_double=no
97bf5e38 20504fi
b4e70030 20505rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20506fi
c906108c 20507fi
b4e70030
JB
20508echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20509echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 20510if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
20511
20512cat >>confdefs.h <<\_ACEOF
97bf5e38 20513#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 20514_ACEOF
97bf5e38
MK
20515
20516fi
c906108c 20517
438013df
AO
20518case ${host_os} in
20519aix*)
b4e70030
JB
20520 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20521echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
20522if test "${gdb_cv_bigtoc+set}" = set; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 20524else
bec39cab 20525
438013df
AO
20526 SAVE_LDFLAGS=$LDFLAGS
20527
20528 case $GCC in
20529 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20530 *) gdb_cv_bigtoc=-bbigtoc ;;
20531 esac
20532
20533 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
20534 cat >conftest.$ac_ext <<_ACEOF
20535/* confdefs.h. */
20536_ACEOF
20537cat confdefs.h >>conftest.$ac_ext
20538cat >>conftest.$ac_ext <<_ACEOF
20539/* end confdefs.h. */
438013df 20540
bec39cab
AC
20541int
20542main ()
20543{
438013df 20544int i;
bec39cab
AC
20545 ;
20546 return 0;
20547}
20548_ACEOF
20549rm -f conftest.$ac_objext conftest$ac_exeext
20550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20551 (eval $ac_link) 2>conftest.er1
20552 ac_status=$?
20553 grep -v '^ *+' conftest.er1 >conftest.err
20554 rm -f conftest.er1
20555 cat conftest.err >&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } &&
b4e70030
JB
20558 { ac_try='test -z "$ac_c_werror_flag"
20559 || test ! -s conftest.err'
bec39cab
AC
20560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20562 ac_status=$?
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; } &&
20565 { ac_try='test -s conftest$ac_exeext'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
438013df
AO
20571 :
20572else
bec39cab
AC
20573 echo "$as_me: failed program was:" >&5
20574sed 's/^/| /' conftest.$ac_ext >&5
20575
b4e70030 20576gdb_cv_bigtoc=
438013df 20577fi
bec39cab
AC
20578rm -f conftest.err conftest.$ac_objext \
20579 conftest$ac_exeext conftest.$ac_ext
ec76baa5 20580 LDFLAGS="${SAVE_LDFLAGS}"
438013df 20581
bec39cab 20582fi
b4e70030
JB
20583echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
20584echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
20585 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
20586 ;;
20587esac
20588
c906108c
SS
20589
20590
20591if test ${build} = ${host} -a ${host} = ${target} ; then
20592 case ${host_os} in
20593 hpux*)
b4e70030
JB
20594 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
20595echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
20596 if test -f /usr/include/dce/cma_config.h ; then
20597 if test "$GCC" = "yes" ; then
b4e70030
JB
20598 echo "$as_me:$LINENO: result: yes" >&5
20599echo "${ECHO_T}yes" >&6
60ca704f
SE
20600
20601cat >>confdefs.h <<\_ACEOF
c906108c 20602#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 20603_ACEOF
c906108c 20604
3483b318 20605 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
20606 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
20607 else
b4e70030
JB
20608 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
20609echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
20610 fi
20611 else
b4e70030
JB
20612 echo "$as_me:$LINENO: result: no" >&5
20613echo "${ECHO_T}no" >&6
c906108c
SS
20614 fi
20615 ;;
20616 solaris*)
d92419e5
JB
20617 # See if thread_db library is around for Solaris thread debugging.
20618 # Note that we must explicitly test for version 1 of the library
20619 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
20620 # the same API.
b4e70030
JB
20621 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
20622echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 20623 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
20624 echo "$as_me:$LINENO: result: yes" >&5
20625echo "${ECHO_T}yes" >&6
60ca704f
SE
20626
20627cat >>confdefs.h <<\_ACEOF
c906108c 20628#define HAVE_THREAD_DB_LIB 1
bec39cab 20629_ACEOF
c906108c 20630
3483b318 20631 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 20632 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 20633
b4e70030
JB
20634echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20635echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
20636if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20638else
bec39cab 20639 ac_check_lib_save_LIBS=$LIBS
c906108c 20640LIBS="-ldl $LIBS"
bec39cab
AC
20641cat >conftest.$ac_ext <<_ACEOF
20642/* confdefs.h. */
20643_ACEOF
20644cat confdefs.h >>conftest.$ac_ext
20645cat >>conftest.$ac_ext <<_ACEOF
20646/* end confdefs.h. */
20647
b4e70030 20648/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
20649#ifdef __cplusplus
20650extern "C"
20651#endif
b4e70030
JB
20652/* We use char because int might match the return type of a gcc2
20653 builtin and then its argument prototype would still apply. */
bec39cab
AC
20654char dlopen ();
20655int
20656main ()
20657{
b4e70030 20658dlopen ();
bec39cab
AC
20659 ;
20660 return 0;
20661}
20662_ACEOF
20663rm -f conftest.$ac_objext conftest$ac_exeext
20664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665 (eval $ac_link) 2>conftest.er1
20666 ac_status=$?
20667 grep -v '^ *+' conftest.er1 >conftest.err
20668 rm -f conftest.er1
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } &&
b4e70030
JB
20672 { ac_try='test -z "$ac_c_werror_flag"
20673 || test ! -s conftest.err'
bec39cab
AC
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; } &&
20679 { ac_try='test -s conftest$ac_exeext'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20682 ac_status=$?
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20685 ac_cv_lib_dl_dlopen=yes
20686else
20687 echo "$as_me: failed program was:" >&5
20688sed 's/^/| /' conftest.$ac_ext >&5
20689
b4e70030 20690ac_cv_lib_dl_dlopen=no
bec39cab
AC
20691fi
20692rm -f conftest.err conftest.$ac_objext \
20693 conftest$ac_exeext conftest.$ac_ext
20694LIBS=$ac_check_lib_save_LIBS
20695fi
b4e70030
JB
20696echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20697echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
20698if test $ac_cv_lib_dl_dlopen = yes; then
20699 cat >>confdefs.h <<_ACEOF
20700#define HAVE_LIBDL 1
20701_ACEOF
c906108c
SS
20702
20703 LIBS="-ldl $LIBS"
20704
c906108c
SS
20705fi
20706
20707 if test "$GCC" = "yes" ; then
20708 # The GNU linker requires the -export-dynamic option to make
20709 # all symbols visible in the dynamic symbol table.
20710 hold_ldflags=$LDFLAGS
b4e70030
JB
20711 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
20712echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 20713 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
20714 cat >conftest.$ac_ext <<_ACEOF
20715/* confdefs.h. */
20716_ACEOF
20717cat confdefs.h >>conftest.$ac_ext
20718cat >>conftest.$ac_ext <<_ACEOF
20719/* end confdefs.h. */
c906108c 20720
bec39cab
AC
20721int
20722main ()
20723{
c906108c 20724int i;
bec39cab
AC
20725 ;
20726 return 0;
20727}
20728_ACEOF
20729rm -f conftest.$ac_objext conftest$ac_exeext
20730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20731 (eval $ac_link) 2>conftest.er1
20732 ac_status=$?
20733 grep -v '^ *+' conftest.er1 >conftest.err
20734 rm -f conftest.er1
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
b4e70030
JB
20738 { ac_try='test -z "$ac_c_werror_flag"
20739 || test ! -s conftest.err'
bec39cab
AC
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest$ac_exeext'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
c906108c
SS
20751 found=yes
20752else
bec39cab
AC
20753 echo "$as_me: failed program was:" >&5
20754sed 's/^/| /' conftest.$ac_ext >&5
20755
b4e70030 20756found=no
c906108c 20757fi
bec39cab
AC
20758rm -f conftest.err conftest.$ac_objext \
20759 conftest$ac_exeext conftest.$ac_ext
c906108c 20760 LDFLAGS=$hold_ldflags
b4e70030
JB
20761 echo "$as_me:$LINENO: result: $found" >&5
20762echo "${ECHO_T}$found" >&6
c906108c
SS
20763 if test $found = yes; then
20764 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
20765 fi
20766 fi
20767 # Sun randomly tweaked the prototypes in <proc_service.h>
20768 # at one point.
b4e70030
JB
20769 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
20770echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
20771 if test "${gdb_cv_proc_service_is_old+set}" = set; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20773else
bec39cab
AC
20774
20775 cat >conftest.$ac_ext <<_ACEOF
20776/* confdefs.h. */
20777_ACEOF
20778cat confdefs.h >>conftest.$ac_ext
20779cat >>conftest.$ac_ext <<_ACEOF
20780/* end confdefs.h. */
c906108c
SS
20781
20782 #include <proc_service.h>
20783 ps_err_e ps_pdwrite
20784 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 20785
bec39cab
AC
20786int
20787main ()
20788{
20789
20790 ;
20791 return 0;
20792}
20793_ACEOF
20794rm -f conftest.$ac_objext
20795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20796 (eval $ac_compile) 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
b4e70030
JB
20803 { ac_try='test -z "$ac_c_werror_flag"
20804 || test ! -s conftest.err'
bec39cab
AC
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try='test -s conftest.$ac_objext'
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; }; then
c906108c
SS
20816 gdb_cv_proc_service_is_old=no
20817else
bec39cab
AC
20818 echo "$as_me: failed program was:" >&5
20819sed 's/^/| /' conftest.$ac_ext >&5
20820
b4e70030 20821gdb_cv_proc_service_is_old=yes
c906108c 20822fi
bec39cab
AC
20823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20824
c906108c
SS
20825fi
20826
b4e70030
JB
20827 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
20828echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 20829 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
20830
20831cat >>confdefs.h <<\_ACEOF
c906108c 20832#define PROC_SERVICE_IS_OLD 1
bec39cab 20833_ACEOF
c906108c
SS
20834
20835 fi
20836 else
b4e70030
JB
20837 echo "$as_me:$LINENO: result: no" >&5
20838echo "${ECHO_T}no" >&6
c906108c
SS
20839 fi
20840 ;;
d92419e5 20841 aix*)
b4e70030
JB
20842 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
20843echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
20844 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20846else
20847 cat >conftest.$ac_ext <<_ACEOF
20848/* confdefs.h. */
20849_ACEOF
20850cat confdefs.h >>conftest.$ac_ext
20851cat >>conftest.$ac_ext <<_ACEOF
20852/* end confdefs.h. */
d92419e5 20853#include <sys/pthdebug.h>
bec39cab
AC
20854int
20855main ()
20856{
d92419e5
JB
20857#ifndef PTHDB_VERSION_3
20858 #error
20859 #endif
bec39cab
AC
20860 ;
20861 return 0;
20862}
20863_ACEOF
20864rm -f conftest.$ac_objext
20865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20866 (eval $ac_compile) 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
b4e70030
JB
20873 { ac_try='test -z "$ac_c_werror_flag"
20874 || test ! -s conftest.err'
bec39cab
AC
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; } &&
20880 { ac_try='test -s conftest.$ac_objext'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
d92419e5
JB
20886 gdb_cv_have_aix_thread_debug=yes
20887else
bec39cab
AC
20888 echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
20890
b4e70030 20891gdb_cv_have_aix_thread_debug=no
d92419e5 20892fi
bec39cab 20893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
20894fi
20895
b4e70030
JB
20896 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
20897echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
20898 if test $gdb_cv_have_aix_thread_debug = yes; then
20899 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 20900 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
20901 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
20902 fi
20903 ;;
c906108c 20904 esac
bec39cab 20905
c906108c
SS
20906fi
20907
3f47be5c 20908if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
20909 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
20910echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
20911if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
20912 echo $ECHO_N "(cached) $ECHO_C" >&6
20913else
20914 cat >conftest.$ac_ext <<_ACEOF
20915/* confdefs.h. */
20916_ACEOF
20917cat confdefs.h >>conftest.$ac_ext
20918cat >>conftest.$ac_ext <<_ACEOF
20919/* end confdefs.h. */
3f47be5c 20920#include <thread_db.h>
bec39cab
AC
20921int
20922main ()
20923{
3f47be5c 20924int i = TD_NOTALLOC;
bec39cab
AC
20925 ;
20926 return 0;
20927}
20928_ACEOF
20929rm -f conftest.$ac_objext
20930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931 (eval $ac_compile) 2>conftest.er1
20932 ac_status=$?
20933 grep -v '^ *+' conftest.er1 >conftest.err
20934 rm -f conftest.er1
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
b4e70030
JB
20938 { ac_try='test -z "$ac_c_werror_flag"
20939 || test ! -s conftest.err'
bec39cab
AC
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20942 ac_status=$?
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; } &&
20945 { ac_try='test -s conftest.$ac_objext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
3f47be5c
EZ
20951 gdb_cv_thread_db_h_has_td_notalloc=yes
20952else
bec39cab
AC
20953 echo "$as_me: failed program was:" >&5
20954sed 's/^/| /' conftest.$ac_ext >&5
20955
b4e70030 20956gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 20957
3f47be5c 20958fi
bec39cab 20959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 20960
bec39cab 20961fi
b4e70030
JB
20962echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
20963echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
20964 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
20965echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
20966if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20968else
20969 cat >conftest.$ac_ext <<_ACEOF
20970/* confdefs.h. */
20971_ACEOF
20972cat confdefs.h >>conftest.$ac_ext
20973cat >>conftest.$ac_ext <<_ACEOF
20974/* end confdefs.h. */
20975#include <thread_db.h>
20976int
20977main ()
20978{
20979int i = TD_VERSION;
20980 ;
20981 return 0;
20982}
20983_ACEOF
20984rm -f conftest.$ac_objext
20985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20986 (eval $ac_compile) 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try='test -z "$ac_c_werror_flag"
20994 || test ! -s conftest.err'
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); }; } &&
21000 { ac_try='test -s conftest.$ac_objext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 gdb_cv_thread_db_h_has_td_version=yes
21007else
21008 echo "$as_me: failed program was:" >&5
21009sed 's/^/| /' conftest.$ac_ext >&5
21010
21011gdb_cv_thread_db_h_has_td_version=no
21012
21013fi
21014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21015
21016fi
21017echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21018echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21019 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21020echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21021if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21023else
21024 cat >conftest.$ac_ext <<_ACEOF
21025/* confdefs.h. */
21026_ACEOF
21027cat confdefs.h >>conftest.$ac_ext
21028cat >>conftest.$ac_ext <<_ACEOF
21029/* end confdefs.h. */
21030#include <thread_db.h>
21031int
21032main ()
21033{
21034int i = TD_NOTLS;
21035 ;
21036 return 0;
21037}
21038_ACEOF
21039rm -f conftest.$ac_objext
21040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21041 (eval $ac_compile) 2>conftest.er1
21042 ac_status=$?
21043 grep -v '^ *+' conftest.er1 >conftest.err
21044 rm -f conftest.er1
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } &&
21048 { ac_try='test -z "$ac_c_werror_flag"
21049 || test ! -s conftest.err'
21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051 (eval $ac_try) 2>&5
21052 ac_status=$?
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; } &&
21055 { ac_try='test -s conftest.$ac_objext'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21058 ac_status=$?
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; }; then
21061 gdb_cv_thread_db_h_has_td_notls=yes
21062else
21063 echo "$as_me: failed program was:" >&5
21064sed 's/^/| /' conftest.$ac_ext >&5
21065
21066gdb_cv_thread_db_h_has_td_notls=no
21067
21068fi
21069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21070
21071fi
21072echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21073echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
21074fi
21075if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
21076
21077cat >>confdefs.h <<\_ACEOF
3f47be5c 21078#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 21079_ACEOF
3f47be5c 21080
59f80f10
DJ
21081fi
21082if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21083
21084cat >>confdefs.h <<\_ACEOF
21085#define THREAD_DB_HAS_TD_VERSION 1
21086_ACEOF
21087
21088fi
21089if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21090
21091cat >>confdefs.h <<\_ACEOF
21092#define THREAD_DB_HAS_TD_NOTLS 1
21093_ACEOF
21094
3f47be5c
EZ
21095fi
21096
b757528f 21097if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
21098 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21099echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
21100if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102else
21103 cat >conftest.$ac_ext <<_ACEOF
21104/* confdefs.h. */
21105_ACEOF
21106cat confdefs.h >>conftest.$ac_ext
21107cat >>conftest.$ac_ext <<_ACEOF
21108/* end confdefs.h. */
b757528f 21109#include <sys/syscall.h>
bec39cab
AC
21110int
21111main ()
21112{
b757528f 21113int i = __NR_tkill;
bec39cab
AC
21114 ;
21115 return 0;
21116}
21117_ACEOF
21118rm -f conftest.$ac_objext
21119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21120 (eval $ac_compile) 2>conftest.er1
21121 ac_status=$?
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
b4e70030
JB
21127 { ac_try='test -z "$ac_c_werror_flag"
21128 || test ! -s conftest.err'
bec39cab
AC
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest.$ac_objext'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
b757528f
JJ
21140 gdb_cv_sys_syscall_h_has_tkill=yes
21141else
bec39cab
AC
21142 echo "$as_me: failed program was:" >&5
21143sed 's/^/| /' conftest.$ac_ext >&5
21144
b4e70030 21145gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 21146
b757528f 21147fi
bec39cab 21148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 21149
bec39cab 21150fi
b4e70030
JB
21151echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21152echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
21153fi
21154if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
21155
21156cat >>confdefs.h <<\_ACEOF
b757528f 21157#define HAVE_TKILL_SYSCALL 1
bec39cab 21158_ACEOF
b757528f
JJ
21159
21160fi
21161
fb40c209 21162
bec39cab 21163
b4e70030 21164# Check whether --with-sysroot or --without-sysroot was given.
030292b7 21165if test "${with_sysroot+set}" = set; then
b4e70030
JB
21166 withval="$with_sysroot"
21167
030292b7 21168 case ${with_sysroot} in
715d1656 21169 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
21170 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21171 esac
21172
21173 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21174
21175 if test "x$exec_prefix" = xNONE; then
21176 if test "x$prefix" = xNONE; then
21177 test_prefix=/usr/local
21178 else
21179 test_prefix=$prefix
21180 fi
21181 else
21182 test_prefix=$exec_prefix
21183 fi
21184 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
21185 "${test_prefix}"|"${test_prefix}/"*|\
21186 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
21187 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21188 TARGET_SYSTEM_ROOT_DEFINE="$t"
21189 ;;
21190 esac
21191
21192else
bec39cab 21193
030292b7
DJ
21194 TARGET_SYSTEM_ROOT=
21195 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21196
b4e70030 21197fi;
030292b7
DJ
21198
21199
21200
b4e70030 21201# Check whether --enable-werror or --disable-werror was given.
094a342e 21202if test "${enable_werror+set}" = set; then
b4e70030
JB
21203 enableval="$enable_werror"
21204 case "${enableval}" in
094a342e
MK
21205 yes | y) ERROR_ON_WARNING="yes" ;;
21206 no | n) ERROR_ON_WARNING="no" ;;
21207 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21208echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21209 { (exit 1); exit 1; }; } ;;
21210 esac
b4e70030 21211fi;
094a342e
MK
21212
21213# Enable -Werror by default when using gcc
21214if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21215 ERROR_ON_WARNING=yes
21216fi
21217
21218WERROR_CFLAGS=""
21219if test "${ERROR_ON_WARNING}" = yes ; then
21220 WERROR_CFLAGS="-Werror"
21221fi
21222
aa79a185
DJ
21223# The entries after -Wno-pointer-sign are disabled warnings which may
21224# be enabled in the future, which can not currently be used to build
21225# GDB.
21226# NOTE: If you change this list, remember to update
3b851bce 21227# gdb/doc/gdbint.texinfo.
aa79a185
DJ
21228build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21229-Wformat-nonliteral -Wno-pointer-sign \
21230-Wno-unused -Wno-switch"
a3b362c4 21231
b4e70030 21232# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 21233if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
21234 enableval="$enable_build_warnings"
21235 case "${enableval}" in
c906108c
SS
21236 yes) ;;
21237 no) build_warnings="-w";;
21238 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21239 build_warnings="${build_warnings} ${t}";;
21240 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21241 build_warnings="${t} ${build_warnings}";;
21242 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21243esac
d4f3574e 21244if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 21245 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 21246fi
b4e70030 21247fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 21248if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
21249 enableval="$enable_gdb_build_warnings"
21250 case "${enableval}" in
3b851bce
AC
21251 yes) ;;
21252 no) build_warnings="-w";;
21253 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21254 build_warnings="${build_warnings} ${t}";;
21255 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21256 build_warnings="${t} ${build_warnings}";;
21257 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21258esac
21259if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21260 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21261fi
b4e70030 21262fi; WARN_CFLAGS=""
c906108c
SS
21263if test "x${build_warnings}" != x -a "x$GCC" = xyes
21264then
b4e70030
JB
21265 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21266echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
21267 # Separate out the -Werror flag as some files just cannot be
21268 # compiled with it enabled.
21269 for w in ${build_warnings}; do
21270 case $w in
21271 -Werr*) WERROR_CFLAGS=-Werror ;;
21272 *) # Check that GCC accepts it
4536bbc6
AC
21273 saved_CFLAGS="$CFLAGS"
21274 CFLAGS="$CFLAGS $w"
bec39cab
AC
21275 cat >conftest.$ac_ext <<_ACEOF
21276/* confdefs.h. */
21277_ACEOF
21278cat confdefs.h >>conftest.$ac_ext
21279cat >>conftest.$ac_ext <<_ACEOF
21280/* end confdefs.h. */
4536bbc6 21281
bec39cab
AC
21282int
21283main ()
21284{
4536bbc6 21285
bec39cab
AC
21286 ;
21287 return 0;
21288}
21289_ACEOF
21290rm -f conftest.$ac_objext
21291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21292 (eval $ac_compile) 2>conftest.er1
21293 ac_status=$?
21294 grep -v '^ *+' conftest.er1 >conftest.err
21295 rm -f conftest.er1
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
b4e70030
JB
21299 { ac_try='test -z "$ac_c_werror_flag"
21300 || test ! -s conftest.err'
bec39cab
AC
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; } &&
21306 { ac_try='test -s conftest.$ac_objext'
21307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308 (eval $ac_try) 2>&5
21309 ac_status=$?
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); }; }; then
4536bbc6
AC
21312 WARN_CFLAGS="${WARN_CFLAGS} $w"
21313else
bec39cab
AC
21314 echo "$as_me: failed program was:" >&5
21315sed 's/^/| /' conftest.$ac_ext >&5
21316
4536bbc6 21317fi
bec39cab 21318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 21319 CFLAGS="$saved_CFLAGS"
746a987d
AC
21320 esac
21321 done
aa79a185
DJ
21322 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21323echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
21324fi
21325
21326
104c1213 21327
7a292a7a 21328# In the Cygwin environment, we need some additional flags.
b4e70030
JB
21329echo "$as_me:$LINENO: checking for cygwin" >&5
21330echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
21331if test "${gdb_cv_os_cygwin+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21333else
21334 cat >conftest.$ac_ext <<_ACEOF
21335/* confdefs.h. */
21336_ACEOF
21337cat confdefs.h >>conftest.$ac_ext
21338cat >>conftest.$ac_ext <<_ACEOF
21339/* end confdefs.h. */
7a292a7a
SS
21340
21341#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21342lose
21343#endif
bec39cab 21344_ACEOF
7a292a7a 21345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 21346 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
21347 gdb_cv_os_cygwin=yes
21348else
7a292a7a
SS
21349 gdb_cv_os_cygwin=no
21350fi
21351rm -f conftest*
21352
21353fi
b4e70030
JB
21354echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21355echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 21356
aff38e61 21357
3eb25fda 21358SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 21359case ${host} in
95cbc983
AC
21360 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21361 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 21362 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
21363esac
21364
21365
cd0fc7c3
SS
21366# libreadline needs libuser32.a in a cygwin environment
21367WIN32LIBS=
21368if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
21369 WIN32LIBS="-luser32"
21370 case "${target}" in
21371 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21372 ;;
21373 esac
cd0fc7c3 21374fi
c906108c 21375
b4505029
MM
21376# The ser-tcp.c module requires sockets.
21377case ${host} in
21378 *mingw32*)
21379
21380cat >>confdefs.h <<\_ACEOF
21381#define USE_WIN32API 1
21382_ACEOF
21383
21384 WIN32LIBS="$WIN32LIBS -lws2_32"
21385 ;;
21386esac
21387
7a292a7a 21388
121ce6e5
DJ
21389# Add any host-specific objects to GDB.
21390CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21391
3fc11d3e
JM
21392LIBGUI="../libgui/src/libgui.a"
21393GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21394
21395
7a292a7a 21396
3fc11d3e
JM
21397WIN32LDAPP=
21398
21399
21400
d91670b9
CV
21401case "${host}" in
21402*-*-cygwin*)
21403 configdir="win"
21404 ;;
21405*)
21406 configdir="unix"
21407 ;;
21408esac
3fc11d3e
JM
21409
21410GDBTKLIBS=
21411if test "${enable_gdbtk}" = "yes"; then
21412
d1c3b63a
KS
21413 # Gdbtk must have an absolute path to srcdir in order to run
21414 # properly when not installed.
21415 here=`pwd`
21416 cd ${srcdir}
21417 GDBTK_SRC_DIR=`pwd`
21418 cd $here
21419
bec39cab 21420
3fc11d3e
JM
21421#
21422# Ok, lets find the tcl configuration
bec39cab 21423# First, look for one uninstalled.
3fc11d3e
JM
21424# the alternative search directory is invoked by --with-tclconfig
21425#
21426
21427if test x"${no_tcl}" = x ; then
21428 # we reset no_tcl in case something fails here
21429 no_tcl=true
bec39cab 21430
b4e70030 21431# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 21432if test "${with_tclconfig+set}" = set; then
b4e70030
JB
21433 withval="$with_tclconfig"
21434 with_tclconfig=${withval}
21435fi;
21436 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21437echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
21438 if test "${ac_cv_c_tclconfig+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21440else
bec39cab 21441
3fc11d3e
JM
21442
21443 # First check to see if --with-tclconfig was specified.
21444 if test x"${with_tclconfig}" != x ; then
21445 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21446 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21447 else
bec39cab
AC
21448 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21449echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21450 { (exit 1); exit 1; }; }
3fc11d3e
JM
21451 fi
21452 fi
21453
21454 # then check for a private Tcl installation
21455 if test x"${ac_cv_c_tclconfig}" = x ; then
21456 for i in \
21457 ../tcl \
21458 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21459 ../../tcl \
21460 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21461 ../../../tcl \
21462 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21463 if test -f "$i/${configdir}/tclConfig.sh" ; then
21464 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21465 break
21466 fi
21467 done
21468 fi
21469 # check in a few common install locations
21470 if test x"${ac_cv_c_tclconfig}" = x ; then
21471 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21472 if test -f "$i/tclConfig.sh" ; then
21473 ac_cv_c_tclconfig=`(cd $i; pwd)`
21474 break
21475 fi
21476 done
21477 fi
21478 # check in a few other private locations
21479 if test x"${ac_cv_c_tclconfig}" = x ; then
21480 for i in \
21481 ${srcdir}/../tcl \
21482 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21483 if test -f "$i/${configdir}/tclConfig.sh" ; then
21484 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21485 break
21486 fi
21487 done
21488 fi
bec39cab 21489
3fc11d3e
JM
21490fi
21491
21492 if test x"${ac_cv_c_tclconfig}" = x ; then
21493 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
21494 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
21495echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
21496 else
21497 no_tcl=
21498 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
21499 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
21500echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
21501 fi
21502fi
21503
21504 if test -z "${no_tcl}"; then
bec39cab 21505
3fc11d3e
JM
21506 . $TCLCONFIG
21507
3fc11d3e
JM
21508
21509
21510
21511
3fc11d3e
JM
21512
21513
21514
bec39cab
AC
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
3fc11d3e
JM
21534#
21535# Ok, lets find the tk configuration
bec39cab 21536# First, look for one uninstalled.
3fc11d3e
JM
21537# the alternative search directory is invoked by --with-tkconfig
21538#
21539
21540if test x"${no_tk}" = x ; then
21541 # we reset no_tk in case something fails here
21542 no_tk=true
bec39cab 21543
b4e70030 21544# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 21545if test "${with_tkconfig+set}" = set; then
b4e70030
JB
21546 withval="$with_tkconfig"
21547 with_tkconfig=${withval}
21548fi;
21549 echo "$as_me:$LINENO: checking for Tk configuration" >&5
21550echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
21551 if test "${ac_cv_c_tkconfig+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21553else
bec39cab 21554
3fc11d3e
JM
21555
21556 # First check to see if --with-tkconfig was specified.
21557 if test x"${with_tkconfig}" != x ; then
21558 if test -f "${with_tkconfig}/tkConfig.sh" ; then
21559 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
21560 else
bec39cab
AC
21561 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
21562echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
21563 { (exit 1); exit 1; }; }
3fc11d3e
JM
21564 fi
21565 fi
21566
21567 # then check for a private Tk library
21568 if test x"${ac_cv_c_tkconfig}" = x ; then
21569 for i in \
21570 ../tk \
21571 `ls -dr ../tk[4-9]* 2>/dev/null` \
21572 ../../tk \
21573 `ls -dr ../../tk[4-9]* 2>/dev/null` \
21574 ../../../tk \
21575 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
21576 if test -f "$i/${configdir}/tkConfig.sh" ; then
21577 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21578 break
21579 fi
21580 done
21581 fi
21582 # check in a few common install locations
21583 if test x"${ac_cv_c_tkconfig}" = x ; then
21584 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21585 if test -f "$i/tkConfig.sh" ; then
21586 ac_cv_c_tkconfig=`(cd $i; pwd)`
21587 break
21588 fi
21589 done
21590 fi
21591 # check in a few other private locations
21592 if test x"${ac_cv_c_tkconfig}" = x ; then
21593 for i in \
21594 ${srcdir}/../tk \
21595 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
21596 if test -f "$i/${configdir}/tkConfig.sh" ; then
21597 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21598 break
21599 fi
21600 done
21601 fi
bec39cab 21602
3fc11d3e
JM
21603fi
21604
21605 if test x"${ac_cv_c_tkconfig}" = x ; then
21606 TKCONFIG="# no Tk configs found"
bec39cab
AC
21607 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
21608echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
21609 else
21610 no_tk=
21611 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
21612 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
21613echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
21614 fi
21615fi
21616
21617
21618
dd2504ab
JM
21619 # now look for Tcl library stuff
21620
d91670b9 21621 tcldir="../tcl/${configdir}/"
dd2504ab
JM
21622
21623 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
21624
3fc11d3e
JM
21625 # If $no_tk is nonempty, then we can't do Tk, and there is no
21626 # point to doing Tcl.
21627 if test -z "${no_tk}"; then
bec39cab 21628
3fc11d3e
JM
21629 if test -f "$TKCONFIG" ; then
21630 . $TKCONFIG
21631 fi
21632
3fc11d3e 21633
3fc11d3e
JM
21634
21635
3fc11d3e 21636
bec39cab
AC
21637
21638
21639
21640
21641
21642
21643
21644
21645
3fc11d3e
JM
21646#
21647# Ok, lets find the tcl source trees so we can use the headers
21648# Warning: transition of version 9 to 10 will break this algorithm
21649# because 10 sorts before 9. We also look for just tcl. We have to
21650# be careful that we don't match stuff like tclX by accident.
21651# the alternative search directory is involked by --with-tclinclude
21652#
21653
21654no_tcl=true
b4e70030
JB
21655echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
21656echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 21657
b4e70030 21658# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 21659if test "${with_tclinclude+set}" = set; then
b4e70030
JB
21660 withval="$with_tclinclude"
21661 with_tclinclude=${withval}
21662fi;
bec39cab
AC
21663if test "${ac_cv_c_tclh+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21665else
bec39cab 21666
3fc11d3e
JM
21667# first check to see if --with-tclinclude was specified
21668if test x"${with_tclinclude}" != x ; then
21669 if test -f ${with_tclinclude}/tclInt.h ; then
21670 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
21671 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
21672 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
21673 else
bec39cab
AC
21674 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
21675echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
21676 { (exit 1); exit 1; }; }
3fc11d3e
JM
21677 fi
21678fi
21679
21680# next check if it came with Tcl configuration file
21681if test x"${ac_cv_c_tclconfig}" = x ; then
21682 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
21683 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
21684 fi
21685fi
21686
21687# next check in private source directory
21688#
21689# since ls returns lowest version numbers first, reverse its output
21690if test x"${ac_cv_c_tclh}" = x ; then
21691 for i in \
21692 ${srcdir}/../tcl \
21693 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
21694 ${srcdir}/../../tcl \
21695 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
21696 ${srcdir}/../../../tcl \
21697 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
21698 if test -f $i/generic/tclInt.h ; then
21699 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21700 break
21701 fi
21702 done
21703fi
21704# finally check in a few common install locations
21705#
21706# since ls returns lowest version numbers first, reverse its output
21707if test x"${ac_cv_c_tclh}" = x ; then
21708 for i in \
21709 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
21710 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
21711 /usr/local/src/tcl \
21712 /usr/local/lib/tcl \
21713 ${prefix}/include ; do
21714 if test -f $i/generic/tclInt.h ; then
21715 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21716 break
21717 fi
21718 done
21719fi
21720# see if one is installed
21721if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 21722 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
21723 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21724echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
21725if test "${ac_cv_header_tclInt_h+set}" = set; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21727fi
b4e70030
JB
21728echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21729echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
21730else
21731 # Is the header compilable?
b4e70030
JB
21732echo "$as_me:$LINENO: checking tclInt.h usability" >&5
21733echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
21734cat >conftest.$ac_ext <<_ACEOF
21735/* confdefs.h. */
21736_ACEOF
21737cat confdefs.h >>conftest.$ac_ext
21738cat >>conftest.$ac_ext <<_ACEOF
21739/* end confdefs.h. */
21740$ac_includes_default
21741#include <tclInt.h>
21742_ACEOF
21743rm -f conftest.$ac_objext
21744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21745 (eval $ac_compile) 2>conftest.er1
21746 ac_status=$?
21747 grep -v '^ *+' conftest.er1 >conftest.err
21748 rm -f conftest.er1
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } &&
b4e70030
JB
21752 { ac_try='test -z "$ac_c_werror_flag"
21753 || test ! -s conftest.err'
bec39cab
AC
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; } &&
21759 { ac_try='test -s conftest.$ac_objext'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 ac_header_compiler=yes
21766else
21767 echo "$as_me: failed program was:" >&5
21768sed 's/^/| /' conftest.$ac_ext >&5
21769
b4e70030 21770ac_header_compiler=no
bec39cab
AC
21771fi
21772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
21773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21774echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
21775
21776# Is the header present?
b4e70030
JB
21777echo "$as_me:$LINENO: checking tclInt.h presence" >&5
21778echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
21779cat >conftest.$ac_ext <<_ACEOF
21780/* confdefs.h. */
21781_ACEOF
21782cat confdefs.h >>conftest.$ac_ext
21783cat >>conftest.$ac_ext <<_ACEOF
21784/* end confdefs.h. */
3fc11d3e 21785#include <tclInt.h>
bec39cab
AC
21786_ACEOF
21787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21789 ac_status=$?
21790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } >/dev/null; then
21795 if test -s conftest.err; then
21796 ac_cpp_err=$ac_c_preproc_warn_flag
21797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21798 else
21799 ac_cpp_err=
21800 fi
21801else
21802 ac_cpp_err=yes
3fc11d3e 21803fi
bec39cab
AC
21804if test -z "$ac_cpp_err"; then
21805 ac_header_preproc=yes
21806else
21807 echo "$as_me: failed program was:" >&5
21808sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 ac_header_preproc=no
3fc11d3e 21811fi
bec39cab 21812rm -f conftest.err conftest.$ac_ext
b4e70030
JB
21813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21814echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
21815
21816# So? What about this header?
21817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21818 yes:no: )
21819 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21820echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21821 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
21822echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
21823 ac_header_preproc=yes
21824 ;;
21825 no:yes:* )
21826 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
21827echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
21828 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
21829echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
21830 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
21831echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
21833echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
21835echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
21837echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
21838 (
21839 cat <<\_ASBOX
21840## ------------------------------------------ ##
21841## Report this to the AC_PACKAGE_NAME lists. ##
21842## ------------------------------------------ ##
21843_ASBOX
21844 ) |
21845 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
21846 ;;
21847esac
b4e70030
JB
21848echo "$as_me:$LINENO: checking for tclInt.h" >&5
21849echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
21850if test "${ac_cv_header_tclInt_h+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852else
21853 ac_cv_header_tclInt_h=$ac_header_preproc
21854fi
b4e70030
JB
21855echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21856echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
21857
21858fi
21859if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
21860 ac_cv_c_tclh=installed
21861else
bec39cab 21862 ac_cv_c_tclh=""
3fc11d3e
JM
21863fi
21864
bec39cab 21865
3fc11d3e
JM
21866fi
21867
21868fi
21869
21870if test x"${ac_cv_c_tclh}" = x ; then
21871 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
21872 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
21873echo "$as_me: error: Can't find Tcl private headers" >&2;}
21874 { (exit 1); exit 1; }; }
3fc11d3e
JM
21875fi
21876if test x"${ac_cv_c_tclh}" != x ; then
21877 no_tcl=""
21878 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
21879 echo "$as_me:$LINENO: result: is installed" >&5
21880echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
21881 TCLHDIR=""
21882 else
b4e70030
JB
21883 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
21884echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
21885 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
21886 TCLHDIR="-I${ac_cv_c_tclh}"
21887 fi
21888fi
21889
21890
21891
bec39cab 21892
3fc11d3e
JM
21893#
21894# Ok, lets find the tk source trees so we can use the headers
21895# If the directory (presumably symlink) named "tk" exists, use that one
21896# in preference to any others. Same logic is used when choosing library
21897# and again with Tcl. The search order is the best place to look first, then in
21898# decreasing significance. The loop breaks if the trigger file is found.
21899# Note the gross little conversion here of srcdir by cd'ing to the found
21900# directory. This converts the path from a relative to an absolute, so
21901# recursive cache variables for the path will work right. We check all
21902# the possible paths in one loop rather than many seperate loops to speed
21903# things up.
21904# the alternative search directory is involked by --with-tkinclude
21905#
21906no_tk=true
b4e70030
JB
21907echo "$as_me:$LINENO: checking for Tk private headers" >&5
21908echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 21909
b4e70030 21910# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 21911if test "${with_tkinclude+set}" = set; then
b4e70030
JB
21912 withval="$with_tkinclude"
21913 with_tkinclude=${withval}
21914fi;
bec39cab
AC
21915if test "${ac_cv_c_tkh+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21917else
bec39cab 21918
3fc11d3e
JM
21919# first check to see if --with-tkinclude was specified
21920if test x"${with_tkinclude}" != x ; then
21921 if test -f ${with_tkinclude}/tk.h ; then
21922 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
21923 elif test -f ${with_tkinclude}/generic/tk.h ; then
21924 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
21925 else
bec39cab
AC
21926 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
21927echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
21928 { (exit 1); exit 1; }; }
3fc11d3e
JM
21929 fi
21930fi
21931
21932# next check if it came with Tk configuration file
21933if test x"${ac_cv_c_tkconfig}" = x ; then
21934 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
21935 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
21936 fi
21937fi
21938
21939# next check in private source directory
21940#
21941# since ls returns lowest version numbers first, reverse its output
21942if test x"${ac_cv_c_tkh}" = x ; then
21943 for i in \
21944 ${srcdir}/../tk \
21945 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
21946 ${srcdir}/../../tk \
21947 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
21948 ${srcdir}/../../../tk \
21949 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
21950 if test -f $i/generic/tk.h ; then
21951 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21952 break
21953 fi
21954 done
21955fi
21956# finally check in a few common install locations
21957#
21958# since ls returns lowest version numbers first, reverse its output
21959if test x"${ac_cv_c_tkh}" = x ; then
21960 for i in \
21961 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
21962 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
21963 /usr/local/src/tk \
21964 /usr/local/lib/tk \
21965 ${prefix}/include ; do
21966 if test -f $i/generic/tk.h ; then
21967 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21968 break
21969 fi
21970 done
21971fi
21972# see if one is installed
21973if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 21974 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
21975 echo "$as_me:$LINENO: checking for tk.h" >&5
21976echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
21977if test "${ac_cv_header_tk_h+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21979fi
b4e70030
JB
21980echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21981echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
21982else
21983 # Is the header compilable?
b4e70030
JB
21984echo "$as_me:$LINENO: checking tk.h usability" >&5
21985echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
21986cat >conftest.$ac_ext <<_ACEOF
21987/* confdefs.h. */
21988_ACEOF
21989cat confdefs.h >>conftest.$ac_ext
21990cat >>conftest.$ac_ext <<_ACEOF
21991/* end confdefs.h. */
21992$ac_includes_default
3fc11d3e 21993#include <tk.h>
bec39cab
AC
21994_ACEOF
21995rm -f conftest.$ac_objext
21996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21997 (eval $ac_compile) 2>conftest.er1
21998 ac_status=$?
21999 grep -v '^ *+' conftest.er1 >conftest.err
22000 rm -f conftest.er1
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } &&
b4e70030
JB
22004 { ac_try='test -z "$ac_c_werror_flag"
22005 || test ! -s conftest.err'
bec39cab
AC
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22008 ac_status=$?
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; } &&
22011 { ac_try='test -s conftest.$ac_objext'
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; }; then
22017 ac_header_compiler=yes
22018else
22019 echo "$as_me: failed program was:" >&5
22020sed 's/^/| /' conftest.$ac_ext >&5
22021
b4e70030 22022ac_header_compiler=no
bec39cab
AC
22023fi
22024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22026echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22027
22028# Is the header present?
b4e70030
JB
22029echo "$as_me:$LINENO: checking tk.h presence" >&5
22030echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
22031cat >conftest.$ac_ext <<_ACEOF
22032/* confdefs.h. */
22033_ACEOF
22034cat confdefs.h >>conftest.$ac_ext
22035cat >>conftest.$ac_ext <<_ACEOF
22036/* end confdefs.h. */
22037#include <tk.h>
22038_ACEOF
22039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22041 ac_status=$?
22042 grep -v '^ *+' conftest.er1 >conftest.err
22043 rm -f conftest.er1
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } >/dev/null; then
22047 if test -s conftest.err; then
22048 ac_cpp_err=$ac_c_preproc_warn_flag
22049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22050 else
22051 ac_cpp_err=
22052 fi
22053else
22054 ac_cpp_err=yes
3fc11d3e 22055fi
bec39cab
AC
22056if test -z "$ac_cpp_err"; then
22057 ac_header_preproc=yes
22058else
22059 echo "$as_me: failed program was:" >&5
22060sed 's/^/| /' conftest.$ac_ext >&5
22061
22062 ac_header_preproc=no
22063fi
22064rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22066echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22067
22068# So? What about this header?
22069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22070 yes:no: )
22071 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22072echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22073 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22074echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22075 ac_header_preproc=yes
22076 ;;
22077 no:yes:* )
22078 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22079echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22080 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22081echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22083echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22085echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22087echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22089echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22090 (
22091 cat <<\_ASBOX
22092## ------------------------------------------ ##
22093## Report this to the AC_PACKAGE_NAME lists. ##
22094## ------------------------------------------ ##
22095_ASBOX
22096 ) |
22097 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22098 ;;
22099esac
b4e70030
JB
22100echo "$as_me:$LINENO: checking for tk.h" >&5
22101echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22102if test "${ac_cv_header_tk_h+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22104else
22105 ac_cv_header_tk_h=$ac_header_preproc
22106fi
b4e70030
JB
22107echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22108echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 22109
3fc11d3e 22110fi
bec39cab 22111if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
22112 ac_cv_c_tkh=installed
22113else
bec39cab 22114 ac_cv_c_tkh=""
3fc11d3e
JM
22115fi
22116
bec39cab 22117
3fc11d3e
JM
22118fi
22119
22120fi
22121
22122if test x"${ac_cv_c_tkh}" != x ; then
22123 no_tk=""
22124 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
22125 echo "$as_me:$LINENO: result: is installed" >&5
22126echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22127 TKHDIR=""
22128 else
b4e70030
JB
22129 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22130echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
22131 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22132 TKHDIR="-I${ac_cv_c_tkh}"
22133 fi
22134else
22135 TKHDIR="# no Tk directory found"
bec39cab
AC
22136 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22137echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
22138 no_tk=true
22139fi
22140
22141
22142
bec39cab 22143
b4e70030
JB
22144echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22145echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22146if test x"${ac_cv_c_itclh}" = x ; then
22147 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22148 if test -f $i/generic/itcl.h ; then
22149 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22150 break
22151 fi
22152 done
22153fi
22154if test x"${ac_cv_c_itclh}" = x ; then
22155 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
22156 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22157echo "$as_me: error: Can't find Itcl private headers" >&2;}
22158 { (exit 1); exit 1; }; }
3fc11d3e
JM
22159fi
22160if test x"${ac_cv_c_itclh}" != x ; then
22161 ITCLHDIR="-I${ac_cv_c_itclh}"
22162fi
22163# should always be here
22164# ITCLLIB="../itcl/itcl/unix/libitcl.a"
22165
22166#AC_SUBST(ITCLLIB)
22167
bec39cab 22168
b4e70030
JB
22169echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22170echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22171if test x"${ac_cv_c_itkh}" = x ; then
22172 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22173 if test -f $i/generic/itk.h ; then
22174 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22175 break
22176 fi
22177 done
22178fi
22179if test x"${ac_cv_c_itkh}" = x ; then
22180 ITKHDIR="# no Itk private headers found"
bec39cab
AC
22181 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22182echo "$as_me: error: Can't find Itk private headers" >&2;}
22183 { (exit 1); exit 1; }; }
3fc11d3e
JM
22184fi
22185if test x"${ac_cv_c_itkh}" != x ; then
22186 ITKHDIR="-I${ac_cv_c_itkh}"
22187fi
22188# should always be here
22189# ITKLIB="../itcl/itk/unix/libitk.a"
22190
22191#AC_SUBST(ITKLIB)
22192
3fc11d3e 22193
dd2504ab
JM
22194
22195 # now look for Tk library stuff
22196
d91670b9 22197 tkdir="../tk/${configdir}/"
dd2504ab
JM
22198
22199 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22200
3fc11d3e
JM
22201 # now look for Itcl library stuff
22202
bec39cab 22203
3fc11d3e
JM
22204#
22205# Ok, lets find the itcl configuration
bec39cab 22206# First, look for one uninstalled.
3fc11d3e
JM
22207# the alternative search directory is invoked by --with-itclconfig
22208#
22209
22210if test x"${no_itcl}" = x ; then
22211 # we reset no_itcl in case something fails here
22212 no_itcl=true
bec39cab 22213
b4e70030 22214# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 22215if test "${with_itclconfig+set}" = set; then
b4e70030
JB
22216 withval="$with_itclconfig"
22217 with_itclconfig=${withval}
22218fi;
22219 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22220echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
22221 if test "${ac_cv_c_itclconfig+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22223else
bec39cab 22224
3fc11d3e
JM
22225
22226 # First check to see if --with-itclconfig was specified.
22227 if test x"${with_itclconfig}" != x ; then
22228 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22229 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22230 else
bec39cab
AC
22231 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22232echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22233 { (exit 1); exit 1; }; }
3fc11d3e
JM
22234 fi
22235 fi
22236
22237 # then check for a private Itcl library
22238 if test x"${ac_cv_c_itclconfig}" = x ; then
22239 for i in \
22240 ../itcl/itcl \
22241 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22242 ../../itcl \
22243 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22244 ../../../itcl \
22245 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22246 if test -f "$i/itclConfig.sh" ; then
22247 ac_cv_c_itclconfig=`(cd $i; pwd)`
22248 break
22249 fi
22250 done
22251 fi
22252 # check in a few common install locations
22253 if test x"${ac_cv_c_itclconfig}" = x ; then
22254 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22255 if test -f "$i/itclConfig.sh" ; then
22256 ac_cv_c_itclconfig=`(cd $i; pwd)`
22257 break
22258 fi
22259 done
22260 fi
22261 # check in a few other private locations
22262 if test x"${ac_cv_c_itclconfig}" = x ; then
22263 for i in \
22264 ${srcdir}/../itcl/itcl \
22265 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22266 if test -f "$i/itclConfig.sh" ; then
22267 ac_cv_c_itclconfig=`(cd $i; pwd)`
22268 break
22269 fi
22270 done
22271 fi
bec39cab 22272
3fc11d3e
JM
22273fi
22274
22275 if test x"${ac_cv_c_itclconfig}" = x ; then
22276 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
22277 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22278echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
22279 else
22280 no_itcl=
22281 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
22282 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22283echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
22284 fi
22285fi
22286
22287 if test -z "${no_itcl}"; then
bec39cab 22288
3fc11d3e
JM
22289 if test -f "$ITCLCONFIG" ; then
22290 . $ITCLCONFIG
22291 fi
22292
3fc11d3e 22293
3fc11d3e
JM
22294
22295
bec39cab
AC
22296
22297
22298
22299
22300
22301
22302
3fc11d3e
JM
22303
22304 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 22305 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
22306 fi
22307
bec39cab 22308
3fc11d3e 22309 # now look for Itk library stuff
bec39cab 22310
3fc11d3e
JM
22311#
22312# Ok, lets find the itk configuration
bec39cab 22313# First, look for one uninstalled.
3fc11d3e
JM
22314# the alternative search directory is invoked by --with-itkconfig
22315#
22316
22317if test x"${no_itk}" = x ; then
22318 # we reset no_itk in case something fails here
22319 no_itk=true
bec39cab 22320
b4e70030 22321# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 22322if test "${with_itkconfig+set}" = set; then
b4e70030
JB
22323 withval="$with_itkconfig"
22324 with_itkconfig=${withval}
22325fi;
22326 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22327echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
22328 if test "${ac_cv_c_itkconfig+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22330else
bec39cab 22331
3fc11d3e
JM
22332
22333 # First check to see if --with-itkconfig was specified.
22334 if test x"${with_itkconfig}" != x ; then
22335 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22336 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22337 else
bec39cab
AC
22338 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22339echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22340 { (exit 1); exit 1; }; }
3fc11d3e
JM
22341 fi
22342 fi
22343
22344 # then check for a private Itk library
22345 if test x"${ac_cv_c_itkconfig}" = x ; then
22346 for i in \
22347 ../itcl/itk \
22348 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22349 ../../itk \
22350 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22351 ../../../itk \
22352 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22353 if test -f "$i/itkConfig.sh" ; then
22354 ac_cv_c_itkconfig=`(cd $i; pwd)`
22355 break
22356 fi
22357 done
22358 fi
22359 # check in a few common install locations
22360 if test x"${ac_cv_c_itkconfig}" = x ; then
22361 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22362 if test -f "$i/itkConfig.sh" ; then
22363 ac_cv_c_itkconfig=`(cd $i; pwd)`
22364 break
22365 fi
22366 done
22367 fi
22368 # check in a few other private locations
22369 if test x"${ac_cv_c_itkconfig}" = x ; then
22370 for i in \
22371 ${srcdir}/../itcl/itk \
22372 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22373 if test -f "$i/itkConfig.sh" ; then
22374 ac_cv_c_itkconfig=`(cd $i; pwd)`
22375 break
22376 fi
22377 done
22378 fi
bec39cab 22379
3fc11d3e
JM
22380fi
22381
22382 if test x"${ac_cv_c_itkconfig}" = x ; then
22383 ITKCONFIG="# no Itk configs found"
bec39cab
AC
22384 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22385echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
22386 else
22387 no_itk=
22388 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
22389 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22390echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
22391 fi
22392fi
22393
22394
bec39cab
AC
22395 if test -z "${no_itcl}"; then
22396
22397 if test -f "$ITKCONFIG" ; then
22398 . $ITKCONFIG
22399 fi
22400
22401
22402
22403
22404
22405
3fc11d3e 22406
3fc11d3e 22407
3fc11d3e
JM
22408
22409
3fc11d3e
JM
22410
22411
3fc11d3e 22412 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 22413 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
22414 fi
22415
4226a5a5 22416 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
22417
22418 # Include some libraries that Tcl and Tk want.
b2a1bd4f 22419 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
22420 # Yes, the ordering seems wrong here. But it isn't.
22421 # TK_LIBS is the list of libraries that need to be linked
22422 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22423 # were in LIBS then any link tests after this point would
22424 # try to include things like `$(LIBGUI)', which wouldn't work.
22425 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
22426
22427 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22428 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22429 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
22430 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22431 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22432 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22433 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
22434
22435 if test x$gdb_cv_os_cygwin = xyes; then
22436 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22437 WIN32LDAPP="-Wl,--subsystem,console"
22438 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22439 fi
22440 fi
22441 fi
ffc6a242 22442
b4e70030
JB
22443
22444
22445subdirs="$subdirs gdbtk"
3ace7edb 22446
3fc11d3e
JM
22447fi
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
dd2504ab 22461
b4e70030
JB
22462echo "$as_me:$LINENO: checking for X" >&5
22463echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 22464
c906108c 22465
b4e70030 22466# Check whether --with-x or --without-x was given.
c906108c 22467if test "${with_x+set}" = set; then
b4e70030 22468 withval="$with_x"
c906108c 22469
b4e70030 22470fi;
c906108c
SS
22471# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22472if test "x$with_x" = xno; then
22473 # The user explicitly disabled X.
22474 have_x=disabled
22475else
22476 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22477 # Both variables are already set.
22478 have_x=yes
22479 else
bec39cab
AC
22480 if test "${ac_cv_have_x+set}" = set; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22482else
22483 # One or both of the vars are not set, and there is no cached value.
bec39cab 22484ac_x_includes=no ac_x_libraries=no
b4e70030 22485rm -fr conftest.dir
bec39cab
AC
22486if mkdir conftest.dir; then
22487 cd conftest.dir
c906108c 22488 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 22489 cat >Imakefile <<'_ACEOF'
c906108c
SS
22490acfindx:
22491 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 22492_ACEOF
b4e70030 22493 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
22494 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22495 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22496 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22497 for ac_extension in a so sl; do
22498 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
22499 test -f $ac_im_libdir/libX11.$ac_extension; then
22500 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
22501 fi
22502 done
22503 # Screen out bogus values from the imake configuration. They are
22504 # bogus both because they are the default anyway, and because
22505 # using them would break gcc on systems where it needs fixed includes.
bec39cab 22506 case $ac_im_incroot in
b4e70030 22507 /usr/include) ;;
bec39cab 22508 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 22509 esac
bec39cab 22510 case $ac_im_usrlibdir in
c906108c 22511 /usr/lib | /lib) ;;
bec39cab 22512 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
22513 esac
22514 fi
22515 cd ..
b4e70030 22516 rm -fr conftest.dir
c906108c
SS
22517fi
22518
bec39cab
AC
22519# Standard set of common directories for X headers.
22520# Check X11 before X11Rn because it is often a symlink to the current release.
22521ac_x_header_dirs='
22522/usr/X11/include
22523/usr/X11R6/include
22524/usr/X11R5/include
22525/usr/X11R4/include
22526
22527/usr/include/X11
22528/usr/include/X11R6
22529/usr/include/X11R5
22530/usr/include/X11R4
22531
22532/usr/local/X11/include
22533/usr/local/X11R6/include
22534/usr/local/X11R5/include
22535/usr/local/X11R4/include
22536
22537/usr/local/include/X11
22538/usr/local/include/X11R6
22539/usr/local/include/X11R5
22540/usr/local/include/X11R4
22541
22542/usr/X386/include
22543/usr/x386/include
22544/usr/XFree86/include/X11
22545
22546/usr/include
22547/usr/local/include
22548/usr/unsupported/include
22549/usr/athena/include
22550/usr/local/x11r5/include
22551/usr/lpp/Xamples/include
22552
22553/usr/openwin/include
22554/usr/openwin/share/include'
22555
22556if test "$ac_x_includes" = no; then
59f80f10 22557 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 22558 # First, try using that file with no special directory specified.
bec39cab
AC
22559 cat >conftest.$ac_ext <<_ACEOF
22560/* confdefs.h. */
22561_ACEOF
22562cat confdefs.h >>conftest.$ac_ext
22563cat >>conftest.$ac_ext <<_ACEOF
22564/* end confdefs.h. */
59f80f10 22565#include <X11/Intrinsic.h>
bec39cab
AC
22566_ACEOF
22567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22569 ac_status=$?
22570 grep -v '^ *+' conftest.er1 >conftest.err
22571 rm -f conftest.er1
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } >/dev/null; then
22575 if test -s conftest.err; then
22576 ac_cpp_err=$ac_c_preproc_warn_flag
22577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22578 else
22579 ac_cpp_err=
22580 fi
22581else
22582 ac_cpp_err=yes
22583fi
22584if test -z "$ac_cpp_err"; then
c906108c
SS
22585 # We can compile using X headers with no special include directory.
22586ac_x_includes=
22587else
bec39cab
AC
22588 echo "$as_me: failed program was:" >&5
22589sed 's/^/| /' conftest.$ac_ext >&5
22590
22591 for ac_dir in $ac_x_header_dirs; do
59f80f10 22592 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
22593 ac_x_includes=$ac_dir
22594 break
22595 fi
22596done
c906108c 22597fi
bec39cab
AC
22598rm -f conftest.err conftest.$ac_ext
22599fi # $ac_x_includes = no
c906108c 22600
bec39cab 22601if test "$ac_x_libraries" = no; then
c906108c 22602 # Check for the libraries.
c906108c
SS
22603 # See if we find them without any special options.
22604 # Don't add to $LIBS permanently.
bec39cab 22605 ac_save_LIBS=$LIBS
4e8d927d 22606 LIBS="-lXt $LIBS"
bec39cab
AC
22607 cat >conftest.$ac_ext <<_ACEOF
22608/* confdefs.h. */
22609_ACEOF
22610cat confdefs.h >>conftest.$ac_ext
22611cat >>conftest.$ac_ext <<_ACEOF
22612/* end confdefs.h. */
59f80f10 22613#include <X11/Intrinsic.h>
bec39cab
AC
22614int
22615main ()
22616{
59f80f10 22617XtMalloc (0)
bec39cab
AC
22618 ;
22619 return 0;
22620}
22621_ACEOF
22622rm -f conftest.$ac_objext conftest$ac_exeext
22623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22624 (eval $ac_link) 2>conftest.er1
22625 ac_status=$?
22626 grep -v '^ *+' conftest.er1 >conftest.err
22627 rm -f conftest.er1
22628 cat conftest.err >&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } &&
b4e70030
JB
22631 { ac_try='test -z "$ac_c_werror_flag"
22632 || test ! -s conftest.err'
bec39cab
AC
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; } &&
22638 { ac_try='test -s conftest$ac_exeext'
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22644 LIBS=$ac_save_LIBS
c906108c
SS
22645# We can link X programs with no special library path.
22646ac_x_libraries=
22647else
bec39cab
AC
22648 echo "$as_me: failed program was:" >&5
22649sed 's/^/| /' conftest.$ac_ext >&5
22650
b4e70030 22651LIBS=$ac_save_LIBS
bec39cab 22652for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 22653do
bec39cab 22654 # Don't even attempt the hair of trying to link an X program!
c906108c 22655 for ac_extension in a so sl; do
b4e70030 22656 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
22657 ac_x_libraries=$ac_dir
22658 break 2
22659 fi
22660 done
22661done
22662fi
bec39cab
AC
22663rm -f conftest.err conftest.$ac_objext \
22664 conftest$ac_exeext conftest.$ac_ext
22665fi # $ac_x_libraries = no
c906108c 22666
bec39cab 22667if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
22668 # Didn't find X anywhere. Cache the known absence of X.
22669 ac_cv_have_x="have_x=no"
22670else
22671 # Record where we found X for the cache.
22672 ac_cv_have_x="have_x=yes \
bec39cab 22673 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
22674fi
22675fi
bec39cab 22676
c906108c
SS
22677 fi
22678 eval "$ac_cv_have_x"
22679fi # $with_x != no
22680
22681if test "$have_x" != yes; then
b4e70030
JB
22682 echo "$as_me:$LINENO: result: $have_x" >&5
22683echo "${ECHO_T}$have_x" >&6
c906108c
SS
22684 no_x=yes
22685else
22686 # If each of the values was on the command line, it overrides each guess.
22687 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22688 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22689 # Update the cache value to reflect the command line values.
22690 ac_cv_have_x="have_x=yes \
22691 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
22692 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22693echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
22694fi
22695
22696
9cc52bde
MK
22697# Check whether we should enable the TUI, but only do so if we really
22698# can.
22699if test x"$enable_tui" = xyes; then
22700 if test -d $srcdir/tui; then
22701 if test "$ac_cv_search_waddstr" != no; then
22702 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22703 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22704 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22705 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
22706 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22707 CONFIG_ALL="${CONFIG_ALL} all-tui"
22708 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
22709 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
22710 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
22711 else
bec39cab
AC
22712 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
22713echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
22714 fi
22715 fi
22716fi
22717
bec39cab
AC
22718# Unlike the sim directory, whether a simulator is linked is controlled by
22719# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
22720# This code just checks for a few cases where we'd like to ignore those
22721# definitions, even when they're present in the '.mt' file. These cases
22722# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 22723# not part of the source tree.
7a292a7a 22724#
b4e70030 22725# Check whether --enable-sim or --disable-sim was given.
7a292a7a 22726if test "${enable_sim+set}" = set; then
b4e70030
JB
22727 enableval="$enable_sim"
22728 echo "enable_sim = $enable_sim";
7a292a7a
SS
22729 echo "enableval = ${enableval}";
22730 case "${enableval}" in
22731 yes) ignore_sim=false ;;
22732 no) ignore_sim=true ;;
22733 *) ignore_sim=false ;;
22734 esac
22735else
22736 ignore_sim=false
b4e70030 22737fi;
7a292a7a
SS
22738
22739if test ! -d "${srcdir}/../sim"; then
22740 ignore_sim=true
22741fi
22742
22743if test "${ignore_sim}" = "true"; then
22744 IGNORE_SIM="SIM="
22745 IGNORE_SIM_OBS="SIM_OBS="
22746else
22747 IGNORE_SIM=""
22748 IGNORE_SIM_OBS=""
60ca704f
SE
22749
22750cat >>confdefs.h <<\_ACEOF
7a292a7a 22751#define WITH_SIM 1
bec39cab 22752_ACEOF
7a292a7a
SS
22753
22754fi
22755
22756
22757
c906108c
SS
22758
22759
22760
22761
22762
22763
dfcd3bfb 22764
e56ac5c3
AC
22765
22766
b3a90332
AC
22767
22768
c35f4ffc 22769# List of host floatformats.
bec39cab
AC
22770
22771cat >>confdefs.h <<_ACEOF
c35f4ffc 22772#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 22773_ACEOF
c35f4ffc 22774
bec39cab
AC
22775
22776cat >>confdefs.h <<_ACEOF
c35f4ffc 22777#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
22778_ACEOF
22779
c35f4ffc 22780
bec39cab 22781cat >>confdefs.h <<_ACEOF
c35f4ffc 22782#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 22783_ACEOF
c35f4ffc
AC
22784
22785
c906108c
SS
22786# target_subdir is used by the testsuite to find the target libraries.
22787target_subdir=
22788if test "${host}" != "${target}"; then
22789 target_subdir="${target_alias}/"
22790fi
22791
22792
22793frags=
771b4502 22794if test "${gdb_native}" = "yes"; then
0dad8a66
MK
22795 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
22796 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
22797 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
22798echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
22799 { (exit 1); exit 1; }; }
0dad8a66
MK
22800 fi
22801 frags="$frags $host_makefile_frag"
22802else
22803 host_makefile_frag=/dev/null
c906108c 22804fi
c906108c
SS
22805
22806target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
22807if test ! -f ${target_makefile_frag}; then
bec39cab
AC
22808 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
22809echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
22810 { (exit 1); exit 1; }; }
c906108c
SS
22811fi
22812frags="$frags $target_makefile_frag"
22813
22814
22815
22816
22817
22818hostfile=`sed -n '
22819s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22820' ${host_makefile_frag}`
22821
22822targetfile=`sed -n '
b523a1fd 22823s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
22824' ${target_makefile_frag}`
22825
771b4502 22826if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
22827# We pick this up from the host configuration file (.mh) because we
22828# do not have a native configuration Makefile fragment.
c906108c
SS
22829nativefile=`sed -n '
22830s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22831' ${host_makefile_frag}`
c906108c
SS
22832fi
22833
22834
b00a8037 22835if test x"${gdb_osabi}" != x ; then
bec39cab
AC
22836
22837cat >>confdefs.h <<_ACEOF
b00a8037 22838#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 22839_ACEOF
b00a8037
DJ
22840
22841fi
22842
8dcde887 22843# Enable multi-ice-gdb-server.
b4e70030 22844# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 22845if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
22846 enableval="$enable_multi_ice"
22847 case $enableval in
8dcde887
MK
22848 yes | no)
22849 ;;
bec39cab
AC
22850 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
22851echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
22852 { (exit 1); exit 1; }; } ;;
8dcde887 22853 esac
b4e70030 22854fi;
4e8d927d 22855if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
22856
22857
22858subdirs="$subdirs multi-ice"
3ace7edb 22859
a85f51e7
DJ
22860fi
22861
a13e2c95
UW
22862# We only build gdbserver automatically in a native configuration.
22863if test "$gdb_native" = "yes"; then
b4e70030
JB
22864 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
22865echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 22866 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
22867 echo "$as_me:$LINENO: result: yes" >&5
22868echo "${ECHO_T}yes" >&6
22869
22870
22871subdirs="$subdirs gdbserver"
3ace7edb 22872
8dcde887 22873 else
b4e70030
JB
22874 echo "$as_me:$LINENO: result: no" >&5
22875echo "${ECHO_T}no" >&6
8dcde887
MK
22876 fi
22877fi
22878
2c0fc042
AC
22879# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
22880# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
22881# to an empty version.
c906108c
SS
22882
22883files=
22884links=
5a2402b8 22885
c906108c 22886rm -f xm.h
5a2402b8 22887xm_h=""
c906108c 22888if test "${hostfile}" != ""; then
5a2402b8 22889 xm_h=xm.h
0f475e27
AC
22890 case "${hostfile}" in
22891 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
22892 * ) GDB_XM_FILE="${hostfile}"
22893 esac
5a2402b8
AC
22894 files="${files} ${GDB_XM_FILE}"
22895 links="${links} xm.h"
60ca704f
SE
22896
22897cat >>confdefs.h <<_ACEOF
b78960be 22898#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 22899_ACEOF
5a2402b8 22900
c906108c 22901fi
5a2402b8
AC
22902
22903
c906108c 22904rm -f tm.h
5a2402b8 22905tm_h=""
c906108c 22906if test "${targetfile}" != ""; then
5a2402b8 22907 tm_h=tm.h
0f475e27 22908 case "${targetfile}" in
b8c4aece 22909 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
22910 * ) GDB_TM_FILE="${targetfile}"
22911 esac
5a2402b8
AC
22912 files="${files} ${GDB_TM_FILE}"
22913 links="${links} tm.h"
60ca704f
SE
22914
22915cat >>confdefs.h <<_ACEOF
b78960be 22916#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 22917_ACEOF
5a2402b8 22918
c906108c 22919fi
5a2402b8
AC
22920
22921
c906108c 22922rm -f nm.h
5a2402b8 22923nm_h=""
c906108c 22924if test "${nativefile}" != ""; then
5a2402b8 22925 nm_h=nm.h
0f475e27
AC
22926 case "${nativefile}" in
22927 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
22928 * ) GDB_NM_FILE="${nativefile}"
22929 esac
5a2402b8
AC
22930 files="${files} ${GDB_NM_FILE}"
22931 links="${links} nm.h"
60ca704f
SE
22932
22933cat >>confdefs.h <<_ACEOF
b78960be 22934#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 22935_ACEOF
5a2402b8 22936
c906108c 22937fi
5a2402b8
AC
22938
22939
bec39cab
AC
22940ac_sources="$files"
22941ac_dests="$links"
22942while test -n "$ac_sources"; do
22943 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22944 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22945 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22946done
b4e70030 22947 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
22948
22949
c906108c
SS
22950
22951
c906108c 22952
c906108c 22953
bec39cab
AC
22954cat >>confdefs.h <<\_ACEOF
22955#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
22956_ACEOF
c906108c 22957
234b45d4 22958
234b45d4
KB
22959
22960
22961
b4e70030 22962# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 22963if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
22964 withval="$with_libiconv_prefix"
22965
234b45d4
KB
22966 for dir in `echo "$withval" | tr : ' '`; do
22967 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
22968 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
22969 done
234b45d4 22970
b4e70030 22971fi;
234b45d4 22972
b4e70030
JB
22973 echo "$as_me:$LINENO: checking for iconv" >&5
22974echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
22975if test "${am_cv_func_iconv+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 22977else
bec39cab 22978
234b45d4
KB
22979 am_cv_func_iconv="no, consider installing GNU libiconv"
22980 am_cv_lib_iconv=no
bec39cab
AC
22981 cat >conftest.$ac_ext <<_ACEOF
22982/* confdefs.h. */
22983_ACEOF
22984cat confdefs.h >>conftest.$ac_ext
22985cat >>conftest.$ac_ext <<_ACEOF
22986/* end confdefs.h. */
234b45d4
KB
22987#include <stdlib.h>
22988#include <iconv.h>
bec39cab
AC
22989int
22990main ()
22991{
234b45d4
KB
22992iconv_t cd = iconv_open("","");
22993 iconv(cd,NULL,NULL,NULL,NULL);
22994 iconv_close(cd);
bec39cab
AC
22995 ;
22996 return 0;
22997}
22998_ACEOF
22999rm -f conftest.$ac_objext conftest$ac_exeext
23000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23001 (eval $ac_link) 2>conftest.er1
23002 ac_status=$?
23003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } &&
b4e70030
JB
23008 { ac_try='test -z "$ac_c_werror_flag"
23009 || test ! -s conftest.err'
bec39cab
AC
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23012 ac_status=$?
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest$ac_exeext'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23018 ac_status=$?
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
234b45d4
KB
23021 am_cv_func_iconv=yes
23022else
bec39cab
AC
23023 echo "$as_me: failed program was:" >&5
23024sed 's/^/| /' conftest.$ac_ext >&5
23025
234b45d4 23026fi
bec39cab
AC
23027rm -f conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23029 if test "$am_cv_func_iconv" != yes; then
23030 am_save_LIBS="$LIBS"
23031 LIBS="$LIBS -liconv"
bec39cab
AC
23032 cat >conftest.$ac_ext <<_ACEOF
23033/* confdefs.h. */
23034_ACEOF
23035cat confdefs.h >>conftest.$ac_ext
23036cat >>conftest.$ac_ext <<_ACEOF
23037/* end confdefs.h. */
234b45d4
KB
23038#include <stdlib.h>
23039#include <iconv.h>
bec39cab
AC
23040int
23041main ()
23042{
234b45d4
KB
23043iconv_t cd = iconv_open("","");
23044 iconv(cd,NULL,NULL,NULL,NULL);
23045 iconv_close(cd);
bec39cab
AC
23046 ;
23047 return 0;
23048}
23049_ACEOF
23050rm -f conftest.$ac_objext conftest$ac_exeext
23051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23052 (eval $ac_link) 2>conftest.er1
23053 ac_status=$?
23054 grep -v '^ *+' conftest.er1 >conftest.err
23055 rm -f conftest.er1
23056 cat conftest.err >&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } &&
b4e70030
JB
23059 { ac_try='test -z "$ac_c_werror_flag"
23060 || test ! -s conftest.err'
bec39cab
AC
23061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23062 (eval $ac_try) 2>&5
23063 ac_status=$?
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); }; } &&
23066 { ac_try='test -s conftest$ac_exeext'
23067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068 (eval $ac_try) 2>&5
23069 ac_status=$?
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); }; }; then
234b45d4
KB
23072 am_cv_lib_iconv=yes
23073 am_cv_func_iconv=yes
23074else
bec39cab
AC
23075 echo "$as_me: failed program was:" >&5
23076sed 's/^/| /' conftest.$ac_ext >&5
23077
234b45d4 23078fi
bec39cab
AC
23079rm -f conftest.err conftest.$ac_objext \
23080 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23081 LIBS="$am_save_LIBS"
23082 fi
bec39cab
AC
23083
23084fi
b4e70030
JB
23085echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23086echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
23087 if test "$am_cv_func_iconv" = yes; then
23088
23089cat >>confdefs.h <<\_ACEOF
23090#define HAVE_ICONV 1
23091_ACEOF
23092
b4e70030
JB
23093 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23094echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
23095 if test "${am_cv_proto_iconv+set}" = set; then
23096 echo $ECHO_N "(cached) $ECHO_C" >&6
23097else
23098
23099 cat >conftest.$ac_ext <<_ACEOF
23100/* confdefs.h. */
23101_ACEOF
23102cat confdefs.h >>conftest.$ac_ext
23103cat >>conftest.$ac_ext <<_ACEOF
23104/* end confdefs.h. */
23105
23106#include <stdlib.h>
23107#include <iconv.h>
23108extern
23109#ifdef __cplusplus
23110"C"
23111#endif
23112#if defined(__STDC__) || defined(__cplusplus)
23113size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23114#else
23115size_t iconv();
23116#endif
23117
23118int
23119main ()
23120{
23121
23122 ;
23123 return 0;
23124}
23125_ACEOF
23126rm -f conftest.$ac_objext
23127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23128 (eval $ac_compile) 2>conftest.er1
23129 ac_status=$?
23130 grep -v '^ *+' conftest.er1 >conftest.err
23131 rm -f conftest.er1
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } &&
b4e70030
JB
23135 { ac_try='test -z "$ac_c_werror_flag"
23136 || test ! -s conftest.err'
bec39cab
AC
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; } &&
23142 { ac_try='test -s conftest.$ac_objext'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; }; then
23148 am_cv_proto_iconv_arg1=""
23149else
23150 echo "$as_me: failed program was:" >&5
23151sed 's/^/| /' conftest.$ac_ext >&5
23152
b4e70030 23153am_cv_proto_iconv_arg1="const"
bec39cab
AC
23154fi
23155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23156 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);"
23157fi
23158
23159 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 23160 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
23161 }$am_cv_proto_iconv" >&5
23162echo "${ECHO_T}${ac_t:-
b4e70030 23163 }$am_cv_proto_iconv" >&6
bec39cab
AC
23164
23165cat >>confdefs.h <<_ACEOF
23166#define ICONV_CONST $am_cv_proto_iconv_arg1
23167_ACEOF
23168
23169 fi
23170 LIBICONV=
23171 if test "$am_cv_lib_iconv" = yes; then
23172 LIBICONV="-liconv"
23173 fi
23174
23175
23176
b4e70030
JB
23177 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23178 ac_config_commands="$ac_config_commands default"
bec39cab
AC
23179cat >confcache <<\_ACEOF
23180# This file is a shell script that caches the results of configure
23181# tests run on this system so they can be shared between configure
23182# scripts and configure runs, see configure's option --config-cache.
23183# It is not useful on other systems. If it contains results you don't
23184# want to keep, you may remove or edit it.
23185#
23186# config.status only pays attention to the cache file if you give it
23187# the --recheck option to rerun configure.
23188#
23189# `ac_cv_env_foo' variables (set or unset) will be overridden when
23190# loading this file, other *unset* `ac_cv_foo' will be assigned the
23191# following values.
23192
23193_ACEOF
23194
23195# The following way of writing the cache mishandles newlines in values,
23196# but we know of no workaround that is simple, portable, and efficient.
b4e70030 23197# So, don't put newlines in cache variables' values.
bec39cab
AC
23198# Ultrix sh set writes to stderr and can't be redirected directly,
23199# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 23200{
bec39cab 23201 (set) 2>&1 |
b4e70030
JB
23202 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23203 *ac_space=\ *)
bec39cab
AC
23204 # `set' does not quote correctly, so add quotes (double-quote
23205 # substitution turns \\\\ into \\, and sed turns \\ into \).
23206 sed -n \
23207 "s/'/'\\\\''/g;
23208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 23209 ;;
bec39cab
AC
23210 *)
23211 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
23212 sed -n \
23213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 23214 ;;
b4e70030
JB
23215 esac;
23216} |
bec39cab
AC
23217 sed '
23218 t clear
b4e70030 23219 : clear
bec39cab
AC
23220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23221 t end
b4e70030
JB
23222 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23223 : end' >>confcache
bec39cab
AC
23224if diff $cache_file confcache >/dev/null 2>&1; then :; else
23225 if test -w $cache_file; then
b4e70030 23226 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
23227 cat confcache >$cache_file
23228 else
b4e70030 23229 echo "not updating unwritable cache $cache_file"
bec39cab
AC
23230 fi
23231fi
23232rm -f confcache
23233
23234test "x$prefix" = xNONE && prefix=$ac_default_prefix
23235# Let make expand exec_prefix.
23236test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23237
b4e70030
JB
23238# VPATH may cause trouble with some makes, so we remove $(srcdir),
23239# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23240# trailing colons and then remove the whole line if VPATH becomes empty
23241# (actually we leave an empty line to preserve line numbers).
23242if test "x$srcdir" = x.; then
23243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23244s/:*\$(srcdir):*/:/;
23245s/:*\${srcdir}:*/:/;
23246s/:*@srcdir@:*/:/;
23247s/^\([^=]*=[ ]*\):*/\1/;
23248s/:*$//;
23249s/^[^=]*=[ ]*$//;
23250}'
23251fi
23252
bec39cab
AC
23253DEFS=-DHAVE_CONFIG_H
23254
23255ac_libobjs=
23256ac_ltlibobjs=
23257for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23258 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
23259 ac_i=`echo "$ac_i" |
23260 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23261 # 2. Add them.
23262 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23263 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
23264done
23265LIBOBJS=$ac_libobjs
23266
23267LTLIBOBJS=$ac_ltlibobjs
23268
23269
85981d60
AC
23270if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23271 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23272Usually this means the macro was only invoked conditionally." >&5
23273echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23274Usually this means the macro was only invoked conditionally." >&2;}
23275 { (exit 1); exit 1; }; }
23276fi
bec39cab
AC
23277
23278: ${CONFIG_STATUS=./config.status}
23279ac_clean_files_save=$ac_clean_files
23280ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23281{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23282echo "$as_me: creating $CONFIG_STATUS" >&6;}
23283cat >$CONFIG_STATUS <<_ACEOF
23284#! $SHELL
23285# Generated by $as_me.
23286# Run this file to recreate the current configuration.
23287# Compiler output produced by configure, useful for debugging
23288# configure, is in config.log if it exists.
23289
23290debug=false
23291ac_cs_recheck=false
23292ac_cs_silent=false
23293SHELL=\${CONFIG_SHELL-$SHELL}
23294_ACEOF
23295
23296cat >>$CONFIG_STATUS <<\_ACEOF
23297## --------------------- ##
23298## M4sh Initialization. ##
23299## --------------------- ##
23300
23301# Be Bourne compatible
23302if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23303 emulate sh
23304 NULLCMD=:
23305 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23306 # is contrary to our usage. Disable this feature.
23307 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
23308elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23309 set -o posix
bec39cab
AC
23310fi
23311DUALCASE=1; export DUALCASE # for MKS sh
23312
23313# Support unset when possible.
23314if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23315 as_unset=unset
23316else
23317 as_unset=false
23318fi
23319
23320
23321# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 23322$as_unset ENV MAIL MAILPATH
bec39cab
AC
23323PS1='$ '
23324PS2='> '
23325PS4='+ '
23326
23327# NLS nuisances.
23328for as_var in \
23329 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23330 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23331 LC_TELEPHONE LC_TIME
23332do
23333 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23334 eval $as_var=C; export $as_var
23335 else
b4e70030 23336 $as_unset $as_var
bec39cab
AC
23337 fi
23338done
23339
23340# Required to use basename.
b4e70030 23341if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23342 as_expr=expr
23343else
23344 as_expr=false
23345fi
23346
b4e70030 23347if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
23348 as_basename=basename
23349else
23350 as_basename=false
23351fi
23352
23353
23354# Name of the executable.
b4e70030 23355as_me=`$as_basename "$0" ||
bec39cab
AC
23356$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23357 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
23358 X"$0" : 'X\(/\)$' \| \
23359 . : '\(.\)' 2>/dev/null ||
bec39cab 23360echo X/"$0" |
b4e70030
JB
23361 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23362 /^X\/\(\/\/\)$/{ s//\1/; q; }
23363 /^X\/\(\/\).*/{ s//\1/; q; }
23364 s/.*/./; q'`
bec39cab 23365
b4e70030
JB
23366
23367# PATH needs CR, and LINENO needs CR and PATH.
23368# Avoid depending upon Character Ranges.
23369as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23370as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23371as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23372as_cr_digits='0123456789'
23373as_cr_alnum=$as_cr_Letters$as_cr_digits
23374
23375# The user is always right.
23376if test "${PATH_SEPARATOR+set}" != set; then
23377 echo "#! /bin/sh" >conf$$.sh
23378 echo "exit 0" >>conf$$.sh
23379 chmod +x conf$$.sh
23380 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23381 PATH_SEPARATOR=';'
23382 else
23383 PATH_SEPARATOR=:
23384 fi
23385 rm -f conf$$.sh
23386fi
bec39cab
AC
23387
23388
b4e70030
JB
23389 as_lineno_1=$LINENO
23390 as_lineno_2=$LINENO
23391 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23392 test "x$as_lineno_1" != "x$as_lineno_2" &&
23393 test "x$as_lineno_3" = "x$as_lineno_2" || {
23394 # Find who we are. Look in the path if we contain no path at all
23395 # relative or not.
23396 case $0 in
23397 *[\\/]* ) as_myself=$0 ;;
23398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23399for as_dir in $PATH
23400do
23401 IFS=$as_save_IFS
23402 test -z "$as_dir" && as_dir=.
23403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23404done
bec39cab 23405
b4e70030
JB
23406 ;;
23407 esac
23408 # We did not find ourselves, most probably we were run as `sh COMMAND'
23409 # in which case we are not to be found in the path.
23410 if test "x$as_myself" = x; then
23411 as_myself=$0
23412 fi
23413 if test ! -f "$as_myself"; then
23414 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23415echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23416 { (exit 1); exit 1; }; }
23417 fi
23418 case $CONFIG_SHELL in
23419 '')
23420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23421for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23422do
23423 IFS=$as_save_IFS
23424 test -z "$as_dir" && as_dir=.
23425 for as_base in sh bash ksh sh5; do
23426 case $as_dir in
23427 /*)
23428 if ("$as_dir/$as_base" -c '
bec39cab
AC
23429 as_lineno_1=$LINENO
23430 as_lineno_2=$LINENO
b4e70030 23431 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 23432 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
23433 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23434 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23435 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23436 CONFIG_SHELL=$as_dir/$as_base
23437 export CONFIG_SHELL
23438 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23439 fi;;
23440 esac
23441 done
23442done
23443;;
23444 esac
bec39cab
AC
23445
23446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23447 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
23448 # line-number line before each line; the second 'sed' does the real
23449 # work. The second script uses 'N' to pair each line-number line
23450 # with the numbered line, and appends trailing '-' during
23451 # substitution so that $LINENO is not a special case at line end.
bec39cab 23452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
23453 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23454 sed '=' <$as_myself |
bec39cab
AC
23455 sed '
23456 N
b4e70030
JB
23457 s,$,-,
23458 : loop
23459 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 23460 t loop
b4e70030
JB
23461 s,-$,,
23462 s,^['$as_cr_digits']*\n,,
bec39cab 23463 ' >$as_me.lineno &&
b4e70030
JB
23464 chmod +x $as_me.lineno ||
23465 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23466echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
23467 { (exit 1); exit 1; }; }
23468
23469 # Don't try to exec as it changes $[0], causing all sort of problems
23470 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
23471 # original and so on. Autoconf is especially sensible to this).
23472 . ./$as_me.lineno
bec39cab
AC
23473 # Exit status is that of the last command.
23474 exit
23475}
23476
23477
b4e70030
JB
23478case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23479 *c*,-n*) ECHO_N= ECHO_C='
23480' ECHO_T=' ' ;;
23481 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23482 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
23483esac
23484
b4e70030 23485if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23486 as_expr=expr
23487else
23488 as_expr=false
23489fi
23490
23491rm -f conf$$ conf$$.exe conf$$.file
23492echo >conf$$.file
23493if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
23494 # We could just check for DJGPP; but this test a) works b) is more generic
23495 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23496 if test -f conf$$.exe; then
23497 # Don't use ln at all; we don't have any links
bec39cab 23498 as_ln_s='cp -p'
b4e70030
JB
23499 else
23500 as_ln_s='ln -s'
23501 fi
bec39cab
AC
23502elif ln conf$$.file conf$$ 2>/dev/null; then
23503 as_ln_s=ln
23504else
23505 as_ln_s='cp -p'
23506fi
b4e70030 23507rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
23508
23509if mkdir -p . 2>/dev/null; then
23510 as_mkdir_p=:
23511else
23512 test -d ./-p && rmdir ./-p
23513 as_mkdir_p=false
23514fi
23515
b4e70030 23516as_executable_p="test -f"
bec39cab
AC
23517
23518# Sed expression to map a string onto a valid CPP name.
23519as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23520
23521# Sed expression to map a string onto a valid variable name.
23522as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23523
23524
b4e70030
JB
23525# IFS
23526# We need space, tab and new line, in precisely that order.
23527as_nl='
23528'
23529IFS=" $as_nl"
23530
23531# CDPATH.
23532$as_unset CDPATH
23533
bec39cab
AC
23534exec 6>&1
23535
b4e70030 23536# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 23537# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
23538# values after options handling. Logging --version etc. is OK.
23539exec 5>>config.log
23540{
23541 echo
23542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23543## Running $as_me. ##
23544_ASBOX
23545} >&5
23546cat >&5 <<_CSEOF
23547
bec39cab 23548This file was extended by $as_me, which was
b4e70030 23549generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
23550
23551 CONFIG_FILES = $CONFIG_FILES
23552 CONFIG_HEADERS = $CONFIG_HEADERS
23553 CONFIG_LINKS = $CONFIG_LINKS
23554 CONFIG_COMMANDS = $CONFIG_COMMANDS
23555 $ $0 $@
23556
b4e70030
JB
23557_CSEOF
23558echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23559echo >&5
bec39cab
AC
23560_ACEOF
23561
23562# Files that config.status was made for.
b4e70030
JB
23563if test -n "$ac_config_files"; then
23564 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23565fi
234b45d4 23566
b4e70030
JB
23567if test -n "$ac_config_headers"; then
23568 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23569fi
23570
23571if test -n "$ac_config_links"; then
23572 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23573fi
23574
23575if test -n "$ac_config_commands"; then
23576 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23577fi
234b45d4 23578
bec39cab 23579cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 23580
bec39cab
AC
23581ac_cs_usage="\
23582\`$as_me' instantiates files from templates according to the
23583current configuration.
234b45d4 23584
bec39cab 23585Usage: $0 [OPTIONS] [FILE]...
234b45d4 23586
bec39cab
AC
23587 -h, --help print this help, then exit
23588 -V, --version print version number, then exit
23589 -q, --quiet do not print progress messages
23590 -d, --debug don't remove temporary files
23591 --recheck update $as_me by reconfiguring in the same conditions
23592 --file=FILE[:TEMPLATE]
23593 instantiate the configuration file FILE
23594 --header=FILE[:TEMPLATE]
23595 instantiate the configuration header FILE
234b45d4 23596
bec39cab
AC
23597Configuration files:
23598$config_files
234b45d4 23599
bec39cab
AC
23600Configuration headers:
23601$config_headers
234b45d4 23602
bec39cab
AC
23603Configuration links:
23604$config_links
234b45d4 23605
bec39cab
AC
23606Configuration commands:
23607$config_commands
23608
23609Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 23610_ACEOF
b4e70030 23611
bec39cab
AC
23612cat >>$CONFIG_STATUS <<_ACEOF
23613ac_cs_version="\\
23614config.status
b4e70030 23615configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
23616 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23617
b4e70030 23618Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
23619This config.status script is free software; the Free Software Foundation
23620gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
23621srcdir=$srcdir
23622INSTALL="$INSTALL"
bec39cab
AC
23623_ACEOF
23624
23625cat >>$CONFIG_STATUS <<\_ACEOF
23626# If no file are specified by the user, then we need to provide default
23627# value. By we need to know if files were specified by the user.
23628ac_need_defaults=:
23629while test $# != 0
23630do
23631 case $1 in
23632 --*=*)
b4e70030
JB
23633 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23634 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 23635 ac_shift=:
c906108c 23636 ;;
b4e70030 23637 -*)
bec39cab
AC
23638 ac_option=$1
23639 ac_optarg=$2
23640 ac_shift=shift
c906108c 23641 ;;
b4e70030
JB
23642 *) # This is not an option, so the user has probably given explicit
23643 # arguments.
23644 ac_option=$1
23645 ac_need_defaults=false;;
bec39cab 23646 esac
c906108c 23647
bec39cab
AC
23648 case $ac_option in
23649 # Handling of the options.
b4e70030
JB
23650_ACEOF
23651cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
23652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23653 ac_cs_recheck=: ;;
b4e70030
JB
23654 --version | --vers* | -V )
23655 echo "$ac_cs_version"; exit 0 ;;
23656 --he | --h)
23657 # Conflict between --help and --header
23658 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23659Try \`$0 --help' for more information." >&5
23660echo "$as_me: error: ambiguous option: $1
23661Try \`$0 --help' for more information." >&2;}
23662 { (exit 1); exit 1; }; };;
23663 --help | --hel | -h )
23664 echo "$ac_cs_usage"; exit 0 ;;
23665 --debug | --d* | -d )
bec39cab
AC
23666 debug=: ;;
23667 --file | --fil | --fi | --f )
23668 $ac_shift
23669 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23670 ac_need_defaults=false;;
23671 --header | --heade | --head | --hea )
23672 $ac_shift
23673 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23674 ac_need_defaults=false;;
23675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23676 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23677 ac_cs_silent=: ;;
c906108c 23678
bec39cab 23679 # This is an error.
b4e70030
JB
23680 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23681Try \`$0 --help' for more information." >&5
23682echo "$as_me: error: unrecognized option: $1
23683Try \`$0 --help' for more information." >&2;}
bec39cab 23684 { (exit 1); exit 1; }; } ;;
c906108c 23685
b4e70030 23686 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 23687
bec39cab
AC
23688 esac
23689 shift
23690done
c906108c 23691
bec39cab 23692ac_configure_extra_args=
c906108c 23693
bec39cab
AC
23694if $ac_cs_silent; then
23695 exec 6>/dev/null
23696 ac_configure_extra_args="$ac_configure_extra_args --silent"
23697fi
c906108c 23698
bec39cab
AC
23699_ACEOF
23700cat >>$CONFIG_STATUS <<_ACEOF
23701if \$ac_cs_recheck; then
b4e70030
JB
23702 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23703 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
23704fi
23705
23706_ACEOF
23707
23708cat >>$CONFIG_STATUS <<_ACEOF
c906108c 23709#
b4e70030 23710# INIT-COMMANDS section.
c906108c 23711#
c906108c 23712
b4e70030 23713
4e8d927d
DJ
23714GCC="$GCC"
23715CC="$CC"
23716acx_cv_header_stdint="$acx_cv_header_stdint"
23717acx_cv_type_int8_t="$acx_cv_type_int8_t"
23718acx_cv_type_int16_t="$acx_cv_type_int16_t"
23719acx_cv_type_int32_t="$acx_cv_type_int32_t"
23720acx_cv_type_int64_t="$acx_cv_type_int64_t"
23721acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23722ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23723ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23724ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23725ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23726ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23727ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23728ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23729ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23730
bec39cab
AC
23731
23732gdb_host_cpu=$gdb_host_cpu
23733gdb_target_cpu=$gdb_target_cpu
23734nativefile=$nativefile
23735
23736
23737_ACEOF
23738
4e8d927d 23739
b4e70030
JB
23740
23741cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 23742for ac_config_target in $ac_config_targets
c906108c 23743do
b4e70030
JB
23744 case "$ac_config_target" in
23745 # Handling of arguments.
23746 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23747 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
23748 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
23749 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
23750 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23751 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
23752 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23753echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23754 { (exit 1); exit 1; }; };;
c906108c
SS
23755 esac
23756done
23757
bec39cab
AC
23758# If the user did not use the arguments to specify the items to instantiate,
23759# then the envvar interface is used. Set only those that are not.
23760# We use the long form for the default assignment because of an extremely
23761# bizarre bug on SunOS 4.1.3.
23762if $ac_need_defaults; then
23763 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23764 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23765 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23767fi
23768
b4e70030
JB
23769# Have a temporary directory for convenience. Make it in the build tree
23770# simply because there is no reason to put it here, and in addition,
23771# creating and moving files from /tmp can sometimes cause problems.
23772# Create a temporary directory, and hook for its removal unless debugging.
23773$debug ||
23774{
23775 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23776 trap '{ (exit 1); exit 1; }' 1 2 13 15
23777}
4e8d927d 23778
b4e70030 23779# Create a (secure) tmp directory for tmp files.
4e8d927d 23780
b4e70030
JB
23781{
23782 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23783 test -n "$tmp" && test -d "$tmp"
23784} ||
23785{
23786 tmp=./confstat$$-$RANDOM
23787 (umask 077 && mkdir $tmp)
23788} ||
23789{
23790 echo "$me: cannot create a temporary directory in ." >&2
23791 { (exit 1); exit 1; }
23792}
4e8d927d 23793
b4e70030 23794_ACEOF
4e8d927d 23795
b4e70030 23796cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 23797
b4e70030
JB
23798#
23799# CONFIG_FILES section.
23800#
4e8d927d 23801
b4e70030
JB
23802# No need to generate the scripts if there are no CONFIG_FILES.
23803# This happens for instance when ./config.status config.h
23804if test -n "\$CONFIG_FILES"; then
23805 # Protect against being on the right side of a sed subst in config.status.
23806 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23807 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23808s,@SHELL@,$SHELL,;t t
23809s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23810s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23811s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23812s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23813s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23814s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23815s,@exec_prefix@,$exec_prefix,;t t
23816s,@prefix@,$prefix,;t t
23817s,@program_transform_name@,$program_transform_name,;t t
23818s,@bindir@,$bindir,;t t
23819s,@sbindir@,$sbindir,;t t
23820s,@libexecdir@,$libexecdir,;t t
23821s,@datadir@,$datadir,;t t
23822s,@sysconfdir@,$sysconfdir,;t t
23823s,@sharedstatedir@,$sharedstatedir,;t t
23824s,@localstatedir@,$localstatedir,;t t
23825s,@libdir@,$libdir,;t t
23826s,@includedir@,$includedir,;t t
23827s,@oldincludedir@,$oldincludedir,;t t
23828s,@infodir@,$infodir,;t t
23829s,@mandir@,$mandir,;t t
23830s,@build_alias@,$build_alias,;t t
23831s,@host_alias@,$host_alias,;t t
23832s,@target_alias@,$target_alias,;t t
23833s,@DEFS@,$DEFS,;t t
23834s,@ECHO_C@,$ECHO_C,;t t
23835s,@ECHO_N@,$ECHO_N,;t t
23836s,@ECHO_T@,$ECHO_T,;t t
23837s,@LIBS@,$LIBS,;t t
23838s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23839s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23840s,@MAINT@,$MAINT,;t t
23841s,@CC@,$CC,;t t
23842s,@CFLAGS@,$CFLAGS,;t t
23843s,@LDFLAGS@,$LDFLAGS,;t t
23844s,@CPPFLAGS@,$CPPFLAGS,;t t
23845s,@ac_ct_CC@,$ac_ct_CC,;t t
23846s,@EXEEXT@,$EXEEXT,;t t
23847s,@OBJEXT@,$OBJEXT,;t t
23848s,@CPP@,$CPP,;t t
23849s,@EGREP@,$EGREP,;t t
23850s,@build@,$build,;t t
23851s,@build_cpu@,$build_cpu,;t t
23852s,@build_vendor@,$build_vendor,;t t
23853s,@build_os@,$build_os,;t t
23854s,@host@,$host,;t t
23855s,@host_cpu@,$host_cpu,;t t
23856s,@host_vendor@,$host_vendor,;t t
23857s,@host_os@,$host_os,;t t
23858s,@target@,$target,;t t
23859s,@target_cpu@,$target_cpu,;t t
23860s,@target_vendor@,$target_vendor,;t t
23861s,@target_os@,$target_os,;t t
b4e70030 23862s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
23863s,@LIBINTL@,$LIBINTL,;t t
23864s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23865s,@INCINTL@,$INCINTL,;t t
b4e70030 23866s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
23867s,@GMSGFMT@,$GMSGFMT,;t t
23868s,@POSUB@,$POSUB,;t t
b4e70030 23869s,@CATALOGS@,$CATALOGS,;t t
b4e70030 23870s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 23871s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
23872s,@GENCAT@,$GENCAT,;t t
23873s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
23874s,@localedir@,$localedir,;t t
23875s,@PACKAGE@,$PACKAGE,;t t
23876s,@subdirs@,$subdirs,;t t
23877s,@AWK@,$AWK,;t t
23878s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23879s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23880s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23881s,@LN_S@,$LN_S,;t t
20e95c23
DJ
23882s,@RANLIB@,$RANLIB,;t t
23883s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
23884s,@YACC@,$YACC,;t t
23885s,@AR@,$AR,;t t
23886s,@ac_ct_AR@,$ac_ct_AR,;t t
23887s,@DLLTOOL@,$DLLTOOL,;t t
23888s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23889s,@WINDRES@,$WINDRES,;t t
23890s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
23891s,@MIG@,$MIG,;t t
23892s,@ac_ct_MIG@,$ac_ct_MIG,;t t
3841debe
DJ
23893s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
23894s,@LIBEXPAT@,$LIBEXPAT,;t t
23895s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 23896s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
23897s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
23898s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
23899s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
23900s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23901s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
23902s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
23903s,@WIN32LIBS@,$WIN32LIBS,;t t
23904s,@LIBGUI@,$LIBGUI,;t t
23905s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
23906s,@WIN32LDAPP@,$WIN32LDAPP,;t t
23907s,@TCL_VERSION@,$TCL_VERSION,;t t
23908s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
23909s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
23910s,@TCL_CC@,$TCL_CC,;t t
23911s,@TCL_DEFS@,$TCL_DEFS,;t t
23912s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
23913s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
23914s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23915s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
23916s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
23917s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
23918s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
23919s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
23920s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
23921s,@TCL_RANLIB@,$TCL_RANLIB,;t t
23922s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
23923s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23924s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
23925s,@TK_VERSION@,$TK_VERSION,;t t
23926s,@TK_DEFS@,$TK_DEFS,;t t
23927s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
23928s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
23929s,@TK_XLIBSW@,$TK_XLIBSW,;t t
23930s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
23931s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
23932s,@TCLHDIR@,$TCLHDIR,;t t
23933s,@TKHDIR@,$TKHDIR,;t t
23934s,@ITCLHDIR@,$ITCLHDIR,;t t
23935s,@ITKHDIR@,$ITKHDIR,;t t
23936s,@ITCL_VERSION@,$ITCL_VERSION,;t t
23937s,@ITCL_DEFS@,$ITCL_DEFS,;t t
23938s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
23939s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
23940s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
23941s,@ITK_VERSION@,$ITK_VERSION,;t t
23942s,@ITK_DEFS@,$ITK_DEFS,;t t
23943s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
23944s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
23945s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
23946s,@X_CFLAGS@,$X_CFLAGS,;t t
23947s,@X_LDFLAGS@,$X_LDFLAGS,;t t
23948s,@X_LIBS@,$X_LIBS,;t t
23949s,@TCL_DEPS@,$TCL_DEPS,;t t
23950s,@TK_DEPS@,$TK_DEPS,;t t
23951s,@ITCLLIB@,$ITCLLIB,;t t
23952s,@ITCL_DEPS@,$ITCL_DEPS,;t t
23953s,@ITKLIB@,$ITKLIB,;t t
23954s,@ITK_DEPS@,$ITK_DEPS,;t t
23955s,@GDBTKLIBS@,$GDBTKLIBS,;t t
23956s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
23957s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
23958s,@IGNORE_SIM@,$IGNORE_SIM,;t t
23959s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
23960s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
23961s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
23962s,@CONFIG_OBS@,$CONFIG_OBS,;t t
23963s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
23964s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
23965s,@CONFIG_ALL@,$CONFIG_ALL,;t t
23966s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
23967s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
23968s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
23969s,@target_subdir@,$target_subdir,;t t
23970s,@frags@,$frags,;t t
23971s,@xm_h@,$xm_h,;t t
23972s,@tm_h@,$tm_h,;t t
23973s,@nm_h@,$nm_h,;t t
23974s,@LIBICONV@,$LIBICONV,;t t
23975s,@LIBOBJS@,$LIBOBJS,;t t
23976s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23977/@host_makefile_frag@/r $host_makefile_frag
23978s,@host_makefile_frag@,,;t t
23979/@target_makefile_frag@/r $target_makefile_frag
23980s,@target_makefile_frag@,,;t t
23981CEOF
23982
23983_ACEOF
23984
23985 cat >>$CONFIG_STATUS <<\_ACEOF
23986 # Split the substitutions into bite-sized pieces for seds with
23987 # small command number limits, like on Digital OSF/1 and HP-UX.
23988 ac_max_sed_lines=48
23989 ac_sed_frag=1 # Number of current file.
23990 ac_beg=1 # First line for current file.
23991 ac_end=$ac_max_sed_lines # Line after last line for current file.
23992 ac_more_lines=:
23993 ac_sed_cmds=
23994 while $ac_more_lines; do
23995 if test $ac_beg -gt 1; then
23996 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23997 else
23998 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 23999 fi
b4e70030
JB
24000 if test ! -s $tmp/subs.frag; then
24001 ac_more_lines=false
24002 else
24003 # The purpose of the label and of the branching condition is to
24004 # speed up the sed processing (if there are no `@' at all, there
24005 # is no need to browse any of the substitutions).
24006 # These are the two extra sed commands mentioned above.
24007 (echo ':t
24008 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24009 if test -z "$ac_sed_cmds"; then
24010 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24011 else
24012 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24013 fi
24014 ac_sed_frag=`expr $ac_sed_frag + 1`
24015 ac_beg=$ac_end
24016 ac_end=`expr $ac_end + $ac_max_sed_lines`
24017 fi
24018 done
24019 if test -z "$ac_sed_cmds"; then
24020 ac_sed_cmds=cat
24021 fi
24022fi # test -n "$CONFIG_FILES"
4e8d927d 24023
b4e70030
JB
24024_ACEOF
24025cat >>$CONFIG_STATUS <<\_ACEOF
24026for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24027 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24028 case $ac_file in
24029 - | *:- | *:-:* ) # input from stdin
24030 cat >$tmp/stdin
24031 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24033 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24035 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
24036 esac
24037
b4e70030
JB
24038 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24039 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
24040$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24041 X"$ac_file" : 'X\(//\)[^/]' \| \
24042 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
24043 X"$ac_file" : 'X\(/\)' \| \
24044 . : '\(.\)' 2>/dev/null ||
bec39cab 24045echo X"$ac_file" |
b4e70030
JB
24046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24048 /^X\(\/\/\)$/{ s//\1/; q; }
24049 /^X\(\/\).*/{ s//\1/; q; }
24050 s/.*/./; q'`
24051 { if $as_mkdir_p; then
24052 mkdir -p "$ac_dir"
24053 else
24054 as_dir="$ac_dir"
bec39cab 24055 as_dirs=
b4e70030
JB
24056 while test ! -d "$as_dir"; do
24057 as_dirs="$as_dir $as_dirs"
24058 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
24059$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24060 X"$as_dir" : 'X\(//\)[^/]' \| \
24061 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
24062 X"$as_dir" : 'X\(/\)' \| \
24063 . : '\(.\)' 2>/dev/null ||
bec39cab 24064echo X"$as_dir" |
b4e70030
JB
24065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24066 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24067 /^X\(\/\/\)$/{ s//\1/; q; }
24068 /^X\(\/\).*/{ s//\1/; q; }
24069 s/.*/./; q'`
bec39cab 24070 done
b4e70030
JB
24071 test ! -n "$as_dirs" || mkdir $as_dirs
24072 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24073echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 24074 { (exit 1); exit 1; }; }; }
b4e70030 24075
bec39cab
AC
24076 ac_builddir=.
24077
b4e70030 24078if test "$ac_dir" != .; then
bec39cab 24079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
24080 # A "../" for each directory in $ac_dir_suffix.
24081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24082else
24083 ac_dir_suffix= ac_top_builddir=
24084fi
bec39cab
AC
24085
24086case $srcdir in
b4e70030 24087 .) # No --srcdir option. We are building in place.
bec39cab 24088 ac_srcdir=.
b4e70030
JB
24089 if test -z "$ac_top_builddir"; then
24090 ac_top_srcdir=.
24091 else
24092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24093 fi ;;
24094 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 24095 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
24096 ac_top_srcdir=$srcdir ;;
24097 *) # Relative path.
24098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
24100esac
24101
b4e70030
JB
24102# Do not use `cd foo && pwd` to compute absolute paths, because
24103# the directories may not exist.
24104case `pwd` in
24105.) ac_abs_builddir="$ac_dir";;
24106*)
24107 case "$ac_dir" in
24108 .) ac_abs_builddir=`pwd`;;
24109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24111 esac;;
24112esac
24113case $ac_abs_builddir in
24114.) ac_abs_top_builddir=${ac_top_builddir}.;;
24115*)
24116 case ${ac_top_builddir}. in
24117 .) ac_abs_top_builddir=$ac_abs_builddir;;
24118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24120 esac;;
24121esac
24122case $ac_abs_builddir in
24123.) ac_abs_srcdir=$ac_srcdir;;
24124*)
24125 case $ac_srcdir in
24126 .) ac_abs_srcdir=$ac_abs_builddir;;
24127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24129 esac;;
24130esac
24131case $ac_abs_builddir in
24132.) ac_abs_top_srcdir=$ac_top_srcdir;;
24133*)
24134 case $ac_top_srcdir in
24135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24138 esac;;
24139esac
c906108c 24140
c906108c 24141
bec39cab
AC
24142 case $INSTALL in
24143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 24144 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 24145 esac
121ce6e5 24146
b4e70030
JB
24147 if test x"$ac_file" != x-; then
24148 { echo "$as_me:$LINENO: creating $ac_file" >&5
24149echo "$as_me: creating $ac_file" >&6;}
24150 rm -f "$ac_file"
24151 fi
24152 # Let's still pretend it is `configure' which instantiates (i.e., don't
24153 # use $as_me), people would be surprised to read:
24154 # /* config.h. Generated by config.status. */
24155 if test x"$ac_file" = x-; then
24156 configure_input=
24157 else
24158 configure_input="$ac_file. "
24159 fi
24160 configure_input=$configure_input"Generated from `echo $ac_file_in |
24161 sed 's,.*/,,'` by configure."
24162
24163 # First look for the input files in the build tree, otherwise in the
24164 # src tree.
24165 ac_file_inputs=`IFS=:
24166 for f in $ac_file_in; do
24167 case $f in
24168 -) echo $tmp/stdin ;;
24169 [\\/$]*)
24170 # Absolute (can't be DOS-style, as IFS=:)
24171 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24172echo "$as_me: error: cannot find input file: $f" >&2;}
24173 { (exit 1); exit 1; }; }
24174 echo "$f";;
24175 *) # Relative
24176 if test -f "$f"; then
24177 # Build tree
24178 echo "$f"
24179 elif test -f "$srcdir/$f"; then
24180 # Source tree
24181 echo "$srcdir/$f"
24182 else
24183 # /dev/null tree
24184 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24185echo "$as_me: error: cannot find input file: $f" >&2;}
24186 { (exit 1); exit 1; }; }
24187 fi;;
24188 esac
24189 done` || { (exit 1); exit 1; }
4e8d927d 24190_ACEOF
bec39cab
AC
24191cat >>$CONFIG_STATUS <<_ACEOF
24192 sed "$ac_vpsub
24193$extrasub
24194_ACEOF
24195cat >>$CONFIG_STATUS <<\_ACEOF
24196:t
24197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
24198s,@configure_input@,$configure_input,;t t
24199s,@srcdir@,$ac_srcdir,;t t
24200s,@abs_srcdir@,$ac_abs_srcdir,;t t
24201s,@top_srcdir@,$ac_top_srcdir,;t t
24202s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24203s,@builddir@,$ac_builddir,;t t
24204s,@abs_builddir@,$ac_abs_builddir,;t t
24205s,@top_builddir@,$ac_top_builddir,;t t
24206s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24207s,@INSTALL@,$ac_INSTALL,;t t
24208" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24209 rm -f $tmp/stdin
24210 if test x"$ac_file" != x-; then
24211 mv $tmp/out $ac_file
24212 else
24213 cat $tmp/out
24214 rm -f $tmp/out
24215 fi
24216
24217done
24218_ACEOF
24219cat >>$CONFIG_STATUS <<\_ACEOF
24220
24221#
24222# CONFIG_HEADER section.
24223#
24224
24225# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24226# NAME is the cpp macro being defined and VALUE is the value it is being given.
24227#
24228# ac_d sets the value in "#define NAME VALUE" lines.
24229ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24230ac_dB='[ ].*$,\1#\2'
24231ac_dC=' '
24232ac_dD=',;t'
24233# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24234ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24235ac_uB='$,\1#\2define\3'
24236ac_uC=' '
24237ac_uD=',;t'
24238
24239for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 24241 case $ac_file in
b4e70030
JB
24242 - | *:- | *:-:* ) # input from stdin
24243 cat >$tmp/stdin
24244 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24246 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24247 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24248 * ) ac_file_in=$ac_file.in ;;
c906108c 24249 esac
b4e70030
JB
24250
24251 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24252echo "$as_me: creating $ac_file" >&6;}
24253
24254 # First look for the input files in the build tree, otherwise in the
24255 # src tree.
24256 ac_file_inputs=`IFS=:
24257 for f in $ac_file_in; do
24258 case $f in
24259 -) echo $tmp/stdin ;;
24260 [\\/$]*)
24261 # Absolute (can't be DOS-style, as IFS=:)
24262 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24263echo "$as_me: error: cannot find input file: $f" >&2;}
24264 { (exit 1); exit 1; }; }
24265 # Do quote $f, to prevent DOS paths from being IFS'd.
24266 echo "$f";;
24267 *) # Relative
24268 if test -f "$f"; then
24269 # Build tree
24270 echo "$f"
24271 elif test -f "$srcdir/$f"; then
24272 # Source tree
24273 echo "$srcdir/$f"
24274 else
24275 # /dev/null tree
24276 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24277echo "$as_me: error: cannot find input file: $f" >&2;}
24278 { (exit 1); exit 1; }; }
24279 fi;;
24280 esac
24281 done` || { (exit 1); exit 1; }
24282 # Remove the trailing spaces.
24283 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24284
24285_ACEOF
24286
24287# Transform confdefs.h into two sed scripts, `conftest.defines' and
24288# `conftest.undefs', that substitutes the proper values into
24289# config.h.in to produce config.h. The first handles `#define'
24290# templates, and the second `#undef' templates.
24291# And first: Protect against being on the right side of a sed subst in
24292# config.status. Protect against being in an unquoted here document
24293# in config.status.
24294rm -f conftest.defines conftest.undefs
24295# Using a here document instead of a string reduces the quoting nightmare.
24296# Putting comments in sed scripts is not portable.
24297#
24298# `end' is used to avoid that the second main sed command (meant for
24299# 0-ary CPP macros) applies to n-ary macro definitions.
24300# See the Autoconf documentation for `clear'.
24301cat >confdef2sed.sed <<\_ACEOF
24302s/[\\&,]/\\&/g
24303s,[\\$`],\\&,g
24304t clear
24305: clear
24306s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24307t end
24308s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24309: end
24310_ACEOF
24311# If some macros were called several times there might be several times
24312# the same #defines, which is useless. Nevertheless, we may not want to
24313# sort them, since we want the *last* AC-DEFINE to be honored.
24314uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24315sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24316rm -f confdef2sed.sed
24317
24318# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
24319# example, in the case of _POSIX_SOURCE, which is predefined and required
24320# on some systems where configure will not decide to define it.
b4e70030
JB
24321cat >>conftest.undefs <<\_ACEOF
24322s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24323_ACEOF
24324
24325# Break up conftest.defines because some shells have a limit on the size
24326# of here documents, and old seds have small limits too (100 cmds).
24327echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24328echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24329echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24330echo ' :' >>$CONFIG_STATUS
24331rm -f conftest.tail
24332while grep . conftest.defines >/dev/null
bec39cab 24333do
b4e70030
JB
24334 # Write a limited-size here document to $tmp/defines.sed.
24335 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24336 # Speed up: don't consider the non `#define' lines.
24337 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24338 # Work around the forget-to-reset-the-flag bug.
24339 echo 't clr' >>$CONFIG_STATUS
24340 echo ': clr' >>$CONFIG_STATUS
24341 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 24342 echo 'CEOF
b4e70030
JB
24343 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24344 rm -f $tmp/in
24345 mv $tmp/out $tmp/in
24346' >>$CONFIG_STATUS
24347 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
24348 rm -f conftest.defines
24349 mv conftest.tail conftest.defines
24350done
b4e70030
JB
24351rm -f conftest.defines
24352echo ' fi # grep' >>$CONFIG_STATUS
24353echo >>$CONFIG_STATUS
24354
24355# Break up conftest.undefs because some shells have a limit on the size
24356# of here documents, and old seds have small limits too (100 cmds).
24357echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24358rm -f conftest.tail
24359while grep . conftest.undefs >/dev/null
24360do
24361 # Write a limited-size here document to $tmp/undefs.sed.
24362 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24363 # Speed up: don't consider the non `#undef'
24364 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24365 # Work around the forget-to-reset-the-flag bug.
24366 echo 't clr' >>$CONFIG_STATUS
24367 echo ': clr' >>$CONFIG_STATUS
24368 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24369 echo 'CEOF
24370 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24371 rm -f $tmp/in
24372 mv $tmp/out $tmp/in
24373' >>$CONFIG_STATUS
24374 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24375 rm -f conftest.undefs
24376 mv conftest.tail conftest.undefs
24377done
24378rm -f conftest.undefs
bec39cab
AC
24379
24380cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
24381 # Let's still pretend it is `configure' which instantiates (i.e., don't
24382 # use $as_me), people would be surprised to read:
24383 # /* config.h. Generated by config.status. */
24384 if test x"$ac_file" = x-; then
24385 echo "/* Generated by configure. */" >$tmp/config.h
24386 else
24387 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24388 fi
24389 cat $tmp/in >>$tmp/config.h
24390 rm -f $tmp/in
bec39cab 24391 if test x"$ac_file" != x-; then
b4e70030 24392 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
24393 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24394echo "$as_me: $ac_file is unchanged" >&6;}
24395 else
b4e70030
JB
24396 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24397$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24398 X"$ac_file" : 'X\(//\)[^/]' \| \
24399 X"$ac_file" : 'X\(//\)$' \| \
24400 X"$ac_file" : 'X\(/\)' \| \
24401 . : '\(.\)' 2>/dev/null ||
24402echo X"$ac_file" |
24403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24405 /^X\(\/\/\)$/{ s//\1/; q; }
24406 /^X\(\/\).*/{ s//\1/; q; }
24407 s/.*/./; q'`
24408 { if $as_mkdir_p; then
24409 mkdir -p "$ac_dir"
24410 else
24411 as_dir="$ac_dir"
24412 as_dirs=
24413 while test ! -d "$as_dir"; do
24414 as_dirs="$as_dir $as_dirs"
24415 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24416$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24417 X"$as_dir" : 'X\(//\)[^/]' \| \
24418 X"$as_dir" : 'X\(//\)$' \| \
24419 X"$as_dir" : 'X\(/\)' \| \
24420 . : '\(.\)' 2>/dev/null ||
24421echo X"$as_dir" |
24422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24424 /^X\(\/\/\)$/{ s//\1/; q; }
24425 /^X\(\/\).*/{ s//\1/; q; }
24426 s/.*/./; q'`
24427 done
24428 test ! -n "$as_dirs" || mkdir $as_dirs
24429 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24430echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24431 { (exit 1); exit 1; }; }; }
24432
bec39cab 24433 rm -f $ac_file
b4e70030 24434 mv $tmp/config.h $ac_file
bec39cab
AC
24435 fi
24436 else
b4e70030
JB
24437 cat $tmp/config.h
24438 rm -f $tmp/config.h
bec39cab 24439 fi
b4e70030
JB
24440done
24441_ACEOF
24442cat >>$CONFIG_STATUS <<\_ACEOF
24443
24444#
24445# CONFIG_LINKS section.
24446#
24447
24448for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24449 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24450 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 24451
b4e70030
JB
24452 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24453echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
24454
24455 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
24456 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24457echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24458 { (exit 1); exit 1; }; }
c906108c 24459 fi
b4e70030
JB
24460 rm -f $ac_dest
24461
24462 # Make relative symlinks.
24463 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24464$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24465 X"$ac_dest" : 'X\(//\)[^/]' \| \
24466 X"$ac_dest" : 'X\(//\)$' \| \
24467 X"$ac_dest" : 'X\(/\)' \| \
24468 . : '\(.\)' 2>/dev/null ||
24469echo X"$ac_dest" |
24470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24472 /^X\(\/\/\)$/{ s//\1/; q; }
24473 /^X\(\/\).*/{ s//\1/; q; }
24474 s/.*/./; q'`
24475 { if $as_mkdir_p; then
24476 mkdir -p "$ac_dest_dir"
24477 else
24478 as_dir="$ac_dest_dir"
24479 as_dirs=
24480 while test ! -d "$as_dir"; do
24481 as_dirs="$as_dir $as_dirs"
24482 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24483$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24484 X"$as_dir" : 'X\(//\)[^/]' \| \
24485 X"$as_dir" : 'X\(//\)$' \| \
24486 X"$as_dir" : 'X\(/\)' \| \
24487 . : '\(.\)' 2>/dev/null ||
24488echo X"$as_dir" |
24489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24491 /^X\(\/\/\)$/{ s//\1/; q; }
24492 /^X\(\/\).*/{ s//\1/; q; }
24493 s/.*/./; q'`
24494 done
24495 test ! -n "$as_dirs" || mkdir $as_dirs
24496 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24497echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24498 { (exit 1); exit 1; }; }; }
24499
24500 ac_builddir=.
24501
24502if test "$ac_dest_dir" != .; then
24503 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24504 # A "../" for each directory in $ac_dir_suffix.
24505 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24506else
24507 ac_dir_suffix= ac_top_builddir=
24508fi
24509
24510case $srcdir in
24511 .) # No --srcdir option. We are building in place.
24512 ac_srcdir=.
24513 if test -z "$ac_top_builddir"; then
24514 ac_top_srcdir=.
24515 else
24516 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24517 fi ;;
24518 [\\/]* | ?:[\\/]* ) # Absolute path.
24519 ac_srcdir=$srcdir$ac_dir_suffix;
24520 ac_top_srcdir=$srcdir ;;
24521 *) # Relative path.
24522 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24523 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24524esac
24525
24526# Do not use `cd foo && pwd` to compute absolute paths, because
24527# the directories may not exist.
24528case `pwd` in
24529.) ac_abs_builddir="$ac_dest_dir";;
24530*)
24531 case "$ac_dest_dir" in
24532 .) ac_abs_builddir=`pwd`;;
24533 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24534 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24535 esac;;
24536esac
24537case $ac_abs_builddir in
24538.) ac_abs_top_builddir=${ac_top_builddir}.;;
24539*)
24540 case ${ac_top_builddir}. in
24541 .) ac_abs_top_builddir=$ac_abs_builddir;;
24542 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24543 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24544 esac;;
24545esac
24546case $ac_abs_builddir in
24547.) ac_abs_srcdir=$ac_srcdir;;
24548*)
24549 case $ac_srcdir in
24550 .) ac_abs_srcdir=$ac_abs_builddir;;
24551 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24552 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24553 esac;;
24554esac
24555case $ac_abs_builddir in
24556.) ac_abs_top_srcdir=$ac_top_srcdir;;
24557*)
24558 case $ac_top_srcdir in
24559 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24560 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24561 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24562 esac;;
24563esac
24564
bec39cab
AC
24565
24566 case $srcdir in
24567 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 24568 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 24569 esac
b4e70030
JB
24570
24571 # Try a symlink, then a hard link, then a copy.
24572 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24573 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24574 cp -p $srcdir/$ac_source $ac_dest ||
24575 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24576echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 24577 { (exit 1); exit 1; }; }
b4e70030
JB
24578done
24579_ACEOF
24580cat >>$CONFIG_STATUS <<\_ACEOF
24581
24582#
24583# CONFIG_COMMANDS section.
24584#
24585for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24586 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24587 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24588 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24589$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24590 X"$ac_dest" : 'X\(//\)[^/]' \| \
24591 X"$ac_dest" : 'X\(//\)$' \| \
24592 X"$ac_dest" : 'X\(/\)' \| \
24593 . : '\(.\)' 2>/dev/null ||
24594echo X"$ac_dest" |
24595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24597 /^X\(\/\/\)$/{ s//\1/; q; }
24598 /^X\(\/\).*/{ s//\1/; q; }
24599 s/.*/./; q'`
24600 { if $as_mkdir_p; then
24601 mkdir -p "$ac_dir"
24602 else
24603 as_dir="$ac_dir"
24604 as_dirs=
24605 while test ! -d "$as_dir"; do
24606 as_dirs="$as_dir $as_dirs"
24607 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24608$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24609 X"$as_dir" : 'X\(//\)[^/]' \| \
24610 X"$as_dir" : 'X\(//\)$' \| \
24611 X"$as_dir" : 'X\(/\)' \| \
24612 . : '\(.\)' 2>/dev/null ||
24613echo X"$as_dir" |
24614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24616 /^X\(\/\/\)$/{ s//\1/; q; }
24617 /^X\(\/\).*/{ s//\1/; q; }
24618 s/.*/./; q'`
24619 done
24620 test ! -n "$as_dirs" || mkdir $as_dirs
24621 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24622echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24623 { (exit 1); exit 1; }; }; }
24624
24625 ac_builddir=.
24626
24627if test "$ac_dir" != .; then
24628 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24629 # A "../" for each directory in $ac_dir_suffix.
24630 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24631else
24632 ac_dir_suffix= ac_top_builddir=
24633fi
24634
24635case $srcdir in
24636 .) # No --srcdir option. We are building in place.
24637 ac_srcdir=.
24638 if test -z "$ac_top_builddir"; then
24639 ac_top_srcdir=.
24640 else
24641 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24642 fi ;;
24643 [\\/]* | ?:[\\/]* ) # Absolute path.
24644 ac_srcdir=$srcdir$ac_dir_suffix;
24645 ac_top_srcdir=$srcdir ;;
24646 *) # Relative path.
24647 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24648 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24649esac
24650
24651# Do not use `cd foo && pwd` to compute absolute paths, because
24652# the directories may not exist.
24653case `pwd` in
24654.) ac_abs_builddir="$ac_dir";;
24655*)
24656 case "$ac_dir" in
24657 .) ac_abs_builddir=`pwd`;;
24658 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24659 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24660 esac;;
24661esac
24662case $ac_abs_builddir in
24663.) ac_abs_top_builddir=${ac_top_builddir}.;;
24664*)
24665 case ${ac_top_builddir}. in
24666 .) ac_abs_top_builddir=$ac_abs_builddir;;
24667 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24668 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24669 esac;;
24670esac
24671case $ac_abs_builddir in
24672.) ac_abs_srcdir=$ac_srcdir;;
24673*)
24674 case $ac_srcdir in
24675 .) ac_abs_srcdir=$ac_abs_builddir;;
24676 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24677 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24678 esac;;
24679esac
24680case $ac_abs_builddir in
24681.) ac_abs_top_srcdir=$ac_top_srcdir;;
24682*)
24683 case $ac_top_srcdir in
24684 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24685 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24686 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24687 esac;;
24688esac
bec39cab 24689
bec39cab 24690
b4e70030
JB
24691 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24692echo "$as_me: executing $ac_dest commands" >&6;}
24693 case $ac_dest in
24694 gdb_stdint.h )
4e8d927d
DJ
24695if test "$GCC" = yes; then
24696 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24697else
24698 echo "/* generated for $CC */" > tmp-stdint.h
24699fi
24700
24701sed 's/^ *//' >> tmp-stdint.h <<EOF
24702
24703 #ifndef GCC_GENERATED_STDINT_H
24704 #define GCC_GENERATED_STDINT_H 1
24705
24706 #include <sys/types.h>
24707EOF
24708
24709if test "$acx_cv_header_stdint" != stdint.h; then
24710 echo "#include <stddef.h>" >> tmp-stdint.h
24711fi
24712if test "$acx_cv_header_stdint" != stddef.h; then
24713 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24714fi
24715
24716sed 's/^ *//' >> tmp-stdint.h <<EOF
24717 /* glibc uses these symbols as guards to prevent redefinitions. */
24718 #ifdef __int8_t_defined
24719 #define _INT8_T
24720 #define _INT16_T
24721 #define _INT32_T
24722 #endif
24723 #ifdef __uint32_t_defined
24724 #define _UINT32_T
24725 #endif
24726
24727EOF
24728
24729# ----------------- done header, emit basic int types -------------
24730if test "$acx_cv_header_stdint" = stddef.h; then
24731 sed 's/^ *//' >> tmp-stdint.h <<EOF
24732
24733 #ifndef _UINT8_T
24734 #define _UINT8_T
24735 typedef unsigned $acx_cv_type_int8_t uint8_t;
24736 #endif
24737
24738 #ifndef _UINT16_T
24739 #define _UINT16_T
24740 typedef unsigned $acx_cv_type_int16_t uint16_t;
24741 #endif
24742
24743 #ifndef _UINT32_T
24744 #define _UINT32_T
24745 typedef unsigned $acx_cv_type_int32_t uint32_t;
24746 #endif
24747
24748 #ifndef _INT8_T
24749 #define _INT8_T
24750 typedef $acx_cv_type_int8_t int8_t;
24751 #endif
24752
24753 #ifndef _INT16_T
24754 #define _INT16_T
24755 typedef $acx_cv_type_int16_t int16_t;
24756 #endif
24757
24758 #ifndef _INT32_T
24759 #define _INT32_T
24760 typedef $acx_cv_type_int32_t int32_t;
24761 #endif
24762EOF
24763elif test "$ac_cv_type_u_int32_t" = yes; then
24764 sed 's/^ *//' >> tmp-stdint.h <<EOF
24765
24766 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24767 #ifndef _INT8_T
24768 #define _INT8_T
24769 #endif
24770 #ifndef _INT16_T
24771 #define _INT16_T
24772 #endif
24773 #ifndef _INT32_T
24774 #define _INT32_T
24775 #endif
24776
24777 #ifndef _UINT8_T
24778 #define _UINT8_T
24779 typedef u_int8_t uint8_t;
24780 #endif
24781
24782 #ifndef _UINT16_T
24783 #define _UINT16_T
24784 typedef u_int16_t uint16_t;
24785 #endif
24786
24787 #ifndef _UINT32_T
24788 #define _UINT32_T
24789 typedef u_int32_t uint32_t;
24790 #endif
24791EOF
24792else
24793 sed 's/^ *//' >> tmp-stdint.h <<EOF
24794
24795 /* Some systems have guard macros to prevent redefinitions, define them. */
24796 #ifndef _INT8_T
24797 #define _INT8_T
24798 #endif
24799 #ifndef _INT16_T
24800 #define _INT16_T
24801 #endif
24802 #ifndef _INT32_T
24803 #define _INT32_T
24804 #endif
24805 #ifndef _UINT8_T
24806 #define _UINT8_T
24807 #endif
24808 #ifndef _UINT16_T
24809 #define _UINT16_T
24810 #endif
24811 #ifndef _UINT32_T
24812 #define _UINT32_T
24813 #endif
24814EOF
24815fi
24816
24817# ------------- done basic int types, emit int64_t types ------------
24818if test "$ac_cv_type_uint64_t" = yes; then
24819 sed 's/^ *//' >> tmp-stdint.h <<EOF
24820
24821 /* system headers have good uint64_t and int64_t */
24822 #ifndef _INT64_T
24823 #define _INT64_T
24824 #endif
24825 #ifndef _UINT64_T
24826 #define _UINT64_T
24827 #endif
24828EOF
24829elif test "$ac_cv_type_u_int64_t" = yes; then
24830 sed 's/^ *//' >> tmp-stdint.h <<EOF
24831
24832 /* system headers have an u_int64_t (and int64_t) */
24833 #ifndef _INT64_T
24834 #define _INT64_T
24835 #endif
24836 #ifndef _UINT64_T
24837 #define _UINT64_T
24838 typedef u_int64_t uint64_t;
24839 #endif
24840EOF
24841elif test -n "$acx_cv_type_int64_t"; then
24842 sed 's/^ *//' >> tmp-stdint.h <<EOF
24843
24844 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24845 #ifndef _INT64_T
24846 #define _INT64_T
24847 typedef $acx_cv_type_int64_t int64_t;
24848 #endif
24849 #ifndef _UINT64_T
24850 #define _UINT64_T
24851 typedef unsigned $acx_cv_type_int64_t uint64_t;
24852 #endif
24853EOF
24854else
24855 sed 's/^ *//' >> tmp-stdint.h <<EOF
24856
24857 /* some common heuristics for int64_t, using compiler-specific tests */
24858 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24859 #ifndef _INT64_T
24860 #define _INT64_T
24861 typedef long long int64_t;
24862 #endif
24863 #ifndef _UINT64_T
24864 #define _UINT64_T
24865 typedef unsigned long long uint64_t;
24866 #endif
24867
24868 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24869 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24870 does not implement __extension__. But that compiler doesn't define
24871 __GNUC_MINOR__. */
24872 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24873 # define __extension__
24874 # endif
24875
24876 # ifndef _INT64_T
24877 # define _INT64_T
24878 __extension__ typedef long long int64_t;
24879 # endif
24880 # ifndef _UINT64_T
24881 # define _UINT64_T
24882 __extension__ typedef unsigned long long uint64_t;
24883 # endif
24884
24885 #elif !defined __STRICT_ANSI__
24886 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24887
24888 # ifndef _INT64_T
24889 # define _INT64_T
24890 typedef __int64 int64_t;
24891 # endif
24892 # ifndef _UINT64_T
24893 # define _UINT64_T
24894 typedef unsigned __int64 uint64_t;
24895 # endif
24896 # endif /* compiler */
24897
24898 #endif /* ANSI version */
24899EOF
24900fi
24901
24902# ------------- done int64_t types, emit intptr types ------------
24903if test "$ac_cv_type_uintptr_t" != yes; then
24904 sed 's/^ *//' >> tmp-stdint.h <<EOF
24905
24906 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24907 typedef u$acx_cv_type_intptr_t uintptr_t;
24908 typedef $acx_cv_type_intptr_t intptr_t;
24909EOF
24910fi
24911
24912# ------------- done intptr types, emit int_least types ------------
24913if test "$ac_cv_type_int_least32_t" != yes; then
24914 sed 's/^ *//' >> tmp-stdint.h <<EOF
24915
24916 /* Define int_least types */
24917 typedef int8_t int_least8_t;
24918 typedef int16_t int_least16_t;
24919 typedef int32_t int_least32_t;
24920 #ifdef _INT64_T
24921 typedef int64_t int_least64_t;
24922 #endif
24923
24924 typedef uint8_t uint_least8_t;
24925 typedef uint16_t uint_least16_t;
24926 typedef uint32_t uint_least32_t;
24927 #ifdef _UINT64_T
24928 typedef uint64_t uint_least64_t;
24929 #endif
24930EOF
24931fi
24932
24933# ------------- done intptr types, emit int_fast types ------------
24934if test "$ac_cv_type_int_fast32_t" != yes; then
24935 sed 's/^ *//' >> tmp-stdint.h <<EOF
24936
24937 /* Define int_fast types. short is often slow */
24938 typedef int8_t int_fast8_t;
24939 typedef int int_fast16_t;
24940 typedef int32_t int_fast32_t;
24941 #ifdef _INT64_T
24942 typedef int64_t int_fast64_t;
24943 #endif
24944
24945 typedef uint8_t uint_fast8_t;
24946 typedef unsigned int uint_fast16_t;
24947 typedef uint32_t uint_fast32_t;
24948 #ifdef _UINT64_T
24949 typedef uint64_t uint_fast64_t;
24950 #endif
24951EOF
24952fi
24953
24954if test "$ac_cv_type_uintmax_t" != yes; then
24955 sed 's/^ *//' >> tmp-stdint.h <<EOF
24956
24957 /* Define intmax based on what we found */
24958 #ifdef _INT64_T
24959 typedef int64_t intmax_t;
24960 #else
24961 typedef long intmax_t;
24962 #endif
24963 #ifdef _UINT64_T
24964 typedef uint64_t uintmax_t;
24965 #else
24966 typedef unsigned long uintmax_t;
24967 #endif
24968EOF
24969fi
24970
24971sed 's/^ *//' >> tmp-stdint.h <<EOF
24972
24973 #endif /* GCC_GENERATED_STDINT_H */
24974EOF
24975
24976if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
24977 rm -f tmp-stdint.h
24978else
24979 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
24980fi
24981
4e8d927d 24982 ;;
b4e70030 24983 default )
c906108c 24984
2c0fc042 24985sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
24986/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
24987/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
24988mv -f Makefile.tmp Makefile
24989
2acceee2 24990
c906108c
SS
24991case x$CONFIG_HEADERS in
24992xconfig.h:config.in)
24993echo > stamp-h ;;
24994esac
bec39cab
AC
24995 ;;
24996 esac
b4e70030
JB
24997done
24998_ACEOF
c906108c 24999
b4e70030 25000cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25001
25002{ (exit 0); exit 0; }
25003_ACEOF
c906108c 25004chmod +x $CONFIG_STATUS
bec39cab
AC
25005ac_clean_files=$ac_clean_files_save
25006
25007
25008# configure is writing to config.log, and then calls config.status.
25009# config.status does its own redirection, appending to config.log.
25010# Unfortunately, on DOS this fails, as config.log is still kept open
25011# by configure, so config.status won't be able to write to it; its
25012# output is simply discarded. So we exec the FD to /dev/null,
25013# effectively closing config.log, so it can be properly (re)opened and
25014# appended to by config.status. When coming back to configure, we
25015# need to make the FD available again.
25016if test "$no_create" != yes; then
25017 ac_cs_success=:
25018 ac_config_status_args=
25019 test "$silent" = yes &&
25020 ac_config_status_args="$ac_config_status_args --quiet"
25021 exec 5>/dev/null
25022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25023 exec 5>>config.log
25024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25025 # would make configure fail if this is the last instruction.
25026 $ac_cs_success || { (exit 1); exit 1; }
25027fi
c906108c 25028
bec39cab
AC
25029#
25030# CONFIG_SUBDIRS section.
25031#
c906108c
SS
25032if test "$no_recursion" != yes; then
25033
25034 # Remove --cache-file and --srcdir arguments so they do not pile up.
25035 ac_sub_configure_args=
25036 ac_prev=
b4e70030 25037 for ac_arg in $ac_configure_args; do
c906108c
SS
25038 if test -n "$ac_prev"; then
25039 ac_prev=
25040 continue
25041 fi
bec39cab 25042 case $ac_arg in
c906108c
SS
25043 -cache-file | --cache-file | --cache-fil | --cache-fi \
25044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25045 ac_prev=cache_file ;;
25046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
25047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25048 | --c=*)
25049 ;;
25050 --config-cache | -C)
c906108c
SS
25051 ;;
25052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25053 ac_prev=srcdir ;;
25054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25055 ;;
bec39cab
AC
25056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25057 ac_prev=prefix ;;
25058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25059 ;;
b4e70030 25060 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
25061 esac
25062 done
25063
bec39cab
AC
25064 # Always prepend --prefix to ensure using the same prefix
25065 # in subdir configurations.
25066 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25067
b4e70030 25068 ac_popdir=`pwd`
bec39cab 25069 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
25070
25071 # Do not complain, so a configure script can configure whichever
25072 # parts of a large source tree are present.
bec39cab 25073 test -d $srcdir/$ac_dir || continue
c906108c 25074
b4e70030
JB
25075 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25076echo "$as_me: configuring in $ac_dir" >&6;}
25077 { if $as_mkdir_p; then
25078 mkdir -p "$ac_dir"
25079 else
25080 as_dir="$ac_dir"
bec39cab 25081 as_dirs=
b4e70030
JB
25082 while test ! -d "$as_dir"; do
25083 as_dirs="$as_dir $as_dirs"
25084 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25085$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25086 X"$as_dir" : 'X\(//\)[^/]' \| \
25087 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25088 X"$as_dir" : 'X\(/\)' \| \
25089 . : '\(.\)' 2>/dev/null ||
bec39cab 25090echo X"$as_dir" |
b4e70030
JB
25091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25093 /^X\(\/\/\)$/{ s//\1/; q; }
25094 /^X\(\/\).*/{ s//\1/; q; }
25095 s/.*/./; q'`
bec39cab 25096 done
b4e70030
JB
25097 test ! -n "$as_dirs" || mkdir $as_dirs
25098 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25099echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25100 { (exit 1); exit 1; }; }; }
b4e70030 25101
bec39cab
AC
25102 ac_builddir=.
25103
b4e70030 25104if test "$ac_dir" != .; then
bec39cab 25105 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25106 # A "../" for each directory in $ac_dir_suffix.
25107 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25108else
25109 ac_dir_suffix= ac_top_builddir=
25110fi
bec39cab
AC
25111
25112case $srcdir in
b4e70030 25113 .) # No --srcdir option. We are building in place.
bec39cab 25114 ac_srcdir=.
b4e70030
JB
25115 if test -z "$ac_top_builddir"; then
25116 ac_top_srcdir=.
25117 else
25118 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25119 fi ;;
25120 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25121 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25122 ac_top_srcdir=$srcdir ;;
25123 *) # Relative path.
25124 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25125 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25126esac
25127
25128# Do not use `cd foo && pwd` to compute absolute paths, because
25129# the directories may not exist.
25130case `pwd` in
25131.) ac_abs_builddir="$ac_dir";;
25132*)
25133 case "$ac_dir" in
25134 .) ac_abs_builddir=`pwd`;;
25135 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25136 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25137 esac;;
25138esac
25139case $ac_abs_builddir in
25140.) ac_abs_top_builddir=${ac_top_builddir}.;;
25141*)
25142 case ${ac_top_builddir}. in
25143 .) ac_abs_top_builddir=$ac_abs_builddir;;
25144 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25145 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25146 esac;;
25147esac
25148case $ac_abs_builddir in
25149.) ac_abs_srcdir=$ac_srcdir;;
25150*)
25151 case $ac_srcdir in
25152 .) ac_abs_srcdir=$ac_abs_builddir;;
25153 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25154 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25155 esac;;
25156esac
25157case $ac_abs_builddir in
25158.) ac_abs_top_srcdir=$ac_top_srcdir;;
25159*)
25160 case $ac_top_srcdir in
25161 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25162 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25163 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25164 esac;;
bec39cab 25165esac
c906108c 25166
c906108c 25167
b4e70030 25168 cd $ac_dir
c906108c
SS
25169
25170 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
25171 if test -f $ac_srcdir/configure.gnu; then
25172 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25173 elif test -f $ac_srcdir/configure; then
25174 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25175 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
25176 ac_sub_configure=$ac_configure
25177 else
bec39cab
AC
25178 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25179echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
25180 ac_sub_configure=
25181 fi
25182
25183 # The recursion is here.
25184 if test -n "$ac_sub_configure"; then
c906108c 25185 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
25186 case $cache_file in
25187 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
25188 *) # Relative path.
25189 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 25190 esac
c906108c 25191
bec39cab
AC
25192 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25193echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 25194 # The eval makes quoting arguments work.
b4e70030
JB
25195 eval $ac_sub_configure $ac_sub_configure_args \
25196 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
25197 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25198echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25199 { (exit 1); exit 1; }; }
c906108c
SS
25200 fi
25201
b4e70030 25202 cd $ac_popdir
c906108c
SS
25203 done
25204fi
25205
25206
25207exit 0
This page took 1.955704 seconds and 4 git commands to generate.