PR binutils/4110
[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
aa28a74e
DJ
3056if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3057 if test "x$prefix" = xNONE; then
3058 test_prefix=/usr/local
3059 else
3060 test_prefix=$prefix
3061 fi
3062else
3063 test_prefix=$exec_prefix
3064fi
3065case ${debugdir} in
3066"${test_prefix}"|"${test_prefix}/"*|\
3067'${exec_prefix}'|'${exec_prefix}/'*)
3068
3069cat >>confdefs.h <<\_ACEOF
3070#define DEBUGDIR_RELOCATABLE 1
3071_ACEOF
3072
3073 ;;
3074esac
3075
b4e70030
JB
3076
3077
bec39cab
AC
3078subdirs="$subdirs doc testsuite"
3079
3080
121ce6e5
DJ
3081# Provide defaults for some variables set by the per-host and per-target
3082# configuration.
3083gdb_host_obs=posix-hdep.o
3084
771b4502
UW
3085if test "${target}" = "${host}"; then
3086 gdb_native=yes
3087else
3088 gdb_native=no
3089fi
3090
bec39cab
AC
3091. $srcdir/configure.host
3092
3093. $srcdir/configure.tgt
3094
3095# Fetch the default architecture and default target vector from BFD.
3096targ=$target; . $srcdir/../bfd/config.bfd
3097
3098# We only want the first architecture, so strip off the others if
3099# there is more than one.
3100targ_archs=`echo $targ_archs | sed 's/ .*//'`
3101
3102if test "x$targ_archs" != x; then
3103
3104cat >>confdefs.h <<_ACEOF
3105#define DEFAULT_BFD_ARCH $targ_archs
3106_ACEOF
3107
3108fi
3109if test "x$targ_defvec" != x; then
3110
3111cat >>confdefs.h <<_ACEOF
3112#define DEFAULT_BFD_VEC $targ_defvec
3113_ACEOF
3114
3115fi
3116
3117test "$program_prefix" != NONE &&
b4e70030 3118 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
3119# Use a double $ so make ignores it.
3120test "$program_suffix" != NONE &&
b4e70030 3121 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
3122# Double any \ or $. echo might interpret backslashes.
3123# By default was `s,x,x', remove it if useless.
3124cat <<\_ACEOF >conftest.sed
3125s/[\\$]/&&/g;s/;s,x,x,$//
3126_ACEOF
3127program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 3128rm conftest.sed
bec39cab
AC
3129
3130
3131# The CLI cannot be disabled yet, but may be in the future.
3132
3133# Enable CLI.
b4e70030 3134# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 3135if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
3136 enableval="$enable_gdbcli"
3137 case $enableval in
bec39cab
AC
3138 yes)
3139 ;;
3140 no)
3141 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3142echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3143 { (exit 1); exit 1; }; } ;;
3144 *)
3145 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3146echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3147 { (exit 1); exit 1; }; } ;;
3148 esac
3149else
3150 enable_gdbcli=yes
b4e70030 3151fi;
bec39cab
AC
3152if test x"$enable_gdbcli" = xyes; then
3153 if test -d $srcdir/cli; then
3154 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3155 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3156 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3157 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3158 fi
3159fi
3160
3161# Enable MI.
b4e70030 3162# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 3163if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
3164 enableval="$enable_gdbmi"
3165 case $enableval in
bec39cab
AC
3166 yes | no)
3167 ;;
3168 *)
3169 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3170echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3171 { (exit 1); exit 1; }; } ;;
3172 esac
3173else
3174 enable_gdbmi=yes
b4e70030 3175fi;
bec39cab
AC
3176if test x"$enable_gdbmi" = xyes; then
3177 if test -d $srcdir/mi; then
3178 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3179 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3180 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3181 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3182 fi
3183fi
3184
3185# Enable TUI.
b4e70030 3186# Check whether --enable-tui or --disable-tui was given.
bec39cab 3187if test "${enable_tui+set}" = set; then
b4e70030
JB
3188 enableval="$enable_tui"
3189 case $enableval in
bec39cab
AC
3190 yes | no)
3191 ;;
3192 *)
3193 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3194echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3195 { (exit 1); exit 1; }; } ;;
3196 esac
3197else
3198 enable_tui=yes
b4e70030 3199fi;
bec39cab
AC
3200
3201# Enable gdbtk.
b4e70030 3202# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 3203if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
3204 enableval="$enable_gdbtk"
3205 case $enableval in
bec39cab
AC
3206 yes | no)
3207 ;;
3208 *)
3209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3210echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3211 { (exit 1); exit 1; }; } ;;
3212 esac
3213else
04ac69aa 3214 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
3215 enable_gdbtk=yes
3216 else
3217 enable_gdbtk=no
3218 fi
b4e70030 3219fi;
bec39cab
AC
3220# We unconditionally disable gdbtk tests on selected platforms.
3221case $host_os in
3222 go32* | windows*)
3223 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3224echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3225 enable_gdbtk=no ;;
3226esac
3227
3228# Libunwind support.
20e95c23
DJ
3229echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3230echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3231if test "${ac_cv_header_stdc+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234 cat >conftest.$ac_ext <<_ACEOF
3235/* confdefs.h. */
3236_ACEOF
3237cat confdefs.h >>conftest.$ac_ext
3238cat >>conftest.$ac_ext <<_ACEOF
3239/* end confdefs.h. */
3240#include <stdlib.h>
3241#include <stdarg.h>
3242#include <string.h>
3243#include <float.h>
3244
3245int
3246main ()
3247{
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_header_stdc=yes
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280ac_cv_header_stdc=no
3281fi
3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283
3284if test $ac_cv_header_stdc = yes; then
3285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3286 cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292#include <string.h>
3293
3294_ACEOF
3295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296 $EGREP "memchr" >/dev/null 2>&1; then
3297 :
3298else
3299 ac_cv_header_stdc=no
3300fi
3301rm -f conftest*
3302
3303fi
3304
3305if test $ac_cv_header_stdc = yes; then
3306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3307 cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
3313#include <stdlib.h>
3314
3315_ACEOF
3316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3317 $EGREP "free" >/dev/null 2>&1; then
3318 :
3319else
3320 ac_cv_header_stdc=no
3321fi
3322rm -f conftest*
3323
3324fi
3325
3326if test $ac_cv_header_stdc = yes; then
3327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3328 if test "$cross_compiling" = yes; then
3329 :
3330else
3331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337#include <ctype.h>
3338#if ((' ' & 0x0FF) == 0x020)
3339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3341#else
3342# define ISLOWER(c) \
3343 (('a' <= (c) && (c) <= 'i') \
3344 || ('j' <= (c) && (c) <= 'r') \
3345 || ('s' <= (c) && (c) <= 'z'))
3346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3347#endif
3348
3349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3350int
3351main ()
3352{
3353 int i;
3354 for (i = 0; i < 256; i++)
3355 if (XOR (islower (i), ISLOWER (i))
3356 || toupper (i) != TOUPPER (i))
3357 exit(2);
3358 exit (0);
3359}
3360_ACEOF
3361rm -f conftest$ac_exeext
3362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3363 (eval $ac_link) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 :
3373else
3374 echo "$as_me: program exited with status $ac_status" >&5
3375echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378( exit $ac_status )
3379ac_cv_header_stdc=no
3380fi
3381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3382fi
3383fi
3384fi
3385echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3386echo "${ECHO_T}$ac_cv_header_stdc" >&6
3387if test $ac_cv_header_stdc = yes; then
3388
3389cat >>confdefs.h <<\_ACEOF
3390#define STDC_HEADERS 1
3391_ACEOF
3392
3393fi
3394
3395# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3407do
3408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409echo "$as_me:$LINENO: checking for $ac_header" >&5
3410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420$ac_includes_default
3421
3422#include <$ac_header>
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3447else
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451eval "$as_ac_Header=no"
3452fi
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454fi
3455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460_ACEOF
3461
3462fi
3463
3464done
3465
3466
bec39cab 3467
b4e70030 3468# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3469if test "${with_libunwind+set}" = set; then
b4e70030
JB
3470 withval="$with_libunwind"
3471 case "${withval}" in
bec39cab
AC
3472 yes) enable_libunwind=yes ;;
3473 no) enable_libunwind=no ;;
3474 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3475echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3476 { (exit 1); exit 1; }; } ;;
3477esac
3478else
3479
3480
3481for ac_header in libunwind.h
3482do
3483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3484if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485 echo "$as_me:$LINENO: checking for $ac_header" >&5
3486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489fi
b4e70030
JB
3490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3492else
3493 # Is the header compilable?
b4e70030
JB
3494echo "$as_me:$LINENO: checking $ac_header usability" >&5
3495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3496cat >conftest.$ac_ext <<_ACEOF
3497/* confdefs.h. */
3498_ACEOF
3499cat confdefs.h >>conftest.$ac_ext
3500cat >>conftest.$ac_ext <<_ACEOF
3501/* end confdefs.h. */
3502$ac_includes_default
3503#include <$ac_header>
3504_ACEOF
3505rm -f conftest.$ac_objext
3506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
b4e70030
JB
3514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
bec39cab
AC
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_header_compiler=yes
3528else
3529 echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
b4e70030 3532ac_header_compiler=no
bec39cab
AC
3533fi
3534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3535echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3536echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3537
3538# Is the header present?
b4e70030
JB
3539echo "$as_me:$LINENO: checking $ac_header presence" >&5
3540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3541cat >conftest.$ac_ext <<_ACEOF
3542/* confdefs.h. */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h. */
3547#include <$ac_header>
3548_ACEOF
3549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev/null; then
3557 if test -s conftest.err; then
3558 ac_cpp_err=$ac_c_preproc_warn_flag
3559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3560 else
3561 ac_cpp_err=
3562 fi
3563else
3564 ac_cpp_err=yes
3565fi
3566if test -z "$ac_cpp_err"; then
3567 ac_header_preproc=yes
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 ac_header_preproc=no
3573fi
3574rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3575echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3576echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3577
3578# So? What about this header?
3579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3580 yes:no: )
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3584echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3585 ac_header_preproc=yes
3586 ;;
3587 no:yes:* )
3588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3593echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3595echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3599echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3600 (
3601 cat <<\_ASBOX
3602## ------------------------------------------ ##
3603## Report this to the AC_PACKAGE_NAME lists. ##
3604## ------------------------------------------ ##
3605_ASBOX
3606 ) |
3607 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3608 ;;
3609esac
b4e70030
JB
3610echo "$as_me:$LINENO: checking for $ac_header" >&5
3611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3612if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615 eval "$as_ac_Header=\$ac_header_preproc"
3616fi
b4e70030
JB
3617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3619
3620fi
3621if test `eval echo '${'$as_ac_Header'}'` = yes; then
3622 cat >>confdefs.h <<_ACEOF
3623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3624_ACEOF
3625
3626fi
3627
3628done
3629
3630
3631for ac_header in libunwind-ia64.h
3632do
3633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3634if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635 echo "$as_me:$LINENO: checking for $ac_header" >&5
3636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3637if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639fi
b4e70030
JB
3640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3642else
3643 # Is the header compilable?
b4e70030
JB
3644echo "$as_me:$LINENO: checking $ac_header usability" >&5
3645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3646cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h. */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h. */
3652$ac_includes_default
3653#include <$ac_header>
3654_ACEOF
3655rm -f conftest.$ac_objext
3656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
b4e70030
JB
3664 { ac_try='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
bec39cab
AC
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_header_compiler=yes
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
b4e70030 3682ac_header_compiler=no
bec39cab
AC
3683fi
3684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3685echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3686echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3687
3688# Is the header present?
b4e70030
JB
3689echo "$as_me:$LINENO: checking $ac_header presence" >&5
3690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3691cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h. */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h. */
3697#include <$ac_header>
3698_ACEOF
3699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } >/dev/null; then
3707 if test -s conftest.err; then
3708 ac_cpp_err=$ac_c_preproc_warn_flag
3709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3710 else
3711 ac_cpp_err=
3712 fi
3713else
3714 ac_cpp_err=yes
3715fi
3716if test -z "$ac_cpp_err"; then
3717 ac_header_preproc=yes
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 ac_header_preproc=no
3723fi
3724rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3725echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3726echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3727
3728# So? What about this header?
3729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3730 yes:no: )
3731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3735 ac_header_preproc=yes
3736 ;;
3737 no:yes:* )
3738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3750 (
3751 cat <<\_ASBOX
3752## ------------------------------------------ ##
3753## Report this to the AC_PACKAGE_NAME lists. ##
3754## ------------------------------------------ ##
3755_ASBOX
3756 ) |
3757 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3758 ;;
3759esac
b4e70030
JB
3760echo "$as_me:$LINENO: checking for $ac_header" >&5
3761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3762if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765 eval "$as_ac_Header=\$ac_header_preproc"
3766fi
b4e70030
JB
3767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3769
3770fi
3771if test `eval echo '${'$as_ac_Header'}'` = yes; then
3772 cat >>confdefs.h <<_ACEOF
3773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3774_ACEOF
3775
3776fi
3777
3778done
3779
3780 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3781 enable_libunwind=yes;
3782 fi
3783
b4e70030 3784fi;
bec39cab
AC
3785
3786if test x"$enable_libunwind" = xyes; then
3787
3788for ac_header in libunwind.h
3789do
3790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3791if eval "test \"\${$as_ac_Header+set}\" = set"; then
3792 echo "$as_me:$LINENO: checking for $ac_header" >&5
3793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3794if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796fi
b4e70030
JB
3797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3799else
3800 # Is the header compilable?
b4e70030
JB
3801echo "$as_me:$LINENO: checking $ac_header usability" >&5
3802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3803cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h. */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h. */
3809$ac_includes_default
3810#include <$ac_header>
3811_ACEOF
3812rm -f conftest.$ac_objext
3813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
b4e70030
JB
3821 { ac_try='test -z "$ac_c_werror_flag"
3822 || test ! -s conftest.err'
bec39cab
AC
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; } &&
3828 { ac_try='test -s conftest.$ac_objext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_header_compiler=yes
3835else
3836 echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
b4e70030 3839ac_header_compiler=no
bec39cab
AC
3840fi
3841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3842echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3843echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3844
3845# Is the header present?
b4e70030
JB
3846echo "$as_me:$LINENO: checking $ac_header presence" >&5
3847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3848cat >conftest.$ac_ext <<_ACEOF
3849/* confdefs.h. */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h. */
3854#include <$ac_header>
3855_ACEOF
3856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3867 else
3868 ac_cpp_err=
3869 fi
3870else
3871 ac_cpp_err=yes
3872fi
3873if test -z "$ac_cpp_err"; then
3874 ac_header_preproc=yes
3875else
3876 echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 ac_header_preproc=no
3880fi
3881rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3883echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3884
3885# So? What about this header?
3886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3887 yes:no: )
3888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3892 ac_header_preproc=yes
3893 ;;
3894 no:yes:* )
3895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3907 (
3908 cat <<\_ASBOX
3909## ------------------------------------------ ##
3910## Report this to the AC_PACKAGE_NAME lists. ##
3911## ------------------------------------------ ##
3912_ASBOX
3913 ) |
3914 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3915 ;;
3916esac
b4e70030
JB
3917echo "$as_me:$LINENO: checking for $ac_header" >&5
3918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3919if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922 eval "$as_ac_Header=\$ac_header_preproc"
3923fi
b4e70030
JB
3924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3926
3927fi
3928if test `eval echo '${'$as_ac_Header'}'` = yes; then
3929 cat >>confdefs.h <<_ACEOF
3930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3931_ACEOF
3932
3933fi
3934
3935done
3936
3937
3938for ac_header in libunwind-ia64.h
3939do
3940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3941if eval "test \"\${$as_ac_Header+set}\" = set"; then
3942 echo "$as_me:$LINENO: checking for $ac_header" >&5
3943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3944if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946fi
b4e70030
JB
3947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3949else
3950 # Is the header compilable?
b4e70030
JB
3951echo "$as_me:$LINENO: checking $ac_header usability" >&5
3952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3953cat >conftest.$ac_ext <<_ACEOF
3954/* confdefs.h. */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h. */
3959$ac_includes_default
3960#include <$ac_header>
3961_ACEOF
3962rm -f conftest.$ac_objext
3963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
b4e70030
JB
3971 { ac_try='test -z "$ac_c_werror_flag"
3972 || test ! -s conftest.err'
bec39cab
AC
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_header_compiler=yes
3985else
3986 echo "$as_me: failed program was:" >&5
3987sed 's/^/| /' conftest.$ac_ext >&5
3988
b4e70030 3989ac_header_compiler=no
bec39cab
AC
3990fi
3991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3993echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3994
3995# Is the header present?
b4e70030
JB
3996echo "$as_me:$LINENO: checking $ac_header presence" >&5
3997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3998cat >conftest.$ac_ext <<_ACEOF
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
4004#include <$ac_header>
4005_ACEOF
4006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } >/dev/null; then
4014 if test -s conftest.err; then
4015 ac_cpp_err=$ac_c_preproc_warn_flag
4016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4017 else
4018 ac_cpp_err=
4019 fi
4020else
4021 ac_cpp_err=yes
4022fi
4023if test -z "$ac_cpp_err"; then
4024 ac_header_preproc=yes
4025else
4026 echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 ac_header_preproc=no
4030fi
4031rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4033echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4034
4035# So? What about this header?
4036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4037 yes:no: )
4038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4042 ac_header_preproc=yes
4043 ;;
4044 no:yes:* )
4045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4057 (
4058 cat <<\_ASBOX
4059## ------------------------------------------ ##
4060## Report this to the AC_PACKAGE_NAME lists. ##
4061## ------------------------------------------ ##
4062_ASBOX
4063 ) |
4064 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4065 ;;
4066esac
b4e70030
JB
4067echo "$as_me:$LINENO: checking for $ac_header" >&5
4068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4069if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072 eval "$as_ac_Header=\$ac_header_preproc"
4073fi
b4e70030
JB
4074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4076
4077fi
4078if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079 cat >>confdefs.h <<_ACEOF
4080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4081_ACEOF
4082
4083fi
4084
4085done
4086
60ca704f
SE
4087
4088cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4089#define HAVE_LIBUNWIND 1
4090_ACEOF
4091
4092 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4093 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4094 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4095fi
4096
4097# Profiling support.
b4e70030 4098# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4099if test "${enable_profiling+set}" = set; then
b4e70030
JB
4100 enableval="$enable_profiling"
4101 case $enableval in
bec39cab
AC
4102 yes | no)
4103 ;;
4104 *)
4105 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4106echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4107 { (exit 1); exit 1; }; } ;;
4108 esac
4109else
4110 enable_profiling=no
b4e70030 4111fi;
bec39cab
AC
4112
4113
4114
4115for ac_func in monstartup _mcleanup
4116do
4117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4118echo "$as_me:$LINENO: checking for $ac_func" >&5
4119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4120if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123 cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h. */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h. */
4129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4131#define $ac_func innocuous_$ac_func
4132
4133/* System header to define __stub macros and hopefully few prototypes,
4134 which can conflict with char $ac_func (); below.
4135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 <limits.h> exists even on freestanding compilers. */
4137
4138#ifdef __STDC__
4139# include <limits.h>
4140#else
4141# include <assert.h>
4142#endif
4143
4144#undef $ac_func
4145
b4e70030 4146/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4147#ifdef __cplusplus
4148extern "C"
b4e70030 4149{
bec39cab 4150#endif
b4e70030
JB
4151/* We use char because int might match the return type of a gcc2
4152 builtin and then its argument prototype would still apply. */
bec39cab
AC
4153char $ac_func ();
4154/* The GNU C library defines this for functions which it implements
4155 to always fail with ENOSYS. Some functions are actually named
4156 something starting with __ and the normal name is an alias. */
b4e70030 4157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4158choke me
b4e70030
JB
4159#else
4160char (*f) () = $ac_func;
4161#endif
4162#ifdef __cplusplus
4163}
bec39cab
AC
4164#endif
4165
4166int
4167main ()
4168{
b4e70030 4169return f != $ac_func;
bec39cab
AC
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174rm -f conftest.$ac_objext conftest$ac_exeext
4175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4176 (eval $ac_link) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
b4e70030
JB
4183 { ac_try='test -z "$ac_c_werror_flag"
4184 || test ! -s conftest.err'
bec39cab
AC
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 eval "$as_ac_var=yes"
4197else
4198 echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
b4e70030 4201eval "$as_ac_var=no"
bec39cab
AC
4202fi
4203rm -f conftest.err conftest.$ac_objext \
4204 conftest$ac_exeext conftest.$ac_ext
4205fi
b4e70030
JB
4206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4207echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4208if test `eval echo '${'$as_ac_var'}'` = yes; then
4209 cat >>confdefs.h <<_ACEOF
4210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4211_ACEOF
4212
4213fi
4214done
4215
b4e70030
JB
4216echo "$as_me:$LINENO: checking for _etext" >&5
4217echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4218if test "${ac_cv_var__etext+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221 cat >conftest.$ac_ext <<_ACEOF
4222/* confdefs.h. */
4223_ACEOF
4224cat confdefs.h >>conftest.$ac_ext
4225cat >>conftest.$ac_ext <<_ACEOF
4226/* end confdefs.h. */
4227#include <stdlib.h>
4228extern char _etext;
4229
4230int
4231main ()
4232{
4233free (&_etext);
4234 ;
4235 return 0;
4236}
4237_ACEOF
4238rm -f conftest.$ac_objext conftest$ac_exeext
4239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4240 (eval $ac_link) 2>conftest.er1
4241 ac_status=$?
4242 grep -v '^ *+' conftest.er1 >conftest.err
4243 rm -f conftest.er1
4244 cat conftest.err >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } &&
b4e70030
JB
4247 { ac_try='test -z "$ac_c_werror_flag"
4248 || test ! -s conftest.err'
bec39cab
AC
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try='test -s conftest$ac_exeext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 (eval $ac_try) 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4260 ac_cv_var__etext=yes
4261else
4262 echo "$as_me: failed program was:" >&5
4263sed 's/^/| /' conftest.$ac_ext >&5
4264
b4e70030 4265ac_cv_var__etext=no
bec39cab
AC
4266fi
4267rm -f conftest.err conftest.$ac_objext \
4268 conftest$ac_exeext conftest.$ac_ext
4269fi
b4e70030
JB
4270echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4271echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4272if test $ac_cv_var__etext = yes; then
4273
4274cat >>confdefs.h <<\_ACEOF
4275#define HAVE__ETEXT 1
4276_ACEOF
4277
4278fi
4279if test "$enable_profiling" = yes ; then
4280 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4281 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4282echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4283 { (exit 1); exit 1; }; }
4284 fi
4285 PROFILE_CFLAGS=-pg
4286 OLD_CFLAGS="$CFLAGS"
4287 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4288
b4e70030
JB
4289 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4290echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4291if test "${ac_cv_cc_supports_pg+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4293else
bec39cab
AC
4294 cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h. */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h. */
4300
4301int
4302main ()
4303{
4304int x;
4305 ;
4306 return 0;
4307}
4308_ACEOF
4309rm -f conftest.$ac_objext
4310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311 (eval $ac_compile) 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
b4e70030
JB
4318 { ac_try='test -z "$ac_c_werror_flag"
4319 || test ! -s conftest.err'
bec39cab
AC
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4331 ac_cv_cc_supports_pg=yes
4332else
4333 echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
4335
b4e70030 4336ac_cv_cc_supports_pg=no
bec39cab
AC
4337fi
4338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4339fi
b4e70030
JB
4340echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4341echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4342
4343 if test $ac_cv_cc_supports_pg = no; then
4344 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4345echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4346 { (exit 1); exit 1; }; }
4347 fi
4348
4349 CFLAGS="$OLD_CFLAGS"
4350fi
4351
4352# --------------------- #
4353# Checks for programs. #
4354# --------------------- #
4355
4356for ac_prog in gawk mawk nawk awk
4357do
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359set dummy $ac_prog; ac_word=$2
b4e70030
JB
4360echo "$as_me:$LINENO: checking for $ac_word" >&5
4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4362if test "${ac_cv_prog_AWK+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365 if test -n "$AWK"; then
4366 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4367else
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4375 ac_cv_prog_AWK="$ac_prog"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379done
4380done
4381
4382fi
4383fi
4384AWK=$ac_cv_prog_AWK
4385if test -n "$AWK"; then
b4e70030
JB
4386 echo "$as_me:$LINENO: result: $AWK" >&5
4387echo "${ECHO_T}$AWK" >&6
bec39cab 4388else
b4e70030
JB
4389 echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
bec39cab
AC
4391fi
4392
4393 test -n "$AWK" && break
4394done
4395
4396# Find a good install program. We prefer a C program (faster),
4397# so one script is as good as another. But avoid the broken or
4398# incompatible versions:
4399# SysV /etc/install, /usr/sbin/install
4400# SunOS /usr/etc/install
4401# IRIX /sbin/install
4402# AIX /bin/install
4403# AmigaOS /C/install, which installs bootblocks on floppy discs
4404# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4405# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4406# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4407# OS/2's system install, which has a completely different semantic
4408# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4409echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4410echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4411if test -z "$INSTALL"; then
4412if test "${ac_cv_path_install+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 # Account for people who put trailing slashes in PATH elements.
4421case $as_dir/ in
4422 ./ | .// | /cC/* | \
4423 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4424 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4425 /usr/ucb/* ) ;;
c906108c 4426 *)
bec39cab
AC
4427 # OSF1 and SCO ODT 3.0 have their own names for install.
4428 # Don't use installbsd from OSF since it installs stuff as root
4429 # by default.
4430 for ac_prog in ginstall scoinst install; do
4431 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4432 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4433 if test $ac_prog = install &&
4434 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4435 # AIX install. It has an incompatible calling convention.
4436 :
4437 elif test $ac_prog = install &&
4438 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4439 # program-specific install script used by HP pwplus--don't use.
4440 :
4441 else
4442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4443 break 3
4444 fi
4445 fi
4446 done
4447 done
4448 ;;
c906108c 4449esac
bec39cab
AC
4450done
4451
4452
4453fi
4454 if test "${ac_cv_path_install+set}" = set; then
4455 INSTALL=$ac_cv_path_install
4456 else
b4e70030
JB
4457 # As a last resort, use the slow shell script. We don't cache a
4458 # path for INSTALL within a source directory, because that will
bec39cab 4459 # break other packages using the cache if that directory is
b4e70030 4460 # removed, or if the path is relative.
bec39cab
AC
4461 INSTALL=$ac_install_sh
4462 fi
4463fi
b4e70030
JB
4464echo "$as_me:$LINENO: result: $INSTALL" >&5
4465echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4466
4467# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4468# It thinks the first close brace ends the variable substitution.
4469test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4470
4471test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4472
4473test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4474
b4e70030
JB
4475echo "$as_me:$LINENO: checking whether ln -s works" >&5
4476echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4477LN_S=$as_ln_s
4478if test "$LN_S" = "ln -s"; then
b4e70030
JB
4479 echo "$as_me:$LINENO: result: yes" >&5
4480echo "${ECHO_T}yes" >&6
bec39cab 4481else
b4e70030
JB
4482 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4483echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4484fi
4485
4486if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4488set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4489echo "$as_me:$LINENO: checking for $ac_word" >&5
4490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4491if test "${ac_cv_prog_RANLIB+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494 if test -n "$RANLIB"; then
4495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4496else
4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH
4499do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4504 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508done
4509done
4510
4511fi
4512fi
4513RANLIB=$ac_cv_prog_RANLIB
4514if test -n "$RANLIB"; then
b4e70030
JB
4515 echo "$as_me:$LINENO: result: $RANLIB" >&5
4516echo "${ECHO_T}$RANLIB" >&6
bec39cab 4517else
b4e70030
JB
4518 echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6
bec39cab
AC
4520fi
4521
4522fi
4523if test -z "$ac_cv_prog_RANLIB"; then
4524 ac_ct_RANLIB=$RANLIB
4525 # Extract the first word of "ranlib", so it can be a program name with args.
4526set dummy ranlib; ac_word=$2
b4e70030
JB
4527echo "$as_me:$LINENO: checking for $ac_word" >&5
4528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4529if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 if test -n "$ac_ct_RANLIB"; then
4533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4534else
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4542 ac_cv_prog_ac_ct_RANLIB="ranlib"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546done
4547done
4548
b4e70030 4549 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4550fi
4551fi
4552ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4553if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4554 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4555echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4556else
b4e70030
JB
4557 echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6
bec39cab
AC
4559fi
4560
b4e70030 4561 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4562else
4563 RANLIB="$ac_cv_prog_RANLIB"
4564fi
4565
4566for ac_prog in 'bison -y' byacc
4567do
4568 # Extract the first word of "$ac_prog", so it can be a program name with args.
4569set dummy $ac_prog; ac_word=$2
b4e70030
JB
4570echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4572if test "${ac_cv_prog_YACC+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 if test -n "$YACC"; then
4576 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4585 ac_cv_prog_YACC="$ac_prog"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589done
4590done
4591
4592fi
4593fi
4594YACC=$ac_cv_prog_YACC
4595if test -n "$YACC"; then
b4e70030
JB
4596 echo "$as_me:$LINENO: result: $YACC" >&5
4597echo "${ECHO_T}$YACC" >&6
bec39cab 4598else
b4e70030
JB
4599 echo "$as_me:$LINENO: result: no" >&5
4600echo "${ECHO_T}no" >&6
bec39cab
AC
4601fi
4602
4603 test -n "$YACC" && break
4604done
4605test -n "$YACC" || YACC="yacc"
4606
4607
4608if test -n "$ac_tool_prefix"; then
4609 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4610set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4611echo "$as_me:$LINENO: checking for $ac_word" >&5
4612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4613if test "${ac_cv_prog_AR+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616 if test -n "$AR"; then
4617 ac_cv_prog_AR="$AR" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4626 ac_cv_prog_AR="${ac_tool_prefix}ar"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4629 fi
4630done
4631done
4632
4633fi
4634fi
4635AR=$ac_cv_prog_AR
4636if test -n "$AR"; then
b4e70030
JB
4637 echo "$as_me:$LINENO: result: $AR" >&5
4638echo "${ECHO_T}$AR" >&6
bec39cab 4639else
b4e70030
JB
4640 echo "$as_me:$LINENO: result: no" >&5
4641echo "${ECHO_T}no" >&6
bec39cab
AC
4642fi
4643
4644fi
4645if test -z "$ac_cv_prog_AR"; then
4646 ac_ct_AR=$AR
4647 # Extract the first word of "ar", so it can be a program name with args.
4648set dummy ar; ac_word=$2
b4e70030
JB
4649echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4651if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 if test -n "$ac_ct_AR"; then
4655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4664 ac_cv_prog_ac_ct_AR="ar"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669done
4670
4671fi
4672fi
4673ac_ct_AR=$ac_cv_prog_ac_ct_AR
4674if test -n "$ac_ct_AR"; then
b4e70030
JB
4675 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4676echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4677else
b4e70030
JB
4678 echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6
bec39cab
AC
4680fi
4681
b4e70030 4682 AR=$ac_ct_AR
bec39cab
AC
4683else
4684 AR="$ac_cv_prog_AR"
4685fi
4686
4687if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4689set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4690echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4692if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if test -n "$DLLTOOL"; then
4696 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4705 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710done
4711
4712fi
4713fi
4714DLLTOOL=$ac_cv_prog_DLLTOOL
4715if test -n "$DLLTOOL"; then
b4e70030
JB
4716 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4717echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4718else
b4e70030
JB
4719 echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6
bec39cab
AC
4721fi
4722
4723fi
4724if test -z "$ac_cv_prog_DLLTOOL"; then
4725 ac_ct_DLLTOOL=$DLLTOOL
4726 # Extract the first word of "dlltool", so it can be a program name with args.
4727set dummy dlltool; ac_word=$2
b4e70030
JB
4728echo "$as_me:$LINENO: checking for $ac_word" >&5
4729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4730if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 if test -n "$ac_ct_DLLTOOL"; then
4734 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4743 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747done
4748done
4749
4750fi
4751fi
4752ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4753if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4754 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4755echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4756else
b4e70030
JB
4757 echo "$as_me:$LINENO: result: no" >&5
4758echo "${ECHO_T}no" >&6
bec39cab
AC
4759fi
4760
b4e70030 4761 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4762else
4763 DLLTOOL="$ac_cv_prog_DLLTOOL"
4764fi
4765
4766if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4768set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4769echo "$as_me:$LINENO: checking for $ac_word" >&5
4770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4771if test "${ac_cv_prog_WINDRES+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774 if test -n "$WINDRES"; then
4775 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4776else
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4784 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788done
4789done
4790
4791fi
4792fi
4793WINDRES=$ac_cv_prog_WINDRES
4794if test -n "$WINDRES"; then
b4e70030
JB
4795 echo "$as_me:$LINENO: result: $WINDRES" >&5
4796echo "${ECHO_T}$WINDRES" >&6
bec39cab 4797else
b4e70030
JB
4798 echo "$as_me:$LINENO: result: no" >&5
4799echo "${ECHO_T}no" >&6
bec39cab
AC
4800fi
4801
4802fi
4803if test -z "$ac_cv_prog_WINDRES"; then
4804 ac_ct_WINDRES=$WINDRES
4805 # Extract the first word of "windres", so it can be a program name with args.
4806set dummy windres; ac_word=$2
b4e70030
JB
4807echo "$as_me:$LINENO: checking for $ac_word" >&5
4808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4809if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812 if test -n "$ac_ct_WINDRES"; then
4813 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4822 ac_cv_prog_ac_ct_WINDRES="windres"
4823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4825 fi
4826done
4827done
4828
4829fi
4830fi
4831ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4832if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4833 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4834echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4835else
b4e70030
JB
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
c906108c 4838fi
bec39cab 4839
b4e70030 4840 WINDRES=$ac_ct_WINDRES
c906108c 4841else
bec39cab 4842 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4843fi
4844
bec39cab
AC
4845
4846# Needed for GNU/Hurd.
4847if test -n "$ac_tool_prefix"; then
4848 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4849set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4850echo "$as_me:$LINENO: checking for $ac_word" >&5
4851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4852if test "${ac_cv_prog_MIG+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4854else
bec39cab
AC
4855 if test -n "$MIG"; then
4856 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4857else
4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4865 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869done
4870done
4871
c906108c 4872fi
bec39cab
AC
4873fi
4874MIG=$ac_cv_prog_MIG
4875if test -n "$MIG"; then
b4e70030
JB
4876 echo "$as_me:$LINENO: result: $MIG" >&5
4877echo "${ECHO_T}$MIG" >&6
c906108c 4878else
b4e70030
JB
4879 echo "$as_me:$LINENO: result: no" >&5
4880echo "${ECHO_T}no" >&6
c906108c
SS
4881fi
4882
bec39cab
AC
4883fi
4884if test -z "$ac_cv_prog_MIG"; then
4885 ac_ct_MIG=$MIG
4886 # Extract the first word of "mig", so it can be a program name with args.
4887set dummy mig; ac_word=$2
b4e70030
JB
4888echo "$as_me:$LINENO: checking for $ac_word" >&5
4889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4890if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893 if test -n "$ac_ct_MIG"; then
4894 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4895else
4896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4903 ac_cv_prog_ac_ct_MIG="mig"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4906 fi
4907done
4908done
c906108c 4909
bec39cab
AC
4910fi
4911fi
4912ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4913if test -n "$ac_ct_MIG"; then
b4e70030
JB
4914 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4915echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4916else
b4e70030
JB
4917 echo "$as_me:$LINENO: result: no" >&5
4918echo "${ECHO_T}no" >&6
bec39cab 4919fi
c906108c 4920
b4e70030 4921 MIG=$ac_ct_MIG
bec39cab
AC
4922else
4923 MIG="$ac_cv_prog_MIG"
4924fi
c906108c 4925
c906108c 4926
bec39cab
AC
4927# ---------------------- #
4928# Checks for libraries. #
4929# ---------------------- #
c906108c 4930
bec39cab 4931# We might need to link with -lm; most simulators need it.
c906108c 4932
b4e70030
JB
4933echo "$as_me:$LINENO: checking for main in -lm" >&5
4934echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
4935if test "${ac_cv_lib_m_main+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937else
4938 ac_check_lib_save_LIBS=$LIBS
4939LIBS="-lm $LIBS"
4940cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
c906108c 4946
c906108c 4947
bec39cab
AC
4948int
4949main ()
4950{
b4e70030 4951main ();
bec39cab
AC
4952 ;
4953 return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext conftest$ac_exeext
4957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
b4e70030
JB
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
bec39cab
AC
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest$ac_exeext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_cv_lib_m_main=yes
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
b4e70030 4983ac_cv_lib_m_main=no
bec39cab
AC
4984fi
4985rm -f conftest.err conftest.$ac_objext \
4986 conftest$ac_exeext conftest.$ac_ext
4987LIBS=$ac_check_lib_save_LIBS
4988fi
b4e70030
JB
4989echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4990echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
4991if test $ac_cv_lib_m_main = yes; then
4992 cat >>confdefs.h <<_ACEOF
4993#define HAVE_LIBM 1
4994_ACEOF
4995
4996 LIBS="-lm $LIBS"
c906108c 4997
c906108c 4998fi
bec39cab
AC
4999
5000
5001# We need to link with -lw to get `wctype' on Solaris before Solaris
5002# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5003# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5004# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
5005echo "$as_me:$LINENO: checking for wctype" >&5
5006echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
5007if test "${ac_cv_func_wctype+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010 cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h. */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h. */
5016/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5018#define wctype innocuous_wctype
5019
5020/* System header to define __stub macros and hopefully few prototypes,
5021 which can conflict with char wctype (); below.
5022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023 <limits.h> exists even on freestanding compilers. */
5024
5025#ifdef __STDC__
5026# include <limits.h>
5027#else
5028# include <assert.h>
5029#endif
5030
5031#undef wctype
5032
b4e70030 5033/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5034#ifdef __cplusplus
5035extern "C"
b4e70030 5036{
bec39cab 5037#endif
b4e70030
JB
5038/* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
bec39cab
AC
5040char wctype ();
5041/* The GNU C library defines this for functions which it implements
5042 to always fail with ENOSYS. Some functions are actually named
5043 something starting with __ and the normal name is an alias. */
b4e70030 5044#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5045choke me
b4e70030
JB
5046#else
5047char (*f) () = wctype;
5048#endif
5049#ifdef __cplusplus
5050}
bec39cab
AC
5051#endif
5052
5053int
5054main ()
5055{
b4e70030 5056return f != wctype;
bec39cab
AC
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061rm -f conftest.$ac_objext conftest$ac_exeext
5062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5063 (eval $ac_link) 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
b4e70030
JB
5070 { ac_try='test -z "$ac_c_werror_flag"
5071 || test ! -s conftest.err'
bec39cab
AC
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest$ac_exeext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5083 ac_cv_func_wctype=yes
5084else
5085 echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
b4e70030 5088ac_cv_func_wctype=no
bec39cab
AC
5089fi
5090rm -f conftest.err conftest.$ac_objext \
5091 conftest$ac_exeext conftest.$ac_ext
5092fi
b4e70030
JB
5093echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5094echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5095if test $ac_cv_func_wctype = yes; then
5096 :
c906108c 5097else
c906108c 5098
b4e70030
JB
5099echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5100echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5101if test "${ac_cv_lib_w_wctype+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 ac_check_lib_save_LIBS=$LIBS
5105LIBS="-lw $LIBS"
5106cat >conftest.$ac_ext <<_ACEOF
5107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
c906108c 5112
b4e70030 5113/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5114#ifdef __cplusplus
5115extern "C"
5116#endif
b4e70030
JB
5117/* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
bec39cab
AC
5119char wctype ();
5120int
5121main ()
5122{
b4e70030 5123wctype ();
bec39cab
AC
5124 ;
5125 return 0;
5126}
5127_ACEOF
5128rm -f conftest.$ac_objext conftest$ac_exeext
5129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5130 (eval $ac_link) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
b4e70030
JB
5137 { ac_try='test -z "$ac_c_werror_flag"
5138 || test ! -s conftest.err'
bec39cab
AC
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try='test -s conftest$ac_exeext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_lib_w_wctype=yes
5151else
5152 echo "$as_me: failed program was:" >&5
5153sed 's/^/| /' conftest.$ac_ext >&5
5154
b4e70030 5155ac_cv_lib_w_wctype=no
bec39cab
AC
5156fi
5157rm -f conftest.err conftest.$ac_objext \
5158 conftest$ac_exeext conftest.$ac_ext
5159LIBS=$ac_check_lib_save_LIBS
5160fi
b4e70030
JB
5161echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5162echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5163if test $ac_cv_lib_w_wctype = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165#define HAVE_LIBW 1
5166_ACEOF
c906108c 5167
bec39cab 5168 LIBS="-lw $LIBS"
c906108c 5169
bec39cab 5170fi
c906108c 5171
bec39cab 5172fi
c906108c 5173
ddc9cd0f 5174
bec39cab 5175# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5176echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5177echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5178if test "${ac_cv_search_gethostbyname+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 ac_func_search_save_LIBS=$LIBS
b4e70030 5182ac_cv_search_gethostbyname=no
bec39cab
AC
5183cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h. */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h. */
ddc9cd0f 5189
b4e70030 5190/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5191#ifdef __cplusplus
5192extern "C"
5193#endif
b4e70030
JB
5194/* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
bec39cab
AC
5196char gethostbyname ();
5197int
5198main ()
5199{
b4e70030 5200gethostbyname ();
bec39cab
AC
5201 ;
5202 return 0;
5203}
5204_ACEOF
b4e70030 5205rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5207 (eval $ac_link) 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
b4e70030
JB
5214 { ac_try='test -z "$ac_c_werror_flag"
5215 || test ! -s conftest.err'
bec39cab
AC
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; } &&
5221 { ac_try='test -s conftest$ac_exeext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 (eval $ac_try) 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
b4e70030 5227 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5228else
5229 echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5231
bec39cab
AC
5232fi
5233rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5234 conftest$ac_exeext conftest.$ac_ext
5235if test "$ac_cv_search_gethostbyname" = no; then
5236 for ac_lib in nsl; do
5237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5238 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
ddc9cd0f 5244
b4e70030 5245/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5246#ifdef __cplusplus
5247extern "C"
5248#endif
b4e70030
JB
5249/* We use char because int might match the return type of a gcc2
5250 builtin and then its argument prototype would still apply. */
5251char gethostbyname ();
bec39cab
AC
5252int
5253main ()
5254{
b4e70030 5255gethostbyname ();
bec39cab
AC
5256 ;
5257 return 0;
5258}
5259_ACEOF
b4e70030 5260rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5262 (eval $ac_link) 2>conftest.er1
5263 ac_status=$?
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
b4e70030
JB
5269 { ac_try='test -z "$ac_c_werror_flag"
5270 || test ! -s conftest.err'
bec39cab
AC
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; } &&
5276 { ac_try='test -s conftest$ac_exeext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
b4e70030
JB
5282 ac_cv_search_gethostbyname="-l$ac_lib"
5283break
bec39cab
AC
5284else
5285 echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288fi
5289rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5290 conftest$ac_exeext conftest.$ac_ext
5291 done
bec39cab
AC
5292fi
5293LIBS=$ac_func_search_save_LIBS
5294fi
b4e70030
JB
5295echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5296echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5297if test "$ac_cv_search_gethostbyname" != no; then
5298 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5299
bec39cab 5300fi
96baa820 5301
c906108c 5302
b4e70030
JB
5303# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5304echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5305echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5306if test "${ac_cv_search_socketpair+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 ac_func_search_save_LIBS=$LIBS
5310ac_cv_search_socketpair=no
5311cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h. */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h. */
5317
5318/* Override any gcc2 internal prototype to avoid an error. */
5319#ifdef __cplusplus
5320extern "C"
5321#endif
5322/* We use char because int might match the return type of a gcc2
5323 builtin and then its argument prototype would still apply. */
5324char socketpair ();
5325int
5326main ()
5327{
5328socketpair ();
5329 ;
5330 return 0;
5331}
5332_ACEOF
5333rm -f conftest.$ac_objext conftest$ac_exeext
5334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5335 (eval $ac_link) 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -z "$ac_c_werror_flag"
5343 || test ! -s conftest.err'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; } &&
5349 { ac_try='test -s conftest$ac_exeext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_cv_search_socketpair="none required"
5356else
5357 echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360fi
5361rm -f conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363if test "$ac_cv_search_socketpair" = no; then
5364 for ac_lib in socket; do
5365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5366 cat >conftest.$ac_ext <<_ACEOF
5367/* confdefs.h. */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h. */
5372
5373/* Override any gcc2 internal prototype to avoid an error. */
5374#ifdef __cplusplus
5375extern "C"
5376#endif
5377/* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5379char socketpair ();
5380int
5381main ()
5382{
5383socketpair ();
5384 ;
5385 return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext conftest$ac_exeext
5389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5390 (eval $ac_link) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest$ac_exeext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_cv_search_socketpair="-l$ac_lib"
5411break
5412else
5413 echo "$as_me: failed program was:" >&5
5414sed 's/^/| /' conftest.$ac_ext >&5
5415
5416fi
5417rm -f conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5419 done
5420fi
5421LIBS=$ac_func_search_save_LIBS
5422fi
5423echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5424echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5425if test "$ac_cv_search_socketpair" != no; then
5426 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5427
5428fi
5429
5430
5431# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5432#
5433# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5434# curses library because the latter might not provide all the
5435# functionality we need. However, this leads to problems on systems
5436# where the linker searches /usr/local/lib, but the compiler doesn't
5437# search /usr/local/include, if ncurses is installed in /usr/local. A
5438# default installation of ncurses on alpha*-dec-osf* will lead to such
5439# a situation.
b4e70030
JB
5440echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5441echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5442if test "${ac_cv_search_waddstr+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 ac_func_search_save_LIBS=$LIBS
b4e70030 5446ac_cv_search_waddstr=no
bec39cab
AC
5447cat >conftest.$ac_ext <<_ACEOF
5448/* confdefs.h. */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
5452/* end confdefs.h. */
c906108c 5453
b4e70030 5454/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5455#ifdef __cplusplus
5456extern "C"
5457#endif
b4e70030
JB
5458/* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
bec39cab
AC
5460char waddstr ();
5461int
5462main ()
5463{
b4e70030 5464waddstr ();
bec39cab
AC
5465 ;
5466 return 0;
5467}
5468_ACEOF
b4e70030 5469rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5471 (eval $ac_link) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
b4e70030
JB
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
bec39cab
AC
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
b4e70030 5491 ac_cv_search_waddstr="none required"
bec39cab
AC
5492else
5493 echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5495
5496fi
bec39cab 5497rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5498 conftest$ac_exeext conftest.$ac_ext
5499if test "$ac_cv_search_waddstr" = no; then
5500 for ac_lib in ncurses cursesX curses; do
5501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5502 cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h. */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h. */
5508
5509/* Override any gcc2 internal prototype to avoid an error. */
5510#ifdef __cplusplus
5511extern "C"
5512#endif
5513/* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5515char waddstr ();
5516int
5517main ()
5518{
5519waddstr ();
5520 ;
5521 return 0;
5522}
5523_ACEOF
5524rm -f conftest.$ac_objext conftest$ac_exeext
5525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5526 (eval $ac_link) 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -z "$ac_c_werror_flag"
5534 || test ! -s conftest.err'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; } &&
5540 { ac_try='test -s conftest$ac_exeext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 ac_cv_search_waddstr="-l$ac_lib"
5547break
4e8d927d 5548else
b4e70030
JB
5549 echo "$as_me: failed program was:" >&5
5550sed 's/^/| /' conftest.$ac_ext >&5
5551
5552fi
5553rm -f conftest.err conftest.$ac_objext \
5554 conftest$ac_exeext conftest.$ac_ext
5555 done
1ba607ad 5556fi
bec39cab
AC
5557LIBS=$ac_func_search_save_LIBS
5558fi
b4e70030
JB
5559echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5560echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5561if test "$ac_cv_search_waddstr" != no; then
5562 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5563
8bb2c122 5564fi
8bb2c122 5565
8bb2c122 5566
bec39cab
AC
5567# Since GDB uses Readline, we need termcap functionality. In many
5568# cases this will be provided by the curses library, but some systems
5569# have a seperate termcap library, or no curses library at all.
8bb2c122 5570
bec39cab
AC
5571case $host_os in
5572 cygwin*)
5573 if test -d $srcdir/libtermcap; then
5574 LIBS="../libtermcap/libtermcap.a $LIBS"
5575 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5576 fi ;;
5577 go32* | *djgpp*)
5578 ac_cv_search_tgetent="none required"
5579 ;;
7ef34f2c
MM
5580 *mingw32*)
5581 ac_cv_search_tgetent="none required"
5582 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5583 ;;
bec39cab 5584esac
627af7ea 5585
bec39cab 5586# These are the libraries checked by Readline.
b4e70030
JB
5587echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5588echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5589if test "${ac_cv_search_tgetent+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592 ac_func_search_save_LIBS=$LIBS
b4e70030 5593ac_cv_search_tgetent=no
bec39cab
AC
5594cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h. */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h. */
5600
b4e70030 5601/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5602#ifdef __cplusplus
5603extern "C"
5604#endif
b4e70030
JB
5605/* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
bec39cab
AC
5607char tgetent ();
5608int
5609main ()
5610{
b4e70030 5611tgetent ();
bec39cab
AC
5612 ;
5613 return 0;
5614}
5615_ACEOF
b4e70030 5616rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618 (eval $ac_link) 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } &&
b4e70030
JB
5625 { ac_try='test -z "$ac_c_werror_flag"
5626 || test ! -s conftest.err'
bec39cab
AC
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; } &&
5632 { ac_try='test -s conftest$ac_exeext'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
b4e70030 5638 ac_cv_search_tgetent="none required"
627af7ea 5639else
bec39cab
AC
5640 echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5642
627af7ea 5643fi
bec39cab 5644rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5645 conftest$ac_exeext conftest.$ac_ext
5646if test "$ac_cv_search_tgetent" = no; then
5647 for ac_lib in termcap tinfo curses ncurses; do
5648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5649 cat >conftest.$ac_ext <<_ACEOF
5650/* confdefs.h. */
5651_ACEOF
5652cat confdefs.h >>conftest.$ac_ext
5653cat >>conftest.$ac_ext <<_ACEOF
5654/* end confdefs.h. */
5655
5656/* Override any gcc2 internal prototype to avoid an error. */
5657#ifdef __cplusplus
5658extern "C"
5659#endif
5660/* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5662char tgetent ();
5663int
5664main ()
5665{
5666tgetent ();
5667 ;
5668 return 0;
5669}
5670_ACEOF
5671rm -f conftest.$ac_objext conftest$ac_exeext
5672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5673 (eval $ac_link) 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -z "$ac_c_werror_flag"
5681 || test ! -s conftest.err'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; } &&
5687 { ac_try='test -s conftest$ac_exeext'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 (eval $ac_try) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5693 ac_cv_search_tgetent="-l$ac_lib"
5694break
4e8d927d 5695else
b4e70030
JB
5696 echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699fi
5700rm -f conftest.err conftest.$ac_objext \
5701 conftest$ac_exeext conftest.$ac_ext
5702 done
bec39cab
AC
5703fi
5704LIBS=$ac_func_search_save_LIBS
5705fi
b4e70030
JB
5706echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5707echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5708if test "$ac_cv_search_tgetent" != no; then
5709 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5710
06825bd1
MK
5711fi
5712
06825bd1 5713
bec39cab
AC
5714if test "$ac_cv_search_tgetent" = no; then
5715 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5716echo "$as_me: error: no termcap library found" >&2;}
5717 { (exit 1); exit 1; }; }
8ee53726
MK
5718fi
5719
3841debe
DJ
5720
5721 if test "X$prefix" = "XNONE"; then
5722 acl_final_prefix="$ac_default_prefix"
5723 else
5724 acl_final_prefix="$prefix"
5725 fi
5726 if test "X$exec_prefix" = "XNONE"; then
5727 acl_final_exec_prefix='${prefix}'
5728 else
5729 acl_final_exec_prefix="$exec_prefix"
5730 fi
5731 acl_save_prefix="$prefix"
5732 prefix="$acl_final_prefix"
5733 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5734 prefix="$acl_save_prefix"
5735
5736
5737# Check whether --with-gnu-ld or --without-gnu-ld was given.
5738if test "${with_gnu_ld+set}" = set; then
5739 withval="$with_gnu_ld"
5740 test "$withval" = no || with_gnu_ld=yes
5741else
5742 with_gnu_ld=no
5743fi;
5744# Prepare PATH_SEPARATOR.
5745# The user is always right.
5746if test "${PATH_SEPARATOR+set}" != set; then
5747 echo "#! /bin/sh" >conf$$.sh
5748 echo "exit 0" >>conf$$.sh
5749 chmod +x conf$$.sh
5750 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5751 PATH_SEPARATOR=';'
5752 else
5753 PATH_SEPARATOR=:
5754 fi
5755 rm -f conf$$.sh
5756fi
5757ac_prog=ld
5758if test "$GCC" = yes; then
5759 # Check if gcc -print-prog-name=ld gives a path.
5760 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5761echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5762 case $host in
5763 *-*-mingw*)
5764 # gcc leaves a trailing carriage return which upsets mingw
5765 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5766 *)
5767 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5768 esac
5769 case $ac_prog in
5770 # Accept absolute paths.
5771 [\\/]* | [A-Za-z]:[\\/]*)
5772 re_direlt='/[^/][^/]*/\.\./'
5773 # Canonicalize the path of ld
5774 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5775 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5776 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5777 done
5778 test -z "$LD" && LD="$ac_prog"
5779 ;;
5780 "")
5781 # If it fails, then pretend we aren't using GCC.
5782 ac_prog=ld
5783 ;;
5784 *)
5785 # If it is relative, then search for the first ld in PATH.
5786 with_gnu_ld=unknown
5787 ;;
5788 esac
5789elif test "$with_gnu_ld" = yes; then
5790 echo "$as_me:$LINENO: checking for GNU ld" >&5
5791echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5792else
5793 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5794echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5795fi
5796if test "${acl_cv_path_LD+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799 if test -z "$LD"; then
5800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5801 for ac_dir in $PATH; do
5802 test -z "$ac_dir" && ac_dir=.
5803 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5804 acl_cv_path_LD="$ac_dir/$ac_prog"
5805 # Check to see if the program is GNU ld. I'd rather use --version,
5806 # but apparently some GNU ld's only accept -v.
5807 # Break only if it was the GNU/non-GNU ld that we prefer.
5808 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5809 test "$with_gnu_ld" != no && break
5810 else
5811 test "$with_gnu_ld" != yes && break
5812 fi
5813 fi
5814 done
5815 IFS="$ac_save_ifs"
5816else
5817 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5818fi
5819fi
5820
5821LD="$acl_cv_path_LD"
5822if test -n "$LD"; then
5823 echo "$as_me:$LINENO: result: $LD" >&5
5824echo "${ECHO_T}$LD" >&6
5825else
5826 echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
5828fi
5829test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5830echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5831 { (exit 1); exit 1; }; }
5832echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5833echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5834if test "${acl_cv_prog_gnu_ld+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5838if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5839 acl_cv_prog_gnu_ld=yes
5840else
5841 acl_cv_prog_gnu_ld=no
5842fi
5843fi
5844echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5845echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5846with_gnu_ld=$acl_cv_prog_gnu_ld
5847
5848
5849
5850 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5851echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5852if test "${acl_cv_rpath+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855
5856 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5857 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5858 . ./conftest.sh
5859 rm -f ./conftest.sh
5860 acl_cv_rpath=done
5861
5862fi
5863echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5864echo "${ECHO_T}$acl_cv_rpath" >&6
5865 wl="$acl_cv_wl"
5866 libext="$acl_cv_libext"
5867 shlibext="$acl_cv_shlibext"
5868 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5869 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5870 hardcode_direct="$acl_cv_hardcode_direct"
5871 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5872 # Check whether --enable-rpath or --disable-rpath was given.
5873if test "${enable_rpath+set}" = set; then
5874 enableval="$enable_rpath"
5875 :
5876else
5877 enable_rpath=yes
5878fi;
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888 use_additional=yes
5889
5890 acl_save_prefix="$prefix"
5891 prefix="$acl_final_prefix"
5892 acl_save_exec_prefix="$exec_prefix"
5893 exec_prefix="$acl_final_exec_prefix"
5894
5895 eval additional_includedir=\"$includedir\"
5896 eval additional_libdir=\"$libdir\"
5897
5898 exec_prefix="$acl_save_exec_prefix"
5899 prefix="$acl_save_prefix"
5900
5901
5902# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5903if test "${with_libexpat_prefix+set}" = set; then
5904 withval="$with_libexpat_prefix"
5905
5906 if test "X$withval" = "Xno"; then
5907 use_additional=no
5908 else
5909 if test "X$withval" = "X"; then
5910
5911 acl_save_prefix="$prefix"
5912 prefix="$acl_final_prefix"
5913 acl_save_exec_prefix="$exec_prefix"
5914 exec_prefix="$acl_final_exec_prefix"
5915
5916 eval additional_includedir=\"$includedir\"
5917 eval additional_libdir=\"$libdir\"
5918
5919 exec_prefix="$acl_save_exec_prefix"
5920 prefix="$acl_save_prefix"
5921
5922 else
5923 additional_includedir="$withval/include"
5924 additional_libdir="$withval/lib"
5925 fi
5926 fi
5927
5928fi;
5929 LIBEXPAT=
5930 LTLIBEXPAT=
5931 INCEXPAT=
5932 rpathdirs=
5933 ltrpathdirs=
5934 names_already_handled=
5935 names_next_round='expat '
5936 while test -n "$names_next_round"; do
5937 names_this_round="$names_next_round"
5938 names_next_round=
5939 for name in $names_this_round; do
5940 already_handled=
5941 for n in $names_already_handled; do
5942 if test "$n" = "$name"; then
5943 already_handled=yes
5944 break
5945 fi
5946 done
5947 if test -z "$already_handled"; then
5948 names_already_handled="$names_already_handled $name"
5949 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5950 eval value=\"\$HAVE_LIB$uppername\"
5951 if test -n "$value"; then
5952 if test "$value" = yes; then
5953 eval value=\"\$LIB$uppername\"
5954 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5955 eval value=\"\$LTLIB$uppername\"
5956 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5957 else
5958 :
5959 fi
5960 else
5961 found_dir=
5962 found_la=
5963 found_so=
5964 found_a=
5965 if test $use_additional = yes; then
5966 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5967 found_dir="$additional_libdir"
5968 found_so="$additional_libdir/lib$name.$shlibext"
5969 if test -f "$additional_libdir/lib$name.la"; then
5970 found_la="$additional_libdir/lib$name.la"
5971 fi
5972 else
5973 if test -f "$additional_libdir/lib$name.$libext"; then
5974 found_dir="$additional_libdir"
5975 found_a="$additional_libdir/lib$name.$libext"
5976 if test -f "$additional_libdir/lib$name.la"; then
5977 found_la="$additional_libdir/lib$name.la"
5978 fi
5979 fi
5980 fi
5981 fi
5982 if test "X$found_dir" = "X"; then
5983 for x in $LDFLAGS $LTLIBEXPAT; do
5984
5985 acl_save_prefix="$prefix"
5986 prefix="$acl_final_prefix"
5987 acl_save_exec_prefix="$exec_prefix"
5988 exec_prefix="$acl_final_exec_prefix"
5989 eval x=\"$x\"
5990 exec_prefix="$acl_save_exec_prefix"
5991 prefix="$acl_save_prefix"
5992
5993 case "$x" in
5994 -L*)
5995 dir=`echo "X$x" | sed -e 's/^X-L//'`
5996 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5997 found_dir="$dir"
5998 found_so="$dir/lib$name.$shlibext"
5999 if test -f "$dir/lib$name.la"; then
6000 found_la="$dir/lib$name.la"
6001 fi
6002 else
6003 if test -f "$dir/lib$name.$libext"; then
6004 found_dir="$dir"
6005 found_a="$dir/lib$name.$libext"
6006 if test -f "$dir/lib$name.la"; then
6007 found_la="$dir/lib$name.la"
6008 fi
6009 fi
6010 fi
6011 ;;
6012 esac
6013 if test "X$found_dir" != "X"; then
6014 break
6015 fi
6016 done
6017 fi
6018 if test "X$found_dir" != "X"; then
6019 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6020 if test "X$found_so" != "X"; then
6021 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6022 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6023 else
6024 haveit=
6025 for x in $ltrpathdirs; do
6026 if test "X$x" = "X$found_dir"; then
6027 haveit=yes
6028 break
6029 fi
6030 done
6031 if test -z "$haveit"; then
6032 ltrpathdirs="$ltrpathdirs $found_dir"
6033 fi
6034 if test "$hardcode_direct" = yes; then
6035 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6036 else
6037 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6038 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6039 haveit=
6040 for x in $rpathdirs; do
6041 if test "X$x" = "X$found_dir"; then
6042 haveit=yes
6043 break
6044 fi
6045 done
6046 if test -z "$haveit"; then
6047 rpathdirs="$rpathdirs $found_dir"
6048 fi
6049 else
6050 haveit=
6051 for x in $LDFLAGS $LIBEXPAT; do
6052
6053 acl_save_prefix="$prefix"
6054 prefix="$acl_final_prefix"
6055 acl_save_exec_prefix="$exec_prefix"
6056 exec_prefix="$acl_final_exec_prefix"
6057 eval x=\"$x\"
6058 exec_prefix="$acl_save_exec_prefix"
6059 prefix="$acl_save_prefix"
6060
6061 if test "X$x" = "X-L$found_dir"; then
6062 haveit=yes
6063 break
6064 fi
6065 done
6066 if test -z "$haveit"; then
6067 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6068 fi
6069 if test "$hardcode_minus_L" != no; then
6070 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6071 else
6072 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6073 fi
6074 fi
6075 fi
6076 fi
6077 else
6078 if test "X$found_a" != "X"; then
6079 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6080 else
6081 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6082 fi
6083 fi
6084 additional_includedir=
6085 case "$found_dir" in
6086 */lib | */lib/)
6087 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6088 additional_includedir="$basedir/include"
6089 ;;
6090 esac
6091 if test "X$additional_includedir" != "X"; then
6092 if test "X$additional_includedir" != "X/usr/include"; then
6093 haveit=
6094 if test "X$additional_includedir" = "X/usr/local/include"; then
6095 if test -n "$GCC"; then
6096 case $host_os in
6097 linux*) haveit=yes;;
6098 esac
6099 fi
6100 fi
6101 if test -z "$haveit"; then
6102 for x in $CPPFLAGS $INCEXPAT; do
6103
6104 acl_save_prefix="$prefix"
6105 prefix="$acl_final_prefix"
6106 acl_save_exec_prefix="$exec_prefix"
6107 exec_prefix="$acl_final_exec_prefix"
6108 eval x=\"$x\"
6109 exec_prefix="$acl_save_exec_prefix"
6110 prefix="$acl_save_prefix"
6111
6112 if test "X$x" = "X-I$additional_includedir"; then
6113 haveit=yes
6114 break
6115 fi
6116 done
6117 if test -z "$haveit"; then
6118 if test -d "$additional_includedir"; then
6119 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6120 fi
6121 fi
6122 fi
6123 fi
6124 fi
6125 if test -n "$found_la"; then
6126 save_libdir="$libdir"
6127 case "$found_la" in
6128 */* | *\\*) . "$found_la" ;;
6129 *) . "./$found_la" ;;
6130 esac
6131 libdir="$save_libdir"
6132 for dep in $dependency_libs; do
6133 case "$dep" in
6134 -L*)
6135 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6136 if test "X$additional_libdir" != "X/usr/lib"; then
6137 haveit=
6138 if test "X$additional_libdir" = "X/usr/local/lib"; then
6139 if test -n "$GCC"; then
6140 case $host_os in
6141 linux*) haveit=yes;;
6142 esac
6143 fi
6144 fi
6145 if test -z "$haveit"; then
6146 haveit=
6147 for x in $LDFLAGS $LIBEXPAT; do
6148
6149 acl_save_prefix="$prefix"
6150 prefix="$acl_final_prefix"
6151 acl_save_exec_prefix="$exec_prefix"
6152 exec_prefix="$acl_final_exec_prefix"
6153 eval x=\"$x\"
6154 exec_prefix="$acl_save_exec_prefix"
6155 prefix="$acl_save_prefix"
6156
6157 if test "X$x" = "X-L$additional_libdir"; then
6158 haveit=yes
6159 break
6160 fi
6161 done
6162 if test -z "$haveit"; then
6163 if test -d "$additional_libdir"; then
6164 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6165 fi
6166 fi
6167 haveit=
6168 for x in $LDFLAGS $LTLIBEXPAT; do
6169
6170 acl_save_prefix="$prefix"
6171 prefix="$acl_final_prefix"
6172 acl_save_exec_prefix="$exec_prefix"
6173 exec_prefix="$acl_final_exec_prefix"
6174 eval x=\"$x\"
6175 exec_prefix="$acl_save_exec_prefix"
6176 prefix="$acl_save_prefix"
6177
6178 if test "X$x" = "X-L$additional_libdir"; then
6179 haveit=yes
6180 break
6181 fi
6182 done
6183 if test -z "$haveit"; then
6184 if test -d "$additional_libdir"; then
6185 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6186 fi
6187 fi
6188 fi
6189 fi
6190 ;;
6191 -R*)
6192 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6193 if test "$enable_rpath" != no; then
6194 haveit=
6195 for x in $rpathdirs; do
6196 if test "X$x" = "X$dir"; then
6197 haveit=yes
6198 break
6199 fi
6200 done
6201 if test -z "$haveit"; then
6202 rpathdirs="$rpathdirs $dir"
6203 fi
6204 haveit=
6205 for x in $ltrpathdirs; do
6206 if test "X$x" = "X$dir"; then
6207 haveit=yes
6208 break
6209 fi
6210 done
6211 if test -z "$haveit"; then
6212 ltrpathdirs="$ltrpathdirs $dir"
6213 fi
6214 fi
6215 ;;
6216 -l*)
6217 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6218 ;;
6219 *.la)
6220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6221 ;;
6222 *)
6223 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6224 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6225 ;;
6226 esac
6227 done
6228 fi
6229 else
6230 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6231 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6232 fi
6233 fi
6234 fi
6235 done
6236 done
6237 if test "X$rpathdirs" != "X"; then
6238 if test -n "$hardcode_libdir_separator"; then
6239 alldirs=
6240 for found_dir in $rpathdirs; do
6241 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6242 done
6243 acl_save_libdir="$libdir"
6244 libdir="$alldirs"
6245 eval flag=\"$hardcode_libdir_flag_spec\"
6246 libdir="$acl_save_libdir"
6247 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6248 else
6249 for found_dir in $rpathdirs; do
6250 acl_save_libdir="$libdir"
6251 libdir="$found_dir"
6252 eval flag=\"$hardcode_libdir_flag_spec\"
6253 libdir="$acl_save_libdir"
6254 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6255 done
6256 fi
6257 fi
6258 if test "X$ltrpathdirs" != "X"; then
6259 for found_dir in $ltrpathdirs; do
6260 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6261 done
6262 fi
6263
6264
6265 ac_save_CPPFLAGS="$CPPFLAGS"
6266
6267 for element in $INCEXPAT; do
6268 haveit=
6269 for x in $CPPFLAGS; do
6270
6271 acl_save_prefix="$prefix"
6272 prefix="$acl_final_prefix"
6273 acl_save_exec_prefix="$exec_prefix"
6274 exec_prefix="$acl_final_exec_prefix"
6275 eval x=\"$x\"
6276 exec_prefix="$acl_save_exec_prefix"
6277 prefix="$acl_save_prefix"
6278
6279 if test "X$x" = "X$element"; then
6280 haveit=yes
6281 break
6282 fi
6283 done
6284 if test -z "$haveit"; then
6285 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6286 fi
6287 done
6288
6289
6290 echo "$as_me:$LINENO: checking for libexpat" >&5
6291echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6292if test "${ac_cv_libexpat+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295
6296 ac_save_LIBS="$LIBS"
6297 LIBS="$LIBS $LIBEXPAT"
6298 cat >conftest.$ac_ext <<_ACEOF
6299/* confdefs.h. */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h. */
6304#include "expat.h"
6305int
6306main ()
6307{
6308XML_Parser p = XML_ParserCreate (0);
6309 ;
6310 return 0;
6311}
6312_ACEOF
6313rm -f conftest.$ac_objext conftest$ac_exeext
6314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6315 (eval $ac_link) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest$ac_exeext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_libexpat=yes
6336else
6337 echo "$as_me: failed program was:" >&5
6338sed 's/^/| /' conftest.$ac_ext >&5
6339
6340ac_cv_libexpat=no
6341fi
6342rm -f conftest.err conftest.$ac_objext \
6343 conftest$ac_exeext conftest.$ac_ext
6344 LIBS="$ac_save_LIBS"
6345
6346fi
6347echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6348echo "${ECHO_T}$ac_cv_libexpat" >&6
6349 if test "$ac_cv_libexpat" = yes; then
6350 HAVE_LIBEXPAT=yes
6351
6352cat >>confdefs.h <<\_ACEOF
6353#define HAVE_LIBEXPAT 1
6354_ACEOF
6355
6356 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6357echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6358 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6359echo "${ECHO_T}$LIBEXPAT" >&6
6360 else
6361 HAVE_LIBEXPAT=no
6362 CPPFLAGS="$ac_save_CPPFLAGS"
6363 LIBEXPAT=
6364 LTLIBEXPAT=
6365 fi
6366
6367
6368
6369
6370
6371
6372if test "$HAVE_LIBEXPAT" != yes; then
6373 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5
6374echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;}
ca4ca11e
DJ
6375else
6376 save_LIBS=$LIBS
6377 LIBS="$LIBS $LIBEXPAT"
6378
6379for ac_func in XML_StopParser
6380do
6381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6382echo "$as_me:$LINENO: checking for $ac_func" >&5
6383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6384if eval "test \"\${$as_ac_var+set}\" = set"; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386else
6387 cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6395#define $ac_func innocuous_$ac_func
6396
6397/* System header to define __stub macros and hopefully few prototypes,
6398 which can conflict with char $ac_func (); below.
6399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 <limits.h> exists even on freestanding compilers. */
6401
6402#ifdef __STDC__
6403# include <limits.h>
6404#else
6405# include <assert.h>
6406#endif
6407
6408#undef $ac_func
6409
6410/* Override any gcc2 internal prototype to avoid an error. */
6411#ifdef __cplusplus
6412extern "C"
6413{
6414#endif
6415/* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6417char $ac_func ();
6418/* The GNU C library defines this for functions which it implements
6419 to always fail with ENOSYS. Some functions are actually named
6420 something starting with __ and the normal name is an alias. */
6421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6422choke me
6423#else
6424char (*f) () = $ac_func;
6425#endif
6426#ifdef __cplusplus
6427}
6428#endif
6429
6430int
6431main ()
6432{
6433return f != $ac_func;
6434 ;
6435 return 0;
6436}
6437_ACEOF
6438rm -f conftest.$ac_objext conftest$ac_exeext
6439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 eval "$as_ac_var=yes"
6461else
6462 echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465eval "$as_ac_var=no"
6466fi
6467rm -f conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext conftest.$ac_ext
6469fi
6470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6472if test `eval echo '${'$as_ac_var'}'` = yes; then
6473 cat >>confdefs.h <<_ACEOF
6474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6475_ACEOF
6476
6477fi
6478done
6479
6480 LIBS=$save_LIBS
3841debe
DJ
6481fi
6482
bec39cab
AC
6483# ------------------------- #
6484# Checks for header files. #
6485# ------------------------- #
8ee53726 6486
0e5d83e3 6487
bec39cab
AC
6488
6489
6490
6491
6492ac_header_dirent=no
6493for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6494 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6495echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6496echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6497if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500 cat >conftest.$ac_ext <<_ACEOF
6501/* confdefs.h. */
6502_ACEOF
6503cat confdefs.h >>conftest.$ac_ext
6504cat >>conftest.$ac_ext <<_ACEOF
6505/* end confdefs.h. */
6506#include <sys/types.h>
0e5d83e3 6507#include <$ac_hdr>
bec39cab
AC
6508
6509int
6510main ()
6511{
6512if ((DIR *) 0)
6513return 0;
6514 ;
6515 return 0;
6516}
6517_ACEOF
6518rm -f conftest.$ac_objext
6519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520 (eval $ac_compile) 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
b4e70030
JB
6527 { ac_try='test -z "$ac_c_werror_flag"
6528 || test ! -s conftest.err'
bec39cab
AC
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 (eval $ac_try) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 eval "$as_ac_Header=yes"
6541else
6542 echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
b4e70030 6545eval "$as_ac_Header=no"
bec39cab
AC
6546fi
6547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6548fi
b4e70030
JB
6549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6551if test `eval echo '${'$as_ac_Header'}'` = yes; then
6552 cat >>confdefs.h <<_ACEOF
6553#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6554_ACEOF
6555
6556ac_header_dirent=$ac_hdr; break
0e5d83e3 6557fi
0e5d83e3 6558
bec39cab
AC
6559done
6560# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6561if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6562 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6563echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6564if test "${ac_cv_search_opendir+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 ac_func_search_save_LIBS=$LIBS
b4e70030 6568ac_cv_search_opendir=no
bec39cab
AC
6569cat >conftest.$ac_ext <<_ACEOF
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
0e5d83e3 6575
b4e70030 6576/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6577#ifdef __cplusplus
6578extern "C"
6579#endif
b4e70030
JB
6580/* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
bec39cab
AC
6582char opendir ();
6583int
6584main ()
6585{
b4e70030 6586opendir ();
bec39cab
AC
6587 ;
6588 return 0;
6589}
6590_ACEOF
b4e70030 6591rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
b4e70030
JB
6600 { ac_try='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
bec39cab
AC
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
b4e70030 6613 ac_cv_search_opendir="none required"
bec39cab
AC
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618fi
bec39cab 6619rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6620 conftest$ac_exeext conftest.$ac_ext
6621if test "$ac_cv_search_opendir" = no; then
6622 for ac_lib in dir; do
6623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6624 cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h. */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h. */
6630
6631/* Override any gcc2 internal prototype to avoid an error. */
6632#ifdef __cplusplus
6633extern "C"
6634#endif
6635/* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6637char opendir ();
6638int
6639main ()
6640{
6641opendir ();
6642 ;
6643 return 0;
6644}
6645_ACEOF
6646rm -f conftest.$ac_objext conftest$ac_exeext
6647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648 (eval $ac_link) 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -z "$ac_c_werror_flag"
6656 || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest$ac_exeext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 (eval $ac_try) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_cv_search_opendir="-l$ac_lib"
6669break
4e8d927d 6670else
b4e70030
JB
6671 echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
6674fi
6675rm -f conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6677 done
0e5d83e3 6678fi
bec39cab 6679LIBS=$ac_func_search_save_LIBS
0e5d83e3 6680fi
b4e70030
JB
6681echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6682echo "${ECHO_T}$ac_cv_search_opendir" >&6
6683if test "$ac_cv_search_opendir" != no; then
6684 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6685
0e5d83e3
JJ
6686fi
6687
d28f9cdf 6688else
b4e70030
JB
6689 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6690echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6691if test "${ac_cv_search_opendir+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 ac_func_search_save_LIBS=$LIBS
b4e70030 6695ac_cv_search_opendir=no
bec39cab
AC
6696cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h. */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h. */
d28f9cdf 6702
b4e70030 6703/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6704#ifdef __cplusplus
6705extern "C"
d28f9cdf 6706#endif
b4e70030
JB
6707/* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
bec39cab
AC
6709char opendir ();
6710int
6711main ()
6712{
b4e70030 6713opendir ();
bec39cab
AC
6714 ;
6715 return 0;
6716}
6717_ACEOF
b4e70030 6718rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
b4e70030
JB
6727 { ac_try='test -z "$ac_c_werror_flag"
6728 || test ! -s conftest.err'
bec39cab
AC
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 (eval $ac_try) 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; } &&
6734 { ac_try='test -s conftest$ac_exeext'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 (eval $ac_try) 2>&5
6737 ac_status=$?
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; }; then
b4e70030 6740 ac_cv_search_opendir="none required"
d28f9cdf 6741else
bec39cab
AC
6742 echo "$as_me: failed program was:" >&5
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
d28f9cdf 6745fi
bec39cab 6746rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6747 conftest$ac_exeext conftest.$ac_ext
6748if test "$ac_cv_search_opendir" = no; then
6749 for ac_lib in x; do
6750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6751 cat >conftest.$ac_ext <<_ACEOF
6752/* confdefs.h. */
6753_ACEOF
6754cat confdefs.h >>conftest.$ac_ext
6755cat >>conftest.$ac_ext <<_ACEOF
6756/* end confdefs.h. */
6757
6758/* Override any gcc2 internal prototype to avoid an error. */
6759#ifdef __cplusplus
6760extern "C"
6761#endif
6762/* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6764char opendir ();
6765int
6766main ()
6767{
6768opendir ();
6769 ;
6770 return 0;
6771}
6772_ACEOF
6773rm -f conftest.$ac_objext conftest$ac_exeext
6774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; } &&
6789 { ac_try='test -s conftest$ac_exeext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_search_opendir="-l$ac_lib"
6796break
4e8d927d 6797else
b4e70030
JB
6798 echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801fi
6802rm -f conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6804 done
bec39cab
AC
6805fi
6806LIBS=$ac_func_search_save_LIBS
d28f9cdf 6807fi
b4e70030
JB
6808echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6809echo "${ECHO_T}$ac_cv_search_opendir" >&6
6810if test "$ac_cv_search_opendir" != no; then
6811 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 6812
d28f9cdf
DJ
6813fi
6814
bec39cab 6815fi
b0b1c2c0 6816
b4e70030
JB
6817echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6818echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
6819if test "${ac_cv_header_stat_broken+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 6821else
bec39cab
AC
6822 cat >conftest.$ac_ext <<_ACEOF
6823/* confdefs.h. */
6824_ACEOF
6825cat confdefs.h >>conftest.$ac_ext
6826cat >>conftest.$ac_ext <<_ACEOF
6827/* end confdefs.h. */
6828#include <sys/types.h>
6829#include <sys/stat.h>
b0b1c2c0 6830
b4e70030 6831#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
6832# if S_ISBLK (S_IFDIR)
6833You lose.
6834# endif
6835#endif
b0b1c2c0 6836
b4e70030 6837#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
6838# if S_ISBLK (S_IFCHR)
6839You lose.
6840# endif
6841#endif
d28f9cdf 6842
b4e70030 6843#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
6844# if S_ISLNK (S_IFREG)
6845You lose.
6846# endif
6847#endif
d28f9cdf 6848
b4e70030 6849#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
6850# if S_ISSOCK (S_IFREG)
6851You lose.
6852# endif
6853#endif
6854
6855_ACEOF
6856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 $EGREP "You lose" >/dev/null 2>&1; then
6858 ac_cv_header_stat_broken=yes
d28f9cdf 6859else
bec39cab 6860 ac_cv_header_stat_broken=no
d28f9cdf
DJ
6861fi
6862rm -f conftest*
d28f9cdf 6863
d28f9cdf 6864fi
b4e70030
JB
6865echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6866echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 6867if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 6868
bec39cab
AC
6869cat >>confdefs.h <<\_ACEOF
6870#define STAT_MACROS_BROKEN 1
6871_ACEOF
8bb2c122 6872
7a292a7a 6873fi
bec39cab 6874
b4e70030
JB
6875echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6876echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
6877if test "${ac_cv_header_stdc+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 6879else
bec39cab
AC
6880 cat >conftest.$ac_ext <<_ACEOF
6881/* confdefs.h. */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h. */
6886#include <stdlib.h>
6887#include <stdarg.h>
6888#include <string.h>
6889#include <float.h>
7a292a7a 6890
bec39cab
AC
6891int
6892main ()
6893{
7a292a7a 6894
bec39cab
AC
6895 ;
6896 return 0;
6897}
6898_ACEOF
6899rm -f conftest.$ac_objext
6900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
b4e70030
JB
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
bec39cab
AC
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest.$ac_objext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_header_stdc=yes
c906108c 6922else
bec39cab
AC
6923 echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
c906108c 6925
b4e70030 6926ac_cv_header_stdc=no
c906108c 6927fi
bec39cab 6928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6929
bec39cab
AC
6930if test $ac_cv_header_stdc = yes; then
6931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6932 cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938#include <string.h>
c906108c 6939
bec39cab
AC
6940_ACEOF
6941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6942 $EGREP "memchr" >/dev/null 2>&1; then
6943 :
8bb2c122 6944else
bec39cab 6945 ac_cv_header_stdc=no
8bb2c122 6946fi
bec39cab
AC
6947rm -f conftest*
6948
c906108c
SS
6949fi
6950
bec39cab
AC
6951if test $ac_cv_header_stdc = yes; then
6952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6953 cat >conftest.$ac_ext <<_ACEOF
6954/* confdefs.h. */
6955_ACEOF
6956cat confdefs.h >>conftest.$ac_ext
6957cat >>conftest.$ac_ext <<_ACEOF
6958/* end confdefs.h. */
6959#include <stdlib.h>
6960
6961_ACEOF
6962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963 $EGREP "free" >/dev/null 2>&1; then
6964 :
c906108c 6965else
bec39cab 6966 ac_cv_header_stdc=no
c906108c 6967fi
bec39cab
AC
6968rm -f conftest*
6969
c906108c
SS
6970fi
6971
bec39cab
AC
6972if test $ac_cv_header_stdc = yes; then
6973 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6974 if test "$cross_compiling" = yes; then
6975 :
c906108c 6976else
bec39cab
AC
6977 cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h. */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h. */
6983#include <ctype.h>
6984#if ((' ' & 0x0FF) == 0x020)
6985# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6986# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6987#else
6988# define ISLOWER(c) \
6989 (('a' <= (c) && (c) <= 'i') \
6990 || ('j' <= (c) && (c) <= 'r') \
6991 || ('s' <= (c) && (c) <= 'z'))
6992# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6993#endif
6994
6995#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6996int
6997main ()
6998{
6999 int i;
7000 for (i = 0; i < 256; i++)
7001 if (XOR (islower (i), ISLOWER (i))
7002 || toupper (i) != TOUPPER (i))
b4e70030
JB
7003 exit(2);
7004 exit (0);
bec39cab
AC
7005}
7006_ACEOF
7007rm -f conftest$ac_exeext
7008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 (eval $ac_try) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
7018 :
7019else
7020 echo "$as_me: program exited with status $ac_status" >&5
7021echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024( exit $ac_status )
7025ac_cv_header_stdc=no
c906108c 7026fi
b4e70030 7027rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7028fi
c906108c 7029fi
bec39cab 7030fi
b4e70030
JB
7031echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7032echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 7033if test $ac_cv_header_stdc = yes; then
c906108c 7034
bec39cab
AC
7035cat >>confdefs.h <<\_ACEOF
7036#define STDC_HEADERS 1
7037_ACEOF
c906108c 7038
bec39cab 7039fi
8bb2c122 7040
bec39cab 7041
7cb9022a 7042for ac_header in nlist.h
bec39cab
AC
7043do
7044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7045if eval "test \"\${$as_ac_Header+set}\" = set"; then
7046 echo "$as_me:$LINENO: checking for $ac_header" >&5
7047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7048if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050fi
b4e70030
JB
7051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7053else
7054 # Is the header compilable?
b4e70030
JB
7055echo "$as_me:$LINENO: checking $ac_header usability" >&5
7056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7057cat >conftest.$ac_ext <<_ACEOF
7058/* confdefs.h. */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h. */
7063$ac_includes_default
7064#include <$ac_header>
7065_ACEOF
7066rm -f conftest.$ac_objext
7067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
b4e70030
JB
7075 { ac_try='test -z "$ac_c_werror_flag"
7076 || test ! -s conftest.err'
bec39cab
AC
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest.$ac_objext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 ac_header_compiler=yes
7089else
7090 echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
b4e70030 7093ac_header_compiler=no
bec39cab
AC
7094fi
7095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7097echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7098
7099# Is the header present?
b4e70030
JB
7100echo "$as_me:$LINENO: checking $ac_header presence" >&5
7101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7102cat >conftest.$ac_ext <<_ACEOF
7103/* confdefs.h. */
7104_ACEOF
7105cat confdefs.h >>conftest.$ac_ext
7106cat >>conftest.$ac_ext <<_ACEOF
7107/* end confdefs.h. */
7108#include <$ac_header>
7109_ACEOF
7110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } >/dev/null; then
7118 if test -s conftest.err; then
7119 ac_cpp_err=$ac_c_preproc_warn_flag
7120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7121 else
7122 ac_cpp_err=
7123 fi
c906108c 7124else
bec39cab 7125 ac_cpp_err=yes
c906108c 7126fi
bec39cab
AC
7127if test -z "$ac_cpp_err"; then
7128 ac_header_preproc=yes
c906108c 7129else
bec39cab
AC
7130 echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7132
bec39cab
AC
7133 ac_header_preproc=no
7134fi
7135rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7137echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7138
bec39cab
AC
7139# So? What about this header?
7140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7141 yes:no: )
7142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7146 ac_header_preproc=yes
7147 ;;
7148 no:yes:* )
7149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7161 (
7162 cat <<\_ASBOX
7163## ------------------------------------------ ##
7164## Report this to the AC_PACKAGE_NAME lists. ##
7165## ------------------------------------------ ##
7166_ASBOX
7167 ) |
7168 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7169 ;;
7170esac
b4e70030
JB
7171echo "$as_me:$LINENO: checking for $ac_header" >&5
7172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7173if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7174 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7175else
bec39cab 7176 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7177fi
b4e70030
JB
7178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7180
95ca63c4 7181fi
bec39cab
AC
7182if test `eval echo '${'$as_ac_Header'}'` = yes; then
7183 cat >>confdefs.h <<_ACEOF
7184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7185_ACEOF
7186
95ca63c4
CF
7187fi
7188
bec39cab 7189done
95ca63c4
CF
7190
7191
7cb9022a 7192for ac_header in link.h
bec39cab
AC
7193do
7194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7195echo "$as_me:$LINENO: checking for $ac_header" >&5
7196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7198 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7199else
7cb9022a 7200 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7cb9022a
MK
7206#if HAVE_SYS_TYPES_H
7207# include <sys/types.h>
7208#endif
7209#if HAVE_NLIST_H
7210# include <nlist.h>
7211#endif
7212
7213
bec39cab
AC
7214#include <$ac_header>
7215_ACEOF
7216rm -f conftest.$ac_objext
7217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
b4e70030
JB
7225 { ac_try='test -z "$ac_c_werror_flag"
7226 || test ! -s conftest.err'
bec39cab
AC
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; } &&
7232 { ac_try='test -s conftest.$ac_objext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7cb9022a 7238 eval "$as_ac_Header=yes"
bec39cab
AC
7239else
7240 echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
b4e70030 7243eval "$as_ac_Header=no"
bec39cab
AC
7244fi
7245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7246fi
b4e70030
JB
7247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7249if test `eval echo '${'$as_ac_Header'}'` = yes; then
7250 cat >>confdefs.h <<_ACEOF
7251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7252_ACEOF
95ca63c4 7253
bec39cab 7254fi
95ca63c4 7255
bec39cab 7256done
95ca63c4 7257
c906108c 7258
7cb9022a 7259for ac_header in machine/reg.h
bec39cab
AC
7260do
7261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7262if eval "test \"\${$as_ac_Header+set}\" = set"; then
7263 echo "$as_me:$LINENO: checking for $ac_header" >&5
7264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7265if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267fi
b4e70030
JB
7268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7270else
7271 # Is the header compilable?
b4e70030
JB
7272echo "$as_me:$LINENO: checking $ac_header usability" >&5
7273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7274cat >conftest.$ac_ext <<_ACEOF
7275/* confdefs.h. */
7276_ACEOF
7277cat confdefs.h >>conftest.$ac_ext
7278cat >>conftest.$ac_ext <<_ACEOF
7279/* end confdefs.h. */
7280$ac_includes_default
7281#include <$ac_header>
7282_ACEOF
7283rm -f conftest.$ac_objext
7284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
b4e70030
JB
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
bec39cab
AC
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest.$ac_objext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_header_compiler=yes
7306else
7307 echo "$as_me: failed program was:" >&5
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
b4e70030 7310ac_header_compiler=no
bec39cab
AC
7311fi
7312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7314echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7315
7316# Is the header present?
b4e70030
JB
7317echo "$as_me:$LINENO: checking $ac_header presence" >&5
7318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7319cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h. */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h. */
7325#include <$ac_header>
7326_ACEOF
7327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } >/dev/null; then
7335 if test -s conftest.err; then
7336 ac_cpp_err=$ac_c_preproc_warn_flag
7337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7338 else
7339 ac_cpp_err=
7340 fi
75c6e08a 7341else
bec39cab 7342 ac_cpp_err=yes
75c6e08a 7343fi
bec39cab
AC
7344if test -z "$ac_cpp_err"; then
7345 ac_header_preproc=yes
7346else
7347 echo "$as_me: failed program was:" >&5
7348sed 's/^/| /' conftest.$ac_ext >&5
7349
7350 ac_header_preproc=no
75c6e08a 7351fi
bec39cab 7352rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7354echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7355
7356# So? What about this header?
7357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7358 yes:no: )
7359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7363 ac_header_preproc=yes
7364 ;;
7365 no:yes:* )
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7378 (
7379 cat <<\_ASBOX
7380## ------------------------------------------ ##
7381## Report this to the AC_PACKAGE_NAME lists. ##
7382## ------------------------------------------ ##
7383_ASBOX
7384 ) |
7385 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7386 ;;
7387esac
b4e70030
JB
7388echo "$as_me:$LINENO: checking for $ac_header" >&5
7389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7390if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7391 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7392else
bec39cab
AC
7393 eval "$as_ac_Header=\$ac_header_preproc"
7394fi
b4e70030
JB
7395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7397
75c6e08a 7398fi
bec39cab
AC
7399if test `eval echo '${'$as_ac_Header'}'` = yes; then
7400 cat >>confdefs.h <<_ACEOF
7401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7402_ACEOF
75c6e08a 7403
bec39cab 7404fi
75c6e08a 7405
bec39cab 7406done
75c6e08a
MK
7407
7408
9a156167 7409
bec39cab
AC
7410for ac_header in poll.h sys/poll.h
7411do
7412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7413if eval "test \"\${$as_ac_Header+set}\" = set"; then
7414 echo "$as_me:$LINENO: checking for $ac_header" >&5
7415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7416if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418fi
b4e70030
JB
7419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7421else
7422 # Is the header compilable?
b4e70030
JB
7423echo "$as_me:$LINENO: checking $ac_header usability" >&5
7424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7425cat >conftest.$ac_ext <<_ACEOF
7426/* confdefs.h. */
7427_ACEOF
7428cat confdefs.h >>conftest.$ac_ext
7429cat >>conftest.$ac_ext <<_ACEOF
7430/* end confdefs.h. */
7431$ac_includes_default
7432#include <$ac_header>
7433_ACEOF
7434rm -f conftest.$ac_objext
7435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436 (eval $ac_compile) 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
b4e70030
JB
7443 { ac_try='test -z "$ac_c_werror_flag"
7444 || test ! -s conftest.err'
bec39cab
AC
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 (eval $ac_try) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_header_compiler=yes
7457else
7458 echo "$as_me: failed program was:" >&5
7459sed 's/^/| /' conftest.$ac_ext >&5
7460
b4e70030 7461ac_header_compiler=no
bec39cab
AC
7462fi
7463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7465echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7466
7467# Is the header present?
b4e70030
JB
7468echo "$as_me:$LINENO: checking $ac_header presence" >&5
7469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7470cat >conftest.$ac_ext <<_ACEOF
7471/* confdefs.h. */
7472_ACEOF
7473cat confdefs.h >>conftest.$ac_ext
7474cat >>conftest.$ac_ext <<_ACEOF
7475/* end confdefs.h. */
7476#include <$ac_header>
7477_ACEOF
7478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7480 ac_status=$?
7481 grep -v '^ *+' conftest.er1 >conftest.err
7482 rm -f conftest.er1
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } >/dev/null; then
7486 if test -s conftest.err; then
7487 ac_cpp_err=$ac_c_preproc_warn_flag
7488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7489 else
7490 ac_cpp_err=
7491 fi
9a156167 7492else
bec39cab 7493 ac_cpp_err=yes
9a156167 7494fi
bec39cab
AC
7495if test -z "$ac_cpp_err"; then
7496 ac_header_preproc=yes
7497else
7498 echo "$as_me: failed program was:" >&5
7499sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7500
bec39cab 7501 ac_header_preproc=no
9a156167 7502fi
bec39cab 7503rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7505echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7506
bec39cab
AC
7507# So? What about this header?
7508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7509 yes:no: )
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7514 ac_header_preproc=yes
7515 ;;
7516 no:yes:* )
7517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7529 (
7530 cat <<\_ASBOX
7531## ------------------------------------------ ##
7532## Report this to the AC_PACKAGE_NAME lists. ##
7533## ------------------------------------------ ##
7534_ASBOX
7535 ) |
7536 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7537 ;;
7538esac
b4e70030
JB
7539echo "$as_me:$LINENO: checking for $ac_header" >&5
7540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7541if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7542 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7543else
bec39cab 7544 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7545fi
b4e70030
JB
7546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7548
bec39cab
AC
7549fi
7550if test `eval echo '${'$as_ac_Header'}'` = yes; then
7551 cat >>confdefs.h <<_ACEOF
7552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7553_ACEOF
9a156167 7554
bec39cab 7555fi
9a156167 7556
bec39cab 7557done
9a156167 7558
9a156167 7559
9a156167 7560
bec39cab
AC
7561
7562for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7563do
7564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7565if eval "test \"\${$as_ac_Header+set}\" = set"; then
7566 echo "$as_me:$LINENO: checking for $ac_header" >&5
7567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7568if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570fi
b4e70030
JB
7571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7573else
7574 # Is the header compilable?
b4e70030
JB
7575echo "$as_me:$LINENO: checking $ac_header usability" >&5
7576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7577cat >conftest.$ac_ext <<_ACEOF
7578/* confdefs.h. */
7579_ACEOF
7580cat confdefs.h >>conftest.$ac_ext
7581cat >>conftest.$ac_ext <<_ACEOF
7582/* end confdefs.h. */
7583$ac_includes_default
7584#include <$ac_header>
7585_ACEOF
7586rm -f conftest.$ac_objext
7587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588 (eval $ac_compile) 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } &&
b4e70030
JB
7595 { ac_try='test -z "$ac_c_werror_flag"
7596 || test ! -s conftest.err'
bec39cab
AC
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; } &&
7602 { ac_try='test -s conftest.$ac_objext'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 (eval $ac_try) 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; }; then
7608 ac_header_compiler=yes
7609else
7610 echo "$as_me: failed program was:" >&5
7611sed 's/^/| /' conftest.$ac_ext >&5
7612
b4e70030 7613ac_header_compiler=no
bec39cab
AC
7614fi
7615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7616echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7617echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7618
7619# Is the header present?
b4e70030
JB
7620echo "$as_me:$LINENO: checking $ac_header presence" >&5
7621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7622cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h. */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
7627/* end confdefs.h. */
7628#include <$ac_header>
7629_ACEOF
7630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7632 ac_status=$?
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } >/dev/null; then
7638 if test -s conftest.err; then
7639 ac_cpp_err=$ac_c_preproc_warn_flag
7640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7641 else
7642 ac_cpp_err=
7643 fi
9a156167 7644else
bec39cab 7645 ac_cpp_err=yes
9a156167 7646fi
bec39cab
AC
7647if test -z "$ac_cpp_err"; then
7648 ac_header_preproc=yes
7649else
7650 echo "$as_me: failed program was:" >&5
7651sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7652
bec39cab 7653 ac_header_preproc=no
9a156167 7654fi
bec39cab 7655rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7657echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7658
bec39cab
AC
7659# So? What about this header?
7660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7661 yes:no: )
7662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7666 ac_header_preproc=yes
7667 ;;
7668 no:yes:* )
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7681 (
7682 cat <<\_ASBOX
7683## ------------------------------------------ ##
7684## Report this to the AC_PACKAGE_NAME lists. ##
7685## ------------------------------------------ ##
7686_ASBOX
7687 ) |
7688 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7689 ;;
7690esac
b4e70030
JB
7691echo "$as_me:$LINENO: checking for $ac_header" >&5
7692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7693if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7694 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7695else
bec39cab 7696 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7697fi
b4e70030
JB
7698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
7700
7701fi
bec39cab
AC
7702if test `eval echo '${'$as_ac_Header'}'` = yes; then
7703 cat >>confdefs.h <<_ACEOF
7704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7705_ACEOF
9a156167 7706
bec39cab
AC
7707fi
7708
7709done
9a156167 7710
c890192f 7711
bec39cab
AC
7712for ac_header in stddef.h
7713do
7714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7715if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716 echo "$as_me:$LINENO: checking for $ac_header" >&5
7717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7718if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720fi
b4e70030
JB
7721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7723else
7724 # Is the header compilable?
b4e70030
JB
7725echo "$as_me:$LINENO: checking $ac_header usability" >&5
7726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7727cat >conftest.$ac_ext <<_ACEOF
7728/* confdefs.h. */
7729_ACEOF
7730cat confdefs.h >>conftest.$ac_ext
7731cat >>conftest.$ac_ext <<_ACEOF
7732/* end confdefs.h. */
7733$ac_includes_default
7734#include <$ac_header>
7735_ACEOF
7736rm -f conftest.$ac_objext
7737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7738 (eval $ac_compile) 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
b4e70030
JB
7745 { ac_try='test -z "$ac_c_werror_flag"
7746 || test ! -s conftest.err'
bec39cab
AC
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; } &&
7752 { ac_try='test -s conftest.$ac_objext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 (eval $ac_try) 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 ac_header_compiler=yes
7759else
7760 echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
b4e70030 7763ac_header_compiler=no
bec39cab
AC
7764fi
7765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7767echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7768
7769# Is the header present?
b4e70030
JB
7770echo "$as_me:$LINENO: checking $ac_header presence" >&5
7771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7772cat >conftest.$ac_ext <<_ACEOF
7773/* confdefs.h. */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h. */
7778#include <$ac_header>
7779_ACEOF
7780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } >/dev/null; then
7788 if test -s conftest.err; then
7789 ac_cpp_err=$ac_c_preproc_warn_flag
7790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7791 else
7792 ac_cpp_err=
7793 fi
c890192f 7794else
bec39cab
AC
7795 ac_cpp_err=yes
7796fi
7797if test -z "$ac_cpp_err"; then
7798 ac_header_preproc=yes
c890192f 7799else
bec39cab
AC
7800 echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 ac_header_preproc=no
c890192f 7804fi
bec39cab 7805rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7807echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7808
7809# So? What about this header?
7810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7811 yes:no: )
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7815echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7816 ac_header_preproc=yes
7817 ;;
7818 no:yes:* )
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7822echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7824echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7826echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7830echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7831 (
7832 cat <<\_ASBOX
7833## ------------------------------------------ ##
7834## Report this to the AC_PACKAGE_NAME lists. ##
7835## ------------------------------------------ ##
7836_ASBOX
7837 ) |
7838 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7839 ;;
7840esac
b4e70030
JB
7841echo "$as_me:$LINENO: checking for $ac_header" >&5
7842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7843if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7844 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 7845else
bec39cab 7846 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 7847fi
b4e70030
JB
7848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7850
c890192f 7851fi
bec39cab
AC
7852if test `eval echo '${'$as_ac_Header'}'` = yes; then
7853 cat >>confdefs.h <<_ACEOF
7854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7855_ACEOF
c890192f 7856
c890192f
MK
7857fi
7858
bec39cab 7859done
9a156167 7860
bec39cab
AC
7861
7862for ac_header in stdlib.h
7863do
7864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7865if eval "test \"\${$as_ac_Header+set}\" = set"; then
7866 echo "$as_me:$LINENO: checking for $ac_header" >&5
7867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7868if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870fi
b4e70030
JB
7871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7873else
7874 # Is the header compilable?
b4e70030
JB
7875echo "$as_me:$LINENO: checking $ac_header usability" >&5
7876echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7877cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h. */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h. */
7883$ac_includes_default
7884#include <$ac_header>
7885_ACEOF
7886rm -f conftest.$ac_objext
7887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>conftest.er1
7889 ac_status=$?
7890 grep -v '^ *+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
b4e70030
JB
7895 { ac_try='test -z "$ac_c_werror_flag"
7896 || test ! -s conftest.err'
bec39cab
AC
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_header_compiler=yes
7909else
7910 echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
7912
b4e70030 7913ac_header_compiler=no
bec39cab
AC
7914fi
7915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7917echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7918
7919# Is the header present?
b4e70030
JB
7920echo "$as_me:$LINENO: checking $ac_header presence" >&5
7921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7922cat >conftest.$ac_ext <<_ACEOF
7923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
7928#include <$ac_header>
7929_ACEOF
7930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7932 ac_status=$?
7933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } >/dev/null; then
7938 if test -s conftest.err; then
7939 ac_cpp_err=$ac_c_preproc_warn_flag
7940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7941 else
7942 ac_cpp_err=
7943 fi
9a156167 7944else
bec39cab
AC
7945 ac_cpp_err=yes
7946fi
7947if test -z "$ac_cpp_err"; then
7948 ac_header_preproc=yes
9a156167 7949else
bec39cab
AC
7950 echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 ac_header_preproc=no
9a156167 7954fi
bec39cab 7955rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7957echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7958
7959# So? What about this header?
7960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7961 yes:no: )
7962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7965echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7966 ac_header_preproc=yes
7967 ;;
7968 no:yes:* )
7969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7970echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7972echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7974echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7976echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7980echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7981 (
7982 cat <<\_ASBOX
7983## ------------------------------------------ ##
7984## Report this to the AC_PACKAGE_NAME lists. ##
7985## ------------------------------------------ ##
7986_ASBOX
7987 ) |
7988 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7989 ;;
7990esac
b4e70030
JB
7991echo "$as_me:$LINENO: checking for $ac_header" >&5
7992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7993if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7994 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7995else
bec39cab 7996 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7997fi
b4e70030
JB
7998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8000
9a156167 8001fi
bec39cab
AC
8002if test `eval echo '${'$as_ac_Header'}'` = yes; then
8003 cat >>confdefs.h <<_ACEOF
8004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8005_ACEOF
9a156167 8006
9a156167
MK
8007fi
8008
bec39cab
AC
8009done
8010
06825bd1 8011
bec39cab
AC
8012for ac_header in stdint.h
8013do
8014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8015if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016 echo "$as_me:$LINENO: checking for $ac_header" >&5
8017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8018if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020fi
b4e70030
JB
8021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8023else
8024 # Is the header compilable?
b4e70030
JB
8025echo "$as_me:$LINENO: checking $ac_header usability" >&5
8026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8027cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
8033$ac_includes_default
8034#include <$ac_header>
8035_ACEOF
8036rm -f conftest.$ac_objext
8037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8038 (eval $ac_compile) 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
b4e70030
JB
8045 { ac_try='test -z "$ac_c_werror_flag"
8046 || test ! -s conftest.err'
bec39cab
AC
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 ac_header_compiler=yes
8059else
8060 echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
b4e70030 8063ac_header_compiler=no
bec39cab
AC
8064fi
8065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8066echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8067echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8068
8069# Is the header present?
b4e70030
JB
8070echo "$as_me:$LINENO: checking $ac_header presence" >&5
8071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8072cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
8078#include <$ac_header>
8079_ACEOF
8080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } >/dev/null; then
8088 if test -s conftest.err; then
8089 ac_cpp_err=$ac_c_preproc_warn_flag
8090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8091 else
8092 ac_cpp_err=
8093 fi
06825bd1 8094else
bec39cab
AC
8095 ac_cpp_err=yes
8096fi
8097if test -z "$ac_cpp_err"; then
8098 ac_header_preproc=yes
06825bd1 8099else
bec39cab
AC
8100 echo "$as_me: failed program was:" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 ac_header_preproc=no
06825bd1 8104fi
bec39cab 8105rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8106echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8108
8109# So? What about this header?
8110case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8111 yes:no: )
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8115echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8116 ac_header_preproc=yes
8117 ;;
8118 no:yes:* )
8119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8120echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8122echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8124echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8126echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8128echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8130echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8131 (
8132 cat <<\_ASBOX
8133## ------------------------------------------ ##
8134## Report this to the AC_PACKAGE_NAME lists. ##
8135## ------------------------------------------ ##
8136_ASBOX
8137 ) |
8138 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8139 ;;
8140esac
b4e70030
JB
8141echo "$as_me:$LINENO: checking for $ac_header" >&5
8142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8143if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8144 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8145else
bec39cab 8146 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8147fi
b4e70030
JB
8148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8150
06825bd1 8151fi
bec39cab
AC
8152if test `eval echo '${'$as_ac_Header'}'` = yes; then
8153 cat >>confdefs.h <<_ACEOF
8154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8155_ACEOF
06825bd1 8156
06825bd1 8157fi
4f0be353 8158
bec39cab 8159done
4f0be353 8160
06825bd1 8161
06825bd1 8162
bec39cab
AC
8163
8164for ac_header in string.h memory.h strings.h
8165do
8166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8167if eval "test \"\${$as_ac_Header+set}\" = set"; then
8168 echo "$as_me:$LINENO: checking for $ac_header" >&5
8169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8170if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172fi
b4e70030
JB
8173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8175else
8176 # Is the header compilable?
b4e70030
JB
8177echo "$as_me:$LINENO: checking $ac_header usability" >&5
8178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8179cat >conftest.$ac_ext <<_ACEOF
8180/* confdefs.h. */
8181_ACEOF
8182cat confdefs.h >>conftest.$ac_ext
8183cat >>conftest.$ac_ext <<_ACEOF
8184/* end confdefs.h. */
8185$ac_includes_default
8186#include <$ac_header>
8187_ACEOF
8188rm -f conftest.$ac_objext
8189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
b4e70030
JB
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
bec39cab
AC
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_header_compiler=yes
8211else
8212 echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
b4e70030 8215ac_header_compiler=no
bec39cab
AC
8216fi
8217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8219echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8220
8221# Is the header present?
b4e70030
JB
8222echo "$as_me:$LINENO: checking $ac_header presence" >&5
8223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8224cat >conftest.$ac_ext <<_ACEOF
8225/* confdefs.h. */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h. */
8230#include <$ac_header>
8231_ACEOF
8232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } >/dev/null; then
8240 if test -s conftest.err; then
8241 ac_cpp_err=$ac_c_preproc_warn_flag
8242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8243 else
8244 ac_cpp_err=
8245 fi
06825bd1 8246else
bec39cab
AC
8247 ac_cpp_err=yes
8248fi
8249if test -z "$ac_cpp_err"; then
8250 ac_header_preproc=yes
06825bd1 8251else
bec39cab
AC
8252 echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_header_preproc=no
06825bd1 8256fi
bec39cab 8257rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8259echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8260
8261# So? What about this header?
8262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8263 yes:no: )
8264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8268 ac_header_preproc=yes
8269 ;;
8270 no:yes:* )
8271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8283 (
8284 cat <<\_ASBOX
8285## ------------------------------------------ ##
8286## Report this to the AC_PACKAGE_NAME lists. ##
8287## ------------------------------------------ ##
8288_ASBOX
8289 ) |
8290 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8291 ;;
8292esac
b4e70030
JB
8293echo "$as_me:$LINENO: checking for $ac_header" >&5
8294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8295if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8299fi
b4e70030
JB
8300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8302
06825bd1 8303fi
bec39cab
AC
8304if test `eval echo '${'$as_ac_Header'}'` = yes; then
8305 cat >>confdefs.h <<_ACEOF
8306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8307_ACEOF
06825bd1 8308
06825bd1
MK
8309fi
8310
bec39cab 8311done
5ee754fc 8312
bec39cab
AC
8313
8314for ac_header in sys/fault.h
5ee754fc 8315do
bec39cab 8316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8317if eval "test \"\${$as_ac_Header+set}\" = set"; then
8318 echo "$as_me:$LINENO: checking for $ac_header" >&5
8319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322fi
b4e70030
JB
8323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8325else
8326 # Is the header compilable?
b4e70030
JB
8327echo "$as_me:$LINENO: checking $ac_header usability" >&5
8328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8329cat >conftest.$ac_ext <<_ACEOF
8330/* confdefs.h. */
8331_ACEOF
8332cat confdefs.h >>conftest.$ac_ext
8333cat >>conftest.$ac_ext <<_ACEOF
8334/* end confdefs.h. */
8335$ac_includes_default
8336#include <$ac_header>
8337_ACEOF
8338rm -f conftest.$ac_objext
8339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
b4e70030
JB
8347 { ac_try='test -z "$ac_c_werror_flag"
8348 || test ! -s conftest.err'
bec39cab
AC
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_header_compiler=yes
8361else
8362 echo "$as_me: failed program was:" >&5
8363sed 's/^/| /' conftest.$ac_ext >&5
8364
b4e70030 8365ac_header_compiler=no
bec39cab
AC
8366fi
8367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8369echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8370
8371# Is the header present?
b4e70030
JB
8372echo "$as_me:$LINENO: checking $ac_header presence" >&5
8373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8374cat >conftest.$ac_ext <<_ACEOF
8375/* confdefs.h. */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h. */
8380#include <$ac_header>
8381_ACEOF
8382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } >/dev/null; then
8390 if test -s conftest.err; then
8391 ac_cpp_err=$ac_c_preproc_warn_flag
8392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8393 else
8394 ac_cpp_err=
8395 fi
5ee754fc 8396else
bec39cab 8397 ac_cpp_err=yes
5ee754fc 8398fi
bec39cab
AC
8399if test -z "$ac_cpp_err"; then
8400 ac_header_preproc=yes
8401else
8402 echo "$as_me: failed program was:" >&5
8403sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8404
bec39cab 8405 ac_header_preproc=no
5ee754fc 8406fi
bec39cab 8407rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8409echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8410
8411# So? What about this header?
8412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8413 yes:no: )
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8418 ac_header_preproc=yes
8419 ;;
8420 no:yes:* )
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8433 (
8434 cat <<\_ASBOX
8435## ------------------------------------------ ##
8436## Report this to the AC_PACKAGE_NAME lists. ##
8437## ------------------------------------------ ##
8438_ASBOX
8439 ) |
8440 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8441 ;;
8442esac
b4e70030
JB
8443echo "$as_me:$LINENO: checking for $ac_header" >&5
8444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8445if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8446 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8447else
bec39cab 8448 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8449fi
b4e70030
JB
8450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8452
5ee754fc 8453fi
bec39cab
AC
8454if test `eval echo '${'$as_ac_Header'}'` = yes; then
8455 cat >>confdefs.h <<_ACEOF
8456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8457_ACEOF
c906108c 8458
5ee754fc 8459fi
bec39cab
AC
8460
8461done
8462
8463
8464for ac_header in sys/file.h
8465do
8466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8467if eval "test \"\${$as_ac_Header+set}\" = set"; then
8468 echo "$as_me:$LINENO: checking for $ac_header" >&5
8469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8470if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472fi
b4e70030
JB
8473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8475else
8476 # Is the header compilable?
b4e70030
JB
8477echo "$as_me:$LINENO: checking $ac_header usability" >&5
8478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8479cat >conftest.$ac_ext <<_ACEOF
8480/* confdefs.h. */
8481_ACEOF
8482cat confdefs.h >>conftest.$ac_ext
8483cat >>conftest.$ac_ext <<_ACEOF
8484/* end confdefs.h. */
8485$ac_includes_default
8486#include <$ac_header>
8487_ACEOF
8488rm -f conftest.$ac_objext
8489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
b4e70030
JB
8497 { ac_try='test -z "$ac_c_werror_flag"
8498 || test ! -s conftest.err'
bec39cab
AC
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_header_compiler=yes
8511else
8512 echo "$as_me: failed program was:" >&5
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
b4e70030 8515ac_header_compiler=no
bec39cab
AC
8516fi
8517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8519echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8520
8521# Is the header present?
b4e70030
JB
8522echo "$as_me:$LINENO: checking $ac_header presence" >&5
8523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8524cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h. */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h. */
8530#include <$ac_header>
8531_ACEOF
8532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } >/dev/null; then
8540 if test -s conftest.err; then
8541 ac_cpp_err=$ac_c_preproc_warn_flag
8542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8543 else
8544 ac_cpp_err=
8545 fi
5ee754fc 8546else
bec39cab 8547 ac_cpp_err=yes
5ee754fc 8548fi
bec39cab
AC
8549if test -z "$ac_cpp_err"; then
8550 ac_header_preproc=yes
8551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8554
bec39cab 8555 ac_header_preproc=no
5ee754fc 8556fi
bec39cab 8557rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8559echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8560
bec39cab
AC
8561# So? What about this header?
8562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8563 yes:no: )
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8568 ac_header_preproc=yes
8569 ;;
8570 no:yes:* )
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8583 (
8584 cat <<\_ASBOX
8585## ------------------------------------------ ##
8586## Report this to the AC_PACKAGE_NAME lists. ##
8587## ------------------------------------------ ##
8588_ASBOX
8589 ) |
8590 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8591 ;;
8592esac
b4e70030
JB
8593echo "$as_me:$LINENO: checking for $ac_header" >&5
8594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8595if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8596 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8597else
bec39cab
AC
8598 eval "$as_ac_Header=\$ac_header_preproc"
8599fi
b4e70030
JB
8600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8602
bec39cab
AC
8603fi
8604if test `eval echo '${'$as_ac_Header'}'` = yes; then
8605 cat >>confdefs.h <<_ACEOF
8606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8607_ACEOF
5ee754fc 8608
bec39cab 8609fi
5ee754fc 8610
bec39cab 8611done
5ee754fc 8612
5ee754fc 8613
bec39cab
AC
8614for ac_header in sys/filio.h
8615do
8616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8617if eval "test \"\${$as_ac_Header+set}\" = set"; then
8618 echo "$as_me:$LINENO: checking for $ac_header" >&5
8619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8620if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622fi
b4e70030
JB
8623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8625else
8626 # Is the header compilable?
b4e70030
JB
8627echo "$as_me:$LINENO: checking $ac_header usability" >&5
8628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8629cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635$ac_includes_default
8636#include <$ac_header>
8637_ACEOF
8638rm -f conftest.$ac_objext
8639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
b4e70030
JB
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
bec39cab
AC
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest.$ac_objext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_header_compiler=yes
8661else
8662 echo "$as_me: failed program was:" >&5
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
b4e70030 8665ac_header_compiler=no
bec39cab
AC
8666fi
8667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8669echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8670
8671# Is the header present?
b4e70030
JB
8672echo "$as_me:$LINENO: checking $ac_header presence" >&5
8673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8674cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
8680#include <$ac_header>
8681_ACEOF
8682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } >/dev/null; then
8690 if test -s conftest.err; then
8691 ac_cpp_err=$ac_c_preproc_warn_flag
8692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8693 else
8694 ac_cpp_err=
8695 fi
5ee754fc 8696else
bec39cab 8697 ac_cpp_err=yes
5ee754fc 8698fi
bec39cab
AC
8699if test -z "$ac_cpp_err"; then
8700 ac_header_preproc=yes
8701else
8702 echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8704
bec39cab 8705 ac_header_preproc=no
5ee754fc 8706fi
bec39cab 8707rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8709echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8710
bec39cab
AC
8711# So? What about this header?
8712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8713 yes:no: )
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8718 ac_header_preproc=yes
8719 ;;
8720 no:yes:* )
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8724echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8728echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8733 (
8734 cat <<\_ASBOX
8735## ------------------------------------------ ##
8736## Report this to the AC_PACKAGE_NAME lists. ##
8737## ------------------------------------------ ##
8738_ASBOX
8739 ) |
8740 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8741 ;;
8742esac
b4e70030
JB
8743echo "$as_me:$LINENO: checking for $ac_header" >&5
8744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8745if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8746 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8747else
bec39cab 8748 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8749fi
b4e70030
JB
8750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8752
5ee754fc 8753fi
bec39cab
AC
8754if test `eval echo '${'$as_ac_Header'}'` = yes; then
8755 cat >>confdefs.h <<_ACEOF
8756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8757_ACEOF
5ee754fc
MK
8758
8759fi
8760
bec39cab
AC
8761done
8762
8763
8764for ac_header in sys/ioctl.h
8765do
8766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8767if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768 echo "$as_me:$LINENO: checking for $ac_header" >&5
8769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8770if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772fi
b4e70030
JB
8773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8775else
8776 # Is the header compilable?
b4e70030
JB
8777echo "$as_me:$LINENO: checking $ac_header usability" >&5
8778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8779cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
8785$ac_includes_default
8786#include <$ac_header>
8787_ACEOF
8788rm -f conftest.$ac_objext
8789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
b4e70030
JB
8797 { ac_try='test -z "$ac_c_werror_flag"
8798 || test ! -s conftest.err'
bec39cab
AC
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; } &&
8804 { ac_try='test -s conftest.$ac_objext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 (eval $ac_try) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8810 ac_header_compiler=yes
8811else
8812 echo "$as_me: failed program was:" >&5
8813sed 's/^/| /' conftest.$ac_ext >&5
8814
b4e70030 8815ac_header_compiler=no
bec39cab
AC
8816fi
8817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8819echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8820
8821# Is the header present?
b4e70030
JB
8822echo "$as_me:$LINENO: checking $ac_header presence" >&5
8823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8824cat >conftest.$ac_ext <<_ACEOF
8825/* confdefs.h. */
8826_ACEOF
8827cat confdefs.h >>conftest.$ac_ext
8828cat >>conftest.$ac_ext <<_ACEOF
8829/* end confdefs.h. */
8830#include <$ac_header>
8831_ACEOF
8832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } >/dev/null; then
8840 if test -s conftest.err; then
8841 ac_cpp_err=$ac_c_preproc_warn_flag
8842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8843 else
8844 ac_cpp_err=
8845 fi
5ee754fc 8846else
bec39cab 8847 ac_cpp_err=yes
5ee754fc 8848fi
bec39cab
AC
8849if test -z "$ac_cpp_err"; then
8850 ac_header_preproc=yes
8851else
8852 echo "$as_me: failed program was:" >&5
8853sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8854
bec39cab 8855 ac_header_preproc=no
5ee754fc 8856fi
bec39cab 8857rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8859echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8860
bec39cab
AC
8861# So? What about this header?
8862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8863 yes:no: )
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8868 ac_header_preproc=yes
8869 ;;
8870 no:yes:* )
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8883 (
8884 cat <<\_ASBOX
8885## ------------------------------------------ ##
8886## Report this to the AC_PACKAGE_NAME lists. ##
8887## ------------------------------------------ ##
8888_ASBOX
8889 ) |
8890 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8891 ;;
8892esac
b4e70030
JB
8893echo "$as_me:$LINENO: checking for $ac_header" >&5
8894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8895if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8896 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8897else
bec39cab 8898 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8899fi
b4e70030
JB
8900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
8902
8903fi
bec39cab
AC
8904if test `eval echo '${'$as_ac_Header'}'` = yes; then
8905 cat >>confdefs.h <<_ACEOF
8906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8907_ACEOF
8908
5ee754fc
MK
8909fi
8910
bec39cab 8911done
5ee754fc 8912
5ee754fc 8913
bec39cab 8914for ac_header in sys/param.h
5ee754fc 8915do
bec39cab 8916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8917if eval "test \"\${$as_ac_Header+set}\" = set"; then
8918 echo "$as_me:$LINENO: checking for $ac_header" >&5
8919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8920if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922fi
b4e70030
JB
8923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8925else
8926 # Is the header compilable?
b4e70030
JB
8927echo "$as_me:$LINENO: checking $ac_header usability" >&5
8928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8929cat >conftest.$ac_ext <<_ACEOF
8930/* confdefs.h. */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h. */
8935$ac_includes_default
8936#include <$ac_header>
8937_ACEOF
8938rm -f conftest.$ac_objext
8939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940 (eval $ac_compile) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
b4e70030
JB
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
bec39cab
AC
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest.$ac_objext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_header_compiler=yes
8961else
8962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
b4e70030 8965ac_header_compiler=no
bec39cab
AC
8966fi
8967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8969echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8970
8971# Is the header present?
b4e70030
JB
8972echo "$as_me:$LINENO: checking $ac_header presence" >&5
8973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8974cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980#include <$ac_header>
8981_ACEOF
8982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } >/dev/null; then
8990 if test -s conftest.err; then
8991 ac_cpp_err=$ac_c_preproc_warn_flag
8992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8993 else
8994 ac_cpp_err=
8995 fi
5ee754fc 8996else
bec39cab 8997 ac_cpp_err=yes
5ee754fc 8998fi
bec39cab
AC
8999if test -z "$ac_cpp_err"; then
9000 ac_header_preproc=yes
9001else
9002 echo "$as_me: failed program was:" >&5
9003sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9004
bec39cab 9005 ac_header_preproc=no
5ee754fc 9006fi
bec39cab 9007rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9009echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9010
9011# So? What about this header?
9012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9013 yes:no: )
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9018 ac_header_preproc=yes
9019 ;;
9020 no:yes:* )
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9033 (
9034 cat <<\_ASBOX
9035## ------------------------------------------ ##
9036## Report this to the AC_PACKAGE_NAME lists. ##
9037## ------------------------------------------ ##
9038_ASBOX
9039 ) |
9040 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9041 ;;
9042esac
b4e70030
JB
9043echo "$as_me:$LINENO: checking for $ac_header" >&5
9044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9046 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9047else
bec39cab 9048 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9049fi
b4e70030
JB
9050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9052
5ee754fc 9053fi
bec39cab
AC
9054if test `eval echo '${'$as_ac_Header'}'` = yes; then
9055 cat >>confdefs.h <<_ACEOF
9056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9057_ACEOF
9058
5ee754fc 9059fi
bec39cab 9060
5ee754fc
MK
9061done
9062
bec39cab 9063
7eb368b3
NR
9064for ac_header in sys/resource.h
9065do
9066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9067if eval "test \"\${$as_ac_Header+set}\" = set"; then
9068 echo "$as_me:$LINENO: checking for $ac_header" >&5
9069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9070if eval "test \"\${$as_ac_Header+set}\" = set"; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9072fi
9073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9075else
9076 # Is the header compilable?
9077echo "$as_me:$LINENO: checking $ac_header usability" >&5
9078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9079cat >conftest.$ac_ext <<_ACEOF
9080/* confdefs.h. */
9081_ACEOF
9082cat confdefs.h >>conftest.$ac_ext
9083cat >>conftest.$ac_ext <<_ACEOF
9084/* end confdefs.h. */
9085$ac_includes_default
9086#include <$ac_header>
9087_ACEOF
9088rm -f conftest.$ac_objext
9089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9090 (eval $ac_compile) 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag"
9098 || test ! -s conftest.err'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; } &&
9104 { ac_try='test -s conftest.$ac_objext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 ac_header_compiler=yes
9111else
9112 echo "$as_me: failed program was:" >&5
9113sed 's/^/| /' conftest.$ac_ext >&5
9114
9115ac_header_compiler=no
9116fi
9117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9119echo "${ECHO_T}$ac_header_compiler" >&6
9120
9121# Is the header present?
9122echo "$as_me:$LINENO: checking $ac_header presence" >&5
9123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9124cat >conftest.$ac_ext <<_ACEOF
9125/* confdefs.h. */
9126_ACEOF
9127cat confdefs.h >>conftest.$ac_ext
9128cat >>conftest.$ac_ext <<_ACEOF
9129/* end confdefs.h. */
9130#include <$ac_header>
9131_ACEOF
9132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9134 ac_status=$?
9135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } >/dev/null; then
9140 if test -s conftest.err; then
9141 ac_cpp_err=$ac_c_preproc_warn_flag
9142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9143 else
9144 ac_cpp_err=
9145 fi
9146else
9147 ac_cpp_err=yes
9148fi
9149if test -z "$ac_cpp_err"; then
9150 ac_header_preproc=yes
9151else
9152 echo "$as_me: failed program was:" >&5
9153sed 's/^/| /' conftest.$ac_ext >&5
9154
9155 ac_header_preproc=no
9156fi
9157rm -f conftest.err conftest.$ac_ext
9158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159echo "${ECHO_T}$ac_header_preproc" >&6
9160
9161# So? What about this header?
9162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9163 yes:no: )
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9168 ac_header_preproc=yes
9169 ;;
9170 no:yes:* )
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9183 (
9184 cat <<\_ASBOX
9185## ------------------------------------------ ##
9186## Report this to the AC_PACKAGE_NAME lists. ##
9187## ------------------------------------------ ##
9188_ASBOX
9189 ) |
9190 sed "s/^/$as_me: WARNING: /" >&2
9191 ;;
9192esac
9193echo "$as_me:$LINENO: checking for $ac_header" >&5
9194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9195if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
9198 eval "$as_ac_Header=\$ac_header_preproc"
9199fi
9200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9202
9203fi
9204if test `eval echo '${'$as_ac_Header'}'` = yes; then
9205 cat >>confdefs.h <<_ACEOF
9206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9207_ACEOF
9208
9209fi
9210
9211done
9212
9213
bec39cab 9214for ac_header in sys/proc.h
5ee754fc 9215do
bec39cab 9216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9217echo "$as_me:$LINENO: checking for $ac_header" >&5
9218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9219if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9220 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9221else
7cb9022a 9222 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9223/* confdefs.h. */
9224_ACEOF
9225cat confdefs.h >>conftest.$ac_ext
9226cat >>conftest.$ac_ext <<_ACEOF
9227/* end confdefs.h. */
7cb9022a
MK
9228#if HAVE_SYS_PARAM_H
9229# include <sys/param.h>
9230#endif
9231
9232
bec39cab
AC
9233#include <$ac_header>
9234_ACEOF
9235rm -f conftest.$ac_objext
9236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9237 (eval $ac_compile) 2>conftest.er1
9238 ac_status=$?
9239 grep -v '^ *+' conftest.er1 >conftest.err
9240 rm -f conftest.er1
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
b4e70030
JB
9244 { ac_try='test -z "$ac_c_werror_flag"
9245 || test ! -s conftest.err'
bec39cab
AC
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 (eval $ac_try) 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; } &&
9251 { ac_try='test -s conftest.$ac_objext'
9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 (eval $ac_try) 2>&5
9254 ac_status=$?
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; }; then
7cb9022a 9257 eval "$as_ac_Header=yes"
bec39cab
AC
9258else
9259 echo "$as_me: failed program was:" >&5
9260sed 's/^/| /' conftest.$ac_ext >&5
9261
b4e70030 9262eval "$as_ac_Header=no"
bec39cab
AC
9263fi
9264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9265fi
b4e70030
JB
9266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9268if test `eval echo '${'$as_ac_Header'}'` = yes; then
9269 cat >>confdefs.h <<_ACEOF
9270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9271_ACEOF
9272
5ee754fc 9273fi
bec39cab 9274
5ee754fc
MK
9275done
9276
bec39cab
AC
9277
9278for ac_header in sys/procfs.h
5ee754fc 9279do
bec39cab 9280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9281if eval "test \"\${$as_ac_Header+set}\" = set"; then
9282 echo "$as_me:$LINENO: checking for $ac_header" >&5
9283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9284if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286fi
b4e70030
JB
9287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9289else
9290 # Is the header compilable?
b4e70030
JB
9291echo "$as_me:$LINENO: checking $ac_header usability" >&5
9292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9293cat >conftest.$ac_ext <<_ACEOF
9294/* confdefs.h. */
9295_ACEOF
9296cat confdefs.h >>conftest.$ac_ext
9297cat >>conftest.$ac_ext <<_ACEOF
9298/* end confdefs.h. */
9299$ac_includes_default
9300#include <$ac_header>
9301_ACEOF
9302rm -f conftest.$ac_objext
9303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304 (eval $ac_compile) 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
b4e70030
JB
9311 { ac_try='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
bec39cab
AC
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_header_compiler=yes
9325else
9326 echo "$as_me: failed program was:" >&5
9327sed 's/^/| /' conftest.$ac_ext >&5
9328
b4e70030 9329ac_header_compiler=no
bec39cab
AC
9330fi
9331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9332echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9333echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9334
9335# Is the header present?
b4e70030
JB
9336echo "$as_me:$LINENO: checking $ac_header presence" >&5
9337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9338cat >conftest.$ac_ext <<_ACEOF
9339/* confdefs.h. */
9340_ACEOF
9341cat confdefs.h >>conftest.$ac_ext
9342cat >>conftest.$ac_ext <<_ACEOF
9343/* end confdefs.h. */
9344#include <$ac_header>
9345_ACEOF
9346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } >/dev/null; then
9354 if test -s conftest.err; then
9355 ac_cpp_err=$ac_c_preproc_warn_flag
9356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9357 else
9358 ac_cpp_err=
9359 fi
9360else
9361 ac_cpp_err=yes
5ee754fc 9362fi
bec39cab
AC
9363if test -z "$ac_cpp_err"; then
9364 ac_header_preproc=yes
5ee754fc 9365else
bec39cab
AC
9366 echo "$as_me: failed program was:" >&5
9367sed 's/^/| /' conftest.$ac_ext >&5
9368
9369 ac_header_preproc=no
5ee754fc 9370fi
bec39cab 9371rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9373echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9374
bec39cab
AC
9375# So? What about this header?
9376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9377 yes:no: )
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9382 ac_header_preproc=yes
9383 ;;
9384 no:yes:* )
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9397 (
9398 cat <<\_ASBOX
9399## ------------------------------------------ ##
9400## Report this to the AC_PACKAGE_NAME lists. ##
9401## ------------------------------------------ ##
9402_ASBOX
9403 ) |
9404 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9405 ;;
9406esac
b4e70030
JB
9407echo "$as_me:$LINENO: checking for $ac_header" >&5
9408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9409if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411else
9412 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9413fi
b4e70030
JB
9414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9416
5ee754fc 9417fi
bec39cab
AC
9418if test `eval echo '${'$as_ac_Header'}'` = yes; then
9419 cat >>confdefs.h <<_ACEOF
9420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9421_ACEOF
9422
5ee754fc 9423fi
bec39cab 9424
5ee754fc
MK
9425done
9426
bec39cab
AC
9427
9428
9429for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9430do
bec39cab 9431as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9432if eval "test \"\${$as_ac_Header+set}\" = set"; then
9433 echo "$as_me:$LINENO: checking for $ac_header" >&5
9434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9435if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9437fi
b4e70030
JB
9438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9440else
9441 # Is the header compilable?
b4e70030
JB
9442echo "$as_me:$LINENO: checking $ac_header usability" >&5
9443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9444cat >conftest.$ac_ext <<_ACEOF
9445/* confdefs.h. */
9446_ACEOF
9447cat confdefs.h >>conftest.$ac_ext
9448cat >>conftest.$ac_ext <<_ACEOF
9449/* end confdefs.h. */
9450$ac_includes_default
9451#include <$ac_header>
9452_ACEOF
9453rm -f conftest.$ac_objext
9454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9455 (eval $ac_compile) 2>conftest.er1
9456 ac_status=$?
9457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } &&
b4e70030
JB
9462 { ac_try='test -z "$ac_c_werror_flag"
9463 || test ! -s conftest.err'
bec39cab
AC
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; } &&
9469 { ac_try='test -s conftest.$ac_objext'
9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 (eval $ac_try) 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; }; then
9475 ac_header_compiler=yes
9476else
9477 echo "$as_me: failed program was:" >&5
9478sed 's/^/| /' conftest.$ac_ext >&5
9479
b4e70030 9480ac_header_compiler=no
bec39cab
AC
9481fi
9482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9484echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9485
9486# Is the header present?
b4e70030
JB
9487echo "$as_me:$LINENO: checking $ac_header presence" >&5
9488echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9489cat >conftest.$ac_ext <<_ACEOF
9490/* confdefs.h. */
9491_ACEOF
9492cat confdefs.h >>conftest.$ac_ext
9493cat >>conftest.$ac_ext <<_ACEOF
9494/* end confdefs.h. */
9495#include <$ac_header>
9496_ACEOF
9497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } >/dev/null; then
9505 if test -s conftest.err; then
9506 ac_cpp_err=$ac_c_preproc_warn_flag
9507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9508 else
9509 ac_cpp_err=
9510 fi
9511else
9512 ac_cpp_err=yes
5ee754fc 9513fi
bec39cab
AC
9514if test -z "$ac_cpp_err"; then
9515 ac_header_preproc=yes
5ee754fc 9516else
bec39cab
AC
9517 echo "$as_me: failed program was:" >&5
9518sed 's/^/| /' conftest.$ac_ext >&5
9519
9520 ac_header_preproc=no
5ee754fc 9521fi
bec39cab 9522rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9524echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9525
bec39cab
AC
9526# So? What about this header?
9527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9528 yes:no: )
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9532echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9533 ac_header_preproc=yes
9534 ;;
9535 no:yes:* )
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9541echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9543echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9548 (
9549 cat <<\_ASBOX
9550## ------------------------------------------ ##
9551## Report this to the AC_PACKAGE_NAME lists. ##
9552## ------------------------------------------ ##
9553_ASBOX
9554 ) |
9555 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9556 ;;
9557esac
b4e70030
JB
9558echo "$as_me:$LINENO: checking for $ac_header" >&5
9559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9560if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562else
9563 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9564fi
b4e70030
JB
9565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9567
5ee754fc 9568fi
bec39cab
AC
9569if test `eval echo '${'$as_ac_Header'}'` = yes; then
9570 cat >>confdefs.h <<_ACEOF
9571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9572_ACEOF
9573
5ee754fc 9574fi
bec39cab 9575
5ee754fc
MK
9576done
9577
bec39cab
AC
9578
9579
9580for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9581do
bec39cab 9582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9583if eval "test \"\${$as_ac_Header+set}\" = set"; then
9584 echo "$as_me:$LINENO: checking for $ac_header" >&5
9585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9586if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588fi
b4e70030
JB
9589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9591else
9592 # Is the header compilable?
b4e70030
JB
9593echo "$as_me:$LINENO: checking $ac_header usability" >&5
9594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
9601$ac_includes_default
9602#include <$ac_header>
9603_ACEOF
9604rm -f conftest.$ac_objext
9605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>conftest.er1
9607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
b4e70030
JB
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
bec39cab
AC
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_header_compiler=yes
9627else
9628 echo "$as_me: failed program was:" >&5
9629sed 's/^/| /' conftest.$ac_ext >&5
9630
b4e70030 9631ac_header_compiler=no
bec39cab
AC
9632fi
9633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9635echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9636
9637# Is the header present?
b4e70030
JB
9638echo "$as_me:$LINENO: checking $ac_header presence" >&5
9639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9640cat >conftest.$ac_ext <<_ACEOF
9641/* confdefs.h. */
9642_ACEOF
9643cat confdefs.h >>conftest.$ac_ext
9644cat >>conftest.$ac_ext <<_ACEOF
9645/* end confdefs.h. */
9646#include <$ac_header>
9647_ACEOF
9648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } >/dev/null; then
9656 if test -s conftest.err; then
9657 ac_cpp_err=$ac_c_preproc_warn_flag
9658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9659 else
9660 ac_cpp_err=
9661 fi
9662else
9663 ac_cpp_err=yes
5ee754fc 9664fi
bec39cab
AC
9665if test -z "$ac_cpp_err"; then
9666 ac_header_preproc=yes
5ee754fc 9667else
bec39cab
AC
9668 echo "$as_me: failed program was:" >&5
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 ac_header_preproc=no
5ee754fc 9672fi
bec39cab 9673rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9675echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9676
bec39cab
AC
9677# So? What about this header?
9678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9679 yes:no: )
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9684 ac_header_preproc=yes
9685 ;;
9686 no:yes:* )
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9694echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9699 (
9700 cat <<\_ASBOX
9701## ------------------------------------------ ##
9702## Report this to the AC_PACKAGE_NAME lists. ##
9703## ------------------------------------------ ##
9704_ASBOX
9705 ) |
9706 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9707 ;;
9708esac
b4e70030
JB
9709echo "$as_me:$LINENO: checking for $ac_header" >&5
9710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9711if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713else
9714 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9715fi
b4e70030
JB
9716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9718
5ee754fc 9719fi
bec39cab
AC
9720if test `eval echo '${'$as_ac_Header'}'` = yes; then
9721 cat >>confdefs.h <<_ACEOF
9722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9723_ACEOF
9724
5ee754fc 9725fi
bec39cab 9726
5ee754fc
MK
9727done
9728
bec39cab
AC
9729
9730for ac_header in sys/select.h
5ee754fc 9731do
bec39cab 9732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9733if eval "test \"\${$as_ac_Header+set}\" = set"; then
9734 echo "$as_me:$LINENO: checking for $ac_header" >&5
9735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9736if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738fi
b4e70030
JB
9739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9741else
9742 # Is the header compilable?
b4e70030
JB
9743echo "$as_me:$LINENO: checking $ac_header usability" >&5
9744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9745cat >conftest.$ac_ext <<_ACEOF
9746/* confdefs.h. */
9747_ACEOF
9748cat confdefs.h >>conftest.$ac_ext
9749cat >>conftest.$ac_ext <<_ACEOF
9750/* end confdefs.h. */
9751$ac_includes_default
9752#include <$ac_header>
9753_ACEOF
9754rm -f conftest.$ac_objext
9755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
b4e70030
JB
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
bec39cab
AC
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_header_compiler=yes
9777else
9778 echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
b4e70030 9781ac_header_compiler=no
bec39cab
AC
9782fi
9783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9785echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9786
9787# Is the header present?
b4e70030
JB
9788echo "$as_me:$LINENO: checking $ac_header presence" >&5
9789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9790cat >conftest.$ac_ext <<_ACEOF
9791/* confdefs.h. */
9792_ACEOF
9793cat confdefs.h >>conftest.$ac_ext
9794cat >>conftest.$ac_ext <<_ACEOF
9795/* end confdefs.h. */
9796#include <$ac_header>
9797_ACEOF
9798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } >/dev/null; then
9806 if test -s conftest.err; then
9807 ac_cpp_err=$ac_c_preproc_warn_flag
9808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9809 else
9810 ac_cpp_err=
9811 fi
9812else
9813 ac_cpp_err=yes
5ee754fc 9814fi
bec39cab
AC
9815if test -z "$ac_cpp_err"; then
9816 ac_header_preproc=yes
5ee754fc 9817else
bec39cab
AC
9818 echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_header_preproc=no
5ee754fc 9822fi
bec39cab 9823rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9825echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9826
bec39cab
AC
9827# So? What about this header?
9828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9829 yes:no: )
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9834 ac_header_preproc=yes
9835 ;;
9836 no:yes:* )
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9844echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9849 (
9850 cat <<\_ASBOX
9851## ------------------------------------------ ##
9852## Report this to the AC_PACKAGE_NAME lists. ##
9853## ------------------------------------------ ##
9854_ASBOX
9855 ) |
9856 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9857 ;;
9858esac
b4e70030
JB
9859echo "$as_me:$LINENO: checking for $ac_header" >&5
9860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9861if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9865fi
b4e70030
JB
9866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9868
5ee754fc 9869fi
bec39cab
AC
9870if test `eval echo '${'$as_ac_Header'}'` = yes; then
9871 cat >>confdefs.h <<_ACEOF
9872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9873_ACEOF
9874
5ee754fc 9875fi
bec39cab 9876
5ee754fc
MK
9877done
9878
bec39cab
AC
9879
9880for ac_header in sys/syscall.h
5ee754fc 9881do
bec39cab 9882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9883if eval "test \"\${$as_ac_Header+set}\" = set"; then
9884 echo "$as_me:$LINENO: checking for $ac_header" >&5
9885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9886if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888fi
b4e70030
JB
9889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9891else
9892 # Is the header compilable?
b4e70030
JB
9893echo "$as_me:$LINENO: checking $ac_header usability" >&5
9894echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9895cat >conftest.$ac_ext <<_ACEOF
9896/* confdefs.h. */
9897_ACEOF
9898cat confdefs.h >>conftest.$ac_ext
9899cat >>conftest.$ac_ext <<_ACEOF
9900/* end confdefs.h. */
9901$ac_includes_default
9902#include <$ac_header>
9903_ACEOF
9904rm -f conftest.$ac_objext
9905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906 (eval $ac_compile) 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
b4e70030
JB
9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
bec39cab
AC
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest.$ac_objext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_header_compiler=yes
9927else
9928 echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
b4e70030 9931ac_header_compiler=no
bec39cab
AC
9932fi
9933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9934echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9935echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9936
9937# Is the header present?
b4e70030
JB
9938echo "$as_me:$LINENO: checking $ac_header presence" >&5
9939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9940cat >conftest.$ac_ext <<_ACEOF
9941/* confdefs.h. */
9942_ACEOF
9943cat confdefs.h >>conftest.$ac_ext
9944cat >>conftest.$ac_ext <<_ACEOF
9945/* end confdefs.h. */
9946#include <$ac_header>
9947_ACEOF
9948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } >/dev/null; then
9956 if test -s conftest.err; then
9957 ac_cpp_err=$ac_c_preproc_warn_flag
9958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9959 else
9960 ac_cpp_err=
9961 fi
9962else
9963 ac_cpp_err=yes
5ee754fc 9964fi
bec39cab
AC
9965if test -z "$ac_cpp_err"; then
9966 ac_header_preproc=yes
5ee754fc 9967else
bec39cab
AC
9968 echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971 ac_header_preproc=no
5ee754fc 9972fi
bec39cab 9973rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9975echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9976
bec39cab
AC
9977# So? What about this header?
9978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9979 yes:no: )
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9984 ac_header_preproc=yes
9985 ;;
9986 no:yes:* )
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9999 (
10000 cat <<\_ASBOX
10001## ------------------------------------------ ##
10002## Report this to the AC_PACKAGE_NAME lists. ##
10003## ------------------------------------------ ##
10004_ASBOX
10005 ) |
10006 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10007 ;;
10008esac
b4e70030
JB
10009echo "$as_me:$LINENO: checking for $ac_header" >&5
10010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10011if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013else
10014 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10015fi
b4e70030
JB
10016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10018
5ee754fc 10019fi
bec39cab
AC
10020if test `eval echo '${'$as_ac_Header'}'` = yes; then
10021 cat >>confdefs.h <<_ACEOF
10022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10023_ACEOF
10024
5ee754fc 10025fi
bec39cab 10026
5ee754fc
MK
10027done
10028
bec39cab
AC
10029
10030for ac_header in sys/types.h
5ee754fc 10031do
bec39cab 10032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10033if eval "test \"\${$as_ac_Header+set}\" = set"; then
10034 echo "$as_me:$LINENO: checking for $ac_header" >&5
10035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10036if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10038fi
b4e70030
JB
10039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10041else
10042 # Is the header compilable?
b4e70030
JB
10043echo "$as_me:$LINENO: checking $ac_header usability" >&5
10044echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10045cat >conftest.$ac_ext <<_ACEOF
10046/* confdefs.h. */
10047_ACEOF
10048cat confdefs.h >>conftest.$ac_ext
10049cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h. */
10051$ac_includes_default
10052#include <$ac_header>
10053_ACEOF
10054rm -f conftest.$ac_objext
10055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10056 (eval $ac_compile) 2>conftest.er1
10057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
b4e70030
JB
10063 { ac_try='test -z "$ac_c_werror_flag"
10064 || test ! -s conftest.err'
bec39cab
AC
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest.$ac_objext'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_header_compiler=yes
10077else
10078 echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
b4e70030 10081ac_header_compiler=no
bec39cab
AC
10082fi
10083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10084echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10085echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10086
10087# Is the header present?
b4e70030
JB
10088echo "$as_me:$LINENO: checking $ac_header presence" >&5
10089echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
10097_ACEOF
10098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } >/dev/null; then
10106 if test -s conftest.err; then
10107 ac_cpp_err=$ac_c_preproc_warn_flag
10108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10109 else
10110 ac_cpp_err=
10111 fi
10112else
10113 ac_cpp_err=yes
5ee754fc 10114fi
bec39cab
AC
10115if test -z "$ac_cpp_err"; then
10116 ac_header_preproc=yes
5ee754fc 10117else
bec39cab
AC
10118 echo "$as_me: failed program was:" >&5
10119sed 's/^/| /' conftest.$ac_ext >&5
10120
10121 ac_header_preproc=no
5ee754fc 10122fi
bec39cab 10123rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10124echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10125echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10126
bec39cab
AC
10127# So? What about this header?
10128case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10129 yes:no: )
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10131echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10133echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10134 ac_header_preproc=yes
10135 ;;
10136 no:yes:* )
10137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10138echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10140echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10142echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10144echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10146echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10148echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10149 (
10150 cat <<\_ASBOX
10151## ------------------------------------------ ##
10152## Report this to the AC_PACKAGE_NAME lists. ##
10153## ------------------------------------------ ##
10154_ASBOX
10155 ) |
10156 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10157 ;;
10158esac
b4e70030
JB
10159echo "$as_me:$LINENO: checking for $ac_header" >&5
10160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10161if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163else
10164 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10165fi
b4e70030
JB
10166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10167echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10168
5ee754fc 10169fi
bec39cab
AC
10170if test `eval echo '${'$as_ac_Header'}'` = yes; then
10171 cat >>confdefs.h <<_ACEOF
10172#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10173_ACEOF
10174
5ee754fc 10175fi
bec39cab 10176
5ee754fc
MK
10177done
10178
bec39cab
AC
10179
10180for ac_header in sys/user.h
5ee754fc 10181do
bec39cab 10182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10183echo "$as_me:$LINENO: checking for $ac_header" >&5
10184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10185if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10186 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10187else
7cb9022a 10188 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10189/* confdefs.h. */
10190_ACEOF
10191cat confdefs.h >>conftest.$ac_ext
10192cat >>conftest.$ac_ext <<_ACEOF
10193/* end confdefs.h. */
7cb9022a
MK
10194#if HAVE_SYS_PARAM_H
10195# include <sys/param.h>
10196#endif
10197
10198
bec39cab
AC
10199#include <$ac_header>
10200_ACEOF
10201rm -f conftest.$ac_objext
10202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203 (eval $ac_compile) 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } &&
b4e70030
JB
10210 { ac_try='test -z "$ac_c_werror_flag"
10211 || test ! -s conftest.err'
bec39cab
AC
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try='test -s conftest.$ac_objext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
7cb9022a 10223 eval "$as_ac_Header=yes"
bec39cab
AC
10224else
10225 echo "$as_me: failed program was:" >&5
10226sed 's/^/| /' conftest.$ac_ext >&5
10227
b4e70030 10228eval "$as_ac_Header=no"
bec39cab
AC
10229fi
10230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10231fi
b4e70030
JB
10232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10234if test `eval echo '${'$as_ac_Header'}'` = yes; then
10235 cat >>confdefs.h <<_ACEOF
10236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10237_ACEOF
10238
5ee754fc 10239fi
bec39cab 10240
5ee754fc
MK
10241done
10242
bec39cab
AC
10243
10244
10245for ac_header in sys/wait.h wait.h
5ee754fc 10246do
bec39cab 10247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10248if eval "test \"\${$as_ac_Header+set}\" = set"; then
10249 echo "$as_me:$LINENO: checking for $ac_header" >&5
10250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10251if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253fi
b4e70030
JB
10254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10256else
10257 # Is the header compilable?
b4e70030
JB
10258echo "$as_me:$LINENO: checking $ac_header usability" >&5
10259echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10260cat >conftest.$ac_ext <<_ACEOF
10261/* confdefs.h. */
10262_ACEOF
10263cat confdefs.h >>conftest.$ac_ext
10264cat >>conftest.$ac_ext <<_ACEOF
10265/* end confdefs.h. */
10266$ac_includes_default
10267#include <$ac_header>
10268_ACEOF
10269rm -f conftest.$ac_objext
10270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271 (eval $ac_compile) 2>conftest.er1
10272 ac_status=$?
10273 grep -v '^ *+' conftest.er1 >conftest.err
10274 rm -f conftest.er1
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } &&
b4e70030
JB
10278 { ac_try='test -z "$ac_c_werror_flag"
10279 || test ! -s conftest.err'
bec39cab
AC
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; } &&
10285 { ac_try='test -s conftest.$ac_objext'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10291 ac_header_compiler=yes
10292else
10293 echo "$as_me: failed program was:" >&5
10294sed 's/^/| /' conftest.$ac_ext >&5
10295
b4e70030 10296ac_header_compiler=no
bec39cab
AC
10297fi
10298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10300echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10301
10302# Is the header present?
b4e70030
JB
10303echo "$as_me:$LINENO: checking $ac_header presence" >&5
10304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10305cat >conftest.$ac_ext <<_ACEOF
10306/* confdefs.h. */
10307_ACEOF
10308cat confdefs.h >>conftest.$ac_ext
10309cat >>conftest.$ac_ext <<_ACEOF
10310/* end confdefs.h. */
10311#include <$ac_header>
10312_ACEOF
10313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } >/dev/null; then
10321 if test -s conftest.err; then
10322 ac_cpp_err=$ac_c_preproc_warn_flag
10323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10324 else
10325 ac_cpp_err=
10326 fi
10327else
10328 ac_cpp_err=yes
5ee754fc 10329fi
bec39cab
AC
10330if test -z "$ac_cpp_err"; then
10331 ac_header_preproc=yes
5ee754fc 10332else
bec39cab
AC
10333 echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 ac_header_preproc=no
5ee754fc 10337fi
bec39cab 10338rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10340echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10341
bec39cab
AC
10342# So? What about this header?
10343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10344 yes:no: )
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10349 ac_header_preproc=yes
10350 ;;
10351 no:yes:* )
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10364 (
10365 cat <<\_ASBOX
10366## ------------------------------------------ ##
10367## Report this to the AC_PACKAGE_NAME lists. ##
10368## ------------------------------------------ ##
10369_ASBOX
10370 ) |
10371 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10372 ;;
10373esac
b4e70030
JB
10374echo "$as_me:$LINENO: checking for $ac_header" >&5
10375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10376if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378else
10379 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10380fi
b4e70030
JB
10381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10383
9608ab8b 10384fi
bec39cab
AC
10385if test `eval echo '${'$as_ac_Header'}'` = yes; then
10386 cat >>confdefs.h <<_ACEOF
10387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10388_ACEOF
10389
9608ab8b 10390fi
bec39cab 10391
9608ab8b 10392done
5ee754fc 10393
bec39cab
AC
10394
10395
10396
10397for ac_header in termios.h termio.h sgtty.h
5ee754fc 10398do
bec39cab 10399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10400if eval "test \"\${$as_ac_Header+set}\" = set"; then
10401 echo "$as_me:$LINENO: checking for $ac_header" >&5
10402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10403if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405fi
b4e70030
JB
10406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10408else
10409 # Is the header compilable?
b4e70030
JB
10410echo "$as_me:$LINENO: checking $ac_header usability" >&5
10411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10412cat >conftest.$ac_ext <<_ACEOF
10413/* confdefs.h. */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h. */
10418$ac_includes_default
10419#include <$ac_header>
10420_ACEOF
10421rm -f conftest.$ac_objext
10422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423 (eval $ac_compile) 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
b4e70030
JB
10430 { ac_try='test -z "$ac_c_werror_flag"
10431 || test ! -s conftest.err'
bec39cab
AC
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest.$ac_objext'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_header_compiler=yes
10444else
10445 echo "$as_me: failed program was:" >&5
10446sed 's/^/| /' conftest.$ac_ext >&5
10447
b4e70030 10448ac_header_compiler=no
bec39cab
AC
10449fi
10450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10452echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10453
10454# Is the header present?
b4e70030
JB
10455echo "$as_me:$LINENO: checking $ac_header presence" >&5
10456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10457cat >conftest.$ac_ext <<_ACEOF
10458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
10463#include <$ac_header>
10464_ACEOF
10465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } >/dev/null; then
10473 if test -s conftest.err; then
10474 ac_cpp_err=$ac_c_preproc_warn_flag
10475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10476 else
10477 ac_cpp_err=
10478 fi
10479else
10480 ac_cpp_err=yes
9608ab8b 10481fi
bec39cab
AC
10482if test -z "$ac_cpp_err"; then
10483 ac_header_preproc=yes
9608ab8b 10484else
bec39cab
AC
10485 echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ac_header_preproc=no
9608ab8b 10489fi
bec39cab 10490rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10492echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10493
bec39cab
AC
10494# So? What about this header?
10495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10496 yes:no: )
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10501 ac_header_preproc=yes
10502 ;;
10503 no:yes:* )
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10516 (
10517 cat <<\_ASBOX
10518## ------------------------------------------ ##
10519## Report this to the AC_PACKAGE_NAME lists. ##
10520## ------------------------------------------ ##
10521_ASBOX
10522 ) |
10523 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10524 ;;
10525esac
b4e70030
JB
10526echo "$as_me:$LINENO: checking for $ac_header" >&5
10527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10528if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10532fi
b4e70030
JB
10533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10535
9608ab8b 10536fi
bec39cab
AC
10537if test `eval echo '${'$as_ac_Header'}'` = yes; then
10538 cat >>confdefs.h <<_ACEOF
10539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10540_ACEOF
10541
9608ab8b 10542fi
bec39cab 10543
5ee754fc 10544done
9608ab8b 10545
bec39cab
AC
10546
10547for ac_header in unistd.h
78434e59 10548do
bec39cab 10549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10550if eval "test \"\${$as_ac_Header+set}\" = set"; then
10551 echo "$as_me:$LINENO: checking for $ac_header" >&5
10552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10553if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555fi
b4e70030
JB
10556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10558else
10559 # Is the header compilable?
b4e70030
JB
10560echo "$as_me:$LINENO: checking $ac_header usability" >&5
10561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10562cat >conftest.$ac_ext <<_ACEOF
10563/* confdefs.h. */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
10567/* end confdefs.h. */
10568$ac_includes_default
10569#include <$ac_header>
10570_ACEOF
10571rm -f conftest.$ac_objext
10572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573 (eval $ac_compile) 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
b4e70030
JB
10580 { ac_try='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
bec39cab
AC
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest.$ac_objext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_header_compiler=yes
10594else
10595 echo "$as_me: failed program was:" >&5
10596sed 's/^/| /' conftest.$ac_ext >&5
10597
b4e70030 10598ac_header_compiler=no
bec39cab
AC
10599fi
10600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10602echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10603
10604# Is the header present?
b4e70030
JB
10605echo "$as_me:$LINENO: checking $ac_header presence" >&5
10606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10607cat >conftest.$ac_ext <<_ACEOF
10608/* confdefs.h. */
10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h. */
10613#include <$ac_header>
10614_ACEOF
10615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } >/dev/null; then
10623 if test -s conftest.err; then
10624 ac_cpp_err=$ac_c_preproc_warn_flag
10625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10626 else
10627 ac_cpp_err=
10628 fi
10629else
10630 ac_cpp_err=yes
78434e59 10631fi
bec39cab
AC
10632if test -z "$ac_cpp_err"; then
10633 ac_header_preproc=yes
78434e59 10634else
bec39cab
AC
10635 echo "$as_me: failed program was:" >&5
10636sed 's/^/| /' conftest.$ac_ext >&5
10637
10638 ac_header_preproc=no
78434e59 10639fi
bec39cab 10640rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10642echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 10643
bec39cab
AC
10644# So? What about this header?
10645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10646 yes:no: )
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10650echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10651 ac_header_preproc=yes
10652 ;;
10653 no:yes:* )
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10657echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10659echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10661echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10665echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10666 (
10667 cat <<\_ASBOX
10668## ------------------------------------------ ##
10669## Report this to the AC_PACKAGE_NAME lists. ##
10670## ------------------------------------------ ##
10671_ASBOX
10672 ) |
10673 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10674 ;;
10675esac
b4e70030
JB
10676echo "$as_me:$LINENO: checking for $ac_header" >&5
10677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10678if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680else
10681 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 10682fi
b4e70030
JB
10683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10685
086ec9eb 10686fi
bec39cab
AC
10687if test `eval echo '${'$as_ac_Header'}'` = yes; then
10688 cat >>confdefs.h <<_ACEOF
10689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10690_ACEOF
10691
086ec9eb 10692fi
bec39cab 10693
086ec9eb
MK
10694done
10695
9608ab8b 10696
b1d19a62 10697# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
10698# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10699# think that we don't have <curses.h> if we're using GCC.
10700case $host_os in
b1d19a62 10701 solaris2.[789])
5ee754fc 10702 if test "$GCC" = yes; then
bec39cab
AC
10703
10704cat >>confdefs.h <<\_ACEOF
5ee754fc 10705#define _MSE_INT_H 1
bec39cab 10706_ACEOF
5ee754fc
MK
10707
10708 fi ;;
10709esac
bec39cab
AC
10710
10711
10712
10713
10714for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 10715do
bec39cab 10716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10717if eval "test \"\${$as_ac_Header+set}\" = set"; then
10718 echo "$as_me:$LINENO: checking for $ac_header" >&5
10719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10720if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10722fi
b4e70030
JB
10723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10725else
10726 # Is the header compilable?
b4e70030
JB
10727echo "$as_me:$LINENO: checking $ac_header usability" >&5
10728echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10729cat >conftest.$ac_ext <<_ACEOF
10730/* confdefs.h. */
10731_ACEOF
10732cat confdefs.h >>conftest.$ac_ext
10733cat >>conftest.$ac_ext <<_ACEOF
10734/* end confdefs.h. */
10735$ac_includes_default
10736#include <$ac_header>
10737_ACEOF
10738rm -f conftest.$ac_objext
10739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740 (eval $ac_compile) 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
b4e70030
JB
10747 { ac_try='test -z "$ac_c_werror_flag"
10748 || test ! -s conftest.err'
bec39cab
AC
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest.$ac_objext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 ac_header_compiler=yes
10761else
10762 echo "$as_me: failed program was:" >&5
10763sed 's/^/| /' conftest.$ac_ext >&5
10764
b4e70030 10765ac_header_compiler=no
bec39cab
AC
10766fi
10767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10769echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10770
10771# Is the header present?
b4e70030
JB
10772echo "$as_me:$LINENO: checking $ac_header presence" >&5
10773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10774cat >conftest.$ac_ext <<_ACEOF
10775/* confdefs.h. */
10776_ACEOF
10777cat confdefs.h >>conftest.$ac_ext
10778cat >>conftest.$ac_ext <<_ACEOF
10779/* end confdefs.h. */
10780#include <$ac_header>
10781_ACEOF
10782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } >/dev/null; then
10790 if test -s conftest.err; then
10791 ac_cpp_err=$ac_c_preproc_warn_flag
10792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10793 else
10794 ac_cpp_err=
10795 fi
10796else
10797 ac_cpp_err=yes
c906108c 10798fi
bec39cab
AC
10799if test -z "$ac_cpp_err"; then
10800 ac_header_preproc=yes
10801else
10802 echo "$as_me: failed program was:" >&5
10803sed 's/^/| /' conftest.$ac_ext >&5
10804
10805 ac_header_preproc=no
c906108c 10806fi
bec39cab 10807rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10809echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10810
10811# So? What about this header?
10812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10813 yes:no: )
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10818 ac_header_preproc=yes
10819 ;;
10820 no:yes:* )
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10828echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10833 (
10834 cat <<\_ASBOX
10835## ------------------------------------------ ##
10836## Report this to the AC_PACKAGE_NAME lists. ##
10837## ------------------------------------------ ##
10838_ASBOX
10839 ) |
10840 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10841 ;;
10842esac
b4e70030
JB
10843echo "$as_me:$LINENO: checking for $ac_header" >&5
10844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10845if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10846 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 10847else
bec39cab 10848 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10849fi
b4e70030
JB
10850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10852
10853fi
10854if test `eval echo '${'$as_ac_Header'}'` = yes; then
10855 cat >>confdefs.h <<_ACEOF
10856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10857_ACEOF
10858
10859fi
10860
5ee754fc 10861done
c906108c 10862
bec39cab 10863
065a1afc 10864for ac_header in ncurses/term.h
3b78cdbb 10865do
bec39cab 10866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10867if eval "test \"\${$as_ac_Header+set}\" = set"; then
10868 echo "$as_me:$LINENO: checking for $ac_header" >&5
10869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10870if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872fi
b4e70030
JB
10873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10875else
10876 # Is the header compilable?
b4e70030
JB
10877echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10879cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
10885$ac_includes_default
10886#include <$ac_header>
10887_ACEOF
10888rm -f conftest.$ac_objext
10889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>conftest.er1
10891 ac_status=$?
10892 grep -v '^ *+' conftest.er1 >conftest.err
10893 rm -f conftest.er1
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
b4e70030
JB
10897 { ac_try='test -z "$ac_c_werror_flag"
10898 || test ! -s conftest.err'
bec39cab
AC
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try='test -s conftest.$ac_objext'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ac_header_compiler=yes
10911else
10912 echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
b4e70030 10915ac_header_compiler=no
bec39cab
AC
10916fi
10917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10919echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10920
10921# Is the header present?
b4e70030
JB
10922echo "$as_me:$LINENO: checking $ac_header presence" >&5
10923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10924cat >conftest.$ac_ext <<_ACEOF
10925/* confdefs.h. */
10926_ACEOF
10927cat confdefs.h >>conftest.$ac_ext
10928cat >>conftest.$ac_ext <<_ACEOF
10929/* end confdefs.h. */
10930#include <$ac_header>
10931_ACEOF
10932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } >/dev/null; then
10940 if test -s conftest.err; then
10941 ac_cpp_err=$ac_c_preproc_warn_flag
10942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10943 else
10944 ac_cpp_err=
10945 fi
10946else
10947 ac_cpp_err=yes
3b78cdbb 10948fi
bec39cab
AC
10949if test -z "$ac_cpp_err"; then
10950 ac_header_preproc=yes
10951else
10952 echo "$as_me: failed program was:" >&5
10953sed 's/^/| /' conftest.$ac_ext >&5
10954
10955 ac_header_preproc=no
3b78cdbb 10956fi
bec39cab 10957rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10959echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10960
10961# So? What about this header?
10962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10963 yes:no: )
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10968 ac_header_preproc=yes
10969 ;;
10970 no:yes:* )
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10974echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10978echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10983 (
10984 cat <<\_ASBOX
10985## ------------------------------------------ ##
10986## Report this to the AC_PACKAGE_NAME lists. ##
10987## ------------------------------------------ ##
10988_ASBOX
10989 ) |
10990 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10991 ;;
10992esac
b4e70030
JB
10993echo "$as_me:$LINENO: checking for $ac_header" >&5
10994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10995if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10996 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 10997else
bec39cab
AC
10998 eval "$as_ac_Header=\$ac_header_preproc"
10999fi
b4e70030
JB
11000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11002
3b78cdbb 11003fi
bec39cab
AC
11004if test `eval echo '${'$as_ac_Header'}'` = yes; then
11005 cat >>confdefs.h <<_ACEOF
11006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11007_ACEOF
11008
11009fi
11010
3b78cdbb
DA
11011done
11012
c906108c 11013
065a1afc
JB
11014for ac_header in term.h
11015do
11016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11017echo "$as_me:$LINENO: checking for $ac_header" >&5
11018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11019if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021else
11022 cat >conftest.$ac_ext <<_ACEOF
11023/* confdefs.h. */
11024_ACEOF
11025cat confdefs.h >>conftest.$ac_ext
11026cat >>conftest.$ac_ext <<_ACEOF
11027/* end confdefs.h. */
11028#if HAVE_CURSES_H
11029# include <curses.h>
11030#endif
11031
11032
11033#include <$ac_header>
11034_ACEOF
11035rm -f conftest.$ac_objext
11036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11037 (eval $ac_compile) 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
b4e70030
JB
11044 { ac_try='test -z "$ac_c_werror_flag"
11045 || test ! -s conftest.err'
065a1afc
JB
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; } &&
11051 { ac_try='test -s conftest.$ac_objext'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 eval "$as_ac_Header=yes"
11058else
11059 echo "$as_me: failed program was:" >&5
11060sed 's/^/| /' conftest.$ac_ext >&5
11061
b4e70030 11062eval "$as_ac_Header=no"
065a1afc
JB
11063fi
11064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11065fi
b4e70030
JB
11066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
11068if test `eval echo '${'$as_ac_Header'}'` = yes; then
11069 cat >>confdefs.h <<_ACEOF
11070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11071_ACEOF
11072
11073fi
11074
11075done
11076
11077
5ee754fc
MK
11078# FIXME: kettenis/20030102: In most cases we include these
11079# unconditionally, so what's the point in checking these?
bec39cab
AC
11080
11081
11082for ac_header in ctype.h time.h
c906108c 11083do
bec39cab 11084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11085if eval "test \"\${$as_ac_Header+set}\" = set"; then
11086 echo "$as_me:$LINENO: checking for $ac_header" >&5
11087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11088if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11090fi
b4e70030
JB
11091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11093else
11094 # Is the header compilable?
b4e70030
JB
11095echo "$as_me:$LINENO: checking $ac_header usability" >&5
11096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11097cat >conftest.$ac_ext <<_ACEOF
11098/* confdefs.h. */
11099_ACEOF
11100cat confdefs.h >>conftest.$ac_ext
11101cat >>conftest.$ac_ext <<_ACEOF
11102/* end confdefs.h. */
11103$ac_includes_default
11104#include <$ac_header>
11105_ACEOF
11106rm -f conftest.$ac_objext
11107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11108 (eval $ac_compile) 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
b4e70030
JB
11115 { ac_try='test -z "$ac_c_werror_flag"
11116 || test ! -s conftest.err'
bec39cab
AC
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; } &&
11122 { ac_try='test -s conftest.$ac_objext'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
11128 ac_header_compiler=yes
11129else
11130 echo "$as_me: failed program was:" >&5
11131sed 's/^/| /' conftest.$ac_ext >&5
11132
b4e70030 11133ac_header_compiler=no
bec39cab
AC
11134fi
11135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11136echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11137echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11138
11139# Is the header present?
b4e70030
JB
11140echo "$as_me:$LINENO: checking $ac_header presence" >&5
11141echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11142cat >conftest.$ac_ext <<_ACEOF
11143/* confdefs.h. */
11144_ACEOF
11145cat confdefs.h >>conftest.$ac_ext
11146cat >>conftest.$ac_ext <<_ACEOF
11147/* end confdefs.h. */
11148#include <$ac_header>
11149_ACEOF
11150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } >/dev/null; then
11158 if test -s conftest.err; then
11159 ac_cpp_err=$ac_c_preproc_warn_flag
11160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11161 else
11162 ac_cpp_err=
11163 fi
11164else
11165 ac_cpp_err=yes
c906108c 11166fi
bec39cab
AC
11167if test -z "$ac_cpp_err"; then
11168 ac_header_preproc=yes
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 ac_header_preproc=no
c906108c 11174fi
bec39cab 11175rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11176echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11177echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11178
11179# So? What about this header?
11180case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11181 yes:no: )
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11183echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11185echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11186 ac_header_preproc=yes
11187 ;;
11188 no:yes:* )
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11190echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11192echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11194echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11196echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11198echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11200echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11201 (
11202 cat <<\_ASBOX
11203## ------------------------------------------ ##
11204## Report this to the AC_PACKAGE_NAME lists. ##
11205## ------------------------------------------ ##
11206_ASBOX
11207 ) |
11208 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11209 ;;
11210esac
b4e70030
JB
11211echo "$as_me:$LINENO: checking for $ac_header" >&5
11212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11213if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11214 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11215else
bec39cab
AC
11216 eval "$as_ac_Header=\$ac_header_preproc"
11217fi
b4e70030
JB
11218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11220
11221fi
11222if test `eval echo '${'$as_ac_Header'}'` = yes; then
11223 cat >>confdefs.h <<_ACEOF
11224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11225_ACEOF
11226
c906108c 11227fi
bec39cab 11228
c906108c
SS
11229done
11230
5ee754fc 11231
4e8d927d 11232# Create a header we can use portably to get the standard integer types.
666ec76f 11233
4e8d927d
DJ
11234
11235inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11236
11237acx_cv_header_stdint=stddef.h
11238acx_cv_header_stdint_kind="(already complete)"
11239for i in stdint.h $inttype_headers; do
11240 unset ac_cv_type_uintptr_t
11241 unset ac_cv_type_uintmax_t
11242 unset ac_cv_type_int_least32_t
11243 unset ac_cv_type_int_fast32_t
11244 unset ac_cv_type_uint64_t
11245 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11246 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11247echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 11248if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 11249 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 11250else
bec39cab
AC
11251 cat >conftest.$ac_ext <<_ACEOF
11252/* confdefs.h. */
11253_ACEOF
11254cat confdefs.h >>conftest.$ac_ext
11255cat >>conftest.$ac_ext <<_ACEOF
11256/* end confdefs.h. */
4e8d927d
DJ
11257#include <sys/types.h>
11258#include <$i>
11259
bec39cab
AC
11260int
11261main ()
11262{
b4e70030 11263if ((uintmax_t *) 0)
4e8d927d 11264 return 0;
b4e70030 11265if (sizeof (uintmax_t))
4e8d927d
DJ
11266 return 0;
11267 ;
bec39cab
AC
11268 return 0;
11269}
11270_ACEOF
11271rm -f conftest.$ac_objext
11272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11273 (eval $ac_compile) 2>conftest.er1
11274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } &&
b4e70030
JB
11280 { ac_try='test -z "$ac_c_werror_flag"
11281 || test ! -s conftest.err'
bec39cab
AC
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; } &&
11287 { ac_try='test -s conftest.$ac_objext'
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
4e8d927d 11293 ac_cv_type_uintmax_t=yes
40a7debc 11294else
bec39cab
AC
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
b4e70030 11298ac_cv_type_uintmax_t=no
40a7debc 11299fi
bec39cab 11300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11301fi
b4e70030
JB
11302echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11303echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11304if test $ac_cv_type_uintmax_t = yes; then
11305 acx_cv_header_stdint=$i
666ec76f 11306else
4e8d927d 11307 continue
666ec76f 11308fi
4e8d927d 11309
b4e70030
JB
11310 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11311echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11312if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
11315 cat >conftest.$ac_ext <<_ACEOF
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
4e8d927d
DJ
11321#include <sys/types.h>
11322#include <$i>
11323
666ec76f
MK
11324int
11325main ()
11326{
b4e70030 11327if ((uintptr_t *) 0)
4e8d927d 11328 return 0;
b4e70030 11329if (sizeof (uintptr_t))
4e8d927d 11330 return 0;
666ec76f
MK
11331 ;
11332 return 0;
11333}
11334_ACEOF
11335rm -f conftest.$ac_objext
11336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11337 (eval $ac_compile) 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
b4e70030
JB
11344 { ac_try='test -z "$ac_c_werror_flag"
11345 || test ! -s conftest.err'
666ec76f
MK
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try='test -s conftest.$ac_objext'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
4e8d927d 11357 ac_cv_type_uintptr_t=yes
666ec76f
MK
11358else
11359 echo "$as_me: failed program was:" >&5
11360sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11361
b4e70030 11362ac_cv_type_uintptr_t=no
a3828db0
MK
11363fi
11364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11365fi
b4e70030
JB
11366echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11367echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11368if test $ac_cv_type_uintptr_t = yes; then
11369 :
a3828db0 11370else
4e8d927d 11371 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11372fi
4e8d927d 11373
b4e70030
JB
11374 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11375echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11376if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378else
11379 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11380/* confdefs.h. */
11381_ACEOF
11382cat confdefs.h >>conftest.$ac_ext
11383cat >>conftest.$ac_ext <<_ACEOF
11384/* end confdefs.h. */
4e8d927d
DJ
11385#include <sys/types.h>
11386#include <$i>
11387
bec39cab
AC
11388int
11389main ()
11390{
b4e70030 11391if ((int_least32_t *) 0)
4e8d927d 11392 return 0;
b4e70030 11393if (sizeof (int_least32_t))
4e8d927d 11394 return 0;
bec39cab
AC
11395 ;
11396 return 0;
11397}
11398_ACEOF
11399rm -f conftest.$ac_objext
11400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11401 (eval $ac_compile) 2>conftest.er1
11402 ac_status=$?
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
b4e70030
JB
11408 { ac_try='test -z "$ac_c_werror_flag"
11409 || test ! -s conftest.err'
bec39cab
AC
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
4e8d927d 11421 ac_cv_type_int_least32_t=yes
b9362cc7 11422else
bec39cab
AC
11423 echo "$as_me: failed program was:" >&5
11424sed 's/^/| /' conftest.$ac_ext >&5
11425
b4e70030 11426ac_cv_type_int_least32_t=no
b9362cc7 11427fi
bec39cab 11428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11429fi
b4e70030
JB
11430echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11431echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11432if test $ac_cv_type_int_least32_t = yes; then
11433 :
a3828db0 11434else
4e8d927d 11435 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11436fi
5ee754fc 11437
b4e70030
JB
11438 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11439echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11440if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442else
11443 cat >conftest.$ac_ext <<_ACEOF
11444/* confdefs.h. */
11445_ACEOF
11446cat confdefs.h >>conftest.$ac_ext
11447cat >>conftest.$ac_ext <<_ACEOF
11448/* end confdefs.h. */
4e8d927d
DJ
11449#include <sys/types.h>
11450#include <$i>
11451
bec39cab
AC
11452int
11453main ()
11454{
b4e70030 11455if ((int_fast32_t *) 0)
4e8d927d 11456 return 0;
b4e70030 11457if (sizeof (int_fast32_t))
4e8d927d 11458 return 0;
bec39cab
AC
11459 ;
11460 return 0;
11461}
11462_ACEOF
11463rm -f conftest.$ac_objext
11464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11465 (eval $ac_compile) 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
b4e70030
JB
11472 { ac_try='test -z "$ac_c_werror_flag"
11473 || test ! -s conftest.err'
bec39cab
AC
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; } &&
11479 { ac_try='test -s conftest.$ac_objext'
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
4e8d927d 11485 ac_cv_type_int_fast32_t=yes
c906108c 11486else
bec39cab
AC
11487 echo "$as_me: failed program was:" >&5
11488sed 's/^/| /' conftest.$ac_ext >&5
11489
b4e70030 11490ac_cv_type_int_fast32_t=no
c906108c 11491fi
bec39cab 11492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11493fi
b4e70030
JB
11494echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11495echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
11496if test $ac_cv_type_int_fast32_t = yes; then
11497 :
a3828db0 11498else
4e8d927d 11499 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11500fi
4e8d927d 11501
b4e70030
JB
11502 echo "$as_me:$LINENO: checking for uint64_t" >&5
11503echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11504if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11506else
11507 cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h. */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h. */
4e8d927d
DJ
11513#include <sys/types.h>
11514#include <$i>
11515
bec39cab
AC
11516int
11517main ()
11518{
b4e70030 11519if ((uint64_t *) 0)
4e8d927d 11520 return 0;
b4e70030 11521if (sizeof (uint64_t))
4e8d927d 11522 return 0;
bec39cab
AC
11523 ;
11524 return 0;
11525}
11526_ACEOF
11527rm -f conftest.$ac_objext
11528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529 (eval $ac_compile) 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
b4e70030
JB
11536 { ac_try='test -z "$ac_c_werror_flag"
11537 || test ! -s conftest.err'
bec39cab
AC
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
4e8d927d 11549 ac_cv_type_uint64_t=yes
c906108c 11550else
bec39cab
AC
11551 echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
b4e70030 11554ac_cv_type_uint64_t=no
c906108c 11555fi
bec39cab 11556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11557fi
b4e70030
JB
11558echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11559echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
11560if test $ac_cv_type_uint64_t = yes; then
11561 :
a3828db0 11562else
4e8d927d 11563 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
11564fi
11565
4e8d927d
DJ
11566 break
11567done
11568if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 11569 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 11570 for i in stdint.h $inttype_headers; do
3841debe 11571 unset ac_cv_type_uintptr_t
4e8d927d
DJ
11572 unset ac_cv_type_uint32_t
11573 unset ac_cv_type_uint64_t
11574 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11575 echo "$as_me:$LINENO: checking for uint32_t" >&5
11576echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 11577if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 11578 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 11579else
bec39cab
AC
11580 cat >conftest.$ac_ext <<_ACEOF
11581/* confdefs.h. */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h. */
4e8d927d
DJ
11586#include <sys/types.h>
11587#include <$i>
11588
a3828db0
MK
11589int
11590main ()
11591{
b4e70030 11592if ((uint32_t *) 0)
4e8d927d 11593 return 0;
b4e70030 11594if (sizeof (uint32_t))
4e8d927d 11595 return 0;
a3828db0
MK
11596 ;
11597 return 0;
11598}
bec39cab
AC
11599_ACEOF
11600rm -f conftest.$ac_objext
11601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602 (eval $ac_compile) 2>conftest.er1
11603 ac_status=$?
11604 grep -v '^ *+' conftest.er1 >conftest.err
11605 rm -f conftest.er1
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
b4e70030
JB
11609 { ac_try='test -z "$ac_c_werror_flag"
11610 || test ! -s conftest.err'
bec39cab
AC
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
4e8d927d 11622 ac_cv_type_uint32_t=yes
bce58c09 11623else
bec39cab
AC
11624 echo "$as_me: failed program was:" >&5
11625sed 's/^/| /' conftest.$ac_ext >&5
11626
b4e70030 11627ac_cv_type_uint32_t=no
bce58c09 11628fi
bec39cab 11629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 11630fi
b4e70030
JB
11631echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11632echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
11633if test $ac_cv_type_uint32_t = yes; then
11634 acx_cv_header_stdint=$i
a3828db0 11635else
4e8d927d 11636 continue
e5a7de23 11637fi
4e8d927d 11638
b4e70030
JB
11639 echo "$as_me:$LINENO: checking for uint64_t" >&5
11640echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11641if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643else
11644 cat >conftest.$ac_ext <<_ACEOF
11645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
4e8d927d
DJ
11650#include <sys/types.h>
11651#include <$i>
11652
e5a7de23
EZ
11653int
11654main ()
11655{
b4e70030 11656if ((uint64_t *) 0)
4e8d927d 11657 return 0;
b4e70030 11658if (sizeof (uint64_t))
4e8d927d 11659 return 0;
e5a7de23
EZ
11660 ;
11661 return 0;
11662}
11663_ACEOF
11664rm -f conftest.$ac_objext
11665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11666 (eval $ac_compile) 2>conftest.er1
11667 ac_status=$?
11668 grep -v '^ *+' conftest.er1 >conftest.err
11669 rm -f conftest.er1
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
b4e70030
JB
11673 { ac_try='test -z "$ac_c_werror_flag"
11674 || test ! -s conftest.err'
e5a7de23
EZ
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; } &&
11680 { ac_try='test -s conftest.$ac_objext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
4e8d927d 11686 ac_cv_type_uint64_t=yes
e5a7de23
EZ
11687else
11688 echo "$as_me: failed program was:" >&5
11689sed 's/^/| /' conftest.$ac_ext >&5
11690
b4e70030 11691ac_cv_type_uint64_t=no
e5a7de23
EZ
11692fi
11693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11694fi
b4e70030
JB
11695echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11696echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
11697
11698 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11699echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11700if test "${ac_cv_type_uintptr_t+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703 cat >conftest.$ac_ext <<_ACEOF
11704/* confdefs.h. */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h. */
11709#include <sys/types.h>
11710#include <$i>
11711
11712int
11713main ()
11714{
11715if ((uintptr_t *) 0)
11716 return 0;
11717if (sizeof (uintptr_t))
11718 return 0;
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext
11724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_c_werror_flag"
11733 || test ! -s conftest.err'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_cv_type_uintptr_t=yes
e5a7de23 11746else
3841debe
DJ
11747 echo "$as_me: failed program was:" >&5
11748sed 's/^/| /' conftest.$ac_ext >&5
11749
11750ac_cv_type_uintptr_t=no
4e8d927d 11751fi
3841debe
DJ
11752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11753fi
11754echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11755echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 11756
4e8d927d
DJ
11757 break
11758 done
e5a7de23 11759fi
4e8d927d
DJ
11760if test "$acx_cv_header_stdint" = stddef.h; then
11761 acx_cv_header_stdint_kind="(u_intXX_t style)"
11762 for i in sys/types.h $inttype_headers; do
11763 unset ac_cv_type_u_int32_t
11764 unset ac_cv_type_u_int64_t
11765 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
11766 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11767echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 11768if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770else
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
4e8d927d
DJ
11777#include <sys/types.h>
11778#include <$i>
11779
e5a7de23
EZ
11780int
11781main ()
11782{
b4e70030 11783if ((u_int32_t *) 0)
4e8d927d 11784 return 0;
b4e70030 11785if (sizeof (u_int32_t))
4e8d927d 11786 return 0;
e5a7de23
EZ
11787 ;
11788 return 0;
11789}
11790_ACEOF
11791rm -f conftest.$ac_objext
11792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11793 (eval $ac_compile) 2>conftest.er1
11794 ac_status=$?
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
b4e70030
JB
11800 { ac_try='test -z "$ac_c_werror_flag"
11801 || test ! -s conftest.err'
e5a7de23
EZ
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest.$ac_objext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
4e8d927d 11813 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
b4e70030 11818ac_cv_type_u_int32_t=no
e5a7de23
EZ
11819fi
11820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11821fi
b4e70030
JB
11822echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11823echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
11824if test $ac_cv_type_u_int32_t = yes; then
11825 acx_cv_header_stdint=$i
e5a7de23 11826else
4e8d927d 11827 continue
a3828db0 11828fi
5ee754fc 11829
b4e70030
JB
11830 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11831echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 11832if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834else
11835 cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
4e8d927d
DJ
11841#include <sys/types.h>
11842#include <$i>
11843
bec39cab
AC
11844int
11845main ()
11846{
b4e70030 11847if ((u_int64_t *) 0)
4e8d927d 11848 return 0;
b4e70030 11849if (sizeof (u_int64_t))
4e8d927d 11850 return 0;
bec39cab
AC
11851 ;
11852 return 0;
11853}
11854_ACEOF
a3828db0
MK
11855rm -f conftest.$ac_objext
11856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11857 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
b4e70030
JB
11864 { ac_try='test -z "$ac_c_werror_flag"
11865 || test ! -s conftest.err'
bec39cab
AC
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; } &&
a3828db0 11871 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
4e8d927d 11877 ac_cv_type_u_int64_t=yes
bec39cab
AC
11878else
11879 echo "$as_me: failed program was:" >&5
11880sed 's/^/| /' conftest.$ac_ext >&5
11881
b4e70030 11882ac_cv_type_u_int64_t=no
4e8d927d 11883fi
4e8d927d
DJ
11884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11885fi
b4e70030
JB
11886echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11887echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
11888
11889 break
11890 done
11891fi
11892if test "$acx_cv_header_stdint" = stddef.h; then
11893 acx_cv_header_stdint_kind="(using manual detection)"
11894fi
11895
11896test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11897test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11898test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11899test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11900test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11901
11902# ----------------- Summarize what we found so far
11903
b4e70030
JB
11904echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
11905echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 11906
b4e70030 11907case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
11908$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
11909 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
11910 Xgdb_stdint.h : 'X\(/\)$' \| \
11911 . : '\(.\)' 2>/dev/null ||
4e8d927d 11912echo X/gdb_stdint.h |
b4e70030
JB
11913 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11914 /^X\/\(\/\/\)$/{ s//\1/; q; }
11915 /^X\/\(\/\).*/{ s//\1/; q; }
11916 s/.*/./; q'` in
4e8d927d
DJ
11917 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11918echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11919 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11920echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11921 *) ;;
11922esac
11923
b4e70030
JB
11924echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11925echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
11926
11927# ----------------- done included file, check C basic types --------
11928
11929# Lacking an uintptr_t? Test size of void *
11930case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
11931 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
11932echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
11933if test "${ac_cv_type_void_p+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935else
11936 cat >conftest.$ac_ext <<_ACEOF
a3828db0 11937/* confdefs.h. */
bec39cab
AC
11938_ACEOF
11939cat confdefs.h >>conftest.$ac_ext
11940cat >>conftest.$ac_ext <<_ACEOF
11941/* end confdefs.h. */
a3828db0 11942$ac_includes_default
bec39cab
AC
11943int
11944main ()
11945{
b4e70030 11946if ((void * *) 0)
4e8d927d 11947 return 0;
b4e70030 11948if (sizeof (void *))
4e8d927d 11949 return 0;
bec39cab
AC
11950 ;
11951 return 0;
11952}
11953_ACEOF
a3828db0
MK
11954rm -f conftest.$ac_objext
11955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11956 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
b4e70030
JB
11963 { ac_try='test -z "$ac_c_werror_flag"
11964 || test ! -s conftest.err'
bec39cab
AC
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; } &&
a3828db0 11970 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
4e8d927d 11976 ac_cv_type_void_p=yes
46711df8 11977else
bec39cab
AC
11978 echo "$as_me: failed program was:" >&5
11979sed 's/^/| /' conftest.$ac_ext >&5
11980
b4e70030 11981ac_cv_type_void_p=no
a3828db0 11982fi
4e8d927d 11983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 11984fi
b4e70030
JB
11985echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11986echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 11987
b4e70030
JB
11988echo "$as_me:$LINENO: checking size of void *" >&5
11989echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 11990if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11992else
4e8d927d 11993 if test "$ac_cv_type_void_p" = yes; then
b4e70030 11994 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
11995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11997 # This bug is HP SR number 8606223364.
11998 if test "$cross_compiling" = yes; then
11999 # Depending upon the size, compute the lo and hi bounds.
12000cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12001/* confdefs.h. */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h. */
12006$ac_includes_default
12007int
12008main ()
12009{
b4e70030 12010static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
12011test_array [0] = 0
12012
d3ea6809
MM
12013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext
12018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>conftest.er1
12020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
b4e70030
JB
12026 { ac_try='test -z "$ac_c_werror_flag"
12027 || test ! -s conftest.err'
d3ea6809
MM
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest.$ac_objext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
4e8d927d
DJ
12039 ac_lo=0 ac_mid=0
12040 while :; do
12041 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
12047$ac_includes_default
12048int
12049main ()
12050{
b4e70030 12051static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12052test_array [0] = 0
12053
d3ea6809
MM
12054 ;
12055 return 0;
12056}
12057_ACEOF
12058rm -f conftest.$ac_objext
12059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12060 (eval $ac_compile) 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
b4e70030
JB
12067 { ac_try='test -z "$ac_c_werror_flag"
12068 || test ! -s conftest.err'
d3ea6809
MM
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; } &&
12074 { ac_try='test -s conftest.$ac_objext'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
4e8d927d 12080 ac_hi=$ac_mid; break
d3ea6809
MM
12081else
12082 echo "$as_me: failed program was:" >&5
12083sed 's/^/| /' conftest.$ac_ext >&5
12084
b4e70030
JB
12085ac_lo=`expr $ac_mid + 1`
12086 if test $ac_lo -le $ac_mid; then
12087 ac_lo= ac_hi=
12088 break
12089 fi
12090 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 12091fi
4e8d927d
DJ
12092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12093 done
bec39cab 12094else
4e8d927d
DJ
12095 echo "$as_me: failed program was:" >&5
12096sed 's/^/| /' conftest.$ac_ext >&5
12097
b4e70030 12098cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12099/* confdefs.h. */
12100_ACEOF
12101cat confdefs.h >>conftest.$ac_ext
12102cat >>conftest.$ac_ext <<_ACEOF
12103/* end confdefs.h. */
4e8d927d 12104$ac_includes_default
bec39cab
AC
12105int
12106main ()
12107{
b4e70030 12108static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
12109test_array [0] = 0
12110
bec39cab
AC
12111 ;
12112 return 0;
12113}
12114_ACEOF
a3828db0
MK
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
b4e70030
JB
12124 { ac_try='test -z "$ac_c_werror_flag"
12125 || test ! -s conftest.err'
bec39cab
AC
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
a3828db0 12131 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
4e8d927d
DJ
12137 ac_hi=-1 ac_mid=-1
12138 while :; do
12139 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
4e8d927d 12145$ac_includes_default
f9f87d2c
MK
12146int
12147main ()
12148{
b4e70030 12149static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
12150test_array [0] = 0
12151
f9f87d2c
MK
12152 ;
12153 return 0;
12154}
12155_ACEOF
12156rm -f conftest.$ac_objext
12157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12158 (eval $ac_compile) 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
b4e70030
JB
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
f9f87d2c
MK
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
4e8d927d 12178 ac_lo=$ac_mid; break
f9f87d2c
MK
12179else
12180 echo "$as_me: failed program was:" >&5
12181sed 's/^/| /' conftest.$ac_ext >&5
12182
b4e70030
JB
12183ac_hi=`expr '(' $ac_mid ')' - 1`
12184 if test $ac_mid -le $ac_hi; then
12185 ac_lo= ac_hi=
12186 break
12187 fi
12188 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 12189fi
4e8d927d
DJ
12190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12191 done
12192else
12193 echo "$as_me: failed program was:" >&5
12194sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 12195
b4e70030 12196ac_lo= ac_hi=
4e8d927d 12197fi
4e8d927d 12198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 12199fi
4e8d927d
DJ
12200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12201# Binary search between lo and hi bounds.
12202while test "x$ac_lo" != "x$ac_hi"; do
12203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
12204 cat >conftest.$ac_ext <<_ACEOF
12205/* confdefs.h. */
12206_ACEOF
12207cat confdefs.h >>conftest.$ac_ext
12208cat >>conftest.$ac_ext <<_ACEOF
12209/* end confdefs.h. */
4e8d927d 12210$ac_includes_default
3be60c3d
MK
12211int
12212main ()
12213{
b4e70030 12214static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12215test_array [0] = 0
12216
3be60c3d
MK
12217 ;
12218 return 0;
12219}
12220_ACEOF
12221rm -f conftest.$ac_objext
12222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
b4e70030
JB
12230 { ac_try='test -z "$ac_c_werror_flag"
12231 || test ! -s conftest.err'
3be60c3d
MK
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12234 ac_status=$?
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; } &&
12237 { ac_try='test -s conftest.$ac_objext'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12240 ac_status=$?
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
4e8d927d 12243 ac_hi=$ac_mid
3be60c3d
MK
12244else
12245 echo "$as_me: failed program was:" >&5
12246sed 's/^/| /' conftest.$ac_ext >&5
12247
b4e70030 12248ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 12249fi
4e8d927d
DJ
12250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12251done
12252case $ac_lo in
12253?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 12254'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12255See \`config.log' for more details." >&5
b4e70030 12256echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12257See \`config.log' for more details." >&2;}
b4e70030 12258 { (exit 1); exit 1; }; } ;;
4e8d927d 12259esac
b4e70030
JB
12260else
12261 if test "$cross_compiling" = yes; then
12262 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12263See \`config.log' for more details." >&5
12264echo "$as_me: error: cannot run test program while cross compiling
12265See \`config.log' for more details." >&2;}
12266 { (exit 1); exit 1; }; }
4e8d927d
DJ
12267else
12268 cat >conftest.$ac_ext <<_ACEOF
12269/* confdefs.h. */
3be60c3d 12270_ACEOF
4e8d927d
DJ
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h. */
12274$ac_includes_default
b4e70030
JB
12275long longval () { return (long) (sizeof (void *)); }
12276unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
12277#include <stdio.h>
12278#include <stdlib.h>
12279int
12280main ()
12281{
12282
12283 FILE *f = fopen ("conftest.val", "w");
12284 if (! f)
b4e70030
JB
12285 exit (1);
12286 if (((long) (sizeof (void *))) < 0)
4e8d927d 12287 {
b4e70030
JB
12288 long i = longval ();
12289 if (i != ((long) (sizeof (void *))))
12290 exit (1);
4e8d927d
DJ
12291 fprintf (f, "%ld\n", i);
12292 }
12293 else
12294 {
b4e70030
JB
12295 unsigned long i = ulongval ();
12296 if (i != ((long) (sizeof (void *))))
12297 exit (1);
4e8d927d
DJ
12298 fprintf (f, "%lu\n", i);
12299 }
b4e70030 12300 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12301
4e8d927d
DJ
12302 ;
12303 return 0;
12304}
12305_ACEOF
12306rm -f conftest$ac_exeext
12307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12308 (eval $ac_link) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_sizeof_void_p=`cat conftest.val`
12318else
12319 echo "$as_me: program exited with status $ac_status" >&5
12320echo "$as_me: failed program was:" >&5
12321sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12322
4e8d927d 12323( exit $ac_status )
b4e70030 12324{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12325See \`config.log' for more details." >&5
b4e70030 12326echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12327See \`config.log' for more details." >&2;}
b4e70030
JB
12328 { (exit 1); exit 1; }; }
12329fi
12330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12331fi
4e8d927d
DJ
12332fi
12333rm -f conftest.val
12334else
12335 ac_cv_sizeof_void_p=0
12336fi
12337fi
b4e70030
JB
12338echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12339echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12340cat >>confdefs.h <<_ACEOF
12341#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12342_ACEOF
f9f87d2c 12343
4e8d927d
DJ
12344 ;;
12345esac
46711df8 12346
4e8d927d
DJ
12347# Lacking an uint64_t? Test size of long
12348case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12349 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12350echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12351if test "${ac_cv_type_long+set}" = set; then
bec39cab 12352 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12353else
bec39cab
AC
12354 cat >conftest.$ac_ext <<_ACEOF
12355/* confdefs.h. */
12356_ACEOF
12357cat confdefs.h >>conftest.$ac_ext
12358cat >>conftest.$ac_ext <<_ACEOF
12359/* end confdefs.h. */
4e8d927d 12360$ac_includes_default
bec39cab 12361int
46711df8
MK
12362main ()
12363{
b4e70030 12364if ((long *) 0)
4e8d927d 12365 return 0;
b4e70030 12366if (sizeof (long))
4e8d927d 12367 return 0;
a3828db0
MK
12368 ;
12369 return 0;
46711df8 12370}
bec39cab 12371_ACEOF
a3828db0
MK
12372rm -f conftest.$ac_objext
12373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12374 (eval $ac_compile) 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
b4e70030
JB
12381 { ac_try='test -z "$ac_c_werror_flag"
12382 || test ! -s conftest.err'
a3828db0
MK
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
bec39cab
AC
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12387 (exit $ac_status); }; } &&
12388 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
4e8d927d 12394 ac_cv_type_long=yes
46711df8 12395else
a3828db0 12396 echo "$as_me: failed program was:" >&5
bec39cab
AC
12397sed 's/^/| /' conftest.$ac_ext >&5
12398
b4e70030 12399ac_cv_type_long=no
46711df8 12400fi
4e8d927d 12401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12402fi
b4e70030
JB
12403echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12404echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12405
b4e70030
JB
12406echo "$as_me:$LINENO: checking size of long" >&5
12407echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12408if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12409 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12410else
4e8d927d 12411 if test "$ac_cv_type_long" = yes; then
b4e70030 12412 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12415 # This bug is HP SR number 8606223364.
12416 if test "$cross_compiling" = yes; then
12417 # Depending upon the size, compute the lo and hi bounds.
12418cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12419/* confdefs.h. */
12420_ACEOF
12421cat confdefs.h >>conftest.$ac_ext
12422cat >>conftest.$ac_ext <<_ACEOF
12423/* end confdefs.h. */
4e8d927d 12424$ac_includes_default
4e8d927d
DJ
12425int
12426main ()
12427{
b4e70030 12428static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12429test_array [0] = 0
a3828db0 12430
4e8d927d
DJ
12431 ;
12432 return 0;
12433}
bec39cab
AC
12434_ACEOF
12435rm -f conftest.$ac_objext
12436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12437 (eval $ac_compile) 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
b4e70030
JB
12444 { ac_try='test -z "$ac_c_werror_flag"
12445 || test ! -s conftest.err'
bec39cab
AC
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest.$ac_objext'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
4e8d927d
DJ
12457 ac_lo=0 ac_mid=0
12458 while :; do
12459 cat >conftest.$ac_ext <<_ACEOF
12460/* confdefs.h. */
12461_ACEOF
12462cat confdefs.h >>conftest.$ac_ext
12463cat >>conftest.$ac_ext <<_ACEOF
12464/* end confdefs.h. */
12465$ac_includes_default
4e8d927d
DJ
12466int
12467main ()
12468{
b4e70030 12469static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12470test_array [0] = 0
12471
12472 ;
12473 return 0;
12474}
12475_ACEOF
12476rm -f conftest.$ac_objext
12477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12478 (eval $ac_compile) 2>conftest.er1
12479 ac_status=$?
12480 grep -v '^ *+' conftest.er1 >conftest.err
12481 rm -f conftest.er1
12482 cat conftest.err >&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
b4e70030
JB
12485 { ac_try='test -z "$ac_c_werror_flag"
12486 || test ! -s conftest.err'
4e8d927d
DJ
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; } &&
12492 { ac_try='test -s conftest.$ac_objext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12498 ac_hi=$ac_mid; break
12499else
12500 echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
b4e70030
JB
12503ac_lo=`expr $ac_mid + 1`
12504 if test $ac_lo -le $ac_mid; then
12505 ac_lo= ac_hi=
12506 break
12507 fi
12508 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12509fi
4e8d927d
DJ
12510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12511 done
12512else
12513 echo "$as_me: failed program was:" >&5
12514sed 's/^/| /' conftest.$ac_ext >&5
12515
b4e70030 12516cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522$ac_includes_default
4e8d927d
DJ
12523int
12524main ()
12525{
b4e70030 12526static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
12527test_array [0] = 0
12528
12529 ;
12530 return 0;
12531}
12532_ACEOF
12533rm -f conftest.$ac_objext
12534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535 (eval $ac_compile) 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
b4e70030
JB
12542 { ac_try='test -z "$ac_c_werror_flag"
12543 || test ! -s conftest.err'
4e8d927d
DJ
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest.$ac_objext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 ac_hi=-1 ac_mid=-1
12556 while :; do
12557 cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563$ac_includes_default
4e8d927d
DJ
12564int
12565main ()
12566{
b4e70030 12567static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
12568test_array [0] = 0
12569
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574rm -f conftest.$ac_objext
12575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576 (eval $ac_compile) 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
b4e70030
JB
12583 { ac_try='test -z "$ac_c_werror_flag"
12584 || test ! -s conftest.err'
4e8d927d
DJ
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest.$ac_objext'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12593 ac_status=$?
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 ac_lo=$ac_mid; break
12597else
12598 echo "$as_me: failed program was:" >&5
12599sed 's/^/| /' conftest.$ac_ext >&5
12600
b4e70030
JB
12601ac_hi=`expr '(' $ac_mid ')' - 1`
12602 if test $ac_mid -le $ac_hi; then
12603 ac_lo= ac_hi=
12604 break
12605 fi
12606 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12607fi
4e8d927d
DJ
12608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12609 done
12610else
12611 echo "$as_me: failed program was:" >&5
12612sed 's/^/| /' conftest.$ac_ext >&5
12613
b4e70030 12614ac_lo= ac_hi=
4e8d927d 12615fi
4e8d927d
DJ
12616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12617fi
4e8d927d
DJ
12618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12619# Binary search between lo and hi bounds.
12620while test "x$ac_lo" != "x$ac_hi"; do
12621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12622 cat >conftest.$ac_ext <<_ACEOF
12623/* confdefs.h. */
12624_ACEOF
12625cat confdefs.h >>conftest.$ac_ext
12626cat >>conftest.$ac_ext <<_ACEOF
12627/* end confdefs.h. */
12628$ac_includes_default
4e8d927d
DJ
12629int
12630main ()
12631{
b4e70030 12632static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12633test_array [0] = 0
12634
12635 ;
12636 return 0;
12637}
12638_ACEOF
12639rm -f conftest.$ac_objext
12640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641 (eval $ac_compile) 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
b4e70030
JB
12648 { ac_try='test -z "$ac_c_werror_flag"
12649 || test ! -s conftest.err'
4e8d927d
DJ
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try='test -s conftest.$ac_objext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_hi=$ac_mid
12662else
12663 echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
b4e70030 12666ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12667fi
4e8d927d
DJ
12668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12669done
12670case $ac_lo in
12671?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 12672'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12673See \`config.log' for more details." >&5
b4e70030 12674echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12675See \`config.log' for more details." >&2;}
b4e70030 12676 { (exit 1); exit 1; }; } ;;
4e8d927d 12677esac
b4e70030
JB
12678else
12679 if test "$cross_compiling" = yes; then
12680 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12681See \`config.log' for more details." >&5
12682echo "$as_me: error: cannot run test program while cross compiling
12683See \`config.log' for more details." >&2;}
12684 { (exit 1); exit 1; }; }
4e8d927d
DJ
12685else
12686 cat >conftest.$ac_ext <<_ACEOF
12687/* confdefs.h. */
12688_ACEOF
12689cat confdefs.h >>conftest.$ac_ext
12690cat >>conftest.$ac_ext <<_ACEOF
12691/* end confdefs.h. */
12692$ac_includes_default
b4e70030
JB
12693long longval () { return (long) (sizeof (long)); }
12694unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
12695#include <stdio.h>
12696#include <stdlib.h>
12697int
12698main ()
12699{
12700
12701 FILE *f = fopen ("conftest.val", "w");
12702 if (! f)
b4e70030
JB
12703 exit (1);
12704 if (((long) (sizeof (long))) < 0)
4e8d927d 12705 {
b4e70030
JB
12706 long i = longval ();
12707 if (i != ((long) (sizeof (long))))
12708 exit (1);
4e8d927d
DJ
12709 fprintf (f, "%ld\n", i);
12710 }
12711 else
12712 {
b4e70030
JB
12713 unsigned long i = ulongval ();
12714 if (i != ((long) (sizeof (long))))
12715 exit (1);
4e8d927d
DJ
12716 fprintf (f, "%lu\n", i);
12717 }
b4e70030 12718 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12719
12720 ;
12721 return 0;
12722}
12723_ACEOF
12724rm -f conftest$ac_exeext
12725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12726 (eval $ac_link) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 ac_cv_sizeof_long=`cat conftest.val`
12736else
12737 echo "$as_me: program exited with status $ac_status" >&5
12738echo "$as_me: failed program was:" >&5
12739sed 's/^/| /' conftest.$ac_ext >&5
12740
12741( exit $ac_status )
b4e70030 12742{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12743See \`config.log' for more details." >&5
b4e70030 12744echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12745See \`config.log' for more details." >&2;}
b4e70030
JB
12746 { (exit 1); exit 1; }; }
12747fi
12748rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12749fi
4e8d927d
DJ
12750fi
12751rm -f conftest.val
12752else
12753 ac_cv_sizeof_long=0
12754fi
12755fi
b4e70030
JB
12756echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12757echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
12758cat >>confdefs.h <<_ACEOF
12759#define SIZEOF_LONG $ac_cv_sizeof_long
12760_ACEOF
12761
12762 ;;
12763esac
12764
12765if test $acx_cv_header_stdint = stddef.h; then
12766 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
12767 echo "$as_me:$LINENO: checking for int" >&5
12768echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
12769if test "${ac_cv_type_int+set}" = set; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12771else
12772 cat >conftest.$ac_ext <<_ACEOF
12773/* confdefs.h. */
12774_ACEOF
12775cat confdefs.h >>conftest.$ac_ext
12776cat >>conftest.$ac_ext <<_ACEOF
12777/* end confdefs.h. */
12778$ac_includes_default
4e8d927d
DJ
12779int
12780main ()
12781{
b4e70030 12782if ((int *) 0)
4e8d927d 12783 return 0;
b4e70030 12784if (sizeof (int))
4e8d927d
DJ
12785 return 0;
12786 ;
12787 return 0;
12788}
12789_ACEOF
12790rm -f conftest.$ac_objext
12791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12792 (eval $ac_compile) 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
b4e70030
JB
12799 { ac_try='test -z "$ac_c_werror_flag"
12800 || test ! -s conftest.err'
4e8d927d
DJ
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; } &&
12806 { ac_try='test -s conftest.$ac_objext'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_cv_type_int=yes
12813else
12814 echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
b4e70030 12817ac_cv_type_int=no
4e8d927d 12818fi
4e8d927d
DJ
12819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12820fi
b4e70030
JB
12821echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12822echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 12823
b4e70030
JB
12824echo "$as_me:$LINENO: checking size of int" >&5
12825echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
12826if test "${ac_cv_sizeof_int+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828else
12829 if test "$ac_cv_type_int" = yes; then
b4e70030 12830 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12833 # This bug is HP SR number 8606223364.
12834 if test "$cross_compiling" = yes; then
12835 # Depending upon the size, compute the lo and hi bounds.
12836cat >conftest.$ac_ext <<_ACEOF
12837/* confdefs.h. */
12838_ACEOF
12839cat confdefs.h >>conftest.$ac_ext
12840cat >>conftest.$ac_ext <<_ACEOF
12841/* end confdefs.h. */
12842$ac_includes_default
4e8d927d
DJ
12843int
12844main ()
12845{
b4e70030 12846static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
12847test_array [0] = 0
12848
12849 ;
12850 return 0;
12851}
12852_ACEOF
12853rm -f conftest.$ac_objext
12854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855 (eval $ac_compile) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
b4e70030
JB
12862 { ac_try='test -z "$ac_c_werror_flag"
12863 || test ! -s conftest.err'
4e8d927d
DJ
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try='test -s conftest.$ac_objext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_lo=0 ac_mid=0
12876 while :; do
12877 cat >conftest.$ac_ext <<_ACEOF
12878/* confdefs.h. */
12879_ACEOF
12880cat confdefs.h >>conftest.$ac_ext
12881cat >>conftest.$ac_ext <<_ACEOF
12882/* end confdefs.h. */
12883$ac_includes_default
4e8d927d
DJ
12884int
12885main ()
12886{
b4e70030 12887static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
12888test_array [0] = 0
12889
12890 ;
12891 return 0;
12892}
12893_ACEOF
12894rm -f conftest.$ac_objext
12895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896 (eval $ac_compile) 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
b4e70030
JB
12903 { ac_try='test -z "$ac_c_werror_flag"
12904 || test ! -s conftest.err'
4e8d927d
DJ
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_hi=$ac_mid; break
12917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
b4e70030
JB
12921ac_lo=`expr $ac_mid + 1`
12922 if test $ac_lo -le $ac_mid; then
12923 ac_lo= ac_hi=
12924 break
12925 fi
12926 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12927fi
4e8d927d
DJ
12928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12929 done
12930else
12931 echo "$as_me: failed program was:" >&5
12932sed 's/^/| /' conftest.$ac_ext >&5
12933
b4e70030 12934cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12935/* confdefs.h. */
12936_ACEOF
12937cat confdefs.h >>conftest.$ac_ext
12938cat >>conftest.$ac_ext <<_ACEOF
12939/* end confdefs.h. */
12940$ac_includes_default
4e8d927d
DJ
12941int
12942main ()
12943{
b4e70030 12944static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
12945test_array [0] = 0
12946
12947 ;
12948 return 0;
12949}
12950_ACEOF
12951rm -f conftest.$ac_objext
12952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>conftest.er1
12954 ac_status=$?
12955 grep -v '^ *+' conftest.er1 >conftest.err
12956 rm -f conftest.er1
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
b4e70030
JB
12960 { ac_try='test -z "$ac_c_werror_flag"
12961 || test ! -s conftest.err'
4e8d927d
DJ
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_hi=-1 ac_mid=-1
12974 while :; do
12975 cat >conftest.$ac_ext <<_ACEOF
12976/* confdefs.h. */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
12980/* end confdefs.h. */
12981$ac_includes_default
4e8d927d
DJ
12982int
12983main ()
12984{
b4e70030 12985static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
12986test_array [0] = 0
12987
12988 ;
12989 return 0;
12990}
12991_ACEOF
12992rm -f conftest.$ac_objext
12993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994 (eval $ac_compile) 2>conftest.er1
12995 ac_status=$?
12996 grep -v '^ *+' conftest.er1 >conftest.err
12997 rm -f conftest.er1
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
b4e70030
JB
13001 { ac_try='test -z "$ac_c_werror_flag"
13002 || test ! -s conftest.err'
4e8d927d
DJ
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try='test -s conftest.$ac_objext'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_lo=$ac_mid; break
13015else
13016 echo "$as_me: failed program was:" >&5
13017sed 's/^/| /' conftest.$ac_ext >&5
13018
b4e70030
JB
13019ac_hi=`expr '(' $ac_mid ')' - 1`
13020 if test $ac_mid -le $ac_hi; then
13021 ac_lo= ac_hi=
13022 break
13023 fi
13024 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13025fi
4e8d927d
DJ
13026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13027 done
13028else
13029 echo "$as_me: failed program was:" >&5
13030sed 's/^/| /' conftest.$ac_ext >&5
13031
b4e70030 13032ac_lo= ac_hi=
4e8d927d 13033fi
4e8d927d
DJ
13034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13035fi
4e8d927d
DJ
13036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13037# Binary search between lo and hi bounds.
13038while test "x$ac_lo" != "x$ac_hi"; do
13039 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13040 cat >conftest.$ac_ext <<_ACEOF
13041/* confdefs.h. */
13042_ACEOF
13043cat confdefs.h >>conftest.$ac_ext
13044cat >>conftest.$ac_ext <<_ACEOF
13045/* end confdefs.h. */
13046$ac_includes_default
4e8d927d
DJ
13047int
13048main ()
13049{
b4e70030 13050static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13051test_array [0] = 0
13052
13053 ;
13054 return 0;
13055}
13056_ACEOF
13057rm -f conftest.$ac_objext
13058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13059 (eval $ac_compile) 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
b4e70030
JB
13066 { ac_try='test -z "$ac_c_werror_flag"
13067 || test ! -s conftest.err'
4e8d927d
DJ
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; } &&
13073 { ac_try='test -s conftest.$ac_objext'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 ac_hi=$ac_mid
13080else
13081 echo "$as_me: failed program was:" >&5
13082sed 's/^/| /' conftest.$ac_ext >&5
13083
b4e70030 13084ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13085fi
4e8d927d
DJ
13086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13087done
13088case $ac_lo in
13089?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 13090'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13091See \`config.log' for more details." >&5
b4e70030 13092echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13093See \`config.log' for more details." >&2;}
b4e70030 13094 { (exit 1); exit 1; }; } ;;
4e8d927d 13095esac
b4e70030
JB
13096else
13097 if test "$cross_compiling" = yes; then
13098 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13099See \`config.log' for more details." >&5
13100echo "$as_me: error: cannot run test program while cross compiling
13101See \`config.log' for more details." >&2;}
13102 { (exit 1); exit 1; }; }
4e8d927d
DJ
13103else
13104 cat >conftest.$ac_ext <<_ACEOF
13105/* confdefs.h. */
13106_ACEOF
13107cat confdefs.h >>conftest.$ac_ext
13108cat >>conftest.$ac_ext <<_ACEOF
13109/* end confdefs.h. */
13110$ac_includes_default
b4e70030
JB
13111long longval () { return (long) (sizeof (int)); }
13112unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
13113#include <stdio.h>
13114#include <stdlib.h>
13115int
13116main ()
13117{
13118
13119 FILE *f = fopen ("conftest.val", "w");
13120 if (! f)
b4e70030
JB
13121 exit (1);
13122 if (((long) (sizeof (int))) < 0)
4e8d927d 13123 {
b4e70030
JB
13124 long i = longval ();
13125 if (i != ((long) (sizeof (int))))
13126 exit (1);
4e8d927d
DJ
13127 fprintf (f, "%ld\n", i);
13128 }
13129 else
13130 {
b4e70030
JB
13131 unsigned long i = ulongval ();
13132 if (i != ((long) (sizeof (int))))
13133 exit (1);
4e8d927d
DJ
13134 fprintf (f, "%lu\n", i);
13135 }
b4e70030 13136 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13137
13138 ;
13139 return 0;
13140}
13141_ACEOF
13142rm -f conftest$ac_exeext
13143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13144 (eval $ac_link) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 ac_cv_sizeof_int=`cat conftest.val`
13154else
13155 echo "$as_me: program exited with status $ac_status" >&5
13156echo "$as_me: failed program was:" >&5
13157sed 's/^/| /' conftest.$ac_ext >&5
13158
13159( exit $ac_status )
b4e70030 13160{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13161See \`config.log' for more details." >&5
b4e70030 13162echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13163See \`config.log' for more details." >&2;}
b4e70030
JB
13164 { (exit 1); exit 1; }; }
13165fi
13166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13167fi
4e8d927d
DJ
13168fi
13169rm -f conftest.val
13170else
13171 ac_cv_sizeof_int=0
13172fi
13173fi
b4e70030
JB
13174echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13175echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
13176cat >>confdefs.h <<_ACEOF
13177#define SIZEOF_INT $ac_cv_sizeof_int
13178_ACEOF
13179
13180
b4e70030
JB
13181 echo "$as_me:$LINENO: checking for short" >&5
13182echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
13183if test "${ac_cv_type_short+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13185else
13186 cat >conftest.$ac_ext <<_ACEOF
13187/* confdefs.h. */
13188_ACEOF
13189cat confdefs.h >>conftest.$ac_ext
13190cat >>conftest.$ac_ext <<_ACEOF
13191/* end confdefs.h. */
13192$ac_includes_default
4e8d927d
DJ
13193int
13194main ()
13195{
b4e70030 13196if ((short *) 0)
4e8d927d 13197 return 0;
b4e70030 13198if (sizeof (short))
4e8d927d
DJ
13199 return 0;
13200 ;
13201 return 0;
13202}
13203_ACEOF
13204rm -f conftest.$ac_objext
13205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13206 (eval $ac_compile) 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
b4e70030
JB
13213 { ac_try='test -z "$ac_c_werror_flag"
13214 || test ! -s conftest.err'
4e8d927d
DJ
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest.$ac_objext'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; }; then
13226 ac_cv_type_short=yes
13227else
13228 echo "$as_me: failed program was:" >&5
13229sed 's/^/| /' conftest.$ac_ext >&5
13230
b4e70030 13231ac_cv_type_short=no
4e8d927d 13232fi
4e8d927d
DJ
13233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13234fi
b4e70030
JB
13235echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13236echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 13237
b4e70030
JB
13238echo "$as_me:$LINENO: checking size of short" >&5
13239echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
13240if test "${ac_cv_sizeof_short+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242else
13243 if test "$ac_cv_type_short" = yes; then
b4e70030 13244 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13247 # This bug is HP SR number 8606223364.
13248 if test "$cross_compiling" = yes; then
13249 # Depending upon the size, compute the lo and hi bounds.
13250cat >conftest.$ac_ext <<_ACEOF
13251/* confdefs.h. */
13252_ACEOF
13253cat confdefs.h >>conftest.$ac_ext
13254cat >>conftest.$ac_ext <<_ACEOF
13255/* end confdefs.h. */
13256$ac_includes_default
4e8d927d
DJ
13257int
13258main ()
13259{
b4e70030 13260static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
13261test_array [0] = 0
13262
13263 ;
13264 return 0;
13265}
13266_ACEOF
13267rm -f conftest.$ac_objext
13268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
b4e70030
JB
13276 { ac_try='test -z "$ac_c_werror_flag"
13277 || test ! -s conftest.err'
4e8d927d
DJ
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest.$ac_objext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_lo=0 ac_mid=0
13290 while :; do
13291 cat >conftest.$ac_ext <<_ACEOF
13292/* confdefs.h. */
13293_ACEOF
13294cat confdefs.h >>conftest.$ac_ext
13295cat >>conftest.$ac_ext <<_ACEOF
13296/* end confdefs.h. */
13297$ac_includes_default
4e8d927d
DJ
13298int
13299main ()
13300{
b4e70030 13301static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13302test_array [0] = 0
13303
13304 ;
13305 return 0;
13306}
13307_ACEOF
13308rm -f conftest.$ac_objext
13309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310 (eval $ac_compile) 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
b4e70030
JB
13317 { ac_try='test -z "$ac_c_werror_flag"
13318 || test ! -s conftest.err'
4e8d927d
DJ
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } &&
13324 { ac_try='test -s conftest.$ac_objext'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_hi=$ac_mid; break
13331else
13332 echo "$as_me: failed program was:" >&5
13333sed 's/^/| /' conftest.$ac_ext >&5
13334
b4e70030
JB
13335ac_lo=`expr $ac_mid + 1`
13336 if test $ac_lo -le $ac_mid; then
13337 ac_lo= ac_hi=
13338 break
13339 fi
13340 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13341fi
4e8d927d
DJ
13342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13343 done
13344else
13345 echo "$as_me: failed program was:" >&5
13346sed 's/^/| /' conftest.$ac_ext >&5
13347
b4e70030 13348cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
13354$ac_includes_default
4e8d927d
DJ
13355int
13356main ()
13357{
b4e70030 13358static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13359test_array [0] = 0
13360
13361 ;
13362 return 0;
13363}
13364_ACEOF
13365rm -f conftest.$ac_objext
13366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
b4e70030
JB
13374 { ac_try='test -z "$ac_c_werror_flag"
13375 || test ! -s conftest.err'
4e8d927d
DJ
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest.$ac_objext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_hi=-1 ac_mid=-1
13388 while :; do
13389 cat >conftest.$ac_ext <<_ACEOF
13390/* confdefs.h. */
13391_ACEOF
13392cat confdefs.h >>conftest.$ac_ext
13393cat >>conftest.$ac_ext <<_ACEOF
13394/* end confdefs.h. */
13395$ac_includes_default
4e8d927d
DJ
13396int
13397main ()
13398{
b4e70030 13399static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13400test_array [0] = 0
13401
13402 ;
13403 return 0;
13404}
13405_ACEOF
13406rm -f conftest.$ac_objext
13407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13408 (eval $ac_compile) 2>conftest.er1
13409 ac_status=$?
13410 grep -v '^ *+' conftest.er1 >conftest.err
13411 rm -f conftest.er1
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
b4e70030
JB
13415 { ac_try='test -z "$ac_c_werror_flag"
13416 || test ! -s conftest.err'
4e8d927d
DJ
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_lo=$ac_mid; break
13429else
13430 echo "$as_me: failed program was:" >&5
13431sed 's/^/| /' conftest.$ac_ext >&5
13432
b4e70030
JB
13433ac_hi=`expr '(' $ac_mid ')' - 1`
13434 if test $ac_mid -le $ac_hi; then
13435 ac_lo= ac_hi=
13436 break
13437 fi
13438 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13439fi
4e8d927d
DJ
13440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13441 done
13442else
13443 echo "$as_me: failed program was:" >&5
13444sed 's/^/| /' conftest.$ac_ext >&5
13445
b4e70030 13446ac_lo= ac_hi=
4e8d927d 13447fi
4e8d927d
DJ
13448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13449fi
4e8d927d
DJ
13450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13451# Binary search between lo and hi bounds.
13452while test "x$ac_lo" != "x$ac_hi"; do
13453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13454 cat >conftest.$ac_ext <<_ACEOF
13455/* confdefs.h. */
13456_ACEOF
13457cat confdefs.h >>conftest.$ac_ext
13458cat >>conftest.$ac_ext <<_ACEOF
13459/* end confdefs.h. */
13460$ac_includes_default
4e8d927d
DJ
13461int
13462main ()
13463{
b4e70030 13464static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13465test_array [0] = 0
13466
13467 ;
13468 return 0;
13469}
13470_ACEOF
13471rm -f conftest.$ac_objext
13472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473 (eval $ac_compile) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
b4e70030
JB
13480 { ac_try='test -z "$ac_c_werror_flag"
13481 || test ! -s conftest.err'
4e8d927d
DJ
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try='test -s conftest.$ac_objext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 ac_hi=$ac_mid
13494else
13495 echo "$as_me: failed program was:" >&5
13496sed 's/^/| /' conftest.$ac_ext >&5
13497
b4e70030 13498ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13499fi
4e8d927d
DJ
13500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13501done
13502case $ac_lo in
13503?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 13504'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13505See \`config.log' for more details." >&5
b4e70030 13506echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13507See \`config.log' for more details." >&2;}
b4e70030 13508 { (exit 1); exit 1; }; } ;;
4e8d927d 13509esac
b4e70030
JB
13510else
13511 if test "$cross_compiling" = yes; then
13512 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13513See \`config.log' for more details." >&5
13514echo "$as_me: error: cannot run test program while cross compiling
13515See \`config.log' for more details." >&2;}
13516 { (exit 1); exit 1; }; }
4e8d927d
DJ
13517else
13518 cat >conftest.$ac_ext <<_ACEOF
13519/* confdefs.h. */
13520_ACEOF
13521cat confdefs.h >>conftest.$ac_ext
13522cat >>conftest.$ac_ext <<_ACEOF
13523/* end confdefs.h. */
13524$ac_includes_default
b4e70030
JB
13525long longval () { return (long) (sizeof (short)); }
13526unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
13527#include <stdio.h>
13528#include <stdlib.h>
13529int
13530main ()
13531{
13532
13533 FILE *f = fopen ("conftest.val", "w");
13534 if (! f)
b4e70030
JB
13535 exit (1);
13536 if (((long) (sizeof (short))) < 0)
4e8d927d 13537 {
b4e70030
JB
13538 long i = longval ();
13539 if (i != ((long) (sizeof (short))))
13540 exit (1);
4e8d927d
DJ
13541 fprintf (f, "%ld\n", i);
13542 }
13543 else
13544 {
b4e70030
JB
13545 unsigned long i = ulongval ();
13546 if (i != ((long) (sizeof (short))))
13547 exit (1);
4e8d927d
DJ
13548 fprintf (f, "%lu\n", i);
13549 }
b4e70030 13550 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13551
13552 ;
13553 return 0;
13554}
13555_ACEOF
13556rm -f conftest$ac_exeext
13557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13558 (eval $ac_link) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_cv_sizeof_short=`cat conftest.val`
13568else
13569 echo "$as_me: program exited with status $ac_status" >&5
13570echo "$as_me: failed program was:" >&5
13571sed 's/^/| /' conftest.$ac_ext >&5
13572
13573( exit $ac_status )
b4e70030 13574{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13575See \`config.log' for more details." >&5
b4e70030 13576echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13577See \`config.log' for more details." >&2;}
b4e70030
JB
13578 { (exit 1); exit 1; }; }
13579fi
13580rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13581fi
4e8d927d
DJ
13582fi
13583rm -f conftest.val
13584else
13585 ac_cv_sizeof_short=0
13586fi
13587fi
b4e70030
JB
13588echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13589echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
13590cat >>confdefs.h <<_ACEOF
13591#define SIZEOF_SHORT $ac_cv_sizeof_short
13592_ACEOF
13593
13594
b4e70030
JB
13595 echo "$as_me:$LINENO: checking for char" >&5
13596echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
13597if test "${ac_cv_type_char+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13599else
13600 cat >conftest.$ac_ext <<_ACEOF
13601/* confdefs.h. */
13602_ACEOF
13603cat confdefs.h >>conftest.$ac_ext
13604cat >>conftest.$ac_ext <<_ACEOF
13605/* end confdefs.h. */
13606$ac_includes_default
4e8d927d
DJ
13607int
13608main ()
13609{
b4e70030 13610if ((char *) 0)
4e8d927d 13611 return 0;
b4e70030 13612if (sizeof (char))
4e8d927d
DJ
13613 return 0;
13614 ;
13615 return 0;
13616}
13617_ACEOF
13618rm -f conftest.$ac_objext
13619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620 (eval $ac_compile) 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
b4e70030
JB
13627 { ac_try='test -z "$ac_c_werror_flag"
13628 || test ! -s conftest.err'
4e8d927d
DJ
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest.$ac_objext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_type_char=yes
13641else
13642 echo "$as_me: failed program was:" >&5
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
b4e70030 13645ac_cv_type_char=no
4e8d927d 13646fi
4e8d927d
DJ
13647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13648fi
b4e70030
JB
13649echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13650echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 13651
b4e70030
JB
13652echo "$as_me:$LINENO: checking size of char" >&5
13653echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
13654if test "${ac_cv_sizeof_char+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13656else
13657 if test "$ac_cv_type_char" = yes; then
b4e70030 13658 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13661 # This bug is HP SR number 8606223364.
13662 if test "$cross_compiling" = yes; then
13663 # Depending upon the size, compute the lo and hi bounds.
13664cat >conftest.$ac_ext <<_ACEOF
13665/* confdefs.h. */
13666_ACEOF
13667cat confdefs.h >>conftest.$ac_ext
13668cat >>conftest.$ac_ext <<_ACEOF
13669/* end confdefs.h. */
13670$ac_includes_default
4e8d927d
DJ
13671int
13672main ()
13673{
b4e70030 13674static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
13675test_array [0] = 0
13676
13677 ;
13678 return 0;
13679}
13680_ACEOF
13681rm -f conftest.$ac_objext
13682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>conftest.er1
13684 ac_status=$?
13685 grep -v '^ *+' conftest.er1 >conftest.err
13686 rm -f conftest.er1
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
b4e70030
JB
13690 { ac_try='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
4e8d927d
DJ
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_lo=0 ac_mid=0
13704 while :; do
13705 cat >conftest.$ac_ext <<_ACEOF
13706/* confdefs.h. */
13707_ACEOF
13708cat confdefs.h >>conftest.$ac_ext
13709cat >>conftest.$ac_ext <<_ACEOF
13710/* end confdefs.h. */
13711$ac_includes_default
4e8d927d
DJ
13712int
13713main ()
13714{
b4e70030 13715static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13716test_array [0] = 0
13717
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext
13723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13724 (eval $ac_compile) 2>conftest.er1
13725 ac_status=$?
13726 grep -v '^ *+' conftest.er1 >conftest.err
13727 rm -f conftest.er1
13728 cat conftest.err >&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
b4e70030
JB
13731 { ac_try='test -z "$ac_c_werror_flag"
13732 || test ! -s conftest.err'
4e8d927d
DJ
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; } &&
13738 { ac_try='test -s conftest.$ac_objext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 ac_hi=$ac_mid; break
13745else
13746 echo "$as_me: failed program was:" >&5
13747sed 's/^/| /' conftest.$ac_ext >&5
13748
b4e70030
JB
13749ac_lo=`expr $ac_mid + 1`
13750 if test $ac_lo -le $ac_mid; then
13751 ac_lo= ac_hi=
13752 break
13753 fi
13754 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13755fi
4e8d927d
DJ
13756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13757 done
13758else
13759 echo "$as_me: failed program was:" >&5
13760sed 's/^/| /' conftest.$ac_ext >&5
13761
b4e70030 13762cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13763/* confdefs.h. */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
13767/* end confdefs.h. */
13768$ac_includes_default
4e8d927d
DJ
13769int
13770main ()
13771{
b4e70030 13772static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
13773test_array [0] = 0
13774
13775 ;
13776 return 0;
13777}
13778_ACEOF
13779rm -f conftest.$ac_objext
13780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781 (eval $ac_compile) 2>conftest.er1
13782 ac_status=$?
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
b4e70030
JB
13788 { ac_try='test -z "$ac_c_werror_flag"
13789 || test ! -s conftest.err'
4e8d927d
DJ
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13798 ac_status=$?
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 ac_hi=-1 ac_mid=-1
13802 while :; do
13803 cat >conftest.$ac_ext <<_ACEOF
13804/* confdefs.h. */
13805_ACEOF
13806cat confdefs.h >>conftest.$ac_ext
13807cat >>conftest.$ac_ext <<_ACEOF
13808/* end confdefs.h. */
13809$ac_includes_default
4e8d927d
DJ
13810int
13811main ()
13812{
b4e70030 13813static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
13814test_array [0] = 0
13815
13816 ;
13817 return 0;
13818}
13819_ACEOF
13820rm -f conftest.$ac_objext
13821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
b4e70030
JB
13829 { ac_try='test -z "$ac_c_werror_flag"
13830 || test ! -s conftest.err'
4e8d927d
DJ
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try='test -s conftest.$ac_objext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_lo=$ac_mid; break
13843else
13844 echo "$as_me: failed program was:" >&5
13845sed 's/^/| /' conftest.$ac_ext >&5
13846
b4e70030
JB
13847ac_hi=`expr '(' $ac_mid ')' - 1`
13848 if test $ac_mid -le $ac_hi; then
13849 ac_lo= ac_hi=
13850 break
13851 fi
13852 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13853fi
4e8d927d
DJ
13854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13855 done
13856else
13857 echo "$as_me: failed program was:" >&5
13858sed 's/^/| /' conftest.$ac_ext >&5
13859
b4e70030 13860ac_lo= ac_hi=
4e8d927d 13861fi
4e8d927d
DJ
13862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13863fi
4e8d927d
DJ
13864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13865# Binary search between lo and hi bounds.
13866while test "x$ac_lo" != "x$ac_hi"; do
13867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13868 cat >conftest.$ac_ext <<_ACEOF
13869/* confdefs.h. */
13870_ACEOF
13871cat confdefs.h >>conftest.$ac_ext
13872cat >>conftest.$ac_ext <<_ACEOF
13873/* end confdefs.h. */
13874$ac_includes_default
4e8d927d
DJ
13875int
13876main ()
13877{
b4e70030 13878static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13879test_array [0] = 0
13880
13881 ;
13882 return 0;
13883}
13884_ACEOF
13885rm -f conftest.$ac_objext
13886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887 (eval $ac_compile) 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
b4e70030
JB
13894 { ac_try='test -z "$ac_c_werror_flag"
13895 || test ! -s conftest.err'
4e8d927d
DJ
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest.$ac_objext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_hi=$ac_mid
13908else
13909 echo "$as_me: failed program was:" >&5
13910sed 's/^/| /' conftest.$ac_ext >&5
13911
b4e70030 13912ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13913fi
4e8d927d
DJ
13914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13915done
13916case $ac_lo in
13917?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 13918'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 13919See \`config.log' for more details." >&5
b4e70030 13920echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 13921See \`config.log' for more details." >&2;}
b4e70030 13922 { (exit 1); exit 1; }; } ;;
4e8d927d 13923esac
b4e70030
JB
13924else
13925 if test "$cross_compiling" = yes; then
13926 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13927See \`config.log' for more details." >&5
13928echo "$as_me: error: cannot run test program while cross compiling
13929See \`config.log' for more details." >&2;}
13930 { (exit 1); exit 1; }; }
4e8d927d
DJ
13931else
13932 cat >conftest.$ac_ext <<_ACEOF
13933/* confdefs.h. */
13934_ACEOF
13935cat confdefs.h >>conftest.$ac_ext
13936cat >>conftest.$ac_ext <<_ACEOF
13937/* end confdefs.h. */
13938$ac_includes_default
b4e70030
JB
13939long longval () { return (long) (sizeof (char)); }
13940unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
13941#include <stdio.h>
13942#include <stdlib.h>
13943int
13944main ()
13945{
13946
13947 FILE *f = fopen ("conftest.val", "w");
13948 if (! f)
b4e70030
JB
13949 exit (1);
13950 if (((long) (sizeof (char))) < 0)
4e8d927d 13951 {
b4e70030
JB
13952 long i = longval ();
13953 if (i != ((long) (sizeof (char))))
13954 exit (1);
4e8d927d
DJ
13955 fprintf (f, "%ld\n", i);
13956 }
13957 else
13958 {
b4e70030
JB
13959 unsigned long i = ulongval ();
13960 if (i != ((long) (sizeof (char))))
13961 exit (1);
4e8d927d
DJ
13962 fprintf (f, "%lu\n", i);
13963 }
b4e70030 13964 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13965
13966 ;
13967 return 0;
13968}
13969_ACEOF
13970rm -f conftest$ac_exeext
13971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13972 (eval $ac_link) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 ac_cv_sizeof_char=`cat conftest.val`
13982else
13983 echo "$as_me: program exited with status $ac_status" >&5
13984echo "$as_me: failed program was:" >&5
13985sed 's/^/| /' conftest.$ac_ext >&5
13986
13987( exit $ac_status )
b4e70030 13988{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 13989See \`config.log' for more details." >&5
b4e70030 13990echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 13991See \`config.log' for more details." >&2;}
b4e70030
JB
13992 { (exit 1); exit 1; }; }
13993fi
13994rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13995fi
4e8d927d
DJ
13996fi
13997rm -f conftest.val
13998else
13999 ac_cv_sizeof_char=0
14000fi
14001fi
b4e70030
JB
14002echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14003echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
14004cat >>confdefs.h <<_ACEOF
14005#define SIZEOF_CHAR $ac_cv_sizeof_char
14006_ACEOF
14007
14008
14009
b4e70030
JB
14010 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14011echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
14012 case "$ac_cv_sizeof_char" in
14013 1) acx_cv_type_int8_t=char ;;
14014 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14015echo "$as_me: error: no 8-bit type" >&2;}
14016 { (exit please report a bug); exit please report a bug; }; }
14017 esac
b4e70030
JB
14018 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14019echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 14020
b4e70030
JB
14021 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14022echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
14023 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14024 2:*) acx_cv_type_int16_t=int ;;
14025 *:2) acx_cv_type_int16_t=short ;;
14026 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14027echo "$as_me: error: no 16-bit type" >&2;}
14028 { (exit please report a bug); exit please report a bug; }; }
14029 esac
b4e70030
JB
14030 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14031echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 14032
b4e70030
JB
14033 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14034echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
14035 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14036 4:*) acx_cv_type_int32_t=int ;;
14037 *:4) acx_cv_type_int32_t=long ;;
14038 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14039echo "$as_me: error: no 32-bit type" >&2;}
14040 { (exit please report a bug); exit please report a bug; }; }
14041 esac
b4e70030
JB
14042 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14043echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
14044fi
14045
14046# These tests are here to make the output prettier
14047
14048if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14049 case "$ac_cv_sizeof_long" in
14050 8) acx_cv_type_int64_t=long ;;
14051 esac
b4e70030
JB
14052 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14053echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14054 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14055echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
14056fi
14057
14058# Now we can use the above types
14059
14060if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
14061 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14062echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
14063 case $ac_cv_sizeof_void_p in
14064 2) acx_cv_type_intptr_t=int16_t ;;
14065 4) acx_cv_type_intptr_t=int32_t ;;
14066 8) acx_cv_type_intptr_t=int64_t ;;
14067 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14068echo "$as_me: error: no equivalent for intptr_t" >&2;}
14069 { (exit please report a bug); exit please report a bug; }; }
14070 esac
b4e70030
JB
14071 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14072echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
14073fi
14074
14075# ----------------- done all checks, emit header -------------
b4e70030 14076 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
14077
14078
14079
14080
14081# ------------------------- #
14082# Checks for declarations. #
14083# ------------------------- #
14084
b4e70030
JB
14085echo "$as_me:$LINENO: checking whether free is declared" >&5
14086echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
14087if test "${ac_cv_have_decl_free+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089else
14090 cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
14096$ac_includes_default
14097int
14098main ()
14099{
14100#ifndef free
14101 char *p = (char *) free;
4e8d927d
DJ
14102#endif
14103
14104 ;
14105 return 0;
14106}
14107_ACEOF
14108rm -f conftest.$ac_objext
14109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
b4e70030
JB
14117 { ac_try='test -z "$ac_c_werror_flag"
14118 || test ! -s conftest.err'
4e8d927d
DJ
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest.$ac_objext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 ac_cv_have_decl_free=yes
14131else
14132 echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
b4e70030 14135ac_cv_have_decl_free=no
4e8d927d 14136fi
4e8d927d
DJ
14137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14138fi
b4e70030
JB
14139echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14140echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
14141if test $ac_cv_have_decl_free = yes; then
14142
14143cat >>confdefs.h <<_ACEOF
14144#define HAVE_DECL_FREE 1
14145_ACEOF
14146
14147
14148else
14149 cat >>confdefs.h <<_ACEOF
14150#define HAVE_DECL_FREE 0
14151_ACEOF
14152
14153
14154fi
b4e70030
JB
14155echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14156echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14157if test "${ac_cv_have_decl_malloc+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159else
14160 cat >conftest.$ac_ext <<_ACEOF
14161/* confdefs.h. */
14162_ACEOF
14163cat confdefs.h >>conftest.$ac_ext
14164cat >>conftest.$ac_ext <<_ACEOF
14165/* end confdefs.h. */
14166$ac_includes_default
14167int
14168main ()
14169{
14170#ifndef malloc
14171 char *p = (char *) malloc;
4e8d927d
DJ
14172#endif
14173
14174 ;
14175 return 0;
14176}
14177_ACEOF
14178rm -f conftest.$ac_objext
14179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180 (eval $ac_compile) 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
b4e70030
JB
14187 { ac_try='test -z "$ac_c_werror_flag"
14188 || test ! -s conftest.err'
4e8d927d
DJ
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest.$ac_objext'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_have_decl_malloc=yes
14201else
14202 echo "$as_me: failed program was:" >&5
14203sed 's/^/| /' conftest.$ac_ext >&5
14204
b4e70030 14205ac_cv_have_decl_malloc=no
4e8d927d 14206fi
4e8d927d
DJ
14207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14208fi
b4e70030
JB
14209echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14210echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
14211if test $ac_cv_have_decl_malloc = yes; then
14212
14213cat >>confdefs.h <<_ACEOF
14214#define HAVE_DECL_MALLOC 1
14215_ACEOF
14216
14217
14218else
14219 cat >>confdefs.h <<_ACEOF
14220#define HAVE_DECL_MALLOC 0
14221_ACEOF
14222
14223
14224fi
b4e70030
JB
14225echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14226echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14227if test "${ac_cv_have_decl_realloc+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229else
14230 cat >conftest.$ac_ext <<_ACEOF
14231/* confdefs.h. */
14232_ACEOF
14233cat confdefs.h >>conftest.$ac_ext
14234cat >>conftest.$ac_ext <<_ACEOF
14235/* end confdefs.h. */
14236$ac_includes_default
14237int
14238main ()
14239{
14240#ifndef realloc
14241 char *p = (char *) realloc;
4e8d927d
DJ
14242#endif
14243
14244 ;
14245 return 0;
14246}
14247_ACEOF
14248rm -f conftest.$ac_objext
14249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250 (eval $ac_compile) 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
b4e70030
JB
14257 { ac_try='test -z "$ac_c_werror_flag"
14258 || test ! -s conftest.err'
4e8d927d
DJ
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; } &&
14264 { ac_try='test -s conftest.$ac_objext'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 ac_cv_have_decl_realloc=yes
14271else
14272 echo "$as_me: failed program was:" >&5
14273sed 's/^/| /' conftest.$ac_ext >&5
14274
b4e70030 14275ac_cv_have_decl_realloc=no
4e8d927d 14276fi
4e8d927d
DJ
14277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14278fi
b4e70030
JB
14279echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14280echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
14281if test $ac_cv_have_decl_realloc = yes; then
14282
14283cat >>confdefs.h <<_ACEOF
14284#define HAVE_DECL_REALLOC 1
14285_ACEOF
14286
14287
14288else
14289 cat >>confdefs.h <<_ACEOF
14290#define HAVE_DECL_REALLOC 0
14291_ACEOF
14292
14293
14294fi
14295
14296
b4e70030
JB
14297echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14298echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14299if test "${ac_cv_have_decl_strerror+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301else
14302 cat >conftest.$ac_ext <<_ACEOF
14303/* confdefs.h. */
14304_ACEOF
14305cat confdefs.h >>conftest.$ac_ext
14306cat >>conftest.$ac_ext <<_ACEOF
14307/* end confdefs.h. */
14308$ac_includes_default
14309int
14310main ()
14311{
14312#ifndef strerror
14313 char *p = (char *) strerror;
4e8d927d
DJ
14314#endif
14315
14316 ;
14317 return 0;
14318}
14319_ACEOF
14320rm -f conftest.$ac_objext
14321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
b4e70030
JB
14329 { ac_try='test -z "$ac_c_werror_flag"
14330 || test ! -s conftest.err'
4e8d927d
DJ
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest.$ac_objext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14342 ac_cv_have_decl_strerror=yes
14343else
14344 echo "$as_me: failed program was:" >&5
14345sed 's/^/| /' conftest.$ac_ext >&5
14346
b4e70030 14347ac_cv_have_decl_strerror=no
4e8d927d 14348fi
4e8d927d
DJ
14349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14350fi
b4e70030
JB
14351echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14352echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14353if test $ac_cv_have_decl_strerror = yes; then
14354
14355cat >>confdefs.h <<_ACEOF
14356#define HAVE_DECL_STRERROR 1
14357_ACEOF
14358
14359
14360else
14361 cat >>confdefs.h <<_ACEOF
14362#define HAVE_DECL_STRERROR 0
14363_ACEOF
14364
14365
14366fi
b4e70030
JB
14367echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14368echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14369if test "${ac_cv_have_decl_strstr+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371else
14372 cat >conftest.$ac_ext <<_ACEOF
14373/* confdefs.h. */
14374_ACEOF
14375cat confdefs.h >>conftest.$ac_ext
14376cat >>conftest.$ac_ext <<_ACEOF
14377/* end confdefs.h. */
14378$ac_includes_default
14379int
14380main ()
14381{
14382#ifndef strstr
14383 char *p = (char *) strstr;
4e8d927d
DJ
14384#endif
14385
14386 ;
14387 return 0;
14388}
14389_ACEOF
14390rm -f conftest.$ac_objext
14391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14392 (eval $ac_compile) 2>conftest.er1
14393 ac_status=$?
14394 grep -v '^ *+' conftest.er1 >conftest.err
14395 rm -f conftest.er1
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
b4e70030
JB
14399 { ac_try='test -z "$ac_c_werror_flag"
14400 || test ! -s conftest.err'
4e8d927d
DJ
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; } &&
14406 { ac_try='test -s conftest.$ac_objext'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 ac_cv_have_decl_strstr=yes
14413else
14414 echo "$as_me: failed program was:" >&5
14415sed 's/^/| /' conftest.$ac_ext >&5
14416
b4e70030 14417ac_cv_have_decl_strstr=no
4e8d927d 14418fi
4e8d927d
DJ
14419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14420fi
b4e70030
JB
14421echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14422echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14423if test $ac_cv_have_decl_strstr = yes; then
14424
14425cat >>confdefs.h <<_ACEOF
14426#define HAVE_DECL_STRSTR 1
14427_ACEOF
14428
14429
14430else
14431 cat >>confdefs.h <<_ACEOF
14432#define HAVE_DECL_STRSTR 0
14433_ACEOF
14434
14435
14436fi
14437
14438
b4e70030
JB
14439echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14440echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14441if test "${ac_cv_have_decl_getopt+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14443else
14444 cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450$ac_includes_default
14451int
14452main ()
14453{
14454#ifndef getopt
14455 char *p = (char *) getopt;
4e8d927d
DJ
14456#endif
14457
14458 ;
14459 return 0;
14460}
14461_ACEOF
14462rm -f conftest.$ac_objext
14463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14464 (eval $ac_compile) 2>conftest.er1
14465 ac_status=$?
14466 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
b4e70030
JB
14471 { ac_try='test -z "$ac_c_werror_flag"
14472 || test ! -s conftest.err'
4e8d927d
DJ
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; } &&
14478 { ac_try='test -s conftest.$ac_objext'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14484 ac_cv_have_decl_getopt=yes
14485else
14486 echo "$as_me: failed program was:" >&5
14487sed 's/^/| /' conftest.$ac_ext >&5
14488
b4e70030 14489ac_cv_have_decl_getopt=no
4e8d927d 14490fi
4e8d927d
DJ
14491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14492fi
b4e70030
JB
14493echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14494echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
14495if test $ac_cv_have_decl_getopt = yes; then
14496
14497cat >>confdefs.h <<_ACEOF
14498#define HAVE_DECL_GETOPT 1
14499_ACEOF
14500
14501
14502else
14503 cat >>confdefs.h <<_ACEOF
14504#define HAVE_DECL_GETOPT 0
14505_ACEOF
14506
14507
14508fi
b4e70030
JB
14509echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14510echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14511if test "${ac_cv_have_decl_snprintf+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14513else
14514 cat >conftest.$ac_ext <<_ACEOF
14515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
14519/* end confdefs.h. */
14520$ac_includes_default
14521int
14522main ()
14523{
14524#ifndef snprintf
14525 char *p = (char *) snprintf;
4e8d927d
DJ
14526#endif
14527
14528 ;
14529 return 0;
14530}
14531_ACEOF
14532rm -f conftest.$ac_objext
14533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14534 (eval $ac_compile) 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
b4e70030
JB
14541 { ac_try='test -z "$ac_c_werror_flag"
14542 || test ! -s conftest.err'
4e8d927d
DJ
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; } &&
14548 { ac_try='test -s conftest.$ac_objext'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_cv_have_decl_snprintf=yes
14555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
b4e70030 14559ac_cv_have_decl_snprintf=no
4e8d927d 14560fi
4e8d927d
DJ
14561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14562fi
b4e70030
JB
14563echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14564echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
14565if test $ac_cv_have_decl_snprintf = yes; then
14566
14567cat >>confdefs.h <<_ACEOF
14568#define HAVE_DECL_SNPRINTF 1
14569_ACEOF
14570
14571
14572else
14573 cat >>confdefs.h <<_ACEOF
14574#define HAVE_DECL_SNPRINTF 0
14575_ACEOF
14576
14577
14578fi
b4e70030
JB
14579echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14580echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14581if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14583else
14584 cat >conftest.$ac_ext <<_ACEOF
14585/* confdefs.h. */
14586_ACEOF
14587cat confdefs.h >>conftest.$ac_ext
14588cat >>conftest.$ac_ext <<_ACEOF
14589/* end confdefs.h. */
14590$ac_includes_default
14591int
14592main ()
14593{
14594#ifndef vsnprintf
14595 char *p = (char *) vsnprintf;
4e8d927d
DJ
14596#endif
14597
14598 ;
14599 return 0;
14600}
14601_ACEOF
14602rm -f conftest.$ac_objext
14603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14604 (eval $ac_compile) 2>conftest.er1
14605 ac_status=$?
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
b4e70030
JB
14611 { ac_try='test -z "$ac_c_werror_flag"
14612 || test ! -s conftest.err'
4e8d927d
DJ
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; } &&
14618 { ac_try='test -s conftest.$ac_objext'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14624 ac_cv_have_decl_vsnprintf=yes
14625else
14626 echo "$as_me: failed program was:" >&5
14627sed 's/^/| /' conftest.$ac_ext >&5
14628
b4e70030 14629ac_cv_have_decl_vsnprintf=no
4e8d927d 14630fi
4e8d927d
DJ
14631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14632fi
b4e70030
JB
14633echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14634echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
14635if test $ac_cv_have_decl_vsnprintf = yes; then
14636
14637cat >>confdefs.h <<_ACEOF
14638#define HAVE_DECL_VSNPRINTF 1
14639_ACEOF
14640
14641
14642else
14643 cat >>confdefs.h <<_ACEOF
14644#define HAVE_DECL_VSNPRINTF 0
14645_ACEOF
14646
14647
14648fi
14649
14650
14651
14652# ----------------------- #
14653# Checks for structures. #
14654# ----------------------- #
14655
b4e70030
JB
14656echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14657echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
14658if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660else
14661 cat >conftest.$ac_ext <<_ACEOF
14662/* confdefs.h. */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h. */
14667$ac_includes_default
14668int
14669main ()
14670{
14671static struct stat ac_aggr;
14672if (ac_aggr.st_blocks)
14673return 0;
14674 ;
14675 return 0;
14676}
14677_ACEOF
14678rm -f conftest.$ac_objext
14679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14680 (eval $ac_compile) 2>conftest.er1
14681 ac_status=$?
14682 grep -v '^ *+' conftest.er1 >conftest.err
14683 rm -f conftest.er1
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
b4e70030
JB
14687 { ac_try='test -z "$ac_c_werror_flag"
14688 || test ! -s conftest.err'
4e8d927d
DJ
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; } &&
14694 { ac_try='test -s conftest.$ac_objext'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_cv_member_struct_stat_st_blocks=yes
14701else
14702 echo "$as_me: failed program was:" >&5
14703sed 's/^/| /' conftest.$ac_ext >&5
14704
b4e70030 14705cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14706/* confdefs.h. */
14707_ACEOF
14708cat confdefs.h >>conftest.$ac_ext
14709cat >>conftest.$ac_ext <<_ACEOF
14710/* end confdefs.h. */
14711$ac_includes_default
14712int
14713main ()
14714{
14715static struct stat ac_aggr;
14716if (sizeof ac_aggr.st_blocks)
14717return 0;
14718 ;
14719 return 0;
14720}
14721_ACEOF
14722rm -f conftest.$ac_objext
14723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } &&
b4e70030
JB
14731 { ac_try='test -z "$ac_c_werror_flag"
14732 || test ! -s conftest.err'
4e8d927d
DJ
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_cv_member_struct_stat_st_blocks=yes
14745else
14746 echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5
14748
b4e70030 14749ac_cv_member_struct_stat_st_blocks=no
4e8d927d 14750fi
4e8d927d
DJ
14751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752fi
4e8d927d
DJ
14753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14754fi
b4e70030
JB
14755echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14756echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
14757if test $ac_cv_member_struct_stat_st_blocks = yes; then
14758
14759cat >>confdefs.h <<_ACEOF
14760#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14761_ACEOF
14762
14763
14764fi
14765
b4e70030
JB
14766echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14767echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
14768if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770else
14771 cat >conftest.$ac_ext <<_ACEOF
14772/* confdefs.h. */
14773_ACEOF
14774cat confdefs.h >>conftest.$ac_ext
14775cat >>conftest.$ac_ext <<_ACEOF
14776/* end confdefs.h. */
14777$ac_includes_default
14778int
14779main ()
14780{
14781static struct stat ac_aggr;
14782if (ac_aggr.st_blksize)
14783return 0;
14784 ;
14785 return 0;
14786}
14787_ACEOF
14788rm -f conftest.$ac_objext
14789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790 (eval $ac_compile) 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
b4e70030
JB
14797 { ac_try='test -z "$ac_c_werror_flag"
14798 || test ! -s conftest.err'
4e8d927d
DJ
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_member_struct_stat_st_blksize=yes
14811else
14812 echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
b4e70030 14815cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14816/* confdefs.h. */
14817_ACEOF
14818cat confdefs.h >>conftest.$ac_ext
14819cat >>conftest.$ac_ext <<_ACEOF
14820/* end confdefs.h. */
14821$ac_includes_default
14822int
14823main ()
14824{
14825static struct stat ac_aggr;
14826if (sizeof ac_aggr.st_blksize)
14827return 0;
14828 ;
14829 return 0;
14830}
14831_ACEOF
14832rm -f conftest.$ac_objext
14833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14834 (eval $ac_compile) 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
b4e70030
JB
14841 { ac_try='test -z "$ac_c_werror_flag"
14842 || test ! -s conftest.err'
4e8d927d
DJ
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest.$ac_objext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_cv_member_struct_stat_st_blksize=yes
14855else
14856 echo "$as_me: failed program was:" >&5
14857sed 's/^/| /' conftest.$ac_ext >&5
14858
b4e70030 14859ac_cv_member_struct_stat_st_blksize=no
4e8d927d 14860fi
4e8d927d
DJ
14861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14862fi
4e8d927d
DJ
14863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864fi
b4e70030
JB
14865echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14866echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
14867if test $ac_cv_member_struct_stat_st_blksize = yes; then
14868
14869cat >>confdefs.h <<_ACEOF
14870#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14871_ACEOF
14872
14873
14874fi
14875
14876
14877# ------------------ #
14878# Checks for types. #
14879# ------------------ #
14880
b4e70030
JB
14881echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14882echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
14883if test "${ac_cv_type_signal+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14885else
14886 cat >conftest.$ac_ext <<_ACEOF
14887/* confdefs.h. */
14888_ACEOF
14889cat confdefs.h >>conftest.$ac_ext
14890cat >>conftest.$ac_ext <<_ACEOF
14891/* end confdefs.h. */
14892#include <sys/types.h>
14893#include <signal.h>
b4e70030
JB
14894#ifdef signal
14895# undef signal
14896#endif
14897#ifdef __cplusplus
14898extern "C" void (*signal (int, void (*)(int)))(int);
14899#else
14900void (*signal ()) ();
14901#endif
4e8d927d
DJ
14902
14903int
14904main ()
14905{
b4e70030 14906int i;
4e8d927d
DJ
14907 ;
14908 return 0;
14909}
14910_ACEOF
14911rm -f conftest.$ac_objext
14912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14913 (eval $ac_compile) 2>conftest.er1
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
b4e70030
JB
14920 { ac_try='test -z "$ac_c_werror_flag"
14921 || test ! -s conftest.err'
4e8d927d
DJ
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try='test -s conftest.$ac_objext'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
b4e70030 14933 ac_cv_type_signal=void
4e8d927d
DJ
14934else
14935 echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
b4e70030 14938ac_cv_type_signal=int
4e8d927d 14939fi
4e8d927d
DJ
14940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14941fi
b4e70030
JB
14942echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14943echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
14944
14945cat >>confdefs.h <<_ACEOF
14946#define RETSIGTYPE $ac_cv_type_signal
14947_ACEOF
14948
14949
b4e70030
JB
14950echo "$as_me:$LINENO: checking for socklen_t" >&5
14951echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
14952if test "${ac_cv_type_socklen_t+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14954else
14955 cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961#include <sys/types.h>
14962#include <sys/socket.h>
14963
14964
4e8d927d
DJ
14965int
14966main ()
14967{
b4e70030 14968if ((socklen_t *) 0)
4e8d927d 14969 return 0;
b4e70030 14970if (sizeof (socklen_t))
4e8d927d
DJ
14971 return 0;
14972 ;
14973 return 0;
14974}
14975_ACEOF
14976rm -f conftest.$ac_objext
14977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978 (eval $ac_compile) 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
b4e70030
JB
14985 { ac_try='test -z "$ac_c_werror_flag"
14986 || test ! -s conftest.err'
4e8d927d
DJ
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest.$ac_objext'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 ac_cv_type_socklen_t=yes
14999else
15000 echo "$as_me: failed program was:" >&5
15001sed 's/^/| /' conftest.$ac_ext >&5
15002
b4e70030 15003ac_cv_type_socklen_t=no
4e8d927d 15004fi
4e8d927d
DJ
15005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15006fi
b4e70030
JB
15007echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15008echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
15009if test $ac_cv_type_socklen_t = yes; then
15010
15011cat >>confdefs.h <<_ACEOF
15012#define HAVE_SOCKLEN_T 1
15013_ACEOF
15014
15015
15016fi
15017
b4e70030
JB
15018echo "$as_me:$LINENO: checking for uintptr_t" >&5
15019echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
15020if test "${ac_cv_type_uintptr_t+set}" = set; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15022else
15023 cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h. */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h. */
15029#include <stdint.h>
15030
4e8d927d
DJ
15031int
15032main ()
15033{
b4e70030 15034if ((uintptr_t *) 0)
4e8d927d 15035 return 0;
b4e70030 15036if (sizeof (uintptr_t))
4e8d927d
DJ
15037 return 0;
15038 ;
15039 return 0;
15040}
15041_ACEOF
15042rm -f conftest.$ac_objext
15043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044 (eval $ac_compile) 2>conftest.er1
15045 ac_status=$?
15046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
b4e70030
JB
15051 { ac_try='test -z "$ac_c_werror_flag"
15052 || test ! -s conftest.err'
4e8d927d
DJ
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest.$ac_objext'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 ac_cv_type_uintptr_t=yes
15065else
15066 echo "$as_me: failed program was:" >&5
15067sed 's/^/| /' conftest.$ac_ext >&5
15068
b4e70030 15069ac_cv_type_uintptr_t=no
4e8d927d 15070fi
4e8d927d
DJ
15071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15072fi
b4e70030
JB
15073echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15074echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
15075if test $ac_cv_type_uintptr_t = yes; then
15076
15077cat >>confdefs.h <<_ACEOF
15078#define HAVE_UINTPTR_T 1
15079_ACEOF
15080
15081
15082fi
15083
15084
15085# ------------------------------------- #
15086# Checks for compiler characteristics. #
15087# ------------------------------------- #
15088
b4e70030
JB
15089echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15090echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
15091if test "${ac_cv_c_const+set}" = set; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15093else
15094 cat >conftest.$ac_ext <<_ACEOF
15095/* confdefs.h. */
15096_ACEOF
15097cat confdefs.h >>conftest.$ac_ext
15098cat >>conftest.$ac_ext <<_ACEOF
15099/* end confdefs.h. */
15100
15101int
15102main ()
15103{
15104/* FIXME: Include the comments suggested by Paul. */
15105#ifndef __cplusplus
15106 /* Ultrix mips cc rejects this. */
15107 typedef int charset[2];
15108 const charset x;
15109 /* SunOS 4.1.1 cc rejects this. */
15110 char const *const *ccp;
15111 char **p;
15112 /* NEC SVR4.0.2 mips cc rejects this. */
15113 struct point {int x, y;};
15114 static struct point const zero = {0,0};
15115 /* AIX XL C 1.02.0.0 rejects this.
15116 It does not let you subtract one const X* pointer from another in
15117 an arm of an if-expression whose if-part is not a constant
15118 expression */
15119 const char *g = "string";
15120 ccp = &g + (g ? g-g : 0);
15121 /* HPUX 7.0 cc rejects these. */
15122 ++ccp;
15123 p = (char**) ccp;
15124 ccp = (char const *const *) p;
15125 { /* SCO 3.2v4 cc rejects this. */
15126 char *t;
15127 char const *s = 0 ? (char *) 0 : (char const *) 0;
15128
15129 *t++ = 0;
4e8d927d
DJ
15130 }
15131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15132 int x[] = {25, 17};
15133 const int *foo = &x[0];
15134 ++foo;
15135 }
15136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15137 typedef const int *iptr;
15138 iptr p = 0;
15139 ++p;
15140 }
15141 { /* AIX XL C 1.02.0.0 rejects this saying
15142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15143 struct s { int j; const int *ap[3]; };
15144 struct s *b; b->j = 5;
15145 }
15146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15147 const int foo = 10;
4e8d927d 15148 }
4e8d927d
DJ
15149#endif
15150
15151 ;
15152 return 0;
15153}
15154_ACEOF
15155rm -f conftest.$ac_objext
15156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15157 (eval $ac_compile) 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
b4e70030
JB
15164 { ac_try='test -z "$ac_c_werror_flag"
15165 || test ! -s conftest.err'
4e8d927d
DJ
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; } &&
15171 { ac_try='test -s conftest.$ac_objext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_cv_c_const=yes
15178else
15179 echo "$as_me: failed program was:" >&5
15180sed 's/^/| /' conftest.$ac_ext >&5
15181
b4e70030 15182ac_cv_c_const=no
4e8d927d 15183fi
4e8d927d
DJ
15184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15185fi
b4e70030
JB
15186echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15187echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
15188if test $ac_cv_c_const = no; then
15189
15190cat >>confdefs.h <<\_ACEOF
15191#define const
15192_ACEOF
15193
15194fi
15195
b4e70030
JB
15196echo "$as_me:$LINENO: checking for inline" >&5
15197echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
15198if test "${ac_cv_c_inline+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200else
15201 ac_cv_c_inline=no
15202for ac_kw in inline __inline__ __inline; do
15203 cat >conftest.$ac_ext <<_ACEOF
15204/* confdefs.h. */
15205_ACEOF
15206cat confdefs.h >>conftest.$ac_ext
15207cat >>conftest.$ac_ext <<_ACEOF
15208/* end confdefs.h. */
15209#ifndef __cplusplus
15210typedef int foo_t;
15211static $ac_kw foo_t static_foo () {return 0; }
15212$ac_kw foo_t foo () {return 0; }
15213#endif
15214
15215_ACEOF
15216rm -f conftest.$ac_objext
15217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15218 (eval $ac_compile) 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
b4e70030
JB
15225 { ac_try='test -z "$ac_c_werror_flag"
15226 || test ! -s conftest.err'
4e8d927d
DJ
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; } &&
15232 { ac_try='test -s conftest.$ac_objext'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
b4e70030 15238 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
15239else
15240 echo "$as_me: failed program was:" >&5
15241sed 's/^/| /' conftest.$ac_ext >&5
15242
4e8d927d 15243fi
4e8d927d 15244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
15245done
15246
15247fi
b4e70030
JB
15248echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15249echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 15250
bec39cab 15251
a3828db0
MK
15252case $ac_cv_c_inline in
15253 inline | yes) ;;
15254 *)
15255 case $ac_cv_c_inline in
15256 no) ac_val=;;
15257 *) ac_val=$ac_cv_c_inline;;
15258 esac
15259 cat >>confdefs.h <<_ACEOF
15260#ifndef __cplusplus
15261#define inline $ac_val
15262#endif
15263_ACEOF
bec39cab
AC
15264 ;;
15265esac
bec39cab 15266
74c1b268 15267
a3828db0
MK
15268# ------------------------------ #
15269# Checks for library functions. #
15270# ------------------------------ #
bec39cab 15271
a3828db0
MK
15272# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15273# for constant arguments. Useless!
b4e70030
JB
15274echo "$as_me:$LINENO: checking for working alloca.h" >&5
15275echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 15276if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278else
15279 cat >conftest.$ac_ext <<_ACEOF
15280/* confdefs.h. */
15281_ACEOF
15282cat confdefs.h >>conftest.$ac_ext
15283cat >>conftest.$ac_ext <<_ACEOF
15284/* end confdefs.h. */
a3828db0 15285#include <alloca.h>
bec39cab
AC
15286int
15287main ()
15288{
a3828db0 15289char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
15290 ;
15291 return 0;
15292}
15293_ACEOF
15294rm -f conftest.$ac_objext conftest$ac_exeext
15295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15296 (eval $ac_link) 2>conftest.er1
15297 ac_status=$?
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
b4e70030
JB
15303 { ac_try='test -z "$ac_c_werror_flag"
15304 || test ! -s conftest.err'
bec39cab
AC
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; } &&
15310 { ac_try='test -s conftest$ac_exeext'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
a3828db0 15316 ac_cv_working_alloca_h=yes
bec39cab
AC
15317else
15318 echo "$as_me: failed program was:" >&5
15319sed 's/^/| /' conftest.$ac_ext >&5
15320
b4e70030 15321ac_cv_working_alloca_h=no
bec39cab
AC
15322fi
15323rm -f conftest.err conftest.$ac_objext \
15324 conftest$ac_exeext conftest.$ac_ext
15325fi
b4e70030
JB
15326echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15327echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
15328if test $ac_cv_working_alloca_h = yes; then
15329
15330cat >>confdefs.h <<\_ACEOF
15331#define HAVE_ALLOCA_H 1
bec39cab 15332_ACEOF
74c1b268 15333
74c1b268
AC
15334fi
15335
b4e70030
JB
15336echo "$as_me:$LINENO: checking for alloca" >&5
15337echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 15338if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 15339 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 15340else
bec39cab
AC
15341 cat >conftest.$ac_ext <<_ACEOF
15342/* confdefs.h. */
15343_ACEOF
15344cat confdefs.h >>conftest.$ac_ext
15345cat >>conftest.$ac_ext <<_ACEOF
15346/* end confdefs.h. */
a3828db0
MK
15347#ifdef __GNUC__
15348# define alloca __builtin_alloca
15349#else
15350# ifdef _MSC_VER
15351# include <malloc.h>
15352# define alloca _alloca
15353# else
15354# if HAVE_ALLOCA_H
15355# include <alloca.h>
15356# else
15357# ifdef _AIX
15358 #pragma alloca
15359# else
15360# ifndef alloca /* predefined by HP cc +Olibcalls */
15361char *alloca ();
15362# endif
15363# endif
15364# endif
97bf5e38 15365# endif
a3828db0 15366#endif
97bf5e38 15367
bec39cab
AC
15368int
15369main ()
15370{
a3828db0 15371char *p = (char *) alloca (1);
bec39cab
AC
15372 ;
15373 return 0;
15374}
15375_ACEOF
a3828db0
MK
15376rm -f conftest.$ac_objext conftest$ac_exeext
15377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
b4e70030
JB
15385 { ac_try='test -z "$ac_c_werror_flag"
15386 || test ! -s conftest.err'
bec39cab
AC
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
a3828db0 15392 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
a3828db0 15398 ac_cv_func_alloca_works=yes
0200359f 15399else
bec39cab
AC
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
0200359f 15402
b4e70030 15403ac_cv_func_alloca_works=no
0200359f 15404fi
a3828db0
MK
15405rm -f conftest.err conftest.$ac_objext \
15406 conftest$ac_exeext conftest.$ac_ext
72473524 15407fi
b4e70030
JB
15408echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15409echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 15410
a3828db0
MK
15411if test $ac_cv_func_alloca_works = yes; then
15412
15413cat >>confdefs.h <<\_ACEOF
15414#define HAVE_ALLOCA 1
bec39cab
AC
15415_ACEOF
15416
a3828db0
MK
15417else
15418 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15419# that cause trouble. Some versions do not even contain alloca or
15420# contain a buggy version. If you still want to use their alloca,
15421# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 15422
b4e70030 15423ALLOCA=alloca.$ac_objext
bec39cab 15424
a3828db0
MK
15425cat >>confdefs.h <<\_ACEOF
15426#define C_ALLOCA 1
15427_ACEOF
bec39cab 15428
a3828db0 15429
b4e70030
JB
15430echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15431echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 15432if test "${ac_cv_os_cray+set}" = set; then
bec39cab 15433 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15434else
a3828db0 15435 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
b4e70030 15441#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
15442webecray
15443#else
15444wenotbecray
15445#endif
15446
15447_ACEOF
15448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15449 $EGREP "webecray" >/dev/null 2>&1; then
15450 ac_cv_os_cray=yes
15451else
15452 ac_cv_os_cray=no
15453fi
15454rm -f conftest*
15455
15456fi
b4e70030
JB
15457echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15458echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
15459if test $ac_cv_os_cray = yes; then
15460 for ac_func in _getb67 GETB67 getb67; do
15461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15462echo "$as_me:$LINENO: checking for $ac_func" >&5
15463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15464if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466else
15467 cat >conftest.$ac_ext <<_ACEOF
15468/* confdefs.h. */
15469_ACEOF
15470cat confdefs.h >>conftest.$ac_ext
15471cat >>conftest.$ac_ext <<_ACEOF
15472/* end confdefs.h. */
15473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15475#define $ac_func innocuous_$ac_func
15476
15477/* System header to define __stub macros and hopefully few prototypes,
15478 which can conflict with char $ac_func (); below.
15479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15480 <limits.h> exists even on freestanding compilers. */
15481
15482#ifdef __STDC__
15483# include <limits.h>
15484#else
15485# include <assert.h>
15486#endif
15487
15488#undef $ac_func
15489
b4e70030 15490/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
15491#ifdef __cplusplus
15492extern "C"
b4e70030 15493{
a3828db0 15494#endif
b4e70030
JB
15495/* We use char because int might match the return type of a gcc2
15496 builtin and then its argument prototype would still apply. */
a3828db0
MK
15497char $ac_func ();
15498/* The GNU C library defines this for functions which it implements
15499 to always fail with ENOSYS. Some functions are actually named
15500 something starting with __ and the normal name is an alias. */
b4e70030 15501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 15502choke me
b4e70030
JB
15503#else
15504char (*f) () = $ac_func;
15505#endif
15506#ifdef __cplusplus
15507}
a3828db0
MK
15508#endif
15509
15510int
15511main ()
15512{
b4e70030 15513return f != $ac_func;
a3828db0
MK
15514 ;
15515 return 0;
15516}
15517_ACEOF
15518rm -f conftest.$ac_objext conftest$ac_exeext
15519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15520 (eval $ac_link) 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } &&
b4e70030
JB
15527 { ac_try='test -z "$ac_c_werror_flag"
15528 || test ! -s conftest.err'
a3828db0
MK
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; } &&
15534 { ac_try='test -s conftest$ac_exeext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 eval "$as_ac_var=yes"
15541else
15542 echo "$as_me: failed program was:" >&5
15543sed 's/^/| /' conftest.$ac_ext >&5
15544
b4e70030 15545eval "$as_ac_var=no"
a3828db0
MK
15546fi
15547rm -f conftest.err conftest.$ac_objext \
15548 conftest$ac_exeext conftest.$ac_ext
15549fi
b4e70030
JB
15550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
15552if test `eval echo '${'$as_ac_var'}'` = yes; then
15553
15554cat >>confdefs.h <<_ACEOF
15555#define CRAY_STACKSEG_END $ac_func
15556_ACEOF
15557
15558 break
15559fi
15560
15561 done
15562fi
15563
b4e70030
JB
15564echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15565echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
15566if test "${ac_cv_c_stack_direction+set}" = set; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15568else
15569 if test "$cross_compiling" = yes; then
15570 ac_cv_c_stack_direction=0
15571else
15572 cat >conftest.$ac_ext <<_ACEOF
15573/* confdefs.h. */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h. */
15578int
15579find_stack_direction ()
15580{
15581 static char *addr = 0;
15582 auto char dummy;
15583 if (addr == 0)
15584 {
15585 addr = &dummy;
15586 return find_stack_direction ();
15587 }
15588 else
15589 return (&dummy > addr) ? 1 : -1;
15590}
15591
15592int
15593main ()
15594{
b4e70030 15595 exit (find_stack_direction () < 0);
a3828db0
MK
15596}
15597_ACEOF
15598rm -f conftest$ac_exeext
15599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15600 (eval $ac_link) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_c_stack_direction=1
15610else
15611 echo "$as_me: program exited with status $ac_status" >&5
15612echo "$as_me: failed program was:" >&5
15613sed 's/^/| /' conftest.$ac_ext >&5
15614
15615( exit $ac_status )
15616ac_cv_c_stack_direction=-1
15617fi
b4e70030 15618rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
15619fi
15620fi
b4e70030
JB
15621echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15622echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
15623
15624cat >>confdefs.h <<_ACEOF
15625#define STACK_DIRECTION $ac_cv_c_stack_direction
15626_ACEOF
15627
15628
15629fi
15630
15631
15632
15633for ac_header in stdlib.h unistd.h
15634do
15635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15636if eval "test \"\${$as_ac_Header+set}\" = set"; then
15637 echo "$as_me:$LINENO: checking for $ac_header" >&5
15638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15639if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15641fi
b4e70030
JB
15642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
15644else
15645 # Is the header compilable?
b4e70030
JB
15646echo "$as_me:$LINENO: checking $ac_header usability" >&5
15647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
15648cat >conftest.$ac_ext <<_ACEOF
15649/* confdefs.h. */
15650_ACEOF
15651cat confdefs.h >>conftest.$ac_ext
15652cat >>conftest.$ac_ext <<_ACEOF
15653/* end confdefs.h. */
15654$ac_includes_default
15655#include <$ac_header>
15656_ACEOF
15657rm -f conftest.$ac_objext
15658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659 (eval $ac_compile) 2>conftest.er1
15660 ac_status=$?
bec39cab
AC
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
b4e70030
JB
15666 { ac_try='test -z "$ac_c_werror_flag"
15667 || test ! -s conftest.err'
bec39cab
AC
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest.$ac_objext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_header_compiler=yes
15680else
15681 echo "$as_me: failed program was:" >&5
15682sed 's/^/| /' conftest.$ac_ext >&5
15683
b4e70030 15684ac_header_compiler=no
bec39cab
AC
15685fi
15686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15688echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15689
15690# Is the header present?
b4e70030
JB
15691echo "$as_me:$LINENO: checking $ac_header presence" >&5
15692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15693cat >conftest.$ac_ext <<_ACEOF
15694/* confdefs.h. */
15695_ACEOF
15696cat confdefs.h >>conftest.$ac_ext
15697cat >>conftest.$ac_ext <<_ACEOF
15698/* end confdefs.h. */
15699#include <$ac_header>
15700_ACEOF
15701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } >/dev/null; then
15709 if test -s conftest.err; then
15710 ac_cpp_err=$ac_c_preproc_warn_flag
15711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15712 else
15713 ac_cpp_err=
15714 fi
15715else
15716 ac_cpp_err=yes
15717fi
15718if test -z "$ac_cpp_err"; then
15719 ac_header_preproc=yes
97bf5e38 15720else
bec39cab
AC
15721 echo "$as_me: failed program was:" >&5
15722sed 's/^/| /' conftest.$ac_ext >&5
15723
15724 ac_header_preproc=no
72473524 15725fi
bec39cab 15726rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 15729
bec39cab
AC
15730# So? What about this header?
15731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15732 yes:no: )
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737 ac_header_preproc=yes
15738 ;;
15739 no:yes:* )
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15752 (
15753 cat <<\_ASBOX
15754## ------------------------------------------ ##
15755## Report this to the AC_PACKAGE_NAME lists. ##
15756## ------------------------------------------ ##
15757_ASBOX
15758 ) |
15759 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15760 ;;
15761esac
b4e70030
JB
15762echo "$as_me:$LINENO: checking for $ac_header" >&5
15763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15764if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15765 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15766else
bec39cab
AC
15767 eval "$as_ac_Header=\$ac_header_preproc"
15768fi
b4e70030
JB
15769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15771
15772fi
15773if test `eval echo '${'$as_ac_Header'}'` = yes; then
15774 cat >>confdefs.h <<_ACEOF
15775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15776_ACEOF
15777
15778fi
15779
15780done
15781
15782
a3828db0 15783for ac_func in getpagesize
bec39cab
AC
15784do
15785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15786echo "$as_me:$LINENO: checking for $ac_func" >&5
15787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15788if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790else
15791 cat >conftest.$ac_ext <<_ACEOF
15792/* confdefs.h. */
15793_ACEOF
15794cat confdefs.h >>conftest.$ac_ext
15795cat >>conftest.$ac_ext <<_ACEOF
15796/* end confdefs.h. */
15797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15799#define $ac_func innocuous_$ac_func
15800
97bf5e38 15801/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15802 which can conflict with char $ac_func (); below.
15803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15804 <limits.h> exists even on freestanding compilers. */
2b2d558c 15805
bec39cab
AC
15806#ifdef __STDC__
15807# include <limits.h>
15808#else
15809# include <assert.h>
15810#endif
97bf5e38 15811
bec39cab
AC
15812#undef $ac_func
15813
b4e70030 15814/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
15815#ifdef __cplusplus
15816extern "C"
b4e70030 15817{
bec39cab 15818#endif
b4e70030
JB
15819/* We use char because int might match the return type of a gcc2
15820 builtin and then its argument prototype would still apply. */
bec39cab 15821char $ac_func ();
97bf5e38
MK
15822/* The GNU C library defines this for functions which it implements
15823 to always fail with ENOSYS. Some functions are actually named
15824 something starting with __ and the normal name is an alias. */
b4e70030 15825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 15826choke me
b4e70030
JB
15827#else
15828char (*f) () = $ac_func;
15829#endif
15830#ifdef __cplusplus
15831}
97bf5e38
MK
15832#endif
15833
bec39cab
AC
15834int
15835main ()
15836{
b4e70030 15837return f != $ac_func;
bec39cab
AC
15838 ;
15839 return 0;
15840}
15841_ACEOF
15842rm -f conftest.$ac_objext conftest$ac_exeext
15843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15844 (eval $ac_link) 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
b4e70030
JB
15851 { ac_try='test -z "$ac_c_werror_flag"
15852 || test ! -s conftest.err'
bec39cab
AC
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try='test -s conftest$ac_exeext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 eval "$as_ac_var=yes"
15865else
15866 echo "$as_me: failed program was:" >&5
15867sed 's/^/| /' conftest.$ac_ext >&5
15868
b4e70030 15869eval "$as_ac_var=no"
bec39cab
AC
15870fi
15871rm -f conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15873fi
b4e70030
JB
15874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15875echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
15876if test `eval echo '${'$as_ac_var'}'` = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15879_ACEOF
15880
2b2d558c 15881fi
bec39cab 15882done
2b2d558c 15883
b4e70030
JB
15884echo "$as_me:$LINENO: checking for working mmap" >&5
15885echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 15886if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 15887 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15888else
bec39cab 15889 if test "$cross_compiling" = yes; then
a3828db0 15890 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
15891else
15892 cat >conftest.$ac_ext <<_ACEOF
a3828db0 15893/* confdefs.h. */
bec39cab
AC
15894_ACEOF
15895cat confdefs.h >>conftest.$ac_ext
15896cat >>conftest.$ac_ext <<_ACEOF
15897/* end confdefs.h. */
a3828db0
MK
15898$ac_includes_default
15899/* malloc might have been renamed as rpl_malloc. */
15900#undef malloc
bec39cab 15901
a3828db0
MK
15902/* Thanks to Mike Haertel and Jim Avera for this test.
15903 Here is a matrix of mmap possibilities:
15904 mmap private not fixed
15905 mmap private fixed at somewhere currently unmapped
15906 mmap private fixed at somewhere already mapped
15907 mmap shared not fixed
15908 mmap shared fixed at somewhere currently unmapped
15909 mmap shared fixed at somewhere already mapped
15910 For private mappings, we should verify that changes cannot be read()
15911 back from the file, nor mmap's back from the file at a different
15912 address. (There have been systems where private was not correctly
15913 implemented like the infamous i386 svr4.0, and systems where the
15914 VM page cache was not coherent with the file system buffer cache
15915 like early versions of FreeBSD and possibly contemporary NetBSD.)
15916 For shared mappings, we should conversely verify that changes get
15917 propagated back to all the places they're supposed to be.
7dfa765c 15918
a3828db0
MK
15919 Grep wants private fixed already mapped.
15920 The main things grep needs to know about mmap are:
15921 * does it exist and is it safe to write into the mmap'd area
15922 * how to use it (BSD variants) */
7dfa765c 15923
a3828db0
MK
15924#include <fcntl.h>
15925#include <sys/mman.h>
7dfa765c 15926
a3828db0
MK
15927#if !STDC_HEADERS && !HAVE_STDLIB_H
15928char *malloc ();
15929#endif
7dfa765c 15930
a3828db0
MK
15931/* This mess was copied from the GNU getpagesize.h. */
15932#if !HAVE_GETPAGESIZE
15933/* Assume that all systems that can run configure have sys/param.h. */
15934# if !HAVE_SYS_PARAM_H
15935# define HAVE_SYS_PARAM_H 1
15936# endif
64bb1671 15937
a3828db0
MK
15938# ifdef _SC_PAGESIZE
15939# define getpagesize() sysconf(_SC_PAGESIZE)
15940# else /* no _SC_PAGESIZE */
15941# if HAVE_SYS_PARAM_H
15942# include <sys/param.h>
15943# ifdef EXEC_PAGESIZE
15944# define getpagesize() EXEC_PAGESIZE
15945# else /* no EXEC_PAGESIZE */
15946# ifdef NBPG
15947# define getpagesize() NBPG * CLSIZE
15948# ifndef CLSIZE
15949# define CLSIZE 1
15950# endif /* no CLSIZE */
15951# else /* no NBPG */
15952# ifdef NBPC
15953# define getpagesize() NBPC
15954# else /* no NBPC */
15955# ifdef PAGESIZE
15956# define getpagesize() PAGESIZE
15957# endif /* PAGESIZE */
15958# endif /* no NBPC */
15959# endif /* no NBPG */
15960# endif /* no EXEC_PAGESIZE */
15961# else /* no HAVE_SYS_PARAM_H */
15962# define getpagesize() 8192 /* punt totally */
15963# endif /* no HAVE_SYS_PARAM_H */
15964# endif /* no _SC_PAGESIZE */
64bb1671 15965
a3828db0 15966#endif /* no HAVE_GETPAGESIZE */
64bb1671 15967
a3828db0
MK
15968int
15969main ()
15970{
15971 char *data, *data2, *data3;
15972 int i, pagesize;
15973 int fd;
97bf5e38 15974
a3828db0
MK
15975 pagesize = getpagesize ();
15976
15977 /* First, make a file with some known garbage in it. */
15978 data = (char *) malloc (pagesize);
15979 if (!data)
b4e70030 15980 exit (1);
a3828db0
MK
15981 for (i = 0; i < pagesize; ++i)
15982 *(data + i) = rand ();
15983 umask (0);
15984 fd = creat ("conftest.mmap", 0600);
15985 if (fd < 0)
b4e70030 15986 exit (1);
a3828db0 15987 if (write (fd, data, pagesize) != pagesize)
b4e70030 15988 exit (1);
a3828db0
MK
15989 close (fd);
15990
15991 /* Next, try to mmap the file at a fixed address which already has
15992 something else allocated at it. If we can, also make sure that
15993 we see the same garbage. */
15994 fd = open ("conftest.mmap", O_RDWR);
15995 if (fd < 0)
b4e70030 15996 exit (1);
a3828db0
MK
15997 data2 = (char *) malloc (2 * pagesize);
15998 if (!data2)
b4e70030
JB
15999 exit (1);
16000 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
16001 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16002 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 16003 exit (1);
a3828db0
MK
16004 for (i = 0; i < pagesize; ++i)
16005 if (*(data + i) != *(data2 + i))
b4e70030 16006 exit (1);
a3828db0
MK
16007
16008 /* Finally, make sure that changes to the mapped area do not
16009 percolate back to the file as seen by read(). (This is a bug on
16010 some variants of i386 svr4.0.) */
16011 for (i = 0; i < pagesize; ++i)
16012 *(data2 + i) = *(data2 + i) + 1;
16013 data3 = (char *) malloc (pagesize);
16014 if (!data3)
b4e70030 16015 exit (1);
a3828db0 16016 if (read (fd, data3, pagesize) != pagesize)
b4e70030 16017 exit (1);
a3828db0
MK
16018 for (i = 0; i < pagesize; ++i)
16019 if (*(data + i) != *(data3 + i))
b4e70030 16020 exit (1);
a3828db0 16021 close (fd);
b4e70030 16022 exit (0);
97bf5e38 16023}
bec39cab
AC
16024_ACEOF
16025rm -f conftest$ac_exeext
16026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16027 (eval $ac_link) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16033 ac_status=$?
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; }; then
a3828db0 16036 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 16037else
bec39cab
AC
16038 echo "$as_me: program exited with status $ac_status" >&5
16039echo "$as_me: failed program was:" >&5
16040sed 's/^/| /' conftest.$ac_ext >&5
16041
16042( exit $ac_status )
a3828db0 16043ac_cv_func_mmap_fixed_mapped=no
0afdd437 16044fi
b4e70030 16045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 16046fi
a3828db0 16047fi
b4e70030
JB
16048echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16049echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 16050if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
16051
16052cat >>confdefs.h <<\_ACEOF
a3828db0 16053#define HAVE_MMAP 1
bec39cab 16054_ACEOF
0afdd437
MK
16055
16056fi
a3828db0 16057rm -f conftest.mmap
0afdd437 16058
b4e70030
JB
16059echo "$as_me:$LINENO: checking for pid_t" >&5
16060echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 16061if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063else
16064 cat >conftest.$ac_ext <<_ACEOF
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
a3828db0 16070$ac_includes_default
bec39cab
AC
16071int
16072main ()
16073{
b4e70030 16074if ((pid_t *) 0)
a3828db0 16075 return 0;
b4e70030 16076if (sizeof (pid_t))
a3828db0 16077 return 0;
bec39cab
AC
16078 ;
16079 return 0;
16080}
16081_ACEOF
a3828db0
MK
16082rm -f conftest.$ac_objext
16083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16084 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16085 ac_status=$?
16086 grep -v '^ *+' conftest.er1 >conftest.err
16087 rm -f conftest.er1
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
b4e70030
JB
16091 { ac_try='test -z "$ac_c_werror_flag"
16092 || test ! -s conftest.err'
bec39cab
AC
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
a3828db0 16098 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
a3828db0 16104 ac_cv_type_pid_t=yes
bec39cab
AC
16105else
16106 echo "$as_me: failed program was:" >&5
16107sed 's/^/| /' conftest.$ac_ext >&5
16108
b4e70030 16109ac_cv_type_pid_t=no
bec39cab 16110fi
a3828db0 16111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 16112fi
b4e70030
JB
16113echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16114echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
16115if test $ac_cv_type_pid_t = yes; then
16116 :
16117else
16118
16119cat >>confdefs.h <<_ACEOF
16120#define pid_t int
bec39cab 16121_ACEOF
7e89e357 16122
7e89e357
JT
16123fi
16124
bec39cab 16125
b4e70030
JB
16126
16127for ac_header in unistd.h vfork.h
7be570e7 16128do
a3828db0 16129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16130if eval "test \"\${$as_ac_Header+set}\" = set"; then
16131 echo "$as_me:$LINENO: checking for $ac_header" >&5
16132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16133if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16134 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 16135fi
b4e70030
JB
16136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 16138else
a3828db0 16139 # Is the header compilable?
b4e70030
JB
16140echo "$as_me:$LINENO: checking $ac_header usability" >&5
16141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 16142cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16143/* confdefs.h. */
16144_ACEOF
16145cat confdefs.h >>conftest.$ac_ext
16146cat >>conftest.$ac_ext <<_ACEOF
16147/* end confdefs.h. */
a3828db0
MK
16148$ac_includes_default
16149#include <$ac_header>
bec39cab 16150_ACEOF
a3828db0
MK
16151rm -f conftest.$ac_objext
16152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16153 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16154 ac_status=$?
16155 grep -v '^ *+' conftest.er1 >conftest.err
16156 rm -f conftest.er1
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
b4e70030
JB
16160 { ac_try='test -z "$ac_c_werror_flag"
16161 || test ! -s conftest.err'
bec39cab
AC
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; } &&
a3828db0 16167 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
a3828db0 16173 ac_header_compiler=yes
bec39cab
AC
16174else
16175 echo "$as_me: failed program was:" >&5
16176sed 's/^/| /' conftest.$ac_ext >&5
16177
b4e70030 16178ac_header_compiler=no
bec39cab 16179fi
a3828db0 16180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16182echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
16183
16184# Is the header present?
b4e70030
JB
16185echo "$as_me:$LINENO: checking $ac_header presence" >&5
16186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
16187cat >conftest.$ac_ext <<_ACEOF
16188/* confdefs.h. */
16189_ACEOF
16190cat confdefs.h >>conftest.$ac_ext
16191cat >>conftest.$ac_ext <<_ACEOF
16192/* end confdefs.h. */
16193#include <$ac_header>
16194_ACEOF
16195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } >/dev/null; then
16203 if test -s conftest.err; then
16204 ac_cpp_err=$ac_c_preproc_warn_flag
16205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16206 else
16207 ac_cpp_err=
16208 fi
16209else
16210 ac_cpp_err=yes
16211fi
16212if test -z "$ac_cpp_err"; then
16213 ac_header_preproc=yes
16214else
16215 echo "$as_me: failed program was:" >&5
16216sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 ac_header_preproc=no
16219fi
16220rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16222echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
16223
16224# So? What about this header?
16225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16226 yes:no: )
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16231 ac_header_preproc=yes
16232 ;;
16233 no:yes:* )
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16246 (
16247 cat <<\_ASBOX
16248## ------------------------------------------ ##
16249## Report this to the AC_PACKAGE_NAME lists. ##
16250## ------------------------------------------ ##
16251_ASBOX
16252 ) |
16253 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
16254 ;;
16255esac
b4e70030
JB
16256echo "$as_me:$LINENO: checking for $ac_header" >&5
16257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16258if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260else
16261 eval "$as_ac_Header=\$ac_header_preproc"
16262fi
b4e70030
JB
16263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 16265
bec39cab 16266fi
a3828db0 16267if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 16268 cat >>confdefs.h <<_ACEOF
a3828db0 16269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 16270_ACEOF
14abd0fb 16271
14abd0fb 16272fi
a3828db0 16273
14abd0fb
MK
16274done
16275
bec39cab 16276
a3828db0
MK
16277
16278for ac_func in fork vfork
14abd0fb 16279do
bec39cab 16280as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16281echo "$as_me:$LINENO: checking for $ac_func" >&5
16282echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16283if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285else
16286 cat >conftest.$ac_ext <<_ACEOF
16287/* confdefs.h. */
16288_ACEOF
16289cat confdefs.h >>conftest.$ac_ext
16290cat >>conftest.$ac_ext <<_ACEOF
16291/* end confdefs.h. */
16292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16294#define $ac_func innocuous_$ac_func
16295
14abd0fb 16296/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16297 which can conflict with char $ac_func (); below.
16298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16299 <limits.h> exists even on freestanding compilers. */
16300
16301#ifdef __STDC__
16302# include <limits.h>
16303#else
16304# include <assert.h>
16305#endif
14abd0fb 16306
bec39cab 16307#undef $ac_func
14abd0fb 16308
b4e70030 16309/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16310#ifdef __cplusplus
16311extern "C"
b4e70030 16312{
bec39cab 16313#endif
b4e70030
JB
16314/* We use char because int might match the return type of a gcc2
16315 builtin and then its argument prototype would still apply. */
bec39cab 16316char $ac_func ();
14abd0fb
MK
16317/* The GNU C library defines this for functions which it implements
16318 to always fail with ENOSYS. Some functions are actually named
16319 something starting with __ and the normal name is an alias. */
b4e70030 16320#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 16321choke me
b4e70030
JB
16322#else
16323char (*f) () = $ac_func;
16324#endif
16325#ifdef __cplusplus
16326}
14abd0fb
MK
16327#endif
16328
bec39cab
AC
16329int
16330main ()
16331{
b4e70030 16332return f != $ac_func;
bec39cab
AC
16333 ;
16334 return 0;
16335}
16336_ACEOF
16337rm -f conftest.$ac_objext conftest$ac_exeext
16338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>conftest.er1
16340 ac_status=$?
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
b4e70030
JB
16346 { ac_try='test -z "$ac_c_werror_flag"
16347 || test ! -s conftest.err'
bec39cab
AC
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest$ac_exeext'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16359 eval "$as_ac_var=yes"
16360else
16361 echo "$as_me: failed program was:" >&5
16362sed 's/^/| /' conftest.$ac_ext >&5
16363
b4e70030 16364eval "$as_ac_var=no"
bec39cab
AC
16365fi
16366rm -f conftest.err conftest.$ac_objext \
16367 conftest$ac_exeext conftest.$ac_ext
16368fi
b4e70030
JB
16369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16370echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16371if test `eval echo '${'$as_ac_var'}'` = yes; then
16372 cat >>confdefs.h <<_ACEOF
16373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16374_ACEOF
7be570e7 16375
7be570e7
JM
16376fi
16377done
16378
a3828db0 16379if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
16380 echo "$as_me:$LINENO: checking for working fork" >&5
16381echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
16382if test "${ac_cv_func_fork_works+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16384else
16385 if test "$cross_compiling" = yes; then
16386 ac_cv_func_fork_works=cross
16387else
16388 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
16389/* By Ruediger Kuhlmann. */
16390 #include <sys/types.h>
16391 #if HAVE_UNISTD_H
16392 # include <unistd.h>
16393 #endif
16394 /* Some systems only have a dummy stub for fork() */
16395 int main ()
16396 {
16397 if (fork() < 0)
16398 exit (1);
16399 exit (0);
16400 }
a3828db0
MK
16401_ACEOF
16402rm -f conftest$ac_exeext
16403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16404 (eval $ac_link) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_cv_func_fork_works=yes
16414else
16415 echo "$as_me: program exited with status $ac_status" >&5
16416echo "$as_me: failed program was:" >&5
16417sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16418
a3828db0
MK
16419( exit $ac_status )
16420ac_cv_func_fork_works=no
16421fi
b4e70030 16422rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16423fi
16424fi
b4e70030
JB
16425echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16426echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
16427
16428else
16429 ac_cv_func_fork_works=$ac_cv_func_fork
16430fi
16431if test "x$ac_cv_func_fork_works" = xcross; then
16432 case $host in
16433 *-*-amigaos* | *-*-msdosdjgpp*)
16434 # Override, as these systems have only a dummy fork() stub
16435 ac_cv_func_fork_works=no
16436 ;;
16437 *)
16438 ac_cv_func_fork_works=yes
16439 ;;
16440 esac
16441 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16442echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16443fi
16444ac_cv_func_vfork_works=$ac_cv_func_vfork
16445if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
16446 echo "$as_me:$LINENO: checking for working vfork" >&5
16447echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 16448if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 16449 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16450else
16451 if test "$cross_compiling" = yes; then
16452 ac_cv_func_vfork_works=cross
bec39cab
AC
16453else
16454 cat >conftest.$ac_ext <<_ACEOF
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
a3828db0 16460/* Thanks to Paul Eggert for this test. */
b4e70030
JB
16461#include <stdio.h>
16462#include <stdlib.h>
16463#include <sys/types.h>
16464#include <sys/stat.h>
a3828db0 16465#include <sys/wait.h>
b4e70030
JB
16466#if HAVE_UNISTD_H
16467# include <unistd.h>
16468#endif
a3828db0
MK
16469#if HAVE_VFORK_H
16470# include <vfork.h>
bec39cab 16471#endif
a3828db0
MK
16472/* On some sparc systems, changes by the child to local and incoming
16473 argument registers are propagated back to the parent. The compiler
16474 is told about this with #include <vfork.h>, but some compilers
16475 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16476 static variable whose address is put into a register that is
16477 clobbered by the vfork. */
16478static void
bec39cab 16479#ifdef __cplusplus
a3828db0
MK
16480sparc_address_test (int arg)
16481# else
16482sparc_address_test (arg) int arg;
c906108c 16483#endif
a3828db0
MK
16484{
16485 static pid_t child;
16486 if (!child) {
16487 child = vfork ();
16488 if (child < 0) {
16489 perror ("vfork");
16490 _exit(2);
16491 }
16492 if (!child) {
16493 arg = getpid();
16494 write(-1, "", 0);
16495 _exit (arg);
16496 }
16497 }
16498}
97bf5e38 16499
bec39cab
AC
16500int
16501main ()
16502{
a3828db0
MK
16503 pid_t parent = getpid ();
16504 pid_t child;
16505
16506 sparc_address_test (0);
16507
16508 child = vfork ();
16509
16510 if (child == 0) {
16511 /* Here is another test for sparc vfork register problems. This
16512 test uses lots of local variables, at least as many local
16513 variables as main has allocated so far including compiler
16514 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16515 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16516 reuse the register of parent for one of the local variables,
16517 since it will think that parent can't possibly be used any more
16518 in this routine. Assigning to the local variable will thus
16519 munge parent in the parent process. */
16520 pid_t
16521 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16522 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16523 /* Convince the compiler that p..p7 are live; otherwise, it might
16524 use the same hardware register for all 8 local variables. */
16525 if (p != p1 || p != p2 || p != p3 || p != p4
16526 || p != p5 || p != p6 || p != p7)
16527 _exit(1);
16528
16529 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16530 from child file descriptors. If the child closes a descriptor
16531 before it execs or exits, this munges the parent's descriptor
16532 as well. Test for this by closing stdout in the child. */
16533 _exit(close(fileno(stdout)) != 0);
16534 } else {
16535 int status;
16536 struct stat st;
16537
16538 while (wait(&status) != child)
16539 ;
b4e70030 16540 exit(
a3828db0
MK
16541 /* Was there some problem with vforking? */
16542 child < 0
16543
16544 /* Did the child fail? (This shouldn't happen.) */
16545 || status
16546
16547 /* Did the vfork/compiler bug occur? */
16548 || parent != getpid()
16549
16550 /* Did the file descriptor bug occur? */
16551 || fstat(fileno(stdout), &st) != 0
16552 );
16553 }
bec39cab
AC
16554}
16555_ACEOF
a3828db0 16556rm -f conftest$ac_exeext
bec39cab 16557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16558 (eval $ac_link) 2>&5
bec39cab
AC
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
a3828db0
MK
16567 ac_cv_func_vfork_works=yes
16568else
16569 echo "$as_me: program exited with status $ac_status" >&5
16570echo "$as_me: failed program was:" >&5
16571sed 's/^/| /' conftest.$ac_ext >&5
16572
16573( exit $ac_status )
16574ac_cv_func_vfork_works=no
16575fi
b4e70030 16576rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16577fi
16578fi
b4e70030
JB
16579echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16580echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
16581
16582fi;
16583if test "x$ac_cv_func_fork_works" = xcross; then
16584 ac_cv_func_vfork_works=$ac_cv_func_vfork
16585 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16586echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16587fi
16588
16589if test "x$ac_cv_func_vfork_works" = xyes; then
16590
16591cat >>confdefs.h <<\_ACEOF
16592#define HAVE_WORKING_VFORK 1
16593_ACEOF
16594
bec39cab 16595else
bec39cab 16596
a3828db0
MK
16597cat >>confdefs.h <<\_ACEOF
16598#define vfork fork
16599_ACEOF
16600
bec39cab 16601fi
a3828db0
MK
16602if test "x$ac_cv_func_fork_works" = xyes; then
16603
16604cat >>confdefs.h <<\_ACEOF
16605#define HAVE_WORKING_FORK 1
bec39cab 16606_ACEOF
c906108c 16607
c906108c
SS
16608fi
16609
bec39cab
AC
16610
16611
a3828db0 16612for ac_func in canonicalize_file_name realpath
97bf5e38 16613do
bec39cab 16614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 16615echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
16616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16617if eval "test \"\${$as_ac_var+set}\" = set"; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619else
16620 cat >conftest.$ac_ext <<_ACEOF
16621/* confdefs.h. */
16622_ACEOF
16623cat confdefs.h >>conftest.$ac_ext
16624cat >>conftest.$ac_ext <<_ACEOF
16625/* end confdefs.h. */
16626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16628#define $ac_func innocuous_$ac_func
16629
16630/* System header to define __stub macros and hopefully few prototypes,
16631 which can conflict with char $ac_func (); below.
16632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16633 <limits.h> exists even on freestanding compilers. */
16634
16635#ifdef __STDC__
16636# include <limits.h>
16637#else
16638# include <assert.h>
16639#endif
16640
16641#undef $ac_func
16642
16643/* Override any gcc2 internal prototype to avoid an error. */
16644#ifdef __cplusplus
16645extern "C"
16646{
16647#endif
16648/* We use char because int might match the return type of a gcc2
16649 builtin and then its argument prototype would still apply. */
16650char $ac_func ();
16651/* The GNU C library defines this for functions which it implements
16652 to always fail with ENOSYS. Some functions are actually named
16653 something starting with __ and the normal name is an alias. */
16654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16655choke me
16656#else
16657char (*f) () = $ac_func;
16658#endif
16659#ifdef __cplusplus
16660}
16661#endif
16662
16663int
16664main ()
16665{
16666return f != $ac_func;
16667 ;
16668 return 0;
16669}
16670_ACEOF
16671rm -f conftest.$ac_objext conftest$ac_exeext
16672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16673 (eval $ac_link) 2>conftest.er1
16674 ac_status=$?
16675 grep -v '^ *+' conftest.er1 >conftest.err
16676 rm -f conftest.er1
16677 cat conftest.err >&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -z "$ac_c_werror_flag"
16681 || test ! -s conftest.err'
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; } &&
16687 { ac_try='test -s conftest$ac_exeext'
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
16693 eval "$as_ac_var=yes"
16694else
16695 echo "$as_me: failed program was:" >&5
16696sed 's/^/| /' conftest.$ac_ext >&5
16697
16698eval "$as_ac_var=no"
16699fi
16700rm -f conftest.err conftest.$ac_objext \
16701 conftest$ac_exeext conftest.$ac_ext
16702fi
16703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16705if test `eval echo '${'$as_ac_var'}'` = yes; then
16706 cat >>confdefs.h <<_ACEOF
16707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16708_ACEOF
16709
16710fi
16711done
16712
16713
16714for ac_func in getrusage
16715do
16716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16717echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
16718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16719if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16721else
16722 cat >conftest.$ac_ext <<_ACEOF
16723/* confdefs.h. */
16724_ACEOF
16725cat confdefs.h >>conftest.$ac_ext
16726cat >>conftest.$ac_ext <<_ACEOF
16727/* end confdefs.h. */
16728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16730#define $ac_func innocuous_$ac_func
16731
d3ea6809
MM
16732/* System header to define __stub macros and hopefully few prototypes,
16733 which can conflict with char $ac_func (); below.
16734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16735 <limits.h> exists even on freestanding compilers. */
16736
16737#ifdef __STDC__
16738# include <limits.h>
16739#else
16740# include <assert.h>
16741#endif
16742
16743#undef $ac_func
16744
b4e70030 16745/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
16746#ifdef __cplusplus
16747extern "C"
b4e70030 16748{
d3ea6809 16749#endif
b4e70030
JB
16750/* We use char because int might match the return type of a gcc2
16751 builtin and then its argument prototype would still apply. */
d3ea6809
MM
16752char $ac_func ();
16753/* The GNU C library defines this for functions which it implements
16754 to always fail with ENOSYS. Some functions are actually named
16755 something starting with __ and the normal name is an alias. */
b4e70030 16756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 16757choke me
b4e70030
JB
16758#else
16759char (*f) () = $ac_func;
16760#endif
16761#ifdef __cplusplus
16762}
d3ea6809
MM
16763#endif
16764
16765int
16766main ()
16767{
b4e70030 16768return f != $ac_func;
d3ea6809
MM
16769 ;
16770 return 0;
16771}
16772_ACEOF
16773rm -f conftest.$ac_objext conftest$ac_exeext
16774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16775 (eval $ac_link) 2>conftest.er1
16776 ac_status=$?
16777 grep -v '^ *+' conftest.er1 >conftest.err
16778 rm -f conftest.er1
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
b4e70030
JB
16782 { ac_try='test -z "$ac_c_werror_flag"
16783 || test ! -s conftest.err'
d3ea6809
MM
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; } &&
16789 { ac_try='test -s conftest$ac_exeext'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; }; then
16795 eval "$as_ac_var=yes"
16796else
16797 echo "$as_me: failed program was:" >&5
16798sed 's/^/| /' conftest.$ac_ext >&5
16799
b4e70030 16800eval "$as_ac_var=no"
d3ea6809
MM
16801fi
16802rm -f conftest.err conftest.$ac_objext \
16803 conftest$ac_exeext conftest.$ac_ext
16804fi
b4e70030
JB
16805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
16807if test `eval echo '${'$as_ac_var'}'` = yes; then
16808 cat >>confdefs.h <<_ACEOF
16809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16810_ACEOF
16811
16812fi
16813done
16814
16815
16816
16817for ac_func in getuid getgid
16818do
16819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16820echo "$as_me:$LINENO: checking for $ac_func" >&5
16821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16822if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824else
16825 cat >conftest.$ac_ext <<_ACEOF
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
16831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16833#define $ac_func innocuous_$ac_func
16834
97bf5e38 16835/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16836 which can conflict with char $ac_func (); below.
16837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16838 <limits.h> exists even on freestanding compilers. */
c906108c 16839
bec39cab
AC
16840#ifdef __STDC__
16841# include <limits.h>
16842#else
16843# include <assert.h>
16844#endif
97bf5e38 16845
bec39cab
AC
16846#undef $ac_func
16847
b4e70030 16848/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16849#ifdef __cplusplus
16850extern "C"
b4e70030 16851{
bec39cab 16852#endif
b4e70030
JB
16853/* We use char because int might match the return type of a gcc2
16854 builtin and then its argument prototype would still apply. */
bec39cab 16855char $ac_func ();
97bf5e38
MK
16856/* The GNU C library defines this for functions which it implements
16857 to always fail with ENOSYS. Some functions are actually named
16858 something starting with __ and the normal name is an alias. */
b4e70030 16859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16860choke me
b4e70030
JB
16861#else
16862char (*f) () = $ac_func;
16863#endif
16864#ifdef __cplusplus
16865}
c906108c 16866#endif
97bf5e38 16867
bec39cab
AC
16868int
16869main ()
16870{
b4e70030 16871return f != $ac_func;
bec39cab
AC
16872 ;
16873 return 0;
16874}
16875_ACEOF
16876rm -f conftest.$ac_objext conftest$ac_exeext
16877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>conftest.er1
16879 ac_status=$?
16880 grep -v '^ *+' conftest.er1 >conftest.err
16881 rm -f conftest.er1
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } &&
b4e70030
JB
16885 { ac_try='test -z "$ac_c_werror_flag"
16886 || test ! -s conftest.err'
bec39cab
AC
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; } &&
16892 { ac_try='test -s conftest$ac_exeext'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 eval "$as_ac_var=yes"
16899else
16900 echo "$as_me: failed program was:" >&5
16901sed 's/^/| /' conftest.$ac_ext >&5
16902
b4e70030 16903eval "$as_ac_var=no"
bec39cab
AC
16904fi
16905rm -f conftest.err conftest.$ac_objext \
16906 conftest$ac_exeext conftest.$ac_ext
16907fi
b4e70030
JB
16908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16910if test `eval echo '${'$as_ac_var'}'` = yes; then
16911 cat >>confdefs.h <<_ACEOF
16912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16913_ACEOF
c906108c 16914
c906108c 16915fi
97bf5e38 16916done
c906108c 16917
bec39cab 16918
a3828db0 16919for ac_func in poll
97bf5e38 16920do
bec39cab 16921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16922echo "$as_me:$LINENO: checking for $ac_func" >&5
16923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16924if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16926else
16927 cat >conftest.$ac_ext <<_ACEOF
16928/* confdefs.h. */
16929_ACEOF
16930cat confdefs.h >>conftest.$ac_ext
16931cat >>conftest.$ac_ext <<_ACEOF
16932/* end confdefs.h. */
16933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16935#define $ac_func innocuous_$ac_func
16936
97bf5e38 16937/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16938 which can conflict with char $ac_func (); below.
16939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16940 <limits.h> exists even on freestanding compilers. */
16941
16942#ifdef __STDC__
16943# include <limits.h>
16944#else
16945# include <assert.h>
16946#endif
c906108c 16947
bec39cab 16948#undef $ac_func
97bf5e38 16949
b4e70030 16950/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16951#ifdef __cplusplus
16952extern "C"
b4e70030 16953{
bec39cab 16954#endif
b4e70030
JB
16955/* We use char because int might match the return type of a gcc2
16956 builtin and then its argument prototype would still apply. */
bec39cab 16957char $ac_func ();
97bf5e38
MK
16958/* The GNU C library defines this for functions which it implements
16959 to always fail with ENOSYS. Some functions are actually named
16960 something starting with __ and the normal name is an alias. */
b4e70030 16961#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16962choke me
b4e70030
JB
16963#else
16964char (*f) () = $ac_func;
16965#endif
16966#ifdef __cplusplus
16967}
c906108c 16968#endif
97bf5e38 16969
bec39cab
AC
16970int
16971main ()
16972{
b4e70030 16973return f != $ac_func;
bec39cab
AC
16974 ;
16975 return 0;
16976}
16977_ACEOF
16978rm -f conftest.$ac_objext conftest$ac_exeext
16979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
b4e70030
JB
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
bec39cab
AC
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest$ac_exeext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 eval "$as_ac_var=yes"
17001else
17002 echo "$as_me: failed program was:" >&5
17003sed 's/^/| /' conftest.$ac_ext >&5
17004
b4e70030 17005eval "$as_ac_var=no"
bec39cab
AC
17006fi
17007rm -f conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009fi
b4e70030
JB
17010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17011echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17012if test `eval echo '${'$as_ac_var'}'` = yes; then
17013 cat >>confdefs.h <<_ACEOF
17014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17015_ACEOF
c906108c 17016
c906108c 17017fi
97bf5e38 17018done
c906108c 17019
bec39cab 17020
a3828db0 17021for ac_func in pread64
97bf5e38 17022do
bec39cab 17023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17024echo "$as_me:$LINENO: checking for $ac_func" >&5
17025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17026if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17028else
17029 cat >conftest.$ac_ext <<_ACEOF
17030/* confdefs.h. */
17031_ACEOF
17032cat confdefs.h >>conftest.$ac_ext
17033cat >>conftest.$ac_ext <<_ACEOF
17034/* end confdefs.h. */
17035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17037#define $ac_func innocuous_$ac_func
17038
97bf5e38 17039/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17040 which can conflict with char $ac_func (); below.
17041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17042 <limits.h> exists even on freestanding compilers. */
17043
17044#ifdef __STDC__
17045# include <limits.h>
17046#else
17047# include <assert.h>
17048#endif
c906108c 17049
bec39cab 17050#undef $ac_func
97bf5e38 17051
b4e70030 17052/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17053#ifdef __cplusplus
17054extern "C"
b4e70030 17055{
bec39cab 17056#endif
b4e70030
JB
17057/* We use char because int might match the return type of a gcc2
17058 builtin and then its argument prototype would still apply. */
bec39cab 17059char $ac_func ();
97bf5e38
MK
17060/* The GNU C library defines this for functions which it implements
17061 to always fail with ENOSYS. Some functions are actually named
17062 something starting with __ and the normal name is an alias. */
b4e70030 17063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17064choke me
b4e70030
JB
17065#else
17066char (*f) () = $ac_func;
17067#endif
17068#ifdef __cplusplus
17069}
c906108c 17070#endif
97bf5e38 17071
bec39cab
AC
17072int
17073main ()
17074{
b4e70030 17075return f != $ac_func;
bec39cab
AC
17076 ;
17077 return 0;
17078}
17079_ACEOF
17080rm -f conftest.$ac_objext conftest$ac_exeext
17081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082 (eval $ac_link) 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
b4e70030
JB
17089 { ac_try='test -z "$ac_c_werror_flag"
17090 || test ! -s conftest.err'
bec39cab
AC
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest$ac_exeext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 eval "$as_ac_var=yes"
17103else
17104 echo "$as_me: failed program was:" >&5
17105sed 's/^/| /' conftest.$ac_ext >&5
17106
b4e70030 17107eval "$as_ac_var=no"
bec39cab
AC
17108fi
17109rm -f conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111fi
b4e70030
JB
17112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17113echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17114if test `eval echo '${'$as_ac_var'}'` = yes; then
17115 cat >>confdefs.h <<_ACEOF
17116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17117_ACEOF
c906108c 17118
c906108c 17119fi
97bf5e38 17120done
c906108c 17121
bec39cab 17122
a3828db0 17123for ac_func in sbrk
b757528f 17124do
bec39cab 17125as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17126echo "$as_me:$LINENO: checking for $ac_func" >&5
17127echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17128if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130else
17131 cat >conftest.$ac_ext <<_ACEOF
17132/* confdefs.h. */
17133_ACEOF
17134cat confdefs.h >>conftest.$ac_ext
17135cat >>conftest.$ac_ext <<_ACEOF
17136/* end confdefs.h. */
17137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17139#define $ac_func innocuous_$ac_func
17140
b757528f 17141/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17142 which can conflict with char $ac_func (); below.
17143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17144 <limits.h> exists even on freestanding compilers. */
17145
17146#ifdef __STDC__
17147# include <limits.h>
17148#else
17149# include <assert.h>
17150#endif
b757528f 17151
bec39cab 17152#undef $ac_func
b757528f 17153
b4e70030 17154/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17155#ifdef __cplusplus
17156extern "C"
b4e70030 17157{
bec39cab 17158#endif
b4e70030
JB
17159/* We use char because int might match the return type of a gcc2
17160 builtin and then its argument prototype would still apply. */
bec39cab 17161char $ac_func ();
b757528f
JJ
17162/* The GNU C library defines this for functions which it implements
17163 to always fail with ENOSYS. Some functions are actually named
17164 something starting with __ and the normal name is an alias. */
b4e70030 17165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 17166choke me
b4e70030
JB
17167#else
17168char (*f) () = $ac_func;
17169#endif
17170#ifdef __cplusplus
17171}
b757528f
JJ
17172#endif
17173
bec39cab
AC
17174int
17175main ()
17176{
b4e70030 17177return f != $ac_func;
bec39cab
AC
17178 ;
17179 return 0;
17180}
17181_ACEOF
17182rm -f conftest.$ac_objext conftest$ac_exeext
17183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17184 (eval $ac_link) 2>conftest.er1
17185 ac_status=$?
17186 grep -v '^ *+' conftest.er1 >conftest.err
17187 rm -f conftest.er1
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
b4e70030
JB
17191 { ac_try='test -z "$ac_c_werror_flag"
17192 || test ! -s conftest.err'
bec39cab
AC
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try='test -s conftest$ac_exeext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 eval "$as_ac_var=yes"
17205else
17206 echo "$as_me: failed program was:" >&5
17207sed 's/^/| /' conftest.$ac_ext >&5
17208
b4e70030 17209eval "$as_ac_var=no"
bec39cab
AC
17210fi
17211rm -f conftest.err conftest.$ac_objext \
17212 conftest$ac_exeext conftest.$ac_ext
17213fi
b4e70030
JB
17214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17216if test `eval echo '${'$as_ac_var'}'` = yes; then
17217 cat >>confdefs.h <<_ACEOF
17218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17219_ACEOF
b757528f 17220
b757528f
JJ
17221fi
17222done
17223
bec39cab 17224
a3828db0
MK
17225
17226for ac_func in setpgid setpgrp
bcb3dc3d 17227do
bec39cab 17228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17229echo "$as_me:$LINENO: checking for $ac_func" >&5
17230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17231if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233else
17234 cat >conftest.$ac_ext <<_ACEOF
17235/* confdefs.h. */
17236_ACEOF
17237cat confdefs.h >>conftest.$ac_ext
17238cat >>conftest.$ac_ext <<_ACEOF
17239/* end confdefs.h. */
17240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17242#define $ac_func innocuous_$ac_func
17243
bcb3dc3d 17244/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17245 which can conflict with char $ac_func (); below.
17246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17247 <limits.h> exists even on freestanding compilers. */
17248
17249#ifdef __STDC__
17250# include <limits.h>
17251#else
17252# include <assert.h>
17253#endif
bcb3dc3d 17254
bec39cab 17255#undef $ac_func
bcb3dc3d 17256
b4e70030 17257/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17258#ifdef __cplusplus
17259extern "C"
b4e70030 17260{
bec39cab 17261#endif
b4e70030
JB
17262/* We use char because int might match the return type of a gcc2
17263 builtin and then its argument prototype would still apply. */
bec39cab 17264char $ac_func ();
bcb3dc3d
MK
17265/* The GNU C library defines this for functions which it implements
17266 to always fail with ENOSYS. Some functions are actually named
17267 something starting with __ and the normal name is an alias. */
b4e70030 17268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 17269choke me
b4e70030
JB
17270#else
17271char (*f) () = $ac_func;
17272#endif
17273#ifdef __cplusplus
17274}
bcb3dc3d
MK
17275#endif
17276
bec39cab
AC
17277int
17278main ()
17279{
b4e70030 17280return f != $ac_func;
bec39cab
AC
17281 ;
17282 return 0;
17283}
17284_ACEOF
17285rm -f conftest.$ac_objext conftest$ac_exeext
17286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17287 (eval $ac_link) 2>conftest.er1
17288 ac_status=$?
17289 grep -v '^ *+' conftest.er1 >conftest.err
17290 rm -f conftest.er1
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
b4e70030
JB
17294 { ac_try='test -z "$ac_c_werror_flag"
17295 || test ! -s conftest.err'
bec39cab
AC
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try='test -s conftest$ac_exeext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 eval "$as_ac_var=yes"
17308else
17309 echo "$as_me: failed program was:" >&5
17310sed 's/^/| /' conftest.$ac_ext >&5
17311
b4e70030 17312eval "$as_ac_var=no"
bec39cab
AC
17313fi
17314rm -f conftest.err conftest.$ac_objext \
17315 conftest$ac_exeext conftest.$ac_ext
17316fi
b4e70030
JB
17317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17319if test `eval echo '${'$as_ac_var'}'` = yes; then
17320 cat >>confdefs.h <<_ACEOF
17321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17322_ACEOF
bcb3dc3d 17323
bcb3dc3d
MK
17324fi
17325done
17326
bec39cab 17327
a3828db0
MK
17328
17329
17330for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 17331do
bec39cab 17332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17333echo "$as_me:$LINENO: checking for $ac_func" >&5
17334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17335if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337else
17338 cat >conftest.$ac_ext <<_ACEOF
17339/* confdefs.h. */
17340_ACEOF
17341cat confdefs.h >>conftest.$ac_ext
17342cat >>conftest.$ac_ext <<_ACEOF
17343/* end confdefs.h. */
17344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17346#define $ac_func innocuous_$ac_func
17347
8b9cf735 17348/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17349 which can conflict with char $ac_func (); below.
17350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17351 <limits.h> exists even on freestanding compilers. */
17352
17353#ifdef __STDC__
17354# include <limits.h>
17355#else
17356# include <assert.h>
17357#endif
8b9cf735 17358
bec39cab 17359#undef $ac_func
8b9cf735 17360
b4e70030 17361/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17362#ifdef __cplusplus
17363extern "C"
b4e70030 17364{
a3828db0 17365#endif
b4e70030
JB
17366/* We use char because int might match the return type of a gcc2
17367 builtin and then its argument prototype would still apply. */
a3828db0
MK
17368char $ac_func ();
17369/* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
b4e70030 17372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17373choke me
b4e70030
JB
17374#else
17375char (*f) () = $ac_func;
17376#endif
17377#ifdef __cplusplus
17378}
a3828db0
MK
17379#endif
17380
bec39cab
AC
17381int
17382main ()
17383{
b4e70030 17384return f != $ac_func;
bec39cab
AC
17385 ;
17386 return 0;
17387}
17388_ACEOF
a3828db0
MK
17389rm -f conftest.$ac_objext conftest$ac_exeext
17390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17391 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17392 ac_status=$?
17393 grep -v '^ *+' conftest.er1 >conftest.err
17394 rm -f conftest.er1
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
b4e70030
JB
17398 { ac_try='test -z "$ac_c_werror_flag"
17399 || test ! -s conftest.err'
bec39cab
AC
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
a3828db0 17405 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
a3828db0 17411 eval "$as_ac_var=yes"
086ec9eb 17412else
bec39cab
AC
17413 echo "$as_me: failed program was:" >&5
17414sed 's/^/| /' conftest.$ac_ext >&5
17415
b4e70030 17416eval "$as_ac_var=no"
a3828db0
MK
17417fi
17418rm -f conftest.err conftest.$ac_objext \
17419 conftest$ac_exeext conftest.$ac_ext
17420fi
b4e70030
JB
17421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17423if test `eval echo '${'$as_ac_var'}'` = yes; then
17424 cat >>confdefs.h <<_ACEOF
17425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17426_ACEOF
17427
086ec9eb 17428fi
a3828db0
MK
17429done
17430
17431
17432for ac_func in socketpair
17433do
17434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17435echo "$as_me:$LINENO: checking for $ac_func" >&5
17436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17437if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17439else
17440 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17441/* confdefs.h. */
17442_ACEOF
17443cat confdefs.h >>conftest.$ac_ext
17444cat >>conftest.$ac_ext <<_ACEOF
17445/* end confdefs.h. */
a3828db0
MK
17446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17448#define $ac_func innocuous_$ac_func
17449
17450/* System header to define __stub macros and hopefully few prototypes,
17451 which can conflict with char $ac_func (); below.
17452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17453 <limits.h> exists even on freestanding compilers. */
17454
17455#ifdef __STDC__
17456# include <limits.h>
17457#else
17458# include <assert.h>
17459#endif
17460
17461#undef $ac_func
17462
b4e70030 17463/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17464#ifdef __cplusplus
17465extern "C"
b4e70030 17466{
a3828db0 17467#endif
b4e70030
JB
17468/* We use char because int might match the return type of a gcc2
17469 builtin and then its argument prototype would still apply. */
a3828db0
MK
17470char $ac_func ();
17471/* The GNU C library defines this for functions which it implements
17472 to always fail with ENOSYS. Some functions are actually named
17473 something starting with __ and the normal name is an alias. */
b4e70030 17474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17475choke me
b4e70030
JB
17476#else
17477char (*f) () = $ac_func;
17478#endif
17479#ifdef __cplusplus
17480}
a3828db0
MK
17481#endif
17482
bec39cab
AC
17483int
17484main ()
17485{
b4e70030 17486return f != $ac_func;
bec39cab
AC
17487 ;
17488 return 0;
17489}
17490_ACEOF
a3828db0
MK
17491rm -f conftest.$ac_objext conftest$ac_exeext
17492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17493 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17494 ac_status=$?
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
b4e70030
JB
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
bec39cab
AC
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
a3828db0 17507 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
a3828db0 17513 eval "$as_ac_var=yes"
086ec9eb 17514else
bec39cab
AC
17515 echo "$as_me: failed program was:" >&5
17516sed 's/^/| /' conftest.$ac_ext >&5
17517
b4e70030 17518eval "$as_ac_var=no"
086ec9eb 17519fi
a3828db0
MK
17520rm -f conftest.err conftest.$ac_objext \
17521 conftest$ac_exeext conftest.$ac_ext
086ec9eb 17522fi
b4e70030
JB
17523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17524echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17525if test `eval echo '${'$as_ac_var'}'` = yes; then
17526 cat >>confdefs.h <<_ACEOF
17527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17528_ACEOF
086ec9eb
MK
17529
17530fi
a3828db0 17531done
086ec9eb 17532
a3828db0
MK
17533
17534for ac_func in syscall
17535do
17536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17537echo "$as_me:$LINENO: checking for $ac_func" >&5
17538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17539if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17540 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
17541else
17542 cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
a3828db0
MK
17548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17550#define $ac_func innocuous_$ac_func
17551
17552/* System header to define __stub macros and hopefully few prototypes,
17553 which can conflict with char $ac_func (); below.
17554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17555 <limits.h> exists even on freestanding compilers. */
17556
17557#ifdef __STDC__
17558# include <limits.h>
17559#else
17560# include <assert.h>
17561#endif
17562
17563#undef $ac_func
17564
b4e70030 17565/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17566#ifdef __cplusplus
17567extern "C"
b4e70030 17568{
a3828db0 17569#endif
b4e70030
JB
17570/* We use char because int might match the return type of a gcc2
17571 builtin and then its argument prototype would still apply. */
a3828db0
MK
17572char $ac_func ();
17573/* The GNU C library defines this for functions which it implements
17574 to always fail with ENOSYS. Some functions are actually named
17575 something starting with __ and the normal name is an alias. */
b4e70030 17576#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17577choke me
b4e70030
JB
17578#else
17579char (*f) () = $ac_func;
17580#endif
17581#ifdef __cplusplus
17582}
c906108c 17583#endif
97bf5e38 17584
bec39cab
AC
17585int
17586main ()
97bf5e38 17587{
b4e70030 17588return f != $ac_func;
bec39cab
AC
17589 ;
17590 return 0;
97bf5e38 17591}
bec39cab 17592_ACEOF
a3828db0 17593rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 17594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17595 (eval $ac_link) 2>conftest.er1
bec39cab 17596 ac_status=$?
a3828db0
MK
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
bec39cab 17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17601 (exit $ac_status); } &&
b4e70030
JB
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
a3828db0
MK
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
a3828db0 17615 eval "$as_ac_var=yes"
c906108c 17616else
a3828db0 17617 echo "$as_me: failed program was:" >&5
bec39cab
AC
17618sed 's/^/| /' conftest.$ac_ext >&5
17619
b4e70030 17620eval "$as_ac_var=no"
97bf5e38 17621fi
a3828db0
MK
17622rm -f conftest.err conftest.$ac_objext \
17623 conftest$ac_exeext conftest.$ac_ext
17624fi
b4e70030
JB
17625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17627if test `eval echo '${'$as_ac_var'}'` = yes; then
17628 cat >>confdefs.h <<_ACEOF
17629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17630_ACEOF
c906108c
SS
17631
17632fi
a3828db0 17633done
c906108c 17634
a3828db0
MK
17635
17636for ac_func in ttrace
17637do
17638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17639echo "$as_me:$LINENO: checking for $ac_func" >&5
17640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17641if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17642 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 17643else
bec39cab
AC
17644 cat >conftest.$ac_ext <<_ACEOF
17645/* confdefs.h. */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h. */
a3828db0
MK
17650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17652#define $ac_func innocuous_$ac_func
b83266a0 17653
a3828db0
MK
17654/* System header to define __stub macros and hopefully few prototypes,
17655 which can conflict with char $ac_func (); below.
17656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17657 <limits.h> exists even on freestanding compilers. */
17658
17659#ifdef __STDC__
17660# include <limits.h>
17661#else
17662# include <assert.h>
17663#endif
17664
17665#undef $ac_func
17666
b4e70030 17667/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17668#ifdef __cplusplus
17669extern "C"
b4e70030 17670{
a3828db0 17671#endif
b4e70030
JB
17672/* We use char because int might match the return type of a gcc2
17673 builtin and then its argument prototype would still apply. */
a3828db0
MK
17674char $ac_func ();
17675/* The GNU C library defines this for functions which it implements
17676 to always fail with ENOSYS. Some functions are actually named
17677 something starting with __ and the normal name is an alias. */
b4e70030 17678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17679choke me
b4e70030
JB
17680#else
17681char (*f) () = $ac_func;
17682#endif
17683#ifdef __cplusplus
17684}
a3828db0 17685#endif
97bf5e38 17686
bec39cab
AC
17687int
17688main ()
17689{
b4e70030 17690return f != $ac_func;
bec39cab
AC
17691 ;
17692 return 0;
17693}
17694_ACEOF
a3828db0
MK
17695rm -f conftest.$ac_objext conftest$ac_exeext
17696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17697 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17698 ac_status=$?
17699 grep -v '^ *+' conftest.er1 >conftest.err
17700 rm -f conftest.er1
17701 cat conftest.err >&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } &&
b4e70030
JB
17704 { ac_try='test -z "$ac_c_werror_flag"
17705 || test ! -s conftest.err'
bec39cab
AC
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; } &&
a3828db0 17711 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; }; then
a3828db0 17717 eval "$as_ac_var=yes"
b83266a0 17718else
bec39cab
AC
17719 echo "$as_me: failed program was:" >&5
17720sed 's/^/| /' conftest.$ac_ext >&5
17721
b4e70030 17722eval "$as_ac_var=no"
b83266a0 17723fi
a3828db0
MK
17724rm -f conftest.err conftest.$ac_objext \
17725 conftest$ac_exeext conftest.$ac_ext
b83266a0 17726fi
b4e70030
JB
17727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17728echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17729if test `eval echo '${'$as_ac_var'}'` = yes; then
17730 cat >>confdefs.h <<_ACEOF
17731#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17732_ACEOF
b83266a0 17733
97bf5e38 17734fi
a3828db0 17735done
b83266a0 17736
a3828db0
MK
17737
17738for ac_func in wborder
17739do
17740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17741echo "$as_me:$LINENO: checking for $ac_func" >&5
17742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17743if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17745else
17746 cat >conftest.$ac_ext <<_ACEOF
17747/* confdefs.h. */
17748_ACEOF
17749cat confdefs.h >>conftest.$ac_ext
17750cat >>conftest.$ac_ext <<_ACEOF
17751/* end confdefs.h. */
a3828db0
MK
17752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17754#define $ac_func innocuous_$ac_func
a4db0f07 17755
a3828db0
MK
17756/* System header to define __stub macros and hopefully few prototypes,
17757 which can conflict with char $ac_func (); below.
17758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17759 <limits.h> exists even on freestanding compilers. */
17760
17761#ifdef __STDC__
17762# include <limits.h>
17763#else
17764# include <assert.h>
17765#endif
17766
17767#undef $ac_func
17768
b4e70030 17769/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17770#ifdef __cplusplus
17771extern "C"
b4e70030 17772{
a3828db0 17773#endif
b4e70030
JB
17774/* We use char because int might match the return type of a gcc2
17775 builtin and then its argument prototype would still apply. */
a3828db0
MK
17776char $ac_func ();
17777/* The GNU C library defines this for functions which it implements
17778 to always fail with ENOSYS. Some functions are actually named
17779 something starting with __ and the normal name is an alias. */
b4e70030 17780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17781choke me
b4e70030
JB
17782#else
17783char (*f) () = $ac_func;
17784#endif
17785#ifdef __cplusplus
17786}
a3828db0 17787#endif
97bf5e38 17788
bec39cab
AC
17789int
17790main ()
17791{
b4e70030 17792return f != $ac_func;
bec39cab
AC
17793 ;
17794 return 0;
17795}
17796_ACEOF
a3828db0
MK
17797rm -f conftest.$ac_objext conftest$ac_exeext
17798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17799 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17800 ac_status=$?
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } &&
b4e70030
JB
17806 { ac_try='test -z "$ac_c_werror_flag"
17807 || test ! -s conftest.err'
bec39cab
AC
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; } &&
a3828db0 17813 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
a3828db0 17819 eval "$as_ac_var=yes"
a4db0f07 17820else
bec39cab
AC
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
b4e70030 17824eval "$as_ac_var=no"
a4db0f07 17825fi
a3828db0
MK
17826rm -f conftest.err conftest.$ac_objext \
17827 conftest$ac_exeext conftest.$ac_ext
a4db0f07 17828fi
b4e70030
JB
17829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17830echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17831if test `eval echo '${'$as_ac_var'}'` = yes; then
17832 cat >>confdefs.h <<_ACEOF
17833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17834_ACEOF
a4db0f07
RH
17835
17836fi
a3828db0 17837done
c906108c 17838
06825bd1 17839
a3828db0
MK
17840# Check the return and argument types of ptrace. No canned test for
17841# this, so roll our own.
17842gdb_ptrace_headers='
17843#if HAVE_SYS_TYPES_H
17844# include <sys/types.h>
17845#endif
17846#if HAVE_SYS_PTRACE_H
17847# include <sys/ptrace.h>
17848#endif
17849#if HAVE_UNISTD_H
17850# include <unistd.h>
17851#endif
17852'
17853# There is no point in checking if we don't have a prototype.
b4e70030
JB
17854echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
17855echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 17856if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17858else
17859 cat >conftest.$ac_ext <<_ACEOF
17860/* confdefs.h. */
17861_ACEOF
17862cat confdefs.h >>conftest.$ac_ext
17863cat >>conftest.$ac_ext <<_ACEOF
17864/* end confdefs.h. */
a3828db0
MK
17865$gdb_ptrace_headers
17866
bec39cab
AC
17867int
17868main ()
17869{
a3828db0
MK
17870#ifndef ptrace
17871 char *p = (char *) ptrace;
06825bd1 17872#endif
a3828db0 17873
bec39cab
AC
17874 ;
17875 return 0;
17876}
17877_ACEOF
17878rm -f conftest.$ac_objext
17879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17880 (eval $ac_compile) 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
b4e70030
JB
17887 { ac_try='test -z "$ac_c_werror_flag"
17888 || test ! -s conftest.err'
bec39cab
AC
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; } &&
17894 { ac_try='test -s conftest.$ac_objext'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
a3828db0 17900 ac_cv_have_decl_ptrace=yes
06825bd1 17901else
bec39cab
AC
17902 echo "$as_me: failed program was:" >&5
17903sed 's/^/| /' conftest.$ac_ext >&5
17904
b4e70030 17905ac_cv_have_decl_ptrace=no
06825bd1 17906fi
bec39cab 17907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 17908fi
b4e70030
JB
17909echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
17910echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 17911if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 17912
a3828db0
MK
17913cat >>confdefs.h <<_ACEOF
17914#define HAVE_DECL_PTRACE 1
17915_ACEOF
bec39cab 17916
bec39cab 17917
a3828db0
MK
17918else
17919 cat >>confdefs.h <<_ACEOF
17920#define HAVE_DECL_PTRACE 0
bec39cab 17921_ACEOF
06825bd1 17922
a3828db0
MK
17923
17924 : ${gdb_cv_func_ptrace_ret='int'}
17925 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17926
06825bd1
MK
17927fi
17928
a3828db0
MK
17929
17930# Check return type.
b4e70030
JB
17931echo "$as_me:$LINENO: checking return type of ptrace" >&5
17932echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 17933if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17935else
17936 cat >conftest.$ac_ext <<_ACEOF
17937/* confdefs.h. */
17938_ACEOF
17939cat confdefs.h >>conftest.$ac_ext
17940cat >>conftest.$ac_ext <<_ACEOF
17941/* end confdefs.h. */
a3828db0 17942$gdb_ptrace_headers
bec39cab
AC
17943int
17944main ()
17945{
a3828db0 17946extern int ptrace ();
bec39cab
AC
17947 ;
17948 return 0;
17949}
17950_ACEOF
17951rm -f conftest.$ac_objext
17952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17953 (eval $ac_compile) 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
b4e70030
JB
17960 { ac_try='test -z "$ac_c_werror_flag"
17961 || test ! -s conftest.err'
bec39cab
AC
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest.$ac_objext'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
a3828db0 17973 gdb_cv_func_ptrace_ret='int'
70f9f479 17974else
bec39cab
AC
17975 echo "$as_me: failed program was:" >&5
17976sed 's/^/| /' conftest.$ac_ext >&5
17977
b4e70030 17978gdb_cv_func_ptrace_ret='long'
70f9f479 17979fi
bec39cab 17980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 17981fi
b4e70030
JB
17982echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
17983echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 17984
a3828db0
MK
17985cat >>confdefs.h <<_ACEOF
17986#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 17987_ACEOF
70f9f479 17988
a3828db0 17989# Check argument types.
b4e70030
JB
17990echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
17991echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 17992if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994else
a3828db0
MK
17995
17996for gdb_arg1 in 'int' 'long'; do
17997 for gdb_arg2 in 'pid_t' 'int' 'long'; do
17998 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
17999 for gdb_arg4 in 'int' 'long'; do
18000 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18001/* confdefs.h. */
18002_ACEOF
18003cat confdefs.h >>conftest.$ac_ext
18004cat >>conftest.$ac_ext <<_ACEOF
18005/* end confdefs.h. */
a3828db0 18006$gdb_ptrace_headers
bec39cab
AC
18007int
18008main ()
18009{
a3828db0
MK
18010
18011extern $gdb_cv_func_ptrace_ret
18012 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18013
bec39cab
AC
18014 ;
18015 return 0;
18016}
18017_ACEOF
18018rm -f conftest.$ac_objext
18019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18020 (eval $ac_compile) 2>conftest.er1
18021 ac_status=$?
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
b4e70030
JB
18027 { ac_try='test -z "$ac_c_werror_flag"
18028 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18034 { ac_try='test -s conftest.$ac_objext'
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
a3828db0
MK
18040 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18041 break 4;
5c7f2947 18042else
bec39cab
AC
18043 echo "$as_me: failed program was:" >&5
18044sed 's/^/| /' conftest.$ac_ext >&5
18045
5c7f2947 18046fi
bec39cab 18047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18048 for gdb_arg5 in 'int *' 'int' 'long'; do
18049 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18050/* confdefs.h. */
18051_ACEOF
18052cat confdefs.h >>conftest.$ac_ext
18053cat >>conftest.$ac_ext <<_ACEOF
18054/* end confdefs.h. */
a3828db0 18055$gdb_ptrace_headers
bec39cab
AC
18056int
18057main ()
18058{
a3828db0
MK
18059
18060extern $gdb_cv_func_ptrace_ret
18061 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18062
bec39cab
AC
18063 ;
18064 return 0;
18065}
18066_ACEOF
18067rm -f conftest.$ac_objext
18068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18069 (eval $ac_compile) 2>conftest.er1
18070 ac_status=$?
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
b4e70030
JB
18076 { ac_try='test -z "$ac_c_werror_flag"
18077 || test ! -s conftest.err'
bec39cab
AC
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try='test -s conftest.$ac_objext'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
a3828db0
MK
18089
18090gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18091 break 5;
78434e59 18092else
bec39cab
AC
18093 echo "$as_me: failed program was:" >&5
18094sed 's/^/| /' conftest.$ac_ext >&5
18095
78434e59 18096fi
bec39cab 18097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18098 done
18099 done
18100 done
18101 done
18102done
18103# Provide a safe default value.
18104: ${gdb_cv_func_ptrace_args='int,int,long,long'}
18105
78434e59 18106fi
b4e70030
JB
18107echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18108echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
18109ac_save_IFS=$IFS; IFS=','
18110set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18111IFS=$ac_save_IFS
18112shift
bec39cab 18113
a3828db0
MK
18114cat >>confdefs.h <<_ACEOF
18115#define PTRACE_TYPE_ARG3 $3
18116_ACEOF
18117
18118if test -n "$5"; then
18119
18120cat >>confdefs.h <<_ACEOF
18121#define PTRACE_TYPE_ARG5 $5
bec39cab 18122_ACEOF
78434e59
MK
18123
18124fi
18125
a3828db0 18126if test "$cross_compiling" = no; then
b4e70030
JB
18127 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18128echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18129if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18130 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18131else
18132 if test "$cross_compiling" = yes; then
18133 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18134echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18135 { (exit 1); exit 1; }; }
bec39cab
AC
18136else
18137 cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h. */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h. */
b4e70030
JB
18143#if HAVE_UNISTD_H
18144# include <unistd.h>
18145#endif
18146
bec39cab
AC
18147int
18148main ()
18149{
a3828db0
MK
18150/* If this system has a BSD-style setpgrp which takes arguments,
18151 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18152 exit successfully. */
b4e70030 18153 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
18154 ;
18155 return 0;
18156}
18157_ACEOF
a3828db0
MK
18158rm -f conftest$ac_exeext
18159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18160 (eval $ac_link) 2>&5
bec39cab
AC
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
a3828db0 18169 ac_cv_func_setpgrp_void=no
c906108c 18170else
a3828db0
MK
18171 echo "$as_me: program exited with status $ac_status" >&5
18172echo "$as_me: failed program was:" >&5
bec39cab
AC
18173sed 's/^/| /' conftest.$ac_ext >&5
18174
a3828db0
MK
18175( exit $ac_status )
18176ac_cv_func_setpgrp_void=yes
c906108c 18177fi
b4e70030 18178rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 18179fi
a3828db0 18180fi
b4e70030
JB
18181echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18182echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
18183if test $ac_cv_func_setpgrp_void = yes; then
18184
18185cat >>confdefs.h <<\_ACEOF
18186#define SETPGRP_VOID 1
bec39cab 18187_ACEOF
97bf5e38
MK
18188
18189fi
a3828db0
MK
18190
18191else
b4e70030
JB
18192 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18193echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18194if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18195 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18196else
bec39cab
AC
18197 cat >conftest.$ac_ext <<_ACEOF
18198/* confdefs.h. */
18199_ACEOF
18200cat confdefs.h >>conftest.$ac_ext
18201cat >>conftest.$ac_ext <<_ACEOF
18202/* end confdefs.h. */
a3828db0
MK
18203
18204#include <unistd.h>
18205
bec39cab
AC
18206int
18207main ()
18208{
a3828db0
MK
18209
18210 if (setpgrp(1,1) == -1)
18211 exit (0);
18212 else
18213 exit (1);
18214
bec39cab
AC
18215 ;
18216 return 0;
18217}
18218_ACEOF
18219rm -f conftest.$ac_objext
18220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18221 (eval $ac_compile) 2>conftest.er1
18222 ac_status=$?
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
b4e70030
JB
18228 { ac_try='test -z "$ac_c_werror_flag"
18229 || test ! -s conftest.err'
bec39cab
AC
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; } &&
18235 { ac_try='test -s conftest.$ac_objext'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
a3828db0 18241 ac_cv_func_setpgrp_void=no
c906108c 18242else
bec39cab
AC
18243 echo "$as_me: failed program was:" >&5
18244sed 's/^/| /' conftest.$ac_ext >&5
18245
b4e70030 18246ac_cv_func_setpgrp_void=yes
c906108c 18247fi
bec39cab 18248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18249fi
b4e70030
JB
18250echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18251echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 18252if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 18253 cat >>confdefs.h <<\_ACEOF
a3828db0 18254#define SETPGRP_VOID 1
bec39cab 18255_ACEOF
c3f6f71d 18256
a3828db0 18257fi
c906108c
SS
18258fi
18259
a3828db0
MK
18260# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
18261# since sigsetjmp might only be defined as a macro.
b4e70030
JB
18262echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18263echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 18264if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18266else
18267 cat >conftest.$ac_ext <<_ACEOF
18268/* confdefs.h. */
18269_ACEOF
18270cat confdefs.h >>conftest.$ac_ext
18271cat >>conftest.$ac_ext <<_ACEOF
18272/* end confdefs.h. */
a3828db0
MK
18273
18274#include <setjmp.h>
18275
bec39cab
AC
18276int
18277main ()
18278{
a3828db0 18279sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
18280 ;
18281 return 0;
18282}
18283_ACEOF
18284rm -f conftest.$ac_objext
18285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18286 (eval $ac_compile) 2>conftest.er1
18287 ac_status=$?
18288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
b4e70030
JB
18293 { ac_try='test -z "$ac_c_werror_flag"
18294 || test ! -s conftest.err'
bec39cab
AC
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest.$ac_objext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
a3828db0 18306 gdb_cv_func_sigsetjmp=yes
c906108c 18307else
bec39cab
AC
18308 echo "$as_me: failed program was:" >&5
18309sed 's/^/| /' conftest.$ac_ext >&5
18310
b4e70030 18311gdb_cv_func_sigsetjmp=no
c906108c 18312fi
bec39cab 18313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18314fi
b4e70030
JB
18315echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18316echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 18317if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 18318
a3828db0
MK
18319cat >>confdefs.h <<\_ACEOF
18320#define HAVE_SIGSETJMP 1
bec39cab 18321_ACEOF
c906108c 18322
97bf5e38 18323fi
c906108c 18324
a3828db0
MK
18325# Assume we'll default to using the included libiberty regex.
18326gdb_use_included_regex=yes
18327
18328# However, if the system regex is GNU regex, then default to *not*
18329# using the included regex.
b4e70030
JB
18330echo "$as_me:$LINENO: checking for GNU regex" >&5
18331echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 18332if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18334else
18335 cat >conftest.$ac_ext <<_ACEOF
18336/* confdefs.h. */
18337_ACEOF
18338cat confdefs.h >>conftest.$ac_ext
18339cat >>conftest.$ac_ext <<_ACEOF
18340/* end confdefs.h. */
a3828db0 18341#include <gnu-versions.h>
bec39cab
AC
18342int
18343main ()
18344{
a3828db0
MK
18345#define REGEX_INTERFACE_VERSION 1
18346#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18347# error "Version mismatch"
18348#endif
bec39cab
AC
18349 ;
18350 return 0;
18351}
18352_ACEOF
18353rm -f conftest.$ac_objext
18354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355 (eval $ac_compile) 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
b4e70030
JB
18362 { ac_try='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
bec39cab
AC
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try='test -s conftest.$ac_objext'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
a3828db0 18375 gdb_cv_have_gnu_regex=yes
c906108c 18376else
bec39cab
AC
18377 echo "$as_me: failed program was:" >&5
18378sed 's/^/| /' conftest.$ac_ext >&5
18379
b4e70030 18380gdb_cv_have_gnu_regex=no
c906108c 18381fi
bec39cab 18382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18383fi
b4e70030
JB
18384echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18385echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
18386if test $gdb_cv_have_gnu_regex = yes; then
18387 gdb_use_included_regex=no
18388fi
c906108c 18389
a3828db0 18390
b4e70030 18391# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 18392if test "${with_included_regex+set}" = set; then
b4e70030
JB
18393 withval="$with_included_regex"
18394 gdb_with_regex=$withval
a3828db0
MK
18395else
18396 gdb_with_regex=$gdb_use_included_regex
b4e70030 18397fi;
a3828db0
MK
18398if test "$gdb_with_regex" = yes; then
18399
18400cat >>confdefs.h <<\_ACEOF
18401#define USE_INCLUDED_REGEX 1
bec39cab 18402_ACEOF
c906108c 18403
97bf5e38 18404fi
c906108c 18405
5c45e068 18406# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
18407echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18408echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 18409if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18411else
18412 cat >conftest.$ac_ext <<_ACEOF
18413/* confdefs.h. */
18414_ACEOF
18415cat confdefs.h >>conftest.$ac_ext
18416cat >>conftest.$ac_ext <<_ACEOF
18417/* end confdefs.h. */
a3828db0
MK
18418#include <sys/param.h>
18419#include <sys/proc.h>
5c45e068
MK
18420
18421
bec39cab
AC
18422int
18423main ()
18424{
5c45e068
MK
18425static struct thread ac_aggr;
18426if (ac_aggr.td_pcb)
18427return 0;
bec39cab
AC
18428 ;
18429 return 0;
18430}
18431_ACEOF
18432rm -f conftest.$ac_objext
18433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18434 (eval $ac_compile) 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
b4e70030
JB
18441 { ac_try='test -z "$ac_c_werror_flag"
18442 || test ! -s conftest.err'
bec39cab
AC
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; } &&
18448 { ac_try='test -s conftest.$ac_objext'
18449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450 (eval $ac_try) 2>&5
18451 ac_status=$?
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; }; then
5c45e068 18454 ac_cv_member_struct_thread_td_pcb=yes
c906108c 18455else
bec39cab
AC
18456 echo "$as_me: failed program was:" >&5
18457sed 's/^/| /' conftest.$ac_ext >&5
18458
b4e70030 18459cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18460/* confdefs.h. */
18461_ACEOF
18462cat confdefs.h >>conftest.$ac_ext
18463cat >>conftest.$ac_ext <<_ACEOF
18464/* end confdefs.h. */
18465#include <sys/param.h>
18466#include <sys/proc.h>
18467
18468
18469int
18470main ()
18471{
18472static struct thread ac_aggr;
18473if (sizeof ac_aggr.td_pcb)
18474return 0;
18475 ;
18476 return 0;
18477}
18478_ACEOF
18479rm -f conftest.$ac_objext
18480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18481 (eval $ac_compile) 2>conftest.er1
18482 ac_status=$?
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } &&
b4e70030
JB
18488 { ac_try='test -z "$ac_c_werror_flag"
18489 || test ! -s conftest.err'
5c45e068
MK
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest.$ac_objext'
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
18501 ac_cv_member_struct_thread_td_pcb=yes
18502else
18503 echo "$as_me: failed program was:" >&5
18504sed 's/^/| /' conftest.$ac_ext >&5
18505
b4e70030 18506ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
18507fi
18508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18509fi
bec39cab 18510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18511fi
b4e70030
JB
18512echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18513echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 18514if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 18515
5c45e068 18516cat >>confdefs.h <<_ACEOF
a3828db0 18517#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 18518_ACEOF
c906108c 18519
5c45e068 18520
97bf5e38 18521fi
c906108c 18522
5c45e068 18523
a3828db0 18524# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
18525echo "$as_me:$LINENO: checking for struct lwp" >&5
18526echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 18527if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
18528 echo $ECHO_N "(cached) $ECHO_C" >&6
18529else
18530 cat >conftest.$ac_ext <<_ACEOF
18531/* confdefs.h. */
18532_ACEOF
18533cat confdefs.h >>conftest.$ac_ext
18534cat >>conftest.$ac_ext <<_ACEOF
18535/* end confdefs.h. */
a3828db0
MK
18536#include <sys/param.h>
18537#include <sys/lwp.h>
bec39cab
AC
18538int
18539main ()
18540{
a3828db0 18541struct lwp l;
bec39cab
AC
18542 ;
18543 return 0;
18544}
18545_ACEOF
18546rm -f conftest.$ac_objext
18547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18548 (eval $ac_compile) 2>conftest.er1
18549 ac_status=$?
18550 grep -v '^ *+' conftest.er1 >conftest.err
18551 rm -f conftest.er1
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
b4e70030
JB
18555 { ac_try='test -z "$ac_c_werror_flag"
18556 || test ! -s conftest.err'
bec39cab
AC
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; } &&
18562 { ac_try='test -s conftest.$ac_objext'
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
a3828db0 18568 gdb_cv_struct_lwp=yes
c906108c 18569else
bec39cab
AC
18570 echo "$as_me: failed program was:" >&5
18571sed 's/^/| /' conftest.$ac_ext >&5
18572
b4e70030 18573gdb_cv_struct_lwp=no
c906108c 18574fi
bec39cab 18575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18576fi
b4e70030
JB
18577echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18578echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 18579if test $gdb_cv_struct_lwp = yes; then
c906108c 18580
a3828db0
MK
18581cat >>confdefs.h <<\_ACEOF
18582#define HAVE_STRUCT_LWP 1
bec39cab 18583_ACEOF
c906108c 18584
97bf5e38 18585fi
c906108c 18586
a3828db0 18587# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
18588echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18589echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 18590if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18592else
18593 cat >conftest.$ac_ext <<_ACEOF
18594/* confdefs.h. */
18595_ACEOF
18596cat confdefs.h >>conftest.$ac_ext
18597cat >>conftest.$ac_ext <<_ACEOF
18598/* end confdefs.h. */
a3828db0
MK
18599#include <sys/types.h>
18600#include <machine/reg.h>
bec39cab
AC
18601int
18602main ()
18603{
a3828db0 18604struct reg r;
bec39cab
AC
18605 ;
18606 return 0;
18607}
18608_ACEOF
18609rm -f conftest.$ac_objext
18610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611 (eval $ac_compile) 2>conftest.er1
18612 ac_status=$?
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
b4e70030
JB
18618 { ac_try='test -z "$ac_c_werror_flag"
18619 || test ! -s conftest.err'
bec39cab
AC
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest.$ac_objext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
a3828db0 18631 gdb_cv_struct_reg=yes
27ca5dad 18632else
bec39cab
AC
18633 echo "$as_me: failed program was:" >&5
18634sed 's/^/| /' conftest.$ac_ext >&5
18635
b4e70030 18636gdb_cv_struct_reg=no
27ca5dad 18637fi
bec39cab 18638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 18639fi
b4e70030
JB
18640echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18641echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 18642if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
18643
18644cat >>confdefs.h <<\_ACEOF
a3828db0 18645#define HAVE_STRUCT_REG 1
bec39cab 18646_ACEOF
27ca5dad
MC
18647
18648fi
97bf5e38 18649
a3828db0
MK
18650# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18651# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
18652echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18653echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 18654if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 18655 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18656else
bec39cab
AC
18657 cat >conftest.$ac_ext <<_ACEOF
18658/* confdefs.h. */
18659_ACEOF
18660cat confdefs.h >>conftest.$ac_ext
18661cat >>conftest.$ac_ext <<_ACEOF
18662/* end confdefs.h. */
a3828db0 18663#include <machine/reg.h>
5c45e068
MK
18664
18665int
18666main ()
18667{
18668static struct reg ac_aggr;
18669if (ac_aggr.r_fs)
18670return 0;
18671 ;
18672 return 0;
18673}
18674_ACEOF
18675rm -f conftest.$ac_objext
18676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18677 (eval $ac_compile) 2>conftest.er1
18678 ac_status=$?
18679 grep -v '^ *+' conftest.er1 >conftest.err
18680 rm -f conftest.er1
18681 cat conftest.err >&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
b4e70030
JB
18684 { ac_try='test -z "$ac_c_werror_flag"
18685 || test ! -s conftest.err'
5c45e068
MK
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } &&
18691 { ac_try='test -s conftest.$ac_objext'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_cv_member_struct_reg_r_fs=yes
18698else
18699 echo "$as_me: failed program was:" >&5
18700sed 's/^/| /' conftest.$ac_ext >&5
18701
b4e70030 18702cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18703/* confdefs.h. */
18704_ACEOF
18705cat confdefs.h >>conftest.$ac_ext
18706cat >>conftest.$ac_ext <<_ACEOF
18707/* end confdefs.h. */
18708#include <machine/reg.h>
18709
bec39cab
AC
18710int
18711main ()
18712{
5c45e068
MK
18713static struct reg ac_aggr;
18714if (sizeof ac_aggr.r_fs)
18715return 0;
bec39cab
AC
18716 ;
18717 return 0;
18718}
18719_ACEOF
18720rm -f conftest.$ac_objext
18721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18722 (eval $ac_compile) 2>conftest.er1
18723 ac_status=$?
18724 grep -v '^ *+' conftest.er1 >conftest.err
18725 rm -f conftest.er1
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
b4e70030
JB
18729 { ac_try='test -z "$ac_c_werror_flag"
18730 || test ! -s conftest.err'
bec39cab
AC
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest.$ac_objext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
5c45e068 18742 ac_cv_member_struct_reg_r_fs=yes
3862412b 18743else
bec39cab
AC
18744 echo "$as_me: failed program was:" >&5
18745sed 's/^/| /' conftest.$ac_ext >&5
18746
b4e70030 18747ac_cv_member_struct_reg_r_fs=no
3862412b 18748fi
bec39cab 18749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18750fi
5c45e068
MK
18751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18752fi
b4e70030
JB
18753echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18754echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
18755if test $ac_cv_member_struct_reg_r_fs = yes; then
18756
18757cat >>confdefs.h <<_ACEOF
a3828db0 18758#define HAVE_STRUCT_REG_R_FS 1
bec39cab 18759_ACEOF
3862412b 18760
5c45e068 18761
97bf5e38 18762fi
b4e70030
JB
18763echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18764echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 18765if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 18766 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18767else
bec39cab
AC
18768 cat >conftest.$ac_ext <<_ACEOF
18769/* confdefs.h. */
18770_ACEOF
18771cat confdefs.h >>conftest.$ac_ext
18772cat >>conftest.$ac_ext <<_ACEOF
18773/* end confdefs.h. */
a3828db0 18774#include <machine/reg.h>
5c45e068 18775
bec39cab
AC
18776int
18777main ()
18778{
5c45e068
MK
18779static struct reg ac_aggr;
18780if (ac_aggr.r_gs)
18781return 0;
bec39cab
AC
18782 ;
18783 return 0;
18784}
18785_ACEOF
18786rm -f conftest.$ac_objext
18787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18788 (eval $ac_compile) 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
b4e70030
JB
18795 { ac_try='test -z "$ac_c_werror_flag"
18796 || test ! -s conftest.err'
bec39cab
AC
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest.$ac_objext'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
5c45e068 18808 ac_cv_member_struct_reg_r_gs=yes
3862412b 18809else
bec39cab
AC
18810 echo "$as_me: failed program was:" >&5
18811sed 's/^/| /' conftest.$ac_ext >&5
18812
b4e70030 18813cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18814/* confdefs.h. */
18815_ACEOF
18816cat confdefs.h >>conftest.$ac_ext
18817cat >>conftest.$ac_ext <<_ACEOF
18818/* end confdefs.h. */
18819#include <machine/reg.h>
18820
18821int
18822main ()
18823{
18824static struct reg ac_aggr;
18825if (sizeof ac_aggr.r_gs)
18826return 0;
18827 ;
18828 return 0;
18829}
18830_ACEOF
18831rm -f conftest.$ac_objext
18832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18833 (eval $ac_compile) 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
b4e70030
JB
18840 { ac_try='test -z "$ac_c_werror_flag"
18841 || test ! -s conftest.err'
5c45e068
MK
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest.$ac_objext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 ac_cv_member_struct_reg_r_gs=yes
18854else
18855 echo "$as_me: failed program was:" >&5
18856sed 's/^/| /' conftest.$ac_ext >&5
18857
b4e70030 18858ac_cv_member_struct_reg_r_gs=no
3862412b 18859fi
bec39cab 18860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18861fi
5c45e068
MK
18862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18863fi
b4e70030
JB
18864echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
18865echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
18866if test $ac_cv_member_struct_reg_r_gs = yes; then
18867
18868cat >>confdefs.h <<_ACEOF
a3828db0 18869#define HAVE_STRUCT_REG_R_GS 1
bec39cab 18870_ACEOF
3862412b 18871
5c45e068 18872
97bf5e38 18873fi
3862412b 18874
5c45e068 18875
a3828db0 18876# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
18877echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
18878echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 18879if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 18880 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 18881else
bec39cab
AC
18882 cat >conftest.$ac_ext <<_ACEOF
18883/* confdefs.h. */
18884_ACEOF
18885cat confdefs.h >>conftest.$ac_ext
18886cat >>conftest.$ac_ext <<_ACEOF
18887/* end confdefs.h. */
a3828db0 18888#include <sys/ptrace.h>
bec39cab
AC
18889int
18890main ()
18891{
a3828db0 18892PTRACE_GETREGS;
bec39cab
AC
18893 ;
18894 return 0;
18895}
18896_ACEOF
18897rm -f conftest.$ac_objext
18898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18899 (eval $ac_compile) 2>conftest.er1
18900 ac_status=$?
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
b4e70030
JB
18906 { ac_try='test -z "$ac_c_werror_flag"
18907 || test ! -s conftest.err'
bec39cab
AC
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest.$ac_objext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
a3828db0 18919 gdb_cv_have_ptrace_getregs=yes
451928c5 18920else
bec39cab
AC
18921 echo "$as_me: failed program was:" >&5
18922sed 's/^/| /' conftest.$ac_ext >&5
18923
b4e70030 18924gdb_cv_have_ptrace_getregs=no
451928c5 18925fi
bec39cab 18926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
18927fi
18928
b4e70030
JB
18929echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
18930echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 18931if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
18932
18933cat >>confdefs.h <<\_ACEOF
a3828db0 18934#define HAVE_PTRACE_GETREGS 1
bec39cab 18935_ACEOF
451928c5 18936
97bf5e38 18937fi
451928c5 18938
a3828db0 18939# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
18940echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
18941echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 18942if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 18943 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 18944else
bec39cab
AC
18945 cat >conftest.$ac_ext <<_ACEOF
18946/* confdefs.h. */
18947_ACEOF
18948cat confdefs.h >>conftest.$ac_ext
18949cat >>conftest.$ac_ext <<_ACEOF
18950/* end confdefs.h. */
a3828db0 18951#include <sys/ptrace.h>
bec39cab
AC
18952int
18953main ()
18954{
a3828db0 18955PTRACE_GETFPXREGS;
bec39cab
AC
18956 ;
18957 return 0;
18958}
18959_ACEOF
18960rm -f conftest.$ac_objext
18961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962 (eval $ac_compile) 2>conftest.er1
18963 ac_status=$?
18964 grep -v '^ *+' conftest.er1 >conftest.err
18965 rm -f conftest.er1
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
b4e70030
JB
18969 { ac_try='test -z "$ac_c_werror_flag"
18970 || test ! -s conftest.err'
bec39cab
AC
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; } &&
18976 { ac_try='test -s conftest.$ac_objext'
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18979 ac_status=$?
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
a3828db0 18982 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 18983else
bec39cab
AC
18984 echo "$as_me: failed program was:" >&5
18985sed 's/^/| /' conftest.$ac_ext >&5
18986
b4e70030 18987gdb_cv_have_ptrace_getfpxregs=no
451928c5 18988fi
bec39cab 18989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
18990fi
18991
b4e70030
JB
18992echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
18993echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 18994if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
18995
18996cat >>confdefs.h <<\_ACEOF
a3828db0 18997#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 18998_ACEOF
451928c5 18999
97bf5e38 19000fi
451928c5 19001
a3828db0 19002# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
19003echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19004echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 19005if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 19006 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19007else
bec39cab
AC
19008 cat >conftest.$ac_ext <<_ACEOF
19009/* confdefs.h. */
19010_ACEOF
19011cat confdefs.h >>conftest.$ac_ext
19012cat >>conftest.$ac_ext <<_ACEOF
19013/* end confdefs.h. */
a3828db0
MK
19014#include <sys/types.h>
19015#include <sys/ptrace.h>
bec39cab
AC
19016int
19017main ()
19018{
a3828db0 19019PT_GETDBREGS;
bec39cab
AC
19020 ;
19021 return 0;
19022}
19023_ACEOF
19024rm -f conftest.$ac_objext
19025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19026 (eval $ac_compile) 2>conftest.er1
19027 ac_status=$?
19028 grep -v '^ *+' conftest.er1 >conftest.err
19029 rm -f conftest.er1
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } &&
b4e70030
JB
19033 { ac_try='test -z "$ac_c_werror_flag"
19034 || test ! -s conftest.err'
bec39cab
AC
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest.$ac_objext'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
a3828db0 19046 gdb_cv_have_pt_getdbregs=yes
3862412b 19047else
bec39cab
AC
19048 echo "$as_me: failed program was:" >&5
19049sed 's/^/| /' conftest.$ac_ext >&5
19050
b4e70030 19051gdb_cv_have_pt_getdbregs=no
3862412b 19052fi
bec39cab 19053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19054fi
19055
b4e70030
JB
19056echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19057echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 19058if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
19059
19060cat >>confdefs.h <<\_ACEOF
a3828db0 19061#define HAVE_PT_GETDBREGS 1
bec39cab 19062_ACEOF
3862412b 19063
97bf5e38 19064fi
3862412b 19065
a3828db0 19066# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
19067echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19068echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 19069if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 19070 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19071else
bec39cab
AC
19072 cat >conftest.$ac_ext <<_ACEOF
19073/* confdefs.h. */
19074_ACEOF
19075cat confdefs.h >>conftest.$ac_ext
19076cat >>conftest.$ac_ext <<_ACEOF
19077/* end confdefs.h. */
a3828db0
MK
19078#include <sys/types.h>
19079#include <sys/ptrace.h>
bec39cab
AC
19080int
19081main ()
19082{
a3828db0 19083PT_GETXMMREGS;
bec39cab
AC
19084 ;
19085 return 0;
19086}
19087_ACEOF
19088rm -f conftest.$ac_objext
19089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19090 (eval $ac_compile) 2>conftest.er1
19091 ac_status=$?
19092 grep -v '^ *+' conftest.er1 >conftest.err
19093 rm -f conftest.er1
19094 cat conftest.err >&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } &&
b4e70030
JB
19097 { ac_try='test -z "$ac_c_werror_flag"
19098 || test ! -s conftest.err'
bec39cab
AC
19099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19101 ac_status=$?
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; } &&
19104 { ac_try='test -s conftest.$ac_objext'
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; }; then
a3828db0 19110 gdb_cv_have_pt_getxmmregs=yes
3862412b 19111else
bec39cab
AC
19112 echo "$as_me: failed program was:" >&5
19113sed 's/^/| /' conftest.$ac_ext >&5
19114
b4e70030 19115gdb_cv_have_pt_getxmmregs=no
3862412b 19116fi
bec39cab 19117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19118fi
19119
b4e70030
JB
19120echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19121echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 19122if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
19123
19124cat >>confdefs.h <<\_ACEOF
a3828db0 19125#define HAVE_PT_GETXMMREGS 1
bec39cab 19126_ACEOF
3862412b 19127
97bf5e38 19128fi
3862412b 19129
97bf5e38
MK
19130# If we are configured native on GNU/Linux, work around problems with
19131# sys/procfs.h
19132# Also detect which type of /proc is in use, such as for Unixware or Solaris.
19133
19134if test "${target}" = "${host}"; then
19135 case "${host}" in
19136 i[3456]86-*-linux*)
60ca704f
SE
19137
19138cat >>confdefs.h <<\_ACEOF
97bf5e38 19139#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 19140_ACEOF
97bf5e38 19141
60ca704f
SE
19142
19143cat >>confdefs.h <<\_ACEOF
97bf5e38 19144#define sys_quotactl 1
bec39cab 19145_ACEOF
97bf5e38
MK
19146
19147 ;;
97bf5e38 19148 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
19149
19150cat >>confdefs.h <<\_ACEOF
97bf5e38 19151#define NEW_PROC_API 1
bec39cab 19152_ACEOF
97bf5e38
MK
19153
19154 ;;
0bbc026e 19155 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
19156
19157cat >>confdefs.h <<\_ACEOF
97bf5e38 19158#define NEW_PROC_API 1
bec39cab 19159_ACEOF
c960c18f
AC
19160
19161 ;;
19162 mips-sgi-irix5*)
19163 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
19164
19165cat >>confdefs.h <<\_ACEOF
c960c18f 19166#define _KMEMUSER 1
bec39cab 19167_ACEOF
97bf5e38
MK
19168
19169 ;;
19170 esac
19171fi
19172
19173if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
19174 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19175echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19176 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178else
19179 cat >conftest.$ac_ext <<_ACEOF
19180/* confdefs.h. */
19181_ACEOF
19182cat confdefs.h >>conftest.$ac_ext
19183cat >>conftest.$ac_ext <<_ACEOF
19184/* end confdefs.h. */
596c9d4b
KB
19185
19186#define _SYSCALL32
19187#include <sys/procfs.h>
bec39cab
AC
19188int
19189main ()
19190{
97bf5e38 19191pstatus_t avar
bec39cab
AC
19192 ;
19193 return 0;
19194}
19195_ACEOF
19196rm -f conftest.$ac_objext
19197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198 (eval $ac_compile) 2>conftest.er1
19199 ac_status=$?
19200 grep -v '^ *+' conftest.er1 >conftest.err
19201 rm -f conftest.er1
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
b4e70030
JB
19205 { ac_try='test -z "$ac_c_werror_flag"
19206 || test ! -s conftest.err'
bec39cab
AC
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest.$ac_objext'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
97bf5e38 19218 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 19219else
bec39cab
AC
19220 echo "$as_me: failed program was:" >&5
19221sed 's/^/| /' conftest.$ac_ext >&5
19222
b4e70030 19223bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 19224
596c9d4b 19225fi
bec39cab 19226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19227fi
19228
97bf5e38 19229 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
19230
19231cat >>confdefs.h <<\_ACEOF
97bf5e38 19232#define HAVE_PSTATUS_T 1
bec39cab 19233_ACEOF
596c9d4b
KB
19234
19235 fi
b4e70030
JB
19236 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19237echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 19238
b4e70030
JB
19239 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19240echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19241 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19243else
bec39cab
AC
19244 cat >conftest.$ac_ext <<_ACEOF
19245/* confdefs.h. */
19246_ACEOF
19247cat confdefs.h >>conftest.$ac_ext
19248cat >>conftest.$ac_ext <<_ACEOF
19249/* end confdefs.h. */
596c9d4b
KB
19250
19251#define _SYSCALL32
19252#include <sys/procfs.h>
bec39cab
AC
19253int
19254main ()
19255{
97bf5e38 19256prrun_t avar
bec39cab
AC
19257 ;
19258 return 0;
19259}
19260_ACEOF
19261rm -f conftest.$ac_objext
19262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19263 (eval $ac_compile) 2>conftest.er1
19264 ac_status=$?
19265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
b4e70030
JB
19270 { ac_try='test -z "$ac_c_werror_flag"
19271 || test ! -s conftest.err'
bec39cab
AC
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; } &&
19277 { ac_try='test -s conftest.$ac_objext'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; }; then
97bf5e38 19283 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 19284else
bec39cab
AC
19285 echo "$as_me: failed program was:" >&5
19286sed 's/^/| /' conftest.$ac_ext >&5
19287
b4e70030 19288bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 19289
596c9d4b 19290fi
bec39cab 19291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19292fi
19293
97bf5e38 19294 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
19295
19296cat >>confdefs.h <<\_ACEOF
97bf5e38 19297#define HAVE_PRRUN_T 1
bec39cab 19298_ACEOF
596c9d4b
KB
19299
19300 fi
b4e70030
JB
19301 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19302echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 19303
b4e70030
JB
19304 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19305echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19306 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19308else
bec39cab
AC
19309 cat >conftest.$ac_ext <<_ACEOF
19310/* confdefs.h. */
19311_ACEOF
19312cat confdefs.h >>conftest.$ac_ext
19313cat >>conftest.$ac_ext <<_ACEOF
19314/* end confdefs.h. */
596c9d4b
KB
19315
19316#define _SYSCALL32
19317#include <sys/procfs.h>
bec39cab
AC
19318int
19319main ()
19320{
97bf5e38 19321gregset_t avar
bec39cab
AC
19322 ;
19323 return 0;
19324}
19325_ACEOF
19326rm -f conftest.$ac_objext
19327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19328 (eval $ac_compile) 2>conftest.er1
19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
b4e70030
JB
19335 { ac_try='test -z "$ac_c_werror_flag"
19336 || test ! -s conftest.err'
bec39cab
AC
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; } &&
19342 { ac_try='test -s conftest.$ac_objext'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
97bf5e38 19348 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 19349else
bec39cab
AC
19350 echo "$as_me: failed program was:" >&5
19351sed 's/^/| /' conftest.$ac_ext >&5
19352
b4e70030 19353bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 19354
596c9d4b 19355fi
bec39cab 19356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19357fi
19358
97bf5e38 19359 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
19360
19361cat >>confdefs.h <<\_ACEOF
97bf5e38 19362#define HAVE_GREGSET_T 1
bec39cab 19363_ACEOF
596c9d4b
KB
19364
19365 fi
b4e70030
JB
19366 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19367echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 19368
b4e70030
JB
19369 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19370echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19371 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 19373else
bec39cab
AC
19374 cat >conftest.$ac_ext <<_ACEOF
19375/* confdefs.h. */
19376_ACEOF
19377cat confdefs.h >>conftest.$ac_ext
19378cat >>conftest.$ac_ext <<_ACEOF
19379/* end confdefs.h. */
97bf5e38
MK
19380
19381#define _SYSCALL32
d84dd0c5 19382#include <sys/procfs.h>
bec39cab
AC
19383int
19384main ()
19385{
97bf5e38 19386fpregset_t avar
bec39cab
AC
19387 ;
19388 return 0;
19389}
19390_ACEOF
19391rm -f conftest.$ac_objext
19392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19393 (eval $ac_compile) 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
b4e70030
JB
19400 { ac_try='test -z "$ac_c_werror_flag"
19401 || test ! -s conftest.err'
bec39cab
AC
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; } &&
19407 { ac_try='test -s conftest.$ac_objext'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
97bf5e38 19413 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 19414else
bec39cab
AC
19415 echo "$as_me: failed program was:" >&5
19416sed 's/^/| /' conftest.$ac_ext >&5
19417
b4e70030 19418bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 19419
d84dd0c5 19420fi
bec39cab 19421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
19422fi
19423
97bf5e38 19424 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
19425
19426cat >>confdefs.h <<\_ACEOF
97bf5e38 19427#define HAVE_FPREGSET_T 1
bec39cab 19428_ACEOF
d84dd0c5 19429
97bf5e38 19430 fi
b4e70030
JB
19431 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19432echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 19433
b4e70030
JB
19434 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19435echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19436 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19438else
bec39cab
AC
19439 cat >conftest.$ac_ext <<_ACEOF
19440/* confdefs.h. */
19441_ACEOF
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
c906108c 19445
97bf5e38
MK
19446#define _SYSCALL32
19447#include <sys/procfs.h>
bec39cab
AC
19448int
19449main ()
19450{
97bf5e38 19451prgregset_t avar
bec39cab
AC
19452 ;
19453 return 0;
19454}
19455_ACEOF
19456rm -f conftest.$ac_objext
19457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19458 (eval $ac_compile) 2>conftest.er1
19459 ac_status=$?
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
b4e70030
JB
19465 { ac_try='test -z "$ac_c_werror_flag"
19466 || test ! -s conftest.err'
bec39cab
AC
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest.$ac_objext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
97bf5e38 19478 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 19479else
bec39cab
AC
19480 echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
b4e70030 19483bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 19484
c906108c 19485fi
bec39cab 19486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19487fi
19488
97bf5e38 19489 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
19490
19491cat >>confdefs.h <<\_ACEOF
97bf5e38 19492#define HAVE_PRGREGSET_T 1
bec39cab 19493_ACEOF
c906108c 19494
97bf5e38 19495 fi
b4e70030
JB
19496 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19497echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 19498
b4e70030
JB
19499 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19500echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19501 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19503else
bec39cab
AC
19504 cat >conftest.$ac_ext <<_ACEOF
19505/* confdefs.h. */
19506_ACEOF
19507cat confdefs.h >>conftest.$ac_ext
19508cat >>conftest.$ac_ext <<_ACEOF
19509/* end confdefs.h. */
97bf5e38
MK
19510
19511#define _SYSCALL32
19512#include <sys/procfs.h>
bec39cab
AC
19513int
19514main ()
19515{
97bf5e38 19516prfpregset_t avar
bec39cab
AC
19517 ;
19518 return 0;
19519}
19520_ACEOF
19521rm -f conftest.$ac_objext
19522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19523 (eval $ac_compile) 2>conftest.er1
19524 ac_status=$?
19525 grep -v '^ *+' conftest.er1 >conftest.err
19526 rm -f conftest.er1
19527 cat conftest.err >&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } &&
b4e70030
JB
19530 { ac_try='test -z "$ac_c_werror_flag"
19531 || test ! -s conftest.err'
bec39cab
AC
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; } &&
19537 { ac_try='test -s conftest.$ac_objext'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
97bf5e38 19543 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 19544else
bec39cab
AC
19545 echo "$as_me: failed program was:" >&5
19546sed 's/^/| /' conftest.$ac_ext >&5
19547
b4e70030 19548bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 19549
d45fe813 19550fi
bec39cab 19551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19552fi
19553
97bf5e38 19554 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
19555
19556cat >>confdefs.h <<\_ACEOF
97bf5e38 19557#define HAVE_PRFPREGSET_T 1
bec39cab 19558_ACEOF
d45fe813 19559
97bf5e38 19560 fi
b4e70030
JB
19561 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19562echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 19563
b4e70030
JB
19564 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19565echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19566 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19568else
bec39cab
AC
19569 cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
97bf5e38
MK
19575
19576#define _SYSCALL32
19577#include <sys/procfs.h>
bec39cab
AC
19578int
19579main ()
19580{
97bf5e38 19581prgregset32_t avar
bec39cab
AC
19582 ;
19583 return 0;
19584}
19585_ACEOF
19586rm -f conftest.$ac_objext
19587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19588 (eval $ac_compile) 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } &&
b4e70030
JB
19595 { ac_try='test -z "$ac_c_werror_flag"
19596 || test ! -s conftest.err'
bec39cab
AC
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
97bf5e38 19608 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 19609else
bec39cab
AC
19610 echo "$as_me: failed program was:" >&5
19611sed 's/^/| /' conftest.$ac_ext >&5
19612
b4e70030 19613bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 19614
d45fe813 19615fi
bec39cab 19616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19617fi
19618
97bf5e38 19619 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
19620
19621cat >>confdefs.h <<\_ACEOF
97bf5e38 19622#define HAVE_PRGREGSET32_T 1
bec39cab 19623_ACEOF
d45fe813 19624
97bf5e38 19625 fi
b4e70030
JB
19626 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19627echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 19628
b4e70030
JB
19629 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19630echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19631 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19633else
bec39cab
AC
19634 cat >conftest.$ac_ext <<_ACEOF
19635/* confdefs.h. */
19636_ACEOF
19637cat confdefs.h >>conftest.$ac_ext
19638cat >>conftest.$ac_ext <<_ACEOF
19639/* end confdefs.h. */
97bf5e38
MK
19640
19641#define _SYSCALL32
19642#include <sys/procfs.h>
bec39cab
AC
19643int
19644main ()
19645{
97bf5e38 19646prfpregset32_t avar
bec39cab
AC
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19653 (eval $ac_compile) 2>conftest.er1
19654 ac_status=$?
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
b4e70030
JB
19660 { ac_try='test -z "$ac_c_werror_flag"
19661 || test ! -s conftest.err'
bec39cab
AC
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; } &&
19667 { ac_try='test -s conftest.$ac_objext'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
97bf5e38 19673 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 19674else
bec39cab
AC
19675 echo "$as_me: failed program was:" >&5
19676sed 's/^/| /' conftest.$ac_ext >&5
19677
b4e70030 19678bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 19679
d45fe813 19680fi
bec39cab 19681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19682fi
19683
97bf5e38 19684 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
19685
19686cat >>confdefs.h <<\_ACEOF
97bf5e38 19687#define HAVE_PRFPREGSET32_T 1
bec39cab 19688_ACEOF
d45fe813 19689
97bf5e38 19690 fi
b4e70030
JB
19691 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19692echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 19693
b4e70030
JB
19694 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19695echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19696 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19698else
bec39cab
AC
19699 cat >conftest.$ac_ext <<_ACEOF
19700/* confdefs.h. */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h. */
97bf5e38 19705
d45fe813 19706#define _SYSCALL32
97bf5e38 19707#include <sys/procfs.h>
bec39cab
AC
19708int
19709main ()
19710{
97bf5e38 19711lwpid_t avar
bec39cab
AC
19712 ;
19713 return 0;
19714}
19715_ACEOF
19716rm -f conftest.$ac_objext
19717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
b4e70030
JB
19725 { ac_try='test -z "$ac_c_werror_flag"
19726 || test ! -s conftest.err'
bec39cab
AC
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
97bf5e38 19738 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 19739else
bec39cab
AC
19740 echo "$as_me: failed program was:" >&5
19741sed 's/^/| /' conftest.$ac_ext >&5
19742
b4e70030 19743bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 19744
d45fe813 19745fi
bec39cab 19746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19747fi
19748
97bf5e38 19749 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
19750
19751cat >>confdefs.h <<\_ACEOF
97bf5e38 19752#define HAVE_LWPID_T 1
bec39cab 19753_ACEOF
d45fe813 19754
97bf5e38 19755 fi
b4e70030
JB
19756 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19757echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 19758
b4e70030
JB
19759 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19760echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19761 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19763else
bec39cab
AC
19764 cat >conftest.$ac_ext <<_ACEOF
19765/* confdefs.h. */
19766_ACEOF
19767cat confdefs.h >>conftest.$ac_ext
19768cat >>conftest.$ac_ext <<_ACEOF
19769/* end confdefs.h. */
c906108c 19770
97bf5e38
MK
19771#define _SYSCALL32
19772#include <sys/procfs.h>
bec39cab
AC
19773int
19774main ()
19775{
97bf5e38 19776psaddr_t avar
bec39cab
AC
19777 ;
19778 return 0;
19779}
19780_ACEOF
19781rm -f conftest.$ac_objext
19782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19783 (eval $ac_compile) 2>conftest.er1
19784 ac_status=$?
19785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
b4e70030
JB
19790 { ac_try='test -z "$ac_c_werror_flag"
19791 || test ! -s conftest.err'
bec39cab
AC
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try='test -s conftest.$ac_objext'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
97bf5e38 19803 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 19804else
bec39cab
AC
19805 echo "$as_me: failed program was:" >&5
19806sed 's/^/| /' conftest.$ac_ext >&5
19807
b4e70030 19808bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 19809
c906108c 19810fi
bec39cab 19811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19812fi
19813
97bf5e38 19814 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
19815
19816cat >>confdefs.h <<\_ACEOF
97bf5e38 19817#define HAVE_PSADDR_T 1
bec39cab 19818_ACEOF
c906108c 19819
97bf5e38 19820 fi
b4e70030
JB
19821 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19822echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 19823
b4e70030
JB
19824 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19825echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19826 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19828else
bec39cab
AC
19829 cat >conftest.$ac_ext <<_ACEOF
19830/* confdefs.h. */
19831_ACEOF
19832cat confdefs.h >>conftest.$ac_ext
19833cat >>conftest.$ac_ext <<_ACEOF
19834/* end confdefs.h. */
c906108c 19835
97bf5e38
MK
19836#define _SYSCALL32
19837#include <sys/procfs.h>
bec39cab
AC
19838int
19839main ()
19840{
97bf5e38 19841prsysent_t avar
bec39cab
AC
19842 ;
19843 return 0;
19844}
19845_ACEOF
19846rm -f conftest.$ac_objext
19847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19848 (eval $ac_compile) 2>conftest.er1
19849 ac_status=$?
19850 grep -v '^ *+' conftest.er1 >conftest.err
19851 rm -f conftest.er1
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } &&
b4e70030
JB
19855 { ac_try='test -z "$ac_c_werror_flag"
19856 || test ! -s conftest.err'
bec39cab
AC
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; } &&
19862 { ac_try='test -s conftest.$ac_objext'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
97bf5e38 19868 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 19869else
bec39cab
AC
19870 echo "$as_me: failed program was:" >&5
19871sed 's/^/| /' conftest.$ac_ext >&5
19872
b4e70030 19873bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 19874
c906108c 19875fi
bec39cab 19876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19877fi
19878
97bf5e38 19879 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
19880
19881cat >>confdefs.h <<\_ACEOF
97bf5e38 19882#define HAVE_PRSYSENT_T 1
bec39cab 19883_ACEOF
c906108c 19884
97bf5e38 19885 fi
b4e70030
JB
19886 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
19887echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 19888
b4e70030
JB
19889 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
19890echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19891 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19893else
bec39cab
AC
19894 cat >conftest.$ac_ext <<_ACEOF
19895/* confdefs.h. */
19896_ACEOF
19897cat confdefs.h >>conftest.$ac_ext
19898cat >>conftest.$ac_ext <<_ACEOF
19899/* end confdefs.h. */
c906108c 19900
97bf5e38
MK
19901#define _SYSCALL32
19902#include <sys/procfs.h>
bec39cab
AC
19903int
19904main ()
19905{
97bf5e38 19906pr_sigset_t avar
bec39cab
AC
19907 ;
19908 return 0;
19909}
19910_ACEOF
19911rm -f conftest.$ac_objext
19912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19913 (eval $ac_compile) 2>conftest.er1
19914 ac_status=$?
19915 grep -v '^ *+' conftest.er1 >conftest.err
19916 rm -f conftest.er1
19917 cat conftest.err >&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } &&
b4e70030
JB
19920 { ac_try='test -z "$ac_c_werror_flag"
19921 || test ! -s conftest.err'
bec39cab
AC
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; } &&
19927 { ac_try='test -s conftest.$ac_objext'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
97bf5e38 19933 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 19934else
bec39cab
AC
19935 echo "$as_me: failed program was:" >&5
19936sed 's/^/| /' conftest.$ac_ext >&5
19937
b4e70030 19938bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 19939
c906108c 19940fi
bec39cab 19941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19942fi
19943
97bf5e38 19944 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
19945
19946cat >>confdefs.h <<\_ACEOF
97bf5e38 19947#define HAVE_PR_SIGSET_T 1
bec39cab 19948_ACEOF
c906108c 19949
97bf5e38 19950 fi
b4e70030
JB
19951 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
19952echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 19953
b4e70030
JB
19954 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
19955echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19956 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19958else
bec39cab
AC
19959 cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h. */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h. */
c906108c 19965
97bf5e38
MK
19966#define _SYSCALL32
19967#include <sys/procfs.h>
bec39cab
AC
19968int
19969main ()
19970{
97bf5e38 19971pr_sigaction64_t avar
bec39cab
AC
19972 ;
19973 return 0;
19974}
19975_ACEOF
19976rm -f conftest.$ac_objext
19977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19978 (eval $ac_compile) 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
b4e70030
JB
19985 { ac_try='test -z "$ac_c_werror_flag"
19986 || test ! -s conftest.err'
bec39cab
AC
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; } &&
19992 { ac_try='test -s conftest.$ac_objext'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; }; then
97bf5e38 19998 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 19999else
bec39cab
AC
20000 echo "$as_me: failed program was:" >&5
20001sed 's/^/| /' conftest.$ac_ext >&5
20002
b4e70030 20003bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 20004
c906108c 20005fi
bec39cab 20006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20007fi
20008
97bf5e38 20009 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
20010
20011cat >>confdefs.h <<\_ACEOF
97bf5e38 20012#define HAVE_PR_SIGACTION64_T 1
bec39cab 20013_ACEOF
c906108c 20014
97bf5e38 20015 fi
b4e70030
JB
20016 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20017echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 20018
b4e70030
JB
20019 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20020echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20021 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20023else
bec39cab
AC
20024 cat >conftest.$ac_ext <<_ACEOF
20025/* confdefs.h. */
20026_ACEOF
20027cat confdefs.h >>conftest.$ac_ext
20028cat >>conftest.$ac_ext <<_ACEOF
20029/* end confdefs.h. */
97bf5e38
MK
20030
20031#define _SYSCALL32
20032#include <sys/procfs.h>
bec39cab
AC
20033int
20034main ()
20035{
97bf5e38 20036pr_siginfo64_t avar
bec39cab
AC
20037 ;
20038 return 0;
20039}
20040_ACEOF
20041rm -f conftest.$ac_objext
20042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20043 (eval $ac_compile) 2>conftest.er1
20044 ac_status=$?
20045 grep -v '^ *+' conftest.er1 >conftest.err
20046 rm -f conftest.er1
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } &&
b4e70030
JB
20050 { ac_try='test -z "$ac_c_werror_flag"
20051 || test ! -s conftest.err'
bec39cab
AC
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; } &&
20057 { ac_try='test -s conftest.$ac_objext'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
97bf5e38
MK
20063 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20064else
bec39cab
AC
20065 echo "$as_me: failed program was:" >&5
20066sed 's/^/| /' conftest.$ac_ext >&5
20067
b4e70030 20068bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 20069
97bf5e38 20070fi
bec39cab 20071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20072fi
c906108c 20073
97bf5e38 20074 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
20075
20076cat >>confdefs.h <<\_ACEOF
97bf5e38 20077#define HAVE_PR_SIGINFO64_T 1
bec39cab 20078_ACEOF
c906108c 20079
97bf5e38 20080 fi
b4e70030
JB
20081 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20082echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
20083
20084
97bf5e38
MK
20085
20086
20087
97bf5e38 20088 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
20089 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20090echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
20091 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
20093else
20094 if test "$cross_compiling" = yes; then
97bf5e38 20095 gdb_cv_prfpregset_t_broken=yes
c906108c 20096else
bec39cab
AC
20097 cat >conftest.$ac_ext <<_ACEOF
20098/* confdefs.h. */
20099_ACEOF
20100cat confdefs.h >>conftest.$ac_ext
20101cat >>conftest.$ac_ext <<_ACEOF
20102/* end confdefs.h. */
97bf5e38
MK
20103#include <sys/procfs.h>
20104 int main ()
20105 {
20106 if (sizeof (prfpregset_t) == sizeof (void *))
20107 return 1;
20108 return 0;
20109 }
bec39cab
AC
20110_ACEOF
20111rm -f conftest$ac_exeext
20112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20113 (eval $ac_link) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
97bf5e38 20122 gdb_cv_prfpregset_t_broken=no
c906108c 20123else
bec39cab
AC
20124 echo "$as_me: program exited with status $ac_status" >&5
20125echo "$as_me: failed program was:" >&5
20126sed 's/^/| /' conftest.$ac_ext >&5
20127
20128( exit $ac_status )
20129gdb_cv_prfpregset_t_broken=yes
c906108c 20130fi
b4e70030 20131rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20132fi
c906108c
SS
20133fi
20134
b4e70030
JB
20135 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20136echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 20137 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
20138
20139cat >>confdefs.h <<\_ACEOF
97bf5e38 20140#define PRFPREGSET_T_BROKEN 1
bec39cab 20141_ACEOF
c906108c 20142
97bf5e38
MK
20143 fi
20144 fi
c906108c 20145
bec39cab 20146
b4e70030
JB
20147 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20148echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20149 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20151else
bec39cab
AC
20152 cat >conftest.$ac_ext <<_ACEOF
20153/* confdefs.h. */
20154_ACEOF
20155cat confdefs.h >>conftest.$ac_ext
20156cat >>conftest.$ac_ext <<_ACEOF
20157/* end confdefs.h. */
97bf5e38
MK
20158#include <unistd.h>
20159#include <sys/types.h>
20160#include <sys/procfs.h>
20161
bec39cab
AC
20162int
20163main ()
20164{
97bf5e38
MK
20165
20166 int dummy;;
20167 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
20168
20169 ;
20170 return 0;
20171}
20172_ACEOF
20173rm -f conftest.$ac_objext
20174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20175 (eval $ac_compile) 2>conftest.er1
20176 ac_status=$?
20177 grep -v '^ *+' conftest.er1 >conftest.err
20178 rm -f conftest.er1
20179 cat conftest.err >&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
b4e70030
JB
20182 { ac_try='test -z "$ac_c_werror_flag"
20183 || test ! -s conftest.err'
bec39cab
AC
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } &&
20189 { ac_try='test -s conftest.$ac_objext'
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; }; then
97bf5e38 20195 gdb_cv_have_procfs_piocset=yes
c906108c 20196else
bec39cab
AC
20197 echo "$as_me: failed program was:" >&5
20198sed 's/^/| /' conftest.$ac_ext >&5
20199
b4e70030 20200gdb_cv_have_procfs_piocset=no
c906108c 20201fi
bec39cab 20202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20203fi
97bf5e38 20204
b4e70030
JB
20205 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20206echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 20207 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
20208
20209cat >>confdefs.h <<\_ACEOF
97bf5e38 20210#define HAVE_PROCFS_PIOCSET 1
bec39cab 20211_ACEOF
97bf5e38
MK
20212
20213 fi
c906108c 20214fi
c906108c 20215
97bf5e38 20216if test ${host} = ${target} ; then
bec39cab 20217
b4e70030
JB
20218 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20219echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20220 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222else
20223 cat >conftest.$ac_ext <<_ACEOF
20224/* confdefs.h. */
20225_ACEOF
20226cat confdefs.h >>conftest.$ac_ext
20227cat >>conftest.$ac_ext <<_ACEOF
20228/* end confdefs.h. */
97bf5e38 20229#include <link.h>
bec39cab
AC
20230int
20231main ()
20232{
97bf5e38 20233struct link_map lm; (void) lm.l_addr;
bec39cab
AC
20234 ;
20235 return 0;
20236}
20237_ACEOF
20238rm -f conftest.$ac_objext
20239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20240 (eval $ac_compile) 2>conftest.er1
20241 ac_status=$?
20242 grep -v '^ *+' conftest.er1 >conftest.err
20243 rm -f conftest.er1
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } &&
b4e70030
JB
20247 { ac_try='test -z "$ac_c_werror_flag"
20248 || test ! -s conftest.err'
bec39cab
AC
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; } &&
20254 { ac_try='test -s conftest.$ac_objext'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20257 ac_status=$?
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
97bf5e38 20260 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 20261else
bec39cab
AC
20262 echo "$as_me: failed program was:" >&5
20263sed 's/^/| /' conftest.$ac_ext >&5
20264
b4e70030 20265gdb_cv_have_struct_link_map_with_l_members=no
c906108c 20266fi
bec39cab 20267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20268fi
20269
b4e70030
JB
20270 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20271echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 20272 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
20273
20274cat >>confdefs.h <<\_ACEOF
97bf5e38 20275#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 20276_ACEOF
97bf5e38
MK
20277
20278 fi
20279
bec39cab 20280
b4e70030
JB
20281 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20282echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20283 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20285else
bec39cab
AC
20286 cat >conftest.$ac_ext <<_ACEOF
20287/* confdefs.h. */
20288_ACEOF
20289cat confdefs.h >>conftest.$ac_ext
20290cat >>conftest.$ac_ext <<_ACEOF
20291/* end confdefs.h. */
97bf5e38
MK
20292#include <sys/types.h>
20293#include <link.h>
bec39cab
AC
20294int
20295main ()
20296{
97bf5e38 20297struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
20298 ;
20299 return 0;
20300}
20301_ACEOF
20302rm -f conftest.$ac_objext
20303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20304 (eval $ac_compile) 2>conftest.er1
20305 ac_status=$?
20306 grep -v '^ *+' conftest.er1 >conftest.err
20307 rm -f conftest.er1
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } &&
b4e70030
JB
20311 { ac_try='test -z "$ac_c_werror_flag"
20312 || test ! -s conftest.err'
bec39cab
AC
20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314 (eval $ac_try) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; } &&
20318 { ac_try='test -s conftest.$ac_objext'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; }; then
97bf5e38
MK
20324 gdb_cv_have_struct_link_map_with_lm_members=yes
20325else
bec39cab
AC
20326 echo "$as_me: failed program was:" >&5
20327sed 's/^/| /' conftest.$ac_ext >&5
20328
b4e70030 20329gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 20330fi
bec39cab 20331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20332fi
c906108c 20333
b4e70030
JB
20334 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20335echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 20336 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
20337
20338cat >>confdefs.h <<\_ACEOF
97bf5e38 20339#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 20340_ACEOF
97bf5e38
MK
20341
20342 fi
20343
bec39cab 20344
b4e70030
JB
20345 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20346echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
20347 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20349else
bec39cab
AC
20350 cat >conftest.$ac_ext <<_ACEOF
20351/* confdefs.h. */
20352_ACEOF
20353cat confdefs.h >>conftest.$ac_ext
20354cat >>conftest.$ac_ext <<_ACEOF
20355/* end confdefs.h. */
97bf5e38
MK
20356#include <sys/types.h>
20357#ifdef HAVE_NLIST_H
20358#include <nlist.h>
20359#endif
20360#include <link.h>
bec39cab
AC
20361int
20362main ()
20363{
97bf5e38 20364struct so_map lm; (void) lm.som_addr;
bec39cab
AC
20365 ;
20366 return 0;
20367}
20368_ACEOF
20369rm -f conftest.$ac_objext
20370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20371 (eval $ac_compile) 2>conftest.er1
20372 ac_status=$?
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
b4e70030
JB
20378 { ac_try='test -z "$ac_c_werror_flag"
20379 || test ! -s conftest.err'
bec39cab
AC
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest.$ac_objext'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20388 ac_status=$?
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
97bf5e38
MK
20391 gdb_cv_have_struct_so_map_with_som_members=yes
20392else
bec39cab
AC
20393 echo "$as_me: failed program was:" >&5
20394sed 's/^/| /' conftest.$ac_ext >&5
20395
b4e70030 20396gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 20397fi
bec39cab 20398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20399fi
c906108c 20400
b4e70030
JB
20401 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20402echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 20403 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
20404
20405cat >>confdefs.h <<\_ACEOF
97bf5e38 20406#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 20407_ACEOF
c906108c 20408
97bf5e38 20409 fi
c906108c 20410
bec39cab 20411
b4e70030
JB
20412 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20413echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
20414 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20416else
bec39cab
AC
20417 cat >conftest.$ac_ext <<_ACEOF
20418/* confdefs.h. */
20419_ACEOF
20420cat confdefs.h >>conftest.$ac_ext
20421cat >>conftest.$ac_ext <<_ACEOF
20422/* end confdefs.h. */
97bf5e38
MK
20423#define _SYSCALL32
20424#include <sys/link.h>
bec39cab
AC
20425int
20426main ()
20427{
97bf5e38 20428struct link_map32 l;
bec39cab
AC
20429 ;
20430 return 0;
20431}
20432_ACEOF
20433rm -f conftest.$ac_objext
20434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20435 (eval $ac_compile) 2>conftest.er1
20436 ac_status=$?
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
b4e70030
JB
20442 { ac_try='test -z "$ac_c_werror_flag"
20443 || test ! -s conftest.err'
bec39cab
AC
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; } &&
20449 { ac_try='test -s conftest.$ac_objext'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; }; then
97bf5e38
MK
20455 gdb_cv_have_struct_link_map32=yes
20456else
bec39cab
AC
20457 echo "$as_me: failed program was:" >&5
20458sed 's/^/| /' conftest.$ac_ext >&5
20459
b4e70030 20460gdb_cv_have_struct_link_map32=no
97bf5e38 20461fi
bec39cab 20462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20463fi
c906108c 20464
b4e70030
JB
20465 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20466echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 20467 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
20468
20469cat >>confdefs.h <<\_ACEOF
97bf5e38 20470#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 20471_ACEOF
c906108c 20472
60ca704f
SE
20473
20474cat >>confdefs.h <<\_ACEOF
97bf5e38 20475#define _SYSCALL32 1
bec39cab 20476_ACEOF
c906108c 20477
97bf5e38
MK
20478 fi
20479fi
c906108c 20480
bc8bcb4b 20481# Check if the compiler supports the `long long' type.
c906108c 20482
b4e70030
JB
20483echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20484echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
20485if test "${gdb_cv_c_long_long+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20487else
bec39cab
AC
20488 cat >conftest.$ac_ext <<_ACEOF
20489/* confdefs.h. */
20490_ACEOF
20491cat confdefs.h >>conftest.$ac_ext
20492cat >>conftest.$ac_ext <<_ACEOF
20493/* end confdefs.h. */
bc8bcb4b 20494extern long long foo;
bec39cab
AC
20495int
20496main ()
20497{
bc8bcb4b 20498switch (foo & 2) { case 0: return 1; }
bec39cab
AC
20499 ;
20500 return 0;
20501}
20502_ACEOF
20503rm -f conftest.$ac_objext
20504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20505 (eval $ac_compile) 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
b4e70030
JB
20512 { ac_try='test -z "$ac_c_werror_flag"
20513 || test ! -s conftest.err'
bec39cab
AC
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; } &&
20519 { ac_try='test -s conftest.$ac_objext'
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
97bf5e38
MK
20525 gdb_cv_c_long_long=yes
20526else
bec39cab
AC
20527 echo "$as_me: failed program was:" >&5
20528sed 's/^/| /' conftest.$ac_ext >&5
20529
b4e70030 20530gdb_cv_c_long_long=no
97bf5e38 20531fi
bec39cab 20532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20533fi
b4e70030
JB
20534echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20535echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 20536if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
20537
20538cat >>confdefs.h <<\_ACEOF
97bf5e38 20539#define CC_HAS_LONG_LONG 1
bec39cab 20540_ACEOF
97bf5e38
MK
20541
20542fi
20543
bc8bcb4b 20544# Check if the compiler and runtime support printing long longs.
97bf5e38 20545
b4e70030
JB
20546echo "$as_me:$LINENO: checking for long long support in printf" >&5
20547echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
20548if test "${gdb_cv_printf_has_long_long+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20550else
20551 if test "$cross_compiling" = yes; then
20552 gdb_cv_printf_has_long_long=no
20553else
bec39cab
AC
20554 cat >conftest.$ac_ext <<_ACEOF
20555/* confdefs.h. */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h. */
bc8bcb4b
MK
20560$ac_includes_default
20561int
20562main ()
20563{
20564char buf[32];
97bf5e38
MK
20565 long long l = 0;
20566 l = (l << 16) + 0x0123;
20567 l = (l << 16) + 0x4567;
20568 l = (l << 16) + 0x89ab;
20569 l = (l << 16) + 0xcdef;
20570 sprintf (buf, "0x%016llx", l);
20571 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
20572 ;
20573 return 0;
c906108c 20574}
bec39cab
AC
20575_ACEOF
20576rm -f conftest$ac_exeext
20577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20578 (eval $ac_link) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
97bf5e38
MK
20587 gdb_cv_printf_has_long_long=yes
20588else
bec39cab
AC
20589 echo "$as_me: program exited with status $ac_status" >&5
20590echo "$as_me: failed program was:" >&5
20591sed 's/^/| /' conftest.$ac_ext >&5
20592
20593( exit $ac_status )
20594gdb_cv_printf_has_long_long=no
97bf5e38 20595fi
b4e70030 20596rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20597fi
97bf5e38 20598fi
b4e70030
JB
20599echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20600echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 20601if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
20602
20603cat >>confdefs.h <<\_ACEOF
97bf5e38 20604#define PRINTF_HAS_LONG_LONG 1
bec39cab 20605_ACEOF
97bf5e38
MK
20606
20607fi
97bf5e38 20608
bc8bcb4b
MK
20609# Check if the compiler supports the `long double' type. We can't use
20610# AC_C_LONG_DOUBLE because that one does additional checks on the
20611# constants defined in <float.h> that fail on some systems,
20612# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 20613
b4e70030
JB
20614echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20615echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 20616if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 20617 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20618else
bec39cab
AC
20619 cat >conftest.$ac_ext <<_ACEOF
20620/* confdefs.h. */
20621_ACEOF
20622cat confdefs.h >>conftest.$ac_ext
20623cat >>conftest.$ac_ext <<_ACEOF
20624/* end confdefs.h. */
97bf5e38 20625long double foo;
bec39cab
AC
20626_ACEOF
20627rm -f conftest.$ac_objext
20628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20629 (eval $ac_compile) 2>conftest.er1
20630 ac_status=$?
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
b4e70030
JB
20636 { ac_try='test -z "$ac_c_werror_flag"
20637 || test ! -s conftest.err'
bec39cab
AC
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
bc8bcb4b 20649 gdb_cv_c_long_double=yes
97bf5e38 20650else
bec39cab
AC
20651 echo "$as_me: failed program was:" >&5
20652sed 's/^/| /' conftest.$ac_ext >&5
20653
b4e70030 20654gdb_cv_c_long_double=no
97bf5e38 20655fi
bec39cab 20656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20657fi
b4e70030
JB
20658echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20659echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 20660if test $gdb_cv_c_long_double = yes; then
c906108c 20661
bc8bcb4b 20662cat >>confdefs.h <<\_ACEOF
97bf5e38 20663#define HAVE_LONG_DOUBLE 1
bec39cab 20664_ACEOF
97bf5e38
MK
20665
20666fi
20667
bc8bcb4b 20668# Check if the compiler and runtime support printing long doubles.
97bf5e38 20669
b4e70030
JB
20670echo "$as_me:$LINENO: checking for long double support in printf" >&5
20671echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
20672if test "${gdb_cv_printf_has_long_double+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20674else
20675 if test "$cross_compiling" = yes; then
20676 gdb_cv_printf_has_long_double=no
20677else
bec39cab
AC
20678 cat >conftest.$ac_ext <<_ACEOF
20679/* confdefs.h. */
20680_ACEOF
20681cat confdefs.h >>conftest.$ac_ext
20682cat >>conftest.$ac_ext <<_ACEOF
20683/* end confdefs.h. */
bc8bcb4b
MK
20684$ac_includes_default
20685int
20686main ()
20687{
20688char buf[16];
97bf5e38
MK
20689 long double f = 3.141592653;
20690 sprintf (buf, "%Lg", f);
20691 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
20692 ;
20693 return 0;
97bf5e38 20694}
bec39cab
AC
20695_ACEOF
20696rm -f conftest$ac_exeext
20697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20698 (eval $ac_link) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20704 ac_status=$?
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; }; then
97bf5e38 20707 gdb_cv_printf_has_long_double=yes
c906108c 20708else
bec39cab
AC
20709 echo "$as_me: program exited with status $ac_status" >&5
20710echo "$as_me: failed program was:" >&5
20711sed 's/^/| /' conftest.$ac_ext >&5
20712
20713( exit $ac_status )
20714gdb_cv_printf_has_long_double=no
c906108c 20715fi
b4e70030 20716rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20717fi
c906108c 20718fi
b4e70030
JB
20719echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20720echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 20721if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
20722
20723cat >>confdefs.h <<\_ACEOF
97bf5e38 20724#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 20725_ACEOF
97bf5e38
MK
20726
20727fi
97bf5e38 20728
bc8bcb4b 20729# Check if the compiler and runtime support scanning long doubles.
97bf5e38 20730
b4e70030
JB
20731echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20732echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
20733if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20735else
20736 if test "$cross_compiling" = yes; then
20737 gdb_cv_scanf_has_long_double=no
20738else
bec39cab
AC
20739 cat >conftest.$ac_ext <<_ACEOF
20740/* confdefs.h. */
20741_ACEOF
20742cat confdefs.h >>conftest.$ac_ext
20743cat >>conftest.$ac_ext <<_ACEOF
20744/* end confdefs.h. */
bc8bcb4b
MK
20745#include <stdio.h>
20746int
20747main ()
20748{
20749char *buf = "3.141592653";
97bf5e38
MK
20750 long double f = 0;
20751 sscanf (buf, "%Lg", &f);
20752 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
20753 ;
20754 return 0;
97bf5e38 20755}
bec39cab
AC
20756_ACEOF
20757rm -f conftest$ac_exeext
20758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20759 (eval $ac_link) 2>&5
20760 ac_status=$?
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
97bf5e38
MK
20768 gdb_cv_scanf_has_long_double=yes
20769else
bec39cab
AC
20770 echo "$as_me: program exited with status $ac_status" >&5
20771echo "$as_me: failed program was:" >&5
20772sed 's/^/| /' conftest.$ac_ext >&5
20773
20774( exit $ac_status )
20775gdb_cv_scanf_has_long_double=no
97bf5e38 20776fi
b4e70030 20777rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20778fi
c906108c 20779fi
b4e70030
JB
20780echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20781echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 20782if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
20783
20784cat >>confdefs.h <<\_ACEOF
97bf5e38 20785#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 20786_ACEOF
97bf5e38
MK
20787
20788fi
c906108c 20789
438013df
AO
20790case ${host_os} in
20791aix*)
b4e70030
JB
20792 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20793echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
20794if test "${gdb_cv_bigtoc+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 20796else
bec39cab 20797
438013df
AO
20798 SAVE_LDFLAGS=$LDFLAGS
20799
20800 case $GCC in
20801 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20802 *) gdb_cv_bigtoc=-bbigtoc ;;
20803 esac
20804
20805 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
20806 cat >conftest.$ac_ext <<_ACEOF
20807/* confdefs.h. */
20808_ACEOF
20809cat confdefs.h >>conftest.$ac_ext
20810cat >>conftest.$ac_ext <<_ACEOF
20811/* end confdefs.h. */
438013df 20812
bec39cab
AC
20813int
20814main ()
20815{
438013df 20816int i;
bec39cab
AC
20817 ;
20818 return 0;
20819}
20820_ACEOF
20821rm -f conftest.$ac_objext conftest$ac_exeext
20822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20823 (eval $ac_link) 2>conftest.er1
20824 ac_status=$?
20825 grep -v '^ *+' conftest.er1 >conftest.err
20826 rm -f conftest.er1
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } &&
b4e70030
JB
20830 { ac_try='test -z "$ac_c_werror_flag"
20831 || test ! -s conftest.err'
bec39cab
AC
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } &&
20837 { ac_try='test -s conftest$ac_exeext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
438013df
AO
20843 :
20844else
bec39cab
AC
20845 echo "$as_me: failed program was:" >&5
20846sed 's/^/| /' conftest.$ac_ext >&5
20847
b4e70030 20848gdb_cv_bigtoc=
438013df 20849fi
bec39cab
AC
20850rm -f conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
ec76baa5 20852 LDFLAGS="${SAVE_LDFLAGS}"
438013df 20853
bec39cab 20854fi
b4e70030
JB
20855echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
20856echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
20857 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
20858 ;;
20859esac
20860
c906108c
SS
20861
20862
20863if test ${build} = ${host} -a ${host} = ${target} ; then
20864 case ${host_os} in
20865 hpux*)
b4e70030
JB
20866 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
20867echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
20868 if test -f /usr/include/dce/cma_config.h ; then
20869 if test "$GCC" = "yes" ; then
b4e70030
JB
20870 echo "$as_me:$LINENO: result: yes" >&5
20871echo "${ECHO_T}yes" >&6
60ca704f
SE
20872
20873cat >>confdefs.h <<\_ACEOF
c906108c 20874#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 20875_ACEOF
c906108c 20876
3483b318 20877 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
20878 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
20879 else
b4e70030
JB
20880 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
20881echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
20882 fi
20883 else
b4e70030
JB
20884 echo "$as_me:$LINENO: result: no" >&5
20885echo "${ECHO_T}no" >&6
c906108c
SS
20886 fi
20887 ;;
20888 solaris*)
d92419e5
JB
20889 # See if thread_db library is around for Solaris thread debugging.
20890 # Note that we must explicitly test for version 1 of the library
20891 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
20892 # the same API.
b4e70030
JB
20893 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
20894echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 20895 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
20896 echo "$as_me:$LINENO: result: yes" >&5
20897echo "${ECHO_T}yes" >&6
60ca704f
SE
20898
20899cat >>confdefs.h <<\_ACEOF
c906108c 20900#define HAVE_THREAD_DB_LIB 1
bec39cab 20901_ACEOF
c906108c 20902
3483b318 20903 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 20904 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 20905
b4e70030
JB
20906echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20907echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
20908if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20910else
bec39cab 20911 ac_check_lib_save_LIBS=$LIBS
c906108c 20912LIBS="-ldl $LIBS"
bec39cab
AC
20913cat >conftest.$ac_ext <<_ACEOF
20914/* confdefs.h. */
20915_ACEOF
20916cat confdefs.h >>conftest.$ac_ext
20917cat >>conftest.$ac_ext <<_ACEOF
20918/* end confdefs.h. */
20919
b4e70030 20920/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
20921#ifdef __cplusplus
20922extern "C"
20923#endif
b4e70030
JB
20924/* We use char because int might match the return type of a gcc2
20925 builtin and then its argument prototype would still apply. */
bec39cab
AC
20926char dlopen ();
20927int
20928main ()
20929{
b4e70030 20930dlopen ();
bec39cab
AC
20931 ;
20932 return 0;
20933}
20934_ACEOF
20935rm -f conftest.$ac_objext conftest$ac_exeext
20936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20937 (eval $ac_link) 2>conftest.er1
20938 ac_status=$?
20939 grep -v '^ *+' conftest.er1 >conftest.err
20940 rm -f conftest.er1
20941 cat conftest.err >&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } &&
b4e70030
JB
20944 { ac_try='test -z "$ac_c_werror_flag"
20945 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
20951 { ac_try='test -s conftest$ac_exeext'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 ac_cv_lib_dl_dlopen=yes
20958else
20959 echo "$as_me: failed program was:" >&5
20960sed 's/^/| /' conftest.$ac_ext >&5
20961
b4e70030 20962ac_cv_lib_dl_dlopen=no
bec39cab
AC
20963fi
20964rm -f conftest.err conftest.$ac_objext \
20965 conftest$ac_exeext conftest.$ac_ext
20966LIBS=$ac_check_lib_save_LIBS
20967fi
b4e70030
JB
20968echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20969echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
20970if test $ac_cv_lib_dl_dlopen = yes; then
20971 cat >>confdefs.h <<_ACEOF
20972#define HAVE_LIBDL 1
20973_ACEOF
c906108c
SS
20974
20975 LIBS="-ldl $LIBS"
20976
c906108c
SS
20977fi
20978
20979 if test "$GCC" = "yes" ; then
20980 # The GNU linker requires the -export-dynamic option to make
20981 # all symbols visible in the dynamic symbol table.
20982 hold_ldflags=$LDFLAGS
b4e70030
JB
20983 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
20984echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 20985 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
20986 cat >conftest.$ac_ext <<_ACEOF
20987/* confdefs.h. */
20988_ACEOF
20989cat confdefs.h >>conftest.$ac_ext
20990cat >>conftest.$ac_ext <<_ACEOF
20991/* end confdefs.h. */
c906108c 20992
bec39cab
AC
20993int
20994main ()
20995{
c906108c 20996int i;
bec39cab
AC
20997 ;
20998 return 0;
20999}
21000_ACEOF
21001rm -f conftest.$ac_objext conftest$ac_exeext
21002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21003 (eval $ac_link) 2>conftest.er1
21004 ac_status=$?
21005 grep -v '^ *+' conftest.er1 >conftest.err
21006 rm -f conftest.er1
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
b4e70030
JB
21010 { ac_try='test -z "$ac_c_werror_flag"
21011 || test ! -s conftest.err'
bec39cab
AC
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest$ac_exeext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
c906108c
SS
21023 found=yes
21024else
bec39cab
AC
21025 echo "$as_me: failed program was:" >&5
21026sed 's/^/| /' conftest.$ac_ext >&5
21027
b4e70030 21028found=no
c906108c 21029fi
bec39cab
AC
21030rm -f conftest.err conftest.$ac_objext \
21031 conftest$ac_exeext conftest.$ac_ext
c906108c 21032 LDFLAGS=$hold_ldflags
b4e70030
JB
21033 echo "$as_me:$LINENO: result: $found" >&5
21034echo "${ECHO_T}$found" >&6
c906108c
SS
21035 if test $found = yes; then
21036 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21037 fi
21038 fi
21039 # Sun randomly tweaked the prototypes in <proc_service.h>
21040 # at one point.
b4e70030
JB
21041 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21042echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
21043 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21045else
bec39cab
AC
21046
21047 cat >conftest.$ac_ext <<_ACEOF
21048/* confdefs.h. */
21049_ACEOF
21050cat confdefs.h >>conftest.$ac_ext
21051cat >>conftest.$ac_ext <<_ACEOF
21052/* end confdefs.h. */
c906108c
SS
21053
21054 #include <proc_service.h>
21055 ps_err_e ps_pdwrite
21056 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 21057
bec39cab
AC
21058int
21059main ()
21060{
21061
21062 ;
21063 return 0;
21064}
21065_ACEOF
21066rm -f conftest.$ac_objext
21067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21068 (eval $ac_compile) 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
b4e70030
JB
21075 { ac_try='test -z "$ac_c_werror_flag"
21076 || test ! -s conftest.err'
bec39cab
AC
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; } &&
21082 { ac_try='test -s conftest.$ac_objext'
21083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084 (eval $ac_try) 2>&5
21085 ac_status=$?
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; }; then
c906108c
SS
21088 gdb_cv_proc_service_is_old=no
21089else
bec39cab
AC
21090 echo "$as_me: failed program was:" >&5
21091sed 's/^/| /' conftest.$ac_ext >&5
21092
b4e70030 21093gdb_cv_proc_service_is_old=yes
c906108c 21094fi
bec39cab
AC
21095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21096
c906108c
SS
21097fi
21098
b4e70030
JB
21099 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21100echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 21101 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
21102
21103cat >>confdefs.h <<\_ACEOF
c906108c 21104#define PROC_SERVICE_IS_OLD 1
bec39cab 21105_ACEOF
c906108c
SS
21106
21107 fi
21108 else
b4e70030
JB
21109 echo "$as_me:$LINENO: result: no" >&5
21110echo "${ECHO_T}no" >&6
c906108c
SS
21111 fi
21112 ;;
d92419e5 21113 aix*)
b4e70030
JB
21114 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21115echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
21116 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21117 echo $ECHO_N "(cached) $ECHO_C" >&6
21118else
21119 cat >conftest.$ac_ext <<_ACEOF
21120/* confdefs.h. */
21121_ACEOF
21122cat confdefs.h >>conftest.$ac_ext
21123cat >>conftest.$ac_ext <<_ACEOF
21124/* end confdefs.h. */
d92419e5 21125#include <sys/pthdebug.h>
bec39cab
AC
21126int
21127main ()
21128{
d92419e5
JB
21129#ifndef PTHDB_VERSION_3
21130 #error
21131 #endif
bec39cab
AC
21132 ;
21133 return 0;
21134}
21135_ACEOF
21136rm -f conftest.$ac_objext
21137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21138 (eval $ac_compile) 2>conftest.er1
21139 ac_status=$?
21140 grep -v '^ *+' conftest.er1 >conftest.err
21141 rm -f conftest.er1
21142 cat conftest.err >&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } &&
b4e70030
JB
21145 { ac_try='test -z "$ac_c_werror_flag"
21146 || test ! -s conftest.err'
bec39cab
AC
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21149 ac_status=$?
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; } &&
21152 { ac_try='test -s conftest.$ac_objext'
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; }; then
d92419e5
JB
21158 gdb_cv_have_aix_thread_debug=yes
21159else
bec39cab
AC
21160 echo "$as_me: failed program was:" >&5
21161sed 's/^/| /' conftest.$ac_ext >&5
21162
b4e70030 21163gdb_cv_have_aix_thread_debug=no
d92419e5 21164fi
bec39cab 21165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
21166fi
21167
b4e70030
JB
21168 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21169echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
21170 if test $gdb_cv_have_aix_thread_debug = yes; then
21171 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 21172 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
21173 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21174 fi
21175 ;;
c906108c 21176 esac
bec39cab 21177
c906108c
SS
21178fi
21179
3f47be5c 21180if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
21181 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
21182echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
21183if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21185else
21186 cat >conftest.$ac_ext <<_ACEOF
21187/* confdefs.h. */
21188_ACEOF
21189cat confdefs.h >>conftest.$ac_ext
21190cat >>conftest.$ac_ext <<_ACEOF
21191/* end confdefs.h. */
3f47be5c 21192#include <thread_db.h>
bec39cab
AC
21193int
21194main ()
21195{
3f47be5c 21196int i = TD_NOTALLOC;
bec39cab
AC
21197 ;
21198 return 0;
21199}
21200_ACEOF
21201rm -f conftest.$ac_objext
21202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21203 (eval $ac_compile) 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
b4e70030
JB
21210 { ac_try='test -z "$ac_c_werror_flag"
21211 || test ! -s conftest.err'
bec39cab
AC
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
3f47be5c
EZ
21223 gdb_cv_thread_db_h_has_td_notalloc=yes
21224else
bec39cab
AC
21225 echo "$as_me: failed program was:" >&5
21226sed 's/^/| /' conftest.$ac_ext >&5
21227
b4e70030 21228gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 21229
3f47be5c 21230fi
bec39cab 21231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 21232
bec39cab 21233fi
b4e70030
JB
21234echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
21235echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
21236 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
21237echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
21238if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
21239 echo $ECHO_N "(cached) $ECHO_C" >&6
21240else
21241 cat >conftest.$ac_ext <<_ACEOF
21242/* confdefs.h. */
21243_ACEOF
21244cat confdefs.h >>conftest.$ac_ext
21245cat >>conftest.$ac_ext <<_ACEOF
21246/* end confdefs.h. */
21247#include <thread_db.h>
21248int
21249main ()
21250{
21251int i = TD_VERSION;
21252 ;
21253 return 0;
21254}
21255_ACEOF
21256rm -f conftest.$ac_objext
21257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21258 (eval $ac_compile) 2>conftest.er1
21259 ac_status=$?
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
21265 { ac_try='test -z "$ac_c_werror_flag"
21266 || test ! -s conftest.err'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 gdb_cv_thread_db_h_has_td_version=yes
21279else
21280 echo "$as_me: failed program was:" >&5
21281sed 's/^/| /' conftest.$ac_ext >&5
21282
21283gdb_cv_thread_db_h_has_td_version=no
21284
21285fi
21286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21287
21288fi
21289echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21290echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21291 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21292echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21293if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21294 echo $ECHO_N "(cached) $ECHO_C" >&6
21295else
21296 cat >conftest.$ac_ext <<_ACEOF
21297/* confdefs.h. */
21298_ACEOF
21299cat confdefs.h >>conftest.$ac_ext
21300cat >>conftest.$ac_ext <<_ACEOF
21301/* end confdefs.h. */
21302#include <thread_db.h>
21303int
21304main ()
21305{
21306int i = TD_NOTLS;
21307 ;
21308 return 0;
21309}
21310_ACEOF
21311rm -f conftest.$ac_objext
21312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21313 (eval $ac_compile) 2>conftest.er1
21314 ac_status=$?
21315 grep -v '^ *+' conftest.er1 >conftest.err
21316 rm -f conftest.er1
21317 cat conftest.err >&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } &&
21320 { ac_try='test -z "$ac_c_werror_flag"
21321 || test ! -s conftest.err'
21322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21323 (eval $ac_try) 2>&5
21324 ac_status=$?
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; } &&
21327 { ac_try='test -s conftest.$ac_objext'
21328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21329 (eval $ac_try) 2>&5
21330 ac_status=$?
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); }; }; then
21333 gdb_cv_thread_db_h_has_td_notls=yes
21334else
21335 echo "$as_me: failed program was:" >&5
21336sed 's/^/| /' conftest.$ac_ext >&5
21337
21338gdb_cv_thread_db_h_has_td_notls=no
21339
21340fi
21341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21342
21343fi
21344echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21345echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
21346fi
21347if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
21348
21349cat >>confdefs.h <<\_ACEOF
3f47be5c 21350#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 21351_ACEOF
3f47be5c 21352
59f80f10
DJ
21353fi
21354if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21355
21356cat >>confdefs.h <<\_ACEOF
21357#define THREAD_DB_HAS_TD_VERSION 1
21358_ACEOF
21359
21360fi
21361if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21362
21363cat >>confdefs.h <<\_ACEOF
21364#define THREAD_DB_HAS_TD_NOTLS 1
21365_ACEOF
21366
3f47be5c
EZ
21367fi
21368
b757528f 21369if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
21370 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21371echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
21372if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21374else
21375 cat >conftest.$ac_ext <<_ACEOF
21376/* confdefs.h. */
21377_ACEOF
21378cat confdefs.h >>conftest.$ac_ext
21379cat >>conftest.$ac_ext <<_ACEOF
21380/* end confdefs.h. */
b757528f 21381#include <sys/syscall.h>
bec39cab
AC
21382int
21383main ()
21384{
b757528f 21385int i = __NR_tkill;
bec39cab
AC
21386 ;
21387 return 0;
21388}
21389_ACEOF
21390rm -f conftest.$ac_objext
21391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392 (eval $ac_compile) 2>conftest.er1
21393 ac_status=$?
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
b4e70030
JB
21399 { ac_try='test -z "$ac_c_werror_flag"
21400 || test ! -s conftest.err'
bec39cab
AC
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest.$ac_objext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
b757528f
JJ
21412 gdb_cv_sys_syscall_h_has_tkill=yes
21413else
bec39cab
AC
21414 echo "$as_me: failed program was:" >&5
21415sed 's/^/| /' conftest.$ac_ext >&5
21416
b4e70030 21417gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 21418
b757528f 21419fi
bec39cab 21420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 21421
bec39cab 21422fi
b4e70030
JB
21423echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21424echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
21425fi
21426if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
21427
21428cat >>confdefs.h <<\_ACEOF
b757528f 21429#define HAVE_TKILL_SYSCALL 1
bec39cab 21430_ACEOF
b757528f
JJ
21431
21432fi
21433
fb40c209 21434
bec39cab 21435
b4e70030 21436# Check whether --with-sysroot or --without-sysroot was given.
030292b7 21437if test "${with_sysroot+set}" = set; then
b4e70030
JB
21438 withval="$with_sysroot"
21439
030292b7 21440 case ${with_sysroot} in
715d1656 21441 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
21442 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21443 esac
21444
21445 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21446
aa28a74e 21447 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
030292b7
DJ
21448 if test "x$prefix" = xNONE; then
21449 test_prefix=/usr/local
21450 else
21451 test_prefix=$prefix
21452 fi
21453 else
21454 test_prefix=$exec_prefix
21455 fi
21456 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
21457 "${test_prefix}"|"${test_prefix}/"*|\
21458 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
21459 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21460 TARGET_SYSTEM_ROOT_DEFINE="$t"
21461 ;;
21462 esac
21463
21464else
bec39cab 21465
030292b7
DJ
21466 TARGET_SYSTEM_ROOT=
21467 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21468
b4e70030 21469fi;
030292b7
DJ
21470
21471
21472
b4e70030 21473# Check whether --enable-werror or --disable-werror was given.
094a342e 21474if test "${enable_werror+set}" = set; then
b4e70030
JB
21475 enableval="$enable_werror"
21476 case "${enableval}" in
094a342e
MK
21477 yes | y) ERROR_ON_WARNING="yes" ;;
21478 no | n) ERROR_ON_WARNING="no" ;;
21479 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21480echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21481 { (exit 1); exit 1; }; } ;;
21482 esac
b4e70030 21483fi;
094a342e
MK
21484
21485# Enable -Werror by default when using gcc
21486if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21487 ERROR_ON_WARNING=yes
21488fi
21489
21490WERROR_CFLAGS=""
21491if test "${ERROR_ON_WARNING}" = yes ; then
21492 WERROR_CFLAGS="-Werror"
21493fi
21494
aa79a185
DJ
21495# The entries after -Wno-pointer-sign are disabled warnings which may
21496# be enabled in the future, which can not currently be used to build
21497# GDB.
21498# NOTE: If you change this list, remember to update
3b851bce 21499# gdb/doc/gdbint.texinfo.
aa79a185
DJ
21500build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21501-Wformat-nonliteral -Wno-pointer-sign \
21502-Wno-unused -Wno-switch"
a3b362c4 21503
b4e70030 21504# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 21505if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
21506 enableval="$enable_build_warnings"
21507 case "${enableval}" in
c906108c
SS
21508 yes) ;;
21509 no) build_warnings="-w";;
21510 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21511 build_warnings="${build_warnings} ${t}";;
21512 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21513 build_warnings="${t} ${build_warnings}";;
21514 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21515esac
d4f3574e 21516if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 21517 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 21518fi
b4e70030 21519fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 21520if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
21521 enableval="$enable_gdb_build_warnings"
21522 case "${enableval}" in
3b851bce
AC
21523 yes) ;;
21524 no) build_warnings="-w";;
21525 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21526 build_warnings="${build_warnings} ${t}";;
21527 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21528 build_warnings="${t} ${build_warnings}";;
21529 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21530esac
21531if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21532 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21533fi
b4e70030 21534fi; WARN_CFLAGS=""
c906108c
SS
21535if test "x${build_warnings}" != x -a "x$GCC" = xyes
21536then
b4e70030
JB
21537 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21538echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
21539 # Separate out the -Werror flag as some files just cannot be
21540 # compiled with it enabled.
21541 for w in ${build_warnings}; do
21542 case $w in
21543 -Werr*) WERROR_CFLAGS=-Werror ;;
21544 *) # Check that GCC accepts it
4536bbc6
AC
21545 saved_CFLAGS="$CFLAGS"
21546 CFLAGS="$CFLAGS $w"
bec39cab
AC
21547 cat >conftest.$ac_ext <<_ACEOF
21548/* confdefs.h. */
21549_ACEOF
21550cat confdefs.h >>conftest.$ac_ext
21551cat >>conftest.$ac_ext <<_ACEOF
21552/* end confdefs.h. */
4536bbc6 21553
bec39cab
AC
21554int
21555main ()
21556{
4536bbc6 21557
bec39cab
AC
21558 ;
21559 return 0;
21560}
21561_ACEOF
21562rm -f conftest.$ac_objext
21563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21564 (eval $ac_compile) 2>conftest.er1
21565 ac_status=$?
21566 grep -v '^ *+' conftest.er1 >conftest.err
21567 rm -f conftest.er1
21568 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } &&
b4e70030
JB
21571 { ac_try='test -z "$ac_c_werror_flag"
21572 || test ! -s conftest.err'
bec39cab
AC
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5
21575 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; } &&
21578 { ac_try='test -s conftest.$ac_objext'
21579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580 (eval $ac_try) 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); }; }; then
4536bbc6
AC
21584 WARN_CFLAGS="${WARN_CFLAGS} $w"
21585else
bec39cab
AC
21586 echo "$as_me: failed program was:" >&5
21587sed 's/^/| /' conftest.$ac_ext >&5
21588
4536bbc6 21589fi
bec39cab 21590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 21591 CFLAGS="$saved_CFLAGS"
746a987d
AC
21592 esac
21593 done
aa79a185
DJ
21594 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21595echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
21596fi
21597
21598
104c1213 21599
7a292a7a 21600# In the Cygwin environment, we need some additional flags.
b4e70030
JB
21601echo "$as_me:$LINENO: checking for cygwin" >&5
21602echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
21603if test "${gdb_cv_os_cygwin+set}" = set; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21605else
21606 cat >conftest.$ac_ext <<_ACEOF
21607/* confdefs.h. */
21608_ACEOF
21609cat confdefs.h >>conftest.$ac_ext
21610cat >>conftest.$ac_ext <<_ACEOF
21611/* end confdefs.h. */
7a292a7a
SS
21612
21613#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21614lose
21615#endif
bec39cab 21616_ACEOF
7a292a7a 21617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 21618 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
21619 gdb_cv_os_cygwin=yes
21620else
7a292a7a
SS
21621 gdb_cv_os_cygwin=no
21622fi
21623rm -f conftest*
21624
21625fi
b4e70030
JB
21626echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21627echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 21628
aff38e61 21629
3eb25fda 21630SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 21631case ${host} in
95cbc983
AC
21632 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21633 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 21634 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
21635esac
21636
21637
cd0fc7c3
SS
21638# libreadline needs libuser32.a in a cygwin environment
21639WIN32LIBS=
21640if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
21641 WIN32LIBS="-luser32"
21642 case "${target}" in
21643 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21644 ;;
21645 esac
cd0fc7c3 21646fi
c906108c 21647
b4505029
MM
21648# The ser-tcp.c module requires sockets.
21649case ${host} in
21650 *mingw32*)
21651
21652cat >>confdefs.h <<\_ACEOF
21653#define USE_WIN32API 1
21654_ACEOF
21655
21656 WIN32LIBS="$WIN32LIBS -lws2_32"
21657 ;;
21658esac
21659
7a292a7a 21660
121ce6e5
DJ
21661# Add any host-specific objects to GDB.
21662CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21663
3fc11d3e
JM
21664LIBGUI="../libgui/src/libgui.a"
21665GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21666
21667
7a292a7a 21668
3fc11d3e
JM
21669WIN32LDAPP=
21670
21671
21672
d91670b9
CV
21673case "${host}" in
21674*-*-cygwin*)
21675 configdir="win"
21676 ;;
21677*)
21678 configdir="unix"
21679 ;;
21680esac
3fc11d3e
JM
21681
21682GDBTKLIBS=
21683if test "${enable_gdbtk}" = "yes"; then
21684
d1c3b63a
KS
21685 # Gdbtk must have an absolute path to srcdir in order to run
21686 # properly when not installed.
21687 here=`pwd`
21688 cd ${srcdir}
21689 GDBTK_SRC_DIR=`pwd`
21690 cd $here
21691
bec39cab 21692
3fc11d3e
JM
21693#
21694# Ok, lets find the tcl configuration
bec39cab 21695# First, look for one uninstalled.
3fc11d3e
JM
21696# the alternative search directory is invoked by --with-tclconfig
21697#
21698
21699if test x"${no_tcl}" = x ; then
21700 # we reset no_tcl in case something fails here
21701 no_tcl=true
bec39cab 21702
b4e70030 21703# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 21704if test "${with_tclconfig+set}" = set; then
b4e70030
JB
21705 withval="$with_tclconfig"
21706 with_tclconfig=${withval}
21707fi;
21708 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21709echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
21710 if test "${ac_cv_c_tclconfig+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21712else
bec39cab 21713
3fc11d3e
JM
21714
21715 # First check to see if --with-tclconfig was specified.
21716 if test x"${with_tclconfig}" != x ; then
21717 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21718 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21719 else
bec39cab
AC
21720 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21721echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21722 { (exit 1); exit 1; }; }
3fc11d3e
JM
21723 fi
21724 fi
21725
21726 # then check for a private Tcl installation
21727 if test x"${ac_cv_c_tclconfig}" = x ; then
21728 for i in \
21729 ../tcl \
21730 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21731 ../../tcl \
21732 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21733 ../../../tcl \
21734 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21735 if test -f "$i/${configdir}/tclConfig.sh" ; then
21736 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21737 break
21738 fi
21739 done
21740 fi
21741 # check in a few common install locations
21742 if test x"${ac_cv_c_tclconfig}" = x ; then
21743 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21744 if test -f "$i/tclConfig.sh" ; then
21745 ac_cv_c_tclconfig=`(cd $i; pwd)`
21746 break
21747 fi
21748 done
21749 fi
21750 # check in a few other private locations
21751 if test x"${ac_cv_c_tclconfig}" = x ; then
21752 for i in \
21753 ${srcdir}/../tcl \
21754 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21755 if test -f "$i/${configdir}/tclConfig.sh" ; then
21756 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21757 break
21758 fi
21759 done
21760 fi
bec39cab 21761
3fc11d3e
JM
21762fi
21763
21764 if test x"${ac_cv_c_tclconfig}" = x ; then
21765 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
21766 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
21767echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
21768 else
21769 no_tcl=
21770 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
21771 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
21772echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
21773 fi
21774fi
21775
21776 if test -z "${no_tcl}"; then
bec39cab 21777
3fc11d3e
JM
21778 . $TCLCONFIG
21779
3fc11d3e
JM
21780
21781
21782
21783
3fc11d3e
JM
21784
21785
21786
bec39cab
AC
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
3fc11d3e
JM
21806#
21807# Ok, lets find the tk configuration
bec39cab 21808# First, look for one uninstalled.
3fc11d3e
JM
21809# the alternative search directory is invoked by --with-tkconfig
21810#
21811
21812if test x"${no_tk}" = x ; then
21813 # we reset no_tk in case something fails here
21814 no_tk=true
bec39cab 21815
b4e70030 21816# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 21817if test "${with_tkconfig+set}" = set; then
b4e70030
JB
21818 withval="$with_tkconfig"
21819 with_tkconfig=${withval}
21820fi;
21821 echo "$as_me:$LINENO: checking for Tk configuration" >&5
21822echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
21823 if test "${ac_cv_c_tkconfig+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21825else
bec39cab 21826
3fc11d3e
JM
21827
21828 # First check to see if --with-tkconfig was specified.
21829 if test x"${with_tkconfig}" != x ; then
21830 if test -f "${with_tkconfig}/tkConfig.sh" ; then
21831 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
21832 else
bec39cab
AC
21833 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
21834echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
21835 { (exit 1); exit 1; }; }
3fc11d3e
JM
21836 fi
21837 fi
21838
21839 # then check for a private Tk library
21840 if test x"${ac_cv_c_tkconfig}" = x ; then
21841 for i in \
21842 ../tk \
21843 `ls -dr ../tk[4-9]* 2>/dev/null` \
21844 ../../tk \
21845 `ls -dr ../../tk[4-9]* 2>/dev/null` \
21846 ../../../tk \
21847 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
21848 if test -f "$i/${configdir}/tkConfig.sh" ; then
21849 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21850 break
21851 fi
21852 done
21853 fi
21854 # check in a few common install locations
21855 if test x"${ac_cv_c_tkconfig}" = x ; then
21856 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21857 if test -f "$i/tkConfig.sh" ; then
21858 ac_cv_c_tkconfig=`(cd $i; pwd)`
21859 break
21860 fi
21861 done
21862 fi
21863 # check in a few other private locations
21864 if test x"${ac_cv_c_tkconfig}" = x ; then
21865 for i in \
21866 ${srcdir}/../tk \
21867 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
21868 if test -f "$i/${configdir}/tkConfig.sh" ; then
21869 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21870 break
21871 fi
21872 done
21873 fi
bec39cab 21874
3fc11d3e
JM
21875fi
21876
21877 if test x"${ac_cv_c_tkconfig}" = x ; then
21878 TKCONFIG="# no Tk configs found"
bec39cab
AC
21879 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
21880echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
21881 else
21882 no_tk=
21883 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
21884 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
21885echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
21886 fi
21887fi
21888
21889
21890
dd2504ab
JM
21891 # now look for Tcl library stuff
21892
d91670b9 21893 tcldir="../tcl/${configdir}/"
dd2504ab
JM
21894
21895 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
21896
3fc11d3e
JM
21897 # If $no_tk is nonempty, then we can't do Tk, and there is no
21898 # point to doing Tcl.
21899 if test -z "${no_tk}"; then
bec39cab 21900
3fc11d3e
JM
21901 if test -f "$TKCONFIG" ; then
21902 . $TKCONFIG
21903 fi
21904
3fc11d3e 21905
3fc11d3e
JM
21906
21907
3fc11d3e 21908
bec39cab
AC
21909
21910
21911
21912
21913
21914
21915
21916
21917
3fc11d3e
JM
21918#
21919# Ok, lets find the tcl source trees so we can use the headers
21920# Warning: transition of version 9 to 10 will break this algorithm
21921# because 10 sorts before 9. We also look for just tcl. We have to
21922# be careful that we don't match stuff like tclX by accident.
21923# the alternative search directory is involked by --with-tclinclude
21924#
21925
21926no_tcl=true
b4e70030
JB
21927echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
21928echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 21929
b4e70030 21930# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 21931if test "${with_tclinclude+set}" = set; then
b4e70030
JB
21932 withval="$with_tclinclude"
21933 with_tclinclude=${withval}
21934fi;
bec39cab
AC
21935if test "${ac_cv_c_tclh+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21937else
bec39cab 21938
3fc11d3e
JM
21939# first check to see if --with-tclinclude was specified
21940if test x"${with_tclinclude}" != x ; then
21941 if test -f ${with_tclinclude}/tclInt.h ; then
21942 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
21943 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
21944 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
21945 else
bec39cab
AC
21946 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
21947echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
21948 { (exit 1); exit 1; }; }
3fc11d3e
JM
21949 fi
21950fi
21951
21952# next check if it came with Tcl configuration file
21953if test x"${ac_cv_c_tclconfig}" = x ; then
21954 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
21955 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
21956 fi
21957fi
21958
21959# next check in private source directory
21960#
21961# since ls returns lowest version numbers first, reverse its output
21962if test x"${ac_cv_c_tclh}" = x ; then
21963 for i in \
21964 ${srcdir}/../tcl \
21965 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
21966 ${srcdir}/../../tcl \
21967 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
21968 ${srcdir}/../../../tcl \
21969 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
21970 if test -f $i/generic/tclInt.h ; then
21971 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21972 break
21973 fi
21974 done
21975fi
21976# finally check in a few common install locations
21977#
21978# since ls returns lowest version numbers first, reverse its output
21979if test x"${ac_cv_c_tclh}" = x ; then
21980 for i in \
21981 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
21982 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
21983 /usr/local/src/tcl \
21984 /usr/local/lib/tcl \
21985 ${prefix}/include ; do
21986 if test -f $i/generic/tclInt.h ; then
21987 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21988 break
21989 fi
21990 done
21991fi
21992# see if one is installed
21993if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 21994 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
21995 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21996echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
21997if test "${ac_cv_header_tclInt_h+set}" = set; then
21998 echo $ECHO_N "(cached) $ECHO_C" >&6
21999fi
b4e70030
JB
22000echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22001echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22002else
22003 # Is the header compilable?
b4e70030
JB
22004echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22005echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
22006cat >conftest.$ac_ext <<_ACEOF
22007/* confdefs.h. */
22008_ACEOF
22009cat confdefs.h >>conftest.$ac_ext
22010cat >>conftest.$ac_ext <<_ACEOF
22011/* end confdefs.h. */
22012$ac_includes_default
22013#include <tclInt.h>
22014_ACEOF
22015rm -f conftest.$ac_objext
22016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22017 (eval $ac_compile) 2>conftest.er1
22018 ac_status=$?
22019 grep -v '^ *+' conftest.er1 >conftest.err
22020 rm -f conftest.er1
22021 cat conftest.err >&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } &&
b4e70030
JB
22024 { ac_try='test -z "$ac_c_werror_flag"
22025 || test ! -s conftest.err'
bec39cab
AC
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22028 ac_status=$?
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; } &&
22031 { ac_try='test -s conftest.$ac_objext'
22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22034 ac_status=$?
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; }; then
22037 ac_header_compiler=yes
22038else
22039 echo "$as_me: failed program was:" >&5
22040sed 's/^/| /' conftest.$ac_ext >&5
22041
b4e70030 22042ac_header_compiler=no
bec39cab
AC
22043fi
22044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22046echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22047
22048# Is the header present?
b4e70030
JB
22049echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22050echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
22051cat >conftest.$ac_ext <<_ACEOF
22052/* confdefs.h. */
22053_ACEOF
22054cat confdefs.h >>conftest.$ac_ext
22055cat >>conftest.$ac_ext <<_ACEOF
22056/* end confdefs.h. */
3fc11d3e 22057#include <tclInt.h>
bec39cab
AC
22058_ACEOF
22059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } >/dev/null; then
22067 if test -s conftest.err; then
22068 ac_cpp_err=$ac_c_preproc_warn_flag
22069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22070 else
22071 ac_cpp_err=
22072 fi
22073else
22074 ac_cpp_err=yes
3fc11d3e 22075fi
bec39cab
AC
22076if test -z "$ac_cpp_err"; then
22077 ac_header_preproc=yes
22078else
22079 echo "$as_me: failed program was:" >&5
22080sed 's/^/| /' conftest.$ac_ext >&5
22081
22082 ac_header_preproc=no
3fc11d3e 22083fi
bec39cab 22084rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22086echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22087
22088# So? What about this header?
22089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22090 yes:no: )
22091 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22092echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22093 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22094echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22095 ac_header_preproc=yes
22096 ;;
22097 no:yes:* )
22098 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22099echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
22101echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
22103echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
22105echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
22107echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
22108 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
22109echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22110 (
22111 cat <<\_ASBOX
22112## ------------------------------------------ ##
22113## Report this to the AC_PACKAGE_NAME lists. ##
22114## ------------------------------------------ ##
22115_ASBOX
22116 ) |
22117 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22118 ;;
22119esac
b4e70030
JB
22120echo "$as_me:$LINENO: checking for tclInt.h" >&5
22121echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22122if test "${ac_cv_header_tclInt_h+set}" = set; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22124else
22125 ac_cv_header_tclInt_h=$ac_header_preproc
22126fi
b4e70030
JB
22127echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22128echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22129
22130fi
22131if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
22132 ac_cv_c_tclh=installed
22133else
bec39cab 22134 ac_cv_c_tclh=""
3fc11d3e
JM
22135fi
22136
bec39cab 22137
3fc11d3e
JM
22138fi
22139
22140fi
22141
22142if test x"${ac_cv_c_tclh}" = x ; then
22143 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
22144 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
22145echo "$as_me: error: Can't find Tcl private headers" >&2;}
22146 { (exit 1); exit 1; }; }
3fc11d3e
JM
22147fi
22148if test x"${ac_cv_c_tclh}" != x ; then
22149 no_tcl=""
22150 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
22151 echo "$as_me:$LINENO: result: is installed" >&5
22152echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22153 TCLHDIR=""
22154 else
b4e70030
JB
22155 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
22156echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
22157 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
22158 TCLHDIR="-I${ac_cv_c_tclh}"
22159 fi
22160fi
22161
22162
22163
bec39cab 22164
3fc11d3e
JM
22165#
22166# Ok, lets find the tk source trees so we can use the headers
22167# If the directory (presumably symlink) named "tk" exists, use that one
22168# in preference to any others. Same logic is used when choosing library
22169# and again with Tcl. The search order is the best place to look first, then in
22170# decreasing significance. The loop breaks if the trigger file is found.
22171# Note the gross little conversion here of srcdir by cd'ing to the found
22172# directory. This converts the path from a relative to an absolute, so
22173# recursive cache variables for the path will work right. We check all
22174# the possible paths in one loop rather than many seperate loops to speed
22175# things up.
22176# the alternative search directory is involked by --with-tkinclude
22177#
22178no_tk=true
b4e70030
JB
22179echo "$as_me:$LINENO: checking for Tk private headers" >&5
22180echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 22181
b4e70030 22182# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 22183if test "${with_tkinclude+set}" = set; then
b4e70030
JB
22184 withval="$with_tkinclude"
22185 with_tkinclude=${withval}
22186fi;
bec39cab
AC
22187if test "${ac_cv_c_tkh+set}" = set; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22189else
bec39cab 22190
3fc11d3e
JM
22191# first check to see if --with-tkinclude was specified
22192if test x"${with_tkinclude}" != x ; then
22193 if test -f ${with_tkinclude}/tk.h ; then
22194 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
22195 elif test -f ${with_tkinclude}/generic/tk.h ; then
22196 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
22197 else
bec39cab
AC
22198 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
22199echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
22200 { (exit 1); exit 1; }; }
3fc11d3e
JM
22201 fi
22202fi
22203
22204# next check if it came with Tk configuration file
22205if test x"${ac_cv_c_tkconfig}" = x ; then
22206 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
22207 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
22208 fi
22209fi
22210
22211# next check in private source directory
22212#
22213# since ls returns lowest version numbers first, reverse its output
22214if test x"${ac_cv_c_tkh}" = x ; then
22215 for i in \
22216 ${srcdir}/../tk \
22217 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
22218 ${srcdir}/../../tk \
22219 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
22220 ${srcdir}/../../../tk \
22221 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
22222 if test -f $i/generic/tk.h ; then
22223 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22224 break
22225 fi
22226 done
22227fi
22228# finally check in a few common install locations
22229#
22230# since ls returns lowest version numbers first, reverse its output
22231if test x"${ac_cv_c_tkh}" = x ; then
22232 for i in \
22233 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
22234 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
22235 /usr/local/src/tk \
22236 /usr/local/lib/tk \
22237 ${prefix}/include ; do
22238 if test -f $i/generic/tk.h ; then
22239 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22240 break
22241 fi
22242 done
22243fi
22244# see if one is installed
22245if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 22246 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
22247 echo "$as_me:$LINENO: checking for tk.h" >&5
22248echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22249if test "${ac_cv_header_tk_h+set}" = set; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22251fi
b4e70030
JB
22252echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22253echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
22254else
22255 # Is the header compilable?
b4e70030
JB
22256echo "$as_me:$LINENO: checking tk.h usability" >&5
22257echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
22258cat >conftest.$ac_ext <<_ACEOF
22259/* confdefs.h. */
22260_ACEOF
22261cat confdefs.h >>conftest.$ac_ext
22262cat >>conftest.$ac_ext <<_ACEOF
22263/* end confdefs.h. */
22264$ac_includes_default
3fc11d3e 22265#include <tk.h>
bec39cab
AC
22266_ACEOF
22267rm -f conftest.$ac_objext
22268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22269 (eval $ac_compile) 2>conftest.er1
22270 ac_status=$?
22271 grep -v '^ *+' conftest.er1 >conftest.err
22272 rm -f conftest.er1
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
b4e70030
JB
22276 { ac_try='test -z "$ac_c_werror_flag"
22277 || test ! -s conftest.err'
bec39cab
AC
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22280 ac_status=$?
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; } &&
22283 { ac_try='test -s conftest.$ac_objext'
22284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285 (eval $ac_try) 2>&5
22286 ac_status=$?
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; }; then
22289 ac_header_compiler=yes
22290else
22291 echo "$as_me: failed program was:" >&5
22292sed 's/^/| /' conftest.$ac_ext >&5
22293
b4e70030 22294ac_header_compiler=no
bec39cab
AC
22295fi
22296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22298echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22299
22300# Is the header present?
b4e70030
JB
22301echo "$as_me:$LINENO: checking tk.h presence" >&5
22302echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
22303cat >conftest.$ac_ext <<_ACEOF
22304/* confdefs.h. */
22305_ACEOF
22306cat confdefs.h >>conftest.$ac_ext
22307cat >>conftest.$ac_ext <<_ACEOF
22308/* end confdefs.h. */
22309#include <tk.h>
22310_ACEOF
22311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22313 ac_status=$?
22314 grep -v '^ *+' conftest.er1 >conftest.err
22315 rm -f conftest.er1
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } >/dev/null; then
22319 if test -s conftest.err; then
22320 ac_cpp_err=$ac_c_preproc_warn_flag
22321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22322 else
22323 ac_cpp_err=
22324 fi
22325else
22326 ac_cpp_err=yes
3fc11d3e 22327fi
bec39cab
AC
22328if test -z "$ac_cpp_err"; then
22329 ac_header_preproc=yes
22330else
22331 echo "$as_me: failed program was:" >&5
22332sed 's/^/| /' conftest.$ac_ext >&5
22333
22334 ac_header_preproc=no
22335fi
22336rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22338echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22339
22340# So? What about this header?
22341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22342 yes:no: )
22343 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22344echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22345 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22346echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22347 ac_header_preproc=yes
22348 ;;
22349 no:yes:* )
22350 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22351echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22352 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22353echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22354 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22355echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22357echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22359echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22361echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22362 (
22363 cat <<\_ASBOX
22364## ------------------------------------------ ##
22365## Report this to the AC_PACKAGE_NAME lists. ##
22366## ------------------------------------------ ##
22367_ASBOX
22368 ) |
22369 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22370 ;;
22371esac
b4e70030
JB
22372echo "$as_me:$LINENO: checking for tk.h" >&5
22373echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22374if test "${ac_cv_header_tk_h+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22376else
22377 ac_cv_header_tk_h=$ac_header_preproc
22378fi
b4e70030
JB
22379echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22380echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 22381
3fc11d3e 22382fi
bec39cab 22383if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
22384 ac_cv_c_tkh=installed
22385else
bec39cab 22386 ac_cv_c_tkh=""
3fc11d3e
JM
22387fi
22388
bec39cab 22389
3fc11d3e
JM
22390fi
22391
22392fi
22393
22394if test x"${ac_cv_c_tkh}" != x ; then
22395 no_tk=""
22396 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
22397 echo "$as_me:$LINENO: result: is installed" >&5
22398echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22399 TKHDIR=""
22400 else
b4e70030
JB
22401 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22402echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
22403 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22404 TKHDIR="-I${ac_cv_c_tkh}"
22405 fi
22406else
22407 TKHDIR="# no Tk directory found"
bec39cab
AC
22408 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22409echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
22410 no_tk=true
22411fi
22412
22413
22414
bec39cab 22415
b4e70030
JB
22416echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22417echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22418if test x"${ac_cv_c_itclh}" = x ; then
22419 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22420 if test -f $i/generic/itcl.h ; then
22421 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22422 break
22423 fi
22424 done
22425fi
22426if test x"${ac_cv_c_itclh}" = x ; then
22427 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
22428 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22429echo "$as_me: error: Can't find Itcl private headers" >&2;}
22430 { (exit 1); exit 1; }; }
3fc11d3e
JM
22431fi
22432if test x"${ac_cv_c_itclh}" != x ; then
22433 ITCLHDIR="-I${ac_cv_c_itclh}"
22434fi
22435# should always be here
22436# ITCLLIB="../itcl/itcl/unix/libitcl.a"
22437
22438#AC_SUBST(ITCLLIB)
22439
bec39cab 22440
b4e70030
JB
22441echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22442echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22443if test x"${ac_cv_c_itkh}" = x ; then
22444 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22445 if test -f $i/generic/itk.h ; then
22446 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22447 break
22448 fi
22449 done
22450fi
22451if test x"${ac_cv_c_itkh}" = x ; then
22452 ITKHDIR="# no Itk private headers found"
bec39cab
AC
22453 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22454echo "$as_me: error: Can't find Itk private headers" >&2;}
22455 { (exit 1); exit 1; }; }
3fc11d3e
JM
22456fi
22457if test x"${ac_cv_c_itkh}" != x ; then
22458 ITKHDIR="-I${ac_cv_c_itkh}"
22459fi
22460# should always be here
22461# ITKLIB="../itcl/itk/unix/libitk.a"
22462
22463#AC_SUBST(ITKLIB)
22464
3fc11d3e 22465
dd2504ab
JM
22466
22467 # now look for Tk library stuff
22468
d91670b9 22469 tkdir="../tk/${configdir}/"
dd2504ab
JM
22470
22471 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22472
3fc11d3e
JM
22473 # now look for Itcl library stuff
22474
bec39cab 22475
3fc11d3e
JM
22476#
22477# Ok, lets find the itcl configuration
bec39cab 22478# First, look for one uninstalled.
3fc11d3e
JM
22479# the alternative search directory is invoked by --with-itclconfig
22480#
22481
22482if test x"${no_itcl}" = x ; then
22483 # we reset no_itcl in case something fails here
22484 no_itcl=true
bec39cab 22485
b4e70030 22486# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 22487if test "${with_itclconfig+set}" = set; then
b4e70030
JB
22488 withval="$with_itclconfig"
22489 with_itclconfig=${withval}
22490fi;
22491 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22492echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
22493 if test "${ac_cv_c_itclconfig+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22495else
bec39cab 22496
3fc11d3e
JM
22497
22498 # First check to see if --with-itclconfig was specified.
22499 if test x"${with_itclconfig}" != x ; then
22500 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22501 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22502 else
bec39cab
AC
22503 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22504echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22505 { (exit 1); exit 1; }; }
3fc11d3e
JM
22506 fi
22507 fi
22508
22509 # then check for a private Itcl library
22510 if test x"${ac_cv_c_itclconfig}" = x ; then
22511 for i in \
22512 ../itcl/itcl \
22513 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22514 ../../itcl \
22515 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22516 ../../../itcl \
22517 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22518 if test -f "$i/itclConfig.sh" ; then
22519 ac_cv_c_itclconfig=`(cd $i; pwd)`
22520 break
22521 fi
22522 done
22523 fi
22524 # check in a few common install locations
22525 if test x"${ac_cv_c_itclconfig}" = x ; then
22526 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22527 if test -f "$i/itclConfig.sh" ; then
22528 ac_cv_c_itclconfig=`(cd $i; pwd)`
22529 break
22530 fi
22531 done
22532 fi
22533 # check in a few other private locations
22534 if test x"${ac_cv_c_itclconfig}" = x ; then
22535 for i in \
22536 ${srcdir}/../itcl/itcl \
22537 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22538 if test -f "$i/itclConfig.sh" ; then
22539 ac_cv_c_itclconfig=`(cd $i; pwd)`
22540 break
22541 fi
22542 done
22543 fi
bec39cab 22544
3fc11d3e
JM
22545fi
22546
22547 if test x"${ac_cv_c_itclconfig}" = x ; then
22548 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
22549 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22550echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
22551 else
22552 no_itcl=
22553 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
22554 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22555echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
22556 fi
22557fi
22558
22559 if test -z "${no_itcl}"; then
bec39cab 22560
3fc11d3e
JM
22561 if test -f "$ITCLCONFIG" ; then
22562 . $ITCLCONFIG
22563 fi
22564
3fc11d3e 22565
3fc11d3e
JM
22566
22567
bec39cab
AC
22568
22569
22570
22571
22572
22573
22574
3fc11d3e
JM
22575
22576 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 22577 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
22578 fi
22579
bec39cab 22580
3fc11d3e 22581 # now look for Itk library stuff
bec39cab 22582
3fc11d3e
JM
22583#
22584# Ok, lets find the itk configuration
bec39cab 22585# First, look for one uninstalled.
3fc11d3e
JM
22586# the alternative search directory is invoked by --with-itkconfig
22587#
22588
22589if test x"${no_itk}" = x ; then
22590 # we reset no_itk in case something fails here
22591 no_itk=true
bec39cab 22592
b4e70030 22593# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 22594if test "${with_itkconfig+set}" = set; then
b4e70030
JB
22595 withval="$with_itkconfig"
22596 with_itkconfig=${withval}
22597fi;
22598 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22599echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
22600 if test "${ac_cv_c_itkconfig+set}" = set; then
22601 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22602else
bec39cab 22603
3fc11d3e
JM
22604
22605 # First check to see if --with-itkconfig was specified.
22606 if test x"${with_itkconfig}" != x ; then
22607 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22608 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22609 else
bec39cab
AC
22610 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22611echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22612 { (exit 1); exit 1; }; }
3fc11d3e
JM
22613 fi
22614 fi
22615
22616 # then check for a private Itk library
22617 if test x"${ac_cv_c_itkconfig}" = x ; then
22618 for i in \
22619 ../itcl/itk \
22620 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22621 ../../itk \
22622 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22623 ../../../itk \
22624 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22625 if test -f "$i/itkConfig.sh" ; then
22626 ac_cv_c_itkconfig=`(cd $i; pwd)`
22627 break
22628 fi
22629 done
22630 fi
22631 # check in a few common install locations
22632 if test x"${ac_cv_c_itkconfig}" = x ; then
22633 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22634 if test -f "$i/itkConfig.sh" ; then
22635 ac_cv_c_itkconfig=`(cd $i; pwd)`
22636 break
22637 fi
22638 done
22639 fi
22640 # check in a few other private locations
22641 if test x"${ac_cv_c_itkconfig}" = x ; then
22642 for i in \
22643 ${srcdir}/../itcl/itk \
22644 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22645 if test -f "$i/itkConfig.sh" ; then
22646 ac_cv_c_itkconfig=`(cd $i; pwd)`
22647 break
22648 fi
22649 done
22650 fi
bec39cab 22651
3fc11d3e
JM
22652fi
22653
22654 if test x"${ac_cv_c_itkconfig}" = x ; then
22655 ITKCONFIG="# no Itk configs found"
bec39cab
AC
22656 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22657echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
22658 else
22659 no_itk=
22660 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
22661 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22662echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
22663 fi
22664fi
22665
22666
bec39cab
AC
22667 if test -z "${no_itcl}"; then
22668
22669 if test -f "$ITKCONFIG" ; then
22670 . $ITKCONFIG
22671 fi
22672
22673
22674
22675
22676
22677
3fc11d3e 22678
3fc11d3e 22679
3fc11d3e
JM
22680
22681
3fc11d3e
JM
22682
22683
3fc11d3e 22684 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 22685 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
22686 fi
22687
4226a5a5 22688 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
22689
22690 # Include some libraries that Tcl and Tk want.
b2a1bd4f 22691 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
22692 # Yes, the ordering seems wrong here. But it isn't.
22693 # TK_LIBS is the list of libraries that need to be linked
22694 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22695 # were in LIBS then any link tests after this point would
22696 # try to include things like `$(LIBGUI)', which wouldn't work.
22697 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
22698
22699 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22700 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22701 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
22702 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22703 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22704 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22705 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
22706
22707 if test x$gdb_cv_os_cygwin = xyes; then
22708 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22709 WIN32LDAPP="-Wl,--subsystem,console"
22710 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22711 fi
22712 fi
22713 fi
ffc6a242 22714
b4e70030
JB
22715
22716
22717subdirs="$subdirs gdbtk"
3ace7edb 22718
3fc11d3e
JM
22719fi
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
dd2504ab 22733
b4e70030
JB
22734echo "$as_me:$LINENO: checking for X" >&5
22735echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 22736
c906108c 22737
b4e70030 22738# Check whether --with-x or --without-x was given.
c906108c 22739if test "${with_x+set}" = set; then
b4e70030 22740 withval="$with_x"
c906108c 22741
b4e70030 22742fi;
c906108c
SS
22743# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22744if test "x$with_x" = xno; then
22745 # The user explicitly disabled X.
22746 have_x=disabled
22747else
22748 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22749 # Both variables are already set.
22750 have_x=yes
22751 else
bec39cab
AC
22752 if test "${ac_cv_have_x+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22754else
22755 # One or both of the vars are not set, and there is no cached value.
bec39cab 22756ac_x_includes=no ac_x_libraries=no
b4e70030 22757rm -fr conftest.dir
bec39cab
AC
22758if mkdir conftest.dir; then
22759 cd conftest.dir
c906108c 22760 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 22761 cat >Imakefile <<'_ACEOF'
c906108c
SS
22762acfindx:
22763 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 22764_ACEOF
b4e70030 22765 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
22766 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22767 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22768 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22769 for ac_extension in a so sl; do
22770 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
22771 test -f $ac_im_libdir/libX11.$ac_extension; then
22772 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
22773 fi
22774 done
22775 # Screen out bogus values from the imake configuration. They are
22776 # bogus both because they are the default anyway, and because
22777 # using them would break gcc on systems where it needs fixed includes.
bec39cab 22778 case $ac_im_incroot in
b4e70030 22779 /usr/include) ;;
bec39cab 22780 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 22781 esac
bec39cab 22782 case $ac_im_usrlibdir in
c906108c 22783 /usr/lib | /lib) ;;
bec39cab 22784 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
22785 esac
22786 fi
22787 cd ..
b4e70030 22788 rm -fr conftest.dir
c906108c
SS
22789fi
22790
bec39cab
AC
22791# Standard set of common directories for X headers.
22792# Check X11 before X11Rn because it is often a symlink to the current release.
22793ac_x_header_dirs='
22794/usr/X11/include
22795/usr/X11R6/include
22796/usr/X11R5/include
22797/usr/X11R4/include
22798
22799/usr/include/X11
22800/usr/include/X11R6
22801/usr/include/X11R5
22802/usr/include/X11R4
22803
22804/usr/local/X11/include
22805/usr/local/X11R6/include
22806/usr/local/X11R5/include
22807/usr/local/X11R4/include
22808
22809/usr/local/include/X11
22810/usr/local/include/X11R6
22811/usr/local/include/X11R5
22812/usr/local/include/X11R4
22813
22814/usr/X386/include
22815/usr/x386/include
22816/usr/XFree86/include/X11
22817
22818/usr/include
22819/usr/local/include
22820/usr/unsupported/include
22821/usr/athena/include
22822/usr/local/x11r5/include
22823/usr/lpp/Xamples/include
22824
22825/usr/openwin/include
22826/usr/openwin/share/include'
22827
22828if test "$ac_x_includes" = no; then
59f80f10 22829 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 22830 # First, try using that file with no special directory specified.
bec39cab
AC
22831 cat >conftest.$ac_ext <<_ACEOF
22832/* confdefs.h. */
22833_ACEOF
22834cat confdefs.h >>conftest.$ac_ext
22835cat >>conftest.$ac_ext <<_ACEOF
22836/* end confdefs.h. */
59f80f10 22837#include <X11/Intrinsic.h>
bec39cab
AC
22838_ACEOF
22839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22841 ac_status=$?
22842 grep -v '^ *+' conftest.er1 >conftest.err
22843 rm -f conftest.er1
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } >/dev/null; then
22847 if test -s conftest.err; then
22848 ac_cpp_err=$ac_c_preproc_warn_flag
22849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22850 else
22851 ac_cpp_err=
22852 fi
22853else
22854 ac_cpp_err=yes
22855fi
22856if test -z "$ac_cpp_err"; then
c906108c
SS
22857 # We can compile using X headers with no special include directory.
22858ac_x_includes=
22859else
bec39cab
AC
22860 echo "$as_me: failed program was:" >&5
22861sed 's/^/| /' conftest.$ac_ext >&5
22862
22863 for ac_dir in $ac_x_header_dirs; do
59f80f10 22864 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
22865 ac_x_includes=$ac_dir
22866 break
22867 fi
22868done
c906108c 22869fi
bec39cab
AC
22870rm -f conftest.err conftest.$ac_ext
22871fi # $ac_x_includes = no
c906108c 22872
bec39cab 22873if test "$ac_x_libraries" = no; then
c906108c 22874 # Check for the libraries.
c906108c
SS
22875 # See if we find them without any special options.
22876 # Don't add to $LIBS permanently.
bec39cab 22877 ac_save_LIBS=$LIBS
4e8d927d 22878 LIBS="-lXt $LIBS"
bec39cab
AC
22879 cat >conftest.$ac_ext <<_ACEOF
22880/* confdefs.h. */
22881_ACEOF
22882cat confdefs.h >>conftest.$ac_ext
22883cat >>conftest.$ac_ext <<_ACEOF
22884/* end confdefs.h. */
59f80f10 22885#include <X11/Intrinsic.h>
bec39cab
AC
22886int
22887main ()
22888{
59f80f10 22889XtMalloc (0)
bec39cab
AC
22890 ;
22891 return 0;
22892}
22893_ACEOF
22894rm -f conftest.$ac_objext conftest$ac_exeext
22895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22896 (eval $ac_link) 2>conftest.er1
22897 ac_status=$?
22898 grep -v '^ *+' conftest.er1 >conftest.err
22899 rm -f conftest.er1
22900 cat conftest.err >&5
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); } &&
b4e70030
JB
22903 { ac_try='test -z "$ac_c_werror_flag"
22904 || test ! -s conftest.err'
bec39cab
AC
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; } &&
22910 { ac_try='test -s conftest$ac_exeext'
22911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912 (eval $ac_try) 2>&5
22913 ac_status=$?
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; }; then
22916 LIBS=$ac_save_LIBS
c906108c
SS
22917# We can link X programs with no special library path.
22918ac_x_libraries=
22919else
bec39cab
AC
22920 echo "$as_me: failed program was:" >&5
22921sed 's/^/| /' conftest.$ac_ext >&5
22922
b4e70030 22923LIBS=$ac_save_LIBS
bec39cab 22924for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 22925do
bec39cab 22926 # Don't even attempt the hair of trying to link an X program!
c906108c 22927 for ac_extension in a so sl; do
b4e70030 22928 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
22929 ac_x_libraries=$ac_dir
22930 break 2
22931 fi
22932 done
22933done
22934fi
bec39cab
AC
22935rm -f conftest.err conftest.$ac_objext \
22936 conftest$ac_exeext conftest.$ac_ext
22937fi # $ac_x_libraries = no
c906108c 22938
bec39cab 22939if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
22940 # Didn't find X anywhere. Cache the known absence of X.
22941 ac_cv_have_x="have_x=no"
22942else
22943 # Record where we found X for the cache.
22944 ac_cv_have_x="have_x=yes \
bec39cab 22945 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
22946fi
22947fi
bec39cab 22948
c906108c
SS
22949 fi
22950 eval "$ac_cv_have_x"
22951fi # $with_x != no
22952
22953if test "$have_x" != yes; then
b4e70030
JB
22954 echo "$as_me:$LINENO: result: $have_x" >&5
22955echo "${ECHO_T}$have_x" >&6
c906108c
SS
22956 no_x=yes
22957else
22958 # If each of the values was on the command line, it overrides each guess.
22959 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22960 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22961 # Update the cache value to reflect the command line values.
22962 ac_cv_have_x="have_x=yes \
22963 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
22964 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22965echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
22966fi
22967
22968
9cc52bde
MK
22969# Check whether we should enable the TUI, but only do so if we really
22970# can.
22971if test x"$enable_tui" = xyes; then
22972 if test -d $srcdir/tui; then
22973 if test "$ac_cv_search_waddstr" != no; then
22974 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22975 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22976 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22977 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
22978 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22979 CONFIG_ALL="${CONFIG_ALL} all-tui"
22980 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
22981 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
22982 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
22983 else
bec39cab
AC
22984 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
22985echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
22986 fi
22987 fi
22988fi
22989
bec39cab
AC
22990# Unlike the sim directory, whether a simulator is linked is controlled by
22991# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
22992# This code just checks for a few cases where we'd like to ignore those
22993# definitions, even when they're present in the '.mt' file. These cases
22994# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 22995# not part of the source tree.
7a292a7a 22996#
b4e70030 22997# Check whether --enable-sim or --disable-sim was given.
7a292a7a 22998if test "${enable_sim+set}" = set; then
b4e70030
JB
22999 enableval="$enable_sim"
23000 echo "enable_sim = $enable_sim";
7a292a7a
SS
23001 echo "enableval = ${enableval}";
23002 case "${enableval}" in
23003 yes) ignore_sim=false ;;
23004 no) ignore_sim=true ;;
23005 *) ignore_sim=false ;;
23006 esac
23007else
23008 ignore_sim=false
b4e70030 23009fi;
7a292a7a
SS
23010
23011if test ! -d "${srcdir}/../sim"; then
23012 ignore_sim=true
23013fi
23014
23015if test "${ignore_sim}" = "true"; then
23016 IGNORE_SIM="SIM="
23017 IGNORE_SIM_OBS="SIM_OBS="
23018else
23019 IGNORE_SIM=""
23020 IGNORE_SIM_OBS=""
60ca704f
SE
23021
23022cat >>confdefs.h <<\_ACEOF
7a292a7a 23023#define WITH_SIM 1
bec39cab 23024_ACEOF
7a292a7a
SS
23025
23026fi
23027
23028
23029
c906108c
SS
23030
23031
23032
23033
23034
23035
dfcd3bfb 23036
e56ac5c3
AC
23037
23038
b3a90332
AC
23039
23040
c35f4ffc 23041# List of host floatformats.
bec39cab
AC
23042
23043cat >>confdefs.h <<_ACEOF
c35f4ffc 23044#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 23045_ACEOF
c35f4ffc 23046
bec39cab
AC
23047
23048cat >>confdefs.h <<_ACEOF
c35f4ffc 23049#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
23050_ACEOF
23051
c35f4ffc 23052
bec39cab 23053cat >>confdefs.h <<_ACEOF
c35f4ffc 23054#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 23055_ACEOF
c35f4ffc
AC
23056
23057
c906108c
SS
23058# target_subdir is used by the testsuite to find the target libraries.
23059target_subdir=
23060if test "${host}" != "${target}"; then
23061 target_subdir="${target_alias}/"
23062fi
23063
23064
23065frags=
771b4502 23066if test "${gdb_native}" = "yes"; then
0dad8a66
MK
23067 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23068 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
23069 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23070echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23071 { (exit 1); exit 1; }; }
0dad8a66
MK
23072 fi
23073 frags="$frags $host_makefile_frag"
23074else
23075 host_makefile_frag=/dev/null
c906108c 23076fi
c906108c
SS
23077
23078target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23079if test ! -f ${target_makefile_frag}; then
bec39cab
AC
23080 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23081echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23082 { (exit 1); exit 1; }; }
c906108c
SS
23083fi
23084frags="$frags $target_makefile_frag"
23085
23086
23087
23088
23089
23090hostfile=`sed -n '
23091s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23092' ${host_makefile_frag}`
23093
23094targetfile=`sed -n '
b523a1fd 23095s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
23096' ${target_makefile_frag}`
23097
771b4502 23098if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
23099# We pick this up from the host configuration file (.mh) because we
23100# do not have a native configuration Makefile fragment.
c906108c
SS
23101nativefile=`sed -n '
23102s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23103' ${host_makefile_frag}`
c906108c
SS
23104fi
23105
23106
b00a8037 23107if test x"${gdb_osabi}" != x ; then
bec39cab
AC
23108
23109cat >>confdefs.h <<_ACEOF
b00a8037 23110#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 23111_ACEOF
b00a8037
DJ
23112
23113fi
23114
8dcde887 23115# Enable multi-ice-gdb-server.
b4e70030 23116# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 23117if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
23118 enableval="$enable_multi_ice"
23119 case $enableval in
8dcde887
MK
23120 yes | no)
23121 ;;
bec39cab
AC
23122 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
23123echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
23124 { (exit 1); exit 1; }; } ;;
8dcde887 23125 esac
b4e70030 23126fi;
4e8d927d 23127if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
23128
23129
23130subdirs="$subdirs multi-ice"
3ace7edb 23131
a85f51e7
DJ
23132fi
23133
a13e2c95
UW
23134# We only build gdbserver automatically in a native configuration.
23135if test "$gdb_native" = "yes"; then
b4e70030
JB
23136 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
23137echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 23138 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
23139 echo "$as_me:$LINENO: result: yes" >&5
23140echo "${ECHO_T}yes" >&6
23141
23142
23143subdirs="$subdirs gdbserver"
3ace7edb 23144
8dcde887 23145 else
b4e70030
JB
23146 echo "$as_me:$LINENO: result: no" >&5
23147echo "${ECHO_T}no" >&6
8dcde887
MK
23148 fi
23149fi
23150
2c0fc042
AC
23151# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
23152# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
23153# to an empty version.
c906108c
SS
23154
23155files=
23156links=
5a2402b8 23157
c906108c 23158rm -f xm.h
5a2402b8 23159xm_h=""
c906108c 23160if test "${hostfile}" != ""; then
5a2402b8 23161 xm_h=xm.h
0f475e27
AC
23162 case "${hostfile}" in
23163 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
23164 * ) GDB_XM_FILE="${hostfile}"
23165 esac
5a2402b8
AC
23166 files="${files} ${GDB_XM_FILE}"
23167 links="${links} xm.h"
60ca704f
SE
23168
23169cat >>confdefs.h <<_ACEOF
b78960be 23170#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 23171_ACEOF
5a2402b8 23172
c906108c 23173fi
5a2402b8
AC
23174
23175
c906108c 23176rm -f tm.h
5a2402b8 23177tm_h=""
c906108c 23178if test "${targetfile}" != ""; then
5a2402b8 23179 tm_h=tm.h
0f475e27 23180 case "${targetfile}" in
b8c4aece 23181 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
23182 * ) GDB_TM_FILE="${targetfile}"
23183 esac
5a2402b8
AC
23184 files="${files} ${GDB_TM_FILE}"
23185 links="${links} tm.h"
60ca704f
SE
23186
23187cat >>confdefs.h <<_ACEOF
b78960be 23188#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 23189_ACEOF
5a2402b8 23190
c906108c 23191fi
5a2402b8
AC
23192
23193
c906108c 23194rm -f nm.h
5a2402b8 23195nm_h=""
c906108c 23196if test "${nativefile}" != ""; then
5a2402b8 23197 nm_h=nm.h
0f475e27
AC
23198 case "${nativefile}" in
23199 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
23200 * ) GDB_NM_FILE="${nativefile}"
23201 esac
5a2402b8
AC
23202 files="${files} ${GDB_NM_FILE}"
23203 links="${links} nm.h"
60ca704f
SE
23204
23205cat >>confdefs.h <<_ACEOF
b78960be 23206#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 23207_ACEOF
5a2402b8 23208
c906108c 23209fi
5a2402b8
AC
23210
23211
bec39cab
AC
23212ac_sources="$files"
23213ac_dests="$links"
23214while test -n "$ac_sources"; do
23215 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23216 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23217 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23218done
b4e70030 23219 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
23220
23221
c906108c
SS
23222
23223
c906108c 23224
c906108c 23225
bec39cab
AC
23226cat >>confdefs.h <<\_ACEOF
23227#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
23228_ACEOF
c906108c 23229
234b45d4 23230
234b45d4
KB
23231
23232
23233
b4e70030 23234# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 23235if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
23236 withval="$with_libiconv_prefix"
23237
234b45d4
KB
23238 for dir in `echo "$withval" | tr : ' '`; do
23239 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23240 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23241 done
234b45d4 23242
b4e70030 23243fi;
234b45d4 23244
b4e70030
JB
23245 echo "$as_me:$LINENO: checking for iconv" >&5
23246echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
23247if test "${am_cv_func_iconv+set}" = set; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 23249else
bec39cab 23250
234b45d4
KB
23251 am_cv_func_iconv="no, consider installing GNU libiconv"
23252 am_cv_lib_iconv=no
bec39cab
AC
23253 cat >conftest.$ac_ext <<_ACEOF
23254/* confdefs.h. */
23255_ACEOF
23256cat confdefs.h >>conftest.$ac_ext
23257cat >>conftest.$ac_ext <<_ACEOF
23258/* end confdefs.h. */
234b45d4
KB
23259#include <stdlib.h>
23260#include <iconv.h>
bec39cab
AC
23261int
23262main ()
23263{
234b45d4
KB
23264iconv_t cd = iconv_open("","");
23265 iconv(cd,NULL,NULL,NULL,NULL);
23266 iconv_close(cd);
bec39cab
AC
23267 ;
23268 return 0;
23269}
23270_ACEOF
23271rm -f conftest.$ac_objext conftest$ac_exeext
23272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23273 (eval $ac_link) 2>conftest.er1
23274 ac_status=$?
23275 grep -v '^ *+' conftest.er1 >conftest.err
23276 rm -f conftest.er1
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } &&
b4e70030
JB
23280 { ac_try='test -z "$ac_c_werror_flag"
23281 || test ! -s conftest.err'
bec39cab
AC
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23284 ac_status=$?
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; } &&
23287 { ac_try='test -s conftest$ac_exeext'
23288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289 (eval $ac_try) 2>&5
23290 ac_status=$?
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
234b45d4
KB
23293 am_cv_func_iconv=yes
23294else
bec39cab
AC
23295 echo "$as_me: failed program was:" >&5
23296sed 's/^/| /' conftest.$ac_ext >&5
23297
234b45d4 23298fi
bec39cab
AC
23299rm -f conftest.err conftest.$ac_objext \
23300 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23301 if test "$am_cv_func_iconv" != yes; then
23302 am_save_LIBS="$LIBS"
23303 LIBS="$LIBS -liconv"
bec39cab
AC
23304 cat >conftest.$ac_ext <<_ACEOF
23305/* confdefs.h. */
23306_ACEOF
23307cat confdefs.h >>conftest.$ac_ext
23308cat >>conftest.$ac_ext <<_ACEOF
23309/* end confdefs.h. */
234b45d4
KB
23310#include <stdlib.h>
23311#include <iconv.h>
bec39cab
AC
23312int
23313main ()
23314{
234b45d4
KB
23315iconv_t cd = iconv_open("","");
23316 iconv(cd,NULL,NULL,NULL,NULL);
23317 iconv_close(cd);
bec39cab
AC
23318 ;
23319 return 0;
23320}
23321_ACEOF
23322rm -f conftest.$ac_objext conftest$ac_exeext
23323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23324 (eval $ac_link) 2>conftest.er1
23325 ac_status=$?
23326 grep -v '^ *+' conftest.er1 >conftest.err
23327 rm -f conftest.er1
23328 cat conftest.err >&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } &&
b4e70030
JB
23331 { ac_try='test -z "$ac_c_werror_flag"
23332 || test ! -s conftest.err'
bec39cab
AC
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest$ac_exeext'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23341 ac_status=$?
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
234b45d4
KB
23344 am_cv_lib_iconv=yes
23345 am_cv_func_iconv=yes
23346else
bec39cab
AC
23347 echo "$as_me: failed program was:" >&5
23348sed 's/^/| /' conftest.$ac_ext >&5
23349
234b45d4 23350fi
bec39cab
AC
23351rm -f conftest.err conftest.$ac_objext \
23352 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23353 LIBS="$am_save_LIBS"
23354 fi
bec39cab
AC
23355
23356fi
b4e70030
JB
23357echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23358echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
23359 if test "$am_cv_func_iconv" = yes; then
23360
23361cat >>confdefs.h <<\_ACEOF
23362#define HAVE_ICONV 1
23363_ACEOF
23364
b4e70030
JB
23365 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23366echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
23367 if test "${am_cv_proto_iconv+set}" = set; then
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
23369else
23370
23371 cat >conftest.$ac_ext <<_ACEOF
23372/* confdefs.h. */
23373_ACEOF
23374cat confdefs.h >>conftest.$ac_ext
23375cat >>conftest.$ac_ext <<_ACEOF
23376/* end confdefs.h. */
23377
23378#include <stdlib.h>
23379#include <iconv.h>
23380extern
23381#ifdef __cplusplus
23382"C"
23383#endif
23384#if defined(__STDC__) || defined(__cplusplus)
23385size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23386#else
23387size_t iconv();
23388#endif
23389
23390int
23391main ()
23392{
23393
23394 ;
23395 return 0;
23396}
23397_ACEOF
23398rm -f conftest.$ac_objext
23399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23400 (eval $ac_compile) 2>conftest.er1
23401 ac_status=$?
23402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } &&
b4e70030
JB
23407 { ac_try='test -z "$ac_c_werror_flag"
23408 || test ! -s conftest.err'
bec39cab
AC
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; } &&
23414 { ac_try='test -s conftest.$ac_objext'
23415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 am_cv_proto_iconv_arg1=""
23421else
23422 echo "$as_me: failed program was:" >&5
23423sed 's/^/| /' conftest.$ac_ext >&5
23424
b4e70030 23425am_cv_proto_iconv_arg1="const"
bec39cab
AC
23426fi
23427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23428 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);"
23429fi
23430
23431 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 23432 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
23433 }$am_cv_proto_iconv" >&5
23434echo "${ECHO_T}${ac_t:-
b4e70030 23435 }$am_cv_proto_iconv" >&6
bec39cab
AC
23436
23437cat >>confdefs.h <<_ACEOF
23438#define ICONV_CONST $am_cv_proto_iconv_arg1
23439_ACEOF
23440
23441 fi
23442 LIBICONV=
23443 if test "$am_cv_lib_iconv" = yes; then
23444 LIBICONV="-liconv"
23445 fi
23446
23447
23448
b4e70030
JB
23449 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23450 ac_config_commands="$ac_config_commands default"
bec39cab
AC
23451cat >confcache <<\_ACEOF
23452# This file is a shell script that caches the results of configure
23453# tests run on this system so they can be shared between configure
23454# scripts and configure runs, see configure's option --config-cache.
23455# It is not useful on other systems. If it contains results you don't
23456# want to keep, you may remove or edit it.
23457#
23458# config.status only pays attention to the cache file if you give it
23459# the --recheck option to rerun configure.
23460#
23461# `ac_cv_env_foo' variables (set or unset) will be overridden when
23462# loading this file, other *unset* `ac_cv_foo' will be assigned the
23463# following values.
23464
23465_ACEOF
23466
23467# The following way of writing the cache mishandles newlines in values,
23468# but we know of no workaround that is simple, portable, and efficient.
b4e70030 23469# So, don't put newlines in cache variables' values.
bec39cab
AC
23470# Ultrix sh set writes to stderr and can't be redirected directly,
23471# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 23472{
bec39cab 23473 (set) 2>&1 |
b4e70030
JB
23474 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23475 *ac_space=\ *)
bec39cab
AC
23476 # `set' does not quote correctly, so add quotes (double-quote
23477 # substitution turns \\\\ into \\, and sed turns \\ into \).
23478 sed -n \
23479 "s/'/'\\\\''/g;
23480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 23481 ;;
bec39cab
AC
23482 *)
23483 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
23484 sed -n \
23485 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 23486 ;;
b4e70030
JB
23487 esac;
23488} |
bec39cab
AC
23489 sed '
23490 t clear
b4e70030 23491 : clear
bec39cab
AC
23492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23493 t end
b4e70030
JB
23494 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23495 : end' >>confcache
bec39cab
AC
23496if diff $cache_file confcache >/dev/null 2>&1; then :; else
23497 if test -w $cache_file; then
b4e70030 23498 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
23499 cat confcache >$cache_file
23500 else
b4e70030 23501 echo "not updating unwritable cache $cache_file"
bec39cab
AC
23502 fi
23503fi
23504rm -f confcache
23505
23506test "x$prefix" = xNONE && prefix=$ac_default_prefix
23507# Let make expand exec_prefix.
23508test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23509
b4e70030
JB
23510# VPATH may cause trouble with some makes, so we remove $(srcdir),
23511# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23512# trailing colons and then remove the whole line if VPATH becomes empty
23513# (actually we leave an empty line to preserve line numbers).
23514if test "x$srcdir" = x.; then
23515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23516s/:*\$(srcdir):*/:/;
23517s/:*\${srcdir}:*/:/;
23518s/:*@srcdir@:*/:/;
23519s/^\([^=]*=[ ]*\):*/\1/;
23520s/:*$//;
23521s/^[^=]*=[ ]*$//;
23522}'
23523fi
23524
bec39cab
AC
23525DEFS=-DHAVE_CONFIG_H
23526
23527ac_libobjs=
23528ac_ltlibobjs=
23529for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23530 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
23531 ac_i=`echo "$ac_i" |
23532 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23533 # 2. Add them.
23534 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23535 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
23536done
23537LIBOBJS=$ac_libobjs
23538
23539LTLIBOBJS=$ac_ltlibobjs
23540
23541
85981d60
AC
23542if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23543 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23544Usually this means the macro was only invoked conditionally." >&5
23545echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23546Usually this means the macro was only invoked conditionally." >&2;}
23547 { (exit 1); exit 1; }; }
23548fi
bec39cab
AC
23549
23550: ${CONFIG_STATUS=./config.status}
23551ac_clean_files_save=$ac_clean_files
23552ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23553{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23554echo "$as_me: creating $CONFIG_STATUS" >&6;}
23555cat >$CONFIG_STATUS <<_ACEOF
23556#! $SHELL
23557# Generated by $as_me.
23558# Run this file to recreate the current configuration.
23559# Compiler output produced by configure, useful for debugging
23560# configure, is in config.log if it exists.
23561
23562debug=false
23563ac_cs_recheck=false
23564ac_cs_silent=false
23565SHELL=\${CONFIG_SHELL-$SHELL}
23566_ACEOF
23567
23568cat >>$CONFIG_STATUS <<\_ACEOF
23569## --------------------- ##
23570## M4sh Initialization. ##
23571## --------------------- ##
23572
23573# Be Bourne compatible
23574if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23575 emulate sh
23576 NULLCMD=:
23577 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23578 # is contrary to our usage. Disable this feature.
23579 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
23580elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23581 set -o posix
bec39cab
AC
23582fi
23583DUALCASE=1; export DUALCASE # for MKS sh
23584
23585# Support unset when possible.
23586if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23587 as_unset=unset
23588else
23589 as_unset=false
23590fi
23591
23592
23593# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 23594$as_unset ENV MAIL MAILPATH
bec39cab
AC
23595PS1='$ '
23596PS2='> '
23597PS4='+ '
23598
23599# NLS nuisances.
23600for as_var in \
23601 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23602 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23603 LC_TELEPHONE LC_TIME
23604do
23605 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23606 eval $as_var=C; export $as_var
23607 else
b4e70030 23608 $as_unset $as_var
bec39cab
AC
23609 fi
23610done
23611
23612# Required to use basename.
b4e70030 23613if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23614 as_expr=expr
23615else
23616 as_expr=false
23617fi
23618
b4e70030 23619if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
23620 as_basename=basename
23621else
23622 as_basename=false
23623fi
23624
23625
23626# Name of the executable.
b4e70030 23627as_me=`$as_basename "$0" ||
bec39cab
AC
23628$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23629 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
23630 X"$0" : 'X\(/\)$' \| \
23631 . : '\(.\)' 2>/dev/null ||
bec39cab 23632echo X/"$0" |
b4e70030
JB
23633 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23634 /^X\/\(\/\/\)$/{ s//\1/; q; }
23635 /^X\/\(\/\).*/{ s//\1/; q; }
23636 s/.*/./; q'`
bec39cab 23637
b4e70030
JB
23638
23639# PATH needs CR, and LINENO needs CR and PATH.
23640# Avoid depending upon Character Ranges.
23641as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23642as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23643as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23644as_cr_digits='0123456789'
23645as_cr_alnum=$as_cr_Letters$as_cr_digits
23646
23647# The user is always right.
23648if test "${PATH_SEPARATOR+set}" != set; then
23649 echo "#! /bin/sh" >conf$$.sh
23650 echo "exit 0" >>conf$$.sh
23651 chmod +x conf$$.sh
23652 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23653 PATH_SEPARATOR=';'
23654 else
23655 PATH_SEPARATOR=:
23656 fi
23657 rm -f conf$$.sh
23658fi
bec39cab
AC
23659
23660
b4e70030
JB
23661 as_lineno_1=$LINENO
23662 as_lineno_2=$LINENO
23663 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23664 test "x$as_lineno_1" != "x$as_lineno_2" &&
23665 test "x$as_lineno_3" = "x$as_lineno_2" || {
23666 # Find who we are. Look in the path if we contain no path at all
23667 # relative or not.
23668 case $0 in
23669 *[\\/]* ) as_myself=$0 ;;
23670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23671for as_dir in $PATH
23672do
23673 IFS=$as_save_IFS
23674 test -z "$as_dir" && as_dir=.
23675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23676done
bec39cab 23677
b4e70030
JB
23678 ;;
23679 esac
23680 # We did not find ourselves, most probably we were run as `sh COMMAND'
23681 # in which case we are not to be found in the path.
23682 if test "x$as_myself" = x; then
23683 as_myself=$0
23684 fi
23685 if test ! -f "$as_myself"; then
23686 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23687echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23688 { (exit 1); exit 1; }; }
23689 fi
23690 case $CONFIG_SHELL in
23691 '')
23692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23693for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23694do
23695 IFS=$as_save_IFS
23696 test -z "$as_dir" && as_dir=.
23697 for as_base in sh bash ksh sh5; do
23698 case $as_dir in
23699 /*)
23700 if ("$as_dir/$as_base" -c '
bec39cab
AC
23701 as_lineno_1=$LINENO
23702 as_lineno_2=$LINENO
b4e70030 23703 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 23704 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
23705 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23706 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23707 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23708 CONFIG_SHELL=$as_dir/$as_base
23709 export CONFIG_SHELL
23710 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23711 fi;;
23712 esac
23713 done
23714done
23715;;
23716 esac
bec39cab
AC
23717
23718 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23719 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
23720 # line-number line before each line; the second 'sed' does the real
23721 # work. The second script uses 'N' to pair each line-number line
23722 # with the numbered line, and appends trailing '-' during
23723 # substitution so that $LINENO is not a special case at line end.
bec39cab 23724 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
23725 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23726 sed '=' <$as_myself |
bec39cab
AC
23727 sed '
23728 N
b4e70030
JB
23729 s,$,-,
23730 : loop
23731 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 23732 t loop
b4e70030
JB
23733 s,-$,,
23734 s,^['$as_cr_digits']*\n,,
bec39cab 23735 ' >$as_me.lineno &&
b4e70030
JB
23736 chmod +x $as_me.lineno ||
23737 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23738echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
23739 { (exit 1); exit 1; }; }
23740
23741 # Don't try to exec as it changes $[0], causing all sort of problems
23742 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
23743 # original and so on. Autoconf is especially sensible to this).
23744 . ./$as_me.lineno
bec39cab
AC
23745 # Exit status is that of the last command.
23746 exit
23747}
23748
23749
b4e70030
JB
23750case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23751 *c*,-n*) ECHO_N= ECHO_C='
23752' ECHO_T=' ' ;;
23753 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23754 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
23755esac
23756
b4e70030 23757if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23758 as_expr=expr
23759else
23760 as_expr=false
23761fi
23762
23763rm -f conf$$ conf$$.exe conf$$.file
23764echo >conf$$.file
23765if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
23766 # We could just check for DJGPP; but this test a) works b) is more generic
23767 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23768 if test -f conf$$.exe; then
23769 # Don't use ln at all; we don't have any links
bec39cab 23770 as_ln_s='cp -p'
b4e70030
JB
23771 else
23772 as_ln_s='ln -s'
23773 fi
bec39cab
AC
23774elif ln conf$$.file conf$$ 2>/dev/null; then
23775 as_ln_s=ln
23776else
23777 as_ln_s='cp -p'
23778fi
b4e70030 23779rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
23780
23781if mkdir -p . 2>/dev/null; then
23782 as_mkdir_p=:
23783else
23784 test -d ./-p && rmdir ./-p
23785 as_mkdir_p=false
23786fi
23787
b4e70030 23788as_executable_p="test -f"
bec39cab
AC
23789
23790# Sed expression to map a string onto a valid CPP name.
23791as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23792
23793# Sed expression to map a string onto a valid variable name.
23794as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23795
23796
b4e70030
JB
23797# IFS
23798# We need space, tab and new line, in precisely that order.
23799as_nl='
23800'
23801IFS=" $as_nl"
23802
23803# CDPATH.
23804$as_unset CDPATH
23805
bec39cab
AC
23806exec 6>&1
23807
b4e70030 23808# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 23809# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
23810# values after options handling. Logging --version etc. is OK.
23811exec 5>>config.log
23812{
23813 echo
23814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23815## Running $as_me. ##
23816_ASBOX
23817} >&5
23818cat >&5 <<_CSEOF
23819
bec39cab 23820This file was extended by $as_me, which was
b4e70030 23821generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
23822
23823 CONFIG_FILES = $CONFIG_FILES
23824 CONFIG_HEADERS = $CONFIG_HEADERS
23825 CONFIG_LINKS = $CONFIG_LINKS
23826 CONFIG_COMMANDS = $CONFIG_COMMANDS
23827 $ $0 $@
23828
b4e70030
JB
23829_CSEOF
23830echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23831echo >&5
bec39cab
AC
23832_ACEOF
23833
23834# Files that config.status was made for.
b4e70030
JB
23835if test -n "$ac_config_files"; then
23836 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23837fi
234b45d4 23838
b4e70030
JB
23839if test -n "$ac_config_headers"; then
23840 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23841fi
23842
23843if test -n "$ac_config_links"; then
23844 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23845fi
23846
23847if test -n "$ac_config_commands"; then
23848 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23849fi
234b45d4 23850
bec39cab 23851cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 23852
bec39cab
AC
23853ac_cs_usage="\
23854\`$as_me' instantiates files from templates according to the
23855current configuration.
234b45d4 23856
bec39cab 23857Usage: $0 [OPTIONS] [FILE]...
234b45d4 23858
bec39cab
AC
23859 -h, --help print this help, then exit
23860 -V, --version print version number, then exit
23861 -q, --quiet do not print progress messages
23862 -d, --debug don't remove temporary files
23863 --recheck update $as_me by reconfiguring in the same conditions
23864 --file=FILE[:TEMPLATE]
23865 instantiate the configuration file FILE
23866 --header=FILE[:TEMPLATE]
23867 instantiate the configuration header FILE
234b45d4 23868
bec39cab
AC
23869Configuration files:
23870$config_files
234b45d4 23871
bec39cab
AC
23872Configuration headers:
23873$config_headers
234b45d4 23874
bec39cab
AC
23875Configuration links:
23876$config_links
234b45d4 23877
bec39cab
AC
23878Configuration commands:
23879$config_commands
23880
23881Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 23882_ACEOF
b4e70030 23883
bec39cab
AC
23884cat >>$CONFIG_STATUS <<_ACEOF
23885ac_cs_version="\\
23886config.status
b4e70030 23887configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
23888 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23889
b4e70030 23890Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
23891This config.status script is free software; the Free Software Foundation
23892gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
23893srcdir=$srcdir
23894INSTALL="$INSTALL"
bec39cab
AC
23895_ACEOF
23896
23897cat >>$CONFIG_STATUS <<\_ACEOF
23898# If no file are specified by the user, then we need to provide default
23899# value. By we need to know if files were specified by the user.
23900ac_need_defaults=:
23901while test $# != 0
23902do
23903 case $1 in
23904 --*=*)
b4e70030
JB
23905 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23906 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 23907 ac_shift=:
c906108c 23908 ;;
b4e70030 23909 -*)
bec39cab
AC
23910 ac_option=$1
23911 ac_optarg=$2
23912 ac_shift=shift
c906108c 23913 ;;
b4e70030
JB
23914 *) # This is not an option, so the user has probably given explicit
23915 # arguments.
23916 ac_option=$1
23917 ac_need_defaults=false;;
bec39cab 23918 esac
c906108c 23919
bec39cab
AC
23920 case $ac_option in
23921 # Handling of the options.
b4e70030
JB
23922_ACEOF
23923cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
23924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23925 ac_cs_recheck=: ;;
b4e70030
JB
23926 --version | --vers* | -V )
23927 echo "$ac_cs_version"; exit 0 ;;
23928 --he | --h)
23929 # Conflict between --help and --header
23930 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23931Try \`$0 --help' for more information." >&5
23932echo "$as_me: error: ambiguous option: $1
23933Try \`$0 --help' for more information." >&2;}
23934 { (exit 1); exit 1; }; };;
23935 --help | --hel | -h )
23936 echo "$ac_cs_usage"; exit 0 ;;
23937 --debug | --d* | -d )
bec39cab
AC
23938 debug=: ;;
23939 --file | --fil | --fi | --f )
23940 $ac_shift
23941 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23942 ac_need_defaults=false;;
23943 --header | --heade | --head | --hea )
23944 $ac_shift
23945 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23946 ac_need_defaults=false;;
23947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23948 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23949 ac_cs_silent=: ;;
c906108c 23950
bec39cab 23951 # This is an error.
b4e70030
JB
23952 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23953Try \`$0 --help' for more information." >&5
23954echo "$as_me: error: unrecognized option: $1
23955Try \`$0 --help' for more information." >&2;}
bec39cab 23956 { (exit 1); exit 1; }; } ;;
c906108c 23957
b4e70030 23958 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 23959
bec39cab
AC
23960 esac
23961 shift
23962done
c906108c 23963
bec39cab 23964ac_configure_extra_args=
c906108c 23965
bec39cab
AC
23966if $ac_cs_silent; then
23967 exec 6>/dev/null
23968 ac_configure_extra_args="$ac_configure_extra_args --silent"
23969fi
c906108c 23970
bec39cab
AC
23971_ACEOF
23972cat >>$CONFIG_STATUS <<_ACEOF
23973if \$ac_cs_recheck; then
b4e70030
JB
23974 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23975 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
23976fi
23977
23978_ACEOF
23979
23980cat >>$CONFIG_STATUS <<_ACEOF
c906108c 23981#
b4e70030 23982# INIT-COMMANDS section.
c906108c 23983#
c906108c 23984
b4e70030 23985
4e8d927d
DJ
23986GCC="$GCC"
23987CC="$CC"
23988acx_cv_header_stdint="$acx_cv_header_stdint"
23989acx_cv_type_int8_t="$acx_cv_type_int8_t"
23990acx_cv_type_int16_t="$acx_cv_type_int16_t"
23991acx_cv_type_int32_t="$acx_cv_type_int32_t"
23992acx_cv_type_int64_t="$acx_cv_type_int64_t"
23993acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23994ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23995ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23996ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23997ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23998ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23999ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24000ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24001ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24002
bec39cab
AC
24003
24004gdb_host_cpu=$gdb_host_cpu
24005gdb_target_cpu=$gdb_target_cpu
24006nativefile=$nativefile
24007
24008
24009_ACEOF
24010
4e8d927d 24011
b4e70030
JB
24012
24013cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 24014for ac_config_target in $ac_config_targets
c906108c 24015do
b4e70030
JB
24016 case "$ac_config_target" in
24017 # Handling of arguments.
24018 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24019 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24020 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24021 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24022 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24023 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
24024 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24025echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24026 { (exit 1); exit 1; }; };;
c906108c
SS
24027 esac
24028done
24029
bec39cab
AC
24030# If the user did not use the arguments to specify the items to instantiate,
24031# then the envvar interface is used. Set only those that are not.
24032# We use the long form for the default assignment because of an extremely
24033# bizarre bug on SunOS 4.1.3.
24034if $ac_need_defaults; then
24035 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24036 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24037 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24038 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24039fi
24040
b4e70030
JB
24041# Have a temporary directory for convenience. Make it in the build tree
24042# simply because there is no reason to put it here, and in addition,
24043# creating and moving files from /tmp can sometimes cause problems.
24044# Create a temporary directory, and hook for its removal unless debugging.
24045$debug ||
24046{
24047 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24048 trap '{ (exit 1); exit 1; }' 1 2 13 15
24049}
4e8d927d 24050
b4e70030 24051# Create a (secure) tmp directory for tmp files.
4e8d927d 24052
b4e70030
JB
24053{
24054 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24055 test -n "$tmp" && test -d "$tmp"
24056} ||
24057{
24058 tmp=./confstat$$-$RANDOM
24059 (umask 077 && mkdir $tmp)
24060} ||
24061{
24062 echo "$me: cannot create a temporary directory in ." >&2
24063 { (exit 1); exit 1; }
24064}
4e8d927d 24065
b4e70030 24066_ACEOF
4e8d927d 24067
b4e70030 24068cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 24069
b4e70030
JB
24070#
24071# CONFIG_FILES section.
24072#
4e8d927d 24073
b4e70030
JB
24074# No need to generate the scripts if there are no CONFIG_FILES.
24075# This happens for instance when ./config.status config.h
24076if test -n "\$CONFIG_FILES"; then
24077 # Protect against being on the right side of a sed subst in config.status.
24078 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24079 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24080s,@SHELL@,$SHELL,;t t
24081s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24082s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24083s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24084s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24085s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24086s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24087s,@exec_prefix@,$exec_prefix,;t t
24088s,@prefix@,$prefix,;t t
24089s,@program_transform_name@,$program_transform_name,;t t
24090s,@bindir@,$bindir,;t t
24091s,@sbindir@,$sbindir,;t t
24092s,@libexecdir@,$libexecdir,;t t
24093s,@datadir@,$datadir,;t t
24094s,@sysconfdir@,$sysconfdir,;t t
24095s,@sharedstatedir@,$sharedstatedir,;t t
24096s,@localstatedir@,$localstatedir,;t t
24097s,@libdir@,$libdir,;t t
24098s,@includedir@,$includedir,;t t
24099s,@oldincludedir@,$oldincludedir,;t t
24100s,@infodir@,$infodir,;t t
24101s,@mandir@,$mandir,;t t
24102s,@build_alias@,$build_alias,;t t
24103s,@host_alias@,$host_alias,;t t
24104s,@target_alias@,$target_alias,;t t
24105s,@DEFS@,$DEFS,;t t
24106s,@ECHO_C@,$ECHO_C,;t t
24107s,@ECHO_N@,$ECHO_N,;t t
24108s,@ECHO_T@,$ECHO_T,;t t
24109s,@LIBS@,$LIBS,;t t
24110s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24111s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24112s,@MAINT@,$MAINT,;t t
24113s,@CC@,$CC,;t t
24114s,@CFLAGS@,$CFLAGS,;t t
24115s,@LDFLAGS@,$LDFLAGS,;t t
24116s,@CPPFLAGS@,$CPPFLAGS,;t t
24117s,@ac_ct_CC@,$ac_ct_CC,;t t
24118s,@EXEEXT@,$EXEEXT,;t t
24119s,@OBJEXT@,$OBJEXT,;t t
24120s,@CPP@,$CPP,;t t
24121s,@EGREP@,$EGREP,;t t
24122s,@build@,$build,;t t
24123s,@build_cpu@,$build_cpu,;t t
24124s,@build_vendor@,$build_vendor,;t t
24125s,@build_os@,$build_os,;t t
24126s,@host@,$host,;t t
24127s,@host_cpu@,$host_cpu,;t t
24128s,@host_vendor@,$host_vendor,;t t
24129s,@host_os@,$host_os,;t t
24130s,@target@,$target,;t t
24131s,@target_cpu@,$target_cpu,;t t
24132s,@target_vendor@,$target_vendor,;t t
24133s,@target_os@,$target_os,;t t
b4e70030 24134s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
24135s,@LIBINTL@,$LIBINTL,;t t
24136s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24137s,@INCINTL@,$INCINTL,;t t
b4e70030 24138s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
24139s,@GMSGFMT@,$GMSGFMT,;t t
24140s,@POSUB@,$POSUB,;t t
b4e70030 24141s,@CATALOGS@,$CATALOGS,;t t
b4e70030 24142s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 24143s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
24144s,@GENCAT@,$GENCAT,;t t
24145s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
24146s,@localedir@,$localedir,;t t
24147s,@PACKAGE@,$PACKAGE,;t t
24148s,@subdirs@,$subdirs,;t t
24149s,@AWK@,$AWK,;t t
24150s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24151s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24152s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24153s,@LN_S@,$LN_S,;t t
20e95c23
DJ
24154s,@RANLIB@,$RANLIB,;t t
24155s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
24156s,@YACC@,$YACC,;t t
24157s,@AR@,$AR,;t t
24158s,@ac_ct_AR@,$ac_ct_AR,;t t
24159s,@DLLTOOL@,$DLLTOOL,;t t
24160s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24161s,@WINDRES@,$WINDRES,;t t
24162s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
24163s,@MIG@,$MIG,;t t
24164s,@ac_ct_MIG@,$ac_ct_MIG,;t t
3841debe
DJ
24165s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
24166s,@LIBEXPAT@,$LIBEXPAT,;t t
24167s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 24168s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
24169s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
24170s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24171s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24172s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
24173s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
24174s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
24175s,@WIN32LIBS@,$WIN32LIBS,;t t
24176s,@LIBGUI@,$LIBGUI,;t t
24177s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
24178s,@WIN32LDAPP@,$WIN32LDAPP,;t t
24179s,@TCL_VERSION@,$TCL_VERSION,;t t
24180s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
24181s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
24182s,@TCL_CC@,$TCL_CC,;t t
24183s,@TCL_DEFS@,$TCL_DEFS,;t t
24184s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
24185s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
24186s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24187s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
24188s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
24189s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
24190s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
24191s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
24192s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
24193s,@TCL_RANLIB@,$TCL_RANLIB,;t t
24194s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
24195s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24196s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
24197s,@TK_VERSION@,$TK_VERSION,;t t
24198s,@TK_DEFS@,$TK_DEFS,;t t
24199s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
24200s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
24201s,@TK_XLIBSW@,$TK_XLIBSW,;t t
24202s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
24203s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
24204s,@TCLHDIR@,$TCLHDIR,;t t
24205s,@TKHDIR@,$TKHDIR,;t t
24206s,@ITCLHDIR@,$ITCLHDIR,;t t
24207s,@ITKHDIR@,$ITKHDIR,;t t
24208s,@ITCL_VERSION@,$ITCL_VERSION,;t t
24209s,@ITCL_DEFS@,$ITCL_DEFS,;t t
24210s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
24211s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
24212s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
24213s,@ITK_VERSION@,$ITK_VERSION,;t t
24214s,@ITK_DEFS@,$ITK_DEFS,;t t
24215s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
24216s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
24217s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
24218s,@X_CFLAGS@,$X_CFLAGS,;t t
24219s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24220s,@X_LIBS@,$X_LIBS,;t t
24221s,@TCL_DEPS@,$TCL_DEPS,;t t
24222s,@TK_DEPS@,$TK_DEPS,;t t
24223s,@ITCLLIB@,$ITCLLIB,;t t
24224s,@ITCL_DEPS@,$ITCL_DEPS,;t t
24225s,@ITKLIB@,$ITKLIB,;t t
24226s,@ITK_DEPS@,$ITK_DEPS,;t t
24227s,@GDBTKLIBS@,$GDBTKLIBS,;t t
24228s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
24229s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
24230s,@IGNORE_SIM@,$IGNORE_SIM,;t t
24231s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
24232s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
24233s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
24234s,@CONFIG_OBS@,$CONFIG_OBS,;t t
24235s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
24236s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
24237s,@CONFIG_ALL@,$CONFIG_ALL,;t t
24238s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
24239s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
24240s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
24241s,@target_subdir@,$target_subdir,;t t
24242s,@frags@,$frags,;t t
24243s,@xm_h@,$xm_h,;t t
24244s,@tm_h@,$tm_h,;t t
24245s,@nm_h@,$nm_h,;t t
24246s,@LIBICONV@,$LIBICONV,;t t
24247s,@LIBOBJS@,$LIBOBJS,;t t
24248s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24249/@host_makefile_frag@/r $host_makefile_frag
24250s,@host_makefile_frag@,,;t t
24251/@target_makefile_frag@/r $target_makefile_frag
24252s,@target_makefile_frag@,,;t t
24253CEOF
24254
24255_ACEOF
24256
24257 cat >>$CONFIG_STATUS <<\_ACEOF
24258 # Split the substitutions into bite-sized pieces for seds with
24259 # small command number limits, like on Digital OSF/1 and HP-UX.
24260 ac_max_sed_lines=48
24261 ac_sed_frag=1 # Number of current file.
24262 ac_beg=1 # First line for current file.
24263 ac_end=$ac_max_sed_lines # Line after last line for current file.
24264 ac_more_lines=:
24265 ac_sed_cmds=
24266 while $ac_more_lines; do
24267 if test $ac_beg -gt 1; then
24268 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24269 else
24270 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 24271 fi
b4e70030
JB
24272 if test ! -s $tmp/subs.frag; then
24273 ac_more_lines=false
24274 else
24275 # The purpose of the label and of the branching condition is to
24276 # speed up the sed processing (if there are no `@' at all, there
24277 # is no need to browse any of the substitutions).
24278 # These are the two extra sed commands mentioned above.
24279 (echo ':t
24280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24281 if test -z "$ac_sed_cmds"; then
24282 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24283 else
24284 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24285 fi
24286 ac_sed_frag=`expr $ac_sed_frag + 1`
24287 ac_beg=$ac_end
24288 ac_end=`expr $ac_end + $ac_max_sed_lines`
24289 fi
24290 done
24291 if test -z "$ac_sed_cmds"; then
24292 ac_sed_cmds=cat
24293 fi
24294fi # test -n "$CONFIG_FILES"
4e8d927d 24295
b4e70030
JB
24296_ACEOF
24297cat >>$CONFIG_STATUS <<\_ACEOF
24298for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24300 case $ac_file in
24301 - | *:- | *:-:* ) # input from stdin
24302 cat >$tmp/stdin
24303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24307 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
24308 esac
24309
b4e70030
JB
24310 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24311 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
24312$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24313 X"$ac_file" : 'X\(//\)[^/]' \| \
24314 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
24315 X"$ac_file" : 'X\(/\)' \| \
24316 . : '\(.\)' 2>/dev/null ||
bec39cab 24317echo X"$ac_file" |
b4e70030
JB
24318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24320 /^X\(\/\/\)$/{ s//\1/; q; }
24321 /^X\(\/\).*/{ s//\1/; q; }
24322 s/.*/./; q'`
24323 { if $as_mkdir_p; then
24324 mkdir -p "$ac_dir"
24325 else
24326 as_dir="$ac_dir"
bec39cab 24327 as_dirs=
b4e70030
JB
24328 while test ! -d "$as_dir"; do
24329 as_dirs="$as_dir $as_dirs"
24330 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
24331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24332 X"$as_dir" : 'X\(//\)[^/]' \| \
24333 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
24334 X"$as_dir" : 'X\(/\)' \| \
24335 . : '\(.\)' 2>/dev/null ||
bec39cab 24336echo X"$as_dir" |
b4e70030
JB
24337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24339 /^X\(\/\/\)$/{ s//\1/; q; }
24340 /^X\(\/\).*/{ s//\1/; q; }
24341 s/.*/./; q'`
bec39cab 24342 done
b4e70030
JB
24343 test ! -n "$as_dirs" || mkdir $as_dirs
24344 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24345echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 24346 { (exit 1); exit 1; }; }; }
b4e70030 24347
bec39cab
AC
24348 ac_builddir=.
24349
b4e70030 24350if test "$ac_dir" != .; then
bec39cab 24351 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
24352 # A "../" for each directory in $ac_dir_suffix.
24353 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24354else
24355 ac_dir_suffix= ac_top_builddir=
24356fi
bec39cab
AC
24357
24358case $srcdir in
b4e70030 24359 .) # No --srcdir option. We are building in place.
bec39cab 24360 ac_srcdir=.
b4e70030
JB
24361 if test -z "$ac_top_builddir"; then
24362 ac_top_srcdir=.
24363 else
24364 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24365 fi ;;
24366 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 24367 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
24368 ac_top_srcdir=$srcdir ;;
24369 *) # Relative path.
24370 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24371 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
24372esac
24373
b4e70030
JB
24374# Do not use `cd foo && pwd` to compute absolute paths, because
24375# the directories may not exist.
24376case `pwd` in
24377.) ac_abs_builddir="$ac_dir";;
24378*)
24379 case "$ac_dir" in
24380 .) ac_abs_builddir=`pwd`;;
24381 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24382 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24383 esac;;
24384esac
24385case $ac_abs_builddir in
24386.) ac_abs_top_builddir=${ac_top_builddir}.;;
24387*)
24388 case ${ac_top_builddir}. in
24389 .) ac_abs_top_builddir=$ac_abs_builddir;;
24390 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24391 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24392 esac;;
24393esac
24394case $ac_abs_builddir in
24395.) ac_abs_srcdir=$ac_srcdir;;
24396*)
24397 case $ac_srcdir in
24398 .) ac_abs_srcdir=$ac_abs_builddir;;
24399 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24400 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24401 esac;;
24402esac
24403case $ac_abs_builddir in
24404.) ac_abs_top_srcdir=$ac_top_srcdir;;
24405*)
24406 case $ac_top_srcdir in
24407 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24408 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24409 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24410 esac;;
24411esac
c906108c 24412
c906108c 24413
bec39cab
AC
24414 case $INSTALL in
24415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 24416 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 24417 esac
121ce6e5 24418
b4e70030
JB
24419 if test x"$ac_file" != x-; then
24420 { echo "$as_me:$LINENO: creating $ac_file" >&5
24421echo "$as_me: creating $ac_file" >&6;}
24422 rm -f "$ac_file"
24423 fi
24424 # Let's still pretend it is `configure' which instantiates (i.e., don't
24425 # use $as_me), people would be surprised to read:
24426 # /* config.h. Generated by config.status. */
24427 if test x"$ac_file" = x-; then
24428 configure_input=
24429 else
24430 configure_input="$ac_file. "
24431 fi
24432 configure_input=$configure_input"Generated from `echo $ac_file_in |
24433 sed 's,.*/,,'` by configure."
24434
24435 # First look for the input files in the build tree, otherwise in the
24436 # src tree.
24437 ac_file_inputs=`IFS=:
24438 for f in $ac_file_in; do
24439 case $f in
24440 -) echo $tmp/stdin ;;
24441 [\\/$]*)
24442 # Absolute (can't be DOS-style, as IFS=:)
24443 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24444echo "$as_me: error: cannot find input file: $f" >&2;}
24445 { (exit 1); exit 1; }; }
24446 echo "$f";;
24447 *) # Relative
24448 if test -f "$f"; then
24449 # Build tree
24450 echo "$f"
24451 elif test -f "$srcdir/$f"; then
24452 # Source tree
24453 echo "$srcdir/$f"
24454 else
24455 # /dev/null tree
24456 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24457echo "$as_me: error: cannot find input file: $f" >&2;}
24458 { (exit 1); exit 1; }; }
24459 fi;;
24460 esac
24461 done` || { (exit 1); exit 1; }
4e8d927d 24462_ACEOF
bec39cab
AC
24463cat >>$CONFIG_STATUS <<_ACEOF
24464 sed "$ac_vpsub
24465$extrasub
24466_ACEOF
24467cat >>$CONFIG_STATUS <<\_ACEOF
24468:t
24469/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
24470s,@configure_input@,$configure_input,;t t
24471s,@srcdir@,$ac_srcdir,;t t
24472s,@abs_srcdir@,$ac_abs_srcdir,;t t
24473s,@top_srcdir@,$ac_top_srcdir,;t t
24474s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24475s,@builddir@,$ac_builddir,;t t
24476s,@abs_builddir@,$ac_abs_builddir,;t t
24477s,@top_builddir@,$ac_top_builddir,;t t
24478s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24479s,@INSTALL@,$ac_INSTALL,;t t
24480" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24481 rm -f $tmp/stdin
24482 if test x"$ac_file" != x-; then
24483 mv $tmp/out $ac_file
24484 else
24485 cat $tmp/out
24486 rm -f $tmp/out
24487 fi
24488
24489done
24490_ACEOF
24491cat >>$CONFIG_STATUS <<\_ACEOF
24492
24493#
24494# CONFIG_HEADER section.
24495#
24496
24497# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24498# NAME is the cpp macro being defined and VALUE is the value it is being given.
24499#
24500# ac_d sets the value in "#define NAME VALUE" lines.
24501ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24502ac_dB='[ ].*$,\1#\2'
24503ac_dC=' '
24504ac_dD=',;t'
24505# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24506ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24507ac_uB='$,\1#\2define\3'
24508ac_uC=' '
24509ac_uD=',;t'
24510
24511for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 24513 case $ac_file in
b4e70030
JB
24514 - | *:- | *:-:* ) # input from stdin
24515 cat >$tmp/stdin
24516 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24518 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24519 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24520 * ) ac_file_in=$ac_file.in ;;
c906108c 24521 esac
b4e70030
JB
24522
24523 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24524echo "$as_me: creating $ac_file" >&6;}
24525
24526 # First look for the input files in the build tree, otherwise in the
24527 # src tree.
24528 ac_file_inputs=`IFS=:
24529 for f in $ac_file_in; do
24530 case $f in
24531 -) echo $tmp/stdin ;;
24532 [\\/$]*)
24533 # Absolute (can't be DOS-style, as IFS=:)
24534 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24535echo "$as_me: error: cannot find input file: $f" >&2;}
24536 { (exit 1); exit 1; }; }
24537 # Do quote $f, to prevent DOS paths from being IFS'd.
24538 echo "$f";;
24539 *) # Relative
24540 if test -f "$f"; then
24541 # Build tree
24542 echo "$f"
24543 elif test -f "$srcdir/$f"; then
24544 # Source tree
24545 echo "$srcdir/$f"
24546 else
24547 # /dev/null tree
24548 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24549echo "$as_me: error: cannot find input file: $f" >&2;}
24550 { (exit 1); exit 1; }; }
24551 fi;;
24552 esac
24553 done` || { (exit 1); exit 1; }
24554 # Remove the trailing spaces.
24555 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24556
24557_ACEOF
24558
24559# Transform confdefs.h into two sed scripts, `conftest.defines' and
24560# `conftest.undefs', that substitutes the proper values into
24561# config.h.in to produce config.h. The first handles `#define'
24562# templates, and the second `#undef' templates.
24563# And first: Protect against being on the right side of a sed subst in
24564# config.status. Protect against being in an unquoted here document
24565# in config.status.
24566rm -f conftest.defines conftest.undefs
24567# Using a here document instead of a string reduces the quoting nightmare.
24568# Putting comments in sed scripts is not portable.
24569#
24570# `end' is used to avoid that the second main sed command (meant for
24571# 0-ary CPP macros) applies to n-ary macro definitions.
24572# See the Autoconf documentation for `clear'.
24573cat >confdef2sed.sed <<\_ACEOF
24574s/[\\&,]/\\&/g
24575s,[\\$`],\\&,g
24576t clear
24577: clear
24578s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24579t end
24580s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24581: end
24582_ACEOF
24583# If some macros were called several times there might be several times
24584# the same #defines, which is useless. Nevertheless, we may not want to
24585# sort them, since we want the *last* AC-DEFINE to be honored.
24586uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24587sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24588rm -f confdef2sed.sed
24589
24590# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
24591# example, in the case of _POSIX_SOURCE, which is predefined and required
24592# on some systems where configure will not decide to define it.
b4e70030
JB
24593cat >>conftest.undefs <<\_ACEOF
24594s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24595_ACEOF
24596
24597# Break up conftest.defines because some shells have a limit on the size
24598# of here documents, and old seds have small limits too (100 cmds).
24599echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24600echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24601echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24602echo ' :' >>$CONFIG_STATUS
24603rm -f conftest.tail
24604while grep . conftest.defines >/dev/null
bec39cab 24605do
b4e70030
JB
24606 # Write a limited-size here document to $tmp/defines.sed.
24607 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24608 # Speed up: don't consider the non `#define' lines.
24609 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24610 # Work around the forget-to-reset-the-flag bug.
24611 echo 't clr' >>$CONFIG_STATUS
24612 echo ': clr' >>$CONFIG_STATUS
24613 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 24614 echo 'CEOF
b4e70030
JB
24615 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24616 rm -f $tmp/in
24617 mv $tmp/out $tmp/in
24618' >>$CONFIG_STATUS
24619 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
24620 rm -f conftest.defines
24621 mv conftest.tail conftest.defines
24622done
b4e70030
JB
24623rm -f conftest.defines
24624echo ' fi # grep' >>$CONFIG_STATUS
24625echo >>$CONFIG_STATUS
24626
24627# Break up conftest.undefs because some shells have a limit on the size
24628# of here documents, and old seds have small limits too (100 cmds).
24629echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24630rm -f conftest.tail
24631while grep . conftest.undefs >/dev/null
24632do
24633 # Write a limited-size here document to $tmp/undefs.sed.
24634 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24635 # Speed up: don't consider the non `#undef'
24636 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24637 # Work around the forget-to-reset-the-flag bug.
24638 echo 't clr' >>$CONFIG_STATUS
24639 echo ': clr' >>$CONFIG_STATUS
24640 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24641 echo 'CEOF
24642 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24643 rm -f $tmp/in
24644 mv $tmp/out $tmp/in
24645' >>$CONFIG_STATUS
24646 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24647 rm -f conftest.undefs
24648 mv conftest.tail conftest.undefs
24649done
24650rm -f conftest.undefs
bec39cab
AC
24651
24652cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
24653 # Let's still pretend it is `configure' which instantiates (i.e., don't
24654 # use $as_me), people would be surprised to read:
24655 # /* config.h. Generated by config.status. */
24656 if test x"$ac_file" = x-; then
24657 echo "/* Generated by configure. */" >$tmp/config.h
24658 else
24659 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24660 fi
24661 cat $tmp/in >>$tmp/config.h
24662 rm -f $tmp/in
bec39cab 24663 if test x"$ac_file" != x-; then
b4e70030 24664 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
24665 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24666echo "$as_me: $ac_file is unchanged" >&6;}
24667 else
b4e70030
JB
24668 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24669$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24670 X"$ac_file" : 'X\(//\)[^/]' \| \
24671 X"$ac_file" : 'X\(//\)$' \| \
24672 X"$ac_file" : 'X\(/\)' \| \
24673 . : '\(.\)' 2>/dev/null ||
24674echo X"$ac_file" |
24675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24677 /^X\(\/\/\)$/{ s//\1/; q; }
24678 /^X\(\/\).*/{ s//\1/; q; }
24679 s/.*/./; q'`
24680 { if $as_mkdir_p; then
24681 mkdir -p "$ac_dir"
24682 else
24683 as_dir="$ac_dir"
24684 as_dirs=
24685 while test ! -d "$as_dir"; do
24686 as_dirs="$as_dir $as_dirs"
24687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24688$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24689 X"$as_dir" : 'X\(//\)[^/]' \| \
24690 X"$as_dir" : 'X\(//\)$' \| \
24691 X"$as_dir" : 'X\(/\)' \| \
24692 . : '\(.\)' 2>/dev/null ||
24693echo X"$as_dir" |
24694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24696 /^X\(\/\/\)$/{ s//\1/; q; }
24697 /^X\(\/\).*/{ s//\1/; q; }
24698 s/.*/./; q'`
24699 done
24700 test ! -n "$as_dirs" || mkdir $as_dirs
24701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24702echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24703 { (exit 1); exit 1; }; }; }
24704
bec39cab 24705 rm -f $ac_file
b4e70030 24706 mv $tmp/config.h $ac_file
bec39cab
AC
24707 fi
24708 else
b4e70030
JB
24709 cat $tmp/config.h
24710 rm -f $tmp/config.h
bec39cab 24711 fi
b4e70030
JB
24712done
24713_ACEOF
24714cat >>$CONFIG_STATUS <<\_ACEOF
24715
24716#
24717# CONFIG_LINKS section.
24718#
24719
24720for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24721 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24722 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 24723
b4e70030
JB
24724 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24725echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
24726
24727 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
24728 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24729echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24730 { (exit 1); exit 1; }; }
c906108c 24731 fi
b4e70030
JB
24732 rm -f $ac_dest
24733
24734 # Make relative symlinks.
24735 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24736$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24737 X"$ac_dest" : 'X\(//\)[^/]' \| \
24738 X"$ac_dest" : 'X\(//\)$' \| \
24739 X"$ac_dest" : 'X\(/\)' \| \
24740 . : '\(.\)' 2>/dev/null ||
24741echo X"$ac_dest" |
24742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24744 /^X\(\/\/\)$/{ s//\1/; q; }
24745 /^X\(\/\).*/{ s//\1/; q; }
24746 s/.*/./; q'`
24747 { if $as_mkdir_p; then
24748 mkdir -p "$ac_dest_dir"
24749 else
24750 as_dir="$ac_dest_dir"
24751 as_dirs=
24752 while test ! -d "$as_dir"; do
24753 as_dirs="$as_dir $as_dirs"
24754 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24755$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24756 X"$as_dir" : 'X\(//\)[^/]' \| \
24757 X"$as_dir" : 'X\(//\)$' \| \
24758 X"$as_dir" : 'X\(/\)' \| \
24759 . : '\(.\)' 2>/dev/null ||
24760echo X"$as_dir" |
24761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24763 /^X\(\/\/\)$/{ s//\1/; q; }
24764 /^X\(\/\).*/{ s//\1/; q; }
24765 s/.*/./; q'`
24766 done
24767 test ! -n "$as_dirs" || mkdir $as_dirs
24768 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24769echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24770 { (exit 1); exit 1; }; }; }
24771
24772 ac_builddir=.
24773
24774if test "$ac_dest_dir" != .; then
24775 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24776 # A "../" for each directory in $ac_dir_suffix.
24777 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24778else
24779 ac_dir_suffix= ac_top_builddir=
24780fi
24781
24782case $srcdir in
24783 .) # No --srcdir option. We are building in place.
24784 ac_srcdir=.
24785 if test -z "$ac_top_builddir"; then
24786 ac_top_srcdir=.
24787 else
24788 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24789 fi ;;
24790 [\\/]* | ?:[\\/]* ) # Absolute path.
24791 ac_srcdir=$srcdir$ac_dir_suffix;
24792 ac_top_srcdir=$srcdir ;;
24793 *) # Relative path.
24794 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24795 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24796esac
24797
24798# Do not use `cd foo && pwd` to compute absolute paths, because
24799# the directories may not exist.
24800case `pwd` in
24801.) ac_abs_builddir="$ac_dest_dir";;
24802*)
24803 case "$ac_dest_dir" in
24804 .) ac_abs_builddir=`pwd`;;
24805 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24806 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24807 esac;;
24808esac
24809case $ac_abs_builddir in
24810.) ac_abs_top_builddir=${ac_top_builddir}.;;
24811*)
24812 case ${ac_top_builddir}. in
24813 .) ac_abs_top_builddir=$ac_abs_builddir;;
24814 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24815 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24816 esac;;
24817esac
24818case $ac_abs_builddir in
24819.) ac_abs_srcdir=$ac_srcdir;;
24820*)
24821 case $ac_srcdir in
24822 .) ac_abs_srcdir=$ac_abs_builddir;;
24823 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24824 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24825 esac;;
24826esac
24827case $ac_abs_builddir in
24828.) ac_abs_top_srcdir=$ac_top_srcdir;;
24829*)
24830 case $ac_top_srcdir in
24831 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24832 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24833 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24834 esac;;
24835esac
24836
bec39cab
AC
24837
24838 case $srcdir in
24839 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 24840 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 24841 esac
b4e70030
JB
24842
24843 # Try a symlink, then a hard link, then a copy.
24844 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24845 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24846 cp -p $srcdir/$ac_source $ac_dest ||
24847 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24848echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 24849 { (exit 1); exit 1; }; }
b4e70030
JB
24850done
24851_ACEOF
24852cat >>$CONFIG_STATUS <<\_ACEOF
24853
24854#
24855# CONFIG_COMMANDS section.
24856#
24857for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24858 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24859 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24860 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24861$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24862 X"$ac_dest" : 'X\(//\)[^/]' \| \
24863 X"$ac_dest" : 'X\(//\)$' \| \
24864 X"$ac_dest" : 'X\(/\)' \| \
24865 . : '\(.\)' 2>/dev/null ||
24866echo X"$ac_dest" |
24867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24869 /^X\(\/\/\)$/{ s//\1/; q; }
24870 /^X\(\/\).*/{ s//\1/; q; }
24871 s/.*/./; q'`
24872 { if $as_mkdir_p; then
24873 mkdir -p "$ac_dir"
24874 else
24875 as_dir="$ac_dir"
24876 as_dirs=
24877 while test ! -d "$as_dir"; do
24878 as_dirs="$as_dir $as_dirs"
24879 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24880$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24881 X"$as_dir" : 'X\(//\)[^/]' \| \
24882 X"$as_dir" : 'X\(//\)$' \| \
24883 X"$as_dir" : 'X\(/\)' \| \
24884 . : '\(.\)' 2>/dev/null ||
24885echo X"$as_dir" |
24886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24887 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24888 /^X\(\/\/\)$/{ s//\1/; q; }
24889 /^X\(\/\).*/{ s//\1/; q; }
24890 s/.*/./; q'`
24891 done
24892 test ! -n "$as_dirs" || mkdir $as_dirs
24893 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24894echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24895 { (exit 1); exit 1; }; }; }
24896
24897 ac_builddir=.
24898
24899if test "$ac_dir" != .; then
24900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24901 # A "../" for each directory in $ac_dir_suffix.
24902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24903else
24904 ac_dir_suffix= ac_top_builddir=
24905fi
24906
24907case $srcdir in
24908 .) # No --srcdir option. We are building in place.
24909 ac_srcdir=.
24910 if test -z "$ac_top_builddir"; then
24911 ac_top_srcdir=.
24912 else
24913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24914 fi ;;
24915 [\\/]* | ?:[\\/]* ) # Absolute path.
24916 ac_srcdir=$srcdir$ac_dir_suffix;
24917 ac_top_srcdir=$srcdir ;;
24918 *) # Relative path.
24919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24921esac
24922
24923# Do not use `cd foo && pwd` to compute absolute paths, because
24924# the directories may not exist.
24925case `pwd` in
24926.) ac_abs_builddir="$ac_dir";;
24927*)
24928 case "$ac_dir" in
24929 .) ac_abs_builddir=`pwd`;;
24930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24932 esac;;
24933esac
24934case $ac_abs_builddir in
24935.) ac_abs_top_builddir=${ac_top_builddir}.;;
24936*)
24937 case ${ac_top_builddir}. in
24938 .) ac_abs_top_builddir=$ac_abs_builddir;;
24939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24941 esac;;
24942esac
24943case $ac_abs_builddir in
24944.) ac_abs_srcdir=$ac_srcdir;;
24945*)
24946 case $ac_srcdir in
24947 .) ac_abs_srcdir=$ac_abs_builddir;;
24948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24950 esac;;
24951esac
24952case $ac_abs_builddir in
24953.) ac_abs_top_srcdir=$ac_top_srcdir;;
24954*)
24955 case $ac_top_srcdir in
24956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24959 esac;;
24960esac
bec39cab 24961
bec39cab 24962
b4e70030
JB
24963 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24964echo "$as_me: executing $ac_dest commands" >&6;}
24965 case $ac_dest in
24966 gdb_stdint.h )
4e8d927d
DJ
24967if test "$GCC" = yes; then
24968 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24969else
24970 echo "/* generated for $CC */" > tmp-stdint.h
24971fi
24972
24973sed 's/^ *//' >> tmp-stdint.h <<EOF
24974
24975 #ifndef GCC_GENERATED_STDINT_H
24976 #define GCC_GENERATED_STDINT_H 1
24977
24978 #include <sys/types.h>
24979EOF
24980
24981if test "$acx_cv_header_stdint" != stdint.h; then
24982 echo "#include <stddef.h>" >> tmp-stdint.h
24983fi
24984if test "$acx_cv_header_stdint" != stddef.h; then
24985 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24986fi
24987
24988sed 's/^ *//' >> tmp-stdint.h <<EOF
24989 /* glibc uses these symbols as guards to prevent redefinitions. */
24990 #ifdef __int8_t_defined
24991 #define _INT8_T
24992 #define _INT16_T
24993 #define _INT32_T
24994 #endif
24995 #ifdef __uint32_t_defined
24996 #define _UINT32_T
24997 #endif
24998
24999EOF
25000
25001# ----------------- done header, emit basic int types -------------
25002if test "$acx_cv_header_stdint" = stddef.h; then
25003 sed 's/^ *//' >> tmp-stdint.h <<EOF
25004
25005 #ifndef _UINT8_T
25006 #define _UINT8_T
25007 typedef unsigned $acx_cv_type_int8_t uint8_t;
25008 #endif
25009
25010 #ifndef _UINT16_T
25011 #define _UINT16_T
25012 typedef unsigned $acx_cv_type_int16_t uint16_t;
25013 #endif
25014
25015 #ifndef _UINT32_T
25016 #define _UINT32_T
25017 typedef unsigned $acx_cv_type_int32_t uint32_t;
25018 #endif
25019
25020 #ifndef _INT8_T
25021 #define _INT8_T
25022 typedef $acx_cv_type_int8_t int8_t;
25023 #endif
25024
25025 #ifndef _INT16_T
25026 #define _INT16_T
25027 typedef $acx_cv_type_int16_t int16_t;
25028 #endif
25029
25030 #ifndef _INT32_T
25031 #define _INT32_T
25032 typedef $acx_cv_type_int32_t int32_t;
25033 #endif
25034EOF
25035elif test "$ac_cv_type_u_int32_t" = yes; then
25036 sed 's/^ *//' >> tmp-stdint.h <<EOF
25037
25038 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25039 #ifndef _INT8_T
25040 #define _INT8_T
25041 #endif
25042 #ifndef _INT16_T
25043 #define _INT16_T
25044 #endif
25045 #ifndef _INT32_T
25046 #define _INT32_T
25047 #endif
25048
25049 #ifndef _UINT8_T
25050 #define _UINT8_T
25051 typedef u_int8_t uint8_t;
25052 #endif
25053
25054 #ifndef _UINT16_T
25055 #define _UINT16_T
25056 typedef u_int16_t uint16_t;
25057 #endif
25058
25059 #ifndef _UINT32_T
25060 #define _UINT32_T
25061 typedef u_int32_t uint32_t;
25062 #endif
25063EOF
25064else
25065 sed 's/^ *//' >> tmp-stdint.h <<EOF
25066
25067 /* Some systems have guard macros to prevent redefinitions, define them. */
25068 #ifndef _INT8_T
25069 #define _INT8_T
25070 #endif
25071 #ifndef _INT16_T
25072 #define _INT16_T
25073 #endif
25074 #ifndef _INT32_T
25075 #define _INT32_T
25076 #endif
25077 #ifndef _UINT8_T
25078 #define _UINT8_T
25079 #endif
25080 #ifndef _UINT16_T
25081 #define _UINT16_T
25082 #endif
25083 #ifndef _UINT32_T
25084 #define _UINT32_T
25085 #endif
25086EOF
25087fi
25088
25089# ------------- done basic int types, emit int64_t types ------------
25090if test "$ac_cv_type_uint64_t" = yes; then
25091 sed 's/^ *//' >> tmp-stdint.h <<EOF
25092
25093 /* system headers have good uint64_t and int64_t */
25094 #ifndef _INT64_T
25095 #define _INT64_T
25096 #endif
25097 #ifndef _UINT64_T
25098 #define _UINT64_T
25099 #endif
25100EOF
25101elif test "$ac_cv_type_u_int64_t" = yes; then
25102 sed 's/^ *//' >> tmp-stdint.h <<EOF
25103
25104 /* system headers have an u_int64_t (and int64_t) */
25105 #ifndef _INT64_T
25106 #define _INT64_T
25107 #endif
25108 #ifndef _UINT64_T
25109 #define _UINT64_T
25110 typedef u_int64_t uint64_t;
25111 #endif
25112EOF
25113elif test -n "$acx_cv_type_int64_t"; then
25114 sed 's/^ *//' >> tmp-stdint.h <<EOF
25115
25116 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25117 #ifndef _INT64_T
25118 #define _INT64_T
25119 typedef $acx_cv_type_int64_t int64_t;
25120 #endif
25121 #ifndef _UINT64_T
25122 #define _UINT64_T
25123 typedef unsigned $acx_cv_type_int64_t uint64_t;
25124 #endif
25125EOF
25126else
25127 sed 's/^ *//' >> tmp-stdint.h <<EOF
25128
25129 /* some common heuristics for int64_t, using compiler-specific tests */
25130 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25131 #ifndef _INT64_T
25132 #define _INT64_T
25133 typedef long long int64_t;
25134 #endif
25135 #ifndef _UINT64_T
25136 #define _UINT64_T
25137 typedef unsigned long long uint64_t;
25138 #endif
25139
25140 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25141 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25142 does not implement __extension__. But that compiler doesn't define
25143 __GNUC_MINOR__. */
25144 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25145 # define __extension__
25146 # endif
25147
25148 # ifndef _INT64_T
25149 # define _INT64_T
25150 __extension__ typedef long long int64_t;
25151 # endif
25152 # ifndef _UINT64_T
25153 # define _UINT64_T
25154 __extension__ typedef unsigned long long uint64_t;
25155 # endif
25156
25157 #elif !defined __STRICT_ANSI__
25158 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25159
25160 # ifndef _INT64_T
25161 # define _INT64_T
25162 typedef __int64 int64_t;
25163 # endif
25164 # ifndef _UINT64_T
25165 # define _UINT64_T
25166 typedef unsigned __int64 uint64_t;
25167 # endif
25168 # endif /* compiler */
25169
25170 #endif /* ANSI version */
25171EOF
25172fi
25173
25174# ------------- done int64_t types, emit intptr types ------------
25175if test "$ac_cv_type_uintptr_t" != yes; then
25176 sed 's/^ *//' >> tmp-stdint.h <<EOF
25177
25178 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
25179 typedef u$acx_cv_type_intptr_t uintptr_t;
25180 typedef $acx_cv_type_intptr_t intptr_t;
25181EOF
25182fi
25183
25184# ------------- done intptr types, emit int_least types ------------
25185if test "$ac_cv_type_int_least32_t" != yes; then
25186 sed 's/^ *//' >> tmp-stdint.h <<EOF
25187
25188 /* Define int_least types */
25189 typedef int8_t int_least8_t;
25190 typedef int16_t int_least16_t;
25191 typedef int32_t int_least32_t;
25192 #ifdef _INT64_T
25193 typedef int64_t int_least64_t;
25194 #endif
25195
25196 typedef uint8_t uint_least8_t;
25197 typedef uint16_t uint_least16_t;
25198 typedef uint32_t uint_least32_t;
25199 #ifdef _UINT64_T
25200 typedef uint64_t uint_least64_t;
25201 #endif
25202EOF
25203fi
25204
25205# ------------- done intptr types, emit int_fast types ------------
25206if test "$ac_cv_type_int_fast32_t" != yes; then
25207 sed 's/^ *//' >> tmp-stdint.h <<EOF
25208
25209 /* Define int_fast types. short is often slow */
25210 typedef int8_t int_fast8_t;
25211 typedef int int_fast16_t;
25212 typedef int32_t int_fast32_t;
25213 #ifdef _INT64_T
25214 typedef int64_t int_fast64_t;
25215 #endif
25216
25217 typedef uint8_t uint_fast8_t;
25218 typedef unsigned int uint_fast16_t;
25219 typedef uint32_t uint_fast32_t;
25220 #ifdef _UINT64_T
25221 typedef uint64_t uint_fast64_t;
25222 #endif
25223EOF
25224fi
25225
25226if test "$ac_cv_type_uintmax_t" != yes; then
25227 sed 's/^ *//' >> tmp-stdint.h <<EOF
25228
25229 /* Define intmax based on what we found */
25230 #ifdef _INT64_T
25231 typedef int64_t intmax_t;
25232 #else
25233 typedef long intmax_t;
25234 #endif
25235 #ifdef _UINT64_T
25236 typedef uint64_t uintmax_t;
25237 #else
25238 typedef unsigned long uintmax_t;
25239 #endif
25240EOF
25241fi
25242
25243sed 's/^ *//' >> tmp-stdint.h <<EOF
25244
25245 #endif /* GCC_GENERATED_STDINT_H */
25246EOF
25247
25248if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
25249 rm -f tmp-stdint.h
25250else
25251 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
25252fi
25253
4e8d927d 25254 ;;
b4e70030 25255 default )
c906108c 25256
2c0fc042 25257sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
25258/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
25259/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25260mv -f Makefile.tmp Makefile
25261
2acceee2 25262
c906108c
SS
25263case x$CONFIG_HEADERS in
25264xconfig.h:config.in)
25265echo > stamp-h ;;
25266esac
bec39cab
AC
25267 ;;
25268 esac
b4e70030
JB
25269done
25270_ACEOF
c906108c 25271
b4e70030 25272cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25273
25274{ (exit 0); exit 0; }
25275_ACEOF
c906108c 25276chmod +x $CONFIG_STATUS
bec39cab
AC
25277ac_clean_files=$ac_clean_files_save
25278
25279
25280# configure is writing to config.log, and then calls config.status.
25281# config.status does its own redirection, appending to config.log.
25282# Unfortunately, on DOS this fails, as config.log is still kept open
25283# by configure, so config.status won't be able to write to it; its
25284# output is simply discarded. So we exec the FD to /dev/null,
25285# effectively closing config.log, so it can be properly (re)opened and
25286# appended to by config.status. When coming back to configure, we
25287# need to make the FD available again.
25288if test "$no_create" != yes; then
25289 ac_cs_success=:
25290 ac_config_status_args=
25291 test "$silent" = yes &&
25292 ac_config_status_args="$ac_config_status_args --quiet"
25293 exec 5>/dev/null
25294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25295 exec 5>>config.log
25296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25297 # would make configure fail if this is the last instruction.
25298 $ac_cs_success || { (exit 1); exit 1; }
25299fi
c906108c 25300
bec39cab
AC
25301#
25302# CONFIG_SUBDIRS section.
25303#
c906108c
SS
25304if test "$no_recursion" != yes; then
25305
25306 # Remove --cache-file and --srcdir arguments so they do not pile up.
25307 ac_sub_configure_args=
25308 ac_prev=
b4e70030 25309 for ac_arg in $ac_configure_args; do
c906108c
SS
25310 if test -n "$ac_prev"; then
25311 ac_prev=
25312 continue
25313 fi
bec39cab 25314 case $ac_arg in
c906108c
SS
25315 -cache-file | --cache-file | --cache-fil | --cache-fi \
25316 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25317 ac_prev=cache_file ;;
25318 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
25319 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25320 | --c=*)
25321 ;;
25322 --config-cache | -C)
c906108c
SS
25323 ;;
25324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25325 ac_prev=srcdir ;;
25326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25327 ;;
bec39cab
AC
25328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25329 ac_prev=prefix ;;
25330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25331 ;;
b4e70030 25332 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
25333 esac
25334 done
25335
bec39cab
AC
25336 # Always prepend --prefix to ensure using the same prefix
25337 # in subdir configurations.
25338 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25339
b4e70030 25340 ac_popdir=`pwd`
bec39cab 25341 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
25342
25343 # Do not complain, so a configure script can configure whichever
25344 # parts of a large source tree are present.
bec39cab 25345 test -d $srcdir/$ac_dir || continue
c906108c 25346
b4e70030
JB
25347 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25348echo "$as_me: configuring in $ac_dir" >&6;}
25349 { if $as_mkdir_p; then
25350 mkdir -p "$ac_dir"
25351 else
25352 as_dir="$ac_dir"
bec39cab 25353 as_dirs=
b4e70030
JB
25354 while test ! -d "$as_dir"; do
25355 as_dirs="$as_dir $as_dirs"
25356 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25357$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25358 X"$as_dir" : 'X\(//\)[^/]' \| \
25359 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25360 X"$as_dir" : 'X\(/\)' \| \
25361 . : '\(.\)' 2>/dev/null ||
bec39cab 25362echo X"$as_dir" |
b4e70030
JB
25363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25365 /^X\(\/\/\)$/{ s//\1/; q; }
25366 /^X\(\/\).*/{ s//\1/; q; }
25367 s/.*/./; q'`
bec39cab 25368 done
b4e70030
JB
25369 test ! -n "$as_dirs" || mkdir $as_dirs
25370 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25371echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25372 { (exit 1); exit 1; }; }; }
b4e70030 25373
bec39cab
AC
25374 ac_builddir=.
25375
b4e70030 25376if test "$ac_dir" != .; then
bec39cab 25377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25378 # A "../" for each directory in $ac_dir_suffix.
25379 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25380else
25381 ac_dir_suffix= ac_top_builddir=
25382fi
bec39cab
AC
25383
25384case $srcdir in
b4e70030 25385 .) # No --srcdir option. We are building in place.
bec39cab 25386 ac_srcdir=.
b4e70030
JB
25387 if test -z "$ac_top_builddir"; then
25388 ac_top_srcdir=.
25389 else
25390 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25391 fi ;;
25392 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25393 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25394 ac_top_srcdir=$srcdir ;;
25395 *) # Relative path.
25396 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25397 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25398esac
25399
25400# Do not use `cd foo && pwd` to compute absolute paths, because
25401# the directories may not exist.
25402case `pwd` in
25403.) ac_abs_builddir="$ac_dir";;
25404*)
25405 case "$ac_dir" in
25406 .) ac_abs_builddir=`pwd`;;
25407 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25408 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25409 esac;;
25410esac
25411case $ac_abs_builddir in
25412.) ac_abs_top_builddir=${ac_top_builddir}.;;
25413*)
25414 case ${ac_top_builddir}. in
25415 .) ac_abs_top_builddir=$ac_abs_builddir;;
25416 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25417 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25418 esac;;
25419esac
25420case $ac_abs_builddir in
25421.) ac_abs_srcdir=$ac_srcdir;;
25422*)
25423 case $ac_srcdir in
25424 .) ac_abs_srcdir=$ac_abs_builddir;;
25425 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25426 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25427 esac;;
25428esac
25429case $ac_abs_builddir in
25430.) ac_abs_top_srcdir=$ac_top_srcdir;;
25431*)
25432 case $ac_top_srcdir in
25433 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25434 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25435 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25436 esac;;
bec39cab 25437esac
c906108c 25438
c906108c 25439
b4e70030 25440 cd $ac_dir
c906108c
SS
25441
25442 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
25443 if test -f $ac_srcdir/configure.gnu; then
25444 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25445 elif test -f $ac_srcdir/configure; then
25446 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25447 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
25448 ac_sub_configure=$ac_configure
25449 else
bec39cab
AC
25450 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25451echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
25452 ac_sub_configure=
25453 fi
25454
25455 # The recursion is here.
25456 if test -n "$ac_sub_configure"; then
c906108c 25457 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
25458 case $cache_file in
25459 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
25460 *) # Relative path.
25461 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 25462 esac
c906108c 25463
bec39cab
AC
25464 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25465echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 25466 # The eval makes quoting arguments work.
b4e70030
JB
25467 eval $ac_sub_configure $ac_sub_configure_args \
25468 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
25469 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25470echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25471 { (exit 1); exit 1; }; }
c906108c
SS
25472 fi
25473
b4e70030 25474 cd $ac_popdir
c906108c
SS
25475 done
25476fi
25477
25478
25479exit 0
This page took 2.352439 seconds and 4 git commands to generate.