* config/arm/embed.mt (SIM_OBS, SIM): Remove.
[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"
9b624dbe 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS'
b4e70030 317ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
318
319# Initialize some variables set by options.
bec39cab
AC
320ac_init_help=
321ac_init_version=false
c906108c
SS
322# The variables have the same names as the options, with
323# dashes changed to underlines.
bec39cab 324cache_file=/dev/null
c906108c 325exec_prefix=NONE
c906108c 326no_create=
c906108c
SS
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
c906108c
SS
335verbose=
336x_includes=NONE
337x_libraries=NONE
bec39cab
AC
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
b4e70030 347datadir='${prefix}/share'
c906108c
SS
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
b4e70030 351libdir='${exec_prefix}/lib'
c906108c
SS
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
b4e70030
JB
354infodir='${prefix}/info'
355mandir='${prefix}/man'
c906108c 356
c906108c
SS
357ac_prev=
358for ac_option
359do
c906108c
SS
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
b4e70030 362 eval "$ac_prev=\$ac_option"
c906108c
SS
363 ac_prev=
364 continue
365 fi
366
b4e70030 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
b4e70030 371 case $ac_option in
c906108c
SS
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 376 bindir=$ac_optarg ;;
c906108c
SS
377
378 -build | --build | --buil | --bui | --bu)
bec39cab 379 ac_prev=build_alias ;;
c906108c 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 381 build_alias=$ac_optarg ;;
c906108c
SS
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
c906108c 392
b4e70030 393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 394 ac_prev=datadir ;;
b4e70030
JB
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
bec39cab 397 datadir=$ac_optarg ;;
c906108c
SS
398
399 -disable-* | --disable-*)
bec39cab 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 401 # Reject names that are not valid shell variable names.
bec39cab
AC
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030 406 eval "enable_$ac_feature=no" ;;
c906108c
SS
407
408 -enable-* | --enable-*)
bec39cab 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 410 # Reject names that are not valid shell variable names.
bec39cab
AC
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030
JB
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
bec39cab 428 exec_prefix=$ac_optarg ;;
c906108c
SS
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
bec39cab
AC
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
c906108c
SS
440
441 -host | --host | --hos | --ho)
bec39cab 442 ac_prev=host_alias ;;
c906108c 443 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 444 host_alias=$ac_optarg ;;
c906108c
SS
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 451 includedir=$ac_optarg ;;
c906108c
SS
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 456 infodir=$ac_optarg ;;
c906108c
SS
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 461 libdir=$ac_optarg ;;
c906108c
SS
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
bec39cab 468 libexecdir=$ac_optarg ;;
c906108c
SS
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 477 localstatedir=$ac_optarg ;;
c906108c
SS
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 482 mandir=$ac_optarg ;;
c906108c
SS
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 489 | --no-cr | --no-c | -n)
c906108c
SS
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 503 oldincludedir=$ac_optarg ;;
c906108c
SS
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 508 prefix=$ac_optarg ;;
c906108c
SS
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 515 program_prefix=$ac_optarg ;;
c906108c
SS
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 522 program_suffix=$ac_optarg ;;
c906108c
SS
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 539 program_transform_name=$ac_optarg ;;
c906108c
SS
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
bec39cab 549 sbindir=$ac_optarg ;;
c906108c
SS
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
bec39cab 560 sharedstatedir=$ac_optarg ;;
c906108c
SS
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
bec39cab 565 site=$ac_optarg ;;
3ace7edb 566
c906108c
SS
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 570 srcdir=$ac_optarg ;;
c906108c
SS
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 577 sysconfdir=$ac_optarg ;;
c906108c
SS
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 580 ac_prev=target_alias ;;
c906108c 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 582 target_alias=$ac_optarg ;;
c906108c
SS
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
bec39cab
AC
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
c906108c
SS
589
590 -with-* | --with-*)
bec39cab 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 592 # Reject names that are not valid shell variable names.
bec39cab
AC
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
c906108c 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
602
603 -without-* | --without-*)
bec39cab 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 605 # Reject names that are not valid shell variable names.
bec39cab
AC
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
b4e70030 610 eval "with_$ac_package=no" ;;
c906108c
SS
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 621 x_includes=$ac_optarg ;;
c906108c
SS
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 628 x_libraries=$ac_optarg ;;
c906108c 629
bec39cab
AC
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
c906108c
SS
633 ;;
634
bec39cab
AC
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
b4e70030
JB
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
643 export $ac_envvar ;;
644
c906108c 645 *)
bec39cab
AC
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
bec39cab
AC
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
c906108c 660fi
c906108c 661
b4e70030
JB
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
c906108c 664do
b4e70030 665 eval ac_val=$`echo $ac_var`
bec39cab 666 case $ac_val in
b4e70030
JB
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
c906108c
SS
682 esac
683done
684
bec39cab
AC
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
c906108c 702
bec39cab
AC
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
c906108c 707
c906108c
SS
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
b4e70030
JB
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
bec39cab 719echo X"$0" |
b4e70030
JB
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
c906108c 725 srcdir=$ac_confdir
b4e70030 726 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
b4e70030
JB
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 738 { (exit 1); exit 1; }; }
b4e70030 739 fi
c906108c 740fi
b4e70030
JB
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 743 { (exit 1); exit 1; }; }
b4e70030
JB
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
c906108c 777
bec39cab
AC
778#
779# Report the --help message.
780#
781if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE. See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
b4e70030
JB
805_ACEOF
806
807 cat <<_ACEOF
bec39cab
AC
808Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
b4e70030 825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b4e70030
JB
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
834_ACEOF
835
836 cat <<\_ACEOF
837
838Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
bec39cab
AC
863 --disable-gdbcli disable command-line interface (CLI)
864 --disable-gdbmi disable machine-interface (MI)
865 --enable-tui enable full-screen terminal user interface (TUI)
866 --enable-gdbtk enable gdbtk graphical user interface (GUI)
867 --enable-profiling enable profiling of GDB
3841debe 868 --disable-rpath do not hardcode runtime library paths
094a342e 869 --enable-werror treat compile warnings as errors
bec39cab
AC
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
874
875Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bec39cab
AC
878 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
6a30b0a5 880 --with-system-readline use installed readline library
5c39566f 881 --with-expat include expat support (auto/yes/no)
3841debe
DJ
882 --with-gnu-ld assume the C compiler uses GNU ld default=no
883 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
884 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
885 --without-included-regex don't use included regex; this is the default
886 on systems with version 2 of the GNU C library
887 (use with caution on other system)
888 --with-sysroot=DIR Search for usr/lib et al within DIR.
889 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
890 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
891 --with-tclinclude=DIR Directory where tcl private headers are
892 --with-tkinclude=DIR Directory where tk private headers are
893 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
894 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
895 --with-x use the X Window System
896 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
897
898Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
b4e70030
JB
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
bec39cab
AC
905 CPP C preprocessor
906
907Use these variables to override the choices made by `configure' or to help
908it to find libraries and programs with nonstandard names/locations.
909
910_ACEOF
911fi
912
913if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
b4e70030 915 ac_popdir=`pwd`
bec39cab
AC
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
918 ac_builddir=.
919
b4e70030 920if test "$ac_dir" != .; then
bec39cab 921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924else
925 ac_dir_suffix= ac_top_builddir=
926fi
bec39cab
AC
927
928case $srcdir in
b4e70030 929 .) # No --srcdir option. We are building in place.
bec39cab 930 ac_srcdir=.
b4e70030
JB
931 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=.
933 else
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 fi ;;
936 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 937 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
938 ac_top_srcdir=$srcdir ;;
939 *) # Relative path.
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942esac
943
944# Do not use `cd foo && pwd` to compute absolute paths, because
945# the directories may not exist.
946case `pwd` in
947.) ac_abs_builddir="$ac_dir";;
948*)
949 case "$ac_dir" in
950 .) ac_abs_builddir=`pwd`;;
951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_builddir=${ac_top_builddir}.;;
957*)
958 case ${ac_top_builddir}. in
959 .) ac_abs_top_builddir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 esac;;
963esac
964case $ac_abs_builddir in
965.) ac_abs_srcdir=$ac_srcdir;;
966*)
967 case $ac_srcdir in
968 .) ac_abs_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 esac;;
972esac
973case $ac_abs_builddir in
974.) ac_abs_top_srcdir=$ac_top_srcdir;;
975*)
976 case $ac_top_srcdir in
977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 esac;;
bec39cab
AC
981esac
982
b4e70030
JB
983 cd $ac_dir
984 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 985 if test -f $ac_srcdir/configure.gnu; then
b4e70030 986 echo
bec39cab
AC
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
b4e70030 989 echo
bec39cab 990 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
993 echo
994 $ac_configure --help
3ace7edb 995 else
bec39cab 996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
997 fi
998 cd $ac_popdir
bec39cab
AC
999 done
1000fi
1001
b4e70030 1002test -n "$ac_init_help" && exit 0
bec39cab
AC
1003if $ac_init_version; then
1004 cat <<\_ACEOF
1005
b4e70030 1006Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1007This configure script is free software; the Free Software Foundation
1008gives unlimited permission to copy, distribute and modify it.
1009_ACEOF
b4e70030 1010 exit 0
bec39cab 1011fi
b4e70030
JB
1012exec 5>config.log
1013cat >&5 <<_ACEOF
bec39cab
AC
1014This file contains any messages produced by compilers while
1015running configure, to aid debugging if configure makes a mistake.
1016
1017It was created by $as_me, which was
b4e70030 1018generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1019
1020 $ $0 $@
1021
1022_ACEOF
1023{
1024cat <<_ASUNAME
1025## --------- ##
1026## Platform. ##
1027## --------- ##
1028
1029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034
1035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037
1038/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1041hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1042/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045
1046_ASUNAME
1047
1048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049for as_dir in $PATH
1050do
1051 IFS=$as_save_IFS
1052 test -z "$as_dir" && as_dir=.
1053 echo "PATH: $as_dir"
1054done
1055
1056} >&5
1057
1058cat >&5 <<_ACEOF
1059
1060
1061## ----------- ##
1062## Core tests. ##
1063## ----------- ##
1064
1065_ACEOF
1066
1067
1068# Keep a trace of the command line.
1069# Strip out --no-create and --no-recursion so they do not pile up.
1070# Strip out --silent because we don't want to record it for future runs.
1071# Also quote any args containing shell meta-characters.
1072# Make two passes to allow for proper duplicate-argument suppression.
1073ac_configure_args=
1074ac_configure_args0=
1075ac_configure_args1=
1076ac_sep=
1077ac_must_keep_next=false
1078for ac_pass in 1 2
1079do
1080 for ac_arg
1081 do
1082 case $ac_arg in
1083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 continue ;;
b4e70030 1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1088 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089 esac
1090 case $ac_pass in
1091 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092 2)
1093 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094 if test $ac_must_keep_next = true; then
1095 ac_must_keep_next=false # Got value, back to normal.
1096 else
1097 case $ac_arg in
1098 *=* | --config-cache | -C | -disable-* | --disable-* \
1099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101 | -with-* | --with-* | -without-* | --without-* | --x)
1102 case "$ac_configure_args0 " in
1103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 esac
1105 ;;
1106 -* ) ac_must_keep_next=true ;;
1107 esac
1108 fi
1109 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110 # Get rid of the leading space.
1111 ac_sep=" "
1112 ;;
1113 esac
1114 done
1115done
1116$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118
1119# When interrupted or exit'd, cleanup temporary files, and complete
1120# config.log. We remove comments because anyway the quotes in there
1121# would cause problems or look ugly.
b4e70030
JB
1122# WARNING: Be sure not to use single quotes in there, as some shells,
1123# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1124trap 'exit_status=$?
1125 # Save into config.log some information that might help in debugging.
1126 {
1127 echo
1128
1129 cat <<\_ASBOX
1130## ---------------- ##
1131## Cache variables. ##
1132## ---------------- ##
1133_ASBOX
1134 echo
1135 # The following way of writing the cache mishandles newlines in values,
b4e70030 1136{
bec39cab 1137 (set) 2>&1 |
b4e70030
JB
1138 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 *ac_space=\ *)
bec39cab 1140 sed -n \
b4e70030
JB
1141 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 ;;
bec39cab 1144 *)
b4e70030
JB
1145 sed -n \
1146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1147 ;;
b4e70030
JB
1148 esac;
1149}
bec39cab
AC
1150 echo
1151
1152 cat <<\_ASBOX
1153## ----------------- ##
1154## Output variables. ##
1155## ----------------- ##
1156_ASBOX
1157 echo
1158 for ac_var in $ac_subst_vars
1159 do
b4e70030
JB
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1162 done | sort
1163 echo
1164
1165 if test -n "$ac_subst_files"; then
1166 cat <<\_ASBOX
b4e70030
JB
1167## ------------- ##
1168## Output files. ##
1169## ------------- ##
bec39cab
AC
1170_ASBOX
1171 echo
1172 for ac_var in $ac_subst_files
1173 do
b4e70030
JB
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1176 done | sort
1177 echo
1178 fi
1179
1180 if test -s confdefs.h; then
1181 cat <<\_ASBOX
1182## ----------- ##
1183## confdefs.h. ##
1184## ----------- ##
1185_ASBOX
1186 echo
b4e70030 1187 sed "/^$/d" confdefs.h | sort
bec39cab 1188 echo
3ace7edb 1189 fi
bec39cab
AC
1190 test "$ac_signal" != 0 &&
1191 echo "$as_me: caught signal $ac_signal"
1192 echo "$as_me: exit $exit_status"
1193 } >&5
b4e70030
JB
1194 rm -f core *.core &&
1195 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1196 exit $exit_status
b4e70030 1197 ' 0
bec39cab
AC
1198for ac_signal in 1 2 13 15; do
1199 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200done
1201ac_signal=0
1202
1203# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1204rm -rf conftest* confdefs.h
1205# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206echo >confdefs.h
bec39cab
AC
1207
1208# Predefined preprocessor variables.
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_NAME "$PACKAGE_NAME"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_VERSION "$PACKAGE_VERSION"
1222_ACEOF
1223
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_STRING "$PACKAGE_STRING"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232_ACEOF
1233
1234
1235# Let the site file select an alternate cache file if it wants to.
1236# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1237if test -z "$CONFIG_SITE"; then
1238 if test "x$prefix" != xNONE; then
1239 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240 else
1241 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 fi
c906108c 1243fi
b4e70030 1244for ac_site_file in $CONFIG_SITE; do
c906108c 1245 if test -r "$ac_site_file"; then
bec39cab
AC
1246 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247echo "$as_me: loading site script $ac_site_file" >&6;}
1248 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1249 . "$ac_site_file"
1250 fi
1251done
1252
1253if test -r "$cache_file"; then
bec39cab
AC
1254 # Some versions of bash will fail to source /dev/null (special
1255 # files actually), so we avoid doing that.
1256 if test -f "$cache_file"; then
1257 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258echo "$as_me: loading cache $cache_file" >&6;}
1259 case $cache_file in
1260 [\\/]* | ?:[\\/]* ) . $cache_file;;
1261 *) . ./$cache_file;;
1262 esac
1263 fi
c906108c 1264else
bec39cab
AC
1265 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266echo "$as_me: creating cache $cache_file" >&6;}
1267 >$cache_file
1268fi
1269
1270# Check that the precious variables saved in the cache have kept the same
1271# value.
1272ac_cache_corrupted=false
b4e70030
JB
1273for ac_var in `(set) 2>&1 |
1274 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1277 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1279 case $ac_old_set,$ac_new_set in
1280 set,)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,set)
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1288 ,);;
1289 *)
1290 if test "x$ac_old_val" != "x$ac_new_val"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294echo "$as_me: former value: $ac_old_val" >&2;}
1295 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296echo "$as_me: current value: $ac_new_val" >&2;}
1297 ac_cache_corrupted=:
1298 fi;;
1299 esac
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1302 case $ac_new_val in
b4e70030
JB
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1306 esac
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 esac
1311 fi
1312done
1313if $ac_cache_corrupted; then
1314 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318 { (exit 1); exit 1; }; }
c906108c
SS
1319fi
1320
b4e70030
JB
1321ac_ext=c
1322ac_cpp='$CPP $CPPFLAGS'
1323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1326
1327
bec39cab
AC
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
bec39cab 1344
b4e70030
JB
1345 ac_config_headers="$ac_config_headers config.h:config.in"
1346
1347echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1348echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1349 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1350if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1351 enableval="$enable_maintainer_mode"
1352 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1353else
1354 USE_MAINTAINER_MODE=no
b4e70030
JB
1355fi;
1356 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1357echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1358
413ccac7
AC
1359
1360if test $USE_MAINTAINER_MODE = yes; then
1361 MAINTAINER_MODE_TRUE=
1362 MAINTAINER_MODE_FALSE='#'
1363else
1364 MAINTAINER_MODE_TRUE='#'
1365 MAINTAINER_MODE_FALSE=
1366fi
85981d60 1367
413ccac7 1368 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1369
c906108c 1370
bec39cab
AC
1371
1372ac_ext=c
1373ac_cpp='$CPP $CPPFLAGS'
1374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377if test -n "$ac_tool_prefix"; then
1378 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1379set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1380echo "$as_me:$LINENO: checking for $ac_word" >&5
1381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1382if test "${ac_cv_prog_CC+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385 if test -n "$CC"; then
1386 ac_cv_prog_CC="$CC" # Let the user override the test.
1387else
1388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389for as_dir in $PATH
1390do
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1395 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 break 2
1398 fi
1399done
1400done
1401
1402fi
1403fi
1404CC=$ac_cv_prog_CC
1405if test -n "$CC"; then
b4e70030
JB
1406 echo "$as_me:$LINENO: result: $CC" >&5
1407echo "${ECHO_T}$CC" >&6
bec39cab 1408else
b4e70030
JB
1409 echo "$as_me:$LINENO: result: no" >&5
1410echo "${ECHO_T}no" >&6
bec39cab
AC
1411fi
1412
1413fi
1414if test -z "$ac_cv_prog_CC"; then
1415 ac_ct_CC=$CC
1416 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1417set dummy gcc; ac_word=$2
b4e70030
JB
1418echo "$as_me:$LINENO: checking for $ac_word" >&5
1419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
1423 if test -n "$ac_ct_CC"; then
1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425else
1426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427for as_dir in $PATH
1428do
1429 IFS=$as_save_IFS
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1433 ac_cv_prog_ac_ct_CC="gcc"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 break 2
1436 fi
1437done
1438done
1439
1440fi
1441fi
1442ac_ct_CC=$ac_cv_prog_ac_ct_CC
1443if test -n "$ac_ct_CC"; then
b4e70030
JB
1444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1445echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1446else
b4e70030
JB
1447 echo "$as_me:$LINENO: result: no" >&5
1448echo "${ECHO_T}no" >&6
bec39cab
AC
1449fi
1450
b4e70030 1451 CC=$ac_ct_CC
bec39cab
AC
1452else
1453 CC="$ac_cv_prog_CC"
1454fi
1455
1456if test -z "$CC"; then
b4e70030
JB
1457 if test -n "$ac_tool_prefix"; then
1458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1459set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1460echo "$as_me:$LINENO: checking for $ac_word" >&5
1461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1462if test "${ac_cv_prog_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1464else
1465 if test -n "$CC"; then
1466 ac_cv_prog_CC="$CC" # Let the user override the test.
1467else
bec39cab
AC
1468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469for as_dir in $PATH
1470do
1471 IFS=$as_save_IFS
1472 test -z "$as_dir" && as_dir=.
1473 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1475 ac_cv_prog_CC="${ac_tool_prefix}cc"
1476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477 break 2
1478 fi
1479done
1480done
1481
c906108c
SS
1482fi
1483fi
bec39cab 1484CC=$ac_cv_prog_CC
c906108c 1485if test -n "$CC"; then
b4e70030
JB
1486 echo "$as_me:$LINENO: result: $CC" >&5
1487echo "${ECHO_T}$CC" >&6
c906108c 1488else
b4e70030
JB
1489 echo "$as_me:$LINENO: result: no" >&5
1490echo "${ECHO_T}no" >&6
c906108c
SS
1491fi
1492
b4e70030
JB
1493fi
1494if test -z "$ac_cv_prog_CC"; then
1495 ac_ct_CC=$CC
1496 # Extract the first word of "cc", so it can be a program name with args.
1497set dummy cc; ac_word=$2
1498echo "$as_me:$LINENO: checking for $ac_word" >&5
1499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502else
1503 if test -n "$ac_ct_CC"; then
1504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1505else
1506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507for as_dir in $PATH
1508do
1509 IFS=$as_save_IFS
1510 test -z "$as_dir" && as_dir=.
1511 for ac_exec_ext in '' $ac_executable_extensions; do
1512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513 ac_cv_prog_ac_ct_CC="cc"
1514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515 break 2
4e8d927d 1516 fi
b4e70030
JB
1517done
1518done
1519
1520fi
1521fi
1522ac_ct_CC=$ac_cv_prog_ac_ct_CC
1523if test -n "$ac_ct_CC"; then
1524 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1525echo "${ECHO_T}$ac_ct_CC" >&6
1526else
1527 echo "$as_me:$LINENO: result: no" >&5
1528echo "${ECHO_T}no" >&6
1529fi
1530
1531 CC=$ac_ct_CC
1532else
1533 CC="$ac_cv_prog_CC"
1534fi
1535
bec39cab 1536fi
c906108c
SS
1537if test -z "$CC"; then
1538 # Extract the first word of "cc", so it can be a program name with args.
1539set dummy cc; ac_word=$2
b4e70030
JB
1540echo "$as_me:$LINENO: checking for $ac_word" >&5
1541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1542if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1544else
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1547else
c906108c 1548 ac_prog_rejected=no
bec39cab
AC
1549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550for as_dir in $PATH
1551do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1557 ac_prog_rejected=yes
1558 continue
1559 fi
1560 ac_cv_prog_CC="cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562 break 2
1563 fi
1564done
1565done
1566
c906108c
SS
1567if test $ac_prog_rejected = yes; then
1568 # We found a bogon in the path, so make sure we never use it.
1569 set dummy $ac_cv_prog_CC
1570 shift
bec39cab 1571 if test $# != 0; then
c906108c
SS
1572 # We chose a different compiler from the bogus one.
1573 # However, it has the same basename, so the bogon will be chosen
1574 # first if we set CC to just the basename; use the full file name.
1575 shift
bec39cab 1576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1577 fi
1578fi
1579fi
1580fi
bec39cab 1581CC=$ac_cv_prog_CC
c906108c 1582if test -n "$CC"; then
b4e70030
JB
1583 echo "$as_me:$LINENO: result: $CC" >&5
1584echo "${ECHO_T}$CC" >&6
c906108c 1585else
b4e70030
JB
1586 echo "$as_me:$LINENO: result: no" >&5
1587echo "${ECHO_T}no" >&6
c906108c
SS
1588fi
1589
bec39cab
AC
1590fi
1591if test -z "$CC"; then
1592 if test -n "$ac_tool_prefix"; then
b4e70030 1593 for ac_prog in cl
bec39cab
AC
1594 do
1595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1599if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1601else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604else
bec39cab
AC
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1615 fi
1616done
1617done
1618
c906108c
SS
1619fi
1620fi
bec39cab 1621CC=$ac_cv_prog_CC
c906108c 1622if test -n "$CC"; then
b4e70030
JB
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624echo "${ECHO_T}$CC" >&6
c906108c 1625else
b4e70030
JB
1626 echo "$as_me:$LINENO: result: no" >&5
1627echo "${ECHO_T}no" >&6
c906108c 1628fi
bec39cab
AC
1629
1630 test -n "$CC" && break
1631 done
1632fi
1633if test -z "$CC"; then
1634 ac_ct_CC=$CC
b4e70030 1635 for ac_prog in cl
bec39cab
AC
1636do
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638set dummy $ac_prog; ac_word=$2
b4e70030
JB
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1654 ac_cv_prog_ac_ct_CC="$ac_prog"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
c906108c 1657 fi
bec39cab
AC
1658done
1659done
1660
1661fi
1662fi
1663ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664if test -n "$ac_ct_CC"; then
b4e70030
JB
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1667else
b4e70030
JB
1668 echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
c906108c
SS
1670fi
1671
bec39cab
AC
1672 test -n "$ac_ct_CC" && break
1673done
c906108c 1674
b4e70030 1675 CC=$ac_ct_CC
bec39cab
AC
1676fi
1677
1678fi
1679
1680
1681test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1682See \`config.log' for more details." >&5
1683echo "$as_me: error: no acceptable C compiler found in \$PATH
1684See \`config.log' for more details." >&2;}
1685 { (exit 1); exit 1; }; }
1686
1687# Provide some information about the compiler.
b4e70030
JB
1688echo "$as_me:$LINENO:" \
1689 "checking for C compiler version" >&5
bec39cab 1690ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1691{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1692 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1693 ac_status=$?
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); }
b4e70030
JB
1696{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1697 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1698 ac_status=$?
1699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700 (exit $ac_status); }
b4e70030
JB
1701{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1702 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1703 ac_status=$?
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706
1707cat >conftest.$ac_ext <<_ACEOF
1708/* confdefs.h. */
1709_ACEOF
1710cat confdefs.h >>conftest.$ac_ext
1711cat >>conftest.$ac_ext <<_ACEOF
1712/* end confdefs.h. */
1713
1714int
1715main ()
1716{
1717
1718 ;
1719 return 0;
1720}
1721_ACEOF
1722ac_clean_files_save=$ac_clean_files
b4e70030 1723ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1724# Try to create an executable without -o first, disregard a.out.
1725# It will help us diagnose broken compilers, and finding out an intuition
1726# of exeext.
b4e70030
JB
1727echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1728echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1729ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1730if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1731 (eval $ac_link_default) 2>&5
1732 ac_status=$?
1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734 (exit $ac_status); }; then
b4e70030
JB
1735 # Find the output, starting from the most likely. This scheme is
1736# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1737# resort.
1738
1739# Be careful to initialize this variable, since it used to be cached.
1740# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1741ac_cv_exeext=
1742# b.out is created by i960 compilers.
1743for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1744do
1745 test -f "$ac_file" || continue
1746 case $ac_file in
b4e70030
JB
1747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1748 ;;
1749 conftest.$ac_ext )
1750 # This is the source file.
1751 ;;
1752 [ab].out )
1753 # We found the default executable, but exeext='' is most
1754 # certainly right.
1755 break;;
1756 *.* )
1757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool,
1759 # but it would be cool to find out if it's true. Does anybody
1760 # maintain Libtool? --akim.
1761 export ac_cv_exeext
1762 break;;
1763 * )
1764 break;;
bec39cab
AC
1765 esac
1766done
1767else
1768 echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1772See \`config.log' for more details." >&5
1773echo "$as_me: error: C compiler cannot create executables
1774See \`config.log' for more details." >&2;}
1775 { (exit 77); exit 77; }; }
1776fi
1777
b4e70030
JB
1778ac_exeext=$ac_cv_exeext
1779echo "$as_me:$LINENO: result: $ac_file" >&5
1780echo "${ECHO_T}$ac_file" >&6
1781
1782# Check the compiler produces executables we can run. If not, either
bec39cab 1783# the compiler is broken, or we cross compile.
b4e70030
JB
1784echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1785echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1786# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1787# If not cross compiling, check that we can run a simple program.
1788if test "$cross_compiling" != yes; then
1789 if { ac_try='./$ac_file'
1790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1791 (eval $ac_try) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1795 cross_compiling=no
c906108c 1796 else
bec39cab
AC
1797 if test "$cross_compiling" = maybe; then
1798 cross_compiling=yes
1799 else
1800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1801If you meant to cross compile, use \`--host'.
1802See \`config.log' for more details." >&5
1803echo "$as_me: error: cannot run C compiled programs.
1804If you meant to cross compile, use \`--host'.
1805See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
1807 fi
c906108c 1808 fi
bec39cab 1809fi
b4e70030
JB
1810echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
bec39cab 1812
b4e70030
JB
1813rm -f a.out a.exe conftest$ac_cv_exeext b.out
1814ac_clean_files=$ac_clean_files_save
1815# Check the compiler produces executables we can run. If not, either
1816# the compiler is broken, or we cross compile.
1817echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1818echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1819echo "$as_me:$LINENO: result: $cross_compiling" >&5
1820echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1821
b4e70030
JB
1822echo "$as_me:$LINENO: checking for suffix of executables" >&5
1823echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1825 (eval $ac_link) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
b4e70030
JB
1829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1830# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1831# work properly (i.e., refer to `conftest.exe'), while it won't with
1832# `rm'.
1833for ac_file in conftest.exe conftest conftest.*; do
1834 test -f "$ac_file" || continue
1835 case $ac_file in
1836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838 export ac_cv_exeext
1839 break;;
1840 * ) break;;
1841 esac
1842done
c906108c 1843else
bec39cab
AC
1844 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1845See \`config.log' for more details." >&5
1846echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1847See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
c906108c 1849fi
c906108c 1850
b4e70030
JB
1851rm -f conftest$ac_cv_exeext
1852echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1853echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1854
b4e70030 1855rm -f conftest.$ac_ext
bec39cab
AC
1856EXEEXT=$ac_cv_exeext
1857ac_exeext=$EXEEXT
b4e70030
JB
1858echo "$as_me:$LINENO: checking for suffix of object files" >&5
1859echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1860if test "${ac_cv_objext+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862else
b4e70030
JB
1863 cat >conftest.$ac_ext <<_ACEOF
1864/* confdefs.h. */
1865_ACEOF
1866cat confdefs.h >>conftest.$ac_ext
1867cat >>conftest.$ac_ext <<_ACEOF
1868/* end confdefs.h. */
1869
1870int
1871main ()
1872{
1873
1874 ;
1875 return 0;
1876}
1877_ACEOF
1878rm -f conftest.o conftest.obj
bec39cab
AC
1879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 (eval $ac_compile) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
b4e70030 1884 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1885 case $ac_file in
b4e70030 1886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1887 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1888 break;;
1889 esac
1890done
c906108c 1891else
bec39cab
AC
1892 echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1896See \`config.log' for more details." >&5
1897echo "$as_me: error: cannot compute suffix of object files: cannot compile
1898See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
c906108c
SS
1900fi
1901
b4e70030 1902rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1903fi
b4e70030
JB
1904echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1905echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1906OBJEXT=$ac_cv_objext
1907ac_objext=$OBJEXT
b4e70030
JB
1908echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1909echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1910if test "${ac_cv_c_compiler_gnu+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1912else
bec39cab
AC
1913 cat >conftest.$ac_ext <<_ACEOF
1914/* confdefs.h. */
1915_ACEOF
1916cat confdefs.h >>conftest.$ac_ext
1917cat >>conftest.$ac_ext <<_ACEOF
1918/* end confdefs.h. */
1919
1920int
1921main ()
1922{
1923#ifndef __GNUC__
1924 choke me
1925#endif
1926
1927 ;
1928 return 0;
1929}
1930_ACEOF
1931rm -f conftest.$ac_objext
1932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>conftest.er1
1934 ac_status=$?
1935 grep -v '^ *+' conftest.er1 >conftest.err
1936 rm -f conftest.er1
1937 cat conftest.err >&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); } &&
b4e70030
JB
1940 { ac_try='test -z "$ac_c_werror_flag"
1941 || test ! -s conftest.err'
bec39cab
AC
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 (eval $ac_try) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1953 ac_compiler_gnu=yes
1954else
1955 echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
b4e70030 1958ac_compiler_gnu=no
bec39cab
AC
1959fi
1960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1961ac_cv_c_compiler_gnu=$ac_compiler_gnu
1962
1963fi
b4e70030
JB
1964echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1965echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1966GCC=`test $ac_compiler_gnu = yes && echo yes`
1967ac_test_CFLAGS=${CFLAGS+set}
1968ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1969CFLAGS="-g"
1970echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1971echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1972if test "${ac_cv_prog_cc_g+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
b4e70030 1975 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1976/* confdefs.h. */
1977_ACEOF
1978cat confdefs.h >>conftest.$ac_ext
1979cat >>conftest.$ac_ext <<_ACEOF
1980/* end confdefs.h. */
1981
1982int
1983main ()
1984{
1985
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990rm -f conftest.$ac_objext
1991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1993 ac_status=$?
1994 grep -v '^ *+' conftest.er1 >conftest.err
1995 rm -f conftest.er1
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
b4e70030
JB
1999 { ac_try='test -z "$ac_c_werror_flag"
2000 || test ! -s conftest.err'
bec39cab
AC
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
c906108c
SS
2012 ac_cv_prog_cc_g=yes
2013else
bec39cab
AC
2014 echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2016
b4e70030 2017ac_cv_prog_cc_g=no
4e8d927d 2018fi
bec39cab
AC
2019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020fi
b4e70030
JB
2021echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2022echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2023if test "$ac_test_CFLAGS" = set; then
bec39cab 2024 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2025elif test $ac_cv_prog_cc_g = yes; then
2026 if test "$GCC" = yes; then
2027 CFLAGS="-g -O2"
2028 else
2029 CFLAGS="-g"
2030 fi
2031else
2032 if test "$GCC" = yes; then
2033 CFLAGS="-O2"
2034 else
2035 CFLAGS=
2036 fi
2037fi
b4e70030
JB
2038echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2039echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2040if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
b4e70030 2043 ac_cv_prog_cc_stdc=no
bec39cab
AC
2044ac_save_CC=$CC
2045cat >conftest.$ac_ext <<_ACEOF
2046/* confdefs.h. */
2047_ACEOF
2048cat confdefs.h >>conftest.$ac_ext
2049cat >>conftest.$ac_ext <<_ACEOF
2050/* end confdefs.h. */
c906108c
SS
2051#include <stdarg.h>
2052#include <stdio.h>
2053#include <sys/types.h>
2054#include <sys/stat.h>
2055/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2056struct buf { int x; };
2057FILE * (*rcsopen) (struct buf *, struct stat *, int);
2058static char *e (p, i)
2059 char **p;
2060 int i;
2061{
2062 return p[i];
2063}
2064static char *f (char * (*g) (char **, int), char **p, ...)
2065{
2066 char *s;
2067 va_list v;
2068 va_start (v,p);
2069 s = g (p, va_arg (v,int));
2070 va_end (v);
2071 return s;
2072}
bec39cab
AC
2073
2074/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2075 function prototypes and stuff, but not '\xHH' hex character constants.
2076 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2077 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2079 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2080 that's true only with -std1. */
bec39cab
AC
2081int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2082
c906108c
SS
2083int test (int i, double x);
2084struct s1 {int (*f) (int a);};
2085struct s2 {int (*f) (double a);};
2086int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2087int argc;
2088char **argv;
bec39cab
AC
2089int
2090main ()
2091{
c906108c 2092return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2093 ;
2094 return 0;
2095}
2096_ACEOF
b4e70030
JB
2097# Don't try gcc -ansi; that turns off useful extensions and
2098# breaks some systems' header files.
2099# AIX -qlanglvl=ansi
2100# Ultrix and OSF/1 -std1
2101# HP-UX 10.20 and later -Ae
2102# HP-UX older versions -Aa -D_HPUX_SOURCE
2103# SVR4 -Xc -D__EXTENSIONS__
2104for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2105do
2106 CC="$ac_save_CC $ac_arg"
2107 rm -f conftest.$ac_objext
2108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2110 ac_status=$?
2111 grep -v '^ *+' conftest.er1 >conftest.err
2112 rm -f conftest.er1
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
b4e70030
JB
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
bec39cab
AC
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
b4e70030
JB
2129 ac_cv_prog_cc_stdc=$ac_arg
2130break
c906108c 2131else
bec39cab
AC
2132 echo "$as_me: failed program was:" >&5
2133sed 's/^/| /' conftest.$ac_ext >&5
2134
c906108c 2135fi
bec39cab 2136rm -f conftest.err conftest.$ac_objext
c906108c 2137done
b4e70030 2138rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2139CC=$ac_save_CC
c906108c
SS
2140
2141fi
b4e70030
JB
2142
2143case "x$ac_cv_prog_cc_stdc" in
2144 x|xno)
2145 echo "$as_me:$LINENO: result: none needed" >&5
2146echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2147 *)
b4e70030
JB
2148 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2149echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2150 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2151esac
2152
b4e70030
JB
2153# Some people use a C++ compiler to compile C. Since we use `exit',
2154# in C++ we need to declare it. In case someone uses the same compiler
2155# for both compiling C and C++ we need to have the C++ compiler decide
2156# the declaration of exit, since it's the most demanding environment.
2157cat >conftest.$ac_ext <<_ACEOF
2158#ifndef __cplusplus
2159 choke me
2160#endif
2161_ACEOF
2162rm -f conftest.$ac_objext
2163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag"
2172 || test ! -s conftest.err'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; } &&
2178 { ac_try='test -s conftest.$ac_objext'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 for ac_declaration in \
2185 '' \
2186 'extern "C" void std::exit (int) throw (); using std::exit;' \
2187 'extern "C" void std::exit (int); using std::exit;' \
2188 'extern "C" void exit (int) throw ();' \
2189 'extern "C" void exit (int);' \
2190 'void exit (int);'
2191do
2192 cat >conftest.$ac_ext <<_ACEOF
2193/* confdefs.h. */
2194_ACEOF
2195cat confdefs.h >>conftest.$ac_ext
2196cat >>conftest.$ac_ext <<_ACEOF
2197/* end confdefs.h. */
2198$ac_declaration
2199#include <stdlib.h>
2200int
2201main ()
2202{
2203exit (42);
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208rm -f conftest.$ac_objext
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>conftest.er1
2211 ac_status=$?
2212 grep -v '^ *+' conftest.er1 >conftest.err
2213 rm -f conftest.er1
2214 cat conftest.err >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -z "$ac_c_werror_flag"
2218 || test ! -s conftest.err'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 :
2231else
2232 echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235continue
2236fi
2237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239/* confdefs.h. */
2240_ACEOF
2241cat confdefs.h >>conftest.$ac_ext
2242cat >>conftest.$ac_ext <<_ACEOF
2243/* end confdefs.h. */
2244$ac_declaration
2245int
2246main ()
2247{
2248exit (42);
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253rm -f conftest.$ac_objext
2254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2256 ac_status=$?
2257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 break
2276else
2277 echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280fi
2281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282done
2283rm -f conftest*
2284if test -n "$ac_declaration"; then
2285 echo '#ifdef __cplusplus' >>confdefs.h
2286 echo $ac_declaration >>confdefs.h
2287 echo '#endif' >>confdefs.h
2288fi
2289
2290else
2291 echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2293
b4e70030
JB
2294fi
2295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2296ac_ext=c
2297ac_cpp='$CPP $CPPFLAGS'
2298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2301
60ca704f 2302
bec39cab
AC
2303cat >>confdefs.h <<\_ACEOF
2304#define _GNU_SOURCE 1
2305_ACEOF
c906108c
SS
2306
2307
8bb2c122 2308
bec39cab
AC
2309ac_ext=c
2310ac_cpp='$CPP $CPPFLAGS'
2311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2314echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2315echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2316# On Suns, sometimes $CPP names a directory.
2317if test -n "$CPP" && test -d "$CPP"; then
2318 CPP=
8bb2c122 2319fi
bec39cab
AC
2320if test -z "$CPP"; then
2321 if test "${ac_cv_prog_CPP+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324 # Double quotes because CPP needs to be expanded
2325 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2326 do
2327 ac_preproc_ok=false
2328for ac_c_preproc_warn_flag in '' yes
2329do
2330 # Use a header file that comes with gcc, so configuring glibc
2331 # with a fresh cross-compiler works.
2332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2333 # <limits.h> exists even on freestanding compilers.
2334 # On the NeXT, cc -E runs the code through the compiler's parser,
2335 # not just through cpp. "Syntax error" is here to catch this case.
2336 cat >conftest.$ac_ext <<_ACEOF
2337/* confdefs.h. */
2338_ACEOF
2339cat confdefs.h >>conftest.$ac_ext
2340cat >>conftest.$ac_ext <<_ACEOF
2341/* end confdefs.h. */
2342#ifdef __STDC__
2343# include <limits.h>
2344#else
2345# include <assert.h>
2346#endif
2347 Syntax error
2348_ACEOF
2349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2351 ac_status=$?
2352 grep -v '^ *+' conftest.er1 >conftest.err
2353 rm -f conftest.er1
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } >/dev/null; then
2357 if test -s conftest.err; then
2358 ac_cpp_err=$ac_c_preproc_warn_flag
2359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2360 else
2361 ac_cpp_err=
2362 fi
8bb2c122 2363else
bec39cab 2364 ac_cpp_err=yes
8bb2c122 2365fi
bec39cab
AC
2366if test -z "$ac_cpp_err"; then
2367 :
8bb2c122 2368else
bec39cab
AC
2369 echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 # Broken: fails on valid input.
2373continue
2374fi
2375rm -f conftest.err conftest.$ac_ext
2376
b4e70030 2377 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2378 # can be detected and how.
2379 cat >conftest.$ac_ext <<_ACEOF
2380/* confdefs.h. */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h. */
2385#include <ac_nonexistent.h>
2386_ACEOF
2387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } >/dev/null; then
2395 if test -s conftest.err; then
2396 ac_cpp_err=$ac_c_preproc_warn_flag
2397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2398 else
2399 ac_cpp_err=
2400 fi
8bb2c122 2401else
bec39cab 2402 ac_cpp_err=yes
8bb2c122 2403fi
bec39cab
AC
2404if test -z "$ac_cpp_err"; then
2405 # Broken: success on invalid input.
2406continue
8bb2c122 2407else
bec39cab
AC
2408 echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2410
bec39cab
AC
2411 # Passes both tests.
2412ac_preproc_ok=:
2413break
8bb2c122 2414fi
bec39cab 2415rm -f conftest.err conftest.$ac_ext
8bb2c122 2416
bec39cab
AC
2417done
2418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2419rm -f conftest.err conftest.$ac_ext
2420if $ac_preproc_ok; then
2421 break
2422fi
8bb2c122 2423
bec39cab
AC
2424 done
2425 ac_cv_prog_CPP=$CPP
ddc9cd0f 2426
c906108c 2427fi
bec39cab
AC
2428 CPP=$ac_cv_prog_CPP
2429else
2430 ac_cv_prog_CPP=$CPP
c906108c 2431fi
b4e70030
JB
2432echo "$as_me:$LINENO: result: $CPP" >&5
2433echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2434ac_preproc_ok=false
2435for ac_c_preproc_warn_flag in '' yes
2436do
2437 # Use a header file that comes with gcc, so configuring glibc
2438 # with a fresh cross-compiler works.
2439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440 # <limits.h> exists even on freestanding compilers.
2441 # On the NeXT, cc -E runs the code through the compiler's parser,
2442 # not just through cpp. "Syntax error" is here to catch this case.
2443 cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h. */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h. */
2449#ifdef __STDC__
2450# include <limits.h>
2451#else
2452# include <assert.h>
2453#endif
2454 Syntax error
2455_ACEOF
2456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } >/dev/null; then
2464 if test -s conftest.err; then
2465 ac_cpp_err=$ac_c_preproc_warn_flag
2466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2467 else
2468 ac_cpp_err=
2469 fi
c906108c 2470else
bec39cab 2471 ac_cpp_err=yes
c906108c 2472fi
bec39cab
AC
2473if test -z "$ac_cpp_err"; then
2474 :
c906108c 2475else
bec39cab
AC
2476 echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 # Broken: fails on valid input.
2480continue
2481fi
2482rm -f conftest.err conftest.$ac_ext
2483
b4e70030 2484 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2485 # can be detected and how.
2486 cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h. */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
2491/* end confdefs.h. */
2492#include <ac_nonexistent.h>
2493_ACEOF
2494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } >/dev/null; then
2502 if test -s conftest.err; then
2503 ac_cpp_err=$ac_c_preproc_warn_flag
2504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2505 else
2506 ac_cpp_err=
2507 fi
c906108c 2508else
bec39cab 2509 ac_cpp_err=yes
c906108c 2510fi
bec39cab
AC
2511if test -z "$ac_cpp_err"; then
2512 # Broken: success on invalid input.
2513continue
c906108c 2514else
bec39cab
AC
2515 echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2517
bec39cab
AC
2518 # Passes both tests.
2519ac_preproc_ok=:
2520break
c906108c 2521fi
bec39cab 2522rm -f conftest.err conftest.$ac_ext
c906108c 2523
bec39cab
AC
2524done
2525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2526rm -f conftest.err conftest.$ac_ext
2527if $ac_preproc_ok; then
c906108c
SS
2528 :
2529else
bec39cab
AC
2530 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2533See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
c906108c 2535fi
c906108c 2536
bec39cab
AC
2537ac_ext=c
2538ac_cpp='$CPP $CPPFLAGS'
2539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
2543
b4e70030
JB
2544echo "$as_me:$LINENO: checking for egrep" >&5
2545echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2546if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
b4e70030
JB
2549 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2550 then ac_cv_prog_egrep='grep -E'
2551 else ac_cv_prog_egrep='egrep'
bec39cab 2552 fi
4e8d927d 2553fi
b4e70030
JB
2554echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2555echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2556 EGREP=$ac_cv_prog_egrep
c906108c 2557
bec39cab
AC
2558
2559
b4e70030
JB
2560echo "$as_me:$LINENO: checking for AIX" >&5
2561echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
2568#ifdef _AIX
2569 yes
2570#endif
2571
2572_ACEOF
c906108c 2573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2574 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2575 echo "$as_me:$LINENO: result: yes" >&5
2576echo "${ECHO_T}yes" >&6
bec39cab
AC
2577cat >>confdefs.h <<\_ACEOF
2578#define _ALL_SOURCE 1
2579_ACEOF
2580
c906108c 2581else
b4e70030
JB
2582 echo "$as_me:$LINENO: result: no" >&5
2583echo "${ECHO_T}no" >&6
c906108c
SS
2584fi
2585rm -f conftest*
2586
c906108c 2587
b4e70030
JB
2588echo "$as_me:$LINENO: checking for library containing strerror" >&5
2589echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2590if test "${ac_cv_search_strerror+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2592else
bec39cab 2593 ac_func_search_save_LIBS=$LIBS
b4e70030 2594ac_cv_search_strerror=no
bec39cab
AC
2595cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
c906108c 2601
b4e70030 2602/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2603#ifdef __cplusplus
2604extern "C"
2605#endif
b4e70030
JB
2606/* We use char because int might match the return type of a gcc2
2607 builtin and then its argument prototype would still apply. */
bec39cab
AC
2608char strerror ();
2609int
2610main ()
2611{
b4e70030 2612strerror ();
bec39cab
AC
2613 ;
2614 return 0;
2615}
2616_ACEOF
b4e70030 2617rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619 (eval $ac_link) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
b4e70030
JB
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
bec39cab
AC
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
b4e70030 2639 ac_cv_search_strerror="none required"
c906108c 2640else
bec39cab
AC
2641 echo "$as_me: failed program was:" >&5
2642sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2643
2644fi
bec39cab 2645rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2646 conftest$ac_exeext conftest.$ac_ext
2647if test "$ac_cv_search_strerror" = no; then
2648 for ac_lib in cposix; do
2649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2650 cat >conftest.$ac_ext <<_ACEOF
2651/* confdefs.h. */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h. */
2656
2657/* Override any gcc2 internal prototype to avoid an error. */
2658#ifdef __cplusplus
2659extern "C"
2660#endif
2661/* We use char because int might match the return type of a gcc2
2662 builtin and then its argument prototype would still apply. */
2663char strerror ();
2664int
2665main ()
2666{
2667strerror ();
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext conftest$ac_exeext
2673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2674 (eval $ac_link) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest$ac_exeext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_search_strerror="-l$ac_lib"
2695break
4e8d927d 2696else
b4e70030
JB
2697 echo "$as_me: failed program was:" >&5
2698sed 's/^/| /' conftest.$ac_ext >&5
2699
2700fi
2701rm -f conftest.err conftest.$ac_objext \
2702 conftest$ac_exeext conftest.$ac_ext
2703 done
c906108c 2704fi
bec39cab 2705LIBS=$ac_func_search_save_LIBS
c906108c 2706fi
b4e70030
JB
2707echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2708echo "${ECHO_T}$ac_cv_search_strerror" >&6
2709if test "$ac_cv_search_strerror" != no; then
2710 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2711
c906108c
SS
2712fi
2713
c906108c 2714
c906108c 2715
bec39cab 2716
b4e70030
JB
2717echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2718echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
bec39cab
AC
2719if test "${am_cv_prog_cc_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2721else
bec39cab
AC
2722 am_cv_prog_cc_stdc=no
2723ac_save_CC="$CC"
2724# Don't try gcc -ansi; that turns off useful extensions and
2725# breaks some systems' header files.
2726# AIX -qlanglvl=ansi
2727# Ultrix and OSF/1 -std1
2728# HP-UX 10.20 and later -Ae
2729# HP-UX older versions -Aa -D_HPUX_SOURCE
2730# SVR4 -Xc -D__EXTENSIONS__
2731for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732do
2733 CC="$ac_save_CC $ac_arg"
2734 cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h. */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h. */
2740#include <stdarg.h>
2741#include <stdio.h>
2742#include <sys/types.h>
2743#include <sys/stat.h>
2744/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745struct buf { int x; };
2746FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747static char *e (p, i)
2748 char **p;
2749 int i;
2750{
2751 return p[i];
2752}
2753static char *f (char * (*g) (char **, int), char **p, ...)
2754{
2755 char *s;
2756 va_list v;
2757 va_start (v,p);
2758 s = g (p, va_arg (v,int));
2759 va_end (v);
2760 return s;
2761}
2762int test (int i, double x);
2763struct s1 {int (*f) (int a);};
2764struct s2 {int (*f) (double a);};
2765int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766int argc;
2767char **argv;
c906108c 2768
bec39cab
AC
2769int
2770main ()
2771{
c906108c 2772
bec39cab 2773return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2774
bec39cab
AC
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
b4e70030
JB
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
bec39cab
AC
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2802else
bec39cab
AC
2803 echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2805
2806fi
bec39cab
AC
2807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808done
2809CC="$ac_save_CC"
c906108c
SS
2810
2811fi
2812
bec39cab 2813if test -z "$am_cv_prog_cc_stdc"; then
b4e70030
JB
2814 echo "$as_me:$LINENO: result: none needed" >&5
2815echo "${ECHO_T}none needed" >&6
c906108c 2816else
b4e70030
JB
2817 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2818echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2819fi
bec39cab
AC
2820case "x$am_cv_prog_cc_stdc" in
2821 x|xno) ;;
2822 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2823esac
c906108c 2824
c906108c 2825
bec39cab
AC
2826ac_aux_dir=
2827for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2828 if test -f $ac_dir/install-sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install-sh -c"
2831 break
2832 elif test -f $ac_dir/install.sh; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/install.sh -c"
2835 break
2836 elif test -f $ac_dir/shtool; then
2837 ac_aux_dir=$ac_dir
2838 ac_install_sh="$ac_aux_dir/shtool install -c"
2839 break
2840 fi
2841done
2842if test -z "$ac_aux_dir"; then
2843 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2844echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2845 { (exit 1); exit 1; }; }
c906108c 2846fi
bec39cab
AC
2847ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2848ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2849ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2850
bec39cab
AC
2851# Make sure we can run config.sub.
2852$ac_config_sub sun4 >/dev/null 2>&1 ||
2853 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2854echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2855 { (exit 1); exit 1; }; }
2856
b4e70030
JB
2857echo "$as_me:$LINENO: checking build system type" >&5
2858echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2859if test "${ac_cv_build+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861else
b4e70030
JB
2862 ac_cv_build_alias=$build_alias
2863test -z "$ac_cv_build_alias" &&
2864 ac_cv_build_alias=`$ac_config_guess`
2865test -z "$ac_cv_build_alias" &&
bec39cab
AC
2866 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2867echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2868 { (exit 1); exit 1; }; }
b4e70030
JB
2869ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2870 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2871echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab
AC
2872 { (exit 1); exit 1; }; }
2873
2874fi
b4e70030
JB
2875echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2876echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2877build=$ac_cv_build
b4e70030
JB
2878build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2879build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2880build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2881
2882
b4e70030
JB
2883echo "$as_me:$LINENO: checking host system type" >&5
2884echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2885if test "${ac_cv_host+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887else
b4e70030
JB
2888 ac_cv_host_alias=$host_alias
2889test -z "$ac_cv_host_alias" &&
2890 ac_cv_host_alias=$ac_cv_build_alias
2891ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2892 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2893echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab
AC
2894 { (exit 1); exit 1; }; }
2895
2896fi
b4e70030
JB
2897echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2898echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2899host=$ac_cv_host
b4e70030
JB
2900host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2901host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2902host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2903
2904
b4e70030
JB
2905echo "$as_me:$LINENO: checking target system type" >&5
2906echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2907if test "${ac_cv_target+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
b4e70030
JB
2910 ac_cv_target_alias=$target_alias
2911test "x$ac_cv_target_alias" = "x" &&
2912 ac_cv_target_alias=$ac_cv_host_alias
2913ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2915echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
2916 { (exit 1); exit 1; }; }
2917
2918fi
b4e70030
JB
2919echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2920echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2921target=$ac_cv_target
b4e70030
JB
2922target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2923target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2924target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2925
c906108c 2926
bec39cab
AC
2927# The aliases save the names the user supplied, while $host etc.
2928# will get canonicalized.
2929test -n "$target_alias" &&
2930 test "$program_prefix$program_suffix$program_transform_name" = \
2931 NONENONEs,x,x, &&
2932 program_prefix=${target_alias}-
c906108c 2933
c906108c 2934
bec39cab
AC
2935CONFIG_OBS=
2936CONFIG_DEPS=
2937CONFIG_SRCS=
2938ENABLE_CFLAGS=
c906108c 2939
bec39cab
AC
2940CONFIG_ALL=
2941CONFIG_CLEAN=
2942CONFIG_INSTALL=
2943CONFIG_UNINSTALL=
2944
20e95c23
DJ
2945# If we haven't got the data from the intl directory,
2946# assume NLS is disabled.
2947USE_NLS=no
2948LIBINTL=
2949LIBINTL_DEP=
2950INCINTL=
2951XGETTEXT=
2952GMSGFMT=
2953POSUB=
3841debe
DJ
2954
2955if test -f ../intl/config.intl; then
2956 . ../intl/config.intl
20e95c23
DJ
2957fi
2958echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2959echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2960if test x"$USE_NLS" != xyes; then
b4e70030
JB
2961 echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
c906108c 2963else
20e95c23
DJ
2964 echo "$as_me:$LINENO: result: yes" >&5
2965echo "${ECHO_T}yes" >&6
c906108c 2966
20e95c23
DJ
2967cat >>confdefs.h <<\_ACEOF
2968#define ENABLE_NLS 1
bec39cab 2969_ACEOF
c906108c 2970
c906108c 2971
20e95c23
DJ
2972 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2973echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2974 # Look for .po and .gmo files in the source directory.
2975 CATALOGS=
2976 XLINGUAS=
2977 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2978 # If there aren't any .gmo files the shell will give us the
2979 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2980 # weeded out.
2981 case "$cat" in *\**)
2982 continue;;
2983 esac
2984 # The quadruple backslash is collapsed to a double backslash
2985 # by the backticks, then collapsed again by the double quotes,
2986 # leaving us with one backslash in the sed expression (right
2987 # before the dot that mustn't act as a wildcard).
2988 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2989 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2990 # The user is allowed to set LINGUAS to a list of languages to
2991 # install catalogs for. If it's empty that means "all of them."
2992 if test "x$LINGUAS" = x; then
2993 CATALOGS="$CATALOGS $cat"
2994 XLINGUAS="$XLINGUAS $lang"
2995 else
2996 case "$LINGUAS" in *$lang*)
2997 CATALOGS="$CATALOGS $cat"
2998 XLINGUAS="$XLINGUAS $lang"
2999 ;;
3000 esac
3001 fi
3002 done
3003 LINGUAS="$XLINGUAS"
3004 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3005echo "${ECHO_T}$LINGUAS" >&6
c906108c 3006
c906108c 3007
20e95c23 3008 DATADIRNAME=share
c906108c 3009
20e95c23 3010 INSTOBJEXT=.mo
c906108c 3011
20e95c23
DJ
3012 GENCAT=gencat
3013
3014 CATOBJEXT=.gmo
3015
3016fi
3017
3018localedir='${datadir}/locale'
c906108c 3019
bec39cab 3020
20e95c23 3021if test x"$USE_NLS" = xyes; then
bec39cab
AC
3022 CONFIG_ALL="$CONFIG_ALL all-po"
3023 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3024 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3025 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3026fi
3027
3028PACKAGE=gdb
3029
3030cat >>confdefs.h <<_ACEOF
3031#define PACKAGE "$PACKAGE"
3032_ACEOF
3033
3034
3035
3036debugdir=${libdir}/debug
3037
3038
b4e70030 3039# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 3040if test "${with_separate_debug_dir+set}" = set; then
b4e70030
JB
3041 withval="$with_separate_debug_dir"
3042 debugdir="${withval}"
3043fi;
bec39cab
AC
3044
3045
3046 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3048 ac_define_dir=`eval echo $debugdir`
3049 ac_define_dir=`eval echo $ac_define_dir`
3050
3051cat >>confdefs.h <<_ACEOF
3052#define DEBUGDIR "$ac_define_dir"
3053_ACEOF
3054
3055
3056#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3057
aa28a74e
DJ
3058if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3059 if test "x$prefix" = xNONE; then
3060 test_prefix=/usr/local
3061 else
3062 test_prefix=$prefix
3063 fi
3064else
3065 test_prefix=$exec_prefix
3066fi
3067case ${debugdir} in
3068"${test_prefix}"|"${test_prefix}/"*|\
3069'${exec_prefix}'|'${exec_prefix}/'*)
3070
3071cat >>confdefs.h <<\_ACEOF
3072#define DEBUGDIR_RELOCATABLE 1
3073_ACEOF
3074
3075 ;;
3076esac
3077
b4e70030
JB
3078
3079
bec39cab
AC
3080subdirs="$subdirs doc testsuite"
3081
3082
121ce6e5
DJ
3083# Provide defaults for some variables set by the per-host and per-target
3084# configuration.
3085gdb_host_obs=posix-hdep.o
3086
771b4502
UW
3087if test "${target}" = "${host}"; then
3088 gdb_native=yes
3089else
3090 gdb_native=no
3091fi
3092
bec39cab
AC
3093. $srcdir/configure.host
3094
3095. $srcdir/configure.tgt
3096
3097# Fetch the default architecture and default target vector from BFD.
3098targ=$target; . $srcdir/../bfd/config.bfd
3099
3100# We only want the first architecture, so strip off the others if
3101# there is more than one.
3102targ_archs=`echo $targ_archs | sed 's/ .*//'`
3103
3104if test "x$targ_archs" != x; then
3105
3106cat >>confdefs.h <<_ACEOF
3107#define DEFAULT_BFD_ARCH $targ_archs
3108_ACEOF
3109
3110fi
3111if test "x$targ_defvec" != x; then
3112
3113cat >>confdefs.h <<_ACEOF
3114#define DEFAULT_BFD_VEC $targ_defvec
3115_ACEOF
3116
3117fi
3118
3119test "$program_prefix" != NONE &&
b4e70030 3120 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
3121# Use a double $ so make ignores it.
3122test "$program_suffix" != NONE &&
b4e70030 3123 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
3124# Double any \ or $. echo might interpret backslashes.
3125# By default was `s,x,x', remove it if useless.
3126cat <<\_ACEOF >conftest.sed
3127s/[\\$]/&&/g;s/;s,x,x,$//
3128_ACEOF
3129program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 3130rm conftest.sed
bec39cab
AC
3131
3132
3133# The CLI cannot be disabled yet, but may be in the future.
3134
3135# Enable CLI.
b4e70030 3136# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 3137if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
3138 enableval="$enable_gdbcli"
3139 case $enableval in
bec39cab
AC
3140 yes)
3141 ;;
3142 no)
3143 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3144echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3145 { (exit 1); exit 1; }; } ;;
3146 *)
3147 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3148echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3149 { (exit 1); exit 1; }; } ;;
3150 esac
3151else
3152 enable_gdbcli=yes
b4e70030 3153fi;
bec39cab
AC
3154if test x"$enable_gdbcli" = xyes; then
3155 if test -d $srcdir/cli; then
3156 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3157 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3158 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3159 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3160 fi
3161fi
3162
3163# Enable MI.
b4e70030 3164# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 3165if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
3166 enableval="$enable_gdbmi"
3167 case $enableval in
bec39cab
AC
3168 yes | no)
3169 ;;
3170 *)
3171 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3172echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3173 { (exit 1); exit 1; }; } ;;
3174 esac
3175else
3176 enable_gdbmi=yes
b4e70030 3177fi;
bec39cab
AC
3178if test x"$enable_gdbmi" = xyes; then
3179 if test -d $srcdir/mi; then
3180 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3181 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3182 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3183 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3184 fi
3185fi
3186
3187# Enable TUI.
b4e70030 3188# Check whether --enable-tui or --disable-tui was given.
bec39cab 3189if test "${enable_tui+set}" = set; then
b4e70030
JB
3190 enableval="$enable_tui"
3191 case $enableval in
bec39cab
AC
3192 yes | no)
3193 ;;
3194 *)
3195 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3196echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3197 { (exit 1); exit 1; }; } ;;
3198 esac
3199else
3200 enable_tui=yes
b4e70030 3201fi;
bec39cab
AC
3202
3203# Enable gdbtk.
b4e70030 3204# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 3205if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
3206 enableval="$enable_gdbtk"
3207 case $enableval in
bec39cab
AC
3208 yes | no)
3209 ;;
3210 *)
3211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3212echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3213 { (exit 1); exit 1; }; } ;;
3214 esac
3215else
04ac69aa 3216 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
3217 enable_gdbtk=yes
3218 else
3219 enable_gdbtk=no
3220 fi
b4e70030 3221fi;
bec39cab
AC
3222# We unconditionally disable gdbtk tests on selected platforms.
3223case $host_os in
3224 go32* | windows*)
3225 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3226echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3227 enable_gdbtk=no ;;
3228esac
3229
3230# Libunwind support.
20e95c23
DJ
3231echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3232echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3233if test "${ac_cv_header_stdc+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236 cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h. */
3242#include <stdlib.h>
3243#include <stdarg.h>
3244#include <string.h>
3245#include <float.h>
3246
3247int
3248main ()
3249{
3250
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255rm -f conftest.$ac_objext
3256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_c_werror_flag"
3265 || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 ac_cv_header_stdc=yes
3278else
3279 echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282ac_cv_header_stdc=no
3283fi
3284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285
3286if test $ac_cv_header_stdc = yes; then
3287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3288 cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
3294#include <string.h>
3295
3296_ACEOF
3297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3298 $EGREP "memchr" >/dev/null 2>&1; then
3299 :
3300else
3301 ac_cv_header_stdc=no
3302fi
3303rm -f conftest*
3304
3305fi
3306
3307if test $ac_cv_header_stdc = yes; then
3308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3309 cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
3315#include <stdlib.h>
3316
3317_ACEOF
3318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 $EGREP "free" >/dev/null 2>&1; then
3320 :
3321else
3322 ac_cv_header_stdc=no
3323fi
3324rm -f conftest*
3325
3326fi
3327
3328if test $ac_cv_header_stdc = yes; then
3329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3330 if test "$cross_compiling" = yes; then
3331 :
3332else
3333 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h. */
3339#include <ctype.h>
3340#if ((' ' & 0x0FF) == 0x020)
3341# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3342# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3343#else
3344# define ISLOWER(c) \
3345 (('a' <= (c) && (c) <= 'i') \
3346 || ('j' <= (c) && (c) <= 'r') \
3347 || ('s' <= (c) && (c) <= 'z'))
3348# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3349#endif
3350
3351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3352int
3353main ()
3354{
3355 int i;
3356 for (i = 0; i < 256; i++)
3357 if (XOR (islower (i), ISLOWER (i))
3358 || toupper (i) != TOUPPER (i))
3359 exit(2);
3360 exit (0);
3361}
3362_ACEOF
3363rm -f conftest$ac_exeext
3364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 :
3375else
3376 echo "$as_me: program exited with status $ac_status" >&5
3377echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380( exit $ac_status )
3381ac_cv_header_stdc=no
3382fi
3383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3384fi
3385fi
3386fi
3387echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3388echo "${ECHO_T}$ac_cv_header_stdc" >&6
3389if test $ac_cv_header_stdc = yes; then
3390
3391cat >>confdefs.h <<\_ACEOF
3392#define STDC_HEADERS 1
3393_ACEOF
3394
3395fi
3396
3397# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3408 inttypes.h stdint.h unistd.h
3409do
3410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3411echo "$as_me:$LINENO: checking for $ac_header" >&5
3412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3413if eval "test \"\${$as_ac_Header+set}\" = set"; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416 cat >conftest.$ac_ext <<_ACEOF
3417/* confdefs.h. */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h. */
3422$ac_includes_default
3423
3424#include <$ac_header>
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 eval "$as_ac_Header=yes"
3449else
3450 echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453eval "$as_ac_Header=no"
3454fi
3455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456fi
3457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459if test `eval echo '${'$as_ac_Header'}'` = yes; then
3460 cat >>confdefs.h <<_ACEOF
3461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3462_ACEOF
3463
3464fi
3465
3466done
3467
3468
bec39cab 3469
b4e70030 3470# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3471if test "${with_libunwind+set}" = set; then
b4e70030
JB
3472 withval="$with_libunwind"
3473 case "${withval}" in
bec39cab
AC
3474 yes) enable_libunwind=yes ;;
3475 no) enable_libunwind=no ;;
3476 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3477echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3478 { (exit 1); exit 1; }; } ;;
3479esac
3480else
3481
3482
3483for ac_header in libunwind.h
3484do
3485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3486if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo "$as_me:$LINENO: checking for $ac_header" >&5
3488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3489if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491fi
b4e70030
JB
3492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3494else
3495 # Is the header compilable?
b4e70030
JB
3496echo "$as_me:$LINENO: checking $ac_header usability" >&5
3497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3498cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504$ac_includes_default
3505#include <$ac_header>
3506_ACEOF
3507rm -f conftest.$ac_objext
3508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
b4e70030
JB
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
bec39cab
AC
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_header_compiler=yes
3530else
3531 echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
b4e70030 3534ac_header_compiler=no
bec39cab
AC
3535fi
3536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3539
3540# Is the header present?
b4e70030
JB
3541echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3543cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h. */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h. */
3549#include <$ac_header>
3550_ACEOF
3551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
3565else
3566 ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
3569 ac_header_preproc=yes
3570else
3571 echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 ac_header_preproc=no
3575fi
3576rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3579
3580# So? What about this header?
3581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3582 yes:no: )
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3587 ac_header_preproc=yes
3588 ;;
3589 no:yes:* )
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3602 (
3603 cat <<\_ASBOX
3604## ------------------------------------------ ##
3605## Report this to the AC_PACKAGE_NAME lists. ##
3606## ------------------------------------------ ##
3607_ASBOX
3608 ) |
3609 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3610 ;;
3611esac
b4e70030
JB
3612echo "$as_me:$LINENO: checking for $ac_header" >&5
3613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3614if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
3617 eval "$as_ac_Header=\$ac_header_preproc"
3618fi
b4e70030
JB
3619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3621
3622fi
3623if test `eval echo '${'$as_ac_Header'}'` = yes; then
3624 cat >>confdefs.h <<_ACEOF
3625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3626_ACEOF
3627
3628fi
3629
3630done
3631
3632
3633for ac_header in libunwind-ia64.h
3634do
3635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3636if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637 echo "$as_me:$LINENO: checking for $ac_header" >&5
3638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641fi
b4e70030
JB
3642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3644else
3645 # Is the header compilable?
b4e70030
JB
3646echo "$as_me:$LINENO: checking $ac_header usability" >&5
3647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3648cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h. */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h. */
3654$ac_includes_default
3655#include <$ac_header>
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
b4e70030
JB
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
bec39cab
AC
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_header_compiler=yes
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
b4e70030 3684ac_header_compiler=no
bec39cab
AC
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3688echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3689
3690# Is the header present?
b4e70030
JB
3691echo "$as_me:$LINENO: checking $ac_header presence" >&5
3692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3693cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h. */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h. */
3699#include <$ac_header>
3700_ACEOF
3701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3714 fi
3715else
3716 ac_cpp_err=yes
3717fi
3718if test -z "$ac_cpp_err"; then
3719 ac_header_preproc=yes
3720else
3721 echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 ac_header_preproc=no
3725fi
3726rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3728echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3729
3730# So? What about this header?
3731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3732 yes:no: )
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3737 ac_header_preproc=yes
3738 ;;
3739 no:yes:* )
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3752 (
3753 cat <<\_ASBOX
3754## ------------------------------------------ ##
3755## Report this to the AC_PACKAGE_NAME lists. ##
3756## ------------------------------------------ ##
3757_ASBOX
3758 ) |
3759 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3760 ;;
3761esac
b4e70030
JB
3762echo "$as_me:$LINENO: checking for $ac_header" >&5
3763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767 eval "$as_ac_Header=\$ac_header_preproc"
3768fi
b4e70030
JB
3769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3771
3772fi
3773if test `eval echo '${'$as_ac_Header'}'` = yes; then
3774 cat >>confdefs.h <<_ACEOF
3775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776_ACEOF
3777
3778fi
3779
3780done
3781
3782 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3783 enable_libunwind=yes;
3784 fi
3785
b4e70030 3786fi;
bec39cab
AC
3787
3788if test x"$enable_libunwind" = xyes; then
3789
3790for ac_header in libunwind.h
3791do
3792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3793if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798fi
b4e70030
JB
3799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3801else
3802 # Is the header compilable?
b4e70030
JB
3803echo "$as_me:$LINENO: checking $ac_header usability" >&5
3804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3805cat >conftest.$ac_ext <<_ACEOF
3806/* confdefs.h. */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h. */
3811$ac_includes_default
3812#include <$ac_header>
3813_ACEOF
3814rm -f conftest.$ac_objext
3815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
b4e70030
JB
3823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
bec39cab
AC
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_header_compiler=yes
3837else
3838 echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
b4e70030 3841ac_header_compiler=no
bec39cab
AC
3842fi
3843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3845echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3846
3847# Is the header present?
b4e70030
JB
3848echo "$as_me:$LINENO: checking $ac_header presence" >&5
3849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3850cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h. */
3856#include <$ac_header>
3857_ACEOF
3858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } >/dev/null; then
3866 if test -s conftest.err; then
3867 ac_cpp_err=$ac_c_preproc_warn_flag
3868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3869 else
3870 ac_cpp_err=
3871 fi
3872else
3873 ac_cpp_err=yes
3874fi
3875if test -z "$ac_cpp_err"; then
3876 ac_header_preproc=yes
3877else
3878 echo "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 ac_header_preproc=no
3882fi
3883rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3885echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3886
3887# So? What about this header?
3888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3889 yes:no: )
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3894 ac_header_preproc=yes
3895 ;;
3896 no:yes:* )
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3909 (
3910 cat <<\_ASBOX
3911## ------------------------------------------ ##
3912## Report this to the AC_PACKAGE_NAME lists. ##
3913## ------------------------------------------ ##
3914_ASBOX
3915 ) |
3916 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3917 ;;
3918esac
b4e70030
JB
3919echo "$as_me:$LINENO: checking for $ac_header" >&5
3920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3921if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924 eval "$as_ac_Header=\$ac_header_preproc"
3925fi
b4e70030
JB
3926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3928
3929fi
3930if test `eval echo '${'$as_ac_Header'}'` = yes; then
3931 cat >>confdefs.h <<_ACEOF
3932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3933_ACEOF
3934
3935fi
3936
3937done
3938
3939
3940for ac_header in libunwind-ia64.h
3941do
3942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3943if eval "test \"\${$as_ac_Header+set}\" = set"; then
3944 echo "$as_me:$LINENO: checking for $ac_header" >&5
3945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3946if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948fi
b4e70030
JB
3949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3951else
3952 # Is the header compilable?
b4e70030
JB
3953echo "$as_me:$LINENO: checking $ac_header usability" >&5
3954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3955cat >conftest.$ac_ext <<_ACEOF
3956/* confdefs.h. */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
3960/* end confdefs.h. */
3961$ac_includes_default
3962#include <$ac_header>
3963_ACEOF
3964rm -f conftest.$ac_objext
3965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
b4e70030
JB
3973 { ac_try='test -z "$ac_c_werror_flag"
3974 || test ! -s conftest.err'
bec39cab
AC
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_header_compiler=yes
3987else
3988 echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
3990
b4e70030 3991ac_header_compiler=no
bec39cab
AC
3992fi
3993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3995echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3996
3997# Is the header present?
b4e70030
JB
3998echo "$as_me:$LINENO: checking $ac_header presence" >&5
3999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4000cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
4006#include <$ac_header>
4007_ACEOF
4008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } >/dev/null; then
4016 if test -s conftest.err; then
4017 ac_cpp_err=$ac_c_preproc_warn_flag
4018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4019 else
4020 ac_cpp_err=
4021 fi
4022else
4023 ac_cpp_err=yes
4024fi
4025if test -z "$ac_cpp_err"; then
4026 ac_header_preproc=yes
4027else
4028 echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 ac_header_preproc=no
4032fi
4033rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4035echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4036
4037# So? What about this header?
4038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4039 yes:no: )
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4044 ac_header_preproc=yes
4045 ;;
4046 no:yes:* )
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4050echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4054echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4059 (
4060 cat <<\_ASBOX
4061## ------------------------------------------ ##
4062## Report this to the AC_PACKAGE_NAME lists. ##
4063## ------------------------------------------ ##
4064_ASBOX
4065 ) |
4066 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4067 ;;
4068esac
b4e70030
JB
4069echo "$as_me:$LINENO: checking for $ac_header" >&5
4070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4071if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 eval "$as_ac_Header=\$ac_header_preproc"
4075fi
b4e70030
JB
4076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4078
4079fi
4080if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083_ACEOF
4084
4085fi
4086
4087done
4088
60ca704f
SE
4089
4090cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4091#define HAVE_LIBUNWIND 1
4092_ACEOF
4093
4094 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4095 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4096 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4097fi
4098
4099# Profiling support.
b4e70030 4100# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4101if test "${enable_profiling+set}" = set; then
b4e70030
JB
4102 enableval="$enable_profiling"
4103 case $enableval in
bec39cab
AC
4104 yes | no)
4105 ;;
4106 *)
4107 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4108echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4109 { (exit 1); exit 1; }; } ;;
4110 esac
4111else
4112 enable_profiling=no
b4e70030 4113fi;
bec39cab
AC
4114
4115
4116
4117for ac_func in monstartup _mcleanup
4118do
4119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4120echo "$as_me:$LINENO: checking for $ac_func" >&5
4121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4122if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125 cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
4131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4133#define $ac_func innocuous_$ac_func
4134
4135/* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func (); below.
4137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 <limits.h> exists even on freestanding compilers. */
4139
4140#ifdef __STDC__
4141# include <limits.h>
4142#else
4143# include <assert.h>
4144#endif
4145
4146#undef $ac_func
4147
b4e70030 4148/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4149#ifdef __cplusplus
4150extern "C"
b4e70030 4151{
bec39cab 4152#endif
b4e70030
JB
4153/* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
bec39cab
AC
4155char $ac_func ();
4156/* The GNU C library defines this for functions which it implements
4157 to always fail with ENOSYS. Some functions are actually named
4158 something starting with __ and the normal name is an alias. */
b4e70030 4159#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4160choke me
b4e70030
JB
4161#else
4162char (*f) () = $ac_func;
4163#endif
4164#ifdef __cplusplus
4165}
bec39cab
AC
4166#endif
4167
4168int
4169main ()
4170{
b4e70030 4171return f != $ac_func;
bec39cab
AC
4172 ;
4173 return 0;
4174}
4175_ACEOF
4176rm -f conftest.$ac_objext conftest$ac_exeext
4177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178 (eval $ac_link) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
b4e70030
JB
4185 { ac_try='test -z "$ac_c_werror_flag"
4186 || test ! -s conftest.err'
bec39cab
AC
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; } &&
4192 { ac_try='test -s conftest$ac_exeext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 eval "$as_ac_var=yes"
4199else
4200 echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
b4e70030 4203eval "$as_ac_var=no"
bec39cab
AC
4204fi
4205rm -f conftest.err conftest.$ac_objext \
4206 conftest$ac_exeext conftest.$ac_ext
4207fi
b4e70030
JB
4208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4209echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4210if test `eval echo '${'$as_ac_var'}'` = yes; then
4211 cat >>confdefs.h <<_ACEOF
4212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4213_ACEOF
4214
4215fi
4216done
4217
b4e70030
JB
4218echo "$as_me:$LINENO: checking for _etext" >&5
4219echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4220if test "${ac_cv_var__etext+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223 cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h. */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */
4229#include <stdlib.h>
4230extern char _etext;
4231
4232int
4233main ()
4234{
4235free (&_etext);
4236 ;
4237 return 0;
4238}
4239_ACEOF
4240rm -f conftest.$ac_objext conftest$ac_exeext
4241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
b4e70030
JB
4249 { ac_try='test -z "$ac_c_werror_flag"
4250 || test ! -s conftest.err'
bec39cab
AC
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_var__etext=yes
4263else
4264 echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
b4e70030 4267ac_cv_var__etext=no
bec39cab
AC
4268fi
4269rm -f conftest.err conftest.$ac_objext \
4270 conftest$ac_exeext conftest.$ac_ext
4271fi
b4e70030
JB
4272echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4273echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4274if test $ac_cv_var__etext = yes; then
4275
4276cat >>confdefs.h <<\_ACEOF
4277#define HAVE__ETEXT 1
4278_ACEOF
4279
01fe12f6
JB
4280fi
4281echo "$as_me:$LINENO: checking for etext" >&5
4282echo $ECHO_N "checking for etext... $ECHO_C" >&6
4283if test "${ac_cv_var_etext+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h. */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h. */
4292#include <stdlib.h>
4293extern char etext;
4294
4295int
4296main ()
4297{
4298free (&etext);
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest.$ac_objext conftest$ac_exeext
4304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4325 ac_cv_var_etext=yes
4326else
4327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330ac_cv_var_etext=no
4331fi
4332rm -f conftest.err conftest.$ac_objext \
4333 conftest$ac_exeext conftest.$ac_ext
4334fi
4335echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
4336echo "${ECHO_T}$ac_cv_var_etext" >&6
4337if test $ac_cv_var_etext = yes; then
4338
4339cat >>confdefs.h <<\_ACEOF
4340#define HAVE_ETEXT 1
4341_ACEOF
4342
bec39cab
AC
4343fi
4344if test "$enable_profiling" = yes ; then
4345 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4346 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4347echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4348 { (exit 1); exit 1; }; }
4349 fi
4350 PROFILE_CFLAGS=-pg
4351 OLD_CFLAGS="$CFLAGS"
4352 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4353
b4e70030
JB
4354 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4355echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4356if test "${ac_cv_cc_supports_pg+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4358else
bec39cab
AC
4359 cat >conftest.$ac_ext <<_ACEOF
4360/* confdefs.h. */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h. */
4365
4366int
4367main ()
4368{
4369int x;
4370 ;
4371 return 0;
4372}
4373_ACEOF
4374rm -f conftest.$ac_objext
4375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
b4e70030
JB
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
bec39cab
AC
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_cv_cc_supports_pg=yes
4397else
4398 echo "$as_me: failed program was:" >&5
4399sed 's/^/| /' conftest.$ac_ext >&5
4400
b4e70030 4401ac_cv_cc_supports_pg=no
bec39cab
AC
4402fi
4403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404fi
b4e70030
JB
4405echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4406echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4407
4408 if test $ac_cv_cc_supports_pg = no; then
4409 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4410echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4411 { (exit 1); exit 1; }; }
4412 fi
4413
4414 CFLAGS="$OLD_CFLAGS"
4415fi
4416
4417# --------------------- #
4418# Checks for programs. #
4419# --------------------- #
4420
4421for ac_prog in gawk mawk nawk awk
4422do
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424set dummy $ac_prog; ac_word=$2
b4e70030
JB
4425echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4427if test "${ac_cv_prog_AWK+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430 if test -n "$AWK"; then
4431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4440 ac_cv_prog_AWK="$ac_prog"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444done
4445done
4446
4447fi
4448fi
4449AWK=$ac_cv_prog_AWK
4450if test -n "$AWK"; then
b4e70030
JB
4451 echo "$as_me:$LINENO: result: $AWK" >&5
4452echo "${ECHO_T}$AWK" >&6
bec39cab 4453else
b4e70030
JB
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
bec39cab
AC
4456fi
4457
4458 test -n "$AWK" && break
4459done
4460
4461# Find a good install program. We prefer a C program (faster),
4462# so one script is as good as another. But avoid the broken or
4463# incompatible versions:
4464# SysV /etc/install, /usr/sbin/install
4465# SunOS /usr/etc/install
4466# IRIX /sbin/install
4467# AIX /bin/install
4468# AmigaOS /C/install, which installs bootblocks on floppy discs
4469# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4470# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4471# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4472# OS/2's system install, which has a completely different semantic
4473# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4474echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4475echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4476if test -z "$INSTALL"; then
4477if test "${ac_cv_path_install+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 # Account for people who put trailing slashes in PATH elements.
4486case $as_dir/ in
4487 ./ | .// | /cC/* | \
4488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4490 /usr/ucb/* ) ;;
c906108c 4491 *)
bec39cab
AC
4492 # OSF1 and SCO ODT 3.0 have their own names for install.
4493 # Don't use installbsd from OSF since it installs stuff as root
4494 # by default.
4495 for ac_prog in ginstall scoinst install; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4498 if test $ac_prog = install &&
4499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4500 # AIX install. It has an incompatible calling convention.
4501 :
4502 elif test $ac_prog = install &&
4503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4504 # program-specific install script used by HP pwplus--don't use.
4505 :
4506 else
4507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4508 break 3
4509 fi
4510 fi
4511 done
4512 done
4513 ;;
c906108c 4514esac
bec39cab
AC
4515done
4516
4517
4518fi
4519 if test "${ac_cv_path_install+set}" = set; then
4520 INSTALL=$ac_cv_path_install
4521 else
b4e70030
JB
4522 # As a last resort, use the slow shell script. We don't cache a
4523 # path for INSTALL within a source directory, because that will
bec39cab 4524 # break other packages using the cache if that directory is
b4e70030 4525 # removed, or if the path is relative.
bec39cab
AC
4526 INSTALL=$ac_install_sh
4527 fi
4528fi
b4e70030
JB
4529echo "$as_me:$LINENO: result: $INSTALL" >&5
4530echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4531
4532# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4533# It thinks the first close brace ends the variable substitution.
4534test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4535
4536test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4537
4538test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4539
b4e70030
JB
4540echo "$as_me:$LINENO: checking whether ln -s works" >&5
4541echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4542LN_S=$as_ln_s
4543if test "$LN_S" = "ln -s"; then
b4e70030
JB
4544 echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6
bec39cab 4546else
b4e70030
JB
4547 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4548echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4549fi
4550
4551if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4553set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4554echo "$as_me:$LINENO: checking for $ac_word" >&5
4555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4556if test "${ac_cv_prog_RANLIB+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559 if test -n "$RANLIB"; then
4560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573done
4574done
4575
4576fi
4577fi
4578RANLIB=$ac_cv_prog_RANLIB
4579if test -n "$RANLIB"; then
b4e70030
JB
4580 echo "$as_me:$LINENO: result: $RANLIB" >&5
4581echo "${ECHO_T}$RANLIB" >&6
bec39cab 4582else
b4e70030
JB
4583 echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6
bec39cab
AC
4585fi
4586
4587fi
4588if test -z "$ac_cv_prog_RANLIB"; then
4589 ac_ct_RANLIB=$RANLIB
4590 # Extract the first word of "ranlib", so it can be a program name with args.
4591set dummy ranlib; ac_word=$2
b4e70030
JB
4592echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4594if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597 if test -n "$ac_ct_RANLIB"; then
4598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4607 ac_cv_prog_ac_ct_RANLIB="ranlib"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612done
4613
b4e70030 4614 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4615fi
4616fi
4617ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4618if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4619 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4620echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4621else
b4e70030
JB
4622 echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6
bec39cab
AC
4624fi
4625
b4e70030 4626 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4627else
4628 RANLIB="$ac_cv_prog_RANLIB"
4629fi
4630
4631for ac_prog in 'bison -y' byacc
4632do
4633 # Extract the first word of "$ac_prog", so it can be a program name with args.
4634set dummy $ac_prog; ac_word=$2
b4e70030
JB
4635echo "$as_me:$LINENO: checking for $ac_word" >&5
4636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4637if test "${ac_cv_prog_YACC+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640 if test -n "$YACC"; then
4641 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4642else
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4650 ac_cv_prog_YACC="$ac_prog"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654done
4655done
4656
4657fi
4658fi
4659YACC=$ac_cv_prog_YACC
4660if test -n "$YACC"; then
b4e70030
JB
4661 echo "$as_me:$LINENO: result: $YACC" >&5
4662echo "${ECHO_T}$YACC" >&6
bec39cab 4663else
b4e70030
JB
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
bec39cab
AC
4666fi
4667
4668 test -n "$YACC" && break
4669done
4670test -n "$YACC" || YACC="yacc"
4671
4672
4673if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4675set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4676echo "$as_me:$LINENO: checking for $ac_word" >&5
4677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4678if test "${ac_cv_prog_AR+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
4681 if test -n "$AR"; then
4682 ac_cv_prog_AR="$AR" # Let the user override the test.
4683else
4684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4691 ac_cv_prog_AR="${ac_tool_prefix}ar"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695done
4696done
4697
4698fi
4699fi
4700AR=$ac_cv_prog_AR
4701if test -n "$AR"; then
b4e70030
JB
4702 echo "$as_me:$LINENO: result: $AR" >&5
4703echo "${ECHO_T}$AR" >&6
bec39cab 4704else
b4e70030
JB
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
bec39cab
AC
4707fi
4708
4709fi
4710if test -z "$ac_cv_prog_AR"; then
4711 ac_ct_AR=$AR
4712 # Extract the first word of "ar", so it can be a program name with args.
4713set dummy ar; ac_word=$2
b4e70030
JB
4714echo "$as_me:$LINENO: checking for $ac_word" >&5
4715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4716if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719 if test -n "$ac_ct_AR"; then
4720 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4721else
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4729 ac_cv_prog_ac_ct_AR="ar"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733done
4734done
4735
4736fi
4737fi
4738ac_ct_AR=$ac_cv_prog_ac_ct_AR
4739if test -n "$ac_ct_AR"; then
b4e70030
JB
4740 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4741echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4742else
b4e70030
JB
4743 echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6
bec39cab
AC
4745fi
4746
b4e70030 4747 AR=$ac_ct_AR
bec39cab
AC
4748else
4749 AR="$ac_cv_prog_AR"
4750fi
4751
4752if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4754set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4755echo "$as_me:$LINENO: checking for $ac_word" >&5
4756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4757if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759else
4760 if test -n "$DLLTOOL"; then
4761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774done
4775done
4776
4777fi
4778fi
4779DLLTOOL=$ac_cv_prog_DLLTOOL
4780if test -n "$DLLTOOL"; then
b4e70030
JB
4781 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4782echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4783else
b4e70030
JB
4784 echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6
bec39cab
AC
4786fi
4787
4788fi
4789if test -z "$ac_cv_prog_DLLTOOL"; then
4790 ac_ct_DLLTOOL=$DLLTOOL
4791 # Extract the first word of "dlltool", so it can be a program name with args.
4792set dummy dlltool; ac_word=$2
b4e70030
JB
4793echo "$as_me:$LINENO: checking for $ac_word" >&5
4794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4795if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798 if test -n "$ac_ct_DLLTOOL"; then
4799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4808 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812done
4813done
4814
4815fi
4816fi
4817ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4818if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4819 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4820echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4821else
b4e70030
JB
4822 echo "$as_me:$LINENO: result: no" >&5
4823echo "${ECHO_T}no" >&6
bec39cab
AC
4824fi
4825
b4e70030 4826 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4827else
4828 DLLTOOL="$ac_cv_prog_DLLTOOL"
4829fi
4830
4831if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4833set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4834echo "$as_me:$LINENO: checking for $ac_word" >&5
4835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4836if test "${ac_cv_prog_WINDRES+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
4839 if test -n "$WINDRES"; then
4840 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4849 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855
4856fi
4857fi
4858WINDRES=$ac_cv_prog_WINDRES
4859if test -n "$WINDRES"; then
b4e70030
JB
4860 echo "$as_me:$LINENO: result: $WINDRES" >&5
4861echo "${ECHO_T}$WINDRES" >&6
bec39cab 4862else
b4e70030
JB
4863 echo "$as_me:$LINENO: result: no" >&5
4864echo "${ECHO_T}no" >&6
bec39cab
AC
4865fi
4866
4867fi
4868if test -z "$ac_cv_prog_WINDRES"; then
4869 ac_ct_WINDRES=$WINDRES
4870 # Extract the first word of "windres", so it can be a program name with args.
4871set dummy windres; ac_word=$2
b4e70030
JB
4872echo "$as_me:$LINENO: checking for $ac_word" >&5
4873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4874if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
4877 if test -n "$ac_ct_WINDRES"; then
4878 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4879else
4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4887 ac_cv_prog_ac_ct_WINDRES="windres"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891done
4892done
4893
4894fi
4895fi
4896ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4897if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4898 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4899echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4900else
b4e70030
JB
4901 echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
c906108c 4903fi
bec39cab 4904
b4e70030 4905 WINDRES=$ac_ct_WINDRES
c906108c 4906else
bec39cab 4907 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4908fi
4909
bec39cab
AC
4910
4911# Needed for GNU/Hurd.
4912if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4914set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4915echo "$as_me:$LINENO: checking for $ac_word" >&5
4916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4917if test "${ac_cv_prog_MIG+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4919else
bec39cab
AC
4920 if test -n "$MIG"; then
4921 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4922else
4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4930 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4933 fi
4934done
4935done
4936
c906108c 4937fi
bec39cab
AC
4938fi
4939MIG=$ac_cv_prog_MIG
4940if test -n "$MIG"; then
b4e70030
JB
4941 echo "$as_me:$LINENO: result: $MIG" >&5
4942echo "${ECHO_T}$MIG" >&6
c906108c 4943else
b4e70030
JB
4944 echo "$as_me:$LINENO: result: no" >&5
4945echo "${ECHO_T}no" >&6
c906108c
SS
4946fi
4947
bec39cab
AC
4948fi
4949if test -z "$ac_cv_prog_MIG"; then
4950 ac_ct_MIG=$MIG
4951 # Extract the first word of "mig", so it can be a program name with args.
4952set dummy mig; ac_word=$2
b4e70030
JB
4953echo "$as_me:$LINENO: checking for $ac_word" >&5
4954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4955if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958 if test -n "$ac_ct_MIG"; then
4959 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4960else
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4968 ac_cv_prog_ac_ct_MIG="mig"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972done
4973done
c906108c 4974
bec39cab
AC
4975fi
4976fi
4977ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4978if test -n "$ac_ct_MIG"; then
b4e70030
JB
4979 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4980echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4981else
b4e70030
JB
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
bec39cab 4984fi
c906108c 4985
b4e70030 4986 MIG=$ac_ct_MIG
bec39cab
AC
4987else
4988 MIG="$ac_cv_prog_MIG"
4989fi
c906108c 4990
c906108c 4991
bec39cab
AC
4992# ---------------------- #
4993# Checks for libraries. #
4994# ---------------------- #
c906108c 4995
bec39cab 4996# We might need to link with -lm; most simulators need it.
c906108c 4997
b4e70030
JB
4998echo "$as_me:$LINENO: checking for main in -lm" >&5
4999echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
5000if test "${ac_cv_lib_m_main+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002else
5003 ac_check_lib_save_LIBS=$LIBS
5004LIBS="-lm $LIBS"
5005cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h. */
c906108c 5011
c906108c 5012
bec39cab
AC
5013int
5014main ()
5015{
b4e70030 5016main ();
bec39cab
AC
5017 ;
5018 return 0;
5019}
5020_ACEOF
5021rm -f conftest.$ac_objext conftest$ac_exeext
5022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023 (eval $ac_link) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
b4e70030
JB
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
bec39cab
AC
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_lib_m_main=yes
5044else
5045 echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
b4e70030 5048ac_cv_lib_m_main=no
bec39cab
AC
5049fi
5050rm -f conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052LIBS=$ac_check_lib_save_LIBS
5053fi
b4e70030
JB
5054echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5055echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
5056if test $ac_cv_lib_m_main = yes; then
5057 cat >>confdefs.h <<_ACEOF
5058#define HAVE_LIBM 1
5059_ACEOF
5060
5061 LIBS="-lm $LIBS"
c906108c 5062
c906108c 5063fi
bec39cab
AC
5064
5065
5066# We need to link with -lw to get `wctype' on Solaris before Solaris
5067# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5068# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5069# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
5070echo "$as_me:$LINENO: checking for wctype" >&5
5071echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
5072if test "${ac_cv_func_wctype+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075 cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5083#define wctype innocuous_wctype
5084
5085/* System header to define __stub macros and hopefully few prototypes,
5086 which can conflict with char wctype (); below.
5087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 <limits.h> exists even on freestanding compilers. */
5089
5090#ifdef __STDC__
5091# include <limits.h>
5092#else
5093# include <assert.h>
5094#endif
5095
5096#undef wctype
5097
b4e70030 5098/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5099#ifdef __cplusplus
5100extern "C"
b4e70030 5101{
bec39cab 5102#endif
b4e70030
JB
5103/* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
bec39cab
AC
5105char wctype ();
5106/* The GNU C library defines this for functions which it implements
5107 to always fail with ENOSYS. Some functions are actually named
5108 something starting with __ and the normal name is an alias. */
b4e70030 5109#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5110choke me
b4e70030
JB
5111#else
5112char (*f) () = wctype;
5113#endif
5114#ifdef __cplusplus
5115}
bec39cab
AC
5116#endif
5117
5118int
5119main ()
5120{
b4e70030 5121return f != wctype;
bec39cab
AC
5122 ;
5123 return 0;
5124}
5125_ACEOF
5126rm -f conftest.$ac_objext conftest$ac_exeext
5127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
b4e70030
JB
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
bec39cab
AC
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_func_wctype=yes
5149else
5150 echo "$as_me: failed program was:" >&5
5151sed 's/^/| /' conftest.$ac_ext >&5
5152
b4e70030 5153ac_cv_func_wctype=no
bec39cab
AC
5154fi
5155rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5157fi
b4e70030
JB
5158echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5159echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5160if test $ac_cv_func_wctype = yes; then
5161 :
c906108c 5162else
c906108c 5163
b4e70030
JB
5164echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5165echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5166if test "${ac_cv_lib_w_wctype+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168else
5169 ac_check_lib_save_LIBS=$LIBS
5170LIBS="-lw $LIBS"
5171cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h. */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h. */
c906108c 5177
b4e70030 5178/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5179#ifdef __cplusplus
5180extern "C"
5181#endif
b4e70030
JB
5182/* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
bec39cab
AC
5184char wctype ();
5185int
5186main ()
5187{
b4e70030 5188wctype ();
bec39cab
AC
5189 ;
5190 return 0;
5191}
5192_ACEOF
5193rm -f conftest.$ac_objext conftest$ac_exeext
5194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195 (eval $ac_link) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
b4e70030
JB
5202 { ac_try='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
bec39cab
AC
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_lib_w_wctype=yes
5216else
5217 echo "$as_me: failed program was:" >&5
5218sed 's/^/| /' conftest.$ac_ext >&5
5219
b4e70030 5220ac_cv_lib_w_wctype=no
bec39cab
AC
5221fi
5222rm -f conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
5224LIBS=$ac_check_lib_save_LIBS
5225fi
b4e70030
JB
5226echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5227echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5228if test $ac_cv_lib_w_wctype = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230#define HAVE_LIBW 1
5231_ACEOF
c906108c 5232
bec39cab 5233 LIBS="-lw $LIBS"
c906108c 5234
bec39cab 5235fi
c906108c 5236
bec39cab 5237fi
c906108c 5238
ddc9cd0f 5239
bec39cab 5240# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5241echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5242echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5243if test "${ac_cv_search_gethostbyname+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246 ac_func_search_save_LIBS=$LIBS
b4e70030 5247ac_cv_search_gethostbyname=no
bec39cab
AC
5248cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h. */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h. */
ddc9cd0f 5254
b4e70030 5255/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5256#ifdef __cplusplus
5257extern "C"
5258#endif
b4e70030
JB
5259/* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
bec39cab
AC
5261char gethostbyname ();
5262int
5263main ()
5264{
b4e70030 5265gethostbyname ();
bec39cab
AC
5266 ;
5267 return 0;
5268}
5269_ACEOF
b4e70030 5270rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
b4e70030
JB
5279 { ac_try='test -z "$ac_c_werror_flag"
5280 || test ! -s conftest.err'
bec39cab
AC
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
b4e70030 5292 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5293else
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5296
bec39cab
AC
5297fi
5298rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5299 conftest$ac_exeext conftest.$ac_ext
5300if test "$ac_cv_search_gethostbyname" = no; then
5301 for ac_lib in nsl; do
5302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5303 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5304/* confdefs.h. */
5305_ACEOF
5306cat confdefs.h >>conftest.$ac_ext
5307cat >>conftest.$ac_ext <<_ACEOF
5308/* end confdefs.h. */
ddc9cd0f 5309
b4e70030 5310/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5311#ifdef __cplusplus
5312extern "C"
5313#endif
b4e70030
JB
5314/* We use char because int might match the return type of a gcc2
5315 builtin and then its argument prototype would still apply. */
5316char gethostbyname ();
bec39cab
AC
5317int
5318main ()
5319{
b4e70030 5320gethostbyname ();
bec39cab
AC
5321 ;
5322 return 0;
5323}
5324_ACEOF
b4e70030 5325rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
b4e70030
JB
5334 { ac_try='test -z "$ac_c_werror_flag"
5335 || test ! -s conftest.err'
bec39cab
AC
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
b4e70030
JB
5347 ac_cv_search_gethostbyname="-l$ac_lib"
5348break
bec39cab
AC
5349else
5350 echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353fi
5354rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5355 conftest$ac_exeext conftest.$ac_ext
5356 done
bec39cab
AC
5357fi
5358LIBS=$ac_func_search_save_LIBS
5359fi
b4e70030
JB
5360echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5361echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5362if test "$ac_cv_search_gethostbyname" != no; then
5363 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5364
bec39cab 5365fi
96baa820 5366
c906108c 5367
b4e70030
JB
5368# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5369echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5370echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5371if test "${ac_cv_search_socketpair+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374 ac_func_search_save_LIBS=$LIBS
5375ac_cv_search_socketpair=no
5376cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h. */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h. */
5382
5383/* Override any gcc2 internal prototype to avoid an error. */
5384#ifdef __cplusplus
5385extern "C"
5386#endif
5387/* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5389char socketpair ();
5390int
5391main ()
5392{
5393socketpair ();
5394 ;
5395 return 0;
5396}
5397_ACEOF
5398rm -f conftest.$ac_objext conftest$ac_exeext
5399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5400 (eval $ac_link) 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest$ac_exeext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_search_socketpair="none required"
5421else
5422 echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425fi
5426rm -f conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428if test "$ac_cv_search_socketpair" = no; then
5429 for ac_lib in socket; do
5430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432/* confdefs.h. */
5433_ACEOF
5434cat confdefs.h >>conftest.$ac_ext
5435cat >>conftest.$ac_ext <<_ACEOF
5436/* end confdefs.h. */
5437
5438/* Override any gcc2 internal prototype to avoid an error. */
5439#ifdef __cplusplus
5440extern "C"
5441#endif
5442/* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5444char socketpair ();
5445int
5446main ()
5447{
5448socketpair ();
5449 ;
5450 return 0;
5451}
5452_ACEOF
5453rm -f conftest.$ac_objext conftest$ac_exeext
5454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_search_socketpair="-l$ac_lib"
5476break
5477else
5478 echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481fi
5482rm -f conftest.err conftest.$ac_objext \
5483 conftest$ac_exeext conftest.$ac_ext
5484 done
5485fi
5486LIBS=$ac_func_search_save_LIBS
5487fi
5488echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5489echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5490if test "$ac_cv_search_socketpair" != no; then
5491 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5492
5493fi
5494
5495
5496# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5497#
5498# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5499# curses library because the latter might not provide all the
5500# functionality we need. However, this leads to problems on systems
5501# where the linker searches /usr/local/lib, but the compiler doesn't
5502# search /usr/local/include, if ncurses is installed in /usr/local. A
5503# default installation of ncurses on alpha*-dec-osf* will lead to such
5504# a situation.
b4e70030
JB
5505echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5506echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5507if test "${ac_cv_search_waddstr+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510 ac_func_search_save_LIBS=$LIBS
b4e70030 5511ac_cv_search_waddstr=no
bec39cab
AC
5512cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h. */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h. */
c906108c 5518
b4e70030 5519/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5520#ifdef __cplusplus
5521extern "C"
5522#endif
b4e70030
JB
5523/* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
bec39cab
AC
5525char waddstr ();
5526int
5527main ()
5528{
b4e70030 5529waddstr ();
bec39cab
AC
5530 ;
5531 return 0;
5532}
5533_ACEOF
b4e70030 5534rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
b4e70030
JB
5543 { ac_try='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
bec39cab
AC
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest$ac_exeext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
b4e70030 5556 ac_cv_search_waddstr="none required"
bec39cab
AC
5557else
5558 echo "$as_me: failed program was:" >&5
5559sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5560
5561fi
bec39cab 5562rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5563 conftest$ac_exeext conftest.$ac_ext
5564if test "$ac_cv_search_waddstr" = no; then
5565 for ac_lib in ncurses cursesX curses; do
5566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5567 cat >conftest.$ac_ext <<_ACEOF
5568/* confdefs.h. */
5569_ACEOF
5570cat confdefs.h >>conftest.$ac_ext
5571cat >>conftest.$ac_ext <<_ACEOF
5572/* end confdefs.h. */
5573
5574/* Override any gcc2 internal prototype to avoid an error. */
5575#ifdef __cplusplus
5576extern "C"
5577#endif
5578/* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5580char waddstr ();
5581int
5582main ()
5583{
5584waddstr ();
5585 ;
5586 return 0;
5587}
5588_ACEOF
5589rm -f conftest.$ac_objext conftest$ac_exeext
5590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -z "$ac_c_werror_flag"
5599 || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 (eval $ac_try) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_search_waddstr="-l$ac_lib"
5612break
4e8d927d 5613else
b4e70030
JB
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617fi
5618rm -f conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
5620 done
1ba607ad 5621fi
bec39cab
AC
5622LIBS=$ac_func_search_save_LIBS
5623fi
b4e70030
JB
5624echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5625echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5626if test "$ac_cv_search_waddstr" != no; then
5627 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5628
8bb2c122 5629fi
8bb2c122 5630
8bb2c122 5631
d542061a
UW
5632# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
5633echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
5634echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
5635if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638 ac_func_search_save_LIBS=$LIBS
5639ac_cv_search_dlgetmodinfo=no
5640cat >conftest.$ac_ext <<_ACEOF
5641/* confdefs.h. */
5642_ACEOF
5643cat confdefs.h >>conftest.$ac_ext
5644cat >>conftest.$ac_ext <<_ACEOF
5645/* end confdefs.h. */
5646
5647/* Override any gcc2 internal prototype to avoid an error. */
5648#ifdef __cplusplus
5649extern "C"
5650#endif
5651/* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5653char dlgetmodinfo ();
5654int
5655main ()
5656{
5657dlgetmodinfo ();
5658 ;
5659 return 0;
5660}
5661_ACEOF
5662rm -f conftest.$ac_objext conftest$ac_exeext
5663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_search_dlgetmodinfo="none required"
5685else
5686 echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689fi
5690rm -f conftest.err conftest.$ac_objext \
5691 conftest$ac_exeext conftest.$ac_ext
5692if test "$ac_cv_search_dlgetmodinfo" = no; then
5693 for ac_lib in dl xpdl; do
5694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5695 cat >conftest.$ac_ext <<_ACEOF
5696/* confdefs.h. */
5697_ACEOF
5698cat confdefs.h >>conftest.$ac_ext
5699cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h. */
5701
5702/* Override any gcc2 internal prototype to avoid an error. */
5703#ifdef __cplusplus
5704extern "C"
5705#endif
5706/* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5708char dlgetmodinfo ();
5709int
5710main ()
5711{
5712dlgetmodinfo ();
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext conftest$ac_exeext
5718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest$ac_exeext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_cv_search_dlgetmodinfo="-l$ac_lib"
5740break
5741else
5742 echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745fi
5746rm -f conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
5748 done
5749fi
5750LIBS=$ac_func_search_save_LIBS
5751fi
5752echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
5753echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
5754if test "$ac_cv_search_dlgetmodinfo" != no; then
5755 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
5756
5757fi
5758
5759
bec39cab
AC
5760# Since GDB uses Readline, we need termcap functionality. In many
5761# cases this will be provided by the curses library, but some systems
5762# have a seperate termcap library, or no curses library at all.
8bb2c122 5763
bec39cab
AC
5764case $host_os in
5765 cygwin*)
5766 if test -d $srcdir/libtermcap; then
5767 LIBS="../libtermcap/libtermcap.a $LIBS"
5768 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5769 fi ;;
5770 go32* | *djgpp*)
5771 ac_cv_search_tgetent="none required"
5772 ;;
7ef34f2c
MM
5773 *mingw32*)
5774 ac_cv_search_tgetent="none required"
5775 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5776 ;;
bec39cab 5777esac
627af7ea 5778
bec39cab 5779# These are the libraries checked by Readline.
b4e70030
JB
5780echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5781echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5782if test "${ac_cv_search_tgetent+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785 ac_func_search_save_LIBS=$LIBS
b4e70030 5786ac_cv_search_tgetent=no
bec39cab
AC
5787cat >conftest.$ac_ext <<_ACEOF
5788/* confdefs.h. */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h. */
5793
b4e70030 5794/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5795#ifdef __cplusplus
5796extern "C"
5797#endif
b4e70030
JB
5798/* We use char because int might match the return type of a gcc2
5799 builtin and then its argument prototype would still apply. */
bec39cab
AC
5800char tgetent ();
5801int
5802main ()
5803{
b4e70030 5804tgetent ();
bec39cab
AC
5805 ;
5806 return 0;
5807}
5808_ACEOF
b4e70030 5809rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
b4e70030
JB
5818 { ac_try='test -z "$ac_c_werror_flag"
5819 || test ! -s conftest.err'
bec39cab
AC
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest$ac_exeext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
b4e70030 5831 ac_cv_search_tgetent="none required"
627af7ea 5832else
bec39cab
AC
5833 echo "$as_me: failed program was:" >&5
5834sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5835
627af7ea 5836fi
bec39cab 5837rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5838 conftest$ac_exeext conftest.$ac_ext
5839if test "$ac_cv_search_tgetent" = no; then
5840 for ac_lib in termcap tinfo curses ncurses; do
5841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5842 cat >conftest.$ac_ext <<_ACEOF
5843/* confdefs.h. */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h. */
5848
5849/* Override any gcc2 internal prototype to avoid an error. */
5850#ifdef __cplusplus
5851extern "C"
5852#endif
5853/* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5855char tgetent ();
5856int
5857main ()
5858{
5859tgetent ();
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext conftest$ac_exeext
5865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_search_tgetent="-l$ac_lib"
5887break
4e8d927d 5888else
b4e70030
JB
5889 echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892fi
5893rm -f conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5895 done
bec39cab
AC
5896fi
5897LIBS=$ac_func_search_save_LIBS
5898fi
b4e70030
JB
5899echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5900echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5901if test "$ac_cv_search_tgetent" != no; then
5902 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5903
06825bd1
MK
5904fi
5905
06825bd1 5906
bec39cab
AC
5907if test "$ac_cv_search_tgetent" = no; then
5908 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5909echo "$as_me: error: no termcap library found" >&2;}
5910 { (exit 1); exit 1; }; }
8ee53726
MK
5911fi
5912
3841debe 5913
6a30b0a5
AS
5914# Check whether --with-system-readline or --without-system-readline was given.
5915if test "${with_system_readline+set}" = set; then
5916 withval="$with_system_readline"
5917
5918fi;
5919
5920if test "$with_system_readline" = yes; then
5921 READLINE=-lreadline
5922 READLINE_DEPS=
5923 READLINE_CFLAGS=
5924else
5925 READLINE='$(READLINE_DIR)/libreadline.a'
5926 READLINE_DEPS='$(READLINE)'
5927 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5928fi
5929
5930
5931
5932
5933
5c39566f
DJ
5934# Check whether --with-expat or --without-expat was given.
5935if test "${with_expat+set}" = set; then
5936 withval="$with_expat"
5937
5938else
5939 with_expat=auto
5940fi;
5941echo "$as_me:$LINENO: checking whether to use expat" >&5
5942echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
5943echo "$as_me:$LINENO: result: $with_expat" >&5
5944echo "${ECHO_T}$with_expat" >&6
5945
5946if test "${with_expat}" = no; then
5947 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
5948echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5949 HAVE_LIBEXPAT=no
5950else
5951
3841debe
DJ
5952 if test "X$prefix" = "XNONE"; then
5953 acl_final_prefix="$ac_default_prefix"
5954 else
5955 acl_final_prefix="$prefix"
5956 fi
5957 if test "X$exec_prefix" = "XNONE"; then
5958 acl_final_exec_prefix='${prefix}'
5959 else
5960 acl_final_exec_prefix="$exec_prefix"
5961 fi
5962 acl_save_prefix="$prefix"
5963 prefix="$acl_final_prefix"
5964 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5965 prefix="$acl_save_prefix"
5966
5967
5968# Check whether --with-gnu-ld or --without-gnu-ld was given.
5969if test "${with_gnu_ld+set}" = set; then
5970 withval="$with_gnu_ld"
5971 test "$withval" = no || with_gnu_ld=yes
5972else
5973 with_gnu_ld=no
5974fi;
5975# Prepare PATH_SEPARATOR.
5976# The user is always right.
5977if test "${PATH_SEPARATOR+set}" != set; then
5978 echo "#! /bin/sh" >conf$$.sh
5979 echo "exit 0" >>conf$$.sh
5980 chmod +x conf$$.sh
5981 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5982 PATH_SEPARATOR=';'
5983 else
5984 PATH_SEPARATOR=:
5985 fi
5986 rm -f conf$$.sh
5987fi
5988ac_prog=ld
5989if test "$GCC" = yes; then
5990 # Check if gcc -print-prog-name=ld gives a path.
5991 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5992echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5993 case $host in
5994 *-*-mingw*)
5995 # gcc leaves a trailing carriage return which upsets mingw
5996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5997 *)
5998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5999 esac
6000 case $ac_prog in
6001 # Accept absolute paths.
6002 [\\/]* | [A-Za-z]:[\\/]*)
6003 re_direlt='/[^/][^/]*/\.\./'
6004 # Canonicalize the path of ld
6005 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6006 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6007 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6008 done
6009 test -z "$LD" && LD="$ac_prog"
6010 ;;
6011 "")
6012 # If it fails, then pretend we aren't using GCC.
6013 ac_prog=ld
6014 ;;
6015 *)
6016 # If it is relative, then search for the first ld in PATH.
6017 with_gnu_ld=unknown
6018 ;;
6019 esac
6020elif test "$with_gnu_ld" = yes; then
6021 echo "$as_me:$LINENO: checking for GNU ld" >&5
6022echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6023else
6024 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6025echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6026fi
6027if test "${acl_cv_path_LD+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029else
6030 if test -z "$LD"; then
6031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6032 for ac_dir in $PATH; do
6033 test -z "$ac_dir" && ac_dir=.
6034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6035 acl_cv_path_LD="$ac_dir/$ac_prog"
6036 # Check to see if the program is GNU ld. I'd rather use --version,
6037 # but apparently some GNU ld's only accept -v.
6038 # Break only if it was the GNU/non-GNU ld that we prefer.
6039 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6040 test "$with_gnu_ld" != no && break
6041 else
6042 test "$with_gnu_ld" != yes && break
6043 fi
6044 fi
6045 done
6046 IFS="$ac_save_ifs"
6047else
6048 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6049fi
6050fi
6051
6052LD="$acl_cv_path_LD"
6053if test -n "$LD"; then
6054 echo "$as_me:$LINENO: result: $LD" >&5
6055echo "${ECHO_T}$LD" >&6
6056else
6057 echo "$as_me:$LINENO: result: no" >&5
6058echo "${ECHO_T}no" >&6
6059fi
6060test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6061echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6062 { (exit 1); exit 1; }; }
6063echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6064echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6065if test "${acl_cv_prog_gnu_ld+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
6068 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6069if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6070 acl_cv_prog_gnu_ld=yes
6071else
6072 acl_cv_prog_gnu_ld=no
6073fi
6074fi
6075echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6076echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6077with_gnu_ld=$acl_cv_prog_gnu_ld
6078
6079
6080
6081 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6082echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6083if test "${acl_cv_rpath+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086
6087 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6088 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6089 . ./conftest.sh
6090 rm -f ./conftest.sh
6091 acl_cv_rpath=done
6092
6093fi
6094echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6095echo "${ECHO_T}$acl_cv_rpath" >&6
6096 wl="$acl_cv_wl"
6097 libext="$acl_cv_libext"
6098 shlibext="$acl_cv_shlibext"
6099 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6100 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6101 hardcode_direct="$acl_cv_hardcode_direct"
6102 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6103 # Check whether --enable-rpath or --disable-rpath was given.
6104if test "${enable_rpath+set}" = set; then
6105 enableval="$enable_rpath"
6106 :
6107else
6108 enable_rpath=yes
6109fi;
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119 use_additional=yes
6120
6121 acl_save_prefix="$prefix"
6122 prefix="$acl_final_prefix"
6123 acl_save_exec_prefix="$exec_prefix"
6124 exec_prefix="$acl_final_exec_prefix"
6125
6126 eval additional_includedir=\"$includedir\"
6127 eval additional_libdir=\"$libdir\"
6128
6129 exec_prefix="$acl_save_exec_prefix"
6130 prefix="$acl_save_prefix"
6131
6132
6133# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
6134if test "${with_libexpat_prefix+set}" = set; then
6135 withval="$with_libexpat_prefix"
6136
6137 if test "X$withval" = "Xno"; then
6138 use_additional=no
6139 else
6140 if test "X$withval" = "X"; then
6141
6142 acl_save_prefix="$prefix"
6143 prefix="$acl_final_prefix"
6144 acl_save_exec_prefix="$exec_prefix"
6145 exec_prefix="$acl_final_exec_prefix"
6146
6147 eval additional_includedir=\"$includedir\"
6148 eval additional_libdir=\"$libdir\"
6149
6150 exec_prefix="$acl_save_exec_prefix"
6151 prefix="$acl_save_prefix"
6152
6153 else
6154 additional_includedir="$withval/include"
6155 additional_libdir="$withval/lib"
6156 fi
6157 fi
6158
6159fi;
6160 LIBEXPAT=
6161 LTLIBEXPAT=
6162 INCEXPAT=
6163 rpathdirs=
6164 ltrpathdirs=
6165 names_already_handled=
6166 names_next_round='expat '
6167 while test -n "$names_next_round"; do
6168 names_this_round="$names_next_round"
6169 names_next_round=
6170 for name in $names_this_round; do
6171 already_handled=
6172 for n in $names_already_handled; do
6173 if test "$n" = "$name"; then
6174 already_handled=yes
6175 break
6176 fi
6177 done
6178 if test -z "$already_handled"; then
6179 names_already_handled="$names_already_handled $name"
6180 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6181 eval value=\"\$HAVE_LIB$uppername\"
6182 if test -n "$value"; then
6183 if test "$value" = yes; then
6184 eval value=\"\$LIB$uppername\"
6185 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
6186 eval value=\"\$LTLIB$uppername\"
6187 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
6188 else
6189 :
6190 fi
6191 else
6192 found_dir=
6193 found_la=
6194 found_so=
6195 found_a=
6196 if test $use_additional = yes; then
6197 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6198 found_dir="$additional_libdir"
6199 found_so="$additional_libdir/lib$name.$shlibext"
6200 if test -f "$additional_libdir/lib$name.la"; then
6201 found_la="$additional_libdir/lib$name.la"
6202 fi
6203 else
6204 if test -f "$additional_libdir/lib$name.$libext"; then
6205 found_dir="$additional_libdir"
6206 found_a="$additional_libdir/lib$name.$libext"
6207 if test -f "$additional_libdir/lib$name.la"; then
6208 found_la="$additional_libdir/lib$name.la"
6209 fi
6210 fi
6211 fi
6212 fi
6213 if test "X$found_dir" = "X"; then
6214 for x in $LDFLAGS $LTLIBEXPAT; do
6215
6216 acl_save_prefix="$prefix"
6217 prefix="$acl_final_prefix"
6218 acl_save_exec_prefix="$exec_prefix"
6219 exec_prefix="$acl_final_exec_prefix"
6220 eval x=\"$x\"
6221 exec_prefix="$acl_save_exec_prefix"
6222 prefix="$acl_save_prefix"
6223
6224 case "$x" in
6225 -L*)
6226 dir=`echo "X$x" | sed -e 's/^X-L//'`
6227 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6228 found_dir="$dir"
6229 found_so="$dir/lib$name.$shlibext"
6230 if test -f "$dir/lib$name.la"; then
6231 found_la="$dir/lib$name.la"
6232 fi
6233 else
6234 if test -f "$dir/lib$name.$libext"; then
6235 found_dir="$dir"
6236 found_a="$dir/lib$name.$libext"
6237 if test -f "$dir/lib$name.la"; then
6238 found_la="$dir/lib$name.la"
6239 fi
6240 fi
6241 fi
6242 ;;
6243 esac
6244 if test "X$found_dir" != "X"; then
6245 break
6246 fi
6247 done
6248 fi
6249 if test "X$found_dir" != "X"; then
6250 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6251 if test "X$found_so" != "X"; then
6252 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6253 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6254 else
6255 haveit=
6256 for x in $ltrpathdirs; do
6257 if test "X$x" = "X$found_dir"; then
6258 haveit=yes
6259 break
6260 fi
6261 done
6262 if test -z "$haveit"; then
6263 ltrpathdirs="$ltrpathdirs $found_dir"
6264 fi
6265 if test "$hardcode_direct" = yes; then
6266 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6267 else
6268 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6269 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6270 haveit=
6271 for x in $rpathdirs; do
6272 if test "X$x" = "X$found_dir"; then
6273 haveit=yes
6274 break
6275 fi
6276 done
6277 if test -z "$haveit"; then
6278 rpathdirs="$rpathdirs $found_dir"
6279 fi
6280 else
6281 haveit=
6282 for x in $LDFLAGS $LIBEXPAT; do
6283
6284 acl_save_prefix="$prefix"
6285 prefix="$acl_final_prefix"
6286 acl_save_exec_prefix="$exec_prefix"
6287 exec_prefix="$acl_final_exec_prefix"
6288 eval x=\"$x\"
6289 exec_prefix="$acl_save_exec_prefix"
6290 prefix="$acl_save_prefix"
6291
6292 if test "X$x" = "X-L$found_dir"; then
6293 haveit=yes
6294 break
6295 fi
6296 done
6297 if test -z "$haveit"; then
6298 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6299 fi
6300 if test "$hardcode_minus_L" != no; then
6301 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6302 else
6303 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6304 fi
6305 fi
6306 fi
6307 fi
6308 else
6309 if test "X$found_a" != "X"; then
6310 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6311 else
6312 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6313 fi
6314 fi
6315 additional_includedir=
6316 case "$found_dir" in
6317 */lib | */lib/)
6318 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6319 additional_includedir="$basedir/include"
6320 ;;
6321 esac
6322 if test "X$additional_includedir" != "X"; then
6323 if test "X$additional_includedir" != "X/usr/include"; then
6324 haveit=
6325 if test "X$additional_includedir" = "X/usr/local/include"; then
6326 if test -n "$GCC"; then
6327 case $host_os in
6328 linux*) haveit=yes;;
6329 esac
6330 fi
6331 fi
6332 if test -z "$haveit"; then
6333 for x in $CPPFLAGS $INCEXPAT; do
6334
6335 acl_save_prefix="$prefix"
6336 prefix="$acl_final_prefix"
6337 acl_save_exec_prefix="$exec_prefix"
6338 exec_prefix="$acl_final_exec_prefix"
6339 eval x=\"$x\"
6340 exec_prefix="$acl_save_exec_prefix"
6341 prefix="$acl_save_prefix"
6342
6343 if test "X$x" = "X-I$additional_includedir"; then
6344 haveit=yes
6345 break
6346 fi
6347 done
6348 if test -z "$haveit"; then
6349 if test -d "$additional_includedir"; then
6350 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6351 fi
6352 fi
6353 fi
6354 fi
6355 fi
6356 if test -n "$found_la"; then
6357 save_libdir="$libdir"
6358 case "$found_la" in
6359 */* | *\\*) . "$found_la" ;;
6360 *) . "./$found_la" ;;
6361 esac
6362 libdir="$save_libdir"
6363 for dep in $dependency_libs; do
6364 case "$dep" in
6365 -L*)
6366 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6367 if test "X$additional_libdir" != "X/usr/lib"; then
6368 haveit=
6369 if test "X$additional_libdir" = "X/usr/local/lib"; then
6370 if test -n "$GCC"; then
6371 case $host_os in
6372 linux*) haveit=yes;;
6373 esac
6374 fi
6375 fi
6376 if test -z "$haveit"; then
6377 haveit=
6378 for x in $LDFLAGS $LIBEXPAT; do
6379
6380 acl_save_prefix="$prefix"
6381 prefix="$acl_final_prefix"
6382 acl_save_exec_prefix="$exec_prefix"
6383 exec_prefix="$acl_final_exec_prefix"
6384 eval x=\"$x\"
6385 exec_prefix="$acl_save_exec_prefix"
6386 prefix="$acl_save_prefix"
6387
6388 if test "X$x" = "X-L$additional_libdir"; then
6389 haveit=yes
6390 break
6391 fi
6392 done
6393 if test -z "$haveit"; then
6394 if test -d "$additional_libdir"; then
6395 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6396 fi
6397 fi
6398 haveit=
6399 for x in $LDFLAGS $LTLIBEXPAT; do
6400
6401 acl_save_prefix="$prefix"
6402 prefix="$acl_final_prefix"
6403 acl_save_exec_prefix="$exec_prefix"
6404 exec_prefix="$acl_final_exec_prefix"
6405 eval x=\"$x\"
6406 exec_prefix="$acl_save_exec_prefix"
6407 prefix="$acl_save_prefix"
6408
6409 if test "X$x" = "X-L$additional_libdir"; then
6410 haveit=yes
6411 break
6412 fi
6413 done
6414 if test -z "$haveit"; then
6415 if test -d "$additional_libdir"; then
6416 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6417 fi
6418 fi
6419 fi
6420 fi
6421 ;;
6422 -R*)
6423 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6424 if test "$enable_rpath" != no; then
6425 haveit=
6426 for x in $rpathdirs; do
6427 if test "X$x" = "X$dir"; then
6428 haveit=yes
6429 break
6430 fi
6431 done
6432 if test -z "$haveit"; then
6433 rpathdirs="$rpathdirs $dir"
6434 fi
6435 haveit=
6436 for x in $ltrpathdirs; do
6437 if test "X$x" = "X$dir"; then
6438 haveit=yes
6439 break
6440 fi
6441 done
6442 if test -z "$haveit"; then
6443 ltrpathdirs="$ltrpathdirs $dir"
6444 fi
6445 fi
6446 ;;
6447 -l*)
6448 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6449 ;;
6450 *.la)
6451 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6452 ;;
6453 *)
6454 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6455 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6456 ;;
6457 esac
6458 done
6459 fi
6460 else
6461 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6462 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6463 fi
6464 fi
6465 fi
6466 done
6467 done
6468 if test "X$rpathdirs" != "X"; then
6469 if test -n "$hardcode_libdir_separator"; then
6470 alldirs=
6471 for found_dir in $rpathdirs; do
6472 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6473 done
6474 acl_save_libdir="$libdir"
6475 libdir="$alldirs"
6476 eval flag=\"$hardcode_libdir_flag_spec\"
6477 libdir="$acl_save_libdir"
6478 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6479 else
6480 for found_dir in $rpathdirs; do
6481 acl_save_libdir="$libdir"
6482 libdir="$found_dir"
6483 eval flag=\"$hardcode_libdir_flag_spec\"
6484 libdir="$acl_save_libdir"
6485 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6486 done
6487 fi
6488 fi
6489 if test "X$ltrpathdirs" != "X"; then
6490 for found_dir in $ltrpathdirs; do
6491 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6492 done
6493 fi
6494
6495
6496 ac_save_CPPFLAGS="$CPPFLAGS"
6497
6498 for element in $INCEXPAT; do
6499 haveit=
6500 for x in $CPPFLAGS; do
6501
6502 acl_save_prefix="$prefix"
6503 prefix="$acl_final_prefix"
6504 acl_save_exec_prefix="$exec_prefix"
6505 exec_prefix="$acl_final_exec_prefix"
6506 eval x=\"$x\"
6507 exec_prefix="$acl_save_exec_prefix"
6508 prefix="$acl_save_prefix"
6509
6510 if test "X$x" = "X$element"; then
6511 haveit=yes
6512 break
6513 fi
6514 done
6515 if test -z "$haveit"; then
6516 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6517 fi
6518 done
6519
6520
6521 echo "$as_me:$LINENO: checking for libexpat" >&5
6522echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6523if test "${ac_cv_libexpat+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525else
6526
6527 ac_save_LIBS="$LIBS"
6528 LIBS="$LIBS $LIBEXPAT"
6529 cat >conftest.$ac_ext <<_ACEOF
6530/* confdefs.h. */
6531_ACEOF
6532cat confdefs.h >>conftest.$ac_ext
6533cat >>conftest.$ac_ext <<_ACEOF
6534/* end confdefs.h. */
6535#include "expat.h"
6536int
6537main ()
6538{
6539XML_Parser p = XML_ParserCreate (0);
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544rm -f conftest.$ac_objext conftest$ac_exeext
6545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_c_werror_flag"
6554 || test ! -s conftest.err'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; } &&
6560 { ac_try='test -s conftest$ac_exeext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 ac_cv_libexpat=yes
6567else
6568 echo "$as_me: failed program was:" >&5
6569sed 's/^/| /' conftest.$ac_ext >&5
6570
6571ac_cv_libexpat=no
6572fi
6573rm -f conftest.err conftest.$ac_objext \
6574 conftest$ac_exeext conftest.$ac_ext
6575 LIBS="$ac_save_LIBS"
6576
6577fi
6578echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6579echo "${ECHO_T}$ac_cv_libexpat" >&6
6580 if test "$ac_cv_libexpat" = yes; then
6581 HAVE_LIBEXPAT=yes
6582
6583cat >>confdefs.h <<\_ACEOF
6584#define HAVE_LIBEXPAT 1
6585_ACEOF
6586
6587 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6588echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6589 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6590echo "${ECHO_T}$LIBEXPAT" >&6
6591 else
6592 HAVE_LIBEXPAT=no
6593 CPPFLAGS="$ac_save_CPPFLAGS"
6594 LIBEXPAT=
6595 LTLIBEXPAT=
6596 fi
6597
6598
6599
6600
6601
6602
5c39566f
DJ
6603 if test "$HAVE_LIBEXPAT" != yes; then
6604 if test "$with_expat" = yes; then
6605 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6606echo "$as_me: error: expat is missing or unusable" >&2;}
6607 { (exit 1); exit 1; }; }
6608 else
6609 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6610echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6611 fi
6612 else
6613 save_LIBS=$LIBS
6614 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
6615
6616for ac_func in XML_StopParser
6617do
6618as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6619echo "$as_me:$LINENO: checking for $ac_func" >&5
6620echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6621if eval "test \"\${$as_ac_var+set}\" = set"; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6632#define $ac_func innocuous_$ac_func
6633
6634/* System header to define __stub macros and hopefully few prototypes,
6635 which can conflict with char $ac_func (); below.
6636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6637 <limits.h> exists even on freestanding compilers. */
6638
6639#ifdef __STDC__
6640# include <limits.h>
6641#else
6642# include <assert.h>
6643#endif
6644
6645#undef $ac_func
6646
6647/* Override any gcc2 internal prototype to avoid an error. */
6648#ifdef __cplusplus
6649extern "C"
6650{
6651#endif
6652/* We use char because int might match the return type of a gcc2
6653 builtin and then its argument prototype would still apply. */
6654char $ac_func ();
6655/* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6659choke me
6660#else
6661char (*f) () = $ac_func;
6662#endif
6663#ifdef __cplusplus
6664}
6665#endif
6666
6667int
6668main ()
6669{
6670return f != $ac_func;
6671 ;
6672 return 0;
6673}
6674_ACEOF
6675rm -f conftest.$ac_objext conftest$ac_exeext
6676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag"
6685 || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest$ac_exeext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 eval "$as_ac_var=yes"
6698else
6699 echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702eval "$as_ac_var=no"
6703fi
6704rm -f conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706fi
6707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6708echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6709if test `eval echo '${'$as_ac_var'}'` = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6712_ACEOF
6713
6714fi
6715done
6716
5c39566f
DJ
6717 LIBS=$save_LIBS
6718 fi
3841debe
DJ
6719fi
6720
bec39cab
AC
6721# ------------------------- #
6722# Checks for header files. #
6723# ------------------------- #
8ee53726 6724
0e5d83e3 6725
bec39cab
AC
6726
6727
6728
6729
6730ac_header_dirent=no
6731for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6732 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6733echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6734echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6735if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
6738 cat >conftest.$ac_ext <<_ACEOF
6739/* confdefs.h. */
6740_ACEOF
6741cat confdefs.h >>conftest.$ac_ext
6742cat >>conftest.$ac_ext <<_ACEOF
6743/* end confdefs.h. */
6744#include <sys/types.h>
0e5d83e3 6745#include <$ac_hdr>
bec39cab
AC
6746
6747int
6748main ()
6749{
6750if ((DIR *) 0)
6751return 0;
6752 ;
6753 return 0;
6754}
6755_ACEOF
6756rm -f conftest.$ac_objext
6757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
b4e70030
JB
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
bec39cab
AC
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 eval "$as_ac_Header=yes"
6779else
6780 echo "$as_me: failed program was:" >&5
6781sed 's/^/| /' conftest.$ac_ext >&5
6782
b4e70030 6783eval "$as_ac_Header=no"
bec39cab
AC
6784fi
6785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786fi
b4e70030
JB
6787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6789if test `eval echo '${'$as_ac_Header'}'` = yes; then
6790 cat >>confdefs.h <<_ACEOF
6791#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6792_ACEOF
6793
6794ac_header_dirent=$ac_hdr; break
0e5d83e3 6795fi
0e5d83e3 6796
bec39cab
AC
6797done
6798# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6799if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6800 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6801echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6802if test "${ac_cv_search_opendir+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805 ac_func_search_save_LIBS=$LIBS
b4e70030 6806ac_cv_search_opendir=no
bec39cab
AC
6807cat >conftest.$ac_ext <<_ACEOF
6808/* confdefs.h. */
6809_ACEOF
6810cat confdefs.h >>conftest.$ac_ext
6811cat >>conftest.$ac_ext <<_ACEOF
6812/* end confdefs.h. */
0e5d83e3 6813
b4e70030 6814/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6815#ifdef __cplusplus
6816extern "C"
6817#endif
b4e70030
JB
6818/* We use char because int might match the return type of a gcc2
6819 builtin and then its argument prototype would still apply. */
bec39cab
AC
6820char opendir ();
6821int
6822main ()
6823{
b4e70030 6824opendir ();
bec39cab
AC
6825 ;
6826 return 0;
6827}
6828_ACEOF
b4e70030 6829rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6831 (eval $ac_link) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
b4e70030
JB
6838 { ac_try='test -z "$ac_c_werror_flag"
6839 || test ! -s conftest.err'
bec39cab
AC
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest$ac_exeext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
b4e70030 6851 ac_cv_search_opendir="none required"
bec39cab
AC
6852else
6853 echo "$as_me: failed program was:" >&5
6854sed 's/^/| /' conftest.$ac_ext >&5
6855
6856fi
bec39cab 6857rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6858 conftest$ac_exeext conftest.$ac_ext
6859if test "$ac_cv_search_opendir" = no; then
6860 for ac_lib in dir; do
6861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6862 cat >conftest.$ac_ext <<_ACEOF
6863/* confdefs.h. */
6864_ACEOF
6865cat confdefs.h >>conftest.$ac_ext
6866cat >>conftest.$ac_ext <<_ACEOF
6867/* end confdefs.h. */
6868
6869/* Override any gcc2 internal prototype to avoid an error. */
6870#ifdef __cplusplus
6871extern "C"
6872#endif
6873/* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6875char opendir ();
6876int
6877main ()
6878{
6879opendir ();
6880 ;
6881 return 0;
6882}
6883_ACEOF
6884rm -f conftest.$ac_objext conftest$ac_exeext
6885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886 (eval $ac_link) 2>conftest.er1
6887 ac_status=$?
6888 grep -v '^ *+' conftest.er1 >conftest.err
6889 rm -f conftest.er1
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -z "$ac_c_werror_flag"
6894 || test ! -s conftest.err'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 (eval $ac_try) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } &&
6900 { ac_try='test -s conftest$ac_exeext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_cv_search_opendir="-l$ac_lib"
6907break
4e8d927d 6908else
b4e70030
JB
6909 echo "$as_me: failed program was:" >&5
6910sed 's/^/| /' conftest.$ac_ext >&5
6911
6912fi
6913rm -f conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6915 done
0e5d83e3 6916fi
bec39cab 6917LIBS=$ac_func_search_save_LIBS
0e5d83e3 6918fi
b4e70030
JB
6919echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6920echo "${ECHO_T}$ac_cv_search_opendir" >&6
6921if test "$ac_cv_search_opendir" != no; then
6922 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6923
0e5d83e3
JJ
6924fi
6925
d28f9cdf 6926else
b4e70030
JB
6927 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6928echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6929if test "${ac_cv_search_opendir+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932 ac_func_search_save_LIBS=$LIBS
b4e70030 6933ac_cv_search_opendir=no
bec39cab
AC
6934cat >conftest.$ac_ext <<_ACEOF
6935/* confdefs.h. */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h. */
d28f9cdf 6940
b4e70030 6941/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6942#ifdef __cplusplus
6943extern "C"
d28f9cdf 6944#endif
b4e70030
JB
6945/* We use char because int might match the return type of a gcc2
6946 builtin and then its argument prototype would still apply. */
bec39cab
AC
6947char opendir ();
6948int
6949main ()
6950{
b4e70030 6951opendir ();
bec39cab
AC
6952 ;
6953 return 0;
6954}
6955_ACEOF
b4e70030 6956rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
b4e70030
JB
6965 { ac_try='test -z "$ac_c_werror_flag"
6966 || test ! -s conftest.err'
bec39cab
AC
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
b4e70030 6978 ac_cv_search_opendir="none required"
d28f9cdf 6979else
bec39cab
AC
6980 echo "$as_me: failed program was:" >&5
6981sed 's/^/| /' conftest.$ac_ext >&5
6982
d28f9cdf 6983fi
bec39cab 6984rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6985 conftest$ac_exeext conftest.$ac_ext
6986if test "$ac_cv_search_opendir" = no; then
6987 for ac_lib in x; do
6988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6989 cat >conftest.$ac_ext <<_ACEOF
6990/* confdefs.h. */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
6995
6996/* Override any gcc2 internal prototype to avoid an error. */
6997#ifdef __cplusplus
6998extern "C"
6999#endif
7000/* We use char because int might match the return type of a gcc2
7001 builtin and then its argument prototype would still apply. */
7002char opendir ();
7003int
7004main ()
7005{
7006opendir ();
7007 ;
7008 return 0;
7009}
7010_ACEOF
7011rm -f conftest.$ac_objext conftest$ac_exeext
7012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest$ac_exeext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 ac_cv_search_opendir="-l$ac_lib"
7034break
4e8d927d 7035else
b4e70030
JB
7036 echo "$as_me: failed program was:" >&5
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039fi
7040rm -f conftest.err conftest.$ac_objext \
7041 conftest$ac_exeext conftest.$ac_ext
7042 done
bec39cab
AC
7043fi
7044LIBS=$ac_func_search_save_LIBS
d28f9cdf 7045fi
b4e70030
JB
7046echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7047echo "${ECHO_T}$ac_cv_search_opendir" >&6
7048if test "$ac_cv_search_opendir" != no; then
7049 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 7050
d28f9cdf
DJ
7051fi
7052
bec39cab 7053fi
b0b1c2c0 7054
b4e70030
JB
7055echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7056echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
7057if test "${ac_cv_header_stat_broken+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 7059else
bec39cab
AC
7060 cat >conftest.$ac_ext <<_ACEOF
7061/* confdefs.h. */
7062_ACEOF
7063cat confdefs.h >>conftest.$ac_ext
7064cat >>conftest.$ac_ext <<_ACEOF
7065/* end confdefs.h. */
7066#include <sys/types.h>
7067#include <sys/stat.h>
b0b1c2c0 7068
b4e70030 7069#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
7070# if S_ISBLK (S_IFDIR)
7071You lose.
7072# endif
7073#endif
b0b1c2c0 7074
b4e70030 7075#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
7076# if S_ISBLK (S_IFCHR)
7077You lose.
7078# endif
7079#endif
d28f9cdf 7080
b4e70030 7081#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
7082# if S_ISLNK (S_IFREG)
7083You lose.
7084# endif
7085#endif
d28f9cdf 7086
b4e70030 7087#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
7088# if S_ISSOCK (S_IFREG)
7089You lose.
7090# endif
7091#endif
7092
7093_ACEOF
7094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 $EGREP "You lose" >/dev/null 2>&1; then
7096 ac_cv_header_stat_broken=yes
d28f9cdf 7097else
bec39cab 7098 ac_cv_header_stat_broken=no
d28f9cdf
DJ
7099fi
7100rm -f conftest*
d28f9cdf 7101
d28f9cdf 7102fi
b4e70030
JB
7103echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7104echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 7105if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 7106
bec39cab
AC
7107cat >>confdefs.h <<\_ACEOF
7108#define STAT_MACROS_BROKEN 1
7109_ACEOF
8bb2c122 7110
7a292a7a 7111fi
bec39cab 7112
b4e70030
JB
7113echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7114echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
7115if test "${ac_cv_header_stdc+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 7117else
bec39cab
AC
7118 cat >conftest.$ac_ext <<_ACEOF
7119/* confdefs.h. */
7120_ACEOF
7121cat confdefs.h >>conftest.$ac_ext
7122cat >>conftest.$ac_ext <<_ACEOF
7123/* end confdefs.h. */
7124#include <stdlib.h>
7125#include <stdarg.h>
7126#include <string.h>
7127#include <float.h>
7a292a7a 7128
bec39cab
AC
7129int
7130main ()
7131{
7a292a7a 7132
bec39cab
AC
7133 ;
7134 return 0;
7135}
7136_ACEOF
7137rm -f conftest.$ac_objext
7138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>conftest.er1
7140 ac_status=$?
7141 grep -v '^ *+' conftest.er1 >conftest.err
7142 rm -f conftest.er1
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } &&
b4e70030
JB
7146 { ac_try='test -z "$ac_c_werror_flag"
7147 || test ! -s conftest.err'
bec39cab
AC
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; } &&
7153 { ac_try='test -s conftest.$ac_objext'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; }; then
7159 ac_cv_header_stdc=yes
c906108c 7160else
bec39cab
AC
7161 echo "$as_me: failed program was:" >&5
7162sed 's/^/| /' conftest.$ac_ext >&5
c906108c 7163
b4e70030 7164ac_cv_header_stdc=no
c906108c 7165fi
bec39cab 7166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7167
bec39cab
AC
7168if test $ac_cv_header_stdc = yes; then
7169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7170 cat >conftest.$ac_ext <<_ACEOF
7171/* confdefs.h. */
7172_ACEOF
7173cat confdefs.h >>conftest.$ac_ext
7174cat >>conftest.$ac_ext <<_ACEOF
7175/* end confdefs.h. */
7176#include <string.h>
c906108c 7177
bec39cab
AC
7178_ACEOF
7179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 $EGREP "memchr" >/dev/null 2>&1; then
7181 :
8bb2c122 7182else
bec39cab 7183 ac_cv_header_stdc=no
8bb2c122 7184fi
bec39cab
AC
7185rm -f conftest*
7186
c906108c
SS
7187fi
7188
bec39cab
AC
7189if test $ac_cv_header_stdc = yes; then
7190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7191 cat >conftest.$ac_ext <<_ACEOF
7192/* confdefs.h. */
7193_ACEOF
7194cat confdefs.h >>conftest.$ac_ext
7195cat >>conftest.$ac_ext <<_ACEOF
7196/* end confdefs.h. */
7197#include <stdlib.h>
7198
7199_ACEOF
7200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201 $EGREP "free" >/dev/null 2>&1; then
7202 :
c906108c 7203else
bec39cab 7204 ac_cv_header_stdc=no
c906108c 7205fi
bec39cab
AC
7206rm -f conftest*
7207
c906108c
SS
7208fi
7209
bec39cab
AC
7210if test $ac_cv_header_stdc = yes; then
7211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7212 if test "$cross_compiling" = yes; then
7213 :
c906108c 7214else
bec39cab
AC
7215 cat >conftest.$ac_ext <<_ACEOF
7216/* confdefs.h. */
7217_ACEOF
7218cat confdefs.h >>conftest.$ac_ext
7219cat >>conftest.$ac_ext <<_ACEOF
7220/* end confdefs.h. */
7221#include <ctype.h>
7222#if ((' ' & 0x0FF) == 0x020)
7223# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7224# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7225#else
7226# define ISLOWER(c) \
7227 (('a' <= (c) && (c) <= 'i') \
7228 || ('j' <= (c) && (c) <= 'r') \
7229 || ('s' <= (c) && (c) <= 'z'))
7230# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7231#endif
7232
7233#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7234int
7235main ()
7236{
7237 int i;
7238 for (i = 0; i < 256; i++)
7239 if (XOR (islower (i), ISLOWER (i))
7240 || toupper (i) != TOUPPER (i))
b4e70030
JB
7241 exit(2);
7242 exit (0);
bec39cab
AC
7243}
7244_ACEOF
7245rm -f conftest$ac_exeext
7246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247 (eval $ac_link) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 (eval $ac_try) 2>&5
7253 ac_status=$?
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7256 :
7257else
7258 echo "$as_me: program exited with status $ac_status" >&5
7259echo "$as_me: failed program was:" >&5
7260sed 's/^/| /' conftest.$ac_ext >&5
7261
7262( exit $ac_status )
7263ac_cv_header_stdc=no
c906108c 7264fi
b4e70030 7265rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7266fi
c906108c 7267fi
bec39cab 7268fi
b4e70030
JB
7269echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7270echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 7271if test $ac_cv_header_stdc = yes; then
c906108c 7272
bec39cab
AC
7273cat >>confdefs.h <<\_ACEOF
7274#define STDC_HEADERS 1
7275_ACEOF
c906108c 7276
bec39cab 7277fi
8bb2c122 7278
bec39cab 7279
7cb9022a 7280for ac_header in nlist.h
bec39cab
AC
7281do
7282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7283if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284 echo "$as_me:$LINENO: checking for $ac_header" >&5
7285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7286if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288fi
b4e70030
JB
7289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7291else
7292 # Is the header compilable?
b4e70030
JB
7293echo "$as_me:$LINENO: checking $ac_header usability" >&5
7294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7295cat >conftest.$ac_ext <<_ACEOF
7296/* confdefs.h. */
7297_ACEOF
7298cat confdefs.h >>conftest.$ac_ext
7299cat >>conftest.$ac_ext <<_ACEOF
7300/* end confdefs.h. */
7301$ac_includes_default
7302#include <$ac_header>
7303_ACEOF
7304rm -f conftest.$ac_objext
7305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306 (eval $ac_compile) 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } &&
b4e70030
JB
7313 { ac_try='test -z "$ac_c_werror_flag"
7314 || test ! -s conftest.err'
bec39cab
AC
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; } &&
7320 { ac_try='test -s conftest.$ac_objext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 (eval $ac_try) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_header_compiler=yes
7327else
7328 echo "$as_me: failed program was:" >&5
7329sed 's/^/| /' conftest.$ac_ext >&5
7330
b4e70030 7331ac_header_compiler=no
bec39cab
AC
7332fi
7333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7335echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7336
7337# Is the header present?
b4e70030
JB
7338echo "$as_me:$LINENO: checking $ac_header presence" >&5
7339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7340cat >conftest.$ac_ext <<_ACEOF
7341/* confdefs.h. */
7342_ACEOF
7343cat confdefs.h >>conftest.$ac_ext
7344cat >>conftest.$ac_ext <<_ACEOF
7345/* end confdefs.h. */
7346#include <$ac_header>
7347_ACEOF
7348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } >/dev/null; then
7356 if test -s conftest.err; then
7357 ac_cpp_err=$ac_c_preproc_warn_flag
7358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7359 else
7360 ac_cpp_err=
7361 fi
c906108c 7362else
bec39cab 7363 ac_cpp_err=yes
c906108c 7364fi
bec39cab
AC
7365if test -z "$ac_cpp_err"; then
7366 ac_header_preproc=yes
c906108c 7367else
bec39cab
AC
7368 echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7370
bec39cab
AC
7371 ac_header_preproc=no
7372fi
7373rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7375echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7376
bec39cab
AC
7377# So? What about this header?
7378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7379 yes:no: )
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7384 ac_header_preproc=yes
7385 ;;
7386 no:yes:* )
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7399 (
7400 cat <<\_ASBOX
7401## ------------------------------------------ ##
7402## Report this to the AC_PACKAGE_NAME lists. ##
7403## ------------------------------------------ ##
7404_ASBOX
7405 ) |
7406 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7407 ;;
7408esac
b4e70030
JB
7409echo "$as_me:$LINENO: checking for $ac_header" >&5
7410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7412 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7413else
bec39cab 7414 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7415fi
b4e70030
JB
7416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7418
95ca63c4 7419fi
bec39cab
AC
7420if test `eval echo '${'$as_ac_Header'}'` = yes; then
7421 cat >>confdefs.h <<_ACEOF
7422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7423_ACEOF
7424
95ca63c4
CF
7425fi
7426
bec39cab 7427done
95ca63c4
CF
7428
7429
7cb9022a 7430for ac_header in link.h
bec39cab
AC
7431do
7432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7433echo "$as_me:$LINENO: checking for $ac_header" >&5
7434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7435if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7436 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7437else
7cb9022a 7438 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7439/* confdefs.h. */
7440_ACEOF
7441cat confdefs.h >>conftest.$ac_ext
7442cat >>conftest.$ac_ext <<_ACEOF
7443/* end confdefs.h. */
7cb9022a
MK
7444#if HAVE_SYS_TYPES_H
7445# include <sys/types.h>
7446#endif
7447#if HAVE_NLIST_H
7448# include <nlist.h>
7449#endif
7450
7451
bec39cab
AC
7452#include <$ac_header>
7453_ACEOF
7454rm -f conftest.$ac_objext
7455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
b4e70030
JB
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
bec39cab
AC
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7cb9022a 7476 eval "$as_ac_Header=yes"
bec39cab
AC
7477else
7478 echo "$as_me: failed program was:" >&5
7479sed 's/^/| /' conftest.$ac_ext >&5
7480
b4e70030 7481eval "$as_ac_Header=no"
bec39cab
AC
7482fi
7483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7484fi
b4e70030
JB
7485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7487if test `eval echo '${'$as_ac_Header'}'` = yes; then
7488 cat >>confdefs.h <<_ACEOF
7489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7490_ACEOF
95ca63c4 7491
bec39cab 7492fi
95ca63c4 7493
bec39cab 7494done
95ca63c4 7495
c906108c 7496
7cb9022a 7497for ac_header in machine/reg.h
bec39cab
AC
7498do
7499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7500if eval "test \"\${$as_ac_Header+set}\" = set"; then
7501 echo "$as_me:$LINENO: checking for $ac_header" >&5
7502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7503if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505fi
b4e70030
JB
7506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7508else
7509 # Is the header compilable?
b4e70030
JB
7510echo "$as_me:$LINENO: checking $ac_header usability" >&5
7511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7512cat >conftest.$ac_ext <<_ACEOF
7513/* confdefs.h. */
7514_ACEOF
7515cat confdefs.h >>conftest.$ac_ext
7516cat >>conftest.$ac_ext <<_ACEOF
7517/* end confdefs.h. */
7518$ac_includes_default
7519#include <$ac_header>
7520_ACEOF
7521rm -f conftest.$ac_objext
7522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
b4e70030
JB
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
bec39cab
AC
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_header_compiler=yes
7544else
7545 echo "$as_me: failed program was:" >&5
7546sed 's/^/| /' conftest.$ac_ext >&5
7547
b4e70030 7548ac_header_compiler=no
bec39cab
AC
7549fi
7550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7552echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7553
7554# Is the header present?
b4e70030
JB
7555echo "$as_me:$LINENO: checking $ac_header presence" >&5
7556echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7557cat >conftest.$ac_ext <<_ACEOF
7558/* confdefs.h. */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h. */
7563#include <$ac_header>
7564_ACEOF
7565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7567 ac_status=$?
7568 grep -v '^ *+' conftest.er1 >conftest.err
7569 rm -f conftest.er1
7570 cat conftest.err >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } >/dev/null; then
7573 if test -s conftest.err; then
7574 ac_cpp_err=$ac_c_preproc_warn_flag
7575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7576 else
7577 ac_cpp_err=
7578 fi
75c6e08a 7579else
bec39cab 7580 ac_cpp_err=yes
75c6e08a 7581fi
bec39cab
AC
7582if test -z "$ac_cpp_err"; then
7583 ac_header_preproc=yes
7584else
7585 echo "$as_me: failed program was:" >&5
7586sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 ac_header_preproc=no
75c6e08a 7589fi
bec39cab 7590rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7592echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7593
7594# So? What about this header?
7595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7596 yes:no: )
7597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7598echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7600echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7601 ac_header_preproc=yes
7602 ;;
7603 no:yes:* )
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7607echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7609echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7611echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7615echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7616 (
7617 cat <<\_ASBOX
7618## ------------------------------------------ ##
7619## Report this to the AC_PACKAGE_NAME lists. ##
7620## ------------------------------------------ ##
7621_ASBOX
7622 ) |
7623 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7624 ;;
7625esac
b4e70030
JB
7626echo "$as_me:$LINENO: checking for $ac_header" >&5
7627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7628if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7629 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7630else
bec39cab
AC
7631 eval "$as_ac_Header=\$ac_header_preproc"
7632fi
b4e70030
JB
7633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7635
75c6e08a 7636fi
bec39cab
AC
7637if test `eval echo '${'$as_ac_Header'}'` = yes; then
7638 cat >>confdefs.h <<_ACEOF
7639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7640_ACEOF
75c6e08a 7641
bec39cab 7642fi
75c6e08a 7643
bec39cab 7644done
75c6e08a
MK
7645
7646
9a156167 7647
bec39cab
AC
7648for ac_header in poll.h sys/poll.h
7649do
7650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7651if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo "$as_me:$LINENO: checking for $ac_header" >&5
7653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7654if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656fi
b4e70030
JB
7657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7659else
7660 # Is the header compilable?
b4e70030
JB
7661echo "$as_me:$LINENO: checking $ac_header usability" >&5
7662echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7663cat >conftest.$ac_ext <<_ACEOF
7664/* confdefs.h. */
7665_ACEOF
7666cat confdefs.h >>conftest.$ac_ext
7667cat >>conftest.$ac_ext <<_ACEOF
7668/* end confdefs.h. */
7669$ac_includes_default
7670#include <$ac_header>
7671_ACEOF
7672rm -f conftest.$ac_objext
7673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674 (eval $ac_compile) 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
b4e70030
JB
7681 { ac_try='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
bec39cab
AC
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try='test -s conftest.$ac_objext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 ac_header_compiler=yes
7695else
7696 echo "$as_me: failed program was:" >&5
7697sed 's/^/| /' conftest.$ac_ext >&5
7698
b4e70030 7699ac_header_compiler=no
bec39cab
AC
7700fi
7701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7702echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7703echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7704
7705# Is the header present?
b4e70030
JB
7706echo "$as_me:$LINENO: checking $ac_header presence" >&5
7707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7708cat >conftest.$ac_ext <<_ACEOF
7709/* confdefs.h. */
7710_ACEOF
7711cat confdefs.h >>conftest.$ac_ext
7712cat >>conftest.$ac_ext <<_ACEOF
7713/* end confdefs.h. */
7714#include <$ac_header>
7715_ACEOF
7716if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } >/dev/null; then
7724 if test -s conftest.err; then
7725 ac_cpp_err=$ac_c_preproc_warn_flag
7726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7727 else
7728 ac_cpp_err=
7729 fi
9a156167 7730else
bec39cab 7731 ac_cpp_err=yes
9a156167 7732fi
bec39cab
AC
7733if test -z "$ac_cpp_err"; then
7734 ac_header_preproc=yes
7735else
7736 echo "$as_me: failed program was:" >&5
7737sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7738
bec39cab 7739 ac_header_preproc=no
9a156167 7740fi
bec39cab 7741rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7742echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7743echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7744
bec39cab
AC
7745# So? What about this header?
7746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7747 yes:no: )
7748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7751echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7752 ac_header_preproc=yes
7753 ;;
7754 no:yes:* )
7755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7756echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7758echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7760echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7762echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7766echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7767 (
7768 cat <<\_ASBOX
7769## ------------------------------------------ ##
7770## Report this to the AC_PACKAGE_NAME lists. ##
7771## ------------------------------------------ ##
7772_ASBOX
7773 ) |
7774 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7775 ;;
7776esac
b4e70030
JB
7777echo "$as_me:$LINENO: checking for $ac_header" >&5
7778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7779if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7780 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7781else
bec39cab 7782 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7783fi
b4e70030
JB
7784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7786
bec39cab
AC
7787fi
7788if test `eval echo '${'$as_ac_Header'}'` = yes; then
7789 cat >>confdefs.h <<_ACEOF
7790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7791_ACEOF
9a156167 7792
bec39cab 7793fi
9a156167 7794
bec39cab 7795done
9a156167 7796
9a156167 7797
9a156167 7798
bec39cab
AC
7799
7800for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7801do
7802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7803if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo "$as_me:$LINENO: checking for $ac_header" >&5
7805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808fi
b4e70030
JB
7809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7811else
7812 # Is the header compilable?
b4e70030
JB
7813echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7815cat >conftest.$ac_ext <<_ACEOF
7816/* confdefs.h. */
7817_ACEOF
7818cat confdefs.h >>conftest.$ac_ext
7819cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
7820/* end confdefs.h. */
7821$ac_includes_default
7822#include <$ac_header>
7823_ACEOF
7824rm -f conftest.$ac_objext
7825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_header_compiler=yes
7847else
7848 echo "$as_me: failed program was:" >&5
7849sed 's/^/| /' conftest.$ac_ext >&5
7850
7851ac_header_compiler=no
7852fi
7853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7855echo "${ECHO_T}$ac_header_compiler" >&6
7856
7857# Is the header present?
7858echo "$as_me:$LINENO: checking $ac_header presence" >&5
7859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7860cat >conftest.$ac_ext <<_ACEOF
7861/* confdefs.h. */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h. */
7866#include <$ac_header>
7867_ACEOF
7868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } >/dev/null; then
7876 if test -s conftest.err; then
7877 ac_cpp_err=$ac_c_preproc_warn_flag
7878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7879 else
7880 ac_cpp_err=
7881 fi
7882else
7883 ac_cpp_err=yes
7884fi
7885if test -z "$ac_cpp_err"; then
7886 ac_header_preproc=yes
7887else
7888 echo "$as_me: failed program was:" >&5
7889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 ac_header_preproc=no
7892fi
7893rm -f conftest.err conftest.$ac_ext
7894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895echo "${ECHO_T}$ac_header_preproc" >&6
7896
7897# So? What about this header?
7898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7899 yes:no: )
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7904 ac_header_preproc=yes
7905 ;;
7906 no:yes:* )
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7910echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7914echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7919 (
7920 cat <<\_ASBOX
7921## ------------------------------------------ ##
7922## Report this to the AC_PACKAGE_NAME lists. ##
7923## ------------------------------------------ ##
7924_ASBOX
7925 ) |
7926 sed "s/^/$as_me: WARNING: /" >&2
7927 ;;
7928esac
7929echo "$as_me:$LINENO: checking for $ac_header" >&5
7930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7931if eval "test \"\${$as_ac_Header+set}\" = set"; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933else
7934 eval "$as_ac_Header=\$ac_header_preproc"
7935fi
7936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7938
7939fi
7940if test `eval echo '${'$as_ac_Header'}'` = yes; then
7941 cat >>confdefs.h <<_ACEOF
7942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7943_ACEOF
7944
7945fi
7946
7947done
7948
7949
7950for ac_header in signal.h
7951do
7952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953if eval "test \"\${$as_ac_Header+set}\" = set"; then
7954 echo "$as_me:$LINENO: checking for $ac_header" >&5
7955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7956if eval "test \"\${$as_ac_Header+set}\" = set"; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7958fi
7959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7961else
7962 # Is the header compilable?
7963echo "$as_me:$LINENO: checking $ac_header usability" >&5
7964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7965cat >conftest.$ac_ext <<_ACEOF
7966/* confdefs.h. */
7967_ACEOF
7968cat confdefs.h >>conftest.$ac_ext
7969cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
7970/* end confdefs.h. */
7971$ac_includes_default
7972#include <$ac_header>
7973_ACEOF
7974rm -f conftest.$ac_objext
7975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7976 (eval $ac_compile) 2>conftest.er1
7977 ac_status=$?
7978 grep -v '^ *+' conftest.er1 >conftest.err
7979 rm -f conftest.er1
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
b4e70030
JB
7983 { ac_try='test -z "$ac_c_werror_flag"
7984 || test ! -s conftest.err'
bec39cab
AC
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 (eval $ac_try) 2>&5
7987 ac_status=$?
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; } &&
7990 { ac_try='test -s conftest.$ac_objext'
7991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 (eval $ac_try) 2>&5
7993 ac_status=$?
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; }; then
7996 ac_header_compiler=yes
7997else
7998 echo "$as_me: failed program was:" >&5
7999sed 's/^/| /' conftest.$ac_ext >&5
8000
b4e70030 8001ac_header_compiler=no
bec39cab
AC
8002fi
8003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8005echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8006
8007# Is the header present?
b4e70030
JB
8008echo "$as_me:$LINENO: checking $ac_header presence" >&5
8009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8010cat >conftest.$ac_ext <<_ACEOF
8011/* confdefs.h. */
8012_ACEOF
8013cat confdefs.h >>conftest.$ac_ext
8014cat >>conftest.$ac_ext <<_ACEOF
8015/* end confdefs.h. */
8016#include <$ac_header>
8017_ACEOF
8018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } >/dev/null; then
8026 if test -s conftest.err; then
8027 ac_cpp_err=$ac_c_preproc_warn_flag
8028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8029 else
8030 ac_cpp_err=
8031 fi
9a156167 8032else
bec39cab 8033 ac_cpp_err=yes
9a156167 8034fi
bec39cab
AC
8035if test -z "$ac_cpp_err"; then
8036 ac_header_preproc=yes
8037else
8038 echo "$as_me: failed program was:" >&5
8039sed 's/^/| /' conftest.$ac_ext >&5
9a156167 8040
bec39cab 8041 ac_header_preproc=no
9a156167 8042fi
bec39cab 8043rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8045echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 8046
bec39cab
AC
8047# So? What about this header?
8048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8049 yes:no: )
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8054 ac_header_preproc=yes
8055 ;;
8056 no:yes:* )
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8069 (
8070 cat <<\_ASBOX
8071## ------------------------------------------ ##
8072## Report this to the AC_PACKAGE_NAME lists. ##
8073## ------------------------------------------ ##
8074_ASBOX
8075 ) |
8076 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8077 ;;
8078esac
b4e70030
JB
8079echo "$as_me:$LINENO: checking for $ac_header" >&5
8080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8081if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8082 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8083else
bec39cab 8084 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8085fi
b4e70030
JB
8086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
8088
8089fi
bec39cab
AC
8090if test `eval echo '${'$as_ac_Header'}'` = yes; then
8091 cat >>confdefs.h <<_ACEOF
8092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8093_ACEOF
9a156167 8094
bec39cab
AC
8095fi
8096
8097done
9a156167 8098
c890192f 8099
bec39cab
AC
8100for ac_header in stddef.h
8101do
8102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8103if eval "test \"\${$as_ac_Header+set}\" = set"; then
8104 echo "$as_me:$LINENO: checking for $ac_header" >&5
8105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8106if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108fi
b4e70030
JB
8109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8111else
8112 # Is the header compilable?
b4e70030
JB
8113echo "$as_me:$LINENO: checking $ac_header usability" >&5
8114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8115cat >conftest.$ac_ext <<_ACEOF
8116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
8121$ac_includes_default
8122#include <$ac_header>
8123_ACEOF
8124rm -f conftest.$ac_objext
8125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
b4e70030
JB
8133 { ac_try='test -z "$ac_c_werror_flag"
8134 || test ! -s conftest.err'
bec39cab
AC
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_header_compiler=yes
8147else
8148 echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
b4e70030 8151ac_header_compiler=no
bec39cab
AC
8152fi
8153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8154echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8156
8157# Is the header present?
b4e70030
JB
8158echo "$as_me:$LINENO: checking $ac_header presence" >&5
8159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8160cat >conftest.$ac_ext <<_ACEOF
8161/* confdefs.h. */
8162_ACEOF
8163cat confdefs.h >>conftest.$ac_ext
8164cat >>conftest.$ac_ext <<_ACEOF
8165/* end confdefs.h. */
8166#include <$ac_header>
8167_ACEOF
8168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } >/dev/null; then
8176 if test -s conftest.err; then
8177 ac_cpp_err=$ac_c_preproc_warn_flag
8178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8179 else
8180 ac_cpp_err=
8181 fi
c890192f 8182else
bec39cab
AC
8183 ac_cpp_err=yes
8184fi
8185if test -z "$ac_cpp_err"; then
8186 ac_header_preproc=yes
c890192f 8187else
bec39cab
AC
8188 echo "$as_me: failed program was:" >&5
8189sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 ac_header_preproc=no
c890192f 8192fi
bec39cab 8193rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8196
8197# So? What about this header?
8198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8199 yes:no: )
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8204 ac_header_preproc=yes
8205 ;;
8206 no:yes:* )
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8214echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8219 (
8220 cat <<\_ASBOX
8221## ------------------------------------------ ##
8222## Report this to the AC_PACKAGE_NAME lists. ##
8223## ------------------------------------------ ##
8224_ASBOX
8225 ) |
8226 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8227 ;;
8228esac
b4e70030
JB
8229echo "$as_me:$LINENO: checking for $ac_header" >&5
8230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8231if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8232 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 8233else
bec39cab 8234 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 8235fi
b4e70030
JB
8236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8238
c890192f 8239fi
bec39cab
AC
8240if test `eval echo '${'$as_ac_Header'}'` = yes; then
8241 cat >>confdefs.h <<_ACEOF
8242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8243_ACEOF
c890192f 8244
c890192f
MK
8245fi
8246
bec39cab 8247done
9a156167 8248
bec39cab
AC
8249
8250for ac_header in stdlib.h
8251do
8252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8253if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254 echo "$as_me:$LINENO: checking for $ac_header" >&5
8255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8256if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258fi
b4e70030
JB
8259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8261else
8262 # Is the header compilable?
b4e70030
JB
8263echo "$as_me:$LINENO: checking $ac_header usability" >&5
8264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8265cat >conftest.$ac_ext <<_ACEOF
8266/* confdefs.h. */
8267_ACEOF
8268cat confdefs.h >>conftest.$ac_ext
8269cat >>conftest.$ac_ext <<_ACEOF
8270/* end confdefs.h. */
8271$ac_includes_default
8272#include <$ac_header>
8273_ACEOF
8274rm -f conftest.$ac_objext
8275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8276 (eval $ac_compile) 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
b4e70030
JB
8283 { ac_try='test -z "$ac_c_werror_flag"
8284 || test ! -s conftest.err'
bec39cab
AC
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try='test -s conftest.$ac_objext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_header_compiler=yes
8297else
8298 echo "$as_me: failed program was:" >&5
8299sed 's/^/| /' conftest.$ac_ext >&5
8300
b4e70030 8301ac_header_compiler=no
bec39cab
AC
8302fi
8303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8305echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8306
8307# Is the header present?
b4e70030
JB
8308echo "$as_me:$LINENO: checking $ac_header presence" >&5
8309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8310cat >conftest.$ac_ext <<_ACEOF
8311/* confdefs.h. */
8312_ACEOF
8313cat confdefs.h >>conftest.$ac_ext
8314cat >>conftest.$ac_ext <<_ACEOF
8315/* end confdefs.h. */
8316#include <$ac_header>
8317_ACEOF
8318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } >/dev/null; then
8326 if test -s conftest.err; then
8327 ac_cpp_err=$ac_c_preproc_warn_flag
8328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8329 else
8330 ac_cpp_err=
8331 fi
9a156167 8332else
bec39cab
AC
8333 ac_cpp_err=yes
8334fi
8335if test -z "$ac_cpp_err"; then
8336 ac_header_preproc=yes
9a156167 8337else
bec39cab
AC
8338 echo "$as_me: failed program was:" >&5
8339sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 ac_header_preproc=no
9a156167 8342fi
bec39cab 8343rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8346
8347# So? What about this header?
8348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8349 yes:no: )
8350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8354 ac_header_preproc=yes
8355 ;;
8356 no:yes:* )
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8369 (
8370 cat <<\_ASBOX
8371## ------------------------------------------ ##
8372## Report this to the AC_PACKAGE_NAME lists. ##
8373## ------------------------------------------ ##
8374_ASBOX
8375 ) |
8376 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8377 ;;
8378esac
b4e70030
JB
8379echo "$as_me:$LINENO: checking for $ac_header" >&5
8380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8382 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8383else
bec39cab 8384 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8385fi
b4e70030
JB
8386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8388
9a156167 8389fi
bec39cab
AC
8390if test `eval echo '${'$as_ac_Header'}'` = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8393_ACEOF
9a156167 8394
9a156167
MK
8395fi
8396
bec39cab
AC
8397done
8398
06825bd1 8399
bec39cab
AC
8400for ac_header in stdint.h
8401do
8402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8403if eval "test \"\${$as_ac_Header+set}\" = set"; then
8404 echo "$as_me:$LINENO: checking for $ac_header" >&5
8405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8406if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408fi
b4e70030
JB
8409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8411else
8412 # Is the header compilable?
b4e70030
JB
8413echo "$as_me:$LINENO: checking $ac_header usability" >&5
8414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8415cat >conftest.$ac_ext <<_ACEOF
8416/* confdefs.h. */
8417_ACEOF
8418cat confdefs.h >>conftest.$ac_ext
8419cat >>conftest.$ac_ext <<_ACEOF
8420/* end confdefs.h. */
8421$ac_includes_default
8422#include <$ac_header>
8423_ACEOF
8424rm -f conftest.$ac_objext
8425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8426 (eval $ac_compile) 2>conftest.er1
8427 ac_status=$?
8428 grep -v '^ *+' conftest.er1 >conftest.err
8429 rm -f conftest.er1
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } &&
b4e70030
JB
8433 { ac_try='test -z "$ac_c_werror_flag"
8434 || test ! -s conftest.err'
bec39cab
AC
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 (eval $ac_try) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; } &&
8440 { ac_try='test -s conftest.$ac_objext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 ac_header_compiler=yes
8447else
8448 echo "$as_me: failed program was:" >&5
8449sed 's/^/| /' conftest.$ac_ext >&5
8450
b4e70030 8451ac_header_compiler=no
bec39cab
AC
8452fi
8453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8455echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8456
8457# Is the header present?
b4e70030
JB
8458echo "$as_me:$LINENO: checking $ac_header presence" >&5
8459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8460cat >conftest.$ac_ext <<_ACEOF
8461/* confdefs.h. */
8462_ACEOF
8463cat confdefs.h >>conftest.$ac_ext
8464cat >>conftest.$ac_ext <<_ACEOF
8465/* end confdefs.h. */
8466#include <$ac_header>
8467_ACEOF
8468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } >/dev/null; then
8476 if test -s conftest.err; then
8477 ac_cpp_err=$ac_c_preproc_warn_flag
8478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8479 else
8480 ac_cpp_err=
8481 fi
06825bd1 8482else
bec39cab
AC
8483 ac_cpp_err=yes
8484fi
8485if test -z "$ac_cpp_err"; then
8486 ac_header_preproc=yes
06825bd1 8487else
bec39cab
AC
8488 echo "$as_me: failed program was:" >&5
8489sed 's/^/| /' conftest.$ac_ext >&5
8490
8491 ac_header_preproc=no
06825bd1 8492fi
bec39cab 8493rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8495echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8496
8497# So? What about this header?
8498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8499 yes:no: )
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8504 ac_header_preproc=yes
8505 ;;
8506 no:yes:* )
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8519 (
8520 cat <<\_ASBOX
8521## ------------------------------------------ ##
8522## Report this to the AC_PACKAGE_NAME lists. ##
8523## ------------------------------------------ ##
8524_ASBOX
8525 ) |
8526 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8527 ;;
8528esac
b4e70030
JB
8529echo "$as_me:$LINENO: checking for $ac_header" >&5
8530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8531if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8532 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8533else
bec39cab 8534 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8535fi
b4e70030
JB
8536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8538
06825bd1 8539fi
bec39cab
AC
8540if test `eval echo '${'$as_ac_Header'}'` = yes; then
8541 cat >>confdefs.h <<_ACEOF
8542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8543_ACEOF
06825bd1 8544
06825bd1 8545fi
4f0be353 8546
bec39cab 8547done
4f0be353 8548
06825bd1 8549
06825bd1 8550
bec39cab
AC
8551
8552for ac_header in string.h memory.h strings.h
8553do
8554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8555if eval "test \"\${$as_ac_Header+set}\" = set"; then
8556 echo "$as_me:$LINENO: checking for $ac_header" >&5
8557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8558if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560fi
b4e70030
JB
8561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8563else
8564 # Is the header compilable?
b4e70030
JB
8565echo "$as_me:$LINENO: checking $ac_header usability" >&5
8566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8567cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h. */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h. */
8573$ac_includes_default
8574#include <$ac_header>
8575_ACEOF
8576rm -f conftest.$ac_objext
8577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8578 (eval $ac_compile) 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
b4e70030
JB
8585 { ac_try='test -z "$ac_c_werror_flag"
8586 || test ! -s conftest.err'
bec39cab
AC
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest.$ac_objext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_header_compiler=yes
8599else
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
b4e70030 8603ac_header_compiler=no
bec39cab
AC
8604fi
8605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8606echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8607echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8608
8609# Is the header present?
b4e70030
JB
8610echo "$as_me:$LINENO: checking $ac_header presence" >&5
8611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8612cat >conftest.$ac_ext <<_ACEOF
8613/* confdefs.h. */
8614_ACEOF
8615cat confdefs.h >>conftest.$ac_ext
8616cat >>conftest.$ac_ext <<_ACEOF
8617/* end confdefs.h. */
8618#include <$ac_header>
8619_ACEOF
8620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } >/dev/null; then
8628 if test -s conftest.err; then
8629 ac_cpp_err=$ac_c_preproc_warn_flag
8630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8631 else
8632 ac_cpp_err=
8633 fi
06825bd1 8634else
bec39cab
AC
8635 ac_cpp_err=yes
8636fi
8637if test -z "$ac_cpp_err"; then
8638 ac_header_preproc=yes
06825bd1 8639else
bec39cab
AC
8640 echo "$as_me: failed program was:" >&5
8641sed 's/^/| /' conftest.$ac_ext >&5
8642
8643 ac_header_preproc=no
06825bd1 8644fi
bec39cab 8645rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8646echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8647echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8648
8649# So? What about this header?
8650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8651 yes:no: )
8652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8655echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8656 ac_header_preproc=yes
8657 ;;
8658 no:yes:* )
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8660echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8662echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8664echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8666echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8670echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8671 (
8672 cat <<\_ASBOX
8673## ------------------------------------------ ##
8674## Report this to the AC_PACKAGE_NAME lists. ##
8675## ------------------------------------------ ##
8676_ASBOX
8677 ) |
8678 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8679 ;;
8680esac
b4e70030
JB
8681echo "$as_me:$LINENO: checking for $ac_header" >&5
8682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8683if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8687fi
b4e70030
JB
8688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8690
06825bd1 8691fi
bec39cab
AC
8692if test `eval echo '${'$as_ac_Header'}'` = yes; then
8693 cat >>confdefs.h <<_ACEOF
8694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8695_ACEOF
06825bd1 8696
06825bd1
MK
8697fi
8698
bec39cab 8699done
5ee754fc 8700
bec39cab
AC
8701
8702for ac_header in sys/fault.h
5ee754fc 8703do
bec39cab 8704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8705if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706 echo "$as_me:$LINENO: checking for $ac_header" >&5
8707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8708if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710fi
b4e70030
JB
8711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8713else
8714 # Is the header compilable?
b4e70030
JB
8715echo "$as_me:$LINENO: checking $ac_header usability" >&5
8716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8717cat >conftest.$ac_ext <<_ACEOF
8718/* confdefs.h. */
8719_ACEOF
8720cat confdefs.h >>conftest.$ac_ext
8721cat >>conftest.$ac_ext <<_ACEOF
8722/* end confdefs.h. */
8723$ac_includes_default
8724#include <$ac_header>
8725_ACEOF
8726rm -f conftest.$ac_objext
8727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8728 (eval $ac_compile) 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
b4e70030
JB
8735 { ac_try='test -z "$ac_c_werror_flag"
8736 || test ! -s conftest.err'
bec39cab
AC
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 (eval $ac_try) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; } &&
8742 { ac_try='test -s conftest.$ac_objext'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 (eval $ac_try) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_header_compiler=yes
8749else
8750 echo "$as_me: failed program was:" >&5
8751sed 's/^/| /' conftest.$ac_ext >&5
8752
b4e70030 8753ac_header_compiler=no
bec39cab
AC
8754fi
8755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8757echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8758
8759# Is the header present?
b4e70030
JB
8760echo "$as_me:$LINENO: checking $ac_header presence" >&5
8761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8762cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h. */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h. */
8768#include <$ac_header>
8769_ACEOF
8770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } >/dev/null; then
8778 if test -s conftest.err; then
8779 ac_cpp_err=$ac_c_preproc_warn_flag
8780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8781 else
8782 ac_cpp_err=
8783 fi
5ee754fc 8784else
bec39cab 8785 ac_cpp_err=yes
5ee754fc 8786fi
bec39cab
AC
8787if test -z "$ac_cpp_err"; then
8788 ac_header_preproc=yes
8789else
8790 echo "$as_me: failed program was:" >&5
8791sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8792
bec39cab 8793 ac_header_preproc=no
5ee754fc 8794fi
bec39cab 8795rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8797echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8798
8799# So? What about this header?
8800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8801 yes:no: )
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8806 ac_header_preproc=yes
8807 ;;
8808 no:yes:* )
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8812echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8816echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8821 (
8822 cat <<\_ASBOX
8823## ------------------------------------------ ##
8824## Report this to the AC_PACKAGE_NAME lists. ##
8825## ------------------------------------------ ##
8826_ASBOX
8827 ) |
8828 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8829 ;;
8830esac
b4e70030
JB
8831echo "$as_me:$LINENO: checking for $ac_header" >&5
8832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8833if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8834 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8835else
bec39cab 8836 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8837fi
b4e70030
JB
8838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8840
5ee754fc 8841fi
bec39cab
AC
8842if test `eval echo '${'$as_ac_Header'}'` = yes; then
8843 cat >>confdefs.h <<_ACEOF
8844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8845_ACEOF
c906108c 8846
5ee754fc 8847fi
bec39cab
AC
8848
8849done
8850
8851
8852for ac_header in sys/file.h
8853do
8854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8855if eval "test \"\${$as_ac_Header+set}\" = set"; then
8856 echo "$as_me:$LINENO: checking for $ac_header" >&5
8857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8858if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8860fi
b4e70030
JB
8861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8862echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8863else
8864 # Is the header compilable?
b4e70030
JB
8865echo "$as_me:$LINENO: checking $ac_header usability" >&5
8866echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8867cat >conftest.$ac_ext <<_ACEOF
8868/* confdefs.h. */
8869_ACEOF
8870cat confdefs.h >>conftest.$ac_ext
8871cat >>conftest.$ac_ext <<_ACEOF
8872/* end confdefs.h. */
8873$ac_includes_default
8874#include <$ac_header>
8875_ACEOF
8876rm -f conftest.$ac_objext
8877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
b4e70030
JB
8885 { ac_try='test -z "$ac_c_werror_flag"
8886 || test ! -s conftest.err'
bec39cab
AC
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_header_compiler=yes
8899else
8900 echo "$as_me: failed program was:" >&5
8901sed 's/^/| /' conftest.$ac_ext >&5
8902
b4e70030 8903ac_header_compiler=no
bec39cab
AC
8904fi
8905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8906echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8907echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8908
8909# Is the header present?
b4e70030
JB
8910echo "$as_me:$LINENO: checking $ac_header presence" >&5
8911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8912cat >conftest.$ac_ext <<_ACEOF
8913/* confdefs.h. */
8914_ACEOF
8915cat confdefs.h >>conftest.$ac_ext
8916cat >>conftest.$ac_ext <<_ACEOF
8917/* end confdefs.h. */
8918#include <$ac_header>
8919_ACEOF
8920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } >/dev/null; then
8928 if test -s conftest.err; then
8929 ac_cpp_err=$ac_c_preproc_warn_flag
8930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8931 else
8932 ac_cpp_err=
8933 fi
5ee754fc 8934else
bec39cab 8935 ac_cpp_err=yes
5ee754fc 8936fi
bec39cab
AC
8937if test -z "$ac_cpp_err"; then
8938 ac_header_preproc=yes
8939else
8940 echo "$as_me: failed program was:" >&5
8941sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8942
bec39cab 8943 ac_header_preproc=no
5ee754fc 8944fi
bec39cab 8945rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8946echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8947echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8948
bec39cab
AC
8949# So? What about this header?
8950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8951 yes:no: )
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8953echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8955echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8956 ac_header_preproc=yes
8957 ;;
8958 no:yes:* )
8959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8960echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8962echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8964echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8966echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8968echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8970echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8971 (
8972 cat <<\_ASBOX
8973## ------------------------------------------ ##
8974## Report this to the AC_PACKAGE_NAME lists. ##
8975## ------------------------------------------ ##
8976_ASBOX
8977 ) |
8978 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8979 ;;
8980esac
b4e70030
JB
8981echo "$as_me:$LINENO: checking for $ac_header" >&5
8982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8983if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8984 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8985else
bec39cab
AC
8986 eval "$as_ac_Header=\$ac_header_preproc"
8987fi
b4e70030
JB
8988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8990
bec39cab
AC
8991fi
8992if test `eval echo '${'$as_ac_Header'}'` = yes; then
8993 cat >>confdefs.h <<_ACEOF
8994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8995_ACEOF
5ee754fc 8996
bec39cab 8997fi
5ee754fc 8998
bec39cab 8999done
5ee754fc 9000
5ee754fc 9001
bec39cab
AC
9002for ac_header in sys/filio.h
9003do
9004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9005if eval "test \"\${$as_ac_Header+set}\" = set"; then
9006 echo "$as_me:$LINENO: checking for $ac_header" >&5
9007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9008if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9010fi
b4e70030
JB
9011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9013else
9014 # Is the header compilable?
b4e70030
JB
9015echo "$as_me:$LINENO: checking $ac_header usability" >&5
9016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9017cat >conftest.$ac_ext <<_ACEOF
9018/* confdefs.h. */
9019_ACEOF
9020cat confdefs.h >>conftest.$ac_ext
9021cat >>conftest.$ac_ext <<_ACEOF
9022/* end confdefs.h. */
9023$ac_includes_default
9024#include <$ac_header>
9025_ACEOF
9026rm -f conftest.$ac_objext
9027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
b4e70030
JB
9035 { ac_try='test -z "$ac_c_werror_flag"
9036 || test ! -s conftest.err'
bec39cab
AC
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest.$ac_objext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 ac_header_compiler=yes
9049else
9050 echo "$as_me: failed program was:" >&5
9051sed 's/^/| /' conftest.$ac_ext >&5
9052
b4e70030 9053ac_header_compiler=no
bec39cab
AC
9054fi
9055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9056echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9057echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9058
9059# Is the header present?
b4e70030
JB
9060echo "$as_me:$LINENO: checking $ac_header presence" >&5
9061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9062cat >conftest.$ac_ext <<_ACEOF
9063/* confdefs.h. */
9064_ACEOF
9065cat confdefs.h >>conftest.$ac_ext
9066cat >>conftest.$ac_ext <<_ACEOF
9067/* end confdefs.h. */
9068#include <$ac_header>
9069_ACEOF
9070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } >/dev/null; then
9078 if test -s conftest.err; then
9079 ac_cpp_err=$ac_c_preproc_warn_flag
9080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9081 else
9082 ac_cpp_err=
9083 fi
5ee754fc 9084else
bec39cab 9085 ac_cpp_err=yes
5ee754fc 9086fi
bec39cab
AC
9087if test -z "$ac_cpp_err"; then
9088 ac_header_preproc=yes
9089else
9090 echo "$as_me: failed program was:" >&5
9091sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9092
bec39cab 9093 ac_header_preproc=no
5ee754fc 9094fi
bec39cab 9095rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9096echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9097echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9098
bec39cab
AC
9099# So? What about this header?
9100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9101 yes:no: )
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9103echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9105echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9106 ac_header_preproc=yes
9107 ;;
9108 no:yes:* )
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9110echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9112echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9114echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9116echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9118echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9120echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9121 (
9122 cat <<\_ASBOX
9123## ------------------------------------------ ##
9124## Report this to the AC_PACKAGE_NAME lists. ##
9125## ------------------------------------------ ##
9126_ASBOX
9127 ) |
9128 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9129 ;;
9130esac
b4e70030
JB
9131echo "$as_me:$LINENO: checking for $ac_header" >&5
9132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9133if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9134 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9135else
bec39cab 9136 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9137fi
b4e70030
JB
9138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9140
5ee754fc 9141fi
bec39cab
AC
9142if test `eval echo '${'$as_ac_Header'}'` = yes; then
9143 cat >>confdefs.h <<_ACEOF
9144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9145_ACEOF
5ee754fc
MK
9146
9147fi
9148
bec39cab
AC
9149done
9150
9151
9152for ac_header in sys/ioctl.h
9153do
9154as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9155if eval "test \"\${$as_ac_Header+set}\" = set"; then
9156 echo "$as_me:$LINENO: checking for $ac_header" >&5
9157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9158if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160fi
b4e70030
JB
9161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9163else
9164 # Is the header compilable?
b4e70030
JB
9165echo "$as_me:$LINENO: checking $ac_header usability" >&5
9166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9167cat >conftest.$ac_ext <<_ACEOF
9168/* confdefs.h. */
9169_ACEOF
9170cat confdefs.h >>conftest.$ac_ext
9171cat >>conftest.$ac_ext <<_ACEOF
9172/* end confdefs.h. */
9173$ac_includes_default
9174#include <$ac_header>
9175_ACEOF
9176rm -f conftest.$ac_objext
9177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9178 (eval $ac_compile) 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
b4e70030
JB
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
bec39cab
AC
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_header_compiler=yes
9199else
9200 echo "$as_me: failed program was:" >&5
9201sed 's/^/| /' conftest.$ac_ext >&5
9202
b4e70030 9203ac_header_compiler=no
bec39cab
AC
9204fi
9205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9207echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9208
9209# Is the header present?
b4e70030
JB
9210echo "$as_me:$LINENO: checking $ac_header presence" >&5
9211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9212cat >conftest.$ac_ext <<_ACEOF
9213/* confdefs.h. */
9214_ACEOF
9215cat confdefs.h >>conftest.$ac_ext
9216cat >>conftest.$ac_ext <<_ACEOF
9217/* end confdefs.h. */
9218#include <$ac_header>
9219_ACEOF
9220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } >/dev/null; then
9228 if test -s conftest.err; then
9229 ac_cpp_err=$ac_c_preproc_warn_flag
9230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9231 else
9232 ac_cpp_err=
9233 fi
5ee754fc 9234else
bec39cab 9235 ac_cpp_err=yes
5ee754fc 9236fi
bec39cab
AC
9237if test -z "$ac_cpp_err"; then
9238 ac_header_preproc=yes
9239else
9240 echo "$as_me: failed program was:" >&5
9241sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9242
bec39cab 9243 ac_header_preproc=no
5ee754fc 9244fi
bec39cab 9245rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9247echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9248
bec39cab
AC
9249# So? What about this header?
9250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9251 yes:no: )
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9256 ac_header_preproc=yes
9257 ;;
9258 no:yes:* )
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9271 (
9272 cat <<\_ASBOX
9273## ------------------------------------------ ##
9274## Report this to the AC_PACKAGE_NAME lists. ##
9275## ------------------------------------------ ##
9276_ASBOX
9277 ) |
9278 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9279 ;;
9280esac
b4e70030
JB
9281echo "$as_me:$LINENO: checking for $ac_header" >&5
9282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9283if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 9285else
bec39cab 9286 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9287fi
b4e70030
JB
9288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
9290
9291fi
bec39cab
AC
9292if test `eval echo '${'$as_ac_Header'}'` = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9295_ACEOF
9296
5ee754fc
MK
9297fi
9298
bec39cab 9299done
5ee754fc 9300
5ee754fc 9301
bec39cab 9302for ac_header in sys/param.h
5ee754fc 9303do
bec39cab 9304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9305if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306 echo "$as_me:$LINENO: checking for $ac_header" >&5
9307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9308if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9310fi
b4e70030
JB
9311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9313else
9314 # Is the header compilable?
b4e70030
JB
9315echo "$as_me:$LINENO: checking $ac_header usability" >&5
9316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9317cat >conftest.$ac_ext <<_ACEOF
9318/* confdefs.h. */
9319_ACEOF
9320cat confdefs.h >>conftest.$ac_ext
9321cat >>conftest.$ac_ext <<_ACEOF
9322/* end confdefs.h. */
9323$ac_includes_default
9324#include <$ac_header>
9325_ACEOF
9326rm -f conftest.$ac_objext
9327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9328 (eval $ac_compile) 2>conftest.er1
9329 ac_status=$?
9330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
b4e70030
JB
9335 { ac_try='test -z "$ac_c_werror_flag"
9336 || test ! -s conftest.err'
bec39cab
AC
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; } &&
9342 { ac_try='test -s conftest.$ac_objext'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_header_compiler=yes
9349else
9350 echo "$as_me: failed program was:" >&5
9351sed 's/^/| /' conftest.$ac_ext >&5
9352
b4e70030 9353ac_header_compiler=no
bec39cab
AC
9354fi
9355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9357echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9358
9359# Is the header present?
b4e70030
JB
9360echo "$as_me:$LINENO: checking $ac_header presence" >&5
9361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9362cat >conftest.$ac_ext <<_ACEOF
9363/* confdefs.h. */
9364_ACEOF
9365cat confdefs.h >>conftest.$ac_ext
9366cat >>conftest.$ac_ext <<_ACEOF
9367/* end confdefs.h. */
9368#include <$ac_header>
9369_ACEOF
9370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } >/dev/null; then
9378 if test -s conftest.err; then
9379 ac_cpp_err=$ac_c_preproc_warn_flag
9380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9381 else
9382 ac_cpp_err=
9383 fi
5ee754fc 9384else
bec39cab 9385 ac_cpp_err=yes
5ee754fc 9386fi
bec39cab
AC
9387if test -z "$ac_cpp_err"; then
9388 ac_header_preproc=yes
9389else
9390 echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9392
bec39cab 9393 ac_header_preproc=no
5ee754fc 9394fi
bec39cab 9395rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9397echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9398
9399# So? What about this header?
9400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9401 yes:no: )
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9403echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9405echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9406 ac_header_preproc=yes
9407 ;;
9408 no:yes:* )
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9410echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9412echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9414echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9416echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9420echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9421 (
9422 cat <<\_ASBOX
9423## ------------------------------------------ ##
9424## Report this to the AC_PACKAGE_NAME lists. ##
9425## ------------------------------------------ ##
9426_ASBOX
9427 ) |
9428 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9429 ;;
9430esac
b4e70030
JB
9431echo "$as_me:$LINENO: checking for $ac_header" >&5
9432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9433if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9434 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9435else
bec39cab 9436 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9437fi
b4e70030
JB
9438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9440
5ee754fc 9441fi
bec39cab
AC
9442if test `eval echo '${'$as_ac_Header'}'` = yes; then
9443 cat >>confdefs.h <<_ACEOF
9444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9445_ACEOF
9446
5ee754fc 9447fi
bec39cab 9448
5ee754fc
MK
9449done
9450
bec39cab 9451
7eb368b3
NR
9452for ac_header in sys/resource.h
9453do
9454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9455if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456 echo "$as_me:$LINENO: checking for $ac_header" >&5
9457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9458if eval "test \"\${$as_ac_Header+set}\" = set"; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460fi
9461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9463else
9464 # Is the header compilable?
9465echo "$as_me:$LINENO: checking $ac_header usability" >&5
9466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9467cat >conftest.$ac_ext <<_ACEOF
9468/* confdefs.h. */
9469_ACEOF
9470cat confdefs.h >>conftest.$ac_ext
9471cat >>conftest.$ac_ext <<_ACEOF
9472/* end confdefs.h. */
9473$ac_includes_default
9474#include <$ac_header>
9475_ACEOF
9476rm -f conftest.$ac_objext
9477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9478 (eval $ac_compile) 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try='test -s conftest.$ac_objext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_header_compiler=yes
9499else
9500 echo "$as_me: failed program was:" >&5
9501sed 's/^/| /' conftest.$ac_ext >&5
9502
9503ac_header_compiler=no
9504fi
9505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9506echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9507echo "${ECHO_T}$ac_header_compiler" >&6
9508
9509# Is the header present?
9510echo "$as_me:$LINENO: checking $ac_header presence" >&5
9511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9512cat >conftest.$ac_ext <<_ACEOF
9513/* confdefs.h. */
9514_ACEOF
9515cat confdefs.h >>conftest.$ac_ext
9516cat >>conftest.$ac_ext <<_ACEOF
9517/* end confdefs.h. */
9518#include <$ac_header>
9519_ACEOF
9520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } >/dev/null; then
9528 if test -s conftest.err; then
9529 ac_cpp_err=$ac_c_preproc_warn_flag
9530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9531 else
9532 ac_cpp_err=
9533 fi
9534else
9535 ac_cpp_err=yes
9536fi
9537if test -z "$ac_cpp_err"; then
9538 ac_header_preproc=yes
9539else
9540 echo "$as_me: failed program was:" >&5
9541sed 's/^/| /' conftest.$ac_ext >&5
9542
9543 ac_header_preproc=no
9544fi
9545rm -f conftest.err conftest.$ac_ext
9546echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9547echo "${ECHO_T}$ac_header_preproc" >&6
9548
9549# So? What about this header?
9550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9551 yes:no: )
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9555echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9556 ac_header_preproc=yes
9557 ;;
9558 no:yes:* )
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9560echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9562echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9564echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9566echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9570echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9571 (
9572 cat <<\_ASBOX
9573## ------------------------------------------ ##
9574## Report this to the AC_PACKAGE_NAME lists. ##
9575## ------------------------------------------ ##
9576_ASBOX
9577 ) |
9578 sed "s/^/$as_me: WARNING: /" >&2
9579 ;;
9580esac
9581echo "$as_me:$LINENO: checking for $ac_header" >&5
9582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9583if eval "test \"\${$as_ac_Header+set}\" = set"; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585else
9586 eval "$as_ac_Header=\$ac_header_preproc"
9587fi
9588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9590
9591fi
9592if test `eval echo '${'$as_ac_Header'}'` = yes; then
9593 cat >>confdefs.h <<_ACEOF
9594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9595_ACEOF
9596
9597fi
9598
9599done
9600
9601
bec39cab 9602for ac_header in sys/proc.h
5ee754fc 9603do
bec39cab 9604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9605echo "$as_me:$LINENO: checking for $ac_header" >&5
9606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9607if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9608 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9609else
7cb9022a 9610 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9611/* confdefs.h. */
9612_ACEOF
9613cat confdefs.h >>conftest.$ac_ext
9614cat >>conftest.$ac_ext <<_ACEOF
9615/* end confdefs.h. */
7cb9022a
MK
9616#if HAVE_SYS_PARAM_H
9617# include <sys/param.h>
9618#endif
9619
9620
bec39cab
AC
9621#include <$ac_header>
9622_ACEOF
9623rm -f conftest.$ac_objext
9624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9625 (eval $ac_compile) 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
b4e70030
JB
9632 { ac_try='test -z "$ac_c_werror_flag"
9633 || test ! -s conftest.err'
bec39cab
AC
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } &&
9639 { ac_try='test -s conftest.$ac_objext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
7cb9022a 9645 eval "$as_ac_Header=yes"
bec39cab
AC
9646else
9647 echo "$as_me: failed program was:" >&5
9648sed 's/^/| /' conftest.$ac_ext >&5
9649
b4e70030 9650eval "$as_ac_Header=no"
bec39cab
AC
9651fi
9652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9653fi
b4e70030
JB
9654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9656if test `eval echo '${'$as_ac_Header'}'` = yes; then
9657 cat >>confdefs.h <<_ACEOF
9658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9659_ACEOF
9660
5ee754fc 9661fi
bec39cab 9662
5ee754fc
MK
9663done
9664
bec39cab
AC
9665
9666for ac_header in sys/procfs.h
5ee754fc 9667do
bec39cab 9668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9669if eval "test \"\${$as_ac_Header+set}\" = set"; then
9670 echo "$as_me:$LINENO: checking for $ac_header" >&5
9671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9672if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674fi
b4e70030
JB
9675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9677else
9678 # Is the header compilable?
b4e70030
JB
9679echo "$as_me:$LINENO: checking $ac_header usability" >&5
9680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9681cat >conftest.$ac_ext <<_ACEOF
9682/* confdefs.h. */
9683_ACEOF
9684cat confdefs.h >>conftest.$ac_ext
9685cat >>conftest.$ac_ext <<_ACEOF
9686/* end confdefs.h. */
9687$ac_includes_default
9688#include <$ac_header>
9689_ACEOF
9690rm -f conftest.$ac_objext
9691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692 (eval $ac_compile) 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
b4e70030
JB
9699 { ac_try='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
bec39cab
AC
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_header_compiler=yes
9713else
9714 echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
9716
b4e70030 9717ac_header_compiler=no
bec39cab
AC
9718fi
9719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9722
9723# Is the header present?
b4e70030
JB
9724echo "$as_me:$LINENO: checking $ac_header presence" >&5
9725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9726cat >conftest.$ac_ext <<_ACEOF
9727/* confdefs.h. */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h. */
9732#include <$ac_header>
9733_ACEOF
9734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev/null; then
9742 if test -s conftest.err; then
9743 ac_cpp_err=$ac_c_preproc_warn_flag
9744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9745 else
9746 ac_cpp_err=
9747 fi
9748else
9749 ac_cpp_err=yes
5ee754fc 9750fi
bec39cab
AC
9751if test -z "$ac_cpp_err"; then
9752 ac_header_preproc=yes
5ee754fc 9753else
bec39cab
AC
9754 echo "$as_me: failed program was:" >&5
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_header_preproc=no
5ee754fc 9758fi
bec39cab 9759rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9761echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9762
bec39cab
AC
9763# So? What about this header?
9764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9765 yes:no: )
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9770 ac_header_preproc=yes
9771 ;;
9772 no:yes:* )
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9776echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9780echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9785 (
9786 cat <<\_ASBOX
9787## ------------------------------------------ ##
9788## Report this to the AC_PACKAGE_NAME lists. ##
9789## ------------------------------------------ ##
9790_ASBOX
9791 ) |
9792 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9793 ;;
9794esac
b4e70030
JB
9795echo "$as_me:$LINENO: checking for $ac_header" >&5
9796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9797if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799else
9800 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9801fi
b4e70030
JB
9802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9804
5ee754fc 9805fi
bec39cab
AC
9806if test `eval echo '${'$as_ac_Header'}'` = yes; then
9807 cat >>confdefs.h <<_ACEOF
9808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9809_ACEOF
9810
5ee754fc 9811fi
bec39cab 9812
5ee754fc
MK
9813done
9814
bec39cab
AC
9815
9816
9817for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9818do
bec39cab 9819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9820if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo "$as_me:$LINENO: checking for $ac_header" >&5
9822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9823if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825fi
b4e70030
JB
9826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9828else
9829 # Is the header compilable?
b4e70030
JB
9830echo "$as_me:$LINENO: checking $ac_header usability" >&5
9831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9832cat >conftest.$ac_ext <<_ACEOF
9833/* confdefs.h. */
9834_ACEOF
9835cat confdefs.h >>conftest.$ac_ext
9836cat >>conftest.$ac_ext <<_ACEOF
9837/* end confdefs.h. */
9838$ac_includes_default
9839#include <$ac_header>
9840_ACEOF
9841rm -f conftest.$ac_objext
9842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9843 (eval $ac_compile) 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
b4e70030
JB
9850 { ac_try='test -z "$ac_c_werror_flag"
9851 || test ! -s conftest.err'
bec39cab
AC
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest.$ac_objext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_header_compiler=yes
9864else
9865 echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
9867
b4e70030 9868ac_header_compiler=no
bec39cab
AC
9869fi
9870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9871echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9872echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9873
9874# Is the header present?
b4e70030
JB
9875echo "$as_me:$LINENO: checking $ac_header presence" >&5
9876echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9877cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h. */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h. */
9883#include <$ac_header>
9884_ACEOF
9885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } >/dev/null; then
9893 if test -s conftest.err; then
9894 ac_cpp_err=$ac_c_preproc_warn_flag
9895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9896 else
9897 ac_cpp_err=
9898 fi
9899else
9900 ac_cpp_err=yes
5ee754fc 9901fi
bec39cab
AC
9902if test -z "$ac_cpp_err"; then
9903 ac_header_preproc=yes
5ee754fc 9904else
bec39cab
AC
9905 echo "$as_me: failed program was:" >&5
9906sed 's/^/| /' conftest.$ac_ext >&5
9907
9908 ac_header_preproc=no
5ee754fc 9909fi
bec39cab 9910rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9913
bec39cab
AC
9914# So? What about this header?
9915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9916 yes:no: )
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9921 ac_header_preproc=yes
9922 ;;
9923 no:yes:* )
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9931echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9936 (
9937 cat <<\_ASBOX
9938## ------------------------------------------ ##
9939## Report this to the AC_PACKAGE_NAME lists. ##
9940## ------------------------------------------ ##
9941_ASBOX
9942 ) |
9943 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9944 ;;
9945esac
b4e70030
JB
9946echo "$as_me:$LINENO: checking for $ac_header" >&5
9947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9948if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950else
9951 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9952fi
b4e70030
JB
9953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9955
5ee754fc 9956fi
bec39cab
AC
9957if test `eval echo '${'$as_ac_Header'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9960_ACEOF
9961
5ee754fc 9962fi
bec39cab 9963
5ee754fc
MK
9964done
9965
bec39cab
AC
9966
9967
9968for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9969do
bec39cab 9970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9971if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972 echo "$as_me:$LINENO: checking for $ac_header" >&5
9973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9974if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976fi
b4e70030
JB
9977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9979else
9980 # Is the header compilable?
b4e70030
JB
9981echo "$as_me:$LINENO: checking $ac_header usability" >&5
9982echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9983cat >conftest.$ac_ext <<_ACEOF
9984/* confdefs.h. */
9985_ACEOF
9986cat confdefs.h >>conftest.$ac_ext
9987cat >>conftest.$ac_ext <<_ACEOF
9988/* end confdefs.h. */
9989$ac_includes_default
9990#include <$ac_header>
9991_ACEOF
9992rm -f conftest.$ac_objext
9993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
b4e70030
JB
10001 { ac_try='test -z "$ac_c_werror_flag"
10002 || test ! -s conftest.err'
bec39cab
AC
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; } &&
10008 { ac_try='test -s conftest.$ac_objext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_header_compiler=yes
10015else
10016 echo "$as_me: failed program was:" >&5
10017sed 's/^/| /' conftest.$ac_ext >&5
10018
b4e70030 10019ac_header_compiler=no
bec39cab
AC
10020fi
10021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10022echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10023echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10024
10025# Is the header present?
b4e70030
JB
10026echo "$as_me:$LINENO: checking $ac_header presence" >&5
10027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10028cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034#include <$ac_header>
10035_ACEOF
10036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10038 ac_status=$?
10039 grep -v '^ *+' conftest.er1 >conftest.err
10040 rm -f conftest.er1
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } >/dev/null; then
10044 if test -s conftest.err; then
10045 ac_cpp_err=$ac_c_preproc_warn_flag
10046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10047 else
10048 ac_cpp_err=
10049 fi
10050else
10051 ac_cpp_err=yes
5ee754fc 10052fi
bec39cab
AC
10053if test -z "$ac_cpp_err"; then
10054 ac_header_preproc=yes
5ee754fc 10055else
bec39cab
AC
10056 echo "$as_me: failed program was:" >&5
10057sed 's/^/| /' conftest.$ac_ext >&5
10058
10059 ac_header_preproc=no
5ee754fc 10060fi
bec39cab 10061rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10062echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10063echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10064
bec39cab
AC
10065# So? What about this header?
10066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10067 yes:no: )
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10069echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10071echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10072 ac_header_preproc=yes
10073 ;;
10074 no:yes:* )
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10076echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10078echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10080echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10082echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10084echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10086echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10087 (
10088 cat <<\_ASBOX
10089## ------------------------------------------ ##
10090## Report this to the AC_PACKAGE_NAME lists. ##
10091## ------------------------------------------ ##
10092_ASBOX
10093 ) |
10094 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10095 ;;
10096esac
b4e70030
JB
10097echo "$as_me:$LINENO: checking for $ac_header" >&5
10098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10099if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101else
10102 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10103fi
b4e70030
JB
10104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10106
5ee754fc 10107fi
bec39cab
AC
10108if test `eval echo '${'$as_ac_Header'}'` = yes; then
10109 cat >>confdefs.h <<_ACEOF
10110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10111_ACEOF
10112
5ee754fc 10113fi
bec39cab 10114
5ee754fc
MK
10115done
10116
bec39cab
AC
10117
10118for ac_header in sys/select.h
5ee754fc 10119do
bec39cab 10120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10121if eval "test \"\${$as_ac_Header+set}\" = set"; then
10122 echo "$as_me:$LINENO: checking for $ac_header" >&5
10123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10124if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126fi
b4e70030
JB
10127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10129else
10130 # Is the header compilable?
b4e70030
JB
10131echo "$as_me:$LINENO: checking $ac_header usability" >&5
10132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10133cat >conftest.$ac_ext <<_ACEOF
10134/* confdefs.h. */
10135_ACEOF
10136cat confdefs.h >>conftest.$ac_ext
10137cat >>conftest.$ac_ext <<_ACEOF
10138/* end confdefs.h. */
10139$ac_includes_default
10140#include <$ac_header>
10141_ACEOF
10142rm -f conftest.$ac_objext
10143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144 (eval $ac_compile) 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
b4e70030
JB
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
bec39cab
AC
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest.$ac_objext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_header_compiler=yes
10165else
10166 echo "$as_me: failed program was:" >&5
10167sed 's/^/| /' conftest.$ac_ext >&5
10168
b4e70030 10169ac_header_compiler=no
bec39cab
AC
10170fi
10171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10174
10175# Is the header present?
b4e70030
JB
10176echo "$as_me:$LINENO: checking $ac_header presence" >&5
10177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10178cat >conftest.$ac_ext <<_ACEOF
10179/* confdefs.h. */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h. */
10184#include <$ac_header>
10185_ACEOF
10186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } >/dev/null; then
10194 if test -s conftest.err; then
10195 ac_cpp_err=$ac_c_preproc_warn_flag
10196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10197 else
10198 ac_cpp_err=
10199 fi
10200else
10201 ac_cpp_err=yes
5ee754fc 10202fi
bec39cab
AC
10203if test -z "$ac_cpp_err"; then
10204 ac_header_preproc=yes
5ee754fc 10205else
bec39cab
AC
10206 echo "$as_me: failed program was:" >&5
10207sed 's/^/| /' conftest.$ac_ext >&5
10208
10209 ac_header_preproc=no
5ee754fc 10210fi
bec39cab 10211rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10213echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10214
bec39cab
AC
10215# So? What about this header?
10216case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10217 yes:no: )
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10221echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10222 ac_header_preproc=yes
10223 ;;
10224 no:yes:* )
10225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10226echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10228echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10230echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10232echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10234echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10236echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10237 (
10238 cat <<\_ASBOX
10239## ------------------------------------------ ##
10240## Report this to the AC_PACKAGE_NAME lists. ##
10241## ------------------------------------------ ##
10242_ASBOX
10243 ) |
10244 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10245 ;;
10246esac
b4e70030
JB
10247echo "$as_me:$LINENO: checking for $ac_header" >&5
10248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10249if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251else
10252 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10253fi
b4e70030
JB
10254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10256
5ee754fc 10257fi
bec39cab
AC
10258if test `eval echo '${'$as_ac_Header'}'` = yes; then
10259 cat >>confdefs.h <<_ACEOF
10260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10261_ACEOF
10262
5ee754fc 10263fi
bec39cab 10264
5ee754fc
MK
10265done
10266
bec39cab
AC
10267
10268for ac_header in sys/syscall.h
5ee754fc 10269do
bec39cab 10270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10271if eval "test \"\${$as_ac_Header+set}\" = set"; then
10272 echo "$as_me:$LINENO: checking for $ac_header" >&5
10273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10274if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276fi
b4e70030
JB
10277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10279else
10280 # Is the header compilable?
b4e70030
JB
10281echo "$as_me:$LINENO: checking $ac_header usability" >&5
10282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10283cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h. */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h. */
10289$ac_includes_default
10290#include <$ac_header>
10291_ACEOF
10292rm -f conftest.$ac_objext
10293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294 (eval $ac_compile) 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
b4e70030
JB
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
bec39cab
AC
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest.$ac_objext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 ac_header_compiler=yes
10315else
10316 echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
b4e70030 10319ac_header_compiler=no
bec39cab
AC
10320fi
10321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10322echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10323echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10324
10325# Is the header present?
b4e70030
JB
10326echo "$as_me:$LINENO: checking $ac_header presence" >&5
10327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10328cat >conftest.$ac_ext <<_ACEOF
10329/* confdefs.h. */
10330_ACEOF
10331cat confdefs.h >>conftest.$ac_ext
10332cat >>conftest.$ac_ext <<_ACEOF
10333/* end confdefs.h. */
10334#include <$ac_header>
10335_ACEOF
10336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } >/dev/null; then
10344 if test -s conftest.err; then
10345 ac_cpp_err=$ac_c_preproc_warn_flag
10346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10347 else
10348 ac_cpp_err=
10349 fi
10350else
10351 ac_cpp_err=yes
5ee754fc 10352fi
bec39cab
AC
10353if test -z "$ac_cpp_err"; then
10354 ac_header_preproc=yes
5ee754fc 10355else
bec39cab
AC
10356 echo "$as_me: failed program was:" >&5
10357sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 ac_header_preproc=no
5ee754fc 10360fi
bec39cab 10361rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10362echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10363echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10364
bec39cab
AC
10365# So? What about this header?
10366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10367 yes:no: )
10368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10369echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10371echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10372 ac_header_preproc=yes
10373 ;;
10374 no:yes:* )
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10376echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10378echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10380echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10382echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10384echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10386echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10387 (
10388 cat <<\_ASBOX
10389## ------------------------------------------ ##
10390## Report this to the AC_PACKAGE_NAME lists. ##
10391## ------------------------------------------ ##
10392_ASBOX
10393 ) |
10394 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10395 ;;
10396esac
b4e70030
JB
10397echo "$as_me:$LINENO: checking for $ac_header" >&5
10398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10399if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401else
10402 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10403fi
b4e70030
JB
10404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10406
5ee754fc 10407fi
bec39cab
AC
10408if test `eval echo '${'$as_ac_Header'}'` = yes; then
10409 cat >>confdefs.h <<_ACEOF
10410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10411_ACEOF
10412
5ee754fc 10413fi
bec39cab 10414
5ee754fc
MK
10415done
10416
bec39cab
AC
10417
10418for ac_header in sys/types.h
5ee754fc 10419do
bec39cab 10420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10421if eval "test \"\${$as_ac_Header+set}\" = set"; then
10422 echo "$as_me:$LINENO: checking for $ac_header" >&5
10423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10424if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426fi
b4e70030
JB
10427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10429else
10430 # Is the header compilable?
b4e70030
JB
10431echo "$as_me:$LINENO: checking $ac_header usability" >&5
10432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10433cat >conftest.$ac_ext <<_ACEOF
10434/* confdefs.h. */
10435_ACEOF
10436cat confdefs.h >>conftest.$ac_ext
10437cat >>conftest.$ac_ext <<_ACEOF
10438/* end confdefs.h. */
10439$ac_includes_default
10440#include <$ac_header>
10441_ACEOF
10442rm -f conftest.$ac_objext
10443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
b4e70030
JB
10451 { ac_try='test -z "$ac_c_werror_flag"
10452 || test ! -s conftest.err'
bec39cab
AC
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10461 ac_status=$?
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_header_compiler=yes
10465else
10466 echo "$as_me: failed program was:" >&5
10467sed 's/^/| /' conftest.$ac_ext >&5
10468
b4e70030 10469ac_header_compiler=no
bec39cab
AC
10470fi
10471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10473echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10474
10475# Is the header present?
b4e70030
JB
10476echo "$as_me:$LINENO: checking $ac_header presence" >&5
10477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10478cat >conftest.$ac_ext <<_ACEOF
10479/* confdefs.h. */
10480_ACEOF
10481cat confdefs.h >>conftest.$ac_ext
10482cat >>conftest.$ac_ext <<_ACEOF
10483/* end confdefs.h. */
10484#include <$ac_header>
10485_ACEOF
10486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } >/dev/null; then
10494 if test -s conftest.err; then
10495 ac_cpp_err=$ac_c_preproc_warn_flag
10496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10497 else
10498 ac_cpp_err=
10499 fi
10500else
10501 ac_cpp_err=yes
5ee754fc 10502fi
bec39cab
AC
10503if test -z "$ac_cpp_err"; then
10504 ac_header_preproc=yes
5ee754fc 10505else
bec39cab
AC
10506 echo "$as_me: failed program was:" >&5
10507sed 's/^/| /' conftest.$ac_ext >&5
10508
10509 ac_header_preproc=no
5ee754fc 10510fi
bec39cab 10511rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10513echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10514
bec39cab
AC
10515# So? What about this header?
10516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10517 yes:no: )
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10522 ac_header_preproc=yes
10523 ;;
10524 no:yes:* )
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10532echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10537 (
10538 cat <<\_ASBOX
10539## ------------------------------------------ ##
10540## Report this to the AC_PACKAGE_NAME lists. ##
10541## ------------------------------------------ ##
10542_ASBOX
10543 ) |
10544 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10545 ;;
10546esac
b4e70030
JB
10547echo "$as_me:$LINENO: checking for $ac_header" >&5
10548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10549if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551else
10552 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10553fi
b4e70030
JB
10554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10556
5ee754fc 10557fi
bec39cab
AC
10558if test `eval echo '${'$as_ac_Header'}'` = yes; then
10559 cat >>confdefs.h <<_ACEOF
10560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10561_ACEOF
10562
5ee754fc 10563fi
bec39cab 10564
5ee754fc
MK
10565done
10566
bec39cab
AC
10567
10568for ac_header in sys/user.h
5ee754fc 10569do
bec39cab 10570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10571echo "$as_me:$LINENO: checking for $ac_header" >&5
10572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10573if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10574 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10575else
7cb9022a 10576 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10577/* confdefs.h. */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h. */
7cb9022a
MK
10582#if HAVE_SYS_PARAM_H
10583# include <sys/param.h>
10584#endif
10585
10586
bec39cab
AC
10587#include <$ac_header>
10588_ACEOF
10589rm -f conftest.$ac_objext
10590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10591 (eval $ac_compile) 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
b4e70030
JB
10598 { ac_try='test -z "$ac_c_werror_flag"
10599 || test ! -s conftest.err'
bec39cab
AC
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
7cb9022a 10611 eval "$as_ac_Header=yes"
bec39cab
AC
10612else
10613 echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
b4e70030 10616eval "$as_ac_Header=no"
bec39cab
AC
10617fi
10618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10619fi
b4e70030
JB
10620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10622if test `eval echo '${'$as_ac_Header'}'` = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10625_ACEOF
10626
5ee754fc 10627fi
bec39cab 10628
5ee754fc
MK
10629done
10630
bec39cab
AC
10631
10632
10633for ac_header in sys/wait.h wait.h
5ee754fc 10634do
bec39cab 10635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10636if eval "test \"\${$as_ac_Header+set}\" = set"; then
10637 echo "$as_me:$LINENO: checking for $ac_header" >&5
10638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10639if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641fi
b4e70030
JB
10642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10644else
10645 # Is the header compilable?
b4e70030
JB
10646echo "$as_me:$LINENO: checking $ac_header usability" >&5
10647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10648cat >conftest.$ac_ext <<_ACEOF
10649/* confdefs.h. */
10650_ACEOF
10651cat confdefs.h >>conftest.$ac_ext
10652cat >>conftest.$ac_ext <<_ACEOF
10653/* end confdefs.h. */
10654$ac_includes_default
10655#include <$ac_header>
10656_ACEOF
10657rm -f conftest.$ac_objext
10658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>conftest.er1
10660 ac_status=$?
10661 grep -v '^ *+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
b4e70030
JB
10666 { ac_try='test -z "$ac_c_werror_flag"
10667 || test ! -s conftest.err'
bec39cab
AC
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; } &&
10673 { ac_try='test -s conftest.$ac_objext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_header_compiler=yes
10680else
10681 echo "$as_me: failed program was:" >&5
10682sed 's/^/| /' conftest.$ac_ext >&5
10683
b4e70030 10684ac_header_compiler=no
bec39cab
AC
10685fi
10686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10688echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10689
10690# Is the header present?
b4e70030
JB
10691echo "$as_me:$LINENO: checking $ac_header presence" >&5
10692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10693cat >conftest.$ac_ext <<_ACEOF
10694/* confdefs.h. */
10695_ACEOF
10696cat confdefs.h >>conftest.$ac_ext
10697cat >>conftest.$ac_ext <<_ACEOF
10698/* end confdefs.h. */
10699#include <$ac_header>
10700_ACEOF
10701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } >/dev/null; then
10709 if test -s conftest.err; then
10710 ac_cpp_err=$ac_c_preproc_warn_flag
10711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10712 else
10713 ac_cpp_err=
10714 fi
10715else
10716 ac_cpp_err=yes
5ee754fc 10717fi
bec39cab
AC
10718if test -z "$ac_cpp_err"; then
10719 ac_header_preproc=yes
5ee754fc 10720else
bec39cab
AC
10721 echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_header_preproc=no
5ee754fc 10725fi
bec39cab 10726rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10728echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10729
bec39cab
AC
10730# So? What about this header?
10731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10732 yes:no: )
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10737 ac_header_preproc=yes
10738 ;;
10739 no:yes:* )
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10752 (
10753 cat <<\_ASBOX
10754## ------------------------------------------ ##
10755## Report this to the AC_PACKAGE_NAME lists. ##
10756## ------------------------------------------ ##
10757_ASBOX
10758 ) |
10759 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10760 ;;
10761esac
b4e70030
JB
10762echo "$as_me:$LINENO: checking for $ac_header" >&5
10763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10764if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10766else
10767 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10768fi
b4e70030
JB
10769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10771
9608ab8b 10772fi
bec39cab
AC
10773if test `eval echo '${'$as_ac_Header'}'` = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10776_ACEOF
10777
9608ab8b 10778fi
bec39cab 10779
9608ab8b 10780done
5ee754fc 10781
bec39cab
AC
10782
10783
10784
10785for ac_header in termios.h termio.h sgtty.h
5ee754fc 10786do
bec39cab 10787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10788if eval "test \"\${$as_ac_Header+set}\" = set"; then
10789 echo "$as_me:$LINENO: checking for $ac_header" >&5
10790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10791if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793fi
b4e70030
JB
10794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10796else
10797 # Is the header compilable?
b4e70030
JB
10798echo "$as_me:$LINENO: checking $ac_header usability" >&5
10799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10800cat >conftest.$ac_ext <<_ACEOF
10801/* confdefs.h. */
10802_ACEOF
10803cat confdefs.h >>conftest.$ac_ext
10804cat >>conftest.$ac_ext <<_ACEOF
10805/* end confdefs.h. */
10806$ac_includes_default
10807#include <$ac_header>
10808_ACEOF
10809rm -f conftest.$ac_objext
10810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
b4e70030
JB
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
bec39cab
AC
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_header_compiler=yes
10832else
10833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
b4e70030 10836ac_header_compiler=no
bec39cab
AC
10837fi
10838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10840echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10841
10842# Is the header present?
b4e70030
JB
10843echo "$as_me:$LINENO: checking $ac_header presence" >&5
10844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10845cat >conftest.$ac_ext <<_ACEOF
10846/* confdefs.h. */
10847_ACEOF
10848cat confdefs.h >>conftest.$ac_ext
10849cat >>conftest.$ac_ext <<_ACEOF
10850/* end confdefs.h. */
10851#include <$ac_header>
10852_ACEOF
10853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } >/dev/null; then
10861 if test -s conftest.err; then
10862 ac_cpp_err=$ac_c_preproc_warn_flag
10863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10864 else
10865 ac_cpp_err=
10866 fi
10867else
10868 ac_cpp_err=yes
9608ab8b 10869fi
bec39cab
AC
10870if test -z "$ac_cpp_err"; then
10871 ac_header_preproc=yes
9608ab8b 10872else
bec39cab
AC
10873 echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 ac_header_preproc=no
9608ab8b 10877fi
bec39cab 10878rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10880echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10881
bec39cab
AC
10882# So? What about this header?
10883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10884 yes:no: )
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10889 ac_header_preproc=yes
10890 ;;
10891 no:yes:* )
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10904 (
10905 cat <<\_ASBOX
10906## ------------------------------------------ ##
10907## Report this to the AC_PACKAGE_NAME lists. ##
10908## ------------------------------------------ ##
10909_ASBOX
10910 ) |
10911 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10912 ;;
10913esac
b4e70030
JB
10914echo "$as_me:$LINENO: checking for $ac_header" >&5
10915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10916if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918else
10919 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10920fi
b4e70030
JB
10921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10923
9608ab8b 10924fi
bec39cab
AC
10925if test `eval echo '${'$as_ac_Header'}'` = yes; then
10926 cat >>confdefs.h <<_ACEOF
10927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10928_ACEOF
10929
9608ab8b 10930fi
bec39cab 10931
5ee754fc 10932done
9608ab8b 10933
bec39cab
AC
10934
10935for ac_header in unistd.h
78434e59 10936do
bec39cab 10937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10938if eval "test \"\${$as_ac_Header+set}\" = set"; then
10939 echo "$as_me:$LINENO: checking for $ac_header" >&5
10940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10941if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943fi
b4e70030
JB
10944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10946else
10947 # Is the header compilable?
b4e70030
JB
10948echo "$as_me:$LINENO: checking $ac_header usability" >&5
10949echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10950cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h. */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
10955/* end confdefs.h. */
10956$ac_includes_default
10957#include <$ac_header>
10958_ACEOF
10959rm -f conftest.$ac_objext
10960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>conftest.er1
10962 ac_status=$?
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } &&
b4e70030
JB
10968 { ac_try='test -z "$ac_c_werror_flag"
10969 || test ! -s conftest.err'
bec39cab
AC
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try='test -s conftest.$ac_objext'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_header_compiler=yes
10982else
10983 echo "$as_me: failed program was:" >&5
10984sed 's/^/| /' conftest.$ac_ext >&5
10985
b4e70030 10986ac_header_compiler=no
bec39cab
AC
10987fi
10988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10991
10992# Is the header present?
b4e70030
JB
10993echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10995cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h. */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h. */
11001#include <$ac_header>
11002_ACEOF
11003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } >/dev/null; then
11011 if test -s conftest.err; then
11012 ac_cpp_err=$ac_c_preproc_warn_flag
11013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11014 else
11015 ac_cpp_err=
11016 fi
11017else
11018 ac_cpp_err=yes
78434e59 11019fi
bec39cab
AC
11020if test -z "$ac_cpp_err"; then
11021 ac_header_preproc=yes
78434e59 11022else
bec39cab
AC
11023 echo "$as_me: failed program was:" >&5
11024sed 's/^/| /' conftest.$ac_ext >&5
11025
11026 ac_header_preproc=no
78434e59 11027fi
bec39cab 11028rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11030echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 11031
bec39cab
AC
11032# So? What about this header?
11033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11034 yes:no: )
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11039 ac_header_preproc=yes
11040 ;;
11041 no:yes:* )
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11054 (
11055 cat <<\_ASBOX
11056## ------------------------------------------ ##
11057## Report this to the AC_PACKAGE_NAME lists. ##
11058## ------------------------------------------ ##
11059_ASBOX
11060 ) |
11061 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11062 ;;
11063esac
b4e70030
JB
11064echo "$as_me:$LINENO: checking for $ac_header" >&5
11065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11066if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068else
11069 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 11070fi
b4e70030
JB
11071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11073
086ec9eb 11074fi
bec39cab
AC
11075if test `eval echo '${'$as_ac_Header'}'` = yes; then
11076 cat >>confdefs.h <<_ACEOF
11077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11078_ACEOF
11079
086ec9eb 11080fi
bec39cab 11081
086ec9eb
MK
11082done
11083
9608ab8b 11084
b1d19a62 11085# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
11086# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11087# think that we don't have <curses.h> if we're using GCC.
11088case $host_os in
b1d19a62 11089 solaris2.[789])
5ee754fc 11090 if test "$GCC" = yes; then
bec39cab
AC
11091
11092cat >>confdefs.h <<\_ACEOF
5ee754fc 11093#define _MSE_INT_H 1
bec39cab 11094_ACEOF
5ee754fc
MK
11095
11096 fi ;;
11097esac
bec39cab
AC
11098
11099
11100
11101
11102for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 11103do
bec39cab 11104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11105if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106 echo "$as_me:$LINENO: checking for $ac_header" >&5
11107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11108if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110fi
b4e70030
JB
11111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11113else
11114 # Is the header compilable?
b4e70030
JB
11115echo "$as_me:$LINENO: checking $ac_header usability" >&5
11116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11117cat >conftest.$ac_ext <<_ACEOF
11118/* confdefs.h. */
11119_ACEOF
11120cat confdefs.h >>conftest.$ac_ext
11121cat >>conftest.$ac_ext <<_ACEOF
11122/* end confdefs.h. */
11123$ac_includes_default
11124#include <$ac_header>
11125_ACEOF
11126rm -f conftest.$ac_objext
11127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11128 (eval $ac_compile) 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
b4e70030
JB
11135 { ac_try='test -z "$ac_c_werror_flag"
11136 || test ! -s conftest.err'
bec39cab
AC
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
11143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 ac_header_compiler=yes
11149else
11150 echo "$as_me: failed program was:" >&5
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
b4e70030 11153ac_header_compiler=no
bec39cab
AC
11154fi
11155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11157echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11158
11159# Is the header present?
b4e70030
JB
11160echo "$as_me:$LINENO: checking $ac_header presence" >&5
11161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11162cat >conftest.$ac_ext <<_ACEOF
11163/* confdefs.h. */
11164_ACEOF
11165cat confdefs.h >>conftest.$ac_ext
11166cat >>conftest.$ac_ext <<_ACEOF
11167/* end confdefs.h. */
11168#include <$ac_header>
11169_ACEOF
11170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null; then
11178 if test -s conftest.err; then
11179 ac_cpp_err=$ac_c_preproc_warn_flag
11180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11181 else
11182 ac_cpp_err=
11183 fi
11184else
11185 ac_cpp_err=yes
c906108c 11186fi
bec39cab
AC
11187if test -z "$ac_cpp_err"; then
11188 ac_header_preproc=yes
11189else
11190 echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 ac_header_preproc=no
c906108c 11194fi
bec39cab 11195rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11197echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11198
11199# So? What about this header?
11200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11201 yes:no: )
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11206 ac_header_preproc=yes
11207 ;;
11208 no:yes:* )
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11221 (
11222 cat <<\_ASBOX
11223## ------------------------------------------ ##
11224## Report this to the AC_PACKAGE_NAME lists. ##
11225## ------------------------------------------ ##
11226_ASBOX
11227 ) |
11228 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11229 ;;
11230esac
b4e70030
JB
11231echo "$as_me:$LINENO: checking for $ac_header" >&5
11232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11233if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11234 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11235else
bec39cab 11236 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 11237fi
b4e70030
JB
11238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11240
11241fi
11242if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243 cat >>confdefs.h <<_ACEOF
11244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245_ACEOF
11246
11247fi
11248
5ee754fc 11249done
c906108c 11250
bec39cab 11251
065a1afc 11252for ac_header in ncurses/term.h
3b78cdbb 11253do
bec39cab 11254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11255if eval "test \"\${$as_ac_Header+set}\" = set"; then
11256 echo "$as_me:$LINENO: checking for $ac_header" >&5
11257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11258if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260fi
b4e70030
JB
11261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11263else
11264 # Is the header compilable?
b4e70030
JB
11265echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11267cat >conftest.$ac_ext <<_ACEOF
11268/* confdefs.h. */
11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
11273$ac_includes_default
11274#include <$ac_header>
11275_ACEOF
11276rm -f conftest.$ac_objext
11277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11278 (eval $ac_compile) 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
b4e70030
JB
11285 { ac_try='test -z "$ac_c_werror_flag"
11286 || test ! -s conftest.err'
bec39cab
AC
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_header_compiler=yes
11299else
11300 echo "$as_me: failed program was:" >&5
11301sed 's/^/| /' conftest.$ac_ext >&5
11302
b4e70030 11303ac_header_compiler=no
bec39cab
AC
11304fi
11305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11307echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11308
11309# Is the header present?
b4e70030
JB
11310echo "$as_me:$LINENO: checking $ac_header presence" >&5
11311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11312cat >conftest.$ac_ext <<_ACEOF
11313/* confdefs.h. */
11314_ACEOF
11315cat confdefs.h >>conftest.$ac_ext
11316cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */
11318#include <$ac_header>
11319_ACEOF
11320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } >/dev/null; then
11328 if test -s conftest.err; then
11329 ac_cpp_err=$ac_c_preproc_warn_flag
11330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331 else
11332 ac_cpp_err=
11333 fi
11334else
11335 ac_cpp_err=yes
3b78cdbb 11336fi
bec39cab
AC
11337if test -z "$ac_cpp_err"; then
11338 ac_header_preproc=yes
11339else
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 ac_header_preproc=no
3b78cdbb 11344fi
bec39cab 11345rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11347echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11348
11349# So? What about this header?
11350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11351 yes:no: )
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11356 ac_header_preproc=yes
11357 ;;
11358 no:yes:* )
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11362echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11366echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11371 (
11372 cat <<\_ASBOX
11373## ------------------------------------------ ##
11374## Report this to the AC_PACKAGE_NAME lists. ##
11375## ------------------------------------------ ##
11376_ASBOX
11377 ) |
11378 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11379 ;;
11380esac
b4e70030
JB
11381echo "$as_me:$LINENO: checking for $ac_header" >&5
11382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11383if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11384 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 11385else
bec39cab
AC
11386 eval "$as_ac_Header=\$ac_header_preproc"
11387fi
b4e70030
JB
11388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11390
3b78cdbb 11391fi
bec39cab
AC
11392if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395_ACEOF
11396
11397fi
11398
3b78cdbb
DA
11399done
11400
c906108c 11401
065a1afc
JB
11402for ac_header in term.h
11403do
11404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11405echo "$as_me:$LINENO: checking for $ac_header" >&5
11406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11407if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409else
11410 cat >conftest.$ac_ext <<_ACEOF
11411/* confdefs.h. */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h. */
11416#if HAVE_CURSES_H
11417# include <curses.h>
11418#endif
11419
11420
11421#include <$ac_header>
11422_ACEOF
11423rm -f conftest.$ac_objext
11424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
b4e70030
JB
11432 { ac_try='test -z "$ac_c_werror_flag"
11433 || test ! -s conftest.err'
065a1afc
JB
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest.$ac_objext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 eval "$as_ac_Header=yes"
11446else
11447 echo "$as_me: failed program was:" >&5
11448sed 's/^/| /' conftest.$ac_ext >&5
11449
b4e70030 11450eval "$as_ac_Header=no"
065a1afc
JB
11451fi
11452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11453fi
b4e70030
JB
11454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
11456if test `eval echo '${'$as_ac_Header'}'` = yes; then
11457 cat >>confdefs.h <<_ACEOF
11458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11459_ACEOF
11460
11461fi
11462
11463done
11464
11465
d542061a
UW
11466# Check for HP/UX 64-bit shared library support
11467
11468for ac_header in elf_hp.h
11469do
11470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471if eval "test \"\${$as_ac_Header+set}\" = set"; then
11472 echo "$as_me:$LINENO: checking for $ac_header" >&5
11473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11474if eval "test \"\${$as_ac_Header+set}\" = set"; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476fi
11477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11479else
11480 # Is the header compilable?
11481echo "$as_me:$LINENO: checking $ac_header usability" >&5
11482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11483cat >conftest.$ac_ext <<_ACEOF
11484/* confdefs.h. */
11485_ACEOF
11486cat confdefs.h >>conftest.$ac_ext
11487cat >>conftest.$ac_ext <<_ACEOF
11488/* end confdefs.h. */
11489$ac_includes_default
11490#include <$ac_header>
11491_ACEOF
11492rm -f conftest.$ac_objext
11493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494 (eval $ac_compile) 2>conftest.er1
11495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag"
11502 || test ! -s conftest.err'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; } &&
11508 { ac_try='test -s conftest.$ac_objext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_header_compiler=yes
11515else
11516 echo "$as_me: failed program was:" >&5
11517sed 's/^/| /' conftest.$ac_ext >&5
11518
11519ac_header_compiler=no
11520fi
11521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11522echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11523echo "${ECHO_T}$ac_header_compiler" >&6
11524
11525# Is the header present?
11526echo "$as_me:$LINENO: checking $ac_header presence" >&5
11527echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11528cat >conftest.$ac_ext <<_ACEOF
11529/* confdefs.h. */
11530_ACEOF
11531cat confdefs.h >>conftest.$ac_ext
11532cat >>conftest.$ac_ext <<_ACEOF
11533/* end confdefs.h. */
11534#include <$ac_header>
11535_ACEOF
11536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } >/dev/null; then
11544 if test -s conftest.err; then
11545 ac_cpp_err=$ac_c_preproc_warn_flag
11546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11547 else
11548 ac_cpp_err=
11549 fi
11550else
11551 ac_cpp_err=yes
11552fi
11553if test -z "$ac_cpp_err"; then
11554 ac_header_preproc=yes
11555else
11556 echo "$as_me: failed program was:" >&5
11557sed 's/^/| /' conftest.$ac_ext >&5
11558
11559 ac_header_preproc=no
11560fi
11561rm -f conftest.err conftest.$ac_ext
11562echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11563echo "${ECHO_T}$ac_header_preproc" >&6
11564
11565# So? What about this header?
11566case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11567 yes:no: )
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11572 ac_header_preproc=yes
11573 ;;
11574 no:yes:* )
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11587 (
11588 cat <<\_ASBOX
11589## ------------------------------------------ ##
11590## Report this to the AC_PACKAGE_NAME lists. ##
11591## ------------------------------------------ ##
11592_ASBOX
11593 ) |
11594 sed "s/^/$as_me: WARNING: /" >&2
11595 ;;
11596esac
11597echo "$as_me:$LINENO: checking for $ac_header" >&5
11598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11599if eval "test \"\${$as_ac_Header+set}\" = set"; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601else
11602 eval "$as_ac_Header=\$ac_header_preproc"
11603fi
11604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11606
11607fi
11608if test `eval echo '${'$as_ac_Header'}'` = yes; then
11609 cat >>confdefs.h <<_ACEOF
11610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11611_ACEOF
11612
11613fi
11614
11615done
11616
11617
5ee754fc
MK
11618# FIXME: kettenis/20030102: In most cases we include these
11619# unconditionally, so what's the point in checking these?
bec39cab
AC
11620
11621
11622for ac_header in ctype.h time.h
c906108c 11623do
bec39cab 11624as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11625if eval "test \"\${$as_ac_Header+set}\" = set"; then
11626 echo "$as_me:$LINENO: checking for $ac_header" >&5
11627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11628if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630fi
b4e70030
JB
11631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11633else
11634 # Is the header compilable?
b4e70030
JB
11635echo "$as_me:$LINENO: checking $ac_header usability" >&5
11636echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11637cat >conftest.$ac_ext <<_ACEOF
11638/* confdefs.h. */
11639_ACEOF
11640cat confdefs.h >>conftest.$ac_ext
11641cat >>conftest.$ac_ext <<_ACEOF
11642/* end confdefs.h. */
11643$ac_includes_default
11644#include <$ac_header>
11645_ACEOF
11646rm -f conftest.$ac_objext
11647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 (eval $ac_compile) 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
b4e70030
JB
11655 { ac_try='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
bec39cab
AC
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest.$ac_objext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_header_compiler=yes
11669else
11670 echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
b4e70030 11673ac_header_compiler=no
bec39cab
AC
11674fi
11675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11676echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11677echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11678
11679# Is the header present?
b4e70030
JB
11680echo "$as_me:$LINENO: checking $ac_header presence" >&5
11681echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11682cat >conftest.$ac_ext <<_ACEOF
11683/* confdefs.h. */
11684_ACEOF
11685cat confdefs.h >>conftest.$ac_ext
11686cat >>conftest.$ac_ext <<_ACEOF
11687/* end confdefs.h. */
11688#include <$ac_header>
11689_ACEOF
11690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } >/dev/null; then
11698 if test -s conftest.err; then
11699 ac_cpp_err=$ac_c_preproc_warn_flag
11700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11701 else
11702 ac_cpp_err=
11703 fi
11704else
11705 ac_cpp_err=yes
c906108c 11706fi
bec39cab
AC
11707if test -z "$ac_cpp_err"; then
11708 ac_header_preproc=yes
11709else
11710 echo "$as_me: failed program was:" >&5
11711sed 's/^/| /' conftest.$ac_ext >&5
11712
11713 ac_header_preproc=no
c906108c 11714fi
bec39cab 11715rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11716echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11717echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11718
11719# So? What about this header?
11720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11721 yes:no: )
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11723echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11725echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11726 ac_header_preproc=yes
11727 ;;
11728 no:yes:* )
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11730echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11732echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11734echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11736echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11738echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11740echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11741 (
11742 cat <<\_ASBOX
11743## ------------------------------------------ ##
11744## Report this to the AC_PACKAGE_NAME lists. ##
11745## ------------------------------------------ ##
11746_ASBOX
11747 ) |
11748 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11749 ;;
11750esac
b4e70030
JB
11751echo "$as_me:$LINENO: checking for $ac_header" >&5
11752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11753if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11754 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11755else
bec39cab
AC
11756 eval "$as_ac_Header=\$ac_header_preproc"
11757fi
b4e70030
JB
11758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11760
11761fi
11762if test `eval echo '${'$as_ac_Header'}'` = yes; then
11763 cat >>confdefs.h <<_ACEOF
11764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11765_ACEOF
11766
c906108c 11767fi
bec39cab 11768
c906108c
SS
11769done
11770
5ee754fc 11771
4e8d927d 11772# Create a header we can use portably to get the standard integer types.
666ec76f 11773
4e8d927d
DJ
11774
11775inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11776
11777acx_cv_header_stdint=stddef.h
11778acx_cv_header_stdint_kind="(already complete)"
11779for i in stdint.h $inttype_headers; do
11780 unset ac_cv_type_uintptr_t
11781 unset ac_cv_type_uintmax_t
11782 unset ac_cv_type_int_least32_t
11783 unset ac_cv_type_int_fast32_t
11784 unset ac_cv_type_uint64_t
11785 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11786 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11787echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 11788if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 11789 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 11790else
bec39cab
AC
11791 cat >conftest.$ac_ext <<_ACEOF
11792/* confdefs.h. */
11793_ACEOF
11794cat confdefs.h >>conftest.$ac_ext
11795cat >>conftest.$ac_ext <<_ACEOF
11796/* end confdefs.h. */
4e8d927d
DJ
11797#include <sys/types.h>
11798#include <$i>
11799
bec39cab
AC
11800int
11801main ()
11802{
b4e70030 11803if ((uintmax_t *) 0)
4e8d927d 11804 return 0;
b4e70030 11805if (sizeof (uintmax_t))
4e8d927d
DJ
11806 return 0;
11807 ;
bec39cab
AC
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext
11812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
b4e70030
JB
11820 { ac_try='test -z "$ac_c_werror_flag"
11821 || test ! -s conftest.err'
bec39cab
AC
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; } &&
11827 { ac_try='test -s conftest.$ac_objext'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
4e8d927d 11833 ac_cv_type_uintmax_t=yes
40a7debc 11834else
bec39cab
AC
11835 echo "$as_me: failed program was:" >&5
11836sed 's/^/| /' conftest.$ac_ext >&5
11837
b4e70030 11838ac_cv_type_uintmax_t=no
40a7debc 11839fi
bec39cab 11840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11841fi
b4e70030
JB
11842echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11843echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11844if test $ac_cv_type_uintmax_t = yes; then
11845 acx_cv_header_stdint=$i
666ec76f 11846else
4e8d927d 11847 continue
666ec76f 11848fi
4e8d927d 11849
b4e70030
JB
11850 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11851echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11852if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854else
11855 cat >conftest.$ac_ext <<_ACEOF
11856/* confdefs.h. */
11857_ACEOF
11858cat confdefs.h >>conftest.$ac_ext
11859cat >>conftest.$ac_ext <<_ACEOF
11860/* end confdefs.h. */
4e8d927d
DJ
11861#include <sys/types.h>
11862#include <$i>
11863
666ec76f
MK
11864int
11865main ()
11866{
b4e70030 11867if ((uintptr_t *) 0)
4e8d927d 11868 return 0;
b4e70030 11869if (sizeof (uintptr_t))
4e8d927d 11870 return 0;
666ec76f
MK
11871 ;
11872 return 0;
11873}
11874_ACEOF
11875rm -f conftest.$ac_objext
11876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11877 (eval $ac_compile) 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
b4e70030
JB
11884 { ac_try='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
666ec76f
MK
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
4e8d927d 11897 ac_cv_type_uintptr_t=yes
666ec76f
MK
11898else
11899 echo "$as_me: failed program was:" >&5
11900sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11901
b4e70030 11902ac_cv_type_uintptr_t=no
a3828db0
MK
11903fi
11904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11905fi
b4e70030
JB
11906echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11907echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11908if test $ac_cv_type_uintptr_t = yes; then
11909 :
a3828db0 11910else
4e8d927d 11911 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11912fi
4e8d927d 11913
b4e70030
JB
11914 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11915echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11916if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11920/* confdefs.h. */
11921_ACEOF
11922cat confdefs.h >>conftest.$ac_ext
11923cat >>conftest.$ac_ext <<_ACEOF
11924/* end confdefs.h. */
4e8d927d
DJ
11925#include <sys/types.h>
11926#include <$i>
11927
bec39cab
AC
11928int
11929main ()
11930{
b4e70030 11931if ((int_least32_t *) 0)
4e8d927d 11932 return 0;
b4e70030 11933if (sizeof (int_least32_t))
4e8d927d 11934 return 0;
bec39cab
AC
11935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext
11940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>conftest.er1
11942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
b4e70030
JB
11948 { ac_try='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
bec39cab
AC
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
4e8d927d 11961 ac_cv_type_int_least32_t=yes
b9362cc7 11962else
bec39cab
AC
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
b4e70030 11966ac_cv_type_int_least32_t=no
b9362cc7 11967fi
bec39cab 11968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11969fi
b4e70030
JB
11970echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11971echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11972if test $ac_cv_type_int_least32_t = yes; then
11973 :
a3828db0 11974else
4e8d927d 11975 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11976fi
5ee754fc 11977
b4e70030
JB
11978 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11979echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11980if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else
11983 cat >conftest.$ac_ext <<_ACEOF
11984/* confdefs.h. */
11985_ACEOF
11986cat confdefs.h >>conftest.$ac_ext
11987cat >>conftest.$ac_ext <<_ACEOF
11988/* end confdefs.h. */
4e8d927d
DJ
11989#include <sys/types.h>
11990#include <$i>
11991
bec39cab
AC
11992int
11993main ()
11994{
b4e70030 11995if ((int_fast32_t *) 0)
4e8d927d 11996 return 0;
b4e70030 11997if (sizeof (int_fast32_t))
4e8d927d 11998 return 0;
bec39cab
AC
11999 ;
12000 return 0;
12001}
12002_ACEOF
12003rm -f conftest.$ac_objext
12004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12005 (eval $ac_compile) 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
b4e70030
JB
12012 { ac_try='test -z "$ac_c_werror_flag"
12013 || test ! -s conftest.err'
bec39cab
AC
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest.$ac_objext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
4e8d927d 12025 ac_cv_type_int_fast32_t=yes
c906108c 12026else
bec39cab
AC
12027 echo "$as_me: failed program was:" >&5
12028sed 's/^/| /' conftest.$ac_ext >&5
12029
b4e70030 12030ac_cv_type_int_fast32_t=no
c906108c 12031fi
bec39cab 12032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12033fi
b4e70030
JB
12034echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12035echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
12036if test $ac_cv_type_int_fast32_t = yes; then
12037 :
a3828db0 12038else
4e8d927d 12039 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 12040fi
4e8d927d 12041
b4e70030
JB
12042 echo "$as_me:$LINENO: checking for uint64_t" >&5
12043echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 12044if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
12047 cat >conftest.$ac_ext <<_ACEOF
12048/* confdefs.h. */
12049_ACEOF
12050cat confdefs.h >>conftest.$ac_ext
12051cat >>conftest.$ac_ext <<_ACEOF
12052/* end confdefs.h. */
4e8d927d
DJ
12053#include <sys/types.h>
12054#include <$i>
12055
bec39cab
AC
12056int
12057main ()
12058{
b4e70030 12059if ((uint64_t *) 0)
4e8d927d 12060 return 0;
b4e70030 12061if (sizeof (uint64_t))
4e8d927d 12062 return 0;
bec39cab
AC
12063 ;
12064 return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext
12068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
b4e70030
JB
12076 { ac_try='test -z "$ac_c_werror_flag"
12077 || test ! -s conftest.err'
bec39cab
AC
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest.$ac_objext'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
4e8d927d 12089 ac_cv_type_uint64_t=yes
c906108c 12090else
bec39cab
AC
12091 echo "$as_me: failed program was:" >&5
12092sed 's/^/| /' conftest.$ac_ext >&5
12093
b4e70030 12094ac_cv_type_uint64_t=no
c906108c 12095fi
bec39cab 12096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12097fi
b4e70030
JB
12098echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12099echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
12100if test $ac_cv_type_uint64_t = yes; then
12101 :
a3828db0 12102else
4e8d927d 12103 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
12104fi
12105
4e8d927d
DJ
12106 break
12107done
12108if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 12109 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 12110 for i in stdint.h $inttype_headers; do
3841debe 12111 unset ac_cv_type_uintptr_t
4e8d927d
DJ
12112 unset ac_cv_type_uint32_t
12113 unset ac_cv_type_uint64_t
12114 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
12115 echo "$as_me:$LINENO: checking for uint32_t" >&5
12116echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 12117if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 12118 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 12119else
bec39cab
AC
12120 cat >conftest.$ac_ext <<_ACEOF
12121/* confdefs.h. */
12122_ACEOF
12123cat confdefs.h >>conftest.$ac_ext
12124cat >>conftest.$ac_ext <<_ACEOF
12125/* end confdefs.h. */
4e8d927d
DJ
12126#include <sys/types.h>
12127#include <$i>
12128
a3828db0
MK
12129int
12130main ()
12131{
b4e70030 12132if ((uint32_t *) 0)
4e8d927d 12133 return 0;
b4e70030 12134if (sizeof (uint32_t))
4e8d927d 12135 return 0;
a3828db0
MK
12136 ;
12137 return 0;
12138}
bec39cab
AC
12139_ACEOF
12140rm -f conftest.$ac_objext
12141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142 (eval $ac_compile) 2>conftest.er1
12143 ac_status=$?
12144 grep -v '^ *+' conftest.er1 >conftest.err
12145 rm -f conftest.er1
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
b4e70030
JB
12149 { ac_try='test -z "$ac_c_werror_flag"
12150 || test ! -s conftest.err'
bec39cab
AC
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest.$ac_objext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
4e8d927d 12162 ac_cv_type_uint32_t=yes
bce58c09 12163else
bec39cab
AC
12164 echo "$as_me: failed program was:" >&5
12165sed 's/^/| /' conftest.$ac_ext >&5
12166
b4e70030 12167ac_cv_type_uint32_t=no
bce58c09 12168fi
bec39cab 12169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 12170fi
b4e70030
JB
12171echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12172echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
12173if test $ac_cv_type_uint32_t = yes; then
12174 acx_cv_header_stdint=$i
a3828db0 12175else
4e8d927d 12176 continue
e5a7de23 12177fi
4e8d927d 12178
b4e70030
JB
12179 echo "$as_me:$LINENO: checking for uint64_t" >&5
12180echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 12181if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183else
12184 cat >conftest.$ac_ext <<_ACEOF
12185/* confdefs.h. */
12186_ACEOF
12187cat confdefs.h >>conftest.$ac_ext
12188cat >>conftest.$ac_ext <<_ACEOF
12189/* end confdefs.h. */
4e8d927d
DJ
12190#include <sys/types.h>
12191#include <$i>
12192
e5a7de23
EZ
12193int
12194main ()
12195{
b4e70030 12196if ((uint64_t *) 0)
4e8d927d 12197 return 0;
b4e70030 12198if (sizeof (uint64_t))
4e8d927d 12199 return 0;
e5a7de23
EZ
12200 ;
12201 return 0;
12202}
12203_ACEOF
12204rm -f conftest.$ac_objext
12205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12206 (eval $ac_compile) 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
b4e70030
JB
12213 { ac_try='test -z "$ac_c_werror_flag"
12214 || test ! -s conftest.err'
e5a7de23
EZ
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
4e8d927d 12226 ac_cv_type_uint64_t=yes
e5a7de23
EZ
12227else
12228 echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
b4e70030 12231ac_cv_type_uint64_t=no
e5a7de23
EZ
12232fi
12233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12234fi
b4e70030
JB
12235echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12236echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
12237
12238 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12239echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12240if test "${ac_cv_type_uintptr_t+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242else
12243 cat >conftest.$ac_ext <<_ACEOF
12244/* confdefs.h. */
12245_ACEOF
12246cat confdefs.h >>conftest.$ac_ext
12247cat >>conftest.$ac_ext <<_ACEOF
12248/* end confdefs.h. */
12249#include <sys/types.h>
12250#include <$i>
12251
12252int
12253main ()
12254{
12255if ((uintptr_t *) 0)
12256 return 0;
12257if (sizeof (uintptr_t))
12258 return 0;
12259 ;
12260 return 0;
12261}
12262_ACEOF
12263rm -f conftest.$ac_objext
12264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12265 (eval $ac_compile) 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_c_werror_flag"
12273 || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest.$ac_objext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_type_uintptr_t=yes
e5a7de23 12286else
3841debe
DJ
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290ac_cv_type_uintptr_t=no
4e8d927d 12291fi
3841debe
DJ
12292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12293fi
12294echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12295echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 12296
4e8d927d
DJ
12297 break
12298 done
e5a7de23 12299fi
4e8d927d
DJ
12300if test "$acx_cv_header_stdint" = stddef.h; then
12301 acx_cv_header_stdint_kind="(u_intXX_t style)"
12302 for i in sys/types.h $inttype_headers; do
12303 unset ac_cv_type_u_int32_t
12304 unset ac_cv_type_u_int64_t
12305 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
12306 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12307echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 12308if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310else
12311 cat >conftest.$ac_ext <<_ACEOF
12312/* confdefs.h. */
12313_ACEOF
12314cat confdefs.h >>conftest.$ac_ext
12315cat >>conftest.$ac_ext <<_ACEOF
12316/* end confdefs.h. */
4e8d927d
DJ
12317#include <sys/types.h>
12318#include <$i>
12319
e5a7de23
EZ
12320int
12321main ()
12322{
b4e70030 12323if ((u_int32_t *) 0)
4e8d927d 12324 return 0;
b4e70030 12325if (sizeof (u_int32_t))
4e8d927d 12326 return 0;
e5a7de23
EZ
12327 ;
12328 return 0;
12329}
12330_ACEOF
12331rm -f conftest.$ac_objext
12332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12333 (eval $ac_compile) 2>conftest.er1
12334 ac_status=$?
12335 grep -v '^ *+' conftest.er1 >conftest.err
12336 rm -f conftest.er1
12337 cat conftest.err >&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
b4e70030
JB
12340 { ac_try='test -z "$ac_c_werror_flag"
12341 || test ! -s conftest.err'
e5a7de23
EZ
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest.$ac_objext'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
4e8d927d 12353 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
12354else
12355 echo "$as_me: failed program was:" >&5
12356sed 's/^/| /' conftest.$ac_ext >&5
12357
b4e70030 12358ac_cv_type_u_int32_t=no
e5a7de23
EZ
12359fi
12360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12361fi
b4e70030
JB
12362echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12363echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
12364if test $ac_cv_type_u_int32_t = yes; then
12365 acx_cv_header_stdint=$i
e5a7de23 12366else
4e8d927d 12367 continue
a3828db0 12368fi
5ee754fc 12369
b4e70030
JB
12370 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12371echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 12372if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374else
12375 cat >conftest.$ac_ext <<_ACEOF
12376/* confdefs.h. */
12377_ACEOF
12378cat confdefs.h >>conftest.$ac_ext
12379cat >>conftest.$ac_ext <<_ACEOF
12380/* end confdefs.h. */
4e8d927d
DJ
12381#include <sys/types.h>
12382#include <$i>
12383
bec39cab
AC
12384int
12385main ()
12386{
b4e70030 12387if ((u_int64_t *) 0)
4e8d927d 12388 return 0;
b4e70030 12389if (sizeof (u_int64_t))
4e8d927d 12390 return 0;
bec39cab
AC
12391 ;
12392 return 0;
12393}
12394_ACEOF
a3828db0
MK
12395rm -f conftest.$ac_objext
12396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
b4e70030
JB
12404 { ac_try='test -z "$ac_c_werror_flag"
12405 || test ! -s conftest.err'
bec39cab
AC
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
a3828db0 12411 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
4e8d927d 12417 ac_cv_type_u_int64_t=yes
bec39cab
AC
12418else
12419 echo "$as_me: failed program was:" >&5
12420sed 's/^/| /' conftest.$ac_ext >&5
12421
b4e70030 12422ac_cv_type_u_int64_t=no
4e8d927d 12423fi
4e8d927d
DJ
12424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12425fi
b4e70030
JB
12426echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12427echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
12428
12429 break
12430 done
12431fi
12432if test "$acx_cv_header_stdint" = stddef.h; then
12433 acx_cv_header_stdint_kind="(using manual detection)"
12434fi
12435
12436test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12437test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12438test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12439test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12440test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12441
12442# ----------------- Summarize what we found so far
12443
b4e70030
JB
12444echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12445echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 12446
b4e70030 12447case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
12448$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12449 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
12450 Xgdb_stdint.h : 'X\(/\)$' \| \
12451 . : '\(.\)' 2>/dev/null ||
4e8d927d 12452echo X/gdb_stdint.h |
b4e70030
JB
12453 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12454 /^X\/\(\/\/\)$/{ s//\1/; q; }
12455 /^X\/\(\/\).*/{ s//\1/; q; }
12456 s/.*/./; q'` in
4e8d927d
DJ
12457 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12458echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12459 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12460echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12461 *) ;;
12462esac
12463
b4e70030
JB
12464echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12465echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
12466
12467# ----------------- done included file, check C basic types --------
12468
12469# Lacking an uintptr_t? Test size of void *
12470case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
12471 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12472echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
12473if test "${ac_cv_type_void_p+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12475else
12476 cat >conftest.$ac_ext <<_ACEOF
a3828db0 12477/* confdefs.h. */
bec39cab
AC
12478_ACEOF
12479cat confdefs.h >>conftest.$ac_ext
12480cat >>conftest.$ac_ext <<_ACEOF
12481/* end confdefs.h. */
a3828db0 12482$ac_includes_default
bec39cab
AC
12483int
12484main ()
12485{
b4e70030 12486if ((void * *) 0)
4e8d927d 12487 return 0;
b4e70030 12488if (sizeof (void *))
4e8d927d 12489 return 0;
bec39cab
AC
12490 ;
12491 return 0;
12492}
12493_ACEOF
a3828db0
MK
12494rm -f conftest.$ac_objext
12495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
b4e70030
JB
12503 { ac_try='test -z "$ac_c_werror_flag"
12504 || test ! -s conftest.err'
bec39cab
AC
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
a3828db0 12510 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
4e8d927d 12516 ac_cv_type_void_p=yes
46711df8 12517else
bec39cab
AC
12518 echo "$as_me: failed program was:" >&5
12519sed 's/^/| /' conftest.$ac_ext >&5
12520
b4e70030 12521ac_cv_type_void_p=no
a3828db0 12522fi
4e8d927d 12523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 12524fi
b4e70030
JB
12525echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12526echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 12527
b4e70030
JB
12528echo "$as_me:$LINENO: checking size of void *" >&5
12529echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 12530if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532else
4e8d927d 12533 if test "$ac_cv_type_void_p" = yes; then
b4e70030 12534 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12537 # This bug is HP SR number 8606223364.
12538 if test "$cross_compiling" = yes; then
12539 # Depending upon the size, compute the lo and hi bounds.
12540cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12541/* confdefs.h. */
12542_ACEOF
12543cat confdefs.h >>conftest.$ac_ext
12544cat >>conftest.$ac_ext <<_ACEOF
12545/* end confdefs.h. */
12546$ac_includes_default
12547int
12548main ()
12549{
b4e70030 12550static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
12551test_array [0] = 0
12552
d3ea6809
MM
12553 ;
12554 return 0;
12555}
12556_ACEOF
12557rm -f conftest.$ac_objext
12558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
b4e70030
JB
12566 { ac_try='test -z "$ac_c_werror_flag"
12567 || test ! -s conftest.err'
d3ea6809
MM
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest.$ac_objext'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
4e8d927d
DJ
12579 ac_lo=0 ac_mid=0
12580 while :; do
12581 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12582/* confdefs.h. */
12583_ACEOF
12584cat confdefs.h >>conftest.$ac_ext
12585cat >>conftest.$ac_ext <<_ACEOF
12586/* end confdefs.h. */
12587$ac_includes_default
12588int
12589main ()
12590{
b4e70030 12591static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12592test_array [0] = 0
12593
d3ea6809
MM
12594 ;
12595 return 0;
12596}
12597_ACEOF
12598rm -f conftest.$ac_objext
12599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
b4e70030
JB
12607 { ac_try='test -z "$ac_c_werror_flag"
12608 || test ! -s conftest.err'
d3ea6809
MM
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest.$ac_objext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
4e8d927d 12620 ac_hi=$ac_mid; break
d3ea6809
MM
12621else
12622 echo "$as_me: failed program was:" >&5
12623sed 's/^/| /' conftest.$ac_ext >&5
12624
b4e70030
JB
12625ac_lo=`expr $ac_mid + 1`
12626 if test $ac_lo -le $ac_mid; then
12627 ac_lo= ac_hi=
12628 break
12629 fi
12630 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 12631fi
4e8d927d
DJ
12632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12633 done
bec39cab 12634else
4e8d927d
DJ
12635 echo "$as_me: failed program was:" >&5
12636sed 's/^/| /' conftest.$ac_ext >&5
12637
b4e70030 12638cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12639/* confdefs.h. */
12640_ACEOF
12641cat confdefs.h >>conftest.$ac_ext
12642cat >>conftest.$ac_ext <<_ACEOF
12643/* end confdefs.h. */
4e8d927d 12644$ac_includes_default
bec39cab
AC
12645int
12646main ()
12647{
b4e70030 12648static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
12649test_array [0] = 0
12650
bec39cab
AC
12651 ;
12652 return 0;
12653}
12654_ACEOF
a3828db0
MK
12655rm -f conftest.$ac_objext
12656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12658 ac_status=$?
12659 grep -v '^ *+' conftest.er1 >conftest.err
12660 rm -f conftest.er1
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
b4e70030
JB
12664 { ac_try='test -z "$ac_c_werror_flag"
12665 || test ! -s conftest.err'
bec39cab
AC
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
a3828db0 12671 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
4e8d927d
DJ
12677 ac_hi=-1 ac_mid=-1
12678 while :; do
12679 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
12680/* confdefs.h. */
12681_ACEOF
12682cat confdefs.h >>conftest.$ac_ext
12683cat >>conftest.$ac_ext <<_ACEOF
12684/* end confdefs.h. */
4e8d927d 12685$ac_includes_default
f9f87d2c
MK
12686int
12687main ()
12688{
b4e70030 12689static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
12690test_array [0] = 0
12691
f9f87d2c
MK
12692 ;
12693 return 0;
12694}
12695_ACEOF
12696rm -f conftest.$ac_objext
12697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12698 (eval $ac_compile) 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
b4e70030
JB
12705 { ac_try='test -z "$ac_c_werror_flag"
12706 || test ! -s conftest.err'
f9f87d2c
MK
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest.$ac_objext'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
4e8d927d 12718 ac_lo=$ac_mid; break
f9f87d2c
MK
12719else
12720 echo "$as_me: failed program was:" >&5
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
b4e70030
JB
12723ac_hi=`expr '(' $ac_mid ')' - 1`
12724 if test $ac_mid -le $ac_hi; then
12725 ac_lo= ac_hi=
12726 break
12727 fi
12728 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 12729fi
4e8d927d
DJ
12730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12731 done
12732else
12733 echo "$as_me: failed program was:" >&5
12734sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 12735
b4e70030 12736ac_lo= ac_hi=
4e8d927d 12737fi
4e8d927d 12738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 12739fi
4e8d927d
DJ
12740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12741# Binary search between lo and hi bounds.
12742while test "x$ac_lo" != "x$ac_hi"; do
12743 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
12744 cat >conftest.$ac_ext <<_ACEOF
12745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
4e8d927d 12750$ac_includes_default
3be60c3d
MK
12751int
12752main ()
12753{
b4e70030 12754static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12755test_array [0] = 0
12756
3be60c3d
MK
12757 ;
12758 return 0;
12759}
12760_ACEOF
12761rm -f conftest.$ac_objext
12762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
b4e70030
JB
12770 { ac_try='test -z "$ac_c_werror_flag"
12771 || test ! -s conftest.err'
3be60c3d
MK
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; } &&
12777 { ac_try='test -s conftest.$ac_objext'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
4e8d927d 12783 ac_hi=$ac_mid
3be60c3d
MK
12784else
12785 echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
b4e70030 12788ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 12789fi
4e8d927d
DJ
12790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12791done
12792case $ac_lo in
12793?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 12794'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12795See \`config.log' for more details." >&5
b4e70030 12796echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12797See \`config.log' for more details." >&2;}
b4e70030 12798 { (exit 1); exit 1; }; } ;;
4e8d927d 12799esac
b4e70030
JB
12800else
12801 if test "$cross_compiling" = yes; then
12802 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12803See \`config.log' for more details." >&5
12804echo "$as_me: error: cannot run test program while cross compiling
12805See \`config.log' for more details." >&2;}
12806 { (exit 1); exit 1; }; }
4e8d927d
DJ
12807else
12808 cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
3be60c3d 12810_ACEOF
4e8d927d
DJ
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814$ac_includes_default
b4e70030
JB
12815long longval () { return (long) (sizeof (void *)); }
12816unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
12817#include <stdio.h>
12818#include <stdlib.h>
12819int
12820main ()
12821{
12822
12823 FILE *f = fopen ("conftest.val", "w");
12824 if (! f)
b4e70030
JB
12825 exit (1);
12826 if (((long) (sizeof (void *))) < 0)
4e8d927d 12827 {
b4e70030
JB
12828 long i = longval ();
12829 if (i != ((long) (sizeof (void *))))
12830 exit (1);
4e8d927d
DJ
12831 fprintf (f, "%ld\n", i);
12832 }
12833 else
12834 {
b4e70030
JB
12835 unsigned long i = ulongval ();
12836 if (i != ((long) (sizeof (void *))))
12837 exit (1);
4e8d927d
DJ
12838 fprintf (f, "%lu\n", i);
12839 }
b4e70030 12840 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12841
4e8d927d
DJ
12842 ;
12843 return 0;
12844}
12845_ACEOF
12846rm -f conftest$ac_exeext
12847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_sizeof_void_p=`cat conftest.val`
12858else
12859 echo "$as_me: program exited with status $ac_status" >&5
12860echo "$as_me: failed program was:" >&5
12861sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12862
4e8d927d 12863( exit $ac_status )
b4e70030 12864{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12865See \`config.log' for more details." >&5
b4e70030 12866echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12867See \`config.log' for more details." >&2;}
b4e70030
JB
12868 { (exit 1); exit 1; }; }
12869fi
12870rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12871fi
4e8d927d
DJ
12872fi
12873rm -f conftest.val
12874else
12875 ac_cv_sizeof_void_p=0
12876fi
12877fi
b4e70030
JB
12878echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12879echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12880cat >>confdefs.h <<_ACEOF
12881#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12882_ACEOF
f9f87d2c 12883
4e8d927d
DJ
12884 ;;
12885esac
46711df8 12886
4e8d927d
DJ
12887# Lacking an uint64_t? Test size of long
12888case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12889 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12890echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12891if test "${ac_cv_type_long+set}" = set; then
bec39cab 12892 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12893else
bec39cab
AC
12894 cat >conftest.$ac_ext <<_ACEOF
12895/* confdefs.h. */
12896_ACEOF
12897cat confdefs.h >>conftest.$ac_ext
12898cat >>conftest.$ac_ext <<_ACEOF
12899/* end confdefs.h. */
4e8d927d 12900$ac_includes_default
bec39cab 12901int
46711df8
MK
12902main ()
12903{
b4e70030 12904if ((long *) 0)
4e8d927d 12905 return 0;
b4e70030 12906if (sizeof (long))
4e8d927d 12907 return 0;
a3828db0
MK
12908 ;
12909 return 0;
46711df8 12910}
bec39cab 12911_ACEOF
a3828db0
MK
12912rm -f conftest.$ac_objext
12913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
b4e70030
JB
12921 { ac_try='test -z "$ac_c_werror_flag"
12922 || test ! -s conftest.err'
a3828db0
MK
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
bec39cab
AC
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
4e8d927d 12934 ac_cv_type_long=yes
46711df8 12935else
a3828db0 12936 echo "$as_me: failed program was:" >&5
bec39cab
AC
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
b4e70030 12939ac_cv_type_long=no
46711df8 12940fi
4e8d927d 12941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12942fi
b4e70030
JB
12943echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12944echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12945
b4e70030
JB
12946echo "$as_me:$LINENO: checking size of long" >&5
12947echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12948if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12949 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12950else
4e8d927d 12951 if test "$ac_cv_type_long" = yes; then
b4e70030 12952 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12955 # This bug is HP SR number 8606223364.
12956 if test "$cross_compiling" = yes; then
12957 # Depending upon the size, compute the lo and hi bounds.
12958cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12959/* confdefs.h. */
12960_ACEOF
12961cat confdefs.h >>conftest.$ac_ext
12962cat >>conftest.$ac_ext <<_ACEOF
12963/* end confdefs.h. */
4e8d927d 12964$ac_includes_default
4e8d927d
DJ
12965int
12966main ()
12967{
b4e70030 12968static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12969test_array [0] = 0
a3828db0 12970
4e8d927d
DJ
12971 ;
12972 return 0;
12973}
bec39cab
AC
12974_ACEOF
12975rm -f conftest.$ac_objext
12976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
b4e70030
JB
12984 { ac_try='test -z "$ac_c_werror_flag"
12985 || test ! -s conftest.err'
bec39cab
AC
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest.$ac_objext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
4e8d927d
DJ
12997 ac_lo=0 ac_mid=0
12998 while :; do
12999 cat >conftest.$ac_ext <<_ACEOF
13000/* confdefs.h. */
13001_ACEOF
13002cat confdefs.h >>conftest.$ac_ext
13003cat >>conftest.$ac_ext <<_ACEOF
13004/* end confdefs.h. */
13005$ac_includes_default
4e8d927d
DJ
13006int
13007main ()
13008{
b4e70030 13009static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
13010test_array [0] = 0
13011
13012 ;
13013 return 0;
13014}
13015_ACEOF
13016rm -f conftest.$ac_objext
13017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
b4e70030
JB
13025 { ac_try='test -z "$ac_c_werror_flag"
13026 || test ! -s conftest.err'
4e8d927d
DJ
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest.$ac_objext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_hi=$ac_mid; break
13039else
13040 echo "$as_me: failed program was:" >&5
13041sed 's/^/| /' conftest.$ac_ext >&5
13042
b4e70030
JB
13043ac_lo=`expr $ac_mid + 1`
13044 if test $ac_lo -le $ac_mid; then
13045 ac_lo= ac_hi=
13046 break
13047 fi
13048 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13049fi
4e8d927d
DJ
13050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13051 done
13052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
b4e70030 13056cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13057/* confdefs.h. */
13058_ACEOF
13059cat confdefs.h >>conftest.$ac_ext
13060cat >>conftest.$ac_ext <<_ACEOF
13061/* end confdefs.h. */
13062$ac_includes_default
4e8d927d
DJ
13063int
13064main ()
13065{
b4e70030 13066static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
13067test_array [0] = 0
13068
13069 ;
13070 return 0;
13071}
13072_ACEOF
13073rm -f conftest.$ac_objext
13074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075 (eval $ac_compile) 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
b4e70030
JB
13082 { ac_try='test -z "$ac_c_werror_flag"
13083 || test ! -s conftest.err'
4e8d927d
DJ
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest.$ac_objext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 ac_hi=-1 ac_mid=-1
13096 while :; do
13097 cat >conftest.$ac_ext <<_ACEOF
13098/* confdefs.h. */
13099_ACEOF
13100cat confdefs.h >>conftest.$ac_ext
13101cat >>conftest.$ac_ext <<_ACEOF
13102/* end confdefs.h. */
13103$ac_includes_default
4e8d927d
DJ
13104int
13105main ()
13106{
b4e70030 13107static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
13108test_array [0] = 0
13109
13110 ;
13111 return 0;
13112}
13113_ACEOF
13114rm -f conftest.$ac_objext
13115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
b4e70030
JB
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
4e8d927d
DJ
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_lo=$ac_mid; break
13137else
13138 echo "$as_me: failed program was:" >&5
13139sed 's/^/| /' conftest.$ac_ext >&5
13140
b4e70030
JB
13141ac_hi=`expr '(' $ac_mid ')' - 1`
13142 if test $ac_mid -le $ac_hi; then
13143 ac_lo= ac_hi=
13144 break
13145 fi
13146 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13147fi
4e8d927d
DJ
13148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13149 done
13150else
13151 echo "$as_me: failed program was:" >&5
13152sed 's/^/| /' conftest.$ac_ext >&5
13153
b4e70030 13154ac_lo= ac_hi=
4e8d927d 13155fi
4e8d927d
DJ
13156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13157fi
4e8d927d
DJ
13158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13159# Binary search between lo and hi bounds.
13160while test "x$ac_lo" != "x$ac_hi"; do
13161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13162 cat >conftest.$ac_ext <<_ACEOF
13163/* confdefs.h. */
13164_ACEOF
13165cat confdefs.h >>conftest.$ac_ext
13166cat >>conftest.$ac_ext <<_ACEOF
13167/* end confdefs.h. */
13168$ac_includes_default
4e8d927d
DJ
13169int
13170main ()
13171{
b4e70030 13172static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
13173test_array [0] = 0
13174
13175 ;
13176 return 0;
13177}
13178_ACEOF
13179rm -f conftest.$ac_objext
13180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
b4e70030
JB
13188 { ac_try='test -z "$ac_c_werror_flag"
13189 || test ! -s conftest.err'
4e8d927d
DJ
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest.$ac_objext'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 ac_hi=$ac_mid
13202else
13203 echo "$as_me: failed program was:" >&5
13204sed 's/^/| /' conftest.$ac_ext >&5
13205
b4e70030 13206ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13207fi
4e8d927d
DJ
13208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13209done
13210case $ac_lo in
13211?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 13212'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 13213See \`config.log' for more details." >&5
b4e70030 13214echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 13215See \`config.log' for more details." >&2;}
b4e70030 13216 { (exit 1); exit 1; }; } ;;
4e8d927d 13217esac
b4e70030
JB
13218else
13219 if test "$cross_compiling" = yes; then
13220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13221See \`config.log' for more details." >&5
13222echo "$as_me: error: cannot run test program while cross compiling
13223See \`config.log' for more details." >&2;}
13224 { (exit 1); exit 1; }; }
4e8d927d
DJ
13225else
13226 cat >conftest.$ac_ext <<_ACEOF
13227/* confdefs.h. */
13228_ACEOF
13229cat confdefs.h >>conftest.$ac_ext
13230cat >>conftest.$ac_ext <<_ACEOF
13231/* end confdefs.h. */
13232$ac_includes_default
b4e70030
JB
13233long longval () { return (long) (sizeof (long)); }
13234unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
13235#include <stdio.h>
13236#include <stdlib.h>
13237int
13238main ()
13239{
13240
13241 FILE *f = fopen ("conftest.val", "w");
13242 if (! f)
b4e70030
JB
13243 exit (1);
13244 if (((long) (sizeof (long))) < 0)
4e8d927d 13245 {
b4e70030
JB
13246 long i = longval ();
13247 if (i != ((long) (sizeof (long))))
13248 exit (1);
4e8d927d
DJ
13249 fprintf (f, "%ld\n", i);
13250 }
13251 else
13252 {
b4e70030
JB
13253 unsigned long i = ulongval ();
13254 if (i != ((long) (sizeof (long))))
13255 exit (1);
4e8d927d
DJ
13256 fprintf (f, "%lu\n", i);
13257 }
b4e70030 13258 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13259
13260 ;
13261 return 0;
13262}
13263_ACEOF
13264rm -f conftest$ac_exeext
13265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13266 (eval $ac_link) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_cv_sizeof_long=`cat conftest.val`
13276else
13277 echo "$as_me: program exited with status $ac_status" >&5
13278echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
13281( exit $ac_status )
b4e70030 13282{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 13283See \`config.log' for more details." >&5
b4e70030 13284echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 13285See \`config.log' for more details." >&2;}
b4e70030
JB
13286 { (exit 1); exit 1; }; }
13287fi
13288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13289fi
4e8d927d
DJ
13290fi
13291rm -f conftest.val
13292else
13293 ac_cv_sizeof_long=0
13294fi
13295fi
b4e70030
JB
13296echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13297echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
13298cat >>confdefs.h <<_ACEOF
13299#define SIZEOF_LONG $ac_cv_sizeof_long
13300_ACEOF
13301
13302 ;;
13303esac
13304
13305if test $acx_cv_header_stdint = stddef.h; then
13306 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
13307 echo "$as_me:$LINENO: checking for int" >&5
13308echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
13309if test "${ac_cv_type_int+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311else
13312 cat >conftest.$ac_ext <<_ACEOF
13313/* confdefs.h. */
13314_ACEOF
13315cat confdefs.h >>conftest.$ac_ext
13316cat >>conftest.$ac_ext <<_ACEOF
13317/* end confdefs.h. */
13318$ac_includes_default
4e8d927d
DJ
13319int
13320main ()
13321{
b4e70030 13322if ((int *) 0)
4e8d927d 13323 return 0;
b4e70030 13324if (sizeof (int))
4e8d927d
DJ
13325 return 0;
13326 ;
13327 return 0;
13328}
13329_ACEOF
13330rm -f conftest.$ac_objext
13331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332 (eval $ac_compile) 2>conftest.er1
13333 ac_status=$?
13334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
b4e70030
JB
13339 { ac_try='test -z "$ac_c_werror_flag"
13340 || test ! -s conftest.err'
4e8d927d
DJ
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; } &&
13346 { ac_try='test -s conftest.$ac_objext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_type_int=yes
13353else
13354 echo "$as_me: failed program was:" >&5
13355sed 's/^/| /' conftest.$ac_ext >&5
13356
b4e70030 13357ac_cv_type_int=no
4e8d927d 13358fi
4e8d927d
DJ
13359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13360fi
b4e70030
JB
13361echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13362echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 13363
b4e70030
JB
13364echo "$as_me:$LINENO: checking size of int" >&5
13365echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
13366if test "${ac_cv_sizeof_int+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13368else
13369 if test "$ac_cv_type_int" = yes; then
b4e70030 13370 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13373 # This bug is HP SR number 8606223364.
13374 if test "$cross_compiling" = yes; then
13375 # Depending upon the size, compute the lo and hi bounds.
13376cat >conftest.$ac_ext <<_ACEOF
13377/* confdefs.h. */
13378_ACEOF
13379cat confdefs.h >>conftest.$ac_ext
13380cat >>conftest.$ac_ext <<_ACEOF
13381/* end confdefs.h. */
13382$ac_includes_default
4e8d927d
DJ
13383int
13384main ()
13385{
b4e70030 13386static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
13387test_array [0] = 0
13388
13389 ;
13390 return 0;
13391}
13392_ACEOF
13393rm -f conftest.$ac_objext
13394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13395 (eval $ac_compile) 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
b4e70030
JB
13402 { ac_try='test -z "$ac_c_werror_flag"
13403 || test ! -s conftest.err'
4e8d927d
DJ
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest.$ac_objext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 ac_lo=0 ac_mid=0
13416 while :; do
13417 cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423$ac_includes_default
4e8d927d
DJ
13424int
13425main ()
13426{
b4e70030 13427static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13428test_array [0] = 0
13429
13430 ;
13431 return 0;
13432}
13433_ACEOF
13434rm -f conftest.$ac_objext
13435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13436 (eval $ac_compile) 2>conftest.er1
13437 ac_status=$?
13438 grep -v '^ *+' conftest.er1 >conftest.err
13439 rm -f conftest.er1
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
b4e70030
JB
13443 { ac_try='test -z "$ac_c_werror_flag"
13444 || test ! -s conftest.err'
4e8d927d
DJ
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest.$ac_objext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 ac_hi=$ac_mid; break
13457else
13458 echo "$as_me: failed program was:" >&5
13459sed 's/^/| /' conftest.$ac_ext >&5
13460
b4e70030
JB
13461ac_lo=`expr $ac_mid + 1`
13462 if test $ac_lo -le $ac_mid; then
13463 ac_lo= ac_hi=
13464 break
13465 fi
13466 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13467fi
4e8d927d
DJ
13468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13469 done
13470else
13471 echo "$as_me: failed program was:" >&5
13472sed 's/^/| /' conftest.$ac_ext >&5
13473
b4e70030 13474cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13475/* confdefs.h. */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
13479/* end confdefs.h. */
13480$ac_includes_default
4e8d927d
DJ
13481int
13482main ()
13483{
b4e70030 13484static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
13485test_array [0] = 0
13486
13487 ;
13488 return 0;
13489}
13490_ACEOF
13491rm -f conftest.$ac_objext
13492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
b4e70030
JB
13500 { ac_try='test -z "$ac_c_werror_flag"
13501 || test ! -s conftest.err'
4e8d927d
DJ
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest.$ac_objext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 ac_hi=-1 ac_mid=-1
13514 while :; do
13515 cat >conftest.$ac_ext <<_ACEOF
13516/* confdefs.h. */
13517_ACEOF
13518cat confdefs.h >>conftest.$ac_ext
13519cat >>conftest.$ac_ext <<_ACEOF
13520/* end confdefs.h. */
13521$ac_includes_default
4e8d927d
DJ
13522int
13523main ()
13524{
b4e70030 13525static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
13526test_array [0] = 0
13527
13528 ;
13529 return 0;
13530}
13531_ACEOF
13532rm -f conftest.$ac_objext
13533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
b4e70030
JB
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
4e8d927d
DJ
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest.$ac_objext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_lo=$ac_mid; break
13555else
13556 echo "$as_me: failed program was:" >&5
13557sed 's/^/| /' conftest.$ac_ext >&5
13558
b4e70030
JB
13559ac_hi=`expr '(' $ac_mid ')' - 1`
13560 if test $ac_mid -le $ac_hi; then
13561 ac_lo= ac_hi=
13562 break
13563 fi
13564 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13565fi
4e8d927d
DJ
13566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13567 done
13568else
13569 echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
13571
b4e70030 13572ac_lo= ac_hi=
4e8d927d 13573fi
4e8d927d
DJ
13574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13575fi
4e8d927d
DJ
13576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13577# Binary search between lo and hi bounds.
13578while test "x$ac_lo" != "x$ac_hi"; do
13579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13580 cat >conftest.$ac_ext <<_ACEOF
13581/* confdefs.h. */
13582_ACEOF
13583cat confdefs.h >>conftest.$ac_ext
13584cat >>conftest.$ac_ext <<_ACEOF
13585/* end confdefs.h. */
13586$ac_includes_default
4e8d927d
DJ
13587int
13588main ()
13589{
b4e70030 13590static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13591test_array [0] = 0
13592
13593 ;
13594 return 0;
13595}
13596_ACEOF
13597rm -f conftest.$ac_objext
13598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13599 (eval $ac_compile) 2>conftest.er1
13600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
b4e70030
JB
13606 { ac_try='test -z "$ac_c_werror_flag"
13607 || test ! -s conftest.err'
4e8d927d
DJ
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest.$ac_objext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_hi=$ac_mid
13620else
13621 echo "$as_me: failed program was:" >&5
13622sed 's/^/| /' conftest.$ac_ext >&5
13623
b4e70030 13624ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13625fi
4e8d927d
DJ
13626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13627done
13628case $ac_lo in
13629?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 13630'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13631See \`config.log' for more details." >&5
b4e70030 13632echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13633See \`config.log' for more details." >&2;}
b4e70030 13634 { (exit 1); exit 1; }; } ;;
4e8d927d 13635esac
b4e70030
JB
13636else
13637 if test "$cross_compiling" = yes; then
13638 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13639See \`config.log' for more details." >&5
13640echo "$as_me: error: cannot run test program while cross compiling
13641See \`config.log' for more details." >&2;}
13642 { (exit 1); exit 1; }; }
4e8d927d
DJ
13643else
13644 cat >conftest.$ac_ext <<_ACEOF
13645/* confdefs.h. */
13646_ACEOF
13647cat confdefs.h >>conftest.$ac_ext
13648cat >>conftest.$ac_ext <<_ACEOF
13649/* end confdefs.h. */
13650$ac_includes_default
b4e70030
JB
13651long longval () { return (long) (sizeof (int)); }
13652unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
13653#include <stdio.h>
13654#include <stdlib.h>
13655int
13656main ()
13657{
13658
13659 FILE *f = fopen ("conftest.val", "w");
13660 if (! f)
b4e70030
JB
13661 exit (1);
13662 if (((long) (sizeof (int))) < 0)
4e8d927d 13663 {
b4e70030
JB
13664 long i = longval ();
13665 if (i != ((long) (sizeof (int))))
13666 exit (1);
4e8d927d
DJ
13667 fprintf (f, "%ld\n", i);
13668 }
13669 else
13670 {
b4e70030
JB
13671 unsigned long i = ulongval ();
13672 if (i != ((long) (sizeof (int))))
13673 exit (1);
4e8d927d
DJ
13674 fprintf (f, "%lu\n", i);
13675 }
b4e70030 13676 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13677
13678 ;
13679 return 0;
13680}
13681_ACEOF
13682rm -f conftest$ac_exeext
13683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13684 (eval $ac_link) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_cv_sizeof_int=`cat conftest.val`
13694else
13695 echo "$as_me: program exited with status $ac_status" >&5
13696echo "$as_me: failed program was:" >&5
13697sed 's/^/| /' conftest.$ac_ext >&5
13698
13699( exit $ac_status )
b4e70030 13700{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13701See \`config.log' for more details." >&5
b4e70030 13702echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13703See \`config.log' for more details." >&2;}
b4e70030
JB
13704 { (exit 1); exit 1; }; }
13705fi
13706rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13707fi
4e8d927d
DJ
13708fi
13709rm -f conftest.val
13710else
13711 ac_cv_sizeof_int=0
13712fi
13713fi
b4e70030
JB
13714echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13715echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
13716cat >>confdefs.h <<_ACEOF
13717#define SIZEOF_INT $ac_cv_sizeof_int
13718_ACEOF
13719
13720
b4e70030
JB
13721 echo "$as_me:$LINENO: checking for short" >&5
13722echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
13723if test "${ac_cv_type_short+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725else
13726 cat >conftest.$ac_ext <<_ACEOF
13727/* confdefs.h. */
13728_ACEOF
13729cat confdefs.h >>conftest.$ac_ext
13730cat >>conftest.$ac_ext <<_ACEOF
13731/* end confdefs.h. */
13732$ac_includes_default
4e8d927d
DJ
13733int
13734main ()
13735{
b4e70030 13736if ((short *) 0)
4e8d927d 13737 return 0;
b4e70030 13738if (sizeof (short))
4e8d927d
DJ
13739 return 0;
13740 ;
13741 return 0;
13742}
13743_ACEOF
13744rm -f conftest.$ac_objext
13745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13746 (eval $ac_compile) 2>conftest.er1
13747 ac_status=$?
13748 grep -v '^ *+' conftest.er1 >conftest.err
13749 rm -f conftest.er1
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
b4e70030
JB
13753 { ac_try='test -z "$ac_c_werror_flag"
13754 || test ! -s conftest.err'
4e8d927d
DJ
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_type_short=yes
13767else
13768 echo "$as_me: failed program was:" >&5
13769sed 's/^/| /' conftest.$ac_ext >&5
13770
b4e70030 13771ac_cv_type_short=no
4e8d927d 13772fi
4e8d927d
DJ
13773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13774fi
b4e70030
JB
13775echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13776echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 13777
b4e70030
JB
13778echo "$as_me:$LINENO: checking size of short" >&5
13779echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
13780if test "${ac_cv_sizeof_short+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783 if test "$ac_cv_type_short" = yes; then
b4e70030 13784 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13787 # This bug is HP SR number 8606223364.
13788 if test "$cross_compiling" = yes; then
13789 # Depending upon the size, compute the lo and hi bounds.
13790cat >conftest.$ac_ext <<_ACEOF
13791/* confdefs.h. */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
13795/* end confdefs.h. */
13796$ac_includes_default
4e8d927d
DJ
13797int
13798main ()
13799{
b4e70030 13800static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
13801test_array [0] = 0
13802
13803 ;
13804 return 0;
13805}
13806_ACEOF
13807rm -f conftest.$ac_objext
13808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13809 (eval $ac_compile) 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
b4e70030
JB
13816 { ac_try='test -z "$ac_c_werror_flag"
13817 || test ! -s conftest.err'
4e8d927d
DJ
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; } &&
13823 { ac_try='test -s conftest.$ac_objext'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 ac_lo=0 ac_mid=0
13830 while :; do
13831 cat >conftest.$ac_ext <<_ACEOF
13832/* confdefs.h. */
13833_ACEOF
13834cat confdefs.h >>conftest.$ac_ext
13835cat >>conftest.$ac_ext <<_ACEOF
13836/* end confdefs.h. */
13837$ac_includes_default
4e8d927d
DJ
13838int
13839main ()
13840{
b4e70030 13841static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13842test_array [0] = 0
13843
13844 ;
13845 return 0;
13846}
13847_ACEOF
13848rm -f conftest.$ac_objext
13849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13850 (eval $ac_compile) 2>conftest.er1
13851 ac_status=$?
13852 grep -v '^ *+' conftest.er1 >conftest.err
13853 rm -f conftest.er1
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
b4e70030
JB
13857 { ac_try='test -z "$ac_c_werror_flag"
13858 || test ! -s conftest.err'
4e8d927d
DJ
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest.$ac_objext'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 ac_hi=$ac_mid; break
13871else
13872 echo "$as_me: failed program was:" >&5
13873sed 's/^/| /' conftest.$ac_ext >&5
13874
b4e70030
JB
13875ac_lo=`expr $ac_mid + 1`
13876 if test $ac_lo -le $ac_mid; then
13877 ac_lo= ac_hi=
13878 break
13879 fi
13880 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13881fi
4e8d927d
DJ
13882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13883 done
13884else
13885 echo "$as_me: failed program was:" >&5
13886sed 's/^/| /' conftest.$ac_ext >&5
13887
b4e70030 13888cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13889/* confdefs.h. */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h. */
13894$ac_includes_default
4e8d927d
DJ
13895int
13896main ()
13897{
b4e70030 13898static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13899test_array [0] = 0
13900
13901 ;
13902 return 0;
13903}
13904_ACEOF
13905rm -f conftest.$ac_objext
13906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
b4e70030
JB
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
4e8d927d
DJ
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest.$ac_objext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_hi=-1 ac_mid=-1
13928 while :; do
13929 cat >conftest.$ac_ext <<_ACEOF
13930/* confdefs.h. */
13931_ACEOF
13932cat confdefs.h >>conftest.$ac_ext
13933cat >>conftest.$ac_ext <<_ACEOF
13934/* end confdefs.h. */
13935$ac_includes_default
4e8d927d
DJ
13936int
13937main ()
13938{
b4e70030 13939static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13940test_array [0] = 0
13941
13942 ;
13943 return 0;
13944}
13945_ACEOF
13946rm -f conftest.$ac_objext
13947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>conftest.er1
13949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
b4e70030
JB
13955 { ac_try='test -z "$ac_c_werror_flag"
13956 || test ! -s conftest.err'
4e8d927d
DJ
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_lo=$ac_mid; break
13969else
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
b4e70030
JB
13973ac_hi=`expr '(' $ac_mid ')' - 1`
13974 if test $ac_mid -le $ac_hi; then
13975 ac_lo= ac_hi=
13976 break
13977 fi
13978 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13979fi
4e8d927d
DJ
13980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13981 done
13982else
13983 echo "$as_me: failed program was:" >&5
13984sed 's/^/| /' conftest.$ac_ext >&5
13985
b4e70030 13986ac_lo= ac_hi=
4e8d927d 13987fi
4e8d927d
DJ
13988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13989fi
4e8d927d
DJ
13990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13991# Binary search between lo and hi bounds.
13992while test "x$ac_lo" != "x$ac_hi"; do
13993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13994 cat >conftest.$ac_ext <<_ACEOF
13995/* confdefs.h. */
13996_ACEOF
13997cat confdefs.h >>conftest.$ac_ext
13998cat >>conftest.$ac_ext <<_ACEOF
13999/* end confdefs.h. */
14000$ac_includes_default
4e8d927d
DJ
14001int
14002main ()
14003{
b4e70030 14004static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
14005test_array [0] = 0
14006
14007 ;
14008 return 0;
14009}
14010_ACEOF
14011rm -f conftest.$ac_objext
14012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
b4e70030
JB
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
4e8d927d
DJ
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_hi=$ac_mid
14034else
14035 echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
b4e70030 14038ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14039fi
4e8d927d
DJ
14040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14041done
14042case $ac_lo in
14043?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 14044'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 14045See \`config.log' for more details." >&5
b4e70030 14046echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 14047See \`config.log' for more details." >&2;}
b4e70030 14048 { (exit 1); exit 1; }; } ;;
4e8d927d 14049esac
b4e70030
JB
14050else
14051 if test "$cross_compiling" = yes; then
14052 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14053See \`config.log' for more details." >&5
14054echo "$as_me: error: cannot run test program while cross compiling
14055See \`config.log' for more details." >&2;}
14056 { (exit 1); exit 1; }; }
4e8d927d
DJ
14057else
14058 cat >conftest.$ac_ext <<_ACEOF
14059/* confdefs.h. */
14060_ACEOF
14061cat confdefs.h >>conftest.$ac_ext
14062cat >>conftest.$ac_ext <<_ACEOF
14063/* end confdefs.h. */
14064$ac_includes_default
b4e70030
JB
14065long longval () { return (long) (sizeof (short)); }
14066unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
14067#include <stdio.h>
14068#include <stdlib.h>
14069int
14070main ()
14071{
14072
14073 FILE *f = fopen ("conftest.val", "w");
14074 if (! f)
b4e70030
JB
14075 exit (1);
14076 if (((long) (sizeof (short))) < 0)
4e8d927d 14077 {
b4e70030
JB
14078 long i = longval ();
14079 if (i != ((long) (sizeof (short))))
14080 exit (1);
4e8d927d
DJ
14081 fprintf (f, "%ld\n", i);
14082 }
14083 else
14084 {
b4e70030
JB
14085 unsigned long i = ulongval ();
14086 if (i != ((long) (sizeof (short))))
14087 exit (1);
4e8d927d
DJ
14088 fprintf (f, "%lu\n", i);
14089 }
b4e70030 14090 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14091
14092 ;
14093 return 0;
14094}
14095_ACEOF
14096rm -f conftest$ac_exeext
14097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14098 (eval $ac_link) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_cv_sizeof_short=`cat conftest.val`
14108else
14109 echo "$as_me: program exited with status $ac_status" >&5
14110echo "$as_me: failed program was:" >&5
14111sed 's/^/| /' conftest.$ac_ext >&5
14112
14113( exit $ac_status )
b4e70030 14114{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 14115See \`config.log' for more details." >&5
b4e70030 14116echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 14117See \`config.log' for more details." >&2;}
b4e70030
JB
14118 { (exit 1); exit 1; }; }
14119fi
14120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14121fi
4e8d927d
DJ
14122fi
14123rm -f conftest.val
14124else
14125 ac_cv_sizeof_short=0
14126fi
14127fi
b4e70030
JB
14128echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14129echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
14130cat >>confdefs.h <<_ACEOF
14131#define SIZEOF_SHORT $ac_cv_sizeof_short
14132_ACEOF
14133
14134
b4e70030
JB
14135 echo "$as_me:$LINENO: checking for char" >&5
14136echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
14137if test "${ac_cv_type_char+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139else
14140 cat >conftest.$ac_ext <<_ACEOF
14141/* confdefs.h. */
14142_ACEOF
14143cat confdefs.h >>conftest.$ac_ext
14144cat >>conftest.$ac_ext <<_ACEOF
14145/* end confdefs.h. */
14146$ac_includes_default
4e8d927d
DJ
14147int
14148main ()
14149{
b4e70030 14150if ((char *) 0)
4e8d927d 14151 return 0;
b4e70030 14152if (sizeof (char))
4e8d927d
DJ
14153 return 0;
14154 ;
14155 return 0;
14156}
14157_ACEOF
14158rm -f conftest.$ac_objext
14159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
b4e70030
JB
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
4e8d927d
DJ
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_type_char=yes
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
b4e70030 14185ac_cv_type_char=no
4e8d927d 14186fi
4e8d927d
DJ
14187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14188fi
b4e70030
JB
14189echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14190echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 14191
b4e70030
JB
14192echo "$as_me:$LINENO: checking size of char" >&5
14193echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
14194if test "${ac_cv_sizeof_char+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196else
14197 if test "$ac_cv_type_char" = yes; then
b4e70030 14198 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
14199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14201 # This bug is HP SR number 8606223364.
14202 if test "$cross_compiling" = yes; then
14203 # Depending upon the size, compute the lo and hi bounds.
14204cat >conftest.$ac_ext <<_ACEOF
14205/* confdefs.h. */
14206_ACEOF
14207cat confdefs.h >>conftest.$ac_ext
14208cat >>conftest.$ac_ext <<_ACEOF
14209/* end confdefs.h. */
14210$ac_includes_default
4e8d927d
DJ
14211int
14212main ()
14213{
b4e70030 14214static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
14215test_array [0] = 0
14216
14217 ;
14218 return 0;
14219}
14220_ACEOF
14221rm -f conftest.$ac_objext
14222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
b4e70030
JB
14230 { ac_try='test -z "$ac_c_werror_flag"
14231 || test ! -s conftest.err'
4e8d927d
DJ
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_lo=0 ac_mid=0
14244 while :; do
14245 cat >conftest.$ac_ext <<_ACEOF
14246/* confdefs.h. */
14247_ACEOF
14248cat confdefs.h >>conftest.$ac_ext
14249cat >>conftest.$ac_ext <<_ACEOF
14250/* end confdefs.h. */
14251$ac_includes_default
4e8d927d
DJ
14252int
14253main ()
14254{
b4e70030 14255static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
14256test_array [0] = 0
14257
14258 ;
14259 return 0;
14260}
14261_ACEOF
14262rm -f conftest.$ac_objext
14263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264 (eval $ac_compile) 2>conftest.er1
14265 ac_status=$?
14266 grep -v '^ *+' conftest.er1 >conftest.err
14267 rm -f conftest.er1
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
b4e70030
JB
14271 { ac_try='test -z "$ac_c_werror_flag"
14272 || test ! -s conftest.err'
4e8d927d
DJ
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try='test -s conftest.$ac_objext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_hi=$ac_mid; break
14285else
14286 echo "$as_me: failed program was:" >&5
14287sed 's/^/| /' conftest.$ac_ext >&5
14288
b4e70030
JB
14289ac_lo=`expr $ac_mid + 1`
14290 if test $ac_lo -le $ac_mid; then
14291 ac_lo= ac_hi=
14292 break
14293 fi
14294 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14295fi
4e8d927d
DJ
14296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14297 done
14298else
14299 echo "$as_me: failed program was:" >&5
14300sed 's/^/| /' conftest.$ac_ext >&5
14301
b4e70030 14302cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14303/* confdefs.h. */
14304_ACEOF
14305cat confdefs.h >>conftest.$ac_ext
14306cat >>conftest.$ac_ext <<_ACEOF
14307/* end confdefs.h. */
14308$ac_includes_default
4e8d927d
DJ
14309int
14310main ()
14311{
b4e70030 14312static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
14313test_array [0] = 0
14314
14315 ;
14316 return 0;
14317}
14318_ACEOF
14319rm -f conftest.$ac_objext
14320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
b4e70030
JB
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
4e8d927d
DJ
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_hi=-1 ac_mid=-1
14342 while :; do
14343 cat >conftest.$ac_ext <<_ACEOF
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349$ac_includes_default
4e8d927d
DJ
14350int
14351main ()
14352{
b4e70030 14353static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
14354test_array [0] = 0
14355
14356 ;
14357 return 0;
14358}
14359_ACEOF
14360rm -f conftest.$ac_objext
14361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362 (eval $ac_compile) 2>conftest.er1
14363 ac_status=$?
14364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
b4e70030
JB
14369 { ac_try='test -z "$ac_c_werror_flag"
14370 || test ! -s conftest.err'
4e8d927d
DJ
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest.$ac_objext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_lo=$ac_mid; break
14383else
14384 echo "$as_me: failed program was:" >&5
14385sed 's/^/| /' conftest.$ac_ext >&5
14386
b4e70030
JB
14387ac_hi=`expr '(' $ac_mid ')' - 1`
14388 if test $ac_mid -le $ac_hi; then
14389 ac_lo= ac_hi=
14390 break
14391 fi
14392 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14393fi
4e8d927d
DJ
14394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14395 done
14396else
14397 echo "$as_me: failed program was:" >&5
14398sed 's/^/| /' conftest.$ac_ext >&5
14399
b4e70030 14400ac_lo= ac_hi=
4e8d927d 14401fi
4e8d927d
DJ
14402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14403fi
4e8d927d
DJ
14404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14405# Binary search between lo and hi bounds.
14406while test "x$ac_lo" != "x$ac_hi"; do
14407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14408 cat >conftest.$ac_ext <<_ACEOF
14409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
14413/* end confdefs.h. */
14414$ac_includes_default
4e8d927d
DJ
14415int
14416main ()
14417{
b4e70030 14418static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
14419test_array [0] = 0
14420
14421 ;
14422 return 0;
14423}
14424_ACEOF
14425rm -f conftest.$ac_objext
14426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
b4e70030
JB
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
4e8d927d
DJ
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 ac_hi=$ac_mid
14448else
14449 echo "$as_me: failed program was:" >&5
14450sed 's/^/| /' conftest.$ac_ext >&5
14451
b4e70030 14452ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14453fi
4e8d927d
DJ
14454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14455done
14456case $ac_lo in
14457?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 14458'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14459See \`config.log' for more details." >&5
b4e70030 14460echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14461See \`config.log' for more details." >&2;}
b4e70030 14462 { (exit 1); exit 1; }; } ;;
4e8d927d 14463esac
b4e70030
JB
14464else
14465 if test "$cross_compiling" = yes; then
14466 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14467See \`config.log' for more details." >&5
14468echo "$as_me: error: cannot run test program while cross compiling
14469See \`config.log' for more details." >&2;}
14470 { (exit 1); exit 1; }; }
4e8d927d
DJ
14471else
14472 cat >conftest.$ac_ext <<_ACEOF
14473/* confdefs.h. */
14474_ACEOF
14475cat confdefs.h >>conftest.$ac_ext
14476cat >>conftest.$ac_ext <<_ACEOF
14477/* end confdefs.h. */
14478$ac_includes_default
b4e70030
JB
14479long longval () { return (long) (sizeof (char)); }
14480unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
14481#include <stdio.h>
14482#include <stdlib.h>
14483int
14484main ()
14485{
14486
14487 FILE *f = fopen ("conftest.val", "w");
14488 if (! f)
b4e70030
JB
14489 exit (1);
14490 if (((long) (sizeof (char))) < 0)
4e8d927d 14491 {
b4e70030
JB
14492 long i = longval ();
14493 if (i != ((long) (sizeof (char))))
14494 exit (1);
4e8d927d
DJ
14495 fprintf (f, "%ld\n", i);
14496 }
14497 else
14498 {
b4e70030
JB
14499 unsigned long i = ulongval ();
14500 if (i != ((long) (sizeof (char))))
14501 exit (1);
4e8d927d
DJ
14502 fprintf (f, "%lu\n", i);
14503 }
b4e70030 14504 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14505
14506 ;
14507 return 0;
14508}
14509_ACEOF
14510rm -f conftest$ac_exeext
14511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512 (eval $ac_link) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_cv_sizeof_char=`cat conftest.val`
14522else
14523 echo "$as_me: program exited with status $ac_status" >&5
14524echo "$as_me: failed program was:" >&5
14525sed 's/^/| /' conftest.$ac_ext >&5
14526
14527( exit $ac_status )
b4e70030 14528{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14529See \`config.log' for more details." >&5
b4e70030 14530echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14531See \`config.log' for more details." >&2;}
b4e70030
JB
14532 { (exit 1); exit 1; }; }
14533fi
14534rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14535fi
4e8d927d
DJ
14536fi
14537rm -f conftest.val
14538else
14539 ac_cv_sizeof_char=0
14540fi
14541fi
b4e70030
JB
14542echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14543echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
14544cat >>confdefs.h <<_ACEOF
14545#define SIZEOF_CHAR $ac_cv_sizeof_char
14546_ACEOF
14547
14548
14549
b4e70030
JB
14550 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14551echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
14552 case "$ac_cv_sizeof_char" in
14553 1) acx_cv_type_int8_t=char ;;
14554 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14555echo "$as_me: error: no 8-bit type" >&2;}
14556 { (exit please report a bug); exit please report a bug; }; }
14557 esac
b4e70030
JB
14558 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14559echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 14560
b4e70030
JB
14561 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14562echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
14563 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14564 2:*) acx_cv_type_int16_t=int ;;
14565 *:2) acx_cv_type_int16_t=short ;;
14566 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14567echo "$as_me: error: no 16-bit type" >&2;}
14568 { (exit please report a bug); exit please report a bug; }; }
14569 esac
b4e70030
JB
14570 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14571echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 14572
b4e70030
JB
14573 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14574echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
14575 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14576 4:*) acx_cv_type_int32_t=int ;;
14577 *:4) acx_cv_type_int32_t=long ;;
14578 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14579echo "$as_me: error: no 32-bit type" >&2;}
14580 { (exit please report a bug); exit please report a bug; }; }
14581 esac
b4e70030
JB
14582 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14583echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
14584fi
14585
14586# These tests are here to make the output prettier
14587
14588if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14589 case "$ac_cv_sizeof_long" in
14590 8) acx_cv_type_int64_t=long ;;
14591 esac
b4e70030
JB
14592 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14593echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14594 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14595echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
14596fi
14597
14598# Now we can use the above types
14599
14600if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
14601 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14602echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
14603 case $ac_cv_sizeof_void_p in
14604 2) acx_cv_type_intptr_t=int16_t ;;
14605 4) acx_cv_type_intptr_t=int32_t ;;
14606 8) acx_cv_type_intptr_t=int64_t ;;
14607 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14608echo "$as_me: error: no equivalent for intptr_t" >&2;}
14609 { (exit please report a bug); exit please report a bug; }; }
14610 esac
b4e70030
JB
14611 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14612echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
14613fi
14614
14615# ----------------- done all checks, emit header -------------
b4e70030 14616 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
14617
14618
14619
14620
14621# ------------------------- #
14622# Checks for declarations. #
14623# ------------------------- #
14624
b4e70030
JB
14625echo "$as_me:$LINENO: checking whether free is declared" >&5
14626echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
14627if test "${ac_cv_have_decl_free+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14629else
14630 cat >conftest.$ac_ext <<_ACEOF
14631/* confdefs.h. */
14632_ACEOF
14633cat confdefs.h >>conftest.$ac_ext
14634cat >>conftest.$ac_ext <<_ACEOF
14635/* end confdefs.h. */
14636$ac_includes_default
14637int
14638main ()
14639{
14640#ifndef free
14641 char *p = (char *) free;
4e8d927d
DJ
14642#endif
14643
14644 ;
14645 return 0;
14646}
14647_ACEOF
14648rm -f conftest.$ac_objext
14649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650 (eval $ac_compile) 2>conftest.er1
14651 ac_status=$?
14652 grep -v '^ *+' conftest.er1 >conftest.err
14653 rm -f conftest.er1
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
b4e70030
JB
14657 { ac_try='test -z "$ac_c_werror_flag"
14658 || test ! -s conftest.err'
4e8d927d
DJ
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14670 ac_cv_have_decl_free=yes
14671else
14672 echo "$as_me: failed program was:" >&5
14673sed 's/^/| /' conftest.$ac_ext >&5
14674
b4e70030 14675ac_cv_have_decl_free=no
4e8d927d 14676fi
4e8d927d
DJ
14677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14678fi
b4e70030
JB
14679echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14680echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
14681if test $ac_cv_have_decl_free = yes; then
14682
14683cat >>confdefs.h <<_ACEOF
14684#define HAVE_DECL_FREE 1
14685_ACEOF
14686
14687
14688else
14689 cat >>confdefs.h <<_ACEOF
14690#define HAVE_DECL_FREE 0
14691_ACEOF
14692
14693
14694fi
b4e70030
JB
14695echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14696echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14697if test "${ac_cv_have_decl_malloc+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14699else
14700 cat >conftest.$ac_ext <<_ACEOF
14701/* confdefs.h. */
14702_ACEOF
14703cat confdefs.h >>conftest.$ac_ext
14704cat >>conftest.$ac_ext <<_ACEOF
14705/* end confdefs.h. */
14706$ac_includes_default
14707int
14708main ()
14709{
14710#ifndef malloc
14711 char *p = (char *) malloc;
4e8d927d
DJ
14712#endif
14713
14714 ;
14715 return 0;
14716}
14717_ACEOF
14718rm -f conftest.$ac_objext
14719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
b4e70030
JB
14727 { ac_try='test -z "$ac_c_werror_flag"
14728 || test ! -s conftest.err'
4e8d927d
DJ
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; } &&
14734 { ac_try='test -s conftest.$ac_objext'
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; }; then
14740 ac_cv_have_decl_malloc=yes
14741else
14742 echo "$as_me: failed program was:" >&5
14743sed 's/^/| /' conftest.$ac_ext >&5
14744
b4e70030 14745ac_cv_have_decl_malloc=no
4e8d927d 14746fi
4e8d927d
DJ
14747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14748fi
b4e70030
JB
14749echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14750echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
14751if test $ac_cv_have_decl_malloc = yes; then
14752
14753cat >>confdefs.h <<_ACEOF
14754#define HAVE_DECL_MALLOC 1
14755_ACEOF
14756
14757
14758else
14759 cat >>confdefs.h <<_ACEOF
14760#define HAVE_DECL_MALLOC 0
14761_ACEOF
14762
14763
14764fi
b4e70030
JB
14765echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14766echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14767if test "${ac_cv_have_decl_realloc+set}" = set; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14769else
14770 cat >conftest.$ac_ext <<_ACEOF
14771/* confdefs.h. */
14772_ACEOF
14773cat confdefs.h >>conftest.$ac_ext
14774cat >>conftest.$ac_ext <<_ACEOF
14775/* end confdefs.h. */
14776$ac_includes_default
14777int
14778main ()
14779{
14780#ifndef realloc
14781 char *p = (char *) realloc;
4e8d927d
DJ
14782#endif
14783
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_have_decl_realloc=yes
14811else
14812 echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
b4e70030 14815ac_cv_have_decl_realloc=no
4e8d927d 14816fi
4e8d927d
DJ
14817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14818fi
b4e70030
JB
14819echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14820echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
14821if test $ac_cv_have_decl_realloc = yes; then
14822
14823cat >>confdefs.h <<_ACEOF
14824#define HAVE_DECL_REALLOC 1
14825_ACEOF
14826
14827
14828else
14829 cat >>confdefs.h <<_ACEOF
14830#define HAVE_DECL_REALLOC 0
14831_ACEOF
14832
14833
14834fi
14835
14836
b4e70030
JB
14837echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14838echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14839if test "${ac_cv_have_decl_strerror+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841else
14842 cat >conftest.$ac_ext <<_ACEOF
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848$ac_includes_default
14849int
14850main ()
14851{
14852#ifndef strerror
14853 char *p = (char *) strerror;
4e8d927d
DJ
14854#endif
14855
14856 ;
14857 return 0;
14858}
14859_ACEOF
14860rm -f conftest.$ac_objext
14861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
b4e70030
JB
14869 { ac_try='test -z "$ac_c_werror_flag"
14870 || test ! -s conftest.err'
4e8d927d
DJ
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest.$ac_objext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_have_decl_strerror=yes
14883else
14884 echo "$as_me: failed program was:" >&5
14885sed 's/^/| /' conftest.$ac_ext >&5
14886
b4e70030 14887ac_cv_have_decl_strerror=no
4e8d927d 14888fi
4e8d927d
DJ
14889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14890fi
b4e70030
JB
14891echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14892echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14893if test $ac_cv_have_decl_strerror = yes; then
14894
14895cat >>confdefs.h <<_ACEOF
14896#define HAVE_DECL_STRERROR 1
14897_ACEOF
14898
14899
14900else
14901 cat >>confdefs.h <<_ACEOF
14902#define HAVE_DECL_STRERROR 0
14903_ACEOF
14904
14905
14906fi
b4e70030
JB
14907echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14908echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14909if test "${ac_cv_have_decl_strstr+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14911else
14912 cat >conftest.$ac_ext <<_ACEOF
14913/* confdefs.h. */
14914_ACEOF
14915cat confdefs.h >>conftest.$ac_ext
14916cat >>conftest.$ac_ext <<_ACEOF
14917/* end confdefs.h. */
14918$ac_includes_default
14919int
14920main ()
14921{
14922#ifndef strstr
14923 char *p = (char *) strstr;
4e8d927d
DJ
14924#endif
14925
14926 ;
14927 return 0;
14928}
14929_ACEOF
14930rm -f conftest.$ac_objext
14931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14932 (eval $ac_compile) 2>conftest.er1
14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
b4e70030
JB
14939 { ac_try='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
4e8d927d
DJ
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest.$ac_objext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_cv_have_decl_strstr=yes
14953else
14954 echo "$as_me: failed program was:" >&5
14955sed 's/^/| /' conftest.$ac_ext >&5
14956
b4e70030 14957ac_cv_have_decl_strstr=no
4e8d927d 14958fi
4e8d927d
DJ
14959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14960fi
b4e70030
JB
14961echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14962echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14963if test $ac_cv_have_decl_strstr = yes; then
14964
14965cat >>confdefs.h <<_ACEOF
14966#define HAVE_DECL_STRSTR 1
14967_ACEOF
14968
14969
14970else
14971 cat >>confdefs.h <<_ACEOF
14972#define HAVE_DECL_STRSTR 0
14973_ACEOF
14974
14975
14976fi
14977
14978
b4e70030
JB
14979echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14980echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14981if test "${ac_cv_have_decl_getopt+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14983else
14984 cat >conftest.$ac_ext <<_ACEOF
14985/* confdefs.h. */
14986_ACEOF
14987cat confdefs.h >>conftest.$ac_ext
14988cat >>conftest.$ac_ext <<_ACEOF
14989/* end confdefs.h. */
14990$ac_includes_default
14991int
14992main ()
14993{
14994#ifndef getopt
14995 char *p = (char *) getopt;
4e8d927d
DJ
14996#endif
14997
14998 ;
14999 return 0;
15000}
15001_ACEOF
15002rm -f conftest.$ac_objext
15003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004 (eval $ac_compile) 2>conftest.er1
15005 ac_status=$?
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
b4e70030
JB
15011 { ac_try='test -z "$ac_c_werror_flag"
15012 || test ! -s conftest.err'
4e8d927d
DJ
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest.$ac_objext'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_cv_have_decl_getopt=yes
15025else
15026 echo "$as_me: failed program was:" >&5
15027sed 's/^/| /' conftest.$ac_ext >&5
15028
b4e70030 15029ac_cv_have_decl_getopt=no
4e8d927d 15030fi
4e8d927d
DJ
15031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15032fi
b4e70030
JB
15033echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
15034echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
15035if test $ac_cv_have_decl_getopt = yes; then
15036
15037cat >>confdefs.h <<_ACEOF
15038#define HAVE_DECL_GETOPT 1
15039_ACEOF
15040
15041
15042else
15043 cat >>confdefs.h <<_ACEOF
15044#define HAVE_DECL_GETOPT 0
15045_ACEOF
15046
15047
15048fi
b4e70030
JB
15049echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15050echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
15051if test "${ac_cv_have_decl_snprintf+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15053else
15054 cat >conftest.$ac_ext <<_ACEOF
15055/* confdefs.h. */
15056_ACEOF
15057cat confdefs.h >>conftest.$ac_ext
15058cat >>conftest.$ac_ext <<_ACEOF
15059/* end confdefs.h. */
15060$ac_includes_default
15061int
15062main ()
15063{
15064#ifndef snprintf
15065 char *p = (char *) snprintf;
4e8d927d
DJ
15066#endif
15067
15068 ;
15069 return 0;
15070}
15071_ACEOF
15072rm -f conftest.$ac_objext
15073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15074 (eval $ac_compile) 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
b4e70030
JB
15081 { ac_try='test -z "$ac_c_werror_flag"
15082 || test ! -s conftest.err'
4e8d927d
DJ
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; } &&
15088 { ac_try='test -s conftest.$ac_objext'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
15094 ac_cv_have_decl_snprintf=yes
15095else
15096 echo "$as_me: failed program was:" >&5
15097sed 's/^/| /' conftest.$ac_ext >&5
15098
b4e70030 15099ac_cv_have_decl_snprintf=no
4e8d927d 15100fi
4e8d927d
DJ
15101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15102fi
b4e70030
JB
15103echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15104echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
15105if test $ac_cv_have_decl_snprintf = yes; then
15106
15107cat >>confdefs.h <<_ACEOF
15108#define HAVE_DECL_SNPRINTF 1
15109_ACEOF
15110
15111
15112else
15113 cat >>confdefs.h <<_ACEOF
15114#define HAVE_DECL_SNPRINTF 0
15115_ACEOF
15116
15117
15118fi
b4e70030
JB
15119echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15120echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
15121if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15123else
15124 cat >conftest.$ac_ext <<_ACEOF
15125/* confdefs.h. */
15126_ACEOF
15127cat confdefs.h >>conftest.$ac_ext
15128cat >>conftest.$ac_ext <<_ACEOF
15129/* end confdefs.h. */
15130$ac_includes_default
15131int
15132main ()
15133{
15134#ifndef vsnprintf
15135 char *p = (char *) vsnprintf;
4e8d927d
DJ
15136#endif
15137
15138 ;
15139 return 0;
15140}
15141_ACEOF
15142rm -f conftest.$ac_objext
15143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
b4e70030
JB
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
4e8d927d
DJ
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_have_decl_vsnprintf=yes
15165else
15166 echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
b4e70030 15169ac_cv_have_decl_vsnprintf=no
4e8d927d 15170fi
4e8d927d
DJ
15171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15172fi
b4e70030
JB
15173echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15174echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
15175if test $ac_cv_have_decl_vsnprintf = yes; then
15176
15177cat >>confdefs.h <<_ACEOF
15178#define HAVE_DECL_VSNPRINTF 1
15179_ACEOF
15180
15181
15182else
15183 cat >>confdefs.h <<_ACEOF
15184#define HAVE_DECL_VSNPRINTF 0
15185_ACEOF
15186
15187
15188fi
15189
15190
15191
15192# ----------------------- #
15193# Checks for structures. #
15194# ----------------------- #
15195
b4e70030
JB
15196echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
15197echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
15198if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200else
15201 cat >conftest.$ac_ext <<_ACEOF
15202/* confdefs.h. */
15203_ACEOF
15204cat confdefs.h >>conftest.$ac_ext
15205cat >>conftest.$ac_ext <<_ACEOF
15206/* end confdefs.h. */
15207$ac_includes_default
15208int
15209main ()
15210{
15211static struct stat ac_aggr;
15212if (ac_aggr.st_blocks)
15213return 0;
15214 ;
15215 return 0;
15216}
15217_ACEOF
15218rm -f conftest.$ac_objext
15219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
b4e70030
JB
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
4e8d927d
DJ
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_cv_member_struct_stat_st_blocks=yes
15241else
15242 echo "$as_me: failed program was:" >&5
15243sed 's/^/| /' conftest.$ac_ext >&5
15244
b4e70030 15245cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15246/* confdefs.h. */
15247_ACEOF
15248cat confdefs.h >>conftest.$ac_ext
15249cat >>conftest.$ac_ext <<_ACEOF
15250/* end confdefs.h. */
15251$ac_includes_default
15252int
15253main ()
15254{
15255static struct stat ac_aggr;
15256if (sizeof ac_aggr.st_blocks)
15257return 0;
15258 ;
15259 return 0;
15260}
15261_ACEOF
15262rm -f conftest.$ac_objext
15263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264 (eval $ac_compile) 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } &&
b4e70030
JB
15271 { ac_try='test -z "$ac_c_werror_flag"
15272 || test ! -s conftest.err'
4e8d927d
DJ
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_cv_member_struct_stat_st_blocks=yes
15285else
15286 echo "$as_me: failed program was:" >&5
15287sed 's/^/| /' conftest.$ac_ext >&5
15288
b4e70030 15289ac_cv_member_struct_stat_st_blocks=no
4e8d927d 15290fi
4e8d927d
DJ
15291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15292fi
4e8d927d
DJ
15293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15294fi
b4e70030
JB
15295echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15296echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
15297if test $ac_cv_member_struct_stat_st_blocks = yes; then
15298
15299cat >>confdefs.h <<_ACEOF
15300#define HAVE_STRUCT_STAT_ST_BLOCKS 1
15301_ACEOF
15302
15303
15304fi
15305
b4e70030
JB
15306echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15307echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
15308if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15310else
15311 cat >conftest.$ac_ext <<_ACEOF
15312/* confdefs.h. */
15313_ACEOF
15314cat confdefs.h >>conftest.$ac_ext
15315cat >>conftest.$ac_ext <<_ACEOF
15316/* end confdefs.h. */
15317$ac_includes_default
15318int
15319main ()
15320{
15321static struct stat ac_aggr;
15322if (ac_aggr.st_blksize)
15323return 0;
15324 ;
15325 return 0;
15326}
15327_ACEOF
15328rm -f conftest.$ac_objext
15329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330 (eval $ac_compile) 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
b4e70030
JB
15337 { ac_try='test -z "$ac_c_werror_flag"
15338 || test ! -s conftest.err'
4e8d927d
DJ
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_cv_member_struct_stat_st_blksize=yes
15351else
15352 echo "$as_me: failed program was:" >&5
15353sed 's/^/| /' conftest.$ac_ext >&5
15354
b4e70030 15355cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15356/* confdefs.h. */
15357_ACEOF
15358cat confdefs.h >>conftest.$ac_ext
15359cat >>conftest.$ac_ext <<_ACEOF
15360/* end confdefs.h. */
15361$ac_includes_default
15362int
15363main ()
15364{
15365static struct stat ac_aggr;
15366if (sizeof ac_aggr.st_blksize)
15367return 0;
15368 ;
15369 return 0;
15370}
15371_ACEOF
15372rm -f conftest.$ac_objext
15373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15374 (eval $ac_compile) 2>conftest.er1
15375 ac_status=$?
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
b4e70030
JB
15381 { ac_try='test -z "$ac_c_werror_flag"
15382 || test ! -s conftest.err'
4e8d927d
DJ
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest.$ac_objext'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }; then
15394 ac_cv_member_struct_stat_st_blksize=yes
15395else
15396 echo "$as_me: failed program was:" >&5
15397sed 's/^/| /' conftest.$ac_ext >&5
15398
b4e70030 15399ac_cv_member_struct_stat_st_blksize=no
4e8d927d 15400fi
4e8d927d
DJ
15401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15402fi
4e8d927d
DJ
15403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15404fi
b4e70030
JB
15405echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15406echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
15407if test $ac_cv_member_struct_stat_st_blksize = yes; then
15408
15409cat >>confdefs.h <<_ACEOF
15410#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15411_ACEOF
15412
15413
15414fi
15415
15416
15417# ------------------ #
15418# Checks for types. #
15419# ------------------ #
15420
b4e70030
JB
15421echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15422echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
15423if test "${ac_cv_type_signal+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425else
15426 cat >conftest.$ac_ext <<_ACEOF
15427/* confdefs.h. */
15428_ACEOF
15429cat confdefs.h >>conftest.$ac_ext
15430cat >>conftest.$ac_ext <<_ACEOF
15431/* end confdefs.h. */
15432#include <sys/types.h>
15433#include <signal.h>
b4e70030
JB
15434#ifdef signal
15435# undef signal
15436#endif
15437#ifdef __cplusplus
15438extern "C" void (*signal (int, void (*)(int)))(int);
15439#else
15440void (*signal ()) ();
15441#endif
4e8d927d
DJ
15442
15443int
15444main ()
15445{
b4e70030 15446int i;
4e8d927d
DJ
15447 ;
15448 return 0;
15449}
15450_ACEOF
15451rm -f conftest.$ac_objext
15452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453 (eval $ac_compile) 2>conftest.er1
15454 ac_status=$?
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
b4e70030
JB
15460 { ac_try='test -z "$ac_c_werror_flag"
15461 || test ! -s conftest.err'
4e8d927d
DJ
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest.$ac_objext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
b4e70030 15473 ac_cv_type_signal=void
4e8d927d
DJ
15474else
15475 echo "$as_me: failed program was:" >&5
15476sed 's/^/| /' conftest.$ac_ext >&5
15477
b4e70030 15478ac_cv_type_signal=int
4e8d927d 15479fi
4e8d927d
DJ
15480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15481fi
b4e70030
JB
15482echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15483echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
15484
15485cat >>confdefs.h <<_ACEOF
15486#define RETSIGTYPE $ac_cv_type_signal
15487_ACEOF
15488
15489
b4e70030
JB
15490echo "$as_me:$LINENO: checking for socklen_t" >&5
15491echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
15492if test "${ac_cv_type_socklen_t+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15494else
15495 cat >conftest.$ac_ext <<_ACEOF
15496/* confdefs.h. */
15497_ACEOF
15498cat confdefs.h >>conftest.$ac_ext
15499cat >>conftest.$ac_ext <<_ACEOF
15500/* end confdefs.h. */
15501#include <sys/types.h>
15502#include <sys/socket.h>
15503
15504
4e8d927d
DJ
15505int
15506main ()
15507{
b4e70030 15508if ((socklen_t *) 0)
4e8d927d 15509 return 0;
b4e70030 15510if (sizeof (socklen_t))
4e8d927d
DJ
15511 return 0;
15512 ;
15513 return 0;
15514}
15515_ACEOF
15516rm -f conftest.$ac_objext
15517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518 (eval $ac_compile) 2>conftest.er1
15519 ac_status=$?
15520 grep -v '^ *+' conftest.er1 >conftest.err
15521 rm -f conftest.er1
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
b4e70030
JB
15525 { ac_try='test -z "$ac_c_werror_flag"
15526 || test ! -s conftest.err'
4e8d927d
DJ
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_type_socklen_t=yes
15539else
15540 echo "$as_me: failed program was:" >&5
15541sed 's/^/| /' conftest.$ac_ext >&5
15542
b4e70030 15543ac_cv_type_socklen_t=no
4e8d927d 15544fi
4e8d927d
DJ
15545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15546fi
b4e70030
JB
15547echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15548echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
15549if test $ac_cv_type_socklen_t = yes; then
15550
15551cat >>confdefs.h <<_ACEOF
15552#define HAVE_SOCKLEN_T 1
15553_ACEOF
15554
15555
15556fi
15557
b4e70030
JB
15558echo "$as_me:$LINENO: checking for uintptr_t" >&5
15559echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
15560if test "${ac_cv_type_uintptr_t+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562else
15563 cat >conftest.$ac_ext <<_ACEOF
15564/* confdefs.h. */
15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
15568/* end confdefs.h. */
15569#include <stdint.h>
15570
4e8d927d
DJ
15571int
15572main ()
15573{
b4e70030 15574if ((uintptr_t *) 0)
4e8d927d 15575 return 0;
b4e70030 15576if (sizeof (uintptr_t))
4e8d927d
DJ
15577 return 0;
15578 ;
15579 return 0;
15580}
15581_ACEOF
15582rm -f conftest.$ac_objext
15583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584 (eval $ac_compile) 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
b4e70030
JB
15591 { ac_try='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
4e8d927d
DJ
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_cv_type_uintptr_t=yes
15605else
15606 echo "$as_me: failed program was:" >&5
15607sed 's/^/| /' conftest.$ac_ext >&5
15608
b4e70030 15609ac_cv_type_uintptr_t=no
4e8d927d 15610fi
4e8d927d
DJ
15611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15612fi
b4e70030
JB
15613echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15614echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
15615if test $ac_cv_type_uintptr_t = yes; then
15616
15617cat >>confdefs.h <<_ACEOF
15618#define HAVE_UINTPTR_T 1
15619_ACEOF
15620
15621
15622fi
15623
15624
15625# ------------------------------------- #
15626# Checks for compiler characteristics. #
15627# ------------------------------------- #
15628
b4e70030
JB
15629echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15630echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
15631if test "${ac_cv_c_const+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15633else
15634 cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
15640
15641int
15642main ()
15643{
15644/* FIXME: Include the comments suggested by Paul. */
15645#ifndef __cplusplus
15646 /* Ultrix mips cc rejects this. */
15647 typedef int charset[2];
15648 const charset x;
15649 /* SunOS 4.1.1 cc rejects this. */
15650 char const *const *ccp;
15651 char **p;
15652 /* NEC SVR4.0.2 mips cc rejects this. */
15653 struct point {int x, y;};
15654 static struct point const zero = {0,0};
15655 /* AIX XL C 1.02.0.0 rejects this.
15656 It does not let you subtract one const X* pointer from another in
15657 an arm of an if-expression whose if-part is not a constant
15658 expression */
15659 const char *g = "string";
15660 ccp = &g + (g ? g-g : 0);
15661 /* HPUX 7.0 cc rejects these. */
15662 ++ccp;
15663 p = (char**) ccp;
15664 ccp = (char const *const *) p;
15665 { /* SCO 3.2v4 cc rejects this. */
15666 char *t;
15667 char const *s = 0 ? (char *) 0 : (char const *) 0;
15668
15669 *t++ = 0;
4e8d927d
DJ
15670 }
15671 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15672 int x[] = {25, 17};
15673 const int *foo = &x[0];
15674 ++foo;
15675 }
15676 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15677 typedef const int *iptr;
15678 iptr p = 0;
15679 ++p;
15680 }
15681 { /* AIX XL C 1.02.0.0 rejects this saying
15682 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15683 struct s { int j; const int *ap[3]; };
15684 struct s *b; b->j = 5;
15685 }
15686 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15687 const int foo = 10;
4e8d927d 15688 }
4e8d927d
DJ
15689#endif
15690
15691 ;
15692 return 0;
15693}
15694_ACEOF
15695rm -f conftest.$ac_objext
15696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697 (eval $ac_compile) 2>conftest.er1
15698 ac_status=$?
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } &&
b4e70030
JB
15704 { ac_try='test -z "$ac_c_werror_flag"
15705 || test ! -s conftest.err'
4e8d927d
DJ
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; } &&
15711 { ac_try='test -s conftest.$ac_objext'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }; then
15717 ac_cv_c_const=yes
15718else
15719 echo "$as_me: failed program was:" >&5
15720sed 's/^/| /' conftest.$ac_ext >&5
15721
b4e70030 15722ac_cv_c_const=no
4e8d927d 15723fi
4e8d927d
DJ
15724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15725fi
b4e70030
JB
15726echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15727echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
15728if test $ac_cv_c_const = no; then
15729
15730cat >>confdefs.h <<\_ACEOF
15731#define const
15732_ACEOF
15733
15734fi
15735
b4e70030
JB
15736echo "$as_me:$LINENO: checking for inline" >&5
15737echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
15738if test "${ac_cv_c_inline+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740else
15741 ac_cv_c_inline=no
15742for ac_kw in inline __inline__ __inline; do
15743 cat >conftest.$ac_ext <<_ACEOF
15744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
15749#ifndef __cplusplus
15750typedef int foo_t;
15751static $ac_kw foo_t static_foo () {return 0; }
15752$ac_kw foo_t foo () {return 0; }
15753#endif
15754
15755_ACEOF
15756rm -f conftest.$ac_objext
15757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>conftest.er1
15759 ac_status=$?
15760 grep -v '^ *+' conftest.er1 >conftest.err
15761 rm -f conftest.er1
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
b4e70030
JB
15765 { ac_try='test -z "$ac_c_werror_flag"
15766 || test ! -s conftest.err'
4e8d927d
DJ
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
b4e70030 15778 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
15779else
15780 echo "$as_me: failed program was:" >&5
15781sed 's/^/| /' conftest.$ac_ext >&5
15782
4e8d927d 15783fi
4e8d927d 15784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
15785done
15786
15787fi
b4e70030
JB
15788echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15789echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 15790
bec39cab 15791
a3828db0
MK
15792case $ac_cv_c_inline in
15793 inline | yes) ;;
15794 *)
15795 case $ac_cv_c_inline in
15796 no) ac_val=;;
15797 *) ac_val=$ac_cv_c_inline;;
15798 esac
15799 cat >>confdefs.h <<_ACEOF
15800#ifndef __cplusplus
15801#define inline $ac_val
15802#endif
15803_ACEOF
bec39cab
AC
15804 ;;
15805esac
bec39cab 15806
9b913628
TJB
15807echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15808echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15809if test "${ac_cv_c_bigendian+set}" = set; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15811else
15812 # See if sys/param.h defines the BYTE_ORDER macro.
15813cat >conftest.$ac_ext <<_ACEOF
15814/* confdefs.h. */
15815_ACEOF
15816cat confdefs.h >>conftest.$ac_ext
15817cat >>conftest.$ac_ext <<_ACEOF
15818/* end confdefs.h. */
15819#include <sys/types.h>
15820#include <sys/param.h>
15821
15822int
15823main ()
15824{
15825#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15826 bogus endian macros
15827#endif
15828
15829 ;
15830 return 0;
15831}
15832_ACEOF
15833rm -f conftest.$ac_objext
15834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835 (eval $ac_compile) 2>conftest.er1
15836 ac_status=$?
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try='test -z "$ac_c_werror_flag"
15843 || test ! -s conftest.err'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 # It does; now see whether it defined to BIG_ENDIAN or not.
15856cat >conftest.$ac_ext <<_ACEOF
15857/* confdefs.h. */
15858_ACEOF
15859cat confdefs.h >>conftest.$ac_ext
15860cat >>conftest.$ac_ext <<_ACEOF
15861/* end confdefs.h. */
15862#include <sys/types.h>
15863#include <sys/param.h>
15864
15865int
15866main ()
15867{
15868#if BYTE_ORDER != BIG_ENDIAN
15869 not big endian
15870#endif
15871
15872 ;
15873 return 0;
15874}
15875_ACEOF
15876rm -f conftest.$ac_objext
15877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15878 (eval $ac_compile) 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try='test -z "$ac_c_werror_flag"
15886 || test ! -s conftest.err'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15889 ac_status=$?
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } &&
15892 { ac_try='test -s conftest.$ac_objext'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15898 ac_cv_c_bigendian=yes
15899else
15900 echo "$as_me: failed program was:" >&5
15901sed 's/^/| /' conftest.$ac_ext >&5
15902
15903ac_cv_c_bigendian=no
15904fi
15905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15906else
15907 echo "$as_me: failed program was:" >&5
15908sed 's/^/| /' conftest.$ac_ext >&5
15909
15910# It does not; compile a test program.
15911if test "$cross_compiling" = yes; then
15912 # try to guess the endianness by grepping values into an object file
15913 ac_cv_c_bigendian=unknown
15914 cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h. */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h. */
15920short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15921short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15922void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15923short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15924short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15925void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15926int
15927main ()
15928{
15929 _ascii (); _ebcdic ();
15930 ;
15931 return 0;
15932}
15933_ACEOF
15934rm -f conftest.$ac_objext
15935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15936 (eval $ac_compile) 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_c_werror_flag"
15944 || test ! -s conftest.err'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest.$ac_objext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15957 ac_cv_c_bigendian=yes
15958fi
15959if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15960 if test "$ac_cv_c_bigendian" = unknown; then
15961 ac_cv_c_bigendian=no
15962 else
15963 # finding both strings is unlikely to happen, but who knows?
15964 ac_cv_c_bigendian=unknown
15965 fi
15966fi
15967else
15968 echo "$as_me: failed program was:" >&5
15969sed 's/^/| /' conftest.$ac_ext >&5
15970
15971fi
15972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15973else
15974 cat >conftest.$ac_ext <<_ACEOF
15975/* confdefs.h. */
15976_ACEOF
15977cat confdefs.h >>conftest.$ac_ext
15978cat >>conftest.$ac_ext <<_ACEOF
15979/* end confdefs.h. */
15980int
15981main ()
15982{
15983 /* Are we little or big endian? From Harbison&Steele. */
15984 union
15985 {
15986 long l;
15987 char c[sizeof (long)];
15988 } u;
15989 u.l = 1;
15990 exit (u.c[sizeof (long) - 1] == 1);
15991}
15992_ACEOF
15993rm -f conftest$ac_exeext
15994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15995 (eval $ac_link) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004 ac_cv_c_bigendian=no
16005else
16006 echo "$as_me: program exited with status $ac_status" >&5
16007echo "$as_me: failed program was:" >&5
16008sed 's/^/| /' conftest.$ac_ext >&5
16009
16010( exit $ac_status )
16011ac_cv_c_bigendian=yes
16012fi
16013rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16014fi
16015fi
16016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16017fi
16018echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16019echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16020case $ac_cv_c_bigendian in
16021 yes)
16022
16023cat >>confdefs.h <<\_ACEOF
16024#define WORDS_BIGENDIAN 1
16025_ACEOF
16026 ;;
16027 no)
16028 ;;
16029 *)
16030 { { echo "$as_me:$LINENO: error: unknown endianness
16031presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16032echo "$as_me: error: unknown endianness
16033presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16034 { (exit 1); exit 1; }; } ;;
16035esac
16036
74c1b268 16037
a3828db0
MK
16038# ------------------------------ #
16039# Checks for library functions. #
16040# ------------------------------ #
bec39cab 16041
a3828db0
MK
16042# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16043# for constant arguments. Useless!
b4e70030
JB
16044echo "$as_me:$LINENO: checking for working alloca.h" >&5
16045echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 16046if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
16047 echo $ECHO_N "(cached) $ECHO_C" >&6
16048else
16049 cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
a3828db0 16055#include <alloca.h>
bec39cab
AC
16056int
16057main ()
16058{
a3828db0 16059char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
16060 ;
16061 return 0;
16062}
16063_ACEOF
16064rm -f conftest.$ac_objext conftest$ac_exeext
16065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16066 (eval $ac_link) 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
b4e70030
JB
16073 { ac_try='test -z "$ac_c_werror_flag"
16074 || test ! -s conftest.err'
bec39cab
AC
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; } &&
16080 { ac_try='test -s conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
a3828db0 16086 ac_cv_working_alloca_h=yes
bec39cab
AC
16087else
16088 echo "$as_me: failed program was:" >&5
16089sed 's/^/| /' conftest.$ac_ext >&5
16090
b4e70030 16091ac_cv_working_alloca_h=no
bec39cab
AC
16092fi
16093rm -f conftest.err conftest.$ac_objext \
16094 conftest$ac_exeext conftest.$ac_ext
16095fi
b4e70030
JB
16096echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16097echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
16098if test $ac_cv_working_alloca_h = yes; then
16099
16100cat >>confdefs.h <<\_ACEOF
16101#define HAVE_ALLOCA_H 1
bec39cab 16102_ACEOF
74c1b268 16103
74c1b268
AC
16104fi
16105
b4e70030
JB
16106echo "$as_me:$LINENO: checking for alloca" >&5
16107echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 16108if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 16109 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 16110else
bec39cab
AC
16111 cat >conftest.$ac_ext <<_ACEOF
16112/* confdefs.h. */
16113_ACEOF
16114cat confdefs.h >>conftest.$ac_ext
16115cat >>conftest.$ac_ext <<_ACEOF
16116/* end confdefs.h. */
a3828db0
MK
16117#ifdef __GNUC__
16118# define alloca __builtin_alloca
16119#else
16120# ifdef _MSC_VER
16121# include <malloc.h>
16122# define alloca _alloca
16123# else
16124# if HAVE_ALLOCA_H
16125# include <alloca.h>
16126# else
16127# ifdef _AIX
16128 #pragma alloca
16129# else
16130# ifndef alloca /* predefined by HP cc +Olibcalls */
16131char *alloca ();
16132# endif
16133# endif
16134# endif
97bf5e38 16135# endif
a3828db0 16136#endif
97bf5e38 16137
bec39cab
AC
16138int
16139main ()
16140{
a3828db0 16141char *p = (char *) alloca (1);
bec39cab
AC
16142 ;
16143 return 0;
16144}
16145_ACEOF
a3828db0
MK
16146rm -f conftest.$ac_objext conftest$ac_exeext
16147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16148 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16149 ac_status=$?
16150 grep -v '^ *+' conftest.er1 >conftest.err
16151 rm -f conftest.er1
16152 cat conftest.err >&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
b4e70030
JB
16155 { ac_try='test -z "$ac_c_werror_flag"
16156 || test ! -s conftest.err'
bec39cab
AC
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; } &&
a3828db0 16162 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
a3828db0 16168 ac_cv_func_alloca_works=yes
0200359f 16169else
bec39cab
AC
16170 echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
0200359f 16172
b4e70030 16173ac_cv_func_alloca_works=no
0200359f 16174fi
a3828db0
MK
16175rm -f conftest.err conftest.$ac_objext \
16176 conftest$ac_exeext conftest.$ac_ext
72473524 16177fi
b4e70030
JB
16178echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16179echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 16180
a3828db0
MK
16181if test $ac_cv_func_alloca_works = yes; then
16182
16183cat >>confdefs.h <<\_ACEOF
16184#define HAVE_ALLOCA 1
bec39cab
AC
16185_ACEOF
16186
a3828db0
MK
16187else
16188 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16189# that cause trouble. Some versions do not even contain alloca or
16190# contain a buggy version. If you still want to use their alloca,
16191# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 16192
b4e70030 16193ALLOCA=alloca.$ac_objext
bec39cab 16194
a3828db0
MK
16195cat >>confdefs.h <<\_ACEOF
16196#define C_ALLOCA 1
16197_ACEOF
bec39cab 16198
a3828db0 16199
b4e70030
JB
16200echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16201echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 16202if test "${ac_cv_os_cray+set}" = set; then
bec39cab 16203 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 16204else
a3828db0 16205 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16206/* confdefs.h. */
16207_ACEOF
16208cat confdefs.h >>conftest.$ac_ext
16209cat >>conftest.$ac_ext <<_ACEOF
16210/* end confdefs.h. */
b4e70030 16211#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
16212webecray
16213#else
16214wenotbecray
16215#endif
16216
16217_ACEOF
16218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16219 $EGREP "webecray" >/dev/null 2>&1; then
16220 ac_cv_os_cray=yes
16221else
16222 ac_cv_os_cray=no
16223fi
16224rm -f conftest*
16225
16226fi
b4e70030
JB
16227echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16228echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
16229if test $ac_cv_os_cray = yes; then
16230 for ac_func in _getb67 GETB67 getb67; do
16231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16232echo "$as_me:$LINENO: checking for $ac_func" >&5
16233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16234if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236else
16237 cat >conftest.$ac_ext <<_ACEOF
16238/* confdefs.h. */
16239_ACEOF
16240cat confdefs.h >>conftest.$ac_ext
16241cat >>conftest.$ac_ext <<_ACEOF
16242/* end confdefs.h. */
16243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16245#define $ac_func innocuous_$ac_func
16246
16247/* System header to define __stub macros and hopefully few prototypes,
16248 which can conflict with char $ac_func (); below.
16249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16250 <limits.h> exists even on freestanding compilers. */
16251
16252#ifdef __STDC__
16253# include <limits.h>
16254#else
16255# include <assert.h>
16256#endif
16257
16258#undef $ac_func
16259
b4e70030 16260/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
16261#ifdef __cplusplus
16262extern "C"
b4e70030 16263{
a3828db0 16264#endif
b4e70030
JB
16265/* We use char because int might match the return type of a gcc2
16266 builtin and then its argument prototype would still apply. */
a3828db0
MK
16267char $ac_func ();
16268/* The GNU C library defines this for functions which it implements
16269 to always fail with ENOSYS. Some functions are actually named
16270 something starting with __ and the normal name is an alias. */
b4e70030 16271#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 16272choke me
b4e70030
JB
16273#else
16274char (*f) () = $ac_func;
16275#endif
16276#ifdef __cplusplus
16277}
a3828db0
MK
16278#endif
16279
16280int
16281main ()
16282{
b4e70030 16283return f != $ac_func;
a3828db0
MK
16284 ;
16285 return 0;
16286}
16287_ACEOF
16288rm -f conftest.$ac_objext conftest$ac_exeext
16289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>conftest.er1
16291 ac_status=$?
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
b4e70030
JB
16297 { ac_try='test -z "$ac_c_werror_flag"
16298 || test ! -s conftest.err'
a3828db0
MK
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; } &&
16304 { ac_try='test -s conftest$ac_exeext'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16307 ac_status=$?
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; }; then
16310 eval "$as_ac_var=yes"
16311else
16312 echo "$as_me: failed program was:" >&5
16313sed 's/^/| /' conftest.$ac_ext >&5
16314
b4e70030 16315eval "$as_ac_var=no"
a3828db0
MK
16316fi
16317rm -f conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16319fi
b4e70030
JB
16320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16321echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
16322if test `eval echo '${'$as_ac_var'}'` = yes; then
16323
16324cat >>confdefs.h <<_ACEOF
16325#define CRAY_STACKSEG_END $ac_func
16326_ACEOF
16327
16328 break
16329fi
16330
16331 done
16332fi
16333
b4e70030
JB
16334echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16335echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
16336if test "${ac_cv_c_stack_direction+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16338else
16339 if test "$cross_compiling" = yes; then
16340 ac_cv_c_stack_direction=0
16341else
16342 cat >conftest.$ac_ext <<_ACEOF
16343/* confdefs.h. */
16344_ACEOF
16345cat confdefs.h >>conftest.$ac_ext
16346cat >>conftest.$ac_ext <<_ACEOF
16347/* end confdefs.h. */
16348int
16349find_stack_direction ()
16350{
16351 static char *addr = 0;
16352 auto char dummy;
16353 if (addr == 0)
16354 {
16355 addr = &dummy;
16356 return find_stack_direction ();
16357 }
16358 else
16359 return (&dummy > addr) ? 1 : -1;
16360}
16361
16362int
16363main ()
16364{
b4e70030 16365 exit (find_stack_direction () < 0);
a3828db0
MK
16366}
16367_ACEOF
16368rm -f conftest$ac_exeext
16369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16370 (eval $ac_link) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_cv_c_stack_direction=1
16380else
16381 echo "$as_me: program exited with status $ac_status" >&5
16382echo "$as_me: failed program was:" >&5
16383sed 's/^/| /' conftest.$ac_ext >&5
16384
16385( exit $ac_status )
16386ac_cv_c_stack_direction=-1
16387fi
b4e70030 16388rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16389fi
16390fi
b4e70030
JB
16391echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16392echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
16393
16394cat >>confdefs.h <<_ACEOF
16395#define STACK_DIRECTION $ac_cv_c_stack_direction
16396_ACEOF
16397
16398
16399fi
16400
16401
16402
16403for ac_header in stdlib.h unistd.h
16404do
16405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16406if eval "test \"\${$as_ac_Header+set}\" = set"; then
16407 echo "$as_me:$LINENO: checking for $ac_header" >&5
16408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16409if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411fi
b4e70030
JB
16412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
16414else
16415 # Is the header compilable?
b4e70030
JB
16416echo "$as_me:$LINENO: checking $ac_header usability" >&5
16417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
16418cat >conftest.$ac_ext <<_ACEOF
16419/* confdefs.h. */
16420_ACEOF
16421cat confdefs.h >>conftest.$ac_ext
16422cat >>conftest.$ac_ext <<_ACEOF
16423/* end confdefs.h. */
16424$ac_includes_default
16425#include <$ac_header>
16426_ACEOF
16427rm -f conftest.$ac_objext
16428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16429 (eval $ac_compile) 2>conftest.er1
16430 ac_status=$?
bec39cab
AC
16431 grep -v '^ *+' conftest.er1 >conftest.err
16432 rm -f conftest.er1
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } &&
b4e70030
JB
16436 { ac_try='test -z "$ac_c_werror_flag"
16437 || test ! -s conftest.err'
bec39cab
AC
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } &&
16443 { ac_try='test -s conftest.$ac_objext'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16449 ac_header_compiler=yes
16450else
16451 echo "$as_me: failed program was:" >&5
16452sed 's/^/| /' conftest.$ac_ext >&5
16453
b4e70030 16454ac_header_compiler=no
bec39cab
AC
16455fi
16456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16458echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16459
16460# Is the header present?
b4e70030
JB
16461echo "$as_me:$LINENO: checking $ac_header presence" >&5
16462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16463cat >conftest.$ac_ext <<_ACEOF
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
16469#include <$ac_header>
16470_ACEOF
16471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } >/dev/null; then
16479 if test -s conftest.err; then
16480 ac_cpp_err=$ac_c_preproc_warn_flag
16481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16482 else
16483 ac_cpp_err=
16484 fi
16485else
16486 ac_cpp_err=yes
16487fi
16488if test -z "$ac_cpp_err"; then
16489 ac_header_preproc=yes
97bf5e38 16490else
bec39cab
AC
16491 echo "$as_me: failed program was:" >&5
16492sed 's/^/| /' conftest.$ac_ext >&5
16493
16494 ac_header_preproc=no
72473524 16495fi
bec39cab 16496rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16498echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 16499
bec39cab
AC
16500# So? What about this header?
16501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16502 yes:no: )
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16507 ac_header_preproc=yes
16508 ;;
16509 no:yes:* )
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16513echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16517echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16522 (
16523 cat <<\_ASBOX
16524## ------------------------------------------ ##
16525## Report this to the AC_PACKAGE_NAME lists. ##
16526## ------------------------------------------ ##
16527_ASBOX
16528 ) |
16529 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16530 ;;
16531esac
b4e70030
JB
16532echo "$as_me:$LINENO: checking for $ac_header" >&5
16533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16534if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16535 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16536else
bec39cab
AC
16537 eval "$as_ac_Header=\$ac_header_preproc"
16538fi
b4e70030
JB
16539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16541
16542fi
16543if test `eval echo '${'$as_ac_Header'}'` = yes; then
16544 cat >>confdefs.h <<_ACEOF
16545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16546_ACEOF
16547
16548fi
16549
16550done
16551
16552
a3828db0 16553for ac_func in getpagesize
bec39cab
AC
16554do
16555as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16556echo "$as_me:$LINENO: checking for $ac_func" >&5
16557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16558if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560else
16561 cat >conftest.$ac_ext <<_ACEOF
16562/* confdefs.h. */
16563_ACEOF
16564cat confdefs.h >>conftest.$ac_ext
16565cat >>conftest.$ac_ext <<_ACEOF
16566/* end confdefs.h. */
16567/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16569#define $ac_func innocuous_$ac_func
16570
97bf5e38 16571/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16572 which can conflict with char $ac_func (); below.
16573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16574 <limits.h> exists even on freestanding compilers. */
2b2d558c 16575
bec39cab
AC
16576#ifdef __STDC__
16577# include <limits.h>
16578#else
16579# include <assert.h>
16580#endif
97bf5e38 16581
bec39cab
AC
16582#undef $ac_func
16583
b4e70030 16584/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16585#ifdef __cplusplus
16586extern "C"
b4e70030 16587{
bec39cab 16588#endif
b4e70030
JB
16589/* We use char because int might match the return type of a gcc2
16590 builtin and then its argument prototype would still apply. */
bec39cab 16591char $ac_func ();
97bf5e38
MK
16592/* The GNU C library defines this for functions which it implements
16593 to always fail with ENOSYS. Some functions are actually named
16594 something starting with __ and the normal name is an alias. */
b4e70030 16595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16596choke me
b4e70030
JB
16597#else
16598char (*f) () = $ac_func;
16599#endif
16600#ifdef __cplusplus
16601}
97bf5e38
MK
16602#endif
16603
bec39cab
AC
16604int
16605main ()
16606{
b4e70030 16607return f != $ac_func;
bec39cab
AC
16608 ;
16609 return 0;
16610}
16611_ACEOF
16612rm -f conftest.$ac_objext conftest$ac_exeext
16613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16614 (eval $ac_link) 2>conftest.er1
16615 ac_status=$?
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } &&
b4e70030
JB
16621 { ac_try='test -z "$ac_c_werror_flag"
16622 || test ! -s conftest.err'
bec39cab
AC
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 eval "$as_ac_var=yes"
16635else
16636 echo "$as_me: failed program was:" >&5
16637sed 's/^/| /' conftest.$ac_ext >&5
16638
b4e70030 16639eval "$as_ac_var=no"
bec39cab
AC
16640fi
16641rm -f conftest.err conftest.$ac_objext \
16642 conftest$ac_exeext conftest.$ac_ext
16643fi
b4e70030
JB
16644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16646if test `eval echo '${'$as_ac_var'}'` = yes; then
16647 cat >>confdefs.h <<_ACEOF
16648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16649_ACEOF
16650
2b2d558c 16651fi
bec39cab 16652done
2b2d558c 16653
b4e70030
JB
16654echo "$as_me:$LINENO: checking for working mmap" >&5
16655echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 16656if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 16657 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16658else
bec39cab 16659 if test "$cross_compiling" = yes; then
a3828db0 16660 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
16661else
16662 cat >conftest.$ac_ext <<_ACEOF
a3828db0 16663/* confdefs.h. */
bec39cab
AC
16664_ACEOF
16665cat confdefs.h >>conftest.$ac_ext
16666cat >>conftest.$ac_ext <<_ACEOF
16667/* end confdefs.h. */
a3828db0
MK
16668$ac_includes_default
16669/* malloc might have been renamed as rpl_malloc. */
16670#undef malloc
bec39cab 16671
a3828db0
MK
16672/* Thanks to Mike Haertel and Jim Avera for this test.
16673 Here is a matrix of mmap possibilities:
16674 mmap private not fixed
16675 mmap private fixed at somewhere currently unmapped
16676 mmap private fixed at somewhere already mapped
16677 mmap shared not fixed
16678 mmap shared fixed at somewhere currently unmapped
16679 mmap shared fixed at somewhere already mapped
16680 For private mappings, we should verify that changes cannot be read()
16681 back from the file, nor mmap's back from the file at a different
16682 address. (There have been systems where private was not correctly
16683 implemented like the infamous i386 svr4.0, and systems where the
16684 VM page cache was not coherent with the file system buffer cache
16685 like early versions of FreeBSD and possibly contemporary NetBSD.)
16686 For shared mappings, we should conversely verify that changes get
16687 propagated back to all the places they're supposed to be.
7dfa765c 16688
a3828db0
MK
16689 Grep wants private fixed already mapped.
16690 The main things grep needs to know about mmap are:
16691 * does it exist and is it safe to write into the mmap'd area
16692 * how to use it (BSD variants) */
7dfa765c 16693
a3828db0
MK
16694#include <fcntl.h>
16695#include <sys/mman.h>
7dfa765c 16696
a3828db0
MK
16697#if !STDC_HEADERS && !HAVE_STDLIB_H
16698char *malloc ();
16699#endif
7dfa765c 16700
a3828db0
MK
16701/* This mess was copied from the GNU getpagesize.h. */
16702#if !HAVE_GETPAGESIZE
16703/* Assume that all systems that can run configure have sys/param.h. */
16704# if !HAVE_SYS_PARAM_H
16705# define HAVE_SYS_PARAM_H 1
16706# endif
64bb1671 16707
a3828db0
MK
16708# ifdef _SC_PAGESIZE
16709# define getpagesize() sysconf(_SC_PAGESIZE)
16710# else /* no _SC_PAGESIZE */
16711# if HAVE_SYS_PARAM_H
16712# include <sys/param.h>
16713# ifdef EXEC_PAGESIZE
16714# define getpagesize() EXEC_PAGESIZE
16715# else /* no EXEC_PAGESIZE */
16716# ifdef NBPG
16717# define getpagesize() NBPG * CLSIZE
16718# ifndef CLSIZE
16719# define CLSIZE 1
16720# endif /* no CLSIZE */
16721# else /* no NBPG */
16722# ifdef NBPC
16723# define getpagesize() NBPC
16724# else /* no NBPC */
16725# ifdef PAGESIZE
16726# define getpagesize() PAGESIZE
16727# endif /* PAGESIZE */
16728# endif /* no NBPC */
16729# endif /* no NBPG */
16730# endif /* no EXEC_PAGESIZE */
16731# else /* no HAVE_SYS_PARAM_H */
16732# define getpagesize() 8192 /* punt totally */
16733# endif /* no HAVE_SYS_PARAM_H */
16734# endif /* no _SC_PAGESIZE */
64bb1671 16735
a3828db0 16736#endif /* no HAVE_GETPAGESIZE */
64bb1671 16737
a3828db0
MK
16738int
16739main ()
16740{
16741 char *data, *data2, *data3;
16742 int i, pagesize;
16743 int fd;
97bf5e38 16744
a3828db0
MK
16745 pagesize = getpagesize ();
16746
16747 /* First, make a file with some known garbage in it. */
16748 data = (char *) malloc (pagesize);
16749 if (!data)
b4e70030 16750 exit (1);
a3828db0
MK
16751 for (i = 0; i < pagesize; ++i)
16752 *(data + i) = rand ();
16753 umask (0);
16754 fd = creat ("conftest.mmap", 0600);
16755 if (fd < 0)
b4e70030 16756 exit (1);
a3828db0 16757 if (write (fd, data, pagesize) != pagesize)
b4e70030 16758 exit (1);
a3828db0
MK
16759 close (fd);
16760
16761 /* Next, try to mmap the file at a fixed address which already has
16762 something else allocated at it. If we can, also make sure that
16763 we see the same garbage. */
16764 fd = open ("conftest.mmap", O_RDWR);
16765 if (fd < 0)
b4e70030 16766 exit (1);
a3828db0
MK
16767 data2 = (char *) malloc (2 * pagesize);
16768 if (!data2)
b4e70030
JB
16769 exit (1);
16770 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
16771 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16772 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 16773 exit (1);
a3828db0
MK
16774 for (i = 0; i < pagesize; ++i)
16775 if (*(data + i) != *(data2 + i))
b4e70030 16776 exit (1);
a3828db0
MK
16777
16778 /* Finally, make sure that changes to the mapped area do not
16779 percolate back to the file as seen by read(). (This is a bug on
16780 some variants of i386 svr4.0.) */
16781 for (i = 0; i < pagesize; ++i)
16782 *(data2 + i) = *(data2 + i) + 1;
16783 data3 = (char *) malloc (pagesize);
16784 if (!data3)
b4e70030 16785 exit (1);
a3828db0 16786 if (read (fd, data3, pagesize) != pagesize)
b4e70030 16787 exit (1);
a3828db0
MK
16788 for (i = 0; i < pagesize; ++i)
16789 if (*(data + i) != *(data3 + i))
b4e70030 16790 exit (1);
a3828db0 16791 close (fd);
b4e70030 16792 exit (0);
97bf5e38 16793}
bec39cab
AC
16794_ACEOF
16795rm -f conftest$ac_exeext
16796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16797 (eval $ac_link) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16803 ac_status=$?
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
a3828db0 16806 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 16807else
bec39cab
AC
16808 echo "$as_me: program exited with status $ac_status" >&5
16809echo "$as_me: failed program was:" >&5
16810sed 's/^/| /' conftest.$ac_ext >&5
16811
16812( exit $ac_status )
a3828db0 16813ac_cv_func_mmap_fixed_mapped=no
0afdd437 16814fi
b4e70030 16815rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 16816fi
a3828db0 16817fi
b4e70030
JB
16818echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16819echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 16820if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
16821
16822cat >>confdefs.h <<\_ACEOF
a3828db0 16823#define HAVE_MMAP 1
bec39cab 16824_ACEOF
0afdd437
MK
16825
16826fi
a3828db0 16827rm -f conftest.mmap
0afdd437 16828
b4e70030
JB
16829echo "$as_me:$LINENO: checking for pid_t" >&5
16830echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 16831if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833else
16834 cat >conftest.$ac_ext <<_ACEOF
16835/* confdefs.h. */
16836_ACEOF
16837cat confdefs.h >>conftest.$ac_ext
16838cat >>conftest.$ac_ext <<_ACEOF
16839/* end confdefs.h. */
a3828db0 16840$ac_includes_default
bec39cab
AC
16841int
16842main ()
16843{
b4e70030 16844if ((pid_t *) 0)
a3828db0 16845 return 0;
b4e70030 16846if (sizeof (pid_t))
a3828db0 16847 return 0;
bec39cab
AC
16848 ;
16849 return 0;
16850}
16851_ACEOF
a3828db0
MK
16852rm -f conftest.$ac_objext
16853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16855 ac_status=$?
16856 grep -v '^ *+' conftest.er1 >conftest.err
16857 rm -f conftest.er1
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
b4e70030
JB
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
bec39cab
AC
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
a3828db0 16868 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
a3828db0 16874 ac_cv_type_pid_t=yes
bec39cab
AC
16875else
16876 echo "$as_me: failed program was:" >&5
16877sed 's/^/| /' conftest.$ac_ext >&5
16878
b4e70030 16879ac_cv_type_pid_t=no
bec39cab 16880fi
a3828db0 16881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 16882fi
b4e70030
JB
16883echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16884echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
16885if test $ac_cv_type_pid_t = yes; then
16886 :
16887else
16888
16889cat >>confdefs.h <<_ACEOF
16890#define pid_t int
bec39cab 16891_ACEOF
7e89e357 16892
7e89e357
JT
16893fi
16894
bec39cab 16895
b4e70030
JB
16896
16897for ac_header in unistd.h vfork.h
7be570e7 16898do
a3828db0 16899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16900if eval "test \"\${$as_ac_Header+set}\" = set"; then
16901 echo "$as_me:$LINENO: checking for $ac_header" >&5
16902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16903if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16904 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 16905fi
b4e70030
JB
16906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 16908else
a3828db0 16909 # Is the header compilable?
b4e70030
JB
16910echo "$as_me:$LINENO: checking $ac_header usability" >&5
16911echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 16912cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16913/* confdefs.h. */
16914_ACEOF
16915cat confdefs.h >>conftest.$ac_ext
16916cat >>conftest.$ac_ext <<_ACEOF
16917/* end confdefs.h. */
a3828db0
MK
16918$ac_includes_default
16919#include <$ac_header>
bec39cab 16920_ACEOF
a3828db0
MK
16921rm -f conftest.$ac_objext
16922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
b4e70030
JB
16930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
bec39cab
AC
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
a3828db0 16937 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
a3828db0 16943 ac_header_compiler=yes
bec39cab
AC
16944else
16945 echo "$as_me: failed program was:" >&5
16946sed 's/^/| /' conftest.$ac_ext >&5
16947
b4e70030 16948ac_header_compiler=no
bec39cab 16949fi
a3828db0 16950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16951echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16952echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
16953
16954# Is the header present?
b4e70030
JB
16955echo "$as_me:$LINENO: checking $ac_header presence" >&5
16956echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
16957cat >conftest.$ac_ext <<_ACEOF
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963#include <$ac_header>
16964_ACEOF
16965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } >/dev/null; then
16973 if test -s conftest.err; then
16974 ac_cpp_err=$ac_c_preproc_warn_flag
16975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16976 else
16977 ac_cpp_err=
16978 fi
16979else
16980 ac_cpp_err=yes
16981fi
16982if test -z "$ac_cpp_err"; then
16983 ac_header_preproc=yes
16984else
16985 echo "$as_me: failed program was:" >&5
16986sed 's/^/| /' conftest.$ac_ext >&5
16987
16988 ac_header_preproc=no
16989fi
16990rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16991echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16992echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
16993
16994# So? What about this header?
16995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16996 yes:no: )
16997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16998echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17000echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17001 ac_header_preproc=yes
17002 ;;
17003 no:yes:* )
17004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17005echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17007echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17009echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17011echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17013echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17015echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
17016 (
17017 cat <<\_ASBOX
17018## ------------------------------------------ ##
17019## Report this to the AC_PACKAGE_NAME lists. ##
17020## ------------------------------------------ ##
17021_ASBOX
17022 ) |
17023 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
17024 ;;
17025esac
b4e70030
JB
17026echo "$as_me:$LINENO: checking for $ac_header" >&5
17027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17028if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031 eval "$as_ac_Header=\$ac_header_preproc"
17032fi
b4e70030
JB
17033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 17035
bec39cab 17036fi
a3828db0 17037if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 17038 cat >>confdefs.h <<_ACEOF
a3828db0 17039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 17040_ACEOF
14abd0fb 17041
14abd0fb 17042fi
a3828db0 17043
14abd0fb
MK
17044done
17045
bec39cab 17046
a3828db0
MK
17047
17048for ac_func in fork vfork
14abd0fb 17049do
bec39cab 17050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17051echo "$as_me:$LINENO: checking for $ac_func" >&5
17052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17053if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056 cat >conftest.$ac_ext <<_ACEOF
17057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
17062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17064#define $ac_func innocuous_$ac_func
17065
14abd0fb 17066/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17067 which can conflict with char $ac_func (); below.
17068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17069 <limits.h> exists even on freestanding compilers. */
17070
17071#ifdef __STDC__
17072# include <limits.h>
17073#else
17074# include <assert.h>
17075#endif
14abd0fb 17076
bec39cab 17077#undef $ac_func
14abd0fb 17078
b4e70030 17079/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17080#ifdef __cplusplus
17081extern "C"
b4e70030 17082{
bec39cab 17083#endif
b4e70030
JB
17084/* We use char because int might match the return type of a gcc2
17085 builtin and then its argument prototype would still apply. */
bec39cab 17086char $ac_func ();
14abd0fb
MK
17087/* The GNU C library defines this for functions which it implements
17088 to always fail with ENOSYS. Some functions are actually named
17089 something starting with __ and the normal name is an alias. */
b4e70030 17090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 17091choke me
b4e70030
JB
17092#else
17093char (*f) () = $ac_func;
17094#endif
17095#ifdef __cplusplus
17096}
14abd0fb
MK
17097#endif
17098
bec39cab
AC
17099int
17100main ()
17101{
b4e70030 17102return f != $ac_func;
bec39cab
AC
17103 ;
17104 return 0;
17105}
17106_ACEOF
17107rm -f conftest.$ac_objext conftest$ac_exeext
17108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17109 (eval $ac_link) 2>conftest.er1
17110 ac_status=$?
17111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
b4e70030
JB
17116 { ac_try='test -z "$ac_c_werror_flag"
17117 || test ! -s conftest.err'
bec39cab
AC
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
17123 { ac_try='test -s conftest$ac_exeext'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 eval "$as_ac_var=yes"
17130else
17131 echo "$as_me: failed program was:" >&5
17132sed 's/^/| /' conftest.$ac_ext >&5
17133
b4e70030 17134eval "$as_ac_var=no"
bec39cab
AC
17135fi
17136rm -f conftest.err conftest.$ac_objext \
17137 conftest$ac_exeext conftest.$ac_ext
17138fi
b4e70030
JB
17139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17140echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17141if test `eval echo '${'$as_ac_var'}'` = yes; then
17142 cat >>confdefs.h <<_ACEOF
17143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17144_ACEOF
7be570e7 17145
7be570e7
JM
17146fi
17147done
17148
a3828db0 17149if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
17150 echo "$as_me:$LINENO: checking for working fork" >&5
17151echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
17152if test "${ac_cv_func_fork_works+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17154else
17155 if test "$cross_compiling" = yes; then
17156 ac_cv_func_fork_works=cross
17157else
17158 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
17159/* By Ruediger Kuhlmann. */
17160 #include <sys/types.h>
17161 #if HAVE_UNISTD_H
17162 # include <unistd.h>
17163 #endif
17164 /* Some systems only have a dummy stub for fork() */
17165 int main ()
17166 {
17167 if (fork() < 0)
17168 exit (1);
17169 exit (0);
17170 }
a3828db0
MK
17171_ACEOF
17172rm -f conftest$ac_exeext
17173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17174 (eval $ac_link) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_cv_func_fork_works=yes
17184else
17185 echo "$as_me: program exited with status $ac_status" >&5
17186echo "$as_me: failed program was:" >&5
17187sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 17188
a3828db0
MK
17189( exit $ac_status )
17190ac_cv_func_fork_works=no
17191fi
b4e70030 17192rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17193fi
17194fi
b4e70030
JB
17195echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17196echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
17197
17198else
17199 ac_cv_func_fork_works=$ac_cv_func_fork
17200fi
17201if test "x$ac_cv_func_fork_works" = xcross; then
17202 case $host in
17203 *-*-amigaos* | *-*-msdosdjgpp*)
17204 # Override, as these systems have only a dummy fork() stub
17205 ac_cv_func_fork_works=no
17206 ;;
17207 *)
17208 ac_cv_func_fork_works=yes
17209 ;;
17210 esac
17211 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17212echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17213fi
17214ac_cv_func_vfork_works=$ac_cv_func_vfork
17215if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
17216 echo "$as_me:$LINENO: checking for working vfork" >&5
17217echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 17218if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 17219 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
17220else
17221 if test "$cross_compiling" = yes; then
17222 ac_cv_func_vfork_works=cross
bec39cab
AC
17223else
17224 cat >conftest.$ac_ext <<_ACEOF
17225/* confdefs.h. */
17226_ACEOF
17227cat confdefs.h >>conftest.$ac_ext
17228cat >>conftest.$ac_ext <<_ACEOF
17229/* end confdefs.h. */
a3828db0 17230/* Thanks to Paul Eggert for this test. */
b4e70030
JB
17231#include <stdio.h>
17232#include <stdlib.h>
17233#include <sys/types.h>
17234#include <sys/stat.h>
a3828db0 17235#include <sys/wait.h>
b4e70030
JB
17236#if HAVE_UNISTD_H
17237# include <unistd.h>
17238#endif
a3828db0
MK
17239#if HAVE_VFORK_H
17240# include <vfork.h>
bec39cab 17241#endif
a3828db0
MK
17242/* On some sparc systems, changes by the child to local and incoming
17243 argument registers are propagated back to the parent. The compiler
17244 is told about this with #include <vfork.h>, but some compilers
17245 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17246 static variable whose address is put into a register that is
17247 clobbered by the vfork. */
17248static void
bec39cab 17249#ifdef __cplusplus
a3828db0
MK
17250sparc_address_test (int arg)
17251# else
17252sparc_address_test (arg) int arg;
c906108c 17253#endif
a3828db0
MK
17254{
17255 static pid_t child;
17256 if (!child) {
17257 child = vfork ();
17258 if (child < 0) {
17259 perror ("vfork");
17260 _exit(2);
17261 }
17262 if (!child) {
17263 arg = getpid();
17264 write(-1, "", 0);
17265 _exit (arg);
17266 }
17267 }
17268}
97bf5e38 17269
bec39cab
AC
17270int
17271main ()
17272{
a3828db0
MK
17273 pid_t parent = getpid ();
17274 pid_t child;
17275
17276 sparc_address_test (0);
17277
17278 child = vfork ();
17279
17280 if (child == 0) {
17281 /* Here is another test for sparc vfork register problems. This
17282 test uses lots of local variables, at least as many local
17283 variables as main has allocated so far including compiler
17284 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17285 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17286 reuse the register of parent for one of the local variables,
17287 since it will think that parent can't possibly be used any more
17288 in this routine. Assigning to the local variable will thus
17289 munge parent in the parent process. */
17290 pid_t
17291 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17292 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17293 /* Convince the compiler that p..p7 are live; otherwise, it might
17294 use the same hardware register for all 8 local variables. */
17295 if (p != p1 || p != p2 || p != p3 || p != p4
17296 || p != p5 || p != p6 || p != p7)
17297 _exit(1);
17298
17299 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17300 from child file descriptors. If the child closes a descriptor
17301 before it execs or exits, this munges the parent's descriptor
17302 as well. Test for this by closing stdout in the child. */
17303 _exit(close(fileno(stdout)) != 0);
17304 } else {
17305 int status;
17306 struct stat st;
17307
17308 while (wait(&status) != child)
17309 ;
b4e70030 17310 exit(
a3828db0
MK
17311 /* Was there some problem with vforking? */
17312 child < 0
17313
17314 /* Did the child fail? (This shouldn't happen.) */
17315 || status
17316
17317 /* Did the vfork/compiler bug occur? */
17318 || parent != getpid()
17319
17320 /* Did the file descriptor bug occur? */
17321 || fstat(fileno(stdout), &st) != 0
17322 );
17323 }
bec39cab
AC
17324}
17325_ACEOF
a3828db0 17326rm -f conftest$ac_exeext
bec39cab 17327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17328 (eval $ac_link) 2>&5
bec39cab
AC
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
a3828db0
MK
17337 ac_cv_func_vfork_works=yes
17338else
17339 echo "$as_me: program exited with status $ac_status" >&5
17340echo "$as_me: failed program was:" >&5
17341sed 's/^/| /' conftest.$ac_ext >&5
17342
17343( exit $ac_status )
17344ac_cv_func_vfork_works=no
17345fi
b4e70030 17346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17347fi
17348fi
b4e70030
JB
17349echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17350echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
17351
17352fi;
17353if test "x$ac_cv_func_fork_works" = xcross; then
17354 ac_cv_func_vfork_works=$ac_cv_func_vfork
17355 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17356echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17357fi
17358
17359if test "x$ac_cv_func_vfork_works" = xyes; then
17360
17361cat >>confdefs.h <<\_ACEOF
17362#define HAVE_WORKING_VFORK 1
17363_ACEOF
17364
bec39cab 17365else
bec39cab 17366
a3828db0
MK
17367cat >>confdefs.h <<\_ACEOF
17368#define vfork fork
17369_ACEOF
17370
bec39cab 17371fi
a3828db0
MK
17372if test "x$ac_cv_func_fork_works" = xyes; then
17373
17374cat >>confdefs.h <<\_ACEOF
17375#define HAVE_WORKING_FORK 1
bec39cab 17376_ACEOF
c906108c 17377
c906108c
SS
17378fi
17379
bec39cab
AC
17380
17381
a3828db0 17382for ac_func in canonicalize_file_name realpath
97bf5e38 17383do
bec39cab 17384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 17385echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
17386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17387if eval "test \"\${$as_ac_var+set}\" = set"; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17389else
17390 cat >conftest.$ac_ext <<_ACEOF
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
17396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17398#define $ac_func innocuous_$ac_func
17399
17400/* System header to define __stub macros and hopefully few prototypes,
17401 which can conflict with char $ac_func (); below.
17402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17403 <limits.h> exists even on freestanding compilers. */
17404
17405#ifdef __STDC__
17406# include <limits.h>
17407#else
17408# include <assert.h>
17409#endif
17410
17411#undef $ac_func
17412
17413/* Override any gcc2 internal prototype to avoid an error. */
17414#ifdef __cplusplus
17415extern "C"
17416{
17417#endif
17418/* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17420char $ac_func ();
17421/* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17425choke me
17426#else
17427char (*f) () = $ac_func;
17428#endif
17429#ifdef __cplusplus
17430}
17431#endif
17432
17433int
17434main ()
17435{
17436return f != $ac_func;
17437 ;
17438 return 0;
17439}
17440_ACEOF
17441rm -f conftest.$ac_objext conftest$ac_exeext
17442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17443 (eval $ac_link) 2>conftest.er1
17444 ac_status=$?
17445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -z "$ac_c_werror_flag"
17451 || test ! -s conftest.err'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; } &&
17457 { ac_try='test -s conftest$ac_exeext'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463 eval "$as_ac_var=yes"
17464else
17465 echo "$as_me: failed program was:" >&5
17466sed 's/^/| /' conftest.$ac_ext >&5
17467
17468eval "$as_ac_var=no"
17469fi
17470rm -f conftest.err conftest.$ac_objext \
17471 conftest$ac_exeext conftest.$ac_ext
17472fi
17473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17474echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17475if test `eval echo '${'$as_ac_var'}'` = yes; then
17476 cat >>confdefs.h <<_ACEOF
17477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17478_ACEOF
17479
17480fi
17481done
17482
17483
17484for ac_func in getrusage
17485do
17486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
17488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17489if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491else
17492 cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
17498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17500#define $ac_func innocuous_$ac_func
17501
d3ea6809
MM
17502/* System header to define __stub macros and hopefully few prototypes,
17503 which can conflict with char $ac_func (); below.
17504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505 <limits.h> exists even on freestanding compilers. */
17506
17507#ifdef __STDC__
17508# include <limits.h>
17509#else
17510# include <assert.h>
17511#endif
17512
17513#undef $ac_func
17514
b4e70030 17515/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
17516#ifdef __cplusplus
17517extern "C"
b4e70030 17518{
d3ea6809 17519#endif
b4e70030
JB
17520/* We use char because int might match the return type of a gcc2
17521 builtin and then its argument prototype would still apply. */
d3ea6809
MM
17522char $ac_func ();
17523/* The GNU C library defines this for functions which it implements
17524 to always fail with ENOSYS. Some functions are actually named
17525 something starting with __ and the normal name is an alias. */
b4e70030 17526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 17527choke me
b4e70030
JB
17528#else
17529char (*f) () = $ac_func;
17530#endif
17531#ifdef __cplusplus
17532}
d3ea6809
MM
17533#endif
17534
17535int
17536main ()
17537{
b4e70030 17538return f != $ac_func;
d3ea6809
MM
17539 ;
17540 return 0;
17541}
17542_ACEOF
17543rm -f conftest.$ac_objext conftest$ac_exeext
17544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545 (eval $ac_link) 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
b4e70030
JB
17552 { ac_try='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
d3ea6809
MM
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest$ac_exeext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 eval "$as_ac_var=yes"
17566else
17567 echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
b4e70030 17570eval "$as_ac_var=no"
d3ea6809
MM
17571fi
17572rm -f conftest.err conftest.$ac_objext \
17573 conftest$ac_exeext conftest.$ac_ext
17574fi
b4e70030
JB
17575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17576echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
17577if test `eval echo '${'$as_ac_var'}'` = yes; then
17578 cat >>confdefs.h <<_ACEOF
17579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17580_ACEOF
17581
17582fi
17583done
17584
17585
17586
17587for ac_func in getuid getgid
17588do
17589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17590echo "$as_me:$LINENO: checking for $ac_func" >&5
17591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17592if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17594else
17595 cat >conftest.$ac_ext <<_ACEOF
17596/* confdefs.h. */
17597_ACEOF
17598cat confdefs.h >>conftest.$ac_ext
17599cat >>conftest.$ac_ext <<_ACEOF
17600/* end confdefs.h. */
17601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17603#define $ac_func innocuous_$ac_func
17604
97bf5e38 17605/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17606 which can conflict with char $ac_func (); below.
17607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17608 <limits.h> exists even on freestanding compilers. */
c906108c 17609
bec39cab
AC
17610#ifdef __STDC__
17611# include <limits.h>
17612#else
17613# include <assert.h>
17614#endif
97bf5e38 17615
bec39cab
AC
17616#undef $ac_func
17617
b4e70030 17618/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17619#ifdef __cplusplus
17620extern "C"
b4e70030 17621{
bec39cab 17622#endif
b4e70030
JB
17623/* We use char because int might match the return type of a gcc2
17624 builtin and then its argument prototype would still apply. */
bec39cab 17625char $ac_func ();
97bf5e38
MK
17626/* The GNU C library defines this for functions which it implements
17627 to always fail with ENOSYS. Some functions are actually named
17628 something starting with __ and the normal name is an alias. */
b4e70030 17629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17630choke me
b4e70030
JB
17631#else
17632char (*f) () = $ac_func;
17633#endif
17634#ifdef __cplusplus
17635}
c906108c 17636#endif
97bf5e38 17637
bec39cab
AC
17638int
17639main ()
17640{
b4e70030 17641return f != $ac_func;
bec39cab
AC
17642 ;
17643 return 0;
17644}
17645_ACEOF
17646rm -f conftest.$ac_objext conftest$ac_exeext
17647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>conftest.er1
17649 ac_status=$?
17650 grep -v '^ *+' conftest.er1 >conftest.err
17651 rm -f conftest.er1
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
b4e70030
JB
17655 { ac_try='test -z "$ac_c_werror_flag"
17656 || test ! -s conftest.err'
bec39cab
AC
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; } &&
17662 { ac_try='test -s conftest$ac_exeext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 eval "$as_ac_var=yes"
17669else
17670 echo "$as_me: failed program was:" >&5
17671sed 's/^/| /' conftest.$ac_ext >&5
17672
b4e70030 17673eval "$as_ac_var=no"
bec39cab
AC
17674fi
17675rm -f conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17677fi
b4e70030
JB
17678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17680if test `eval echo '${'$as_ac_var'}'` = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17683_ACEOF
c906108c 17684
c906108c 17685fi
97bf5e38 17686done
c906108c 17687
bec39cab 17688
a3828db0 17689for ac_func in poll
97bf5e38 17690do
bec39cab 17691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17692echo "$as_me:$LINENO: checking for $ac_func" >&5
17693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17694if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17696else
17697 cat >conftest.$ac_ext <<_ACEOF
17698/* confdefs.h. */
17699_ACEOF
17700cat confdefs.h >>conftest.$ac_ext
17701cat >>conftest.$ac_ext <<_ACEOF
17702/* end confdefs.h. */
17703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17705#define $ac_func innocuous_$ac_func
17706
97bf5e38 17707/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17708 which can conflict with char $ac_func (); below.
17709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17710 <limits.h> exists even on freestanding compilers. */
17711
17712#ifdef __STDC__
17713# include <limits.h>
17714#else
17715# include <assert.h>
17716#endif
c906108c 17717
bec39cab 17718#undef $ac_func
97bf5e38 17719
b4e70030 17720/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17721#ifdef __cplusplus
17722extern "C"
b4e70030 17723{
bec39cab 17724#endif
b4e70030
JB
17725/* We use char because int might match the return type of a gcc2
17726 builtin and then its argument prototype would still apply. */
bec39cab 17727char $ac_func ();
97bf5e38
MK
17728/* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
b4e70030 17731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17732choke me
b4e70030
JB
17733#else
17734char (*f) () = $ac_func;
17735#endif
17736#ifdef __cplusplus
17737}
c906108c 17738#endif
97bf5e38 17739
bec39cab
AC
17740int
17741main ()
17742{
b4e70030 17743return f != $ac_func;
bec39cab
AC
17744 ;
17745 return 0;
17746}
17747_ACEOF
17748rm -f conftest.$ac_objext conftest$ac_exeext
17749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17750 (eval $ac_link) 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
b4e70030
JB
17757 { ac_try='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
bec39cab
AC
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest$ac_exeext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 eval "$as_ac_var=yes"
17771else
17772 echo "$as_me: failed program was:" >&5
17773sed 's/^/| /' conftest.$ac_ext >&5
17774
b4e70030 17775eval "$as_ac_var=no"
bec39cab
AC
17776fi
17777rm -f conftest.err conftest.$ac_objext \
17778 conftest$ac_exeext conftest.$ac_ext
17779fi
b4e70030
JB
17780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17782if test `eval echo '${'$as_ac_var'}'` = yes; then
17783 cat >>confdefs.h <<_ACEOF
17784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17785_ACEOF
c906108c 17786
c906108c 17787fi
97bf5e38 17788done
c906108c 17789
bec39cab 17790
a3828db0 17791for ac_func in pread64
97bf5e38 17792do
bec39cab 17793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17794echo "$as_me:$LINENO: checking for $ac_func" >&5
17795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17796if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17798else
17799 cat >conftest.$ac_ext <<_ACEOF
17800/* confdefs.h. */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h. */
17805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17807#define $ac_func innocuous_$ac_func
17808
97bf5e38 17809/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17810 which can conflict with char $ac_func (); below.
17811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17812 <limits.h> exists even on freestanding compilers. */
17813
17814#ifdef __STDC__
17815# include <limits.h>
17816#else
17817# include <assert.h>
17818#endif
c906108c 17819
bec39cab 17820#undef $ac_func
97bf5e38 17821
b4e70030 17822/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17823#ifdef __cplusplus
17824extern "C"
b4e70030 17825{
bec39cab 17826#endif
b4e70030
JB
17827/* We use char because int might match the return type of a gcc2
17828 builtin and then its argument prototype would still apply. */
bec39cab 17829char $ac_func ();
97bf5e38
MK
17830/* The GNU C library defines this for functions which it implements
17831 to always fail with ENOSYS. Some functions are actually named
17832 something starting with __ and the normal name is an alias. */
b4e70030 17833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17834choke me
b4e70030
JB
17835#else
17836char (*f) () = $ac_func;
17837#endif
17838#ifdef __cplusplus
17839}
c906108c 17840#endif
97bf5e38 17841
bec39cab
AC
17842int
17843main ()
17844{
b4e70030 17845return f != $ac_func;
bec39cab
AC
17846 ;
17847 return 0;
17848}
17849_ACEOF
17850rm -f conftest.$ac_objext conftest$ac_exeext
17851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852 (eval $ac_link) 2>conftest.er1
17853 ac_status=$?
17854 grep -v '^ *+' conftest.er1 >conftest.err
17855 rm -f conftest.er1
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
b4e70030
JB
17859 { ac_try='test -z "$ac_c_werror_flag"
17860 || test ! -s conftest.err'
bec39cab
AC
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest$ac_exeext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 eval "$as_ac_var=yes"
17873else
17874 echo "$as_me: failed program was:" >&5
17875sed 's/^/| /' conftest.$ac_ext >&5
17876
b4e70030 17877eval "$as_ac_var=no"
bec39cab
AC
17878fi
17879rm -f conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881fi
b4e70030
JB
17882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17884if test `eval echo '${'$as_ac_var'}'` = yes; then
17885 cat >>confdefs.h <<_ACEOF
17886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17887_ACEOF
c906108c 17888
c906108c 17889fi
97bf5e38 17890done
c906108c 17891
bec39cab 17892
a3828db0 17893for ac_func in sbrk
b757528f 17894do
bec39cab 17895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17896echo "$as_me:$LINENO: checking for $ac_func" >&5
17897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17898if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17900else
17901 cat >conftest.$ac_ext <<_ACEOF
17902/* confdefs.h. */
17903_ACEOF
17904cat confdefs.h >>conftest.$ac_ext
17905cat >>conftest.$ac_ext <<_ACEOF
17906/* end confdefs.h. */
17907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17909#define $ac_func innocuous_$ac_func
17910
b757528f 17911/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17912 which can conflict with char $ac_func (); below.
17913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17914 <limits.h> exists even on freestanding compilers. */
17915
17916#ifdef __STDC__
17917# include <limits.h>
17918#else
17919# include <assert.h>
17920#endif
b757528f 17921
bec39cab 17922#undef $ac_func
b757528f 17923
b4e70030 17924/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17925#ifdef __cplusplus
17926extern "C"
b4e70030 17927{
bec39cab 17928#endif
b4e70030
JB
17929/* We use char because int might match the return type of a gcc2
17930 builtin and then its argument prototype would still apply. */
bec39cab 17931char $ac_func ();
b757528f
JJ
17932/* The GNU C library defines this for functions which it implements
17933 to always fail with ENOSYS. Some functions are actually named
17934 something starting with __ and the normal name is an alias. */
b4e70030 17935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 17936choke me
b4e70030
JB
17937#else
17938char (*f) () = $ac_func;
17939#endif
17940#ifdef __cplusplus
17941}
b757528f
JJ
17942#endif
17943
bec39cab
AC
17944int
17945main ()
17946{
b4e70030 17947return f != $ac_func;
bec39cab
AC
17948 ;
17949 return 0;
17950}
17951_ACEOF
17952rm -f conftest.$ac_objext conftest$ac_exeext
17953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954 (eval $ac_link) 2>conftest.er1
17955 ac_status=$?
17956 grep -v '^ *+' conftest.er1 >conftest.err
17957 rm -f conftest.er1
17958 cat conftest.err >&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } &&
b4e70030
JB
17961 { ac_try='test -z "$ac_c_werror_flag"
17962 || test ! -s conftest.err'
bec39cab
AC
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest$ac_exeext'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17974 eval "$as_ac_var=yes"
17975else
17976 echo "$as_me: failed program was:" >&5
17977sed 's/^/| /' conftest.$ac_ext >&5
17978
b4e70030 17979eval "$as_ac_var=no"
bec39cab
AC
17980fi
17981rm -f conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17983fi
b4e70030
JB
17984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17986if test `eval echo '${'$as_ac_var'}'` = yes; then
17987 cat >>confdefs.h <<_ACEOF
17988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17989_ACEOF
b757528f 17990
b757528f
JJ
17991fi
17992done
17993
bec39cab 17994
a3828db0
MK
17995
17996for ac_func in setpgid setpgrp
bcb3dc3d 17997do
bec39cab 17998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17999echo "$as_me:$LINENO: checking for $ac_func" >&5
18000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18001if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18003else
18004 cat >conftest.$ac_ext <<_ACEOF
18005/* confdefs.h. */
18006_ACEOF
18007cat confdefs.h >>conftest.$ac_ext
18008cat >>conftest.$ac_ext <<_ACEOF
18009/* end confdefs.h. */
18010/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18012#define $ac_func innocuous_$ac_func
18013
bcb3dc3d 18014/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18015 which can conflict with char $ac_func (); below.
18016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18017 <limits.h> exists even on freestanding compilers. */
18018
18019#ifdef __STDC__
18020# include <limits.h>
18021#else
18022# include <assert.h>
18023#endif
bcb3dc3d 18024
bec39cab 18025#undef $ac_func
bcb3dc3d 18026
b4e70030 18027/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18028#ifdef __cplusplus
18029extern "C"
b4e70030 18030{
bec39cab 18031#endif
b4e70030
JB
18032/* We use char because int might match the return type of a gcc2
18033 builtin and then its argument prototype would still apply. */
bec39cab 18034char $ac_func ();
bcb3dc3d
MK
18035/* The GNU C library defines this for functions which it implements
18036 to always fail with ENOSYS. Some functions are actually named
18037 something starting with __ and the normal name is an alias. */
b4e70030 18038#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 18039choke me
b4e70030
JB
18040#else
18041char (*f) () = $ac_func;
18042#endif
18043#ifdef __cplusplus
18044}
bcb3dc3d
MK
18045#endif
18046
bec39cab
AC
18047int
18048main ()
18049{
b4e70030 18050return f != $ac_func;
bec39cab
AC
18051 ;
18052 return 0;
18053}
18054_ACEOF
18055rm -f conftest.$ac_objext conftest$ac_exeext
18056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18057 (eval $ac_link) 2>conftest.er1
18058 ac_status=$?
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } &&
b4e70030
JB
18064 { ac_try='test -z "$ac_c_werror_flag"
18065 || test ! -s conftest.err'
bec39cab
AC
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; } &&
18071 { ac_try='test -s conftest$ac_exeext'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 eval "$as_ac_var=yes"
18078else
18079 echo "$as_me: failed program was:" >&5
18080sed 's/^/| /' conftest.$ac_ext >&5
18081
b4e70030 18082eval "$as_ac_var=no"
bec39cab
AC
18083fi
18084rm -f conftest.err conftest.$ac_objext \
18085 conftest$ac_exeext conftest.$ac_ext
18086fi
b4e70030
JB
18087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18088echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18089if test `eval echo '${'$as_ac_var'}'` = yes; then
18090 cat >>confdefs.h <<_ACEOF
18091#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18092_ACEOF
bcb3dc3d 18093
bcb3dc3d
MK
18094fi
18095done
18096
bec39cab 18097
a3828db0
MK
18098
18099
18100for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 18101do
bec39cab 18102as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18103echo "$as_me:$LINENO: checking for $ac_func" >&5
18104echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18105if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107else
18108 cat >conftest.$ac_ext <<_ACEOF
18109/* confdefs.h. */
18110_ACEOF
18111cat confdefs.h >>conftest.$ac_ext
18112cat >>conftest.$ac_ext <<_ACEOF
18113/* end confdefs.h. */
18114/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18116#define $ac_func innocuous_$ac_func
18117
8b9cf735 18118/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18119 which can conflict with char $ac_func (); below.
18120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18121 <limits.h> exists even on freestanding compilers. */
18122
18123#ifdef __STDC__
18124# include <limits.h>
18125#else
18126# include <assert.h>
18127#endif
8b9cf735 18128
bec39cab 18129#undef $ac_func
8b9cf735 18130
b4e70030 18131/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18132#ifdef __cplusplus
18133extern "C"
b4e70030 18134{
a3828db0 18135#endif
b4e70030
JB
18136/* We use char because int might match the return type of a gcc2
18137 builtin and then its argument prototype would still apply. */
a3828db0
MK
18138char $ac_func ();
18139/* The GNU C library defines this for functions which it implements
18140 to always fail with ENOSYS. Some functions are actually named
18141 something starting with __ and the normal name is an alias. */
b4e70030 18142#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18143choke me
b4e70030
JB
18144#else
18145char (*f) () = $ac_func;
18146#endif
18147#ifdef __cplusplus
18148}
a3828db0
MK
18149#endif
18150
bec39cab
AC
18151int
18152main ()
18153{
b4e70030 18154return f != $ac_func;
bec39cab
AC
18155 ;
18156 return 0;
18157}
18158_ACEOF
a3828db0
MK
18159rm -f conftest.$ac_objext conftest$ac_exeext
18160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18161 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18162 ac_status=$?
18163 grep -v '^ *+' conftest.er1 >conftest.err
18164 rm -f conftest.er1
18165 cat conftest.err >&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } &&
b4e70030
JB
18168 { ac_try='test -z "$ac_c_werror_flag"
18169 || test ! -s conftest.err'
bec39cab
AC
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
a3828db0 18175 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18177 (eval $ac_try) 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; }; then
a3828db0 18181 eval "$as_ac_var=yes"
086ec9eb 18182else
bec39cab
AC
18183 echo "$as_me: failed program was:" >&5
18184sed 's/^/| /' conftest.$ac_ext >&5
18185
b4e70030 18186eval "$as_ac_var=no"
a3828db0
MK
18187fi
18188rm -f conftest.err conftest.$ac_objext \
18189 conftest$ac_exeext conftest.$ac_ext
18190fi
b4e70030
JB
18191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18192echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18193if test `eval echo '${'$as_ac_var'}'` = yes; then
18194 cat >>confdefs.h <<_ACEOF
18195#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18196_ACEOF
18197
086ec9eb 18198fi
a3828db0
MK
18199done
18200
18201
18202for ac_func in socketpair
18203do
18204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18205echo "$as_me:$LINENO: checking for $ac_func" >&5
18206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18207if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18209else
18210 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18211/* confdefs.h. */
18212_ACEOF
18213cat confdefs.h >>conftest.$ac_ext
18214cat >>conftest.$ac_ext <<_ACEOF
18215/* end confdefs.h. */
a3828db0
MK
18216/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18218#define $ac_func innocuous_$ac_func
18219
18220/* System header to define __stub macros and hopefully few prototypes,
18221 which can conflict with char $ac_func (); below.
18222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18223 <limits.h> exists even on freestanding compilers. */
18224
18225#ifdef __STDC__
18226# include <limits.h>
18227#else
18228# include <assert.h>
18229#endif
18230
18231#undef $ac_func
18232
b4e70030 18233/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18234#ifdef __cplusplus
18235extern "C"
b4e70030 18236{
a3828db0 18237#endif
b4e70030
JB
18238/* We use char because int might match the return type of a gcc2
18239 builtin and then its argument prototype would still apply. */
a3828db0
MK
18240char $ac_func ();
18241/* The GNU C library defines this for functions which it implements
18242 to always fail with ENOSYS. Some functions are actually named
18243 something starting with __ and the normal name is an alias. */
b4e70030 18244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18245choke me
b4e70030
JB
18246#else
18247char (*f) () = $ac_func;
18248#endif
18249#ifdef __cplusplus
18250}
a3828db0
MK
18251#endif
18252
bec39cab
AC
18253int
18254main ()
18255{
b4e70030 18256return f != $ac_func;
bec39cab
AC
18257 ;
18258 return 0;
18259}
18260_ACEOF
a3828db0
MK
18261rm -f conftest.$ac_objext conftest$ac_exeext
18262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18264 ac_status=$?
18265 grep -v '^ *+' conftest.er1 >conftest.err
18266 rm -f conftest.er1
18267 cat conftest.err >&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } &&
b4e70030
JB
18270 { ac_try='test -z "$ac_c_werror_flag"
18271 || test ! -s conftest.err'
bec39cab
AC
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; } &&
a3828db0 18277 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
a3828db0 18283 eval "$as_ac_var=yes"
086ec9eb 18284else
bec39cab
AC
18285 echo "$as_me: failed program was:" >&5
18286sed 's/^/| /' conftest.$ac_ext >&5
18287
b4e70030 18288eval "$as_ac_var=no"
086ec9eb 18289fi
a3828db0
MK
18290rm -f conftest.err conftest.$ac_objext \
18291 conftest$ac_exeext conftest.$ac_ext
086ec9eb 18292fi
b4e70030
JB
18293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18294echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18295if test `eval echo '${'$as_ac_var'}'` = yes; then
18296 cat >>confdefs.h <<_ACEOF
18297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18298_ACEOF
086ec9eb
MK
18299
18300fi
a3828db0 18301done
086ec9eb 18302
a3828db0
MK
18303
18304for ac_func in syscall
18305do
18306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18307echo "$as_me:$LINENO: checking for $ac_func" >&5
18308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18309if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 18310 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
18311else
18312 cat >conftest.$ac_ext <<_ACEOF
18313/* confdefs.h. */
18314_ACEOF
18315cat confdefs.h >>conftest.$ac_ext
18316cat >>conftest.$ac_ext <<_ACEOF
18317/* end confdefs.h. */
a3828db0
MK
18318/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18320#define $ac_func innocuous_$ac_func
18321
18322/* System header to define __stub macros and hopefully few prototypes,
18323 which can conflict with char $ac_func (); below.
18324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18325 <limits.h> exists even on freestanding compilers. */
18326
18327#ifdef __STDC__
18328# include <limits.h>
18329#else
18330# include <assert.h>
18331#endif
18332
18333#undef $ac_func
18334
b4e70030 18335/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18336#ifdef __cplusplus
18337extern "C"
b4e70030 18338{
a3828db0 18339#endif
b4e70030
JB
18340/* We use char because int might match the return type of a gcc2
18341 builtin and then its argument prototype would still apply. */
a3828db0
MK
18342char $ac_func ();
18343/* The GNU C library defines this for functions which it implements
18344 to always fail with ENOSYS. Some functions are actually named
18345 something starting with __ and the normal name is an alias. */
b4e70030 18346#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18347choke me
b4e70030
JB
18348#else
18349char (*f) () = $ac_func;
18350#endif
18351#ifdef __cplusplus
18352}
c906108c 18353#endif
97bf5e38 18354
bec39cab
AC
18355int
18356main ()
97bf5e38 18357{
b4e70030 18358return f != $ac_func;
bec39cab
AC
18359 ;
18360 return 0;
97bf5e38 18361}
bec39cab 18362_ACEOF
a3828db0 18363rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 18364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 18365 (eval $ac_link) 2>conftest.er1
bec39cab 18366 ac_status=$?
a3828db0
MK
18367 grep -v '^ *+' conftest.er1 >conftest.err
18368 rm -f conftest.er1
18369 cat conftest.err >&5
bec39cab 18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18371 (exit $ac_status); } &&
b4e70030
JB
18372 { ac_try='test -z "$ac_c_werror_flag"
18373 || test ! -s conftest.err'
a3828db0
MK
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; } &&
18379 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; }; then
a3828db0 18385 eval "$as_ac_var=yes"
c906108c 18386else
a3828db0 18387 echo "$as_me: failed program was:" >&5
bec39cab
AC
18388sed 's/^/| /' conftest.$ac_ext >&5
18389
b4e70030 18390eval "$as_ac_var=no"
97bf5e38 18391fi
a3828db0
MK
18392rm -f conftest.err conftest.$ac_objext \
18393 conftest$ac_exeext conftest.$ac_ext
18394fi
b4e70030
JB
18395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18397if test `eval echo '${'$as_ac_var'}'` = yes; then
18398 cat >>confdefs.h <<_ACEOF
18399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18400_ACEOF
c906108c
SS
18401
18402fi
a3828db0 18403done
c906108c 18404
a3828db0
MK
18405
18406for ac_func in ttrace
18407do
18408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18409echo "$as_me:$LINENO: checking for $ac_func" >&5
18410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18411if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 18412 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 18413else
bec39cab
AC
18414 cat >conftest.$ac_ext <<_ACEOF
18415/* confdefs.h. */
18416_ACEOF
18417cat confdefs.h >>conftest.$ac_ext
18418cat >>conftest.$ac_ext <<_ACEOF
18419/* end confdefs.h. */
a3828db0
MK
18420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18422#define $ac_func innocuous_$ac_func
b83266a0 18423
a3828db0
MK
18424/* System header to define __stub macros and hopefully few prototypes,
18425 which can conflict with char $ac_func (); below.
18426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18427 <limits.h> exists even on freestanding compilers. */
18428
18429#ifdef __STDC__
18430# include <limits.h>
18431#else
18432# include <assert.h>
18433#endif
18434
18435#undef $ac_func
18436
b4e70030 18437/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18438#ifdef __cplusplus
18439extern "C"
b4e70030 18440{
a3828db0 18441#endif
b4e70030
JB
18442/* We use char because int might match the return type of a gcc2
18443 builtin and then its argument prototype would still apply. */
a3828db0
MK
18444char $ac_func ();
18445/* The GNU C library defines this for functions which it implements
18446 to always fail with ENOSYS. Some functions are actually named
18447 something starting with __ and the normal name is an alias. */
b4e70030 18448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18449choke me
b4e70030
JB
18450#else
18451char (*f) () = $ac_func;
18452#endif
18453#ifdef __cplusplus
18454}
a3828db0 18455#endif
97bf5e38 18456
bec39cab
AC
18457int
18458main ()
18459{
b4e70030 18460return f != $ac_func;
bec39cab
AC
18461 ;
18462 return 0;
18463}
18464_ACEOF
a3828db0
MK
18465rm -f conftest.$ac_objext conftest$ac_exeext
18466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18467 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18468 ac_status=$?
18469 grep -v '^ *+' conftest.er1 >conftest.err
18470 rm -f conftest.er1
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
b4e70030
JB
18474 { ac_try='test -z "$ac_c_werror_flag"
18475 || test ! -s conftest.err'
bec39cab
AC
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
a3828db0 18481 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
a3828db0 18487 eval "$as_ac_var=yes"
b83266a0 18488else
bec39cab
AC
18489 echo "$as_me: failed program was:" >&5
18490sed 's/^/| /' conftest.$ac_ext >&5
18491
b4e70030 18492eval "$as_ac_var=no"
b83266a0 18493fi
a3828db0
MK
18494rm -f conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
b83266a0 18496fi
b4e70030
JB
18497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18498echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18499if test `eval echo '${'$as_ac_var'}'` = yes; then
18500 cat >>confdefs.h <<_ACEOF
18501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18502_ACEOF
b83266a0 18503
97bf5e38 18504fi
a3828db0 18505done
b83266a0 18506
a3828db0
MK
18507
18508for ac_func in wborder
18509do
18510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18511echo "$as_me:$LINENO: checking for $ac_func" >&5
18512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18513if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18515else
18516 cat >conftest.$ac_ext <<_ACEOF
18517/* confdefs.h. */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h. */
a3828db0
MK
18522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18524#define $ac_func innocuous_$ac_func
a4db0f07 18525
a3828db0
MK
18526/* System header to define __stub macros and hopefully few prototypes,
18527 which can conflict with char $ac_func (); below.
18528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18529 <limits.h> exists even on freestanding compilers. */
18530
18531#ifdef __STDC__
18532# include <limits.h>
18533#else
18534# include <assert.h>
18535#endif
18536
18537#undef $ac_func
18538
b4e70030 18539/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18540#ifdef __cplusplus
18541extern "C"
b4e70030 18542{
a3828db0 18543#endif
b4e70030
JB
18544/* We use char because int might match the return type of a gcc2
18545 builtin and then its argument prototype would still apply. */
a3828db0
MK
18546char $ac_func ();
18547/* The GNU C library defines this for functions which it implements
18548 to always fail with ENOSYS. Some functions are actually named
18549 something starting with __ and the normal name is an alias. */
b4e70030 18550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18551choke me
b4e70030
JB
18552#else
18553char (*f) () = $ac_func;
18554#endif
18555#ifdef __cplusplus
18556}
a3828db0 18557#endif
97bf5e38 18558
bec39cab
AC
18559int
18560main ()
18561{
b4e70030 18562return f != $ac_func;
bec39cab
AC
18563 ;
18564 return 0;
18565}
18566_ACEOF
a3828db0
MK
18567rm -f conftest.$ac_objext conftest$ac_exeext
18568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18569 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18570 ac_status=$?
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
b4e70030
JB
18576 { ac_try='test -z "$ac_c_werror_flag"
18577 || test ! -s conftest.err'
bec39cab
AC
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; } &&
a3828db0 18583 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
a3828db0 18589 eval "$as_ac_var=yes"
a4db0f07 18590else
bec39cab
AC
18591 echo "$as_me: failed program was:" >&5
18592sed 's/^/| /' conftest.$ac_ext >&5
18593
b4e70030 18594eval "$as_ac_var=no"
a4db0f07 18595fi
a3828db0
MK
18596rm -f conftest.err conftest.$ac_objext \
18597 conftest$ac_exeext conftest.$ac_ext
a4db0f07 18598fi
b4e70030
JB
18599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18600echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18601if test `eval echo '${'$as_ac_var'}'` = yes; then
18602 cat >>confdefs.h <<_ACEOF
18603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18604_ACEOF
a4db0f07
RH
18605
18606fi
a3828db0 18607done
c906108c 18608
06825bd1 18609
a3828db0
MK
18610# Check the return and argument types of ptrace. No canned test for
18611# this, so roll our own.
18612gdb_ptrace_headers='
18613#if HAVE_SYS_TYPES_H
18614# include <sys/types.h>
18615#endif
18616#if HAVE_SYS_PTRACE_H
18617# include <sys/ptrace.h>
18618#endif
18619#if HAVE_UNISTD_H
18620# include <unistd.h>
18621#endif
18622'
18623# There is no point in checking if we don't have a prototype.
b4e70030
JB
18624echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18625echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 18626if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628else
18629 cat >conftest.$ac_ext <<_ACEOF
18630/* confdefs.h. */
18631_ACEOF
18632cat confdefs.h >>conftest.$ac_ext
18633cat >>conftest.$ac_ext <<_ACEOF
18634/* end confdefs.h. */
a3828db0
MK
18635$gdb_ptrace_headers
18636
bec39cab
AC
18637int
18638main ()
18639{
a3828db0
MK
18640#ifndef ptrace
18641 char *p = (char *) ptrace;
06825bd1 18642#endif
a3828db0 18643
bec39cab
AC
18644 ;
18645 return 0;
18646}
18647_ACEOF
18648rm -f conftest.$ac_objext
18649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18650 (eval $ac_compile) 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
b4e70030
JB
18657 { ac_try='test -z "$ac_c_werror_flag"
18658 || test ! -s conftest.err'
bec39cab
AC
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest.$ac_objext'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
a3828db0 18670 ac_cv_have_decl_ptrace=yes
06825bd1 18671else
bec39cab
AC
18672 echo "$as_me: failed program was:" >&5
18673sed 's/^/| /' conftest.$ac_ext >&5
18674
b4e70030 18675ac_cv_have_decl_ptrace=no
06825bd1 18676fi
bec39cab 18677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 18678fi
b4e70030
JB
18679echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18680echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 18681if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 18682
a3828db0
MK
18683cat >>confdefs.h <<_ACEOF
18684#define HAVE_DECL_PTRACE 1
18685_ACEOF
bec39cab 18686
bec39cab 18687
a3828db0
MK
18688else
18689 cat >>confdefs.h <<_ACEOF
18690#define HAVE_DECL_PTRACE 0
bec39cab 18691_ACEOF
06825bd1 18692
a3828db0
MK
18693
18694 : ${gdb_cv_func_ptrace_ret='int'}
18695 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18696
06825bd1
MK
18697fi
18698
a3828db0
MK
18699
18700# Check return type.
b4e70030
JB
18701echo "$as_me:$LINENO: checking return type of ptrace" >&5
18702echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 18703if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18705else
18706 cat >conftest.$ac_ext <<_ACEOF
18707/* confdefs.h. */
18708_ACEOF
18709cat confdefs.h >>conftest.$ac_ext
18710cat >>conftest.$ac_ext <<_ACEOF
18711/* end confdefs.h. */
a3828db0 18712$gdb_ptrace_headers
bec39cab
AC
18713int
18714main ()
18715{
a3828db0 18716extern int ptrace ();
bec39cab
AC
18717 ;
18718 return 0;
18719}
18720_ACEOF
18721rm -f conftest.$ac_objext
18722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18723 (eval $ac_compile) 2>conftest.er1
18724 ac_status=$?
18725 grep -v '^ *+' conftest.er1 >conftest.err
18726 rm -f conftest.er1
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } &&
b4e70030
JB
18730 { ac_try='test -z "$ac_c_werror_flag"
18731 || test ! -s conftest.err'
bec39cab
AC
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest.$ac_objext'
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18740 ac_status=$?
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; }; then
a3828db0 18743 gdb_cv_func_ptrace_ret='int'
70f9f479 18744else
bec39cab
AC
18745 echo "$as_me: failed program was:" >&5
18746sed 's/^/| /' conftest.$ac_ext >&5
18747
b4e70030 18748gdb_cv_func_ptrace_ret='long'
70f9f479 18749fi
bec39cab 18750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 18751fi
b4e70030
JB
18752echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18753echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 18754
a3828db0
MK
18755cat >>confdefs.h <<_ACEOF
18756#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 18757_ACEOF
70f9f479 18758
a3828db0 18759# Check argument types.
b4e70030
JB
18760echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18761echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 18762if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18764else
a3828db0
MK
18765
18766for gdb_arg1 in 'int' 'long'; do
18767 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18768 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18769 for gdb_arg4 in 'int' 'long'; do
18770 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18771/* confdefs.h. */
18772_ACEOF
18773cat confdefs.h >>conftest.$ac_ext
18774cat >>conftest.$ac_ext <<_ACEOF
18775/* end confdefs.h. */
a3828db0 18776$gdb_ptrace_headers
bec39cab
AC
18777int
18778main ()
18779{
a3828db0
MK
18780
18781extern $gdb_cv_func_ptrace_ret
18782 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18783
bec39cab
AC
18784 ;
18785 return 0;
18786}
18787_ACEOF
18788rm -f conftest.$ac_objext
18789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790 (eval $ac_compile) 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
b4e70030
JB
18797 { ac_try='test -z "$ac_c_werror_flag"
18798 || test ! -s conftest.err'
bec39cab
AC
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest.$ac_objext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
a3828db0
MK
18810 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18811 break 4;
5c7f2947 18812else
bec39cab
AC
18813 echo "$as_me: failed program was:" >&5
18814sed 's/^/| /' conftest.$ac_ext >&5
18815
5c7f2947 18816fi
bec39cab 18817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18818 for gdb_arg5 in 'int *' 'int' 'long'; do
18819 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18820/* confdefs.h. */
18821_ACEOF
18822cat confdefs.h >>conftest.$ac_ext
18823cat >>conftest.$ac_ext <<_ACEOF
18824/* end confdefs.h. */
a3828db0 18825$gdb_ptrace_headers
bec39cab
AC
18826int
18827main ()
18828{
a3828db0
MK
18829
18830extern $gdb_cv_func_ptrace_ret
18831 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18832
bec39cab
AC
18833 ;
18834 return 0;
18835}
18836_ACEOF
18837rm -f conftest.$ac_objext
18838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18839 (eval $ac_compile) 2>conftest.er1
18840 ac_status=$?
18841 grep -v '^ *+' conftest.er1 >conftest.err
18842 rm -f conftest.er1
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
b4e70030
JB
18846 { ac_try='test -z "$ac_c_werror_flag"
18847 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18853 { ac_try='test -s conftest.$ac_objext'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; }; then
a3828db0
MK
18859
18860gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18861 break 5;
78434e59 18862else
bec39cab
AC
18863 echo "$as_me: failed program was:" >&5
18864sed 's/^/| /' conftest.$ac_ext >&5
18865
78434e59 18866fi
bec39cab 18867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18868 done
18869 done
18870 done
18871 done
18872done
18873# Provide a safe default value.
18874: ${gdb_cv_func_ptrace_args='int,int,long,long'}
18875
78434e59 18876fi
b4e70030
JB
18877echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18878echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
18879ac_save_IFS=$IFS; IFS=','
18880set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18881IFS=$ac_save_IFS
18882shift
bec39cab 18883
a3828db0
MK
18884cat >>confdefs.h <<_ACEOF
18885#define PTRACE_TYPE_ARG3 $3
18886_ACEOF
18887
18888if test -n "$5"; then
18889
18890cat >>confdefs.h <<_ACEOF
18891#define PTRACE_TYPE_ARG5 $5
bec39cab 18892_ACEOF
78434e59
MK
18893
18894fi
18895
a3828db0 18896if test "$cross_compiling" = no; then
b4e70030
JB
18897 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18898echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18899if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18900 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18901else
18902 if test "$cross_compiling" = yes; then
18903 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18904echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18905 { (exit 1); exit 1; }; }
bec39cab
AC
18906else
18907 cat >conftest.$ac_ext <<_ACEOF
18908/* confdefs.h. */
18909_ACEOF
18910cat confdefs.h >>conftest.$ac_ext
18911cat >>conftest.$ac_ext <<_ACEOF
18912/* end confdefs.h. */
b4e70030
JB
18913#if HAVE_UNISTD_H
18914# include <unistd.h>
18915#endif
18916
bec39cab
AC
18917int
18918main ()
18919{
a3828db0
MK
18920/* If this system has a BSD-style setpgrp which takes arguments,
18921 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18922 exit successfully. */
b4e70030 18923 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
18924 ;
18925 return 0;
18926}
18927_ACEOF
a3828db0
MK
18928rm -f conftest$ac_exeext
18929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18930 (eval $ac_link) 2>&5
bec39cab
AC
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
a3828db0 18939 ac_cv_func_setpgrp_void=no
c906108c 18940else
a3828db0
MK
18941 echo "$as_me: program exited with status $ac_status" >&5
18942echo "$as_me: failed program was:" >&5
bec39cab
AC
18943sed 's/^/| /' conftest.$ac_ext >&5
18944
a3828db0
MK
18945( exit $ac_status )
18946ac_cv_func_setpgrp_void=yes
c906108c 18947fi
b4e70030 18948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 18949fi
a3828db0 18950fi
b4e70030
JB
18951echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18952echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
18953if test $ac_cv_func_setpgrp_void = yes; then
18954
18955cat >>confdefs.h <<\_ACEOF
18956#define SETPGRP_VOID 1
bec39cab 18957_ACEOF
97bf5e38
MK
18958
18959fi
a3828db0
MK
18960
18961else
b4e70030
JB
18962 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18963echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18964if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18965 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18966else
bec39cab
AC
18967 cat >conftest.$ac_ext <<_ACEOF
18968/* confdefs.h. */
18969_ACEOF
18970cat confdefs.h >>conftest.$ac_ext
18971cat >>conftest.$ac_ext <<_ACEOF
18972/* end confdefs.h. */
a3828db0
MK
18973
18974#include <unistd.h>
18975
bec39cab
AC
18976int
18977main ()
18978{
a3828db0
MK
18979
18980 if (setpgrp(1,1) == -1)
18981 exit (0);
18982 else
18983 exit (1);
18984
bec39cab
AC
18985 ;
18986 return 0;
18987}
18988_ACEOF
18989rm -f conftest.$ac_objext
18990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991 (eval $ac_compile) 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } &&
b4e70030
JB
18998 { ac_try='test -z "$ac_c_werror_flag"
18999 || test ! -s conftest.err'
bec39cab
AC
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest.$ac_objext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
a3828db0 19011 ac_cv_func_setpgrp_void=no
c906108c 19012else
bec39cab
AC
19013 echo "$as_me: failed program was:" >&5
19014sed 's/^/| /' conftest.$ac_ext >&5
19015
b4e70030 19016ac_cv_func_setpgrp_void=yes
c906108c 19017fi
bec39cab 19018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19019fi
b4e70030
JB
19020echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19021echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 19022if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 19023 cat >>confdefs.h <<\_ACEOF
a3828db0 19024#define SETPGRP_VOID 1
bec39cab 19025_ACEOF
c3f6f71d 19026
a3828db0 19027fi
c906108c
SS
19028fi
19029
a3828db0
MK
19030# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
19031# since sigsetjmp might only be defined as a macro.
b4e70030
JB
19032echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19033echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 19034if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19036else
19037 cat >conftest.$ac_ext <<_ACEOF
19038/* confdefs.h. */
19039_ACEOF
19040cat confdefs.h >>conftest.$ac_ext
19041cat >>conftest.$ac_ext <<_ACEOF
19042/* end confdefs.h. */
a3828db0
MK
19043
19044#include <setjmp.h>
19045
bec39cab
AC
19046int
19047main ()
19048{
a3828db0 19049sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
19050 ;
19051 return 0;
19052}
19053_ACEOF
19054rm -f conftest.$ac_objext
19055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19057 ac_status=$?
19058 grep -v '^ *+' conftest.er1 >conftest.err
19059 rm -f conftest.er1
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
b4e70030
JB
19063 { ac_try='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
bec39cab
AC
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
a3828db0 19076 gdb_cv_func_sigsetjmp=yes
c906108c 19077else
bec39cab
AC
19078 echo "$as_me: failed program was:" >&5
19079sed 's/^/| /' conftest.$ac_ext >&5
19080
b4e70030 19081gdb_cv_func_sigsetjmp=no
c906108c 19082fi
bec39cab 19083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19084fi
b4e70030
JB
19085echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
19086echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 19087if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 19088
a3828db0
MK
19089cat >>confdefs.h <<\_ACEOF
19090#define HAVE_SIGSETJMP 1
bec39cab 19091_ACEOF
c906108c 19092
97bf5e38 19093fi
c906108c 19094
a3828db0
MK
19095# Assume we'll default to using the included libiberty regex.
19096gdb_use_included_regex=yes
19097
19098# However, if the system regex is GNU regex, then default to *not*
19099# using the included regex.
b4e70030
JB
19100echo "$as_me:$LINENO: checking for GNU regex" >&5
19101echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 19102if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19104else
19105 cat >conftest.$ac_ext <<_ACEOF
19106/* confdefs.h. */
19107_ACEOF
19108cat confdefs.h >>conftest.$ac_ext
19109cat >>conftest.$ac_ext <<_ACEOF
19110/* end confdefs.h. */
a3828db0 19111#include <gnu-versions.h>
bec39cab
AC
19112int
19113main ()
19114{
a3828db0
MK
19115#define REGEX_INTERFACE_VERSION 1
19116#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
19117# error "Version mismatch"
19118#endif
bec39cab
AC
19119 ;
19120 return 0;
19121}
19122_ACEOF
19123rm -f conftest.$ac_objext
19124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19125 (eval $ac_compile) 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
b4e70030
JB
19132 { ac_try='test -z "$ac_c_werror_flag"
19133 || test ! -s conftest.err'
bec39cab
AC
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest.$ac_objext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
a3828db0 19145 gdb_cv_have_gnu_regex=yes
c906108c 19146else
bec39cab
AC
19147 echo "$as_me: failed program was:" >&5
19148sed 's/^/| /' conftest.$ac_ext >&5
19149
b4e70030 19150gdb_cv_have_gnu_regex=no
c906108c 19151fi
bec39cab 19152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19153fi
b4e70030
JB
19154echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
19155echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
19156if test $gdb_cv_have_gnu_regex = yes; then
19157 gdb_use_included_regex=no
19158fi
c906108c 19159
a3828db0 19160
b4e70030 19161# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 19162if test "${with_included_regex+set}" = set; then
b4e70030
JB
19163 withval="$with_included_regex"
19164 gdb_with_regex=$withval
a3828db0
MK
19165else
19166 gdb_with_regex=$gdb_use_included_regex
b4e70030 19167fi;
a3828db0
MK
19168if test "$gdb_with_regex" = yes; then
19169
19170cat >>confdefs.h <<\_ACEOF
19171#define USE_INCLUDED_REGEX 1
bec39cab 19172_ACEOF
c906108c 19173
97bf5e38 19174fi
c906108c 19175
5c45e068 19176# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
19177echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
19178echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 19179if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19181else
19182 cat >conftest.$ac_ext <<_ACEOF
19183/* confdefs.h. */
19184_ACEOF
19185cat confdefs.h >>conftest.$ac_ext
19186cat >>conftest.$ac_ext <<_ACEOF
19187/* end confdefs.h. */
a3828db0
MK
19188#include <sys/param.h>
19189#include <sys/proc.h>
5c45e068
MK
19190
19191
bec39cab
AC
19192int
19193main ()
19194{
5c45e068
MK
19195static struct thread ac_aggr;
19196if (ac_aggr.td_pcb)
19197return 0;
bec39cab
AC
19198 ;
19199 return 0;
19200}
19201_ACEOF
19202rm -f conftest.$ac_objext
19203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19204 (eval $ac_compile) 2>conftest.er1
19205 ac_status=$?
19206 grep -v '^ *+' conftest.er1 >conftest.err
19207 rm -f conftest.er1
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } &&
b4e70030
JB
19211 { ac_try='test -z "$ac_c_werror_flag"
19212 || test ! -s conftest.err'
bec39cab
AC
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
5c45e068 19224 ac_cv_member_struct_thread_td_pcb=yes
c906108c 19225else
bec39cab
AC
19226 echo "$as_me: failed program was:" >&5
19227sed 's/^/| /' conftest.$ac_ext >&5
19228
b4e70030 19229cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
19230/* confdefs.h. */
19231_ACEOF
19232cat confdefs.h >>conftest.$ac_ext
19233cat >>conftest.$ac_ext <<_ACEOF
19234/* end confdefs.h. */
19235#include <sys/param.h>
19236#include <sys/proc.h>
19237
19238
19239int
19240main ()
19241{
19242static struct thread ac_aggr;
19243if (sizeof ac_aggr.td_pcb)
19244return 0;
19245 ;
19246 return 0;
19247}
19248_ACEOF
19249rm -f conftest.$ac_objext
19250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19251 (eval $ac_compile) 2>conftest.er1
19252 ac_status=$?
19253 grep -v '^ *+' conftest.er1 >conftest.err
19254 rm -f conftest.er1
19255 cat conftest.err >&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
b4e70030
JB
19258 { ac_try='test -z "$ac_c_werror_flag"
19259 || test ! -s conftest.err'
5c45e068
MK
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try='test -s conftest.$ac_objext'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271 ac_cv_member_struct_thread_td_pcb=yes
19272else
19273 echo "$as_me: failed program was:" >&5
19274sed 's/^/| /' conftest.$ac_ext >&5
19275
b4e70030 19276ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
19277fi
19278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19279fi
bec39cab 19280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19281fi
b4e70030
JB
19282echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
19283echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 19284if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 19285
5c45e068 19286cat >>confdefs.h <<_ACEOF
a3828db0 19287#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 19288_ACEOF
c906108c 19289
5c45e068 19290
97bf5e38 19291fi
c906108c 19292
5c45e068 19293
a3828db0 19294# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
19295echo "$as_me:$LINENO: checking for struct lwp" >&5
19296echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 19297if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19299else
19300 cat >conftest.$ac_ext <<_ACEOF
19301/* confdefs.h. */
19302_ACEOF
19303cat confdefs.h >>conftest.$ac_ext
19304cat >>conftest.$ac_ext <<_ACEOF
19305/* end confdefs.h. */
a3828db0
MK
19306#include <sys/param.h>
19307#include <sys/lwp.h>
bec39cab
AC
19308int
19309main ()
19310{
a3828db0 19311struct lwp l;
bec39cab
AC
19312 ;
19313 return 0;
19314}
19315_ACEOF
19316rm -f conftest.$ac_objext
19317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19318 (eval $ac_compile) 2>conftest.er1
19319 ac_status=$?
19320 grep -v '^ *+' conftest.er1 >conftest.err
19321 rm -f conftest.er1
19322 cat conftest.err >&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
b4e70030
JB
19325 { ac_try='test -z "$ac_c_werror_flag"
19326 || test ! -s conftest.err'
bec39cab
AC
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
a3828db0 19338 gdb_cv_struct_lwp=yes
c906108c 19339else
bec39cab
AC
19340 echo "$as_me: failed program was:" >&5
19341sed 's/^/| /' conftest.$ac_ext >&5
19342
b4e70030 19343gdb_cv_struct_lwp=no
c906108c 19344fi
bec39cab 19345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19346fi
b4e70030
JB
19347echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
19348echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 19349if test $gdb_cv_struct_lwp = yes; then
c906108c 19350
a3828db0
MK
19351cat >>confdefs.h <<\_ACEOF
19352#define HAVE_STRUCT_LWP 1
bec39cab 19353_ACEOF
c906108c 19354
97bf5e38 19355fi
c906108c 19356
a3828db0 19357# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
19358echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
19359echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 19360if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19362else
19363 cat >conftest.$ac_ext <<_ACEOF
19364/* confdefs.h. */
19365_ACEOF
19366cat confdefs.h >>conftest.$ac_ext
19367cat >>conftest.$ac_ext <<_ACEOF
19368/* end confdefs.h. */
a3828db0
MK
19369#include <sys/types.h>
19370#include <machine/reg.h>
bec39cab
AC
19371int
19372main ()
19373{
a3828db0 19374struct reg r;
bec39cab
AC
19375 ;
19376 return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext
19380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19382 ac_status=$?
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
b4e70030
JB
19388 { ac_try='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
bec39cab
AC
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
a3828db0 19401 gdb_cv_struct_reg=yes
27ca5dad 19402else
bec39cab
AC
19403 echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
b4e70030 19406gdb_cv_struct_reg=no
27ca5dad 19407fi
bec39cab 19408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 19409fi
b4e70030
JB
19410echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
19411echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 19412if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
19413
19414cat >>confdefs.h <<\_ACEOF
a3828db0 19415#define HAVE_STRUCT_REG 1
bec39cab 19416_ACEOF
27ca5dad
MC
19417
19418fi
97bf5e38 19419
a3828db0
MK
19420# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
19421# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
19422echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
19423echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 19424if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 19425 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19426else
bec39cab
AC
19427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
a3828db0 19433#include <machine/reg.h>
5c45e068
MK
19434
19435int
19436main ()
19437{
19438static struct reg ac_aggr;
19439if (ac_aggr.r_fs)
19440return 0;
19441 ;
19442 return 0;
19443}
19444_ACEOF
19445rm -f conftest.$ac_objext
19446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19447 (eval $ac_compile) 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
b4e70030
JB
19454 { ac_try='test -z "$ac_c_werror_flag"
19455 || test ! -s conftest.err'
5c45e068
MK
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; } &&
19461 { ac_try='test -s conftest.$ac_objext'
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 ac_cv_member_struct_reg_r_fs=yes
19468else
19469 echo "$as_me: failed program was:" >&5
19470sed 's/^/| /' conftest.$ac_ext >&5
19471
b4e70030 19472cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
19473/* confdefs.h. */
19474_ACEOF
19475cat confdefs.h >>conftest.$ac_ext
19476cat >>conftest.$ac_ext <<_ACEOF
19477/* end confdefs.h. */
19478#include <machine/reg.h>
19479
bec39cab
AC
19480int
19481main ()
19482{
5c45e068
MK
19483static struct reg ac_aggr;
19484if (sizeof ac_aggr.r_fs)
19485return 0;
bec39cab
AC
19486 ;
19487 return 0;
19488}
19489_ACEOF
19490rm -f conftest.$ac_objext
19491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19492 (eval $ac_compile) 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
b4e70030
JB
19499 { ac_try='test -z "$ac_c_werror_flag"
19500 || test ! -s conftest.err'
bec39cab
AC
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
5c45e068 19512 ac_cv_member_struct_reg_r_fs=yes
3862412b 19513else
bec39cab
AC
19514 echo "$as_me: failed program was:" >&5
19515sed 's/^/| /' conftest.$ac_ext >&5
19516
b4e70030 19517ac_cv_member_struct_reg_r_fs=no
3862412b 19518fi
bec39cab 19519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 19520fi
5c45e068
MK
19521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19522fi
b4e70030
JB
19523echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
19524echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
19525if test $ac_cv_member_struct_reg_r_fs = yes; then
19526
19527cat >>confdefs.h <<_ACEOF
a3828db0 19528#define HAVE_STRUCT_REG_R_FS 1
bec39cab 19529_ACEOF
3862412b 19530
5c45e068 19531
97bf5e38 19532fi
b4e70030
JB
19533echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
19534echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 19535if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 19536 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19537else
bec39cab
AC
19538 cat >conftest.$ac_ext <<_ACEOF
19539/* confdefs.h. */
19540_ACEOF
19541cat confdefs.h >>conftest.$ac_ext
19542cat >>conftest.$ac_ext <<_ACEOF
19543/* end confdefs.h. */
a3828db0 19544#include <machine/reg.h>
5c45e068 19545
bec39cab
AC
19546int
19547main ()
19548{
5c45e068
MK
19549static struct reg ac_aggr;
19550if (ac_aggr.r_gs)
19551return 0;
bec39cab
AC
19552 ;
19553 return 0;
19554}
19555_ACEOF
19556rm -f conftest.$ac_objext
19557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558 (eval $ac_compile) 2>conftest.er1
19559 ac_status=$?
19560 grep -v '^ *+' conftest.er1 >conftest.err
19561 rm -f conftest.er1
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } &&
b4e70030
JB
19565 { ac_try='test -z "$ac_c_werror_flag"
19566 || test ! -s conftest.err'
bec39cab
AC
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try='test -s conftest.$ac_objext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
5c45e068 19578 ac_cv_member_struct_reg_r_gs=yes
3862412b 19579else
bec39cab
AC
19580 echo "$as_me: failed program was:" >&5
19581sed 's/^/| /' conftest.$ac_ext >&5
19582
b4e70030 19583cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
19584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
19589#include <machine/reg.h>
19590
19591int
19592main ()
19593{
19594static struct reg ac_aggr;
19595if (sizeof ac_aggr.r_gs)
19596return 0;
19597 ;
19598 return 0;
19599}
19600_ACEOF
19601rm -f conftest.$ac_objext
19602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19603 (eval $ac_compile) 2>conftest.er1
19604 ac_status=$?
19605 grep -v '^ *+' conftest.er1 >conftest.err
19606 rm -f conftest.er1
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
b4e70030
JB
19610 { ac_try='test -z "$ac_c_werror_flag"
19611 || test ! -s conftest.err'
5c45e068
MK
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try='test -s conftest.$ac_objext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 ac_cv_member_struct_reg_r_gs=yes
19624else
19625 echo "$as_me: failed program was:" >&5
19626sed 's/^/| /' conftest.$ac_ext >&5
19627
b4e70030 19628ac_cv_member_struct_reg_r_gs=no
3862412b 19629fi
bec39cab 19630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 19631fi
5c45e068
MK
19632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19633fi
b4e70030
JB
19634echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19635echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
19636if test $ac_cv_member_struct_reg_r_gs = yes; then
19637
19638cat >>confdefs.h <<_ACEOF
a3828db0 19639#define HAVE_STRUCT_REG_R_GS 1
bec39cab 19640_ACEOF
3862412b 19641
5c45e068 19642
97bf5e38 19643fi
3862412b 19644
5c45e068 19645
a3828db0 19646# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
19647echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19648echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 19649if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 19650 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19651else
bec39cab
AC
19652 cat >conftest.$ac_ext <<_ACEOF
19653/* confdefs.h. */
19654_ACEOF
19655cat confdefs.h >>conftest.$ac_ext
19656cat >>conftest.$ac_ext <<_ACEOF
19657/* end confdefs.h. */
a3828db0 19658#include <sys/ptrace.h>
bec39cab
AC
19659int
19660main ()
19661{
a3828db0 19662PTRACE_GETREGS;
bec39cab
AC
19663 ;
19664 return 0;
19665}
19666_ACEOF
19667rm -f conftest.$ac_objext
19668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19669 (eval $ac_compile) 2>conftest.er1
19670 ac_status=$?
19671 grep -v '^ *+' conftest.er1 >conftest.err
19672 rm -f conftest.er1
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } &&
b4e70030
JB
19676 { ac_try='test -z "$ac_c_werror_flag"
19677 || test ! -s conftest.err'
bec39cab
AC
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest.$ac_objext'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; }; then
a3828db0 19689 gdb_cv_have_ptrace_getregs=yes
451928c5 19690else
bec39cab
AC
19691 echo "$as_me: failed program was:" >&5
19692sed 's/^/| /' conftest.$ac_ext >&5
19693
b4e70030 19694gdb_cv_have_ptrace_getregs=no
451928c5 19695fi
bec39cab 19696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19697fi
19698
b4e70030
JB
19699echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19700echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 19701if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
19702
19703cat >>confdefs.h <<\_ACEOF
a3828db0 19704#define HAVE_PTRACE_GETREGS 1
bec39cab 19705_ACEOF
451928c5 19706
97bf5e38 19707fi
451928c5 19708
a3828db0 19709# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
19710echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19711echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 19712if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 19713 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19714else
bec39cab
AC
19715 cat >conftest.$ac_ext <<_ACEOF
19716/* confdefs.h. */
19717_ACEOF
19718cat confdefs.h >>conftest.$ac_ext
19719cat >>conftest.$ac_ext <<_ACEOF
19720/* end confdefs.h. */
a3828db0 19721#include <sys/ptrace.h>
bec39cab
AC
19722int
19723main ()
19724{
a3828db0 19725PTRACE_GETFPXREGS;
bec39cab
AC
19726 ;
19727 return 0;
19728}
19729_ACEOF
19730rm -f conftest.$ac_objext
19731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732 (eval $ac_compile) 2>conftest.er1
19733 ac_status=$?
19734 grep -v '^ *+' conftest.er1 >conftest.err
19735 rm -f conftest.er1
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
b4e70030
JB
19739 { ac_try='test -z "$ac_c_werror_flag"
19740 || test ! -s conftest.err'
bec39cab
AC
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest.$ac_objext'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
a3828db0 19752 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 19753else
bec39cab
AC
19754 echo "$as_me: failed program was:" >&5
19755sed 's/^/| /' conftest.$ac_ext >&5
19756
b4e70030 19757gdb_cv_have_ptrace_getfpxregs=no
451928c5 19758fi
bec39cab 19759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19760fi
19761
b4e70030
JB
19762echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19763echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 19764if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
19765
19766cat >>confdefs.h <<\_ACEOF
a3828db0 19767#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 19768_ACEOF
451928c5 19769
97bf5e38 19770fi
451928c5 19771
a3828db0 19772# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
19773echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19774echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 19775if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 19776 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19777else
bec39cab
AC
19778 cat >conftest.$ac_ext <<_ACEOF
19779/* confdefs.h. */
19780_ACEOF
19781cat confdefs.h >>conftest.$ac_ext
19782cat >>conftest.$ac_ext <<_ACEOF
19783/* end confdefs.h. */
a3828db0
MK
19784#include <sys/types.h>
19785#include <sys/ptrace.h>
bec39cab
AC
19786int
19787main ()
19788{
a3828db0 19789PT_GETDBREGS;
bec39cab
AC
19790 ;
19791 return 0;
19792}
19793_ACEOF
19794rm -f conftest.$ac_objext
19795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19796 (eval $ac_compile) 2>conftest.er1
19797 ac_status=$?
19798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
b4e70030
JB
19803 { ac_try='test -z "$ac_c_werror_flag"
19804 || test ! -s conftest.err'
bec39cab
AC
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; } &&
19810 { ac_try='test -s conftest.$ac_objext'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
a3828db0 19816 gdb_cv_have_pt_getdbregs=yes
3862412b 19817else
bec39cab
AC
19818 echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
b4e70030 19821gdb_cv_have_pt_getdbregs=no
3862412b 19822fi
bec39cab 19823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19824fi
19825
b4e70030
JB
19826echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19827echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 19828if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
19829
19830cat >>confdefs.h <<\_ACEOF
a3828db0 19831#define HAVE_PT_GETDBREGS 1
bec39cab 19832_ACEOF
3862412b 19833
97bf5e38 19834fi
3862412b 19835
a3828db0 19836# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
19837echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19838echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 19839if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 19840 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19841else
bec39cab
AC
19842 cat >conftest.$ac_ext <<_ACEOF
19843/* confdefs.h. */
19844_ACEOF
19845cat confdefs.h >>conftest.$ac_ext
19846cat >>conftest.$ac_ext <<_ACEOF
19847/* end confdefs.h. */
a3828db0
MK
19848#include <sys/types.h>
19849#include <sys/ptrace.h>
bec39cab
AC
19850int
19851main ()
19852{
a3828db0 19853PT_GETXMMREGS;
bec39cab
AC
19854 ;
19855 return 0;
19856}
19857_ACEOF
19858rm -f conftest.$ac_objext
19859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19860 (eval $ac_compile) 2>conftest.er1
19861 ac_status=$?
19862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
b4e70030
JB
19867 { ac_try='test -z "$ac_c_werror_flag"
19868 || test ! -s conftest.err'
bec39cab
AC
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
a3828db0 19880 gdb_cv_have_pt_getxmmregs=yes
3862412b 19881else
bec39cab
AC
19882 echo "$as_me: failed program was:" >&5
19883sed 's/^/| /' conftest.$ac_ext >&5
19884
b4e70030 19885gdb_cv_have_pt_getxmmregs=no
3862412b 19886fi
bec39cab 19887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19888fi
19889
b4e70030
JB
19890echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19891echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 19892if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
19893
19894cat >>confdefs.h <<\_ACEOF
a3828db0 19895#define HAVE_PT_GETXMMREGS 1
bec39cab 19896_ACEOF
3862412b 19897
97bf5e38 19898fi
3862412b 19899
eb368090 19900# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
19901
19902if test "${target}" = "${host}"; then
19903 case "${host}" in
97bf5e38 19904 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
19905
19906cat >>confdefs.h <<\_ACEOF
97bf5e38 19907#define NEW_PROC_API 1
bec39cab 19908_ACEOF
97bf5e38
MK
19909
19910 ;;
0bbc026e 19911 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
19912
19913cat >>confdefs.h <<\_ACEOF
97bf5e38 19914#define NEW_PROC_API 1
bec39cab 19915_ACEOF
c960c18f
AC
19916
19917 ;;
19918 mips-sgi-irix5*)
19919 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
19920
19921cat >>confdefs.h <<\_ACEOF
c960c18f 19922#define _KMEMUSER 1
bec39cab 19923_ACEOF
97bf5e38
MK
19924
19925 ;;
19926 esac
19927fi
19928
19929if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
19930 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19931echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19932 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934else
19935 cat >conftest.$ac_ext <<_ACEOF
19936/* confdefs.h. */
19937_ACEOF
19938cat confdefs.h >>conftest.$ac_ext
19939cat >>conftest.$ac_ext <<_ACEOF
19940/* end confdefs.h. */
596c9d4b
KB
19941
19942#define _SYSCALL32
19943#include <sys/procfs.h>
bec39cab
AC
19944int
19945main ()
19946{
97bf5e38 19947pstatus_t avar
bec39cab
AC
19948 ;
19949 return 0;
19950}
19951_ACEOF
19952rm -f conftest.$ac_objext
19953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19954 (eval $ac_compile) 2>conftest.er1
19955 ac_status=$?
19956 grep -v '^ *+' conftest.er1 >conftest.err
19957 rm -f conftest.er1
19958 cat conftest.err >&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } &&
b4e70030
JB
19961 { ac_try='test -z "$ac_c_werror_flag"
19962 || test ! -s conftest.err'
bec39cab
AC
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19965 ac_status=$?
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; } &&
19968 { ac_try='test -s conftest.$ac_objext'
19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; }; then
97bf5e38 19974 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 19975else
bec39cab
AC
19976 echo "$as_me: failed program was:" >&5
19977sed 's/^/| /' conftest.$ac_ext >&5
19978
b4e70030 19979bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 19980
596c9d4b 19981fi
bec39cab 19982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19983fi
19984
97bf5e38 19985 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
19986
19987cat >>confdefs.h <<\_ACEOF
97bf5e38 19988#define HAVE_PSTATUS_T 1
bec39cab 19989_ACEOF
596c9d4b
KB
19990
19991 fi
b4e70030
JB
19992 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19993echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 19994
b4e70030
JB
19995 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19996echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19997 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19999else
bec39cab
AC
20000 cat >conftest.$ac_ext <<_ACEOF
20001/* confdefs.h. */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h. */
596c9d4b
KB
20006
20007#define _SYSCALL32
20008#include <sys/procfs.h>
bec39cab
AC
20009int
20010main ()
20011{
97bf5e38 20012prrun_t avar
bec39cab
AC
20013 ;
20014 return 0;
20015}
20016_ACEOF
20017rm -f conftest.$ac_objext
20018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019 (eval $ac_compile) 2>conftest.er1
20020 ac_status=$?
20021 grep -v '^ *+' conftest.er1 >conftest.err
20022 rm -f conftest.er1
20023 cat conftest.err >&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } &&
b4e70030
JB
20026 { ac_try='test -z "$ac_c_werror_flag"
20027 || test ! -s conftest.err'
bec39cab
AC
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest.$ac_objext'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
97bf5e38 20039 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 20040else
bec39cab
AC
20041 echo "$as_me: failed program was:" >&5
20042sed 's/^/| /' conftest.$ac_ext >&5
20043
b4e70030 20044bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 20045
596c9d4b 20046fi
bec39cab 20047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
20048fi
20049
97bf5e38 20050 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
20051
20052cat >>confdefs.h <<\_ACEOF
97bf5e38 20053#define HAVE_PRRUN_T 1
bec39cab 20054_ACEOF
596c9d4b
KB
20055
20056 fi
b4e70030
JB
20057 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
20058echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 20059
b4e70030
JB
20060 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
20061echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20062 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 20064else
bec39cab
AC
20065 cat >conftest.$ac_ext <<_ACEOF
20066/* confdefs.h. */
20067_ACEOF
20068cat confdefs.h >>conftest.$ac_ext
20069cat >>conftest.$ac_ext <<_ACEOF
20070/* end confdefs.h. */
596c9d4b
KB
20071
20072#define _SYSCALL32
20073#include <sys/procfs.h>
bec39cab
AC
20074int
20075main ()
20076{
97bf5e38 20077gregset_t avar
bec39cab
AC
20078 ;
20079 return 0;
20080}
20081_ACEOF
20082rm -f conftest.$ac_objext
20083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20084 (eval $ac_compile) 2>conftest.er1
20085 ac_status=$?
20086 grep -v '^ *+' conftest.er1 >conftest.err
20087 rm -f conftest.er1
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } &&
b4e70030
JB
20091 { ac_try='test -z "$ac_c_werror_flag"
20092 || test ! -s conftest.err'
bec39cab
AC
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20095 ac_status=$?
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; } &&
20098 { ac_try='test -s conftest.$ac_objext'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
97bf5e38 20104 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 20105else
bec39cab
AC
20106 echo "$as_me: failed program was:" >&5
20107sed 's/^/| /' conftest.$ac_ext >&5
20108
b4e70030 20109bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 20110
596c9d4b 20111fi
bec39cab 20112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
20113fi
20114
97bf5e38 20115 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
20116
20117cat >>confdefs.h <<\_ACEOF
97bf5e38 20118#define HAVE_GREGSET_T 1
bec39cab 20119_ACEOF
596c9d4b
KB
20120
20121 fi
b4e70030
JB
20122 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
20123echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 20124
b4e70030
JB
20125 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
20126echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20127 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 20129else
bec39cab
AC
20130 cat >conftest.$ac_ext <<_ACEOF
20131/* confdefs.h. */
20132_ACEOF
20133cat confdefs.h >>conftest.$ac_ext
20134cat >>conftest.$ac_ext <<_ACEOF
20135/* end confdefs.h. */
97bf5e38
MK
20136
20137#define _SYSCALL32
d84dd0c5 20138#include <sys/procfs.h>
bec39cab
AC
20139int
20140main ()
20141{
97bf5e38 20142fpregset_t avar
bec39cab
AC
20143 ;
20144 return 0;
20145}
20146_ACEOF
20147rm -f conftest.$ac_objext
20148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149 (eval $ac_compile) 2>conftest.er1
20150 ac_status=$?
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
b4e70030
JB
20156 { ac_try='test -z "$ac_c_werror_flag"
20157 || test ! -s conftest.err'
bec39cab
AC
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; } &&
20163 { ac_try='test -s conftest.$ac_objext'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
97bf5e38 20169 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 20170else
bec39cab
AC
20171 echo "$as_me: failed program was:" >&5
20172sed 's/^/| /' conftest.$ac_ext >&5
20173
b4e70030 20174bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 20175
d84dd0c5 20176fi
bec39cab 20177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
20178fi
20179
97bf5e38 20180 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
20181
20182cat >>confdefs.h <<\_ACEOF
97bf5e38 20183#define HAVE_FPREGSET_T 1
bec39cab 20184_ACEOF
d84dd0c5 20185
97bf5e38 20186 fi
b4e70030
JB
20187 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
20188echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 20189
b4e70030
JB
20190 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
20191echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20192 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20194else
bec39cab
AC
20195 cat >conftest.$ac_ext <<_ACEOF
20196/* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
20200/* end confdefs.h. */
c906108c 20201
97bf5e38
MK
20202#define _SYSCALL32
20203#include <sys/procfs.h>
bec39cab
AC
20204int
20205main ()
20206{
97bf5e38 20207prgregset_t avar
bec39cab
AC
20208 ;
20209 return 0;
20210}
20211_ACEOF
20212rm -f conftest.$ac_objext
20213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214 (eval $ac_compile) 2>conftest.er1
20215 ac_status=$?
20216 grep -v '^ *+' conftest.er1 >conftest.err
20217 rm -f conftest.er1
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
b4e70030
JB
20221 { ac_try='test -z "$ac_c_werror_flag"
20222 || test ! -s conftest.err'
bec39cab
AC
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; } &&
20228 { ac_try='test -s conftest.$ac_objext'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
97bf5e38 20234 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 20235else
bec39cab
AC
20236 echo "$as_me: failed program was:" >&5
20237sed 's/^/| /' conftest.$ac_ext >&5
20238
b4e70030 20239bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 20240
c906108c 20241fi
bec39cab 20242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20243fi
20244
97bf5e38 20245 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
20246
20247cat >>confdefs.h <<\_ACEOF
97bf5e38 20248#define HAVE_PRGREGSET_T 1
bec39cab 20249_ACEOF
c906108c 20250
97bf5e38 20251 fi
b4e70030
JB
20252 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
20253echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 20254
b4e70030
JB
20255 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
20256echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20257 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20259else
bec39cab
AC
20260 cat >conftest.$ac_ext <<_ACEOF
20261/* confdefs.h. */
20262_ACEOF
20263cat confdefs.h >>conftest.$ac_ext
20264cat >>conftest.$ac_ext <<_ACEOF
20265/* end confdefs.h. */
97bf5e38
MK
20266
20267#define _SYSCALL32
20268#include <sys/procfs.h>
bec39cab
AC
20269int
20270main ()
20271{
97bf5e38 20272prfpregset_t avar
bec39cab
AC
20273 ;
20274 return 0;
20275}
20276_ACEOF
20277rm -f conftest.$ac_objext
20278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20279 (eval $ac_compile) 2>conftest.er1
20280 ac_status=$?
20281 grep -v '^ *+' conftest.er1 >conftest.err
20282 rm -f conftest.er1
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } &&
b4e70030
JB
20286 { ac_try='test -z "$ac_c_werror_flag"
20287 || test ! -s conftest.err'
bec39cab
AC
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest.$ac_objext'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
97bf5e38 20299 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 20300else
bec39cab
AC
20301 echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
b4e70030 20304bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 20305
d45fe813 20306fi
bec39cab 20307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20308fi
20309
97bf5e38 20310 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
20311
20312cat >>confdefs.h <<\_ACEOF
97bf5e38 20313#define HAVE_PRFPREGSET_T 1
bec39cab 20314_ACEOF
d45fe813 20315
97bf5e38 20316 fi
b4e70030
JB
20317 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
20318echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 20319
b4e70030
JB
20320 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
20321echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20322 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20324else
bec39cab
AC
20325 cat >conftest.$ac_ext <<_ACEOF
20326/* confdefs.h. */
20327_ACEOF
20328cat confdefs.h >>conftest.$ac_ext
20329cat >>conftest.$ac_ext <<_ACEOF
20330/* end confdefs.h. */
97bf5e38
MK
20331
20332#define _SYSCALL32
20333#include <sys/procfs.h>
bec39cab
AC
20334int
20335main ()
20336{
97bf5e38 20337prgregset32_t avar
bec39cab
AC
20338 ;
20339 return 0;
20340}
20341_ACEOF
20342rm -f conftest.$ac_objext
20343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20344 (eval $ac_compile) 2>conftest.er1
20345 ac_status=$?
20346 grep -v '^ *+' conftest.er1 >conftest.err
20347 rm -f conftest.er1
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } &&
b4e70030
JB
20351 { ac_try='test -z "$ac_c_werror_flag"
20352 || test ! -s conftest.err'
bec39cab
AC
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; } &&
20358 { ac_try='test -s conftest.$ac_objext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
97bf5e38 20364 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 20365else
bec39cab
AC
20366 echo "$as_me: failed program was:" >&5
20367sed 's/^/| /' conftest.$ac_ext >&5
20368
b4e70030 20369bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 20370
d45fe813 20371fi
bec39cab 20372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20373fi
20374
97bf5e38 20375 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
20376
20377cat >>confdefs.h <<\_ACEOF
97bf5e38 20378#define HAVE_PRGREGSET32_T 1
bec39cab 20379_ACEOF
d45fe813 20380
97bf5e38 20381 fi
b4e70030
JB
20382 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
20383echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 20384
b4e70030
JB
20385 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
20386echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20387 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20389else
bec39cab
AC
20390 cat >conftest.$ac_ext <<_ACEOF
20391/* confdefs.h. */
20392_ACEOF
20393cat confdefs.h >>conftest.$ac_ext
20394cat >>conftest.$ac_ext <<_ACEOF
20395/* end confdefs.h. */
97bf5e38
MK
20396
20397#define _SYSCALL32
20398#include <sys/procfs.h>
bec39cab
AC
20399int
20400main ()
20401{
97bf5e38 20402prfpregset32_t avar
bec39cab
AC
20403 ;
20404 return 0;
20405}
20406_ACEOF
20407rm -f conftest.$ac_objext
20408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409 (eval $ac_compile) 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
b4e70030
JB
20416 { ac_try='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
bec39cab
AC
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
97bf5e38 20429 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 20430else
bec39cab
AC
20431 echo "$as_me: failed program was:" >&5
20432sed 's/^/| /' conftest.$ac_ext >&5
20433
b4e70030 20434bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 20435
d45fe813 20436fi
bec39cab 20437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20438fi
20439
97bf5e38 20440 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
20441
20442cat >>confdefs.h <<\_ACEOF
97bf5e38 20443#define HAVE_PRFPREGSET32_T 1
bec39cab 20444_ACEOF
d45fe813 20445
97bf5e38 20446 fi
b4e70030
JB
20447 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
20448echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 20449
b4e70030
JB
20450 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
20451echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20452 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20454else
bec39cab
AC
20455 cat >conftest.$ac_ext <<_ACEOF
20456/* confdefs.h. */
20457_ACEOF
20458cat confdefs.h >>conftest.$ac_ext
20459cat >>conftest.$ac_ext <<_ACEOF
20460/* end confdefs.h. */
97bf5e38 20461
d45fe813 20462#define _SYSCALL32
97bf5e38 20463#include <sys/procfs.h>
bec39cab
AC
20464int
20465main ()
20466{
97bf5e38 20467lwpid_t avar
bec39cab
AC
20468 ;
20469 return 0;
20470}
20471_ACEOF
20472rm -f conftest.$ac_objext
20473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20474 (eval $ac_compile) 2>conftest.er1
20475 ac_status=$?
20476 grep -v '^ *+' conftest.er1 >conftest.err
20477 rm -f conftest.er1
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
b4e70030
JB
20481 { ac_try='test -z "$ac_c_werror_flag"
20482 || test ! -s conftest.err'
bec39cab
AC
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest.$ac_objext'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
97bf5e38 20494 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 20495else
bec39cab
AC
20496 echo "$as_me: failed program was:" >&5
20497sed 's/^/| /' conftest.$ac_ext >&5
20498
b4e70030 20499bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 20500
d45fe813 20501fi
bec39cab 20502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20503fi
20504
97bf5e38 20505 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
20506
20507cat >>confdefs.h <<\_ACEOF
97bf5e38 20508#define HAVE_LWPID_T 1
bec39cab 20509_ACEOF
d45fe813 20510
97bf5e38 20511 fi
b4e70030
JB
20512 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
20513echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 20514
b4e70030
JB
20515 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
20516echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20517 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20519else
bec39cab
AC
20520 cat >conftest.$ac_ext <<_ACEOF
20521/* confdefs.h. */
20522_ACEOF
20523cat confdefs.h >>conftest.$ac_ext
20524cat >>conftest.$ac_ext <<_ACEOF
20525/* end confdefs.h. */
c906108c 20526
97bf5e38
MK
20527#define _SYSCALL32
20528#include <sys/procfs.h>
bec39cab
AC
20529int
20530main ()
20531{
97bf5e38 20532psaddr_t avar
bec39cab
AC
20533 ;
20534 return 0;
20535}
20536_ACEOF
20537rm -f conftest.$ac_objext
20538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539 (eval $ac_compile) 2>conftest.er1
20540 ac_status=$?
20541 grep -v '^ *+' conftest.er1 >conftest.err
20542 rm -f conftest.er1
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
b4e70030
JB
20546 { ac_try='test -z "$ac_c_werror_flag"
20547 || test ! -s conftest.err'
bec39cab
AC
20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20550 ac_status=$?
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; } &&
20553 { ac_try='test -s conftest.$ac_objext'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20556 ac_status=$?
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
97bf5e38 20559 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 20560else
bec39cab
AC
20561 echo "$as_me: failed program was:" >&5
20562sed 's/^/| /' conftest.$ac_ext >&5
20563
b4e70030 20564bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 20565
c906108c 20566fi
bec39cab 20567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20568fi
20569
97bf5e38 20570 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
20571
20572cat >>confdefs.h <<\_ACEOF
97bf5e38 20573#define HAVE_PSADDR_T 1
bec39cab 20574_ACEOF
c906108c 20575
97bf5e38 20576 fi
b4e70030
JB
20577 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20578echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 20579
b4e70030
JB
20580 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20581echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20582 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20584else
bec39cab
AC
20585 cat >conftest.$ac_ext <<_ACEOF
20586/* confdefs.h. */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h. */
c906108c 20591
97bf5e38
MK
20592#define _SYSCALL32
20593#include <sys/procfs.h>
bec39cab
AC
20594int
20595main ()
20596{
97bf5e38 20597prsysent_t avar
bec39cab
AC
20598 ;
20599 return 0;
20600}
20601_ACEOF
20602rm -f conftest.$ac_objext
20603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20604 (eval $ac_compile) 2>conftest.er1
20605 ac_status=$?
20606 grep -v '^ *+' conftest.er1 >conftest.err
20607 rm -f conftest.er1
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
b4e70030
JB
20611 { ac_try='test -z "$ac_c_werror_flag"
20612 || test ! -s conftest.err'
bec39cab
AC
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest.$ac_objext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20621 ac_status=$?
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
97bf5e38 20624 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 20625else
bec39cab
AC
20626 echo "$as_me: failed program was:" >&5
20627sed 's/^/| /' conftest.$ac_ext >&5
20628
b4e70030 20629bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 20630
c906108c 20631fi
bec39cab 20632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20633fi
20634
97bf5e38 20635 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
20636
20637cat >>confdefs.h <<\_ACEOF
97bf5e38 20638#define HAVE_PRSYSENT_T 1
bec39cab 20639_ACEOF
c906108c 20640
97bf5e38 20641 fi
b4e70030
JB
20642 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20643echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 20644
b4e70030
JB
20645 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20646echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20647 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20649else
bec39cab
AC
20650 cat >conftest.$ac_ext <<_ACEOF
20651/* confdefs.h. */
20652_ACEOF
20653cat confdefs.h >>conftest.$ac_ext
20654cat >>conftest.$ac_ext <<_ACEOF
20655/* end confdefs.h. */
c906108c 20656
97bf5e38
MK
20657#define _SYSCALL32
20658#include <sys/procfs.h>
bec39cab
AC
20659int
20660main ()
20661{
97bf5e38 20662pr_sigset_t avar
bec39cab
AC
20663 ;
20664 return 0;
20665}
20666_ACEOF
20667rm -f conftest.$ac_objext
20668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669 (eval $ac_compile) 2>conftest.er1
20670 ac_status=$?
20671 grep -v '^ *+' conftest.er1 >conftest.err
20672 rm -f conftest.er1
20673 cat conftest.err >&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
b4e70030
JB
20676 { ac_try='test -z "$ac_c_werror_flag"
20677 || test ! -s conftest.err'
bec39cab
AC
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; } &&
20683 { ac_try='test -s conftest.$ac_objext'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20686 ac_status=$?
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
97bf5e38 20689 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 20690else
bec39cab
AC
20691 echo "$as_me: failed program was:" >&5
20692sed 's/^/| /' conftest.$ac_ext >&5
20693
b4e70030 20694bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 20695
c906108c 20696fi
bec39cab 20697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20698fi
20699
97bf5e38 20700 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
20701
20702cat >>confdefs.h <<\_ACEOF
97bf5e38 20703#define HAVE_PR_SIGSET_T 1
bec39cab 20704_ACEOF
c906108c 20705
97bf5e38 20706 fi
b4e70030
JB
20707 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20708echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 20709
b4e70030
JB
20710 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20711echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20712 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20714else
bec39cab
AC
20715 cat >conftest.$ac_ext <<_ACEOF
20716/* confdefs.h. */
20717_ACEOF
20718cat confdefs.h >>conftest.$ac_ext
20719cat >>conftest.$ac_ext <<_ACEOF
20720/* end confdefs.h. */
c906108c 20721
97bf5e38
MK
20722#define _SYSCALL32
20723#include <sys/procfs.h>
bec39cab
AC
20724int
20725main ()
20726{
97bf5e38 20727pr_sigaction64_t avar
bec39cab
AC
20728 ;
20729 return 0;
20730}
20731_ACEOF
20732rm -f conftest.$ac_objext
20733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734 (eval $ac_compile) 2>conftest.er1
20735 ac_status=$?
20736 grep -v '^ *+' conftest.er1 >conftest.err
20737 rm -f conftest.er1
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } &&
b4e70030
JB
20741 { ac_try='test -z "$ac_c_werror_flag"
20742 || test ! -s conftest.err'
bec39cab
AC
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; } &&
20748 { ac_try='test -s conftest.$ac_objext'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
97bf5e38 20754 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 20755else
bec39cab
AC
20756 echo "$as_me: failed program was:" >&5
20757sed 's/^/| /' conftest.$ac_ext >&5
20758
b4e70030 20759bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 20760
c906108c 20761fi
bec39cab 20762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20763fi
20764
97bf5e38 20765 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
20766
20767cat >>confdefs.h <<\_ACEOF
97bf5e38 20768#define HAVE_PR_SIGACTION64_T 1
bec39cab 20769_ACEOF
c906108c 20770
97bf5e38 20771 fi
b4e70030
JB
20772 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20773echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 20774
b4e70030
JB
20775 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20776echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20777 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20779else
bec39cab
AC
20780 cat >conftest.$ac_ext <<_ACEOF
20781/* confdefs.h. */
20782_ACEOF
20783cat confdefs.h >>conftest.$ac_ext
20784cat >>conftest.$ac_ext <<_ACEOF
20785/* end confdefs.h. */
97bf5e38
MK
20786
20787#define _SYSCALL32
20788#include <sys/procfs.h>
bec39cab
AC
20789int
20790main ()
20791{
97bf5e38 20792pr_siginfo64_t avar
bec39cab
AC
20793 ;
20794 return 0;
20795}
20796_ACEOF
20797rm -f conftest.$ac_objext
20798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20799 (eval $ac_compile) 2>conftest.er1
20800 ac_status=$?
20801 grep -v '^ *+' conftest.er1 >conftest.err
20802 rm -f conftest.er1
20803 cat conftest.err >&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } &&
b4e70030
JB
20806 { ac_try='test -z "$ac_c_werror_flag"
20807 || test ! -s conftest.err'
bec39cab
AC
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20810 ac_status=$?
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } &&
20813 { ac_try='test -s conftest.$ac_objext'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
97bf5e38
MK
20819 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20820else
bec39cab
AC
20821 echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
b4e70030 20824bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 20825
97bf5e38 20826fi
bec39cab 20827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20828fi
c906108c 20829
97bf5e38 20830 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
20831
20832cat >>confdefs.h <<\_ACEOF
97bf5e38 20833#define HAVE_PR_SIGINFO64_T 1
bec39cab 20834_ACEOF
c906108c 20835
97bf5e38 20836 fi
b4e70030
JB
20837 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20838echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
20839
20840
97bf5e38
MK
20841
20842
20843
97bf5e38 20844 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
20845 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20846echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
20847 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
20849else
20850 if test "$cross_compiling" = yes; then
97bf5e38 20851 gdb_cv_prfpregset_t_broken=yes
c906108c 20852else
bec39cab
AC
20853 cat >conftest.$ac_ext <<_ACEOF
20854/* confdefs.h. */
20855_ACEOF
20856cat confdefs.h >>conftest.$ac_ext
20857cat >>conftest.$ac_ext <<_ACEOF
20858/* end confdefs.h. */
97bf5e38
MK
20859#include <sys/procfs.h>
20860 int main ()
20861 {
20862 if (sizeof (prfpregset_t) == sizeof (void *))
20863 return 1;
20864 return 0;
20865 }
bec39cab
AC
20866_ACEOF
20867rm -f conftest$ac_exeext
20868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20869 (eval $ac_link) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20875 ac_status=$?
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
97bf5e38 20878 gdb_cv_prfpregset_t_broken=no
c906108c 20879else
bec39cab
AC
20880 echo "$as_me: program exited with status $ac_status" >&5
20881echo "$as_me: failed program was:" >&5
20882sed 's/^/| /' conftest.$ac_ext >&5
20883
20884( exit $ac_status )
20885gdb_cv_prfpregset_t_broken=yes
c906108c 20886fi
b4e70030 20887rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20888fi
c906108c
SS
20889fi
20890
b4e70030
JB
20891 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20892echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 20893 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
20894
20895cat >>confdefs.h <<\_ACEOF
97bf5e38 20896#define PRFPREGSET_T_BROKEN 1
bec39cab 20897_ACEOF
c906108c 20898
97bf5e38
MK
20899 fi
20900 fi
c906108c 20901
bec39cab 20902
b4e70030
JB
20903 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20904echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20905 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20907else
bec39cab
AC
20908 cat >conftest.$ac_ext <<_ACEOF
20909/* confdefs.h. */
20910_ACEOF
20911cat confdefs.h >>conftest.$ac_ext
20912cat >>conftest.$ac_ext <<_ACEOF
20913/* end confdefs.h. */
97bf5e38
MK
20914#include <unistd.h>
20915#include <sys/types.h>
20916#include <sys/procfs.h>
20917
bec39cab
AC
20918int
20919main ()
20920{
97bf5e38
MK
20921
20922 int dummy;;
20923 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
20924
20925 ;
20926 return 0;
20927}
20928_ACEOF
20929rm -f conftest.$ac_objext
20930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931 (eval $ac_compile) 2>conftest.er1
20932 ac_status=$?
20933 grep -v '^ *+' conftest.er1 >conftest.err
20934 rm -f conftest.er1
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
b4e70030
JB
20938 { ac_try='test -z "$ac_c_werror_flag"
20939 || test ! -s conftest.err'
bec39cab
AC
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20942 ac_status=$?
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; } &&
20945 { ac_try='test -s conftest.$ac_objext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
97bf5e38 20951 gdb_cv_have_procfs_piocset=yes
c906108c 20952else
bec39cab
AC
20953 echo "$as_me: failed program was:" >&5
20954sed 's/^/| /' conftest.$ac_ext >&5
20955
b4e70030 20956gdb_cv_have_procfs_piocset=no
c906108c 20957fi
bec39cab 20958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20959fi
97bf5e38 20960
b4e70030
JB
20961 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20962echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 20963 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
20964
20965cat >>confdefs.h <<\_ACEOF
97bf5e38 20966#define HAVE_PROCFS_PIOCSET 1
bec39cab 20967_ACEOF
97bf5e38
MK
20968
20969 fi
c906108c 20970fi
c906108c 20971
97bf5e38 20972if test ${host} = ${target} ; then
bec39cab 20973
b4e70030
JB
20974 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20975echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20976 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20978else
20979 cat >conftest.$ac_ext <<_ACEOF
20980/* confdefs.h. */
20981_ACEOF
20982cat confdefs.h >>conftest.$ac_ext
20983cat >>conftest.$ac_ext <<_ACEOF
20984/* end confdefs.h. */
97bf5e38 20985#include <link.h>
bec39cab
AC
20986int
20987main ()
20988{
97bf5e38 20989struct link_map lm; (void) lm.l_addr;
bec39cab
AC
20990 ;
20991 return 0;
20992}
20993_ACEOF
20994rm -f conftest.$ac_objext
20995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20996 (eval $ac_compile) 2>conftest.er1
20997 ac_status=$?
20998 grep -v '^ *+' conftest.er1 >conftest.err
20999 rm -f conftest.er1
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } &&
b4e70030
JB
21003 { ac_try='test -z "$ac_c_werror_flag"
21004 || test ! -s conftest.err'
bec39cab
AC
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; } &&
21010 { ac_try='test -s conftest.$ac_objext'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21013 ac_status=$?
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
97bf5e38 21016 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 21017else
bec39cab
AC
21018 echo "$as_me: failed program was:" >&5
21019sed 's/^/| /' conftest.$ac_ext >&5
21020
b4e70030 21021gdb_cv_have_struct_link_map_with_l_members=no
c906108c 21022fi
bec39cab 21023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21024fi
21025
b4e70030
JB
21026 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
21027echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 21028 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
21029
21030cat >>confdefs.h <<\_ACEOF
97bf5e38 21031#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 21032_ACEOF
97bf5e38
MK
21033
21034 fi
21035
bec39cab 21036
b4e70030
JB
21037 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
21038echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
21039 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21041else
bec39cab
AC
21042 cat >conftest.$ac_ext <<_ACEOF
21043/* confdefs.h. */
21044_ACEOF
21045cat confdefs.h >>conftest.$ac_ext
21046cat >>conftest.$ac_ext <<_ACEOF
21047/* end confdefs.h. */
97bf5e38
MK
21048#include <sys/types.h>
21049#include <link.h>
bec39cab
AC
21050int
21051main ()
21052{
97bf5e38 21053struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
21054 ;
21055 return 0;
21056}
21057_ACEOF
21058rm -f conftest.$ac_objext
21059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21060 (eval $ac_compile) 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
b4e70030
JB
21067 { ac_try='test -z "$ac_c_werror_flag"
21068 || test ! -s conftest.err'
bec39cab
AC
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; } &&
21074 { ac_try='test -s conftest.$ac_objext'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21077 ac_status=$?
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }; then
97bf5e38
MK
21080 gdb_cv_have_struct_link_map_with_lm_members=yes
21081else
bec39cab
AC
21082 echo "$as_me: failed program was:" >&5
21083sed 's/^/| /' conftest.$ac_ext >&5
21084
b4e70030 21085gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 21086fi
bec39cab 21087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21088fi
c906108c 21089
b4e70030
JB
21090 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
21091echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 21092 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
21093
21094cat >>confdefs.h <<\_ACEOF
97bf5e38 21095#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 21096_ACEOF
97bf5e38
MK
21097
21098 fi
21099
bec39cab 21100
b4e70030
JB
21101 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
21102echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
21103 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
21104 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21105else
bec39cab
AC
21106 cat >conftest.$ac_ext <<_ACEOF
21107/* confdefs.h. */
21108_ACEOF
21109cat confdefs.h >>conftest.$ac_ext
21110cat >>conftest.$ac_ext <<_ACEOF
21111/* end confdefs.h. */
97bf5e38
MK
21112#include <sys/types.h>
21113#ifdef HAVE_NLIST_H
21114#include <nlist.h>
21115#endif
21116#include <link.h>
bec39cab
AC
21117int
21118main ()
21119{
97bf5e38 21120struct so_map lm; (void) lm.som_addr;
bec39cab
AC
21121 ;
21122 return 0;
21123}
21124_ACEOF
21125rm -f conftest.$ac_objext
21126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21127 (eval $ac_compile) 2>conftest.er1
21128 ac_status=$?
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } &&
b4e70030
JB
21134 { ac_try='test -z "$ac_c_werror_flag"
21135 || test ! -s conftest.err'
bec39cab
AC
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; } &&
21141 { ac_try='test -s conftest.$ac_objext'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
97bf5e38
MK
21147 gdb_cv_have_struct_so_map_with_som_members=yes
21148else
bec39cab
AC
21149 echo "$as_me: failed program was:" >&5
21150sed 's/^/| /' conftest.$ac_ext >&5
21151
b4e70030 21152gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 21153fi
bec39cab 21154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21155fi
c906108c 21156
b4e70030
JB
21157 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
21158echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 21159 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
21160
21161cat >>confdefs.h <<\_ACEOF
97bf5e38 21162#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 21163_ACEOF
c906108c 21164
97bf5e38 21165 fi
c906108c 21166
bec39cab 21167
b4e70030
JB
21168 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
21169echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
21170 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21172else
bec39cab
AC
21173 cat >conftest.$ac_ext <<_ACEOF
21174/* confdefs.h. */
21175_ACEOF
21176cat confdefs.h >>conftest.$ac_ext
21177cat >>conftest.$ac_ext <<_ACEOF
21178/* end confdefs.h. */
97bf5e38
MK
21179#define _SYSCALL32
21180#include <sys/link.h>
bec39cab
AC
21181int
21182main ()
21183{
97bf5e38 21184struct link_map32 l;
bec39cab
AC
21185 ;
21186 return 0;
21187}
21188_ACEOF
21189rm -f conftest.$ac_objext
21190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21191 (eval $ac_compile) 2>conftest.er1
21192 ac_status=$?
21193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
b4e70030
JB
21198 { ac_try='test -z "$ac_c_werror_flag"
21199 || test ! -s conftest.err'
bec39cab
AC
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest.$ac_objext'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
97bf5e38
MK
21211 gdb_cv_have_struct_link_map32=yes
21212else
bec39cab
AC
21213 echo "$as_me: failed program was:" >&5
21214sed 's/^/| /' conftest.$ac_ext >&5
21215
b4e70030 21216gdb_cv_have_struct_link_map32=no
97bf5e38 21217fi
bec39cab 21218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21219fi
c906108c 21220
b4e70030
JB
21221 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
21222echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 21223 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
21224
21225cat >>confdefs.h <<\_ACEOF
97bf5e38 21226#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 21227_ACEOF
c906108c 21228
60ca704f
SE
21229
21230cat >>confdefs.h <<\_ACEOF
97bf5e38 21231#define _SYSCALL32 1
bec39cab 21232_ACEOF
c906108c 21233
97bf5e38
MK
21234 fi
21235fi
c906108c 21236
bc8bcb4b 21237# Check if the compiler supports the `long long' type.
c906108c 21238
b4e70030
JB
21239echo "$as_me:$LINENO: checking for long long support in compiler" >&5
21240echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
21241if test "${gdb_cv_c_long_long+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21243else
bec39cab
AC
21244 cat >conftest.$ac_ext <<_ACEOF
21245/* confdefs.h. */
21246_ACEOF
21247cat confdefs.h >>conftest.$ac_ext
21248cat >>conftest.$ac_ext <<_ACEOF
21249/* end confdefs.h. */
bc8bcb4b 21250extern long long foo;
bec39cab
AC
21251int
21252main ()
21253{
bc8bcb4b 21254switch (foo & 2) { case 0: return 1; }
bec39cab
AC
21255 ;
21256 return 0;
21257}
21258_ACEOF
21259rm -f conftest.$ac_objext
21260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21261 (eval $ac_compile) 2>conftest.er1
21262 ac_status=$?
21263 grep -v '^ *+' conftest.er1 >conftest.err
21264 rm -f conftest.er1
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
b4e70030
JB
21268 { ac_try='test -z "$ac_c_werror_flag"
21269 || test ! -s conftest.err'
bec39cab
AC
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; } &&
21275 { ac_try='test -s conftest.$ac_objext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
97bf5e38
MK
21281 gdb_cv_c_long_long=yes
21282else
bec39cab
AC
21283 echo "$as_me: failed program was:" >&5
21284sed 's/^/| /' conftest.$ac_ext >&5
21285
b4e70030 21286gdb_cv_c_long_long=no
97bf5e38 21287fi
bec39cab 21288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21289fi
b4e70030
JB
21290echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
21291echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 21292if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
21293
21294cat >>confdefs.h <<\_ACEOF
97bf5e38 21295#define CC_HAS_LONG_LONG 1
bec39cab 21296_ACEOF
97bf5e38
MK
21297
21298fi
21299
bc8bcb4b 21300# Check if the compiler and runtime support printing long longs.
97bf5e38 21301
b4e70030
JB
21302echo "$as_me:$LINENO: checking for long long support in printf" >&5
21303echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
21304if test "${gdb_cv_printf_has_long_long+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
21306else
21307 if test "$cross_compiling" = yes; then
21308 gdb_cv_printf_has_long_long=no
21309else
bec39cab
AC
21310 cat >conftest.$ac_ext <<_ACEOF
21311/* confdefs.h. */
21312_ACEOF
21313cat confdefs.h >>conftest.$ac_ext
21314cat >>conftest.$ac_ext <<_ACEOF
21315/* end confdefs.h. */
bc8bcb4b
MK
21316$ac_includes_default
21317int
21318main ()
21319{
21320char buf[32];
97bf5e38
MK
21321 long long l = 0;
21322 l = (l << 16) + 0x0123;
21323 l = (l << 16) + 0x4567;
21324 l = (l << 16) + 0x89ab;
21325 l = (l << 16) + 0xcdef;
21326 sprintf (buf, "0x%016llx", l);
21327 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
21328 ;
21329 return 0;
c906108c 21330}
bec39cab
AC
21331_ACEOF
21332rm -f conftest$ac_exeext
21333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21334 (eval $ac_link) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
97bf5e38
MK
21343 gdb_cv_printf_has_long_long=yes
21344else
bec39cab
AC
21345 echo "$as_me: program exited with status $ac_status" >&5
21346echo "$as_me: failed program was:" >&5
21347sed 's/^/| /' conftest.$ac_ext >&5
21348
21349( exit $ac_status )
21350gdb_cv_printf_has_long_long=no
97bf5e38 21351fi
b4e70030 21352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 21353fi
97bf5e38 21354fi
b4e70030
JB
21355echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
21356echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 21357if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
21358
21359cat >>confdefs.h <<\_ACEOF
97bf5e38 21360#define PRINTF_HAS_LONG_LONG 1
bec39cab 21361_ACEOF
97bf5e38
MK
21362
21363fi
97bf5e38 21364
1a619819
LM
21365# Check if the compiler and runtime support printing decfloats.
21366
21367echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
21368echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
21369if test "${gdb_cv_printf_has_decfloat+set}" = set; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21371else
21372 if test "$cross_compiling" = yes; then
21373 gdb_cv_printf_has_decfloat=no
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. */
21381$ac_includes_default
21382int
21383main ()
21384{
21385char buf[64];
21386 _Decimal32 d32 = 1.2345df;
21387 _Decimal64 d64 = 1.2345dd;
21388 _Decimal128 d128 = 1.2345dl;
21389 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
21390 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
21391 ;
21392 return 0;
21393}
21394_ACEOF
21395rm -f conftest$ac_exeext
21396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21397 (eval $ac_link) 2>&5
21398 ac_status=$?
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
21406 gdb_cv_printf_has_decfloat=yes
21407else
21408 echo "$as_me: program exited with status $ac_status" >&5
21409echo "$as_me: failed program was:" >&5
21410sed 's/^/| /' conftest.$ac_ext >&5
21411
21412( exit $ac_status )
21413gdb_cv_printf_has_decfloat=no
21414fi
21415rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21416fi
21417fi
21418echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
21419echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
21420if test $gdb_cv_printf_has_decfloat = yes; then
21421
21422cat >>confdefs.h <<\_ACEOF
21423#define PRINTF_HAS_DECFLOAT 1
21424_ACEOF
21425
21426fi
21427
bc8bcb4b
MK
21428# Check if the compiler supports the `long double' type. We can't use
21429# AC_C_LONG_DOUBLE because that one does additional checks on the
21430# constants defined in <float.h> that fail on some systems,
21431# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 21432
b4e70030
JB
21433echo "$as_me:$LINENO: checking for long double support in compiler" >&5
21434echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 21435if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 21436 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21437else
bec39cab
AC
21438 cat >conftest.$ac_ext <<_ACEOF
21439/* confdefs.h. */
21440_ACEOF
21441cat confdefs.h >>conftest.$ac_ext
21442cat >>conftest.$ac_ext <<_ACEOF
21443/* end confdefs.h. */
97bf5e38 21444long double foo;
bec39cab
AC
21445_ACEOF
21446rm -f conftest.$ac_objext
21447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21448 (eval $ac_compile) 2>conftest.er1
21449 ac_status=$?
21450 grep -v '^ *+' conftest.er1 >conftest.err
21451 rm -f conftest.er1
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } &&
b4e70030
JB
21455 { ac_try='test -z "$ac_c_werror_flag"
21456 || test ! -s conftest.err'
bec39cab
AC
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21459 ac_status=$?
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; } &&
21462 { ac_try='test -s conftest.$ac_objext'
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; }; then
bc8bcb4b 21468 gdb_cv_c_long_double=yes
97bf5e38 21469else
bec39cab
AC
21470 echo "$as_me: failed program was:" >&5
21471sed 's/^/| /' conftest.$ac_ext >&5
21472
b4e70030 21473gdb_cv_c_long_double=no
97bf5e38 21474fi
bec39cab 21475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21476fi
b4e70030
JB
21477echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
21478echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 21479if test $gdb_cv_c_long_double = yes; then
c906108c 21480
bc8bcb4b 21481cat >>confdefs.h <<\_ACEOF
97bf5e38 21482#define HAVE_LONG_DOUBLE 1
bec39cab 21483_ACEOF
97bf5e38
MK
21484
21485fi
21486
bc8bcb4b 21487# Check if the compiler and runtime support printing long doubles.
97bf5e38 21488
b4e70030
JB
21489echo "$as_me:$LINENO: checking for long double support in printf" >&5
21490echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
21491if test "${gdb_cv_printf_has_long_double+set}" = set; then
21492 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
21493else
21494 if test "$cross_compiling" = yes; then
21495 gdb_cv_printf_has_long_double=no
21496else
bec39cab
AC
21497 cat >conftest.$ac_ext <<_ACEOF
21498/* confdefs.h. */
21499_ACEOF
21500cat confdefs.h >>conftest.$ac_ext
21501cat >>conftest.$ac_ext <<_ACEOF
21502/* end confdefs.h. */
bc8bcb4b
MK
21503$ac_includes_default
21504int
21505main ()
21506{
21507char buf[16];
97bf5e38
MK
21508 long double f = 3.141592653;
21509 sprintf (buf, "%Lg", f);
21510 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
21511 ;
21512 return 0;
97bf5e38 21513}
bec39cab
AC
21514_ACEOF
21515rm -f conftest$ac_exeext
21516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21517 (eval $ac_link) 2>&5
21518 ac_status=$?
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21523 ac_status=$?
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
97bf5e38 21526 gdb_cv_printf_has_long_double=yes
c906108c 21527else
bec39cab
AC
21528 echo "$as_me: program exited with status $ac_status" >&5
21529echo "$as_me: failed program was:" >&5
21530sed 's/^/| /' conftest.$ac_ext >&5
21531
21532( exit $ac_status )
21533gdb_cv_printf_has_long_double=no
c906108c 21534fi
b4e70030 21535rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 21536fi
c906108c 21537fi
b4e70030
JB
21538echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
21539echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 21540if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
21541
21542cat >>confdefs.h <<\_ACEOF
97bf5e38 21543#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 21544_ACEOF
97bf5e38
MK
21545
21546fi
97bf5e38 21547
bc8bcb4b 21548# Check if the compiler and runtime support scanning long doubles.
97bf5e38 21549
b4e70030
JB
21550echo "$as_me:$LINENO: checking for long double support in scanf" >&5
21551echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
21552if test "${gdb_cv_scanf_has_long_double+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
21554else
21555 if test "$cross_compiling" = yes; then
21556 gdb_cv_scanf_has_long_double=no
21557else
bec39cab
AC
21558 cat >conftest.$ac_ext <<_ACEOF
21559/* confdefs.h. */
21560_ACEOF
21561cat confdefs.h >>conftest.$ac_ext
21562cat >>conftest.$ac_ext <<_ACEOF
21563/* end confdefs.h. */
bc8bcb4b
MK
21564#include <stdio.h>
21565int
21566main ()
21567{
21568char *buf = "3.141592653";
97bf5e38
MK
21569 long double f = 0;
21570 sscanf (buf, "%Lg", &f);
21571 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
21572 ;
21573 return 0;
97bf5e38 21574}
bec39cab
AC
21575_ACEOF
21576rm -f conftest$ac_exeext
21577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21578 (eval $ac_link) 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
97bf5e38
MK
21587 gdb_cv_scanf_has_long_double=yes
21588else
bec39cab
AC
21589 echo "$as_me: program exited with status $ac_status" >&5
21590echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
21593( exit $ac_status )
21594gdb_cv_scanf_has_long_double=no
97bf5e38 21595fi
b4e70030 21596rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 21597fi
c906108c 21598fi
b4e70030
JB
21599echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
21600echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 21601if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
21602
21603cat >>confdefs.h <<\_ACEOF
97bf5e38 21604#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 21605_ACEOF
97bf5e38
MK
21606
21607fi
c906108c 21608
438013df
AO
21609case ${host_os} in
21610aix*)
b4e70030
JB
21611 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
21612echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
21613if test "${gdb_cv_bigtoc+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 21615else
bec39cab 21616
438013df
AO
21617 SAVE_LDFLAGS=$LDFLAGS
21618
21619 case $GCC in
21620 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
21621 *) gdb_cv_bigtoc=-bbigtoc ;;
21622 esac
21623
21624 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
21625 cat >conftest.$ac_ext <<_ACEOF
21626/* confdefs.h. */
21627_ACEOF
21628cat confdefs.h >>conftest.$ac_ext
21629cat >>conftest.$ac_ext <<_ACEOF
21630/* end confdefs.h. */
438013df 21631
bec39cab
AC
21632int
21633main ()
21634{
438013df 21635int i;
bec39cab
AC
21636 ;
21637 return 0;
21638}
21639_ACEOF
21640rm -f conftest.$ac_objext conftest$ac_exeext
21641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21642 (eval $ac_link) 2>conftest.er1
21643 ac_status=$?
21644 grep -v '^ *+' conftest.er1 >conftest.err
21645 rm -f conftest.er1
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } &&
b4e70030
JB
21649 { ac_try='test -z "$ac_c_werror_flag"
21650 || test ! -s conftest.err'
bec39cab
AC
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; } &&
21656 { ac_try='test -s conftest$ac_exeext'
21657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21658 (eval $ac_try) 2>&5
21659 ac_status=$?
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); }; }; then
438013df
AO
21662 :
21663else
bec39cab
AC
21664 echo "$as_me: failed program was:" >&5
21665sed 's/^/| /' conftest.$ac_ext >&5
21666
b4e70030 21667gdb_cv_bigtoc=
438013df 21668fi
bec39cab
AC
21669rm -f conftest.err conftest.$ac_objext \
21670 conftest$ac_exeext conftest.$ac_ext
ec76baa5 21671 LDFLAGS="${SAVE_LDFLAGS}"
438013df 21672
bec39cab 21673fi
b4e70030
JB
21674echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21675echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
21676 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21677 ;;
21678esac
21679
c906108c
SS
21680
21681
21682if test ${build} = ${host} -a ${host} = ${target} ; then
21683 case ${host_os} in
21684 hpux*)
b4e70030
JB
21685 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21686echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
21687 if test -f /usr/include/dce/cma_config.h ; then
21688 if test "$GCC" = "yes" ; then
b4e70030
JB
21689 echo "$as_me:$LINENO: result: yes" >&5
21690echo "${ECHO_T}yes" >&6
60ca704f
SE
21691
21692cat >>confdefs.h <<\_ACEOF
c906108c 21693#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 21694_ACEOF
c906108c 21695
3483b318 21696 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
21697 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21698 else
b4e70030
JB
21699 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21700echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
21701 fi
21702 else
b4e70030
JB
21703 echo "$as_me:$LINENO: result: no" >&5
21704echo "${ECHO_T}no" >&6
c906108c
SS
21705 fi
21706 ;;
21707 solaris*)
d92419e5
JB
21708 # See if thread_db library is around for Solaris thread debugging.
21709 # Note that we must explicitly test for version 1 of the library
21710 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21711 # the same API.
b4e70030
JB
21712 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21713echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 21714 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
21715 echo "$as_me:$LINENO: result: yes" >&5
21716echo "${ECHO_T}yes" >&6
60ca704f
SE
21717
21718cat >>confdefs.h <<\_ACEOF
c906108c 21719#define HAVE_THREAD_DB_LIB 1
bec39cab 21720_ACEOF
c906108c 21721
3483b318 21722 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 21723 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 21724
b4e70030
JB
21725echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21726echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
21727if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21728 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21729else
bec39cab 21730 ac_check_lib_save_LIBS=$LIBS
c906108c 21731LIBS="-ldl $LIBS"
bec39cab
AC
21732cat >conftest.$ac_ext <<_ACEOF
21733/* confdefs.h. */
21734_ACEOF
21735cat confdefs.h >>conftest.$ac_ext
21736cat >>conftest.$ac_ext <<_ACEOF
21737/* end confdefs.h. */
21738
b4e70030 21739/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21740#ifdef __cplusplus
21741extern "C"
21742#endif
b4e70030
JB
21743/* We use char because int might match the return type of a gcc2
21744 builtin and then its argument prototype would still apply. */
bec39cab
AC
21745char dlopen ();
21746int
21747main ()
21748{
b4e70030 21749dlopen ();
bec39cab
AC
21750 ;
21751 return 0;
21752}
21753_ACEOF
21754rm -f conftest.$ac_objext conftest$ac_exeext
21755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21756 (eval $ac_link) 2>conftest.er1
21757 ac_status=$?
21758 grep -v '^ *+' conftest.er1 >conftest.err
21759 rm -f conftest.er1
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } &&
b4e70030
JB
21763 { ac_try='test -z "$ac_c_werror_flag"
21764 || test ! -s conftest.err'
bec39cab
AC
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21767 ac_status=$?
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; } &&
21770 { ac_try='test -s conftest$ac_exeext'
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21773 ac_status=$?
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; }; then
21776 ac_cv_lib_dl_dlopen=yes
21777else
21778 echo "$as_me: failed program was:" >&5
21779sed 's/^/| /' conftest.$ac_ext >&5
21780
b4e70030 21781ac_cv_lib_dl_dlopen=no
bec39cab
AC
21782fi
21783rm -f conftest.err conftest.$ac_objext \
21784 conftest$ac_exeext conftest.$ac_ext
21785LIBS=$ac_check_lib_save_LIBS
21786fi
b4e70030
JB
21787echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21788echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
21789if test $ac_cv_lib_dl_dlopen = yes; then
21790 cat >>confdefs.h <<_ACEOF
21791#define HAVE_LIBDL 1
21792_ACEOF
c906108c
SS
21793
21794 LIBS="-ldl $LIBS"
21795
c906108c
SS
21796fi
21797
21798 if test "$GCC" = "yes" ; then
21799 # The GNU linker requires the -export-dynamic option to make
21800 # all symbols visible in the dynamic symbol table.
21801 hold_ldflags=$LDFLAGS
b4e70030
JB
21802 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21803echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 21804 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
21805 cat >conftest.$ac_ext <<_ACEOF
21806/* confdefs.h. */
21807_ACEOF
21808cat confdefs.h >>conftest.$ac_ext
21809cat >>conftest.$ac_ext <<_ACEOF
21810/* end confdefs.h. */
c906108c 21811
bec39cab
AC
21812int
21813main ()
21814{
c906108c 21815int i;
bec39cab
AC
21816 ;
21817 return 0;
21818}
21819_ACEOF
21820rm -f conftest.$ac_objext conftest$ac_exeext
21821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21822 (eval $ac_link) 2>conftest.er1
21823 ac_status=$?
21824 grep -v '^ *+' conftest.er1 >conftest.err
21825 rm -f conftest.er1
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } &&
b4e70030
JB
21829 { ac_try='test -z "$ac_c_werror_flag"
21830 || test ! -s conftest.err'
bec39cab
AC
21831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832 (eval $ac_try) 2>&5
21833 ac_status=$?
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); }; } &&
21836 { ac_try='test -s conftest$ac_exeext'
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21839 ac_status=$?
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; }; then
c906108c
SS
21842 found=yes
21843else
bec39cab
AC
21844 echo "$as_me: failed program was:" >&5
21845sed 's/^/| /' conftest.$ac_ext >&5
21846
b4e70030 21847found=no
c906108c 21848fi
bec39cab
AC
21849rm -f conftest.err conftest.$ac_objext \
21850 conftest$ac_exeext conftest.$ac_ext
c906108c 21851 LDFLAGS=$hold_ldflags
b4e70030
JB
21852 echo "$as_me:$LINENO: result: $found" >&5
21853echo "${ECHO_T}$found" >&6
c906108c
SS
21854 if test $found = yes; then
21855 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21856 fi
21857 fi
21858 # Sun randomly tweaked the prototypes in <proc_service.h>
21859 # at one point.
b4e70030
JB
21860 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21861echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
21862 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21864else
bec39cab
AC
21865
21866 cat >conftest.$ac_ext <<_ACEOF
21867/* confdefs.h. */
21868_ACEOF
21869cat confdefs.h >>conftest.$ac_ext
21870cat >>conftest.$ac_ext <<_ACEOF
21871/* end confdefs.h. */
c906108c
SS
21872
21873 #include <proc_service.h>
21874 ps_err_e ps_pdwrite
21875 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 21876
bec39cab
AC
21877int
21878main ()
21879{
21880
21881 ;
21882 return 0;
21883}
21884_ACEOF
21885rm -f conftest.$ac_objext
21886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21887 (eval $ac_compile) 2>conftest.er1
21888 ac_status=$?
21889 grep -v '^ *+' conftest.er1 >conftest.err
21890 rm -f conftest.er1
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } &&
b4e70030
JB
21894 { ac_try='test -z "$ac_c_werror_flag"
21895 || test ! -s conftest.err'
bec39cab
AC
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; } &&
21901 { ac_try='test -s conftest.$ac_objext'
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; }; then
c906108c
SS
21907 gdb_cv_proc_service_is_old=no
21908else
bec39cab
AC
21909 echo "$as_me: failed program was:" >&5
21910sed 's/^/| /' conftest.$ac_ext >&5
21911
b4e70030 21912gdb_cv_proc_service_is_old=yes
c906108c 21913fi
bec39cab
AC
21914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21915
c906108c
SS
21916fi
21917
b4e70030
JB
21918 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21919echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 21920 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
21921
21922cat >>confdefs.h <<\_ACEOF
c906108c 21923#define PROC_SERVICE_IS_OLD 1
bec39cab 21924_ACEOF
c906108c
SS
21925
21926 fi
21927 else
b4e70030
JB
21928 echo "$as_me:$LINENO: result: no" >&5
21929echo "${ECHO_T}no" >&6
c906108c
SS
21930 fi
21931 ;;
d92419e5 21932 aix*)
b4e70030
JB
21933 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21934echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
21935 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21937else
21938 cat >conftest.$ac_ext <<_ACEOF
21939/* confdefs.h. */
21940_ACEOF
21941cat confdefs.h >>conftest.$ac_ext
21942cat >>conftest.$ac_ext <<_ACEOF
21943/* end confdefs.h. */
d92419e5 21944#include <sys/pthdebug.h>
bec39cab
AC
21945int
21946main ()
21947{
d92419e5
JB
21948#ifndef PTHDB_VERSION_3
21949 #error
21950 #endif
bec39cab
AC
21951 ;
21952 return 0;
21953}
21954_ACEOF
21955rm -f conftest.$ac_objext
21956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21957 (eval $ac_compile) 2>conftest.er1
21958 ac_status=$?
21959 grep -v '^ *+' conftest.er1 >conftest.err
21960 rm -f conftest.er1
21961 cat conftest.err >&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } &&
b4e70030
JB
21964 { ac_try='test -z "$ac_c_werror_flag"
21965 || test ! -s conftest.err'
bec39cab
AC
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; } &&
21971 { ac_try='test -s conftest.$ac_objext'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }; then
d92419e5
JB
21977 gdb_cv_have_aix_thread_debug=yes
21978else
bec39cab
AC
21979 echo "$as_me: failed program was:" >&5
21980sed 's/^/| /' conftest.$ac_ext >&5
21981
b4e70030 21982gdb_cv_have_aix_thread_debug=no
d92419e5 21983fi
bec39cab 21984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
21985fi
21986
b4e70030
JB
21987 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21988echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
21989 if test $gdb_cv_have_aix_thread_debug = yes; then
21990 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 21991 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
21992 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21993 fi
21994 ;;
c906108c 21995 esac
bec39cab 21996
c906108c
SS
21997fi
21998
3f47be5c 21999if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
22000 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
22001echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
22002if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22004else
22005 cat >conftest.$ac_ext <<_ACEOF
22006/* confdefs.h. */
22007_ACEOF
22008cat confdefs.h >>conftest.$ac_ext
22009cat >>conftest.$ac_ext <<_ACEOF
22010/* end confdefs.h. */
3f47be5c 22011#include <thread_db.h>
bec39cab
AC
22012int
22013main ()
22014{
3f47be5c 22015int i = TD_NOTALLOC;
bec39cab
AC
22016 ;
22017 return 0;
22018}
22019_ACEOF
22020rm -f conftest.$ac_objext
22021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022 (eval $ac_compile) 2>conftest.er1
22023 ac_status=$?
22024 grep -v '^ *+' conftest.er1 >conftest.err
22025 rm -f conftest.er1
22026 cat conftest.err >&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } &&
b4e70030
JB
22029 { ac_try='test -z "$ac_c_werror_flag"
22030 || test ! -s conftest.err'
bec39cab
AC
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; } &&
22036 { ac_try='test -s conftest.$ac_objext'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
3f47be5c
EZ
22042 gdb_cv_thread_db_h_has_td_notalloc=yes
22043else
bec39cab
AC
22044 echo "$as_me: failed program was:" >&5
22045sed 's/^/| /' conftest.$ac_ext >&5
22046
b4e70030 22047gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 22048
3f47be5c 22049fi
bec39cab 22050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 22051
bec39cab 22052fi
b4e70030
JB
22053echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
22054echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
22055 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
22056echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
22057if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
22058 echo $ECHO_N "(cached) $ECHO_C" >&6
22059else
22060 cat >conftest.$ac_ext <<_ACEOF
22061/* confdefs.h. */
22062_ACEOF
22063cat confdefs.h >>conftest.$ac_ext
22064cat >>conftest.$ac_ext <<_ACEOF
22065/* end confdefs.h. */
22066#include <thread_db.h>
22067int
22068main ()
22069{
22070int i = TD_VERSION;
22071 ;
22072 return 0;
22073}
22074_ACEOF
22075rm -f conftest.$ac_objext
22076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22077 (eval $ac_compile) 2>conftest.er1
22078 ac_status=$?
22079 grep -v '^ *+' conftest.er1 >conftest.err
22080 rm -f conftest.er1
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } &&
22084 { ac_try='test -z "$ac_c_werror_flag"
22085 || test ! -s conftest.err'
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087 (eval $ac_try) 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; } &&
22091 { ac_try='test -s conftest.$ac_objext'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then
22097 gdb_cv_thread_db_h_has_td_version=yes
22098else
22099 echo "$as_me: failed program was:" >&5
22100sed 's/^/| /' conftest.$ac_ext >&5
22101
22102gdb_cv_thread_db_h_has_td_version=no
22103
22104fi
22105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22106
22107fi
22108echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
22109echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
22110 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
22111echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
22112if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22114else
22115 cat >conftest.$ac_ext <<_ACEOF
22116/* confdefs.h. */
22117_ACEOF
22118cat confdefs.h >>conftest.$ac_ext
22119cat >>conftest.$ac_ext <<_ACEOF
22120/* end confdefs.h. */
22121#include <thread_db.h>
22122int
22123main ()
22124{
22125int i = TD_NOTLS;
22126 ;
22127 return 0;
22128}
22129_ACEOF
22130rm -f conftest.$ac_objext
22131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22132 (eval $ac_compile) 2>conftest.er1
22133 ac_status=$?
22134 grep -v '^ *+' conftest.er1 >conftest.err
22135 rm -f conftest.er1
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
22139 { ac_try='test -z "$ac_c_werror_flag"
22140 || test ! -s conftest.err'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22143 ac_status=$?
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; } &&
22146 { ac_try='test -s conftest.$ac_objext'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 gdb_cv_thread_db_h_has_td_notls=yes
22153else
22154 echo "$as_me: failed program was:" >&5
22155sed 's/^/| /' conftest.$ac_ext >&5
22156
22157gdb_cv_thread_db_h_has_td_notls=no
22158
22159fi
22160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22161
22162fi
22163echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
22164echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
22165fi
22166if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
22167
22168cat >>confdefs.h <<\_ACEOF
3f47be5c 22169#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 22170_ACEOF
3f47be5c 22171
59f80f10
DJ
22172fi
22173if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
22174
22175cat >>confdefs.h <<\_ACEOF
22176#define THREAD_DB_HAS_TD_VERSION 1
22177_ACEOF
22178
22179fi
22180if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
22181
22182cat >>confdefs.h <<\_ACEOF
22183#define THREAD_DB_HAS_TD_NOTLS 1
22184_ACEOF
22185
3f47be5c
EZ
22186fi
22187
b757528f 22188if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
22189 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
22190echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
22191if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
22192 echo $ECHO_N "(cached) $ECHO_C" >&6
22193else
22194 cat >conftest.$ac_ext <<_ACEOF
22195/* confdefs.h. */
22196_ACEOF
22197cat confdefs.h >>conftest.$ac_ext
22198cat >>conftest.$ac_ext <<_ACEOF
22199/* end confdefs.h. */
b757528f 22200#include <sys/syscall.h>
bec39cab
AC
22201int
22202main ()
22203{
b757528f 22204int i = __NR_tkill;
bec39cab
AC
22205 ;
22206 return 0;
22207}
22208_ACEOF
22209rm -f conftest.$ac_objext
22210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22211 (eval $ac_compile) 2>conftest.er1
22212 ac_status=$?
22213 grep -v '^ *+' conftest.er1 >conftest.err
22214 rm -f conftest.er1
22215 cat conftest.err >&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } &&
b4e70030
JB
22218 { ac_try='test -z "$ac_c_werror_flag"
22219 || test ! -s conftest.err'
bec39cab
AC
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22222 ac_status=$?
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; } &&
22225 { ac_try='test -s conftest.$ac_objext'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22228 ac_status=$?
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
b757528f
JJ
22231 gdb_cv_sys_syscall_h_has_tkill=yes
22232else
bec39cab
AC
22233 echo "$as_me: failed program was:" >&5
22234sed 's/^/| /' conftest.$ac_ext >&5
22235
b4e70030 22236gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 22237
b757528f 22238fi
bec39cab 22239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 22240
bec39cab 22241fi
b4e70030
JB
22242echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
22243echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
22244fi
22245if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
22246
22247cat >>confdefs.h <<\_ACEOF
b757528f 22248#define HAVE_TKILL_SYSCALL 1
bec39cab 22249_ACEOF
b757528f
JJ
22250
22251fi
22252
fb40c209 22253
bec39cab 22254
b4e70030 22255# Check whether --with-sysroot or --without-sysroot was given.
030292b7 22256if test "${with_sysroot+set}" = set; then
b4e70030
JB
22257 withval="$with_sysroot"
22258
030292b7 22259 case ${with_sysroot} in
715d1656 22260 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
22261 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
22262 esac
22263
22264 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
22265
07abfebf
RS
22266 if test "x$prefix" = xNONE; then
22267 test_prefix=/usr/local
22268 else
22269 test_prefix=$prefix
22270 fi
aa28a74e 22271 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 22272 test_exec_prefix=$test_prefix
030292b7 22273 else
07abfebf 22274 test_exec_prefix=$exec_prefix
030292b7
DJ
22275 fi
22276 case ${TARGET_SYSTEM_ROOT} in
715d1656 22277 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
22278 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
22279 '${prefix}'|'${prefix}/'*|\
715d1656 22280 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
22281 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
22282 TARGET_SYSTEM_ROOT_DEFINE="$t"
22283 ;;
22284 esac
22285
22286else
bec39cab 22287
030292b7
DJ
22288 TARGET_SYSTEM_ROOT=
22289 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
22290
b4e70030 22291fi;
030292b7
DJ
22292
22293
22294
b4e70030 22295# Check whether --enable-werror or --disable-werror was given.
094a342e 22296if test "${enable_werror+set}" = set; then
b4e70030
JB
22297 enableval="$enable_werror"
22298 case "${enableval}" in
094a342e
MK
22299 yes | y) ERROR_ON_WARNING="yes" ;;
22300 no | n) ERROR_ON_WARNING="no" ;;
22301 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
22302echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
22303 { (exit 1); exit 1; }; } ;;
22304 esac
b4e70030 22305fi;
094a342e
MK
22306
22307# Enable -Werror by default when using gcc
22308if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
22309 ERROR_ON_WARNING=yes
22310fi
22311
22312WERROR_CFLAGS=""
22313if test "${ERROR_ON_WARNING}" = yes ; then
22314 WERROR_CFLAGS="-Werror"
22315fi
22316
aa79a185
DJ
22317# The entries after -Wno-pointer-sign are disabled warnings which may
22318# be enabled in the future, which can not currently be used to build
22319# GDB.
22320# NOTE: If you change this list, remember to update
3b851bce 22321# gdb/doc/gdbint.texinfo.
aa79a185
DJ
22322build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
22323-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 22324-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 22325
b4e70030 22326# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 22327if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
22328 enableval="$enable_build_warnings"
22329 case "${enableval}" in
c906108c
SS
22330 yes) ;;
22331 no) build_warnings="-w";;
22332 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22333 build_warnings="${build_warnings} ${t}";;
22334 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22335 build_warnings="${t} ${build_warnings}";;
22336 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22337esac
d4f3574e 22338if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 22339 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 22340fi
b4e70030 22341fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 22342if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
22343 enableval="$enable_gdb_build_warnings"
22344 case "${enableval}" in
3b851bce
AC
22345 yes) ;;
22346 no) build_warnings="-w";;
22347 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22348 build_warnings="${build_warnings} ${t}";;
22349 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22350 build_warnings="${t} ${build_warnings}";;
22351 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22352esac
22353if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22354 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
22355fi
b4e70030 22356fi; WARN_CFLAGS=""
c906108c
SS
22357if test "x${build_warnings}" != x -a "x$GCC" = xyes
22358then
b4e70030
JB
22359 echo "$as_me:$LINENO: checking compiler warning flags" >&5
22360echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
22361 # Separate out the -Werror flag as some files just cannot be
22362 # compiled with it enabled.
22363 for w in ${build_warnings}; do
22364 case $w in
22365 -Werr*) WERROR_CFLAGS=-Werror ;;
22366 *) # Check that GCC accepts it
4536bbc6
AC
22367 saved_CFLAGS="$CFLAGS"
22368 CFLAGS="$CFLAGS $w"
bec39cab
AC
22369 cat >conftest.$ac_ext <<_ACEOF
22370/* confdefs.h. */
22371_ACEOF
22372cat confdefs.h >>conftest.$ac_ext
22373cat >>conftest.$ac_ext <<_ACEOF
22374/* end confdefs.h. */
4536bbc6 22375
bec39cab
AC
22376int
22377main ()
22378{
4536bbc6 22379
bec39cab
AC
22380 ;
22381 return 0;
22382}
22383_ACEOF
22384rm -f conftest.$ac_objext
22385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22386 (eval $ac_compile) 2>conftest.er1
22387 ac_status=$?
22388 grep -v '^ *+' conftest.er1 >conftest.err
22389 rm -f conftest.er1
22390 cat conftest.err >&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } &&
b4e70030
JB
22393 { ac_try='test -z "$ac_c_werror_flag"
22394 || test ! -s conftest.err'
bec39cab
AC
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; } &&
22400 { ac_try='test -s conftest.$ac_objext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22403 ac_status=$?
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
4536bbc6
AC
22406 WARN_CFLAGS="${WARN_CFLAGS} $w"
22407else
bec39cab
AC
22408 echo "$as_me: failed program was:" >&5
22409sed 's/^/| /' conftest.$ac_ext >&5
22410
4536bbc6 22411fi
bec39cab 22412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 22413 CFLAGS="$saved_CFLAGS"
746a987d
AC
22414 esac
22415 done
aa79a185
DJ
22416 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
22417echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
22418fi
22419
22420
104c1213 22421
7a292a7a 22422# In the Cygwin environment, we need some additional flags.
b4e70030
JB
22423echo "$as_me:$LINENO: checking for cygwin" >&5
22424echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
22425if test "${gdb_cv_os_cygwin+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22427else
22428 cat >conftest.$ac_ext <<_ACEOF
22429/* confdefs.h. */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h. */
7a292a7a
SS
22434
22435#if defined (__CYGWIN__) || defined (__CYGWIN32__)
22436lose
22437#endif
bec39cab 22438_ACEOF
7a292a7a 22439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 22440 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
22441 gdb_cv_os_cygwin=yes
22442else
7a292a7a
SS
22443 gdb_cv_os_cygwin=no
22444fi
22445rm -f conftest*
22446
22447fi
b4e70030
JB
22448echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
22449echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 22450
aff38e61 22451
3eb25fda 22452SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 22453case ${host} in
95cbc983
AC
22454 *go32* ) SER_HARDWIRE=ser-go32.o ;;
22455 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 22456 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
22457esac
22458
22459
cd0fc7c3
SS
22460# libreadline needs libuser32.a in a cygwin environment
22461WIN32LIBS=
22462if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
22463 WIN32LIBS="-luser32"
22464 case "${target}" in
22465 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
22466 ;;
22467 esac
cd0fc7c3 22468fi
c906108c 22469
b4505029
MM
22470# The ser-tcp.c module requires sockets.
22471case ${host} in
22472 *mingw32*)
22473
22474cat >>confdefs.h <<\_ACEOF
22475#define USE_WIN32API 1
22476_ACEOF
22477
22478 WIN32LIBS="$WIN32LIBS -lws2_32"
22479 ;;
22480esac
22481
7a292a7a 22482
31d99776
DJ
22483# Add ELF support to GDB, but only if BFD includes ELF support.
22484OLD_CFLAGS=$CFLAGS
22485OLD_LDFLAGS=$LDFLAGS
22486OLD_LIBS=$LIBS
cab58a69 22487CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 22488LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9
DJ
22489intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
22490LIBS="$LIBS -lbfd -liberty $intl"
31d99776
DJ
22491echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
22492echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
22493if test "${gdb_cv_var_elf+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22495else
22496 cat >conftest.$ac_ext <<_ACEOF
22497/* confdefs.h. */
22498_ACEOF
22499cat confdefs.h >>conftest.$ac_ext
22500cat >>conftest.$ac_ext <<_ACEOF
22501/* end confdefs.h. */
22502#include <stdlib.h>
22503#include "bfd.h"
22504#include "elf-bfd.h"
22505
22506int
22507main ()
22508{
22509bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
22510 ;
22511 return 0;
22512}
22513_ACEOF
22514rm -f conftest.$ac_objext conftest$ac_exeext
22515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22516 (eval $ac_link) 2>conftest.er1
22517 ac_status=$?
22518 grep -v '^ *+' conftest.er1 >conftest.err
22519 rm -f conftest.er1
22520 cat conftest.err >&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } &&
22523 { ac_try='test -z "$ac_c_werror_flag"
22524 || test ! -s conftest.err'
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22527 ac_status=$?
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; } &&
22530 { ac_try='test -s conftest$ac_exeext'
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5
22533 ac_status=$?
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; }; then
22536 gdb_cv_var_elf=yes
22537else
22538 echo "$as_me: failed program was:" >&5
22539sed 's/^/| /' conftest.$ac_ext >&5
22540
22541gdb_cv_var_elf=no
22542fi
22543rm -f conftest.err conftest.$ac_objext \
22544 conftest$ac_exeext conftest.$ac_ext
22545fi
22546echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
22547echo "${ECHO_T}$gdb_cv_var_elf" >&6
22548if test $gdb_cv_var_elf = yes; then
22549 CONFIG_OBS="$CONFIG_OBS elfread.o"
22550
22551cat >>confdefs.h <<\_ACEOF
22552#define HAVE_ELF 1
22553_ACEOF
22554
22555fi
22556CFLAGS=$OLD_CFLAGS
22557LDFLAGS=$OLD_LDFLAGS
22558LIBS=$OLD_LIBS
22559
121ce6e5
DJ
22560# Add any host-specific objects to GDB.
22561CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
22562
3fc11d3e
JM
22563LIBGUI="../libgui/src/libgui.a"
22564GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
22565
22566
7a292a7a 22567
3fc11d3e
JM
22568WIN32LDAPP=
22569
22570
22571
d91670b9
CV
22572case "${host}" in
22573*-*-cygwin*)
22574 configdir="win"
22575 ;;
22576*)
22577 configdir="unix"
22578 ;;
22579esac
3fc11d3e
JM
22580
22581GDBTKLIBS=
22582if test "${enable_gdbtk}" = "yes"; then
22583
d1c3b63a
KS
22584 # Gdbtk must have an absolute path to srcdir in order to run
22585 # properly when not installed.
22586 here=`pwd`
22587 cd ${srcdir}
22588 GDBTK_SRC_DIR=`pwd`
22589 cd $here
22590
bec39cab 22591
3fc11d3e
JM
22592#
22593# Ok, lets find the tcl configuration
bec39cab 22594# First, look for one uninstalled.
3fc11d3e
JM
22595# the alternative search directory is invoked by --with-tclconfig
22596#
22597
22598if test x"${no_tcl}" = x ; then
22599 # we reset no_tcl in case something fails here
22600 no_tcl=true
bec39cab 22601
b4e70030 22602# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 22603if test "${with_tclconfig+set}" = set; then
b4e70030
JB
22604 withval="$with_tclconfig"
22605 with_tclconfig=${withval}
22606fi;
22607 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
22608echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
22609 if test "${ac_cv_c_tclconfig+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22611else
bec39cab 22612
3fc11d3e
JM
22613
22614 # First check to see if --with-tclconfig was specified.
22615 if test x"${with_tclconfig}" != x ; then
22616 if test -f "${with_tclconfig}/tclConfig.sh" ; then
22617 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
22618 else
bec39cab
AC
22619 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
22620echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
22621 { (exit 1); exit 1; }; }
3fc11d3e
JM
22622 fi
22623 fi
22624
22625 # then check for a private Tcl installation
22626 if test x"${ac_cv_c_tclconfig}" = x ; then
22627 for i in \
22628 ../tcl \
22629 `ls -dr ../tcl[7-9]* 2>/dev/null` \
22630 ../../tcl \
22631 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
22632 ../../../tcl \
22633 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
22634 if test -f "$i/${configdir}/tclConfig.sh" ; then
22635 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22636 break
22637 fi
22638 done
22639 fi
22640 # check in a few common install locations
22641 if test x"${ac_cv_c_tclconfig}" = x ; then
22642 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22643 if test -f "$i/tclConfig.sh" ; then
22644 ac_cv_c_tclconfig=`(cd $i; pwd)`
22645 break
22646 fi
22647 done
22648 fi
22649 # check in a few other private locations
22650 if test x"${ac_cv_c_tclconfig}" = x ; then
22651 for i in \
22652 ${srcdir}/../tcl \
22653 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22654 if test -f "$i/${configdir}/tclConfig.sh" ; then
22655 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22656 break
22657 fi
22658 done
22659 fi
bec39cab 22660
3fc11d3e
JM
22661fi
22662
22663 if test x"${ac_cv_c_tclconfig}" = x ; then
22664 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
22665 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22666echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
22667 else
22668 no_tcl=
22669 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
22670 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22671echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
22672 fi
22673fi
22674
22675 if test -z "${no_tcl}"; then
bec39cab 22676
3fc11d3e
JM
22677 . $TCLCONFIG
22678
3fc11d3e
JM
22679
22680
22681
22682
3fc11d3e
JM
22683
22684
22685
bec39cab
AC
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
3fc11d3e
JM
22705#
22706# Ok, lets find the tk configuration
bec39cab 22707# First, look for one uninstalled.
3fc11d3e
JM
22708# the alternative search directory is invoked by --with-tkconfig
22709#
22710
22711if test x"${no_tk}" = x ; then
22712 # we reset no_tk in case something fails here
22713 no_tk=true
bec39cab 22714
b4e70030 22715# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 22716if test "${with_tkconfig+set}" = set; then
b4e70030
JB
22717 withval="$with_tkconfig"
22718 with_tkconfig=${withval}
22719fi;
22720 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22721echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
22722 if test "${ac_cv_c_tkconfig+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22724else
bec39cab 22725
3fc11d3e
JM
22726
22727 # First check to see if --with-tkconfig was specified.
22728 if test x"${with_tkconfig}" != x ; then
22729 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22730 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22731 else
bec39cab
AC
22732 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22733echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22734 { (exit 1); exit 1; }; }
3fc11d3e
JM
22735 fi
22736 fi
22737
22738 # then check for a private Tk library
22739 if test x"${ac_cv_c_tkconfig}" = x ; then
22740 for i in \
22741 ../tk \
22742 `ls -dr ../tk[4-9]* 2>/dev/null` \
22743 ../../tk \
22744 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22745 ../../../tk \
22746 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22747 if test -f "$i/${configdir}/tkConfig.sh" ; then
22748 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22749 break
22750 fi
22751 done
22752 fi
22753 # check in a few common install locations
22754 if test x"${ac_cv_c_tkconfig}" = x ; then
22755 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22756 if test -f "$i/tkConfig.sh" ; then
22757 ac_cv_c_tkconfig=`(cd $i; pwd)`
22758 break
22759 fi
22760 done
22761 fi
22762 # check in a few other private locations
22763 if test x"${ac_cv_c_tkconfig}" = x ; then
22764 for i in \
22765 ${srcdir}/../tk \
22766 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22767 if test -f "$i/${configdir}/tkConfig.sh" ; then
22768 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22769 break
22770 fi
22771 done
22772 fi
bec39cab 22773
3fc11d3e
JM
22774fi
22775
22776 if test x"${ac_cv_c_tkconfig}" = x ; then
22777 TKCONFIG="# no Tk configs found"
bec39cab
AC
22778 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22779echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
22780 else
22781 no_tk=
22782 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
22783 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22784echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
22785 fi
22786fi
22787
22788
22789
dd2504ab
JM
22790 # now look for Tcl library stuff
22791
d91670b9 22792 tcldir="../tcl/${configdir}/"
dd2504ab
JM
22793
22794 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22795
3fc11d3e
JM
22796 # If $no_tk is nonempty, then we can't do Tk, and there is no
22797 # point to doing Tcl.
22798 if test -z "${no_tk}"; then
bec39cab 22799
3fc11d3e
JM
22800 if test -f "$TKCONFIG" ; then
22801 . $TKCONFIG
22802 fi
22803
3fc11d3e 22804
3fc11d3e
JM
22805
22806
3fc11d3e 22807
bec39cab
AC
22808
22809
22810
22811
22812
22813
22814
22815
22816
3fc11d3e
JM
22817#
22818# Ok, lets find the tcl source trees so we can use the headers
22819# Warning: transition of version 9 to 10 will break this algorithm
22820# because 10 sorts before 9. We also look for just tcl. We have to
22821# be careful that we don't match stuff like tclX by accident.
22822# the alternative search directory is involked by --with-tclinclude
22823#
22824
22825no_tcl=true
b4e70030
JB
22826echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22827echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 22828
b4e70030 22829# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 22830if test "${with_tclinclude+set}" = set; then
b4e70030
JB
22831 withval="$with_tclinclude"
22832 with_tclinclude=${withval}
22833fi;
bec39cab
AC
22834if test "${ac_cv_c_tclh+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22836else
bec39cab 22837
3fc11d3e
JM
22838# first check to see if --with-tclinclude was specified
22839if test x"${with_tclinclude}" != x ; then
22840 if test -f ${with_tclinclude}/tclInt.h ; then
22841 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22842 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22843 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22844 else
bec39cab
AC
22845 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22846echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22847 { (exit 1); exit 1; }; }
3fc11d3e
JM
22848 fi
22849fi
22850
22851# next check if it came with Tcl configuration file
22852if test x"${ac_cv_c_tclconfig}" = x ; then
22853 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22854 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22855 fi
22856fi
22857
22858# next check in private source directory
22859#
22860# since ls returns lowest version numbers first, reverse its output
22861if test x"${ac_cv_c_tclh}" = x ; then
22862 for i in \
22863 ${srcdir}/../tcl \
22864 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22865 ${srcdir}/../../tcl \
22866 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22867 ${srcdir}/../../../tcl \
22868 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22869 if test -f $i/generic/tclInt.h ; then
22870 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22871 break
22872 fi
22873 done
22874fi
22875# finally check in a few common install locations
22876#
22877# since ls returns lowest version numbers first, reverse its output
22878if test x"${ac_cv_c_tclh}" = x ; then
22879 for i in \
22880 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22881 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22882 /usr/local/src/tcl \
22883 /usr/local/lib/tcl \
22884 ${prefix}/include ; do
22885 if test -f $i/generic/tclInt.h ; then
22886 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22887 break
22888 fi
22889 done
22890fi
22891# see if one is installed
22892if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 22893 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
22894 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22895echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22896if test "${ac_cv_header_tclInt_h+set}" = set; then
22897 echo $ECHO_N "(cached) $ECHO_C" >&6
22898fi
b4e70030
JB
22899echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22900echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22901else
22902 # Is the header compilable?
b4e70030
JB
22903echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22904echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
22905cat >conftest.$ac_ext <<_ACEOF
22906/* confdefs.h. */
22907_ACEOF
22908cat confdefs.h >>conftest.$ac_ext
22909cat >>conftest.$ac_ext <<_ACEOF
22910/* end confdefs.h. */
22911$ac_includes_default
22912#include <tclInt.h>
22913_ACEOF
22914rm -f conftest.$ac_objext
22915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22916 (eval $ac_compile) 2>conftest.er1
22917 ac_status=$?
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
b4e70030
JB
22923 { ac_try='test -z "$ac_c_werror_flag"
22924 || test ! -s conftest.err'
bec39cab
AC
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; } &&
22930 { ac_try='test -s conftest.$ac_objext'
22931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932 (eval $ac_try) 2>&5
22933 ac_status=$?
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 ac_header_compiler=yes
22937else
22938 echo "$as_me: failed program was:" >&5
22939sed 's/^/| /' conftest.$ac_ext >&5
22940
b4e70030 22941ac_header_compiler=no
bec39cab
AC
22942fi
22943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22944echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22945echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22946
22947# Is the header present?
b4e70030
JB
22948echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22949echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
22950cat >conftest.$ac_ext <<_ACEOF
22951/* confdefs.h. */
22952_ACEOF
22953cat confdefs.h >>conftest.$ac_ext
22954cat >>conftest.$ac_ext <<_ACEOF
22955/* end confdefs.h. */
3fc11d3e 22956#include <tclInt.h>
bec39cab
AC
22957_ACEOF
22958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22960 ac_status=$?
22961 grep -v '^ *+' conftest.er1 >conftest.err
22962 rm -f conftest.er1
22963 cat conftest.err >&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } >/dev/null; then
22966 if test -s conftest.err; then
22967 ac_cpp_err=$ac_c_preproc_warn_flag
22968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22969 else
22970 ac_cpp_err=
22971 fi
22972else
22973 ac_cpp_err=yes
3fc11d3e 22974fi
bec39cab
AC
22975if test -z "$ac_cpp_err"; then
22976 ac_header_preproc=yes
22977else
22978 echo "$as_me: failed program was:" >&5
22979sed 's/^/| /' conftest.$ac_ext >&5
22980
22981 ac_header_preproc=no
3fc11d3e 22982fi
bec39cab 22983rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22984echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22985echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22986
22987# So? What about this header?
22988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22989 yes:no: )
22990 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22991echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22992 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22993echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22994 ac_header_preproc=yes
22995 ;;
22996 no:yes:* )
22997 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22998echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22999 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
23000echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
23001 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23002echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23003 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
23004echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23005 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23006echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23007 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23008echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
23009 (
23010 cat <<\_ASBOX
23011## ------------------------------------------ ##
23012## Report this to the AC_PACKAGE_NAME lists. ##
23013## ------------------------------------------ ##
23014_ASBOX
23015 ) |
23016 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
23017 ;;
23018esac
b4e70030
JB
23019echo "$as_me:$LINENO: checking for tclInt.h" >&5
23020echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
23021if test "${ac_cv_header_tclInt_h+set}" = set; then
23022 echo $ECHO_N "(cached) $ECHO_C" >&6
23023else
23024 ac_cv_header_tclInt_h=$ac_header_preproc
23025fi
b4e70030
JB
23026echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23027echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
23028
23029fi
23030if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
23031 ac_cv_c_tclh=installed
23032else
bec39cab 23033 ac_cv_c_tclh=""
3fc11d3e
JM
23034fi
23035
bec39cab 23036
3fc11d3e
JM
23037fi
23038
23039fi
23040
23041if test x"${ac_cv_c_tclh}" = x ; then
23042 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
23043 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23044echo "$as_me: error: Can't find Tcl private headers" >&2;}
23045 { (exit 1); exit 1; }; }
3fc11d3e
JM
23046fi
23047if test x"${ac_cv_c_tclh}" != x ; then
23048 no_tcl=""
23049 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
23050 echo "$as_me:$LINENO: result: is installed" >&5
23051echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
23052 TCLHDIR=""
23053 else
b4e70030
JB
23054 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23055echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
23056 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23057 TCLHDIR="-I${ac_cv_c_tclh}"
23058 fi
23059fi
23060
23061
23062
bec39cab 23063
3fc11d3e
JM
23064#
23065# Ok, lets find the tk source trees so we can use the headers
23066# If the directory (presumably symlink) named "tk" exists, use that one
23067# in preference to any others. Same logic is used when choosing library
23068# and again with Tcl. The search order is the best place to look first, then in
23069# decreasing significance. The loop breaks if the trigger file is found.
23070# Note the gross little conversion here of srcdir by cd'ing to the found
23071# directory. This converts the path from a relative to an absolute, so
23072# recursive cache variables for the path will work right. We check all
23073# the possible paths in one loop rather than many seperate loops to speed
23074# things up.
23075# the alternative search directory is involked by --with-tkinclude
23076#
23077no_tk=true
b4e70030
JB
23078echo "$as_me:$LINENO: checking for Tk private headers" >&5
23079echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 23080
b4e70030 23081# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 23082if test "${with_tkinclude+set}" = set; then
b4e70030
JB
23083 withval="$with_tkinclude"
23084 with_tkinclude=${withval}
23085fi;
bec39cab
AC
23086if test "${ac_cv_c_tkh+set}" = set; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23088else
bec39cab 23089
3fc11d3e
JM
23090# first check to see if --with-tkinclude was specified
23091if test x"${with_tkinclude}" != x ; then
23092 if test -f ${with_tkinclude}/tk.h ; then
23093 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23094 elif test -f ${with_tkinclude}/generic/tk.h ; then
23095 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23096 else
bec39cab
AC
23097 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23098echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23099 { (exit 1); exit 1; }; }
3fc11d3e
JM
23100 fi
23101fi
23102
23103# next check if it came with Tk configuration file
23104if test x"${ac_cv_c_tkconfig}" = x ; then
23105 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23106 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23107 fi
23108fi
23109
23110# next check in private source directory
23111#
23112# since ls returns lowest version numbers first, reverse its output
23113if test x"${ac_cv_c_tkh}" = x ; then
23114 for i in \
23115 ${srcdir}/../tk \
23116 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23117 ${srcdir}/../../tk \
23118 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23119 ${srcdir}/../../../tk \
23120 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23121 if test -f $i/generic/tk.h ; then
23122 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23123 break
23124 fi
23125 done
23126fi
23127# finally check in a few common install locations
23128#
23129# since ls returns lowest version numbers first, reverse its output
23130if test x"${ac_cv_c_tkh}" = x ; then
23131 for i in \
23132 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23133 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23134 /usr/local/src/tk \
23135 /usr/local/lib/tk \
23136 ${prefix}/include ; do
23137 if test -f $i/generic/tk.h ; then
23138 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23139 break
23140 fi
23141 done
23142fi
23143# see if one is installed
23144if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 23145 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
23146 echo "$as_me:$LINENO: checking for tk.h" >&5
23147echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
23148if test "${ac_cv_header_tk_h+set}" = set; then
23149 echo $ECHO_N "(cached) $ECHO_C" >&6
23150fi
b4e70030
JB
23151echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23152echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
23153else
23154 # Is the header compilable?
b4e70030
JB
23155echo "$as_me:$LINENO: checking tk.h usability" >&5
23156echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
23157cat >conftest.$ac_ext <<_ACEOF
23158/* confdefs.h. */
23159_ACEOF
23160cat confdefs.h >>conftest.$ac_ext
23161cat >>conftest.$ac_ext <<_ACEOF
23162/* end confdefs.h. */
23163$ac_includes_default
3fc11d3e 23164#include <tk.h>
bec39cab
AC
23165_ACEOF
23166rm -f conftest.$ac_objext
23167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23168 (eval $ac_compile) 2>conftest.er1
23169 ac_status=$?
23170 grep -v '^ *+' conftest.er1 >conftest.err
23171 rm -f conftest.er1
23172 cat conftest.err >&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } &&
b4e70030
JB
23175 { ac_try='test -z "$ac_c_werror_flag"
23176 || test ! -s conftest.err'
bec39cab
AC
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23179 ac_status=$?
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; } &&
23182 { ac_try='test -s conftest.$ac_objext'
23183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23184 (eval $ac_try) 2>&5
23185 ac_status=$?
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); }; }; then
23188 ac_header_compiler=yes
23189else
23190 echo "$as_me: failed program was:" >&5
23191sed 's/^/| /' conftest.$ac_ext >&5
23192
b4e70030 23193ac_header_compiler=no
bec39cab
AC
23194fi
23195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
23196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23197echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
23198
23199# Is the header present?
b4e70030
JB
23200echo "$as_me:$LINENO: checking tk.h presence" >&5
23201echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
23202cat >conftest.$ac_ext <<_ACEOF
23203/* confdefs.h. */
23204_ACEOF
23205cat confdefs.h >>conftest.$ac_ext
23206cat >>conftest.$ac_ext <<_ACEOF
23207/* end confdefs.h. */
23208#include <tk.h>
23209_ACEOF
23210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23212 ac_status=$?
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } >/dev/null; then
23218 if test -s conftest.err; then
23219 ac_cpp_err=$ac_c_preproc_warn_flag
23220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23221 else
23222 ac_cpp_err=
23223 fi
23224else
23225 ac_cpp_err=yes
3fc11d3e 23226fi
bec39cab
AC
23227if test -z "$ac_cpp_err"; then
23228 ac_header_preproc=yes
23229else
23230 echo "$as_me: failed program was:" >&5
23231sed 's/^/| /' conftest.$ac_ext >&5
23232
23233 ac_header_preproc=no
23234fi
23235rm -f conftest.err conftest.$ac_ext
b4e70030
JB
23236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23237echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
23238
23239# So? What about this header?
23240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23241 yes:no: )
23242 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
23243echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23244 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
23245echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
23246 ac_header_preproc=yes
23247 ;;
23248 no:yes:* )
23249 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
23250echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
23251 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
23252echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
23253 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
23254echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
23255 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
23256echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
23257 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
23258echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
23259 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
23260echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
23261 (
23262 cat <<\_ASBOX
23263## ------------------------------------------ ##
23264## Report this to the AC_PACKAGE_NAME lists. ##
23265## ------------------------------------------ ##
23266_ASBOX
23267 ) |
23268 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
23269 ;;
23270esac
b4e70030
JB
23271echo "$as_me:$LINENO: checking for tk.h" >&5
23272echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
23273if test "${ac_cv_header_tk_h+set}" = set; then
23274 echo $ECHO_N "(cached) $ECHO_C" >&6
23275else
23276 ac_cv_header_tk_h=$ac_header_preproc
23277fi
b4e70030
JB
23278echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23279echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 23280
3fc11d3e 23281fi
bec39cab 23282if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
23283 ac_cv_c_tkh=installed
23284else
bec39cab 23285 ac_cv_c_tkh=""
3fc11d3e
JM
23286fi
23287
bec39cab 23288
3fc11d3e
JM
23289fi
23290
23291fi
23292
23293if test x"${ac_cv_c_tkh}" != x ; then
23294 no_tk=""
23295 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
23296 echo "$as_me:$LINENO: result: is installed" >&5
23297echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
23298 TKHDIR=""
23299 else
b4e70030
JB
23300 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
23301echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
23302 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
23303 TKHDIR="-I${ac_cv_c_tkh}"
23304 fi
23305else
23306 TKHDIR="# no Tk directory found"
bec39cab
AC
23307 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
23308echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
23309 no_tk=true
23310fi
23311
23312
23313
bec39cab 23314
b4e70030
JB
23315echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
23316echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
23317if test x"${ac_cv_c_itclh}" = x ; then
23318 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
23319 if test -f $i/generic/itcl.h ; then
23320 ac_cv_c_itclh=`(cd $i/generic; pwd)`
23321 break
23322 fi
23323 done
23324fi
23325if test x"${ac_cv_c_itclh}" = x ; then
23326 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
23327 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
23328echo "$as_me: error: Can't find Itcl private headers" >&2;}
23329 { (exit 1); exit 1; }; }
3fc11d3e
JM
23330fi
23331if test x"${ac_cv_c_itclh}" != x ; then
23332 ITCLHDIR="-I${ac_cv_c_itclh}"
23333fi
23334# should always be here
23335# ITCLLIB="../itcl/itcl/unix/libitcl.a"
23336
23337#AC_SUBST(ITCLLIB)
23338
bec39cab 23339
b4e70030
JB
23340echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
23341echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
23342if test x"${ac_cv_c_itkh}" = x ; then
23343 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
23344 if test -f $i/generic/itk.h ; then
23345 ac_cv_c_itkh=`(cd $i/generic; pwd)`
23346 break
23347 fi
23348 done
23349fi
23350if test x"${ac_cv_c_itkh}" = x ; then
23351 ITKHDIR="# no Itk private headers found"
bec39cab
AC
23352 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
23353echo "$as_me: error: Can't find Itk private headers" >&2;}
23354 { (exit 1); exit 1; }; }
3fc11d3e
JM
23355fi
23356if test x"${ac_cv_c_itkh}" != x ; then
23357 ITKHDIR="-I${ac_cv_c_itkh}"
23358fi
23359# should always be here
23360# ITKLIB="../itcl/itk/unix/libitk.a"
23361
23362#AC_SUBST(ITKLIB)
23363
3fc11d3e 23364
dd2504ab
JM
23365
23366 # now look for Tk library stuff
23367
d91670b9 23368 tkdir="../tk/${configdir}/"
dd2504ab
JM
23369
23370 TK_DEPS="${tkdir}${TK_LIB_FILE}"
23371
3fc11d3e
JM
23372 # now look for Itcl library stuff
23373
bec39cab 23374
3fc11d3e
JM
23375#
23376# Ok, lets find the itcl configuration
bec39cab 23377# First, look for one uninstalled.
3fc11d3e
JM
23378# the alternative search directory is invoked by --with-itclconfig
23379#
23380
23381if test x"${no_itcl}" = x ; then
23382 # we reset no_itcl in case something fails here
23383 no_itcl=true
bec39cab 23384
b4e70030 23385# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 23386if test "${with_itclconfig+set}" = set; then
b4e70030
JB
23387 withval="$with_itclconfig"
23388 with_itclconfig=${withval}
23389fi;
23390 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
23391echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
23392 if test "${ac_cv_c_itclconfig+set}" = set; then
23393 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23394else
bec39cab 23395
3fc11d3e
JM
23396
23397 # First check to see if --with-itclconfig was specified.
23398 if test x"${with_itclconfig}" != x ; then
23399 if test -f "${with_itclconfig}/itclConfig.sh" ; then
23400 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
23401 else
bec39cab
AC
23402 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
23403echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
23404 { (exit 1); exit 1; }; }
3fc11d3e
JM
23405 fi
23406 fi
23407
23408 # then check for a private Itcl library
23409 if test x"${ac_cv_c_itclconfig}" = x ; then
23410 for i in \
23411 ../itcl/itcl \
23412 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
23413 ../../itcl \
23414 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
23415 ../../../itcl \
23416 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
23417 if test -f "$i/itclConfig.sh" ; then
23418 ac_cv_c_itclconfig=`(cd $i; pwd)`
23419 break
23420 fi
23421 done
23422 fi
23423 # check in a few common install locations
23424 if test x"${ac_cv_c_itclconfig}" = x ; then
23425 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23426 if test -f "$i/itclConfig.sh" ; then
23427 ac_cv_c_itclconfig=`(cd $i; pwd)`
23428 break
23429 fi
23430 done
23431 fi
23432 # check in a few other private locations
23433 if test x"${ac_cv_c_itclconfig}" = x ; then
23434 for i in \
23435 ${srcdir}/../itcl/itcl \
23436 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
23437 if test -f "$i/itclConfig.sh" ; then
23438 ac_cv_c_itclconfig=`(cd $i; pwd)`
23439 break
23440 fi
23441 done
23442 fi
bec39cab 23443
3fc11d3e
JM
23444fi
23445
23446 if test x"${ac_cv_c_itclconfig}" = x ; then
23447 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
23448 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
23449echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
23450 else
23451 no_itcl=
23452 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
23453 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
23454echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
23455 fi
23456fi
23457
23458 if test -z "${no_itcl}"; then
bec39cab 23459
3fc11d3e
JM
23460 if test -f "$ITCLCONFIG" ; then
23461 . $ITCLCONFIG
23462 fi
23463
3fc11d3e 23464
3fc11d3e
JM
23465
23466
bec39cab
AC
23467
23468
23469
23470
23471
23472
23473
3fc11d3e
JM
23474
23475 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 23476 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
23477 fi
23478
bec39cab 23479
3fc11d3e 23480 # now look for Itk library stuff
bec39cab 23481
3fc11d3e
JM
23482#
23483# Ok, lets find the itk configuration
bec39cab 23484# First, look for one uninstalled.
3fc11d3e
JM
23485# the alternative search directory is invoked by --with-itkconfig
23486#
23487
23488if test x"${no_itk}" = x ; then
23489 # we reset no_itk in case something fails here
23490 no_itk=true
bec39cab 23491
b4e70030 23492# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 23493if test "${with_itkconfig+set}" = set; then
b4e70030
JB
23494 withval="$with_itkconfig"
23495 with_itkconfig=${withval}
23496fi;
23497 echo "$as_me:$LINENO: checking for Itk configuration" >&5
23498echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
23499 if test "${ac_cv_c_itkconfig+set}" = set; then
23500 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23501else
bec39cab 23502
3fc11d3e
JM
23503
23504 # First check to see if --with-itkconfig was specified.
23505 if test x"${with_itkconfig}" != x ; then
23506 if test -f "${with_itkconfig}/itkConfig.sh" ; then
23507 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
23508 else
bec39cab
AC
23509 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
23510echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
23511 { (exit 1); exit 1; }; }
3fc11d3e
JM
23512 fi
23513 fi
23514
23515 # then check for a private Itk library
23516 if test x"${ac_cv_c_itkconfig}" = x ; then
23517 for i in \
23518 ../itcl/itk \
23519 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
23520 ../../itk \
23521 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
23522 ../../../itk \
23523 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
23524 if test -f "$i/itkConfig.sh" ; then
23525 ac_cv_c_itkconfig=`(cd $i; pwd)`
23526 break
23527 fi
23528 done
23529 fi
23530 # check in a few common install locations
23531 if test x"${ac_cv_c_itkconfig}" = x ; then
23532 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23533 if test -f "$i/itkConfig.sh" ; then
23534 ac_cv_c_itkconfig=`(cd $i; pwd)`
23535 break
23536 fi
23537 done
23538 fi
23539 # check in a few other private locations
23540 if test x"${ac_cv_c_itkconfig}" = x ; then
23541 for i in \
23542 ${srcdir}/../itcl/itk \
23543 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
23544 if test -f "$i/itkConfig.sh" ; then
23545 ac_cv_c_itkconfig=`(cd $i; pwd)`
23546 break
23547 fi
23548 done
23549 fi
bec39cab 23550
3fc11d3e
JM
23551fi
23552
23553 if test x"${ac_cv_c_itkconfig}" = x ; then
23554 ITKCONFIG="# no Itk configs found"
bec39cab
AC
23555 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
23556echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
23557 else
23558 no_itk=
23559 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
23560 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
23561echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
23562 fi
23563fi
23564
23565
bec39cab
AC
23566 if test -z "${no_itcl}"; then
23567
23568 if test -f "$ITKCONFIG" ; then
23569 . $ITKCONFIG
23570 fi
23571
23572
23573
23574
23575
23576
3fc11d3e 23577
3fc11d3e 23578
3fc11d3e
JM
23579
23580
3fc11d3e
JM
23581
23582
3fc11d3e 23583 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 23584 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
23585 fi
23586
4226a5a5 23587 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
23588
23589 # Include some libraries that Tcl and Tk want.
b2a1bd4f 23590 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
23591 # Yes, the ordering seems wrong here. But it isn't.
23592 # TK_LIBS is the list of libraries that need to be linked
23593 # after Tcl/Tk. Note that this isn't put into LIBS. If it
23594 # were in LIBS then any link tests after this point would
23595 # try to include things like `$(LIBGUI)', which wouldn't work.
23596 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
23597
23598 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
23599 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
23600 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
23601 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
23602 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
23603 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
23604 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
23605
23606 if test x$gdb_cv_os_cygwin = xyes; then
23607 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
23608 WIN32LDAPP="-Wl,--subsystem,console"
23609 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
23610 fi
23611 fi
23612 fi
ffc6a242 23613
b4e70030
JB
23614
23615
23616subdirs="$subdirs gdbtk"
3ace7edb 23617
3fc11d3e
JM
23618fi
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
dd2504ab 23632
b4e70030
JB
23633echo "$as_me:$LINENO: checking for X" >&5
23634echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 23635
c906108c 23636
b4e70030 23637# Check whether --with-x or --without-x was given.
c906108c 23638if test "${with_x+set}" = set; then
b4e70030 23639 withval="$with_x"
c906108c 23640
b4e70030 23641fi;
c906108c
SS
23642# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23643if test "x$with_x" = xno; then
23644 # The user explicitly disabled X.
23645 have_x=disabled
23646else
23647 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23648 # Both variables are already set.
23649 have_x=yes
23650 else
bec39cab
AC
23651 if test "${ac_cv_have_x+set}" = set; then
23652 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
23653else
23654 # One or both of the vars are not set, and there is no cached value.
bec39cab 23655ac_x_includes=no ac_x_libraries=no
b4e70030 23656rm -fr conftest.dir
bec39cab
AC
23657if mkdir conftest.dir; then
23658 cd conftest.dir
c906108c 23659 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 23660 cat >Imakefile <<'_ACEOF'
c906108c
SS
23661acfindx:
23662 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 23663_ACEOF
b4e70030 23664 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
23665 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23666 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23667 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23668 for ac_extension in a so sl; do
23669 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
23670 test -f $ac_im_libdir/libX11.$ac_extension; then
23671 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
23672 fi
23673 done
23674 # Screen out bogus values from the imake configuration. They are
23675 # bogus both because they are the default anyway, and because
23676 # using them would break gcc on systems where it needs fixed includes.
bec39cab 23677 case $ac_im_incroot in
b4e70030 23678 /usr/include) ;;
bec39cab 23679 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 23680 esac
bec39cab 23681 case $ac_im_usrlibdir in
c906108c 23682 /usr/lib | /lib) ;;
bec39cab 23683 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
23684 esac
23685 fi
23686 cd ..
b4e70030 23687 rm -fr conftest.dir
c906108c
SS
23688fi
23689
bec39cab
AC
23690# Standard set of common directories for X headers.
23691# Check X11 before X11Rn because it is often a symlink to the current release.
23692ac_x_header_dirs='
23693/usr/X11/include
23694/usr/X11R6/include
23695/usr/X11R5/include
23696/usr/X11R4/include
23697
23698/usr/include/X11
23699/usr/include/X11R6
23700/usr/include/X11R5
23701/usr/include/X11R4
23702
23703/usr/local/X11/include
23704/usr/local/X11R6/include
23705/usr/local/X11R5/include
23706/usr/local/X11R4/include
23707
23708/usr/local/include/X11
23709/usr/local/include/X11R6
23710/usr/local/include/X11R5
23711/usr/local/include/X11R4
23712
23713/usr/X386/include
23714/usr/x386/include
23715/usr/XFree86/include/X11
23716
23717/usr/include
23718/usr/local/include
23719/usr/unsupported/include
23720/usr/athena/include
23721/usr/local/x11r5/include
23722/usr/lpp/Xamples/include
23723
23724/usr/openwin/include
23725/usr/openwin/share/include'
23726
23727if test "$ac_x_includes" = no; then
59f80f10 23728 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 23729 # First, try using that file with no special directory specified.
bec39cab
AC
23730 cat >conftest.$ac_ext <<_ACEOF
23731/* confdefs.h. */
23732_ACEOF
23733cat confdefs.h >>conftest.$ac_ext
23734cat >>conftest.$ac_ext <<_ACEOF
23735/* end confdefs.h. */
59f80f10 23736#include <X11/Intrinsic.h>
bec39cab
AC
23737_ACEOF
23738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23740 ac_status=$?
23741 grep -v '^ *+' conftest.er1 >conftest.err
23742 rm -f conftest.er1
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } >/dev/null; then
23746 if test -s conftest.err; then
23747 ac_cpp_err=$ac_c_preproc_warn_flag
23748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23749 else
23750 ac_cpp_err=
23751 fi
23752else
23753 ac_cpp_err=yes
23754fi
23755if test -z "$ac_cpp_err"; then
c906108c
SS
23756 # We can compile using X headers with no special include directory.
23757ac_x_includes=
23758else
bec39cab
AC
23759 echo "$as_me: failed program was:" >&5
23760sed 's/^/| /' conftest.$ac_ext >&5
23761
23762 for ac_dir in $ac_x_header_dirs; do
59f80f10 23763 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
23764 ac_x_includes=$ac_dir
23765 break
23766 fi
23767done
c906108c 23768fi
bec39cab
AC
23769rm -f conftest.err conftest.$ac_ext
23770fi # $ac_x_includes = no
c906108c 23771
bec39cab 23772if test "$ac_x_libraries" = no; then
c906108c 23773 # Check for the libraries.
c906108c
SS
23774 # See if we find them without any special options.
23775 # Don't add to $LIBS permanently.
bec39cab 23776 ac_save_LIBS=$LIBS
4e8d927d 23777 LIBS="-lXt $LIBS"
bec39cab
AC
23778 cat >conftest.$ac_ext <<_ACEOF
23779/* confdefs.h. */
23780_ACEOF
23781cat confdefs.h >>conftest.$ac_ext
23782cat >>conftest.$ac_ext <<_ACEOF
23783/* end confdefs.h. */
59f80f10 23784#include <X11/Intrinsic.h>
bec39cab
AC
23785int
23786main ()
23787{
59f80f10 23788XtMalloc (0)
bec39cab
AC
23789 ;
23790 return 0;
23791}
23792_ACEOF
23793rm -f conftest.$ac_objext conftest$ac_exeext
23794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23795 (eval $ac_link) 2>conftest.er1
23796 ac_status=$?
23797 grep -v '^ *+' conftest.er1 >conftest.err
23798 rm -f conftest.er1
23799 cat conftest.err >&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); } &&
b4e70030
JB
23802 { ac_try='test -z "$ac_c_werror_flag"
23803 || test ! -s conftest.err'
bec39cab
AC
23804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805 (eval $ac_try) 2>&5
23806 ac_status=$?
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); }; } &&
23809 { ac_try='test -s conftest$ac_exeext'
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23812 ac_status=$?
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; }; then
23815 LIBS=$ac_save_LIBS
c906108c
SS
23816# We can link X programs with no special library path.
23817ac_x_libraries=
23818else
bec39cab
AC
23819 echo "$as_me: failed program was:" >&5
23820sed 's/^/| /' conftest.$ac_ext >&5
23821
b4e70030 23822LIBS=$ac_save_LIBS
bec39cab 23823for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 23824do
bec39cab 23825 # Don't even attempt the hair of trying to link an X program!
c906108c 23826 for ac_extension in a so sl; do
b4e70030 23827 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
23828 ac_x_libraries=$ac_dir
23829 break 2
23830 fi
23831 done
23832done
23833fi
bec39cab
AC
23834rm -f conftest.err conftest.$ac_objext \
23835 conftest$ac_exeext conftest.$ac_ext
23836fi # $ac_x_libraries = no
c906108c 23837
bec39cab 23838if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
23839 # Didn't find X anywhere. Cache the known absence of X.
23840 ac_cv_have_x="have_x=no"
23841else
23842 # Record where we found X for the cache.
23843 ac_cv_have_x="have_x=yes \
bec39cab 23844 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
23845fi
23846fi
bec39cab 23847
c906108c
SS
23848 fi
23849 eval "$ac_cv_have_x"
23850fi # $with_x != no
23851
23852if test "$have_x" != yes; then
b4e70030
JB
23853 echo "$as_me:$LINENO: result: $have_x" >&5
23854echo "${ECHO_T}$have_x" >&6
c906108c
SS
23855 no_x=yes
23856else
23857 # If each of the values was on the command line, it overrides each guess.
23858 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23859 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23860 # Update the cache value to reflect the command line values.
23861 ac_cv_have_x="have_x=yes \
23862 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
23863 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23864echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
23865fi
23866
23867
9cc52bde
MK
23868# Check whether we should enable the TUI, but only do so if we really
23869# can.
23870if test x"$enable_tui" = xyes; then
23871 if test -d $srcdir/tui; then
23872 if test "$ac_cv_search_waddstr" != no; then
23873 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23874 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23875 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23876 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23877 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23878 CONFIG_ALL="${CONFIG_ALL} all-tui"
23879 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23880 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23881 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23882 else
bec39cab
AC
23883 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23884echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
23885 fi
23886 fi
23887fi
23888
bec39cab 23889# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 23890# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
23891# This code just checks for a few cases where we'd like to ignore those
23892# definitions, even when they're present in the '.mt' file. These cases
23893# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 23894# not part of the source tree.
7a292a7a 23895#
b4e70030 23896# Check whether --enable-sim or --disable-sim was given.
7a292a7a 23897if test "${enable_sim+set}" = set; then
b4e70030
JB
23898 enableval="$enable_sim"
23899 echo "enable_sim = $enable_sim";
7a292a7a
SS
23900 echo "enableval = ${enableval}";
23901 case "${enableval}" in
23902 yes) ignore_sim=false ;;
23903 no) ignore_sim=true ;;
23904 *) ignore_sim=false ;;
23905 esac
23906else
23907 ignore_sim=false
b4e70030 23908fi;
7a292a7a
SS
23909
23910if test ! -d "${srcdir}/../sim"; then
23911 ignore_sim=true
23912fi
23913
9b624dbe
UW
23914SIM=
23915SIM_OBS=
23916if test "${ignore_sim}" = "false"; then
23917 if test x"${gdb_sim}" != x ; then
23918 SIM="${gdb_sim}"
23919 SIM_OBS="remote-sim.o"
60ca704f
SE
23920
23921cat >>confdefs.h <<\_ACEOF
7a292a7a 23922#define WITH_SIM 1
bec39cab 23923_ACEOF
7a292a7a 23924
9b624dbe 23925 fi
7a292a7a
SS
23926fi
23927
23928
23929
c906108c
SS
23930
23931
23932
23933
23934
23935
dfcd3bfb 23936
e56ac5c3
AC
23937
23938
b3a90332
AC
23939
23940
c35f4ffc 23941# List of host floatformats.
bec39cab
AC
23942
23943cat >>confdefs.h <<_ACEOF
c35f4ffc 23944#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 23945_ACEOF
c35f4ffc 23946
bec39cab
AC
23947
23948cat >>confdefs.h <<_ACEOF
c35f4ffc 23949#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
23950_ACEOF
23951
c35f4ffc 23952
bec39cab 23953cat >>confdefs.h <<_ACEOF
c35f4ffc 23954#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 23955_ACEOF
c35f4ffc
AC
23956
23957
c906108c
SS
23958# target_subdir is used by the testsuite to find the target libraries.
23959target_subdir=
23960if test "${host}" != "${target}"; then
23961 target_subdir="${target_alias}/"
23962fi
23963
23964
23965frags=
771b4502 23966if test "${gdb_native}" = "yes"; then
0dad8a66
MK
23967 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23968 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
23969 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23970echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23971 { (exit 1); exit 1; }; }
0dad8a66
MK
23972 fi
23973 frags="$frags $host_makefile_frag"
23974else
23975 host_makefile_frag=/dev/null
c906108c 23976fi
c906108c
SS
23977
23978target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23979if test ! -f ${target_makefile_frag}; then
bec39cab
AC
23980 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23981echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23982 { (exit 1); exit 1; }; }
c906108c
SS
23983fi
23984frags="$frags $target_makefile_frag"
23985
23986
23987
23988
23989
771b4502 23990if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
23991# We pick this up from the host configuration file (.mh) because we
23992# do not have a native configuration Makefile fragment.
c906108c
SS
23993nativefile=`sed -n '
23994s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23995' ${host_makefile_frag}`
c906108c
SS
23996fi
23997
23998
b00a8037 23999if test x"${gdb_osabi}" != x ; then
bec39cab
AC
24000
24001cat >>confdefs.h <<_ACEOF
b00a8037 24002#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 24003_ACEOF
b00a8037
DJ
24004
24005fi
24006
8dcde887 24007# Enable multi-ice-gdb-server.
b4e70030 24008# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 24009if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
24010 enableval="$enable_multi_ice"
24011 case $enableval in
8dcde887
MK
24012 yes | no)
24013 ;;
bec39cab
AC
24014 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24015echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24016 { (exit 1); exit 1; }; } ;;
8dcde887 24017 esac
b4e70030 24018fi;
4e8d927d 24019if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
24020
24021
24022subdirs="$subdirs multi-ice"
3ace7edb 24023
a85f51e7
DJ
24024fi
24025
a13e2c95
UW
24026# We only build gdbserver automatically in a native configuration.
24027if test "$gdb_native" = "yes"; then
b4e70030
JB
24028 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24029echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 24030 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
24031 echo "$as_me:$LINENO: result: yes" >&5
24032echo "${ECHO_T}yes" >&6
24033
24034
24035subdirs="$subdirs gdbserver"
3ace7edb 24036
8dcde887 24037 else
b4e70030
JB
24038 echo "$as_me:$LINENO: result: no" >&5
24039echo "${ECHO_T}no" >&6
8dcde887
MK
24040 fi
24041fi
24042
db985757 24043# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 24044# to an empty version.
c906108c
SS
24045
24046files=
24047links=
5a2402b8 24048
c906108c 24049rm -f nm.h
5a2402b8 24050nm_h=""
c906108c 24051if test "${nativefile}" != ""; then
5a2402b8 24052 nm_h=nm.h
0f475e27
AC
24053 case "${nativefile}" in
24054 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24055 * ) GDB_NM_FILE="${nativefile}"
24056 esac
5a2402b8
AC
24057 files="${files} ${GDB_NM_FILE}"
24058 links="${links} nm.h"
60ca704f
SE
24059
24060cat >>confdefs.h <<_ACEOF
b78960be 24061#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 24062_ACEOF
5a2402b8 24063
c906108c 24064fi
5a2402b8
AC
24065
24066
bec39cab
AC
24067ac_sources="$files"
24068ac_dests="$links"
24069while test -n "$ac_sources"; do
24070 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24071 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24072 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24073done
b4e70030 24074 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
24075
24076
c906108c
SS
24077
24078
c906108c 24079
c906108c 24080
bec39cab
AC
24081cat >>confdefs.h <<\_ACEOF
24082#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24083_ACEOF
c906108c 24084
234b45d4 24085
234b45d4
KB
24086
24087
24088
b4e70030 24089# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 24090if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
24091 withval="$with_libiconv_prefix"
24092
234b45d4
KB
24093 for dir in `echo "$withval" | tr : ' '`; do
24094 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24095 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24096 done
234b45d4 24097
b4e70030 24098fi;
234b45d4 24099
b4e70030
JB
24100 echo "$as_me:$LINENO: checking for iconv" >&5
24101echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
24102if test "${am_cv_func_iconv+set}" = set; then
24103 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 24104else
bec39cab 24105
234b45d4
KB
24106 am_cv_func_iconv="no, consider installing GNU libiconv"
24107 am_cv_lib_iconv=no
bec39cab
AC
24108 cat >conftest.$ac_ext <<_ACEOF
24109/* confdefs.h. */
24110_ACEOF
24111cat confdefs.h >>conftest.$ac_ext
24112cat >>conftest.$ac_ext <<_ACEOF
24113/* end confdefs.h. */
234b45d4
KB
24114#include <stdlib.h>
24115#include <iconv.h>
bec39cab
AC
24116int
24117main ()
24118{
234b45d4
KB
24119iconv_t cd = iconv_open("","");
24120 iconv(cd,NULL,NULL,NULL,NULL);
24121 iconv_close(cd);
bec39cab
AC
24122 ;
24123 return 0;
24124}
24125_ACEOF
24126rm -f conftest.$ac_objext conftest$ac_exeext
24127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24128 (eval $ac_link) 2>conftest.er1
24129 ac_status=$?
24130 grep -v '^ *+' conftest.er1 >conftest.err
24131 rm -f conftest.er1
24132 cat conftest.err >&5
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } &&
b4e70030
JB
24135 { ac_try='test -z "$ac_c_werror_flag"
24136 || test ! -s conftest.err'
bec39cab
AC
24137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24138 (eval $ac_try) 2>&5
24139 ac_status=$?
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); }; } &&
24142 { ac_try='test -s conftest$ac_exeext'
24143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24144 (eval $ac_try) 2>&5
24145 ac_status=$?
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); }; }; then
234b45d4
KB
24148 am_cv_func_iconv=yes
24149else
bec39cab
AC
24150 echo "$as_me: failed program was:" >&5
24151sed 's/^/| /' conftest.$ac_ext >&5
24152
234b45d4 24153fi
bec39cab
AC
24154rm -f conftest.err conftest.$ac_objext \
24155 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
24156 if test "$am_cv_func_iconv" != yes; then
24157 am_save_LIBS="$LIBS"
24158 LIBS="$LIBS -liconv"
bec39cab
AC
24159 cat >conftest.$ac_ext <<_ACEOF
24160/* confdefs.h. */
24161_ACEOF
24162cat confdefs.h >>conftest.$ac_ext
24163cat >>conftest.$ac_ext <<_ACEOF
24164/* end confdefs.h. */
234b45d4
KB
24165#include <stdlib.h>
24166#include <iconv.h>
bec39cab
AC
24167int
24168main ()
24169{
234b45d4
KB
24170iconv_t cd = iconv_open("","");
24171 iconv(cd,NULL,NULL,NULL,NULL);
24172 iconv_close(cd);
bec39cab
AC
24173 ;
24174 return 0;
24175}
24176_ACEOF
24177rm -f conftest.$ac_objext conftest$ac_exeext
24178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24179 (eval $ac_link) 2>conftest.er1
24180 ac_status=$?
24181 grep -v '^ *+' conftest.er1 >conftest.err
24182 rm -f conftest.er1
24183 cat conftest.err >&5
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); } &&
b4e70030
JB
24186 { ac_try='test -z "$ac_c_werror_flag"
24187 || test ! -s conftest.err'
bec39cab
AC
24188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24189 (eval $ac_try) 2>&5
24190 ac_status=$?
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); }; } &&
24193 { ac_try='test -s conftest$ac_exeext'
24194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24195 (eval $ac_try) 2>&5
24196 ac_status=$?
24197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); }; }; then
234b45d4
KB
24199 am_cv_lib_iconv=yes
24200 am_cv_func_iconv=yes
24201else
bec39cab
AC
24202 echo "$as_me: failed program was:" >&5
24203sed 's/^/| /' conftest.$ac_ext >&5
24204
234b45d4 24205fi
bec39cab
AC
24206rm -f conftest.err conftest.$ac_objext \
24207 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
24208 LIBS="$am_save_LIBS"
24209 fi
bec39cab
AC
24210
24211fi
b4e70030
JB
24212echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
24213echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
24214 if test "$am_cv_func_iconv" = yes; then
24215
24216cat >>confdefs.h <<\_ACEOF
24217#define HAVE_ICONV 1
24218_ACEOF
24219
b4e70030
JB
24220 echo "$as_me:$LINENO: checking for iconv declaration" >&5
24221echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
24222 if test "${am_cv_proto_iconv+set}" = set; then
24223 echo $ECHO_N "(cached) $ECHO_C" >&6
24224else
24225
24226 cat >conftest.$ac_ext <<_ACEOF
24227/* confdefs.h. */
24228_ACEOF
24229cat confdefs.h >>conftest.$ac_ext
24230cat >>conftest.$ac_ext <<_ACEOF
24231/* end confdefs.h. */
24232
24233#include <stdlib.h>
24234#include <iconv.h>
24235extern
24236#ifdef __cplusplus
24237"C"
24238#endif
24239#if defined(__STDC__) || defined(__cplusplus)
24240size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
24241#else
24242size_t iconv();
24243#endif
24244
24245int
24246main ()
24247{
24248
24249 ;
24250 return 0;
24251}
24252_ACEOF
24253rm -f conftest.$ac_objext
24254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24255 (eval $ac_compile) 2>conftest.er1
24256 ac_status=$?
24257 grep -v '^ *+' conftest.er1 >conftest.err
24258 rm -f conftest.er1
24259 cat conftest.err >&5
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); } &&
b4e70030
JB
24262 { ac_try='test -z "$ac_c_werror_flag"
24263 || test ! -s conftest.err'
bec39cab
AC
24264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24266 ac_status=$?
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; } &&
24269 { ac_try='test -s conftest.$ac_objext'
24270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; }; then
24275 am_cv_proto_iconv_arg1=""
24276else
24277 echo "$as_me: failed program was:" >&5
24278sed 's/^/| /' conftest.$ac_ext >&5
24279
b4e70030 24280am_cv_proto_iconv_arg1="const"
bec39cab
AC
24281fi
24282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24283 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);"
24284fi
24285
24286 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 24287 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
24288 }$am_cv_proto_iconv" >&5
24289echo "${ECHO_T}${ac_t:-
b4e70030 24290 }$am_cv_proto_iconv" >&6
bec39cab
AC
24291
24292cat >>confdefs.h <<_ACEOF
24293#define ICONV_CONST $am_cv_proto_iconv_arg1
24294_ACEOF
24295
24296 fi
24297 LIBICONV=
24298 if test "$am_cv_lib_iconv" = yes; then
24299 LIBICONV="-liconv"
24300 fi
24301
24302
24303
b4e70030
JB
24304 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
24305 ac_config_commands="$ac_config_commands default"
bec39cab
AC
24306cat >confcache <<\_ACEOF
24307# This file is a shell script that caches the results of configure
24308# tests run on this system so they can be shared between configure
24309# scripts and configure runs, see configure's option --config-cache.
24310# It is not useful on other systems. If it contains results you don't
24311# want to keep, you may remove or edit it.
24312#
24313# config.status only pays attention to the cache file if you give it
24314# the --recheck option to rerun configure.
24315#
24316# `ac_cv_env_foo' variables (set or unset) will be overridden when
24317# loading this file, other *unset* `ac_cv_foo' will be assigned the
24318# following values.
24319
24320_ACEOF
24321
24322# The following way of writing the cache mishandles newlines in values,
24323# but we know of no workaround that is simple, portable, and efficient.
b4e70030 24324# So, don't put newlines in cache variables' values.
bec39cab
AC
24325# Ultrix sh set writes to stderr and can't be redirected directly,
24326# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 24327{
bec39cab 24328 (set) 2>&1 |
b4e70030
JB
24329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24330 *ac_space=\ *)
bec39cab
AC
24331 # `set' does not quote correctly, so add quotes (double-quote
24332 # substitution turns \\\\ into \\, and sed turns \\ into \).
24333 sed -n \
24334 "s/'/'\\\\''/g;
24335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 24336 ;;
bec39cab
AC
24337 *)
24338 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
24339 sed -n \
24340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 24341 ;;
b4e70030
JB
24342 esac;
24343} |
bec39cab
AC
24344 sed '
24345 t clear
b4e70030 24346 : clear
bec39cab
AC
24347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24348 t end
b4e70030
JB
24349 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24350 : end' >>confcache
bec39cab
AC
24351if diff $cache_file confcache >/dev/null 2>&1; then :; else
24352 if test -w $cache_file; then
b4e70030 24353 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
24354 cat confcache >$cache_file
24355 else
b4e70030 24356 echo "not updating unwritable cache $cache_file"
bec39cab
AC
24357 fi
24358fi
24359rm -f confcache
24360
24361test "x$prefix" = xNONE && prefix=$ac_default_prefix
24362# Let make expand exec_prefix.
24363test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24364
b4e70030
JB
24365# VPATH may cause trouble with some makes, so we remove $(srcdir),
24366# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24367# trailing colons and then remove the whole line if VPATH becomes empty
24368# (actually we leave an empty line to preserve line numbers).
24369if test "x$srcdir" = x.; then
24370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24371s/:*\$(srcdir):*/:/;
24372s/:*\${srcdir}:*/:/;
24373s/:*@srcdir@:*/:/;
24374s/^\([^=]*=[ ]*\):*/\1/;
24375s/:*$//;
24376s/^[^=]*=[ ]*$//;
24377}'
24378fi
24379
bec39cab
AC
24380DEFS=-DHAVE_CONFIG_H
24381
24382ac_libobjs=
24383ac_ltlibobjs=
24384for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24385 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
24386 ac_i=`echo "$ac_i" |
24387 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24388 # 2. Add them.
24389 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24390 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
24391done
24392LIBOBJS=$ac_libobjs
24393
24394LTLIBOBJS=$ac_ltlibobjs
24395
24396
85981d60
AC
24397if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24398 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24399Usually this means the macro was only invoked conditionally." >&5
24400echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24401Usually this means the macro was only invoked conditionally." >&2;}
24402 { (exit 1); exit 1; }; }
24403fi
bec39cab
AC
24404
24405: ${CONFIG_STATUS=./config.status}
24406ac_clean_files_save=$ac_clean_files
24407ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24408{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24409echo "$as_me: creating $CONFIG_STATUS" >&6;}
24410cat >$CONFIG_STATUS <<_ACEOF
24411#! $SHELL
24412# Generated by $as_me.
24413# Run this file to recreate the current configuration.
24414# Compiler output produced by configure, useful for debugging
24415# configure, is in config.log if it exists.
24416
24417debug=false
24418ac_cs_recheck=false
24419ac_cs_silent=false
24420SHELL=\${CONFIG_SHELL-$SHELL}
24421_ACEOF
24422
24423cat >>$CONFIG_STATUS <<\_ACEOF
24424## --------------------- ##
24425## M4sh Initialization. ##
24426## --------------------- ##
24427
24428# Be Bourne compatible
24429if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24430 emulate sh
24431 NULLCMD=:
24432 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24433 # is contrary to our usage. Disable this feature.
24434 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
24435elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24436 set -o posix
bec39cab
AC
24437fi
24438DUALCASE=1; export DUALCASE # for MKS sh
24439
24440# Support unset when possible.
24441if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24442 as_unset=unset
24443else
24444 as_unset=false
24445fi
24446
24447
24448# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 24449$as_unset ENV MAIL MAILPATH
bec39cab
AC
24450PS1='$ '
24451PS2='> '
24452PS4='+ '
24453
24454# NLS nuisances.
24455for as_var in \
24456 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24457 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24458 LC_TELEPHONE LC_TIME
24459do
24460 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24461 eval $as_var=C; export $as_var
24462 else
b4e70030 24463 $as_unset $as_var
bec39cab
AC
24464 fi
24465done
24466
24467# Required to use basename.
b4e70030 24468if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
24469 as_expr=expr
24470else
24471 as_expr=false
24472fi
24473
b4e70030 24474if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
24475 as_basename=basename
24476else
24477 as_basename=false
24478fi
24479
24480
24481# Name of the executable.
b4e70030 24482as_me=`$as_basename "$0" ||
bec39cab
AC
24483$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24484 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
24485 X"$0" : 'X\(/\)$' \| \
24486 . : '\(.\)' 2>/dev/null ||
bec39cab 24487echo X/"$0" |
b4e70030
JB
24488 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24489 /^X\/\(\/\/\)$/{ s//\1/; q; }
24490 /^X\/\(\/\).*/{ s//\1/; q; }
24491 s/.*/./; q'`
bec39cab 24492
b4e70030
JB
24493
24494# PATH needs CR, and LINENO needs CR and PATH.
24495# Avoid depending upon Character Ranges.
24496as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24497as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24498as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24499as_cr_digits='0123456789'
24500as_cr_alnum=$as_cr_Letters$as_cr_digits
24501
24502# The user is always right.
24503if test "${PATH_SEPARATOR+set}" != set; then
24504 echo "#! /bin/sh" >conf$$.sh
24505 echo "exit 0" >>conf$$.sh
24506 chmod +x conf$$.sh
24507 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24508 PATH_SEPARATOR=';'
24509 else
24510 PATH_SEPARATOR=:
24511 fi
24512 rm -f conf$$.sh
24513fi
bec39cab
AC
24514
24515
b4e70030
JB
24516 as_lineno_1=$LINENO
24517 as_lineno_2=$LINENO
24518 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24519 test "x$as_lineno_1" != "x$as_lineno_2" &&
24520 test "x$as_lineno_3" = "x$as_lineno_2" || {
24521 # Find who we are. Look in the path if we contain no path at all
24522 # relative or not.
24523 case $0 in
24524 *[\\/]* ) as_myself=$0 ;;
24525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24526for as_dir in $PATH
24527do
24528 IFS=$as_save_IFS
24529 test -z "$as_dir" && as_dir=.
24530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24531done
bec39cab 24532
b4e70030
JB
24533 ;;
24534 esac
24535 # We did not find ourselves, most probably we were run as `sh COMMAND'
24536 # in which case we are not to be found in the path.
24537 if test "x$as_myself" = x; then
24538 as_myself=$0
24539 fi
24540 if test ! -f "$as_myself"; then
24541 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24542echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24543 { (exit 1); exit 1; }; }
24544 fi
24545 case $CONFIG_SHELL in
24546 '')
24547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24548for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24549do
24550 IFS=$as_save_IFS
24551 test -z "$as_dir" && as_dir=.
24552 for as_base in sh bash ksh sh5; do
24553 case $as_dir in
24554 /*)
24555 if ("$as_dir/$as_base" -c '
bec39cab
AC
24556 as_lineno_1=$LINENO
24557 as_lineno_2=$LINENO
b4e70030 24558 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 24559 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
24560 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24561 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24562 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24563 CONFIG_SHELL=$as_dir/$as_base
24564 export CONFIG_SHELL
24565 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24566 fi;;
24567 esac
24568 done
24569done
24570;;
24571 esac
bec39cab
AC
24572
24573 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24574 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
24575 # line-number line before each line; the second 'sed' does the real
24576 # work. The second script uses 'N' to pair each line-number line
24577 # with the numbered line, and appends trailing '-' during
24578 # substitution so that $LINENO is not a special case at line end.
bec39cab 24579 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
24580 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24581 sed '=' <$as_myself |
bec39cab
AC
24582 sed '
24583 N
b4e70030
JB
24584 s,$,-,
24585 : loop
24586 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 24587 t loop
b4e70030
JB
24588 s,-$,,
24589 s,^['$as_cr_digits']*\n,,
bec39cab 24590 ' >$as_me.lineno &&
b4e70030
JB
24591 chmod +x $as_me.lineno ||
24592 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24593echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
24594 { (exit 1); exit 1; }; }
24595
24596 # Don't try to exec as it changes $[0], causing all sort of problems
24597 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
24598 # original and so on. Autoconf is especially sensible to this).
24599 . ./$as_me.lineno
bec39cab
AC
24600 # Exit status is that of the last command.
24601 exit
24602}
24603
24604
b4e70030
JB
24605case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24606 *c*,-n*) ECHO_N= ECHO_C='
24607' ECHO_T=' ' ;;
24608 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24609 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
24610esac
24611
b4e70030 24612if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
24613 as_expr=expr
24614else
24615 as_expr=false
24616fi
24617
24618rm -f conf$$ conf$$.exe conf$$.file
24619echo >conf$$.file
24620if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
24621 # We could just check for DJGPP; but this test a) works b) is more generic
24622 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24623 if test -f conf$$.exe; then
24624 # Don't use ln at all; we don't have any links
bec39cab 24625 as_ln_s='cp -p'
b4e70030
JB
24626 else
24627 as_ln_s='ln -s'
24628 fi
bec39cab
AC
24629elif ln conf$$.file conf$$ 2>/dev/null; then
24630 as_ln_s=ln
24631else
24632 as_ln_s='cp -p'
24633fi
b4e70030 24634rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
24635
24636if mkdir -p . 2>/dev/null; then
24637 as_mkdir_p=:
24638else
24639 test -d ./-p && rmdir ./-p
24640 as_mkdir_p=false
24641fi
24642
b4e70030 24643as_executable_p="test -f"
bec39cab
AC
24644
24645# Sed expression to map a string onto a valid CPP name.
24646as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24647
24648# Sed expression to map a string onto a valid variable name.
24649as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24650
24651
b4e70030
JB
24652# IFS
24653# We need space, tab and new line, in precisely that order.
24654as_nl='
24655'
24656IFS=" $as_nl"
24657
24658# CDPATH.
24659$as_unset CDPATH
24660
bec39cab
AC
24661exec 6>&1
24662
b4e70030 24663# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 24664# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
24665# values after options handling. Logging --version etc. is OK.
24666exec 5>>config.log
24667{
24668 echo
24669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24670## Running $as_me. ##
24671_ASBOX
24672} >&5
24673cat >&5 <<_CSEOF
24674
bec39cab 24675This file was extended by $as_me, which was
b4e70030 24676generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
24677
24678 CONFIG_FILES = $CONFIG_FILES
24679 CONFIG_HEADERS = $CONFIG_HEADERS
24680 CONFIG_LINKS = $CONFIG_LINKS
24681 CONFIG_COMMANDS = $CONFIG_COMMANDS
24682 $ $0 $@
24683
b4e70030
JB
24684_CSEOF
24685echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24686echo >&5
bec39cab
AC
24687_ACEOF
24688
24689# Files that config.status was made for.
b4e70030
JB
24690if test -n "$ac_config_files"; then
24691 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24692fi
234b45d4 24693
b4e70030
JB
24694if test -n "$ac_config_headers"; then
24695 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24696fi
24697
24698if test -n "$ac_config_links"; then
24699 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24700fi
24701
24702if test -n "$ac_config_commands"; then
24703 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24704fi
234b45d4 24705
bec39cab 24706cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 24707
bec39cab
AC
24708ac_cs_usage="\
24709\`$as_me' instantiates files from templates according to the
24710current configuration.
234b45d4 24711
bec39cab 24712Usage: $0 [OPTIONS] [FILE]...
234b45d4 24713
bec39cab
AC
24714 -h, --help print this help, then exit
24715 -V, --version print version number, then exit
24716 -q, --quiet do not print progress messages
24717 -d, --debug don't remove temporary files
24718 --recheck update $as_me by reconfiguring in the same conditions
24719 --file=FILE[:TEMPLATE]
24720 instantiate the configuration file FILE
24721 --header=FILE[:TEMPLATE]
24722 instantiate the configuration header FILE
234b45d4 24723
bec39cab
AC
24724Configuration files:
24725$config_files
234b45d4 24726
bec39cab
AC
24727Configuration headers:
24728$config_headers
234b45d4 24729
bec39cab
AC
24730Configuration links:
24731$config_links
234b45d4 24732
bec39cab
AC
24733Configuration commands:
24734$config_commands
24735
24736Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 24737_ACEOF
b4e70030 24738
bec39cab
AC
24739cat >>$CONFIG_STATUS <<_ACEOF
24740ac_cs_version="\\
24741config.status
b4e70030 24742configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
24743 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24744
b4e70030 24745Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
24746This config.status script is free software; the Free Software Foundation
24747gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
24748srcdir=$srcdir
24749INSTALL="$INSTALL"
bec39cab
AC
24750_ACEOF
24751
24752cat >>$CONFIG_STATUS <<\_ACEOF
24753# If no file are specified by the user, then we need to provide default
24754# value. By we need to know if files were specified by the user.
24755ac_need_defaults=:
24756while test $# != 0
24757do
24758 case $1 in
24759 --*=*)
b4e70030
JB
24760 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24761 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 24762 ac_shift=:
c906108c 24763 ;;
b4e70030 24764 -*)
bec39cab
AC
24765 ac_option=$1
24766 ac_optarg=$2
24767 ac_shift=shift
c906108c 24768 ;;
b4e70030
JB
24769 *) # This is not an option, so the user has probably given explicit
24770 # arguments.
24771 ac_option=$1
24772 ac_need_defaults=false;;
bec39cab 24773 esac
c906108c 24774
bec39cab
AC
24775 case $ac_option in
24776 # Handling of the options.
b4e70030
JB
24777_ACEOF
24778cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
24779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24780 ac_cs_recheck=: ;;
b4e70030
JB
24781 --version | --vers* | -V )
24782 echo "$ac_cs_version"; exit 0 ;;
24783 --he | --h)
24784 # Conflict between --help and --header
24785 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24786Try \`$0 --help' for more information." >&5
24787echo "$as_me: error: ambiguous option: $1
24788Try \`$0 --help' for more information." >&2;}
24789 { (exit 1); exit 1; }; };;
24790 --help | --hel | -h )
24791 echo "$ac_cs_usage"; exit 0 ;;
24792 --debug | --d* | -d )
bec39cab
AC
24793 debug=: ;;
24794 --file | --fil | --fi | --f )
24795 $ac_shift
24796 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24797 ac_need_defaults=false;;
24798 --header | --heade | --head | --hea )
24799 $ac_shift
24800 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24801 ac_need_defaults=false;;
24802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24803 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24804 ac_cs_silent=: ;;
c906108c 24805
bec39cab 24806 # This is an error.
b4e70030
JB
24807 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24808Try \`$0 --help' for more information." >&5
24809echo "$as_me: error: unrecognized option: $1
24810Try \`$0 --help' for more information." >&2;}
bec39cab 24811 { (exit 1); exit 1; }; } ;;
c906108c 24812
b4e70030 24813 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 24814
bec39cab
AC
24815 esac
24816 shift
24817done
c906108c 24818
bec39cab 24819ac_configure_extra_args=
c906108c 24820
bec39cab
AC
24821if $ac_cs_silent; then
24822 exec 6>/dev/null
24823 ac_configure_extra_args="$ac_configure_extra_args --silent"
24824fi
c906108c 24825
bec39cab
AC
24826_ACEOF
24827cat >>$CONFIG_STATUS <<_ACEOF
24828if \$ac_cs_recheck; then
b4e70030
JB
24829 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24830 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
24831fi
24832
24833_ACEOF
24834
24835cat >>$CONFIG_STATUS <<_ACEOF
c906108c 24836#
b4e70030 24837# INIT-COMMANDS section.
c906108c 24838#
c906108c 24839
b4e70030 24840
4e8d927d
DJ
24841GCC="$GCC"
24842CC="$CC"
24843acx_cv_header_stdint="$acx_cv_header_stdint"
24844acx_cv_type_int8_t="$acx_cv_type_int8_t"
24845acx_cv_type_int16_t="$acx_cv_type_int16_t"
24846acx_cv_type_int32_t="$acx_cv_type_int32_t"
24847acx_cv_type_int64_t="$acx_cv_type_int64_t"
24848acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24849ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24850ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24851ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24852ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24853ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24854ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24855ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24856ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24857
bec39cab
AC
24858
24859gdb_host_cpu=$gdb_host_cpu
24860gdb_target_cpu=$gdb_target_cpu
24861nativefile=$nativefile
24862
24863
24864_ACEOF
24865
4e8d927d 24866
b4e70030
JB
24867
24868cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 24869for ac_config_target in $ac_config_targets
c906108c 24870do
b4e70030
JB
24871 case "$ac_config_target" in
24872 # Handling of arguments.
24873 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24874 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24875 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24876 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24877 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24878 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
24879 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24880echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24881 { (exit 1); exit 1; }; };;
c906108c
SS
24882 esac
24883done
24884
bec39cab
AC
24885# If the user did not use the arguments to specify the items to instantiate,
24886# then the envvar interface is used. Set only those that are not.
24887# We use the long form for the default assignment because of an extremely
24888# bizarre bug on SunOS 4.1.3.
24889if $ac_need_defaults; then
24890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24892 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24893 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24894fi
24895
b4e70030
JB
24896# Have a temporary directory for convenience. Make it in the build tree
24897# simply because there is no reason to put it here, and in addition,
24898# creating and moving files from /tmp can sometimes cause problems.
24899# Create a temporary directory, and hook for its removal unless debugging.
24900$debug ||
24901{
24902 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24903 trap '{ (exit 1); exit 1; }' 1 2 13 15
24904}
4e8d927d 24905
b4e70030 24906# Create a (secure) tmp directory for tmp files.
4e8d927d 24907
b4e70030
JB
24908{
24909 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24910 test -n "$tmp" && test -d "$tmp"
24911} ||
24912{
24913 tmp=./confstat$$-$RANDOM
24914 (umask 077 && mkdir $tmp)
24915} ||
24916{
24917 echo "$me: cannot create a temporary directory in ." >&2
24918 { (exit 1); exit 1; }
24919}
4e8d927d 24920
b4e70030 24921_ACEOF
4e8d927d 24922
b4e70030 24923cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 24924
b4e70030
JB
24925#
24926# CONFIG_FILES section.
24927#
4e8d927d 24928
b4e70030
JB
24929# No need to generate the scripts if there are no CONFIG_FILES.
24930# This happens for instance when ./config.status config.h
24931if test -n "\$CONFIG_FILES"; then
24932 # Protect against being on the right side of a sed subst in config.status.
24933 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24934 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24935s,@SHELL@,$SHELL,;t t
24936s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24937s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24938s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24939s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24940s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24941s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24942s,@exec_prefix@,$exec_prefix,;t t
24943s,@prefix@,$prefix,;t t
24944s,@program_transform_name@,$program_transform_name,;t t
24945s,@bindir@,$bindir,;t t
24946s,@sbindir@,$sbindir,;t t
24947s,@libexecdir@,$libexecdir,;t t
24948s,@datadir@,$datadir,;t t
24949s,@sysconfdir@,$sysconfdir,;t t
24950s,@sharedstatedir@,$sharedstatedir,;t t
24951s,@localstatedir@,$localstatedir,;t t
24952s,@libdir@,$libdir,;t t
24953s,@includedir@,$includedir,;t t
24954s,@oldincludedir@,$oldincludedir,;t t
24955s,@infodir@,$infodir,;t t
24956s,@mandir@,$mandir,;t t
24957s,@build_alias@,$build_alias,;t t
24958s,@host_alias@,$host_alias,;t t
24959s,@target_alias@,$target_alias,;t t
24960s,@DEFS@,$DEFS,;t t
24961s,@ECHO_C@,$ECHO_C,;t t
24962s,@ECHO_N@,$ECHO_N,;t t
24963s,@ECHO_T@,$ECHO_T,;t t
24964s,@LIBS@,$LIBS,;t t
24965s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24966s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24967s,@MAINT@,$MAINT,;t t
24968s,@CC@,$CC,;t t
24969s,@CFLAGS@,$CFLAGS,;t t
24970s,@LDFLAGS@,$LDFLAGS,;t t
24971s,@CPPFLAGS@,$CPPFLAGS,;t t
24972s,@ac_ct_CC@,$ac_ct_CC,;t t
24973s,@EXEEXT@,$EXEEXT,;t t
24974s,@OBJEXT@,$OBJEXT,;t t
24975s,@CPP@,$CPP,;t t
24976s,@EGREP@,$EGREP,;t t
24977s,@build@,$build,;t t
24978s,@build_cpu@,$build_cpu,;t t
24979s,@build_vendor@,$build_vendor,;t t
24980s,@build_os@,$build_os,;t t
24981s,@host@,$host,;t t
24982s,@host_cpu@,$host_cpu,;t t
24983s,@host_vendor@,$host_vendor,;t t
24984s,@host_os@,$host_os,;t t
24985s,@target@,$target,;t t
24986s,@target_cpu@,$target_cpu,;t t
24987s,@target_vendor@,$target_vendor,;t t
24988s,@target_os@,$target_os,;t t
b4e70030 24989s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
24990s,@LIBINTL@,$LIBINTL,;t t
24991s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24992s,@INCINTL@,$INCINTL,;t t
b4e70030 24993s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
24994s,@GMSGFMT@,$GMSGFMT,;t t
24995s,@POSUB@,$POSUB,;t t
b4e70030 24996s,@CATALOGS@,$CATALOGS,;t t
b4e70030 24997s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 24998s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
24999s,@GENCAT@,$GENCAT,;t t
25000s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
25001s,@localedir@,$localedir,;t t
25002s,@PACKAGE@,$PACKAGE,;t t
25003s,@subdirs@,$subdirs,;t t
25004s,@AWK@,$AWK,;t t
25005s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25006s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25007s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25008s,@LN_S@,$LN_S,;t t
20e95c23
DJ
25009s,@RANLIB@,$RANLIB,;t t
25010s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
25011s,@YACC@,$YACC,;t t
25012s,@AR@,$AR,;t t
25013s,@ac_ct_AR@,$ac_ct_AR,;t t
25014s,@DLLTOOL@,$DLLTOOL,;t t
25015s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
25016s,@WINDRES@,$WINDRES,;t t
25017s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
25018s,@MIG@,$MIG,;t t
25019s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
25020s,@READLINE@,$READLINE,;t t
25021s,@READLINE_DEPS@,$READLINE_DEPS,;t t
25022s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
25023s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
25024s,@LIBEXPAT@,$LIBEXPAT,;t t
25025s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 25026s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
25027s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
25028s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25029s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25030s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
25031s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
25032s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
25033s,@WIN32LIBS@,$WIN32LIBS,;t t
25034s,@LIBGUI@,$LIBGUI,;t t
25035s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
25036s,@WIN32LDAPP@,$WIN32LDAPP,;t t
25037s,@TCL_VERSION@,$TCL_VERSION,;t t
25038s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
25039s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
25040s,@TCL_CC@,$TCL_CC,;t t
25041s,@TCL_DEFS@,$TCL_DEFS,;t t
25042s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
25043s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
25044s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25045s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
25046s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
25047s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
25048s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
25049s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
25050s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
25051s,@TCL_RANLIB@,$TCL_RANLIB,;t t
25052s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
25053s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25054s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
25055s,@TK_VERSION@,$TK_VERSION,;t t
25056s,@TK_DEFS@,$TK_DEFS,;t t
25057s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
25058s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
25059s,@TK_XLIBSW@,$TK_XLIBSW,;t t
25060s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
25061s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
25062s,@TCLHDIR@,$TCLHDIR,;t t
25063s,@TKHDIR@,$TKHDIR,;t t
25064s,@ITCLHDIR@,$ITCLHDIR,;t t
25065s,@ITKHDIR@,$ITKHDIR,;t t
25066s,@ITCL_VERSION@,$ITCL_VERSION,;t t
25067s,@ITCL_DEFS@,$ITCL_DEFS,;t t
25068s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
25069s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
25070s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
25071s,@ITK_VERSION@,$ITK_VERSION,;t t
25072s,@ITK_DEFS@,$ITK_DEFS,;t t
25073s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
25074s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
25075s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
25076s,@X_CFLAGS@,$X_CFLAGS,;t t
25077s,@X_LDFLAGS@,$X_LDFLAGS,;t t
25078s,@X_LIBS@,$X_LIBS,;t t
25079s,@TCL_DEPS@,$TCL_DEPS,;t t
25080s,@TK_DEPS@,$TK_DEPS,;t t
25081s,@ITCLLIB@,$ITCLLIB,;t t
25082s,@ITCL_DEPS@,$ITCL_DEPS,;t t
25083s,@ITKLIB@,$ITKLIB,;t t
25084s,@ITK_DEPS@,$ITK_DEPS,;t t
25085s,@GDBTKLIBS@,$GDBTKLIBS,;t t
25086s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
25087s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
25088s,@SIM@,$SIM,;t t
25089s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
25090s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
25091s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
25092s,@CONFIG_OBS@,$CONFIG_OBS,;t t
25093s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
25094s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
25095s,@CONFIG_ALL@,$CONFIG_ALL,;t t
25096s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
25097s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
25098s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
25099s,@target_subdir@,$target_subdir,;t t
25100s,@frags@,$frags,;t t
b4e70030
JB
25101s,@nm_h@,$nm_h,;t t
25102s,@LIBICONV@,$LIBICONV,;t t
25103s,@LIBOBJS@,$LIBOBJS,;t t
25104s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25105/@host_makefile_frag@/r $host_makefile_frag
25106s,@host_makefile_frag@,,;t t
25107/@target_makefile_frag@/r $target_makefile_frag
25108s,@target_makefile_frag@,,;t t
25109CEOF
25110
25111_ACEOF
25112
25113 cat >>$CONFIG_STATUS <<\_ACEOF
25114 # Split the substitutions into bite-sized pieces for seds with
25115 # small command number limits, like on Digital OSF/1 and HP-UX.
25116 ac_max_sed_lines=48
25117 ac_sed_frag=1 # Number of current file.
25118 ac_beg=1 # First line for current file.
25119 ac_end=$ac_max_sed_lines # Line after last line for current file.
25120 ac_more_lines=:
25121 ac_sed_cmds=
25122 while $ac_more_lines; do
25123 if test $ac_beg -gt 1; then
25124 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25125 else
25126 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 25127 fi
b4e70030
JB
25128 if test ! -s $tmp/subs.frag; then
25129 ac_more_lines=false
25130 else
25131 # The purpose of the label and of the branching condition is to
25132 # speed up the sed processing (if there are no `@' at all, there
25133 # is no need to browse any of the substitutions).
25134 # These are the two extra sed commands mentioned above.
25135 (echo ':t
25136 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25137 if test -z "$ac_sed_cmds"; then
25138 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25139 else
25140 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25141 fi
25142 ac_sed_frag=`expr $ac_sed_frag + 1`
25143 ac_beg=$ac_end
25144 ac_end=`expr $ac_end + $ac_max_sed_lines`
25145 fi
25146 done
25147 if test -z "$ac_sed_cmds"; then
25148 ac_sed_cmds=cat
25149 fi
25150fi # test -n "$CONFIG_FILES"
4e8d927d 25151
b4e70030
JB
25152_ACEOF
25153cat >>$CONFIG_STATUS <<\_ACEOF
25154for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25155 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25156 case $ac_file in
25157 - | *:- | *:-:* ) # input from stdin
25158 cat >$tmp/stdin
25159 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25160 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25161 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25162 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25163 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
25164 esac
25165
b4e70030
JB
25166 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25167 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
25168$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25169 X"$ac_file" : 'X\(//\)[^/]' \| \
25170 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
25171 X"$ac_file" : 'X\(/\)' \| \
25172 . : '\(.\)' 2>/dev/null ||
bec39cab 25173echo X"$ac_file" |
b4e70030
JB
25174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25176 /^X\(\/\/\)$/{ s//\1/; q; }
25177 /^X\(\/\).*/{ s//\1/; q; }
25178 s/.*/./; q'`
25179 { if $as_mkdir_p; then
25180 mkdir -p "$ac_dir"
25181 else
25182 as_dir="$ac_dir"
bec39cab 25183 as_dirs=
b4e70030
JB
25184 while test ! -d "$as_dir"; do
25185 as_dirs="$as_dir $as_dirs"
25186 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25187$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25188 X"$as_dir" : 'X\(//\)[^/]' \| \
25189 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25190 X"$as_dir" : 'X\(/\)' \| \
25191 . : '\(.\)' 2>/dev/null ||
bec39cab 25192echo X"$as_dir" |
b4e70030
JB
25193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25195 /^X\(\/\/\)$/{ s//\1/; q; }
25196 /^X\(\/\).*/{ s//\1/; q; }
25197 s/.*/./; q'`
bec39cab 25198 done
b4e70030
JB
25199 test ! -n "$as_dirs" || mkdir $as_dirs
25200 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25201echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25202 { (exit 1); exit 1; }; }; }
b4e70030 25203
bec39cab
AC
25204 ac_builddir=.
25205
b4e70030 25206if test "$ac_dir" != .; then
bec39cab 25207 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25208 # A "../" for each directory in $ac_dir_suffix.
25209 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25210else
25211 ac_dir_suffix= ac_top_builddir=
25212fi
bec39cab
AC
25213
25214case $srcdir in
b4e70030 25215 .) # No --srcdir option. We are building in place.
bec39cab 25216 ac_srcdir=.
b4e70030
JB
25217 if test -z "$ac_top_builddir"; then
25218 ac_top_srcdir=.
25219 else
25220 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25221 fi ;;
25222 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25223 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25224 ac_top_srcdir=$srcdir ;;
25225 *) # Relative path.
25226 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25227 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
25228esac
25229
b4e70030
JB
25230# Do not use `cd foo && pwd` to compute absolute paths, because
25231# the directories may not exist.
25232case `pwd` in
25233.) ac_abs_builddir="$ac_dir";;
25234*)
25235 case "$ac_dir" in
25236 .) ac_abs_builddir=`pwd`;;
25237 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25238 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25239 esac;;
25240esac
25241case $ac_abs_builddir in
25242.) ac_abs_top_builddir=${ac_top_builddir}.;;
25243*)
25244 case ${ac_top_builddir}. in
25245 .) ac_abs_top_builddir=$ac_abs_builddir;;
25246 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25247 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25248 esac;;
25249esac
25250case $ac_abs_builddir in
25251.) ac_abs_srcdir=$ac_srcdir;;
25252*)
25253 case $ac_srcdir in
25254 .) ac_abs_srcdir=$ac_abs_builddir;;
25255 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25256 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25257 esac;;
25258esac
25259case $ac_abs_builddir in
25260.) ac_abs_top_srcdir=$ac_top_srcdir;;
25261*)
25262 case $ac_top_srcdir in
25263 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25264 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25265 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25266 esac;;
25267esac
c906108c 25268
c906108c 25269
bec39cab
AC
25270 case $INSTALL in
25271 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 25272 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 25273 esac
121ce6e5 25274
b4e70030
JB
25275 if test x"$ac_file" != x-; then
25276 { echo "$as_me:$LINENO: creating $ac_file" >&5
25277echo "$as_me: creating $ac_file" >&6;}
25278 rm -f "$ac_file"
25279 fi
25280 # Let's still pretend it is `configure' which instantiates (i.e., don't
25281 # use $as_me), people would be surprised to read:
25282 # /* config.h. Generated by config.status. */
25283 if test x"$ac_file" = x-; then
25284 configure_input=
25285 else
25286 configure_input="$ac_file. "
25287 fi
25288 configure_input=$configure_input"Generated from `echo $ac_file_in |
25289 sed 's,.*/,,'` by configure."
25290
25291 # First look for the input files in the build tree, otherwise in the
25292 # src tree.
25293 ac_file_inputs=`IFS=:
25294 for f in $ac_file_in; do
25295 case $f in
25296 -) echo $tmp/stdin ;;
25297 [\\/$]*)
25298 # Absolute (can't be DOS-style, as IFS=:)
25299 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25300echo "$as_me: error: cannot find input file: $f" >&2;}
25301 { (exit 1); exit 1; }; }
25302 echo "$f";;
25303 *) # Relative
25304 if test -f "$f"; then
25305 # Build tree
25306 echo "$f"
25307 elif test -f "$srcdir/$f"; then
25308 # Source tree
25309 echo "$srcdir/$f"
25310 else
25311 # /dev/null tree
25312 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25313echo "$as_me: error: cannot find input file: $f" >&2;}
25314 { (exit 1); exit 1; }; }
25315 fi;;
25316 esac
25317 done` || { (exit 1); exit 1; }
4e8d927d 25318_ACEOF
bec39cab
AC
25319cat >>$CONFIG_STATUS <<_ACEOF
25320 sed "$ac_vpsub
25321$extrasub
25322_ACEOF
25323cat >>$CONFIG_STATUS <<\_ACEOF
25324:t
25325/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
25326s,@configure_input@,$configure_input,;t t
25327s,@srcdir@,$ac_srcdir,;t t
25328s,@abs_srcdir@,$ac_abs_srcdir,;t t
25329s,@top_srcdir@,$ac_top_srcdir,;t t
25330s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25331s,@builddir@,$ac_builddir,;t t
25332s,@abs_builddir@,$ac_abs_builddir,;t t
25333s,@top_builddir@,$ac_top_builddir,;t t
25334s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25335s,@INSTALL@,$ac_INSTALL,;t t
25336" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25337 rm -f $tmp/stdin
25338 if test x"$ac_file" != x-; then
25339 mv $tmp/out $ac_file
25340 else
25341 cat $tmp/out
25342 rm -f $tmp/out
25343 fi
25344
25345done
25346_ACEOF
25347cat >>$CONFIG_STATUS <<\_ACEOF
25348
25349#
25350# CONFIG_HEADER section.
25351#
25352
25353# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25354# NAME is the cpp macro being defined and VALUE is the value it is being given.
25355#
25356# ac_d sets the value in "#define NAME VALUE" lines.
25357ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25358ac_dB='[ ].*$,\1#\2'
25359ac_dC=' '
25360ac_dD=',;t'
25361# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25362ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25363ac_uB='$,\1#\2define\3'
25364ac_uC=' '
25365ac_uD=',;t'
25366
25367for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25368 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 25369 case $ac_file in
b4e70030
JB
25370 - | *:- | *:-:* ) # input from stdin
25371 cat >$tmp/stdin
25372 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25373 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25374 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25375 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25376 * ) ac_file_in=$ac_file.in ;;
c906108c 25377 esac
b4e70030
JB
25378
25379 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25380echo "$as_me: creating $ac_file" >&6;}
25381
25382 # First look for the input files in the build tree, otherwise in the
25383 # src tree.
25384 ac_file_inputs=`IFS=:
25385 for f in $ac_file_in; do
25386 case $f in
25387 -) echo $tmp/stdin ;;
25388 [\\/$]*)
25389 # Absolute (can't be DOS-style, as IFS=:)
25390 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25391echo "$as_me: error: cannot find input file: $f" >&2;}
25392 { (exit 1); exit 1; }; }
25393 # Do quote $f, to prevent DOS paths from being IFS'd.
25394 echo "$f";;
25395 *) # Relative
25396 if test -f "$f"; then
25397 # Build tree
25398 echo "$f"
25399 elif test -f "$srcdir/$f"; then
25400 # Source tree
25401 echo "$srcdir/$f"
25402 else
25403 # /dev/null tree
25404 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25405echo "$as_me: error: cannot find input file: $f" >&2;}
25406 { (exit 1); exit 1; }; }
25407 fi;;
25408 esac
25409 done` || { (exit 1); exit 1; }
25410 # Remove the trailing spaces.
25411 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25412
25413_ACEOF
25414
25415# Transform confdefs.h into two sed scripts, `conftest.defines' and
25416# `conftest.undefs', that substitutes the proper values into
25417# config.h.in to produce config.h. The first handles `#define'
25418# templates, and the second `#undef' templates.
25419# And first: Protect against being on the right side of a sed subst in
25420# config.status. Protect against being in an unquoted here document
25421# in config.status.
25422rm -f conftest.defines conftest.undefs
25423# Using a here document instead of a string reduces the quoting nightmare.
25424# Putting comments in sed scripts is not portable.
25425#
25426# `end' is used to avoid that the second main sed command (meant for
25427# 0-ary CPP macros) applies to n-ary macro definitions.
25428# See the Autoconf documentation for `clear'.
25429cat >confdef2sed.sed <<\_ACEOF
25430s/[\\&,]/\\&/g
25431s,[\\$`],\\&,g
25432t clear
25433: clear
25434s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25435t end
25436s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25437: end
25438_ACEOF
25439# If some macros were called several times there might be several times
25440# the same #defines, which is useless. Nevertheless, we may not want to
25441# sort them, since we want the *last* AC-DEFINE to be honored.
25442uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25443sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25444rm -f confdef2sed.sed
25445
25446# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
25447# example, in the case of _POSIX_SOURCE, which is predefined and required
25448# on some systems where configure will not decide to define it.
b4e70030
JB
25449cat >>conftest.undefs <<\_ACEOF
25450s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25451_ACEOF
25452
25453# Break up conftest.defines because some shells have a limit on the size
25454# of here documents, and old seds have small limits too (100 cmds).
25455echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25456echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25457echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25458echo ' :' >>$CONFIG_STATUS
25459rm -f conftest.tail
25460while grep . conftest.defines >/dev/null
bec39cab 25461do
b4e70030
JB
25462 # Write a limited-size here document to $tmp/defines.sed.
25463 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25464 # Speed up: don't consider the non `#define' lines.
25465 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25466 # Work around the forget-to-reset-the-flag bug.
25467 echo 't clr' >>$CONFIG_STATUS
25468 echo ': clr' >>$CONFIG_STATUS
25469 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 25470 echo 'CEOF
b4e70030
JB
25471 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25472 rm -f $tmp/in
25473 mv $tmp/out $tmp/in
25474' >>$CONFIG_STATUS
25475 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
25476 rm -f conftest.defines
25477 mv conftest.tail conftest.defines
25478done
b4e70030
JB
25479rm -f conftest.defines
25480echo ' fi # grep' >>$CONFIG_STATUS
25481echo >>$CONFIG_STATUS
25482
25483# Break up conftest.undefs because some shells have a limit on the size
25484# of here documents, and old seds have small limits too (100 cmds).
25485echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25486rm -f conftest.tail
25487while grep . conftest.undefs >/dev/null
25488do
25489 # Write a limited-size here document to $tmp/undefs.sed.
25490 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25491 # Speed up: don't consider the non `#undef'
25492 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25493 # Work around the forget-to-reset-the-flag bug.
25494 echo 't clr' >>$CONFIG_STATUS
25495 echo ': clr' >>$CONFIG_STATUS
25496 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25497 echo 'CEOF
25498 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25499 rm -f $tmp/in
25500 mv $tmp/out $tmp/in
25501' >>$CONFIG_STATUS
25502 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25503 rm -f conftest.undefs
25504 mv conftest.tail conftest.undefs
25505done
25506rm -f conftest.undefs
bec39cab
AC
25507
25508cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
25509 # Let's still pretend it is `configure' which instantiates (i.e., don't
25510 # use $as_me), people would be surprised to read:
25511 # /* config.h. Generated by config.status. */
25512 if test x"$ac_file" = x-; then
25513 echo "/* Generated by configure. */" >$tmp/config.h
25514 else
25515 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25516 fi
25517 cat $tmp/in >>$tmp/config.h
25518 rm -f $tmp/in
bec39cab 25519 if test x"$ac_file" != x-; then
b4e70030 25520 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
25521 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25522echo "$as_me: $ac_file is unchanged" >&6;}
25523 else
b4e70030
JB
25524 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25525$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25526 X"$ac_file" : 'X\(//\)[^/]' \| \
25527 X"$ac_file" : 'X\(//\)$' \| \
25528 X"$ac_file" : 'X\(/\)' \| \
25529 . : '\(.\)' 2>/dev/null ||
25530echo X"$ac_file" |
25531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25533 /^X\(\/\/\)$/{ s//\1/; q; }
25534 /^X\(\/\).*/{ s//\1/; q; }
25535 s/.*/./; q'`
25536 { if $as_mkdir_p; then
25537 mkdir -p "$ac_dir"
25538 else
25539 as_dir="$ac_dir"
25540 as_dirs=
25541 while test ! -d "$as_dir"; do
25542 as_dirs="$as_dir $as_dirs"
25543 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25544$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25545 X"$as_dir" : 'X\(//\)[^/]' \| \
25546 X"$as_dir" : 'X\(//\)$' \| \
25547 X"$as_dir" : 'X\(/\)' \| \
25548 . : '\(.\)' 2>/dev/null ||
25549echo X"$as_dir" |
25550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25552 /^X\(\/\/\)$/{ s//\1/; q; }
25553 /^X\(\/\).*/{ s//\1/; q; }
25554 s/.*/./; q'`
25555 done
25556 test ! -n "$as_dirs" || mkdir $as_dirs
25557 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25558echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25559 { (exit 1); exit 1; }; }; }
25560
bec39cab 25561 rm -f $ac_file
b4e70030 25562 mv $tmp/config.h $ac_file
bec39cab
AC
25563 fi
25564 else
b4e70030
JB
25565 cat $tmp/config.h
25566 rm -f $tmp/config.h
bec39cab 25567 fi
b4e70030
JB
25568done
25569_ACEOF
25570cat >>$CONFIG_STATUS <<\_ACEOF
25571
25572#
25573# CONFIG_LINKS section.
25574#
25575
25576for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25577 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25578 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 25579
b4e70030
JB
25580 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25581echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
25582
25583 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
25584 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25585echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25586 { (exit 1); exit 1; }; }
c906108c 25587 fi
b4e70030
JB
25588 rm -f $ac_dest
25589
25590 # Make relative symlinks.
25591 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25592$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25593 X"$ac_dest" : 'X\(//\)[^/]' \| \
25594 X"$ac_dest" : 'X\(//\)$' \| \
25595 X"$ac_dest" : 'X\(/\)' \| \
25596 . : '\(.\)' 2>/dev/null ||
25597echo X"$ac_dest" |
25598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25600 /^X\(\/\/\)$/{ s//\1/; q; }
25601 /^X\(\/\).*/{ s//\1/; q; }
25602 s/.*/./; q'`
25603 { if $as_mkdir_p; then
25604 mkdir -p "$ac_dest_dir"
25605 else
25606 as_dir="$ac_dest_dir"
25607 as_dirs=
25608 while test ! -d "$as_dir"; do
25609 as_dirs="$as_dir $as_dirs"
25610 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25611$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25612 X"$as_dir" : 'X\(//\)[^/]' \| \
25613 X"$as_dir" : 'X\(//\)$' \| \
25614 X"$as_dir" : 'X\(/\)' \| \
25615 . : '\(.\)' 2>/dev/null ||
25616echo X"$as_dir" |
25617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25619 /^X\(\/\/\)$/{ s//\1/; q; }
25620 /^X\(\/\).*/{ s//\1/; q; }
25621 s/.*/./; q'`
25622 done
25623 test ! -n "$as_dirs" || mkdir $as_dirs
25624 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25625echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25626 { (exit 1); exit 1; }; }; }
25627
25628 ac_builddir=.
25629
25630if test "$ac_dest_dir" != .; then
25631 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25632 # A "../" for each directory in $ac_dir_suffix.
25633 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25634else
25635 ac_dir_suffix= ac_top_builddir=
25636fi
25637
25638case $srcdir in
25639 .) # No --srcdir option. We are building in place.
25640 ac_srcdir=.
25641 if test -z "$ac_top_builddir"; then
25642 ac_top_srcdir=.
25643 else
25644 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25645 fi ;;
25646 [\\/]* | ?:[\\/]* ) # Absolute path.
25647 ac_srcdir=$srcdir$ac_dir_suffix;
25648 ac_top_srcdir=$srcdir ;;
25649 *) # Relative path.
25650 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25651 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25652esac
25653
25654# Do not use `cd foo && pwd` to compute absolute paths, because
25655# the directories may not exist.
25656case `pwd` in
25657.) ac_abs_builddir="$ac_dest_dir";;
25658*)
25659 case "$ac_dest_dir" in
25660 .) ac_abs_builddir=`pwd`;;
25661 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25662 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25663 esac;;
25664esac
25665case $ac_abs_builddir in
25666.) ac_abs_top_builddir=${ac_top_builddir}.;;
25667*)
25668 case ${ac_top_builddir}. in
25669 .) ac_abs_top_builddir=$ac_abs_builddir;;
25670 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25671 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25672 esac;;
25673esac
25674case $ac_abs_builddir in
25675.) ac_abs_srcdir=$ac_srcdir;;
25676*)
25677 case $ac_srcdir in
25678 .) ac_abs_srcdir=$ac_abs_builddir;;
25679 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25680 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25681 esac;;
25682esac
25683case $ac_abs_builddir in
25684.) ac_abs_top_srcdir=$ac_top_srcdir;;
25685*)
25686 case $ac_top_srcdir in
25687 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25688 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25689 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25690 esac;;
25691esac
25692
bec39cab
AC
25693
25694 case $srcdir in
25695 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 25696 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 25697 esac
b4e70030
JB
25698
25699 # Try a symlink, then a hard link, then a copy.
25700 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25701 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25702 cp -p $srcdir/$ac_source $ac_dest ||
25703 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25704echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 25705 { (exit 1); exit 1; }; }
b4e70030
JB
25706done
25707_ACEOF
25708cat >>$CONFIG_STATUS <<\_ACEOF
25709
25710#
25711# CONFIG_COMMANDS section.
25712#
25713for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25714 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25715 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25716 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25717$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25718 X"$ac_dest" : 'X\(//\)[^/]' \| \
25719 X"$ac_dest" : 'X\(//\)$' \| \
25720 X"$ac_dest" : 'X\(/\)' \| \
25721 . : '\(.\)' 2>/dev/null ||
25722echo X"$ac_dest" |
25723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25725 /^X\(\/\/\)$/{ s//\1/; q; }
25726 /^X\(\/\).*/{ s//\1/; q; }
25727 s/.*/./; q'`
25728 { if $as_mkdir_p; then
25729 mkdir -p "$ac_dir"
25730 else
25731 as_dir="$ac_dir"
25732 as_dirs=
25733 while test ! -d "$as_dir"; do
25734 as_dirs="$as_dir $as_dirs"
25735 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25736$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25737 X"$as_dir" : 'X\(//\)[^/]' \| \
25738 X"$as_dir" : 'X\(//\)$' \| \
25739 X"$as_dir" : 'X\(/\)' \| \
25740 . : '\(.\)' 2>/dev/null ||
25741echo X"$as_dir" |
25742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25744 /^X\(\/\/\)$/{ s//\1/; q; }
25745 /^X\(\/\).*/{ s//\1/; q; }
25746 s/.*/./; q'`
25747 done
25748 test ! -n "$as_dirs" || mkdir $as_dirs
25749 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25750echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25751 { (exit 1); exit 1; }; }; }
25752
25753 ac_builddir=.
25754
25755if test "$ac_dir" != .; then
25756 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25757 # A "../" for each directory in $ac_dir_suffix.
25758 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25759else
25760 ac_dir_suffix= ac_top_builddir=
25761fi
25762
25763case $srcdir in
25764 .) # No --srcdir option. We are building in place.
25765 ac_srcdir=.
25766 if test -z "$ac_top_builddir"; then
25767 ac_top_srcdir=.
25768 else
25769 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25770 fi ;;
25771 [\\/]* | ?:[\\/]* ) # Absolute path.
25772 ac_srcdir=$srcdir$ac_dir_suffix;
25773 ac_top_srcdir=$srcdir ;;
25774 *) # Relative path.
25775 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25776 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25777esac
25778
25779# Do not use `cd foo && pwd` to compute absolute paths, because
25780# the directories may not exist.
25781case `pwd` in
25782.) ac_abs_builddir="$ac_dir";;
25783*)
25784 case "$ac_dir" in
25785 .) ac_abs_builddir=`pwd`;;
25786 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25787 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25788 esac;;
25789esac
25790case $ac_abs_builddir in
25791.) ac_abs_top_builddir=${ac_top_builddir}.;;
25792*)
25793 case ${ac_top_builddir}. in
25794 .) ac_abs_top_builddir=$ac_abs_builddir;;
25795 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25796 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25797 esac;;
25798esac
25799case $ac_abs_builddir in
25800.) ac_abs_srcdir=$ac_srcdir;;
25801*)
25802 case $ac_srcdir in
25803 .) ac_abs_srcdir=$ac_abs_builddir;;
25804 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25805 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25806 esac;;
25807esac
25808case $ac_abs_builddir in
25809.) ac_abs_top_srcdir=$ac_top_srcdir;;
25810*)
25811 case $ac_top_srcdir in
25812 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25813 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25814 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25815 esac;;
25816esac
bec39cab 25817
bec39cab 25818
b4e70030
JB
25819 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25820echo "$as_me: executing $ac_dest commands" >&6;}
25821 case $ac_dest in
25822 gdb_stdint.h )
4e8d927d
DJ
25823if test "$GCC" = yes; then
25824 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25825else
25826 echo "/* generated for $CC */" > tmp-stdint.h
25827fi
25828
25829sed 's/^ *//' >> tmp-stdint.h <<EOF
25830
25831 #ifndef GCC_GENERATED_STDINT_H
25832 #define GCC_GENERATED_STDINT_H 1
25833
25834 #include <sys/types.h>
25835EOF
25836
25837if test "$acx_cv_header_stdint" != stdint.h; then
25838 echo "#include <stddef.h>" >> tmp-stdint.h
25839fi
25840if test "$acx_cv_header_stdint" != stddef.h; then
25841 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25842fi
25843
25844sed 's/^ *//' >> tmp-stdint.h <<EOF
25845 /* glibc uses these symbols as guards to prevent redefinitions. */
25846 #ifdef __int8_t_defined
25847 #define _INT8_T
25848 #define _INT16_T
25849 #define _INT32_T
25850 #endif
25851 #ifdef __uint32_t_defined
25852 #define _UINT32_T
25853 #endif
25854
25855EOF
25856
25857# ----------------- done header, emit basic int types -------------
25858if test "$acx_cv_header_stdint" = stddef.h; then
25859 sed 's/^ *//' >> tmp-stdint.h <<EOF
25860
25861 #ifndef _UINT8_T
25862 #define _UINT8_T
07abfebf
RS
25863 #ifndef __uint8_t_defined
25864 #define __uint8_t_defined
4e8d927d
DJ
25865 typedef unsigned $acx_cv_type_int8_t uint8_t;
25866 #endif
07abfebf 25867 #endif
4e8d927d
DJ
25868
25869 #ifndef _UINT16_T
25870 #define _UINT16_T
07abfebf
RS
25871 #ifndef __uint16_t_defined
25872 #define __uint16_t_defined
4e8d927d
DJ
25873 typedef unsigned $acx_cv_type_int16_t uint16_t;
25874 #endif
07abfebf 25875 #endif
4e8d927d
DJ
25876
25877 #ifndef _UINT32_T
25878 #define _UINT32_T
07abfebf
RS
25879 #ifndef __uint32_t_defined
25880 #define __uint32_t_defined
4e8d927d
DJ
25881 typedef unsigned $acx_cv_type_int32_t uint32_t;
25882 #endif
07abfebf 25883 #endif
4e8d927d
DJ
25884
25885 #ifndef _INT8_T
25886 #define _INT8_T
07abfebf
RS
25887 #ifndef __int8_t_defined
25888 #define __int8_t_defined
4e8d927d
DJ
25889 typedef $acx_cv_type_int8_t int8_t;
25890 #endif
07abfebf 25891 #endif
4e8d927d
DJ
25892
25893 #ifndef _INT16_T
25894 #define _INT16_T
07abfebf
RS
25895 #ifndef __int16_t_defined
25896 #define __int16_t_defined
4e8d927d
DJ
25897 typedef $acx_cv_type_int16_t int16_t;
25898 #endif
07abfebf 25899 #endif
4e8d927d
DJ
25900
25901 #ifndef _INT32_T
25902 #define _INT32_T
07abfebf
RS
25903 #ifndef __int32_t_defined
25904 #define __int32_t_defined
4e8d927d
DJ
25905 typedef $acx_cv_type_int32_t int32_t;
25906 #endif
07abfebf 25907 #endif
4e8d927d
DJ
25908EOF
25909elif test "$ac_cv_type_u_int32_t" = yes; then
25910 sed 's/^ *//' >> tmp-stdint.h <<EOF
25911
25912 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25913 #ifndef _INT8_T
25914 #define _INT8_T
25915 #endif
25916 #ifndef _INT16_T
25917 #define _INT16_T
25918 #endif
25919 #ifndef _INT32_T
25920 #define _INT32_T
25921 #endif
25922
25923 #ifndef _UINT8_T
25924 #define _UINT8_T
07abfebf
RS
25925 #ifndef __uint8_t_defined
25926 #define __uint8_t_defined
4e8d927d
DJ
25927 typedef u_int8_t uint8_t;
25928 #endif
07abfebf 25929 #endif
4e8d927d
DJ
25930
25931 #ifndef _UINT16_T
25932 #define _UINT16_T
07abfebf
RS
25933 #ifndef __uint16_t_defined
25934 #define __uint16_t_defined
4e8d927d
DJ
25935 typedef u_int16_t uint16_t;
25936 #endif
07abfebf 25937 #endif
4e8d927d
DJ
25938
25939 #ifndef _UINT32_T
25940 #define _UINT32_T
07abfebf
RS
25941 #ifndef __uint32_t_defined
25942 #define __uint32_t_defined
4e8d927d
DJ
25943 typedef u_int32_t uint32_t;
25944 #endif
07abfebf 25945 #endif
4e8d927d
DJ
25946EOF
25947else
25948 sed 's/^ *//' >> tmp-stdint.h <<EOF
25949
25950 /* Some systems have guard macros to prevent redefinitions, define them. */
25951 #ifndef _INT8_T
25952 #define _INT8_T
25953 #endif
25954 #ifndef _INT16_T
25955 #define _INT16_T
25956 #endif
25957 #ifndef _INT32_T
25958 #define _INT32_T
25959 #endif
25960 #ifndef _UINT8_T
25961 #define _UINT8_T
25962 #endif
25963 #ifndef _UINT16_T
25964 #define _UINT16_T
25965 #endif
25966 #ifndef _UINT32_T
25967 #define _UINT32_T
25968 #endif
25969EOF
25970fi
25971
25972# ------------- done basic int types, emit int64_t types ------------
25973if test "$ac_cv_type_uint64_t" = yes; then
25974 sed 's/^ *//' >> tmp-stdint.h <<EOF
25975
25976 /* system headers have good uint64_t and int64_t */
25977 #ifndef _INT64_T
25978 #define _INT64_T
25979 #endif
25980 #ifndef _UINT64_T
25981 #define _UINT64_T
25982 #endif
25983EOF
25984elif test "$ac_cv_type_u_int64_t" = yes; then
25985 sed 's/^ *//' >> tmp-stdint.h <<EOF
25986
25987 /* system headers have an u_int64_t (and int64_t) */
25988 #ifndef _INT64_T
25989 #define _INT64_T
25990 #endif
25991 #ifndef _UINT64_T
25992 #define _UINT64_T
07abfebf
RS
25993 #ifndef __uint64_t_defined
25994 #define __uint64_t_defined
4e8d927d
DJ
25995 typedef u_int64_t uint64_t;
25996 #endif
07abfebf 25997 #endif
4e8d927d
DJ
25998EOF
25999elif test -n "$acx_cv_type_int64_t"; then
26000 sed 's/^ *//' >> tmp-stdint.h <<EOF
26001
26002 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
26003 #ifndef _INT64_T
26004 #define _INT64_T
26005 typedef $acx_cv_type_int64_t int64_t;
26006 #endif
26007 #ifndef _UINT64_T
26008 #define _UINT64_T
07abfebf
RS
26009 #ifndef __uint64_t_defined
26010 #define __uint64_t_defined
4e8d927d
DJ
26011 typedef unsigned $acx_cv_type_int64_t uint64_t;
26012 #endif
07abfebf 26013 #endif
4e8d927d
DJ
26014EOF
26015else
26016 sed 's/^ *//' >> tmp-stdint.h <<EOF
26017
26018 /* some common heuristics for int64_t, using compiler-specific tests */
26019 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26020 #ifndef _INT64_T
26021 #define _INT64_T
07abfebf 26022 #ifndef __int64_t_defined
4e8d927d
DJ
26023 typedef long long int64_t;
26024 #endif
07abfebf 26025 #endif
4e8d927d
DJ
26026 #ifndef _UINT64_T
26027 #define _UINT64_T
26028 typedef unsigned long long uint64_t;
26029 #endif
26030
26031 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26032 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26033 does not implement __extension__. But that compiler doesn't define
26034 __GNUC_MINOR__. */
26035 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26036 # define __extension__
26037 # endif
26038
26039 # ifndef _INT64_T
26040 # define _INT64_T
26041 __extension__ typedef long long int64_t;
26042 # endif
26043 # ifndef _UINT64_T
26044 # define _UINT64_T
26045 __extension__ typedef unsigned long long uint64_t;
26046 # endif
26047
26048 #elif !defined __STRICT_ANSI__
26049 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26050
26051 # ifndef _INT64_T
26052 # define _INT64_T
26053 typedef __int64 int64_t;
26054 # endif
26055 # ifndef _UINT64_T
26056 # define _UINT64_T
26057 typedef unsigned __int64 uint64_t;
26058 # endif
26059 # endif /* compiler */
26060
26061 #endif /* ANSI version */
26062EOF
26063fi
26064
26065# ------------- done int64_t types, emit intptr types ------------
26066if test "$ac_cv_type_uintptr_t" != yes; then
26067 sed 's/^ *//' >> tmp-stdint.h <<EOF
26068
26069 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
07abfebf 26070 #ifndef __uintptr_t_defined
4e8d927d 26071 typedef u$acx_cv_type_intptr_t uintptr_t;
07abfebf
RS
26072 #endif
26073 #ifndef __intptr_t_defined
4e8d927d 26074 typedef $acx_cv_type_intptr_t intptr_t;
07abfebf 26075 #endif
4e8d927d
DJ
26076EOF
26077fi
26078
26079# ------------- done intptr types, emit int_least types ------------
26080if test "$ac_cv_type_int_least32_t" != yes; then
26081 sed 's/^ *//' >> tmp-stdint.h <<EOF
26082
26083 /* Define int_least types */
26084 typedef int8_t int_least8_t;
26085 typedef int16_t int_least16_t;
26086 typedef int32_t int_least32_t;
26087 #ifdef _INT64_T
26088 typedef int64_t int_least64_t;
26089 #endif
26090
26091 typedef uint8_t uint_least8_t;
26092 typedef uint16_t uint_least16_t;
26093 typedef uint32_t uint_least32_t;
26094 #ifdef _UINT64_T
26095 typedef uint64_t uint_least64_t;
26096 #endif
26097EOF
26098fi
26099
26100# ------------- done intptr types, emit int_fast types ------------
26101if test "$ac_cv_type_int_fast32_t" != yes; then
26102 sed 's/^ *//' >> tmp-stdint.h <<EOF
26103
26104 /* Define int_fast types. short is often slow */
26105 typedef int8_t int_fast8_t;
26106 typedef int int_fast16_t;
26107 typedef int32_t int_fast32_t;
26108 #ifdef _INT64_T
26109 typedef int64_t int_fast64_t;
26110 #endif
26111
26112 typedef uint8_t uint_fast8_t;
26113 typedef unsigned int uint_fast16_t;
26114 typedef uint32_t uint_fast32_t;
26115 #ifdef _UINT64_T
26116 typedef uint64_t uint_fast64_t;
26117 #endif
26118EOF
26119fi
26120
26121if test "$ac_cv_type_uintmax_t" != yes; then
26122 sed 's/^ *//' >> tmp-stdint.h <<EOF
26123
26124 /* Define intmax based on what we found */
26125 #ifdef _INT64_T
26126 typedef int64_t intmax_t;
26127 #else
26128 typedef long intmax_t;
26129 #endif
26130 #ifdef _UINT64_T
26131 typedef uint64_t uintmax_t;
26132 #else
26133 typedef unsigned long uintmax_t;
26134 #endif
26135EOF
26136fi
26137
26138sed 's/^ *//' >> tmp-stdint.h <<EOF
26139
26140 #endif /* GCC_GENERATED_STDINT_H */
26141EOF
26142
26143if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26144 rm -f tmp-stdint.h
26145else
26146 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
26147fi
26148
4e8d927d 26149 ;;
b4e70030 26150 default )
c906108c 26151
db985757 26152sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
26153mv -f Makefile.tmp Makefile
26154
2acceee2 26155
c906108c
SS
26156case x$CONFIG_HEADERS in
26157xconfig.h:config.in)
26158echo > stamp-h ;;
26159esac
bec39cab
AC
26160 ;;
26161 esac
b4e70030
JB
26162done
26163_ACEOF
c906108c 26164
b4e70030 26165cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
26166
26167{ (exit 0); exit 0; }
26168_ACEOF
c906108c 26169chmod +x $CONFIG_STATUS
bec39cab
AC
26170ac_clean_files=$ac_clean_files_save
26171
26172
26173# configure is writing to config.log, and then calls config.status.
26174# config.status does its own redirection, appending to config.log.
26175# Unfortunately, on DOS this fails, as config.log is still kept open
26176# by configure, so config.status won't be able to write to it; its
26177# output is simply discarded. So we exec the FD to /dev/null,
26178# effectively closing config.log, so it can be properly (re)opened and
26179# appended to by config.status. When coming back to configure, we
26180# need to make the FD available again.
26181if test "$no_create" != yes; then
26182 ac_cs_success=:
26183 ac_config_status_args=
26184 test "$silent" = yes &&
26185 ac_config_status_args="$ac_config_status_args --quiet"
26186 exec 5>/dev/null
26187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26188 exec 5>>config.log
26189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26190 # would make configure fail if this is the last instruction.
26191 $ac_cs_success || { (exit 1); exit 1; }
26192fi
c906108c 26193
bec39cab
AC
26194#
26195# CONFIG_SUBDIRS section.
26196#
c906108c
SS
26197if test "$no_recursion" != yes; then
26198
26199 # Remove --cache-file and --srcdir arguments so they do not pile up.
26200 ac_sub_configure_args=
26201 ac_prev=
b4e70030 26202 for ac_arg in $ac_configure_args; do
c906108c
SS
26203 if test -n "$ac_prev"; then
26204 ac_prev=
26205 continue
26206 fi
bec39cab 26207 case $ac_arg in
c906108c
SS
26208 -cache-file | --cache-file | --cache-fil | --cache-fi \
26209 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26210 ac_prev=cache_file ;;
26211 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
26212 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26213 | --c=*)
26214 ;;
26215 --config-cache | -C)
c906108c
SS
26216 ;;
26217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26218 ac_prev=srcdir ;;
26219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26220 ;;
bec39cab
AC
26221 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26222 ac_prev=prefix ;;
26223 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26224 ;;
b4e70030 26225 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
26226 esac
26227 done
26228
bec39cab
AC
26229 # Always prepend --prefix to ensure using the same prefix
26230 # in subdir configurations.
26231 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26232
b4e70030 26233 ac_popdir=`pwd`
bec39cab 26234 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
26235
26236 # Do not complain, so a configure script can configure whichever
26237 # parts of a large source tree are present.
bec39cab 26238 test -d $srcdir/$ac_dir || continue
c906108c 26239
b4e70030
JB
26240 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26241echo "$as_me: configuring in $ac_dir" >&6;}
26242 { if $as_mkdir_p; then
26243 mkdir -p "$ac_dir"
26244 else
26245 as_dir="$ac_dir"
bec39cab 26246 as_dirs=
b4e70030
JB
26247 while test ! -d "$as_dir"; do
26248 as_dirs="$as_dir $as_dirs"
26249 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
26250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26251 X"$as_dir" : 'X\(//\)[^/]' \| \
26252 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
26253 X"$as_dir" : 'X\(/\)' \| \
26254 . : '\(.\)' 2>/dev/null ||
bec39cab 26255echo X"$as_dir" |
b4e70030
JB
26256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26258 /^X\(\/\/\)$/{ s//\1/; q; }
26259 /^X\(\/\).*/{ s//\1/; q; }
26260 s/.*/./; q'`
bec39cab 26261 done
b4e70030
JB
26262 test ! -n "$as_dirs" || mkdir $as_dirs
26263 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26264echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 26265 { (exit 1); exit 1; }; }; }
b4e70030 26266
bec39cab
AC
26267 ac_builddir=.
26268
b4e70030 26269if test "$ac_dir" != .; then
bec39cab 26270 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
26271 # A "../" for each directory in $ac_dir_suffix.
26272 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26273else
26274 ac_dir_suffix= ac_top_builddir=
26275fi
bec39cab
AC
26276
26277case $srcdir in
b4e70030 26278 .) # No --srcdir option. We are building in place.
bec39cab 26279 ac_srcdir=.
b4e70030
JB
26280 if test -z "$ac_top_builddir"; then
26281 ac_top_srcdir=.
26282 else
26283 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26284 fi ;;
26285 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 26286 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
26287 ac_top_srcdir=$srcdir ;;
26288 *) # Relative path.
26289 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26290 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26291esac
26292
26293# Do not use `cd foo && pwd` to compute absolute paths, because
26294# the directories may not exist.
26295case `pwd` in
26296.) ac_abs_builddir="$ac_dir";;
26297*)
26298 case "$ac_dir" in
26299 .) ac_abs_builddir=`pwd`;;
26300 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26301 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26302 esac;;
26303esac
26304case $ac_abs_builddir in
26305.) ac_abs_top_builddir=${ac_top_builddir}.;;
26306*)
26307 case ${ac_top_builddir}. in
26308 .) ac_abs_top_builddir=$ac_abs_builddir;;
26309 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26310 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26311 esac;;
26312esac
26313case $ac_abs_builddir in
26314.) ac_abs_srcdir=$ac_srcdir;;
26315*)
26316 case $ac_srcdir in
26317 .) ac_abs_srcdir=$ac_abs_builddir;;
26318 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26319 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26320 esac;;
26321esac
26322case $ac_abs_builddir in
26323.) ac_abs_top_srcdir=$ac_top_srcdir;;
26324*)
26325 case $ac_top_srcdir in
26326 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26327 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26328 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26329 esac;;
bec39cab 26330esac
c906108c 26331
c906108c 26332
b4e70030 26333 cd $ac_dir
c906108c
SS
26334
26335 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
26336 if test -f $ac_srcdir/configure.gnu; then
26337 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26338 elif test -f $ac_srcdir/configure; then
26339 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26340 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
26341 ac_sub_configure=$ac_configure
26342 else
bec39cab
AC
26343 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26344echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
26345 ac_sub_configure=
26346 fi
26347
26348 # The recursion is here.
26349 if test -n "$ac_sub_configure"; then
c906108c 26350 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
26351 case $cache_file in
26352 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
26353 *) # Relative path.
26354 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 26355 esac
c906108c 26356
bec39cab
AC
26357 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26358echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 26359 # The eval makes quoting arguments work.
b4e70030
JB
26360 eval $ac_sub_configure $ac_sub_configure_args \
26361 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
26362 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26363echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26364 { (exit 1); exit 1; }; }
c906108c
SS
26365 fi
26366
b4e70030 26367 cd $ac_popdir
c906108c
SS
26368 done
26369fi
26370
26371
26372exit 0
This page took 2.145804 seconds and 4 git commands to generate.