Add missed files from last commit.
[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"
e28b3332 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS 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'
a4ce5b0d 317ac_subst_files='host_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
e28b3332
DJ
863 --disable-dependency-tracking speeds up one-time build
864 --enable-dependency-tracking do not reject slow dependency extractors
d0c678e6 865 --enable-targets alternative target configurations
c0993dbe 866 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
bec39cab
AC
867 --disable-gdbcli disable command-line interface (CLI)
868 --disable-gdbmi disable machine-interface (MI)
869 --enable-tui enable full-screen terminal user interface (TUI)
870 --enable-gdbtk enable gdbtk graphical user interface (GUI)
871 --enable-profiling enable profiling of GDB
3841debe 872 --disable-rpath do not hardcode runtime library paths
094a342e 873 --enable-werror treat compile warnings as errors
bec39cab
AC
874 --enable-build-warnings Enable build-time compiler warnings if gcc is used
875 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
876 --enable-sim Link gdb with simulator
877 --enable-multi-ice build the multi-ice-gdb-server
878
879Optional Packages:
880 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
881 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bec39cab
AC
882 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
883 --with-libunwind Use libunwind frame unwinding support
6a30b0a5 884 --with-system-readline use installed readline library
5c39566f 885 --with-expat include expat support (auto/yes/no)
3841debe
DJ
886 --with-gnu-ld assume the C compiler uses GNU ld default=no
887 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
888 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
889 --without-included-regex don't use included regex; this is the default
890 on systems with version 2 of the GNU C library
891 (use with caution on other system)
892 --with-sysroot=DIR Search for usr/lib et al within DIR.
893 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
894 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
895 --with-tclinclude=DIR Directory where tcl private headers are
896 --with-tkinclude=DIR Directory where tk private headers are
897 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
898 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
899 --with-x use the X Window System
900 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
901
902Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
b4e70030
JB
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
bec39cab
AC
909 CPP C preprocessor
910
911Use these variables to override the choices made by `configure' or to help
912it to find libraries and programs with nonstandard names/locations.
913
914_ACEOF
915fi
916
917if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
b4e70030 919 ac_popdir=`pwd`
bec39cab
AC
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
922 ac_builddir=.
923
b4e70030 924if test "$ac_dir" != .; then
bec39cab 925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928else
929 ac_dir_suffix= ac_top_builddir=
930fi
bec39cab
AC
931
932case $srcdir in
b4e70030 933 .) # No --srcdir option. We are building in place.
bec39cab 934 ac_srcdir=.
b4e70030
JB
935 if test -z "$ac_top_builddir"; then
936 ac_top_srcdir=.
937 else
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 fi ;;
940 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 941 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
942 ac_top_srcdir=$srcdir ;;
943 *) # Relative path.
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
946esac
947
948# Do not use `cd foo && pwd` to compute absolute paths, because
949# the directories may not exist.
950case `pwd` in
951.) ac_abs_builddir="$ac_dir";;
952*)
953 case "$ac_dir" in
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
957 esac;;
958esac
959case $ac_abs_builddir in
960.) ac_abs_top_builddir=${ac_top_builddir}.;;
961*)
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966 esac;;
967esac
968case $ac_abs_builddir in
969.) ac_abs_srcdir=$ac_srcdir;;
970*)
971 case $ac_srcdir in
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975 esac;;
976esac
977case $ac_abs_builddir in
978.) ac_abs_top_srcdir=$ac_top_srcdir;;
979*)
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984 esac;;
bec39cab
AC
985esac
986
b4e70030
JB
987 cd $ac_dir
988 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 989 if test -f $ac_srcdir/configure.gnu; then
b4e70030 990 echo
bec39cab
AC
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
b4e70030 993 echo
bec39cab 994 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
997 echo
998 $ac_configure --help
3ace7edb 999 else
bec39cab 1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
1001 fi
1002 cd $ac_popdir
bec39cab
AC
1003 done
1004fi
1005
b4e70030 1006test -n "$ac_init_help" && exit 0
bec39cab
AC
1007if $ac_init_version; then
1008 cat <<\_ACEOF
1009
b4e70030 1010Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1011This configure script is free software; the Free Software Foundation
1012gives unlimited permission to copy, distribute and modify it.
1013_ACEOF
b4e70030 1014 exit 0
bec39cab 1015fi
b4e70030
JB
1016exec 5>config.log
1017cat >&5 <<_ACEOF
bec39cab
AC
1018This file contains any messages produced by compilers while
1019running configure, to aid debugging if configure makes a mistake.
1020
1021It was created by $as_me, which was
b4e70030 1022generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1023
1024 $ $0 $@
1025
1026_ACEOF
1027{
1028cat <<_ASUNAME
1029## --------- ##
1030## Platform. ##
1031## --------- ##
1032
1033hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037uname -v = `(uname -v) 2>/dev/null || echo unknown`
1038
1039/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1041
1042/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1045hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1046/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049
1050_ASUNAME
1051
1052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053for as_dir in $PATH
1054do
1055 IFS=$as_save_IFS
1056 test -z "$as_dir" && as_dir=.
1057 echo "PATH: $as_dir"
1058done
1059
1060} >&5
1061
1062cat >&5 <<_ACEOF
1063
1064
1065## ----------- ##
1066## Core tests. ##
1067## ----------- ##
1068
1069_ACEOF
1070
1071
1072# Keep a trace of the command line.
1073# Strip out --no-create and --no-recursion so they do not pile up.
1074# Strip out --silent because we don't want to record it for future runs.
1075# Also quote any args containing shell meta-characters.
1076# Make two passes to allow for proper duplicate-argument suppression.
1077ac_configure_args=
1078ac_configure_args0=
1079ac_configure_args1=
1080ac_sep=
1081ac_must_keep_next=false
1082for ac_pass in 1 2
1083do
1084 for ac_arg
1085 do
1086 case $ac_arg in
1087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 continue ;;
b4e70030 1091 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1092 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1093 esac
1094 case $ac_pass in
1095 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1096 2)
1097 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098 if test $ac_must_keep_next = true; then
1099 ac_must_keep_next=false # Got value, back to normal.
1100 else
1101 case $ac_arg in
1102 *=* | --config-cache | -C | -disable-* | --disable-* \
1103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105 | -with-* | --with-* | -without-* | --without-* | --x)
1106 case "$ac_configure_args0 " in
1107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108 esac
1109 ;;
1110 -* ) ac_must_keep_next=true ;;
1111 esac
1112 fi
1113 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114 # Get rid of the leading space.
1115 ac_sep=" "
1116 ;;
1117 esac
1118 done
1119done
1120$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1122
1123# When interrupted or exit'd, cleanup temporary files, and complete
1124# config.log. We remove comments because anyway the quotes in there
1125# would cause problems or look ugly.
b4e70030
JB
1126# WARNING: Be sure not to use single quotes in there, as some shells,
1127# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1128trap 'exit_status=$?
1129 # Save into config.log some information that might help in debugging.
1130 {
1131 echo
1132
1133 cat <<\_ASBOX
1134## ---------------- ##
1135## Cache variables. ##
1136## ---------------- ##
1137_ASBOX
1138 echo
1139 # The following way of writing the cache mishandles newlines in values,
b4e70030 1140{
bec39cab 1141 (set) 2>&1 |
b4e70030
JB
1142 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143 *ac_space=\ *)
bec39cab 1144 sed -n \
b4e70030
JB
1145 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147 ;;
bec39cab 1148 *)
b4e70030
JB
1149 sed -n \
1150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1151 ;;
b4e70030
JB
1152 esac;
1153}
bec39cab
AC
1154 echo
1155
1156 cat <<\_ASBOX
1157## ----------------- ##
1158## Output variables. ##
1159## ----------------- ##
1160_ASBOX
1161 echo
1162 for ac_var in $ac_subst_vars
1163 do
b4e70030
JB
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1166 done | sort
1167 echo
1168
1169 if test -n "$ac_subst_files"; then
1170 cat <<\_ASBOX
b4e70030
JB
1171## ------------- ##
1172## Output files. ##
1173## ------------- ##
bec39cab
AC
1174_ASBOX
1175 echo
1176 for ac_var in $ac_subst_files
1177 do
b4e70030
JB
1178 eval ac_val=$`echo $ac_var`
1179 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1180 done | sort
1181 echo
1182 fi
1183
1184 if test -s confdefs.h; then
1185 cat <<\_ASBOX
1186## ----------- ##
1187## confdefs.h. ##
1188## ----------- ##
1189_ASBOX
1190 echo
b4e70030 1191 sed "/^$/d" confdefs.h | sort
bec39cab 1192 echo
3ace7edb 1193 fi
bec39cab
AC
1194 test "$ac_signal" != 0 &&
1195 echo "$as_me: caught signal $ac_signal"
1196 echo "$as_me: exit $exit_status"
1197 } >&5
b4e70030
JB
1198 rm -f core *.core &&
1199 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1200 exit $exit_status
b4e70030 1201 ' 0
bec39cab
AC
1202for ac_signal in 1 2 13 15; do
1203 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204done
1205ac_signal=0
1206
1207# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1208rm -rf conftest* confdefs.h
1209# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210echo >confdefs.h
bec39cab
AC
1211
1212# Predefined preprocessor variables.
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_NAME "$PACKAGE_NAME"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221_ACEOF
1222
1223
1224cat >>confdefs.h <<_ACEOF
1225#define PACKAGE_VERSION "$PACKAGE_VERSION"
1226_ACEOF
1227
1228
1229cat >>confdefs.h <<_ACEOF
1230#define PACKAGE_STRING "$PACKAGE_STRING"
1231_ACEOF
1232
1233
1234cat >>confdefs.h <<_ACEOF
1235#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236_ACEOF
1237
1238
1239# Let the site file select an alternate cache file if it wants to.
1240# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1241if test -z "$CONFIG_SITE"; then
1242 if test "x$prefix" != xNONE; then
1243 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244 else
1245 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246 fi
c906108c 1247fi
b4e70030 1248for ac_site_file in $CONFIG_SITE; do
c906108c 1249 if test -r "$ac_site_file"; then
bec39cab
AC
1250 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251echo "$as_me: loading site script $ac_site_file" >&6;}
1252 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1253 . "$ac_site_file"
1254 fi
1255done
1256
1257if test -r "$cache_file"; then
bec39cab
AC
1258 # Some versions of bash will fail to source /dev/null (special
1259 # files actually), so we avoid doing that.
1260 if test -f "$cache_file"; then
1261 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262echo "$as_me: loading cache $cache_file" >&6;}
1263 case $cache_file in
1264 [\\/]* | ?:[\\/]* ) . $cache_file;;
1265 *) . ./$cache_file;;
1266 esac
1267 fi
c906108c 1268else
bec39cab
AC
1269 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270echo "$as_me: creating cache $cache_file" >&6;}
1271 >$cache_file
1272fi
1273
1274# Check that the precious variables saved in the cache have kept the same
1275# value.
1276ac_cache_corrupted=false
b4e70030
JB
1277for ac_var in `(set) 2>&1 |
1278 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1281 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1283 case $ac_old_set,$ac_new_set in
1284 set,)
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1288 ,set)
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1292 ,);;
1293 *)
1294 if test "x$ac_old_val" != "x$ac_new_val"; then
1295 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1296echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1297 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1298echo "$as_me: former value: $ac_old_val" >&2;}
1299 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1300echo "$as_me: current value: $ac_new_val" >&2;}
1301 ac_cache_corrupted=:
1302 fi;;
1303 esac
1304 # Pass precious variables to config.status.
1305 if test "$ac_new_set" = set; then
1306 case $ac_new_val in
b4e70030
JB
1307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1309 *) ac_arg=$ac_var=$ac_new_val ;;
1310 esac
1311 case " $ac_configure_args " in
1312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1313 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1314 esac
1315 fi
1316done
1317if $ac_cache_corrupted; then
1318 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322 { (exit 1); exit 1; }; }
c906108c
SS
1323fi
1324
b4e70030
JB
1325ac_ext=c
1326ac_cpp='$CPP $CPPFLAGS'
1327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1330
1331
bec39cab
AC
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
bec39cab 1348
b4e70030
JB
1349 ac_config_headers="$ac_config_headers config.h:config.in"
1350
1351echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1352echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1353 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1354if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1355 enableval="$enable_maintainer_mode"
1356 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1357else
1358 USE_MAINTAINER_MODE=no
b4e70030
JB
1359fi;
1360 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1361echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1362
413ccac7
AC
1363
1364if test $USE_MAINTAINER_MODE = yes; then
1365 MAINTAINER_MODE_TRUE=
1366 MAINTAINER_MODE_FALSE='#'
1367else
1368 MAINTAINER_MODE_TRUE='#'
1369 MAINTAINER_MODE_FALSE=
1370fi
85981d60 1371
413ccac7 1372 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1373
c906108c 1374
bec39cab
AC
1375
1376ac_ext=c
1377ac_cpp='$CPP $CPPFLAGS'
1378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381if test -n "$ac_tool_prefix"; then
1382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1383set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1384echo "$as_me:$LINENO: checking for $ac_word" >&5
1385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1386if test "${ac_cv_prog_CC+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388else
1389 if test -n "$CC"; then
1390 ac_cv_prog_CC="$CC" # Let the user override the test.
1391else
1392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393for as_dir in $PATH
1394do
1395 IFS=$as_save_IFS
1396 test -z "$as_dir" && as_dir=.
1397 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1399 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 break 2
1402 fi
1403done
1404done
1405
1406fi
1407fi
1408CC=$ac_cv_prog_CC
1409if test -n "$CC"; then
b4e70030
JB
1410 echo "$as_me:$LINENO: result: $CC" >&5
1411echo "${ECHO_T}$CC" >&6
bec39cab 1412else
b4e70030
JB
1413 echo "$as_me:$LINENO: result: no" >&5
1414echo "${ECHO_T}no" >&6
bec39cab
AC
1415fi
1416
1417fi
1418if test -z "$ac_cv_prog_CC"; then
1419 ac_ct_CC=$CC
1420 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1421set dummy gcc; ac_word=$2
b4e70030
JB
1422echo "$as_me:$LINENO: checking for $ac_word" >&5
1423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426else
1427 if test -n "$ac_ct_CC"; then
1428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429else
1430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431for as_dir in $PATH
1432do
1433 IFS=$as_save_IFS
1434 test -z "$as_dir" && as_dir=.
1435 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1437 ac_cv_prog_ac_ct_CC="gcc"
1438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 break 2
1440 fi
1441done
1442done
1443
1444fi
1445fi
1446ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447if test -n "$ac_ct_CC"; then
b4e70030
JB
1448 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1449echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1450else
b4e70030
JB
1451 echo "$as_me:$LINENO: result: no" >&5
1452echo "${ECHO_T}no" >&6
bec39cab
AC
1453fi
1454
b4e70030 1455 CC=$ac_ct_CC
bec39cab
AC
1456else
1457 CC="$ac_cv_prog_CC"
1458fi
1459
1460if test -z "$CC"; then
b4e70030
JB
1461 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1463set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1464echo "$as_me:$LINENO: checking for $ac_word" >&5
1465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1466if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1468else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471else
bec39cab
AC
1472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1479 ac_cv_prog_CC="${ac_tool_prefix}cc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1482 fi
1483done
1484done
1485
c906108c
SS
1486fi
1487fi
bec39cab 1488CC=$ac_cv_prog_CC
c906108c 1489if test -n "$CC"; then
b4e70030
JB
1490 echo "$as_me:$LINENO: result: $CC" >&5
1491echo "${ECHO_T}$CC" >&6
c906108c 1492else
b4e70030
JB
1493 echo "$as_me:$LINENO: result: no" >&5
1494echo "${ECHO_T}no" >&6
c906108c
SS
1495fi
1496
b4e70030
JB
1497fi
1498if test -z "$ac_cv_prog_CC"; then
1499 ac_ct_CC=$CC
1500 # Extract the first word of "cc", so it can be a program name with args.
1501set dummy cc; ac_word=$2
1502echo "$as_me:$LINENO: checking for $ac_word" >&5
1503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509else
1510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC="cc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
4e8d927d 1520 fi
b4e70030
JB
1521done
1522done
1523
1524fi
1525fi
1526ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527if test -n "$ac_ct_CC"; then
1528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529echo "${ECHO_T}$ac_ct_CC" >&6
1530else
1531 echo "$as_me:$LINENO: result: no" >&5
1532echo "${ECHO_T}no" >&6
1533fi
1534
1535 CC=$ac_ct_CC
1536else
1537 CC="$ac_cv_prog_CC"
1538fi
1539
bec39cab 1540fi
c906108c
SS
1541if test -z "$CC"; then
1542 # Extract the first word of "cc", so it can be a program name with args.
1543set dummy cc; ac_word=$2
b4e70030
JB
1544echo "$as_me:$LINENO: checking for $ac_word" >&5
1545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1546if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1548else
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1551else
c906108c 1552 ac_prog_rejected=no
bec39cab
AC
1553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554for as_dir in $PATH
1555do
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1561 ac_prog_rejected=yes
1562 continue
1563 fi
1564 ac_cv_prog_CC="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1567 fi
1568done
1569done
1570
c906108c
SS
1571if test $ac_prog_rejected = yes; then
1572 # We found a bogon in the path, so make sure we never use it.
1573 set dummy $ac_cv_prog_CC
1574 shift
bec39cab 1575 if test $# != 0; then
c906108c
SS
1576 # We chose a different compiler from the bogus one.
1577 # However, it has the same basename, so the bogon will be chosen
1578 # first if we set CC to just the basename; use the full file name.
1579 shift
bec39cab 1580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1581 fi
1582fi
1583fi
1584fi
bec39cab 1585CC=$ac_cv_prog_CC
c906108c 1586if test -n "$CC"; then
b4e70030
JB
1587 echo "$as_me:$LINENO: result: $CC" >&5
1588echo "${ECHO_T}$CC" >&6
c906108c 1589else
b4e70030
JB
1590 echo "$as_me:$LINENO: result: no" >&5
1591echo "${ECHO_T}no" >&6
c906108c
SS
1592fi
1593
bec39cab
AC
1594fi
1595if test -z "$CC"; then
1596 if test -n "$ac_tool_prefix"; then
b4e70030 1597 for ac_prog in cl
bec39cab
AC
1598 do
1599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1603if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1605else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608else
bec39cab
AC
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1619 fi
1620done
1621done
1622
c906108c
SS
1623fi
1624fi
bec39cab 1625CC=$ac_cv_prog_CC
c906108c 1626if test -n "$CC"; then
b4e70030
JB
1627 echo "$as_me:$LINENO: result: $CC" >&5
1628echo "${ECHO_T}$CC" >&6
c906108c 1629else
b4e70030
JB
1630 echo "$as_me:$LINENO: result: no" >&5
1631echo "${ECHO_T}no" >&6
c906108c 1632fi
bec39cab
AC
1633
1634 test -n "$CC" && break
1635 done
1636fi
1637if test -z "$CC"; then
1638 ac_ct_CC=$CC
b4e70030 1639 for ac_prog in cl
bec39cab
AC
1640do
1641 # Extract the first word of "$ac_prog", so it can be a program name with args.
1642set dummy $ac_prog; ac_word=$2
b4e70030
JB
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1645if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648 if test -n "$ac_ct_CC"; then
1649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1658 ac_cv_prog_ac_ct_CC="$ac_prog"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
c906108c 1661 fi
bec39cab
AC
1662done
1663done
1664
1665fi
1666fi
1667ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668if test -n "$ac_ct_CC"; then
b4e70030
JB
1669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1670echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1671else
b4e70030
JB
1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
c906108c
SS
1674fi
1675
bec39cab
AC
1676 test -n "$ac_ct_CC" && break
1677done
c906108c 1678
b4e70030 1679 CC=$ac_ct_CC
bec39cab
AC
1680fi
1681
1682fi
1683
1684
1685test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1686See \`config.log' for more details." >&5
1687echo "$as_me: error: no acceptable C compiler found in \$PATH
1688See \`config.log' for more details." >&2;}
1689 { (exit 1); exit 1; }; }
1690
1691# Provide some information about the compiler.
b4e70030
JB
1692echo "$as_me:$LINENO:" \
1693 "checking for C compiler version" >&5
bec39cab 1694ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1695{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1696 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1697 ac_status=$?
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }
b4e70030
JB
1700{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1701 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1702 ac_status=$?
1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 (exit $ac_status); }
b4e70030
JB
1705{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1706 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1707 ac_status=$?
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1710
1711cat >conftest.$ac_ext <<_ACEOF
1712/* confdefs.h. */
1713_ACEOF
1714cat confdefs.h >>conftest.$ac_ext
1715cat >>conftest.$ac_ext <<_ACEOF
1716/* end confdefs.h. */
1717
1718int
1719main ()
1720{
1721
1722 ;
1723 return 0;
1724}
1725_ACEOF
1726ac_clean_files_save=$ac_clean_files
b4e70030 1727ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1728# Try to create an executable without -o first, disregard a.out.
1729# It will help us diagnose broken compilers, and finding out an intuition
1730# of exeext.
b4e70030
JB
1731echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1732echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1733ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1734if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1735 (eval $ac_link_default) 2>&5
1736 ac_status=$?
1737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738 (exit $ac_status); }; then
b4e70030
JB
1739 # Find the output, starting from the most likely. This scheme is
1740# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1741# resort.
1742
1743# Be careful to initialize this variable, since it used to be cached.
1744# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1745ac_cv_exeext=
1746# b.out is created by i960 compilers.
1747for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1748do
1749 test -f "$ac_file" || continue
1750 case $ac_file in
b4e70030
JB
1751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1752 ;;
1753 conftest.$ac_ext )
1754 # This is the source file.
1755 ;;
1756 [ab].out )
1757 # We found the default executable, but exeext='' is most
1758 # certainly right.
1759 break;;
1760 *.* )
1761 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1762 # FIXME: I believe we export ac_cv_exeext for Libtool,
1763 # but it would be cool to find out if it's true. Does anybody
1764 # maintain Libtool? --akim.
1765 export ac_cv_exeext
1766 break;;
1767 * )
1768 break;;
bec39cab
AC
1769 esac
1770done
1771else
1772 echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1776See \`config.log' for more details." >&5
1777echo "$as_me: error: C compiler cannot create executables
1778See \`config.log' for more details." >&2;}
1779 { (exit 77); exit 77; }; }
1780fi
1781
b4e70030
JB
1782ac_exeext=$ac_cv_exeext
1783echo "$as_me:$LINENO: result: $ac_file" >&5
1784echo "${ECHO_T}$ac_file" >&6
1785
1786# Check the compiler produces executables we can run. If not, either
bec39cab 1787# the compiler is broken, or we cross compile.
b4e70030
JB
1788echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1789echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1790# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1791# If not cross compiling, check that we can run a simple program.
1792if test "$cross_compiling" != yes; then
1793 if { ac_try='./$ac_file'
1794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1795 (eval $ac_try) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; }; then
1799 cross_compiling=no
c906108c 1800 else
bec39cab
AC
1801 if test "$cross_compiling" = maybe; then
1802 cross_compiling=yes
1803 else
1804 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1805If you meant to cross compile, use \`--host'.
1806See \`config.log' for more details." >&5
1807echo "$as_me: error: cannot run C compiled programs.
1808If you meant to cross compile, use \`--host'.
1809See \`config.log' for more details." >&2;}
1810 { (exit 1); exit 1; }; }
1811 fi
c906108c 1812 fi
bec39cab 1813fi
b4e70030
JB
1814echo "$as_me:$LINENO: result: yes" >&5
1815echo "${ECHO_T}yes" >&6
bec39cab 1816
b4e70030
JB
1817rm -f a.out a.exe conftest$ac_cv_exeext b.out
1818ac_clean_files=$ac_clean_files_save
1819# Check the compiler produces executables we can run. If not, either
1820# the compiler is broken, or we cross compile.
1821echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1822echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1823echo "$as_me:$LINENO: result: $cross_compiling" >&5
1824echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1825
b4e70030
JB
1826echo "$as_me:$LINENO: checking for suffix of executables" >&5
1827echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1829 (eval $ac_link) 2>&5
1830 ac_status=$?
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); }; then
b4e70030
JB
1833 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1834# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1835# work properly (i.e., refer to `conftest.exe'), while it won't with
1836# `rm'.
1837for ac_file in conftest.exe conftest conftest.*; do
1838 test -f "$ac_file" || continue
1839 case $ac_file in
1840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1841 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842 export ac_cv_exeext
1843 break;;
1844 * ) break;;
1845 esac
1846done
c906108c 1847else
bec39cab
AC
1848 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1849See \`config.log' for more details." >&5
1850echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1851See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }
c906108c 1853fi
c906108c 1854
b4e70030
JB
1855rm -f conftest$ac_cv_exeext
1856echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1857echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1858
b4e70030 1859rm -f conftest.$ac_ext
bec39cab
AC
1860EXEEXT=$ac_cv_exeext
1861ac_exeext=$EXEEXT
b4e70030
JB
1862echo "$as_me:$LINENO: checking for suffix of object files" >&5
1863echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1864if test "${ac_cv_objext+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
b4e70030
JB
1867 cat >conftest.$ac_ext <<_ACEOF
1868/* confdefs.h. */
1869_ACEOF
1870cat confdefs.h >>conftest.$ac_ext
1871cat >>conftest.$ac_ext <<_ACEOF
1872/* end confdefs.h. */
1873
1874int
1875main ()
1876{
1877
1878 ;
1879 return 0;
1880}
1881_ACEOF
1882rm -f conftest.o conftest.obj
bec39cab
AC
1883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1884 (eval $ac_compile) 2>&5
1885 ac_status=$?
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; then
b4e70030 1888 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1889 case $ac_file in
b4e70030 1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1891 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1892 break;;
1893 esac
1894done
c906108c 1895else
bec39cab
AC
1896 echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1900See \`config.log' for more details." >&5
1901echo "$as_me: error: cannot compute suffix of object files: cannot compile
1902See \`config.log' for more details." >&2;}
1903 { (exit 1); exit 1; }; }
c906108c
SS
1904fi
1905
b4e70030 1906rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1907fi
b4e70030
JB
1908echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1909echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1910OBJEXT=$ac_cv_objext
1911ac_objext=$OBJEXT
b4e70030
JB
1912echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1913echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1914if test "${ac_cv_c_compiler_gnu+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1916else
bec39cab
AC
1917 cat >conftest.$ac_ext <<_ACEOF
1918/* confdefs.h. */
1919_ACEOF
1920cat confdefs.h >>conftest.$ac_ext
1921cat >>conftest.$ac_ext <<_ACEOF
1922/* end confdefs.h. */
1923
1924int
1925main ()
1926{
1927#ifndef __GNUC__
1928 choke me
1929#endif
1930
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935rm -f conftest.$ac_objext
1936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>conftest.er1
1938 ac_status=$?
1939 grep -v '^ *+' conftest.er1 >conftest.err
1940 rm -f conftest.er1
1941 cat conftest.err >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); } &&
b4e70030
JB
1944 { ac_try='test -z "$ac_c_werror_flag"
1945 || test ! -s conftest.err'
bec39cab
AC
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 (eval $ac_try) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1957 ac_compiler_gnu=yes
1958else
1959 echo "$as_me: failed program was:" >&5
1960sed 's/^/| /' conftest.$ac_ext >&5
1961
b4e70030 1962ac_compiler_gnu=no
bec39cab
AC
1963fi
1964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1965ac_cv_c_compiler_gnu=$ac_compiler_gnu
1966
1967fi
b4e70030
JB
1968echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1969echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1970GCC=`test $ac_compiler_gnu = yes && echo yes`
1971ac_test_CFLAGS=${CFLAGS+set}
1972ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1973CFLAGS="-g"
1974echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1975echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1976if test "${ac_cv_prog_cc_g+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
b4e70030 1979 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1980/* confdefs.h. */
1981_ACEOF
1982cat confdefs.h >>conftest.$ac_ext
1983cat >>conftest.$ac_ext <<_ACEOF
1984/* end confdefs.h. */
1985
1986int
1987main ()
1988{
1989
1990 ;
1991 return 0;
1992}
1993_ACEOF
1994rm -f conftest.$ac_objext
1995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>conftest.er1
1997 ac_status=$?
1998 grep -v '^ *+' conftest.er1 >conftest.err
1999 rm -f conftest.er1
2000 cat conftest.err >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); } &&
b4e70030
JB
2003 { ac_try='test -z "$ac_c_werror_flag"
2004 || test ! -s conftest.err'
bec39cab
AC
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; } &&
2010 { ac_try='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
c906108c
SS
2016 ac_cv_prog_cc_g=yes
2017else
bec39cab
AC
2018 echo "$as_me: failed program was:" >&5
2019sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2020
b4e70030 2021ac_cv_prog_cc_g=no
4e8d927d 2022fi
bec39cab
AC
2023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2024fi
b4e70030
JB
2025echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2026echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2027if test "$ac_test_CFLAGS" = set; then
bec39cab 2028 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2029elif test $ac_cv_prog_cc_g = yes; then
2030 if test "$GCC" = yes; then
2031 CFLAGS="-g -O2"
2032 else
2033 CFLAGS="-g"
2034 fi
2035else
2036 if test "$GCC" = yes; then
2037 CFLAGS="-O2"
2038 else
2039 CFLAGS=
2040 fi
2041fi
b4e70030
JB
2042echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2043echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2044if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046else
b4e70030 2047 ac_cv_prog_cc_stdc=no
bec39cab
AC
2048ac_save_CC=$CC
2049cat >conftest.$ac_ext <<_ACEOF
2050/* confdefs.h. */
2051_ACEOF
2052cat confdefs.h >>conftest.$ac_ext
2053cat >>conftest.$ac_ext <<_ACEOF
2054/* end confdefs.h. */
c906108c
SS
2055#include <stdarg.h>
2056#include <stdio.h>
2057#include <sys/types.h>
2058#include <sys/stat.h>
2059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2060struct buf { int x; };
2061FILE * (*rcsopen) (struct buf *, struct stat *, int);
2062static char *e (p, i)
2063 char **p;
2064 int i;
2065{
2066 return p[i];
2067}
2068static char *f (char * (*g) (char **, int), char **p, ...)
2069{
2070 char *s;
2071 va_list v;
2072 va_start (v,p);
2073 s = g (p, va_arg (v,int));
2074 va_end (v);
2075 return s;
2076}
bec39cab
AC
2077
2078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2079 function prototypes and stuff, but not '\xHH' hex character constants.
2080 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2081 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2083 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2084 that's true only with -std1. */
bec39cab
AC
2085int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2086
c906108c
SS
2087int test (int i, double x);
2088struct s1 {int (*f) (int a);};
2089struct s2 {int (*f) (double a);};
2090int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2091int argc;
2092char **argv;
bec39cab
AC
2093int
2094main ()
2095{
c906108c 2096return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2097 ;
2098 return 0;
2099}
2100_ACEOF
b4e70030
JB
2101# Don't try gcc -ansi; that turns off useful extensions and
2102# breaks some systems' header files.
2103# AIX -qlanglvl=ansi
2104# Ultrix and OSF/1 -std1
2105# HP-UX 10.20 and later -Ae
2106# HP-UX older versions -Aa -D_HPUX_SOURCE
2107# SVR4 -Xc -D__EXTENSIONS__
2108for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2109do
2110 CC="$ac_save_CC $ac_arg"
2111 rm -f conftest.$ac_objext
2112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113 (eval $ac_compile) 2>conftest.er1
2114 ac_status=$?
2115 grep -v '^ *+' conftest.er1 >conftest.err
2116 rm -f conftest.er1
2117 cat conftest.err >&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); } &&
b4e70030
JB
2120 { ac_try='test -z "$ac_c_werror_flag"
2121 || test ! -s conftest.err'
bec39cab
AC
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; } &&
2127 { ac_try='test -s conftest.$ac_objext'
2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 (eval $ac_try) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; }; then
b4e70030
JB
2133 ac_cv_prog_cc_stdc=$ac_arg
2134break
c906108c 2135else
bec39cab
AC
2136 echo "$as_me: failed program was:" >&5
2137sed 's/^/| /' conftest.$ac_ext >&5
2138
c906108c 2139fi
bec39cab 2140rm -f conftest.err conftest.$ac_objext
c906108c 2141done
b4e70030 2142rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2143CC=$ac_save_CC
c906108c
SS
2144
2145fi
b4e70030
JB
2146
2147case "x$ac_cv_prog_cc_stdc" in
2148 x|xno)
2149 echo "$as_me:$LINENO: result: none needed" >&5
2150echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2151 *)
b4e70030
JB
2152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2153echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2154 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2155esac
2156
b4e70030
JB
2157# Some people use a C++ compiler to compile C. Since we use `exit',
2158# in C++ we need to declare it. In case someone uses the same compiler
2159# for both compiling C and C++ we need to have the C++ compiler decide
2160# the declaration of exit, since it's the most demanding environment.
2161cat >conftest.$ac_ext <<_ACEOF
2162#ifndef __cplusplus
2163 choke me
2164#endif
2165_ACEOF
2166rm -f conftest.$ac_objext
2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2169 ac_status=$?
2170 grep -v '^ *+' conftest.er1 >conftest.err
2171 rm -f conftest.er1
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 for ac_declaration in \
2189 '' \
2190 'extern "C" void std::exit (int) throw (); using std::exit;' \
2191 'extern "C" void std::exit (int); using std::exit;' \
2192 'extern "C" void exit (int) throw ();' \
2193 'extern "C" void exit (int);' \
2194 'void exit (int);'
2195do
2196 cat >conftest.$ac_ext <<_ACEOF
2197/* confdefs.h. */
2198_ACEOF
2199cat confdefs.h >>conftest.$ac_ext
2200cat >>conftest.$ac_ext <<_ACEOF
2201/* end confdefs.h. */
2202$ac_declaration
2203#include <stdlib.h>
2204int
2205main ()
2206{
2207exit (42);
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212rm -f conftest.$ac_objext
2213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214 (eval $ac_compile) 2>conftest.er1
2215 ac_status=$?
2216 grep -v '^ *+' conftest.er1 >conftest.err
2217 rm -f conftest.er1
2218 cat conftest.err >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); } &&
2221 { ac_try='test -z "$ac_c_werror_flag"
2222 || test ! -s conftest.err'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; } &&
2228 { ac_try='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 :
2235else
2236 echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239continue
2240fi
2241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242 cat >conftest.$ac_ext <<_ACEOF
2243/* confdefs.h. */
2244_ACEOF
2245cat confdefs.h >>conftest.$ac_ext
2246cat >>conftest.$ac_ext <<_ACEOF
2247/* end confdefs.h. */
2248$ac_declaration
2249int
2250main ()
2251{
2252exit (42);
2253 ;
2254 return 0;
2255}
2256_ACEOF
2257rm -f conftest.$ac_objext
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2260 ac_status=$?
2261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try='test -z "$ac_c_werror_flag"
2267 || test ! -s conftest.err'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 break
2280else
2281 echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284fi
2285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286done
2287rm -f conftest*
2288if test -n "$ac_declaration"; then
2289 echo '#ifdef __cplusplus' >>confdefs.h
2290 echo $ac_declaration >>confdefs.h
2291 echo '#endif' >>confdefs.h
2292fi
2293
2294else
2295 echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2297
b4e70030
JB
2298fi
2299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2300ac_ext=c
2301ac_cpp='$CPP $CPPFLAGS'
2302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2305
60ca704f 2306
bec39cab
AC
2307cat >>confdefs.h <<\_ACEOF
2308#define _GNU_SOURCE 1
2309_ACEOF
c906108c
SS
2310
2311
8bb2c122 2312
bec39cab
AC
2313ac_ext=c
2314ac_cpp='$CPP $CPPFLAGS'
2315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2318echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2319echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2320# On Suns, sometimes $CPP names a directory.
2321if test -n "$CPP" && test -d "$CPP"; then
2322 CPP=
8bb2c122 2323fi
bec39cab
AC
2324if test -z "$CPP"; then
2325 if test "${ac_cv_prog_CPP+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327else
2328 # Double quotes because CPP needs to be expanded
2329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2330 do
2331 ac_preproc_ok=false
2332for ac_c_preproc_warn_flag in '' yes
2333do
2334 # Use a header file that comes with gcc, so configuring glibc
2335 # with a fresh cross-compiler works.
2336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2337 # <limits.h> exists even on freestanding compilers.
2338 # On the NeXT, cc -E runs the code through the compiler's parser,
2339 # not just through cpp. "Syntax error" is here to catch this case.
2340 cat >conftest.$ac_ext <<_ACEOF
2341/* confdefs.h. */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
2345/* end confdefs.h. */
2346#ifdef __STDC__
2347# include <limits.h>
2348#else
2349# include <assert.h>
2350#endif
2351 Syntax error
2352_ACEOF
2353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2355 ac_status=$?
2356 grep -v '^ *+' conftest.er1 >conftest.err
2357 rm -f conftest.er1
2358 cat conftest.err >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } >/dev/null; then
2361 if test -s conftest.err; then
2362 ac_cpp_err=$ac_c_preproc_warn_flag
2363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2364 else
2365 ac_cpp_err=
2366 fi
8bb2c122 2367else
bec39cab 2368 ac_cpp_err=yes
8bb2c122 2369fi
bec39cab
AC
2370if test -z "$ac_cpp_err"; then
2371 :
8bb2c122 2372else
bec39cab
AC
2373 echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 # Broken: fails on valid input.
2377continue
2378fi
2379rm -f conftest.err conftest.$ac_ext
2380
b4e70030 2381 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2382 # can be detected and how.
2383 cat >conftest.$ac_ext <<_ACEOF
2384/* confdefs.h. */
2385_ACEOF
2386cat confdefs.h >>conftest.$ac_ext
2387cat >>conftest.$ac_ext <<_ACEOF
2388/* end confdefs.h. */
2389#include <ac_nonexistent.h>
2390_ACEOF
2391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } >/dev/null; then
2399 if test -s conftest.err; then
2400 ac_cpp_err=$ac_c_preproc_warn_flag
2401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2402 else
2403 ac_cpp_err=
2404 fi
8bb2c122 2405else
bec39cab 2406 ac_cpp_err=yes
8bb2c122 2407fi
bec39cab
AC
2408if test -z "$ac_cpp_err"; then
2409 # Broken: success on invalid input.
2410continue
8bb2c122 2411else
bec39cab
AC
2412 echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2414
bec39cab
AC
2415 # Passes both tests.
2416ac_preproc_ok=:
2417break
8bb2c122 2418fi
bec39cab 2419rm -f conftest.err conftest.$ac_ext
8bb2c122 2420
bec39cab
AC
2421done
2422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2423rm -f conftest.err conftest.$ac_ext
2424if $ac_preproc_ok; then
2425 break
2426fi
8bb2c122 2427
bec39cab
AC
2428 done
2429 ac_cv_prog_CPP=$CPP
ddc9cd0f 2430
c906108c 2431fi
bec39cab
AC
2432 CPP=$ac_cv_prog_CPP
2433else
2434 ac_cv_prog_CPP=$CPP
c906108c 2435fi
b4e70030
JB
2436echo "$as_me:$LINENO: result: $CPP" >&5
2437echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2438ac_preproc_ok=false
2439for ac_c_preproc_warn_flag in '' yes
2440do
2441 # Use a header file that comes with gcc, so configuring glibc
2442 # with a fresh cross-compiler works.
2443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2444 # <limits.h> exists even on freestanding compilers.
2445 # On the NeXT, cc -E runs the code through the compiler's parser,
2446 # not just through cpp. "Syntax error" is here to catch this case.
2447 cat >conftest.$ac_ext <<_ACEOF
2448/* confdefs.h. */
2449_ACEOF
2450cat confdefs.h >>conftest.$ac_ext
2451cat >>conftest.$ac_ext <<_ACEOF
2452/* end confdefs.h. */
2453#ifdef __STDC__
2454# include <limits.h>
2455#else
2456# include <assert.h>
2457#endif
2458 Syntax error
2459_ACEOF
2460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2462 ac_status=$?
2463 grep -v '^ *+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } >/dev/null; then
2468 if test -s conftest.err; then
2469 ac_cpp_err=$ac_c_preproc_warn_flag
2470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2471 else
2472 ac_cpp_err=
2473 fi
c906108c 2474else
bec39cab 2475 ac_cpp_err=yes
c906108c 2476fi
bec39cab
AC
2477if test -z "$ac_cpp_err"; then
2478 :
c906108c 2479else
bec39cab
AC
2480 echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 # Broken: fails on valid input.
2484continue
2485fi
2486rm -f conftest.err conftest.$ac_ext
2487
b4e70030 2488 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2489 # can be detected and how.
2490 cat >conftest.$ac_ext <<_ACEOF
2491/* confdefs.h. */
2492_ACEOF
2493cat confdefs.h >>conftest.$ac_ext
2494cat >>conftest.$ac_ext <<_ACEOF
2495/* end confdefs.h. */
2496#include <ac_nonexistent.h>
2497_ACEOF
2498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } >/dev/null; then
2506 if test -s conftest.err; then
2507 ac_cpp_err=$ac_c_preproc_warn_flag
2508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2509 else
2510 ac_cpp_err=
2511 fi
c906108c 2512else
bec39cab 2513 ac_cpp_err=yes
c906108c 2514fi
bec39cab
AC
2515if test -z "$ac_cpp_err"; then
2516 # Broken: success on invalid input.
2517continue
c906108c 2518else
bec39cab
AC
2519 echo "$as_me: failed program was:" >&5
2520sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2521
bec39cab
AC
2522 # Passes both tests.
2523ac_preproc_ok=:
2524break
c906108c 2525fi
bec39cab 2526rm -f conftest.err conftest.$ac_ext
c906108c 2527
bec39cab
AC
2528done
2529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2530rm -f conftest.err conftest.$ac_ext
2531if $ac_preproc_ok; then
c906108c
SS
2532 :
2533else
bec39cab
AC
2534 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2535See \`config.log' for more details." >&5
2536echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2537See \`config.log' for more details." >&2;}
2538 { (exit 1); exit 1; }; }
c906108c 2539fi
c906108c 2540
bec39cab
AC
2541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546
2547
b4e70030
JB
2548echo "$as_me:$LINENO: checking for egrep" >&5
2549echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2550if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
b4e70030
JB
2553 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2554 then ac_cv_prog_egrep='grep -E'
2555 else ac_cv_prog_egrep='egrep'
bec39cab 2556 fi
4e8d927d 2557fi
b4e70030
JB
2558echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2559echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2560 EGREP=$ac_cv_prog_egrep
c906108c 2561
bec39cab
AC
2562
2563
b4e70030
JB
2564echo "$as_me:$LINENO: checking for AIX" >&5
2565echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2566cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h. */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h. */
2572#ifdef _AIX
2573 yes
2574#endif
2575
2576_ACEOF
c906108c 2577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2578 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2579 echo "$as_me:$LINENO: result: yes" >&5
2580echo "${ECHO_T}yes" >&6
bec39cab
AC
2581cat >>confdefs.h <<\_ACEOF
2582#define _ALL_SOURCE 1
2583_ACEOF
2584
c906108c 2585else
b4e70030
JB
2586 echo "$as_me:$LINENO: result: no" >&5
2587echo "${ECHO_T}no" >&6
c906108c
SS
2588fi
2589rm -f conftest*
2590
c906108c 2591
b4e70030
JB
2592echo "$as_me:$LINENO: checking for library containing strerror" >&5
2593echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2594if test "${ac_cv_search_strerror+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2596else
bec39cab 2597 ac_func_search_save_LIBS=$LIBS
b4e70030 2598ac_cv_search_strerror=no
bec39cab
AC
2599cat >conftest.$ac_ext <<_ACEOF
2600/* confdefs.h. */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h. */
c906108c 2605
b4e70030 2606/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2607#ifdef __cplusplus
2608extern "C"
2609#endif
b4e70030
JB
2610/* We use char because int might match the return type of a gcc2
2611 builtin and then its argument prototype would still apply. */
bec39cab
AC
2612char strerror ();
2613int
2614main ()
2615{
b4e70030 2616strerror ();
bec39cab
AC
2617 ;
2618 return 0;
2619}
2620_ACEOF
b4e70030 2621rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623 (eval $ac_link) 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
b4e70030
JB
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
bec39cab
AC
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest$ac_exeext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
b4e70030 2643 ac_cv_search_strerror="none required"
c906108c 2644else
bec39cab
AC
2645 echo "$as_me: failed program was:" >&5
2646sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2647
2648fi
bec39cab 2649rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2650 conftest$ac_exeext conftest.$ac_ext
2651if test "$ac_cv_search_strerror" = no; then
2652 for ac_lib in cposix; do
2653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2654 cat >conftest.$ac_ext <<_ACEOF
2655/* confdefs.h. */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h. */
2660
2661/* Override any gcc2 internal prototype to avoid an error. */
2662#ifdef __cplusplus
2663extern "C"
2664#endif
2665/* We use char because int might match the return type of a gcc2
2666 builtin and then its argument prototype would still apply. */
2667char strerror ();
2668int
2669main ()
2670{
2671strerror ();
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676rm -f conftest.$ac_objext conftest$ac_exeext
2677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2678 (eval $ac_link) 2>conftest.er1
2679 ac_status=$?
2680 grep -v '^ *+' conftest.er1 >conftest.err
2681 rm -f conftest.er1
2682 cat conftest.err >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest$ac_exeext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_search_strerror="-l$ac_lib"
2699break
4e8d927d 2700else
b4e70030
JB
2701 echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704fi
2705rm -f conftest.err conftest.$ac_objext \
2706 conftest$ac_exeext conftest.$ac_ext
2707 done
c906108c 2708fi
bec39cab 2709LIBS=$ac_func_search_save_LIBS
c906108c 2710fi
b4e70030
JB
2711echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2712echo "${ECHO_T}$ac_cv_search_strerror" >&6
2713if test "$ac_cv_search_strerror" != no; then
2714 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2715
c906108c
SS
2716fi
2717
e28b3332 2718gl_EARLY
c906108c 2719
c906108c 2720
bec39cab 2721
b4e70030
JB
2722echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2723echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
bec39cab
AC
2724if test "${am_cv_prog_cc_stdc+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2726else
bec39cab
AC
2727 am_cv_prog_cc_stdc=no
2728ac_save_CC="$CC"
2729# Don't try gcc -ansi; that turns off useful extensions and
2730# breaks some systems' header files.
2731# AIX -qlanglvl=ansi
2732# Ultrix and OSF/1 -std1
2733# HP-UX 10.20 and later -Ae
2734# HP-UX older versions -Aa -D_HPUX_SOURCE
2735# SVR4 -Xc -D__EXTENSIONS__
2736for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2737do
2738 CC="$ac_save_CC $ac_arg"
2739 cat >conftest.$ac_ext <<_ACEOF
2740/* confdefs.h. */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h. */
2745#include <stdarg.h>
2746#include <stdio.h>
2747#include <sys/types.h>
2748#include <sys/stat.h>
2749/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2750struct buf { int x; };
2751FILE * (*rcsopen) (struct buf *, struct stat *, int);
2752static char *e (p, i)
2753 char **p;
2754 int i;
2755{
2756 return p[i];
2757}
2758static char *f (char * (*g) (char **, int), char **p, ...)
2759{
2760 char *s;
2761 va_list v;
2762 va_start (v,p);
2763 s = g (p, va_arg (v,int));
2764 va_end (v);
2765 return s;
2766}
2767int test (int i, double x);
2768struct s1 {int (*f) (int a);};
2769struct s2 {int (*f) (double a);};
2770int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2771int argc;
2772char **argv;
c906108c 2773
bec39cab
AC
2774int
2775main ()
2776{
c906108c 2777
bec39cab 2778return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2779
bec39cab
AC
2780 ;
2781 return 0;
2782}
2783_ACEOF
2784rm -f conftest.$ac_objext
2785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2787 ac_status=$?
2788 grep -v '^ *+' conftest.er1 >conftest.err
2789 rm -f conftest.er1
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
b4e70030
JB
2793 { ac_try='test -z "$ac_c_werror_flag"
2794 || test ! -s conftest.err'
bec39cab
AC
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2807else
bec39cab
AC
2808 echo "$as_me: failed program was:" >&5
2809sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2810
2811fi
bec39cab
AC
2812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813done
2814CC="$ac_save_CC"
c906108c
SS
2815
2816fi
2817
bec39cab 2818if test -z "$am_cv_prog_cc_stdc"; then
b4e70030
JB
2819 echo "$as_me:$LINENO: result: none needed" >&5
2820echo "${ECHO_T}none needed" >&6
c906108c 2821else
b4e70030
JB
2822 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2823echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2824fi
bec39cab
AC
2825case "x$am_cv_prog_cc_stdc" in
2826 x|xno) ;;
2827 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2828esac
c906108c 2829
c906108c 2830
bec39cab 2831ac_aux_dir=
e28b3332 2832for ac_dir in .. $srcdir/..; do
bec39cab
AC
2833 if test -f $ac_dir/install-sh; then
2834 ac_aux_dir=$ac_dir
2835 ac_install_sh="$ac_aux_dir/install-sh -c"
2836 break
2837 elif test -f $ac_dir/install.sh; then
2838 ac_aux_dir=$ac_dir
2839 ac_install_sh="$ac_aux_dir/install.sh -c"
2840 break
2841 elif test -f $ac_dir/shtool; then
2842 ac_aux_dir=$ac_dir
2843 ac_install_sh="$ac_aux_dir/shtool install -c"
2844 break
2845 fi
2846done
2847if test -z "$ac_aux_dir"; then
e28b3332
DJ
2848 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
2849echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
bec39cab 2850 { (exit 1); exit 1; }; }
c906108c 2851fi
bec39cab
AC
2852ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2853ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2854ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2855
bec39cab
AC
2856# Make sure we can run config.sub.
2857$ac_config_sub sun4 >/dev/null 2>&1 ||
2858 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2859echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2860 { (exit 1); exit 1; }; }
2861
b4e70030
JB
2862echo "$as_me:$LINENO: checking build system type" >&5
2863echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2864if test "${ac_cv_build+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
b4e70030
JB
2867 ac_cv_build_alias=$build_alias
2868test -z "$ac_cv_build_alias" &&
2869 ac_cv_build_alias=`$ac_config_guess`
2870test -z "$ac_cv_build_alias" &&
bec39cab
AC
2871 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2872echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2873 { (exit 1); exit 1; }; }
b4e70030
JB
2874ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2875 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2876echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab
AC
2877 { (exit 1); exit 1; }; }
2878
2879fi
b4e70030
JB
2880echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2881echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2882build=$ac_cv_build
b4e70030
JB
2883build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2884build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2885build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2886
2887
b4e70030
JB
2888echo "$as_me:$LINENO: checking host system type" >&5
2889echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2890if test "${ac_cv_host+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892else
b4e70030
JB
2893 ac_cv_host_alias=$host_alias
2894test -z "$ac_cv_host_alias" &&
2895 ac_cv_host_alias=$ac_cv_build_alias
2896ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2897 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2898echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab
AC
2899 { (exit 1); exit 1; }; }
2900
2901fi
b4e70030
JB
2902echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2903echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2904host=$ac_cv_host
b4e70030
JB
2905host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2906host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2907host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2908
2909
b4e70030
JB
2910echo "$as_me:$LINENO: checking target system type" >&5
2911echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2912if test "${ac_cv_target+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914else
b4e70030
JB
2915 ac_cv_target_alias=$target_alias
2916test "x$ac_cv_target_alias" = "x" &&
2917 ac_cv_target_alias=$ac_cv_host_alias
2918ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2919 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2920echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
2921 { (exit 1); exit 1; }; }
2922
2923fi
b4e70030
JB
2924echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2925echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2926target=$ac_cv_target
b4e70030
JB
2927target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2928target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2929target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2930
c906108c 2931
bec39cab
AC
2932# The aliases save the names the user supplied, while $host etc.
2933# will get canonicalized.
2934test -n "$target_alias" &&
2935 test "$program_prefix$program_suffix$program_transform_name" = \
2936 NONENONEs,x,x, &&
2937 program_prefix=${target_alias}-
c906108c 2938
c906108c 2939
bec39cab
AC
2940CONFIG_OBS=
2941CONFIG_DEPS=
2942CONFIG_SRCS=
2943ENABLE_CFLAGS=
c906108c 2944
bec39cab
AC
2945CONFIG_ALL=
2946CONFIG_CLEAN=
2947CONFIG_INSTALL=
2948CONFIG_UNINSTALL=
2949
20e95c23
DJ
2950# If we haven't got the data from the intl directory,
2951# assume NLS is disabled.
2952USE_NLS=no
2953LIBINTL=
2954LIBINTL_DEP=
2955INCINTL=
2956XGETTEXT=
2957GMSGFMT=
2958POSUB=
3841debe
DJ
2959
2960if test -f ../intl/config.intl; then
2961 . ../intl/config.intl
20e95c23
DJ
2962fi
2963echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2964echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2965if test x"$USE_NLS" != xyes; then
b4e70030
JB
2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
c906108c 2968else
20e95c23
DJ
2969 echo "$as_me:$LINENO: result: yes" >&5
2970echo "${ECHO_T}yes" >&6
c906108c 2971
20e95c23
DJ
2972cat >>confdefs.h <<\_ACEOF
2973#define ENABLE_NLS 1
bec39cab 2974_ACEOF
c906108c 2975
c906108c 2976
20e95c23
DJ
2977 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2978echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2979 # Look for .po and .gmo files in the source directory.
2980 CATALOGS=
2981 XLINGUAS=
2982 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2983 # If there aren't any .gmo files the shell will give us the
2984 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2985 # weeded out.
2986 case "$cat" in *\**)
2987 continue;;
2988 esac
2989 # The quadruple backslash is collapsed to a double backslash
2990 # by the backticks, then collapsed again by the double quotes,
2991 # leaving us with one backslash in the sed expression (right
2992 # before the dot that mustn't act as a wildcard).
2993 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2994 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2995 # The user is allowed to set LINGUAS to a list of languages to
2996 # install catalogs for. If it's empty that means "all of them."
2997 if test "x$LINGUAS" = x; then
2998 CATALOGS="$CATALOGS $cat"
2999 XLINGUAS="$XLINGUAS $lang"
3000 else
3001 case "$LINGUAS" in *$lang*)
3002 CATALOGS="$CATALOGS $cat"
3003 XLINGUAS="$XLINGUAS $lang"
3004 ;;
3005 esac
3006 fi
3007 done
3008 LINGUAS="$XLINGUAS"
3009 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3010echo "${ECHO_T}$LINGUAS" >&6
c906108c 3011
c906108c 3012
20e95c23 3013 DATADIRNAME=share
c906108c 3014
20e95c23 3015 INSTOBJEXT=.mo
c906108c 3016
20e95c23
DJ
3017 GENCAT=gencat
3018
3019 CATOBJEXT=.gmo
3020
3021fi
3022
3023localedir='${datadir}/locale'
c906108c 3024
bec39cab 3025
20e95c23 3026if test x"$USE_NLS" = xyes; then
bec39cab
AC
3027 CONFIG_ALL="$CONFIG_ALL all-po"
3028 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3029 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3030 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3031fi
3032
e28b3332
DJ
3033gl_INIT
3034
bec39cab
AC
3035PACKAGE=gdb
3036
3037cat >>confdefs.h <<_ACEOF
3038#define PACKAGE "$PACKAGE"
3039_ACEOF
3040
3041
3042
e28b3332
DJ
3043# GDB does not use automake, but gnulib does. This line lets us
3044# generate its Makefile.in.
3045am__api_version="1.9"
3046# Find a good install program. We prefer a C program (faster),
3047# so one script is as good as another. But avoid the broken or
3048# incompatible versions:
3049# SysV /etc/install, /usr/sbin/install
3050# SunOS /usr/etc/install
3051# IRIX /sbin/install
3052# AIX /bin/install
3053# AmigaOS /C/install, which installs bootblocks on floppy discs
3054# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3055# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3056# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3057# OS/2's system install, which has a completely different semantic
3058# ./install, which can be erroneously created by make from ./install.sh.
3059echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3060echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3061if test -z "$INSTALL"; then
3062if test "${ac_cv_path_install+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 # Account for people who put trailing slashes in PATH elements.
3071case $as_dir/ in
3072 ./ | .// | /cC/* | \
3073 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3074 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3075 /usr/ucb/* ) ;;
3076 *)
3077 # OSF1 and SCO ODT 3.0 have their own names for install.
3078 # Don't use installbsd from OSF since it installs stuff as root
3079 # by default.
3080 for ac_prog in ginstall scoinst install; do
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3083 if test $ac_prog = install &&
3084 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3085 # AIX install. It has an incompatible calling convention.
3086 :
3087 elif test $ac_prog = install &&
3088 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3089 # program-specific install script used by HP pwplus--don't use.
3090 :
3091 else
3092 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3093 break 3
3094 fi
3095 fi
3096 done
3097 done
3098 ;;
3099esac
3100done
3101
3102
3103fi
3104 if test "${ac_cv_path_install+set}" = set; then
3105 INSTALL=$ac_cv_path_install
3106 else
3107 # As a last resort, use the slow shell script. We don't cache a
3108 # path for INSTALL within a source directory, because that will
3109 # break other packages using the cache if that directory is
3110 # removed, or if the path is relative.
3111 INSTALL=$ac_install_sh
3112 fi
3113fi
3114echo "$as_me:$LINENO: result: $INSTALL" >&5
3115echo "${ECHO_T}$INSTALL" >&6
3116
3117# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3118# It thinks the first close brace ends the variable substitution.
3119test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3120
3121test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3122
3123test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3124
3125echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3126echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3127# Just in case
3128sleep 1
3129echo timestamp > conftest.file
3130# Do `set' in a subshell so we don't clobber the current shell's
3131# arguments. Must try -L first in case configure is actually a
3132# symlink; some systems play weird games with the mod time of symlinks
3133# (eg FreeBSD returns the mod time of the symlink's containing
3134# directory).
3135if (
3136 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3137 if test "$*" = "X"; then
3138 # -L didn't work.
3139 set X `ls -t $srcdir/configure conftest.file`
3140 fi
3141 rm -f conftest.file
3142 if test "$*" != "X $srcdir/configure conftest.file" \
3143 && test "$*" != "X conftest.file $srcdir/configure"; then
3144
3145 # If neither matched, then we have a broken ls. This can happen
3146 # if, for instance, CONFIG_SHELL is bash and it inherits a
3147 # broken ls alias from the environment. This has actually
3148 # happened. Such a system could not be considered "sane".
3149 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3150alias in your environment" >&5
3151echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3152alias in your environment" >&2;}
3153 { (exit 1); exit 1; }; }
3154 fi
3155
3156 test "$2" = conftest.file
3157 )
3158then
3159 # Ok.
3160 :
3161else
3162 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3163Check your system clock" >&5
3164echo "$as_me: error: newly created file is older than distributed files!
3165Check your system clock" >&2;}
3166 { (exit 1); exit 1; }; }
3167fi
3168echo "$as_me:$LINENO: result: yes" >&5
3169echo "${ECHO_T}yes" >&6
3170test "$program_prefix" != NONE &&
3171 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3172# Use a double $ so make ignores it.
3173test "$program_suffix" != NONE &&
3174 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3175# Double any \ or $. echo might interpret backslashes.
3176# By default was `s,x,x', remove it if useless.
3177cat <<\_ACEOF >conftest.sed
3178s/[\\$]/&&/g;s/;s,x,x,$//
3179_ACEOF
3180program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3181rm conftest.sed
3182
3183# expand $ac_aux_dir to an absolute path
3184am_aux_dir=`cd $ac_aux_dir && pwd`
3185
3186test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3187# Use eval to expand $SHELL
3188if eval "$MISSING --run true"; then
3189 am_missing_run="$MISSING --run "
3190else
3191 am_missing_run=
3192 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3193echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3194fi
3195
3196if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3197 # We used to keeping the `.' as first argument, in order to
3198 # allow $(mkdir_p) to be used without argument. As in
3199 # $(mkdir_p) $(somedir)
3200 # where $(somedir) is conditionally defined. However this is wrong
3201 # for two reasons:
3202 # 1. if the package is installed by a user who cannot write `.'
3203 # make install will fail,
3204 # 2. the above comment should most certainly read
3205 # $(mkdir_p) $(DESTDIR)$(somedir)
3206 # so it does not work when $(somedir) is undefined and
3207 # $(DESTDIR) is not.
3208 # To support the latter case, we have to write
3209 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3210 # so the `.' trick is pointless.
3211 mkdir_p='mkdir -p --'
3212else
3213 # On NextStep and OpenStep, the `mkdir' command does not
3214 # recognize any option. It will interpret all options as
3215 # directories to create, and then abort because `.' already
3216 # exists.
3217 for d in ./-p ./--version;
3218 do
3219 test -d $d && rmdir $d
3220 done
3221 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3222 if test -f "$ac_aux_dir/mkinstalldirs"; then
3223 mkdir_p='$(mkinstalldirs)'
3224 else
3225 mkdir_p='$(install_sh) -d'
3226 fi
3227fi
3228
3229for ac_prog in gawk mawk nawk awk
3230do
3231 # Extract the first word of "$ac_prog", so it can be a program name with args.
3232set dummy $ac_prog; ac_word=$2
3233echo "$as_me:$LINENO: checking for $ac_word" >&5
3234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235if test "${ac_cv_prog_AWK+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238 if test -n "$AWK"; then
3239 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3240else
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_AWK="$ac_prog"
3249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252done
3253done
3254
3255fi
3256fi
3257AWK=$ac_cv_prog_AWK
3258if test -n "$AWK"; then
3259 echo "$as_me:$LINENO: result: $AWK" >&5
3260echo "${ECHO_T}$AWK" >&6
3261else
3262 echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264fi
3265
3266 test -n "$AWK" && break
3267done
3268
3269echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3270echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3271set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3272if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275 cat >conftest.make <<\_ACEOF
3276all:
3277 @echo 'ac_maketemp="$(MAKE)"'
3278_ACEOF
3279# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3280eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3281if test -n "$ac_maketemp"; then
3282 eval ac_cv_prog_make_${ac_make}_set=yes
3283else
3284 eval ac_cv_prog_make_${ac_make}_set=no
3285fi
3286rm -f conftest.make
3287fi
3288if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3289 echo "$as_me:$LINENO: result: yes" >&5
3290echo "${ECHO_T}yes" >&6
3291 SET_MAKE=
3292else
3293 echo "$as_me:$LINENO: result: no" >&5
3294echo "${ECHO_T}no" >&6
3295 SET_MAKE="MAKE=${MAKE-make}"
3296fi
3297
3298rm -rf .tst 2>/dev/null
3299mkdir .tst 2>/dev/null
3300if test -d .tst; then
3301 am__leading_dot=.
3302else
3303 am__leading_dot=_
3304fi
3305rmdir .tst 2>/dev/null
3306
3307DEPDIR="${am__leading_dot}deps"
3308
3309 ac_config_commands="$ac_config_commands depfiles"
3310
3311
3312am_make=${MAKE-make}
3313cat > confinc << 'END'
3314am__doit:
3315 @echo done
3316.PHONY: am__doit
3317END
3318# If we don't find an include directive, just comment out the code.
3319echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3320echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3321am__include="#"
3322am__quote=
3323_am_result=none
3324# First try GNU make style include.
3325echo "include confinc" > confmf
3326# We grep out `Entering directory' and `Leaving directory'
3327# messages which can occur if `w' ends up in MAKEFLAGS.
3328# In particular we don't look at `^make:' because GNU make might
3329# be invoked under some other name (usually "gmake"), in which
3330# case it prints its new name instead of `make'.
3331if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3332 am__include=include
3333 am__quote=
3334 _am_result=GNU
3335fi
3336# Now try BSD make style include.
3337if test "$am__include" = "#"; then
3338 echo '.include "confinc"' > confmf
3339 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3340 am__include=.include
3341 am__quote="\""
3342 _am_result=BSD
3343 fi
3344fi
3345
3346
3347echo "$as_me:$LINENO: result: $_am_result" >&5
3348echo "${ECHO_T}$_am_result" >&6
3349rm -f confinc confmf
3350
3351# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3352if test "${enable_dependency_tracking+set}" = set; then
3353 enableval="$enable_dependency_tracking"
3354
3355fi;
3356if test "x$enable_dependency_tracking" != xno; then
3357 am_depcomp="$ac_aux_dir/depcomp"
3358 AMDEPBACKSLASH='\'
3359fi
3360
3361
3362if test "x$enable_dependency_tracking" != xno; then
3363 AMDEP_TRUE=
3364 AMDEP_FALSE='#'
3365else
3366 AMDEP_TRUE='#'
3367 AMDEP_FALSE=
3368fi
3369
3370
3371
3372# test to see if srcdir already configured
3373if test "`cd $srcdir && pwd`" != "`pwd`" &&
3374 test -f $srcdir/config.status; then
3375 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3376echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3377 { (exit 1); exit 1; }; }
3378fi
3379
3380# test whether we have cygpath
3381if test -z "$CYGPATH_W"; then
3382 if (cygpath --version) >/dev/null 2>/dev/null; then
3383 CYGPATH_W='cygpath -w'
3384 else
3385 CYGPATH_W=echo
3386 fi
3387fi
3388
3389
3390# Define the identity of the package.
3391 PACKAGE=gdb
3392 VERSION=UNUSED-VERSION
3393
3394
3395# Some tools Automake needs.
3396
3397ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3398
3399
3400AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3401
3402
3403AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3404
3405
3406AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3407
3408
3409MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3410
3411install_sh=${install_sh-"$am_aux_dir/install-sh"}
3412
3413# Installed binaries are usually stripped using `strip' when the user
3414# run `make install-strip'. However `strip' might not be the right
3415# tool to use in cross-compilation environments, therefore Automake
3416# will honor the `STRIP' environment variable to overrule this program.
3417if test "$cross_compiling" != no; then
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3420set dummy ${ac_tool_prefix}strip; ac_word=$2
3421echo "$as_me:$LINENO: checking for $ac_word" >&5
3422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3423if test "${ac_cv_prog_STRIP+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426 if test -n "$STRIP"; then
3427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3428else
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440done
3441done
3442
3443fi
3444fi
3445STRIP=$ac_cv_prog_STRIP
3446if test -n "$STRIP"; then
3447 echo "$as_me:$LINENO: result: $STRIP" >&5
3448echo "${ECHO_T}$STRIP" >&6
3449else
3450 echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6
3452fi
3453
3454fi
3455if test -z "$ac_cv_prog_STRIP"; then
3456 ac_ct_STRIP=$STRIP
3457 # Extract the first word of "strip", so it can be a program name with args.
3458set dummy strip; ac_word=$2
3459echo "$as_me:$LINENO: checking for $ac_word" >&5
3460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 if test -n "$ac_ct_STRIP"; then
3465 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3466else
3467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468for as_dir in $PATH
3469do
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_ac_ct_STRIP="strip"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3477 fi
3478done
3479done
3480
3481 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3482fi
3483fi
3484ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3485if test -n "$ac_ct_STRIP"; then
3486 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3487echo "${ECHO_T}$ac_ct_STRIP" >&6
3488else
3489 echo "$as_me:$LINENO: result: no" >&5
3490echo "${ECHO_T}no" >&6
3491fi
3492
3493 STRIP=$ac_ct_STRIP
3494else
3495 STRIP="$ac_cv_prog_STRIP"
3496fi
3497
3498fi
3499INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3500
3501# We need awk for the "check" target. The system "awk" is bad on
3502# some platforms.
3503# Always define AMTAR for backward compatibility.
3504
3505AMTAR=${AMTAR-"${am_missing_run}tar"}
3506
3507am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3508
3509
3510
3511
3512depcc="$CC" am_compiler_list=
3513
3514echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3515echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3516if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518else
3519 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3520 # We make a subdir and do the tests there. Otherwise we can end up
3521 # making bogus files that we don't know about and never remove. For
3522 # instance it was reported that on HP-UX the gcc test will end up
3523 # making a dummy file named `D' -- because `-MD' means `put the output
3524 # in D'.
3525 mkdir conftest.dir
3526 # Copy depcomp to subdir because otherwise we won't find it if we're
3527 # using a relative directory.
3528 cp "$am_depcomp" conftest.dir
3529 cd conftest.dir
3530 # We will build objects and dependencies in a subdirectory because
3531 # it helps to detect inapplicable dependency modes. For instance
3532 # both Tru64's cc and ICC support -MD to output dependencies as a
3533 # side effect of compilation, but ICC will put the dependencies in
3534 # the current directory while Tru64 will put them in the object
3535 # directory.
3536 mkdir sub
3537
3538 am_cv_CC_dependencies_compiler_type=none
3539 if test "$am_compiler_list" = ""; then
3540 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3541 fi
3542 for depmode in $am_compiler_list; do
3543 # Setup a source with many dependencies, because some compilers
3544 # like to wrap large dependency lists on column 80 (with \), and
3545 # we should not choose a depcomp mode which is confused by this.
3546 #
3547 # We need to recreate these files for each test, as the compiler may
3548 # overwrite some of them when testing with obscure command lines.
3549 # This happens at least with the AIX C compiler.
3550 : > sub/conftest.c
3551 for i in 1 2 3 4 5 6; do
3552 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3553 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3554 # Solaris 8's {/usr,}/bin/sh.
3555 touch sub/conftst$i.h
3556 done
3557 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3558
3559 case $depmode in
3560 nosideeffect)
3561 # after this tag, mechanisms are not by side-effect, so they'll
3562 # only be used when explicitly requested
3563 if test "x$enable_dependency_tracking" = xyes; then
3564 continue
3565 else
3566 break
3567 fi
3568 ;;
3569 none) break ;;
3570 esac
3571 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3572 # mode. It turns out that the SunPro C++ compiler does not properly
3573 # handle `-M -o', and we need to detect this.
3574 if depmode=$depmode \
3575 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3577 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3578 >/dev/null 2>conftest.err &&
3579 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3580 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3581 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3582 # icc doesn't choke on unknown options, it will just issue warnings
3583 # or remarks (even with -Werror). So we grep stderr for any message
3584 # that says an option was ignored or not supported.
3585 # When given -MP, icc 7.0 and 7.1 complain thusly:
3586 # icc: Command line warning: ignoring option '-M'; no argument required
3587 # The diagnosis changed in icc 8.0:
3588 # icc: Command line remark: option '-MP' not supported
3589 if (grep 'ignoring option' conftest.err ||
3590 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3591 am_cv_CC_dependencies_compiler_type=$depmode
3592 break
3593 fi
3594 fi
3595 done
3596
3597 cd ..
3598 rm -rf conftest.dir
3599else
3600 am_cv_CC_dependencies_compiler_type=none
3601fi
3602
3603fi
3604echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3605echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3606CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3607
3608
3609
3610if
3611 test "x$enable_dependency_tracking" != xno \
3612 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3613 am__fastdepCC_TRUE=
3614 am__fastdepCC_FALSE='#'
3615else
3616 am__fastdepCC_TRUE='#'
3617 am__fastdepCC_FALSE=
3618fi
3619
3620
3621
3622
bec39cab
AC
3623debugdir=${libdir}/debug
3624
3625
b4e70030 3626# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 3627if test "${with_separate_debug_dir+set}" = set; then
b4e70030
JB
3628 withval="$with_separate_debug_dir"
3629 debugdir="${withval}"
3630fi;
bec39cab
AC
3631
3632
3633 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3635 ac_define_dir=`eval echo $debugdir`
3636 ac_define_dir=`eval echo $ac_define_dir`
3637
3638cat >>confdefs.h <<_ACEOF
3639#define DEBUGDIR "$ac_define_dir"
3640_ACEOF
3641
3642
3643#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3644
aa28a74e
DJ
3645if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3646 if test "x$prefix" = xNONE; then
3647 test_prefix=/usr/local
3648 else
3649 test_prefix=$prefix
3650 fi
3651else
3652 test_prefix=$exec_prefix
3653fi
3654case ${debugdir} in
3655"${test_prefix}"|"${test_prefix}/"*|\
3656'${exec_prefix}'|'${exec_prefix}/'*)
3657
3658cat >>confdefs.h <<\_ACEOF
3659#define DEBUGDIR_RELOCATABLE 1
3660_ACEOF
3661
3662 ;;
3663esac
3664
b4e70030
JB
3665
3666
bec39cab
AC
3667subdirs="$subdirs doc testsuite"
3668
3669
d0c678e6
UW
3670# Check whether to support alternative target configurations
3671# Check whether --enable-targets or --disable-targets was given.
3672if test "${enable_targets+set}" = set; then
3673 enableval="$enable_targets"
3674 case "${enableval}" in
3675 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3676echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3677 { (exit 1); exit 1; }; }
3678 ;;
3679 no) enable_targets= ;;
3680 *) enable_targets=$enableval ;;
3681esac
3682fi;
3683
c0993dbe
UW
3684# Check whether to enable 64-bit support on 32-bit hosts
3685# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3686if test "${enable_64_bit_bfd+set}" = set; then
3687 enableval="$enable_64_bit_bfd"
3688 case "${enableval}" in
3689 yes) want64=true ;;
3690 no) want64=false ;;
3691 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3692echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3693 { (exit 1); exit 1; }; } ;;
3694esac
3695else
3696 want64=false
3697fi;
121ce6e5
DJ
3698# Provide defaults for some variables set by the per-host and per-target
3699# configuration.
3700gdb_host_obs=posix-hdep.o
3701
771b4502
UW
3702if test "${target}" = "${host}"; then
3703 gdb_native=yes
3704else
3705 gdb_native=no
3706fi
3707
bec39cab
AC
3708. $srcdir/configure.host
3709
d0c678e6
UW
3710# Accumulate some settings from configure.tgt over all enabled targets
3711
3712TARGET_OBS=
3713all_targets=
3714
3715for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
3716do
3717 if test "$targ_alias" = "all"; then
3718 all_targets=true
3719 else
3720 # Canonicalize the secondary target names.
3721 result=`$ac_config_sub $targ_alias 2>/dev/null`
3722 if test -n "$result"; then
3723 targ=$result
3724 else
3725 targ=$targ_alias
3726 fi
3727
3728 . ${srcdir}/configure.tgt
3729
3730 # Target-specific object files
3731 for i in ${gdb_target_obs}; do
3732 case " $TARGET_OBS " in
3733 *" ${i} "*) ;;
3734 *)
3735 TARGET_OBS="$TARGET_OBS ${i}"
3736 ;;
3737 esac
3738 done
c0993dbe
UW
3739
3740 # Check whether this target needs 64-bit CORE_ADDR
3741 if test x${want64} = xfalse; then
3742 . ${srcdir}/../bfd/config.bfd
3743 fi
d0c678e6
UW
3744 fi
3745done
3746
3747if test x${all_targets} = xtrue; then
bec39cab 3748
c0993dbe
UW
3749 # We want all 64-bit targets if we either:
3750 # - run on a 64-bit host or
3751 # - already require 64-bit support for some other target or
3752 # - the --enable-64-bit-bfd option was supplied
3753 # Otherwise we only support all 32-bit targets.
3754 #
3755 # NOTE: This test must be in sync with the corresponding
3756 # tests in BFD!
3757
3758 if test x${want64} = xfalse; then
3759 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20e95c23
DJ
3760echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3761if test "${ac_cv_header_stdc+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764 cat >conftest.$ac_ext <<_ACEOF
3765/* confdefs.h. */
3766_ACEOF
3767cat confdefs.h >>conftest.$ac_ext
3768cat >>conftest.$ac_ext <<_ACEOF
3769/* end confdefs.h. */
3770#include <stdlib.h>
3771#include <stdarg.h>
3772#include <string.h>
3773#include <float.h>
3774
3775int
3776main ()
3777{
3778
3779 ;
3780 return 0;
3781}
3782_ACEOF
3783rm -f conftest.$ac_objext
3784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_cv_header_stdc=yes
3806else
3807 echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810ac_cv_header_stdc=no
3811fi
3812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813
3814if test $ac_cv_header_stdc = yes; then
3815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3816 cat >conftest.$ac_ext <<_ACEOF
3817/* confdefs.h. */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
3821/* end confdefs.h. */
3822#include <string.h>
3823
3824_ACEOF
3825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3826 $EGREP "memchr" >/dev/null 2>&1; then
3827 :
3828else
3829 ac_cv_header_stdc=no
3830fi
3831rm -f conftest*
3832
3833fi
3834
3835if test $ac_cv_header_stdc = yes; then
3836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3837 cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h. */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h. */
3843#include <stdlib.h>
3844
3845_ACEOF
3846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3847 $EGREP "free" >/dev/null 2>&1; then
3848 :
3849else
3850 ac_cv_header_stdc=no
3851fi
3852rm -f conftest*
3853
3854fi
3855
3856if test $ac_cv_header_stdc = yes; then
3857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3858 if test "$cross_compiling" = yes; then
3859 :
3860else
3861 cat >conftest.$ac_ext <<_ACEOF
3862/* confdefs.h. */
3863_ACEOF
3864cat confdefs.h >>conftest.$ac_ext
3865cat >>conftest.$ac_ext <<_ACEOF
3866/* end confdefs.h. */
3867#include <ctype.h>
3868#if ((' ' & 0x0FF) == 0x020)
3869# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3870# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3871#else
3872# define ISLOWER(c) \
3873 (('a' <= (c) && (c) <= 'i') \
3874 || ('j' <= (c) && (c) <= 'r') \
3875 || ('s' <= (c) && (c) <= 'z'))
3876# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3877#endif
3878
3879#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3880int
3881main ()
3882{
3883 int i;
3884 for (i = 0; i < 256; i++)
3885 if (XOR (islower (i), ISLOWER (i))
3886 || toupper (i) != TOUPPER (i))
3887 exit(2);
3888 exit (0);
3889}
3890_ACEOF
3891rm -f conftest$ac_exeext
3892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893 (eval $ac_link) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 :
3903else
3904 echo "$as_me: program exited with status $ac_status" >&5
3905echo "$as_me: failed program was:" >&5
3906sed 's/^/| /' conftest.$ac_ext >&5
3907
3908( exit $ac_status )
3909ac_cv_header_stdc=no
3910fi
3911rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3912fi
3913fi
3914fi
3915echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3916echo "${ECHO_T}$ac_cv_header_stdc" >&6
3917if test $ac_cv_header_stdc = yes; then
3918
3919cat >>confdefs.h <<\_ACEOF
3920#define STDC_HEADERS 1
3921_ACEOF
3922
3923fi
3924
3925# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3936 inttypes.h stdint.h unistd.h
3937do
3938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3939echo "$as_me:$LINENO: checking for $ac_header" >&5
3940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3941if eval "test \"\${$as_ac_Header+set}\" = set"; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944 cat >conftest.$ac_ext <<_ACEOF
3945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
3950$ac_includes_default
3951
3952#include <$ac_header>
3953_ACEOF
3954rm -f conftest.$ac_objext
3955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956 (eval $ac_compile) 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -z "$ac_c_werror_flag"
3964 || test ! -s conftest.err'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; } &&
3970 { ac_try='test -s conftest.$ac_objext'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 eval "$as_ac_Header=yes"
3977else
3978 echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981eval "$as_ac_Header=no"
3982fi
3983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3984fi
3985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3986echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3987if test `eval echo '${'$as_ac_Header'}'` = yes; then
3988 cat >>confdefs.h <<_ACEOF
3989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3990_ACEOF
3991
3992fi
3993
3994done
3995
3996
c0993dbe
UW
3997echo "$as_me:$LINENO: checking for long" >&5
3998echo $ECHO_N "checking for long... $ECHO_C" >&6
3999if test "${ac_cv_type_long+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 cat >conftest.$ac_ext <<_ACEOF
4003/* confdefs.h. */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */
4008$ac_includes_default
4009int
4010main ()
4011{
4012if ((long *) 0)
4013 return 0;
4014if (sizeof (long))
4015 return 0;
4016 ;
4017 return 0;
4018}
4019_ACEOF
4020rm -f conftest.$ac_objext
4021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag"
4030 || test ! -s conftest.err'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 ac_cv_type_long=yes
4043else
4044 echo "$as_me: failed program was:" >&5
4045sed 's/^/| /' conftest.$ac_ext >&5
4046
4047ac_cv_type_long=no
4048fi
4049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4050fi
4051echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4052echo "${ECHO_T}$ac_cv_type_long" >&6
4053
4054echo "$as_me:$LINENO: checking size of long" >&5
4055echo $ECHO_N "checking size of long... $ECHO_C" >&6
4056if test "${ac_cv_sizeof_long+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058else
4059 if test "$ac_cv_type_long" = yes; then
4060 # The cast to unsigned long works around a bug in the HP C Compiler
4061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4063 # This bug is HP SR number 8606223364.
4064 if test "$cross_compiling" = yes; then
4065 # Depending upon the size, compute the lo and hi bounds.
4066cat >conftest.$ac_ext <<_ACEOF
4067/* confdefs.h. */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h. */
4072$ac_includes_default
4073int
4074main ()
4075{
4076static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4077test_array [0] = 0
4078
4079 ;
4080 return 0;
4081}
4082_ACEOF
4083rm -f conftest.$ac_objext
4084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_lo=0 ac_mid=0
4106 while :; do
4107 cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h. */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h. */
4113$ac_includes_default
4114int
4115main ()
4116{
4117static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4118test_array [0] = 0
4119
4120 ;
4121 return 0;
4122}
4123_ACEOF
4124rm -f conftest.$ac_objext
4125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>conftest.er1
4127 ac_status=$?
4128 grep -v '^ *+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -z "$ac_c_werror_flag"
4134 || test ! -s conftest.err'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_hi=$ac_mid; break
4147else
4148 echo "$as_me: failed program was:" >&5
4149sed 's/^/| /' conftest.$ac_ext >&5
4150
4151ac_lo=`expr $ac_mid + 1`
4152 if test $ac_lo -le $ac_mid; then
4153 ac_lo= ac_hi=
4154 break
4155 fi
4156 ac_mid=`expr 2 '*' $ac_mid + 1`
4157fi
4158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159 done
4160else
4161 echo "$as_me: failed program was:" >&5
4162sed 's/^/| /' conftest.$ac_ext >&5
4163
4164cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h. */
4170$ac_includes_default
4171int
4172main ()
4173{
4174static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4175test_array [0] = 0
4176
4177 ;
4178 return 0;
4179}
4180_ACEOF
4181rm -f conftest.$ac_objext
4182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>conftest.er1
4184 ac_status=$?
4185 grep -v '^ *+' conftest.er1 >conftest.err
4186 rm -f conftest.er1
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -z "$ac_c_werror_flag"
4191 || test ! -s conftest.err'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; } &&
4197 { ac_try='test -s conftest.$ac_objext'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 ac_hi=-1 ac_mid=-1
4204 while :; do
4205 cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
4211$ac_includes_default
4212int
4213main ()
4214{
4215static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4216test_array [0] = 0
4217
4218 ;
4219 return 0;
4220}
4221_ACEOF
4222rm -f conftest.$ac_objext
4223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224 (eval $ac_compile) 2>conftest.er1
4225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } &&
4231 { ac_try='test -z "$ac_c_werror_flag"
4232 || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_lo=$ac_mid; break
4245else
4246 echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
4249ac_hi=`expr '(' $ac_mid ')' - 1`
4250 if test $ac_mid -le $ac_hi; then
4251 ac_lo= ac_hi=
4252 break
4253 fi
4254 ac_mid=`expr 2 '*' $ac_mid`
4255fi
4256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4257 done
4258else
4259 echo "$as_me: failed program was:" >&5
4260sed 's/^/| /' conftest.$ac_ext >&5
4261
4262ac_lo= ac_hi=
4263fi
4264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4265fi
4266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267# Binary search between lo and hi bounds.
4268while test "x$ac_lo" != "x$ac_hi"; do
4269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4270 cat >conftest.$ac_ext <<_ACEOF
4271/* confdefs.h. */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h. */
4276$ac_includes_default
4277int
4278main ()
4279{
4280static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4281test_array [0] = 0
4282
4283 ;
4284 return 0;
4285}
4286_ACEOF
4287rm -f conftest.$ac_objext
4288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 ac_hi=$ac_mid
4310else
4311 echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
4314ac_lo=`expr '(' $ac_mid ')' + 1`
4315fi
4316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4317done
4318case $ac_lo in
4319?*) ac_cv_sizeof_long=$ac_lo;;
4320'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4321See \`config.log' for more details." >&5
4322echo "$as_me: error: cannot compute sizeof (long), 77
4323See \`config.log' for more details." >&2;}
4324 { (exit 1); exit 1; }; } ;;
4325esac
4326else
4327 if test "$cross_compiling" = yes; then
4328 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4329See \`config.log' for more details." >&5
4330echo "$as_me: error: cannot run test program while cross compiling
4331See \`config.log' for more details." >&2;}
4332 { (exit 1); exit 1; }; }
4333else
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340$ac_includes_default
4341long longval () { return (long) (sizeof (long)); }
4342unsigned long ulongval () { return (long) (sizeof (long)); }
4343#include <stdio.h>
4344#include <stdlib.h>
4345int
4346main ()
4347{
4348
4349 FILE *f = fopen ("conftest.val", "w");
4350 if (! f)
4351 exit (1);
4352 if (((long) (sizeof (long))) < 0)
4353 {
4354 long i = longval ();
4355 if (i != ((long) (sizeof (long))))
4356 exit (1);
4357 fprintf (f, "%ld\n", i);
4358 }
4359 else
4360 {
4361 unsigned long i = ulongval ();
4362 if (i != ((long) (sizeof (long))))
4363 exit (1);
4364 fprintf (f, "%lu\n", i);
4365 }
4366 exit (ferror (f) || fclose (f) != 0);
4367
4368 ;
4369 return 0;
4370}
4371_ACEOF
4372rm -f conftest$ac_exeext
4373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374 (eval $ac_link) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_sizeof_long=`cat conftest.val`
4384else
4385 echo "$as_me: program exited with status $ac_status" >&5
4386echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389( exit $ac_status )
4390{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4391See \`config.log' for more details." >&5
4392echo "$as_me: error: cannot compute sizeof (long), 77
4393See \`config.log' for more details." >&2;}
4394 { (exit 1); exit 1; }; }
4395fi
4396rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4397fi
4398fi
4399rm -f conftest.val
4400else
4401 ac_cv_sizeof_long=0
4402fi
4403fi
4404echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4405echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4406cat >>confdefs.h <<_ACEOF
4407#define SIZEOF_LONG $ac_cv_sizeof_long
4408_ACEOF
4409
4410
4411 if test "x${ac_cv_sizeof_long}" = "x8"; then
4412 want64=true
4413 fi
4414 fi
4415 if test x${want64} = xtrue; then
4416 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
4417 else
4418 TARGET_OBS='$(ALL_TARGET_OBS)'
4419 fi
4420fi
4421
4422
4423
4424# For other settings, only the main target counts.
4425gdb_sim=
4426gdb_osabi=
4427build_gdbserver=
4428targ=$target; . ${srcdir}/configure.tgt
4429
4430# Fetch the default architecture and default target vector from BFD.
4431targ=$target; . $srcdir/../bfd/config.bfd
4432
4433# We only want the first architecture, so strip off the others if
4434# there is more than one.
4435targ_archs=`echo $targ_archs | sed 's/ .*//'`
4436
4437if test "x$targ_archs" != x; then
4438
4439cat >>confdefs.h <<_ACEOF
4440#define DEFAULT_BFD_ARCH $targ_archs
4441_ACEOF
4442
4443fi
4444if test "x$targ_defvec" != x; then
4445
4446cat >>confdefs.h <<_ACEOF
4447#define DEFAULT_BFD_VEC $targ_defvec
4448_ACEOF
4449
4450fi
4451
c0993dbe
UW
4452# The CLI cannot be disabled yet, but may be in the future.
4453
4454# Enable CLI.
4455# Check whether --enable-gdbcli or --disable-gdbcli was given.
4456if test "${enable_gdbcli+set}" = set; then
4457 enableval="$enable_gdbcli"
4458 case $enableval in
4459 yes)
4460 ;;
4461 no)
4462 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
4463echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
4464 { (exit 1); exit 1; }; } ;;
4465 *)
4466 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
4467echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
4468 { (exit 1); exit 1; }; } ;;
4469 esac
4470else
4471 enable_gdbcli=yes
4472fi;
4473if test x"$enable_gdbcli" = xyes; then
4474 if test -d $srcdir/cli; then
4475 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
4476 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
4477 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
4478 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
4479 fi
4480fi
4481
4482# Enable MI.
4483# Check whether --enable-gdbmi or --disable-gdbmi was given.
4484if test "${enable_gdbmi+set}" = set; then
4485 enableval="$enable_gdbmi"
4486 case $enableval in
4487 yes | no)
4488 ;;
4489 *)
4490 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
4491echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
4492 { (exit 1); exit 1; }; } ;;
4493 esac
4494else
4495 enable_gdbmi=yes
4496fi;
4497if test x"$enable_gdbmi" = xyes; then
4498 if test -d $srcdir/mi; then
4499 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
4500 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
4501 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
4502 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
4503 fi
4504fi
4505
4506# Enable TUI.
4507# Check whether --enable-tui or --disable-tui was given.
4508if test "${enable_tui+set}" = set; then
4509 enableval="$enable_tui"
4510 case $enableval in
4511 yes | no)
4512 ;;
4513 *)
4514 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
4515echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
4516 { (exit 1); exit 1; }; } ;;
4517 esac
4518else
4519 enable_tui=yes
4520fi;
4521
4522# Enable gdbtk.
4523# Check whether --enable-gdbtk or --disable-gdbtk was given.
4524if test "${enable_gdbtk+set}" = set; then
4525 enableval="$enable_gdbtk"
4526 case $enableval in
4527 yes | no)
4528 ;;
4529 *)
4530 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
4531echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
4532 { (exit 1); exit 1; }; } ;;
4533 esac
4534else
4535 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
4536 enable_gdbtk=yes
4537 else
4538 enable_gdbtk=no
4539 fi
4540fi;
4541# We unconditionally disable gdbtk tests on selected platforms.
4542case $host_os in
4543 go32* | windows*)
4544 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
4545echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
4546 enable_gdbtk=no ;;
4547esac
4548
4549# Libunwind support.
bec39cab 4550
b4e70030 4551# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 4552if test "${with_libunwind+set}" = set; then
b4e70030
JB
4553 withval="$with_libunwind"
4554 case "${withval}" in
bec39cab
AC
4555 yes) enable_libunwind=yes ;;
4556 no) enable_libunwind=no ;;
4557 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
4558echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
4559 { (exit 1); exit 1; }; } ;;
4560esac
4561else
4562
4563
4564for ac_header in libunwind.h
4565do
4566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
4567if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568 echo "$as_me:$LINENO: checking for $ac_header" >&5
4569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572fi
b4e70030
JB
4573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4575else
4576 # Is the header compilable?
b4e70030
JB
4577echo "$as_me:$LINENO: checking $ac_header usability" >&5
4578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
4579cat >conftest.$ac_ext <<_ACEOF
4580/* confdefs.h. */
4581_ACEOF
4582cat confdefs.h >>conftest.$ac_ext
4583cat >>conftest.$ac_ext <<_ACEOF
4584/* end confdefs.h. */
4585$ac_includes_default
4586#include <$ac_header>
4587_ACEOF
4588rm -f conftest.$ac_objext
4589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
b4e70030
JB
4597 { ac_try='test -z "$ac_c_werror_flag"
4598 || test ! -s conftest.err'
bec39cab
AC
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_header_compiler=yes
4611else
4612 echo "$as_me: failed program was:" >&5
4613sed 's/^/| /' conftest.$ac_ext >&5
4614
b4e70030 4615ac_header_compiler=no
bec39cab
AC
4616fi
4617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
4618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4619echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
4620
4621# Is the header present?
b4e70030
JB
4622echo "$as_me:$LINENO: checking $ac_header presence" >&5
4623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4624cat >conftest.$ac_ext <<_ACEOF
4625/* confdefs.h. */
4626_ACEOF
4627cat confdefs.h >>conftest.$ac_ext
4628cat >>conftest.$ac_ext <<_ACEOF
4629/* end confdefs.h. */
4630#include <$ac_header>
4631_ACEOF
4632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4634 ac_status=$?
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } >/dev/null; then
4640 if test -s conftest.err; then
4641 ac_cpp_err=$ac_c_preproc_warn_flag
4642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4643 else
4644 ac_cpp_err=
4645 fi
4646else
4647 ac_cpp_err=yes
4648fi
4649if test -z "$ac_cpp_err"; then
4650 ac_header_preproc=yes
4651else
4652 echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 ac_header_preproc=no
4656fi
4657rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4659echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4660
4661# So? What about this header?
4662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4663 yes:no: )
4664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4668 ac_header_preproc=yes
4669 ;;
4670 no:yes:* )
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4683 (
4684 cat <<\_ASBOX
4685## ------------------------------------------ ##
4686## Report this to the AC_PACKAGE_NAME lists. ##
4687## ------------------------------------------ ##
4688_ASBOX
4689 ) |
4690 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4691 ;;
4692esac
b4e70030
JB
4693echo "$as_me:$LINENO: checking for $ac_header" >&5
4694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4695if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698 eval "$as_ac_Header=\$ac_header_preproc"
4699fi
b4e70030
JB
4700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4702
4703fi
4704if test `eval echo '${'$as_ac_Header'}'` = yes; then
4705 cat >>confdefs.h <<_ACEOF
4706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4707_ACEOF
4708
4709fi
4710
4711done
4712
4713
4714for ac_header in libunwind-ia64.h
4715do
4716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
4717if eval "test \"\${$as_ac_Header+set}\" = set"; then
4718 echo "$as_me:$LINENO: checking for $ac_header" >&5
4719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722fi
b4e70030
JB
4723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4725else
4726 # Is the header compilable?
b4e70030
JB
4727echo "$as_me:$LINENO: checking $ac_header usability" >&5
4728echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
4729cat >conftest.$ac_ext <<_ACEOF
4730/* confdefs.h. */
4731_ACEOF
4732cat confdefs.h >>conftest.$ac_ext
4733cat >>conftest.$ac_ext <<_ACEOF
4734/* end confdefs.h. */
4735$ac_includes_default
4736#include <$ac_header>
4737_ACEOF
4738rm -f conftest.$ac_objext
4739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
b4e70030
JB
4747 { ac_try='test -z "$ac_c_werror_flag"
4748 || test ! -s conftest.err'
bec39cab
AC
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_header_compiler=yes
4761else
4762 echo "$as_me: failed program was:" >&5
4763sed 's/^/| /' conftest.$ac_ext >&5
4764
b4e70030 4765ac_header_compiler=no
bec39cab
AC
4766fi
4767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
4768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4769echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
4770
4771# Is the header present?
b4e70030
JB
4772echo "$as_me:$LINENO: checking $ac_header presence" >&5
4773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4774cat >conftest.$ac_ext <<_ACEOF
4775/* confdefs.h. */
4776_ACEOF
4777cat confdefs.h >>conftest.$ac_ext
4778cat >>conftest.$ac_ext <<_ACEOF
4779/* end confdefs.h. */
4780#include <$ac_header>
4781_ACEOF
4782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } >/dev/null; then
4790 if test -s conftest.err; then
4791 ac_cpp_err=$ac_c_preproc_warn_flag
4792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4793 else
4794 ac_cpp_err=
4795 fi
4796else
4797 ac_cpp_err=yes
4798fi
4799if test -z "$ac_cpp_err"; then
4800 ac_header_preproc=yes
4801else
4802 echo "$as_me: failed program was:" >&5
4803sed 's/^/| /' conftest.$ac_ext >&5
4804
4805 ac_header_preproc=no
4806fi
4807rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4809echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4810
4811# So? What about this header?
4812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4813 yes:no: )
4814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4818 ac_header_preproc=yes
4819 ;;
4820 no:yes:* )
4821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4828echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4833 (
4834 cat <<\_ASBOX
4835## ------------------------------------------ ##
4836## Report this to the AC_PACKAGE_NAME lists. ##
4837## ------------------------------------------ ##
4838_ASBOX
4839 ) |
4840 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4841 ;;
4842esac
b4e70030
JB
4843echo "$as_me:$LINENO: checking for $ac_header" >&5
4844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4845if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847else
4848 eval "$as_ac_Header=\$ac_header_preproc"
4849fi
b4e70030
JB
4850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4852
4853fi
4854if test `eval echo '${'$as_ac_Header'}'` = yes; then
4855 cat >>confdefs.h <<_ACEOF
4856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4857_ACEOF
4858
4859fi
4860
4861done
4862
4863 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
4864 enable_libunwind=yes;
4865 fi
4866
b4e70030 4867fi;
bec39cab
AC
4868
4869if test x"$enable_libunwind" = xyes; then
4870
4871for ac_header in libunwind.h
4872do
4873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
4874if eval "test \"\${$as_ac_Header+set}\" = set"; then
4875 echo "$as_me:$LINENO: checking for $ac_header" >&5
4876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4877if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879fi
b4e70030
JB
4880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4882else
4883 # Is the header compilable?
b4e70030
JB
4884echo "$as_me:$LINENO: checking $ac_header usability" >&5
4885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
4886cat >conftest.$ac_ext <<_ACEOF
4887/* confdefs.h. */
4888_ACEOF
4889cat confdefs.h >>conftest.$ac_ext
4890cat >>conftest.$ac_ext <<_ACEOF
4891/* end confdefs.h. */
4892$ac_includes_default
4893#include <$ac_header>
4894_ACEOF
4895rm -f conftest.$ac_objext
4896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
b4e70030
JB
4904 { ac_try='test -z "$ac_c_werror_flag"
4905 || test ! -s conftest.err'
bec39cab
AC
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_header_compiler=yes
4918else
4919 echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
b4e70030 4922ac_header_compiler=no
bec39cab
AC
4923fi
4924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
4925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4926echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
4927
4928# Is the header present?
b4e70030
JB
4929echo "$as_me:$LINENO: checking $ac_header presence" >&5
4930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4931cat >conftest.$ac_ext <<_ACEOF
4932/* confdefs.h. */
4933_ACEOF
4934cat confdefs.h >>conftest.$ac_ext
4935cat >>conftest.$ac_ext <<_ACEOF
4936/* end confdefs.h. */
4937#include <$ac_header>
4938_ACEOF
4939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null; then
4947 if test -s conftest.err; then
4948 ac_cpp_err=$ac_c_preproc_warn_flag
4949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4950 else
4951 ac_cpp_err=
4952 fi
4953else
4954 ac_cpp_err=yes
4955fi
4956if test -z "$ac_cpp_err"; then
4957 ac_header_preproc=yes
4958else
4959 echo "$as_me: failed program was:" >&5
4960sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 ac_header_preproc=no
4963fi
4964rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4966echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4967
4968# So? What about this header?
4969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4970 yes:no: )
4971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4975 ac_header_preproc=yes
4976 ;;
4977 no:yes:* )
4978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4981echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4985echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4990 (
4991 cat <<\_ASBOX
4992## ------------------------------------------ ##
4993## Report this to the AC_PACKAGE_NAME lists. ##
4994## ------------------------------------------ ##
4995_ASBOX
4996 ) |
4997 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4998 ;;
4999esac
b4e70030
JB
5000echo "$as_me:$LINENO: checking for $ac_header" >&5
5001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5002if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005 eval "$as_ac_Header=\$ac_header_preproc"
5006fi
b4e70030
JB
5007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
5009
5010fi
5011if test `eval echo '${'$as_ac_Header'}'` = yes; then
5012 cat >>confdefs.h <<_ACEOF
5013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014_ACEOF
5015
5016fi
5017
5018done
5019
5020
5021for ac_header in libunwind-ia64.h
5022do
5023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
5024if eval "test \"\${$as_ac_Header+set}\" = set"; then
5025 echo "$as_me:$LINENO: checking for $ac_header" >&5
5026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5027if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029fi
b4e70030
JB
5030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
5032else
5033 # Is the header compilable?
b4e70030
JB
5034echo "$as_me:$LINENO: checking $ac_header usability" >&5
5035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
5036cat >conftest.$ac_ext <<_ACEOF
5037/* confdefs.h. */
5038_ACEOF
5039cat confdefs.h >>conftest.$ac_ext
5040cat >>conftest.$ac_ext <<_ACEOF
5041/* end confdefs.h. */
5042$ac_includes_default
5043#include <$ac_header>
5044_ACEOF
5045rm -f conftest.$ac_objext
5046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5047 (eval $ac_compile) 2>conftest.er1
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } &&
b4e70030
JB
5054 { ac_try='test -z "$ac_c_werror_flag"
5055 || test ! -s conftest.err'
bec39cab
AC
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; } &&
5061 { ac_try='test -s conftest.$ac_objext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_header_compiler=yes
5068else
5069 echo "$as_me: failed program was:" >&5
5070sed 's/^/| /' conftest.$ac_ext >&5
5071
b4e70030 5072ac_header_compiler=no
bec39cab
AC
5073fi
5074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
5075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5076echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
5077
5078# Is the header present?
b4e70030
JB
5079echo "$as_me:$LINENO: checking $ac_header presence" >&5
5080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
5081cat >conftest.$ac_ext <<_ACEOF
5082/* confdefs.h. */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h. */
5087#include <$ac_header>
5088_ACEOF
5089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } >/dev/null; then
5097 if test -s conftest.err; then
5098 ac_cpp_err=$ac_c_preproc_warn_flag
5099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5100 else
5101 ac_cpp_err=
5102 fi
5103else
5104 ac_cpp_err=yes
5105fi
5106if test -z "$ac_cpp_err"; then
5107 ac_header_preproc=yes
5108else
5109 echo "$as_me: failed program was:" >&5
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 ac_header_preproc=no
5113fi
5114rm -f conftest.err conftest.$ac_ext
b4e70030
JB
5115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5116echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
5117
5118# So? What about this header?
5119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5120 yes:no: )
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5125 ac_header_preproc=yes
5126 ;;
5127 no:yes:* )
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
5140 (
5141 cat <<\_ASBOX
5142## ------------------------------------------ ##
5143## Report this to the AC_PACKAGE_NAME lists. ##
5144## ------------------------------------------ ##
5145_ASBOX
5146 ) |
5147 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
5148 ;;
5149esac
b4e70030
JB
5150echo "$as_me:$LINENO: checking for $ac_header" >&5
5151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5152if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155 eval "$as_ac_Header=\$ac_header_preproc"
5156fi
b4e70030
JB
5157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
5159
5160fi
5161if test `eval echo '${'$as_ac_Header'}'` = yes; then
5162 cat >>confdefs.h <<_ACEOF
5163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5164_ACEOF
5165
5166fi
5167
5168done
5169
60ca704f
SE
5170
5171cat >>confdefs.h <<\_ACEOF
bec39cab
AC
5172#define HAVE_LIBUNWIND 1
5173_ACEOF
5174
5175 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
5176 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
5177 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
5178fi
5179
5180# Profiling support.
b4e70030 5181# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 5182if test "${enable_profiling+set}" = set; then
b4e70030
JB
5183 enableval="$enable_profiling"
5184 case $enableval in
bec39cab
AC
5185 yes | no)
5186 ;;
5187 *)
5188 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
5189echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5191 esac
5192else
5193 enable_profiling=no
b4e70030 5194fi;
bec39cab
AC
5195
5196
5197
5198for ac_func in monstartup _mcleanup
5199do
5200as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
5201echo "$as_me:$LINENO: checking for $ac_func" >&5
5202echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5203if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206 cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h. */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h. */
5212/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5214#define $ac_func innocuous_$ac_func
5215
5216/* System header to define __stub macros and hopefully few prototypes,
5217 which can conflict with char $ac_func (); below.
5218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5219 <limits.h> exists even on freestanding compilers. */
5220
5221#ifdef __STDC__
5222# include <limits.h>
5223#else
5224# include <assert.h>
5225#endif
5226
5227#undef $ac_func
5228
b4e70030 5229/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5230#ifdef __cplusplus
5231extern "C"
b4e70030 5232{
bec39cab 5233#endif
b4e70030
JB
5234/* We use char because int might match the return type of a gcc2
5235 builtin and then its argument prototype would still apply. */
bec39cab
AC
5236char $ac_func ();
5237/* The GNU C library defines this for functions which it implements
5238 to always fail with ENOSYS. Some functions are actually named
5239 something starting with __ and the normal name is an alias. */
b4e70030 5240#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 5241choke me
b4e70030
JB
5242#else
5243char (*f) () = $ac_func;
5244#endif
5245#ifdef __cplusplus
5246}
bec39cab
AC
5247#endif
5248
5249int
5250main ()
5251{
b4e70030 5252return f != $ac_func;
bec39cab
AC
5253 ;
5254 return 0;
5255}
5256_ACEOF
5257rm -f conftest.$ac_objext conftest$ac_exeext
5258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5259 (eval $ac_link) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
b4e70030
JB
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
bec39cab
AC
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest$ac_exeext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 eval "$as_ac_var=yes"
5280else
5281 echo "$as_me: failed program was:" >&5
5282sed 's/^/| /' conftest.$ac_ext >&5
5283
b4e70030 5284eval "$as_ac_var=no"
bec39cab
AC
5285fi
5286rm -f conftest.err conftest.$ac_objext \
5287 conftest$ac_exeext conftest.$ac_ext
5288fi
b4e70030
JB
5289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
5291if test `eval echo '${'$as_ac_var'}'` = yes; then
5292 cat >>confdefs.h <<_ACEOF
5293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5294_ACEOF
5295
5296fi
5297done
5298
b4e70030
JB
5299echo "$as_me:$LINENO: checking for _etext" >&5
5300echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
5301if test "${ac_cv_var__etext+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303else
5304 cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h. */
5310#include <stdlib.h>
5311extern char _etext;
5312
5313int
5314main ()
5315{
5316free (&_etext);
5317 ;
5318 return 0;
5319}
5320_ACEOF
5321rm -f conftest.$ac_objext conftest$ac_exeext
5322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5323 (eval $ac_link) 2>conftest.er1
5324 ac_status=$?
5325 grep -v '^ *+' conftest.er1 >conftest.err
5326 rm -f conftest.er1
5327 cat conftest.err >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } &&
b4e70030
JB
5330 { ac_try='test -z "$ac_c_werror_flag"
5331 || test ! -s conftest.err'
bec39cab
AC
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; } &&
5337 { ac_try='test -s conftest$ac_exeext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_cv_var__etext=yes
5344else
5345 echo "$as_me: failed program was:" >&5
5346sed 's/^/| /' conftest.$ac_ext >&5
5347
b4e70030 5348ac_cv_var__etext=no
bec39cab
AC
5349fi
5350rm -f conftest.err conftest.$ac_objext \
5351 conftest$ac_exeext conftest.$ac_ext
5352fi
b4e70030
JB
5353echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
5354echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
5355if test $ac_cv_var__etext = yes; then
5356
5357cat >>confdefs.h <<\_ACEOF
5358#define HAVE__ETEXT 1
5359_ACEOF
5360
01fe12f6
JB
5361fi
5362echo "$as_me:$LINENO: checking for etext" >&5
5363echo $ECHO_N "checking for etext... $ECHO_C" >&6
5364if test "${ac_cv_var_etext+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367 cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h. */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h. */
5373#include <stdlib.h>
5374extern char etext;
5375
5376int
5377main ()
5378{
5379free (&etext);
5380 ;
5381 return 0;
5382}
5383_ACEOF
5384rm -f conftest.$ac_objext conftest$ac_exeext
5385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5386 (eval $ac_link) 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -z "$ac_c_werror_flag"
5394 || test ! -s conftest.err'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; } &&
5400 { ac_try='test -s conftest$ac_exeext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_cv_var_etext=yes
5407else
5408 echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
5411ac_cv_var_etext=no
5412fi
5413rm -f conftest.err conftest.$ac_objext \
5414 conftest$ac_exeext conftest.$ac_ext
5415fi
5416echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
5417echo "${ECHO_T}$ac_cv_var_etext" >&6
5418if test $ac_cv_var_etext = yes; then
5419
5420cat >>confdefs.h <<\_ACEOF
5421#define HAVE_ETEXT 1
5422_ACEOF
5423
bec39cab
AC
5424fi
5425if test "$enable_profiling" = yes ; then
5426 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5427 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
5428echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
5429 { (exit 1); exit 1; }; }
5430 fi
5431 PROFILE_CFLAGS=-pg
5432 OLD_CFLAGS="$CFLAGS"
5433 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5434
b4e70030
JB
5435 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
5436echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
5437if test "${ac_cv_cc_supports_pg+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5439else
bec39cab
AC
5440 cat >conftest.$ac_ext <<_ACEOF
5441/* confdefs.h. */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h. */
5446
5447int
5448main ()
5449{
5450int x;
5451 ;
5452 return 0;
5453}
5454_ACEOF
5455rm -f conftest.$ac_objext
5456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457 (eval $ac_compile) 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
b4e70030
JB
5464 { ac_try='test -z "$ac_c_werror_flag"
5465 || test ! -s conftest.err'
bec39cab
AC
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_cv_cc_supports_pg=yes
5478else
5479 echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
b4e70030 5482ac_cv_cc_supports_pg=no
bec39cab
AC
5483fi
5484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485fi
b4e70030
JB
5486echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
5487echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
5488
5489 if test $ac_cv_cc_supports_pg = no; then
5490 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
5491echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
5492 { (exit 1); exit 1; }; }
5493 fi
5494
5495 CFLAGS="$OLD_CFLAGS"
5496fi
5497
5498# --------------------- #
5499# Checks for programs. #
5500# --------------------- #
5501
5502for ac_prog in gawk mawk nawk awk
5503do
5504 # Extract the first word of "$ac_prog", so it can be a program name with args.
5505set dummy $ac_prog; ac_word=$2
b4e70030
JB
5506echo "$as_me:$LINENO: checking for $ac_word" >&5
5507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5508if test "${ac_cv_prog_AWK+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510else
5511 if test -n "$AWK"; then
5512 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5521 ac_cv_prog_AWK="$ac_prog"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525done
5526done
5527
5528fi
5529fi
5530AWK=$ac_cv_prog_AWK
5531if test -n "$AWK"; then
b4e70030
JB
5532 echo "$as_me:$LINENO: result: $AWK" >&5
5533echo "${ECHO_T}$AWK" >&6
bec39cab 5534else
b4e70030
JB
5535 echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6
bec39cab
AC
5537fi
5538
5539 test -n "$AWK" && break
5540done
5541
5542# Find a good install program. We prefer a C program (faster),
5543# so one script is as good as another. But avoid the broken or
5544# incompatible versions:
5545# SysV /etc/install, /usr/sbin/install
5546# SunOS /usr/etc/install
5547# IRIX /sbin/install
5548# AIX /bin/install
5549# AmigaOS /C/install, which installs bootblocks on floppy discs
5550# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5551# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5552# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5553# OS/2's system install, which has a completely different semantic
5554# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
5555echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5556echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
5557if test -z "$INSTALL"; then
5558if test "${ac_cv_path_install+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH
5563do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 # Account for people who put trailing slashes in PATH elements.
5567case $as_dir/ in
5568 ./ | .// | /cC/* | \
5569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5570 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5571 /usr/ucb/* ) ;;
c906108c 5572 *)
bec39cab
AC
5573 # OSF1 and SCO ODT 3.0 have their own names for install.
5574 # Don't use installbsd from OSF since it installs stuff as root
5575 # by default.
5576 for ac_prog in ginstall scoinst install; do
5577 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
5579 if test $ac_prog = install &&
5580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5581 # AIX install. It has an incompatible calling convention.
5582 :
5583 elif test $ac_prog = install &&
5584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5585 # program-specific install script used by HP pwplus--don't use.
5586 :
5587 else
5588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5589 break 3
5590 fi
5591 fi
5592 done
5593 done
5594 ;;
c906108c 5595esac
bec39cab
AC
5596done
5597
5598
5599fi
5600 if test "${ac_cv_path_install+set}" = set; then
5601 INSTALL=$ac_cv_path_install
5602 else
b4e70030
JB
5603 # As a last resort, use the slow shell script. We don't cache a
5604 # path for INSTALL within a source directory, because that will
bec39cab 5605 # break other packages using the cache if that directory is
b4e70030 5606 # removed, or if the path is relative.
bec39cab
AC
5607 INSTALL=$ac_install_sh
5608 fi
5609fi
b4e70030
JB
5610echo "$as_me:$LINENO: result: $INSTALL" >&5
5611echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
5612
5613# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5614# It thinks the first close brace ends the variable substitution.
5615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5616
5617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5618
5619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5620
b4e70030
JB
5621echo "$as_me:$LINENO: checking whether ln -s works" >&5
5622echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
5623LN_S=$as_ln_s
5624if test "$LN_S" = "ln -s"; then
b4e70030
JB
5625 echo "$as_me:$LINENO: result: yes" >&5
5626echo "${ECHO_T}yes" >&6
bec39cab 5627else
b4e70030
JB
5628 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5629echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
5630fi
5631
5632if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5634set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
5635echo "$as_me:$LINENO: checking for $ac_word" >&5
5636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5637if test "${ac_cv_prog_RANLIB+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640 if test -n "$RANLIB"; then
5641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5642else
5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH
5645do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5650 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654done
5655done
5656
5657fi
5658fi
5659RANLIB=$ac_cv_prog_RANLIB
5660if test -n "$RANLIB"; then
b4e70030
JB
5661 echo "$as_me:$LINENO: result: $RANLIB" >&5
5662echo "${ECHO_T}$RANLIB" >&6
bec39cab 5663else
b4e70030
JB
5664 echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6
bec39cab
AC
5666fi
5667
5668fi
5669if test -z "$ac_cv_prog_RANLIB"; then
5670 ac_ct_RANLIB=$RANLIB
5671 # Extract the first word of "ranlib", so it can be a program name with args.
5672set dummy ranlib; ac_word=$2
b4e70030
JB
5673echo "$as_me:$LINENO: checking for $ac_word" >&5
5674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5675if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678 if test -n "$ac_ct_RANLIB"; then
5679 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5680else
5681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682for as_dir in $PATH
5683do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5688 ac_cv_prog_ac_ct_RANLIB="ranlib"
5689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692done
5693done
5694
b4e70030 5695 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
5696fi
5697fi
5698ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5699if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
5700 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5701echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 5702else
b4e70030
JB
5703 echo "$as_me:$LINENO: result: no" >&5
5704echo "${ECHO_T}no" >&6
bec39cab
AC
5705fi
5706
b4e70030 5707 RANLIB=$ac_ct_RANLIB
bec39cab
AC
5708else
5709 RANLIB="$ac_cv_prog_RANLIB"
5710fi
5711
5712for ac_prog in 'bison -y' byacc
5713do
5714 # Extract the first word of "$ac_prog", so it can be a program name with args.
5715set dummy $ac_prog; ac_word=$2
b4e70030
JB
5716echo "$as_me:$LINENO: checking for $ac_word" >&5
5717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5718if test "${ac_cv_prog_YACC+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721 if test -n "$YACC"; then
5722 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5723else
5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH
5726do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5731 ac_cv_prog_YACC="$ac_prog"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735done
5736done
5737
5738fi
5739fi
5740YACC=$ac_cv_prog_YACC
5741if test -n "$YACC"; then
b4e70030
JB
5742 echo "$as_me:$LINENO: result: $YACC" >&5
5743echo "${ECHO_T}$YACC" >&6
bec39cab 5744else
b4e70030
JB
5745 echo "$as_me:$LINENO: result: no" >&5
5746echo "${ECHO_T}no" >&6
bec39cab
AC
5747fi
5748
5749 test -n "$YACC" && break
5750done
5751test -n "$YACC" || YACC="yacc"
5752
5753
5754if test -n "$ac_tool_prefix"; then
5755 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5756set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
5757echo "$as_me:$LINENO: checking for $ac_word" >&5
5758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5759if test "${ac_cv_prog_AR+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762 if test -n "$AR"; then
5763 ac_cv_prog_AR="$AR" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5772 ac_cv_prog_AR="${ac_tool_prefix}ar"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776done
5777done
5778
5779fi
5780fi
5781AR=$ac_cv_prog_AR
5782if test -n "$AR"; then
b4e70030
JB
5783 echo "$as_me:$LINENO: result: $AR" >&5
5784echo "${ECHO_T}$AR" >&6
bec39cab 5785else
b4e70030
JB
5786 echo "$as_me:$LINENO: result: no" >&5
5787echo "${ECHO_T}no" >&6
bec39cab
AC
5788fi
5789
5790fi
5791if test -z "$ac_cv_prog_AR"; then
5792 ac_ct_AR=$AR
5793 # Extract the first word of "ar", so it can be a program name with args.
5794set dummy ar; ac_word=$2
b4e70030
JB
5795echo "$as_me:$LINENO: checking for $ac_word" >&5
5796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5797if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800 if test -n "$ac_ct_AR"; then
5801 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5810 ac_cv_prog_ac_ct_AR="ar"
5811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814done
5815done
5816
5817fi
5818fi
5819ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820if test -n "$ac_ct_AR"; then
b4e70030
JB
5821 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5822echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 5823else
b4e70030
JB
5824 echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6
bec39cab
AC
5826fi
5827
b4e70030 5828 AR=$ac_ct_AR
bec39cab
AC
5829else
5830 AR="$ac_cv_prog_AR"
5831fi
5832
5833if test -n "$ac_tool_prefix"; then
5834 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5835set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
5836echo "$as_me:$LINENO: checking for $ac_word" >&5
5837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5838if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841 if test -n "$DLLTOOL"; then
5842 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5851 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855done
5856done
5857
5858fi
5859fi
5860DLLTOOL=$ac_cv_prog_DLLTOOL
5861if test -n "$DLLTOOL"; then
b4e70030
JB
5862 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5863echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 5864else
b4e70030
JB
5865 echo "$as_me:$LINENO: result: no" >&5
5866echo "${ECHO_T}no" >&6
bec39cab
AC
5867fi
5868
5869fi
5870if test -z "$ac_cv_prog_DLLTOOL"; then
5871 ac_ct_DLLTOOL=$DLLTOOL
5872 # Extract the first word of "dlltool", so it can be a program name with args.
5873set dummy dlltool; ac_word=$2
b4e70030
JB
5874echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5876if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 if test -n "$ac_ct_DLLTOOL"; then
5880 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5889 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893done
5894done
5895
5896fi
5897fi
5898ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5899if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
5900 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5901echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 5902else
b4e70030
JB
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
bec39cab
AC
5905fi
5906
b4e70030 5907 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
5908else
5909 DLLTOOL="$ac_cv_prog_DLLTOOL"
5910fi
5911
5912if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5914set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
5915echo "$as_me:$LINENO: checking for $ac_word" >&5
5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5917if test "${ac_cv_prog_WINDRES+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920 if test -n "$WINDRES"; then
5921 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5930 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934done
5935done
5936
5937fi
5938fi
5939WINDRES=$ac_cv_prog_WINDRES
5940if test -n "$WINDRES"; then
b4e70030
JB
5941 echo "$as_me:$LINENO: result: $WINDRES" >&5
5942echo "${ECHO_T}$WINDRES" >&6
bec39cab 5943else
b4e70030
JB
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
bec39cab
AC
5946fi
5947
5948fi
5949if test -z "$ac_cv_prog_WINDRES"; then
5950 ac_ct_WINDRES=$WINDRES
5951 # Extract the first word of "windres", so it can be a program name with args.
5952set dummy windres; ac_word=$2
b4e70030
JB
5953echo "$as_me:$LINENO: checking for $ac_word" >&5
5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5955if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958 if test -n "$ac_ct_WINDRES"; then
5959 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5960else
5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5968 ac_cv_prog_ac_ct_WINDRES="windres"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972done
5973done
5974
5975fi
5976fi
5977ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5978if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
5979 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5980echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 5981else
b4e70030
JB
5982 echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6
c906108c 5984fi
bec39cab 5985
b4e70030 5986 WINDRES=$ac_ct_WINDRES
c906108c 5987else
bec39cab 5988 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
5989fi
5990
bec39cab
AC
5991
5992# Needed for GNU/Hurd.
5993if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
5995set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
5996echo "$as_me:$LINENO: checking for $ac_word" >&5
5997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5998if test "${ac_cv_prog_MIG+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6000else
bec39cab
AC
6001 if test -n "$MIG"; then
6002 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 6010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
6011 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015done
6016done
6017
c906108c 6018fi
bec39cab
AC
6019fi
6020MIG=$ac_cv_prog_MIG
6021if test -n "$MIG"; then
b4e70030
JB
6022 echo "$as_me:$LINENO: result: $MIG" >&5
6023echo "${ECHO_T}$MIG" >&6
c906108c 6024else
b4e70030
JB
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
c906108c
SS
6027fi
6028
bec39cab
AC
6029fi
6030if test -z "$ac_cv_prog_MIG"; then
6031 ac_ct_MIG=$MIG
6032 # Extract the first word of "mig", so it can be a program name with args.
6033set dummy mig; ac_word=$2
b4e70030
JB
6034echo "$as_me:$LINENO: checking for $ac_word" >&5
6035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
6036if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038else
6039 if test -n "$ac_ct_MIG"; then
6040 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 6048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
6049 ac_cv_prog_ac_ct_MIG="mig"
6050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053done
6054done
c906108c 6055
bec39cab
AC
6056fi
6057fi
6058ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6059if test -n "$ac_ct_MIG"; then
b4e70030
JB
6060 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
6061echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 6062else
b4e70030
JB
6063 echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6
bec39cab 6065fi
c906108c 6066
b4e70030 6067 MIG=$ac_ct_MIG
bec39cab
AC
6068else
6069 MIG="$ac_cv_prog_MIG"
6070fi
c906108c 6071
c906108c 6072
bec39cab
AC
6073# ---------------------- #
6074# Checks for libraries. #
6075# ---------------------- #
c906108c 6076
bec39cab 6077# We might need to link with -lm; most simulators need it.
c906108c 6078
b4e70030
JB
6079echo "$as_me:$LINENO: checking for main in -lm" >&5
6080echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
6081if test "${ac_cv_lib_m_main+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083else
6084 ac_check_lib_save_LIBS=$LIBS
6085LIBS="-lm $LIBS"
6086cat >conftest.$ac_ext <<_ACEOF
6087/* confdefs.h. */
6088_ACEOF
6089cat confdefs.h >>conftest.$ac_ext
6090cat >>conftest.$ac_ext <<_ACEOF
6091/* end confdefs.h. */
c906108c 6092
c906108c 6093
bec39cab
AC
6094int
6095main ()
6096{
b4e70030 6097main ();
bec39cab
AC
6098 ;
6099 return 0;
6100}
6101_ACEOF
6102rm -f conftest.$ac_objext conftest$ac_exeext
6103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
b4e70030
JB
6111 { ac_try='test -z "$ac_c_werror_flag"
6112 || test ! -s conftest.err'
bec39cab
AC
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; } &&
6118 { ac_try='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_lib_m_main=yes
6125else
6126 echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
b4e70030 6129ac_cv_lib_m_main=no
bec39cab
AC
6130fi
6131rm -f conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
6133LIBS=$ac_check_lib_save_LIBS
6134fi
b4e70030
JB
6135echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6136echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
6137if test $ac_cv_lib_m_main = yes; then
6138 cat >>confdefs.h <<_ACEOF
6139#define HAVE_LIBM 1
6140_ACEOF
6141
6142 LIBS="-lm $LIBS"
c906108c 6143
c906108c 6144fi
bec39cab
AC
6145
6146
6147# We need to link with -lw to get `wctype' on Solaris before Solaris
6148# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6149# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6150# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
6151echo "$as_me:$LINENO: checking for wctype" >&5
6152echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
6153if test "${ac_cv_func_wctype+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156 cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h. */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
6161/* end confdefs.h. */
6162/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
6163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6164#define wctype innocuous_wctype
6165
6166/* System header to define __stub macros and hopefully few prototypes,
6167 which can conflict with char wctype (); below.
6168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6169 <limits.h> exists even on freestanding compilers. */
6170
6171#ifdef __STDC__
6172# include <limits.h>
6173#else
6174# include <assert.h>
6175#endif
6176
6177#undef wctype
6178
b4e70030 6179/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6180#ifdef __cplusplus
6181extern "C"
b4e70030 6182{
bec39cab 6183#endif
b4e70030
JB
6184/* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
bec39cab
AC
6186char wctype ();
6187/* The GNU C library defines this for functions which it implements
6188 to always fail with ENOSYS. Some functions are actually named
6189 something starting with __ and the normal name is an alias. */
b4e70030 6190#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 6191choke me
b4e70030
JB
6192#else
6193char (*f) () = wctype;
6194#endif
6195#ifdef __cplusplus
6196}
bec39cab
AC
6197#endif
6198
6199int
6200main ()
6201{
b4e70030 6202return f != wctype;
bec39cab
AC
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext conftest$ac_exeext
6208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6209 (eval $ac_link) 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
b4e70030
JB
6216 { ac_try='test -z "$ac_c_werror_flag"
6217 || test ! -s conftest.err'
bec39cab
AC
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try='test -s conftest$ac_exeext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 ac_cv_func_wctype=yes
6230else
6231 echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
b4e70030 6234ac_cv_func_wctype=no
bec39cab
AC
6235fi
6236rm -f conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
6238fi
b4e70030
JB
6239echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
6240echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
6241if test $ac_cv_func_wctype = yes; then
6242 :
c906108c 6243else
c906108c 6244
b4e70030
JB
6245echo "$as_me:$LINENO: checking for wctype in -lw" >&5
6246echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
6247if test "${ac_cv_lib_w_wctype+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249else
6250 ac_check_lib_save_LIBS=$LIBS
6251LIBS="-lw $LIBS"
6252cat >conftest.$ac_ext <<_ACEOF
6253/* confdefs.h. */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
6257/* end confdefs.h. */
c906108c 6258
b4e70030 6259/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6260#ifdef __cplusplus
6261extern "C"
6262#endif
b4e70030
JB
6263/* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
bec39cab
AC
6265char wctype ();
6266int
6267main ()
6268{
b4e70030 6269wctype ();
bec39cab
AC
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274rm -f conftest.$ac_objext conftest$ac_exeext
6275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276 (eval $ac_link) 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
b4e70030
JB
6283 { ac_try='test -z "$ac_c_werror_flag"
6284 || test ! -s conftest.err'
bec39cab
AC
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest$ac_exeext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_lib_w_wctype=yes
6297else
6298 echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
b4e70030 6301ac_cv_lib_w_wctype=no
bec39cab
AC
6302fi
6303rm -f conftest.err conftest.$ac_objext \
6304 conftest$ac_exeext conftest.$ac_ext
6305LIBS=$ac_check_lib_save_LIBS
6306fi
b4e70030
JB
6307echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
6308echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
6309if test $ac_cv_lib_w_wctype = yes; then
6310 cat >>confdefs.h <<_ACEOF
6311#define HAVE_LIBW 1
6312_ACEOF
c906108c 6313
bec39cab 6314 LIBS="-lw $LIBS"
c906108c 6315
bec39cab 6316fi
c906108c 6317
bec39cab 6318fi
c906108c 6319
ddc9cd0f 6320
bec39cab 6321# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
6322echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6323echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
6324if test "${ac_cv_search_gethostbyname+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327 ac_func_search_save_LIBS=$LIBS
b4e70030 6328ac_cv_search_gethostbyname=no
bec39cab
AC
6329cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h. */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h. */
ddc9cd0f 6335
b4e70030 6336/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6337#ifdef __cplusplus
6338extern "C"
6339#endif
b4e70030
JB
6340/* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
bec39cab
AC
6342char gethostbyname ();
6343int
6344main ()
6345{
b4e70030 6346gethostbyname ();
bec39cab
AC
6347 ;
6348 return 0;
6349}
6350_ACEOF
b4e70030 6351rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353 (eval $ac_link) 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
b4e70030
JB
6360 { ac_try='test -z "$ac_c_werror_flag"
6361 || test ! -s conftest.err'
bec39cab
AC
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest$ac_exeext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
b4e70030 6373 ac_cv_search_gethostbyname="none required"
bec39cab
AC
6374else
6375 echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 6377
bec39cab
AC
6378fi
6379rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6380 conftest$ac_exeext conftest.$ac_ext
6381if test "$ac_cv_search_gethostbyname" = no; then
6382 for ac_lib in nsl; do
6383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6384 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
6385/* confdefs.h. */
6386_ACEOF
6387cat confdefs.h >>conftest.$ac_ext
6388cat >>conftest.$ac_ext <<_ACEOF
6389/* end confdefs.h. */
ddc9cd0f 6390
b4e70030 6391/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6392#ifdef __cplusplus
6393extern "C"
6394#endif
b4e70030
JB
6395/* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6397char gethostbyname ();
bec39cab
AC
6398int
6399main ()
6400{
b4e70030 6401gethostbyname ();
bec39cab
AC
6402 ;
6403 return 0;
6404}
6405_ACEOF
b4e70030 6406rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408 (eval $ac_link) 2>conftest.er1
6409 ac_status=$?
6410 grep -v '^ *+' conftest.er1 >conftest.err
6411 rm -f conftest.er1
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
b4e70030
JB
6415 { ac_try='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
bec39cab
AC
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try='test -s conftest$ac_exeext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
b4e70030
JB
6428 ac_cv_search_gethostbyname="-l$ac_lib"
6429break
bec39cab
AC
6430else
6431 echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434fi
6435rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6436 conftest$ac_exeext conftest.$ac_ext
6437 done
bec39cab
AC
6438fi
6439LIBS=$ac_func_search_save_LIBS
6440fi
b4e70030
JB
6441echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6442echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
6443if test "$ac_cv_search_gethostbyname" != no; then
6444 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 6445
bec39cab 6446fi
96baa820 6447
c906108c 6448
b4e70030
JB
6449# Some systems (e.g. Solaris) have `socketpair' in libsocket.
6450echo "$as_me:$LINENO: checking for library containing socketpair" >&5
6451echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
6452if test "${ac_cv_search_socketpair+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
6455 ac_func_search_save_LIBS=$LIBS
6456ac_cv_search_socketpair=no
6457cat >conftest.$ac_ext <<_ACEOF
6458/* confdefs.h. */
6459_ACEOF
6460cat confdefs.h >>conftest.$ac_ext
6461cat >>conftest.$ac_ext <<_ACEOF
6462/* end confdefs.h. */
6463
6464/* Override any gcc2 internal prototype to avoid an error. */
6465#ifdef __cplusplus
6466extern "C"
6467#endif
6468/* We use char because int might match the return type of a gcc2
6469 builtin and then its argument prototype would still apply. */
6470char socketpair ();
6471int
6472main ()
6473{
6474socketpair ();
6475 ;
6476 return 0;
6477}
6478_ACEOF
6479rm -f conftest.$ac_objext conftest$ac_exeext
6480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag"
6489 || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try='test -s conftest$ac_exeext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_search_socketpair="none required"
6502else
6503 echo "$as_me: failed program was:" >&5
6504sed 's/^/| /' conftest.$ac_ext >&5
6505
6506fi
6507rm -f conftest.err conftest.$ac_objext \
6508 conftest$ac_exeext conftest.$ac_ext
6509if test "$ac_cv_search_socketpair" = no; then
6510 for ac_lib in socket; do
6511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6512 cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h. */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h. */
6518
6519/* Override any gcc2 internal prototype to avoid an error. */
6520#ifdef __cplusplus
6521extern "C"
6522#endif
6523/* We use char because int might match the return type of a gcc2
6524 builtin and then its argument prototype would still apply. */
6525char socketpair ();
6526int
6527main ()
6528{
6529socketpair ();
6530 ;
6531 return 0;
6532}
6533_ACEOF
6534rm -f conftest.$ac_objext conftest$ac_exeext
6535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536 (eval $ac_link) 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try='test -z "$ac_c_werror_flag"
6544 || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest$ac_exeext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 ac_cv_search_socketpair="-l$ac_lib"
6557break
6558else
6559 echo "$as_me: failed program was:" >&5
6560sed 's/^/| /' conftest.$ac_ext >&5
6561
6562fi
6563rm -f conftest.err conftest.$ac_objext \
6564 conftest$ac_exeext conftest.$ac_ext
6565 done
6566fi
6567LIBS=$ac_func_search_save_LIBS
6568fi
6569echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
6570echo "${ECHO_T}$ac_cv_search_socketpair" >&6
6571if test "$ac_cv_search_socketpair" != no; then
6572 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
6573
6574fi
6575
6576
6577# For the TUI, we need enhanced curses functionality.
bec39cab
AC
6578#
6579# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6580# curses library because the latter might not provide all the
6581# functionality we need. However, this leads to problems on systems
6582# where the linker searches /usr/local/lib, but the compiler doesn't
6583# search /usr/local/include, if ncurses is installed in /usr/local. A
6584# default installation of ncurses on alpha*-dec-osf* will lead to such
6585# a situation.
b4e70030
JB
6586echo "$as_me:$LINENO: checking for library containing waddstr" >&5
6587echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
6588if test "${ac_cv_search_waddstr+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590else
6591 ac_func_search_save_LIBS=$LIBS
b4e70030 6592ac_cv_search_waddstr=no
bec39cab
AC
6593cat >conftest.$ac_ext <<_ACEOF
6594/* confdefs.h. */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
6598/* end confdefs.h. */
c906108c 6599
b4e70030 6600/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6601#ifdef __cplusplus
6602extern "C"
6603#endif
b4e70030
JB
6604/* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
bec39cab
AC
6606char waddstr ();
6607int
6608main ()
6609{
b4e70030 6610waddstr ();
bec39cab
AC
6611 ;
6612 return 0;
6613}
6614_ACEOF
b4e70030 6615rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6617 (eval $ac_link) 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
b4e70030
JB
6624 { ac_try='test -z "$ac_c_werror_flag"
6625 || test ! -s conftest.err'
bec39cab
AC
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 (eval $ac_try) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; } &&
6631 { ac_try='test -s conftest$ac_exeext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 (eval $ac_try) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
b4e70030 6637 ac_cv_search_waddstr="none required"
bec39cab
AC
6638else
6639 echo "$as_me: failed program was:" >&5
6640sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
6641
6642fi
bec39cab 6643rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6644 conftest$ac_exeext conftest.$ac_ext
6645if test "$ac_cv_search_waddstr" = no; then
6646 for ac_lib in ncurses cursesX curses; do
6647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6648 cat >conftest.$ac_ext <<_ACEOF
6649/* confdefs.h. */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h. */
6654
6655/* Override any gcc2 internal prototype to avoid an error. */
6656#ifdef __cplusplus
6657extern "C"
6658#endif
6659/* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6661char waddstr ();
6662int
6663main ()
6664{
6665waddstr ();
6666 ;
6667 return 0;
6668}
6669_ACEOF
6670rm -f conftest.$ac_objext conftest$ac_exeext
6671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest$ac_exeext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 ac_cv_search_waddstr="-l$ac_lib"
6693break
4e8d927d 6694else
b4e70030
JB
6695 echo "$as_me: failed program was:" >&5
6696sed 's/^/| /' conftest.$ac_ext >&5
6697
6698fi
6699rm -f conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6701 done
1ba607ad 6702fi
bec39cab
AC
6703LIBS=$ac_func_search_save_LIBS
6704fi
b4e70030
JB
6705echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
6706echo "${ECHO_T}$ac_cv_search_waddstr" >&6
6707if test "$ac_cv_search_waddstr" != no; then
6708 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 6709
8bb2c122 6710fi
8bb2c122 6711
8bb2c122 6712
d542061a
UW
6713# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6714echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
6715echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
6716if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718else
6719 ac_func_search_save_LIBS=$LIBS
6720ac_cv_search_dlgetmodinfo=no
6721cat >conftest.$ac_ext <<_ACEOF
6722/* confdefs.h. */
6723_ACEOF
6724cat confdefs.h >>conftest.$ac_ext
6725cat >>conftest.$ac_ext <<_ACEOF
6726/* end confdefs.h. */
6727
6728/* Override any gcc2 internal prototype to avoid an error. */
6729#ifdef __cplusplus
6730extern "C"
6731#endif
6732/* We use char because int might match the return type of a gcc2
6733 builtin and then its argument prototype would still apply. */
6734char dlgetmodinfo ();
6735int
6736main ()
6737{
6738dlgetmodinfo ();
6739 ;
6740 return 0;
6741}
6742_ACEOF
6743rm -f conftest.$ac_objext conftest$ac_exeext
6744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6745 (eval $ac_link) 2>conftest.er1
6746 ac_status=$?
6747 grep -v '^ *+' conftest.er1 >conftest.err
6748 rm -f conftest.er1
6749 cat conftest.err >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try='test -z "$ac_c_werror_flag"
6753 || test ! -s conftest.err'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 (eval $ac_try) 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; } &&
6759 { ac_try='test -s conftest$ac_exeext'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_search_dlgetmodinfo="none required"
6766else
6767 echo "$as_me: failed program was:" >&5
6768sed 's/^/| /' conftest.$ac_ext >&5
6769
6770fi
6771rm -f conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773if test "$ac_cv_search_dlgetmodinfo" = no; then
6774 for ac_lib in dl xpdl; do
6775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6776 cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h. */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h. */
6782
6783/* Override any gcc2 internal prototype to avoid an error. */
6784#ifdef __cplusplus
6785extern "C"
6786#endif
6787/* We use char because int might match the return type of a gcc2
6788 builtin and then its argument prototype would still apply. */
6789char dlgetmodinfo ();
6790int
6791main ()
6792{
6793dlgetmodinfo ();
6794 ;
6795 return 0;
6796}
6797_ACEOF
6798rm -f conftest.$ac_objext conftest$ac_exeext
6799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest$ac_exeext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 ac_cv_search_dlgetmodinfo="-l$ac_lib"
6821break
6822else
6823 echo "$as_me: failed program was:" >&5
6824sed 's/^/| /' conftest.$ac_ext >&5
6825
6826fi
6827rm -f conftest.err conftest.$ac_objext \
6828 conftest$ac_exeext conftest.$ac_ext
6829 done
6830fi
6831LIBS=$ac_func_search_save_LIBS
6832fi
6833echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
6834echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
6835if test "$ac_cv_search_dlgetmodinfo" != no; then
6836 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
6837
6838fi
6839
6840
bec39cab
AC
6841# Since GDB uses Readline, we need termcap functionality. In many
6842# cases this will be provided by the curses library, but some systems
6843# have a seperate termcap library, or no curses library at all.
8bb2c122 6844
bec39cab
AC
6845case $host_os in
6846 cygwin*)
6847 if test -d $srcdir/libtermcap; then
6848 LIBS="../libtermcap/libtermcap.a $LIBS"
6849 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6850 fi ;;
6851 go32* | *djgpp*)
6852 ac_cv_search_tgetent="none required"
6853 ;;
7ef34f2c
MM
6854 *mingw32*)
6855 ac_cv_search_tgetent="none required"
6856 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
6857 ;;
bec39cab 6858esac
627af7ea 6859
bec39cab 6860# These are the libraries checked by Readline.
b4e70030
JB
6861echo "$as_me:$LINENO: checking for library containing tgetent" >&5
6862echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
6863if test "${ac_cv_search_tgetent+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865else
6866 ac_func_search_save_LIBS=$LIBS
b4e70030 6867ac_cv_search_tgetent=no
bec39cab
AC
6868cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
6874
b4e70030 6875/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6876#ifdef __cplusplus
6877extern "C"
6878#endif
b4e70030
JB
6879/* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */
bec39cab
AC
6881char tgetent ();
6882int
6883main ()
6884{
b4e70030 6885tgetent ();
bec39cab
AC
6886 ;
6887 return 0;
6888}
6889_ACEOF
b4e70030 6890rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6892 (eval $ac_link) 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
b4e70030
JB
6899 { ac_try='test -z "$ac_c_werror_flag"
6900 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
6906 { ac_try='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
b4e70030 6912 ac_cv_search_tgetent="none required"
627af7ea 6913else
bec39cab
AC
6914 echo "$as_me: failed program was:" >&5
6915sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 6916
627af7ea 6917fi
bec39cab 6918rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6919 conftest$ac_exeext conftest.$ac_ext
6920if test "$ac_cv_search_tgetent" = no; then
6921 for ac_lib in termcap tinfo curses ncurses; do
6922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6923 cat >conftest.$ac_ext <<_ACEOF
6924/* confdefs.h. */
6925_ACEOF
6926cat confdefs.h >>conftest.$ac_ext
6927cat >>conftest.$ac_ext <<_ACEOF
6928/* end confdefs.h. */
6929
6930/* Override any gcc2 internal prototype to avoid an error. */
6931#ifdef __cplusplus
6932extern "C"
6933#endif
6934/* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6936char tgetent ();
6937int
6938main ()
6939{
6940tgetent ();
6941 ;
6942 return 0;
6943}
6944_ACEOF
6945rm -f conftest.$ac_objext conftest$ac_exeext
6946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_cv_search_tgetent="-l$ac_lib"
6968break
4e8d927d 6969else
b4e70030
JB
6970 echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973fi
6974rm -f conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6976 done
bec39cab
AC
6977fi
6978LIBS=$ac_func_search_save_LIBS
6979fi
b4e70030
JB
6980echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
6981echo "${ECHO_T}$ac_cv_search_tgetent" >&6
6982if test "$ac_cv_search_tgetent" != no; then
6983 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 6984
06825bd1
MK
6985fi
6986
06825bd1 6987
bec39cab
AC
6988if test "$ac_cv_search_tgetent" = no; then
6989 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
6990echo "$as_me: error: no termcap library found" >&2;}
6991 { (exit 1); exit 1; }; }
8ee53726
MK
6992fi
6993
3841debe 6994
6a30b0a5
AS
6995# Check whether --with-system-readline or --without-system-readline was given.
6996if test "${with_system_readline+set}" = set; then
6997 withval="$with_system_readline"
6998
6999fi;
7000
7001if test "$with_system_readline" = yes; then
7002 READLINE=-lreadline
7003 READLINE_DEPS=
7004 READLINE_CFLAGS=
7005else
7006 READLINE='$(READLINE_DIR)/libreadline.a'
7007 READLINE_DEPS='$(READLINE)'
7008 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7009fi
7010
7011
7012
7013
7014
5c39566f
DJ
7015# Check whether --with-expat or --without-expat was given.
7016if test "${with_expat+set}" = set; then
7017 withval="$with_expat"
7018
7019else
7020 with_expat=auto
7021fi;
7022echo "$as_me:$LINENO: checking whether to use expat" >&5
7023echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
7024echo "$as_me:$LINENO: result: $with_expat" >&5
7025echo "${ECHO_T}$with_expat" >&6
7026
7027if test "${with_expat}" = no; then
7028 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
7029echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7030 HAVE_LIBEXPAT=no
7031else
7032
3841debe
DJ
7033 if test "X$prefix" = "XNONE"; then
7034 acl_final_prefix="$ac_default_prefix"
7035 else
7036 acl_final_prefix="$prefix"
7037 fi
7038 if test "X$exec_prefix" = "XNONE"; then
7039 acl_final_exec_prefix='${prefix}'
7040 else
7041 acl_final_exec_prefix="$exec_prefix"
7042 fi
7043 acl_save_prefix="$prefix"
7044 prefix="$acl_final_prefix"
7045 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7046 prefix="$acl_save_prefix"
7047
7048
7049# Check whether --with-gnu-ld or --without-gnu-ld was given.
7050if test "${with_gnu_ld+set}" = set; then
7051 withval="$with_gnu_ld"
7052 test "$withval" = no || with_gnu_ld=yes
7053else
7054 with_gnu_ld=no
7055fi;
7056# Prepare PATH_SEPARATOR.
7057# The user is always right.
7058if test "${PATH_SEPARATOR+set}" != set; then
7059 echo "#! /bin/sh" >conf$$.sh
7060 echo "exit 0" >>conf$$.sh
7061 chmod +x conf$$.sh
7062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7063 PATH_SEPARATOR=';'
7064 else
7065 PATH_SEPARATOR=:
7066 fi
7067 rm -f conf$$.sh
7068fi
7069ac_prog=ld
7070if test "$GCC" = yes; then
7071 # Check if gcc -print-prog-name=ld gives a path.
7072 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7073echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7074 case $host in
7075 *-*-mingw*)
7076 # gcc leaves a trailing carriage return which upsets mingw
7077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7078 *)
7079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7080 esac
7081 case $ac_prog in
7082 # Accept absolute paths.
7083 [\\/]* | [A-Za-z]:[\\/]*)
7084 re_direlt='/[^/][^/]*/\.\./'
7085 # Canonicalize the path of ld
7086 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7087 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7088 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7089 done
7090 test -z "$LD" && LD="$ac_prog"
7091 ;;
7092 "")
7093 # If it fails, then pretend we aren't using GCC.
7094 ac_prog=ld
7095 ;;
7096 *)
7097 # If it is relative, then search for the first ld in PATH.
7098 with_gnu_ld=unknown
7099 ;;
7100 esac
7101elif test "$with_gnu_ld" = yes; then
7102 echo "$as_me:$LINENO: checking for GNU ld" >&5
7103echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7104else
7105 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7106echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7107fi
7108if test "${acl_cv_path_LD+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111 if test -z "$LD"; then
7112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7113 for ac_dir in $PATH; do
7114 test -z "$ac_dir" && ac_dir=.
7115 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7116 acl_cv_path_LD="$ac_dir/$ac_prog"
7117 # Check to see if the program is GNU ld. I'd rather use --version,
7118 # but apparently some GNU ld's only accept -v.
7119 # Break only if it was the GNU/non-GNU ld that we prefer.
7120 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7121 test "$with_gnu_ld" != no && break
7122 else
7123 test "$with_gnu_ld" != yes && break
7124 fi
7125 fi
7126 done
7127 IFS="$ac_save_ifs"
7128else
7129 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7130fi
7131fi
7132
7133LD="$acl_cv_path_LD"
7134if test -n "$LD"; then
7135 echo "$as_me:$LINENO: result: $LD" >&5
7136echo "${ECHO_T}$LD" >&6
7137else
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
7140fi
7141test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7142echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7143 { (exit 1); exit 1; }; }
7144echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7145echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7146if test "${acl_cv_prog_gnu_ld+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7150if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7151 acl_cv_prog_gnu_ld=yes
7152else
7153 acl_cv_prog_gnu_ld=no
7154fi
7155fi
7156echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7157echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7158with_gnu_ld=$acl_cv_prog_gnu_ld
7159
7160
7161
7162 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7163echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7164if test "${acl_cv_rpath+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167
7168 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7169 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7170 . ./conftest.sh
7171 rm -f ./conftest.sh
7172 acl_cv_rpath=done
7173
7174fi
7175echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7176echo "${ECHO_T}$acl_cv_rpath" >&6
7177 wl="$acl_cv_wl"
7178 libext="$acl_cv_libext"
7179 shlibext="$acl_cv_shlibext"
7180 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7181 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7182 hardcode_direct="$acl_cv_hardcode_direct"
7183 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7184 # Check whether --enable-rpath or --disable-rpath was given.
7185if test "${enable_rpath+set}" = set; then
7186 enableval="$enable_rpath"
7187 :
7188else
7189 enable_rpath=yes
7190fi;
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200 use_additional=yes
7201
7202 acl_save_prefix="$prefix"
7203 prefix="$acl_final_prefix"
7204 acl_save_exec_prefix="$exec_prefix"
7205 exec_prefix="$acl_final_exec_prefix"
7206
7207 eval additional_includedir=\"$includedir\"
7208 eval additional_libdir=\"$libdir\"
7209
7210 exec_prefix="$acl_save_exec_prefix"
7211 prefix="$acl_save_prefix"
7212
7213
7214# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
7215if test "${with_libexpat_prefix+set}" = set; then
7216 withval="$with_libexpat_prefix"
7217
7218 if test "X$withval" = "Xno"; then
7219 use_additional=no
7220 else
7221 if test "X$withval" = "X"; then
7222
7223 acl_save_prefix="$prefix"
7224 prefix="$acl_final_prefix"
7225 acl_save_exec_prefix="$exec_prefix"
7226 exec_prefix="$acl_final_exec_prefix"
7227
7228 eval additional_includedir=\"$includedir\"
7229 eval additional_libdir=\"$libdir\"
7230
7231 exec_prefix="$acl_save_exec_prefix"
7232 prefix="$acl_save_prefix"
7233
7234 else
7235 additional_includedir="$withval/include"
7236 additional_libdir="$withval/lib"
7237 fi
7238 fi
7239
7240fi;
7241 LIBEXPAT=
7242 LTLIBEXPAT=
7243 INCEXPAT=
7244 rpathdirs=
7245 ltrpathdirs=
7246 names_already_handled=
7247 names_next_round='expat '
7248 while test -n "$names_next_round"; do
7249 names_this_round="$names_next_round"
7250 names_next_round=
7251 for name in $names_this_round; do
7252 already_handled=
7253 for n in $names_already_handled; do
7254 if test "$n" = "$name"; then
7255 already_handled=yes
7256 break
7257 fi
7258 done
7259 if test -z "$already_handled"; then
7260 names_already_handled="$names_already_handled $name"
7261 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7262 eval value=\"\$HAVE_LIB$uppername\"
7263 if test -n "$value"; then
7264 if test "$value" = yes; then
7265 eval value=\"\$LIB$uppername\"
7266 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7267 eval value=\"\$LTLIB$uppername\"
7268 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7269 else
7270 :
7271 fi
7272 else
7273 found_dir=
7274 found_la=
7275 found_so=
7276 found_a=
7277 if test $use_additional = yes; then
7278 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7279 found_dir="$additional_libdir"
7280 found_so="$additional_libdir/lib$name.$shlibext"
7281 if test -f "$additional_libdir/lib$name.la"; then
7282 found_la="$additional_libdir/lib$name.la"
7283 fi
7284 else
7285 if test -f "$additional_libdir/lib$name.$libext"; then
7286 found_dir="$additional_libdir"
7287 found_a="$additional_libdir/lib$name.$libext"
7288 if test -f "$additional_libdir/lib$name.la"; then
7289 found_la="$additional_libdir/lib$name.la"
7290 fi
7291 fi
7292 fi
7293 fi
7294 if test "X$found_dir" = "X"; then
7295 for x in $LDFLAGS $LTLIBEXPAT; do
7296
7297 acl_save_prefix="$prefix"
7298 prefix="$acl_final_prefix"
7299 acl_save_exec_prefix="$exec_prefix"
7300 exec_prefix="$acl_final_exec_prefix"
7301 eval x=\"$x\"
7302 exec_prefix="$acl_save_exec_prefix"
7303 prefix="$acl_save_prefix"
7304
7305 case "$x" in
7306 -L*)
7307 dir=`echo "X$x" | sed -e 's/^X-L//'`
7308 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7309 found_dir="$dir"
7310 found_so="$dir/lib$name.$shlibext"
7311 if test -f "$dir/lib$name.la"; then
7312 found_la="$dir/lib$name.la"
7313 fi
7314 else
7315 if test -f "$dir/lib$name.$libext"; then
7316 found_dir="$dir"
7317 found_a="$dir/lib$name.$libext"
7318 if test -f "$dir/lib$name.la"; then
7319 found_la="$dir/lib$name.la"
7320 fi
7321 fi
7322 fi
7323 ;;
7324 esac
7325 if test "X$found_dir" != "X"; then
7326 break
7327 fi
7328 done
7329 fi
7330 if test "X$found_dir" != "X"; then
7331 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7332 if test "X$found_so" != "X"; then
7333 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7334 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7335 else
7336 haveit=
7337 for x in $ltrpathdirs; do
7338 if test "X$x" = "X$found_dir"; then
7339 haveit=yes
7340 break
7341 fi
7342 done
7343 if test -z "$haveit"; then
7344 ltrpathdirs="$ltrpathdirs $found_dir"
7345 fi
7346 if test "$hardcode_direct" = yes; then
7347 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7348 else
7349 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7350 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7351 haveit=
7352 for x in $rpathdirs; do
7353 if test "X$x" = "X$found_dir"; then
7354 haveit=yes
7355 break
7356 fi
7357 done
7358 if test -z "$haveit"; then
7359 rpathdirs="$rpathdirs $found_dir"
7360 fi
7361 else
7362 haveit=
7363 for x in $LDFLAGS $LIBEXPAT; do
7364
7365 acl_save_prefix="$prefix"
7366 prefix="$acl_final_prefix"
7367 acl_save_exec_prefix="$exec_prefix"
7368 exec_prefix="$acl_final_exec_prefix"
7369 eval x=\"$x\"
7370 exec_prefix="$acl_save_exec_prefix"
7371 prefix="$acl_save_prefix"
7372
7373 if test "X$x" = "X-L$found_dir"; then
7374 haveit=yes
7375 break
7376 fi
7377 done
7378 if test -z "$haveit"; then
7379 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7380 fi
7381 if test "$hardcode_minus_L" != no; then
7382 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7383 else
7384 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7385 fi
7386 fi
7387 fi
7388 fi
7389 else
7390 if test "X$found_a" != "X"; then
7391 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7392 else
7393 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7394 fi
7395 fi
7396 additional_includedir=
7397 case "$found_dir" in
7398 */lib | */lib/)
7399 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7400 additional_includedir="$basedir/include"
7401 ;;
7402 esac
7403 if test "X$additional_includedir" != "X"; then
7404 if test "X$additional_includedir" != "X/usr/include"; then
7405 haveit=
7406 if test "X$additional_includedir" = "X/usr/local/include"; then
7407 if test -n "$GCC"; then
7408 case $host_os in
7409 linux*) haveit=yes;;
7410 esac
7411 fi
7412 fi
7413 if test -z "$haveit"; then
7414 for x in $CPPFLAGS $INCEXPAT; do
7415
7416 acl_save_prefix="$prefix"
7417 prefix="$acl_final_prefix"
7418 acl_save_exec_prefix="$exec_prefix"
7419 exec_prefix="$acl_final_exec_prefix"
7420 eval x=\"$x\"
7421 exec_prefix="$acl_save_exec_prefix"
7422 prefix="$acl_save_prefix"
7423
7424 if test "X$x" = "X-I$additional_includedir"; then
7425 haveit=yes
7426 break
7427 fi
7428 done
7429 if test -z "$haveit"; then
7430 if test -d "$additional_includedir"; then
7431 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7432 fi
7433 fi
7434 fi
7435 fi
7436 fi
7437 if test -n "$found_la"; then
7438 save_libdir="$libdir"
7439 case "$found_la" in
7440 */* | *\\*) . "$found_la" ;;
7441 *) . "./$found_la" ;;
7442 esac
7443 libdir="$save_libdir"
7444 for dep in $dependency_libs; do
7445 case "$dep" in
7446 -L*)
7447 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7448 if test "X$additional_libdir" != "X/usr/lib"; then
7449 haveit=
7450 if test "X$additional_libdir" = "X/usr/local/lib"; then
7451 if test -n "$GCC"; then
7452 case $host_os in
7453 linux*) haveit=yes;;
7454 esac
7455 fi
7456 fi
7457 if test -z "$haveit"; then
7458 haveit=
7459 for x in $LDFLAGS $LIBEXPAT; do
7460
7461 acl_save_prefix="$prefix"
7462 prefix="$acl_final_prefix"
7463 acl_save_exec_prefix="$exec_prefix"
7464 exec_prefix="$acl_final_exec_prefix"
7465 eval x=\"$x\"
7466 exec_prefix="$acl_save_exec_prefix"
7467 prefix="$acl_save_prefix"
7468
7469 if test "X$x" = "X-L$additional_libdir"; then
7470 haveit=yes
7471 break
7472 fi
7473 done
7474 if test -z "$haveit"; then
7475 if test -d "$additional_libdir"; then
7476 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7477 fi
7478 fi
7479 haveit=
7480 for x in $LDFLAGS $LTLIBEXPAT; do
7481
7482 acl_save_prefix="$prefix"
7483 prefix="$acl_final_prefix"
7484 acl_save_exec_prefix="$exec_prefix"
7485 exec_prefix="$acl_final_exec_prefix"
7486 eval x=\"$x\"
7487 exec_prefix="$acl_save_exec_prefix"
7488 prefix="$acl_save_prefix"
7489
7490 if test "X$x" = "X-L$additional_libdir"; then
7491 haveit=yes
7492 break
7493 fi
7494 done
7495 if test -z "$haveit"; then
7496 if test -d "$additional_libdir"; then
7497 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7498 fi
7499 fi
7500 fi
7501 fi
7502 ;;
7503 -R*)
7504 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7505 if test "$enable_rpath" != no; then
7506 haveit=
7507 for x in $rpathdirs; do
7508 if test "X$x" = "X$dir"; then
7509 haveit=yes
7510 break
7511 fi
7512 done
7513 if test -z "$haveit"; then
7514 rpathdirs="$rpathdirs $dir"
7515 fi
7516 haveit=
7517 for x in $ltrpathdirs; do
7518 if test "X$x" = "X$dir"; then
7519 haveit=yes
7520 break
7521 fi
7522 done
7523 if test -z "$haveit"; then
7524 ltrpathdirs="$ltrpathdirs $dir"
7525 fi
7526 fi
7527 ;;
7528 -l*)
7529 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7530 ;;
7531 *.la)
7532 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7533 ;;
7534 *)
7535 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7536 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7537 ;;
7538 esac
7539 done
7540 fi
7541 else
7542 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7543 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7544 fi
7545 fi
7546 fi
7547 done
7548 done
7549 if test "X$rpathdirs" != "X"; then
7550 if test -n "$hardcode_libdir_separator"; then
7551 alldirs=
7552 for found_dir in $rpathdirs; do
7553 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7554 done
7555 acl_save_libdir="$libdir"
7556 libdir="$alldirs"
7557 eval flag=\"$hardcode_libdir_flag_spec\"
7558 libdir="$acl_save_libdir"
7559 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7560 else
7561 for found_dir in $rpathdirs; do
7562 acl_save_libdir="$libdir"
7563 libdir="$found_dir"
7564 eval flag=\"$hardcode_libdir_flag_spec\"
7565 libdir="$acl_save_libdir"
7566 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7567 done
7568 fi
7569 fi
7570 if test "X$ltrpathdirs" != "X"; then
7571 for found_dir in $ltrpathdirs; do
7572 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7573 done
7574 fi
7575
7576
7577 ac_save_CPPFLAGS="$CPPFLAGS"
7578
7579 for element in $INCEXPAT; do
7580 haveit=
7581 for x in $CPPFLAGS; do
7582
7583 acl_save_prefix="$prefix"
7584 prefix="$acl_final_prefix"
7585 acl_save_exec_prefix="$exec_prefix"
7586 exec_prefix="$acl_final_exec_prefix"
7587 eval x=\"$x\"
7588 exec_prefix="$acl_save_exec_prefix"
7589 prefix="$acl_save_prefix"
7590
7591 if test "X$x" = "X$element"; then
7592 haveit=yes
7593 break
7594 fi
7595 done
7596 if test -z "$haveit"; then
7597 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7598 fi
7599 done
7600
7601
7602 echo "$as_me:$LINENO: checking for libexpat" >&5
7603echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
7604if test "${ac_cv_libexpat+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607
7608 ac_save_LIBS="$LIBS"
7609 LIBS="$LIBS $LIBEXPAT"
7610 cat >conftest.$ac_ext <<_ACEOF
7611/* confdefs.h. */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h. */
7616#include "expat.h"
7617int
7618main ()
7619{
7620XML_Parser p = XML_ParserCreate (0);
7621 ;
7622 return 0;
7623}
7624_ACEOF
7625rm -f conftest.$ac_objext conftest$ac_exeext
7626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7627 (eval $ac_link) 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag"
7635 || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try='test -s conftest$ac_exeext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 ac_cv_libexpat=yes
7648else
7649 echo "$as_me: failed program was:" >&5
7650sed 's/^/| /' conftest.$ac_ext >&5
7651
7652ac_cv_libexpat=no
7653fi
7654rm -f conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
7656 LIBS="$ac_save_LIBS"
7657
7658fi
7659echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
7660echo "${ECHO_T}$ac_cv_libexpat" >&6
7661 if test "$ac_cv_libexpat" = yes; then
7662 HAVE_LIBEXPAT=yes
7663
7664cat >>confdefs.h <<\_ACEOF
7665#define HAVE_LIBEXPAT 1
7666_ACEOF
7667
7668 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
7669echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
7670 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
7671echo "${ECHO_T}$LIBEXPAT" >&6
7672 else
7673 HAVE_LIBEXPAT=no
7674 CPPFLAGS="$ac_save_CPPFLAGS"
7675 LIBEXPAT=
7676 LTLIBEXPAT=
7677 fi
7678
7679
7680
7681
7682
7683
5c39566f
DJ
7684 if test "$HAVE_LIBEXPAT" != yes; then
7685 if test "$with_expat" = yes; then
7686 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
7687echo "$as_me: error: expat is missing or unusable" >&2;}
7688 { (exit 1); exit 1; }; }
7689 else
7690 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7691echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7692 fi
7693 else
7694 save_LIBS=$LIBS
7695 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
7696
7697for ac_func in XML_StopParser
7698do
7699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7700echo "$as_me:$LINENO: checking for $ac_func" >&5
7701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7702if eval "test \"\${$as_ac_var+set}\" = set"; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705 cat >conftest.$ac_ext <<_ACEOF
7706/* confdefs.h. */
7707_ACEOF
7708cat confdefs.h >>conftest.$ac_ext
7709cat >>conftest.$ac_ext <<_ACEOF
7710/* end confdefs.h. */
7711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7713#define $ac_func innocuous_$ac_func
7714
7715/* System header to define __stub macros and hopefully few prototypes,
7716 which can conflict with char $ac_func (); below.
7717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7718 <limits.h> exists even on freestanding compilers. */
7719
7720#ifdef __STDC__
7721# include <limits.h>
7722#else
7723# include <assert.h>
7724#endif
7725
7726#undef $ac_func
7727
7728/* Override any gcc2 internal prototype to avoid an error. */
7729#ifdef __cplusplus
7730extern "C"
7731{
7732#endif
7733/* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7735char $ac_func ();
7736/* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7740choke me
7741#else
7742char (*f) () = $ac_func;
7743#endif
7744#ifdef __cplusplus
7745}
7746#endif
7747
7748int
7749main ()
7750{
7751return f != $ac_func;
7752 ;
7753 return 0;
7754}
7755_ACEOF
7756rm -f conftest.$ac_objext conftest$ac_exeext
7757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag"
7766 || test ! -s conftest.err'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 (eval $ac_try) 2>&5
7769 ac_status=$?
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; } &&
7772 { ac_try='test -s conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 eval "$as_ac_var=yes"
7779else
7780 echo "$as_me: failed program was:" >&5
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7783eval "$as_ac_var=no"
7784fi
7785rm -f conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787fi
7788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7789echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7790if test `eval echo '${'$as_ac_var'}'` = yes; then
7791 cat >>confdefs.h <<_ACEOF
7792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7793_ACEOF
7794
7795fi
7796done
7797
5c39566f
DJ
7798 LIBS=$save_LIBS
7799 fi
3841debe
DJ
7800fi
7801
bec39cab
AC
7802# ------------------------- #
7803# Checks for header files. #
7804# ------------------------- #
8ee53726 7805
0e5d83e3 7806
bec39cab
AC
7807
7808
7809
7810
7811ac_header_dirent=no
7812for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7813 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
7814echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7815echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7816if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819 cat >conftest.$ac_ext <<_ACEOF
7820/* confdefs.h. */
7821_ACEOF
7822cat confdefs.h >>conftest.$ac_ext
7823cat >>conftest.$ac_ext <<_ACEOF
7824/* end confdefs.h. */
7825#include <sys/types.h>
0e5d83e3 7826#include <$ac_hdr>
bec39cab
AC
7827
7828int
7829main ()
7830{
7831if ((DIR *) 0)
7832return 0;
7833 ;
7834 return 0;
7835}
7836_ACEOF
7837rm -f conftest.$ac_objext
7838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7839 (eval $ac_compile) 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
b4e70030
JB
7846 { ac_try='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
bec39cab
AC
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest.$ac_objext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 eval "$as_ac_Header=yes"
7860else
7861 echo "$as_me: failed program was:" >&5
7862sed 's/^/| /' conftest.$ac_ext >&5
7863
b4e70030 7864eval "$as_ac_Header=no"
bec39cab
AC
7865fi
7866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7867fi
b4e70030
JB
7868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7870if test `eval echo '${'$as_ac_Header'}'` = yes; then
7871 cat >>confdefs.h <<_ACEOF
7872#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7873_ACEOF
7874
7875ac_header_dirent=$ac_hdr; break
0e5d83e3 7876fi
0e5d83e3 7877
bec39cab
AC
7878done
7879# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7880if test $ac_header_dirent = dirent.h; then
b4e70030
JB
7881 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7882echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
7883if test "${ac_cv_search_opendir+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885else
7886 ac_func_search_save_LIBS=$LIBS
b4e70030 7887ac_cv_search_opendir=no
bec39cab
AC
7888cat >conftest.$ac_ext <<_ACEOF
7889/* confdefs.h. */
7890_ACEOF
7891cat confdefs.h >>conftest.$ac_ext
7892cat >>conftest.$ac_ext <<_ACEOF
7893/* end confdefs.h. */
0e5d83e3 7894
b4e70030 7895/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
7896#ifdef __cplusplus
7897extern "C"
7898#endif
b4e70030
JB
7899/* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
bec39cab
AC
7901char opendir ();
7902int
7903main ()
7904{
b4e70030 7905opendir ();
bec39cab
AC
7906 ;
7907 return 0;
7908}
7909_ACEOF
b4e70030 7910rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
7911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912 (eval $ac_link) 2>conftest.er1
7913 ac_status=$?
7914 grep -v '^ *+' conftest.er1 >conftest.err
7915 rm -f conftest.er1
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
b4e70030
JB
7919 { ac_try='test -z "$ac_c_werror_flag"
7920 || test ! -s conftest.err'
bec39cab
AC
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 (eval $ac_try) 2>&5
7923 ac_status=$?
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; } &&
7926 { ac_try='test -s conftest$ac_exeext'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; }; then
b4e70030 7932 ac_cv_search_opendir="none required"
bec39cab
AC
7933else
7934 echo "$as_me: failed program was:" >&5
7935sed 's/^/| /' conftest.$ac_ext >&5
7936
7937fi
bec39cab 7938rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
7939 conftest$ac_exeext conftest.$ac_ext
7940if test "$ac_cv_search_opendir" = no; then
7941 for ac_lib in dir; do
7942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7943 cat >conftest.$ac_ext <<_ACEOF
7944/* confdefs.h. */
7945_ACEOF
7946cat confdefs.h >>conftest.$ac_ext
7947cat >>conftest.$ac_ext <<_ACEOF
7948/* end confdefs.h. */
7949
7950/* Override any gcc2 internal prototype to avoid an error. */
7951#ifdef __cplusplus
7952extern "C"
7953#endif
7954/* We use char because int might match the return type of a gcc2
7955 builtin and then its argument prototype would still apply. */
7956char opendir ();
7957int
7958main ()
7959{
7960opendir ();
7961 ;
7962 return 0;
7963}
7964_ACEOF
7965rm -f conftest.$ac_objext conftest$ac_exeext
7966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967 (eval $ac_link) 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -z "$ac_c_werror_flag"
7975 || test ! -s conftest.err'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 (eval $ac_try) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; } &&
7981 { ac_try='test -s conftest$ac_exeext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_cv_search_opendir="-l$ac_lib"
7988break
4e8d927d 7989else
b4e70030
JB
7990 echo "$as_me: failed program was:" >&5
7991sed 's/^/| /' conftest.$ac_ext >&5
7992
7993fi
7994rm -f conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7996 done
0e5d83e3 7997fi
bec39cab 7998LIBS=$ac_func_search_save_LIBS
0e5d83e3 7999fi
b4e70030
JB
8000echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8001echo "${ECHO_T}$ac_cv_search_opendir" >&6
8002if test "$ac_cv_search_opendir" != no; then
8003 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8004
0e5d83e3
JJ
8005fi
8006
d28f9cdf 8007else
b4e70030
JB
8008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8009echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
8010if test "${ac_cv_search_opendir+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013 ac_func_search_save_LIBS=$LIBS
b4e70030 8014ac_cv_search_opendir=no
bec39cab
AC
8015cat >conftest.$ac_ext <<_ACEOF
8016/* confdefs.h. */
8017_ACEOF
8018cat confdefs.h >>conftest.$ac_ext
8019cat >>conftest.$ac_ext <<_ACEOF
8020/* end confdefs.h. */
d28f9cdf 8021
b4e70030 8022/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8023#ifdef __cplusplus
8024extern "C"
d28f9cdf 8025#endif
b4e70030
JB
8026/* We use char because int might match the return type of a gcc2
8027 builtin and then its argument prototype would still apply. */
bec39cab
AC
8028char opendir ();
8029int
8030main ()
8031{
b4e70030 8032opendir ();
bec39cab
AC
8033 ;
8034 return 0;
8035}
8036_ACEOF
b4e70030 8037rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
8038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
b4e70030
JB
8046 { ac_try='test -z "$ac_c_werror_flag"
8047 || test ! -s conftest.err'
bec39cab
AC
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; } &&
8053 { ac_try='test -s conftest$ac_exeext'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
b4e70030 8059 ac_cv_search_opendir="none required"
d28f9cdf 8060else
bec39cab
AC
8061 echo "$as_me: failed program was:" >&5
8062sed 's/^/| /' conftest.$ac_ext >&5
8063
d28f9cdf 8064fi
bec39cab 8065rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
8066 conftest$ac_exeext conftest.$ac_ext
8067if test "$ac_cv_search_opendir" = no; then
8068 for ac_lib in x; do
8069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8070 cat >conftest.$ac_ext <<_ACEOF
8071/* confdefs.h. */
8072_ACEOF
8073cat confdefs.h >>conftest.$ac_ext
8074cat >>conftest.$ac_ext <<_ACEOF
8075/* end confdefs.h. */
8076
8077/* Override any gcc2 internal prototype to avoid an error. */
8078#ifdef __cplusplus
8079extern "C"
8080#endif
8081/* We use char because int might match the return type of a gcc2
8082 builtin and then its argument prototype would still apply. */
8083char opendir ();
8084int
8085main ()
8086{
8087opendir ();
8088 ;
8089 return 0;
8090}
8091_ACEOF
8092rm -f conftest.$ac_objext conftest$ac_exeext
8093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8094 (eval $ac_link) 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag"
8102 || test ! -s conftest.err'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try='test -s conftest$ac_exeext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 ac_cv_search_opendir="-l$ac_lib"
8115break
4e8d927d 8116else
b4e70030
JB
8117 echo "$as_me: failed program was:" >&5
8118sed 's/^/| /' conftest.$ac_ext >&5
8119
8120fi
8121rm -f conftest.err conftest.$ac_objext \
8122 conftest$ac_exeext conftest.$ac_ext
8123 done
bec39cab
AC
8124fi
8125LIBS=$ac_func_search_save_LIBS
d28f9cdf 8126fi
b4e70030
JB
8127echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8128echo "${ECHO_T}$ac_cv_search_opendir" >&6
8129if test "$ac_cv_search_opendir" != no; then
8130 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8131
d28f9cdf
DJ
8132fi
8133
bec39cab 8134fi
b0b1c2c0 8135
b4e70030
JB
8136echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8137echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
8138if test "${ac_cv_header_stat_broken+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8140else
bec39cab
AC
8141 cat >conftest.$ac_ext <<_ACEOF
8142/* confdefs.h. */
8143_ACEOF
8144cat confdefs.h >>conftest.$ac_ext
8145cat >>conftest.$ac_ext <<_ACEOF
8146/* end confdefs.h. */
8147#include <sys/types.h>
8148#include <sys/stat.h>
b0b1c2c0 8149
b4e70030 8150#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
8151# if S_ISBLK (S_IFDIR)
8152You lose.
8153# endif
8154#endif
b0b1c2c0 8155
b4e70030 8156#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
8157# if S_ISBLK (S_IFCHR)
8158You lose.
8159# endif
8160#endif
d28f9cdf 8161
b4e70030 8162#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
8163# if S_ISLNK (S_IFREG)
8164You lose.
8165# endif
8166#endif
d28f9cdf 8167
b4e70030 8168#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
8169# if S_ISSOCK (S_IFREG)
8170You lose.
8171# endif
8172#endif
8173
8174_ACEOF
8175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8176 $EGREP "You lose" >/dev/null 2>&1; then
8177 ac_cv_header_stat_broken=yes
d28f9cdf 8178else
bec39cab 8179 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8180fi
8181rm -f conftest*
d28f9cdf 8182
d28f9cdf 8183fi
b4e70030
JB
8184echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8185echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 8186if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8187
bec39cab
AC
8188cat >>confdefs.h <<\_ACEOF
8189#define STAT_MACROS_BROKEN 1
8190_ACEOF
8bb2c122 8191
7a292a7a 8192fi
bec39cab 8193
b4e70030
JB
8194echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8195echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
8196if test "${ac_cv_header_stdc+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8198else
bec39cab
AC
8199 cat >conftest.$ac_ext <<_ACEOF
8200/* confdefs.h. */
8201_ACEOF
8202cat confdefs.h >>conftest.$ac_ext
8203cat >>conftest.$ac_ext <<_ACEOF
8204/* end confdefs.h. */
8205#include <stdlib.h>
8206#include <stdarg.h>
8207#include <string.h>
8208#include <float.h>
7a292a7a 8209
bec39cab
AC
8210int
8211main ()
8212{
7a292a7a 8213
bec39cab
AC
8214 ;
8215 return 0;
8216}
8217_ACEOF
8218rm -f conftest.$ac_objext
8219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8220 (eval $ac_compile) 2>conftest.er1
8221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
b4e70030
JB
8227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
bec39cab
AC
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest.$ac_objext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_header_stdc=yes
c906108c 8241else
bec39cab
AC
8242 echo "$as_me: failed program was:" >&5
8243sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8244
b4e70030 8245ac_cv_header_stdc=no
c906108c 8246fi
bec39cab 8247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8248
bec39cab
AC
8249if test $ac_cv_header_stdc = yes; then
8250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8251 cat >conftest.$ac_ext <<_ACEOF
8252/* confdefs.h. */
8253_ACEOF
8254cat confdefs.h >>conftest.$ac_ext
8255cat >>conftest.$ac_ext <<_ACEOF
8256/* end confdefs.h. */
8257#include <string.h>
c906108c 8258
bec39cab
AC
8259_ACEOF
8260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8261 $EGREP "memchr" >/dev/null 2>&1; then
8262 :
8bb2c122 8263else
bec39cab 8264 ac_cv_header_stdc=no
8bb2c122 8265fi
bec39cab
AC
8266rm -f conftest*
8267
c906108c
SS
8268fi
8269
bec39cab
AC
8270if test $ac_cv_header_stdc = yes; then
8271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8272 cat >conftest.$ac_ext <<_ACEOF
8273/* confdefs.h. */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
8277/* end confdefs.h. */
8278#include <stdlib.h>
8279
8280_ACEOF
8281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8282 $EGREP "free" >/dev/null 2>&1; then
8283 :
c906108c 8284else
bec39cab 8285 ac_cv_header_stdc=no
c906108c 8286fi
bec39cab
AC
8287rm -f conftest*
8288
c906108c
SS
8289fi
8290
bec39cab
AC
8291if test $ac_cv_header_stdc = yes; then
8292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8293 if test "$cross_compiling" = yes; then
8294 :
c906108c 8295else
bec39cab
AC
8296 cat >conftest.$ac_ext <<_ACEOF
8297/* confdefs.h. */
8298_ACEOF
8299cat confdefs.h >>conftest.$ac_ext
8300cat >>conftest.$ac_ext <<_ACEOF
8301/* end confdefs.h. */
8302#include <ctype.h>
8303#if ((' ' & 0x0FF) == 0x020)
8304# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8305# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8306#else
8307# define ISLOWER(c) \
8308 (('a' <= (c) && (c) <= 'i') \
8309 || ('j' <= (c) && (c) <= 'r') \
8310 || ('s' <= (c) && (c) <= 'z'))
8311# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8312#endif
8313
8314#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8315int
8316main ()
8317{
8318 int i;
8319 for (i = 0; i < 256; i++)
8320 if (XOR (islower (i), ISLOWER (i))
8321 || toupper (i) != TOUPPER (i))
b4e70030
JB
8322 exit(2);
8323 exit (0);
bec39cab
AC
8324}
8325_ACEOF
8326rm -f conftest$ac_exeext
8327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8328 (eval $ac_link) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 :
8338else
8339 echo "$as_me: program exited with status $ac_status" >&5
8340echo "$as_me: failed program was:" >&5
8341sed 's/^/| /' conftest.$ac_ext >&5
8342
8343( exit $ac_status )
8344ac_cv_header_stdc=no
c906108c 8345fi
b4e70030 8346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8347fi
c906108c 8348fi
bec39cab 8349fi
b4e70030
JB
8350echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8351echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 8352if test $ac_cv_header_stdc = yes; then
c906108c 8353
bec39cab
AC
8354cat >>confdefs.h <<\_ACEOF
8355#define STDC_HEADERS 1
8356_ACEOF
c906108c 8357
bec39cab 8358fi
8bb2c122 8359
bec39cab 8360
7cb9022a 8361for ac_header in nlist.h
bec39cab
AC
8362do
8363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8364if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365 echo "$as_me:$LINENO: checking for $ac_header" >&5
8366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8367if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369fi
b4e70030
JB
8370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8372else
8373 # Is the header compilable?
b4e70030
JB
8374echo "$as_me:$LINENO: checking $ac_header usability" >&5
8375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8376cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
8382$ac_includes_default
8383#include <$ac_header>
8384_ACEOF
8385rm -f conftest.$ac_objext
8386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
b4e70030
JB
8394 { ac_try='test -z "$ac_c_werror_flag"
8395 || test ! -s conftest.err'
bec39cab
AC
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_header_compiler=yes
8408else
8409 echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
b4e70030 8412ac_header_compiler=no
bec39cab
AC
8413fi
8414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8416echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8417
8418# Is the header present?
b4e70030
JB
8419echo "$as_me:$LINENO: checking $ac_header presence" >&5
8420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8421cat >conftest.$ac_ext <<_ACEOF
8422/* confdefs.h. */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h. */
8427#include <$ac_header>
8428_ACEOF
8429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev/null; then
8437 if test -s conftest.err; then
8438 ac_cpp_err=$ac_c_preproc_warn_flag
8439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8440 else
8441 ac_cpp_err=
8442 fi
c906108c 8443else
bec39cab 8444 ac_cpp_err=yes
c906108c 8445fi
bec39cab
AC
8446if test -z "$ac_cpp_err"; then
8447 ac_header_preproc=yes
c906108c 8448else
bec39cab
AC
8449 echo "$as_me: failed program was:" >&5
8450sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 8451
bec39cab
AC
8452 ac_header_preproc=no
8453fi
8454rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8456echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8457
bec39cab
AC
8458# So? What about this header?
8459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8460 yes:no: )
8461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8465 ac_header_preproc=yes
8466 ;;
8467 no:yes:* )
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8480 (
8481 cat <<\_ASBOX
8482## ------------------------------------------ ##
8483## Report this to the AC_PACKAGE_NAME lists. ##
8484## ------------------------------------------ ##
8485_ASBOX
8486 ) |
8487 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8488 ;;
8489esac
b4e70030
JB
8490echo "$as_me:$LINENO: checking for $ac_header" >&5
8491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8492if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8493 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 8494else
bec39cab 8495 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 8496fi
b4e70030
JB
8497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8499
95ca63c4 8500fi
bec39cab
AC
8501if test `eval echo '${'$as_ac_Header'}'` = yes; then
8502 cat >>confdefs.h <<_ACEOF
8503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8504_ACEOF
8505
95ca63c4
CF
8506fi
8507
bec39cab 8508done
95ca63c4
CF
8509
8510
7cb9022a 8511for ac_header in link.h
bec39cab
AC
8512do
8513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8514echo "$as_me:$LINENO: checking for $ac_header" >&5
8515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8516if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8517 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 8518else
7cb9022a 8519 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
8520/* confdefs.h. */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h. */
7cb9022a
MK
8525#if HAVE_SYS_TYPES_H
8526# include <sys/types.h>
8527#endif
8528#if HAVE_NLIST_H
8529# include <nlist.h>
8530#endif
8531
8532
bec39cab
AC
8533#include <$ac_header>
8534_ACEOF
8535rm -f conftest.$ac_objext
8536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
b4e70030
JB
8544 { ac_try='test -z "$ac_c_werror_flag"
8545 || test ! -s conftest.err'
bec39cab
AC
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
7cb9022a 8557 eval "$as_ac_Header=yes"
bec39cab
AC
8558else
8559 echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
b4e70030 8562eval "$as_ac_Header=no"
bec39cab
AC
8563fi
8564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 8565fi
b4e70030
JB
8566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8568if test `eval echo '${'$as_ac_Header'}'` = yes; then
8569 cat >>confdefs.h <<_ACEOF
8570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571_ACEOF
95ca63c4 8572
bec39cab 8573fi
95ca63c4 8574
bec39cab 8575done
95ca63c4 8576
c906108c 8577
7cb9022a 8578for ac_header in machine/reg.h
bec39cab
AC
8579do
8580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8581if eval "test \"\${$as_ac_Header+set}\" = set"; then
8582 echo "$as_me:$LINENO: checking for $ac_header" >&5
8583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8584if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586fi
b4e70030
JB
8587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8589else
8590 # Is the header compilable?
b4e70030
JB
8591echo "$as_me:$LINENO: checking $ac_header usability" >&5
8592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8593cat >conftest.$ac_ext <<_ACEOF
8594/* confdefs.h. */
8595_ACEOF
8596cat confdefs.h >>conftest.$ac_ext
8597cat >>conftest.$ac_ext <<_ACEOF
8598/* end confdefs.h. */
8599$ac_includes_default
8600#include <$ac_header>
8601_ACEOF
8602rm -f conftest.$ac_objext
8603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604 (eval $ac_compile) 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
b4e70030
JB
8611 { ac_try='test -z "$ac_c_werror_flag"
8612 || test ! -s conftest.err'
bec39cab
AC
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest.$ac_objext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 ac_header_compiler=yes
8625else
8626 echo "$as_me: failed program was:" >&5
8627sed 's/^/| /' conftest.$ac_ext >&5
8628
b4e70030 8629ac_header_compiler=no
bec39cab
AC
8630fi
8631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8633echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8634
8635# Is the header present?
b4e70030
JB
8636echo "$as_me:$LINENO: checking $ac_header presence" >&5
8637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8638cat >conftest.$ac_ext <<_ACEOF
8639/* confdefs.h. */
8640_ACEOF
8641cat confdefs.h >>conftest.$ac_ext
8642cat >>conftest.$ac_ext <<_ACEOF
8643/* end confdefs.h. */
8644#include <$ac_header>
8645_ACEOF
8646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8648 ac_status=$?
8649 grep -v '^ *+' conftest.er1 >conftest.err
8650 rm -f conftest.er1
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } >/dev/null; then
8654 if test -s conftest.err; then
8655 ac_cpp_err=$ac_c_preproc_warn_flag
8656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8657 else
8658 ac_cpp_err=
8659 fi
75c6e08a 8660else
bec39cab 8661 ac_cpp_err=yes
75c6e08a 8662fi
bec39cab
AC
8663if test -z "$ac_cpp_err"; then
8664 ac_header_preproc=yes
8665else
8666 echo "$as_me: failed program was:" >&5
8667sed 's/^/| /' conftest.$ac_ext >&5
8668
8669 ac_header_preproc=no
75c6e08a 8670fi
bec39cab 8671rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8673echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8674
8675# So? What about this header?
8676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8677 yes:no: )
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8682 ac_header_preproc=yes
8683 ;;
8684 no:yes:* )
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8697 (
8698 cat <<\_ASBOX
8699## ------------------------------------------ ##
8700## Report this to the AC_PACKAGE_NAME lists. ##
8701## ------------------------------------------ ##
8702_ASBOX
8703 ) |
8704 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8705 ;;
8706esac
b4e70030
JB
8707echo "$as_me:$LINENO: checking for $ac_header" >&5
8708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8709if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8710 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 8711else
bec39cab
AC
8712 eval "$as_ac_Header=\$ac_header_preproc"
8713fi
b4e70030
JB
8714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8716
75c6e08a 8717fi
bec39cab
AC
8718if test `eval echo '${'$as_ac_Header'}'` = yes; then
8719 cat >>confdefs.h <<_ACEOF
8720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8721_ACEOF
75c6e08a 8722
bec39cab 8723fi
75c6e08a 8724
bec39cab 8725done
75c6e08a
MK
8726
8727
9a156167 8728
bec39cab
AC
8729for ac_header in poll.h sys/poll.h
8730do
8731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8732if eval "test \"\${$as_ac_Header+set}\" = set"; then
8733 echo "$as_me:$LINENO: checking for $ac_header" >&5
8734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8735if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737fi
b4e70030
JB
8738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8739echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8740else
8741 # Is the header compilable?
b4e70030
JB
8742echo "$as_me:$LINENO: checking $ac_header usability" >&5
8743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8744cat >conftest.$ac_ext <<_ACEOF
8745/* confdefs.h. */
8746_ACEOF
8747cat confdefs.h >>conftest.$ac_ext
8748cat >>conftest.$ac_ext <<_ACEOF
8749/* end confdefs.h. */
8750$ac_includes_default
8751#include <$ac_header>
8752_ACEOF
8753rm -f conftest.$ac_objext
8754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
b4e70030
JB
8762 { ac_try='test -z "$ac_c_werror_flag"
8763 || test ! -s conftest.err'
bec39cab
AC
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest.$ac_objext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 (eval $ac_try) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_header_compiler=yes
8776else
8777 echo "$as_me: failed program was:" >&5
8778sed 's/^/| /' conftest.$ac_ext >&5
8779
b4e70030 8780ac_header_compiler=no
bec39cab
AC
8781fi
8782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8784echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8785
8786# Is the header present?
b4e70030
JB
8787echo "$as_me:$LINENO: checking $ac_header presence" >&5
8788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8789cat >conftest.$ac_ext <<_ACEOF
8790/* confdefs.h. */
8791_ACEOF
8792cat confdefs.h >>conftest.$ac_ext
8793cat >>conftest.$ac_ext <<_ACEOF
8794/* end confdefs.h. */
8795#include <$ac_header>
8796_ACEOF
8797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } >/dev/null; then
8805 if test -s conftest.err; then
8806 ac_cpp_err=$ac_c_preproc_warn_flag
8807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8808 else
8809 ac_cpp_err=
8810 fi
9a156167 8811else
bec39cab 8812 ac_cpp_err=yes
9a156167 8813fi
bec39cab
AC
8814if test -z "$ac_cpp_err"; then
8815 ac_header_preproc=yes
8816else
8817 echo "$as_me: failed program was:" >&5
8818sed 's/^/| /' conftest.$ac_ext >&5
9a156167 8819
bec39cab 8820 ac_header_preproc=no
9a156167 8821fi
bec39cab 8822rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8824echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 8825
bec39cab
AC
8826# So? What about this header?
8827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8828 yes:no: )
8829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8832echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8833 ac_header_preproc=yes
8834 ;;
8835 no:yes:* )
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8839echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8841echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8843echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8847echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8848 (
8849 cat <<\_ASBOX
8850## ------------------------------------------ ##
8851## Report this to the AC_PACKAGE_NAME lists. ##
8852## ------------------------------------------ ##
8853_ASBOX
8854 ) |
8855 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8856 ;;
8857esac
b4e70030
JB
8858echo "$as_me:$LINENO: checking for $ac_header" >&5
8859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8860if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8861 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8862else
bec39cab 8863 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8864fi
b4e70030
JB
8865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 8867
bec39cab
AC
8868fi
8869if test `eval echo '${'$as_ac_Header'}'` = yes; then
8870 cat >>confdefs.h <<_ACEOF
8871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8872_ACEOF
9a156167 8873
bec39cab 8874fi
9a156167 8875
bec39cab 8876done
9a156167 8877
9a156167 8878
9a156167 8879
bec39cab
AC
8880
8881for ac_header in proc_service.h thread_db.h gnu/libc-version.h
8882do
8883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8884if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885 echo "$as_me:$LINENO: checking for $ac_header" >&5
8886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8887if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889fi
b4e70030
JB
8890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8892else
8893 # Is the header compilable?
b4e70030
JB
8894echo "$as_me:$LINENO: checking $ac_header usability" >&5
8895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8896cat >conftest.$ac_ext <<_ACEOF
8897/* confdefs.h. */
8898_ACEOF
8899cat confdefs.h >>conftest.$ac_ext
8900cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
8901/* end confdefs.h. */
8902$ac_includes_default
8903#include <$ac_header>
8904_ACEOF
8905rm -f conftest.$ac_objext
8906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8907 (eval $ac_compile) 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -z "$ac_c_werror_flag"
8915 || test ! -s conftest.err'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 (eval $ac_try) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; } &&
8921 { ac_try='test -s conftest.$ac_objext'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 (eval $ac_try) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
8927 ac_header_compiler=yes
8928else
8929 echo "$as_me: failed program was:" >&5
8930sed 's/^/| /' conftest.$ac_ext >&5
8931
8932ac_header_compiler=no
8933fi
8934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8935echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8936echo "${ECHO_T}$ac_header_compiler" >&6
8937
8938# Is the header present?
8939echo "$as_me:$LINENO: checking $ac_header presence" >&5
8940echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8941cat >conftest.$ac_ext <<_ACEOF
8942/* confdefs.h. */
8943_ACEOF
8944cat confdefs.h >>conftest.$ac_ext
8945cat >>conftest.$ac_ext <<_ACEOF
8946/* end confdefs.h. */
8947#include <$ac_header>
8948_ACEOF
8949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8951 ac_status=$?
8952 grep -v '^ *+' conftest.er1 >conftest.err
8953 rm -f conftest.er1
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } >/dev/null; then
8957 if test -s conftest.err; then
8958 ac_cpp_err=$ac_c_preproc_warn_flag
8959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8960 else
8961 ac_cpp_err=
8962 fi
8963else
8964 ac_cpp_err=yes
8965fi
8966if test -z "$ac_cpp_err"; then
8967 ac_header_preproc=yes
8968else
8969 echo "$as_me: failed program was:" >&5
8970sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ac_header_preproc=no
8973fi
8974rm -f conftest.err conftest.$ac_ext
8975echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8976echo "${ECHO_T}$ac_header_preproc" >&6
8977
8978# So? What about this header?
8979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8980 yes:no: )
8981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8984echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8985 ac_header_preproc=yes
8986 ;;
8987 no:yes:* )
8988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8991echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8993echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8995echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8997echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8999echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9000 (
9001 cat <<\_ASBOX
9002## ------------------------------------------ ##
9003## Report this to the AC_PACKAGE_NAME lists. ##
9004## ------------------------------------------ ##
9005_ASBOX
9006 ) |
9007 sed "s/^/$as_me: WARNING: /" >&2
9008 ;;
9009esac
9010echo "$as_me:$LINENO: checking for $ac_header" >&5
9011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9012if eval "test \"\${$as_ac_Header+set}\" = set"; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014else
9015 eval "$as_ac_Header=\$ac_header_preproc"
9016fi
9017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9019
9020fi
9021if test `eval echo '${'$as_ac_Header'}'` = yes; then
9022 cat >>confdefs.h <<_ACEOF
9023#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9024_ACEOF
9025
9026fi
9027
9028done
9029
9030
9031for ac_header in signal.h
9032do
9033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9034if eval "test \"\${$as_ac_Header+set}\" = set"; then
9035 echo "$as_me:$LINENO: checking for $ac_header" >&5
9036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9037if eval "test \"\${$as_ac_Header+set}\" = set"; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039fi
9040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9042else
9043 # Is the header compilable?
9044echo "$as_me:$LINENO: checking $ac_header usability" >&5
9045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9046cat >conftest.$ac_ext <<_ACEOF
9047/* confdefs.h. */
9048_ACEOF
9049cat confdefs.h >>conftest.$ac_ext
9050cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
9051/* end confdefs.h. */
9052$ac_includes_default
9053#include <$ac_header>
9054_ACEOF
9055rm -f conftest.$ac_objext
9056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
b4e70030
JB
9064 { ac_try='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
bec39cab
AC
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 (eval $ac_try) 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_header_compiler=yes
9078else
9079 echo "$as_me: failed program was:" >&5
9080sed 's/^/| /' conftest.$ac_ext >&5
9081
b4e70030 9082ac_header_compiler=no
bec39cab
AC
9083fi
9084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9085echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9086echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9087
9088# Is the header present?
b4e70030
JB
9089echo "$as_me:$LINENO: checking $ac_header presence" >&5
9090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9091cat >conftest.$ac_ext <<_ACEOF
9092/* confdefs.h. */
9093_ACEOF
9094cat confdefs.h >>conftest.$ac_ext
9095cat >>conftest.$ac_ext <<_ACEOF
9096/* end confdefs.h. */
9097#include <$ac_header>
9098_ACEOF
9099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } >/dev/null; then
9107 if test -s conftest.err; then
9108 ac_cpp_err=$ac_c_preproc_warn_flag
9109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9110 else
9111 ac_cpp_err=
9112 fi
9a156167 9113else
bec39cab 9114 ac_cpp_err=yes
9a156167 9115fi
bec39cab
AC
9116if test -z "$ac_cpp_err"; then
9117 ac_header_preproc=yes
9118else
9119 echo "$as_me: failed program was:" >&5
9120sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9121
bec39cab 9122 ac_header_preproc=no
9a156167 9123fi
bec39cab 9124rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9125echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9126echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9127
bec39cab
AC
9128# So? What about this header?
9129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9130 yes:no: )
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9135 ac_header_preproc=yes
9136 ;;
9137 no:yes:* )
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9141echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9145echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9150 (
9151 cat <<\_ASBOX
9152## ------------------------------------------ ##
9153## Report this to the AC_PACKAGE_NAME lists. ##
9154## ------------------------------------------ ##
9155_ASBOX
9156 ) |
9157 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9158 ;;
9159esac
b4e70030
JB
9160echo "$as_me:$LINENO: checking for $ac_header" >&5
9161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9162if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9164else
bec39cab 9165 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9166fi
b4e70030
JB
9167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9169
9170fi
bec39cab
AC
9171if test `eval echo '${'$as_ac_Header'}'` = yes; then
9172 cat >>confdefs.h <<_ACEOF
9173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9174_ACEOF
9a156167 9175
bec39cab
AC
9176fi
9177
9178done
9a156167 9179
c890192f 9180
bec39cab
AC
9181for ac_header in stddef.h
9182do
9183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9184if eval "test \"\${$as_ac_Header+set}\" = set"; then
9185 echo "$as_me:$LINENO: checking for $ac_header" >&5
9186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9187if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189fi
b4e70030
JB
9190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9192else
9193 # Is the header compilable?
b4e70030
JB
9194echo "$as_me:$LINENO: checking $ac_header usability" >&5
9195echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9196cat >conftest.$ac_ext <<_ACEOF
9197/* confdefs.h. */
9198_ACEOF
9199cat confdefs.h >>conftest.$ac_ext
9200cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h. */
9202$ac_includes_default
9203#include <$ac_header>
9204_ACEOF
9205rm -f conftest.$ac_objext
9206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9207 (eval $ac_compile) 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
b4e70030
JB
9214 { ac_try='test -z "$ac_c_werror_flag"
9215 || test ! -s conftest.err'
bec39cab
AC
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 (eval $ac_try) 2>&5
9218 ac_status=$?
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; } &&
9221 { ac_try='test -s conftest.$ac_objext'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; }; then
9227 ac_header_compiler=yes
9228else
9229 echo "$as_me: failed program was:" >&5
9230sed 's/^/| /' conftest.$ac_ext >&5
9231
b4e70030 9232ac_header_compiler=no
bec39cab
AC
9233fi
9234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9235echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9236echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9237
9238# Is the header present?
b4e70030
JB
9239echo "$as_me:$LINENO: checking $ac_header presence" >&5
9240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9241cat >conftest.$ac_ext <<_ACEOF
9242/* confdefs.h. */
9243_ACEOF
9244cat confdefs.h >>conftest.$ac_ext
9245cat >>conftest.$ac_ext <<_ACEOF
9246/* end confdefs.h. */
9247#include <$ac_header>
9248_ACEOF
9249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } >/dev/null; then
9257 if test -s conftest.err; then
9258 ac_cpp_err=$ac_c_preproc_warn_flag
9259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9260 else
9261 ac_cpp_err=
9262 fi
c890192f 9263else
bec39cab
AC
9264 ac_cpp_err=yes
9265fi
9266if test -z "$ac_cpp_err"; then
9267 ac_header_preproc=yes
c890192f 9268else
bec39cab
AC
9269 echo "$as_me: failed program was:" >&5
9270sed 's/^/| /' conftest.$ac_ext >&5
9271
9272 ac_header_preproc=no
c890192f 9273fi
bec39cab 9274rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9275echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9276echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9277
9278# So? What about this header?
9279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9280 yes:no: )
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9285 ac_header_preproc=yes
9286 ;;
9287 no:yes:* )
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9300 (
9301 cat <<\_ASBOX
9302## ------------------------------------------ ##
9303## Report this to the AC_PACKAGE_NAME lists. ##
9304## ------------------------------------------ ##
9305_ASBOX
9306 ) |
9307 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9308 ;;
9309esac
b4e70030
JB
9310echo "$as_me:$LINENO: checking for $ac_header" >&5
9311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9312if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9313 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9314else
bec39cab 9315 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9316fi
b4e70030
JB
9317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9319
c890192f 9320fi
bec39cab
AC
9321if test `eval echo '${'$as_ac_Header'}'` = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9324_ACEOF
c890192f 9325
c890192f
MK
9326fi
9327
bec39cab 9328done
9a156167 9329
bec39cab
AC
9330
9331for ac_header in stdlib.h
9332do
9333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9334if eval "test \"\${$as_ac_Header+set}\" = set"; then
9335 echo "$as_me:$LINENO: checking for $ac_header" >&5
9336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9337if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9339fi
b4e70030
JB
9340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9342else
9343 # Is the header compilable?
b4e70030
JB
9344echo "$as_me:$LINENO: checking $ac_header usability" >&5
9345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9346cat >conftest.$ac_ext <<_ACEOF
9347/* confdefs.h. */
9348_ACEOF
9349cat confdefs.h >>conftest.$ac_ext
9350cat >>conftest.$ac_ext <<_ACEOF
9351/* end confdefs.h. */
9352$ac_includes_default
9353#include <$ac_header>
9354_ACEOF
9355rm -f conftest.$ac_objext
9356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
b4e70030
JB
9364 { ac_try='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
bec39cab
AC
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest.$ac_objext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_header_compiler=yes
9378else
9379 echo "$as_me: failed program was:" >&5
9380sed 's/^/| /' conftest.$ac_ext >&5
9381
b4e70030 9382ac_header_compiler=no
bec39cab
AC
9383fi
9384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9386echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9387
9388# Is the header present?
b4e70030
JB
9389echo "$as_me:$LINENO: checking $ac_header presence" >&5
9390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9391cat >conftest.$ac_ext <<_ACEOF
9392/* confdefs.h. */
9393_ACEOF
9394cat confdefs.h >>conftest.$ac_ext
9395cat >>conftest.$ac_ext <<_ACEOF
9396/* end confdefs.h. */
9397#include <$ac_header>
9398_ACEOF
9399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } >/dev/null; then
9407 if test -s conftest.err; then
9408 ac_cpp_err=$ac_c_preproc_warn_flag
9409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9410 else
9411 ac_cpp_err=
9412 fi
9a156167 9413else
bec39cab
AC
9414 ac_cpp_err=yes
9415fi
9416if test -z "$ac_cpp_err"; then
9417 ac_header_preproc=yes
9a156167 9418else
bec39cab
AC
9419 echo "$as_me: failed program was:" >&5
9420sed 's/^/| /' conftest.$ac_ext >&5
9421
9422 ac_header_preproc=no
9a156167 9423fi
bec39cab 9424rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9426echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9427
9428# So? What about this header?
9429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9430 yes:no: )
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9435 ac_header_preproc=yes
9436 ;;
9437 no:yes:* )
9438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9450 (
9451 cat <<\_ASBOX
9452## ------------------------------------------ ##
9453## Report this to the AC_PACKAGE_NAME lists. ##
9454## ------------------------------------------ ##
9455_ASBOX
9456 ) |
9457 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9458 ;;
9459esac
b4e70030
JB
9460echo "$as_me:$LINENO: checking for $ac_header" >&5
9461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9462if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9464else
bec39cab 9465 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9466fi
b4e70030
JB
9467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9469
9a156167 9470fi
bec39cab
AC
9471if test `eval echo '${'$as_ac_Header'}'` = yes; then
9472 cat >>confdefs.h <<_ACEOF
9473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9474_ACEOF
9a156167 9475
9a156167
MK
9476fi
9477
bec39cab
AC
9478done
9479
06825bd1 9480
bec39cab
AC
9481for ac_header in stdint.h
9482do
9483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9484if eval "test \"\${$as_ac_Header+set}\" = set"; then
9485 echo "$as_me:$LINENO: checking for $ac_header" >&5
9486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9487if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489fi
b4e70030
JB
9490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9492else
9493 # Is the header compilable?
b4e70030
JB
9494echo "$as_me:$LINENO: checking $ac_header usability" >&5
9495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9496cat >conftest.$ac_ext <<_ACEOF
9497/* confdefs.h. */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h. */
9502$ac_includes_default
9503#include <$ac_header>
9504_ACEOF
9505rm -f conftest.$ac_objext
9506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507 (eval $ac_compile) 2>conftest.er1
9508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } &&
b4e70030
JB
9514 { ac_try='test -z "$ac_c_werror_flag"
9515 || test ! -s conftest.err'
bec39cab
AC
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; } &&
9521 { ac_try='test -s conftest.$ac_objext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9527 ac_header_compiler=yes
9528else
9529 echo "$as_me: failed program was:" >&5
9530sed 's/^/| /' conftest.$ac_ext >&5
9531
b4e70030 9532ac_header_compiler=no
bec39cab
AC
9533fi
9534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9535echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9536echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9537
9538# Is the header present?
b4e70030
JB
9539echo "$as_me:$LINENO: checking $ac_header presence" >&5
9540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9541cat >conftest.$ac_ext <<_ACEOF
9542/* confdefs.h. */
9543_ACEOF
9544cat confdefs.h >>conftest.$ac_ext
9545cat >>conftest.$ac_ext <<_ACEOF
9546/* end confdefs.h. */
9547#include <$ac_header>
9548_ACEOF
9549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } >/dev/null; then
9557 if test -s conftest.err; then
9558 ac_cpp_err=$ac_c_preproc_warn_flag
9559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9560 else
9561 ac_cpp_err=
9562 fi
06825bd1 9563else
bec39cab
AC
9564 ac_cpp_err=yes
9565fi
9566if test -z "$ac_cpp_err"; then
9567 ac_header_preproc=yes
06825bd1 9568else
bec39cab
AC
9569 echo "$as_me: failed program was:" >&5
9570sed 's/^/| /' conftest.$ac_ext >&5
9571
9572 ac_header_preproc=no
06825bd1 9573fi
bec39cab 9574rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9575echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9576echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9577
9578# So? What about this header?
9579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9580 yes:no: )
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9584echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9585 ac_header_preproc=yes
9586 ;;
9587 no:yes:* )
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9593echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9595echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9599echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9600 (
9601 cat <<\_ASBOX
9602## ------------------------------------------ ##
9603## Report this to the AC_PACKAGE_NAME lists. ##
9604## ------------------------------------------ ##
9605_ASBOX
9606 ) |
9607 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9608 ;;
9609esac
b4e70030
JB
9610echo "$as_me:$LINENO: checking for $ac_header" >&5
9611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9612if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9613 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 9614else
bec39cab 9615 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 9616fi
b4e70030
JB
9617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9619
06825bd1 9620fi
bec39cab
AC
9621if test `eval echo '${'$as_ac_Header'}'` = yes; then
9622 cat >>confdefs.h <<_ACEOF
9623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9624_ACEOF
06825bd1 9625
06825bd1 9626fi
4f0be353 9627
bec39cab 9628done
4f0be353 9629
06825bd1 9630
06825bd1 9631
bec39cab
AC
9632
9633for ac_header in string.h memory.h strings.h
9634do
9635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9636if eval "test \"\${$as_ac_Header+set}\" = set"; then
9637 echo "$as_me:$LINENO: checking for $ac_header" >&5
9638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9639if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641fi
b4e70030
JB
9642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9644else
9645 # Is the header compilable?
b4e70030
JB
9646echo "$as_me:$LINENO: checking $ac_header usability" >&5
9647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9648cat >conftest.$ac_ext <<_ACEOF
9649/* confdefs.h. */
9650_ACEOF
9651cat confdefs.h >>conftest.$ac_ext
9652cat >>conftest.$ac_ext <<_ACEOF
9653/* end confdefs.h. */
9654$ac_includes_default
9655#include <$ac_header>
9656_ACEOF
9657rm -f conftest.$ac_objext
9658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9659 (eval $ac_compile) 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
b4e70030
JB
9666 { ac_try='test -z "$ac_c_werror_flag"
9667 || test ! -s conftest.err'
bec39cab
AC
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 (eval $ac_try) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; } &&
9673 { ac_try='test -s conftest.$ac_objext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_header_compiler=yes
9680else
9681 echo "$as_me: failed program was:" >&5
9682sed 's/^/| /' conftest.$ac_ext >&5
9683
b4e70030 9684ac_header_compiler=no
bec39cab
AC
9685fi
9686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9688echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9689
9690# Is the header present?
b4e70030
JB
9691echo "$as_me:$LINENO: checking $ac_header presence" >&5
9692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9693cat >conftest.$ac_ext <<_ACEOF
9694/* confdefs.h. */
9695_ACEOF
9696cat confdefs.h >>conftest.$ac_ext
9697cat >>conftest.$ac_ext <<_ACEOF
9698/* end confdefs.h. */
9699#include <$ac_header>
9700_ACEOF
9701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } >/dev/null; then
9709 if test -s conftest.err; then
9710 ac_cpp_err=$ac_c_preproc_warn_flag
9711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9712 else
9713 ac_cpp_err=
9714 fi
06825bd1 9715else
bec39cab
AC
9716 ac_cpp_err=yes
9717fi
9718if test -z "$ac_cpp_err"; then
9719 ac_header_preproc=yes
06825bd1 9720else
bec39cab
AC
9721 echo "$as_me: failed program was:" >&5
9722sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 ac_header_preproc=no
06825bd1 9725fi
bec39cab 9726rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9728echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9729
9730# So? What about this header?
9731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9732 yes:no: )
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9737 ac_header_preproc=yes
9738 ;;
9739 no:yes:* )
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9752 (
9753 cat <<\_ASBOX
9754## ------------------------------------------ ##
9755## Report this to the AC_PACKAGE_NAME lists. ##
9756## ------------------------------------------ ##
9757_ASBOX
9758 ) |
9759 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9760 ;;
9761esac
b4e70030
JB
9762echo "$as_me:$LINENO: checking for $ac_header" >&5
9763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9764if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766else
9767 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 9768fi
b4e70030
JB
9769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 9771
06825bd1 9772fi
bec39cab
AC
9773if test `eval echo '${'$as_ac_Header'}'` = yes; then
9774 cat >>confdefs.h <<_ACEOF
9775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9776_ACEOF
06825bd1 9777
06825bd1
MK
9778fi
9779
bec39cab 9780done
5ee754fc 9781
bec39cab
AC
9782
9783for ac_header in sys/fault.h
5ee754fc 9784do
bec39cab 9785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9786if eval "test \"\${$as_ac_Header+set}\" = set"; then
9787 echo "$as_me:$LINENO: checking for $ac_header" >&5
9788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9789if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791fi
b4e70030
JB
9792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9794else
9795 # Is the header compilable?
b4e70030
JB
9796echo "$as_me:$LINENO: checking $ac_header usability" >&5
9797echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9798cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h. */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h. */
9804$ac_includes_default
9805#include <$ac_header>
9806_ACEOF
9807rm -f conftest.$ac_objext
9808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>conftest.er1
9810 ac_status=$?
9811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
b4e70030
JB
9816 { ac_try='test -z "$ac_c_werror_flag"
9817 || test ! -s conftest.err'
bec39cab
AC
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest.$ac_objext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 (eval $ac_try) 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_header_compiler=yes
9830else
9831 echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
b4e70030 9834ac_header_compiler=no
bec39cab
AC
9835fi
9836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9838echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9839
9840# Is the header present?
b4e70030
JB
9841echo "$as_me:$LINENO: checking $ac_header presence" >&5
9842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9843cat >conftest.$ac_ext <<_ACEOF
9844/* confdefs.h. */
9845_ACEOF
9846cat confdefs.h >>conftest.$ac_ext
9847cat >>conftest.$ac_ext <<_ACEOF
9848/* end confdefs.h. */
9849#include <$ac_header>
9850_ACEOF
9851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } >/dev/null; then
9859 if test -s conftest.err; then
9860 ac_cpp_err=$ac_c_preproc_warn_flag
9861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9862 else
9863 ac_cpp_err=
9864 fi
5ee754fc 9865else
bec39cab 9866 ac_cpp_err=yes
5ee754fc 9867fi
bec39cab
AC
9868if test -z "$ac_cpp_err"; then
9869 ac_header_preproc=yes
9870else
9871 echo "$as_me: failed program was:" >&5
9872sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9873
bec39cab 9874 ac_header_preproc=no
5ee754fc 9875fi
bec39cab 9876rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9878echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9879
9880# So? What about this header?
9881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9882 yes:no: )
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9887 ac_header_preproc=yes
9888 ;;
9889 no:yes:* )
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9902 (
9903 cat <<\_ASBOX
9904## ------------------------------------------ ##
9905## Report this to the AC_PACKAGE_NAME lists. ##
9906## ------------------------------------------ ##
9907_ASBOX
9908 ) |
9909 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9910 ;;
9911esac
b4e70030
JB
9912echo "$as_me:$LINENO: checking for $ac_header" >&5
9913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9914if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9915 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9916else
bec39cab 9917 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 9918fi
b4e70030
JB
9919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 9921
5ee754fc 9922fi
bec39cab
AC
9923if test `eval echo '${'$as_ac_Header'}'` = yes; then
9924 cat >>confdefs.h <<_ACEOF
9925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9926_ACEOF
c906108c 9927
5ee754fc 9928fi
bec39cab
AC
9929
9930done
9931
9932
9933for ac_header in sys/file.h
9934do
9935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9936if eval "test \"\${$as_ac_Header+set}\" = set"; then
9937 echo "$as_me:$LINENO: checking for $ac_header" >&5
9938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9939if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9941fi
b4e70030
JB
9942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9944else
9945 # Is the header compilable?
b4e70030
JB
9946echo "$as_me:$LINENO: checking $ac_header usability" >&5
9947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9948cat >conftest.$ac_ext <<_ACEOF
9949/* confdefs.h. */
9950_ACEOF
9951cat confdefs.h >>conftest.$ac_ext
9952cat >>conftest.$ac_ext <<_ACEOF
9953/* end confdefs.h. */
9954$ac_includes_default
9955#include <$ac_header>
9956_ACEOF
9957rm -f conftest.$ac_objext
9958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9959 (eval $ac_compile) 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
b4e70030
JB
9966 { ac_try='test -z "$ac_c_werror_flag"
9967 || test ! -s conftest.err'
bec39cab
AC
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest.$ac_objext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_header_compiler=yes
9980else
9981 echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
b4e70030 9984ac_header_compiler=no
bec39cab
AC
9985fi
9986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9987echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9988echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9989
9990# Is the header present?
b4e70030
JB
9991echo "$as_me:$LINENO: checking $ac_header presence" >&5
9992echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9993cat >conftest.$ac_ext <<_ACEOF
9994/* confdefs.h. */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h. */
9999#include <$ac_header>
10000_ACEOF
10001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10003 ac_status=$?
10004 grep -v '^ *+' conftest.er1 >conftest.err
10005 rm -f conftest.er1
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } >/dev/null; then
10009 if test -s conftest.err; then
10010 ac_cpp_err=$ac_c_preproc_warn_flag
10011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10012 else
10013 ac_cpp_err=
10014 fi
5ee754fc 10015else
bec39cab 10016 ac_cpp_err=yes
5ee754fc 10017fi
bec39cab
AC
10018if test -z "$ac_cpp_err"; then
10019 ac_header_preproc=yes
10020else
10021 echo "$as_me: failed program was:" >&5
10022sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10023
bec39cab 10024 ac_header_preproc=no
5ee754fc 10025fi
bec39cab 10026rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10027echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10028echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10029
bec39cab
AC
10030# So? What about this header?
10031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10032 yes:no: )
10033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10034echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10036echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10037 ac_header_preproc=yes
10038 ;;
10039 no:yes:* )
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10045echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10047echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10049echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10051echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10052 (
10053 cat <<\_ASBOX
10054## ------------------------------------------ ##
10055## Report this to the AC_PACKAGE_NAME lists. ##
10056## ------------------------------------------ ##
10057_ASBOX
10058 ) |
10059 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10060 ;;
10061esac
b4e70030
JB
10062echo "$as_me:$LINENO: checking for $ac_header" >&5
10063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10064if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10065 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10066else
bec39cab
AC
10067 eval "$as_ac_Header=\$ac_header_preproc"
10068fi
b4e70030
JB
10069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10071
bec39cab
AC
10072fi
10073if test `eval echo '${'$as_ac_Header'}'` = yes; then
10074 cat >>confdefs.h <<_ACEOF
10075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10076_ACEOF
5ee754fc 10077
bec39cab 10078fi
5ee754fc 10079
bec39cab 10080done
5ee754fc 10081
5ee754fc 10082
bec39cab
AC
10083for ac_header in sys/filio.h
10084do
10085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10086if eval "test \"\${$as_ac_Header+set}\" = set"; then
10087 echo "$as_me:$LINENO: checking for $ac_header" >&5
10088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10089if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091fi
b4e70030
JB
10092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10094else
10095 # Is the header compilable?
b4e70030
JB
10096echo "$as_me:$LINENO: checking $ac_header usability" >&5
10097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10098cat >conftest.$ac_ext <<_ACEOF
10099/* confdefs.h. */
10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h. */
10104$ac_includes_default
10105#include <$ac_header>
10106_ACEOF
10107rm -f conftest.$ac_objext
10108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109 (eval $ac_compile) 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
b4e70030
JB
10116 { ac_try='test -z "$ac_c_werror_flag"
10117 || test ! -s conftest.err'
bec39cab
AC
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest.$ac_objext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_header_compiler=yes
10130else
10131 echo "$as_me: failed program was:" >&5
10132sed 's/^/| /' conftest.$ac_ext >&5
10133
b4e70030 10134ac_header_compiler=no
bec39cab
AC
10135fi
10136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10138echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10139
10140# Is the header present?
b4e70030
JB
10141echo "$as_me:$LINENO: checking $ac_header presence" >&5
10142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10143cat >conftest.$ac_ext <<_ACEOF
10144/* confdefs.h. */
10145_ACEOF
10146cat confdefs.h >>conftest.$ac_ext
10147cat >>conftest.$ac_ext <<_ACEOF
10148/* end confdefs.h. */
10149#include <$ac_header>
10150_ACEOF
10151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10153 ac_status=$?
10154 grep -v '^ *+' conftest.er1 >conftest.err
10155 rm -f conftest.er1
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } >/dev/null; then
10159 if test -s conftest.err; then
10160 ac_cpp_err=$ac_c_preproc_warn_flag
10161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10162 else
10163 ac_cpp_err=
10164 fi
5ee754fc 10165else
bec39cab 10166 ac_cpp_err=yes
5ee754fc 10167fi
bec39cab
AC
10168if test -z "$ac_cpp_err"; then
10169 ac_header_preproc=yes
10170else
10171 echo "$as_me: failed program was:" >&5
10172sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10173
bec39cab 10174 ac_header_preproc=no
5ee754fc 10175fi
bec39cab 10176rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10178echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10179
bec39cab
AC
10180# So? What about this header?
10181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10182 yes:no: )
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10187 ac_header_preproc=yes
10188 ;;
10189 no:yes:* )
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10202 (
10203 cat <<\_ASBOX
10204## ------------------------------------------ ##
10205## Report this to the AC_PACKAGE_NAME lists. ##
10206## ------------------------------------------ ##
10207_ASBOX
10208 ) |
10209 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10210 ;;
10211esac
b4e70030
JB
10212echo "$as_me:$LINENO: checking for $ac_header" >&5
10213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10214if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10215 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10216else
bec39cab 10217 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10218fi
b4e70030
JB
10219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10221
5ee754fc 10222fi
bec39cab
AC
10223if test `eval echo '${'$as_ac_Header'}'` = yes; then
10224 cat >>confdefs.h <<_ACEOF
10225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10226_ACEOF
5ee754fc
MK
10227
10228fi
10229
bec39cab
AC
10230done
10231
10232
10233for ac_header in sys/ioctl.h
10234do
10235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10236if eval "test \"\${$as_ac_Header+set}\" = set"; then
10237 echo "$as_me:$LINENO: checking for $ac_header" >&5
10238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10239if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241fi
b4e70030
JB
10242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10244else
10245 # Is the header compilable?
b4e70030
JB
10246echo "$as_me:$LINENO: checking $ac_header usability" >&5
10247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10248cat >conftest.$ac_ext <<_ACEOF
10249/* confdefs.h. */
10250_ACEOF
10251cat confdefs.h >>conftest.$ac_ext
10252cat >>conftest.$ac_ext <<_ACEOF
10253/* end confdefs.h. */
10254$ac_includes_default
10255#include <$ac_header>
10256_ACEOF
10257rm -f conftest.$ac_objext
10258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
b4e70030
JB
10266 { ac_try='test -z "$ac_c_werror_flag"
10267 || test ! -s conftest.err'
bec39cab
AC
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; } &&
10273 { ac_try='test -s conftest.$ac_objext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_header_compiler=yes
10280else
10281 echo "$as_me: failed program was:" >&5
10282sed 's/^/| /' conftest.$ac_ext >&5
10283
b4e70030 10284ac_header_compiler=no
bec39cab
AC
10285fi
10286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10288echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10289
10290# Is the header present?
b4e70030
JB
10291echo "$as_me:$LINENO: checking $ac_header presence" >&5
10292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10293cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h. */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h. */
10299#include <$ac_header>
10300_ACEOF
10301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } >/dev/null; then
10309 if test -s conftest.err; then
10310 ac_cpp_err=$ac_c_preproc_warn_flag
10311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10312 else
10313 ac_cpp_err=
10314 fi
5ee754fc 10315else
bec39cab 10316 ac_cpp_err=yes
5ee754fc 10317fi
bec39cab
AC
10318if test -z "$ac_cpp_err"; then
10319 ac_header_preproc=yes
10320else
10321 echo "$as_me: failed program was:" >&5
10322sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10323
bec39cab 10324 ac_header_preproc=no
5ee754fc 10325fi
bec39cab 10326rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10328echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10329
bec39cab
AC
10330# So? What about this header?
10331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10332 yes:no: )
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10337 ac_header_preproc=yes
10338 ;;
10339 no:yes:* )
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10352 (
10353 cat <<\_ASBOX
10354## ------------------------------------------ ##
10355## Report this to the AC_PACKAGE_NAME lists. ##
10356## ------------------------------------------ ##
10357_ASBOX
10358 ) |
10359 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10360 ;;
10361esac
b4e70030
JB
10362echo "$as_me:$LINENO: checking for $ac_header" >&5
10363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10364if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10365 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10366else
bec39cab 10367 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10368fi
b4e70030
JB
10369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10371
10372fi
bec39cab
AC
10373if test `eval echo '${'$as_ac_Header'}'` = yes; then
10374 cat >>confdefs.h <<_ACEOF
10375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10376_ACEOF
10377
5ee754fc
MK
10378fi
10379
bec39cab 10380done
5ee754fc 10381
5ee754fc 10382
bec39cab 10383for ac_header in sys/param.h
5ee754fc 10384do
bec39cab 10385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10386if eval "test \"\${$as_ac_Header+set}\" = set"; then
10387 echo "$as_me:$LINENO: checking for $ac_header" >&5
10388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10389if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391fi
b4e70030
JB
10392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10394else
10395 # Is the header compilable?
b4e70030
JB
10396echo "$as_me:$LINENO: checking $ac_header usability" >&5
10397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10398cat >conftest.$ac_ext <<_ACEOF
10399/* confdefs.h. */
10400_ACEOF
10401cat confdefs.h >>conftest.$ac_ext
10402cat >>conftest.$ac_ext <<_ACEOF
10403/* end confdefs.h. */
10404$ac_includes_default
10405#include <$ac_header>
10406_ACEOF
10407rm -f conftest.$ac_objext
10408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409 (eval $ac_compile) 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
b4e70030
JB
10416 { ac_try='test -z "$ac_c_werror_flag"
10417 || test ! -s conftest.err'
bec39cab
AC
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; } &&
10423 { ac_try='test -s conftest.$ac_objext'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_header_compiler=yes
10430else
10431 echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
b4e70030 10434ac_header_compiler=no
bec39cab
AC
10435fi
10436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10438echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10439
10440# Is the header present?
b4e70030
JB
10441echo "$as_me:$LINENO: checking $ac_header presence" >&5
10442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10443cat >conftest.$ac_ext <<_ACEOF
10444/* confdefs.h. */
10445_ACEOF
10446cat confdefs.h >>conftest.$ac_ext
10447cat >>conftest.$ac_ext <<_ACEOF
10448/* end confdefs.h. */
10449#include <$ac_header>
10450_ACEOF
10451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } >/dev/null; then
10459 if test -s conftest.err; then
10460 ac_cpp_err=$ac_c_preproc_warn_flag
10461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10462 else
10463 ac_cpp_err=
10464 fi
5ee754fc 10465else
bec39cab 10466 ac_cpp_err=yes
5ee754fc 10467fi
bec39cab
AC
10468if test -z "$ac_cpp_err"; then
10469 ac_header_preproc=yes
10470else
10471 echo "$as_me: failed program was:" >&5
10472sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10473
bec39cab 10474 ac_header_preproc=no
5ee754fc 10475fi
bec39cab 10476rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10478echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10479
10480# So? What about this header?
10481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10482 yes:no: )
10483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10487 ac_header_preproc=yes
10488 ;;
10489 no:yes:* )
10490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10502 (
10503 cat <<\_ASBOX
10504## ------------------------------------------ ##
10505## Report this to the AC_PACKAGE_NAME lists. ##
10506## ------------------------------------------ ##
10507_ASBOX
10508 ) |
10509 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10510 ;;
10511esac
b4e70030
JB
10512echo "$as_me:$LINENO: checking for $ac_header" >&5
10513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10514if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10515 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10516else
bec39cab 10517 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10518fi
b4e70030
JB
10519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10521
5ee754fc 10522fi
bec39cab
AC
10523if test `eval echo '${'$as_ac_Header'}'` = yes; then
10524 cat >>confdefs.h <<_ACEOF
10525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10526_ACEOF
10527
5ee754fc 10528fi
bec39cab 10529
5ee754fc
MK
10530done
10531
bec39cab 10532
7eb368b3
NR
10533for ac_header in sys/resource.h
10534do
10535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10536if eval "test \"\${$as_ac_Header+set}\" = set"; then
10537 echo "$as_me:$LINENO: checking for $ac_header" >&5
10538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10539if eval "test \"\${$as_ac_Header+set}\" = set"; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541fi
10542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10544else
10545 # Is the header compilable?
10546echo "$as_me:$LINENO: checking $ac_header usability" >&5
10547echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10548cat >conftest.$ac_ext <<_ACEOF
10549/* confdefs.h. */
10550_ACEOF
10551cat confdefs.h >>conftest.$ac_ext
10552cat >>conftest.$ac_ext <<_ACEOF
10553/* end confdefs.h. */
10554$ac_includes_default
10555#include <$ac_header>
10556_ACEOF
10557rm -f conftest.$ac_objext
10558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10559 (eval $ac_compile) 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag"
10567 || test ! -s conftest.err'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; } &&
10573 { ac_try='test -s conftest.$ac_objext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_header_compiler=yes
10580else
10581 echo "$as_me: failed program was:" >&5
10582sed 's/^/| /' conftest.$ac_ext >&5
10583
10584ac_header_compiler=no
10585fi
10586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10587echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10588echo "${ECHO_T}$ac_header_compiler" >&6
10589
10590# Is the header present?
10591echo "$as_me:$LINENO: checking $ac_header presence" >&5
10592echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10593cat >conftest.$ac_ext <<_ACEOF
10594/* confdefs.h. */
10595_ACEOF
10596cat confdefs.h >>conftest.$ac_ext
10597cat >>conftest.$ac_ext <<_ACEOF
10598/* end confdefs.h. */
10599#include <$ac_header>
10600_ACEOF
10601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } >/dev/null; then
10609 if test -s conftest.err; then
10610 ac_cpp_err=$ac_c_preproc_warn_flag
10611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10612 else
10613 ac_cpp_err=
10614 fi
10615else
10616 ac_cpp_err=yes
10617fi
10618if test -z "$ac_cpp_err"; then
10619 ac_header_preproc=yes
10620else
10621 echo "$as_me: failed program was:" >&5
10622sed 's/^/| /' conftest.$ac_ext >&5
10623
10624 ac_header_preproc=no
10625fi
10626rm -f conftest.err conftest.$ac_ext
10627echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10628echo "${ECHO_T}$ac_header_preproc" >&6
10629
10630# So? What about this header?
10631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10632 yes:no: )
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10637 ac_header_preproc=yes
10638 ;;
10639 no:yes:* )
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10652 (
10653 cat <<\_ASBOX
10654## ------------------------------------------ ##
10655## Report this to the AC_PACKAGE_NAME lists. ##
10656## ------------------------------------------ ##
10657_ASBOX
10658 ) |
10659 sed "s/^/$as_me: WARNING: /" >&2
10660 ;;
10661esac
10662echo "$as_me:$LINENO: checking for $ac_header" >&5
10663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10664if eval "test \"\${$as_ac_Header+set}\" = set"; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667 eval "$as_ac_Header=\$ac_header_preproc"
10668fi
10669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10671
10672fi
10673if test `eval echo '${'$as_ac_Header'}'` = yes; then
10674 cat >>confdefs.h <<_ACEOF
10675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10676_ACEOF
10677
10678fi
10679
10680done
10681
10682
bec39cab 10683for ac_header in sys/proc.h
5ee754fc 10684do
bec39cab 10685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10686echo "$as_me:$LINENO: checking for $ac_header" >&5
10687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10688if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10689 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10690else
7cb9022a 10691 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10692/* confdefs.h. */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h. */
7cb9022a
MK
10697#if HAVE_SYS_PARAM_H
10698# include <sys/param.h>
10699#endif
10700
10701
bec39cab
AC
10702#include <$ac_header>
10703_ACEOF
10704rm -f conftest.$ac_objext
10705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706 (eval $ac_compile) 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
b4e70030
JB
10713 { ac_try='test -z "$ac_c_werror_flag"
10714 || test ! -s conftest.err'
bec39cab
AC
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; } &&
10720 { ac_try='test -s conftest.$ac_objext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
7cb9022a 10726 eval "$as_ac_Header=yes"
bec39cab
AC
10727else
10728 echo "$as_me: failed program was:" >&5
10729sed 's/^/| /' conftest.$ac_ext >&5
10730
b4e70030 10731eval "$as_ac_Header=no"
bec39cab
AC
10732fi
10733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10734fi
b4e70030
JB
10735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10737if test `eval echo '${'$as_ac_Header'}'` = yes; then
10738 cat >>confdefs.h <<_ACEOF
10739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10740_ACEOF
10741
5ee754fc 10742fi
bec39cab 10743
5ee754fc
MK
10744done
10745
bec39cab
AC
10746
10747for ac_header in sys/procfs.h
5ee754fc 10748do
bec39cab 10749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10750if eval "test \"\${$as_ac_Header+set}\" = set"; then
10751 echo "$as_me:$LINENO: checking for $ac_header" >&5
10752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10753if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755fi
b4e70030
JB
10756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10758else
10759 # Is the header compilable?
b4e70030
JB
10760echo "$as_me:$LINENO: checking $ac_header usability" >&5
10761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10762cat >conftest.$ac_ext <<_ACEOF
10763/* confdefs.h. */
10764_ACEOF
10765cat confdefs.h >>conftest.$ac_ext
10766cat >>conftest.$ac_ext <<_ACEOF
10767/* end confdefs.h. */
10768$ac_includes_default
10769#include <$ac_header>
10770_ACEOF
10771rm -f conftest.$ac_objext
10772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>conftest.er1
10774 ac_status=$?
10775 grep -v '^ *+' conftest.er1 >conftest.err
10776 rm -f conftest.er1
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
b4e70030
JB
10780 { ac_try='test -z "$ac_c_werror_flag"
10781 || test ! -s conftest.err'
bec39cab
AC
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_header_compiler=yes
10794else
10795 echo "$as_me: failed program was:" >&5
10796sed 's/^/| /' conftest.$ac_ext >&5
10797
b4e70030 10798ac_header_compiler=no
bec39cab
AC
10799fi
10800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10801echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10802echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10803
10804# Is the header present?
b4e70030
JB
10805echo "$as_me:$LINENO: checking $ac_header presence" >&5
10806echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10807cat >conftest.$ac_ext <<_ACEOF
10808/* confdefs.h. */
10809_ACEOF
10810cat confdefs.h >>conftest.$ac_ext
10811cat >>conftest.$ac_ext <<_ACEOF
10812/* end confdefs.h. */
10813#include <$ac_header>
10814_ACEOF
10815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } >/dev/null; then
10823 if test -s conftest.err; then
10824 ac_cpp_err=$ac_c_preproc_warn_flag
10825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10826 else
10827 ac_cpp_err=
10828 fi
10829else
10830 ac_cpp_err=yes
5ee754fc 10831fi
bec39cab
AC
10832if test -z "$ac_cpp_err"; then
10833 ac_header_preproc=yes
5ee754fc 10834else
bec39cab
AC
10835 echo "$as_me: failed program was:" >&5
10836sed 's/^/| /' conftest.$ac_ext >&5
10837
10838 ac_header_preproc=no
5ee754fc 10839fi
bec39cab 10840rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10841echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10842echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10843
bec39cab
AC
10844# So? What about this header?
10845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10846 yes:no: )
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10851 ac_header_preproc=yes
10852 ;;
10853 no:yes:* )
10854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10866 (
10867 cat <<\_ASBOX
10868## ------------------------------------------ ##
10869## Report this to the AC_PACKAGE_NAME lists. ##
10870## ------------------------------------------ ##
10871_ASBOX
10872 ) |
10873 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10874 ;;
10875esac
b4e70030
JB
10876echo "$as_me:$LINENO: checking for $ac_header" >&5
10877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10878if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880else
10881 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10882fi
b4e70030
JB
10883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10885
5ee754fc 10886fi
bec39cab
AC
10887if test `eval echo '${'$as_ac_Header'}'` = yes; then
10888 cat >>confdefs.h <<_ACEOF
10889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10890_ACEOF
10891
5ee754fc 10892fi
bec39cab 10893
5ee754fc
MK
10894done
10895
bec39cab
AC
10896
10897
10898for ac_header in sys/ptrace.h ptrace.h
5ee754fc 10899do
bec39cab 10900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10901if eval "test \"\${$as_ac_Header+set}\" = set"; then
10902 echo "$as_me:$LINENO: checking for $ac_header" >&5
10903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10904if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906fi
b4e70030
JB
10907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10909else
10910 # Is the header compilable?
b4e70030
JB
10911echo "$as_me:$LINENO: checking $ac_header usability" >&5
10912echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10913cat >conftest.$ac_ext <<_ACEOF
10914/* confdefs.h. */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h. */
10919$ac_includes_default
10920#include <$ac_header>
10921_ACEOF
10922rm -f conftest.$ac_objext
10923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924 (eval $ac_compile) 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
b4e70030
JB
10931 { ac_try='test -z "$ac_c_werror_flag"
10932 || test ! -s conftest.err'
bec39cab
AC
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest.$ac_objext'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 ac_header_compiler=yes
10945else
10946 echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
10948
b4e70030 10949ac_header_compiler=no
bec39cab
AC
10950fi
10951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10952echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10953echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10954
10955# Is the header present?
b4e70030
JB
10956echo "$as_me:$LINENO: checking $ac_header presence" >&5
10957echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10958cat >conftest.$ac_ext <<_ACEOF
10959/* confdefs.h. */
10960_ACEOF
10961cat confdefs.h >>conftest.$ac_ext
10962cat >>conftest.$ac_ext <<_ACEOF
10963/* end confdefs.h. */
10964#include <$ac_header>
10965_ACEOF
10966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } >/dev/null; then
10974 if test -s conftest.err; then
10975 ac_cpp_err=$ac_c_preproc_warn_flag
10976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10977 else
10978 ac_cpp_err=
10979 fi
10980else
10981 ac_cpp_err=yes
5ee754fc 10982fi
bec39cab
AC
10983if test -z "$ac_cpp_err"; then
10984 ac_header_preproc=yes
5ee754fc 10985else
bec39cab
AC
10986 echo "$as_me: failed program was:" >&5
10987sed 's/^/| /' conftest.$ac_ext >&5
10988
10989 ac_header_preproc=no
5ee754fc 10990fi
bec39cab 10991rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10993echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10994
bec39cab
AC
10995# So? What about this header?
10996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10997 yes:no: )
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11002 ac_header_preproc=yes
11003 ;;
11004 no:yes:* )
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11017 (
11018 cat <<\_ASBOX
11019## ------------------------------------------ ##
11020## Report this to the AC_PACKAGE_NAME lists. ##
11021## ------------------------------------------ ##
11022_ASBOX
11023 ) |
11024 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11025 ;;
11026esac
b4e70030
JB
11027echo "$as_me:$LINENO: checking for $ac_header" >&5
11028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11029if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11031else
11032 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11033fi
b4e70030
JB
11034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11036
5ee754fc 11037fi
bec39cab
AC
11038if test `eval echo '${'$as_ac_Header'}'` = yes; then
11039 cat >>confdefs.h <<_ACEOF
11040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11041_ACEOF
11042
5ee754fc 11043fi
bec39cab 11044
5ee754fc
MK
11045done
11046
bec39cab
AC
11047
11048
11049for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11050do
bec39cab 11051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11052if eval "test \"\${$as_ac_Header+set}\" = set"; then
11053 echo "$as_me:$LINENO: checking for $ac_header" >&5
11054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11055if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057fi
b4e70030
JB
11058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11060else
11061 # Is the header compilable?
b4e70030
JB
11062echo "$as_me:$LINENO: checking $ac_header usability" >&5
11063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11064cat >conftest.$ac_ext <<_ACEOF
11065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
11070$ac_includes_default
11071#include <$ac_header>
11072_ACEOF
11073rm -f conftest.$ac_objext
11074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
b4e70030
JB
11082 { ac_try='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
bec39cab
AC
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_header_compiler=yes
11096else
11097 echo "$as_me: failed program was:" >&5
11098sed 's/^/| /' conftest.$ac_ext >&5
11099
b4e70030 11100ac_header_compiler=no
bec39cab
AC
11101fi
11102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11105
11106# Is the header present?
b4e70030
JB
11107echo "$as_me:$LINENO: checking $ac_header presence" >&5
11108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11109cat >conftest.$ac_ext <<_ACEOF
11110/* confdefs.h. */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h. */
11115#include <$ac_header>
11116_ACEOF
11117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11119 ac_status=$?
11120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev/null; then
11125 if test -s conftest.err; then
11126 ac_cpp_err=$ac_c_preproc_warn_flag
11127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11128 else
11129 ac_cpp_err=
11130 fi
11131else
11132 ac_cpp_err=yes
5ee754fc 11133fi
bec39cab
AC
11134if test -z "$ac_cpp_err"; then
11135 ac_header_preproc=yes
5ee754fc 11136else
bec39cab
AC
11137 echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 ac_header_preproc=no
5ee754fc 11141fi
bec39cab 11142rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11143echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11144echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11145
bec39cab
AC
11146# So? What about this header?
11147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11148 yes:no: )
11149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11150echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11152echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11153 ac_header_preproc=yes
11154 ;;
11155 no:yes:* )
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11157echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11159echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11161echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11163echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11165echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11167echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11168 (
11169 cat <<\_ASBOX
11170## ------------------------------------------ ##
11171## Report this to the AC_PACKAGE_NAME lists. ##
11172## ------------------------------------------ ##
11173_ASBOX
11174 ) |
11175 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11176 ;;
11177esac
b4e70030
JB
11178echo "$as_me:$LINENO: checking for $ac_header" >&5
11179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11180if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182else
11183 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11184fi
b4e70030
JB
11185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11187
5ee754fc 11188fi
bec39cab
AC
11189if test `eval echo '${'$as_ac_Header'}'` = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11192_ACEOF
11193
5ee754fc 11194fi
bec39cab 11195
5ee754fc
MK
11196done
11197
bec39cab
AC
11198
11199for ac_header in sys/select.h
5ee754fc 11200do
bec39cab 11201as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11202if eval "test \"\${$as_ac_Header+set}\" = set"; then
11203 echo "$as_me:$LINENO: checking for $ac_header" >&5
11204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11205if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207fi
b4e70030
JB
11208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11210else
11211 # Is the header compilable?
b4e70030
JB
11212echo "$as_me:$LINENO: checking $ac_header usability" >&5
11213echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11214cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
11219/* end confdefs.h. */
11220$ac_includes_default
11221#include <$ac_header>
11222_ACEOF
11223rm -f conftest.$ac_objext
11224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
b4e70030
JB
11232 { ac_try='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
bec39cab
AC
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_header_compiler=yes
11246else
11247 echo "$as_me: failed program was:" >&5
11248sed 's/^/| /' conftest.$ac_ext >&5
11249
b4e70030 11250ac_header_compiler=no
bec39cab
AC
11251fi
11252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11253echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11254echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11255
11256# Is the header present?
b4e70030
JB
11257echo "$as_me:$LINENO: checking $ac_header presence" >&5
11258echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11259cat >conftest.$ac_ext <<_ACEOF
11260/* confdefs.h. */
11261_ACEOF
11262cat confdefs.h >>conftest.$ac_ext
11263cat >>conftest.$ac_ext <<_ACEOF
11264/* end confdefs.h. */
11265#include <$ac_header>
11266_ACEOF
11267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } >/dev/null; then
11275 if test -s conftest.err; then
11276 ac_cpp_err=$ac_c_preproc_warn_flag
11277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11278 else
11279 ac_cpp_err=
11280 fi
11281else
11282 ac_cpp_err=yes
5ee754fc 11283fi
bec39cab
AC
11284if test -z "$ac_cpp_err"; then
11285 ac_header_preproc=yes
5ee754fc 11286else
bec39cab
AC
11287 echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 ac_header_preproc=no
5ee754fc 11291fi
bec39cab 11292rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11293echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11294echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11295
bec39cab
AC
11296# So? What about this header?
11297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11298 yes:no: )
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11302echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11303 ac_header_preproc=yes
11304 ;;
11305 no:yes:* )
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11311echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11313echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11317echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11318 (
11319 cat <<\_ASBOX
11320## ------------------------------------------ ##
11321## Report this to the AC_PACKAGE_NAME lists. ##
11322## ------------------------------------------ ##
11323_ASBOX
11324 ) |
11325 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11326 ;;
11327esac
b4e70030
JB
11328echo "$as_me:$LINENO: checking for $ac_header" >&5
11329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11330if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332else
11333 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11334fi
b4e70030
JB
11335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11337
5ee754fc 11338fi
bec39cab
AC
11339if test `eval echo '${'$as_ac_Header'}'` = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11342_ACEOF
11343
5ee754fc 11344fi
bec39cab 11345
5ee754fc
MK
11346done
11347
bec39cab
AC
11348
11349for ac_header in sys/syscall.h
5ee754fc 11350do
bec39cab 11351as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11352if eval "test \"\${$as_ac_Header+set}\" = set"; then
11353 echo "$as_me:$LINENO: checking for $ac_header" >&5
11354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11355if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357fi
b4e70030
JB
11358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11360else
11361 # Is the header compilable?
b4e70030
JB
11362echo "$as_me:$LINENO: checking $ac_header usability" >&5
11363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11364cat >conftest.$ac_ext <<_ACEOF
11365/* confdefs.h. */
11366_ACEOF
11367cat confdefs.h >>conftest.$ac_ext
11368cat >>conftest.$ac_ext <<_ACEOF
11369/* end confdefs.h. */
11370$ac_includes_default
11371#include <$ac_header>
11372_ACEOF
11373rm -f conftest.$ac_objext
11374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11375 (eval $ac_compile) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
b4e70030
JB
11382 { ac_try='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
bec39cab
AC
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_header_compiler=yes
11396else
11397 echo "$as_me: failed program was:" >&5
11398sed 's/^/| /' conftest.$ac_ext >&5
11399
b4e70030 11400ac_header_compiler=no
bec39cab
AC
11401fi
11402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11404echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11405
11406# Is the header present?
b4e70030
JB
11407echo "$as_me:$LINENO: checking $ac_header presence" >&5
11408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11409cat >conftest.$ac_ext <<_ACEOF
11410/* confdefs.h. */
11411_ACEOF
11412cat confdefs.h >>conftest.$ac_ext
11413cat >>conftest.$ac_ext <<_ACEOF
11414/* end confdefs.h. */
11415#include <$ac_header>
11416_ACEOF
11417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } >/dev/null; then
11425 if test -s conftest.err; then
11426 ac_cpp_err=$ac_c_preproc_warn_flag
11427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11428 else
11429 ac_cpp_err=
11430 fi
11431else
11432 ac_cpp_err=yes
5ee754fc 11433fi
bec39cab
AC
11434if test -z "$ac_cpp_err"; then
11435 ac_header_preproc=yes
5ee754fc 11436else
bec39cab
AC
11437 echo "$as_me: failed program was:" >&5
11438sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 ac_header_preproc=no
5ee754fc 11441fi
bec39cab 11442rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11444echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11445
bec39cab
AC
11446# So? What about this header?
11447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11448 yes:no: )
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11453 ac_header_preproc=yes
11454 ;;
11455 no:yes:* )
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11459echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11463echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11468 (
11469 cat <<\_ASBOX
11470## ------------------------------------------ ##
11471## Report this to the AC_PACKAGE_NAME lists. ##
11472## ------------------------------------------ ##
11473_ASBOX
11474 ) |
11475 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11476 ;;
11477esac
b4e70030
JB
11478echo "$as_me:$LINENO: checking for $ac_header" >&5
11479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11480if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11482else
11483 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11484fi
b4e70030
JB
11485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11487
5ee754fc 11488fi
bec39cab
AC
11489if test `eval echo '${'$as_ac_Header'}'` = yes; then
11490 cat >>confdefs.h <<_ACEOF
11491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11492_ACEOF
11493
5ee754fc 11494fi
bec39cab 11495
5ee754fc
MK
11496done
11497
bec39cab
AC
11498
11499for ac_header in sys/types.h
5ee754fc 11500do
bec39cab 11501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11502if eval "test \"\${$as_ac_Header+set}\" = set"; then
11503 echo "$as_me:$LINENO: checking for $ac_header" >&5
11504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11505if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11507fi
b4e70030
JB
11508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11510else
11511 # Is the header compilable?
b4e70030
JB
11512echo "$as_me:$LINENO: checking $ac_header usability" >&5
11513echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11514cat >conftest.$ac_ext <<_ACEOF
11515/* confdefs.h. */
11516_ACEOF
11517cat confdefs.h >>conftest.$ac_ext
11518cat >>conftest.$ac_ext <<_ACEOF
11519/* end confdefs.h. */
11520$ac_includes_default
11521#include <$ac_header>
11522_ACEOF
11523rm -f conftest.$ac_objext
11524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525 (eval $ac_compile) 2>conftest.er1
11526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
b4e70030
JB
11532 { ac_try='test -z "$ac_c_werror_flag"
11533 || test ! -s conftest.err'
bec39cab
AC
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; } &&
11539 { ac_try='test -s conftest.$ac_objext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_header_compiler=yes
11546else
11547 echo "$as_me: failed program was:" >&5
11548sed 's/^/| /' conftest.$ac_ext >&5
11549
b4e70030 11550ac_header_compiler=no
bec39cab
AC
11551fi
11552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11553echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11554echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11555
11556# Is the header present?
b4e70030
JB
11557echo "$as_me:$LINENO: checking $ac_header presence" >&5
11558echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11559cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
11565#include <$ac_header>
11566_ACEOF
11567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev/null; then
11575 if test -s conftest.err; then
11576 ac_cpp_err=$ac_c_preproc_warn_flag
11577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11578 else
11579 ac_cpp_err=
11580 fi
11581else
11582 ac_cpp_err=yes
5ee754fc 11583fi
bec39cab
AC
11584if test -z "$ac_cpp_err"; then
11585 ac_header_preproc=yes
5ee754fc 11586else
bec39cab
AC
11587 echo "$as_me: failed program was:" >&5
11588sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ac_header_preproc=no
5ee754fc 11591fi
bec39cab 11592rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11593echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11595
bec39cab
AC
11596# So? What about this header?
11597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11598 yes:no: )
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11603 ac_header_preproc=yes
11604 ;;
11605 no:yes:* )
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11613echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11618 (
11619 cat <<\_ASBOX
11620## ------------------------------------------ ##
11621## Report this to the AC_PACKAGE_NAME lists. ##
11622## ------------------------------------------ ##
11623_ASBOX
11624 ) |
11625 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11626 ;;
11627esac
b4e70030
JB
11628echo "$as_me:$LINENO: checking for $ac_header" >&5
11629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11630if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632else
11633 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11634fi
b4e70030
JB
11635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11637
5ee754fc 11638fi
bec39cab
AC
11639if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11642_ACEOF
11643
5ee754fc 11644fi
bec39cab 11645
5ee754fc
MK
11646done
11647
bec39cab
AC
11648
11649for ac_header in sys/user.h
5ee754fc 11650do
bec39cab 11651as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11652echo "$as_me:$LINENO: checking for $ac_header" >&5
11653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11654if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11655 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11656else
7cb9022a 11657 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
7cb9022a
MK
11663#if HAVE_SYS_PARAM_H
11664# include <sys/param.h>
11665#endif
11666
11667
bec39cab
AC
11668#include <$ac_header>
11669_ACEOF
11670rm -f conftest.$ac_objext
11671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11672 (eval $ac_compile) 2>conftest.er1
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
b4e70030
JB
11679 { ac_try='test -z "$ac_c_werror_flag"
11680 || test ! -s conftest.err'
bec39cab
AC
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; } &&
11686 { ac_try='test -s conftest.$ac_objext'
11687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688 (eval $ac_try) 2>&5
11689 ac_status=$?
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; }; then
7cb9022a 11692 eval "$as_ac_Header=yes"
bec39cab
AC
11693else
11694 echo "$as_me: failed program was:" >&5
11695sed 's/^/| /' conftest.$ac_ext >&5
11696
b4e70030 11697eval "$as_ac_Header=no"
bec39cab
AC
11698fi
11699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11700fi
b4e70030
JB
11701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11703if test `eval echo '${'$as_ac_Header'}'` = yes; then
11704 cat >>confdefs.h <<_ACEOF
11705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11706_ACEOF
11707
5ee754fc 11708fi
bec39cab 11709
5ee754fc
MK
11710done
11711
bec39cab
AC
11712
11713
11714for ac_header in sys/wait.h wait.h
5ee754fc 11715do
bec39cab 11716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11717if eval "test \"\${$as_ac_Header+set}\" = set"; then
11718 echo "$as_me:$LINENO: checking for $ac_header" >&5
11719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11720if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722fi
b4e70030
JB
11723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11725else
11726 # Is the header compilable?
b4e70030
JB
11727echo "$as_me:$LINENO: checking $ac_header usability" >&5
11728echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11729cat >conftest.$ac_ext <<_ACEOF
11730/* confdefs.h. */
11731_ACEOF
11732cat confdefs.h >>conftest.$ac_ext
11733cat >>conftest.$ac_ext <<_ACEOF
11734/* end confdefs.h. */
11735$ac_includes_default
11736#include <$ac_header>
11737_ACEOF
11738rm -f conftest.$ac_objext
11739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>conftest.er1
11741 ac_status=$?
11742 grep -v '^ *+' conftest.er1 >conftest.err
11743 rm -f conftest.er1
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
b4e70030
JB
11747 { ac_try='test -z "$ac_c_werror_flag"
11748 || test ! -s conftest.err'
bec39cab
AC
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 ac_header_compiler=yes
11761else
11762 echo "$as_me: failed program was:" >&5
11763sed 's/^/| /' conftest.$ac_ext >&5
11764
b4e70030 11765ac_header_compiler=no
bec39cab
AC
11766fi
11767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11769echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11770
11771# Is the header present?
b4e70030
JB
11772echo "$as_me:$LINENO: checking $ac_header presence" >&5
11773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11774cat >conftest.$ac_ext <<_ACEOF
11775/* confdefs.h. */
11776_ACEOF
11777cat confdefs.h >>conftest.$ac_ext
11778cat >>conftest.$ac_ext <<_ACEOF
11779/* end confdefs.h. */
11780#include <$ac_header>
11781_ACEOF
11782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } >/dev/null; then
11790 if test -s conftest.err; then
11791 ac_cpp_err=$ac_c_preproc_warn_flag
11792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11793 else
11794 ac_cpp_err=
11795 fi
11796else
11797 ac_cpp_err=yes
5ee754fc 11798fi
bec39cab
AC
11799if test -z "$ac_cpp_err"; then
11800 ac_header_preproc=yes
5ee754fc 11801else
bec39cab
AC
11802 echo "$as_me: failed program was:" >&5
11803sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 ac_header_preproc=no
5ee754fc 11806fi
bec39cab 11807rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11809echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11810
bec39cab
AC
11811# So? What about this header?
11812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11813 yes:no: )
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11818 ac_header_preproc=yes
11819 ;;
11820 no:yes:* )
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11828echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11833 (
11834 cat <<\_ASBOX
11835## ------------------------------------------ ##
11836## Report this to the AC_PACKAGE_NAME lists. ##
11837## ------------------------------------------ ##
11838_ASBOX
11839 ) |
11840 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11841 ;;
11842esac
b4e70030
JB
11843echo "$as_me:$LINENO: checking for $ac_header" >&5
11844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11845if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11847else
11848 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 11849fi
b4e70030
JB
11850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11852
9608ab8b 11853fi
bec39cab
AC
11854if test `eval echo '${'$as_ac_Header'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11857_ACEOF
11858
9608ab8b 11859fi
bec39cab 11860
9608ab8b 11861done
5ee754fc 11862
bec39cab
AC
11863
11864
11865
11866for ac_header in termios.h termio.h sgtty.h
5ee754fc 11867do
bec39cab 11868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11869if eval "test \"\${$as_ac_Header+set}\" = set"; then
11870 echo "$as_me:$LINENO: checking for $ac_header" >&5
11871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11872if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874fi
b4e70030
JB
11875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11877else
11878 # Is the header compilable?
b4e70030
JB
11879echo "$as_me:$LINENO: checking $ac_header usability" >&5
11880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11881cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887$ac_includes_default
11888#include <$ac_header>
11889_ACEOF
11890rm -f conftest.$ac_objext
11891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11892 (eval $ac_compile) 2>conftest.er1
11893 ac_status=$?
11894 grep -v '^ *+' conftest.er1 >conftest.err
11895 rm -f conftest.er1
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } &&
b4e70030
JB
11899 { ac_try='test -z "$ac_c_werror_flag"
11900 || test ! -s conftest.err'
bec39cab
AC
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest.$ac_objext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_header_compiler=yes
11913else
11914 echo "$as_me: failed program was:" >&5
11915sed 's/^/| /' conftest.$ac_ext >&5
11916
b4e70030 11917ac_header_compiler=no
bec39cab
AC
11918fi
11919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11920echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11921echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11922
11923# Is the header present?
b4e70030
JB
11924echo "$as_me:$LINENO: checking $ac_header presence" >&5
11925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11926cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
11932#include <$ac_header>
11933_ACEOF
11934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } >/dev/null; then
11942 if test -s conftest.err; then
11943 ac_cpp_err=$ac_c_preproc_warn_flag
11944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11945 else
11946 ac_cpp_err=
11947 fi
11948else
11949 ac_cpp_err=yes
9608ab8b 11950fi
bec39cab
AC
11951if test -z "$ac_cpp_err"; then
11952 ac_header_preproc=yes
9608ab8b 11953else
bec39cab
AC
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_header_preproc=no
9608ab8b 11958fi
bec39cab 11959rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11960echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11961echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 11962
bec39cab
AC
11963# So? What about this header?
11964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11965 yes:no: )
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11967echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11969echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11970 ac_header_preproc=yes
11971 ;;
11972 no:yes:* )
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11974echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11976echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11978echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11980echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11982echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11984echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11985 (
11986 cat <<\_ASBOX
11987## ------------------------------------------ ##
11988## Report this to the AC_PACKAGE_NAME lists. ##
11989## ------------------------------------------ ##
11990_ASBOX
11991 ) |
11992 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11993 ;;
11994esac
b4e70030
JB
11995echo "$as_me:$LINENO: checking for $ac_header" >&5
11996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11997if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
11999else
12000 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12001fi
b4e70030
JB
12002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12004
9608ab8b 12005fi
bec39cab
AC
12006if test `eval echo '${'$as_ac_Header'}'` = yes; then
12007 cat >>confdefs.h <<_ACEOF
12008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12009_ACEOF
12010
9608ab8b 12011fi
bec39cab 12012
5ee754fc 12013done
9608ab8b 12014
bec39cab
AC
12015
12016for ac_header in unistd.h
78434e59 12017do
bec39cab 12018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12019if eval "test \"\${$as_ac_Header+set}\" = set"; then
12020 echo "$as_me:$LINENO: checking for $ac_header" >&5
12021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12022if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024fi
b4e70030
JB
12025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12027else
12028 # Is the header compilable?
b4e70030
JB
12029echo "$as_me:$LINENO: checking $ac_header usability" >&5
12030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12031cat >conftest.$ac_ext <<_ACEOF
12032/* confdefs.h. */
12033_ACEOF
12034cat confdefs.h >>conftest.$ac_ext
12035cat >>conftest.$ac_ext <<_ACEOF
12036/* end confdefs.h. */
12037$ac_includes_default
12038#include <$ac_header>
12039_ACEOF
12040rm -f conftest.$ac_objext
12041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042 (eval $ac_compile) 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } &&
b4e70030
JB
12049 { ac_try='test -z "$ac_c_werror_flag"
12050 || test ! -s conftest.err'
bec39cab
AC
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest.$ac_objext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_header_compiler=yes
12063else
12064 echo "$as_me: failed program was:" >&5
12065sed 's/^/| /' conftest.$ac_ext >&5
12066
b4e70030 12067ac_header_compiler=no
bec39cab
AC
12068fi
12069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12071echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12072
12073# Is the header present?
b4e70030
JB
12074echo "$as_me:$LINENO: checking $ac_header presence" >&5
12075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12076cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
12082#include <$ac_header>
12083_ACEOF
12084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } >/dev/null; then
12092 if test -s conftest.err; then
12093 ac_cpp_err=$ac_c_preproc_warn_flag
12094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12095 else
12096 ac_cpp_err=
12097 fi
12098else
12099 ac_cpp_err=yes
78434e59 12100fi
bec39cab
AC
12101if test -z "$ac_cpp_err"; then
12102 ac_header_preproc=yes
78434e59 12103else
bec39cab
AC
12104 echo "$as_me: failed program was:" >&5
12105sed 's/^/| /' conftest.$ac_ext >&5
12106
12107 ac_header_preproc=no
78434e59 12108fi
bec39cab 12109rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12110echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12111echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12112
bec39cab
AC
12113# So? What about this header?
12114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12115 yes:no: )
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12120 ac_header_preproc=yes
12121 ;;
12122 no:yes:* )
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12126echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12130echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12135 (
12136 cat <<\_ASBOX
12137## ------------------------------------------ ##
12138## Report this to the AC_PACKAGE_NAME lists. ##
12139## ------------------------------------------ ##
12140_ASBOX
12141 ) |
12142 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12143 ;;
12144esac
b4e70030
JB
12145echo "$as_me:$LINENO: checking for $ac_header" >&5
12146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12147if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149else
12150 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12151fi
b4e70030
JB
12152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12154
086ec9eb 12155fi
bec39cab
AC
12156if test `eval echo '${'$as_ac_Header'}'` = yes; then
12157 cat >>confdefs.h <<_ACEOF
12158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12159_ACEOF
12160
086ec9eb 12161fi
bec39cab 12162
086ec9eb
MK
12163done
12164
9608ab8b 12165
b1d19a62 12166# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12167# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12168# think that we don't have <curses.h> if we're using GCC.
12169case $host_os in
b1d19a62 12170 solaris2.[789])
5ee754fc 12171 if test "$GCC" = yes; then
bec39cab
AC
12172
12173cat >>confdefs.h <<\_ACEOF
5ee754fc 12174#define _MSE_INT_H 1
bec39cab 12175_ACEOF
5ee754fc
MK
12176
12177 fi ;;
12178esac
bec39cab
AC
12179
12180
12181
12182
12183for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12184do
bec39cab 12185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12186if eval "test \"\${$as_ac_Header+set}\" = set"; then
12187 echo "$as_me:$LINENO: checking for $ac_header" >&5
12188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12189if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191fi
b4e70030
JB
12192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12194else
12195 # Is the header compilable?
b4e70030
JB
12196echo "$as_me:$LINENO: checking $ac_header usability" >&5
12197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12198cat >conftest.$ac_ext <<_ACEOF
12199/* confdefs.h. */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h. */
12204$ac_includes_default
12205#include <$ac_header>
12206_ACEOF
12207rm -f conftest.$ac_objext
12208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209 (eval $ac_compile) 2>conftest.er1
12210 ac_status=$?
12211 grep -v '^ *+' conftest.er1 >conftest.err
12212 rm -f conftest.er1
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } &&
b4e70030
JB
12216 { ac_try='test -z "$ac_c_werror_flag"
12217 || test ! -s conftest.err'
bec39cab
AC
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest.$ac_objext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_header_compiler=yes
12230else
12231 echo "$as_me: failed program was:" >&5
12232sed 's/^/| /' conftest.$ac_ext >&5
12233
b4e70030 12234ac_header_compiler=no
bec39cab
AC
12235fi
12236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12237echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12238echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12239
12240# Is the header present?
b4e70030
JB
12241echo "$as_me:$LINENO: checking $ac_header presence" >&5
12242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12243cat >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 <$ac_header>
12250_ACEOF
12251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12253 ac_status=$?
12254 grep -v '^ *+' conftest.er1 >conftest.err
12255 rm -f conftest.er1
12256 cat conftest.err >&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } >/dev/null; then
12259 if test -s conftest.err; then
12260 ac_cpp_err=$ac_c_preproc_warn_flag
12261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12262 else
12263 ac_cpp_err=
12264 fi
12265else
12266 ac_cpp_err=yes
c906108c 12267fi
bec39cab
AC
12268if test -z "$ac_cpp_err"; then
12269 ac_header_preproc=yes
12270else
12271 echo "$as_me: failed program was:" >&5
12272sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 ac_header_preproc=no
c906108c 12275fi
bec39cab 12276rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12277echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12278echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12279
12280# So? What about this header?
12281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12282 yes:no: )
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12284echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12286echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12287 ac_header_preproc=yes
12288 ;;
12289 no:yes:* )
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12291echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12293echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12295echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12297echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12299echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12301echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12302 (
12303 cat <<\_ASBOX
12304## ------------------------------------------ ##
12305## Report this to the AC_PACKAGE_NAME lists. ##
12306## ------------------------------------------ ##
12307_ASBOX
12308 ) |
12309 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12310 ;;
12311esac
b4e70030
JB
12312echo "$as_me:$LINENO: checking for $ac_header" >&5
12313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12314if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12315 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12316else
bec39cab 12317 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12318fi
b4e70030
JB
12319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12321
12322fi
12323if test `eval echo '${'$as_ac_Header'}'` = yes; then
12324 cat >>confdefs.h <<_ACEOF
12325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12326_ACEOF
12327
12328fi
12329
5ee754fc 12330done
c906108c 12331
bec39cab 12332
065a1afc 12333for ac_header in ncurses/term.h
3b78cdbb 12334do
bec39cab 12335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12336if eval "test \"\${$as_ac_Header+set}\" = set"; then
12337 echo "$as_me:$LINENO: checking for $ac_header" >&5
12338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12339if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341fi
b4e70030
JB
12342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12344else
12345 # Is the header compilable?
b4e70030
JB
12346echo "$as_me:$LINENO: checking $ac_header usability" >&5
12347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12348cat >conftest.$ac_ext <<_ACEOF
12349/* confdefs.h. */
12350_ACEOF
12351cat confdefs.h >>conftest.$ac_ext
12352cat >>conftest.$ac_ext <<_ACEOF
12353/* end confdefs.h. */
12354$ac_includes_default
12355#include <$ac_header>
12356_ACEOF
12357rm -f conftest.$ac_objext
12358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
b4e70030
JB
12366 { ac_try='test -z "$ac_c_werror_flag"
12367 || test ! -s conftest.err'
bec39cab
AC
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest.$ac_objext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_header_compiler=yes
12380else
12381 echo "$as_me: failed program was:" >&5
12382sed 's/^/| /' conftest.$ac_ext >&5
12383
b4e70030 12384ac_header_compiler=no
bec39cab
AC
12385fi
12386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12387echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12388echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12389
12390# Is the header present?
b4e70030
JB
12391echo "$as_me:$LINENO: checking $ac_header presence" >&5
12392echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12393cat >conftest.$ac_ext <<_ACEOF
12394/* confdefs.h. */
12395_ACEOF
12396cat confdefs.h >>conftest.$ac_ext
12397cat >>conftest.$ac_ext <<_ACEOF
12398/* end confdefs.h. */
12399#include <$ac_header>
12400_ACEOF
12401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } >/dev/null; then
12409 if test -s conftest.err; then
12410 ac_cpp_err=$ac_c_preproc_warn_flag
12411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12412 else
12413 ac_cpp_err=
12414 fi
12415else
12416 ac_cpp_err=yes
3b78cdbb 12417fi
bec39cab
AC
12418if test -z "$ac_cpp_err"; then
12419 ac_header_preproc=yes
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_header_preproc=no
3b78cdbb 12425fi
bec39cab 12426rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12427echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12428echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12429
12430# So? What about this header?
12431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12432 yes:no: )
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12434echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12436echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12437 ac_header_preproc=yes
12438 ;;
12439 no:yes:* )
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12441echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12443echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12445echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12447echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12451echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12452 (
12453 cat <<\_ASBOX
12454## ------------------------------------------ ##
12455## Report this to the AC_PACKAGE_NAME lists. ##
12456## ------------------------------------------ ##
12457_ASBOX
12458 ) |
12459 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12460 ;;
12461esac
b4e70030
JB
12462echo "$as_me:$LINENO: checking for $ac_header" >&5
12463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12464if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12465 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12466else
bec39cab
AC
12467 eval "$as_ac_Header=\$ac_header_preproc"
12468fi
b4e70030
JB
12469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12471
3b78cdbb 12472fi
bec39cab
AC
12473if test `eval echo '${'$as_ac_Header'}'` = yes; then
12474 cat >>confdefs.h <<_ACEOF
12475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12476_ACEOF
12477
12478fi
12479
3b78cdbb
DA
12480done
12481
c906108c 12482
065a1afc
JB
12483for ac_header in term.h
12484do
12485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12486echo "$as_me:$LINENO: checking for $ac_header" >&5
12487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12488if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12490else
12491 cat >conftest.$ac_ext <<_ACEOF
12492/* confdefs.h. */
12493_ACEOF
12494cat confdefs.h >>conftest.$ac_ext
12495cat >>conftest.$ac_ext <<_ACEOF
12496/* end confdefs.h. */
12497#if HAVE_CURSES_H
12498# include <curses.h>
12499#endif
12500
12501
12502#include <$ac_header>
12503_ACEOF
12504rm -f conftest.$ac_objext
12505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506 (eval $ac_compile) 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
b4e70030
JB
12513 { ac_try='test -z "$ac_c_werror_flag"
12514 || test ! -s conftest.err'
065a1afc
JB
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 eval "$as_ac_Header=yes"
12527else
12528 echo "$as_me: failed program was:" >&5
12529sed 's/^/| /' conftest.$ac_ext >&5
12530
b4e70030 12531eval "$as_ac_Header=no"
065a1afc
JB
12532fi
12533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12534fi
b4e70030
JB
12535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
12537if test `eval echo '${'$as_ac_Header'}'` = yes; then
12538 cat >>confdefs.h <<_ACEOF
12539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12540_ACEOF
12541
12542fi
12543
12544done
12545
12546
d542061a
UW
12547# Check for HP/UX 64-bit shared library support
12548
12549for ac_header in elf_hp.h
12550do
12551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12552if eval "test \"\${$as_ac_Header+set}\" = set"; then
12553 echo "$as_me:$LINENO: checking for $ac_header" >&5
12554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12555if eval "test \"\${$as_ac_Header+set}\" = set"; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557fi
12558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12560else
12561 # Is the header compilable?
12562echo "$as_me:$LINENO: checking $ac_header usability" >&5
12563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12564cat >conftest.$ac_ext <<_ACEOF
12565/* confdefs.h. */
12566_ACEOF
12567cat confdefs.h >>conftest.$ac_ext
12568cat >>conftest.$ac_ext <<_ACEOF
12569/* end confdefs.h. */
12570$ac_includes_default
12571#include <$ac_header>
12572_ACEOF
12573rm -f conftest.$ac_objext
12574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575 (eval $ac_compile) 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -z "$ac_c_werror_flag"
12583 || test ! -s conftest.err'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest.$ac_objext'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_header_compiler=yes
12596else
12597 echo "$as_me: failed program was:" >&5
12598sed 's/^/| /' conftest.$ac_ext >&5
12599
12600ac_header_compiler=no
12601fi
12602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12604echo "${ECHO_T}$ac_header_compiler" >&6
12605
12606# Is the header present?
12607echo "$as_me:$LINENO: checking $ac_header presence" >&5
12608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12609cat >conftest.$ac_ext <<_ACEOF
12610/* confdefs.h. */
12611_ACEOF
12612cat confdefs.h >>conftest.$ac_ext
12613cat >>conftest.$ac_ext <<_ACEOF
12614/* end confdefs.h. */
12615#include <$ac_header>
12616_ACEOF
12617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } >/dev/null; then
12625 if test -s conftest.err; then
12626 ac_cpp_err=$ac_c_preproc_warn_flag
12627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12628 else
12629 ac_cpp_err=
12630 fi
12631else
12632 ac_cpp_err=yes
12633fi
12634if test -z "$ac_cpp_err"; then
12635 ac_header_preproc=yes
12636else
12637 echo "$as_me: failed program was:" >&5
12638sed 's/^/| /' conftest.$ac_ext >&5
12639
12640 ac_header_preproc=no
12641fi
12642rm -f conftest.err conftest.$ac_ext
12643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12644echo "${ECHO_T}$ac_header_preproc" >&6
12645
12646# So? What about this header?
12647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12648 yes:no: )
12649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12652echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12653 ac_header_preproc=yes
12654 ;;
12655 no:yes:* )
12656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12657echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12659echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12661echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12663echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12667echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12668 (
12669 cat <<\_ASBOX
12670## ------------------------------------------ ##
12671## Report this to the AC_PACKAGE_NAME lists. ##
12672## ------------------------------------------ ##
12673_ASBOX
12674 ) |
12675 sed "s/^/$as_me: WARNING: /" >&2
12676 ;;
12677esac
12678echo "$as_me:$LINENO: checking for $ac_header" >&5
12679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12680if eval "test \"\${$as_ac_Header+set}\" = set"; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12682else
12683 eval "$as_ac_Header=\$ac_header_preproc"
12684fi
12685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12687
12688fi
12689if test `eval echo '${'$as_ac_Header'}'` = yes; then
12690 cat >>confdefs.h <<_ACEOF
12691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12692_ACEOF
12693
12694fi
12695
12696done
12697
12698
5ee754fc
MK
12699# FIXME: kettenis/20030102: In most cases we include these
12700# unconditionally, so what's the point in checking these?
bec39cab
AC
12701
12702
12703for ac_header in ctype.h time.h
c906108c 12704do
bec39cab 12705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12706if eval "test \"\${$as_ac_Header+set}\" = set"; then
12707 echo "$as_me:$LINENO: checking for $ac_header" >&5
12708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12709if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711fi
b4e70030
JB
12712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12714else
12715 # Is the header compilable?
b4e70030
JB
12716echo "$as_me:$LINENO: checking $ac_header usability" >&5
12717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12718cat >conftest.$ac_ext <<_ACEOF
12719/* confdefs.h. */
12720_ACEOF
12721cat confdefs.h >>conftest.$ac_ext
12722cat >>conftest.$ac_ext <<_ACEOF
12723/* end confdefs.h. */
12724$ac_includes_default
12725#include <$ac_header>
12726_ACEOF
12727rm -f conftest.$ac_objext
12728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
b4e70030
JB
12736 { ac_try='test -z "$ac_c_werror_flag"
12737 || test ! -s conftest.err'
bec39cab
AC
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_header_compiler=yes
12750else
12751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
b4e70030 12754ac_header_compiler=no
bec39cab
AC
12755fi
12756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12758echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12759
12760# Is the header present?
b4e70030
JB
12761echo "$as_me:$LINENO: checking $ac_header presence" >&5
12762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12763cat >conftest.$ac_ext <<_ACEOF
12764/* confdefs.h. */
12765_ACEOF
12766cat confdefs.h >>conftest.$ac_ext
12767cat >>conftest.$ac_ext <<_ACEOF
12768/* end confdefs.h. */
12769#include <$ac_header>
12770_ACEOF
12771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } >/dev/null; then
12779 if test -s conftest.err; then
12780 ac_cpp_err=$ac_c_preproc_warn_flag
12781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12782 else
12783 ac_cpp_err=
12784 fi
12785else
12786 ac_cpp_err=yes
c906108c 12787fi
bec39cab
AC
12788if test -z "$ac_cpp_err"; then
12789 ac_header_preproc=yes
12790else
12791 echo "$as_me: failed program was:" >&5
12792sed 's/^/| /' conftest.$ac_ext >&5
12793
12794 ac_header_preproc=no
c906108c 12795fi
bec39cab 12796rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12798echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12799
12800# So? What about this header?
12801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12802 yes:no: )
12803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12807 ac_header_preproc=yes
12808 ;;
12809 no:yes:* )
12810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12822 (
12823 cat <<\_ASBOX
12824## ------------------------------------------ ##
12825## Report this to the AC_PACKAGE_NAME lists. ##
12826## ------------------------------------------ ##
12827_ASBOX
12828 ) |
12829 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12830 ;;
12831esac
b4e70030
JB
12832echo "$as_me:$LINENO: checking for $ac_header" >&5
12833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12834if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12835 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12836else
bec39cab
AC
12837 eval "$as_ac_Header=\$ac_header_preproc"
12838fi
b4e70030
JB
12839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12841
12842fi
12843if test `eval echo '${'$as_ac_Header'}'` = yes; then
12844 cat >>confdefs.h <<_ACEOF
12845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12846_ACEOF
12847
c906108c 12848fi
bec39cab 12849
c906108c
SS
12850done
12851
5ee754fc 12852
4e8d927d 12853# Create a header we can use portably to get the standard integer types.
666ec76f 12854
4e8d927d
DJ
12855
12856inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12857
12858acx_cv_header_stdint=stddef.h
12859acx_cv_header_stdint_kind="(already complete)"
12860for i in stdint.h $inttype_headers; do
12861 unset ac_cv_type_uintptr_t
12862 unset ac_cv_type_uintmax_t
12863 unset ac_cv_type_int_least32_t
12864 unset ac_cv_type_int_fast32_t
12865 unset ac_cv_type_uint64_t
12866 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
12867 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12868echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 12869if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 12870 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12871else
bec39cab
AC
12872 cat >conftest.$ac_ext <<_ACEOF
12873/* confdefs.h. */
12874_ACEOF
12875cat confdefs.h >>conftest.$ac_ext
12876cat >>conftest.$ac_ext <<_ACEOF
12877/* end confdefs.h. */
4e8d927d
DJ
12878#include <sys/types.h>
12879#include <$i>
12880
bec39cab
AC
12881int
12882main ()
12883{
b4e70030 12884if ((uintmax_t *) 0)
4e8d927d 12885 return 0;
b4e70030 12886if (sizeof (uintmax_t))
4e8d927d
DJ
12887 return 0;
12888 ;
bec39cab
AC
12889 return 0;
12890}
12891_ACEOF
12892rm -f conftest.$ac_objext
12893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
b4e70030
JB
12901 { ac_try='test -z "$ac_c_werror_flag"
12902 || test ! -s conftest.err'
bec39cab
AC
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest.$ac_objext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
4e8d927d 12914 ac_cv_type_uintmax_t=yes
40a7debc 12915else
bec39cab
AC
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
b4e70030 12919ac_cv_type_uintmax_t=no
40a7debc 12920fi
bec39cab 12921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 12922fi
b4e70030
JB
12923echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12924echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
12925if test $ac_cv_type_uintmax_t = yes; then
12926 acx_cv_header_stdint=$i
666ec76f 12927else
4e8d927d 12928 continue
666ec76f 12929fi
4e8d927d 12930
b4e70030
JB
12931 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12932echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 12933if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935else
12936 cat >conftest.$ac_ext <<_ACEOF
12937/* confdefs.h. */
12938_ACEOF
12939cat confdefs.h >>conftest.$ac_ext
12940cat >>conftest.$ac_ext <<_ACEOF
12941/* end confdefs.h. */
4e8d927d
DJ
12942#include <sys/types.h>
12943#include <$i>
12944
666ec76f
MK
12945int
12946main ()
12947{
b4e70030 12948if ((uintptr_t *) 0)
4e8d927d 12949 return 0;
b4e70030 12950if (sizeof (uintptr_t))
4e8d927d 12951 return 0;
666ec76f
MK
12952 ;
12953 return 0;
12954}
12955_ACEOF
12956rm -f conftest.$ac_objext
12957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12958 (eval $ac_compile) 2>conftest.er1
12959 ac_status=$?
12960 grep -v '^ *+' conftest.er1 >conftest.err
12961 rm -f conftest.er1
12962 cat conftest.err >&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } &&
b4e70030
JB
12965 { ac_try='test -z "$ac_c_werror_flag"
12966 || test ! -s conftest.err'
666ec76f
MK
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; } &&
12972 { ac_try='test -s conftest.$ac_objext'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
4e8d927d 12978 ac_cv_type_uintptr_t=yes
666ec76f
MK
12979else
12980 echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 12982
b4e70030 12983ac_cv_type_uintptr_t=no
a3828db0
MK
12984fi
12985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986fi
b4e70030
JB
12987echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12988echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
12989if test $ac_cv_type_uintptr_t = yes; then
12990 :
a3828db0 12991else
4e8d927d 12992 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 12993fi
4e8d927d 12994
b4e70030
JB
12995 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12996echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 12997if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
12999else
13000 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
13001/* confdefs.h. */
13002_ACEOF
13003cat confdefs.h >>conftest.$ac_ext
13004cat >>conftest.$ac_ext <<_ACEOF
13005/* end confdefs.h. */
4e8d927d
DJ
13006#include <sys/types.h>
13007#include <$i>
13008
bec39cab
AC
13009int
13010main ()
13011{
b4e70030 13012if ((int_least32_t *) 0)
4e8d927d 13013 return 0;
b4e70030 13014if (sizeof (int_least32_t))
4e8d927d 13015 return 0;
bec39cab
AC
13016 ;
13017 return 0;
13018}
13019_ACEOF
13020rm -f conftest.$ac_objext
13021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022 (eval $ac_compile) 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
b4e70030
JB
13029 { ac_try='test -z "$ac_c_werror_flag"
13030 || test ! -s conftest.err'
bec39cab
AC
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; } &&
13036 { ac_try='test -s conftest.$ac_objext'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; }; then
4e8d927d 13042 ac_cv_type_int_least32_t=yes
b9362cc7 13043else
bec39cab
AC
13044 echo "$as_me: failed program was:" >&5
13045sed 's/^/| /' conftest.$ac_ext >&5
13046
b4e70030 13047ac_cv_type_int_least32_t=no
b9362cc7 13048fi
bec39cab 13049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13050fi
b4e70030
JB
13051echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13052echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
13053if test $ac_cv_type_int_least32_t = yes; then
13054 :
a3828db0 13055else
4e8d927d 13056 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 13057fi
5ee754fc 13058
b4e70030
JB
13059 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13060echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 13061if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063else
13064 cat >conftest.$ac_ext <<_ACEOF
13065/* confdefs.h. */
13066_ACEOF
13067cat confdefs.h >>conftest.$ac_ext
13068cat >>conftest.$ac_ext <<_ACEOF
13069/* end confdefs.h. */
4e8d927d
DJ
13070#include <sys/types.h>
13071#include <$i>
13072
bec39cab
AC
13073int
13074main ()
13075{
b4e70030 13076if ((int_fast32_t *) 0)
4e8d927d 13077 return 0;
b4e70030 13078if (sizeof (int_fast32_t))
4e8d927d 13079 return 0;
bec39cab
AC
13080 ;
13081 return 0;
13082}
13083_ACEOF
13084rm -f conftest.$ac_objext
13085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086 (eval $ac_compile) 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
b4e70030
JB
13093 { ac_try='test -z "$ac_c_werror_flag"
13094 || test ! -s conftest.err'
bec39cab
AC
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest.$ac_objext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
4e8d927d 13106 ac_cv_type_int_fast32_t=yes
c906108c 13107else
bec39cab
AC
13108 echo "$as_me: failed program was:" >&5
13109sed 's/^/| /' conftest.$ac_ext >&5
13110
b4e70030 13111ac_cv_type_int_fast32_t=no
c906108c 13112fi
bec39cab 13113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13114fi
b4e70030
JB
13115echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13116echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
13117if test $ac_cv_type_int_fast32_t = yes; then
13118 :
a3828db0 13119else
4e8d927d 13120 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 13121fi
4e8d927d 13122
b4e70030
JB
13123 echo "$as_me:$LINENO: checking for uint64_t" >&5
13124echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 13125if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127else
13128 cat >conftest.$ac_ext <<_ACEOF
13129/* confdefs.h. */
13130_ACEOF
13131cat confdefs.h >>conftest.$ac_ext
13132cat >>conftest.$ac_ext <<_ACEOF
13133/* end confdefs.h. */
4e8d927d
DJ
13134#include <sys/types.h>
13135#include <$i>
13136
bec39cab
AC
13137int
13138main ()
13139{
b4e70030 13140if ((uint64_t *) 0)
4e8d927d 13141 return 0;
b4e70030 13142if (sizeof (uint64_t))
4e8d927d 13143 return 0;
bec39cab
AC
13144 ;
13145 return 0;
13146}
13147_ACEOF
13148rm -f conftest.$ac_objext
13149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
b4e70030
JB
13157 { ac_try='test -z "$ac_c_werror_flag"
13158 || test ! -s conftest.err'
bec39cab
AC
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
4e8d927d 13170 ac_cv_type_uint64_t=yes
c906108c 13171else
bec39cab
AC
13172 echo "$as_me: failed program was:" >&5
13173sed 's/^/| /' conftest.$ac_ext >&5
13174
b4e70030 13175ac_cv_type_uint64_t=no
c906108c 13176fi
bec39cab 13177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13178fi
b4e70030
JB
13179echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13180echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
13181if test $ac_cv_type_uint64_t = yes; then
13182 :
a3828db0 13183else
4e8d927d 13184 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
13185fi
13186
4e8d927d
DJ
13187 break
13188done
13189if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 13190 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 13191 for i in stdint.h $inttype_headers; do
3841debe 13192 unset ac_cv_type_uintptr_t
4e8d927d
DJ
13193 unset ac_cv_type_uint32_t
13194 unset ac_cv_type_uint64_t
13195 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
13196 echo "$as_me:$LINENO: checking for uint32_t" >&5
13197echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 13198if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 13199 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 13200else
bec39cab
AC
13201 cat >conftest.$ac_ext <<_ACEOF
13202/* confdefs.h. */
13203_ACEOF
13204cat confdefs.h >>conftest.$ac_ext
13205cat >>conftest.$ac_ext <<_ACEOF
13206/* end confdefs.h. */
4e8d927d
DJ
13207#include <sys/types.h>
13208#include <$i>
13209
a3828db0
MK
13210int
13211main ()
13212{
b4e70030 13213if ((uint32_t *) 0)
4e8d927d 13214 return 0;
b4e70030 13215if (sizeof (uint32_t))
4e8d927d 13216 return 0;
a3828db0
MK
13217 ;
13218 return 0;
13219}
bec39cab
AC
13220_ACEOF
13221rm -f conftest.$ac_objext
13222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13223 (eval $ac_compile) 2>conftest.er1
13224 ac_status=$?
13225 grep -v '^ *+' conftest.er1 >conftest.err
13226 rm -f conftest.er1
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
b4e70030
JB
13230 { ac_try='test -z "$ac_c_werror_flag"
13231 || test ! -s conftest.err'
bec39cab
AC
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } &&
13237 { ac_try='test -s conftest.$ac_objext'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
4e8d927d 13243 ac_cv_type_uint32_t=yes
bce58c09 13244else
bec39cab
AC
13245 echo "$as_me: failed program was:" >&5
13246sed 's/^/| /' conftest.$ac_ext >&5
13247
b4e70030 13248ac_cv_type_uint32_t=no
bce58c09 13249fi
bec39cab 13250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 13251fi
b4e70030
JB
13252echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13253echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
13254if test $ac_cv_type_uint32_t = yes; then
13255 acx_cv_header_stdint=$i
a3828db0 13256else
4e8d927d 13257 continue
e5a7de23 13258fi
4e8d927d 13259
b4e70030
JB
13260 echo "$as_me:$LINENO: checking for uint64_t" >&5
13261echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 13262if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264else
13265 cat >conftest.$ac_ext <<_ACEOF
13266/* confdefs.h. */
13267_ACEOF
13268cat confdefs.h >>conftest.$ac_ext
13269cat >>conftest.$ac_ext <<_ACEOF
13270/* end confdefs.h. */
4e8d927d
DJ
13271#include <sys/types.h>
13272#include <$i>
13273
e5a7de23
EZ
13274int
13275main ()
13276{
b4e70030 13277if ((uint64_t *) 0)
4e8d927d 13278 return 0;
b4e70030 13279if (sizeof (uint64_t))
4e8d927d 13280 return 0;
e5a7de23
EZ
13281 ;
13282 return 0;
13283}
13284_ACEOF
13285rm -f conftest.$ac_objext
13286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287 (eval $ac_compile) 2>conftest.er1
13288 ac_status=$?
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
b4e70030
JB
13294 { ac_try='test -z "$ac_c_werror_flag"
13295 || test ! -s conftest.err'
e5a7de23
EZ
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
4e8d927d 13307 ac_cv_type_uint64_t=yes
e5a7de23
EZ
13308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
b4e70030 13312ac_cv_type_uint64_t=no
e5a7de23
EZ
13313fi
13314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13315fi
b4e70030
JB
13316echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13317echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
13318
13319 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13320echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13321if test "${ac_cv_type_uintptr_t+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323else
13324 cat >conftest.$ac_ext <<_ACEOF
13325/* confdefs.h. */
13326_ACEOF
13327cat confdefs.h >>conftest.$ac_ext
13328cat >>conftest.$ac_ext <<_ACEOF
13329/* end confdefs.h. */
13330#include <sys/types.h>
13331#include <$i>
13332
13333int
13334main ()
13335{
13336if ((uintptr_t *) 0)
13337 return 0;
13338if (sizeof (uintptr_t))
13339 return 0;
13340 ;
13341 return 0;
13342}
13343_ACEOF
13344rm -f conftest.$ac_objext
13345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13346 (eval $ac_compile) 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
13353 { ac_try='test -z "$ac_c_werror_flag"
13354 || test ! -s conftest.err'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; } &&
13360 { ac_try='test -s conftest.$ac_objext'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
13366 ac_cv_type_uintptr_t=yes
e5a7de23 13367else
3841debe
DJ
13368 echo "$as_me: failed program was:" >&5
13369sed 's/^/| /' conftest.$ac_ext >&5
13370
13371ac_cv_type_uintptr_t=no
4e8d927d 13372fi
3841debe
DJ
13373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13374fi
13375echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13376echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 13377
4e8d927d
DJ
13378 break
13379 done
e5a7de23 13380fi
4e8d927d
DJ
13381if test "$acx_cv_header_stdint" = stddef.h; then
13382 acx_cv_header_stdint_kind="(u_intXX_t style)"
13383 for i in sys/types.h $inttype_headers; do
13384 unset ac_cv_type_u_int32_t
13385 unset ac_cv_type_u_int64_t
13386 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
13387 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13388echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 13389if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391else
13392 cat >conftest.$ac_ext <<_ACEOF
13393/* confdefs.h. */
13394_ACEOF
13395cat confdefs.h >>conftest.$ac_ext
13396cat >>conftest.$ac_ext <<_ACEOF
13397/* end confdefs.h. */
4e8d927d
DJ
13398#include <sys/types.h>
13399#include <$i>
13400
e5a7de23
EZ
13401int
13402main ()
13403{
b4e70030 13404if ((u_int32_t *) 0)
4e8d927d 13405 return 0;
b4e70030 13406if (sizeof (u_int32_t))
4e8d927d 13407 return 0;
e5a7de23
EZ
13408 ;
13409 return 0;
13410}
13411_ACEOF
13412rm -f conftest.$ac_objext
13413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414 (eval $ac_compile) 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
b4e70030
JB
13421 { ac_try='test -z "$ac_c_werror_flag"
13422 || test ! -s conftest.err'
e5a7de23
EZ
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
4e8d927d 13434 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
13435else
13436 echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
b4e70030 13439ac_cv_type_u_int32_t=no
e5a7de23
EZ
13440fi
13441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442fi
b4e70030
JB
13443echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13444echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
13445if test $ac_cv_type_u_int32_t = yes; then
13446 acx_cv_header_stdint=$i
e5a7de23 13447else
4e8d927d 13448 continue
a3828db0 13449fi
5ee754fc 13450
b4e70030
JB
13451 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13452echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 13453if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455else
13456 cat >conftest.$ac_ext <<_ACEOF
13457/* confdefs.h. */
13458_ACEOF
13459cat confdefs.h >>conftest.$ac_ext
13460cat >>conftest.$ac_ext <<_ACEOF
13461/* end confdefs.h. */
4e8d927d
DJ
13462#include <sys/types.h>
13463#include <$i>
13464
bec39cab
AC
13465int
13466main ()
13467{
b4e70030 13468if ((u_int64_t *) 0)
4e8d927d 13469 return 0;
b4e70030 13470if (sizeof (u_int64_t))
4e8d927d 13471 return 0;
bec39cab
AC
13472 ;
13473 return 0;
13474}
13475_ACEOF
a3828db0
MK
13476rm -f conftest.$ac_objext
13477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
b4e70030
JB
13485 { ac_try='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
bec39cab
AC
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
a3828db0 13492 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
4e8d927d 13498 ac_cv_type_u_int64_t=yes
bec39cab
AC
13499else
13500 echo "$as_me: failed program was:" >&5
13501sed 's/^/| /' conftest.$ac_ext >&5
13502
b4e70030 13503ac_cv_type_u_int64_t=no
4e8d927d 13504fi
4e8d927d
DJ
13505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506fi
b4e70030
JB
13507echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13508echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
13509
13510 break
13511 done
13512fi
13513if test "$acx_cv_header_stdint" = stddef.h; then
13514 acx_cv_header_stdint_kind="(using manual detection)"
13515fi
13516
13517test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13518test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13519test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13520test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13521test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13522
13523# ----------------- Summarize what we found so far
13524
b4e70030
JB
13525echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
13526echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 13527
b4e70030 13528case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
13529$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13530 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
13531 Xgdb_stdint.h : 'X\(/\)$' \| \
13532 . : '\(.\)' 2>/dev/null ||
4e8d927d 13533echo X/gdb_stdint.h |
b4e70030
JB
13534 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13535 /^X\/\(\/\/\)$/{ s//\1/; q; }
13536 /^X\/\(\/\).*/{ s//\1/; q; }
13537 s/.*/./; q'` in
4e8d927d
DJ
13538 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13539echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13540 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13541echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13542 *) ;;
13543esac
13544
b4e70030
JB
13545echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13546echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
13547
13548# ----------------- done included file, check C basic types --------
13549
13550# Lacking an uintptr_t? Test size of void *
13551case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
13552 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13553echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
13554if test "${ac_cv_type_void_p+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556else
13557 cat >conftest.$ac_ext <<_ACEOF
a3828db0 13558/* confdefs.h. */
bec39cab
AC
13559_ACEOF
13560cat confdefs.h >>conftest.$ac_ext
13561cat >>conftest.$ac_ext <<_ACEOF
13562/* end confdefs.h. */
a3828db0 13563$ac_includes_default
bec39cab
AC
13564int
13565main ()
13566{
b4e70030 13567if ((void * *) 0)
4e8d927d 13568 return 0;
b4e70030 13569if (sizeof (void *))
4e8d927d 13570 return 0;
bec39cab
AC
13571 ;
13572 return 0;
13573}
13574_ACEOF
a3828db0
MK
13575rm -f conftest.$ac_objext
13576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
b4e70030
JB
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
bec39cab
AC
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
a3828db0 13591 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
4e8d927d 13597 ac_cv_type_void_p=yes
46711df8 13598else
bec39cab
AC
13599 echo "$as_me: failed program was:" >&5
13600sed 's/^/| /' conftest.$ac_ext >&5
13601
b4e70030 13602ac_cv_type_void_p=no
a3828db0 13603fi
4e8d927d 13604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 13605fi
b4e70030
JB
13606echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13607echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 13608
b4e70030
JB
13609echo "$as_me:$LINENO: checking size of void *" >&5
13610echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 13611if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
4e8d927d 13614 if test "$ac_cv_type_void_p" = yes; then
b4e70030 13615 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13618 # This bug is HP SR number 8606223364.
13619 if test "$cross_compiling" = yes; then
13620 # Depending upon the size, compute the lo and hi bounds.
13621cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
13622/* confdefs.h. */
13623_ACEOF
13624cat confdefs.h >>conftest.$ac_ext
13625cat >>conftest.$ac_ext <<_ACEOF
13626/* end confdefs.h. */
13627$ac_includes_default
13628int
13629main ()
13630{
b4e70030 13631static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
13632test_array [0] = 0
13633
d3ea6809
MM
13634 ;
13635 return 0;
13636}
13637_ACEOF
13638rm -f conftest.$ac_objext
13639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640 (eval $ac_compile) 2>conftest.er1
13641 ac_status=$?
13642 grep -v '^ *+' conftest.er1 >conftest.err
13643 rm -f conftest.er1
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
b4e70030
JB
13647 { ac_try='test -z "$ac_c_werror_flag"
13648 || test ! -s conftest.err'
d3ea6809
MM
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
4e8d927d
DJ
13660 ac_lo=0 ac_mid=0
13661 while :; do
13662 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
13663/* confdefs.h. */
13664_ACEOF
13665cat confdefs.h >>conftest.$ac_ext
13666cat >>conftest.$ac_ext <<_ACEOF
13667/* end confdefs.h. */
13668$ac_includes_default
13669int
13670main ()
13671{
b4e70030 13672static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
13673test_array [0] = 0
13674
d3ea6809
MM
13675 ;
13676 return 0;
13677}
13678_ACEOF
13679rm -f conftest.$ac_objext
13680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>conftest.er1
13682 ac_status=$?
13683 grep -v '^ *+' conftest.er1 >conftest.err
13684 rm -f conftest.er1
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
b4e70030
JB
13688 { ac_try='test -z "$ac_c_werror_flag"
13689 || test ! -s conftest.err'
d3ea6809
MM
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } &&
13695 { ac_try='test -s conftest.$ac_objext'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
4e8d927d 13701 ac_hi=$ac_mid; break
d3ea6809
MM
13702else
13703 echo "$as_me: failed program was:" >&5
13704sed 's/^/| /' conftest.$ac_ext >&5
13705
b4e70030
JB
13706ac_lo=`expr $ac_mid + 1`
13707 if test $ac_lo -le $ac_mid; then
13708 ac_lo= ac_hi=
13709 break
13710 fi
13711 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 13712fi
4e8d927d
DJ
13713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13714 done
bec39cab 13715else
4e8d927d
DJ
13716 echo "$as_me: failed program was:" >&5
13717sed 's/^/| /' conftest.$ac_ext >&5
13718
b4e70030 13719cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13720/* confdefs.h. */
13721_ACEOF
13722cat confdefs.h >>conftest.$ac_ext
13723cat >>conftest.$ac_ext <<_ACEOF
13724/* end confdefs.h. */
4e8d927d 13725$ac_includes_default
bec39cab
AC
13726int
13727main ()
13728{
b4e70030 13729static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
13730test_array [0] = 0
13731
bec39cab
AC
13732 ;
13733 return 0;
13734}
13735_ACEOF
a3828db0
MK
13736rm -f conftest.$ac_objext
13737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
b4e70030
JB
13745 { ac_try='test -z "$ac_c_werror_flag"
13746 || test ! -s conftest.err'
bec39cab
AC
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
a3828db0 13752 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
4e8d927d
DJ
13758 ac_hi=-1 ac_mid=-1
13759 while :; do
13760 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
13761/* confdefs.h. */
13762_ACEOF
13763cat confdefs.h >>conftest.$ac_ext
13764cat >>conftest.$ac_ext <<_ACEOF
13765/* end confdefs.h. */
4e8d927d 13766$ac_includes_default
f9f87d2c
MK
13767int
13768main ()
13769{
b4e70030 13770static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
13771test_array [0] = 0
13772
f9f87d2c
MK
13773 ;
13774 return 0;
13775}
13776_ACEOF
13777rm -f conftest.$ac_objext
13778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
b4e70030
JB
13786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
f9f87d2c
MK
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
4e8d927d 13799 ac_lo=$ac_mid; break
f9f87d2c
MK
13800else
13801 echo "$as_me: failed program was:" >&5
13802sed 's/^/| /' conftest.$ac_ext >&5
13803
b4e70030
JB
13804ac_hi=`expr '(' $ac_mid ')' - 1`
13805 if test $ac_mid -le $ac_hi; then
13806 ac_lo= ac_hi=
13807 break
13808 fi
13809 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 13810fi
4e8d927d
DJ
13811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13812 done
13813else
13814 echo "$as_me: failed program was:" >&5
13815sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 13816
b4e70030 13817ac_lo= ac_hi=
4e8d927d 13818fi
4e8d927d 13819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 13820fi
4e8d927d
DJ
13821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13822# Binary search between lo and hi bounds.
13823while test "x$ac_lo" != "x$ac_hi"; do
13824 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
13825 cat >conftest.$ac_ext <<_ACEOF
13826/* confdefs.h. */
13827_ACEOF
13828cat confdefs.h >>conftest.$ac_ext
13829cat >>conftest.$ac_ext <<_ACEOF
13830/* end confdefs.h. */
4e8d927d 13831$ac_includes_default
3be60c3d
MK
13832int
13833main ()
13834{
b4e70030 13835static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
13836test_array [0] = 0
13837
3be60c3d
MK
13838 ;
13839 return 0;
13840}
13841_ACEOF
13842rm -f conftest.$ac_objext
13843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844 (eval $ac_compile) 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
b4e70030
JB
13851 { ac_try='test -z "$ac_c_werror_flag"
13852 || test ! -s conftest.err'
3be60c3d
MK
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } &&
13858 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4e8d927d 13864 ac_hi=$ac_mid
3be60c3d
MK
13865else
13866 echo "$as_me: failed program was:" >&5
13867sed 's/^/| /' conftest.$ac_ext >&5
13868
b4e70030 13869ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 13870fi
4e8d927d
DJ
13871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13872done
13873case $ac_lo in
13874?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 13875'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 13876See \`config.log' for more details." >&5
b4e70030 13877echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 13878See \`config.log' for more details." >&2;}
b4e70030 13879 { (exit 1); exit 1; }; } ;;
4e8d927d 13880esac
b4e70030
JB
13881else
13882 if test "$cross_compiling" = yes; then
13883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13884See \`config.log' for more details." >&5
13885echo "$as_me: error: cannot run test program while cross compiling
13886See \`config.log' for more details." >&2;}
13887 { (exit 1); exit 1; }; }
4e8d927d
DJ
13888else
13889 cat >conftest.$ac_ext <<_ACEOF
13890/* confdefs.h. */
3be60c3d 13891_ACEOF
4e8d927d
DJ
13892cat confdefs.h >>conftest.$ac_ext
13893cat >>conftest.$ac_ext <<_ACEOF
13894/* end confdefs.h. */
13895$ac_includes_default
b4e70030
JB
13896long longval () { return (long) (sizeof (void *)); }
13897unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
13898#include <stdio.h>
13899#include <stdlib.h>
13900int
13901main ()
13902{
13903
13904 FILE *f = fopen ("conftest.val", "w");
13905 if (! f)
b4e70030
JB
13906 exit (1);
13907 if (((long) (sizeof (void *))) < 0)
4e8d927d 13908 {
b4e70030
JB
13909 long i = longval ();
13910 if (i != ((long) (sizeof (void *))))
13911 exit (1);
4e8d927d
DJ
13912 fprintf (f, "%ld\n", i);
13913 }
13914 else
13915 {
b4e70030
JB
13916 unsigned long i = ulongval ();
13917 if (i != ((long) (sizeof (void *))))
13918 exit (1);
4e8d927d
DJ
13919 fprintf (f, "%lu\n", i);
13920 }
b4e70030 13921 exit (ferror (f) || fclose (f) != 0);
3be60c3d 13922
4e8d927d
DJ
13923 ;
13924 return 0;
13925}
13926_ACEOF
13927rm -f conftest$ac_exeext
13928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_cv_sizeof_void_p=`cat conftest.val`
13939else
13940 echo "$as_me: program exited with status $ac_status" >&5
13941echo "$as_me: failed program was:" >&5
13942sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 13943
4e8d927d 13944( exit $ac_status )
b4e70030 13945{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 13946See \`config.log' for more details." >&5
b4e70030 13947echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 13948See \`config.log' for more details." >&2;}
b4e70030
JB
13949 { (exit 1); exit 1; }; }
13950fi
13951rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 13952fi
4e8d927d
DJ
13953fi
13954rm -f conftest.val
13955else
13956 ac_cv_sizeof_void_p=0
13957fi
13958fi
b4e70030
JB
13959echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13960echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
13961cat >>confdefs.h <<_ACEOF
13962#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13963_ACEOF
f9f87d2c 13964
4e8d927d
DJ
13965 ;;
13966esac
46711df8 13967
4e8d927d
DJ
13968# Lacking an uint64_t? Test size of long
13969case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
13970 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13971echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 13972if test "${ac_cv_type_long+set}" = set; then
bec39cab 13973 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13974else
bec39cab
AC
13975 cat >conftest.$ac_ext <<_ACEOF
13976/* confdefs.h. */
13977_ACEOF
13978cat confdefs.h >>conftest.$ac_ext
13979cat >>conftest.$ac_ext <<_ACEOF
13980/* end confdefs.h. */
4e8d927d 13981$ac_includes_default
bec39cab 13982int
46711df8
MK
13983main ()
13984{
b4e70030 13985if ((long *) 0)
4e8d927d 13986 return 0;
b4e70030 13987if (sizeof (long))
4e8d927d 13988 return 0;
a3828db0
MK
13989 ;
13990 return 0;
46711df8 13991}
bec39cab 13992_ACEOF
a3828db0
MK
13993rm -f conftest.$ac_objext
13994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13995 (eval $ac_compile) 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
b4e70030
JB
14002 { ac_try='test -z "$ac_c_werror_flag"
14003 || test ! -s conftest.err'
a3828db0
MK
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
bec39cab
AC
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
14008 (exit $ac_status); }; } &&
14009 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
4e8d927d 14015 ac_cv_type_long=yes
46711df8 14016else
a3828db0 14017 echo "$as_me: failed program was:" >&5
bec39cab
AC
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
b4e70030 14020ac_cv_type_long=no
46711df8 14021fi
4e8d927d 14022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 14023fi
b4e70030
JB
14024echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14025echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 14026
b4e70030
JB
14027echo "$as_me:$LINENO: checking size of long" >&5
14028echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 14029if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 14030 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14031else
4e8d927d 14032 if test "$ac_cv_type_long" = yes; then
b4e70030 14033 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
14034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14036 # This bug is HP SR number 8606223364.
14037 if test "$cross_compiling" = yes; then
14038 # Depending upon the size, compute the lo and hi bounds.
14039cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14040/* confdefs.h. */
14041_ACEOF
14042cat confdefs.h >>conftest.$ac_ext
14043cat >>conftest.$ac_ext <<_ACEOF
14044/* end confdefs.h. */
4e8d927d 14045$ac_includes_default
4e8d927d
DJ
14046int
14047main ()
14048{
b4e70030 14049static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 14050test_array [0] = 0
a3828db0 14051
4e8d927d
DJ
14052 ;
14053 return 0;
14054}
bec39cab
AC
14055_ACEOF
14056rm -f conftest.$ac_objext
14057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058 (eval $ac_compile) 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
b4e70030
JB
14065 { ac_try='test -z "$ac_c_werror_flag"
14066 || test ! -s conftest.err'
bec39cab
AC
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest.$ac_objext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
4e8d927d
DJ
14078 ac_lo=0 ac_mid=0
14079 while :; do
14080 cat >conftest.$ac_ext <<_ACEOF
14081/* confdefs.h. */
14082_ACEOF
14083cat confdefs.h >>conftest.$ac_ext
14084cat >>conftest.$ac_ext <<_ACEOF
14085/* end confdefs.h. */
14086$ac_includes_default
4e8d927d
DJ
14087int
14088main ()
14089{
b4e70030 14090static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
14091test_array [0] = 0
14092
14093 ;
14094 return 0;
14095}
14096_ACEOF
14097rm -f conftest.$ac_objext
14098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099 (eval $ac_compile) 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
b4e70030
JB
14106 { ac_try='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
4e8d927d
DJ
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_hi=$ac_mid; break
14120else
14121 echo "$as_me: failed program was:" >&5
14122sed 's/^/| /' conftest.$ac_ext >&5
14123
b4e70030
JB
14124ac_lo=`expr $ac_mid + 1`
14125 if test $ac_lo -le $ac_mid; then
14126 ac_lo= ac_hi=
14127 break
14128 fi
14129 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14130fi
4e8d927d
DJ
14131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14132 done
14133else
14134 echo "$as_me: failed program was:" >&5
14135sed 's/^/| /' conftest.$ac_ext >&5
14136
b4e70030 14137cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14138/* confdefs.h. */
14139_ACEOF
14140cat confdefs.h >>conftest.$ac_ext
14141cat >>conftest.$ac_ext <<_ACEOF
14142/* end confdefs.h. */
14143$ac_includes_default
4e8d927d
DJ
14144int
14145main ()
14146{
b4e70030 14147static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
14148test_array [0] = 0
14149
14150 ;
14151 return 0;
14152}
14153_ACEOF
14154rm -f conftest.$ac_objext
14155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14156 (eval $ac_compile) 2>conftest.er1
14157 ac_status=$?
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
b4e70030
JB
14163 { ac_try='test -z "$ac_c_werror_flag"
14164 || test ! -s conftest.err'
4e8d927d
DJ
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest.$ac_objext'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; }; then
14176 ac_hi=-1 ac_mid=-1
14177 while :; do
14178 cat >conftest.$ac_ext <<_ACEOF
14179/* confdefs.h. */
14180_ACEOF
14181cat confdefs.h >>conftest.$ac_ext
14182cat >>conftest.$ac_ext <<_ACEOF
14183/* end confdefs.h. */
14184$ac_includes_default
4e8d927d
DJ
14185int
14186main ()
14187{
b4e70030 14188static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
14189test_array [0] = 0
14190
14191 ;
14192 return 0;
14193}
14194_ACEOF
14195rm -f conftest.$ac_objext
14196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197 (eval $ac_compile) 2>conftest.er1
14198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
b4e70030
JB
14204 { ac_try='test -z "$ac_c_werror_flag"
14205 || test ! -s conftest.err'
4e8d927d
DJ
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try='test -s conftest.$ac_objext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 ac_lo=$ac_mid; break
14218else
14219 echo "$as_me: failed program was:" >&5
14220sed 's/^/| /' conftest.$ac_ext >&5
14221
b4e70030
JB
14222ac_hi=`expr '(' $ac_mid ')' - 1`
14223 if test $ac_mid -le $ac_hi; then
14224 ac_lo= ac_hi=
14225 break
14226 fi
14227 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14228fi
4e8d927d
DJ
14229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14230 done
14231else
14232 echo "$as_me: failed program was:" >&5
14233sed 's/^/| /' conftest.$ac_ext >&5
14234
b4e70030 14235ac_lo= ac_hi=
4e8d927d 14236fi
4e8d927d
DJ
14237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14238fi
4e8d927d
DJ
14239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14240# Binary search between lo and hi bounds.
14241while test "x$ac_lo" != "x$ac_hi"; do
14242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14243 cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h. */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h. */
14249$ac_includes_default
4e8d927d
DJ
14250int
14251main ()
14252{
b4e70030 14253static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
14254test_array [0] = 0
14255
14256 ;
14257 return 0;
14258}
14259_ACEOF
14260rm -f conftest.$ac_objext
14261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262 (eval $ac_compile) 2>conftest.er1
14263 ac_status=$?
14264 grep -v '^ *+' conftest.er1 >conftest.err
14265 rm -f conftest.er1
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
b4e70030
JB
14269 { ac_try='test -z "$ac_c_werror_flag"
14270 || test ! -s conftest.err'
4e8d927d
DJ
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest.$ac_objext'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 ac_hi=$ac_mid
14283else
14284 echo "$as_me: failed program was:" >&5
14285sed 's/^/| /' conftest.$ac_ext >&5
14286
b4e70030 14287ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14288fi
4e8d927d
DJ
14289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14290done
14291case $ac_lo in
14292?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 14293'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 14294See \`config.log' for more details." >&5
b4e70030 14295echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 14296See \`config.log' for more details." >&2;}
b4e70030 14297 { (exit 1); exit 1; }; } ;;
4e8d927d 14298esac
b4e70030
JB
14299else
14300 if test "$cross_compiling" = yes; then
14301 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14302See \`config.log' for more details." >&5
14303echo "$as_me: error: cannot run test program while cross compiling
14304See \`config.log' for more details." >&2;}
14305 { (exit 1); exit 1; }; }
4e8d927d
DJ
14306else
14307 cat >conftest.$ac_ext <<_ACEOF
14308/* confdefs.h. */
14309_ACEOF
14310cat confdefs.h >>conftest.$ac_ext
14311cat >>conftest.$ac_ext <<_ACEOF
14312/* end confdefs.h. */
14313$ac_includes_default
b4e70030
JB
14314long longval () { return (long) (sizeof (long)); }
14315unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
14316#include <stdio.h>
14317#include <stdlib.h>
14318int
14319main ()
14320{
14321
14322 FILE *f = fopen ("conftest.val", "w");
14323 if (! f)
b4e70030
JB
14324 exit (1);
14325 if (((long) (sizeof (long))) < 0)
4e8d927d 14326 {
b4e70030
JB
14327 long i = longval ();
14328 if (i != ((long) (sizeof (long))))
14329 exit (1);
4e8d927d
DJ
14330 fprintf (f, "%ld\n", i);
14331 }
14332 else
14333 {
b4e70030
JB
14334 unsigned long i = ulongval ();
14335 if (i != ((long) (sizeof (long))))
14336 exit (1);
4e8d927d
DJ
14337 fprintf (f, "%lu\n", i);
14338 }
b4e70030 14339 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14340
14341 ;
14342 return 0;
14343}
14344_ACEOF
14345rm -f conftest$ac_exeext
14346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14347 (eval $ac_link) 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14353 ac_status=$?
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; }; then
14356 ac_cv_sizeof_long=`cat conftest.val`
14357else
14358 echo "$as_me: program exited with status $ac_status" >&5
14359echo "$as_me: failed program was:" >&5
14360sed 's/^/| /' conftest.$ac_ext >&5
14361
14362( exit $ac_status )
b4e70030 14363{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 14364See \`config.log' for more details." >&5
b4e70030 14365echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 14366See \`config.log' for more details." >&2;}
b4e70030
JB
14367 { (exit 1); exit 1; }; }
14368fi
14369rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14370fi
4e8d927d
DJ
14371fi
14372rm -f conftest.val
14373else
14374 ac_cv_sizeof_long=0
14375fi
14376fi
b4e70030
JB
14377echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14378echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
14379cat >>confdefs.h <<_ACEOF
14380#define SIZEOF_LONG $ac_cv_sizeof_long
14381_ACEOF
14382
14383 ;;
14384esac
14385
14386if test $acx_cv_header_stdint = stddef.h; then
14387 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
14388 echo "$as_me:$LINENO: checking for int" >&5
14389echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
14390if test "${ac_cv_type_int+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14392else
14393 cat >conftest.$ac_ext <<_ACEOF
14394/* confdefs.h. */
14395_ACEOF
14396cat confdefs.h >>conftest.$ac_ext
14397cat >>conftest.$ac_ext <<_ACEOF
14398/* end confdefs.h. */
14399$ac_includes_default
4e8d927d
DJ
14400int
14401main ()
14402{
b4e70030 14403if ((int *) 0)
4e8d927d 14404 return 0;
b4e70030 14405if (sizeof (int))
4e8d927d
DJ
14406 return 0;
14407 ;
14408 return 0;
14409}
14410_ACEOF
14411rm -f conftest.$ac_objext
14412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
b4e70030
JB
14420 { ac_try='test -z "$ac_c_werror_flag"
14421 || test ! -s conftest.err'
4e8d927d
DJ
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; } &&
14427 { ac_try='test -s conftest.$ac_objext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_cv_type_int=yes
14434else
14435 echo "$as_me: failed program was:" >&5
14436sed 's/^/| /' conftest.$ac_ext >&5
14437
b4e70030 14438ac_cv_type_int=no
4e8d927d 14439fi
4e8d927d
DJ
14440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441fi
b4e70030
JB
14442echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14443echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 14444
b4e70030
JB
14445echo "$as_me:$LINENO: checking size of int" >&5
14446echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
14447if test "${ac_cv_sizeof_int+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449else
14450 if test "$ac_cv_type_int" = yes; then
b4e70030 14451 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
14452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14454 # This bug is HP SR number 8606223364.
14455 if test "$cross_compiling" = yes; then
14456 # Depending upon the size, compute the lo and hi bounds.
14457cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
14462/* end confdefs.h. */
14463$ac_includes_default
4e8d927d
DJ
14464int
14465main ()
14466{
b4e70030 14467static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
14468test_array [0] = 0
14469
14470 ;
14471 return 0;
14472}
14473_ACEOF
14474rm -f conftest.$ac_objext
14475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
b4e70030
JB
14483 { ac_try='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
4e8d927d
DJ
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest.$ac_objext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 ac_lo=0 ac_mid=0
14497 while :; do
14498 cat >conftest.$ac_ext <<_ACEOF
14499/* confdefs.h. */
14500_ACEOF
14501cat confdefs.h >>conftest.$ac_ext
14502cat >>conftest.$ac_ext <<_ACEOF
14503/* end confdefs.h. */
14504$ac_includes_default
4e8d927d
DJ
14505int
14506main ()
14507{
b4e70030 14508static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
14509test_array [0] = 0
14510
14511 ;
14512 return 0;
14513}
14514_ACEOF
14515rm -f conftest.$ac_objext
14516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517 (eval $ac_compile) 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
b4e70030
JB
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
4e8d927d
DJ
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest.$ac_objext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 ac_hi=$ac_mid; break
14538else
14539 echo "$as_me: failed program was:" >&5
14540sed 's/^/| /' conftest.$ac_ext >&5
14541
b4e70030
JB
14542ac_lo=`expr $ac_mid + 1`
14543 if test $ac_lo -le $ac_mid; then
14544 ac_lo= ac_hi=
14545 break
14546 fi
14547 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14548fi
4e8d927d
DJ
14549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14550 done
14551else
14552 echo "$as_me: failed program was:" >&5
14553sed 's/^/| /' conftest.$ac_ext >&5
14554
b4e70030 14555cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14556/* confdefs.h. */
14557_ACEOF
14558cat confdefs.h >>conftest.$ac_ext
14559cat >>conftest.$ac_ext <<_ACEOF
14560/* end confdefs.h. */
14561$ac_includes_default
4e8d927d
DJ
14562int
14563main ()
14564{
b4e70030 14565static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
14566test_array [0] = 0
14567
14568 ;
14569 return 0;
14570}
14571_ACEOF
14572rm -f conftest.$ac_objext
14573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574 (eval $ac_compile) 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
b4e70030
JB
14581 { ac_try='test -z "$ac_c_werror_flag"
14582 || test ! -s conftest.err'
4e8d927d
DJ
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest.$ac_objext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 ac_hi=-1 ac_mid=-1
14595 while :; do
14596 cat >conftest.$ac_ext <<_ACEOF
14597/* confdefs.h. */
14598_ACEOF
14599cat confdefs.h >>conftest.$ac_ext
14600cat >>conftest.$ac_ext <<_ACEOF
14601/* end confdefs.h. */
14602$ac_includes_default
4e8d927d
DJ
14603int
14604main ()
14605{
b4e70030 14606static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
14607test_array [0] = 0
14608
14609 ;
14610 return 0;
14611}
14612_ACEOF
14613rm -f conftest.$ac_objext
14614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615 (eval $ac_compile) 2>conftest.er1
14616 ac_status=$?
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
b4e70030
JB
14622 { ac_try='test -z "$ac_c_werror_flag"
14623 || test ! -s conftest.err'
4e8d927d
DJ
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; } &&
14629 { ac_try='test -s conftest.$ac_objext'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_lo=$ac_mid; break
14636else
14637 echo "$as_me: failed program was:" >&5
14638sed 's/^/| /' conftest.$ac_ext >&5
14639
b4e70030
JB
14640ac_hi=`expr '(' $ac_mid ')' - 1`
14641 if test $ac_mid -le $ac_hi; then
14642 ac_lo= ac_hi=
14643 break
14644 fi
14645 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14646fi
4e8d927d
DJ
14647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14648 done
14649else
14650 echo "$as_me: failed program was:" >&5
14651sed 's/^/| /' conftest.$ac_ext >&5
14652
b4e70030 14653ac_lo= ac_hi=
4e8d927d 14654fi
4e8d927d
DJ
14655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14656fi
4e8d927d
DJ
14657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14658# Binary search between lo and hi bounds.
14659while test "x$ac_lo" != "x$ac_hi"; do
14660 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14661 cat >conftest.$ac_ext <<_ACEOF
14662/* confdefs.h. */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h. */
14667$ac_includes_default
4e8d927d
DJ
14668int
14669main ()
14670{
b4e70030 14671static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
14672test_array [0] = 0
14673
14674 ;
14675 return 0;
14676}
14677_ACEOF
14678rm -f conftest.$ac_objext
14679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14680 (eval $ac_compile) 2>conftest.er1
14681 ac_status=$?
14682 grep -v '^ *+' conftest.er1 >conftest.err
14683 rm -f conftest.er1
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
b4e70030
JB
14687 { ac_try='test -z "$ac_c_werror_flag"
14688 || test ! -s conftest.err'
4e8d927d
DJ
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; } &&
14694 { ac_try='test -s conftest.$ac_objext'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_hi=$ac_mid
14701else
14702 echo "$as_me: failed program was:" >&5
14703sed 's/^/| /' conftest.$ac_ext >&5
14704
b4e70030 14705ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14706fi
4e8d927d
DJ
14707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14708done
14709case $ac_lo in
14710?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 14711'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 14712See \`config.log' for more details." >&5
b4e70030 14713echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 14714See \`config.log' for more details." >&2;}
b4e70030 14715 { (exit 1); exit 1; }; } ;;
4e8d927d 14716esac
b4e70030
JB
14717else
14718 if test "$cross_compiling" = yes; then
14719 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14720See \`config.log' for more details." >&5
14721echo "$as_me: error: cannot run test program while cross compiling
14722See \`config.log' for more details." >&2;}
14723 { (exit 1); exit 1; }; }
4e8d927d
DJ
14724else
14725 cat >conftest.$ac_ext <<_ACEOF
14726/* confdefs.h. */
14727_ACEOF
14728cat confdefs.h >>conftest.$ac_ext
14729cat >>conftest.$ac_ext <<_ACEOF
14730/* end confdefs.h. */
14731$ac_includes_default
b4e70030
JB
14732long longval () { return (long) (sizeof (int)); }
14733unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
14734#include <stdio.h>
14735#include <stdlib.h>
14736int
14737main ()
14738{
14739
14740 FILE *f = fopen ("conftest.val", "w");
14741 if (! f)
b4e70030
JB
14742 exit (1);
14743 if (((long) (sizeof (int))) < 0)
4e8d927d 14744 {
b4e70030
JB
14745 long i = longval ();
14746 if (i != ((long) (sizeof (int))))
14747 exit (1);
4e8d927d
DJ
14748 fprintf (f, "%ld\n", i);
14749 }
14750 else
14751 {
b4e70030
JB
14752 unsigned long i = ulongval ();
14753 if (i != ((long) (sizeof (int))))
14754 exit (1);
4e8d927d
DJ
14755 fprintf (f, "%lu\n", i);
14756 }
b4e70030 14757 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14758
14759 ;
14760 return 0;
14761}
14762_ACEOF
14763rm -f conftest$ac_exeext
14764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14765 (eval $ac_link) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 ac_cv_sizeof_int=`cat conftest.val`
14775else
14776 echo "$as_me: program exited with status $ac_status" >&5
14777echo "$as_me: failed program was:" >&5
14778sed 's/^/| /' conftest.$ac_ext >&5
14779
14780( exit $ac_status )
b4e70030 14781{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 14782See \`config.log' for more details." >&5
b4e70030 14783echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 14784See \`config.log' for more details." >&2;}
b4e70030
JB
14785 { (exit 1); exit 1; }; }
14786fi
14787rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14788fi
4e8d927d
DJ
14789fi
14790rm -f conftest.val
14791else
14792 ac_cv_sizeof_int=0
14793fi
14794fi
b4e70030
JB
14795echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14796echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
14797cat >>confdefs.h <<_ACEOF
14798#define SIZEOF_INT $ac_cv_sizeof_int
14799_ACEOF
14800
14801
b4e70030
JB
14802 echo "$as_me:$LINENO: checking for short" >&5
14803echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
14804if test "${ac_cv_type_short+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806else
14807 cat >conftest.$ac_ext <<_ACEOF
14808/* confdefs.h. */
14809_ACEOF
14810cat confdefs.h >>conftest.$ac_ext
14811cat >>conftest.$ac_ext <<_ACEOF
14812/* end confdefs.h. */
14813$ac_includes_default
4e8d927d
DJ
14814int
14815main ()
14816{
b4e70030 14817if ((short *) 0)
4e8d927d 14818 return 0;
b4e70030 14819if (sizeof (short))
4e8d927d
DJ
14820 return 0;
14821 ;
14822 return 0;
14823}
14824_ACEOF
14825rm -f conftest.$ac_objext
14826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14827 (eval $ac_compile) 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
b4e70030
JB
14834 { ac_try='test -z "$ac_c_werror_flag"
14835 || test ! -s conftest.err'
4e8d927d
DJ
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; } &&
14841 { ac_try='test -s conftest.$ac_objext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_cv_type_short=yes
14848else
14849 echo "$as_me: failed program was:" >&5
14850sed 's/^/| /' conftest.$ac_ext >&5
14851
b4e70030 14852ac_cv_type_short=no
4e8d927d 14853fi
4e8d927d
DJ
14854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14855fi
b4e70030
JB
14856echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14857echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 14858
b4e70030
JB
14859echo "$as_me:$LINENO: checking size of short" >&5
14860echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
14861if test "${ac_cv_sizeof_short+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14863else
14864 if test "$ac_cv_type_short" = yes; then
b4e70030 14865 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
14866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14868 # This bug is HP SR number 8606223364.
14869 if test "$cross_compiling" = yes; then
14870 # Depending upon the size, compute the lo and hi bounds.
14871cat >conftest.$ac_ext <<_ACEOF
14872/* confdefs.h. */
14873_ACEOF
14874cat confdefs.h >>conftest.$ac_ext
14875cat >>conftest.$ac_ext <<_ACEOF
14876/* end confdefs.h. */
14877$ac_includes_default
4e8d927d
DJ
14878int
14879main ()
14880{
b4e70030 14881static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
14882test_array [0] = 0
14883
14884 ;
14885 return 0;
14886}
14887_ACEOF
14888rm -f conftest.$ac_objext
14889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14890 (eval $ac_compile) 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
b4e70030
JB
14897 { ac_try='test -z "$ac_c_werror_flag"
14898 || test ! -s conftest.err'
4e8d927d
DJ
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; } &&
14904 { ac_try='test -s conftest.$ac_objext'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910 ac_lo=0 ac_mid=0
14911 while :; do
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
4e8d927d
DJ
14919int
14920main ()
14921{
b4e70030 14922static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
14923test_array [0] = 0
14924
14925 ;
14926 return 0;
14927}
14928_ACEOF
14929rm -f conftest.$ac_objext
14930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931 (eval $ac_compile) 2>conftest.er1
14932 ac_status=$?
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } &&
b4e70030
JB
14938 { ac_try='test -z "$ac_c_werror_flag"
14939 || test ! -s conftest.err'
4e8d927d
DJ
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest.$ac_objext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_hi=$ac_mid; break
14952else
14953 echo "$as_me: failed program was:" >&5
14954sed 's/^/| /' conftest.$ac_ext >&5
14955
b4e70030
JB
14956ac_lo=`expr $ac_mid + 1`
14957 if test $ac_lo -le $ac_mid; then
14958 ac_lo= ac_hi=
14959 break
14960 fi
14961 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14962fi
4e8d927d
DJ
14963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14964 done
14965else
14966 echo "$as_me: failed program was:" >&5
14967sed 's/^/| /' conftest.$ac_ext >&5
14968
b4e70030 14969cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14970/* confdefs.h. */
14971_ACEOF
14972cat confdefs.h >>conftest.$ac_ext
14973cat >>conftest.$ac_ext <<_ACEOF
14974/* end confdefs.h. */
14975$ac_includes_default
4e8d927d
DJ
14976int
14977main ()
14978{
b4e70030 14979static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
14980test_array [0] = 0
14981
14982 ;
14983 return 0;
14984}
14985_ACEOF
14986rm -f conftest.$ac_objext
14987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988 (eval $ac_compile) 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
b4e70030
JB
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
4e8d927d
DJ
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest.$ac_objext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_hi=-1 ac_mid=-1
15009 while :; do
15010 cat >conftest.$ac_ext <<_ACEOF
15011/* confdefs.h. */
15012_ACEOF
15013cat confdefs.h >>conftest.$ac_ext
15014cat >>conftest.$ac_ext <<_ACEOF
15015/* end confdefs.h. */
15016$ac_includes_default
4e8d927d
DJ
15017int
15018main ()
15019{
b4e70030 15020static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
15021test_array [0] = 0
15022
15023 ;
15024 return 0;
15025}
15026_ACEOF
15027rm -f conftest.$ac_objext
15028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>conftest.er1
15030 ac_status=$?
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } &&
b4e70030
JB
15036 { ac_try='test -z "$ac_c_werror_flag"
15037 || test ! -s conftest.err'
4e8d927d
DJ
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; } &&
15043 { ac_try='test -s conftest.$ac_objext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_lo=$ac_mid; break
15050else
15051 echo "$as_me: failed program was:" >&5
15052sed 's/^/| /' conftest.$ac_ext >&5
15053
b4e70030
JB
15054ac_hi=`expr '(' $ac_mid ')' - 1`
15055 if test $ac_mid -le $ac_hi; then
15056 ac_lo= ac_hi=
15057 break
15058 fi
15059 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 15060fi
4e8d927d
DJ
15061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15062 done
15063else
15064 echo "$as_me: failed program was:" >&5
15065sed 's/^/| /' conftest.$ac_ext >&5
15066
b4e70030 15067ac_lo= ac_hi=
4e8d927d 15068fi
4e8d927d
DJ
15069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15070fi
4e8d927d
DJ
15071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15072# Binary search between lo and hi bounds.
15073while test "x$ac_lo" != "x$ac_hi"; do
15074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15075 cat >conftest.$ac_ext <<_ACEOF
15076/* confdefs.h. */
15077_ACEOF
15078cat confdefs.h >>conftest.$ac_ext
15079cat >>conftest.$ac_ext <<_ACEOF
15080/* end confdefs.h. */
15081$ac_includes_default
4e8d927d
DJ
15082int
15083main ()
15084{
b4e70030 15085static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
15086test_array [0] = 0
15087
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092rm -f conftest.$ac_objext
15093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15094 (eval $ac_compile) 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
b4e70030
JB
15101 { ac_try='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
4e8d927d
DJ
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest.$ac_objext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_hi=$ac_mid
15115else
15116 echo "$as_me: failed program was:" >&5
15117sed 's/^/| /' conftest.$ac_ext >&5
15118
b4e70030 15119ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 15120fi
4e8d927d
DJ
15121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15122done
15123case $ac_lo in
15124?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 15125'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 15126See \`config.log' for more details." >&5
b4e70030 15127echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 15128See \`config.log' for more details." >&2;}
b4e70030 15129 { (exit 1); exit 1; }; } ;;
4e8d927d 15130esac
b4e70030
JB
15131else
15132 if test "$cross_compiling" = yes; then
15133 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15134See \`config.log' for more details." >&5
15135echo "$as_me: error: cannot run test program while cross compiling
15136See \`config.log' for more details." >&2;}
15137 { (exit 1); exit 1; }; }
4e8d927d
DJ
15138else
15139 cat >conftest.$ac_ext <<_ACEOF
15140/* confdefs.h. */
15141_ACEOF
15142cat confdefs.h >>conftest.$ac_ext
15143cat >>conftest.$ac_ext <<_ACEOF
15144/* end confdefs.h. */
15145$ac_includes_default
b4e70030
JB
15146long longval () { return (long) (sizeof (short)); }
15147unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
15148#include <stdio.h>
15149#include <stdlib.h>
15150int
15151main ()
15152{
15153
15154 FILE *f = fopen ("conftest.val", "w");
15155 if (! f)
b4e70030
JB
15156 exit (1);
15157 if (((long) (sizeof (short))) < 0)
4e8d927d 15158 {
b4e70030
JB
15159 long i = longval ();
15160 if (i != ((long) (sizeof (short))))
15161 exit (1);
4e8d927d
DJ
15162 fprintf (f, "%ld\n", i);
15163 }
15164 else
15165 {
b4e70030
JB
15166 unsigned long i = ulongval ();
15167 if (i != ((long) (sizeof (short))))
15168 exit (1);
4e8d927d
DJ
15169 fprintf (f, "%lu\n", i);
15170 }
b4e70030 15171 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
15172
15173 ;
15174 return 0;
15175}
15176_ACEOF
15177rm -f conftest$ac_exeext
15178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15179 (eval $ac_link) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_cv_sizeof_short=`cat conftest.val`
15189else
15190 echo "$as_me: program exited with status $ac_status" >&5
15191echo "$as_me: failed program was:" >&5
15192sed 's/^/| /' conftest.$ac_ext >&5
15193
15194( exit $ac_status )
b4e70030 15195{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 15196See \`config.log' for more details." >&5
b4e70030 15197echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 15198See \`config.log' for more details." >&2;}
b4e70030
JB
15199 { (exit 1); exit 1; }; }
15200fi
15201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 15202fi
4e8d927d
DJ
15203fi
15204rm -f conftest.val
15205else
15206 ac_cv_sizeof_short=0
15207fi
15208fi
b4e70030
JB
15209echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15210echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
15211cat >>confdefs.h <<_ACEOF
15212#define SIZEOF_SHORT $ac_cv_sizeof_short
15213_ACEOF
15214
15215
b4e70030
JB
15216 echo "$as_me:$LINENO: checking for char" >&5
15217echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
15218if test "${ac_cv_type_char+set}" = set; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15220else
15221 cat >conftest.$ac_ext <<_ACEOF
15222/* confdefs.h. */
15223_ACEOF
15224cat confdefs.h >>conftest.$ac_ext
15225cat >>conftest.$ac_ext <<_ACEOF
15226/* end confdefs.h. */
15227$ac_includes_default
4e8d927d
DJ
15228int
15229main ()
15230{
b4e70030 15231if ((char *) 0)
4e8d927d 15232 return 0;
b4e70030 15233if (sizeof (char))
4e8d927d
DJ
15234 return 0;
15235 ;
15236 return 0;
15237}
15238_ACEOF
15239rm -f conftest.$ac_objext
15240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15241 (eval $ac_compile) 2>conftest.er1
15242 ac_status=$?
15243 grep -v '^ *+' conftest.er1 >conftest.err
15244 rm -f conftest.er1
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
b4e70030
JB
15248 { ac_try='test -z "$ac_c_werror_flag"
15249 || test ! -s conftest.err'
4e8d927d
DJ
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest.$ac_objext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_type_char=yes
15262else
15263 echo "$as_me: failed program was:" >&5
15264sed 's/^/| /' conftest.$ac_ext >&5
15265
b4e70030 15266ac_cv_type_char=no
4e8d927d 15267fi
4e8d927d
DJ
15268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15269fi
b4e70030
JB
15270echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15271echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 15272
b4e70030
JB
15273echo "$as_me:$LINENO: checking size of char" >&5
15274echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
15275if test "${ac_cv_sizeof_char+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277else
15278 if test "$ac_cv_type_char" = yes; then
b4e70030 15279 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
15280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15282 # This bug is HP SR number 8606223364.
15283 if test "$cross_compiling" = yes; then
15284 # Depending upon the size, compute the lo and hi bounds.
15285cat >conftest.$ac_ext <<_ACEOF
15286/* confdefs.h. */
15287_ACEOF
15288cat confdefs.h >>conftest.$ac_ext
15289cat >>conftest.$ac_ext <<_ACEOF
15290/* end confdefs.h. */
15291$ac_includes_default
4e8d927d
DJ
15292int
15293main ()
15294{
b4e70030 15295static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
15296test_array [0] = 0
15297
15298 ;
15299 return 0;
15300}
15301_ACEOF
15302rm -f conftest.$ac_objext
15303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15304 (eval $ac_compile) 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
b4e70030
JB
15311 { ac_try='test -z "$ac_c_werror_flag"
15312 || test ! -s conftest.err'
4e8d927d
DJ
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest.$ac_objext'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_lo=0 ac_mid=0
15325 while :; do
15326 cat >conftest.$ac_ext <<_ACEOF
15327/* confdefs.h. */
15328_ACEOF
15329cat confdefs.h >>conftest.$ac_ext
15330cat >>conftest.$ac_ext <<_ACEOF
15331/* end confdefs.h. */
15332$ac_includes_default
4e8d927d
DJ
15333int
15334main ()
15335{
b4e70030 15336static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
15337test_array [0] = 0
15338
15339 ;
15340 return 0;
15341}
15342_ACEOF
15343rm -f conftest.$ac_objext
15344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15345 (eval $ac_compile) 2>conftest.er1
15346 ac_status=$?
15347 grep -v '^ *+' conftest.er1 >conftest.err
15348 rm -f conftest.er1
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
b4e70030
JB
15352 { ac_try='test -z "$ac_c_werror_flag"
15353 || test ! -s conftest.err'
4e8d927d
DJ
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 ac_hi=$ac_mid; break
15366else
15367 echo "$as_me: failed program was:" >&5
15368sed 's/^/| /' conftest.$ac_ext >&5
15369
b4e70030
JB
15370ac_lo=`expr $ac_mid + 1`
15371 if test $ac_lo -le $ac_mid; then
15372 ac_lo= ac_hi=
15373 break
15374 fi
15375 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 15376fi
4e8d927d
DJ
15377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15378 done
15379else
15380 echo "$as_me: failed program was:" >&5
15381sed 's/^/| /' conftest.$ac_ext >&5
15382
b4e70030 15383cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15384/* confdefs.h. */
15385_ACEOF
15386cat confdefs.h >>conftest.$ac_ext
15387cat >>conftest.$ac_ext <<_ACEOF
15388/* end confdefs.h. */
15389$ac_includes_default
4e8d927d
DJ
15390int
15391main ()
15392{
b4e70030 15393static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
15394test_array [0] = 0
15395
15396 ;
15397 return 0;
15398}
15399_ACEOF
15400rm -f conftest.$ac_objext
15401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15402 (eval $ac_compile) 2>conftest.er1
15403 ac_status=$?
15404 grep -v '^ *+' conftest.er1 >conftest.err
15405 rm -f conftest.er1
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
b4e70030
JB
15409 { ac_try='test -z "$ac_c_werror_flag"
15410 || test ! -s conftest.err'
4e8d927d
DJ
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest.$ac_objext'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_hi=-1 ac_mid=-1
15423 while :; do
15424 cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h. */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h. */
15430$ac_includes_default
4e8d927d
DJ
15431int
15432main ()
15433{
b4e70030 15434static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
15435test_array [0] = 0
15436
15437 ;
15438 return 0;
15439}
15440_ACEOF
15441rm -f conftest.$ac_objext
15442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443 (eval $ac_compile) 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
b4e70030
JB
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
4e8d927d
DJ
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_lo=$ac_mid; break
15464else
15465 echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
b4e70030
JB
15468ac_hi=`expr '(' $ac_mid ')' - 1`
15469 if test $ac_mid -le $ac_hi; then
15470 ac_lo= ac_hi=
15471 break
15472 fi
15473 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 15474fi
4e8d927d
DJ
15475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15476 done
15477else
15478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
b4e70030 15481ac_lo= ac_hi=
4e8d927d 15482fi
4e8d927d
DJ
15483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15484fi
4e8d927d
DJ
15485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15486# Binary search between lo and hi bounds.
15487while test "x$ac_lo" != "x$ac_hi"; do
15488 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15489 cat >conftest.$ac_ext <<_ACEOF
15490/* confdefs.h. */
15491_ACEOF
15492cat confdefs.h >>conftest.$ac_ext
15493cat >>conftest.$ac_ext <<_ACEOF
15494/* end confdefs.h. */
15495$ac_includes_default
4e8d927d
DJ
15496int
15497main ()
15498{
b4e70030 15499static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
15500test_array [0] = 0
15501
15502 ;
15503 return 0;
15504}
15505_ACEOF
15506rm -f conftest.$ac_objext
15507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15508 (eval $ac_compile) 2>conftest.er1
15509 ac_status=$?
15510 grep -v '^ *+' conftest.er1 >conftest.err
15511 rm -f conftest.er1
15512 cat conftest.err >&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
b4e70030
JB
15515 { ac_try='test -z "$ac_c_werror_flag"
15516 || test ! -s conftest.err'
4e8d927d
DJ
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try='test -s conftest.$ac_objext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_hi=$ac_mid
15529else
15530 echo "$as_me: failed program was:" >&5
15531sed 's/^/| /' conftest.$ac_ext >&5
15532
b4e70030 15533ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 15534fi
4e8d927d
DJ
15535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15536done
15537case $ac_lo in
15538?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 15539'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 15540See \`config.log' for more details." >&5
b4e70030 15541echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 15542See \`config.log' for more details." >&2;}
b4e70030 15543 { (exit 1); exit 1; }; } ;;
4e8d927d 15544esac
b4e70030
JB
15545else
15546 if test "$cross_compiling" = yes; then
15547 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15548See \`config.log' for more details." >&5
15549echo "$as_me: error: cannot run test program while cross compiling
15550See \`config.log' for more details." >&2;}
15551 { (exit 1); exit 1; }; }
4e8d927d
DJ
15552else
15553 cat >conftest.$ac_ext <<_ACEOF
15554/* confdefs.h. */
15555_ACEOF
15556cat confdefs.h >>conftest.$ac_ext
15557cat >>conftest.$ac_ext <<_ACEOF
15558/* end confdefs.h. */
15559$ac_includes_default
b4e70030
JB
15560long longval () { return (long) (sizeof (char)); }
15561unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
15562#include <stdio.h>
15563#include <stdlib.h>
15564int
15565main ()
15566{
15567
15568 FILE *f = fopen ("conftest.val", "w");
15569 if (! f)
b4e70030
JB
15570 exit (1);
15571 if (((long) (sizeof (char))) < 0)
4e8d927d 15572 {
b4e70030
JB
15573 long i = longval ();
15574 if (i != ((long) (sizeof (char))))
15575 exit (1);
4e8d927d
DJ
15576 fprintf (f, "%ld\n", i);
15577 }
15578 else
15579 {
b4e70030
JB
15580 unsigned long i = ulongval ();
15581 if (i != ((long) (sizeof (char))))
15582 exit (1);
4e8d927d
DJ
15583 fprintf (f, "%lu\n", i);
15584 }
b4e70030 15585 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
15586
15587 ;
15588 return 0;
15589}
15590_ACEOF
15591rm -f conftest$ac_exeext
15592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15593 (eval $ac_link) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_sizeof_char=`cat conftest.val`
15603else
15604 echo "$as_me: program exited with status $ac_status" >&5
15605echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5
15607
15608( exit $ac_status )
b4e70030 15609{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 15610See \`config.log' for more details." >&5
b4e70030 15611echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 15612See \`config.log' for more details." >&2;}
b4e70030
JB
15613 { (exit 1); exit 1; }; }
15614fi
15615rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 15616fi
4e8d927d
DJ
15617fi
15618rm -f conftest.val
15619else
15620 ac_cv_sizeof_char=0
15621fi
15622fi
b4e70030
JB
15623echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15624echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
15625cat >>confdefs.h <<_ACEOF
15626#define SIZEOF_CHAR $ac_cv_sizeof_char
15627_ACEOF
15628
15629
15630
b4e70030
JB
15631 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15632echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
15633 case "$ac_cv_sizeof_char" in
15634 1) acx_cv_type_int8_t=char ;;
15635 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15636echo "$as_me: error: no 8-bit type" >&2;}
15637 { (exit please report a bug); exit please report a bug; }; }
15638 esac
b4e70030
JB
15639 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15640echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 15641
b4e70030
JB
15642 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15643echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
15644 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15645 2:*) acx_cv_type_int16_t=int ;;
15646 *:2) acx_cv_type_int16_t=short ;;
15647 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15648echo "$as_me: error: no 16-bit type" >&2;}
15649 { (exit please report a bug); exit please report a bug; }; }
15650 esac
b4e70030
JB
15651 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15652echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 15653
b4e70030
JB
15654 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15655echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
15656 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15657 4:*) acx_cv_type_int32_t=int ;;
15658 *:4) acx_cv_type_int32_t=long ;;
15659 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15660echo "$as_me: error: no 32-bit type" >&2;}
15661 { (exit please report a bug); exit please report a bug; }; }
15662 esac
b4e70030
JB
15663 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15664echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
15665fi
15666
15667# These tests are here to make the output prettier
15668
15669if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15670 case "$ac_cv_sizeof_long" in
15671 8) acx_cv_type_int64_t=long ;;
15672 esac
b4e70030
JB
15673 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15674echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15675 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15676echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
15677fi
15678
15679# Now we can use the above types
15680
15681if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
15682 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15683echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
15684 case $ac_cv_sizeof_void_p in
15685 2) acx_cv_type_intptr_t=int16_t ;;
15686 4) acx_cv_type_intptr_t=int32_t ;;
15687 8) acx_cv_type_intptr_t=int64_t ;;
15688 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15689echo "$as_me: error: no equivalent for intptr_t" >&2;}
15690 { (exit please report a bug); exit please report a bug; }; }
15691 esac
b4e70030
JB
15692 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15693echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
15694fi
15695
15696# ----------------- done all checks, emit header -------------
b4e70030 15697 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
15698
15699
15700
15701
15702# ------------------------- #
15703# Checks for declarations. #
15704# ------------------------- #
15705
b4e70030
JB
15706echo "$as_me:$LINENO: checking whether free is declared" >&5
15707echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
15708if test "${ac_cv_have_decl_free+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710else
15711 cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717$ac_includes_default
15718int
15719main ()
15720{
15721#ifndef free
15722 char *p = (char *) free;
4e8d927d
DJ
15723#endif
15724
15725 ;
15726 return 0;
15727}
15728_ACEOF
15729rm -f conftest.$ac_objext
15730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731 (eval $ac_compile) 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
b4e70030
JB
15738 { ac_try='test -z "$ac_c_werror_flag"
15739 || test ! -s conftest.err'
4e8d927d
DJ
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; } &&
15745 { ac_try='test -s conftest.$ac_objext'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_cv_have_decl_free=yes
15752else
15753 echo "$as_me: failed program was:" >&5
15754sed 's/^/| /' conftest.$ac_ext >&5
15755
b4e70030 15756ac_cv_have_decl_free=no
4e8d927d 15757fi
4e8d927d
DJ
15758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15759fi
b4e70030
JB
15760echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
15761echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
15762if test $ac_cv_have_decl_free = yes; then
15763
15764cat >>confdefs.h <<_ACEOF
15765#define HAVE_DECL_FREE 1
15766_ACEOF
15767
15768
15769else
15770 cat >>confdefs.h <<_ACEOF
15771#define HAVE_DECL_FREE 0
15772_ACEOF
15773
15774
15775fi
b4e70030
JB
15776echo "$as_me:$LINENO: checking whether malloc is declared" >&5
15777echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
15778if test "${ac_cv_have_decl_malloc+set}" = set; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780else
15781 cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787$ac_includes_default
15788int
15789main ()
15790{
15791#ifndef malloc
15792 char *p = (char *) malloc;
4e8d927d
DJ
15793#endif
15794
15795 ;
15796 return 0;
15797}
15798_ACEOF
15799rm -f conftest.$ac_objext
15800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801 (eval $ac_compile) 2>conftest.er1
15802 ac_status=$?
15803 grep -v '^ *+' conftest.er1 >conftest.err
15804 rm -f conftest.er1
15805 cat conftest.err >&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
b4e70030
JB
15808 { ac_try='test -z "$ac_c_werror_flag"
15809 || test ! -s conftest.err'
4e8d927d
DJ
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; } &&
15815 { ac_try='test -s conftest.$ac_objext'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15821 ac_cv_have_decl_malloc=yes
15822else
15823 echo "$as_me: failed program was:" >&5
15824sed 's/^/| /' conftest.$ac_ext >&5
15825
b4e70030 15826ac_cv_have_decl_malloc=no
4e8d927d 15827fi
4e8d927d
DJ
15828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15829fi
b4e70030
JB
15830echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
15831echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
15832if test $ac_cv_have_decl_malloc = yes; then
15833
15834cat >>confdefs.h <<_ACEOF
15835#define HAVE_DECL_MALLOC 1
15836_ACEOF
15837
15838
15839else
15840 cat >>confdefs.h <<_ACEOF
15841#define HAVE_DECL_MALLOC 0
15842_ACEOF
15843
15844
15845fi
b4e70030
JB
15846echo "$as_me:$LINENO: checking whether realloc is declared" >&5
15847echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
15848if test "${ac_cv_have_decl_realloc+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15850else
15851 cat >conftest.$ac_ext <<_ACEOF
15852/* confdefs.h. */
15853_ACEOF
15854cat confdefs.h >>conftest.$ac_ext
15855cat >>conftest.$ac_ext <<_ACEOF
15856/* end confdefs.h. */
15857$ac_includes_default
15858int
15859main ()
15860{
15861#ifndef realloc
15862 char *p = (char *) realloc;
4e8d927d
DJ
15863#endif
15864
15865 ;
15866 return 0;
15867}
15868_ACEOF
15869rm -f conftest.$ac_objext
15870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
b4e70030
JB
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
4e8d927d
DJ
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest.$ac_objext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 ac_cv_have_decl_realloc=yes
15892else
15893 echo "$as_me: failed program was:" >&5
15894sed 's/^/| /' conftest.$ac_ext >&5
15895
b4e70030 15896ac_cv_have_decl_realloc=no
4e8d927d 15897fi
4e8d927d
DJ
15898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15899fi
b4e70030
JB
15900echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
15901echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
15902if test $ac_cv_have_decl_realloc = yes; then
15903
15904cat >>confdefs.h <<_ACEOF
15905#define HAVE_DECL_REALLOC 1
15906_ACEOF
15907
15908
15909else
15910 cat >>confdefs.h <<_ACEOF
15911#define HAVE_DECL_REALLOC 0
15912_ACEOF
15913
15914
15915fi
15916
15917
b4e70030
JB
15918echo "$as_me:$LINENO: checking whether strerror is declared" >&5
15919echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
15920if test "${ac_cv_have_decl_strerror+set}" = set; then
15921 echo $ECHO_N "(cached) $ECHO_C" >&6
15922else
15923 cat >conftest.$ac_ext <<_ACEOF
15924/* confdefs.h. */
15925_ACEOF
15926cat confdefs.h >>conftest.$ac_ext
15927cat >>conftest.$ac_ext <<_ACEOF
15928/* end confdefs.h. */
15929$ac_includes_default
15930int
15931main ()
15932{
15933#ifndef strerror
15934 char *p = (char *) strerror;
4e8d927d
DJ
15935#endif
15936
15937 ;
15938 return 0;
15939}
15940_ACEOF
15941rm -f conftest.$ac_objext
15942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943 (eval $ac_compile) 2>conftest.er1
15944 ac_status=$?
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
b4e70030
JB
15950 { ac_try='test -z "$ac_c_werror_flag"
15951 || test ! -s conftest.err'
4e8d927d
DJ
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15954 ac_status=$?
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; } &&
15957 { ac_try='test -s conftest.$ac_objext'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15963 ac_cv_have_decl_strerror=yes
15964else
15965 echo "$as_me: failed program was:" >&5
15966sed 's/^/| /' conftest.$ac_ext >&5
15967
b4e70030 15968ac_cv_have_decl_strerror=no
4e8d927d 15969fi
4e8d927d
DJ
15970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15971fi
b4e70030
JB
15972echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
15973echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
15974if test $ac_cv_have_decl_strerror = yes; then
15975
15976cat >>confdefs.h <<_ACEOF
15977#define HAVE_DECL_STRERROR 1
15978_ACEOF
15979
15980
15981else
15982 cat >>confdefs.h <<_ACEOF
15983#define HAVE_DECL_STRERROR 0
15984_ACEOF
15985
15986
15987fi
b4e70030
JB
15988echo "$as_me:$LINENO: checking whether strstr is declared" >&5
15989echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
15990if test "${ac_cv_have_decl_strstr+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992else
15993 cat >conftest.$ac_ext <<_ACEOF
15994/* confdefs.h. */
15995_ACEOF
15996cat confdefs.h >>conftest.$ac_ext
15997cat >>conftest.$ac_ext <<_ACEOF
15998/* end confdefs.h. */
15999$ac_includes_default
16000int
16001main ()
16002{
16003#ifndef strstr
16004 char *p = (char *) strstr;
4e8d927d
DJ
16005#endif
16006
16007 ;
16008 return 0;
16009}
16010_ACEOF
16011rm -f conftest.$ac_objext
16012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16013 (eval $ac_compile) 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
b4e70030
JB
16020 { ac_try='test -z "$ac_c_werror_flag"
16021 || test ! -s conftest.err'
4e8d927d
DJ
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest.$ac_objext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_cv_have_decl_strstr=yes
16034else
16035 echo "$as_me: failed program was:" >&5
16036sed 's/^/| /' conftest.$ac_ext >&5
16037
b4e70030 16038ac_cv_have_decl_strstr=no
4e8d927d 16039fi
4e8d927d
DJ
16040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16041fi
b4e70030
JB
16042echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16043echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
16044if test $ac_cv_have_decl_strstr = yes; then
16045
16046cat >>confdefs.h <<_ACEOF
16047#define HAVE_DECL_STRSTR 1
16048_ACEOF
16049
16050
16051else
16052 cat >>confdefs.h <<_ACEOF
16053#define HAVE_DECL_STRSTR 0
16054_ACEOF
16055
16056
16057fi
16058
16059
b4e70030
JB
16060echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16061echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
16062if test "${ac_cv_have_decl_getopt+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16064else
16065 cat >conftest.$ac_ext <<_ACEOF
16066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
16071$ac_includes_default
16072int
16073main ()
16074{
16075#ifndef getopt
16076 char *p = (char *) getopt;
4e8d927d
DJ
16077#endif
16078
16079 ;
16080 return 0;
16081}
16082_ACEOF
16083rm -f conftest.$ac_objext
16084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16085 (eval $ac_compile) 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
b4e70030
JB
16092 { ac_try='test -z "$ac_c_werror_flag"
16093 || test ! -s conftest.err'
4e8d927d
DJ
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest.$ac_objext'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; }; then
16105 ac_cv_have_decl_getopt=yes
16106else
16107 echo "$as_me: failed program was:" >&5
16108sed 's/^/| /' conftest.$ac_ext >&5
16109
b4e70030 16110ac_cv_have_decl_getopt=no
4e8d927d 16111fi
4e8d927d
DJ
16112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16113fi
b4e70030
JB
16114echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16115echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
16116if test $ac_cv_have_decl_getopt = yes; then
16117
16118cat >>confdefs.h <<_ACEOF
16119#define HAVE_DECL_GETOPT 1
16120_ACEOF
16121
16122
16123else
16124 cat >>confdefs.h <<_ACEOF
16125#define HAVE_DECL_GETOPT 0
16126_ACEOF
16127
16128
16129fi
b4e70030
JB
16130echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16131echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16132if test "${ac_cv_have_decl_snprintf+set}" = set; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16134else
16135 cat >conftest.$ac_ext <<_ACEOF
16136/* confdefs.h. */
16137_ACEOF
16138cat confdefs.h >>conftest.$ac_ext
16139cat >>conftest.$ac_ext <<_ACEOF
16140/* end confdefs.h. */
16141$ac_includes_default
16142int
16143main ()
16144{
16145#ifndef snprintf
16146 char *p = (char *) snprintf;
4e8d927d
DJ
16147#endif
16148
16149 ;
16150 return 0;
16151}
16152_ACEOF
16153rm -f conftest.$ac_objext
16154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155 (eval $ac_compile) 2>conftest.er1
16156 ac_status=$?
16157 grep -v '^ *+' conftest.er1 >conftest.err
16158 rm -f conftest.er1
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
b4e70030
JB
16162 { ac_try='test -z "$ac_c_werror_flag"
16163 || test ! -s conftest.err'
4e8d927d
DJ
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; } &&
16169 { ac_try='test -s conftest.$ac_objext'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_cv_have_decl_snprintf=yes
16176else
16177 echo "$as_me: failed program was:" >&5
16178sed 's/^/| /' conftest.$ac_ext >&5
16179
b4e70030 16180ac_cv_have_decl_snprintf=no
4e8d927d 16181fi
4e8d927d
DJ
16182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16183fi
b4e70030
JB
16184echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16185echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
16186if test $ac_cv_have_decl_snprintf = yes; then
16187
16188cat >>confdefs.h <<_ACEOF
16189#define HAVE_DECL_SNPRINTF 1
16190_ACEOF
16191
16192
16193else
16194 cat >>confdefs.h <<_ACEOF
16195#define HAVE_DECL_SNPRINTF 0
16196_ACEOF
16197
16198
16199fi
b4e70030
JB
16200echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16201echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16202if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16204else
16205 cat >conftest.$ac_ext <<_ACEOF
16206/* confdefs.h. */
16207_ACEOF
16208cat confdefs.h >>conftest.$ac_ext
16209cat >>conftest.$ac_ext <<_ACEOF
16210/* end confdefs.h. */
16211$ac_includes_default
16212int
16213main ()
16214{
16215#ifndef vsnprintf
16216 char *p = (char *) vsnprintf;
4e8d927d
DJ
16217#endif
16218
16219 ;
16220 return 0;
16221}
16222_ACEOF
16223rm -f conftest.$ac_objext
16224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
b4e70030
JB
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
4e8d927d
DJ
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 ac_cv_have_decl_vsnprintf=yes
16246else
16247 echo "$as_me: failed program was:" >&5
16248sed 's/^/| /' conftest.$ac_ext >&5
16249
b4e70030 16250ac_cv_have_decl_vsnprintf=no
4e8d927d 16251fi
4e8d927d
DJ
16252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16253fi
b4e70030
JB
16254echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16255echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
16256if test $ac_cv_have_decl_vsnprintf = yes; then
16257
16258cat >>confdefs.h <<_ACEOF
16259#define HAVE_DECL_VSNPRINTF 1
16260_ACEOF
16261
16262
16263else
16264 cat >>confdefs.h <<_ACEOF
16265#define HAVE_DECL_VSNPRINTF 0
16266_ACEOF
16267
16268
16269fi
16270
16271
16272
16273# ----------------------- #
16274# Checks for structures. #
16275# ----------------------- #
16276
b4e70030
JB
16277echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16278echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
16279if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16281else
16282 cat >conftest.$ac_ext <<_ACEOF
16283/* confdefs.h. */
16284_ACEOF
16285cat confdefs.h >>conftest.$ac_ext
16286cat >>conftest.$ac_ext <<_ACEOF
16287/* end confdefs.h. */
16288$ac_includes_default
16289int
16290main ()
16291{
16292static struct stat ac_aggr;
16293if (ac_aggr.st_blocks)
16294return 0;
16295 ;
16296 return 0;
16297}
16298_ACEOF
16299rm -f conftest.$ac_objext
16300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16301 (eval $ac_compile) 2>conftest.er1
16302 ac_status=$?
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } &&
b4e70030
JB
16308 { ac_try='test -z "$ac_c_werror_flag"
16309 || test ! -s conftest.err'
4e8d927d
DJ
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try='test -s conftest.$ac_objext'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16321 ac_cv_member_struct_stat_st_blocks=yes
16322else
16323 echo "$as_me: failed program was:" >&5
16324sed 's/^/| /' conftest.$ac_ext >&5
16325
b4e70030 16326cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
16327/* confdefs.h. */
16328_ACEOF
16329cat confdefs.h >>conftest.$ac_ext
16330cat >>conftest.$ac_ext <<_ACEOF
16331/* end confdefs.h. */
16332$ac_includes_default
16333int
16334main ()
16335{
16336static struct stat ac_aggr;
16337if (sizeof ac_aggr.st_blocks)
16338return 0;
16339 ;
16340 return 0;
16341}
16342_ACEOF
16343rm -f conftest.$ac_objext
16344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16345 (eval $ac_compile) 2>conftest.er1
16346 ac_status=$?
16347 grep -v '^ *+' conftest.er1 >conftest.err
16348 rm -f conftest.er1
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
b4e70030
JB
16352 { ac_try='test -z "$ac_c_werror_flag"
16353 || test ! -s conftest.err'
4e8d927d
DJ
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest.$ac_objext'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 ac_cv_member_struct_stat_st_blocks=yes
16366else
16367 echo "$as_me: failed program was:" >&5
16368sed 's/^/| /' conftest.$ac_ext >&5
16369
b4e70030 16370ac_cv_member_struct_stat_st_blocks=no
4e8d927d 16371fi
4e8d927d
DJ
16372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16373fi
4e8d927d
DJ
16374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16375fi
b4e70030
JB
16376echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16377echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
16378if test $ac_cv_member_struct_stat_st_blocks = yes; then
16379
16380cat >>confdefs.h <<_ACEOF
16381#define HAVE_STRUCT_STAT_ST_BLOCKS 1
16382_ACEOF
16383
16384
16385fi
16386
b4e70030
JB
16387echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16388echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
16389if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16391else
16392 cat >conftest.$ac_ext <<_ACEOF
16393/* confdefs.h. */
16394_ACEOF
16395cat confdefs.h >>conftest.$ac_ext
16396cat >>conftest.$ac_ext <<_ACEOF
16397/* end confdefs.h. */
16398$ac_includes_default
16399int
16400main ()
16401{
16402static struct stat ac_aggr;
16403if (ac_aggr.st_blksize)
16404return 0;
16405 ;
16406 return 0;
16407}
16408_ACEOF
16409rm -f conftest.$ac_objext
16410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16411 (eval $ac_compile) 2>conftest.er1
16412 ac_status=$?
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } &&
b4e70030
JB
16418 { ac_try='test -z "$ac_c_werror_flag"
16419 || test ! -s conftest.err'
4e8d927d
DJ
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; } &&
16425 { ac_try='test -s conftest.$ac_objext'
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; }; then
16431 ac_cv_member_struct_stat_st_blksize=yes
16432else
16433 echo "$as_me: failed program was:" >&5
16434sed 's/^/| /' conftest.$ac_ext >&5
16435
b4e70030 16436cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
16437/* confdefs.h. */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
16441/* end confdefs.h. */
16442$ac_includes_default
16443int
16444main ()
16445{
16446static struct stat ac_aggr;
16447if (sizeof ac_aggr.st_blksize)
16448return 0;
16449 ;
16450 return 0;
16451}
16452_ACEOF
16453rm -f conftest.$ac_objext
16454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16455 (eval $ac_compile) 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
b4e70030
JB
16462 { ac_try='test -z "$ac_c_werror_flag"
16463 || test ! -s conftest.err'
4e8d927d
DJ
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; } &&
16469 { ac_try='test -s conftest.$ac_objext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_member_struct_stat_st_blksize=yes
16476else
16477 echo "$as_me: failed program was:" >&5
16478sed 's/^/| /' conftest.$ac_ext >&5
16479
b4e70030 16480ac_cv_member_struct_stat_st_blksize=no
4e8d927d 16481fi
4e8d927d
DJ
16482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16483fi
4e8d927d
DJ
16484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16485fi
b4e70030
JB
16486echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16487echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
16488if test $ac_cv_member_struct_stat_st_blksize = yes; then
16489
16490cat >>confdefs.h <<_ACEOF
16491#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16492_ACEOF
16493
16494
16495fi
16496
16497
16498# ------------------ #
16499# Checks for types. #
16500# ------------------ #
16501
b4e70030
JB
16502echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16503echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
16504if test "${ac_cv_type_signal+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16506else
16507 cat >conftest.$ac_ext <<_ACEOF
16508/* confdefs.h. */
16509_ACEOF
16510cat confdefs.h >>conftest.$ac_ext
16511cat >>conftest.$ac_ext <<_ACEOF
16512/* end confdefs.h. */
16513#include <sys/types.h>
16514#include <signal.h>
b4e70030
JB
16515#ifdef signal
16516# undef signal
16517#endif
16518#ifdef __cplusplus
16519extern "C" void (*signal (int, void (*)(int)))(int);
16520#else
16521void (*signal ()) ();
16522#endif
4e8d927d
DJ
16523
16524int
16525main ()
16526{
b4e70030 16527int i;
4e8d927d
DJ
16528 ;
16529 return 0;
16530}
16531_ACEOF
16532rm -f conftest.$ac_objext
16533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16534 (eval $ac_compile) 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
b4e70030
JB
16541 { ac_try='test -z "$ac_c_werror_flag"
16542 || test ! -s conftest.err'
4e8d927d
DJ
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest.$ac_objext'
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
b4e70030 16554 ac_cv_type_signal=void
4e8d927d
DJ
16555else
16556 echo "$as_me: failed program was:" >&5
16557sed 's/^/| /' conftest.$ac_ext >&5
16558
b4e70030 16559ac_cv_type_signal=int
4e8d927d 16560fi
4e8d927d
DJ
16561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16562fi
b4e70030
JB
16563echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16564echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
16565
16566cat >>confdefs.h <<_ACEOF
16567#define RETSIGTYPE $ac_cv_type_signal
16568_ACEOF
16569
16570
b4e70030
JB
16571echo "$as_me:$LINENO: checking for socklen_t" >&5
16572echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
16573if test "${ac_cv_type_socklen_t+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16575else
16576 cat >conftest.$ac_ext <<_ACEOF
16577/* confdefs.h. */
16578_ACEOF
16579cat confdefs.h >>conftest.$ac_ext
16580cat >>conftest.$ac_ext <<_ACEOF
16581/* end confdefs.h. */
16582#include <sys/types.h>
16583#include <sys/socket.h>
16584
16585
4e8d927d
DJ
16586int
16587main ()
16588{
b4e70030 16589if ((socklen_t *) 0)
4e8d927d 16590 return 0;
b4e70030 16591if (sizeof (socklen_t))
4e8d927d
DJ
16592 return 0;
16593 ;
16594 return 0;
16595}
16596_ACEOF
16597rm -f conftest.$ac_objext
16598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16599 (eval $ac_compile) 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
b4e70030
JB
16606 { ac_try='test -z "$ac_c_werror_flag"
16607 || test ! -s conftest.err'
4e8d927d
DJ
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; } &&
16613 { ac_try='test -s conftest.$ac_objext'
16614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16615 (eval $ac_try) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; }; then
16619 ac_cv_type_socklen_t=yes
16620else
16621 echo "$as_me: failed program was:" >&5
16622sed 's/^/| /' conftest.$ac_ext >&5
16623
b4e70030 16624ac_cv_type_socklen_t=no
4e8d927d 16625fi
4e8d927d
DJ
16626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16627fi
b4e70030
JB
16628echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16629echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
16630if test $ac_cv_type_socklen_t = yes; then
16631
16632cat >>confdefs.h <<_ACEOF
16633#define HAVE_SOCKLEN_T 1
16634_ACEOF
16635
16636
16637fi
16638
b4e70030
JB
16639echo "$as_me:$LINENO: checking for uintptr_t" >&5
16640echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
16641if test "${ac_cv_type_uintptr_t+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643else
16644 cat >conftest.$ac_ext <<_ACEOF
16645/* confdefs.h. */
16646_ACEOF
16647cat confdefs.h >>conftest.$ac_ext
16648cat >>conftest.$ac_ext <<_ACEOF
16649/* end confdefs.h. */
16650#include <stdint.h>
16651
4e8d927d
DJ
16652int
16653main ()
16654{
b4e70030 16655if ((uintptr_t *) 0)
4e8d927d 16656 return 0;
b4e70030 16657if (sizeof (uintptr_t))
4e8d927d
DJ
16658 return 0;
16659 ;
16660 return 0;
16661}
16662_ACEOF
16663rm -f conftest.$ac_objext
16664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16665 (eval $ac_compile) 2>conftest.er1
16666 ac_status=$?
16667 grep -v '^ *+' conftest.er1 >conftest.err
16668 rm -f conftest.er1
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
b4e70030
JB
16672 { ac_try='test -z "$ac_c_werror_flag"
16673 || test ! -s conftest.err'
4e8d927d
DJ
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest.$ac_objext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_type_uintptr_t=yes
16686else
16687 echo "$as_me: failed program was:" >&5
16688sed 's/^/| /' conftest.$ac_ext >&5
16689
b4e70030 16690ac_cv_type_uintptr_t=no
4e8d927d 16691fi
4e8d927d
DJ
16692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16693fi
b4e70030
JB
16694echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16695echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
16696if test $ac_cv_type_uintptr_t = yes; then
16697
16698cat >>confdefs.h <<_ACEOF
16699#define HAVE_UINTPTR_T 1
16700_ACEOF
16701
16702
16703fi
16704
16705
16706# ------------------------------------- #
16707# Checks for compiler characteristics. #
16708# ------------------------------------- #
16709
b4e70030
JB
16710echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16711echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
16712if test "${ac_cv_c_const+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714else
16715 cat >conftest.$ac_ext <<_ACEOF
16716/* confdefs.h. */
16717_ACEOF
16718cat confdefs.h >>conftest.$ac_ext
16719cat >>conftest.$ac_ext <<_ACEOF
16720/* end confdefs.h. */
16721
16722int
16723main ()
16724{
16725/* FIXME: Include the comments suggested by Paul. */
16726#ifndef __cplusplus
16727 /* Ultrix mips cc rejects this. */
16728 typedef int charset[2];
16729 const charset x;
16730 /* SunOS 4.1.1 cc rejects this. */
16731 char const *const *ccp;
16732 char **p;
16733 /* NEC SVR4.0.2 mips cc rejects this. */
16734 struct point {int x, y;};
16735 static struct point const zero = {0,0};
16736 /* AIX XL C 1.02.0.0 rejects this.
16737 It does not let you subtract one const X* pointer from another in
16738 an arm of an if-expression whose if-part is not a constant
16739 expression */
16740 const char *g = "string";
16741 ccp = &g + (g ? g-g : 0);
16742 /* HPUX 7.0 cc rejects these. */
16743 ++ccp;
16744 p = (char**) ccp;
16745 ccp = (char const *const *) p;
16746 { /* SCO 3.2v4 cc rejects this. */
16747 char *t;
16748 char const *s = 0 ? (char *) 0 : (char const *) 0;
16749
16750 *t++ = 0;
4e8d927d
DJ
16751 }
16752 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16753 int x[] = {25, 17};
16754 const int *foo = &x[0];
16755 ++foo;
16756 }
16757 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16758 typedef const int *iptr;
16759 iptr p = 0;
16760 ++p;
16761 }
16762 { /* AIX XL C 1.02.0.0 rejects this saying
16763 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16764 struct s { int j; const int *ap[3]; };
16765 struct s *b; b->j = 5;
16766 }
16767 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16768 const int foo = 10;
4e8d927d 16769 }
4e8d927d
DJ
16770#endif
16771
16772 ;
16773 return 0;
16774}
16775_ACEOF
16776rm -f conftest.$ac_objext
16777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>conftest.er1
16779 ac_status=$?
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
b4e70030
JB
16785 { ac_try='test -z "$ac_c_werror_flag"
16786 || test ! -s conftest.err'
4e8d927d
DJ
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_c_const=yes
16799else
16800 echo "$as_me: failed program was:" >&5
16801sed 's/^/| /' conftest.$ac_ext >&5
16802
b4e70030 16803ac_cv_c_const=no
4e8d927d 16804fi
4e8d927d
DJ
16805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16806fi
b4e70030
JB
16807echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16808echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
16809if test $ac_cv_c_const = no; then
16810
16811cat >>confdefs.h <<\_ACEOF
16812#define const
16813_ACEOF
16814
16815fi
16816
b4e70030
JB
16817echo "$as_me:$LINENO: checking for inline" >&5
16818echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
16819if test "${ac_cv_c_inline+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821else
16822 ac_cv_c_inline=no
16823for ac_kw in inline __inline__ __inline; do
16824 cat >conftest.$ac_ext <<_ACEOF
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
16829/* end confdefs.h. */
16830#ifndef __cplusplus
16831typedef int foo_t;
16832static $ac_kw foo_t static_foo () {return 0; }
16833$ac_kw foo_t foo () {return 0; }
16834#endif
16835
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16840 ac_status=$?
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
b4e70030
JB
16846 { ac_try='test -z "$ac_c_werror_flag"
16847 || test ! -s conftest.err'
4e8d927d
DJ
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
b4e70030 16859 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
16860else
16861 echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
4e8d927d 16864fi
4e8d927d 16865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
16866done
16867
16868fi
b4e70030
JB
16869echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16870echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 16871
bec39cab 16872
a3828db0
MK
16873case $ac_cv_c_inline in
16874 inline | yes) ;;
16875 *)
16876 case $ac_cv_c_inline in
16877 no) ac_val=;;
16878 *) ac_val=$ac_cv_c_inline;;
16879 esac
16880 cat >>confdefs.h <<_ACEOF
16881#ifndef __cplusplus
16882#define inline $ac_val
16883#endif
16884_ACEOF
bec39cab
AC
16885 ;;
16886esac
bec39cab 16887
9b913628
TJB
16888echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16889echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16890if test "${ac_cv_c_bigendian+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892else
16893 # See if sys/param.h defines the BYTE_ORDER macro.
16894cat >conftest.$ac_ext <<_ACEOF
16895/* confdefs.h. */
16896_ACEOF
16897cat confdefs.h >>conftest.$ac_ext
16898cat >>conftest.$ac_ext <<_ACEOF
16899/* end confdefs.h. */
16900#include <sys/types.h>
16901#include <sys/param.h>
16902
16903int
16904main ()
16905{
16906#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16907 bogus endian macros
16908#endif
16909
16910 ;
16911 return 0;
16912}
16913_ACEOF
16914rm -f conftest.$ac_objext
16915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16916 (eval $ac_compile) 2>conftest.er1
16917 ac_status=$?
16918 grep -v '^ *+' conftest.er1 >conftest.err
16919 rm -f conftest.er1
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -z "$ac_c_werror_flag"
16924 || test ! -s conftest.err'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; } &&
16930 { ac_try='test -s conftest.$ac_objext'
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 # It does; now see whether it defined to BIG_ENDIAN or not.
16937cat >conftest.$ac_ext <<_ACEOF
16938/* confdefs.h. */
16939_ACEOF
16940cat confdefs.h >>conftest.$ac_ext
16941cat >>conftest.$ac_ext <<_ACEOF
16942/* end confdefs.h. */
16943#include <sys/types.h>
16944#include <sys/param.h>
16945
16946int
16947main ()
16948{
16949#if BYTE_ORDER != BIG_ENDIAN
16950 not big endian
16951#endif
16952
16953 ;
16954 return 0;
16955}
16956_ACEOF
16957rm -f conftest.$ac_objext
16958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16959 (eval $ac_compile) 2>conftest.er1
16960 ac_status=$?
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_c_werror_flag"
16967 || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest.$ac_objext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_cv_c_bigendian=yes
16980else
16981 echo "$as_me: failed program was:" >&5
16982sed 's/^/| /' conftest.$ac_ext >&5
16983
16984ac_cv_c_bigendian=no
16985fi
16986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16987else
16988 echo "$as_me: failed program was:" >&5
16989sed 's/^/| /' conftest.$ac_ext >&5
16990
16991# It does not; compile a test program.
16992if test "$cross_compiling" = yes; then
16993 # try to guess the endianness by grepping values into an object file
16994 ac_cv_c_bigendian=unknown
16995 cat >conftest.$ac_ext <<_ACEOF
16996/* confdefs.h. */
16997_ACEOF
16998cat confdefs.h >>conftest.$ac_ext
16999cat >>conftest.$ac_ext <<_ACEOF
17000/* end confdefs.h. */
17001short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17002short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17003void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17004short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17005short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17006void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17007int
17008main ()
17009{
17010 _ascii (); _ebcdic ();
17011 ;
17012 return 0;
17013}
17014_ACEOF
17015rm -f conftest.$ac_objext
17016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17017 (eval $ac_compile) 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag"
17025 || test ! -s conftest.err'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest.$ac_objext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17038 ac_cv_c_bigendian=yes
17039fi
17040if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17041 if test "$ac_cv_c_bigendian" = unknown; then
17042 ac_cv_c_bigendian=no
17043 else
17044 # finding both strings is unlikely to happen, but who knows?
17045 ac_cv_c_bigendian=unknown
17046 fi
17047fi
17048else
17049 echo "$as_me: failed program was:" >&5
17050sed 's/^/| /' conftest.$ac_ext >&5
17051
17052fi
17053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17054else
17055 cat >conftest.$ac_ext <<_ACEOF
17056/* confdefs.h. */
17057_ACEOF
17058cat confdefs.h >>conftest.$ac_ext
17059cat >>conftest.$ac_ext <<_ACEOF
17060/* end confdefs.h. */
17061int
17062main ()
17063{
17064 /* Are we little or big endian? From Harbison&Steele. */
17065 union
17066 {
17067 long l;
17068 char c[sizeof (long)];
17069 } u;
17070 u.l = 1;
17071 exit (u.c[sizeof (long) - 1] == 1);
17072}
17073_ACEOF
17074rm -f conftest$ac_exeext
17075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17076 (eval $ac_link) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_c_bigendian=no
17086else
17087 echo "$as_me: program exited with status $ac_status" >&5
17088echo "$as_me: failed program was:" >&5
17089sed 's/^/| /' conftest.$ac_ext >&5
17090
17091( exit $ac_status )
17092ac_cv_c_bigendian=yes
17093fi
17094rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17095fi
17096fi
17097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17098fi
17099echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17100echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17101case $ac_cv_c_bigendian in
17102 yes)
17103
17104cat >>confdefs.h <<\_ACEOF
17105#define WORDS_BIGENDIAN 1
17106_ACEOF
17107 ;;
17108 no)
17109 ;;
17110 *)
17111 { { echo "$as_me:$LINENO: error: unknown endianness
17112presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17113echo "$as_me: error: unknown endianness
17114presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17115 { (exit 1); exit 1; }; } ;;
17116esac
17117
74c1b268 17118
a3828db0
MK
17119# ------------------------------ #
17120# Checks for library functions. #
17121# ------------------------------ #
bec39cab 17122
a3828db0
MK
17123# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17124# for constant arguments. Useless!
b4e70030
JB
17125echo "$as_me:$LINENO: checking for working alloca.h" >&5
17126echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 17127if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17129else
17130 cat >conftest.$ac_ext <<_ACEOF
17131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
a3828db0 17136#include <alloca.h>
bec39cab
AC
17137int
17138main ()
17139{
a3828db0 17140char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
17141 ;
17142 return 0;
17143}
17144_ACEOF
17145rm -f conftest.$ac_objext conftest$ac_exeext
17146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147 (eval $ac_link) 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
b4e70030
JB
17154 { ac_try='test -z "$ac_c_werror_flag"
17155 || test ! -s conftest.err'
bec39cab
AC
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; } &&
17161 { ac_try='test -s conftest$ac_exeext'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
a3828db0 17167 ac_cv_working_alloca_h=yes
bec39cab
AC
17168else
17169 echo "$as_me: failed program was:" >&5
17170sed 's/^/| /' conftest.$ac_ext >&5
17171
b4e70030 17172ac_cv_working_alloca_h=no
bec39cab
AC
17173fi
17174rm -f conftest.err conftest.$ac_objext \
17175 conftest$ac_exeext conftest.$ac_ext
17176fi
b4e70030
JB
17177echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17178echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
17179if test $ac_cv_working_alloca_h = yes; then
17180
17181cat >>confdefs.h <<\_ACEOF
17182#define HAVE_ALLOCA_H 1
bec39cab 17183_ACEOF
74c1b268 17184
74c1b268
AC
17185fi
17186
b4e70030
JB
17187echo "$as_me:$LINENO: checking for alloca" >&5
17188echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 17189if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 17190 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 17191else
bec39cab
AC
17192 cat >conftest.$ac_ext <<_ACEOF
17193/* confdefs.h. */
17194_ACEOF
17195cat confdefs.h >>conftest.$ac_ext
17196cat >>conftest.$ac_ext <<_ACEOF
17197/* end confdefs.h. */
a3828db0
MK
17198#ifdef __GNUC__
17199# define alloca __builtin_alloca
17200#else
17201# ifdef _MSC_VER
17202# include <malloc.h>
17203# define alloca _alloca
17204# else
17205# if HAVE_ALLOCA_H
17206# include <alloca.h>
17207# else
17208# ifdef _AIX
17209 #pragma alloca
17210# else
17211# ifndef alloca /* predefined by HP cc +Olibcalls */
17212char *alloca ();
17213# endif
17214# endif
17215# endif
97bf5e38 17216# endif
a3828db0 17217#endif
97bf5e38 17218
bec39cab
AC
17219int
17220main ()
17221{
a3828db0 17222char *p = (char *) alloca (1);
bec39cab
AC
17223 ;
17224 return 0;
17225}
17226_ACEOF
a3828db0
MK
17227rm -f conftest.$ac_objext conftest$ac_exeext
17228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17229 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17230 ac_status=$?
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
b4e70030
JB
17236 { ac_try='test -z "$ac_c_werror_flag"
17237 || test ! -s conftest.err'
bec39cab
AC
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
a3828db0 17243 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
a3828db0 17249 ac_cv_func_alloca_works=yes
0200359f 17250else
bec39cab
AC
17251 echo "$as_me: failed program was:" >&5
17252sed 's/^/| /' conftest.$ac_ext >&5
0200359f 17253
b4e70030 17254ac_cv_func_alloca_works=no
0200359f 17255fi
a3828db0
MK
17256rm -f conftest.err conftest.$ac_objext \
17257 conftest$ac_exeext conftest.$ac_ext
72473524 17258fi
b4e70030
JB
17259echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17260echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 17261
a3828db0
MK
17262if test $ac_cv_func_alloca_works = yes; then
17263
17264cat >>confdefs.h <<\_ACEOF
17265#define HAVE_ALLOCA 1
bec39cab
AC
17266_ACEOF
17267
a3828db0
MK
17268else
17269 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17270# that cause trouble. Some versions do not even contain alloca or
17271# contain a buggy version. If you still want to use their alloca,
17272# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 17273
b4e70030 17274ALLOCA=alloca.$ac_objext
bec39cab 17275
a3828db0
MK
17276cat >>confdefs.h <<\_ACEOF
17277#define C_ALLOCA 1
17278_ACEOF
bec39cab 17279
a3828db0 17280
b4e70030
JB
17281echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17282echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 17283if test "${ac_cv_os_cray+set}" = set; then
bec39cab 17284 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 17285else
a3828db0 17286 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17287/* confdefs.h. */
17288_ACEOF
17289cat confdefs.h >>conftest.$ac_ext
17290cat >>conftest.$ac_ext <<_ACEOF
17291/* end confdefs.h. */
b4e70030 17292#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
17293webecray
17294#else
17295wenotbecray
17296#endif
17297
17298_ACEOF
17299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17300 $EGREP "webecray" >/dev/null 2>&1; then
17301 ac_cv_os_cray=yes
17302else
17303 ac_cv_os_cray=no
17304fi
17305rm -f conftest*
17306
17307fi
b4e70030
JB
17308echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17309echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
17310if test $ac_cv_os_cray = yes; then
17311 for ac_func in _getb67 GETB67 getb67; do
17312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17313echo "$as_me:$LINENO: checking for $ac_func" >&5
17314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17315if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317else
17318 cat >conftest.$ac_ext <<_ACEOF
17319/* confdefs.h. */
17320_ACEOF
17321cat confdefs.h >>conftest.$ac_ext
17322cat >>conftest.$ac_ext <<_ACEOF
17323/* end confdefs.h. */
17324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17326#define $ac_func innocuous_$ac_func
17327
17328/* System header to define __stub macros and hopefully few prototypes,
17329 which can conflict with char $ac_func (); below.
17330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17331 <limits.h> exists even on freestanding compilers. */
17332
17333#ifdef __STDC__
17334# include <limits.h>
17335#else
17336# include <assert.h>
17337#endif
17338
17339#undef $ac_func
17340
b4e70030 17341/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17342#ifdef __cplusplus
17343extern "C"
b4e70030 17344{
a3828db0 17345#endif
b4e70030
JB
17346/* We use char because int might match the return type of a gcc2
17347 builtin and then its argument prototype would still apply. */
a3828db0
MK
17348char $ac_func ();
17349/* The GNU C library defines this for functions which it implements
17350 to always fail with ENOSYS. Some functions are actually named
17351 something starting with __ and the normal name is an alias. */
b4e70030 17352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17353choke me
b4e70030
JB
17354#else
17355char (*f) () = $ac_func;
17356#endif
17357#ifdef __cplusplus
17358}
a3828db0
MK
17359#endif
17360
17361int
17362main ()
17363{
b4e70030 17364return f != $ac_func;
a3828db0
MK
17365 ;
17366 return 0;
17367}
17368_ACEOF
17369rm -f conftest.$ac_objext conftest$ac_exeext
17370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17371 (eval $ac_link) 2>conftest.er1
17372 ac_status=$?
17373 grep -v '^ *+' conftest.er1 >conftest.err
17374 rm -f conftest.er1
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
b4e70030
JB
17378 { ac_try='test -z "$ac_c_werror_flag"
17379 || test ! -s conftest.err'
a3828db0
MK
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; } &&
17385 { ac_try='test -s conftest$ac_exeext'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 eval "$as_ac_var=yes"
17392else
17393 echo "$as_me: failed program was:" >&5
17394sed 's/^/| /' conftest.$ac_ext >&5
17395
b4e70030 17396eval "$as_ac_var=no"
a3828db0
MK
17397fi
17398rm -f conftest.err conftest.$ac_objext \
17399 conftest$ac_exeext conftest.$ac_ext
17400fi
b4e70030
JB
17401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17403if test `eval echo '${'$as_ac_var'}'` = yes; then
17404
17405cat >>confdefs.h <<_ACEOF
17406#define CRAY_STACKSEG_END $ac_func
17407_ACEOF
17408
17409 break
17410fi
17411
17412 done
17413fi
17414
b4e70030
JB
17415echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17416echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
17417if test "${ac_cv_c_stack_direction+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17419else
17420 if test "$cross_compiling" = yes; then
17421 ac_cv_c_stack_direction=0
17422else
17423 cat >conftest.$ac_ext <<_ACEOF
17424/* confdefs.h. */
17425_ACEOF
17426cat confdefs.h >>conftest.$ac_ext
17427cat >>conftest.$ac_ext <<_ACEOF
17428/* end confdefs.h. */
17429int
17430find_stack_direction ()
17431{
17432 static char *addr = 0;
17433 auto char dummy;
17434 if (addr == 0)
17435 {
17436 addr = &dummy;
17437 return find_stack_direction ();
17438 }
17439 else
17440 return (&dummy > addr) ? 1 : -1;
17441}
17442
17443int
17444main ()
17445{
b4e70030 17446 exit (find_stack_direction () < 0);
a3828db0
MK
17447}
17448_ACEOF
17449rm -f conftest$ac_exeext
17450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17451 (eval $ac_link) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; }; then
17460 ac_cv_c_stack_direction=1
17461else
17462 echo "$as_me: program exited with status $ac_status" >&5
17463echo "$as_me: failed program was:" >&5
17464sed 's/^/| /' conftest.$ac_ext >&5
17465
17466( exit $ac_status )
17467ac_cv_c_stack_direction=-1
17468fi
b4e70030 17469rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17470fi
17471fi
b4e70030
JB
17472echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17473echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
17474
17475cat >>confdefs.h <<_ACEOF
17476#define STACK_DIRECTION $ac_cv_c_stack_direction
17477_ACEOF
17478
17479
17480fi
17481
17482
17483
17484for ac_header in stdlib.h unistd.h
17485do
17486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
17487if eval "test \"\${$as_ac_Header+set}\" = set"; then
17488 echo "$as_me:$LINENO: checking for $ac_header" >&5
17489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17490if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492fi
b4e70030
JB
17493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
17495else
17496 # Is the header compilable?
b4e70030
JB
17497echo "$as_me:$LINENO: checking $ac_header usability" >&5
17498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
17499cat >conftest.$ac_ext <<_ACEOF
17500/* confdefs.h. */
17501_ACEOF
17502cat confdefs.h >>conftest.$ac_ext
17503cat >>conftest.$ac_ext <<_ACEOF
17504/* end confdefs.h. */
17505$ac_includes_default
17506#include <$ac_header>
17507_ACEOF
17508rm -f conftest.$ac_objext
17509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>conftest.er1
17511 ac_status=$?
bec39cab
AC
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
b4e70030
JB
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
bec39cab
AC
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_header_compiler=yes
17531else
17532 echo "$as_me: failed program was:" >&5
17533sed 's/^/| /' conftest.$ac_ext >&5
17534
b4e70030 17535ac_header_compiler=no
bec39cab
AC
17536fi
17537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
17538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17539echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
17540
17541# Is the header present?
b4e70030
JB
17542echo "$as_me:$LINENO: checking $ac_header presence" >&5
17543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
17544cat >conftest.$ac_ext <<_ACEOF
17545/* confdefs.h. */
17546_ACEOF
17547cat confdefs.h >>conftest.$ac_ext
17548cat >>conftest.$ac_ext <<_ACEOF
17549/* end confdefs.h. */
17550#include <$ac_header>
17551_ACEOF
17552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17554 ac_status=$?
17555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } >/dev/null; then
17560 if test -s conftest.err; then
17561 ac_cpp_err=$ac_c_preproc_warn_flag
17562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17563 else
17564 ac_cpp_err=
17565 fi
17566else
17567 ac_cpp_err=yes
17568fi
17569if test -z "$ac_cpp_err"; then
17570 ac_header_preproc=yes
97bf5e38 17571else
bec39cab
AC
17572 echo "$as_me: failed program was:" >&5
17573sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 ac_header_preproc=no
72473524 17576fi
bec39cab 17577rm -f conftest.err conftest.$ac_ext
b4e70030
JB
17578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17579echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 17580
bec39cab
AC
17581# So? What about this header?
17582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17583 yes:no: )
17584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17588 ac_header_preproc=yes
17589 ;;
17590 no:yes:* )
17591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
17603 (
17604 cat <<\_ASBOX
17605## ------------------------------------------ ##
17606## Report this to the AC_PACKAGE_NAME lists. ##
17607## ------------------------------------------ ##
17608_ASBOX
17609 ) |
17610 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
17611 ;;
17612esac
b4e70030
JB
17613echo "$as_me:$LINENO: checking for $ac_header" >&5
17614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17615if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 17616 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17617else
bec39cab
AC
17618 eval "$as_ac_Header=\$ac_header_preproc"
17619fi
b4e70030
JB
17620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
17622
17623fi
17624if test `eval echo '${'$as_ac_Header'}'` = yes; then
17625 cat >>confdefs.h <<_ACEOF
17626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17627_ACEOF
17628
17629fi
17630
17631done
17632
17633
a3828db0 17634for ac_func in getpagesize
bec39cab
AC
17635do
17636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17637echo "$as_me:$LINENO: checking for $ac_func" >&5
17638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17639if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17641else
17642 cat >conftest.$ac_ext <<_ACEOF
17643/* confdefs.h. */
17644_ACEOF
17645cat confdefs.h >>conftest.$ac_ext
17646cat >>conftest.$ac_ext <<_ACEOF
17647/* end confdefs.h. */
17648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17650#define $ac_func innocuous_$ac_func
17651
97bf5e38 17652/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17653 which can conflict with char $ac_func (); below.
17654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17655 <limits.h> exists even on freestanding compilers. */
2b2d558c 17656
bec39cab
AC
17657#ifdef __STDC__
17658# include <limits.h>
17659#else
17660# include <assert.h>
17661#endif
97bf5e38 17662
bec39cab
AC
17663#undef $ac_func
17664
b4e70030 17665/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17666#ifdef __cplusplus
17667extern "C"
b4e70030 17668{
bec39cab 17669#endif
b4e70030
JB
17670/* We use char because int might match the return type of a gcc2
17671 builtin and then its argument prototype would still apply. */
bec39cab 17672char $ac_func ();
97bf5e38
MK
17673/* The GNU C library defines this for functions which it implements
17674 to always fail with ENOSYS. Some functions are actually named
17675 something starting with __ and the normal name is an alias. */
b4e70030 17676#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17677choke me
b4e70030
JB
17678#else
17679char (*f) () = $ac_func;
17680#endif
17681#ifdef __cplusplus
17682}
97bf5e38
MK
17683#endif
17684
bec39cab
AC
17685int
17686main ()
17687{
b4e70030 17688return f != $ac_func;
bec39cab
AC
17689 ;
17690 return 0;
17691}
17692_ACEOF
17693rm -f conftest.$ac_objext conftest$ac_exeext
17694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17695 (eval $ac_link) 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
b4e70030
JB
17702 { ac_try='test -z "$ac_c_werror_flag"
17703 || test ! -s conftest.err'
bec39cab
AC
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest$ac_exeext'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 eval "$as_ac_var=yes"
17716else
17717 echo "$as_me: failed program was:" >&5
17718sed 's/^/| /' conftest.$ac_ext >&5
17719
b4e70030 17720eval "$as_ac_var=no"
bec39cab
AC
17721fi
17722rm -f conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17724fi
b4e70030
JB
17725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17727if test `eval echo '${'$as_ac_var'}'` = yes; then
17728 cat >>confdefs.h <<_ACEOF
17729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17730_ACEOF
17731
2b2d558c 17732fi
bec39cab 17733done
2b2d558c 17734
b4e70030
JB
17735echo "$as_me:$LINENO: checking for working mmap" >&5
17736echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 17737if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 17738 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17739else
bec39cab 17740 if test "$cross_compiling" = yes; then
a3828db0 17741 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
17742else
17743 cat >conftest.$ac_ext <<_ACEOF
a3828db0 17744/* confdefs.h. */
bec39cab
AC
17745_ACEOF
17746cat confdefs.h >>conftest.$ac_ext
17747cat >>conftest.$ac_ext <<_ACEOF
17748/* end confdefs.h. */
a3828db0
MK
17749$ac_includes_default
17750/* malloc might have been renamed as rpl_malloc. */
17751#undef malloc
bec39cab 17752
a3828db0
MK
17753/* Thanks to Mike Haertel and Jim Avera for this test.
17754 Here is a matrix of mmap possibilities:
17755 mmap private not fixed
17756 mmap private fixed at somewhere currently unmapped
17757 mmap private fixed at somewhere already mapped
17758 mmap shared not fixed
17759 mmap shared fixed at somewhere currently unmapped
17760 mmap shared fixed at somewhere already mapped
17761 For private mappings, we should verify that changes cannot be read()
17762 back from the file, nor mmap's back from the file at a different
17763 address. (There have been systems where private was not correctly
17764 implemented like the infamous i386 svr4.0, and systems where the
17765 VM page cache was not coherent with the file system buffer cache
17766 like early versions of FreeBSD and possibly contemporary NetBSD.)
17767 For shared mappings, we should conversely verify that changes get
17768 propagated back to all the places they're supposed to be.
7dfa765c 17769
a3828db0
MK
17770 Grep wants private fixed already mapped.
17771 The main things grep needs to know about mmap are:
17772 * does it exist and is it safe to write into the mmap'd area
17773 * how to use it (BSD variants) */
7dfa765c 17774
a3828db0
MK
17775#include <fcntl.h>
17776#include <sys/mman.h>
7dfa765c 17777
a3828db0
MK
17778#if !STDC_HEADERS && !HAVE_STDLIB_H
17779char *malloc ();
17780#endif
7dfa765c 17781
a3828db0
MK
17782/* This mess was copied from the GNU getpagesize.h. */
17783#if !HAVE_GETPAGESIZE
17784/* Assume that all systems that can run configure have sys/param.h. */
17785# if !HAVE_SYS_PARAM_H
17786# define HAVE_SYS_PARAM_H 1
17787# endif
64bb1671 17788
a3828db0
MK
17789# ifdef _SC_PAGESIZE
17790# define getpagesize() sysconf(_SC_PAGESIZE)
17791# else /* no _SC_PAGESIZE */
17792# if HAVE_SYS_PARAM_H
17793# include <sys/param.h>
17794# ifdef EXEC_PAGESIZE
17795# define getpagesize() EXEC_PAGESIZE
17796# else /* no EXEC_PAGESIZE */
17797# ifdef NBPG
17798# define getpagesize() NBPG * CLSIZE
17799# ifndef CLSIZE
17800# define CLSIZE 1
17801# endif /* no CLSIZE */
17802# else /* no NBPG */
17803# ifdef NBPC
17804# define getpagesize() NBPC
17805# else /* no NBPC */
17806# ifdef PAGESIZE
17807# define getpagesize() PAGESIZE
17808# endif /* PAGESIZE */
17809# endif /* no NBPC */
17810# endif /* no NBPG */
17811# endif /* no EXEC_PAGESIZE */
17812# else /* no HAVE_SYS_PARAM_H */
17813# define getpagesize() 8192 /* punt totally */
17814# endif /* no HAVE_SYS_PARAM_H */
17815# endif /* no _SC_PAGESIZE */
64bb1671 17816
a3828db0 17817#endif /* no HAVE_GETPAGESIZE */
64bb1671 17818
a3828db0
MK
17819int
17820main ()
17821{
17822 char *data, *data2, *data3;
17823 int i, pagesize;
17824 int fd;
97bf5e38 17825
a3828db0
MK
17826 pagesize = getpagesize ();
17827
17828 /* First, make a file with some known garbage in it. */
17829 data = (char *) malloc (pagesize);
17830 if (!data)
b4e70030 17831 exit (1);
a3828db0
MK
17832 for (i = 0; i < pagesize; ++i)
17833 *(data + i) = rand ();
17834 umask (0);
17835 fd = creat ("conftest.mmap", 0600);
17836 if (fd < 0)
b4e70030 17837 exit (1);
a3828db0 17838 if (write (fd, data, pagesize) != pagesize)
b4e70030 17839 exit (1);
a3828db0
MK
17840 close (fd);
17841
17842 /* Next, try to mmap the file at a fixed address which already has
17843 something else allocated at it. If we can, also make sure that
17844 we see the same garbage. */
17845 fd = open ("conftest.mmap", O_RDWR);
17846 if (fd < 0)
b4e70030 17847 exit (1);
a3828db0
MK
17848 data2 = (char *) malloc (2 * pagesize);
17849 if (!data2)
b4e70030
JB
17850 exit (1);
17851 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
17852 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17853 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 17854 exit (1);
a3828db0
MK
17855 for (i = 0; i < pagesize; ++i)
17856 if (*(data + i) != *(data2 + i))
b4e70030 17857 exit (1);
a3828db0
MK
17858
17859 /* Finally, make sure that changes to the mapped area do not
17860 percolate back to the file as seen by read(). (This is a bug on
17861 some variants of i386 svr4.0.) */
17862 for (i = 0; i < pagesize; ++i)
17863 *(data2 + i) = *(data2 + i) + 1;
17864 data3 = (char *) malloc (pagesize);
17865 if (!data3)
b4e70030 17866 exit (1);
a3828db0 17867 if (read (fd, data3, pagesize) != pagesize)
b4e70030 17868 exit (1);
a3828db0
MK
17869 for (i = 0; i < pagesize; ++i)
17870 if (*(data + i) != *(data3 + i))
b4e70030 17871 exit (1);
a3828db0 17872 close (fd);
b4e70030 17873 exit (0);
97bf5e38 17874}
bec39cab
AC
17875_ACEOF
17876rm -f conftest$ac_exeext
17877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17878 (eval $ac_link) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
a3828db0 17887 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 17888else
bec39cab
AC
17889 echo "$as_me: program exited with status $ac_status" >&5
17890echo "$as_me: failed program was:" >&5
17891sed 's/^/| /' conftest.$ac_ext >&5
17892
17893( exit $ac_status )
a3828db0 17894ac_cv_func_mmap_fixed_mapped=no
0afdd437 17895fi
b4e70030 17896rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 17897fi
a3828db0 17898fi
b4e70030
JB
17899echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17900echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 17901if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
17902
17903cat >>confdefs.h <<\_ACEOF
a3828db0 17904#define HAVE_MMAP 1
bec39cab 17905_ACEOF
0afdd437
MK
17906
17907fi
a3828db0 17908rm -f conftest.mmap
0afdd437 17909
b4e70030
JB
17910echo "$as_me:$LINENO: checking for pid_t" >&5
17911echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 17912if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17914else
17915 cat >conftest.$ac_ext <<_ACEOF
17916/* confdefs.h. */
17917_ACEOF
17918cat confdefs.h >>conftest.$ac_ext
17919cat >>conftest.$ac_ext <<_ACEOF
17920/* end confdefs.h. */
a3828db0 17921$ac_includes_default
bec39cab
AC
17922int
17923main ()
17924{
b4e70030 17925if ((pid_t *) 0)
a3828db0 17926 return 0;
b4e70030 17927if (sizeof (pid_t))
a3828db0 17928 return 0;
bec39cab
AC
17929 ;
17930 return 0;
17931}
17932_ACEOF
a3828db0
MK
17933rm -f conftest.$ac_objext
17934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
b4e70030
JB
17942 { ac_try='test -z "$ac_c_werror_flag"
17943 || test ! -s conftest.err'
bec39cab
AC
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
a3828db0 17949 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
a3828db0 17955 ac_cv_type_pid_t=yes
bec39cab
AC
17956else
17957 echo "$as_me: failed program was:" >&5
17958sed 's/^/| /' conftest.$ac_ext >&5
17959
b4e70030 17960ac_cv_type_pid_t=no
bec39cab 17961fi
a3828db0 17962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 17963fi
b4e70030
JB
17964echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17965echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
17966if test $ac_cv_type_pid_t = yes; then
17967 :
17968else
17969
17970cat >>confdefs.h <<_ACEOF
17971#define pid_t int
bec39cab 17972_ACEOF
7e89e357 17973
7e89e357
JT
17974fi
17975
bec39cab 17976
b4e70030
JB
17977
17978for ac_header in unistd.h vfork.h
7be570e7 17979do
a3828db0 17980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
17981if eval "test \"\${$as_ac_Header+set}\" = set"; then
17982 echo "$as_me:$LINENO: checking for $ac_header" >&5
17983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17984if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 17985 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 17986fi
b4e70030
JB
17987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 17989else
a3828db0 17990 # Is the header compilable?
b4e70030
JB
17991echo "$as_me:$LINENO: checking $ac_header usability" >&5
17992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 17993cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17994/* confdefs.h. */
17995_ACEOF
17996cat confdefs.h >>conftest.$ac_ext
17997cat >>conftest.$ac_ext <<_ACEOF
17998/* end confdefs.h. */
a3828db0
MK
17999$ac_includes_default
18000#include <$ac_header>
bec39cab 18001_ACEOF
a3828db0
MK
18002rm -f conftest.$ac_objext
18003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18004 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
b4e70030
JB
18011 { ac_try='test -z "$ac_c_werror_flag"
18012 || test ! -s conftest.err'
bec39cab
AC
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; } &&
a3828db0 18018 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
a3828db0 18024 ac_header_compiler=yes
bec39cab
AC
18025else
18026 echo "$as_me: failed program was:" >&5
18027sed 's/^/| /' conftest.$ac_ext >&5
18028
b4e70030 18029ac_header_compiler=no
bec39cab 18030fi
a3828db0 18031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
18032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18033echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
18034
18035# Is the header present?
b4e70030
JB
18036echo "$as_me:$LINENO: checking $ac_header presence" >&5
18037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
18038cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044#include <$ac_header>
18045_ACEOF
18046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null; then
18054 if test -s conftest.err; then
18055 ac_cpp_err=$ac_c_preproc_warn_flag
18056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18057 else
18058 ac_cpp_err=
18059 fi
18060else
18061 ac_cpp_err=yes
18062fi
18063if test -z "$ac_cpp_err"; then
18064 ac_header_preproc=yes
18065else
18066 echo "$as_me: failed program was:" >&5
18067sed 's/^/| /' conftest.$ac_ext >&5
18068
18069 ac_header_preproc=no
18070fi
18071rm -f conftest.err conftest.$ac_ext
b4e70030
JB
18072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18073echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
18074
18075# So? What about this header?
18076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18077 yes:no: )
18078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18079echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18081echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18082 ac_header_preproc=yes
18083 ;;
18084 no:yes:* )
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18086echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18088echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18090echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18092echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18096echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
18097 (
18098 cat <<\_ASBOX
18099## ------------------------------------------ ##
18100## Report this to the AC_PACKAGE_NAME lists. ##
18101## ------------------------------------------ ##
18102_ASBOX
18103 ) |
18104 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
18105 ;;
18106esac
b4e70030
JB
18107echo "$as_me:$LINENO: checking for $ac_header" >&5
18108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18109if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18111else
18112 eval "$as_ac_Header=\$ac_header_preproc"
18113fi
b4e70030
JB
18114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 18116
bec39cab 18117fi
a3828db0 18118if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 18119 cat >>confdefs.h <<_ACEOF
a3828db0 18120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 18121_ACEOF
14abd0fb 18122
14abd0fb 18123fi
a3828db0 18124
14abd0fb
MK
18125done
18126
bec39cab 18127
a3828db0
MK
18128
18129for ac_func in fork vfork
14abd0fb 18130do
bec39cab 18131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18132echo "$as_me:$LINENO: checking for $ac_func" >&5
18133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18134if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136else
18137 cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h. */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h. */
18143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18145#define $ac_func innocuous_$ac_func
18146
14abd0fb 18147/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18148 which can conflict with char $ac_func (); below.
18149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150 <limits.h> exists even on freestanding compilers. */
18151
18152#ifdef __STDC__
18153# include <limits.h>
18154#else
18155# include <assert.h>
18156#endif
14abd0fb 18157
bec39cab 18158#undef $ac_func
14abd0fb 18159
b4e70030 18160/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18161#ifdef __cplusplus
18162extern "C"
b4e70030 18163{
bec39cab 18164#endif
b4e70030
JB
18165/* We use char because int might match the return type of a gcc2
18166 builtin and then its argument prototype would still apply. */
bec39cab 18167char $ac_func ();
14abd0fb
MK
18168/* The GNU C library defines this for functions which it implements
18169 to always fail with ENOSYS. Some functions are actually named
18170 something starting with __ and the normal name is an alias. */
b4e70030 18171#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 18172choke me
b4e70030
JB
18173#else
18174char (*f) () = $ac_func;
18175#endif
18176#ifdef __cplusplus
18177}
14abd0fb
MK
18178#endif
18179
bec39cab
AC
18180int
18181main ()
18182{
b4e70030 18183return f != $ac_func;
bec39cab
AC
18184 ;
18185 return 0;
18186}
18187_ACEOF
18188rm -f conftest.$ac_objext conftest$ac_exeext
18189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
b4e70030
JB
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
bec39cab
AC
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 eval "$as_ac_var=yes"
18211else
18212 echo "$as_me: failed program was:" >&5
18213sed 's/^/| /' conftest.$ac_ext >&5
18214
b4e70030 18215eval "$as_ac_var=no"
bec39cab
AC
18216fi
18217rm -f conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18219fi
b4e70030
JB
18220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18221echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18222if test `eval echo '${'$as_ac_var'}'` = yes; then
18223 cat >>confdefs.h <<_ACEOF
18224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18225_ACEOF
7be570e7 18226
7be570e7
JM
18227fi
18228done
18229
a3828db0 18230if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
18231 echo "$as_me:$LINENO: checking for working fork" >&5
18232echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
18233if test "${ac_cv_func_fork_works+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18235else
18236 if test "$cross_compiling" = yes; then
18237 ac_cv_func_fork_works=cross
18238else
18239 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
18240/* By Ruediger Kuhlmann. */
18241 #include <sys/types.h>
18242 #if HAVE_UNISTD_H
18243 # include <unistd.h>
18244 #endif
18245 /* Some systems only have a dummy stub for fork() */
18246 int main ()
18247 {
18248 if (fork() < 0)
18249 exit (1);
18250 exit (0);
18251 }
a3828db0
MK
18252_ACEOF
18253rm -f conftest$ac_exeext
18254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255 (eval $ac_link) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_cv_func_fork_works=yes
18265else
18266 echo "$as_me: program exited with status $ac_status" >&5
18267echo "$as_me: failed program was:" >&5
18268sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 18269
a3828db0
MK
18270( exit $ac_status )
18271ac_cv_func_fork_works=no
18272fi
b4e70030 18273rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18274fi
18275fi
b4e70030
JB
18276echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18277echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
18278
18279else
18280 ac_cv_func_fork_works=$ac_cv_func_fork
18281fi
18282if test "x$ac_cv_func_fork_works" = xcross; then
18283 case $host in
18284 *-*-amigaos* | *-*-msdosdjgpp*)
18285 # Override, as these systems have only a dummy fork() stub
18286 ac_cv_func_fork_works=no
18287 ;;
18288 *)
18289 ac_cv_func_fork_works=yes
18290 ;;
18291 esac
18292 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18293echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18294fi
18295ac_cv_func_vfork_works=$ac_cv_func_vfork
18296if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
18297 echo "$as_me:$LINENO: checking for working vfork" >&5
18298echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 18299if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 18300 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18301else
18302 if test "$cross_compiling" = yes; then
18303 ac_cv_func_vfork_works=cross
bec39cab
AC
18304else
18305 cat >conftest.$ac_ext <<_ACEOF
18306/* confdefs.h. */
18307_ACEOF
18308cat confdefs.h >>conftest.$ac_ext
18309cat >>conftest.$ac_ext <<_ACEOF
18310/* end confdefs.h. */
a3828db0 18311/* Thanks to Paul Eggert for this test. */
b4e70030
JB
18312#include <stdio.h>
18313#include <stdlib.h>
18314#include <sys/types.h>
18315#include <sys/stat.h>
a3828db0 18316#include <sys/wait.h>
b4e70030
JB
18317#if HAVE_UNISTD_H
18318# include <unistd.h>
18319#endif
a3828db0
MK
18320#if HAVE_VFORK_H
18321# include <vfork.h>
bec39cab 18322#endif
a3828db0
MK
18323/* On some sparc systems, changes by the child to local and incoming
18324 argument registers are propagated back to the parent. The compiler
18325 is told about this with #include <vfork.h>, but some compilers
18326 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18327 static variable whose address is put into a register that is
18328 clobbered by the vfork. */
18329static void
bec39cab 18330#ifdef __cplusplus
a3828db0
MK
18331sparc_address_test (int arg)
18332# else
18333sparc_address_test (arg) int arg;
c906108c 18334#endif
a3828db0
MK
18335{
18336 static pid_t child;
18337 if (!child) {
18338 child = vfork ();
18339 if (child < 0) {
18340 perror ("vfork");
18341 _exit(2);
18342 }
18343 if (!child) {
18344 arg = getpid();
18345 write(-1, "", 0);
18346 _exit (arg);
18347 }
18348 }
18349}
97bf5e38 18350
bec39cab
AC
18351int
18352main ()
18353{
a3828db0
MK
18354 pid_t parent = getpid ();
18355 pid_t child;
18356
18357 sparc_address_test (0);
18358
18359 child = vfork ();
18360
18361 if (child == 0) {
18362 /* Here is another test for sparc vfork register problems. This
18363 test uses lots of local variables, at least as many local
18364 variables as main has allocated so far including compiler
18365 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18366 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18367 reuse the register of parent for one of the local variables,
18368 since it will think that parent can't possibly be used any more
18369 in this routine. Assigning to the local variable will thus
18370 munge parent in the parent process. */
18371 pid_t
18372 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18373 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18374 /* Convince the compiler that p..p7 are live; otherwise, it might
18375 use the same hardware register for all 8 local variables. */
18376 if (p != p1 || p != p2 || p != p3 || p != p4
18377 || p != p5 || p != p6 || p != p7)
18378 _exit(1);
18379
18380 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18381 from child file descriptors. If the child closes a descriptor
18382 before it execs or exits, this munges the parent's descriptor
18383 as well. Test for this by closing stdout in the child. */
18384 _exit(close(fileno(stdout)) != 0);
18385 } else {
18386 int status;
18387 struct stat st;
18388
18389 while (wait(&status) != child)
18390 ;
b4e70030 18391 exit(
a3828db0
MK
18392 /* Was there some problem with vforking? */
18393 child < 0
18394
18395 /* Did the child fail? (This shouldn't happen.) */
18396 || status
18397
18398 /* Did the vfork/compiler bug occur? */
18399 || parent != getpid()
18400
18401 /* Did the file descriptor bug occur? */
18402 || fstat(fileno(stdout), &st) != 0
18403 );
18404 }
bec39cab
AC
18405}
18406_ACEOF
a3828db0 18407rm -f conftest$ac_exeext
bec39cab 18408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 18409 (eval $ac_link) 2>&5
bec39cab
AC
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
a3828db0
MK
18418 ac_cv_func_vfork_works=yes
18419else
18420 echo "$as_me: program exited with status $ac_status" >&5
18421echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424( exit $ac_status )
18425ac_cv_func_vfork_works=no
18426fi
b4e70030 18427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18428fi
18429fi
b4e70030
JB
18430echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18431echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
18432
18433fi;
18434if test "x$ac_cv_func_fork_works" = xcross; then
18435 ac_cv_func_vfork_works=$ac_cv_func_vfork
18436 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18437echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18438fi
18439
18440if test "x$ac_cv_func_vfork_works" = xyes; then
18441
18442cat >>confdefs.h <<\_ACEOF
18443#define HAVE_WORKING_VFORK 1
18444_ACEOF
18445
bec39cab 18446else
bec39cab 18447
a3828db0
MK
18448cat >>confdefs.h <<\_ACEOF
18449#define vfork fork
18450_ACEOF
18451
bec39cab 18452fi
a3828db0
MK
18453if test "x$ac_cv_func_fork_works" = xyes; then
18454
18455cat >>confdefs.h <<\_ACEOF
18456#define HAVE_WORKING_FORK 1
bec39cab 18457_ACEOF
c906108c 18458
c906108c
SS
18459fi
18460
bec39cab
AC
18461
18462
a3828db0 18463for ac_func in canonicalize_file_name realpath
97bf5e38 18464do
bec39cab 18465as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 18466echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
18467echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18468if eval "test \"\${$as_ac_var+set}\" = set"; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18470else
18471 cat >conftest.$ac_ext <<_ACEOF
18472/* confdefs.h. */
18473_ACEOF
18474cat confdefs.h >>conftest.$ac_ext
18475cat >>conftest.$ac_ext <<_ACEOF
18476/* end confdefs.h. */
18477/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18479#define $ac_func innocuous_$ac_func
18480
18481/* System header to define __stub macros and hopefully few prototypes,
18482 which can conflict with char $ac_func (); below.
18483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18484 <limits.h> exists even on freestanding compilers. */
18485
18486#ifdef __STDC__
18487# include <limits.h>
18488#else
18489# include <assert.h>
18490#endif
18491
18492#undef $ac_func
18493
18494/* Override any gcc2 internal prototype to avoid an error. */
18495#ifdef __cplusplus
18496extern "C"
18497{
18498#endif
18499/* We use char because int might match the return type of a gcc2
18500 builtin and then its argument prototype would still apply. */
18501char $ac_func ();
18502/* The GNU C library defines this for functions which it implements
18503 to always fail with ENOSYS. Some functions are actually named
18504 something starting with __ and the normal name is an alias. */
18505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18506choke me
18507#else
18508char (*f) () = $ac_func;
18509#endif
18510#ifdef __cplusplus
18511}
18512#endif
18513
18514int
18515main ()
18516{
18517return f != $ac_func;
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522rm -f conftest.$ac_objext conftest$ac_exeext
18523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18524 (eval $ac_link) 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
18531 { ac_try='test -z "$ac_c_werror_flag"
18532 || test ! -s conftest.err'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; } &&
18538 { ac_try='test -s conftest$ac_exeext'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18544 eval "$as_ac_var=yes"
18545else
18546 echo "$as_me: failed program was:" >&5
18547sed 's/^/| /' conftest.$ac_ext >&5
18548
18549eval "$as_ac_var=no"
18550fi
18551rm -f conftest.err conftest.$ac_objext \
18552 conftest$ac_exeext conftest.$ac_ext
18553fi
18554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18555echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18556if test `eval echo '${'$as_ac_var'}'` = yes; then
18557 cat >>confdefs.h <<_ACEOF
18558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18559_ACEOF
18560
18561fi
18562done
18563
18564
18565for ac_func in getrusage
18566do
18567as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18568echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
18569echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18570if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572else
18573 cat >conftest.$ac_ext <<_ACEOF
18574/* confdefs.h. */
18575_ACEOF
18576cat confdefs.h >>conftest.$ac_ext
18577cat >>conftest.$ac_ext <<_ACEOF
18578/* end confdefs.h. */
18579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18581#define $ac_func innocuous_$ac_func
18582
d3ea6809
MM
18583/* System header to define __stub macros and hopefully few prototypes,
18584 which can conflict with char $ac_func (); below.
18585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18586 <limits.h> exists even on freestanding compilers. */
18587
18588#ifdef __STDC__
18589# include <limits.h>
18590#else
18591# include <assert.h>
18592#endif
18593
18594#undef $ac_func
18595
b4e70030 18596/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
18597#ifdef __cplusplus
18598extern "C"
b4e70030 18599{
d3ea6809 18600#endif
b4e70030
JB
18601/* We use char because int might match the return type of a gcc2
18602 builtin and then its argument prototype would still apply. */
d3ea6809
MM
18603char $ac_func ();
18604/* The GNU C library defines this for functions which it implements
18605 to always fail with ENOSYS. Some functions are actually named
18606 something starting with __ and the normal name is an alias. */
b4e70030 18607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 18608choke me
b4e70030
JB
18609#else
18610char (*f) () = $ac_func;
18611#endif
18612#ifdef __cplusplus
18613}
d3ea6809
MM
18614#endif
18615
18616int
18617main ()
18618{
b4e70030 18619return f != $ac_func;
d3ea6809
MM
18620 ;
18621 return 0;
18622}
18623_ACEOF
18624rm -f conftest.$ac_objext conftest$ac_exeext
18625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18626 (eval $ac_link) 2>conftest.er1
18627 ac_status=$?
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
b4e70030
JB
18633 { ac_try='test -z "$ac_c_werror_flag"
18634 || test ! -s conftest.err'
d3ea6809
MM
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 eval "$as_ac_var=yes"
18647else
18648 echo "$as_me: failed program was:" >&5
18649sed 's/^/| /' conftest.$ac_ext >&5
18650
b4e70030 18651eval "$as_ac_var=no"
d3ea6809
MM
18652fi
18653rm -f conftest.err conftest.$ac_objext \
18654 conftest$ac_exeext conftest.$ac_ext
18655fi
b4e70030
JB
18656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18657echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
18658if test `eval echo '${'$as_ac_var'}'` = yes; then
18659 cat >>confdefs.h <<_ACEOF
18660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18661_ACEOF
18662
18663fi
18664done
18665
18666
18667
18668for ac_func in getuid getgid
18669do
18670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18671echo "$as_me:$LINENO: checking for $ac_func" >&5
18672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18673if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18675else
18676 cat >conftest.$ac_ext <<_ACEOF
18677/* confdefs.h. */
18678_ACEOF
18679cat confdefs.h >>conftest.$ac_ext
18680cat >>conftest.$ac_ext <<_ACEOF
18681/* end confdefs.h. */
18682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18684#define $ac_func innocuous_$ac_func
18685
97bf5e38 18686/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18687 which can conflict with char $ac_func (); below.
18688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18689 <limits.h> exists even on freestanding compilers. */
c906108c 18690
bec39cab
AC
18691#ifdef __STDC__
18692# include <limits.h>
18693#else
18694# include <assert.h>
18695#endif
97bf5e38 18696
bec39cab
AC
18697#undef $ac_func
18698
b4e70030 18699/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18700#ifdef __cplusplus
18701extern "C"
b4e70030 18702{
bec39cab 18703#endif
b4e70030
JB
18704/* We use char because int might match the return type of a gcc2
18705 builtin and then its argument prototype would still apply. */
bec39cab 18706char $ac_func ();
97bf5e38
MK
18707/* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
b4e70030 18710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18711choke me
b4e70030
JB
18712#else
18713char (*f) () = $ac_func;
18714#endif
18715#ifdef __cplusplus
18716}
c906108c 18717#endif
97bf5e38 18718
bec39cab
AC
18719int
18720main ()
18721{
b4e70030 18722return f != $ac_func;
bec39cab
AC
18723 ;
18724 return 0;
18725}
18726_ACEOF
18727rm -f conftest.$ac_objext conftest$ac_exeext
18728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18729 (eval $ac_link) 2>conftest.er1
18730 ac_status=$?
18731 grep -v '^ *+' conftest.er1 >conftest.err
18732 rm -f conftest.er1
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
b4e70030
JB
18736 { ac_try='test -z "$ac_c_werror_flag"
18737 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18743 { ac_try='test -s conftest$ac_exeext'
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749 eval "$as_ac_var=yes"
18750else
18751 echo "$as_me: failed program was:" >&5
18752sed 's/^/| /' conftest.$ac_ext >&5
18753
b4e70030 18754eval "$as_ac_var=no"
bec39cab
AC
18755fi
18756rm -f conftest.err conftest.$ac_objext \
18757 conftest$ac_exeext conftest.$ac_ext
18758fi
b4e70030
JB
18759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18760echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18761if test `eval echo '${'$as_ac_var'}'` = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18764_ACEOF
c906108c 18765
c906108c 18766fi
97bf5e38 18767done
c906108c 18768
bec39cab 18769
a3828db0 18770for ac_func in poll
97bf5e38 18771do
bec39cab 18772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18773echo "$as_me:$LINENO: checking for $ac_func" >&5
18774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18775if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18777else
18778 cat >conftest.$ac_ext <<_ACEOF
18779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
18784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18786#define $ac_func innocuous_$ac_func
18787
97bf5e38 18788/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18789 which can conflict with char $ac_func (); below.
18790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18791 <limits.h> exists even on freestanding compilers. */
18792
18793#ifdef __STDC__
18794# include <limits.h>
18795#else
18796# include <assert.h>
18797#endif
c906108c 18798
bec39cab 18799#undef $ac_func
97bf5e38 18800
b4e70030 18801/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18802#ifdef __cplusplus
18803extern "C"
b4e70030 18804{
bec39cab 18805#endif
b4e70030
JB
18806/* We use char because int might match the return type of a gcc2
18807 builtin and then its argument prototype would still apply. */
bec39cab 18808char $ac_func ();
97bf5e38
MK
18809/* The GNU C library defines this for functions which it implements
18810 to always fail with ENOSYS. Some functions are actually named
18811 something starting with __ and the normal name is an alias. */
b4e70030 18812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18813choke me
b4e70030
JB
18814#else
18815char (*f) () = $ac_func;
18816#endif
18817#ifdef __cplusplus
18818}
c906108c 18819#endif
97bf5e38 18820
bec39cab
AC
18821int
18822main ()
18823{
b4e70030 18824return f != $ac_func;
bec39cab
AC
18825 ;
18826 return 0;
18827}
18828_ACEOF
18829rm -f conftest.$ac_objext conftest$ac_exeext
18830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18831 (eval $ac_link) 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
b4e70030
JB
18838 { ac_try='test -z "$ac_c_werror_flag"
18839 || test ! -s conftest.err'
bec39cab
AC
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest$ac_exeext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 eval "$as_ac_var=yes"
18852else
18853 echo "$as_me: failed program was:" >&5
18854sed 's/^/| /' conftest.$ac_ext >&5
18855
b4e70030 18856eval "$as_ac_var=no"
bec39cab
AC
18857fi
18858rm -f conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860fi
b4e70030
JB
18861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18863if test `eval echo '${'$as_ac_var'}'` = yes; then
18864 cat >>confdefs.h <<_ACEOF
18865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18866_ACEOF
c906108c 18867
c906108c 18868fi
97bf5e38 18869done
c906108c 18870
bec39cab 18871
a3828db0 18872for ac_func in pread64
97bf5e38 18873do
bec39cab 18874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18875echo "$as_me:$LINENO: checking for $ac_func" >&5
18876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18877if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18879else
18880 cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18888#define $ac_func innocuous_$ac_func
18889
97bf5e38 18890/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18891 which can conflict with char $ac_func (); below.
18892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18893 <limits.h> exists even on freestanding compilers. */
18894
18895#ifdef __STDC__
18896# include <limits.h>
18897#else
18898# include <assert.h>
18899#endif
c906108c 18900
bec39cab 18901#undef $ac_func
97bf5e38 18902
b4e70030 18903/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18904#ifdef __cplusplus
18905extern "C"
b4e70030 18906{
bec39cab 18907#endif
b4e70030
JB
18908/* We use char because int might match the return type of a gcc2
18909 builtin and then its argument prototype would still apply. */
bec39cab 18910char $ac_func ();
97bf5e38
MK
18911/* The GNU C library defines this for functions which it implements
18912 to always fail with ENOSYS. Some functions are actually named
18913 something starting with __ and the normal name is an alias. */
b4e70030 18914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18915choke me
b4e70030
JB
18916#else
18917char (*f) () = $ac_func;
18918#endif
18919#ifdef __cplusplus
18920}
c906108c 18921#endif
97bf5e38 18922
bec39cab
AC
18923int
18924main ()
18925{
b4e70030 18926return f != $ac_func;
bec39cab
AC
18927 ;
18928 return 0;
18929}
18930_ACEOF
18931rm -f conftest.$ac_objext conftest$ac_exeext
18932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18933 (eval $ac_link) 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
b4e70030
JB
18940 { ac_try='test -z "$ac_c_werror_flag"
18941 || test ! -s conftest.err'
bec39cab
AC
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest$ac_exeext'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 eval "$as_ac_var=yes"
18954else
18955 echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
b4e70030 18958eval "$as_ac_var=no"
bec39cab
AC
18959fi
18960rm -f conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18962fi
b4e70030
JB
18963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18965if test `eval echo '${'$as_ac_var'}'` = yes; then
18966 cat >>confdefs.h <<_ACEOF
18967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18968_ACEOF
c906108c 18969
c906108c 18970fi
97bf5e38 18971done
c906108c 18972
bec39cab 18973
a3828db0 18974for ac_func in sbrk
b757528f 18975do
bec39cab 18976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18977echo "$as_me:$LINENO: checking for $ac_func" >&5
18978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18979if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18981else
18982 cat >conftest.$ac_ext <<_ACEOF
18983/* confdefs.h. */
18984_ACEOF
18985cat confdefs.h >>conftest.$ac_ext
18986cat >>conftest.$ac_ext <<_ACEOF
18987/* end confdefs.h. */
18988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18990#define $ac_func innocuous_$ac_func
18991
b757528f 18992/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18993 which can conflict with char $ac_func (); below.
18994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995 <limits.h> exists even on freestanding compilers. */
18996
18997#ifdef __STDC__
18998# include <limits.h>
18999#else
19000# include <assert.h>
19001#endif
b757528f 19002
bec39cab 19003#undef $ac_func
b757528f 19004
b4e70030 19005/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19006#ifdef __cplusplus
19007extern "C"
b4e70030 19008{
bec39cab 19009#endif
b4e70030
JB
19010/* We use char because int might match the return type of a gcc2
19011 builtin and then its argument prototype would still apply. */
bec39cab 19012char $ac_func ();
b757528f
JJ
19013/* The GNU C library defines this for functions which it implements
19014 to always fail with ENOSYS. Some functions are actually named
19015 something starting with __ and the normal name is an alias. */
b4e70030 19016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 19017choke me
b4e70030
JB
19018#else
19019char (*f) () = $ac_func;
19020#endif
19021#ifdef __cplusplus
19022}
b757528f
JJ
19023#endif
19024
bec39cab
AC
19025int
19026main ()
19027{
b4e70030 19028return f != $ac_func;
bec39cab
AC
19029 ;
19030 return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext conftest$ac_exeext
19034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19035 (eval $ac_link) 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
b4e70030
JB
19042 { ac_try='test -z "$ac_c_werror_flag"
19043 || test ! -s conftest.err'
bec39cab
AC
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest$ac_exeext'
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19055 eval "$as_ac_var=yes"
19056else
19057 echo "$as_me: failed program was:" >&5
19058sed 's/^/| /' conftest.$ac_ext >&5
19059
b4e70030 19060eval "$as_ac_var=no"
bec39cab
AC
19061fi
19062rm -f conftest.err conftest.$ac_objext \
19063 conftest$ac_exeext conftest.$ac_ext
19064fi
b4e70030
JB
19065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19067if test `eval echo '${'$as_ac_var'}'` = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19070_ACEOF
b757528f 19071
b757528f
JJ
19072fi
19073done
19074
bec39cab 19075
a3828db0 19076
83116857
TJB
19077
19078for ac_func in setpgid setpgrp setsid
bcb3dc3d 19079do
bec39cab 19080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19081echo "$as_me:$LINENO: checking for $ac_func" >&5
19082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19083if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19085else
19086 cat >conftest.$ac_ext <<_ACEOF
19087/* confdefs.h. */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h. */
19092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19094#define $ac_func innocuous_$ac_func
19095
bcb3dc3d 19096/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19097 which can conflict with char $ac_func (); below.
19098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19099 <limits.h> exists even on freestanding compilers. */
19100
19101#ifdef __STDC__
19102# include <limits.h>
19103#else
19104# include <assert.h>
19105#endif
bcb3dc3d 19106
bec39cab 19107#undef $ac_func
bcb3dc3d 19108
b4e70030 19109/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19110#ifdef __cplusplus
19111extern "C"
b4e70030 19112{
bec39cab 19113#endif
b4e70030
JB
19114/* We use char because int might match the return type of a gcc2
19115 builtin and then its argument prototype would still apply. */
bec39cab 19116char $ac_func ();
bcb3dc3d
MK
19117/* The GNU C library defines this for functions which it implements
19118 to always fail with ENOSYS. Some functions are actually named
19119 something starting with __ and the normal name is an alias. */
b4e70030 19120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 19121choke me
b4e70030
JB
19122#else
19123char (*f) () = $ac_func;
19124#endif
19125#ifdef __cplusplus
19126}
bcb3dc3d
MK
19127#endif
19128
bec39cab
AC
19129int
19130main ()
19131{
b4e70030 19132return f != $ac_func;
bec39cab
AC
19133 ;
19134 return 0;
19135}
19136_ACEOF
19137rm -f conftest.$ac_objext conftest$ac_exeext
19138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139 (eval $ac_link) 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
b4e70030
JB
19146 { ac_try='test -z "$ac_c_werror_flag"
19147 || test ! -s conftest.err'
bec39cab
AC
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; } &&
19153 { ac_try='test -s conftest$ac_exeext'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 eval "$as_ac_var=yes"
19160else
19161 echo "$as_me: failed program was:" >&5
19162sed 's/^/| /' conftest.$ac_ext >&5
19163
b4e70030 19164eval "$as_ac_var=no"
bec39cab
AC
19165fi
19166rm -f conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19168fi
b4e70030
JB
19169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19170echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19171if test `eval echo '${'$as_ac_var'}'` = yes; then
19172 cat >>confdefs.h <<_ACEOF
19173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19174_ACEOF
bcb3dc3d 19175
bcb3dc3d
MK
19176fi
19177done
19178
bec39cab 19179
a3828db0
MK
19180
19181
19182for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 19183do
bec39cab 19184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19185echo "$as_me:$LINENO: checking for $ac_func" >&5
19186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19187if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19189else
19190 cat >conftest.$ac_ext <<_ACEOF
19191/* confdefs.h. */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
19195/* end confdefs.h. */
19196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19198#define $ac_func innocuous_$ac_func
19199
8b9cf735 19200/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19201 which can conflict with char $ac_func (); below.
19202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19203 <limits.h> exists even on freestanding compilers. */
19204
19205#ifdef __STDC__
19206# include <limits.h>
19207#else
19208# include <assert.h>
19209#endif
8b9cf735 19210
bec39cab 19211#undef $ac_func
8b9cf735 19212
b4e70030 19213/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19214#ifdef __cplusplus
19215extern "C"
b4e70030 19216{
a3828db0 19217#endif
b4e70030
JB
19218/* We use char because int might match the return type of a gcc2
19219 builtin and then its argument prototype would still apply. */
a3828db0
MK
19220char $ac_func ();
19221/* The GNU C library defines this for functions which it implements
19222 to always fail with ENOSYS. Some functions are actually named
19223 something starting with __ and the normal name is an alias. */
b4e70030 19224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19225choke me
b4e70030
JB
19226#else
19227char (*f) () = $ac_func;
19228#endif
19229#ifdef __cplusplus
19230}
a3828db0
MK
19231#endif
19232
bec39cab
AC
19233int
19234main ()
19235{
b4e70030 19236return f != $ac_func;
bec39cab
AC
19237 ;
19238 return 0;
19239}
19240_ACEOF
a3828db0
MK
19241rm -f conftest.$ac_objext conftest$ac_exeext
19242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19243 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19244 ac_status=$?
19245 grep -v '^ *+' conftest.er1 >conftest.err
19246 rm -f conftest.er1
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
b4e70030
JB
19250 { ac_try='test -z "$ac_c_werror_flag"
19251 || test ! -s conftest.err'
bec39cab
AC
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } &&
a3828db0 19257 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
a3828db0 19263 eval "$as_ac_var=yes"
086ec9eb 19264else
bec39cab
AC
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
b4e70030 19268eval "$as_ac_var=no"
a3828db0
MK
19269fi
19270rm -f conftest.err conftest.$ac_objext \
19271 conftest$ac_exeext conftest.$ac_ext
19272fi
b4e70030
JB
19273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19275if test `eval echo '${'$as_ac_var'}'` = yes; then
19276 cat >>confdefs.h <<_ACEOF
19277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19278_ACEOF
19279
086ec9eb 19280fi
a3828db0
MK
19281done
19282
19283
19284for ac_func in socketpair
19285do
19286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19287echo "$as_me:$LINENO: checking for $ac_func" >&5
19288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19289if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291else
19292 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19293/* confdefs.h. */
19294_ACEOF
19295cat confdefs.h >>conftest.$ac_ext
19296cat >>conftest.$ac_ext <<_ACEOF
19297/* end confdefs.h. */
a3828db0
MK
19298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19300#define $ac_func innocuous_$ac_func
19301
19302/* System header to define __stub macros and hopefully few prototypes,
19303 which can conflict with char $ac_func (); below.
19304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19305 <limits.h> exists even on freestanding compilers. */
19306
19307#ifdef __STDC__
19308# include <limits.h>
19309#else
19310# include <assert.h>
19311#endif
19312
19313#undef $ac_func
19314
b4e70030 19315/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19316#ifdef __cplusplus
19317extern "C"
b4e70030 19318{
a3828db0 19319#endif
b4e70030
JB
19320/* We use char because int might match the return type of a gcc2
19321 builtin and then its argument prototype would still apply. */
a3828db0
MK
19322char $ac_func ();
19323/* The GNU C library defines this for functions which it implements
19324 to always fail with ENOSYS. Some functions are actually named
19325 something starting with __ and the normal name is an alias. */
b4e70030 19326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19327choke me
b4e70030
JB
19328#else
19329char (*f) () = $ac_func;
19330#endif
19331#ifdef __cplusplus
19332}
a3828db0
MK
19333#endif
19334
bec39cab
AC
19335int
19336main ()
19337{
b4e70030 19338return f != $ac_func;
bec39cab
AC
19339 ;
19340 return 0;
19341}
19342_ACEOF
a3828db0
MK
19343rm -f conftest.$ac_objext conftest$ac_exeext
19344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
b4e70030
JB
19352 { ac_try='test -z "$ac_c_werror_flag"
19353 || test ! -s conftest.err'
bec39cab
AC
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
a3828db0 19359 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
a3828db0 19365 eval "$as_ac_var=yes"
086ec9eb 19366else
bec39cab
AC
19367 echo "$as_me: failed program was:" >&5
19368sed 's/^/| /' conftest.$ac_ext >&5
19369
b4e70030 19370eval "$as_ac_var=no"
086ec9eb 19371fi
a3828db0
MK
19372rm -f conftest.err conftest.$ac_objext \
19373 conftest$ac_exeext conftest.$ac_ext
086ec9eb 19374fi
b4e70030
JB
19375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19377if test `eval echo '${'$as_ac_var'}'` = yes; then
19378 cat >>confdefs.h <<_ACEOF
19379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19380_ACEOF
086ec9eb
MK
19381
19382fi
a3828db0 19383done
086ec9eb 19384
a3828db0
MK
19385
19386for ac_func in syscall
19387do
19388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19389echo "$as_me:$LINENO: checking for $ac_func" >&5
19390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19391if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 19392 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
19393else
19394 cat >conftest.$ac_ext <<_ACEOF
19395/* confdefs.h. */
19396_ACEOF
19397cat confdefs.h >>conftest.$ac_ext
19398cat >>conftest.$ac_ext <<_ACEOF
19399/* end confdefs.h. */
a3828db0
MK
19400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19402#define $ac_func innocuous_$ac_func
19403
19404/* System header to define __stub macros and hopefully few prototypes,
19405 which can conflict with char $ac_func (); below.
19406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19407 <limits.h> exists even on freestanding compilers. */
19408
19409#ifdef __STDC__
19410# include <limits.h>
19411#else
19412# include <assert.h>
19413#endif
19414
19415#undef $ac_func
19416
b4e70030 19417/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19418#ifdef __cplusplus
19419extern "C"
b4e70030 19420{
a3828db0 19421#endif
b4e70030
JB
19422/* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
a3828db0
MK
19424char $ac_func ();
19425/* The GNU C library defines this for functions which it implements
19426 to always fail with ENOSYS. Some functions are actually named
19427 something starting with __ and the normal name is an alias. */
b4e70030 19428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19429choke me
b4e70030
JB
19430#else
19431char (*f) () = $ac_func;
19432#endif
19433#ifdef __cplusplus
19434}
c906108c 19435#endif
97bf5e38 19436
bec39cab
AC
19437int
19438main ()
97bf5e38 19439{
b4e70030 19440return f != $ac_func;
bec39cab
AC
19441 ;
19442 return 0;
97bf5e38 19443}
bec39cab 19444_ACEOF
a3828db0 19445rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 19446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 19447 (eval $ac_link) 2>conftest.er1
bec39cab 19448 ac_status=$?
a3828db0
MK
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
bec39cab 19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19453 (exit $ac_status); } &&
b4e70030
JB
19454 { ac_try='test -z "$ac_c_werror_flag"
19455 || test ! -s conftest.err'
a3828db0
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_exeext'
bec39cab
AC
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
a3828db0 19467 eval "$as_ac_var=yes"
c906108c 19468else
a3828db0 19469 echo "$as_me: failed program was:" >&5
bec39cab
AC
19470sed 's/^/| /' conftest.$ac_ext >&5
19471
b4e70030 19472eval "$as_ac_var=no"
97bf5e38 19473fi
a3828db0
MK
19474rm -f conftest.err conftest.$ac_objext \
19475 conftest$ac_exeext conftest.$ac_ext
19476fi
b4e70030
JB
19477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19479if test `eval echo '${'$as_ac_var'}'` = yes; then
19480 cat >>confdefs.h <<_ACEOF
19481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19482_ACEOF
c906108c
SS
19483
19484fi
a3828db0 19485done
c906108c 19486
a3828db0
MK
19487
19488for ac_func in ttrace
19489do
19490as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19491echo "$as_me:$LINENO: checking for $ac_func" >&5
19492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19493if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 19494 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 19495else
bec39cab
AC
19496 cat >conftest.$ac_ext <<_ACEOF
19497/* confdefs.h. */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h. */
a3828db0
MK
19502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19504#define $ac_func innocuous_$ac_func
b83266a0 19505
a3828db0
MK
19506/* System header to define __stub macros and hopefully few prototypes,
19507 which can conflict with char $ac_func (); below.
19508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19509 <limits.h> exists even on freestanding compilers. */
19510
19511#ifdef __STDC__
19512# include <limits.h>
19513#else
19514# include <assert.h>
19515#endif
19516
19517#undef $ac_func
19518
b4e70030 19519/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19520#ifdef __cplusplus
19521extern "C"
b4e70030 19522{
a3828db0 19523#endif
b4e70030
JB
19524/* We use char because int might match the return type of a gcc2
19525 builtin and then its argument prototype would still apply. */
a3828db0
MK
19526char $ac_func ();
19527/* The GNU C library defines this for functions which it implements
19528 to always fail with ENOSYS. Some functions are actually named
19529 something starting with __ and the normal name is an alias. */
b4e70030 19530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19531choke me
b4e70030
JB
19532#else
19533char (*f) () = $ac_func;
19534#endif
19535#ifdef __cplusplus
19536}
a3828db0 19537#endif
97bf5e38 19538
bec39cab
AC
19539int
19540main ()
19541{
b4e70030 19542return f != $ac_func;
bec39cab
AC
19543 ;
19544 return 0;
19545}
19546_ACEOF
a3828db0
MK
19547rm -f conftest.$ac_objext conftest$ac_exeext
19548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19549 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19550 ac_status=$?
19551 grep -v '^ *+' conftest.er1 >conftest.err
19552 rm -f conftest.er1
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } &&
b4e70030
JB
19556 { ac_try='test -z "$ac_c_werror_flag"
19557 || test ! -s conftest.err'
bec39cab
AC
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
a3828db0 19563 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
a3828db0 19569 eval "$as_ac_var=yes"
b83266a0 19570else
bec39cab
AC
19571 echo "$as_me: failed program was:" >&5
19572sed 's/^/| /' conftest.$ac_ext >&5
19573
b4e70030 19574eval "$as_ac_var=no"
b83266a0 19575fi
a3828db0
MK
19576rm -f conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
b83266a0 19578fi
b4e70030
JB
19579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19581if test `eval echo '${'$as_ac_var'}'` = yes; then
19582 cat >>confdefs.h <<_ACEOF
19583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19584_ACEOF
b83266a0 19585
97bf5e38 19586fi
a3828db0 19587done
b83266a0 19588
a3828db0
MK
19589
19590for ac_func in wborder
19591do
19592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19593echo "$as_me:$LINENO: checking for $ac_func" >&5
19594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19595if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597else
19598 cat >conftest.$ac_ext <<_ACEOF
19599/* confdefs.h. */
19600_ACEOF
19601cat confdefs.h >>conftest.$ac_ext
19602cat >>conftest.$ac_ext <<_ACEOF
19603/* end confdefs.h. */
a3828db0
MK
19604/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19606#define $ac_func innocuous_$ac_func
a4db0f07 19607
a3828db0
MK
19608/* System header to define __stub macros and hopefully few prototypes,
19609 which can conflict with char $ac_func (); below.
19610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19611 <limits.h> exists even on freestanding compilers. */
19612
19613#ifdef __STDC__
19614# include <limits.h>
19615#else
19616# include <assert.h>
19617#endif
19618
19619#undef $ac_func
19620
b4e70030 19621/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19622#ifdef __cplusplus
19623extern "C"
b4e70030 19624{
a3828db0 19625#endif
b4e70030
JB
19626/* We use char because int might match the return type of a gcc2
19627 builtin and then its argument prototype would still apply. */
a3828db0
MK
19628char $ac_func ();
19629/* The GNU C library defines this for functions which it implements
19630 to always fail with ENOSYS. Some functions are actually named
19631 something starting with __ and the normal name is an alias. */
b4e70030 19632#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19633choke me
b4e70030
JB
19634#else
19635char (*f) () = $ac_func;
19636#endif
19637#ifdef __cplusplus
19638}
a3828db0 19639#endif
97bf5e38 19640
bec39cab
AC
19641int
19642main ()
19643{
b4e70030 19644return f != $ac_func;
bec39cab
AC
19645 ;
19646 return 0;
19647}
19648_ACEOF
a3828db0
MK
19649rm -f conftest.$ac_objext conftest$ac_exeext
19650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19651 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19652 ac_status=$?
19653 grep -v '^ *+' conftest.er1 >conftest.err
19654 rm -f conftest.er1
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
b4e70030
JB
19658 { ac_try='test -z "$ac_c_werror_flag"
19659 || test ! -s conftest.err'
bec39cab
AC
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
a3828db0 19665 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
a3828db0 19671 eval "$as_ac_var=yes"
a4db0f07 19672else
bec39cab
AC
19673 echo "$as_me: failed program was:" >&5
19674sed 's/^/| /' conftest.$ac_ext >&5
19675
b4e70030 19676eval "$as_ac_var=no"
a4db0f07 19677fi
a3828db0
MK
19678rm -f conftest.err conftest.$ac_objext \
19679 conftest$ac_exeext conftest.$ac_ext
a4db0f07 19680fi
b4e70030
JB
19681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19683if test `eval echo '${'$as_ac_var'}'` = yes; then
19684 cat >>confdefs.h <<_ACEOF
19685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19686_ACEOF
a4db0f07
RH
19687
19688fi
a3828db0 19689done
c906108c 19690
06825bd1 19691
a3828db0
MK
19692# Check the return and argument types of ptrace. No canned test for
19693# this, so roll our own.
19694gdb_ptrace_headers='
19695#if HAVE_SYS_TYPES_H
19696# include <sys/types.h>
19697#endif
19698#if HAVE_SYS_PTRACE_H
19699# include <sys/ptrace.h>
19700#endif
19701#if HAVE_UNISTD_H
19702# include <unistd.h>
19703#endif
19704'
19705# There is no point in checking if we don't have a prototype.
b4e70030
JB
19706echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
19707echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 19708if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19710else
19711 cat >conftest.$ac_ext <<_ACEOF
19712/* confdefs.h. */
19713_ACEOF
19714cat confdefs.h >>conftest.$ac_ext
19715cat >>conftest.$ac_ext <<_ACEOF
19716/* end confdefs.h. */
a3828db0
MK
19717$gdb_ptrace_headers
19718
bec39cab
AC
19719int
19720main ()
19721{
a3828db0
MK
19722#ifndef ptrace
19723 char *p = (char *) ptrace;
06825bd1 19724#endif
a3828db0 19725
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 ac_cv_have_decl_ptrace=yes
06825bd1 19753else
bec39cab
AC
19754 echo "$as_me: failed program was:" >&5
19755sed 's/^/| /' conftest.$ac_ext >&5
19756
b4e70030 19757ac_cv_have_decl_ptrace=no
06825bd1 19758fi
bec39cab 19759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 19760fi
b4e70030
JB
19761echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
19762echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 19763if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 19764
a3828db0
MK
19765cat >>confdefs.h <<_ACEOF
19766#define HAVE_DECL_PTRACE 1
19767_ACEOF
bec39cab 19768
bec39cab 19769
a3828db0
MK
19770else
19771 cat >>confdefs.h <<_ACEOF
19772#define HAVE_DECL_PTRACE 0
bec39cab 19773_ACEOF
06825bd1 19774
a3828db0
MK
19775
19776 : ${gdb_cv_func_ptrace_ret='int'}
19777 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19778
06825bd1
MK
19779fi
19780
a3828db0
MK
19781
19782# Check return type.
b4e70030
JB
19783echo "$as_me:$LINENO: checking return type of ptrace" >&5
19784echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 19785if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19787else
19788 cat >conftest.$ac_ext <<_ACEOF
19789/* confdefs.h. */
19790_ACEOF
19791cat confdefs.h >>conftest.$ac_ext
19792cat >>conftest.$ac_ext <<_ACEOF
19793/* end confdefs.h. */
a3828db0 19794$gdb_ptrace_headers
bec39cab
AC
19795int
19796main ()
19797{
a3828db0 19798extern int ptrace ();
bec39cab
AC
19799 ;
19800 return 0;
19801}
19802_ACEOF
19803rm -f conftest.$ac_objext
19804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19805 (eval $ac_compile) 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
b4e70030
JB
19812 { ac_try='test -z "$ac_c_werror_flag"
19813 || test ! -s conftest.err'
bec39cab
AC
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
a3828db0 19825 gdb_cv_func_ptrace_ret='int'
70f9f479 19826else
bec39cab
AC
19827 echo "$as_me: failed program was:" >&5
19828sed 's/^/| /' conftest.$ac_ext >&5
19829
b4e70030 19830gdb_cv_func_ptrace_ret='long'
70f9f479 19831fi
bec39cab 19832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 19833fi
b4e70030
JB
19834echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
19835echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 19836
a3828db0
MK
19837cat >>confdefs.h <<_ACEOF
19838#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 19839_ACEOF
70f9f479 19840
a3828db0 19841# Check argument types.
b4e70030
JB
19842echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
19843echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 19844if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846else
a3828db0
MK
19847
19848for gdb_arg1 in 'int' 'long'; do
19849 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 19850 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0
MK
19851 for gdb_arg4 in 'int' 'long'; do
19852 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19853/* confdefs.h. */
19854_ACEOF
19855cat confdefs.h >>conftest.$ac_ext
19856cat >>conftest.$ac_ext <<_ACEOF
19857/* end confdefs.h. */
a3828db0 19858$gdb_ptrace_headers
bec39cab
AC
19859int
19860main ()
19861{
a3828db0
MK
19862
19863extern $gdb_cv_func_ptrace_ret
19864 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
19865
bec39cab
AC
19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext
19871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872 (eval $ac_compile) 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
b4e70030
JB
19879 { ac_try='test -z "$ac_c_werror_flag"
19880 || test ! -s conftest.err'
bec39cab
AC
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try='test -s conftest.$ac_objext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
a3828db0
MK
19892 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
19893 break 4;
5c7f2947 19894else
bec39cab
AC
19895 echo "$as_me: failed program was:" >&5
19896sed 's/^/| /' conftest.$ac_ext >&5
19897
5c7f2947 19898fi
bec39cab 19899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19900 for gdb_arg5 in 'int *' 'int' 'long'; do
19901 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19902/* confdefs.h. */
19903_ACEOF
19904cat confdefs.h >>conftest.$ac_ext
19905cat >>conftest.$ac_ext <<_ACEOF
19906/* end confdefs.h. */
a3828db0 19907$gdb_ptrace_headers
bec39cab
AC
19908int
19909main ()
19910{
a3828db0
MK
19911
19912extern $gdb_cv_func_ptrace_ret
19913 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
19914
bec39cab
AC
19915 ;
19916 return 0;
19917}
19918_ACEOF
19919rm -f conftest.$ac_objext
19920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19921 (eval $ac_compile) 2>conftest.er1
19922 ac_status=$?
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } &&
b4e70030
JB
19928 { ac_try='test -z "$ac_c_werror_flag"
19929 || test ! -s conftest.err'
bec39cab
AC
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
a3828db0
MK
19941
19942gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
19943 break 5;
78434e59 19944else
bec39cab
AC
19945 echo "$as_me: failed program was:" >&5
19946sed 's/^/| /' conftest.$ac_ext >&5
19947
78434e59 19948fi
bec39cab 19949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19950 done
19951 done
19952 done
19953 done
19954done
19955# Provide a safe default value.
19956: ${gdb_cv_func_ptrace_args='int,int,long,long'}
19957
78434e59 19958fi
b4e70030
JB
19959echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
19960echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
19961ac_save_IFS=$IFS; IFS=','
19962set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
19963IFS=$ac_save_IFS
19964shift
bec39cab 19965
a3828db0
MK
19966cat >>confdefs.h <<_ACEOF
19967#define PTRACE_TYPE_ARG3 $3
19968_ACEOF
19969
19970if test -n "$5"; then
19971
19972cat >>confdefs.h <<_ACEOF
19973#define PTRACE_TYPE_ARG5 $5
bec39cab 19974_ACEOF
78434e59
MK
19975
19976fi
19977
a3828db0 19978if test "$cross_compiling" = no; then
b4e70030
JB
19979 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19980echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 19981if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 19982 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
19983else
19984 if test "$cross_compiling" = yes; then
19985 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19986echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19987 { (exit 1); exit 1; }; }
bec39cab
AC
19988else
19989 cat >conftest.$ac_ext <<_ACEOF
19990/* confdefs.h. */
19991_ACEOF
19992cat confdefs.h >>conftest.$ac_ext
19993cat >>conftest.$ac_ext <<_ACEOF
19994/* end confdefs.h. */
b4e70030
JB
19995#if HAVE_UNISTD_H
19996# include <unistd.h>
19997#endif
19998
bec39cab
AC
19999int
20000main ()
20001{
a3828db0
MK
20002/* If this system has a BSD-style setpgrp which takes arguments,
20003 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20004 exit successfully. */
b4e70030 20005 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
20006 ;
20007 return 0;
20008}
20009_ACEOF
a3828db0
MK
20010rm -f conftest$ac_exeext
20011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012 (eval $ac_link) 2>&5
bec39cab
AC
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 20015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; }; then
a3828db0 20021 ac_cv_func_setpgrp_void=no
c906108c 20022else
a3828db0
MK
20023 echo "$as_me: program exited with status $ac_status" >&5
20024echo "$as_me: failed program was:" >&5
bec39cab
AC
20025sed 's/^/| /' conftest.$ac_ext >&5
20026
a3828db0
MK
20027( exit $ac_status )
20028ac_cv_func_setpgrp_void=yes
c906108c 20029fi
b4e70030 20030rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20031fi
a3828db0 20032fi
b4e70030
JB
20033echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20034echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
20035if test $ac_cv_func_setpgrp_void = yes; then
20036
20037cat >>confdefs.h <<\_ACEOF
20038#define SETPGRP_VOID 1
bec39cab 20039_ACEOF
97bf5e38
MK
20040
20041fi
a3828db0
MK
20042
20043else
b4e70030
JB
20044 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20045echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 20046if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20047 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20048else
bec39cab
AC
20049 cat >conftest.$ac_ext <<_ACEOF
20050/* confdefs.h. */
20051_ACEOF
20052cat confdefs.h >>conftest.$ac_ext
20053cat >>conftest.$ac_ext <<_ACEOF
20054/* end confdefs.h. */
a3828db0
MK
20055
20056#include <unistd.h>
20057
bec39cab
AC
20058int
20059main ()
20060{
a3828db0
MK
20061
20062 if (setpgrp(1,1) == -1)
20063 exit (0);
20064 else
20065 exit (1);
20066
bec39cab
AC
20067 ;
20068 return 0;
20069}
20070_ACEOF
20071rm -f conftest.$ac_objext
20072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20073 (eval $ac_compile) 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } &&
b4e70030
JB
20080 { ac_try='test -z "$ac_c_werror_flag"
20081 || test ! -s conftest.err'
bec39cab
AC
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; } &&
20087 { ac_try='test -s conftest.$ac_objext'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; }; then
a3828db0 20093 ac_cv_func_setpgrp_void=no
c906108c 20094else
bec39cab
AC
20095 echo "$as_me: failed program was:" >&5
20096sed 's/^/| /' conftest.$ac_ext >&5
20097
b4e70030 20098ac_cv_func_setpgrp_void=yes
c906108c 20099fi
bec39cab 20100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20101fi
b4e70030
JB
20102echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20103echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 20104if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 20105 cat >>confdefs.h <<\_ACEOF
a3828db0 20106#define SETPGRP_VOID 1
bec39cab 20107_ACEOF
c3f6f71d 20108
a3828db0 20109fi
c906108c
SS
20110fi
20111
a3828db0
MK
20112# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20113# since sigsetjmp might only be defined as a macro.
b4e70030
JB
20114echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20115echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 20116if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20118else
20119 cat >conftest.$ac_ext <<_ACEOF
20120/* confdefs.h. */
20121_ACEOF
20122cat confdefs.h >>conftest.$ac_ext
20123cat >>conftest.$ac_ext <<_ACEOF
20124/* end confdefs.h. */
a3828db0
MK
20125
20126#include <setjmp.h>
20127
bec39cab
AC
20128int
20129main ()
20130{
a3828db0 20131sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
20132 ;
20133 return 0;
20134}
20135_ACEOF
20136rm -f conftest.$ac_objext
20137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138 (eval $ac_compile) 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
b4e70030
JB
20145 { ac_try='test -z "$ac_c_werror_flag"
20146 || test ! -s conftest.err'
bec39cab
AC
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest.$ac_objext'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
a3828db0 20158 gdb_cv_func_sigsetjmp=yes
c906108c 20159else
bec39cab
AC
20160 echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
20162
b4e70030 20163gdb_cv_func_sigsetjmp=no
c906108c 20164fi
bec39cab 20165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20166fi
b4e70030
JB
20167echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20168echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 20169if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 20170
a3828db0
MK
20171cat >>confdefs.h <<\_ACEOF
20172#define HAVE_SIGSETJMP 1
bec39cab 20173_ACEOF
c906108c 20174
97bf5e38 20175fi
c906108c 20176
a3828db0
MK
20177# Assume we'll default to using the included libiberty regex.
20178gdb_use_included_regex=yes
20179
20180# However, if the system regex is GNU regex, then default to *not*
20181# using the included regex.
b4e70030
JB
20182echo "$as_me:$LINENO: checking for GNU regex" >&5
20183echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 20184if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20186else
20187 cat >conftest.$ac_ext <<_ACEOF
20188/* confdefs.h. */
20189_ACEOF
20190cat confdefs.h >>conftest.$ac_ext
20191cat >>conftest.$ac_ext <<_ACEOF
20192/* end confdefs.h. */
a3828db0 20193#include <gnu-versions.h>
bec39cab
AC
20194int
20195main ()
20196{
a3828db0
MK
20197#define REGEX_INTERFACE_VERSION 1
20198#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20199# error "Version mismatch"
20200#endif
bec39cab
AC
20201 ;
20202 return 0;
20203}
20204_ACEOF
20205rm -f conftest.$ac_objext
20206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20207 (eval $ac_compile) 2>conftest.er1
20208 ac_status=$?
20209 grep -v '^ *+' conftest.er1 >conftest.err
20210 rm -f conftest.er1
20211 cat conftest.err >&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
b4e70030
JB
20214 { ac_try='test -z "$ac_c_werror_flag"
20215 || test ! -s conftest.err'
bec39cab
AC
20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217 (eval $ac_try) 2>&5
20218 ac_status=$?
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; } &&
20221 { ac_try='test -s conftest.$ac_objext'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
a3828db0 20227 gdb_cv_have_gnu_regex=yes
c906108c 20228else
bec39cab
AC
20229 echo "$as_me: failed program was:" >&5
20230sed 's/^/| /' conftest.$ac_ext >&5
20231
b4e70030 20232gdb_cv_have_gnu_regex=no
c906108c 20233fi
bec39cab 20234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20235fi
b4e70030
JB
20236echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20237echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
20238if test $gdb_cv_have_gnu_regex = yes; then
20239 gdb_use_included_regex=no
20240fi
c906108c 20241
a3828db0 20242
b4e70030 20243# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 20244if test "${with_included_regex+set}" = set; then
b4e70030
JB
20245 withval="$with_included_regex"
20246 gdb_with_regex=$withval
a3828db0
MK
20247else
20248 gdb_with_regex=$gdb_use_included_regex
b4e70030 20249fi;
a3828db0
MK
20250if test "$gdb_with_regex" = yes; then
20251
20252cat >>confdefs.h <<\_ACEOF
20253#define USE_INCLUDED_REGEX 1
bec39cab 20254_ACEOF
c906108c 20255
97bf5e38 20256fi
c906108c 20257
5c45e068 20258# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
20259echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20260echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 20261if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263else
20264 cat >conftest.$ac_ext <<_ACEOF
20265/* confdefs.h. */
20266_ACEOF
20267cat confdefs.h >>conftest.$ac_ext
20268cat >>conftest.$ac_ext <<_ACEOF
20269/* end confdefs.h. */
a3828db0
MK
20270#include <sys/param.h>
20271#include <sys/proc.h>
5c45e068
MK
20272
20273
bec39cab
AC
20274int
20275main ()
20276{
5c45e068
MK
20277static struct thread ac_aggr;
20278if (ac_aggr.td_pcb)
20279return 0;
bec39cab
AC
20280 ;
20281 return 0;
20282}
20283_ACEOF
20284rm -f conftest.$ac_objext
20285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20286 (eval $ac_compile) 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } &&
b4e70030
JB
20293 { ac_try='test -z "$ac_c_werror_flag"
20294 || test ! -s conftest.err'
bec39cab
AC
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; } &&
20300 { ac_try='test -s conftest.$ac_objext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
5c45e068 20306 ac_cv_member_struct_thread_td_pcb=yes
c906108c 20307else
bec39cab
AC
20308 echo "$as_me: failed program was:" >&5
20309sed 's/^/| /' conftest.$ac_ext >&5
20310
b4e70030 20311cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20312/* confdefs.h. */
20313_ACEOF
20314cat confdefs.h >>conftest.$ac_ext
20315cat >>conftest.$ac_ext <<_ACEOF
20316/* end confdefs.h. */
20317#include <sys/param.h>
20318#include <sys/proc.h>
20319
20320
20321int
20322main ()
20323{
20324static struct thread ac_aggr;
20325if (sizeof ac_aggr.td_pcb)
20326return 0;
20327 ;
20328 return 0;
20329}
20330_ACEOF
20331rm -f conftest.$ac_objext
20332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20333 (eval $ac_compile) 2>conftest.er1
20334 ac_status=$?
20335 grep -v '^ *+' conftest.er1 >conftest.err
20336 rm -f conftest.er1
20337 cat conftest.err >&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
b4e70030
JB
20340 { ac_try='test -z "$ac_c_werror_flag"
20341 || test ! -s conftest.err'
5c45e068
MK
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; } &&
20347 { ac_try='test -s conftest.$ac_objext'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; }; then
20353 ac_cv_member_struct_thread_td_pcb=yes
20354else
20355 echo "$as_me: failed program was:" >&5
20356sed 's/^/| /' conftest.$ac_ext >&5
20357
b4e70030 20358ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
20359fi
20360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20361fi
bec39cab 20362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20363fi
b4e70030
JB
20364echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20365echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 20366if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 20367
5c45e068 20368cat >>confdefs.h <<_ACEOF
a3828db0 20369#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 20370_ACEOF
c906108c 20371
5c45e068 20372
97bf5e38 20373fi
c906108c 20374
5c45e068 20375
a3828db0 20376# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
20377echo "$as_me:$LINENO: checking for struct lwp" >&5
20378echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 20379if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20381else
20382 cat >conftest.$ac_ext <<_ACEOF
20383/* confdefs.h. */
20384_ACEOF
20385cat confdefs.h >>conftest.$ac_ext
20386cat >>conftest.$ac_ext <<_ACEOF
20387/* end confdefs.h. */
a3828db0
MK
20388#include <sys/param.h>
20389#include <sys/lwp.h>
bec39cab
AC
20390int
20391main ()
20392{
a3828db0 20393struct lwp l;
bec39cab
AC
20394 ;
20395 return 0;
20396}
20397_ACEOF
20398rm -f conftest.$ac_objext
20399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20400 (eval $ac_compile) 2>conftest.er1
20401 ac_status=$?
20402 grep -v '^ *+' conftest.er1 >conftest.err
20403 rm -f conftest.er1
20404 cat conftest.err >&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } &&
b4e70030
JB
20407 { ac_try='test -z "$ac_c_werror_flag"
20408 || test ! -s conftest.err'
bec39cab
AC
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; } &&
20414 { ac_try='test -s conftest.$ac_objext'
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; }; then
a3828db0 20420 gdb_cv_struct_lwp=yes
c906108c 20421else
bec39cab
AC
20422 echo "$as_me: failed program was:" >&5
20423sed 's/^/| /' conftest.$ac_ext >&5
20424
b4e70030 20425gdb_cv_struct_lwp=no
c906108c 20426fi
bec39cab 20427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20428fi
b4e70030
JB
20429echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20430echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 20431if test $gdb_cv_struct_lwp = yes; then
c906108c 20432
a3828db0
MK
20433cat >>confdefs.h <<\_ACEOF
20434#define HAVE_STRUCT_LWP 1
bec39cab 20435_ACEOF
c906108c 20436
97bf5e38 20437fi
c906108c 20438
a3828db0 20439# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
20440echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20441echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 20442if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20444else
20445 cat >conftest.$ac_ext <<_ACEOF
20446/* confdefs.h. */
20447_ACEOF
20448cat confdefs.h >>conftest.$ac_ext
20449cat >>conftest.$ac_ext <<_ACEOF
20450/* end confdefs.h. */
a3828db0
MK
20451#include <sys/types.h>
20452#include <machine/reg.h>
bec39cab
AC
20453int
20454main ()
20455{
a3828db0 20456struct reg r;
bec39cab
AC
20457 ;
20458 return 0;
20459}
20460_ACEOF
20461rm -f conftest.$ac_objext
20462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20463 (eval $ac_compile) 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
b4e70030
JB
20470 { ac_try='test -z "$ac_c_werror_flag"
20471 || test ! -s conftest.err'
bec39cab
AC
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest.$ac_objext'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
a3828db0 20483 gdb_cv_struct_reg=yes
27ca5dad 20484else
bec39cab
AC
20485 echo "$as_me: failed program was:" >&5
20486sed 's/^/| /' conftest.$ac_ext >&5
20487
b4e70030 20488gdb_cv_struct_reg=no
27ca5dad 20489fi
bec39cab 20490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 20491fi
b4e70030
JB
20492echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20493echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 20494if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
20495
20496cat >>confdefs.h <<\_ACEOF
a3828db0 20497#define HAVE_STRUCT_REG 1
bec39cab 20498_ACEOF
27ca5dad
MC
20499
20500fi
97bf5e38 20501
a3828db0
MK
20502# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20503# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
20504echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20505echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 20506if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 20507 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20508else
bec39cab
AC
20509 cat >conftest.$ac_ext <<_ACEOF
20510/* confdefs.h. */
20511_ACEOF
20512cat confdefs.h >>conftest.$ac_ext
20513cat >>conftest.$ac_ext <<_ACEOF
20514/* end confdefs.h. */
a3828db0 20515#include <machine/reg.h>
5c45e068
MK
20516
20517int
20518main ()
20519{
20520static struct reg ac_aggr;
20521if (ac_aggr.r_fs)
20522return 0;
20523 ;
20524 return 0;
20525}
20526_ACEOF
20527rm -f conftest.$ac_objext
20528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20529 (eval $ac_compile) 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
b4e70030
JB
20536 { ac_try='test -z "$ac_c_werror_flag"
20537 || test ! -s conftest.err'
5c45e068
MK
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try='test -s conftest.$ac_objext'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20549 ac_cv_member_struct_reg_r_fs=yes
20550else
20551 echo "$as_me: failed program was:" >&5
20552sed 's/^/| /' conftest.$ac_ext >&5
20553
b4e70030 20554cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20555/* confdefs.h. */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h. */
20560#include <machine/reg.h>
20561
bec39cab
AC
20562int
20563main ()
20564{
5c45e068
MK
20565static struct reg ac_aggr;
20566if (sizeof ac_aggr.r_fs)
20567return 0;
bec39cab
AC
20568 ;
20569 return 0;
20570}
20571_ACEOF
20572rm -f conftest.$ac_objext
20573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20574 (eval $ac_compile) 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
b4e70030
JB
20581 { ac_try='test -z "$ac_c_werror_flag"
20582 || test ! -s conftest.err'
bec39cab
AC
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
5c45e068 20594 ac_cv_member_struct_reg_r_fs=yes
3862412b 20595else
bec39cab
AC
20596 echo "$as_me: failed program was:" >&5
20597sed 's/^/| /' conftest.$ac_ext >&5
20598
b4e70030 20599ac_cv_member_struct_reg_r_fs=no
3862412b 20600fi
bec39cab 20601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 20602fi
5c45e068
MK
20603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20604fi
b4e70030
JB
20605echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20606echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
20607if test $ac_cv_member_struct_reg_r_fs = yes; then
20608
20609cat >>confdefs.h <<_ACEOF
a3828db0 20610#define HAVE_STRUCT_REG_R_FS 1
bec39cab 20611_ACEOF
3862412b 20612
5c45e068 20613
97bf5e38 20614fi
b4e70030
JB
20615echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20616echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 20617if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 20618 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20619else
bec39cab
AC
20620 cat >conftest.$ac_ext <<_ACEOF
20621/* confdefs.h. */
20622_ACEOF
20623cat confdefs.h >>conftest.$ac_ext
20624cat >>conftest.$ac_ext <<_ACEOF
20625/* end confdefs.h. */
a3828db0 20626#include <machine/reg.h>
5c45e068 20627
bec39cab
AC
20628int
20629main ()
20630{
5c45e068
MK
20631static struct reg ac_aggr;
20632if (ac_aggr.r_gs)
20633return 0;
bec39cab
AC
20634 ;
20635 return 0;
20636}
20637_ACEOF
20638rm -f conftest.$ac_objext
20639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20640 (eval $ac_compile) 2>conftest.er1
20641 ac_status=$?
20642 grep -v '^ *+' conftest.er1 >conftest.err
20643 rm -f conftest.er1
20644 cat conftest.err >&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } &&
b4e70030
JB
20647 { ac_try='test -z "$ac_c_werror_flag"
20648 || test ! -s conftest.err'
bec39cab
AC
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; } &&
20654 { ac_try='test -s conftest.$ac_objext'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
5c45e068 20660 ac_cv_member_struct_reg_r_gs=yes
3862412b 20661else
bec39cab
AC
20662 echo "$as_me: failed program was:" >&5
20663sed 's/^/| /' conftest.$ac_ext >&5
20664
b4e70030 20665cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20666/* confdefs.h. */
20667_ACEOF
20668cat confdefs.h >>conftest.$ac_ext
20669cat >>conftest.$ac_ext <<_ACEOF
20670/* end confdefs.h. */
20671#include <machine/reg.h>
20672
20673int
20674main ()
20675{
20676static struct reg ac_aggr;
20677if (sizeof ac_aggr.r_gs)
20678return 0;
20679 ;
20680 return 0;
20681}
20682_ACEOF
20683rm -f conftest.$ac_objext
20684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20685 (eval $ac_compile) 2>conftest.er1
20686 ac_status=$?
20687 grep -v '^ *+' conftest.er1 >conftest.err
20688 rm -f conftest.er1
20689 cat conftest.err >&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } &&
b4e70030
JB
20692 { ac_try='test -z "$ac_c_werror_flag"
20693 || test ! -s conftest.err'
5c45e068
MK
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695 (eval $ac_try) 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; } &&
20699 { ac_try='test -s conftest.$ac_objext'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 ac_cv_member_struct_reg_r_gs=yes
20706else
20707 echo "$as_me: failed program was:" >&5
20708sed 's/^/| /' conftest.$ac_ext >&5
20709
b4e70030 20710ac_cv_member_struct_reg_r_gs=no
3862412b 20711fi
bec39cab 20712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 20713fi
5c45e068
MK
20714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20715fi
b4e70030
JB
20716echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
20717echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
20718if test $ac_cv_member_struct_reg_r_gs = yes; then
20719
20720cat >>confdefs.h <<_ACEOF
a3828db0 20721#define HAVE_STRUCT_REG_R_GS 1
bec39cab 20722_ACEOF
3862412b 20723
5c45e068 20724
97bf5e38 20725fi
3862412b 20726
5c45e068 20727
a3828db0 20728# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
20729echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
20730echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 20731if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 20732 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 20733else
bec39cab
AC
20734 cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
a3828db0 20740#include <sys/ptrace.h>
bec39cab
AC
20741int
20742main ()
20743{
a3828db0 20744PTRACE_GETREGS;
bec39cab
AC
20745 ;
20746 return 0;
20747}
20748_ACEOF
20749rm -f conftest.$ac_objext
20750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751 (eval $ac_compile) 2>conftest.er1
20752 ac_status=$?
20753 grep -v '^ *+' conftest.er1 >conftest.err
20754 rm -f conftest.er1
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
b4e70030
JB
20758 { ac_try='test -z "$ac_c_werror_flag"
20759 || test ! -s conftest.err'
bec39cab
AC
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; } &&
20765 { ac_try='test -s conftest.$ac_objext'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
a3828db0 20771 gdb_cv_have_ptrace_getregs=yes
451928c5 20772else
bec39cab
AC
20773 echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
b4e70030 20776gdb_cv_have_ptrace_getregs=no
451928c5 20777fi
bec39cab 20778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
20779fi
20780
b4e70030
JB
20781echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
20782echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 20783if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
20784
20785cat >>confdefs.h <<\_ACEOF
a3828db0 20786#define HAVE_PTRACE_GETREGS 1
bec39cab 20787_ACEOF
451928c5 20788
97bf5e38 20789fi
451928c5 20790
a3828db0 20791# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
20792echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
20793echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 20794if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 20795 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 20796else
bec39cab
AC
20797 cat >conftest.$ac_ext <<_ACEOF
20798/* confdefs.h. */
20799_ACEOF
20800cat confdefs.h >>conftest.$ac_ext
20801cat >>conftest.$ac_ext <<_ACEOF
20802/* end confdefs.h. */
a3828db0 20803#include <sys/ptrace.h>
bec39cab
AC
20804int
20805main ()
20806{
a3828db0 20807PTRACE_GETFPXREGS;
bec39cab
AC
20808 ;
20809 return 0;
20810}
20811_ACEOF
20812rm -f conftest.$ac_objext
20813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20814 (eval $ac_compile) 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
b4e70030
JB
20821 { ac_try='test -z "$ac_c_werror_flag"
20822 || test ! -s conftest.err'
bec39cab
AC
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; } &&
20828 { ac_try='test -s conftest.$ac_objext'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
a3828db0 20834 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 20835else
bec39cab
AC
20836 echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
20838
b4e70030 20839gdb_cv_have_ptrace_getfpxregs=no
451928c5 20840fi
bec39cab 20841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
20842fi
20843
b4e70030
JB
20844echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
20845echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 20846if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
20847
20848cat >>confdefs.h <<\_ACEOF
a3828db0 20849#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 20850_ACEOF
451928c5 20851
97bf5e38 20852fi
451928c5 20853
a3828db0 20854# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
20855echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
20856echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 20857if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 20858 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20859else
bec39cab
AC
20860 cat >conftest.$ac_ext <<_ACEOF
20861/* confdefs.h. */
20862_ACEOF
20863cat confdefs.h >>conftest.$ac_ext
20864cat >>conftest.$ac_ext <<_ACEOF
20865/* end confdefs.h. */
a3828db0
MK
20866#include <sys/types.h>
20867#include <sys/ptrace.h>
bec39cab
AC
20868int
20869main ()
20870{
a3828db0 20871PT_GETDBREGS;
bec39cab
AC
20872 ;
20873 return 0;
20874}
20875_ACEOF
20876rm -f conftest.$ac_objext
20877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20878 (eval $ac_compile) 2>conftest.er1
20879 ac_status=$?
20880 grep -v '^ *+' conftest.er1 >conftest.err
20881 rm -f conftest.er1
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
b4e70030
JB
20885 { ac_try='test -z "$ac_c_werror_flag"
20886 || test ! -s conftest.err'
bec39cab
AC
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; } &&
20892 { ac_try='test -s conftest.$ac_objext'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
a3828db0 20898 gdb_cv_have_pt_getdbregs=yes
3862412b 20899else
bec39cab
AC
20900 echo "$as_me: failed program was:" >&5
20901sed 's/^/| /' conftest.$ac_ext >&5
20902
b4e70030 20903gdb_cv_have_pt_getdbregs=no
3862412b 20904fi
bec39cab 20905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
20906fi
20907
b4e70030
JB
20908echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
20909echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 20910if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
20911
20912cat >>confdefs.h <<\_ACEOF
a3828db0 20913#define HAVE_PT_GETDBREGS 1
bec39cab 20914_ACEOF
3862412b 20915
97bf5e38 20916fi
3862412b 20917
a3828db0 20918# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
20919echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
20920echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 20921if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 20922 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20923else
bec39cab
AC
20924 cat >conftest.$ac_ext <<_ACEOF
20925/* confdefs.h. */
20926_ACEOF
20927cat confdefs.h >>conftest.$ac_ext
20928cat >>conftest.$ac_ext <<_ACEOF
20929/* end confdefs.h. */
a3828db0
MK
20930#include <sys/types.h>
20931#include <sys/ptrace.h>
bec39cab
AC
20932int
20933main ()
20934{
a3828db0 20935PT_GETXMMREGS;
bec39cab
AC
20936 ;
20937 return 0;
20938}
20939_ACEOF
20940rm -f conftest.$ac_objext
20941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20942 (eval $ac_compile) 2>conftest.er1
20943 ac_status=$?
20944 grep -v '^ *+' conftest.er1 >conftest.err
20945 rm -f conftest.er1
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } &&
b4e70030
JB
20949 { ac_try='test -z "$ac_c_werror_flag"
20950 || test ! -s conftest.err'
bec39cab
AC
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; } &&
20956 { ac_try='test -s conftest.$ac_objext'
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20959 ac_status=$?
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; }; then
a3828db0 20962 gdb_cv_have_pt_getxmmregs=yes
3862412b 20963else
bec39cab
AC
20964 echo "$as_me: failed program was:" >&5
20965sed 's/^/| /' conftest.$ac_ext >&5
20966
b4e70030 20967gdb_cv_have_pt_getxmmregs=no
3862412b 20968fi
bec39cab 20969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
20970fi
20971
b4e70030
JB
20972echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
20973echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 20974if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
20975
20976cat >>confdefs.h <<\_ACEOF
a3828db0 20977#define HAVE_PT_GETXMMREGS 1
bec39cab 20978_ACEOF
3862412b 20979
97bf5e38 20980fi
3862412b 20981
eb368090 20982# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
20983
20984if test "${target}" = "${host}"; then
20985 case "${host}" in
97bf5e38 20986 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
20987
20988cat >>confdefs.h <<\_ACEOF
97bf5e38 20989#define NEW_PROC_API 1
bec39cab 20990_ACEOF
97bf5e38
MK
20991
20992 ;;
c162e8c9 20993 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f
SE
20994
20995cat >>confdefs.h <<\_ACEOF
97bf5e38 20996#define NEW_PROC_API 1
bec39cab 20997_ACEOF
c960c18f
AC
20998
20999 ;;
21000 mips-sgi-irix5*)
21001 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
21002
21003cat >>confdefs.h <<\_ACEOF
c960c18f 21004#define _KMEMUSER 1
bec39cab 21005_ACEOF
97bf5e38
MK
21006
21007 ;;
21008 esac
21009fi
21010
21011if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
21012 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21013echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21014 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21016else
21017 cat >conftest.$ac_ext <<_ACEOF
21018/* confdefs.h. */
21019_ACEOF
21020cat confdefs.h >>conftest.$ac_ext
21021cat >>conftest.$ac_ext <<_ACEOF
21022/* end confdefs.h. */
596c9d4b
KB
21023
21024#define _SYSCALL32
21025#include <sys/procfs.h>
bec39cab
AC
21026int
21027main ()
21028{
97bf5e38 21029pstatus_t avar
bec39cab
AC
21030 ;
21031 return 0;
21032}
21033_ACEOF
21034rm -f conftest.$ac_objext
21035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21036 (eval $ac_compile) 2>conftest.er1
21037 ac_status=$?
21038 grep -v '^ *+' conftest.er1 >conftest.err
21039 rm -f conftest.er1
21040 cat conftest.err >&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } &&
b4e70030
JB
21043 { ac_try='test -z "$ac_c_werror_flag"
21044 || test ! -s conftest.err'
bec39cab
AC
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21047 ac_status=$?
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; } &&
21050 { ac_try='test -s conftest.$ac_objext'
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052 (eval $ac_try) 2>&5
21053 ac_status=$?
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; }; then
97bf5e38 21056 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 21057else
bec39cab
AC
21058 echo "$as_me: failed program was:" >&5
21059sed 's/^/| /' conftest.$ac_ext >&5
21060
b4e70030 21061bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 21062
596c9d4b 21063fi
bec39cab 21064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21065fi
21066
97bf5e38 21067 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
21068
21069cat >>confdefs.h <<\_ACEOF
97bf5e38 21070#define HAVE_PSTATUS_T 1
bec39cab 21071_ACEOF
596c9d4b
KB
21072
21073 fi
b4e70030
JB
21074 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21075echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 21076
b4e70030
JB
21077 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21078echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21079 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21081else
bec39cab
AC
21082 cat >conftest.$ac_ext <<_ACEOF
21083/* confdefs.h. */
21084_ACEOF
21085cat confdefs.h >>conftest.$ac_ext
21086cat >>conftest.$ac_ext <<_ACEOF
21087/* end confdefs.h. */
596c9d4b
KB
21088
21089#define _SYSCALL32
21090#include <sys/procfs.h>
bec39cab
AC
21091int
21092main ()
21093{
97bf5e38 21094prrun_t avar
bec39cab
AC
21095 ;
21096 return 0;
21097}
21098_ACEOF
21099rm -f conftest.$ac_objext
21100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101 (eval $ac_compile) 2>conftest.er1
21102 ac_status=$?
21103 grep -v '^ *+' conftest.er1 >conftest.err
21104 rm -f conftest.er1
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
b4e70030
JB
21108 { ac_try='test -z "$ac_c_werror_flag"
21109 || test ! -s conftest.err'
bec39cab
AC
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; } &&
21115 { ac_try='test -s conftest.$ac_objext'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21118 ac_status=$?
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; }; then
97bf5e38 21121 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 21122else
bec39cab
AC
21123 echo "$as_me: failed program was:" >&5
21124sed 's/^/| /' conftest.$ac_ext >&5
21125
b4e70030 21126bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 21127
596c9d4b 21128fi
bec39cab 21129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21130fi
21131
97bf5e38 21132 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
21133
21134cat >>confdefs.h <<\_ACEOF
97bf5e38 21135#define HAVE_PRRUN_T 1
bec39cab 21136_ACEOF
596c9d4b
KB
21137
21138 fi
b4e70030
JB
21139 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21140echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 21141
b4e70030
JB
21142 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21143echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21144 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21146else
bec39cab
AC
21147 cat >conftest.$ac_ext <<_ACEOF
21148/* confdefs.h. */
21149_ACEOF
21150cat confdefs.h >>conftest.$ac_ext
21151cat >>conftest.$ac_ext <<_ACEOF
21152/* end confdefs.h. */
596c9d4b
KB
21153
21154#define _SYSCALL32
21155#include <sys/procfs.h>
bec39cab
AC
21156int
21157main ()
21158{
97bf5e38 21159gregset_t avar
bec39cab
AC
21160 ;
21161 return 0;
21162}
21163_ACEOF
21164rm -f conftest.$ac_objext
21165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21166 (eval $ac_compile) 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
b4e70030
JB
21173 { ac_try='test -z "$ac_c_werror_flag"
21174 || test ! -s conftest.err'
bec39cab
AC
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; } &&
21180 { ac_try='test -s conftest.$ac_objext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
97bf5e38 21186 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 21187else
bec39cab
AC
21188 echo "$as_me: failed program was:" >&5
21189sed 's/^/| /' conftest.$ac_ext >&5
21190
b4e70030 21191bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 21192
596c9d4b 21193fi
bec39cab 21194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21195fi
21196
97bf5e38 21197 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
21198
21199cat >>confdefs.h <<\_ACEOF
97bf5e38 21200#define HAVE_GREGSET_T 1
bec39cab 21201_ACEOF
596c9d4b
KB
21202
21203 fi
b4e70030
JB
21204 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21205echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 21206
b4e70030
JB
21207 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21208echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21209 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 21211else
bec39cab
AC
21212 cat >conftest.$ac_ext <<_ACEOF
21213/* confdefs.h. */
21214_ACEOF
21215cat confdefs.h >>conftest.$ac_ext
21216cat >>conftest.$ac_ext <<_ACEOF
21217/* end confdefs.h. */
97bf5e38
MK
21218
21219#define _SYSCALL32
d84dd0c5 21220#include <sys/procfs.h>
bec39cab
AC
21221int
21222main ()
21223{
97bf5e38 21224fpregset_t avar
bec39cab
AC
21225 ;
21226 return 0;
21227}
21228_ACEOF
21229rm -f conftest.$ac_objext
21230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21231 (eval $ac_compile) 2>conftest.er1
21232 ac_status=$?
21233 grep -v '^ *+' conftest.er1 >conftest.err
21234 rm -f conftest.er1
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
b4e70030
JB
21238 { ac_try='test -z "$ac_c_werror_flag"
21239 || test ! -s conftest.err'
bec39cab
AC
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } &&
21245 { ac_try='test -s conftest.$ac_objext'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
97bf5e38 21251 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 21252else
bec39cab
AC
21253 echo "$as_me: failed program was:" >&5
21254sed 's/^/| /' conftest.$ac_ext >&5
21255
b4e70030 21256bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 21257
d84dd0c5 21258fi
bec39cab 21259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
21260fi
21261
97bf5e38 21262 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
21263
21264cat >>confdefs.h <<\_ACEOF
97bf5e38 21265#define HAVE_FPREGSET_T 1
bec39cab 21266_ACEOF
d84dd0c5 21267
97bf5e38 21268 fi
b4e70030
JB
21269 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21270echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 21271
b4e70030
JB
21272 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21273echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21274 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21276else
bec39cab
AC
21277 cat >conftest.$ac_ext <<_ACEOF
21278/* confdefs.h. */
21279_ACEOF
21280cat confdefs.h >>conftest.$ac_ext
21281cat >>conftest.$ac_ext <<_ACEOF
21282/* end confdefs.h. */
c906108c 21283
97bf5e38
MK
21284#define _SYSCALL32
21285#include <sys/procfs.h>
bec39cab
AC
21286int
21287main ()
21288{
97bf5e38 21289prgregset_t avar
bec39cab
AC
21290 ;
21291 return 0;
21292}
21293_ACEOF
21294rm -f conftest.$ac_objext
21295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21296 (eval $ac_compile) 2>conftest.er1
21297 ac_status=$?
21298 grep -v '^ *+' conftest.er1 >conftest.err
21299 rm -f conftest.er1
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } &&
b4e70030
JB
21303 { ac_try='test -z "$ac_c_werror_flag"
21304 || test ! -s conftest.err'
bec39cab
AC
21305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306 (eval $ac_try) 2>&5
21307 ac_status=$?
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); }; } &&
21310 { ac_try='test -s conftest.$ac_objext'
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
97bf5e38 21316 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 21317else
bec39cab
AC
21318 echo "$as_me: failed program was:" >&5
21319sed 's/^/| /' conftest.$ac_ext >&5
21320
b4e70030 21321bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 21322
c906108c 21323fi
bec39cab 21324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21325fi
21326
97bf5e38 21327 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
21328
21329cat >>confdefs.h <<\_ACEOF
97bf5e38 21330#define HAVE_PRGREGSET_T 1
bec39cab 21331_ACEOF
c906108c 21332
97bf5e38 21333 fi
b4e70030
JB
21334 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21335echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 21336
b4e70030
JB
21337 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21338echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21339 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21341else
bec39cab
AC
21342 cat >conftest.$ac_ext <<_ACEOF
21343/* confdefs.h. */
21344_ACEOF
21345cat confdefs.h >>conftest.$ac_ext
21346cat >>conftest.$ac_ext <<_ACEOF
21347/* end confdefs.h. */
97bf5e38
MK
21348
21349#define _SYSCALL32
21350#include <sys/procfs.h>
bec39cab
AC
21351int
21352main ()
21353{
97bf5e38 21354prfpregset_t avar
bec39cab
AC
21355 ;
21356 return 0;
21357}
21358_ACEOF
21359rm -f conftest.$ac_objext
21360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21361 (eval $ac_compile) 2>conftest.er1
21362 ac_status=$?
21363 grep -v '^ *+' conftest.er1 >conftest.err
21364 rm -f conftest.er1
21365 cat conftest.err >&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } &&
b4e70030
JB
21368 { ac_try='test -z "$ac_c_werror_flag"
21369 || test ! -s conftest.err'
bec39cab
AC
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; } &&
21375 { ac_try='test -s conftest.$ac_objext'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
97bf5e38 21381 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 21382else
bec39cab
AC
21383 echo "$as_me: failed program was:" >&5
21384sed 's/^/| /' conftest.$ac_ext >&5
21385
b4e70030 21386bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 21387
d45fe813 21388fi
bec39cab 21389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21390fi
21391
97bf5e38 21392 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
21393
21394cat >>confdefs.h <<\_ACEOF
97bf5e38 21395#define HAVE_PRFPREGSET_T 1
bec39cab 21396_ACEOF
d45fe813 21397
97bf5e38 21398 fi
b4e70030
JB
21399 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21400echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 21401
b4e70030
JB
21402 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21403echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21404 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21406else
bec39cab
AC
21407 cat >conftest.$ac_ext <<_ACEOF
21408/* confdefs.h. */
21409_ACEOF
21410cat confdefs.h >>conftest.$ac_ext
21411cat >>conftest.$ac_ext <<_ACEOF
21412/* end confdefs.h. */
97bf5e38
MK
21413
21414#define _SYSCALL32
21415#include <sys/procfs.h>
bec39cab
AC
21416int
21417main ()
21418{
97bf5e38 21419prgregset32_t avar
bec39cab
AC
21420 ;
21421 return 0;
21422}
21423_ACEOF
21424rm -f conftest.$ac_objext
21425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21426 (eval $ac_compile) 2>conftest.er1
21427 ac_status=$?
21428 grep -v '^ *+' conftest.er1 >conftest.err
21429 rm -f conftest.er1
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
b4e70030
JB
21433 { ac_try='test -z "$ac_c_werror_flag"
21434 || test ! -s conftest.err'
bec39cab
AC
21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436 (eval $ac_try) 2>&5
21437 ac_status=$?
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; } &&
21440 { ac_try='test -s conftest.$ac_objext'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
97bf5e38 21446 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 21447else
bec39cab
AC
21448 echo "$as_me: failed program was:" >&5
21449sed 's/^/| /' conftest.$ac_ext >&5
21450
b4e70030 21451bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 21452
d45fe813 21453fi
bec39cab 21454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21455fi
21456
97bf5e38 21457 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
21458
21459cat >>confdefs.h <<\_ACEOF
97bf5e38 21460#define HAVE_PRGREGSET32_T 1
bec39cab 21461_ACEOF
d45fe813 21462
97bf5e38 21463 fi
b4e70030
JB
21464 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21465echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 21466
b4e70030
JB
21467 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21468echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21469 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21471else
bec39cab
AC
21472 cat >conftest.$ac_ext <<_ACEOF
21473/* confdefs.h. */
21474_ACEOF
21475cat confdefs.h >>conftest.$ac_ext
21476cat >>conftest.$ac_ext <<_ACEOF
21477/* end confdefs.h. */
97bf5e38
MK
21478
21479#define _SYSCALL32
21480#include <sys/procfs.h>
bec39cab
AC
21481int
21482main ()
21483{
97bf5e38 21484prfpregset32_t avar
bec39cab
AC
21485 ;
21486 return 0;
21487}
21488_ACEOF
21489rm -f conftest.$ac_objext
21490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21491 (eval $ac_compile) 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } &&
b4e70030
JB
21498 { ac_try='test -z "$ac_c_werror_flag"
21499 || test ! -s conftest.err'
bec39cab
AC
21500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; } &&
21505 { ac_try='test -s conftest.$ac_objext'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
97bf5e38 21511 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 21512else
bec39cab
AC
21513 echo "$as_me: failed program was:" >&5
21514sed 's/^/| /' conftest.$ac_ext >&5
21515
b4e70030 21516bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 21517
d45fe813 21518fi
bec39cab 21519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21520fi
21521
97bf5e38 21522 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
21523
21524cat >>confdefs.h <<\_ACEOF
97bf5e38 21525#define HAVE_PRFPREGSET32_T 1
bec39cab 21526_ACEOF
d45fe813 21527
97bf5e38 21528 fi
b4e70030
JB
21529 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21530echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 21531
b4e70030
JB
21532 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21533echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21534 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21536else
bec39cab
AC
21537 cat >conftest.$ac_ext <<_ACEOF
21538/* confdefs.h. */
21539_ACEOF
21540cat confdefs.h >>conftest.$ac_ext
21541cat >>conftest.$ac_ext <<_ACEOF
21542/* end confdefs.h. */
97bf5e38 21543
d45fe813 21544#define _SYSCALL32
97bf5e38 21545#include <sys/procfs.h>
bec39cab
AC
21546int
21547main ()
21548{
97bf5e38 21549lwpid_t avar
bec39cab
AC
21550 ;
21551 return 0;
21552}
21553_ACEOF
21554rm -f conftest.$ac_objext
21555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21556 (eval $ac_compile) 2>conftest.er1
21557 ac_status=$?
21558 grep -v '^ *+' conftest.er1 >conftest.err
21559 rm -f conftest.er1
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } &&
b4e70030
JB
21563 { ac_try='test -z "$ac_c_werror_flag"
21564 || test ! -s conftest.err'
bec39cab
AC
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21567 ac_status=$?
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; } &&
21570 { ac_try='test -s conftest.$ac_objext'
21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572 (eval $ac_try) 2>&5
21573 ac_status=$?
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; }; then
97bf5e38 21576 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 21577else
bec39cab
AC
21578 echo "$as_me: failed program was:" >&5
21579sed 's/^/| /' conftest.$ac_ext >&5
21580
b4e70030 21581bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 21582
d45fe813 21583fi
bec39cab 21584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21585fi
21586
97bf5e38 21587 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
21588
21589cat >>confdefs.h <<\_ACEOF
97bf5e38 21590#define HAVE_LWPID_T 1
bec39cab 21591_ACEOF
d45fe813 21592
97bf5e38 21593 fi
b4e70030
JB
21594 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21595echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 21596
b4e70030
JB
21597 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21598echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21599 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21601else
bec39cab
AC
21602 cat >conftest.$ac_ext <<_ACEOF
21603/* confdefs.h. */
21604_ACEOF
21605cat confdefs.h >>conftest.$ac_ext
21606cat >>conftest.$ac_ext <<_ACEOF
21607/* end confdefs.h. */
c906108c 21608
97bf5e38
MK
21609#define _SYSCALL32
21610#include <sys/procfs.h>
bec39cab
AC
21611int
21612main ()
21613{
97bf5e38 21614psaddr_t avar
bec39cab
AC
21615 ;
21616 return 0;
21617}
21618_ACEOF
21619rm -f conftest.$ac_objext
21620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21621 (eval $ac_compile) 2>conftest.er1
21622 ac_status=$?
21623 grep -v '^ *+' conftest.er1 >conftest.err
21624 rm -f conftest.er1
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } &&
b4e70030
JB
21628 { ac_try='test -z "$ac_c_werror_flag"
21629 || test ! -s conftest.err'
bec39cab
AC
21630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21631 (eval $ac_try) 2>&5
21632 ac_status=$?
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); }; } &&
21635 { ac_try='test -s conftest.$ac_objext'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21638 ac_status=$?
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; }; then
97bf5e38 21641 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 21642else
bec39cab
AC
21643 echo "$as_me: failed program was:" >&5
21644sed 's/^/| /' conftest.$ac_ext >&5
21645
b4e70030 21646bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 21647
c906108c 21648fi
bec39cab 21649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21650fi
21651
97bf5e38 21652 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
21653
21654cat >>confdefs.h <<\_ACEOF
97bf5e38 21655#define HAVE_PSADDR_T 1
bec39cab 21656_ACEOF
c906108c 21657
97bf5e38 21658 fi
b4e70030
JB
21659 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21660echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 21661
b4e70030
JB
21662 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
21663echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21664 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21666else
bec39cab
AC
21667 cat >conftest.$ac_ext <<_ACEOF
21668/* confdefs.h. */
21669_ACEOF
21670cat confdefs.h >>conftest.$ac_ext
21671cat >>conftest.$ac_ext <<_ACEOF
21672/* end confdefs.h. */
c906108c 21673
97bf5e38
MK
21674#define _SYSCALL32
21675#include <sys/procfs.h>
bec39cab
AC
21676int
21677main ()
21678{
97bf5e38 21679prsysent_t avar
bec39cab
AC
21680 ;
21681 return 0;
21682}
21683_ACEOF
21684rm -f conftest.$ac_objext
21685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21686 (eval $ac_compile) 2>conftest.er1
21687 ac_status=$?
21688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } &&
b4e70030
JB
21693 { ac_try='test -z "$ac_c_werror_flag"
21694 || test ! -s conftest.err'
bec39cab
AC
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; } &&
21700 { ac_try='test -s conftest.$ac_objext'
21701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21703 ac_status=$?
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; }; then
97bf5e38 21706 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 21707else
bec39cab
AC
21708 echo "$as_me: failed program was:" >&5
21709sed 's/^/| /' conftest.$ac_ext >&5
21710
b4e70030 21711bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 21712
c906108c 21713fi
bec39cab 21714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21715fi
21716
97bf5e38 21717 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
21718
21719cat >>confdefs.h <<\_ACEOF
97bf5e38 21720#define HAVE_PRSYSENT_T 1
bec39cab 21721_ACEOF
c906108c 21722
97bf5e38 21723 fi
b4e70030
JB
21724 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
21725echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 21726
b4e70030
JB
21727 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
21728echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21729 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21731else
bec39cab
AC
21732 cat >conftest.$ac_ext <<_ACEOF
21733/* confdefs.h. */
21734_ACEOF
21735cat confdefs.h >>conftest.$ac_ext
21736cat >>conftest.$ac_ext <<_ACEOF
21737/* end confdefs.h. */
c906108c 21738
97bf5e38
MK
21739#define _SYSCALL32
21740#include <sys/procfs.h>
bec39cab
AC
21741int
21742main ()
21743{
97bf5e38 21744pr_sigset_t avar
bec39cab
AC
21745 ;
21746 return 0;
21747}
21748_ACEOF
21749rm -f conftest.$ac_objext
21750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751 (eval $ac_compile) 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
b4e70030
JB
21758 { ac_try='test -z "$ac_c_werror_flag"
21759 || test ! -s conftest.err'
bec39cab
AC
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try='test -s conftest.$ac_objext'
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
97bf5e38 21771 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 21772else
bec39cab
AC
21773 echo "$as_me: failed program was:" >&5
21774sed 's/^/| /' conftest.$ac_ext >&5
21775
b4e70030 21776bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 21777
c906108c 21778fi
bec39cab 21779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21780fi
21781
97bf5e38 21782 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
21783
21784cat >>confdefs.h <<\_ACEOF
97bf5e38 21785#define HAVE_PR_SIGSET_T 1
bec39cab 21786_ACEOF
c906108c 21787
97bf5e38 21788 fi
b4e70030
JB
21789 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
21790echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 21791
b4e70030
JB
21792 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
21793echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21794 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21796else
bec39cab
AC
21797 cat >conftest.$ac_ext <<_ACEOF
21798/* confdefs.h. */
21799_ACEOF
21800cat confdefs.h >>conftest.$ac_ext
21801cat >>conftest.$ac_ext <<_ACEOF
21802/* end confdefs.h. */
c906108c 21803
97bf5e38
MK
21804#define _SYSCALL32
21805#include <sys/procfs.h>
bec39cab
AC
21806int
21807main ()
21808{
97bf5e38 21809pr_sigaction64_t avar
bec39cab
AC
21810 ;
21811 return 0;
21812}
21813_ACEOF
21814rm -f conftest.$ac_objext
21815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21816 (eval $ac_compile) 2>conftest.er1
21817 ac_status=$?
21818 grep -v '^ *+' conftest.er1 >conftest.err
21819 rm -f conftest.er1
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } &&
b4e70030
JB
21823 { ac_try='test -z "$ac_c_werror_flag"
21824 || test ! -s conftest.err'
bec39cab
AC
21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; } &&
21830 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
97bf5e38 21836 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 21837else
bec39cab
AC
21838 echo "$as_me: failed program was:" >&5
21839sed 's/^/| /' conftest.$ac_ext >&5
21840
b4e70030 21841bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 21842
c906108c 21843fi
bec39cab 21844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21845fi
21846
97bf5e38 21847 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
21848
21849cat >>confdefs.h <<\_ACEOF
97bf5e38 21850#define HAVE_PR_SIGACTION64_T 1
bec39cab 21851_ACEOF
c906108c 21852
97bf5e38 21853 fi
b4e70030
JB
21854 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
21855echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 21856
b4e70030
JB
21857 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
21858echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21859 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21861else
bec39cab
AC
21862 cat >conftest.$ac_ext <<_ACEOF
21863/* confdefs.h. */
21864_ACEOF
21865cat confdefs.h >>conftest.$ac_ext
21866cat >>conftest.$ac_ext <<_ACEOF
21867/* end confdefs.h. */
97bf5e38
MK
21868
21869#define _SYSCALL32
21870#include <sys/procfs.h>
bec39cab
AC
21871int
21872main ()
21873{
97bf5e38 21874pr_siginfo64_t avar
bec39cab
AC
21875 ;
21876 return 0;
21877}
21878_ACEOF
21879rm -f conftest.$ac_objext
21880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21881 (eval $ac_compile) 2>conftest.er1
21882 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } &&
b4e70030
JB
21888 { ac_try='test -z "$ac_c_werror_flag"
21889 || test ! -s conftest.err'
bec39cab
AC
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; } &&
21895 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
97bf5e38
MK
21901 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
21902else
bec39cab
AC
21903 echo "$as_me: failed program was:" >&5
21904sed 's/^/| /' conftest.$ac_ext >&5
21905
b4e70030 21906bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 21907
97bf5e38 21908fi
bec39cab 21909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21910fi
c906108c 21911
97bf5e38 21912 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
21913
21914cat >>confdefs.h <<\_ACEOF
97bf5e38 21915#define HAVE_PR_SIGINFO64_T 1
bec39cab 21916_ACEOF
c906108c 21917
97bf5e38 21918 fi
b4e70030
JB
21919 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
21920echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
21921
21922
97bf5e38
MK
21923
21924
21925
97bf5e38 21926 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
21927 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
21928echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
21929 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21931else
21932 if test "$cross_compiling" = yes; then
97bf5e38 21933 gdb_cv_prfpregset_t_broken=yes
c906108c 21934else
bec39cab
AC
21935 cat >conftest.$ac_ext <<_ACEOF
21936/* confdefs.h. */
21937_ACEOF
21938cat confdefs.h >>conftest.$ac_ext
21939cat >>conftest.$ac_ext <<_ACEOF
21940/* end confdefs.h. */
97bf5e38
MK
21941#include <sys/procfs.h>
21942 int main ()
21943 {
21944 if (sizeof (prfpregset_t) == sizeof (void *))
21945 return 1;
21946 return 0;
21947 }
bec39cab
AC
21948_ACEOF
21949rm -f conftest$ac_exeext
21950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21951 (eval $ac_link) 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; }; then
97bf5e38 21960 gdb_cv_prfpregset_t_broken=no
c906108c 21961else
bec39cab
AC
21962 echo "$as_me: program exited with status $ac_status" >&5
21963echo "$as_me: failed program was:" >&5
21964sed 's/^/| /' conftest.$ac_ext >&5
21965
21966( exit $ac_status )
21967gdb_cv_prfpregset_t_broken=yes
c906108c 21968fi
b4e70030 21969rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 21970fi
c906108c
SS
21971fi
21972
b4e70030
JB
21973 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
21974echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 21975 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
21976
21977cat >>confdefs.h <<\_ACEOF
97bf5e38 21978#define PRFPREGSET_T_BROKEN 1
bec39cab 21979_ACEOF
c906108c 21980
97bf5e38
MK
21981 fi
21982 fi
c906108c 21983
bec39cab 21984
b4e70030
JB
21985 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
21986echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21987 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21989else
bec39cab
AC
21990 cat >conftest.$ac_ext <<_ACEOF
21991/* confdefs.h. */
21992_ACEOF
21993cat confdefs.h >>conftest.$ac_ext
21994cat >>conftest.$ac_ext <<_ACEOF
21995/* end confdefs.h. */
97bf5e38
MK
21996#include <unistd.h>
21997#include <sys/types.h>
21998#include <sys/procfs.h>
21999
bec39cab
AC
22000int
22001main ()
22002{
97bf5e38
MK
22003
22004 int dummy;;
22005 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
22006
22007 ;
22008 return 0;
22009}
22010_ACEOF
22011rm -f conftest.$ac_objext
22012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22013 (eval $ac_compile) 2>conftest.er1
22014 ac_status=$?
22015 grep -v '^ *+' conftest.er1 >conftest.err
22016 rm -f conftest.er1
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } &&
b4e70030
JB
22020 { ac_try='test -z "$ac_c_werror_flag"
22021 || test ! -s conftest.err'
bec39cab
AC
22022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22024 ac_status=$?
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; } &&
22027 { ac_try='test -s conftest.$ac_objext'
22028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; }; then
97bf5e38 22033 gdb_cv_have_procfs_piocset=yes
c906108c 22034else
bec39cab
AC
22035 echo "$as_me: failed program was:" >&5
22036sed 's/^/| /' conftest.$ac_ext >&5
22037
b4e70030 22038gdb_cv_have_procfs_piocset=no
c906108c 22039fi
bec39cab 22040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22041fi
97bf5e38 22042
b4e70030
JB
22043 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22044echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 22045 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
22046
22047cat >>confdefs.h <<\_ACEOF
97bf5e38 22048#define HAVE_PROCFS_PIOCSET 1
bec39cab 22049_ACEOF
97bf5e38
MK
22050
22051 fi
c906108c 22052fi
c906108c 22053
97bf5e38 22054if test ${host} = ${target} ; then
bec39cab 22055
b4e70030
JB
22056 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22057echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
22058 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22060else
22061 cat >conftest.$ac_ext <<_ACEOF
22062/* confdefs.h. */
22063_ACEOF
22064cat confdefs.h >>conftest.$ac_ext
22065cat >>conftest.$ac_ext <<_ACEOF
22066/* end confdefs.h. */
97bf5e38 22067#include <link.h>
bec39cab
AC
22068int
22069main ()
22070{
97bf5e38 22071struct link_map lm; (void) lm.l_addr;
bec39cab
AC
22072 ;
22073 return 0;
22074}
22075_ACEOF
22076rm -f conftest.$ac_objext
22077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22078 (eval $ac_compile) 2>conftest.er1
22079 ac_status=$?
22080 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } &&
b4e70030
JB
22085 { ac_try='test -z "$ac_c_werror_flag"
22086 || test ! -s conftest.err'
bec39cab
AC
22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22089 ac_status=$?
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; } &&
22092 { ac_try='test -s conftest.$ac_objext'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; }; then
97bf5e38 22098 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 22099else
bec39cab
AC
22100 echo "$as_me: failed program was:" >&5
22101sed 's/^/| /' conftest.$ac_ext >&5
22102
b4e70030 22103gdb_cv_have_struct_link_map_with_l_members=no
c906108c 22104fi
bec39cab 22105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22106fi
22107
b4e70030
JB
22108 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22109echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 22110 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
22111
22112cat >>confdefs.h <<\_ACEOF
97bf5e38 22113#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 22114_ACEOF
97bf5e38
MK
22115
22116 fi
22117
bec39cab 22118
b4e70030
JB
22119 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22120echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
22121 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22123else
bec39cab
AC
22124 cat >conftest.$ac_ext <<_ACEOF
22125/* confdefs.h. */
22126_ACEOF
22127cat confdefs.h >>conftest.$ac_ext
22128cat >>conftest.$ac_ext <<_ACEOF
22129/* end confdefs.h. */
97bf5e38
MK
22130#include <sys/types.h>
22131#include <link.h>
bec39cab
AC
22132int
22133main ()
22134{
97bf5e38 22135struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
22136 ;
22137 return 0;
22138}
22139_ACEOF
22140rm -f conftest.$ac_objext
22141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22142 (eval $ac_compile) 2>conftest.er1
22143 ac_status=$?
22144 grep -v '^ *+' conftest.er1 >conftest.err
22145 rm -f conftest.er1
22146 cat conftest.err >&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } &&
b4e70030
JB
22149 { ac_try='test -z "$ac_c_werror_flag"
22150 || test ! -s conftest.err'
bec39cab
AC
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22153 ac_status=$?
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; } &&
22156 { ac_try='test -s conftest.$ac_objext'
22157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158 (eval $ac_try) 2>&5
22159 ac_status=$?
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
97bf5e38
MK
22162 gdb_cv_have_struct_link_map_with_lm_members=yes
22163else
bec39cab
AC
22164 echo "$as_me: failed program was:" >&5
22165sed 's/^/| /' conftest.$ac_ext >&5
22166
b4e70030 22167gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 22168fi
bec39cab 22169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22170fi
c906108c 22171
b4e70030
JB
22172 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22173echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 22174 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
22175
22176cat >>confdefs.h <<\_ACEOF
97bf5e38 22177#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 22178_ACEOF
97bf5e38
MK
22179
22180 fi
22181
bec39cab 22182
b4e70030
JB
22183 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22184echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
22185 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22187else
bec39cab
AC
22188 cat >conftest.$ac_ext <<_ACEOF
22189/* confdefs.h. */
22190_ACEOF
22191cat confdefs.h >>conftest.$ac_ext
22192cat >>conftest.$ac_ext <<_ACEOF
22193/* end confdefs.h. */
97bf5e38
MK
22194#include <sys/types.h>
22195#ifdef HAVE_NLIST_H
22196#include <nlist.h>
22197#endif
22198#include <link.h>
bec39cab
AC
22199int
22200main ()
22201{
97bf5e38 22202struct so_map lm; (void) lm.som_addr;
bec39cab
AC
22203 ;
22204 return 0;
22205}
22206_ACEOF
22207rm -f conftest.$ac_objext
22208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22209 (eval $ac_compile) 2>conftest.er1
22210 ac_status=$?
22211 grep -v '^ *+' conftest.er1 >conftest.err
22212 rm -f conftest.er1
22213 cat conftest.err >&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } &&
b4e70030
JB
22216 { ac_try='test -z "$ac_c_werror_flag"
22217 || test ! -s conftest.err'
bec39cab
AC
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; } &&
22223 { ac_try='test -s conftest.$ac_objext'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22226 ac_status=$?
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; }; then
97bf5e38
MK
22229 gdb_cv_have_struct_so_map_with_som_members=yes
22230else
bec39cab
AC
22231 echo "$as_me: failed program was:" >&5
22232sed 's/^/| /' conftest.$ac_ext >&5
22233
b4e70030 22234gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 22235fi
bec39cab 22236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22237fi
c906108c 22238
b4e70030
JB
22239 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22240echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 22241 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
22242
22243cat >>confdefs.h <<\_ACEOF
97bf5e38 22244#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 22245_ACEOF
c906108c 22246
97bf5e38 22247 fi
c906108c 22248
bec39cab 22249
b4e70030
JB
22250 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22251echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
22252 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22254else
bec39cab
AC
22255 cat >conftest.$ac_ext <<_ACEOF
22256/* confdefs.h. */
22257_ACEOF
22258cat confdefs.h >>conftest.$ac_ext
22259cat >>conftest.$ac_ext <<_ACEOF
22260/* end confdefs.h. */
97bf5e38
MK
22261#define _SYSCALL32
22262#include <sys/link.h>
bec39cab
AC
22263int
22264main ()
22265{
97bf5e38 22266struct link_map32 l;
bec39cab
AC
22267 ;
22268 return 0;
22269}
22270_ACEOF
22271rm -f conftest.$ac_objext
22272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22273 (eval $ac_compile) 2>conftest.er1
22274 ac_status=$?
22275 grep -v '^ *+' conftest.er1 >conftest.err
22276 rm -f conftest.er1
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } &&
b4e70030
JB
22280 { ac_try='test -z "$ac_c_werror_flag"
22281 || test ! -s conftest.err'
bec39cab
AC
22282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
22284 ac_status=$?
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; } &&
22287 { ac_try='test -s conftest.$ac_objext'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; }; then
97bf5e38
MK
22293 gdb_cv_have_struct_link_map32=yes
22294else
bec39cab
AC
22295 echo "$as_me: failed program was:" >&5
22296sed 's/^/| /' conftest.$ac_ext >&5
22297
b4e70030 22298gdb_cv_have_struct_link_map32=no
97bf5e38 22299fi
bec39cab 22300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22301fi
c906108c 22302
b4e70030
JB
22303 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22304echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 22305 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
22306
22307cat >>confdefs.h <<\_ACEOF
97bf5e38 22308#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 22309_ACEOF
c906108c 22310
60ca704f
SE
22311
22312cat >>confdefs.h <<\_ACEOF
97bf5e38 22313#define _SYSCALL32 1
bec39cab 22314_ACEOF
c906108c 22315
97bf5e38
MK
22316 fi
22317fi
c906108c 22318
bc8bcb4b 22319# Check if the compiler supports the `long long' type.
c906108c 22320
b4e70030
JB
22321echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22322echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
22323if test "${gdb_cv_c_long_long+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22325else
bec39cab
AC
22326 cat >conftest.$ac_ext <<_ACEOF
22327/* confdefs.h. */
22328_ACEOF
22329cat confdefs.h >>conftest.$ac_ext
22330cat >>conftest.$ac_ext <<_ACEOF
22331/* end confdefs.h. */
bc8bcb4b 22332extern long long foo;
bec39cab
AC
22333int
22334main ()
22335{
bc8bcb4b 22336switch (foo & 2) { case 0: return 1; }
bec39cab
AC
22337 ;
22338 return 0;
22339}
22340_ACEOF
22341rm -f conftest.$ac_objext
22342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22343 (eval $ac_compile) 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
b4e70030
JB
22350 { ac_try='test -z "$ac_c_werror_flag"
22351 || test ! -s conftest.err'
bec39cab
AC
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22354 ac_status=$?
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; } &&
22357 { ac_try='test -s conftest.$ac_objext'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22360 ac_status=$?
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; }; then
97bf5e38
MK
22363 gdb_cv_c_long_long=yes
22364else
bec39cab
AC
22365 echo "$as_me: failed program was:" >&5
22366sed 's/^/| /' conftest.$ac_ext >&5
22367
b4e70030 22368gdb_cv_c_long_long=no
97bf5e38 22369fi
bec39cab 22370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22371fi
b4e70030
JB
22372echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22373echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 22374if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
22375
22376cat >>confdefs.h <<\_ACEOF
97bf5e38 22377#define CC_HAS_LONG_LONG 1
bec39cab 22378_ACEOF
97bf5e38
MK
22379
22380fi
22381
bc8bcb4b 22382# Check if the compiler and runtime support printing long longs.
97bf5e38 22383
b4e70030
JB
22384echo "$as_me:$LINENO: checking for long long support in printf" >&5
22385echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
22386if test "${gdb_cv_printf_has_long_long+set}" = set; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22388else
22389 if test "$cross_compiling" = yes; then
22390 gdb_cv_printf_has_long_long=no
22391else
bec39cab
AC
22392 cat >conftest.$ac_ext <<_ACEOF
22393/* confdefs.h. */
22394_ACEOF
22395cat confdefs.h >>conftest.$ac_ext
22396cat >>conftest.$ac_ext <<_ACEOF
22397/* end confdefs.h. */
bc8bcb4b
MK
22398$ac_includes_default
22399int
22400main ()
22401{
22402char buf[32];
97bf5e38
MK
22403 long long l = 0;
22404 l = (l << 16) + 0x0123;
22405 l = (l << 16) + 0x4567;
22406 l = (l << 16) + 0x89ab;
22407 l = (l << 16) + 0xcdef;
22408 sprintf (buf, "0x%016llx", l);
22409 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
22410 ;
22411 return 0;
c906108c 22412}
bec39cab
AC
22413_ACEOF
22414rm -f conftest$ac_exeext
22415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22416 (eval $ac_link) 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
97bf5e38
MK
22425 gdb_cv_printf_has_long_long=yes
22426else
bec39cab
AC
22427 echo "$as_me: program exited with status $ac_status" >&5
22428echo "$as_me: failed program was:" >&5
22429sed 's/^/| /' conftest.$ac_ext >&5
22430
22431( exit $ac_status )
22432gdb_cv_printf_has_long_long=no
97bf5e38 22433fi
b4e70030 22434rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 22435fi
97bf5e38 22436fi
b4e70030
JB
22437echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22438echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 22439if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
22440
22441cat >>confdefs.h <<\_ACEOF
97bf5e38 22442#define PRINTF_HAS_LONG_LONG 1
bec39cab 22443_ACEOF
97bf5e38
MK
22444
22445fi
97bf5e38 22446
1a619819
LM
22447# Check if the compiler and runtime support printing decfloats.
22448
22449echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
22450echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
22451if test "${gdb_cv_printf_has_decfloat+set}" = set; then
22452 echo $ECHO_N "(cached) $ECHO_C" >&6
22453else
22454 if test "$cross_compiling" = yes; then
22455 gdb_cv_printf_has_decfloat=no
22456else
22457 cat >conftest.$ac_ext <<_ACEOF
22458/* confdefs.h. */
22459_ACEOF
22460cat confdefs.h >>conftest.$ac_ext
22461cat >>conftest.$ac_ext <<_ACEOF
22462/* end confdefs.h. */
22463$ac_includes_default
22464int
22465main ()
22466{
22467char buf[64];
22468 _Decimal32 d32 = 1.2345df;
22469 _Decimal64 d64 = 1.2345dd;
22470 _Decimal128 d128 = 1.2345dl;
22471 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
22472 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
22473 ;
22474 return 0;
22475}
22476_ACEOF
22477rm -f conftest$ac_exeext
22478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22479 (eval $ac_link) 2>&5
22480 ac_status=$?
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22484 (eval $ac_try) 2>&5
22485 ac_status=$?
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); }; }; then
22488 gdb_cv_printf_has_decfloat=yes
22489else
22490 echo "$as_me: program exited with status $ac_status" >&5
22491echo "$as_me: failed program was:" >&5
22492sed 's/^/| /' conftest.$ac_ext >&5
22493
22494( exit $ac_status )
22495gdb_cv_printf_has_decfloat=no
22496fi
22497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22498fi
22499fi
22500echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
22501echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
22502if test $gdb_cv_printf_has_decfloat = yes; then
22503
22504cat >>confdefs.h <<\_ACEOF
22505#define PRINTF_HAS_DECFLOAT 1
22506_ACEOF
22507
22508fi
22509
bc8bcb4b
MK
22510# Check if the compiler supports the `long double' type. We can't use
22511# AC_C_LONG_DOUBLE because that one does additional checks on the
22512# constants defined in <float.h> that fail on some systems,
22513# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 22514
b4e70030
JB
22515echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22516echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 22517if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 22518 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22519else
bec39cab
AC
22520 cat >conftest.$ac_ext <<_ACEOF
22521/* confdefs.h. */
22522_ACEOF
22523cat confdefs.h >>conftest.$ac_ext
22524cat >>conftest.$ac_ext <<_ACEOF
22525/* end confdefs.h. */
97bf5e38 22526long double foo;
bec39cab
AC
22527_ACEOF
22528rm -f conftest.$ac_objext
22529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22530 (eval $ac_compile) 2>conftest.er1
22531 ac_status=$?
22532 grep -v '^ *+' conftest.er1 >conftest.err
22533 rm -f conftest.er1
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } &&
b4e70030
JB
22537 { ac_try='test -z "$ac_c_werror_flag"
22538 || test ! -s conftest.err'
bec39cab
AC
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; } &&
22544 { ac_try='test -s conftest.$ac_objext'
22545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546 (eval $ac_try) 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
bc8bcb4b 22550 gdb_cv_c_long_double=yes
97bf5e38 22551else
bec39cab
AC
22552 echo "$as_me: failed program was:" >&5
22553sed 's/^/| /' conftest.$ac_ext >&5
22554
b4e70030 22555gdb_cv_c_long_double=no
97bf5e38 22556fi
bec39cab 22557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22558fi
b4e70030
JB
22559echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22560echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 22561if test $gdb_cv_c_long_double = yes; then
c906108c 22562
bc8bcb4b 22563cat >>confdefs.h <<\_ACEOF
97bf5e38 22564#define HAVE_LONG_DOUBLE 1
bec39cab 22565_ACEOF
97bf5e38
MK
22566
22567fi
22568
bc8bcb4b 22569# Check if the compiler and runtime support printing long doubles.
97bf5e38 22570
b4e70030
JB
22571echo "$as_me:$LINENO: checking for long double support in printf" >&5
22572echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
22573if test "${gdb_cv_printf_has_long_double+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22575else
22576 if test "$cross_compiling" = yes; then
22577 gdb_cv_printf_has_long_double=no
22578else
bec39cab
AC
22579 cat >conftest.$ac_ext <<_ACEOF
22580/* confdefs.h. */
22581_ACEOF
22582cat confdefs.h >>conftest.$ac_ext
22583cat >>conftest.$ac_ext <<_ACEOF
22584/* end confdefs.h. */
bc8bcb4b
MK
22585$ac_includes_default
22586int
22587main ()
22588{
22589char buf[16];
97bf5e38
MK
22590 long double f = 3.141592653;
22591 sprintf (buf, "%Lg", f);
22592 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
22593 ;
22594 return 0;
97bf5e38 22595}
bec39cab
AC
22596_ACEOF
22597rm -f conftest$ac_exeext
22598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }; then
97bf5e38 22608 gdb_cv_printf_has_long_double=yes
c906108c 22609else
bec39cab
AC
22610 echo "$as_me: program exited with status $ac_status" >&5
22611echo "$as_me: failed program was:" >&5
22612sed 's/^/| /' conftest.$ac_ext >&5
22613
22614( exit $ac_status )
22615gdb_cv_printf_has_long_double=no
c906108c 22616fi
b4e70030 22617rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 22618fi
c906108c 22619fi
b4e70030
JB
22620echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22621echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 22622if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
22623
22624cat >>confdefs.h <<\_ACEOF
97bf5e38 22625#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 22626_ACEOF
97bf5e38
MK
22627
22628fi
97bf5e38 22629
bc8bcb4b 22630# Check if the compiler and runtime support scanning long doubles.
97bf5e38 22631
b4e70030
JB
22632echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22633echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
22634if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22636else
22637 if test "$cross_compiling" = yes; then
22638 gdb_cv_scanf_has_long_double=no
22639else
bec39cab
AC
22640 cat >conftest.$ac_ext <<_ACEOF
22641/* confdefs.h. */
22642_ACEOF
22643cat confdefs.h >>conftest.$ac_ext
22644cat >>conftest.$ac_ext <<_ACEOF
22645/* end confdefs.h. */
bc8bcb4b
MK
22646#include <stdio.h>
22647int
22648main ()
22649{
22650char *buf = "3.141592653";
97bf5e38
MK
22651 long double f = 0;
22652 sscanf (buf, "%Lg", &f);
22653 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
22654 ;
22655 return 0;
97bf5e38 22656}
bec39cab
AC
22657_ACEOF
22658rm -f conftest$ac_exeext
22659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22660 (eval $ac_link) 2>&5
22661 ac_status=$?
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22666 ac_status=$?
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
97bf5e38
MK
22669 gdb_cv_scanf_has_long_double=yes
22670else
bec39cab
AC
22671 echo "$as_me: program exited with status $ac_status" >&5
22672echo "$as_me: failed program was:" >&5
22673sed 's/^/| /' conftest.$ac_ext >&5
22674
22675( exit $ac_status )
22676gdb_cv_scanf_has_long_double=no
97bf5e38 22677fi
b4e70030 22678rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 22679fi
c906108c 22680fi
b4e70030
JB
22681echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
22682echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 22683if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
22684
22685cat >>confdefs.h <<\_ACEOF
97bf5e38 22686#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 22687_ACEOF
97bf5e38
MK
22688
22689fi
c906108c 22690
438013df
AO
22691case ${host_os} in
22692aix*)
b4e70030
JB
22693 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
22694echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
22695if test "${gdb_cv_bigtoc+set}" = set; then
22696 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 22697else
bec39cab 22698
438013df
AO
22699 SAVE_LDFLAGS=$LDFLAGS
22700
22701 case $GCC in
22702 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
22703 *) gdb_cv_bigtoc=-bbigtoc ;;
22704 esac
22705
22706 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
22707 cat >conftest.$ac_ext <<_ACEOF
22708/* confdefs.h. */
22709_ACEOF
22710cat confdefs.h >>conftest.$ac_ext
22711cat >>conftest.$ac_ext <<_ACEOF
22712/* end confdefs.h. */
438013df 22713
bec39cab
AC
22714int
22715main ()
22716{
438013df 22717int i;
bec39cab
AC
22718 ;
22719 return 0;
22720}
22721_ACEOF
22722rm -f conftest.$ac_objext conftest$ac_exeext
22723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22724 (eval $ac_link) 2>conftest.er1
22725 ac_status=$?
22726 grep -v '^ *+' conftest.er1 >conftest.err
22727 rm -f conftest.er1
22728 cat conftest.err >&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } &&
b4e70030
JB
22731 { ac_try='test -z "$ac_c_werror_flag"
22732 || test ! -s conftest.err'
bec39cab
AC
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22735 ac_status=$?
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; } &&
22738 { ac_try='test -s conftest$ac_exeext'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22741 ac_status=$?
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
438013df
AO
22744 :
22745else
bec39cab
AC
22746 echo "$as_me: failed program was:" >&5
22747sed 's/^/| /' conftest.$ac_ext >&5
22748
b4e70030 22749gdb_cv_bigtoc=
438013df 22750fi
bec39cab
AC
22751rm -f conftest.err conftest.$ac_objext \
22752 conftest$ac_exeext conftest.$ac_ext
ec76baa5 22753 LDFLAGS="${SAVE_LDFLAGS}"
438013df 22754
bec39cab 22755fi
b4e70030
JB
22756echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
22757echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
22758 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
22759 ;;
22760esac
22761
c906108c
SS
22762
22763
22764if test ${build} = ${host} -a ${host} = ${target} ; then
22765 case ${host_os} in
22766 hpux*)
b4e70030
JB
22767 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
22768echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
22769 if test -f /usr/include/dce/cma_config.h ; then
22770 if test "$GCC" = "yes" ; then
b4e70030
JB
22771 echo "$as_me:$LINENO: result: yes" >&5
22772echo "${ECHO_T}yes" >&6
60ca704f
SE
22773
22774cat >>confdefs.h <<\_ACEOF
c906108c 22775#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 22776_ACEOF
c906108c 22777
3483b318 22778 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
22779 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
22780 else
b4e70030
JB
22781 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
22782echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
22783 fi
22784 else
b4e70030
JB
22785 echo "$as_me:$LINENO: result: no" >&5
22786echo "${ECHO_T}no" >&6
c906108c
SS
22787 fi
22788 ;;
22789 solaris*)
d92419e5
JB
22790 # See if thread_db library is around for Solaris thread debugging.
22791 # Note that we must explicitly test for version 1 of the library
22792 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
22793 # the same API.
b4e70030
JB
22794 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
22795echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 22796 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
22797 echo "$as_me:$LINENO: result: yes" >&5
22798echo "${ECHO_T}yes" >&6
60ca704f
SE
22799
22800cat >>confdefs.h <<\_ACEOF
c906108c 22801#define HAVE_THREAD_DB_LIB 1
bec39cab 22802_ACEOF
c906108c 22803
3483b318 22804 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 22805 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 22806
b4e70030
JB
22807echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22808echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
22809if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22811else
bec39cab 22812 ac_check_lib_save_LIBS=$LIBS
c906108c 22813LIBS="-ldl $LIBS"
bec39cab
AC
22814cat >conftest.$ac_ext <<_ACEOF
22815/* confdefs.h. */
22816_ACEOF
22817cat confdefs.h >>conftest.$ac_ext
22818cat >>conftest.$ac_ext <<_ACEOF
22819/* end confdefs.h. */
22820
b4e70030 22821/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22822#ifdef __cplusplus
22823extern "C"
22824#endif
b4e70030
JB
22825/* We use char because int might match the return type of a gcc2
22826 builtin and then its argument prototype would still apply. */
bec39cab
AC
22827char dlopen ();
22828int
22829main ()
22830{
b4e70030 22831dlopen ();
bec39cab
AC
22832 ;
22833 return 0;
22834}
22835_ACEOF
22836rm -f conftest.$ac_objext conftest$ac_exeext
22837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22838 (eval $ac_link) 2>conftest.er1
22839 ac_status=$?
22840 grep -v '^ *+' conftest.er1 >conftest.err
22841 rm -f conftest.er1
22842 cat conftest.err >&5
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } &&
b4e70030
JB
22845 { ac_try='test -z "$ac_c_werror_flag"
22846 || test ! -s conftest.err'
bec39cab
AC
22847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848 (eval $ac_try) 2>&5
22849 ac_status=$?
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); }; } &&
22852 { ac_try='test -s conftest$ac_exeext'
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; }; then
22858 ac_cv_lib_dl_dlopen=yes
22859else
22860 echo "$as_me: failed program was:" >&5
22861sed 's/^/| /' conftest.$ac_ext >&5
22862
b4e70030 22863ac_cv_lib_dl_dlopen=no
bec39cab
AC
22864fi
22865rm -f conftest.err conftest.$ac_objext \
22866 conftest$ac_exeext conftest.$ac_ext
22867LIBS=$ac_check_lib_save_LIBS
22868fi
b4e70030
JB
22869echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22870echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
22871if test $ac_cv_lib_dl_dlopen = yes; then
22872 cat >>confdefs.h <<_ACEOF
22873#define HAVE_LIBDL 1
22874_ACEOF
c906108c
SS
22875
22876 LIBS="-ldl $LIBS"
22877
c906108c
SS
22878fi
22879
22880 if test "$GCC" = "yes" ; then
22881 # The GNU linker requires the -export-dynamic option to make
22882 # all symbols visible in the dynamic symbol table.
22883 hold_ldflags=$LDFLAGS
b4e70030
JB
22884 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
22885echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 22886 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
22887 cat >conftest.$ac_ext <<_ACEOF
22888/* confdefs.h. */
22889_ACEOF
22890cat confdefs.h >>conftest.$ac_ext
22891cat >>conftest.$ac_ext <<_ACEOF
22892/* end confdefs.h. */
c906108c 22893
bec39cab
AC
22894int
22895main ()
22896{
c906108c 22897int i;
bec39cab
AC
22898 ;
22899 return 0;
22900}
22901_ACEOF
22902rm -f conftest.$ac_objext conftest$ac_exeext
22903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22904 (eval $ac_link) 2>conftest.er1
22905 ac_status=$?
22906 grep -v '^ *+' conftest.er1 >conftest.err
22907 rm -f conftest.er1
22908 cat conftest.err >&5
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); } &&
b4e70030
JB
22911 { ac_try='test -z "$ac_c_werror_flag"
22912 || test ! -s conftest.err'
bec39cab
AC
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22915 ac_status=$?
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; } &&
22918 { ac_try='test -s conftest$ac_exeext'
22919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920 (eval $ac_try) 2>&5
22921 ac_status=$?
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; }; then
c906108c
SS
22924 found=yes
22925else
bec39cab
AC
22926 echo "$as_me: failed program was:" >&5
22927sed 's/^/| /' conftest.$ac_ext >&5
22928
b4e70030 22929found=no
c906108c 22930fi
bec39cab
AC
22931rm -f conftest.err conftest.$ac_objext \
22932 conftest$ac_exeext conftest.$ac_ext
c906108c 22933 LDFLAGS=$hold_ldflags
b4e70030
JB
22934 echo "$as_me:$LINENO: result: $found" >&5
22935echo "${ECHO_T}$found" >&6
c906108c
SS
22936 if test $found = yes; then
22937 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
22938 fi
22939 fi
22940 # Sun randomly tweaked the prototypes in <proc_service.h>
22941 # at one point.
b4e70030
JB
22942 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
22943echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
22944 if test "${gdb_cv_proc_service_is_old+set}" = set; then
22945 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22946else
bec39cab
AC
22947
22948 cat >conftest.$ac_ext <<_ACEOF
22949/* confdefs.h. */
22950_ACEOF
22951cat confdefs.h >>conftest.$ac_ext
22952cat >>conftest.$ac_ext <<_ACEOF
22953/* end confdefs.h. */
c906108c
SS
22954
22955 #include <proc_service.h>
22956 ps_err_e ps_pdwrite
22957 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 22958
bec39cab
AC
22959int
22960main ()
22961{
22962
22963 ;
22964 return 0;
22965}
22966_ACEOF
22967rm -f conftest.$ac_objext
22968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22969 (eval $ac_compile) 2>conftest.er1
22970 ac_status=$?
22971 grep -v '^ *+' conftest.er1 >conftest.err
22972 rm -f conftest.er1
22973 cat conftest.err >&5
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } &&
b4e70030
JB
22976 { ac_try='test -z "$ac_c_werror_flag"
22977 || test ! -s conftest.err'
bec39cab
AC
22978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979 (eval $ac_try) 2>&5
22980 ac_status=$?
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; } &&
22983 { ac_try='test -s conftest.$ac_objext'
22984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985 (eval $ac_try) 2>&5
22986 ac_status=$?
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); }; }; then
c906108c
SS
22989 gdb_cv_proc_service_is_old=no
22990else
bec39cab
AC
22991 echo "$as_me: failed program was:" >&5
22992sed 's/^/| /' conftest.$ac_ext >&5
22993
b4e70030 22994gdb_cv_proc_service_is_old=yes
c906108c 22995fi
bec39cab
AC
22996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22997
c906108c
SS
22998fi
22999
b4e70030
JB
23000 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23001echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 23002 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
23003
23004cat >>confdefs.h <<\_ACEOF
c906108c 23005#define PROC_SERVICE_IS_OLD 1
bec39cab 23006_ACEOF
c906108c
SS
23007
23008 fi
23009 else
b4e70030
JB
23010 echo "$as_me:$LINENO: result: no" >&5
23011echo "${ECHO_T}no" >&6
c906108c
SS
23012 fi
23013 ;;
d92419e5 23014 aix*)
b4e70030
JB
23015 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23016echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
23017 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23019else
23020 cat >conftest.$ac_ext <<_ACEOF
23021/* confdefs.h. */
23022_ACEOF
23023cat confdefs.h >>conftest.$ac_ext
23024cat >>conftest.$ac_ext <<_ACEOF
23025/* end confdefs.h. */
d92419e5 23026#include <sys/pthdebug.h>
bec39cab
AC
23027int
23028main ()
23029{
d92419e5
JB
23030#ifndef PTHDB_VERSION_3
23031 #error
23032 #endif
bec39cab
AC
23033 ;
23034 return 0;
23035}
23036_ACEOF
23037rm -f conftest.$ac_objext
23038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23039 (eval $ac_compile) 2>conftest.er1
23040 ac_status=$?
23041 grep -v '^ *+' conftest.er1 >conftest.err
23042 rm -f conftest.er1
23043 cat conftest.err >&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } &&
b4e70030
JB
23046 { ac_try='test -z "$ac_c_werror_flag"
23047 || test ! -s conftest.err'
bec39cab
AC
23048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049 (eval $ac_try) 2>&5
23050 ac_status=$?
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; } &&
23053 { ac_try='test -s conftest.$ac_objext'
23054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055 (eval $ac_try) 2>&5
23056 ac_status=$?
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); }; }; then
d92419e5
JB
23059 gdb_cv_have_aix_thread_debug=yes
23060else
bec39cab
AC
23061 echo "$as_me: failed program was:" >&5
23062sed 's/^/| /' conftest.$ac_ext >&5
23063
b4e70030 23064gdb_cv_have_aix_thread_debug=no
d92419e5 23065fi
bec39cab 23066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
23067fi
23068
b4e70030
JB
23069 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23070echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
23071 if test $gdb_cv_have_aix_thread_debug = yes; then
23072 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 23073 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
23074 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23075 fi
23076 ;;
c906108c 23077 esac
bec39cab 23078
c906108c
SS
23079fi
23080
3f47be5c 23081if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
23082 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23083echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
23084if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23086else
23087 cat >conftest.$ac_ext <<_ACEOF
23088/* confdefs.h. */
23089_ACEOF
23090cat confdefs.h >>conftest.$ac_ext
23091cat >>conftest.$ac_ext <<_ACEOF
23092/* end confdefs.h. */
3f47be5c 23093#include <thread_db.h>
bec39cab
AC
23094int
23095main ()
23096{
3f47be5c 23097int i = TD_NOTALLOC;
bec39cab
AC
23098 ;
23099 return 0;
23100}
23101_ACEOF
23102rm -f conftest.$ac_objext
23103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23104 (eval $ac_compile) 2>conftest.er1
23105 ac_status=$?
23106 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1
23108 cat conftest.err >&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } &&
b4e70030
JB
23111 { ac_try='test -z "$ac_c_werror_flag"
23112 || test ! -s conftest.err'
bec39cab
AC
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; } &&
23118 { ac_try='test -s conftest.$ac_objext'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; }; then
3f47be5c
EZ
23124 gdb_cv_thread_db_h_has_td_notalloc=yes
23125else
bec39cab
AC
23126 echo "$as_me: failed program was:" >&5
23127sed 's/^/| /' conftest.$ac_ext >&5
23128
b4e70030 23129gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 23130
3f47be5c 23131fi
bec39cab 23132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 23133
bec39cab 23134fi
b4e70030
JB
23135echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23136echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
23137 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23138echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23139if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23141else
23142 cat >conftest.$ac_ext <<_ACEOF
23143/* confdefs.h. */
23144_ACEOF
23145cat confdefs.h >>conftest.$ac_ext
23146cat >>conftest.$ac_ext <<_ACEOF
23147/* end confdefs.h. */
23148#include <thread_db.h>
23149int
23150main ()
23151{
23152int i = TD_VERSION;
23153 ;
23154 return 0;
23155}
23156_ACEOF
23157rm -f conftest.$ac_objext
23158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23159 (eval $ac_compile) 2>conftest.er1
23160 ac_status=$?
23161 grep -v '^ *+' conftest.er1 >conftest.err
23162 rm -f conftest.er1
23163 cat conftest.err >&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); } &&
23166 { ac_try='test -z "$ac_c_werror_flag"
23167 || test ! -s conftest.err'
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; } &&
23173 { ac_try='test -s conftest.$ac_objext'
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }; then
23179 gdb_cv_thread_db_h_has_td_version=yes
23180else
23181 echo "$as_me: failed program was:" >&5
23182sed 's/^/| /' conftest.$ac_ext >&5
23183
23184gdb_cv_thread_db_h_has_td_version=no
23185
23186fi
23187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23188
23189fi
23190echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23191echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23192 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23193echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23194if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23196else
23197 cat >conftest.$ac_ext <<_ACEOF
23198/* confdefs.h. */
23199_ACEOF
23200cat confdefs.h >>conftest.$ac_ext
23201cat >>conftest.$ac_ext <<_ACEOF
23202/* end confdefs.h. */
23203#include <thread_db.h>
23204int
23205main ()
23206{
23207int i = TD_NOTLS;
23208 ;
23209 return 0;
23210}
23211_ACEOF
23212rm -f conftest.$ac_objext
23213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23214 (eval $ac_compile) 2>conftest.er1
23215 ac_status=$?
23216 grep -v '^ *+' conftest.er1 >conftest.err
23217 rm -f conftest.er1
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } &&
23221 { ac_try='test -z "$ac_c_werror_flag"
23222 || test ! -s conftest.err'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; } &&
23228 { ac_try='test -s conftest.$ac_objext'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 gdb_cv_thread_db_h_has_td_notls=yes
23235else
23236 echo "$as_me: failed program was:" >&5
23237sed 's/^/| /' conftest.$ac_ext >&5
23238
23239gdb_cv_thread_db_h_has_td_notls=no
23240
23241fi
23242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23243
23244fi
23245echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
23246echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
23247fi
23248if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
23249
23250cat >>confdefs.h <<\_ACEOF
3f47be5c 23251#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 23252_ACEOF
3f47be5c 23253
59f80f10
DJ
23254fi
23255if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
23256
23257cat >>confdefs.h <<\_ACEOF
23258#define THREAD_DB_HAS_TD_VERSION 1
23259_ACEOF
23260
23261fi
23262if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
23263
23264cat >>confdefs.h <<\_ACEOF
23265#define THREAD_DB_HAS_TD_NOTLS 1
23266_ACEOF
23267
3f47be5c
EZ
23268fi
23269
b757528f 23270if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
23271 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23272echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
23273if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23274 echo $ECHO_N "(cached) $ECHO_C" >&6
23275else
23276 cat >conftest.$ac_ext <<_ACEOF
23277/* confdefs.h. */
23278_ACEOF
23279cat confdefs.h >>conftest.$ac_ext
23280cat >>conftest.$ac_ext <<_ACEOF
23281/* end confdefs.h. */
b757528f 23282#include <sys/syscall.h>
bec39cab
AC
23283int
23284main ()
23285{
b757528f 23286int i = __NR_tkill;
bec39cab
AC
23287 ;
23288 return 0;
23289}
23290_ACEOF
23291rm -f conftest.$ac_objext
23292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23293 (eval $ac_compile) 2>conftest.er1
23294 ac_status=$?
23295 grep -v '^ *+' conftest.er1 >conftest.err
23296 rm -f conftest.er1
23297 cat conftest.err >&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } &&
b4e70030
JB
23300 { ac_try='test -z "$ac_c_werror_flag"
23301 || test ! -s conftest.err'
bec39cab
AC
23302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23303 (eval $ac_try) 2>&5
23304 ac_status=$?
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); }; } &&
23307 { ac_try='test -s conftest.$ac_objext'
23308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23310 ac_status=$?
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
b757528f
JJ
23313 gdb_cv_sys_syscall_h_has_tkill=yes
23314else
bec39cab
AC
23315 echo "$as_me: failed program was:" >&5
23316sed 's/^/| /' conftest.$ac_ext >&5
23317
b4e70030 23318gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 23319
b757528f 23320fi
bec39cab 23321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 23322
bec39cab 23323fi
b4e70030
JB
23324echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23325echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
23326fi
23327if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
23328
23329cat >>confdefs.h <<\_ACEOF
b757528f 23330#define HAVE_TKILL_SYSCALL 1
bec39cab 23331_ACEOF
b757528f
JJ
23332
23333fi
23334
fb40c209 23335
bec39cab 23336
b4e70030 23337# Check whether --with-sysroot or --without-sysroot was given.
030292b7 23338if test "${with_sysroot+set}" = set; then
b4e70030
JB
23339 withval="$with_sysroot"
23340
030292b7 23341 case ${with_sysroot} in
715d1656 23342 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
23343 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23344 esac
23345
23346 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23347
07abfebf
RS
23348 if test "x$prefix" = xNONE; then
23349 test_prefix=/usr/local
23350 else
23351 test_prefix=$prefix
23352 fi
aa28a74e 23353 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 23354 test_exec_prefix=$test_prefix
030292b7 23355 else
07abfebf 23356 test_exec_prefix=$exec_prefix
030292b7
DJ
23357 fi
23358 case ${TARGET_SYSTEM_ROOT} in
715d1656 23359 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
23360 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
23361 '${prefix}'|'${prefix}/'*|\
715d1656 23362 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
23363 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23364 TARGET_SYSTEM_ROOT_DEFINE="$t"
23365 ;;
23366 esac
23367
23368else
bec39cab 23369
030292b7
DJ
23370 TARGET_SYSTEM_ROOT=
23371 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23372
b4e70030 23373fi;
030292b7
DJ
23374
23375
23376
b4e70030 23377# Check whether --enable-werror or --disable-werror was given.
094a342e 23378if test "${enable_werror+set}" = set; then
b4e70030
JB
23379 enableval="$enable_werror"
23380 case "${enableval}" in
094a342e
MK
23381 yes | y) ERROR_ON_WARNING="yes" ;;
23382 no | n) ERROR_ON_WARNING="no" ;;
23383 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23384echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23385 { (exit 1); exit 1; }; } ;;
23386 esac
b4e70030 23387fi;
094a342e
MK
23388
23389# Enable -Werror by default when using gcc
23390if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23391 ERROR_ON_WARNING=yes
23392fi
23393
23394WERROR_CFLAGS=""
23395if test "${ERROR_ON_WARNING}" = yes ; then
23396 WERROR_CFLAGS="-Werror"
23397fi
23398
aa79a185
DJ
23399# The entries after -Wno-pointer-sign are disabled warnings which may
23400# be enabled in the future, which can not currently be used to build
23401# GDB.
23402# NOTE: If you change this list, remember to update
3b851bce 23403# gdb/doc/gdbint.texinfo.
aa79a185
DJ
23404build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
23405-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 23406-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 23407
b4e70030 23408# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 23409if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
23410 enableval="$enable_build_warnings"
23411 case "${enableval}" in
c906108c
SS
23412 yes) ;;
23413 no) build_warnings="-w";;
23414 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23415 build_warnings="${build_warnings} ${t}";;
23416 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23417 build_warnings="${t} ${build_warnings}";;
23418 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23419esac
d4f3574e 23420if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 23421 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 23422fi
b4e70030 23423fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 23424if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
23425 enableval="$enable_gdb_build_warnings"
23426 case "${enableval}" in
3b851bce
AC
23427 yes) ;;
23428 no) build_warnings="-w";;
23429 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23430 build_warnings="${build_warnings} ${t}";;
23431 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23432 build_warnings="${t} ${build_warnings}";;
23433 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23434esac
23435if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23436 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
23437fi
b4e70030 23438fi; WARN_CFLAGS=""
c906108c
SS
23439if test "x${build_warnings}" != x -a "x$GCC" = xyes
23440then
b4e70030
JB
23441 echo "$as_me:$LINENO: checking compiler warning flags" >&5
23442echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
23443 # Separate out the -Werror flag as some files just cannot be
23444 # compiled with it enabled.
23445 for w in ${build_warnings}; do
23446 case $w in
23447 -Werr*) WERROR_CFLAGS=-Werror ;;
23448 *) # Check that GCC accepts it
4536bbc6
AC
23449 saved_CFLAGS="$CFLAGS"
23450 CFLAGS="$CFLAGS $w"
bec39cab
AC
23451 cat >conftest.$ac_ext <<_ACEOF
23452/* confdefs.h. */
23453_ACEOF
23454cat confdefs.h >>conftest.$ac_ext
23455cat >>conftest.$ac_ext <<_ACEOF
23456/* end confdefs.h. */
4536bbc6 23457
bec39cab
AC
23458int
23459main ()
23460{
4536bbc6 23461
bec39cab
AC
23462 ;
23463 return 0;
23464}
23465_ACEOF
23466rm -f conftest.$ac_objext
23467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23468 (eval $ac_compile) 2>conftest.er1
23469 ac_status=$?
23470 grep -v '^ *+' conftest.er1 >conftest.err
23471 rm -f conftest.er1
23472 cat conftest.err >&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } &&
b4e70030
JB
23475 { ac_try='test -z "$ac_c_werror_flag"
23476 || test ! -s conftest.err'
bec39cab
AC
23477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478 (eval $ac_try) 2>&5
23479 ac_status=$?
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; } &&
23482 { ac_try='test -s conftest.$ac_objext'
23483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; }; then
4536bbc6
AC
23488 WARN_CFLAGS="${WARN_CFLAGS} $w"
23489else
bec39cab
AC
23490 echo "$as_me: failed program was:" >&5
23491sed 's/^/| /' conftest.$ac_ext >&5
23492
4536bbc6 23493fi
bec39cab 23494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 23495 CFLAGS="$saved_CFLAGS"
746a987d
AC
23496 esac
23497 done
aa79a185
DJ
23498 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
23499echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
23500fi
23501
23502
104c1213 23503
7a292a7a 23504# In the Cygwin environment, we need some additional flags.
b4e70030
JB
23505echo "$as_me:$LINENO: checking for cygwin" >&5
23506echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
23507if test "${gdb_cv_os_cygwin+set}" = set; then
23508 echo $ECHO_N "(cached) $ECHO_C" >&6
23509else
23510 cat >conftest.$ac_ext <<_ACEOF
23511/* confdefs.h. */
23512_ACEOF
23513cat confdefs.h >>conftest.$ac_ext
23514cat >>conftest.$ac_ext <<_ACEOF
23515/* end confdefs.h. */
7a292a7a
SS
23516
23517#if defined (__CYGWIN__) || defined (__CYGWIN32__)
23518lose
23519#endif
bec39cab 23520_ACEOF
7a292a7a 23521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 23522 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
23523 gdb_cv_os_cygwin=yes
23524else
7a292a7a
SS
23525 gdb_cv_os_cygwin=no
23526fi
23527rm -f conftest*
23528
23529fi
b4e70030
JB
23530echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
23531echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 23532
aff38e61 23533
3eb25fda 23534SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 23535case ${host} in
95cbc983
AC
23536 *go32* ) SER_HARDWIRE=ser-go32.o ;;
23537 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 23538 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
23539esac
23540
23541
cd0fc7c3
SS
23542# libreadline needs libuser32.a in a cygwin environment
23543WIN32LIBS=
23544if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
23545 WIN32LIBS="-luser32"
23546 case "${target}" in
23547 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
23548 ;;
23549 esac
cd0fc7c3 23550fi
c906108c 23551
b4505029
MM
23552# The ser-tcp.c module requires sockets.
23553case ${host} in
23554 *mingw32*)
23555
23556cat >>confdefs.h <<\_ACEOF
23557#define USE_WIN32API 1
23558_ACEOF
23559
23560 WIN32LIBS="$WIN32LIBS -lws2_32"
23561 ;;
23562esac
23563
7a292a7a 23564
31d99776
DJ
23565# Add ELF support to GDB, but only if BFD includes ELF support.
23566OLD_CFLAGS=$CFLAGS
23567OLD_LDFLAGS=$LDFLAGS
23568OLD_LIBS=$LIBS
cab58a69 23569CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 23570LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9
DJ
23571intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
23572LIBS="$LIBS -lbfd -liberty $intl"
31d99776
DJ
23573echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
23574echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
23575if test "${gdb_cv_var_elf+set}" = set; then
23576 echo $ECHO_N "(cached) $ECHO_C" >&6
23577else
23578 cat >conftest.$ac_ext <<_ACEOF
23579/* confdefs.h. */
23580_ACEOF
23581cat confdefs.h >>conftest.$ac_ext
23582cat >>conftest.$ac_ext <<_ACEOF
23583/* end confdefs.h. */
23584#include <stdlib.h>
23585#include "bfd.h"
23586#include "elf-bfd.h"
23587
23588int
23589main ()
23590{
23591bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
23592 ;
23593 return 0;
23594}
23595_ACEOF
23596rm -f conftest.$ac_objext conftest$ac_exeext
23597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23598 (eval $ac_link) 2>conftest.er1
23599 ac_status=$?
23600 grep -v '^ *+' conftest.er1 >conftest.err
23601 rm -f conftest.er1
23602 cat conftest.err >&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } &&
23605 { ac_try='test -z "$ac_c_werror_flag"
23606 || test ! -s conftest.err'
23607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23608 (eval $ac_try) 2>&5
23609 ac_status=$?
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); }; } &&
23612 { ac_try='test -s conftest$ac_exeext'
23613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23614 (eval $ac_try) 2>&5
23615 ac_status=$?
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); }; }; then
23618 gdb_cv_var_elf=yes
23619else
23620 echo "$as_me: failed program was:" >&5
23621sed 's/^/| /' conftest.$ac_ext >&5
23622
23623gdb_cv_var_elf=no
23624fi
23625rm -f conftest.err conftest.$ac_objext \
23626 conftest$ac_exeext conftest.$ac_ext
23627fi
23628echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
23629echo "${ECHO_T}$gdb_cv_var_elf" >&6
23630if test $gdb_cv_var_elf = yes; then
23631 CONFIG_OBS="$CONFIG_OBS elfread.o"
23632
23633cat >>confdefs.h <<\_ACEOF
23634#define HAVE_ELF 1
23635_ACEOF
23636
23637fi
23638CFLAGS=$OLD_CFLAGS
23639LDFLAGS=$OLD_LDFLAGS
23640LIBS=$OLD_LIBS
23641
121ce6e5
DJ
23642# Add any host-specific objects to GDB.
23643CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
23644
3fc11d3e
JM
23645LIBGUI="../libgui/src/libgui.a"
23646GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
23647
23648
7a292a7a 23649
3fc11d3e
JM
23650WIN32LDAPP=
23651
23652
23653
d91670b9 23654case "${host}" in
686a5eed 23655*-*-cygwin* | *-*-mingw* )
d91670b9
CV
23656 configdir="win"
23657 ;;
23658*)
23659 configdir="unix"
23660 ;;
23661esac
3fc11d3e
JM
23662
23663GDBTKLIBS=
23664if test "${enable_gdbtk}" = "yes"; then
23665
d1c3b63a
KS
23666 # Gdbtk must have an absolute path to srcdir in order to run
23667 # properly when not installed.
23668 here=`pwd`
23669 cd ${srcdir}
23670 GDBTK_SRC_DIR=`pwd`
23671 cd $here
23672
bec39cab 23673
3fc11d3e
JM
23674#
23675# Ok, lets find the tcl configuration
bec39cab 23676# First, look for one uninstalled.
3fc11d3e
JM
23677# the alternative search directory is invoked by --with-tclconfig
23678#
23679
23680if test x"${no_tcl}" = x ; then
23681 # we reset no_tcl in case something fails here
23682 no_tcl=true
bec39cab 23683
b4e70030 23684# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 23685if test "${with_tclconfig+set}" = set; then
b4e70030
JB
23686 withval="$with_tclconfig"
23687 with_tclconfig=${withval}
23688fi;
23689 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
23690echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
23691 if test "${ac_cv_c_tclconfig+set}" = set; then
23692 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23693else
bec39cab 23694
3fc11d3e
JM
23695
23696 # First check to see if --with-tclconfig was specified.
23697 if test x"${with_tclconfig}" != x ; then
23698 if test -f "${with_tclconfig}/tclConfig.sh" ; then
23699 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
23700 else
bec39cab
AC
23701 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
23702echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
23703 { (exit 1); exit 1; }; }
3fc11d3e
JM
23704 fi
23705 fi
23706
23707 # then check for a private Tcl installation
23708 if test x"${ac_cv_c_tclconfig}" = x ; then
23709 for i in \
23710 ../tcl \
23711 `ls -dr ../tcl[7-9]* 2>/dev/null` \
23712 ../../tcl \
23713 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
23714 ../../../tcl \
23715 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
23716 if test -f "$i/${configdir}/tclConfig.sh" ; then
23717 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23718 break
23719 fi
23720 done
23721 fi
23722 # check in a few common install locations
23723 if test x"${ac_cv_c_tclconfig}" = x ; then
23724 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23725 if test -f "$i/tclConfig.sh" ; then
23726 ac_cv_c_tclconfig=`(cd $i; pwd)`
23727 break
23728 fi
23729 done
23730 fi
23731 # check in a few other private locations
23732 if test x"${ac_cv_c_tclconfig}" = x ; then
23733 for i in \
23734 ${srcdir}/../tcl \
23735 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
23736 if test -f "$i/${configdir}/tclConfig.sh" ; then
23737 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23738 break
23739 fi
23740 done
23741 fi
bec39cab 23742
3fc11d3e
JM
23743fi
23744
23745 if test x"${ac_cv_c_tclconfig}" = x ; then
23746 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
23747 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
23748echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
23749 else
23750 no_tcl=
23751 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
23752 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
23753echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
23754 fi
23755fi
23756
23757 if test -z "${no_tcl}"; then
bec39cab 23758
3fc11d3e
JM
23759 . $TCLCONFIG
23760
3fc11d3e
JM
23761
23762
23763
23764
3fc11d3e
JM
23765
23766
23767
bec39cab
AC
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
3fc11d3e
JM
23787#
23788# Ok, lets find the tk configuration
bec39cab 23789# First, look for one uninstalled.
3fc11d3e
JM
23790# the alternative search directory is invoked by --with-tkconfig
23791#
23792
23793if test x"${no_tk}" = x ; then
23794 # we reset no_tk in case something fails here
23795 no_tk=true
bec39cab 23796
b4e70030 23797# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 23798if test "${with_tkconfig+set}" = set; then
b4e70030
JB
23799 withval="$with_tkconfig"
23800 with_tkconfig=${withval}
23801fi;
23802 echo "$as_me:$LINENO: checking for Tk configuration" >&5
23803echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
23804 if test "${ac_cv_c_tkconfig+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23806else
bec39cab 23807
3fc11d3e
JM
23808
23809 # First check to see if --with-tkconfig was specified.
23810 if test x"${with_tkconfig}" != x ; then
23811 if test -f "${with_tkconfig}/tkConfig.sh" ; then
23812 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
23813 else
bec39cab
AC
23814 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
23815echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
23816 { (exit 1); exit 1; }; }
3fc11d3e
JM
23817 fi
23818 fi
23819
23820 # then check for a private Tk library
23821 if test x"${ac_cv_c_tkconfig}" = x ; then
23822 for i in \
23823 ../tk \
23824 `ls -dr ../tk[4-9]* 2>/dev/null` \
23825 ../../tk \
23826 `ls -dr ../../tk[4-9]* 2>/dev/null` \
23827 ../../../tk \
23828 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
23829 if test -f "$i/${configdir}/tkConfig.sh" ; then
23830 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23831 break
23832 fi
23833 done
23834 fi
23835 # check in a few common install locations
23836 if test x"${ac_cv_c_tkconfig}" = x ; then
23837 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23838 if test -f "$i/tkConfig.sh" ; then
23839 ac_cv_c_tkconfig=`(cd $i; pwd)`
23840 break
23841 fi
23842 done
23843 fi
23844 # check in a few other private locations
23845 if test x"${ac_cv_c_tkconfig}" = x ; then
23846 for i in \
23847 ${srcdir}/../tk \
23848 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
23849 if test -f "$i/${configdir}/tkConfig.sh" ; then
23850 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23851 break
23852 fi
23853 done
23854 fi
bec39cab 23855
3fc11d3e
JM
23856fi
23857
23858 if test x"${ac_cv_c_tkconfig}" = x ; then
23859 TKCONFIG="# no Tk configs found"
bec39cab
AC
23860 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
23861echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
23862 else
23863 no_tk=
23864 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
23865 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
23866echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
23867 fi
23868fi
23869
23870
23871
dd2504ab
JM
23872 # now look for Tcl library stuff
23873
d91670b9 23874 tcldir="../tcl/${configdir}/"
dd2504ab
JM
23875
23876 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
23877
3fc11d3e
JM
23878 # If $no_tk is nonempty, then we can't do Tk, and there is no
23879 # point to doing Tcl.
23880 if test -z "${no_tk}"; then
bec39cab 23881
3fc11d3e
JM
23882 if test -f "$TKCONFIG" ; then
23883 . $TKCONFIG
23884 fi
23885
3fc11d3e 23886
3fc11d3e
JM
23887
23888
3fc11d3e 23889
bec39cab
AC
23890
23891
23892
23893
23894
23895
23896
23897
23898
3fc11d3e
JM
23899#
23900# Ok, lets find the tcl source trees so we can use the headers
23901# Warning: transition of version 9 to 10 will break this algorithm
23902# because 10 sorts before 9. We also look for just tcl. We have to
23903# be careful that we don't match stuff like tclX by accident.
23904# the alternative search directory is involked by --with-tclinclude
23905#
23906
23907no_tcl=true
b4e70030
JB
23908echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
23909echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 23910
b4e70030 23911# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 23912if test "${with_tclinclude+set}" = set; then
b4e70030
JB
23913 withval="$with_tclinclude"
23914 with_tclinclude=${withval}
23915fi;
bec39cab
AC
23916if test "${ac_cv_c_tclh+set}" = set; then
23917 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23918else
bec39cab 23919
3fc11d3e
JM
23920# first check to see if --with-tclinclude was specified
23921if test x"${with_tclinclude}" != x ; then
23922 if test -f ${with_tclinclude}/tclInt.h ; then
23923 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
23924 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
23925 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
23926 else
bec39cab
AC
23927 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
23928echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
23929 { (exit 1); exit 1; }; }
3fc11d3e
JM
23930 fi
23931fi
23932
23933# next check if it came with Tcl configuration file
23934if test x"${ac_cv_c_tclconfig}" = x ; then
23935 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
23936 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
23937 fi
23938fi
23939
23940# next check in private source directory
23941#
23942# since ls returns lowest version numbers first, reverse its output
23943if test x"${ac_cv_c_tclh}" = x ; then
23944 for i in \
23945 ${srcdir}/../tcl \
23946 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
23947 ${srcdir}/../../tcl \
23948 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
23949 ${srcdir}/../../../tcl \
23950 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
23951 if test -f $i/generic/tclInt.h ; then
23952 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23953 break
23954 fi
23955 done
23956fi
23957# finally check in a few common install locations
23958#
23959# since ls returns lowest version numbers first, reverse its output
23960if test x"${ac_cv_c_tclh}" = x ; then
23961 for i in \
23962 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
23963 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
23964 /usr/local/src/tcl \
23965 /usr/local/lib/tcl \
23966 ${prefix}/include ; do
23967 if test -f $i/generic/tclInt.h ; then
23968 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23969 break
23970 fi
23971 done
23972fi
23973# see if one is installed
23974if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 23975 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
23976 echo "$as_me:$LINENO: checking for tclInt.h" >&5
23977echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
23978if test "${ac_cv_header_tclInt_h+set}" = set; then
23979 echo $ECHO_N "(cached) $ECHO_C" >&6
23980fi
b4e70030
JB
23981echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23982echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
23983else
23984 # Is the header compilable?
b4e70030
JB
23985echo "$as_me:$LINENO: checking tclInt.h usability" >&5
23986echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
23987cat >conftest.$ac_ext <<_ACEOF
23988/* confdefs.h. */
23989_ACEOF
23990cat confdefs.h >>conftest.$ac_ext
23991cat >>conftest.$ac_ext <<_ACEOF
23992/* end confdefs.h. */
23993$ac_includes_default
23994#include <tclInt.h>
23995_ACEOF
23996rm -f conftest.$ac_objext
23997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23998 (eval $ac_compile) 2>conftest.er1
23999 ac_status=$?
24000 grep -v '^ *+' conftest.er1 >conftest.err
24001 rm -f conftest.er1
24002 cat conftest.err >&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } &&
b4e70030
JB
24005 { ac_try='test -z "$ac_c_werror_flag"
24006 || test ! -s conftest.err'
bec39cab
AC
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest.$ac_objext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 ac_header_compiler=yes
24019else
24020 echo "$as_me: failed program was:" >&5
24021sed 's/^/| /' conftest.$ac_ext >&5
24022
b4e70030 24023ac_header_compiler=no
bec39cab
AC
24024fi
24025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
24026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24027echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
24028
24029# Is the header present?
b4e70030
JB
24030echo "$as_me:$LINENO: checking tclInt.h presence" >&5
24031echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
24032cat >conftest.$ac_ext <<_ACEOF
24033/* confdefs.h. */
24034_ACEOF
24035cat confdefs.h >>conftest.$ac_ext
24036cat >>conftest.$ac_ext <<_ACEOF
24037/* end confdefs.h. */
3fc11d3e 24038#include <tclInt.h>
bec39cab
AC
24039_ACEOF
24040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24042 ac_status=$?
24043 grep -v '^ *+' conftest.er1 >conftest.err
24044 rm -f conftest.er1
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } >/dev/null; then
24048 if test -s conftest.err; then
24049 ac_cpp_err=$ac_c_preproc_warn_flag
24050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24051 else
24052 ac_cpp_err=
24053 fi
24054else
24055 ac_cpp_err=yes
3fc11d3e 24056fi
bec39cab
AC
24057if test -z "$ac_cpp_err"; then
24058 ac_header_preproc=yes
24059else
24060 echo "$as_me: failed program was:" >&5
24061sed 's/^/| /' conftest.$ac_ext >&5
24062
24063 ac_header_preproc=no
3fc11d3e 24064fi
bec39cab 24065rm -f conftest.err conftest.$ac_ext
b4e70030
JB
24066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24067echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
24068
24069# So? What about this header?
24070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24071 yes:no: )
24072 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24073echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24074 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
24075echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
24076 ac_header_preproc=yes
24077 ;;
24078 no:yes:* )
24079 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
24080echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
24081 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
24082echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
24084echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
24085 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
24086echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24087 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
24088echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
24089 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
24090echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
24091 (
24092 cat <<\_ASBOX
24093## ------------------------------------------ ##
24094## Report this to the AC_PACKAGE_NAME lists. ##
24095## ------------------------------------------ ##
24096_ASBOX
24097 ) |
24098 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
24099 ;;
24100esac
b4e70030
JB
24101echo "$as_me:$LINENO: checking for tclInt.h" >&5
24102echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
24103if test "${ac_cv_header_tclInt_h+set}" = set; then
24104 echo $ECHO_N "(cached) $ECHO_C" >&6
24105else
24106 ac_cv_header_tclInt_h=$ac_header_preproc
24107fi
b4e70030
JB
24108echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24109echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
24110
24111fi
24112if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
24113 ac_cv_c_tclh=installed
24114else
bec39cab 24115 ac_cv_c_tclh=""
3fc11d3e
JM
24116fi
24117
bec39cab 24118
3fc11d3e
JM
24119fi
24120
24121fi
24122
24123if test x"${ac_cv_c_tclh}" = x ; then
24124 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
24125 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
24126echo "$as_me: error: Can't find Tcl private headers" >&2;}
24127 { (exit 1); exit 1; }; }
3fc11d3e
JM
24128fi
24129if test x"${ac_cv_c_tclh}" != x ; then
24130 no_tcl=""
24131 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
24132 echo "$as_me:$LINENO: result: is installed" >&5
24133echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
24134 TCLHDIR=""
24135 else
b4e70030
JB
24136 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
24137echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
24138 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
24139 TCLHDIR="-I${ac_cv_c_tclh}"
24140 fi
24141fi
24142
24143
24144
bec39cab 24145
3fc11d3e
JM
24146#
24147# Ok, lets find the tk source trees so we can use the headers
24148# If the directory (presumably symlink) named "tk" exists, use that one
24149# in preference to any others. Same logic is used when choosing library
24150# and again with Tcl. The search order is the best place to look first, then in
24151# decreasing significance. The loop breaks if the trigger file is found.
24152# Note the gross little conversion here of srcdir by cd'ing to the found
24153# directory. This converts the path from a relative to an absolute, so
24154# recursive cache variables for the path will work right. We check all
24155# the possible paths in one loop rather than many seperate loops to speed
24156# things up.
24157# the alternative search directory is involked by --with-tkinclude
24158#
24159no_tk=true
b4e70030
JB
24160echo "$as_me:$LINENO: checking for Tk private headers" >&5
24161echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 24162
b4e70030 24163# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 24164if test "${with_tkinclude+set}" = set; then
b4e70030
JB
24165 withval="$with_tkinclude"
24166 with_tkinclude=${withval}
24167fi;
bec39cab
AC
24168if test "${ac_cv_c_tkh+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24170else
bec39cab 24171
3fc11d3e
JM
24172# first check to see if --with-tkinclude was specified
24173if test x"${with_tkinclude}" != x ; then
24174 if test -f ${with_tkinclude}/tk.h ; then
24175 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
24176 elif test -f ${with_tkinclude}/generic/tk.h ; then
24177 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
24178 else
bec39cab
AC
24179 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
24180echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
24181 { (exit 1); exit 1; }; }
3fc11d3e
JM
24182 fi
24183fi
24184
24185# next check if it came with Tk configuration file
24186if test x"${ac_cv_c_tkconfig}" = x ; then
24187 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
24188 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
24189 fi
24190fi
24191
24192# next check in private source directory
24193#
24194# since ls returns lowest version numbers first, reverse its output
24195if test x"${ac_cv_c_tkh}" = x ; then
24196 for i in \
24197 ${srcdir}/../tk \
24198 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
24199 ${srcdir}/../../tk \
24200 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
24201 ${srcdir}/../../../tk \
24202 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
24203 if test -f $i/generic/tk.h ; then
24204 ac_cv_c_tkh=`(cd $i/generic; pwd)`
24205 break
24206 fi
24207 done
24208fi
24209# finally check in a few common install locations
24210#
24211# since ls returns lowest version numbers first, reverse its output
24212if test x"${ac_cv_c_tkh}" = x ; then
24213 for i in \
24214 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
24215 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
24216 /usr/local/src/tk \
24217 /usr/local/lib/tk \
24218 ${prefix}/include ; do
24219 if test -f $i/generic/tk.h ; then
24220 ac_cv_c_tkh=`(cd $i/generic; pwd)`
24221 break
24222 fi
24223 done
24224fi
24225# see if one is installed
24226if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 24227 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
24228 echo "$as_me:$LINENO: checking for tk.h" >&5
24229echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
24230if test "${ac_cv_header_tk_h+set}" = set; then
24231 echo $ECHO_N "(cached) $ECHO_C" >&6
24232fi
b4e70030
JB
24233echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24234echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
24235else
24236 # Is the header compilable?
b4e70030
JB
24237echo "$as_me:$LINENO: checking tk.h usability" >&5
24238echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
24239cat >conftest.$ac_ext <<_ACEOF
24240/* confdefs.h. */
24241_ACEOF
24242cat confdefs.h >>conftest.$ac_ext
24243cat >>conftest.$ac_ext <<_ACEOF
24244/* end confdefs.h. */
24245$ac_includes_default
3fc11d3e 24246#include <tk.h>
bec39cab
AC
24247_ACEOF
24248rm -f conftest.$ac_objext
24249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24250 (eval $ac_compile) 2>conftest.er1
24251 ac_status=$?
24252 grep -v '^ *+' conftest.er1 >conftest.err
24253 rm -f conftest.er1
24254 cat conftest.err >&5
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); } &&
b4e70030
JB
24257 { ac_try='test -z "$ac_c_werror_flag"
24258 || test ! -s conftest.err'
bec39cab
AC
24259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24260 (eval $ac_try) 2>&5
24261 ac_status=$?
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); }; } &&
24264 { ac_try='test -s conftest.$ac_objext'
24265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24266 (eval $ac_try) 2>&5
24267 ac_status=$?
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); }; }; then
24270 ac_header_compiler=yes
24271else
24272 echo "$as_me: failed program was:" >&5
24273sed 's/^/| /' conftest.$ac_ext >&5
24274
b4e70030 24275ac_header_compiler=no
bec39cab
AC
24276fi
24277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
24278echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24279echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
24280
24281# Is the header present?
b4e70030
JB
24282echo "$as_me:$LINENO: checking tk.h presence" >&5
24283echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
24284cat >conftest.$ac_ext <<_ACEOF
24285/* confdefs.h. */
24286_ACEOF
24287cat confdefs.h >>conftest.$ac_ext
24288cat >>conftest.$ac_ext <<_ACEOF
24289/* end confdefs.h. */
24290#include <tk.h>
24291_ACEOF
24292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24294 ac_status=$?
24295 grep -v '^ *+' conftest.er1 >conftest.err
24296 rm -f conftest.er1
24297 cat conftest.err >&5
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } >/dev/null; then
24300 if test -s conftest.err; then
24301 ac_cpp_err=$ac_c_preproc_warn_flag
24302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24303 else
24304 ac_cpp_err=
24305 fi
24306else
24307 ac_cpp_err=yes
3fc11d3e 24308fi
bec39cab
AC
24309if test -z "$ac_cpp_err"; then
24310 ac_header_preproc=yes
24311else
24312 echo "$as_me: failed program was:" >&5
24313sed 's/^/| /' conftest.$ac_ext >&5
24314
24315 ac_header_preproc=no
24316fi
24317rm -f conftest.err conftest.$ac_ext
b4e70030
JB
24318echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24319echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
24320
24321# So? What about this header?
24322case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24323 yes:no: )
24324 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24325echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24326 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24327echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24328 ac_header_preproc=yes
24329 ;;
24330 no:yes:* )
24331 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24332echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24333 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
24334echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
24335 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24336echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24337 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
24338echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
24339 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24340echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24341 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24342echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
24343 (
24344 cat <<\_ASBOX
24345## ------------------------------------------ ##
24346## Report this to the AC_PACKAGE_NAME lists. ##
24347## ------------------------------------------ ##
24348_ASBOX
24349 ) |
24350 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
24351 ;;
24352esac
b4e70030
JB
24353echo "$as_me:$LINENO: checking for tk.h" >&5
24354echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
24355if test "${ac_cv_header_tk_h+set}" = set; then
24356 echo $ECHO_N "(cached) $ECHO_C" >&6
24357else
24358 ac_cv_header_tk_h=$ac_header_preproc
24359fi
b4e70030
JB
24360echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24361echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 24362
3fc11d3e 24363fi
bec39cab 24364if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
24365 ac_cv_c_tkh=installed
24366else
bec39cab 24367 ac_cv_c_tkh=""
3fc11d3e
JM
24368fi
24369
bec39cab 24370
3fc11d3e
JM
24371fi
24372
24373fi
24374
24375if test x"${ac_cv_c_tkh}" != x ; then
24376 no_tk=""
24377 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
24378 echo "$as_me:$LINENO: result: is installed" >&5
24379echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
24380 TKHDIR=""
24381 else
b4e70030
JB
24382 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24383echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
24384 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
24385 TKHDIR="-I${ac_cv_c_tkh}"
24386 fi
24387else
24388 TKHDIR="# no Tk directory found"
bec39cab
AC
24389 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
24390echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
24391 no_tk=true
24392fi
24393
24394
24395
bec39cab 24396
b4e70030
JB
24397echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
24398echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
24399if test x"${ac_cv_c_itclh}" = x ; then
24400 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
24401 if test -f $i/generic/itcl.h ; then
24402 ac_cv_c_itclh=`(cd $i/generic; pwd)`
24403 break
24404 fi
24405 done
24406fi
24407if test x"${ac_cv_c_itclh}" = x ; then
24408 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
24409 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
24410echo "$as_me: error: Can't find Itcl private headers" >&2;}
24411 { (exit 1); exit 1; }; }
3fc11d3e
JM
24412fi
24413if test x"${ac_cv_c_itclh}" != x ; then
24414 ITCLHDIR="-I${ac_cv_c_itclh}"
24415fi
24416# should always be here
24417# ITCLLIB="../itcl/itcl/unix/libitcl.a"
24418
24419#AC_SUBST(ITCLLIB)
24420
bec39cab 24421
b4e70030
JB
24422echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
24423echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
24424if test x"${ac_cv_c_itkh}" = x ; then
24425 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
24426 if test -f $i/generic/itk.h ; then
24427 ac_cv_c_itkh=`(cd $i/generic; pwd)`
24428 break
24429 fi
24430 done
24431fi
24432if test x"${ac_cv_c_itkh}" = x ; then
24433 ITKHDIR="# no Itk private headers found"
bec39cab
AC
24434 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
24435echo "$as_me: error: Can't find Itk private headers" >&2;}
24436 { (exit 1); exit 1; }; }
3fc11d3e
JM
24437fi
24438if test x"${ac_cv_c_itkh}" != x ; then
24439 ITKHDIR="-I${ac_cv_c_itkh}"
24440fi
24441# should always be here
24442# ITKLIB="../itcl/itk/unix/libitk.a"
24443
24444#AC_SUBST(ITKLIB)
24445
3fc11d3e 24446
dd2504ab
JM
24447
24448 # now look for Tk library stuff
24449
d91670b9 24450 tkdir="../tk/${configdir}/"
dd2504ab
JM
24451
24452 TK_DEPS="${tkdir}${TK_LIB_FILE}"
24453
3fc11d3e
JM
24454 # now look for Itcl library stuff
24455
bec39cab 24456
3fc11d3e
JM
24457#
24458# Ok, lets find the itcl configuration
bec39cab 24459# First, look for one uninstalled.
3fc11d3e
JM
24460# the alternative search directory is invoked by --with-itclconfig
24461#
24462
24463if test x"${no_itcl}" = x ; then
24464 # we reset no_itcl in case something fails here
24465 no_itcl=true
bec39cab 24466
b4e70030 24467# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 24468if test "${with_itclconfig+set}" = set; then
b4e70030
JB
24469 withval="$with_itclconfig"
24470 with_itclconfig=${withval}
24471fi;
24472 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
24473echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
24474 if test "${ac_cv_c_itclconfig+set}" = set; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24476else
bec39cab 24477
3fc11d3e
JM
24478
24479 # First check to see if --with-itclconfig was specified.
24480 if test x"${with_itclconfig}" != x ; then
24481 if test -f "${with_itclconfig}/itclConfig.sh" ; then
24482 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
24483 else
bec39cab
AC
24484 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
24485echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
24486 { (exit 1); exit 1; }; }
3fc11d3e
JM
24487 fi
24488 fi
24489
24490 # then check for a private Itcl library
24491 if test x"${ac_cv_c_itclconfig}" = x ; then
24492 for i in \
24493 ../itcl/itcl \
24494 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
24495 ../../itcl \
24496 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
24497 ../../../itcl \
24498 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
24499 if test -f "$i/itclConfig.sh" ; then
24500 ac_cv_c_itclconfig=`(cd $i; pwd)`
24501 break
24502 fi
24503 done
24504 fi
24505 # check in a few common install locations
24506 if test x"${ac_cv_c_itclconfig}" = x ; then
24507 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24508 if test -f "$i/itclConfig.sh" ; then
24509 ac_cv_c_itclconfig=`(cd $i; pwd)`
24510 break
24511 fi
24512 done
24513 fi
24514 # check in a few other private locations
24515 if test x"${ac_cv_c_itclconfig}" = x ; then
24516 for i in \
24517 ${srcdir}/../itcl/itcl \
24518 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
24519 if test -f "$i/itclConfig.sh" ; then
24520 ac_cv_c_itclconfig=`(cd $i; pwd)`
24521 break
24522 fi
24523 done
24524 fi
bec39cab 24525
3fc11d3e
JM
24526fi
24527
24528 if test x"${ac_cv_c_itclconfig}" = x ; then
24529 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
24530 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
24531echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
24532 else
24533 no_itcl=
24534 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
24535 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
24536echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
24537 fi
24538fi
24539
24540 if test -z "${no_itcl}"; then
bec39cab 24541
3fc11d3e
JM
24542 if test -f "$ITCLCONFIG" ; then
24543 . $ITCLCONFIG
24544 fi
24545
3fc11d3e 24546
3fc11d3e
JM
24547
24548
bec39cab
AC
24549
24550
24551
24552
24553
24554
24555
3fc11d3e
JM
24556
24557 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 24558 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
24559 fi
24560
bec39cab 24561
3fc11d3e 24562 # now look for Itk library stuff
bec39cab 24563
3fc11d3e
JM
24564#
24565# Ok, lets find the itk configuration
bec39cab 24566# First, look for one uninstalled.
3fc11d3e
JM
24567# the alternative search directory is invoked by --with-itkconfig
24568#
24569
24570if test x"${no_itk}" = x ; then
24571 # we reset no_itk in case something fails here
24572 no_itk=true
bec39cab 24573
b4e70030 24574# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 24575if test "${with_itkconfig+set}" = set; then
b4e70030
JB
24576 withval="$with_itkconfig"
24577 with_itkconfig=${withval}
24578fi;
24579 echo "$as_me:$LINENO: checking for Itk configuration" >&5
24580echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
24581 if test "${ac_cv_c_itkconfig+set}" = set; then
24582 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24583else
bec39cab 24584
3fc11d3e
JM
24585
24586 # First check to see if --with-itkconfig was specified.
24587 if test x"${with_itkconfig}" != x ; then
24588 if test -f "${with_itkconfig}/itkConfig.sh" ; then
24589 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
24590 else
bec39cab
AC
24591 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
24592echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
24593 { (exit 1); exit 1; }; }
3fc11d3e
JM
24594 fi
24595 fi
24596
24597 # then check for a private Itk library
24598 if test x"${ac_cv_c_itkconfig}" = x ; then
24599 for i in \
24600 ../itcl/itk \
24601 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
24602 ../../itk \
24603 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
24604 ../../../itk \
24605 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
24606 if test -f "$i/itkConfig.sh" ; then
24607 ac_cv_c_itkconfig=`(cd $i; pwd)`
24608 break
24609 fi
24610 done
24611 fi
24612 # check in a few common install locations
24613 if test x"${ac_cv_c_itkconfig}" = x ; then
24614 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24615 if test -f "$i/itkConfig.sh" ; then
24616 ac_cv_c_itkconfig=`(cd $i; pwd)`
24617 break
24618 fi
24619 done
24620 fi
24621 # check in a few other private locations
24622 if test x"${ac_cv_c_itkconfig}" = x ; then
24623 for i in \
24624 ${srcdir}/../itcl/itk \
24625 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
24626 if test -f "$i/itkConfig.sh" ; then
24627 ac_cv_c_itkconfig=`(cd $i; pwd)`
24628 break
24629 fi
24630 done
24631 fi
bec39cab 24632
3fc11d3e
JM
24633fi
24634
24635 if test x"${ac_cv_c_itkconfig}" = x ; then
24636 ITKCONFIG="# no Itk configs found"
bec39cab
AC
24637 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
24638echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
24639 else
24640 no_itk=
24641 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
24642 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
24643echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
24644 fi
24645fi
24646
24647
bec39cab
AC
24648 if test -z "${no_itcl}"; then
24649
24650 if test -f "$ITKCONFIG" ; then
24651 . $ITKCONFIG
24652 fi
24653
24654
24655
24656
24657
24658
3fc11d3e 24659
3fc11d3e 24660
3fc11d3e
JM
24661
24662
3fc11d3e
JM
24663
24664
3fc11d3e 24665 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 24666 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
24667 fi
24668
4226a5a5 24669 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
24670
24671 # Include some libraries that Tcl and Tk want.
b2a1bd4f 24672 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
24673 # Yes, the ordering seems wrong here. But it isn't.
24674 # TK_LIBS is the list of libraries that need to be linked
24675 # after Tcl/Tk. Note that this isn't put into LIBS. If it
24676 # were in LIBS then any link tests after this point would
24677 # try to include things like `$(LIBGUI)', which wouldn't work.
24678 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
24679
24680 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24681 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24682 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
24683 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24684 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24685 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24686 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
24687
24688 if test x$gdb_cv_os_cygwin = xyes; then
24689 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24690 WIN32LDAPP="-Wl,--subsystem,console"
24691 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24692 fi
24693 fi
24694 fi
ffc6a242 24695
b4e70030
JB
24696
24697
24698subdirs="$subdirs gdbtk"
3ace7edb 24699
3fc11d3e
JM
24700fi
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
dd2504ab 24714
b4e70030
JB
24715echo "$as_me:$LINENO: checking for X" >&5
24716echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 24717
c906108c 24718
b4e70030 24719# Check whether --with-x or --without-x was given.
c906108c 24720if test "${with_x+set}" = set; then
b4e70030 24721 withval="$with_x"
c906108c 24722
b4e70030 24723fi;
c906108c
SS
24724# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24725if test "x$with_x" = xno; then
24726 # The user explicitly disabled X.
24727 have_x=disabled
24728else
24729 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24730 # Both variables are already set.
24731 have_x=yes
24732 else
bec39cab
AC
24733 if test "${ac_cv_have_x+set}" = set; then
24734 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
24735else
24736 # One or both of the vars are not set, and there is no cached value.
bec39cab 24737ac_x_includes=no ac_x_libraries=no
b4e70030 24738rm -fr conftest.dir
bec39cab
AC
24739if mkdir conftest.dir; then
24740 cd conftest.dir
c906108c 24741 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 24742 cat >Imakefile <<'_ACEOF'
c906108c
SS
24743acfindx:
24744 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 24745_ACEOF
b4e70030 24746 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
24747 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24748 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24749 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24750 for ac_extension in a so sl; do
24751 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
24752 test -f $ac_im_libdir/libX11.$ac_extension; then
24753 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
24754 fi
24755 done
24756 # Screen out bogus values from the imake configuration. They are
24757 # bogus both because they are the default anyway, and because
24758 # using them would break gcc on systems where it needs fixed includes.
bec39cab 24759 case $ac_im_incroot in
b4e70030 24760 /usr/include) ;;
bec39cab 24761 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 24762 esac
bec39cab 24763 case $ac_im_usrlibdir in
c906108c 24764 /usr/lib | /lib) ;;
bec39cab 24765 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
24766 esac
24767 fi
24768 cd ..
b4e70030 24769 rm -fr conftest.dir
c906108c
SS
24770fi
24771
bec39cab
AC
24772# Standard set of common directories for X headers.
24773# Check X11 before X11Rn because it is often a symlink to the current release.
24774ac_x_header_dirs='
24775/usr/X11/include
24776/usr/X11R6/include
24777/usr/X11R5/include
24778/usr/X11R4/include
24779
24780/usr/include/X11
24781/usr/include/X11R6
24782/usr/include/X11R5
24783/usr/include/X11R4
24784
24785/usr/local/X11/include
24786/usr/local/X11R6/include
24787/usr/local/X11R5/include
24788/usr/local/X11R4/include
24789
24790/usr/local/include/X11
24791/usr/local/include/X11R6
24792/usr/local/include/X11R5
24793/usr/local/include/X11R4
24794
24795/usr/X386/include
24796/usr/x386/include
24797/usr/XFree86/include/X11
24798
24799/usr/include
24800/usr/local/include
24801/usr/unsupported/include
24802/usr/athena/include
24803/usr/local/x11r5/include
24804/usr/lpp/Xamples/include
24805
24806/usr/openwin/include
24807/usr/openwin/share/include'
24808
24809if test "$ac_x_includes" = no; then
59f80f10 24810 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 24811 # First, try using that file with no special directory specified.
bec39cab
AC
24812 cat >conftest.$ac_ext <<_ACEOF
24813/* confdefs.h. */
24814_ACEOF
24815cat confdefs.h >>conftest.$ac_ext
24816cat >>conftest.$ac_ext <<_ACEOF
24817/* end confdefs.h. */
59f80f10 24818#include <X11/Intrinsic.h>
bec39cab
AC
24819_ACEOF
24820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24822 ac_status=$?
24823 grep -v '^ *+' conftest.er1 >conftest.err
24824 rm -f conftest.er1
24825 cat conftest.err >&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); } >/dev/null; then
24828 if test -s conftest.err; then
24829 ac_cpp_err=$ac_c_preproc_warn_flag
24830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24831 else
24832 ac_cpp_err=
24833 fi
24834else
24835 ac_cpp_err=yes
24836fi
24837if test -z "$ac_cpp_err"; then
c906108c
SS
24838 # We can compile using X headers with no special include directory.
24839ac_x_includes=
24840else
bec39cab
AC
24841 echo "$as_me: failed program was:" >&5
24842sed 's/^/| /' conftest.$ac_ext >&5
24843
24844 for ac_dir in $ac_x_header_dirs; do
59f80f10 24845 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
24846 ac_x_includes=$ac_dir
24847 break
24848 fi
24849done
c906108c 24850fi
bec39cab
AC
24851rm -f conftest.err conftest.$ac_ext
24852fi # $ac_x_includes = no
c906108c 24853
bec39cab 24854if test "$ac_x_libraries" = no; then
c906108c 24855 # Check for the libraries.
c906108c
SS
24856 # See if we find them without any special options.
24857 # Don't add to $LIBS permanently.
bec39cab 24858 ac_save_LIBS=$LIBS
4e8d927d 24859 LIBS="-lXt $LIBS"
bec39cab
AC
24860 cat >conftest.$ac_ext <<_ACEOF
24861/* confdefs.h. */
24862_ACEOF
24863cat confdefs.h >>conftest.$ac_ext
24864cat >>conftest.$ac_ext <<_ACEOF
24865/* end confdefs.h. */
59f80f10 24866#include <X11/Intrinsic.h>
bec39cab
AC
24867int
24868main ()
24869{
59f80f10 24870XtMalloc (0)
bec39cab
AC
24871 ;
24872 return 0;
24873}
24874_ACEOF
24875rm -f conftest.$ac_objext conftest$ac_exeext
24876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24877 (eval $ac_link) 2>conftest.er1
24878 ac_status=$?
24879 grep -v '^ *+' conftest.er1 >conftest.err
24880 rm -f conftest.er1
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
b4e70030
JB
24884 { ac_try='test -z "$ac_c_werror_flag"
24885 || test ! -s conftest.err'
bec39cab
AC
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest$ac_exeext'
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 LIBS=$ac_save_LIBS
c906108c
SS
24898# We can link X programs with no special library path.
24899ac_x_libraries=
24900else
bec39cab
AC
24901 echo "$as_me: failed program was:" >&5
24902sed 's/^/| /' conftest.$ac_ext >&5
24903
b4e70030 24904LIBS=$ac_save_LIBS
bec39cab 24905for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 24906do
bec39cab 24907 # Don't even attempt the hair of trying to link an X program!
c906108c 24908 for ac_extension in a so sl; do
b4e70030 24909 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
24910 ac_x_libraries=$ac_dir
24911 break 2
24912 fi
24913 done
24914done
24915fi
bec39cab
AC
24916rm -f conftest.err conftest.$ac_objext \
24917 conftest$ac_exeext conftest.$ac_ext
24918fi # $ac_x_libraries = no
c906108c 24919
bec39cab 24920if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
24921 # Didn't find X anywhere. Cache the known absence of X.
24922 ac_cv_have_x="have_x=no"
24923else
24924 # Record where we found X for the cache.
24925 ac_cv_have_x="have_x=yes \
bec39cab 24926 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
24927fi
24928fi
bec39cab 24929
c906108c
SS
24930 fi
24931 eval "$ac_cv_have_x"
24932fi # $with_x != no
24933
24934if test "$have_x" != yes; then
b4e70030
JB
24935 echo "$as_me:$LINENO: result: $have_x" >&5
24936echo "${ECHO_T}$have_x" >&6
c906108c
SS
24937 no_x=yes
24938else
24939 # If each of the values was on the command line, it overrides each guess.
24940 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24941 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24942 # Update the cache value to reflect the command line values.
24943 ac_cv_have_x="have_x=yes \
24944 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
24945 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24946echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
24947fi
24948
24949
9cc52bde
MK
24950# Check whether we should enable the TUI, but only do so if we really
24951# can.
24952if test x"$enable_tui" = xyes; then
24953 if test -d $srcdir/tui; then
24954 if test "$ac_cv_search_waddstr" != no; then
24955 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
24956 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
24957 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
24958 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
24959 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
24960 CONFIG_ALL="${CONFIG_ALL} all-tui"
24961 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
24962 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
24963 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
24964 else
bec39cab
AC
24965 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
24966echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
24967 fi
24968 fi
24969fi
24970
bec39cab 24971# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 24972# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
24973# This code just checks for a few cases where we'd like to ignore those
24974# definitions, even when they're present in the '.mt' file. These cases
24975# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 24976# not part of the source tree.
7a292a7a 24977#
b4e70030 24978# Check whether --enable-sim or --disable-sim was given.
7a292a7a 24979if test "${enable_sim+set}" = set; then
b4e70030
JB
24980 enableval="$enable_sim"
24981 echo "enable_sim = $enable_sim";
7a292a7a
SS
24982 echo "enableval = ${enableval}";
24983 case "${enableval}" in
24984 yes) ignore_sim=false ;;
24985 no) ignore_sim=true ;;
24986 *) ignore_sim=false ;;
24987 esac
24988else
24989 ignore_sim=false
b4e70030 24990fi;
7a292a7a
SS
24991
24992if test ! -d "${srcdir}/../sim"; then
24993 ignore_sim=true
24994fi
24995
9b624dbe
UW
24996SIM=
24997SIM_OBS=
24998if test "${ignore_sim}" = "false"; then
24999 if test x"${gdb_sim}" != x ; then
25000 SIM="${gdb_sim}"
25001 SIM_OBS="remote-sim.o"
60ca704f
SE
25002
25003cat >>confdefs.h <<\_ACEOF
7a292a7a 25004#define WITH_SIM 1
bec39cab 25005_ACEOF
7a292a7a 25006
9b624dbe 25007 fi
7a292a7a
SS
25008fi
25009
25010
25011
c906108c
SS
25012
25013
25014
25015
25016
25017
dfcd3bfb 25018
e56ac5c3
AC
25019
25020
b3a90332
AC
25021
25022
c35f4ffc 25023# List of host floatformats.
bec39cab
AC
25024
25025cat >>confdefs.h <<_ACEOF
c35f4ffc 25026#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 25027_ACEOF
c35f4ffc 25028
bec39cab
AC
25029
25030cat >>confdefs.h <<_ACEOF
c35f4ffc 25031#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
25032_ACEOF
25033
c35f4ffc 25034
bec39cab 25035cat >>confdefs.h <<_ACEOF
c35f4ffc 25036#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 25037_ACEOF
c35f4ffc
AC
25038
25039
c906108c
SS
25040# target_subdir is used by the testsuite to find the target libraries.
25041target_subdir=
25042if test "${host}" != "${target}"; then
25043 target_subdir="${target_alias}/"
25044fi
25045
25046
25047frags=
771b4502 25048if test "${gdb_native}" = "yes"; then
0dad8a66
MK
25049 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25050 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
25051 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25052echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25053 { (exit 1); exit 1; }; }
0dad8a66
MK
25054 fi
25055 frags="$frags $host_makefile_frag"
25056else
25057 host_makefile_frag=/dev/null
c906108c 25058fi
c906108c 25059
c906108c
SS
25060
25061
25062
771b4502 25063if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
25064# We pick this up from the host configuration file (.mh) because we
25065# do not have a native configuration Makefile fragment.
c906108c
SS
25066nativefile=`sed -n '
25067s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25068' ${host_makefile_frag}`
c906108c
SS
25069fi
25070
25071
b00a8037 25072if test x"${gdb_osabi}" != x ; then
bec39cab
AC
25073
25074cat >>confdefs.h <<_ACEOF
b00a8037 25075#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 25076_ACEOF
b00a8037
DJ
25077
25078fi
25079
8dcde887 25080# Enable multi-ice-gdb-server.
b4e70030 25081# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 25082if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
25083 enableval="$enable_multi_ice"
25084 case $enableval in
8dcde887
MK
25085 yes | no)
25086 ;;
bec39cab
AC
25087 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25088echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25089 { (exit 1); exit 1; }; } ;;
8dcde887 25090 esac
b4e70030 25091fi;
4e8d927d 25092if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
25093
25094
25095subdirs="$subdirs multi-ice"
3ace7edb 25096
a85f51e7
DJ
25097fi
25098
a13e2c95
UW
25099# We only build gdbserver automatically in a native configuration.
25100if test "$gdb_native" = "yes"; then
b4e70030
JB
25101 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25102echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 25103 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
25104 echo "$as_me:$LINENO: result: yes" >&5
25105echo "${ECHO_T}yes" >&6
25106
25107
25108subdirs="$subdirs gdbserver"
3ace7edb 25109
8dcde887 25110 else
b4e70030
JB
25111 echo "$as_me:$LINENO: result: no" >&5
25112echo "${ECHO_T}no" >&6
8dcde887
MK
25113 fi
25114fi
25115
db985757 25116# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 25117# to an empty version.
c906108c
SS
25118
25119files=
25120links=
5a2402b8 25121
c906108c 25122rm -f nm.h
5a2402b8 25123nm_h=""
c906108c 25124if test "${nativefile}" != ""; then
5a2402b8 25125 nm_h=nm.h
0f475e27
AC
25126 case "${nativefile}" in
25127 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25128 * ) GDB_NM_FILE="${nativefile}"
25129 esac
5a2402b8
AC
25130 files="${files} ${GDB_NM_FILE}"
25131 links="${links} nm.h"
60ca704f
SE
25132
25133cat >>confdefs.h <<_ACEOF
b78960be 25134#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 25135_ACEOF
5a2402b8 25136
c906108c 25137fi
5a2402b8
AC
25138
25139
bec39cab
AC
25140ac_sources="$files"
25141ac_dests="$links"
25142while test -n "$ac_sources"; do
25143 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25144 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25145 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25146done
b4e70030 25147 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
25148
25149
c906108c
SS
25150
25151
c906108c 25152
c906108c 25153
bec39cab
AC
25154cat >>confdefs.h <<\_ACEOF
25155#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25156_ACEOF
c906108c 25157
234b45d4 25158
234b45d4
KB
25159
25160
25161
b4e70030 25162# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 25163if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
25164 withval="$with_libiconv_prefix"
25165
234b45d4
KB
25166 for dir in `echo "$withval" | tr : ' '`; do
25167 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25168 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25169 done
234b45d4 25170
b4e70030 25171fi;
234b45d4 25172
b4e70030
JB
25173 echo "$as_me:$LINENO: checking for iconv" >&5
25174echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
25175if test "${am_cv_func_iconv+set}" = set; then
25176 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 25177else
bec39cab 25178
234b45d4
KB
25179 am_cv_func_iconv="no, consider installing GNU libiconv"
25180 am_cv_lib_iconv=no
bec39cab
AC
25181 cat >conftest.$ac_ext <<_ACEOF
25182/* confdefs.h. */
25183_ACEOF
25184cat confdefs.h >>conftest.$ac_ext
25185cat >>conftest.$ac_ext <<_ACEOF
25186/* end confdefs.h. */
234b45d4
KB
25187#include <stdlib.h>
25188#include <iconv.h>
bec39cab
AC
25189int
25190main ()
25191{
234b45d4
KB
25192iconv_t cd = iconv_open("","");
25193 iconv(cd,NULL,NULL,NULL,NULL);
25194 iconv_close(cd);
bec39cab
AC
25195 ;
25196 return 0;
25197}
25198_ACEOF
25199rm -f conftest.$ac_objext conftest$ac_exeext
25200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25201 (eval $ac_link) 2>conftest.er1
25202 ac_status=$?
25203 grep -v '^ *+' conftest.er1 >conftest.err
25204 rm -f conftest.er1
25205 cat conftest.err >&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } &&
b4e70030
JB
25208 { ac_try='test -z "$ac_c_werror_flag"
25209 || test ! -s conftest.err'
bec39cab
AC
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; } &&
25215 { ac_try='test -s conftest$ac_exeext'
25216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25218 ac_status=$?
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
234b45d4
KB
25221 am_cv_func_iconv=yes
25222else
bec39cab
AC
25223 echo "$as_me: failed program was:" >&5
25224sed 's/^/| /' conftest.$ac_ext >&5
25225
234b45d4 25226fi
bec39cab
AC
25227rm -f conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25229 if test "$am_cv_func_iconv" != yes; then
25230 am_save_LIBS="$LIBS"
25231 LIBS="$LIBS -liconv"
bec39cab
AC
25232 cat >conftest.$ac_ext <<_ACEOF
25233/* confdefs.h. */
25234_ACEOF
25235cat confdefs.h >>conftest.$ac_ext
25236cat >>conftest.$ac_ext <<_ACEOF
25237/* end confdefs.h. */
234b45d4
KB
25238#include <stdlib.h>
25239#include <iconv.h>
bec39cab
AC
25240int
25241main ()
25242{
234b45d4
KB
25243iconv_t cd = iconv_open("","");
25244 iconv(cd,NULL,NULL,NULL,NULL);
25245 iconv_close(cd);
bec39cab
AC
25246 ;
25247 return 0;
25248}
25249_ACEOF
25250rm -f conftest.$ac_objext conftest$ac_exeext
25251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25252 (eval $ac_link) 2>conftest.er1
25253 ac_status=$?
25254 grep -v '^ *+' conftest.er1 >conftest.err
25255 rm -f conftest.er1
25256 cat conftest.err >&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); } &&
b4e70030
JB
25259 { ac_try='test -z "$ac_c_werror_flag"
25260 || test ! -s conftest.err'
bec39cab
AC
25261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262 (eval $ac_try) 2>&5
25263 ac_status=$?
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); }; } &&
25266 { ac_try='test -s conftest$ac_exeext'
25267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25268 (eval $ac_try) 2>&5
25269 ac_status=$?
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); }; }; then
234b45d4
KB
25272 am_cv_lib_iconv=yes
25273 am_cv_func_iconv=yes
25274else
bec39cab
AC
25275 echo "$as_me: failed program was:" >&5
25276sed 's/^/| /' conftest.$ac_ext >&5
25277
234b45d4 25278fi
bec39cab
AC
25279rm -f conftest.err conftest.$ac_objext \
25280 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25281 LIBS="$am_save_LIBS"
25282 fi
bec39cab
AC
25283
25284fi
b4e70030
JB
25285echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25286echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
25287 if test "$am_cv_func_iconv" = yes; then
25288
25289cat >>confdefs.h <<\_ACEOF
25290#define HAVE_ICONV 1
25291_ACEOF
25292
b4e70030
JB
25293 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25294echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
25295 if test "${am_cv_proto_iconv+set}" = set; then
25296 echo $ECHO_N "(cached) $ECHO_C" >&6
25297else
25298
25299 cat >conftest.$ac_ext <<_ACEOF
25300/* confdefs.h. */
25301_ACEOF
25302cat confdefs.h >>conftest.$ac_ext
25303cat >>conftest.$ac_ext <<_ACEOF
25304/* end confdefs.h. */
25305
25306#include <stdlib.h>
25307#include <iconv.h>
25308extern
25309#ifdef __cplusplus
25310"C"
25311#endif
25312#if defined(__STDC__) || defined(__cplusplus)
25313size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25314#else
25315size_t iconv();
25316#endif
25317
25318int
25319main ()
25320{
25321
25322 ;
25323 return 0;
25324}
25325_ACEOF
25326rm -f conftest.$ac_objext
25327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25328 (eval $ac_compile) 2>conftest.er1
25329 ac_status=$?
25330 grep -v '^ *+' conftest.er1 >conftest.err
25331 rm -f conftest.er1
25332 cat conftest.err >&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); } &&
b4e70030
JB
25335 { ac_try='test -z "$ac_c_werror_flag"
25336 || test ! -s conftest.err'
bec39cab
AC
25337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; } &&
25342 { ac_try='test -s conftest.$ac_objext'
25343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }; }; then
25348 am_cv_proto_iconv_arg1=""
25349else
25350 echo "$as_me: failed program was:" >&5
25351sed 's/^/| /' conftest.$ac_ext >&5
25352
b4e70030 25353am_cv_proto_iconv_arg1="const"
bec39cab
AC
25354fi
25355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25356 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);"
25357fi
25358
25359 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 25360 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
25361 }$am_cv_proto_iconv" >&5
25362echo "${ECHO_T}${ac_t:-
b4e70030 25363 }$am_cv_proto_iconv" >&6
bec39cab
AC
25364
25365cat >>confdefs.h <<_ACEOF
25366#define ICONV_CONST $am_cv_proto_iconv_arg1
25367_ACEOF
25368
25369 fi
25370 LIBICONV=
25371 if test "$am_cv_lib_iconv" = yes; then
25372 LIBICONV="-liconv"
25373 fi
25374
25375
25376
e28b3332 25377 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
b4e70030 25378 ac_config_commands="$ac_config_commands default"
bec39cab
AC
25379cat >confcache <<\_ACEOF
25380# This file is a shell script that caches the results of configure
25381# tests run on this system so they can be shared between configure
25382# scripts and configure runs, see configure's option --config-cache.
25383# It is not useful on other systems. If it contains results you don't
25384# want to keep, you may remove or edit it.
25385#
25386# config.status only pays attention to the cache file if you give it
25387# the --recheck option to rerun configure.
25388#
25389# `ac_cv_env_foo' variables (set or unset) will be overridden when
25390# loading this file, other *unset* `ac_cv_foo' will be assigned the
25391# following values.
25392
25393_ACEOF
25394
25395# The following way of writing the cache mishandles newlines in values,
25396# but we know of no workaround that is simple, portable, and efficient.
b4e70030 25397# So, don't put newlines in cache variables' values.
bec39cab
AC
25398# Ultrix sh set writes to stderr and can't be redirected directly,
25399# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 25400{
bec39cab 25401 (set) 2>&1 |
b4e70030
JB
25402 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25403 *ac_space=\ *)
bec39cab
AC
25404 # `set' does not quote correctly, so add quotes (double-quote
25405 # substitution turns \\\\ into \\, and sed turns \\ into \).
25406 sed -n \
25407 "s/'/'\\\\''/g;
25408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 25409 ;;
bec39cab
AC
25410 *)
25411 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
25412 sed -n \
25413 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 25414 ;;
b4e70030
JB
25415 esac;
25416} |
bec39cab
AC
25417 sed '
25418 t clear
b4e70030 25419 : clear
bec39cab
AC
25420 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25421 t end
b4e70030
JB
25422 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25423 : end' >>confcache
bec39cab
AC
25424if diff $cache_file confcache >/dev/null 2>&1; then :; else
25425 if test -w $cache_file; then
b4e70030 25426 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
25427 cat confcache >$cache_file
25428 else
b4e70030 25429 echo "not updating unwritable cache $cache_file"
bec39cab
AC
25430 fi
25431fi
25432rm -f confcache
25433
25434test "x$prefix" = xNONE && prefix=$ac_default_prefix
25435# Let make expand exec_prefix.
25436test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25437
b4e70030
JB
25438# VPATH may cause trouble with some makes, so we remove $(srcdir),
25439# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25440# trailing colons and then remove the whole line if VPATH becomes empty
25441# (actually we leave an empty line to preserve line numbers).
25442if test "x$srcdir" = x.; then
25443 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25444s/:*\$(srcdir):*/:/;
25445s/:*\${srcdir}:*/:/;
25446s/:*@srcdir@:*/:/;
25447s/^\([^=]*=[ ]*\):*/\1/;
25448s/:*$//;
25449s/^[^=]*=[ ]*$//;
25450}'
25451fi
25452
bec39cab
AC
25453DEFS=-DHAVE_CONFIG_H
25454
25455ac_libobjs=
25456ac_ltlibobjs=
25457for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25458 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
25459 ac_i=`echo "$ac_i" |
25460 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25461 # 2. Add them.
25462 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25463 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
25464done
25465LIBOBJS=$ac_libobjs
25466
25467LTLIBOBJS=$ac_ltlibobjs
25468
25469
85981d60
AC
25470if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25471 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25472Usually this means the macro was only invoked conditionally." >&5
25473echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25474Usually this means the macro was only invoked conditionally." >&2;}
25475 { (exit 1); exit 1; }; }
25476fi
e28b3332
DJ
25477if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25478 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25479Usually this means the macro was only invoked conditionally." >&5
25480echo "$as_me: error: conditional \"AMDEP\" was never defined.
25481Usually this means the macro was only invoked conditionally." >&2;}
25482 { (exit 1); exit 1; }; }
25483fi
25484if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25485 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25486Usually this means the macro was only invoked conditionally." >&5
25487echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25488Usually this means the macro was only invoked conditionally." >&2;}
25489 { (exit 1); exit 1; }; }
25490fi
bec39cab
AC
25491
25492: ${CONFIG_STATUS=./config.status}
25493ac_clean_files_save=$ac_clean_files
25494ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25495{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25496echo "$as_me: creating $CONFIG_STATUS" >&6;}
25497cat >$CONFIG_STATUS <<_ACEOF
25498#! $SHELL
25499# Generated by $as_me.
25500# Run this file to recreate the current configuration.
25501# Compiler output produced by configure, useful for debugging
25502# configure, is in config.log if it exists.
25503
25504debug=false
25505ac_cs_recheck=false
25506ac_cs_silent=false
25507SHELL=\${CONFIG_SHELL-$SHELL}
25508_ACEOF
25509
25510cat >>$CONFIG_STATUS <<\_ACEOF
25511## --------------------- ##
25512## M4sh Initialization. ##
25513## --------------------- ##
25514
25515# Be Bourne compatible
25516if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25517 emulate sh
25518 NULLCMD=:
25519 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25520 # is contrary to our usage. Disable this feature.
25521 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
25522elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25523 set -o posix
bec39cab
AC
25524fi
25525DUALCASE=1; export DUALCASE # for MKS sh
25526
25527# Support unset when possible.
25528if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25529 as_unset=unset
25530else
25531 as_unset=false
25532fi
25533
25534
25535# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 25536$as_unset ENV MAIL MAILPATH
bec39cab
AC
25537PS1='$ '
25538PS2='> '
25539PS4='+ '
25540
25541# NLS nuisances.
25542for as_var in \
25543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25545 LC_TELEPHONE LC_TIME
25546do
25547 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25548 eval $as_var=C; export $as_var
25549 else
b4e70030 25550 $as_unset $as_var
bec39cab
AC
25551 fi
25552done
25553
25554# Required to use basename.
b4e70030 25555if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
25556 as_expr=expr
25557else
25558 as_expr=false
25559fi
25560
b4e70030 25561if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
25562 as_basename=basename
25563else
25564 as_basename=false
25565fi
25566
25567
25568# Name of the executable.
b4e70030 25569as_me=`$as_basename "$0" ||
bec39cab
AC
25570$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25571 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
25572 X"$0" : 'X\(/\)$' \| \
25573 . : '\(.\)' 2>/dev/null ||
bec39cab 25574echo X/"$0" |
b4e70030
JB
25575 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25576 /^X\/\(\/\/\)$/{ s//\1/; q; }
25577 /^X\/\(\/\).*/{ s//\1/; q; }
25578 s/.*/./; q'`
bec39cab 25579
b4e70030
JB
25580
25581# PATH needs CR, and LINENO needs CR and PATH.
25582# Avoid depending upon Character Ranges.
25583as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25584as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25585as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25586as_cr_digits='0123456789'
25587as_cr_alnum=$as_cr_Letters$as_cr_digits
25588
25589# The user is always right.
25590if test "${PATH_SEPARATOR+set}" != set; then
25591 echo "#! /bin/sh" >conf$$.sh
25592 echo "exit 0" >>conf$$.sh
25593 chmod +x conf$$.sh
25594 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25595 PATH_SEPARATOR=';'
25596 else
25597 PATH_SEPARATOR=:
25598 fi
25599 rm -f conf$$.sh
25600fi
bec39cab
AC
25601
25602
b4e70030
JB
25603 as_lineno_1=$LINENO
25604 as_lineno_2=$LINENO
25605 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25606 test "x$as_lineno_1" != "x$as_lineno_2" &&
25607 test "x$as_lineno_3" = "x$as_lineno_2" || {
25608 # Find who we are. Look in the path if we contain no path at all
25609 # relative or not.
25610 case $0 in
25611 *[\\/]* ) as_myself=$0 ;;
25612 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25613for as_dir in $PATH
25614do
25615 IFS=$as_save_IFS
25616 test -z "$as_dir" && as_dir=.
25617 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25618done
bec39cab 25619
b4e70030
JB
25620 ;;
25621 esac
25622 # We did not find ourselves, most probably we were run as `sh COMMAND'
25623 # in which case we are not to be found in the path.
25624 if test "x$as_myself" = x; then
25625 as_myself=$0
25626 fi
25627 if test ! -f "$as_myself"; then
25628 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25629echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25630 { (exit 1); exit 1; }; }
25631 fi
25632 case $CONFIG_SHELL in
25633 '')
25634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25635for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25636do
25637 IFS=$as_save_IFS
25638 test -z "$as_dir" && as_dir=.
25639 for as_base in sh bash ksh sh5; do
25640 case $as_dir in
25641 /*)
25642 if ("$as_dir/$as_base" -c '
bec39cab
AC
25643 as_lineno_1=$LINENO
25644 as_lineno_2=$LINENO
b4e70030 25645 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 25646 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
25647 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25648 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25649 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25650 CONFIG_SHELL=$as_dir/$as_base
25651 export CONFIG_SHELL
25652 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25653 fi;;
25654 esac
25655 done
25656done
25657;;
25658 esac
bec39cab
AC
25659
25660 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25661 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
25662 # line-number line before each line; the second 'sed' does the real
25663 # work. The second script uses 'N' to pair each line-number line
25664 # with the numbered line, and appends trailing '-' during
25665 # substitution so that $LINENO is not a special case at line end.
bec39cab 25666 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
25667 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25668 sed '=' <$as_myself |
bec39cab
AC
25669 sed '
25670 N
b4e70030
JB
25671 s,$,-,
25672 : loop
25673 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 25674 t loop
b4e70030
JB
25675 s,-$,,
25676 s,^['$as_cr_digits']*\n,,
bec39cab 25677 ' >$as_me.lineno &&
b4e70030
JB
25678 chmod +x $as_me.lineno ||
25679 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25680echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
25681 { (exit 1); exit 1; }; }
25682
25683 # Don't try to exec as it changes $[0], causing all sort of problems
25684 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
25685 # original and so on. Autoconf is especially sensible to this).
25686 . ./$as_me.lineno
bec39cab
AC
25687 # Exit status is that of the last command.
25688 exit
25689}
25690
25691
b4e70030
JB
25692case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25693 *c*,-n*) ECHO_N= ECHO_C='
25694' ECHO_T=' ' ;;
25695 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25696 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
25697esac
25698
b4e70030 25699if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
25700 as_expr=expr
25701else
25702 as_expr=false
25703fi
25704
25705rm -f conf$$ conf$$.exe conf$$.file
25706echo >conf$$.file
25707if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
25708 # We could just check for DJGPP; but this test a) works b) is more generic
25709 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25710 if test -f conf$$.exe; then
25711 # Don't use ln at all; we don't have any links
bec39cab 25712 as_ln_s='cp -p'
b4e70030
JB
25713 else
25714 as_ln_s='ln -s'
25715 fi
bec39cab
AC
25716elif ln conf$$.file conf$$ 2>/dev/null; then
25717 as_ln_s=ln
25718else
25719 as_ln_s='cp -p'
25720fi
b4e70030 25721rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
25722
25723if mkdir -p . 2>/dev/null; then
25724 as_mkdir_p=:
25725else
25726 test -d ./-p && rmdir ./-p
25727 as_mkdir_p=false
25728fi
25729
b4e70030 25730as_executable_p="test -f"
bec39cab
AC
25731
25732# Sed expression to map a string onto a valid CPP name.
25733as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25734
25735# Sed expression to map a string onto a valid variable name.
25736as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25737
25738
b4e70030
JB
25739# IFS
25740# We need space, tab and new line, in precisely that order.
25741as_nl='
25742'
25743IFS=" $as_nl"
25744
25745# CDPATH.
25746$as_unset CDPATH
25747
bec39cab
AC
25748exec 6>&1
25749
b4e70030 25750# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 25751# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
25752# values after options handling. Logging --version etc. is OK.
25753exec 5>>config.log
25754{
25755 echo
25756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25757## Running $as_me. ##
25758_ASBOX
25759} >&5
25760cat >&5 <<_CSEOF
25761
bec39cab 25762This file was extended by $as_me, which was
b4e70030 25763generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
25764
25765 CONFIG_FILES = $CONFIG_FILES
25766 CONFIG_HEADERS = $CONFIG_HEADERS
25767 CONFIG_LINKS = $CONFIG_LINKS
25768 CONFIG_COMMANDS = $CONFIG_COMMANDS
25769 $ $0 $@
25770
b4e70030
JB
25771_CSEOF
25772echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25773echo >&5
bec39cab
AC
25774_ACEOF
25775
25776# Files that config.status was made for.
b4e70030
JB
25777if test -n "$ac_config_files"; then
25778 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25779fi
234b45d4 25780
b4e70030
JB
25781if test -n "$ac_config_headers"; then
25782 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25783fi
25784
25785if test -n "$ac_config_links"; then
25786 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25787fi
25788
25789if test -n "$ac_config_commands"; then
25790 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25791fi
234b45d4 25792
bec39cab 25793cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 25794
bec39cab
AC
25795ac_cs_usage="\
25796\`$as_me' instantiates files from templates according to the
25797current configuration.
234b45d4 25798
bec39cab 25799Usage: $0 [OPTIONS] [FILE]...
234b45d4 25800
bec39cab
AC
25801 -h, --help print this help, then exit
25802 -V, --version print version number, then exit
25803 -q, --quiet do not print progress messages
25804 -d, --debug don't remove temporary files
25805 --recheck update $as_me by reconfiguring in the same conditions
25806 --file=FILE[:TEMPLATE]
25807 instantiate the configuration file FILE
25808 --header=FILE[:TEMPLATE]
25809 instantiate the configuration header FILE
234b45d4 25810
bec39cab
AC
25811Configuration files:
25812$config_files
234b45d4 25813
bec39cab
AC
25814Configuration headers:
25815$config_headers
234b45d4 25816
bec39cab
AC
25817Configuration links:
25818$config_links
234b45d4 25819
bec39cab
AC
25820Configuration commands:
25821$config_commands
25822
25823Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 25824_ACEOF
b4e70030 25825
bec39cab
AC
25826cat >>$CONFIG_STATUS <<_ACEOF
25827ac_cs_version="\\
25828config.status
b4e70030 25829configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
25830 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25831
b4e70030 25832Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
25833This config.status script is free software; the Free Software Foundation
25834gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
25835srcdir=$srcdir
25836INSTALL="$INSTALL"
bec39cab
AC
25837_ACEOF
25838
25839cat >>$CONFIG_STATUS <<\_ACEOF
25840# If no file are specified by the user, then we need to provide default
25841# value. By we need to know if files were specified by the user.
25842ac_need_defaults=:
25843while test $# != 0
25844do
25845 case $1 in
25846 --*=*)
b4e70030
JB
25847 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25848 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 25849 ac_shift=:
c906108c 25850 ;;
b4e70030 25851 -*)
bec39cab
AC
25852 ac_option=$1
25853 ac_optarg=$2
25854 ac_shift=shift
c906108c 25855 ;;
b4e70030
JB
25856 *) # This is not an option, so the user has probably given explicit
25857 # arguments.
25858 ac_option=$1
25859 ac_need_defaults=false;;
bec39cab 25860 esac
c906108c 25861
bec39cab
AC
25862 case $ac_option in
25863 # Handling of the options.
b4e70030
JB
25864_ACEOF
25865cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25866 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25867 ac_cs_recheck=: ;;
b4e70030
JB
25868 --version | --vers* | -V )
25869 echo "$ac_cs_version"; exit 0 ;;
25870 --he | --h)
25871 # Conflict between --help and --header
25872 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25873Try \`$0 --help' for more information." >&5
25874echo "$as_me: error: ambiguous option: $1
25875Try \`$0 --help' for more information." >&2;}
25876 { (exit 1); exit 1; }; };;
25877 --help | --hel | -h )
25878 echo "$ac_cs_usage"; exit 0 ;;
25879 --debug | --d* | -d )
bec39cab
AC
25880 debug=: ;;
25881 --file | --fil | --fi | --f )
25882 $ac_shift
25883 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25884 ac_need_defaults=false;;
25885 --header | --heade | --head | --hea )
25886 $ac_shift
25887 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25888 ac_need_defaults=false;;
25889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25891 ac_cs_silent=: ;;
c906108c 25892
bec39cab 25893 # This is an error.
b4e70030
JB
25894 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25895Try \`$0 --help' for more information." >&5
25896echo "$as_me: error: unrecognized option: $1
25897Try \`$0 --help' for more information." >&2;}
bec39cab 25898 { (exit 1); exit 1; }; } ;;
c906108c 25899
b4e70030 25900 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 25901
bec39cab
AC
25902 esac
25903 shift
25904done
c906108c 25905
bec39cab 25906ac_configure_extra_args=
c906108c 25907
bec39cab
AC
25908if $ac_cs_silent; then
25909 exec 6>/dev/null
25910 ac_configure_extra_args="$ac_configure_extra_args --silent"
25911fi
c906108c 25912
bec39cab
AC
25913_ACEOF
25914cat >>$CONFIG_STATUS <<_ACEOF
25915if \$ac_cs_recheck; then
b4e70030
JB
25916 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25917 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
25918fi
25919
25920_ACEOF
25921
25922cat >>$CONFIG_STATUS <<_ACEOF
c906108c 25923#
b4e70030 25924# INIT-COMMANDS section.
c906108c 25925#
c906108c 25926
e28b3332 25927AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 25928
4e8d927d
DJ
25929GCC="$GCC"
25930CC="$CC"
25931acx_cv_header_stdint="$acx_cv_header_stdint"
25932acx_cv_type_int8_t="$acx_cv_type_int8_t"
25933acx_cv_type_int16_t="$acx_cv_type_int16_t"
25934acx_cv_type_int32_t="$acx_cv_type_int32_t"
25935acx_cv_type_int64_t="$acx_cv_type_int64_t"
25936acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
25937ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
25938ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
25939ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25940ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25941ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
25942ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25943ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25944ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
25945
bec39cab
AC
25946
25947gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
25948nativefile=$nativefile
25949
25950
25951_ACEOF
25952
4e8d927d 25953
b4e70030
JB
25954
25955cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 25956for ac_config_target in $ac_config_targets
c906108c 25957do
b4e70030
JB
25958 case "$ac_config_target" in
25959 # Handling of arguments.
25960 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25961 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
e28b3332 25962 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
b4e70030 25963 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
e28b3332 25964 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b4e70030
JB
25965 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
25966 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25967 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
25968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25969echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25970 { (exit 1); exit 1; }; };;
c906108c
SS
25971 esac
25972done
25973
bec39cab
AC
25974# If the user did not use the arguments to specify the items to instantiate,
25975# then the envvar interface is used. Set only those that are not.
25976# We use the long form for the default assignment because of an extremely
25977# bizarre bug on SunOS 4.1.3.
25978if $ac_need_defaults; then
25979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25981 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25983fi
25984
b4e70030
JB
25985# Have a temporary directory for convenience. Make it in the build tree
25986# simply because there is no reason to put it here, and in addition,
25987# creating and moving files from /tmp can sometimes cause problems.
25988# Create a temporary directory, and hook for its removal unless debugging.
25989$debug ||
25990{
25991 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25992 trap '{ (exit 1); exit 1; }' 1 2 13 15
25993}
4e8d927d 25994
b4e70030 25995# Create a (secure) tmp directory for tmp files.
4e8d927d 25996
b4e70030
JB
25997{
25998 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25999 test -n "$tmp" && test -d "$tmp"
26000} ||
26001{
26002 tmp=./confstat$$-$RANDOM
26003 (umask 077 && mkdir $tmp)
26004} ||
26005{
26006 echo "$me: cannot create a temporary directory in ." >&2
26007 { (exit 1); exit 1; }
26008}
4e8d927d 26009
b4e70030 26010_ACEOF
4e8d927d 26011
b4e70030 26012cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 26013
b4e70030
JB
26014#
26015# CONFIG_FILES section.
26016#
4e8d927d 26017
b4e70030
JB
26018# No need to generate the scripts if there are no CONFIG_FILES.
26019# This happens for instance when ./config.status config.h
26020if test -n "\$CONFIG_FILES"; then
26021 # Protect against being on the right side of a sed subst in config.status.
26022 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26023 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26024s,@SHELL@,$SHELL,;t t
26025s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26026s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26027s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26028s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26029s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26030s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26031s,@exec_prefix@,$exec_prefix,;t t
26032s,@prefix@,$prefix,;t t
26033s,@program_transform_name@,$program_transform_name,;t t
26034s,@bindir@,$bindir,;t t
26035s,@sbindir@,$sbindir,;t t
26036s,@libexecdir@,$libexecdir,;t t
26037s,@datadir@,$datadir,;t t
26038s,@sysconfdir@,$sysconfdir,;t t
26039s,@sharedstatedir@,$sharedstatedir,;t t
26040s,@localstatedir@,$localstatedir,;t t
26041s,@libdir@,$libdir,;t t
26042s,@includedir@,$includedir,;t t
26043s,@oldincludedir@,$oldincludedir,;t t
26044s,@infodir@,$infodir,;t t
26045s,@mandir@,$mandir,;t t
26046s,@build_alias@,$build_alias,;t t
26047s,@host_alias@,$host_alias,;t t
26048s,@target_alias@,$target_alias,;t t
26049s,@DEFS@,$DEFS,;t t
26050s,@ECHO_C@,$ECHO_C,;t t
26051s,@ECHO_N@,$ECHO_N,;t t
26052s,@ECHO_T@,$ECHO_T,;t t
26053s,@LIBS@,$LIBS,;t t
26054s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26055s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26056s,@MAINT@,$MAINT,;t t
26057s,@CC@,$CC,;t t
26058s,@CFLAGS@,$CFLAGS,;t t
26059s,@LDFLAGS@,$LDFLAGS,;t t
26060s,@CPPFLAGS@,$CPPFLAGS,;t t
26061s,@ac_ct_CC@,$ac_ct_CC,;t t
26062s,@EXEEXT@,$EXEEXT,;t t
26063s,@OBJEXT@,$OBJEXT,;t t
26064s,@CPP@,$CPP,;t t
26065s,@EGREP@,$EGREP,;t t
26066s,@build@,$build,;t t
26067s,@build_cpu@,$build_cpu,;t t
26068s,@build_vendor@,$build_vendor,;t t
26069s,@build_os@,$build_os,;t t
26070s,@host@,$host,;t t
26071s,@host_cpu@,$host_cpu,;t t
26072s,@host_vendor@,$host_vendor,;t t
26073s,@host_os@,$host_os,;t t
26074s,@target@,$target,;t t
26075s,@target_cpu@,$target_cpu,;t t
26076s,@target_vendor@,$target_vendor,;t t
26077s,@target_os@,$target_os,;t t
b4e70030 26078s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
26079s,@LIBINTL@,$LIBINTL,;t t
26080s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26081s,@INCINTL@,$INCINTL,;t t
b4e70030 26082s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
26083s,@GMSGFMT@,$GMSGFMT,;t t
26084s,@POSUB@,$POSUB,;t t
b4e70030 26085s,@CATALOGS@,$CATALOGS,;t t
b4e70030 26086s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 26087s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
26088s,@GENCAT@,$GENCAT,;t t
26089s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
26090s,@localedir@,$localedir,;t t
26091s,@PACKAGE@,$PACKAGE,;t t
b4e70030
JB
26092s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26093s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26094s,@INSTALL_DATA@,$INSTALL_DATA,;t t
e28b3332
DJ
26095s,@CYGPATH_W@,$CYGPATH_W,;t t
26096s,@VERSION@,$VERSION,;t t
26097s,@ACLOCAL@,$ACLOCAL,;t t
26098s,@AUTOCONF@,$AUTOCONF,;t t
26099s,@AUTOMAKE@,$AUTOMAKE,;t t
26100s,@AUTOHEADER@,$AUTOHEADER,;t t
26101s,@MAKEINFO@,$MAKEINFO,;t t
26102s,@install_sh@,$install_sh,;t t
26103s,@STRIP@,$STRIP,;t t
26104s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26105s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26106s,@mkdir_p@,$mkdir_p,;t t
26107s,@AWK@,$AWK,;t t
26108s,@SET_MAKE@,$SET_MAKE,;t t
26109s,@am__leading_dot@,$am__leading_dot,;t t
26110s,@AMTAR@,$AMTAR,;t t
26111s,@am__tar@,$am__tar,;t t
26112s,@am__untar@,$am__untar,;t t
26113s,@DEPDIR@,$DEPDIR,;t t
26114s,@am__include@,$am__include,;t t
26115s,@am__quote@,$am__quote,;t t
26116s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26117s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26118s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26119s,@CCDEPMODE@,$CCDEPMODE,;t t
26120s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26121s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26122s,@subdirs@,$subdirs,;t t
26123s,@TARGET_OBS@,$TARGET_OBS,;t t
b4e70030 26124s,@LN_S@,$LN_S,;t t
20e95c23
DJ
26125s,@RANLIB@,$RANLIB,;t t
26126s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
26127s,@YACC@,$YACC,;t t
26128s,@AR@,$AR,;t t
26129s,@ac_ct_AR@,$ac_ct_AR,;t t
26130s,@DLLTOOL@,$DLLTOOL,;t t
26131s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26132s,@WINDRES@,$WINDRES,;t t
26133s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26134s,@MIG@,$MIG,;t t
26135s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
26136s,@READLINE@,$READLINE,;t t
26137s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26138s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
26139s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26140s,@LIBEXPAT@,$LIBEXPAT,;t t
26141s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 26142s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
26143s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26144s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26145s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26146s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26147s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26148s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26149s,@WIN32LIBS@,$WIN32LIBS,;t t
26150s,@LIBGUI@,$LIBGUI,;t t
26151s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26152s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26153s,@TCL_VERSION@,$TCL_VERSION,;t t
26154s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
26155s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
26156s,@TCL_CC@,$TCL_CC,;t t
26157s,@TCL_DEFS@,$TCL_DEFS,;t t
26158s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
26159s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
26160s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
26161s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
26162s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
26163s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
26164s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
26165s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
26166s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
26167s,@TCL_RANLIB@,$TCL_RANLIB,;t t
26168s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
26169s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26170s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
26171s,@TK_VERSION@,$TK_VERSION,;t t
26172s,@TK_DEFS@,$TK_DEFS,;t t
26173s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
26174s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26175s,@TK_XLIBSW@,$TK_XLIBSW,;t t
26176s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
26177s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26178s,@TCLHDIR@,$TCLHDIR,;t t
26179s,@TKHDIR@,$TKHDIR,;t t
26180s,@ITCLHDIR@,$ITCLHDIR,;t t
26181s,@ITKHDIR@,$ITKHDIR,;t t
26182s,@ITCL_VERSION@,$ITCL_VERSION,;t t
26183s,@ITCL_DEFS@,$ITCL_DEFS,;t t
26184s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
26185s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
26186s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
26187s,@ITK_VERSION@,$ITK_VERSION,;t t
26188s,@ITK_DEFS@,$ITK_DEFS,;t t
26189s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
26190s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
26191s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
26192s,@X_CFLAGS@,$X_CFLAGS,;t t
26193s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26194s,@X_LIBS@,$X_LIBS,;t t
26195s,@TCL_DEPS@,$TCL_DEPS,;t t
26196s,@TK_DEPS@,$TK_DEPS,;t t
26197s,@ITCLLIB@,$ITCLLIB,;t t
26198s,@ITCL_DEPS@,$ITCL_DEPS,;t t
26199s,@ITKLIB@,$ITKLIB,;t t
26200s,@ITK_DEPS@,$ITK_DEPS,;t t
26201s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26202s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26203s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
26204s,@SIM@,$SIM,;t t
26205s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
26206s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26207s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26208s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26209s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26210s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26211s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26212s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26213s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26214s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26215s,@target_subdir@,$target_subdir,;t t
26216s,@frags@,$frags,;t t
b4e70030
JB
26217s,@nm_h@,$nm_h,;t t
26218s,@LIBICONV@,$LIBICONV,;t t
26219s,@LIBOBJS@,$LIBOBJS,;t t
26220s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26221/@host_makefile_frag@/r $host_makefile_frag
26222s,@host_makefile_frag@,,;t t
b4e70030
JB
26223CEOF
26224
26225_ACEOF
26226
26227 cat >>$CONFIG_STATUS <<\_ACEOF
26228 # Split the substitutions into bite-sized pieces for seds with
26229 # small command number limits, like on Digital OSF/1 and HP-UX.
26230 ac_max_sed_lines=48
26231 ac_sed_frag=1 # Number of current file.
26232 ac_beg=1 # First line for current file.
26233 ac_end=$ac_max_sed_lines # Line after last line for current file.
26234 ac_more_lines=:
26235 ac_sed_cmds=
26236 while $ac_more_lines; do
26237 if test $ac_beg -gt 1; then
26238 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26239 else
26240 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 26241 fi
b4e70030
JB
26242 if test ! -s $tmp/subs.frag; then
26243 ac_more_lines=false
26244 else
26245 # The purpose of the label and of the branching condition is to
26246 # speed up the sed processing (if there are no `@' at all, there
26247 # is no need to browse any of the substitutions).
26248 # These are the two extra sed commands mentioned above.
26249 (echo ':t
26250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26251 if test -z "$ac_sed_cmds"; then
26252 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26253 else
26254 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26255 fi
26256 ac_sed_frag=`expr $ac_sed_frag + 1`
26257 ac_beg=$ac_end
26258 ac_end=`expr $ac_end + $ac_max_sed_lines`
26259 fi
26260 done
26261 if test -z "$ac_sed_cmds"; then
26262 ac_sed_cmds=cat
26263 fi
26264fi # test -n "$CONFIG_FILES"
4e8d927d 26265
b4e70030
JB
26266_ACEOF
26267cat >>$CONFIG_STATUS <<\_ACEOF
26268for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26270 case $ac_file in
26271 - | *:- | *:-:* ) # input from stdin
26272 cat >$tmp/stdin
26273 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26275 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26277 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
26278 esac
26279
b4e70030
JB
26280 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26281 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
26282$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26283 X"$ac_file" : 'X\(//\)[^/]' \| \
26284 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
26285 X"$ac_file" : 'X\(/\)' \| \
26286 . : '\(.\)' 2>/dev/null ||
bec39cab 26287echo X"$ac_file" |
b4e70030
JB
26288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26290 /^X\(\/\/\)$/{ s//\1/; q; }
26291 /^X\(\/\).*/{ s//\1/; q; }
26292 s/.*/./; q'`
26293 { if $as_mkdir_p; then
26294 mkdir -p "$ac_dir"
26295 else
26296 as_dir="$ac_dir"
bec39cab 26297 as_dirs=
b4e70030
JB
26298 while test ! -d "$as_dir"; do
26299 as_dirs="$as_dir $as_dirs"
26300 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
26301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26302 X"$as_dir" : 'X\(//\)[^/]' \| \
26303 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
26304 X"$as_dir" : 'X\(/\)' \| \
26305 . : '\(.\)' 2>/dev/null ||
bec39cab 26306echo X"$as_dir" |
b4e70030
JB
26307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26309 /^X\(\/\/\)$/{ s//\1/; q; }
26310 /^X\(\/\).*/{ s//\1/; q; }
26311 s/.*/./; q'`
bec39cab 26312 done
b4e70030
JB
26313 test ! -n "$as_dirs" || mkdir $as_dirs
26314 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26315echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 26316 { (exit 1); exit 1; }; }; }
b4e70030 26317
bec39cab
AC
26318 ac_builddir=.
26319
b4e70030 26320if test "$ac_dir" != .; then
bec39cab 26321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
26322 # A "../" for each directory in $ac_dir_suffix.
26323 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26324else
26325 ac_dir_suffix= ac_top_builddir=
26326fi
bec39cab
AC
26327
26328case $srcdir in
b4e70030 26329 .) # No --srcdir option. We are building in place.
bec39cab 26330 ac_srcdir=.
b4e70030
JB
26331 if test -z "$ac_top_builddir"; then
26332 ac_top_srcdir=.
26333 else
26334 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26335 fi ;;
26336 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 26337 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
26338 ac_top_srcdir=$srcdir ;;
26339 *) # Relative path.
26340 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26341 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
26342esac
26343
b4e70030
JB
26344# Do not use `cd foo && pwd` to compute absolute paths, because
26345# the directories may not exist.
26346case `pwd` in
26347.) ac_abs_builddir="$ac_dir";;
26348*)
26349 case "$ac_dir" in
26350 .) ac_abs_builddir=`pwd`;;
26351 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26352 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26353 esac;;
26354esac
26355case $ac_abs_builddir in
26356.) ac_abs_top_builddir=${ac_top_builddir}.;;
26357*)
26358 case ${ac_top_builddir}. in
26359 .) ac_abs_top_builddir=$ac_abs_builddir;;
26360 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26361 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26362 esac;;
26363esac
26364case $ac_abs_builddir in
26365.) ac_abs_srcdir=$ac_srcdir;;
26366*)
26367 case $ac_srcdir in
26368 .) ac_abs_srcdir=$ac_abs_builddir;;
26369 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26370 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26371 esac;;
26372esac
26373case $ac_abs_builddir in
26374.) ac_abs_top_srcdir=$ac_top_srcdir;;
26375*)
26376 case $ac_top_srcdir in
26377 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26378 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26379 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26380 esac;;
26381esac
c906108c 26382
c906108c 26383
bec39cab
AC
26384 case $INSTALL in
26385 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 26386 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 26387 esac
121ce6e5 26388
b4e70030
JB
26389 if test x"$ac_file" != x-; then
26390 { echo "$as_me:$LINENO: creating $ac_file" >&5
26391echo "$as_me: creating $ac_file" >&6;}
26392 rm -f "$ac_file"
26393 fi
26394 # Let's still pretend it is `configure' which instantiates (i.e., don't
26395 # use $as_me), people would be surprised to read:
26396 # /* config.h. Generated by config.status. */
26397 if test x"$ac_file" = x-; then
26398 configure_input=
26399 else
26400 configure_input="$ac_file. "
26401 fi
26402 configure_input=$configure_input"Generated from `echo $ac_file_in |
26403 sed 's,.*/,,'` by configure."
26404
26405 # First look for the input files in the build tree, otherwise in the
26406 # src tree.
26407 ac_file_inputs=`IFS=:
26408 for f in $ac_file_in; do
26409 case $f in
26410 -) echo $tmp/stdin ;;
26411 [\\/$]*)
26412 # Absolute (can't be DOS-style, as IFS=:)
26413 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26414echo "$as_me: error: cannot find input file: $f" >&2;}
26415 { (exit 1); exit 1; }; }
26416 echo "$f";;
26417 *) # Relative
26418 if test -f "$f"; then
26419 # Build tree
26420 echo "$f"
26421 elif test -f "$srcdir/$f"; then
26422 # Source tree
26423 echo "$srcdir/$f"
26424 else
26425 # /dev/null tree
26426 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26427echo "$as_me: error: cannot find input file: $f" >&2;}
26428 { (exit 1); exit 1; }; }
26429 fi;;
26430 esac
26431 done` || { (exit 1); exit 1; }
4e8d927d 26432_ACEOF
bec39cab
AC
26433cat >>$CONFIG_STATUS <<_ACEOF
26434 sed "$ac_vpsub
26435$extrasub
26436_ACEOF
26437cat >>$CONFIG_STATUS <<\_ACEOF
26438:t
26439/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
26440s,@configure_input@,$configure_input,;t t
26441s,@srcdir@,$ac_srcdir,;t t
26442s,@abs_srcdir@,$ac_abs_srcdir,;t t
26443s,@top_srcdir@,$ac_top_srcdir,;t t
26444s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26445s,@builddir@,$ac_builddir,;t t
26446s,@abs_builddir@,$ac_abs_builddir,;t t
26447s,@top_builddir@,$ac_top_builddir,;t t
26448s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26449s,@INSTALL@,$ac_INSTALL,;t t
26450" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26451 rm -f $tmp/stdin
26452 if test x"$ac_file" != x-; then
26453 mv $tmp/out $ac_file
26454 else
26455 cat $tmp/out
26456 rm -f $tmp/out
26457 fi
26458
26459done
26460_ACEOF
26461cat >>$CONFIG_STATUS <<\_ACEOF
26462
26463#
26464# CONFIG_HEADER section.
26465#
26466
26467# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26468# NAME is the cpp macro being defined and VALUE is the value it is being given.
26469#
26470# ac_d sets the value in "#define NAME VALUE" lines.
26471ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26472ac_dB='[ ].*$,\1#\2'
26473ac_dC=' '
26474ac_dD=',;t'
26475# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26476ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26477ac_uB='$,\1#\2define\3'
26478ac_uC=' '
26479ac_uD=',;t'
26480
26481for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26482 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 26483 case $ac_file in
b4e70030
JB
26484 - | *:- | *:-:* ) # input from stdin
26485 cat >$tmp/stdin
26486 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26487 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26488 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26490 * ) ac_file_in=$ac_file.in ;;
c906108c 26491 esac
b4e70030
JB
26492
26493 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26494echo "$as_me: creating $ac_file" >&6;}
26495
26496 # First look for the input files in the build tree, otherwise in the
26497 # src tree.
26498 ac_file_inputs=`IFS=:
26499 for f in $ac_file_in; do
26500 case $f in
26501 -) echo $tmp/stdin ;;
26502 [\\/$]*)
26503 # Absolute (can't be DOS-style, as IFS=:)
26504 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26505echo "$as_me: error: cannot find input file: $f" >&2;}
26506 { (exit 1); exit 1; }; }
26507 # Do quote $f, to prevent DOS paths from being IFS'd.
26508 echo "$f";;
26509 *) # Relative
26510 if test -f "$f"; then
26511 # Build tree
26512 echo "$f"
26513 elif test -f "$srcdir/$f"; then
26514 # Source tree
26515 echo "$srcdir/$f"
26516 else
26517 # /dev/null tree
26518 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26519echo "$as_me: error: cannot find input file: $f" >&2;}
26520 { (exit 1); exit 1; }; }
26521 fi;;
26522 esac
26523 done` || { (exit 1); exit 1; }
26524 # Remove the trailing spaces.
26525 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26526
26527_ACEOF
26528
26529# Transform confdefs.h into two sed scripts, `conftest.defines' and
26530# `conftest.undefs', that substitutes the proper values into
26531# config.h.in to produce config.h. The first handles `#define'
26532# templates, and the second `#undef' templates.
26533# And first: Protect against being on the right side of a sed subst in
26534# config.status. Protect against being in an unquoted here document
26535# in config.status.
26536rm -f conftest.defines conftest.undefs
26537# Using a here document instead of a string reduces the quoting nightmare.
26538# Putting comments in sed scripts is not portable.
26539#
26540# `end' is used to avoid that the second main sed command (meant for
26541# 0-ary CPP macros) applies to n-ary macro definitions.
26542# See the Autoconf documentation for `clear'.
26543cat >confdef2sed.sed <<\_ACEOF
26544s/[\\&,]/\\&/g
26545s,[\\$`],\\&,g
26546t clear
26547: clear
26548s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26549t end
26550s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26551: end
26552_ACEOF
26553# If some macros were called several times there might be several times
26554# the same #defines, which is useless. Nevertheless, we may not want to
26555# sort them, since we want the *last* AC-DEFINE to be honored.
26556uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26557sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26558rm -f confdef2sed.sed
26559
26560# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
26561# example, in the case of _POSIX_SOURCE, which is predefined and required
26562# on some systems where configure will not decide to define it.
b4e70030
JB
26563cat >>conftest.undefs <<\_ACEOF
26564s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26565_ACEOF
26566
26567# Break up conftest.defines because some shells have a limit on the size
26568# of here documents, and old seds have small limits too (100 cmds).
26569echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26570echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26571echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26572echo ' :' >>$CONFIG_STATUS
26573rm -f conftest.tail
26574while grep . conftest.defines >/dev/null
bec39cab 26575do
b4e70030
JB
26576 # Write a limited-size here document to $tmp/defines.sed.
26577 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26578 # Speed up: don't consider the non `#define' lines.
26579 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26580 # Work around the forget-to-reset-the-flag bug.
26581 echo 't clr' >>$CONFIG_STATUS
26582 echo ': clr' >>$CONFIG_STATUS
26583 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 26584 echo 'CEOF
b4e70030
JB
26585 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26586 rm -f $tmp/in
26587 mv $tmp/out $tmp/in
26588' >>$CONFIG_STATUS
26589 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
26590 rm -f conftest.defines
26591 mv conftest.tail conftest.defines
26592done
b4e70030
JB
26593rm -f conftest.defines
26594echo ' fi # grep' >>$CONFIG_STATUS
26595echo >>$CONFIG_STATUS
26596
26597# Break up conftest.undefs because some shells have a limit on the size
26598# of here documents, and old seds have small limits too (100 cmds).
26599echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26600rm -f conftest.tail
26601while grep . conftest.undefs >/dev/null
26602do
26603 # Write a limited-size here document to $tmp/undefs.sed.
26604 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26605 # Speed up: don't consider the non `#undef'
26606 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26607 # Work around the forget-to-reset-the-flag bug.
26608 echo 't clr' >>$CONFIG_STATUS
26609 echo ': clr' >>$CONFIG_STATUS
26610 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26611 echo 'CEOF
26612 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26613 rm -f $tmp/in
26614 mv $tmp/out $tmp/in
26615' >>$CONFIG_STATUS
26616 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26617 rm -f conftest.undefs
26618 mv conftest.tail conftest.undefs
26619done
26620rm -f conftest.undefs
bec39cab
AC
26621
26622cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
26623 # Let's still pretend it is `configure' which instantiates (i.e., don't
26624 # use $as_me), people would be surprised to read:
26625 # /* config.h. Generated by config.status. */
26626 if test x"$ac_file" = x-; then
26627 echo "/* Generated by configure. */" >$tmp/config.h
26628 else
26629 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26630 fi
26631 cat $tmp/in >>$tmp/config.h
26632 rm -f $tmp/in
bec39cab 26633 if test x"$ac_file" != x-; then
b4e70030 26634 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
26635 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26636echo "$as_me: $ac_file is unchanged" >&6;}
26637 else
b4e70030
JB
26638 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26639$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26640 X"$ac_file" : 'X\(//\)[^/]' \| \
26641 X"$ac_file" : 'X\(//\)$' \| \
26642 X"$ac_file" : 'X\(/\)' \| \
26643 . : '\(.\)' 2>/dev/null ||
26644echo X"$ac_file" |
26645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26647 /^X\(\/\/\)$/{ s//\1/; q; }
26648 /^X\(\/\).*/{ s//\1/; q; }
26649 s/.*/./; q'`
26650 { if $as_mkdir_p; then
26651 mkdir -p "$ac_dir"
26652 else
26653 as_dir="$ac_dir"
26654 as_dirs=
26655 while test ! -d "$as_dir"; do
26656 as_dirs="$as_dir $as_dirs"
26657 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26658$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26659 X"$as_dir" : 'X\(//\)[^/]' \| \
26660 X"$as_dir" : 'X\(//\)$' \| \
26661 X"$as_dir" : 'X\(/\)' \| \
26662 . : '\(.\)' 2>/dev/null ||
26663echo X"$as_dir" |
26664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26666 /^X\(\/\/\)$/{ s//\1/; q; }
26667 /^X\(\/\).*/{ s//\1/; q; }
26668 s/.*/./; q'`
26669 done
26670 test ! -n "$as_dirs" || mkdir $as_dirs
26671 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26672echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26673 { (exit 1); exit 1; }; }; }
26674
bec39cab 26675 rm -f $ac_file
b4e70030 26676 mv $tmp/config.h $ac_file
bec39cab
AC
26677 fi
26678 else
b4e70030
JB
26679 cat $tmp/config.h
26680 rm -f $tmp/config.h
bec39cab 26681 fi
e28b3332
DJ
26682# Compute $ac_file's index in $config_headers.
26683_am_stamp_count=1
26684for _am_header in $config_headers :; do
26685 case $_am_header in
26686 $ac_file | $ac_file:* )
26687 break ;;
26688 * )
26689 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26690 esac
26691done
26692echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26693$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26694 X$ac_file : 'X\(//\)[^/]' \| \
26695 X$ac_file : 'X\(//\)$' \| \
26696 X$ac_file : 'X\(/\)' \| \
26697 . : '\(.\)' 2>/dev/null ||
26698echo X$ac_file |
26699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26701 /^X\(\/\/\)$/{ s//\1/; q; }
26702 /^X\(\/\).*/{ s//\1/; q; }
26703 s/.*/./; q'`/stamp-h$_am_stamp_count
b4e70030
JB
26704done
26705_ACEOF
26706cat >>$CONFIG_STATUS <<\_ACEOF
26707
26708#
26709# CONFIG_LINKS section.
26710#
26711
26712for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26713 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26714 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 26715
b4e70030
JB
26716 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26717echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
26718
26719 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
26720 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26721echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26722 { (exit 1); exit 1; }; }
c906108c 26723 fi
b4e70030
JB
26724 rm -f $ac_dest
26725
26726 # Make relative symlinks.
26727 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26728$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26729 X"$ac_dest" : 'X\(//\)[^/]' \| \
26730 X"$ac_dest" : 'X\(//\)$' \| \
26731 X"$ac_dest" : 'X\(/\)' \| \
26732 . : '\(.\)' 2>/dev/null ||
26733echo X"$ac_dest" |
26734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26736 /^X\(\/\/\)$/{ s//\1/; q; }
26737 /^X\(\/\).*/{ s//\1/; q; }
26738 s/.*/./; q'`
26739 { if $as_mkdir_p; then
26740 mkdir -p "$ac_dest_dir"
26741 else
26742 as_dir="$ac_dest_dir"
26743 as_dirs=
26744 while test ! -d "$as_dir"; do
26745 as_dirs="$as_dir $as_dirs"
26746 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26747$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26748 X"$as_dir" : 'X\(//\)[^/]' \| \
26749 X"$as_dir" : 'X\(//\)$' \| \
26750 X"$as_dir" : 'X\(/\)' \| \
26751 . : '\(.\)' 2>/dev/null ||
26752echo X"$as_dir" |
26753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26755 /^X\(\/\/\)$/{ s//\1/; q; }
26756 /^X\(\/\).*/{ s//\1/; q; }
26757 s/.*/./; q'`
26758 done
26759 test ! -n "$as_dirs" || mkdir $as_dirs
26760 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26761echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26762 { (exit 1); exit 1; }; }; }
26763
26764 ac_builddir=.
26765
26766if test "$ac_dest_dir" != .; then
26767 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26768 # A "../" for each directory in $ac_dir_suffix.
26769 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26770else
26771 ac_dir_suffix= ac_top_builddir=
26772fi
26773
26774case $srcdir in
26775 .) # No --srcdir option. We are building in place.
26776 ac_srcdir=.
26777 if test -z "$ac_top_builddir"; then
26778 ac_top_srcdir=.
26779 else
26780 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26781 fi ;;
26782 [\\/]* | ?:[\\/]* ) # Absolute path.
26783 ac_srcdir=$srcdir$ac_dir_suffix;
26784 ac_top_srcdir=$srcdir ;;
26785 *) # Relative path.
26786 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26787 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26788esac
26789
26790# Do not use `cd foo && pwd` to compute absolute paths, because
26791# the directories may not exist.
26792case `pwd` in
26793.) ac_abs_builddir="$ac_dest_dir";;
26794*)
26795 case "$ac_dest_dir" in
26796 .) ac_abs_builddir=`pwd`;;
26797 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26798 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26799 esac;;
26800esac
26801case $ac_abs_builddir in
26802.) ac_abs_top_builddir=${ac_top_builddir}.;;
26803*)
26804 case ${ac_top_builddir}. in
26805 .) ac_abs_top_builddir=$ac_abs_builddir;;
26806 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26807 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26808 esac;;
26809esac
26810case $ac_abs_builddir in
26811.) ac_abs_srcdir=$ac_srcdir;;
26812*)
26813 case $ac_srcdir in
26814 .) ac_abs_srcdir=$ac_abs_builddir;;
26815 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26816 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26817 esac;;
26818esac
26819case $ac_abs_builddir in
26820.) ac_abs_top_srcdir=$ac_top_srcdir;;
26821*)
26822 case $ac_top_srcdir in
26823 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26824 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26825 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26826 esac;;
26827esac
26828
bec39cab
AC
26829
26830 case $srcdir in
26831 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 26832 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 26833 esac
b4e70030
JB
26834
26835 # Try a symlink, then a hard link, then a copy.
26836 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26837 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26838 cp -p $srcdir/$ac_source $ac_dest ||
26839 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26840echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 26841 { (exit 1); exit 1; }; }
b4e70030
JB
26842done
26843_ACEOF
26844cat >>$CONFIG_STATUS <<\_ACEOF
26845
26846#
26847# CONFIG_COMMANDS section.
26848#
26849for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26850 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26851 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26852 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26853$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26854 X"$ac_dest" : 'X\(//\)[^/]' \| \
26855 X"$ac_dest" : 'X\(//\)$' \| \
26856 X"$ac_dest" : 'X\(/\)' \| \
26857 . : '\(.\)' 2>/dev/null ||
26858echo X"$ac_dest" |
26859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26861 /^X\(\/\/\)$/{ s//\1/; q; }
26862 /^X\(\/\).*/{ s//\1/; q; }
26863 s/.*/./; q'`
26864 { if $as_mkdir_p; then
26865 mkdir -p "$ac_dir"
26866 else
26867 as_dir="$ac_dir"
26868 as_dirs=
26869 while test ! -d "$as_dir"; do
26870 as_dirs="$as_dir $as_dirs"
26871 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26872$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26873 X"$as_dir" : 'X\(//\)[^/]' \| \
26874 X"$as_dir" : 'X\(//\)$' \| \
26875 X"$as_dir" : 'X\(/\)' \| \
26876 . : '\(.\)' 2>/dev/null ||
26877echo X"$as_dir" |
26878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26880 /^X\(\/\/\)$/{ s//\1/; q; }
26881 /^X\(\/\).*/{ s//\1/; q; }
26882 s/.*/./; q'`
26883 done
26884 test ! -n "$as_dirs" || mkdir $as_dirs
26885 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26886echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26887 { (exit 1); exit 1; }; }; }
26888
26889 ac_builddir=.
26890
26891if test "$ac_dir" != .; then
26892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26893 # A "../" for each directory in $ac_dir_suffix.
26894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26895else
26896 ac_dir_suffix= ac_top_builddir=
26897fi
26898
26899case $srcdir in
26900 .) # No --srcdir option. We are building in place.
26901 ac_srcdir=.
26902 if test -z "$ac_top_builddir"; then
26903 ac_top_srcdir=.
26904 else
26905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26906 fi ;;
26907 [\\/]* | ?:[\\/]* ) # Absolute path.
26908 ac_srcdir=$srcdir$ac_dir_suffix;
26909 ac_top_srcdir=$srcdir ;;
26910 *) # Relative path.
26911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26913esac
26914
26915# Do not use `cd foo && pwd` to compute absolute paths, because
26916# the directories may not exist.
26917case `pwd` in
26918.) ac_abs_builddir="$ac_dir";;
26919*)
26920 case "$ac_dir" in
26921 .) ac_abs_builddir=`pwd`;;
26922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26924 esac;;
26925esac
26926case $ac_abs_builddir in
26927.) ac_abs_top_builddir=${ac_top_builddir}.;;
26928*)
26929 case ${ac_top_builddir}. in
26930 .) ac_abs_top_builddir=$ac_abs_builddir;;
26931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26933 esac;;
26934esac
26935case $ac_abs_builddir in
26936.) ac_abs_srcdir=$ac_srcdir;;
26937*)
26938 case $ac_srcdir in
26939 .) ac_abs_srcdir=$ac_abs_builddir;;
26940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26942 esac;;
26943esac
26944case $ac_abs_builddir in
26945.) ac_abs_top_srcdir=$ac_top_srcdir;;
26946*)
26947 case $ac_top_srcdir in
26948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26951 esac;;
26952esac
bec39cab 26953
bec39cab 26954
b4e70030
JB
26955 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26956echo "$as_me: executing $ac_dest commands" >&6;}
26957 case $ac_dest in
e28b3332
DJ
26958 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26959 # Strip MF so we end up with the name of the file.
26960 mf=`echo "$mf" | sed -e 's/:.*$//'`
26961 # Check whether this is an Automake generated Makefile or not.
26962 # We used to match only the files named `Makefile.in', but
26963 # some people rename them; so instead we look at the file content.
26964 # Grep'ing the first line is not enough: some people post-process
26965 # each Makefile.in and add a new line on top of each file to say so.
26966 # So let's grep whole file.
26967 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26968 dirpart=`(dirname "$mf") 2>/dev/null ||
26969$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26970 X"$mf" : 'X\(//\)[^/]' \| \
26971 X"$mf" : 'X\(//\)$' \| \
26972 X"$mf" : 'X\(/\)' \| \
26973 . : '\(.\)' 2>/dev/null ||
26974echo X"$mf" |
26975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26977 /^X\(\/\/\)$/{ s//\1/; q; }
26978 /^X\(\/\).*/{ s//\1/; q; }
26979 s/.*/./; q'`
26980 else
26981 continue
26982 fi
26983 # Extract the definition of DEPDIR, am__include, and am__quote
26984 # from the Makefile without running `make'.
26985 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26986 test -z "$DEPDIR" && continue
26987 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26988 test -z "am__include" && continue
26989 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26990 # When using ansi2knr, U may be empty or an underscore; expand it
26991 U=`sed -n 's/^U = //p' < "$mf"`
26992 # Find all dependency output files, they are included files with
26993 # $(DEPDIR) in their names. We invoke sed twice because it is the
26994 # simplest approach to changing $(DEPDIR) to its actual value in the
26995 # expansion.
26996 for file in `sed -n "
26997 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26998 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26999 # Make sure the directory exists.
27000 test -f "$dirpart/$file" && continue
27001 fdir=`(dirname "$file") 2>/dev/null ||
27002$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27003 X"$file" : 'X\(//\)[^/]' \| \
27004 X"$file" : 'X\(//\)$' \| \
27005 X"$file" : 'X\(/\)' \| \
27006 . : '\(.\)' 2>/dev/null ||
27007echo X"$file" |
27008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27010 /^X\(\/\/\)$/{ s//\1/; q; }
27011 /^X\(\/\).*/{ s//\1/; q; }
27012 s/.*/./; q'`
27013 { if $as_mkdir_p; then
27014 mkdir -p $dirpart/$fdir
27015 else
27016 as_dir=$dirpart/$fdir
27017 as_dirs=
27018 while test ! -d "$as_dir"; do
27019 as_dirs="$as_dir $as_dirs"
27020 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27022 X"$as_dir" : 'X\(//\)[^/]' \| \
27023 X"$as_dir" : 'X\(//\)$' \| \
27024 X"$as_dir" : 'X\(/\)' \| \
27025 . : '\(.\)' 2>/dev/null ||
27026echo X"$as_dir" |
27027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27029 /^X\(\/\/\)$/{ s//\1/; q; }
27030 /^X\(\/\).*/{ s//\1/; q; }
27031 s/.*/./; q'`
27032 done
27033 test ! -n "$as_dirs" || mkdir $as_dirs
27034 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27035echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27036 { (exit 1); exit 1; }; }; }
27037
27038 # echo "creating $dirpart/$file"
27039 echo '# dummy' > "$dirpart/$file"
27040 done
27041done
27042 ;;
b4e70030 27043 gdb_stdint.h )
4e8d927d
DJ
27044if test "$GCC" = yes; then
27045 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
27046else
27047 echo "/* generated for $CC */" > tmp-stdint.h
27048fi
27049
27050sed 's/^ *//' >> tmp-stdint.h <<EOF
27051
27052 #ifndef GCC_GENERATED_STDINT_H
27053 #define GCC_GENERATED_STDINT_H 1
27054
27055 #include <sys/types.h>
27056EOF
27057
27058if test "$acx_cv_header_stdint" != stdint.h; then
27059 echo "#include <stddef.h>" >> tmp-stdint.h
27060fi
27061if test "$acx_cv_header_stdint" != stddef.h; then
27062 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
27063fi
27064
27065sed 's/^ *//' >> tmp-stdint.h <<EOF
27066 /* glibc uses these symbols as guards to prevent redefinitions. */
27067 #ifdef __int8_t_defined
27068 #define _INT8_T
27069 #define _INT16_T
27070 #define _INT32_T
27071 #endif
27072 #ifdef __uint32_t_defined
27073 #define _UINT32_T
27074 #endif
27075
27076EOF
27077
27078# ----------------- done header, emit basic int types -------------
27079if test "$acx_cv_header_stdint" = stddef.h; then
27080 sed 's/^ *//' >> tmp-stdint.h <<EOF
27081
27082 #ifndef _UINT8_T
27083 #define _UINT8_T
07abfebf
RS
27084 #ifndef __uint8_t_defined
27085 #define __uint8_t_defined
4e8d927d
DJ
27086 typedef unsigned $acx_cv_type_int8_t uint8_t;
27087 #endif
07abfebf 27088 #endif
4e8d927d
DJ
27089
27090 #ifndef _UINT16_T
27091 #define _UINT16_T
07abfebf
RS
27092 #ifndef __uint16_t_defined
27093 #define __uint16_t_defined
4e8d927d
DJ
27094 typedef unsigned $acx_cv_type_int16_t uint16_t;
27095 #endif
07abfebf 27096 #endif
4e8d927d
DJ
27097
27098 #ifndef _UINT32_T
27099 #define _UINT32_T
07abfebf
RS
27100 #ifndef __uint32_t_defined
27101 #define __uint32_t_defined
4e8d927d
DJ
27102 typedef unsigned $acx_cv_type_int32_t uint32_t;
27103 #endif
07abfebf 27104 #endif
4e8d927d
DJ
27105
27106 #ifndef _INT8_T
27107 #define _INT8_T
07abfebf
RS
27108 #ifndef __int8_t_defined
27109 #define __int8_t_defined
4e8d927d
DJ
27110 typedef $acx_cv_type_int8_t int8_t;
27111 #endif
07abfebf 27112 #endif
4e8d927d
DJ
27113
27114 #ifndef _INT16_T
27115 #define _INT16_T
07abfebf
RS
27116 #ifndef __int16_t_defined
27117 #define __int16_t_defined
4e8d927d
DJ
27118 typedef $acx_cv_type_int16_t int16_t;
27119 #endif
07abfebf 27120 #endif
4e8d927d
DJ
27121
27122 #ifndef _INT32_T
27123 #define _INT32_T
07abfebf
RS
27124 #ifndef __int32_t_defined
27125 #define __int32_t_defined
4e8d927d
DJ
27126 typedef $acx_cv_type_int32_t int32_t;
27127 #endif
07abfebf 27128 #endif
4e8d927d
DJ
27129EOF
27130elif test "$ac_cv_type_u_int32_t" = yes; then
27131 sed 's/^ *//' >> tmp-stdint.h <<EOF
27132
27133 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
27134 #ifndef _INT8_T
27135 #define _INT8_T
27136 #endif
27137 #ifndef _INT16_T
27138 #define _INT16_T
27139 #endif
27140 #ifndef _INT32_T
27141 #define _INT32_T
27142 #endif
27143
27144 #ifndef _UINT8_T
27145 #define _UINT8_T
07abfebf
RS
27146 #ifndef __uint8_t_defined
27147 #define __uint8_t_defined
4e8d927d
DJ
27148 typedef u_int8_t uint8_t;
27149 #endif
07abfebf 27150 #endif
4e8d927d
DJ
27151
27152 #ifndef _UINT16_T
27153 #define _UINT16_T
07abfebf
RS
27154 #ifndef __uint16_t_defined
27155 #define __uint16_t_defined
4e8d927d
DJ
27156 typedef u_int16_t uint16_t;
27157 #endif
07abfebf 27158 #endif
4e8d927d
DJ
27159
27160 #ifndef _UINT32_T
27161 #define _UINT32_T
07abfebf
RS
27162 #ifndef __uint32_t_defined
27163 #define __uint32_t_defined
4e8d927d
DJ
27164 typedef u_int32_t uint32_t;
27165 #endif
07abfebf 27166 #endif
4e8d927d
DJ
27167EOF
27168else
27169 sed 's/^ *//' >> tmp-stdint.h <<EOF
27170
27171 /* Some systems have guard macros to prevent redefinitions, define them. */
27172 #ifndef _INT8_T
27173 #define _INT8_T
27174 #endif
27175 #ifndef _INT16_T
27176 #define _INT16_T
27177 #endif
27178 #ifndef _INT32_T
27179 #define _INT32_T
27180 #endif
27181 #ifndef _UINT8_T
27182 #define _UINT8_T
27183 #endif
27184 #ifndef _UINT16_T
27185 #define _UINT16_T
27186 #endif
27187 #ifndef _UINT32_T
27188 #define _UINT32_T
27189 #endif
27190EOF
27191fi
27192
27193# ------------- done basic int types, emit int64_t types ------------
27194if test "$ac_cv_type_uint64_t" = yes; then
27195 sed 's/^ *//' >> tmp-stdint.h <<EOF
27196
27197 /* system headers have good uint64_t and int64_t */
27198 #ifndef _INT64_T
27199 #define _INT64_T
27200 #endif
27201 #ifndef _UINT64_T
27202 #define _UINT64_T
27203 #endif
27204EOF
27205elif test "$ac_cv_type_u_int64_t" = yes; then
27206 sed 's/^ *//' >> tmp-stdint.h <<EOF
27207
27208 /* system headers have an u_int64_t (and int64_t) */
27209 #ifndef _INT64_T
27210 #define _INT64_T
27211 #endif
27212 #ifndef _UINT64_T
27213 #define _UINT64_T
07abfebf
RS
27214 #ifndef __uint64_t_defined
27215 #define __uint64_t_defined
4e8d927d
DJ
27216 typedef u_int64_t uint64_t;
27217 #endif
07abfebf 27218 #endif
4e8d927d
DJ
27219EOF
27220elif test -n "$acx_cv_type_int64_t"; then
27221 sed 's/^ *//' >> tmp-stdint.h <<EOF
27222
27223 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
27224 #ifndef _INT64_T
27225 #define _INT64_T
27226 typedef $acx_cv_type_int64_t int64_t;
27227 #endif
27228 #ifndef _UINT64_T
27229 #define _UINT64_T
07abfebf
RS
27230 #ifndef __uint64_t_defined
27231 #define __uint64_t_defined
4e8d927d
DJ
27232 typedef unsigned $acx_cv_type_int64_t uint64_t;
27233 #endif
07abfebf 27234 #endif
4e8d927d
DJ
27235EOF
27236else
27237 sed 's/^ *//' >> tmp-stdint.h <<EOF
27238
27239 /* some common heuristics for int64_t, using compiler-specific tests */
27240 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
27241 #ifndef _INT64_T
27242 #define _INT64_T
07abfebf 27243 #ifndef __int64_t_defined
4e8d927d
DJ
27244 typedef long long int64_t;
27245 #endif
07abfebf 27246 #endif
4e8d927d
DJ
27247 #ifndef _UINT64_T
27248 #define _UINT64_T
27249 typedef unsigned long long uint64_t;
27250 #endif
27251
27252 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
27253 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
27254 does not implement __extension__. But that compiler doesn't define
27255 __GNUC_MINOR__. */
27256 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
27257 # define __extension__
27258 # endif
27259
27260 # ifndef _INT64_T
27261 # define _INT64_T
27262 __extension__ typedef long long int64_t;
27263 # endif
27264 # ifndef _UINT64_T
27265 # define _UINT64_T
27266 __extension__ typedef unsigned long long uint64_t;
27267 # endif
27268
27269 #elif !defined __STRICT_ANSI__
27270 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27271
27272 # ifndef _INT64_T
27273 # define _INT64_T
27274 typedef __int64 int64_t;
27275 # endif
27276 # ifndef _UINT64_T
27277 # define _UINT64_T
27278 typedef unsigned __int64 uint64_t;
27279 # endif
27280 # endif /* compiler */
27281
27282 #endif /* ANSI version */
27283EOF
27284fi
27285
27286# ------------- done int64_t types, emit intptr types ------------
27287if test "$ac_cv_type_uintptr_t" != yes; then
27288 sed 's/^ *//' >> tmp-stdint.h <<EOF
27289
27290 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
07abfebf 27291 #ifndef __uintptr_t_defined
4e8d927d 27292 typedef u$acx_cv_type_intptr_t uintptr_t;
07abfebf
RS
27293 #endif
27294 #ifndef __intptr_t_defined
4e8d927d 27295 typedef $acx_cv_type_intptr_t intptr_t;
07abfebf 27296 #endif
4e8d927d
DJ
27297EOF
27298fi
27299
27300# ------------- done intptr types, emit int_least types ------------
27301if test "$ac_cv_type_int_least32_t" != yes; then
27302 sed 's/^ *//' >> tmp-stdint.h <<EOF
27303
27304 /* Define int_least types */
27305 typedef int8_t int_least8_t;
27306 typedef int16_t int_least16_t;
27307 typedef int32_t int_least32_t;
27308 #ifdef _INT64_T
27309 typedef int64_t int_least64_t;
27310 #endif
27311
27312 typedef uint8_t uint_least8_t;
27313 typedef uint16_t uint_least16_t;
27314 typedef uint32_t uint_least32_t;
27315 #ifdef _UINT64_T
27316 typedef uint64_t uint_least64_t;
27317 #endif
27318EOF
27319fi
27320
27321# ------------- done intptr types, emit int_fast types ------------
27322if test "$ac_cv_type_int_fast32_t" != yes; then
27323 sed 's/^ *//' >> tmp-stdint.h <<EOF
27324
27325 /* Define int_fast types. short is often slow */
27326 typedef int8_t int_fast8_t;
27327 typedef int int_fast16_t;
27328 typedef int32_t int_fast32_t;
27329 #ifdef _INT64_T
27330 typedef int64_t int_fast64_t;
27331 #endif
27332
27333 typedef uint8_t uint_fast8_t;
27334 typedef unsigned int uint_fast16_t;
27335 typedef uint32_t uint_fast32_t;
27336 #ifdef _UINT64_T
27337 typedef uint64_t uint_fast64_t;
27338 #endif
27339EOF
27340fi
27341
27342if test "$ac_cv_type_uintmax_t" != yes; then
27343 sed 's/^ *//' >> tmp-stdint.h <<EOF
27344
27345 /* Define intmax based on what we found */
27346 #ifdef _INT64_T
27347 typedef int64_t intmax_t;
27348 #else
27349 typedef long intmax_t;
27350 #endif
27351 #ifdef _UINT64_T
27352 typedef uint64_t uintmax_t;
27353 #else
27354 typedef unsigned long uintmax_t;
27355 #endif
27356EOF
27357fi
27358
27359sed 's/^ *//' >> tmp-stdint.h <<EOF
27360
27361 #endif /* GCC_GENERATED_STDINT_H */
27362EOF
27363
27364if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
27365 rm -f tmp-stdint.h
27366else
27367 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
27368fi
27369
4e8d927d 27370 ;;
b4e70030 27371 default )
c906108c 27372
db985757 27373sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
27374mv -f Makefile.tmp Makefile
27375
2acceee2 27376
c906108c
SS
27377case x$CONFIG_HEADERS in
27378xconfig.h:config.in)
27379echo > stamp-h ;;
27380esac
bec39cab
AC
27381 ;;
27382 esac
b4e70030
JB
27383done
27384_ACEOF
c906108c 27385
b4e70030 27386cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
27387
27388{ (exit 0); exit 0; }
27389_ACEOF
c906108c 27390chmod +x $CONFIG_STATUS
bec39cab
AC
27391ac_clean_files=$ac_clean_files_save
27392
27393
27394# configure is writing to config.log, and then calls config.status.
27395# config.status does its own redirection, appending to config.log.
27396# Unfortunately, on DOS this fails, as config.log is still kept open
27397# by configure, so config.status won't be able to write to it; its
27398# output is simply discarded. So we exec the FD to /dev/null,
27399# effectively closing config.log, so it can be properly (re)opened and
27400# appended to by config.status. When coming back to configure, we
27401# need to make the FD available again.
27402if test "$no_create" != yes; then
27403 ac_cs_success=:
27404 ac_config_status_args=
27405 test "$silent" = yes &&
27406 ac_config_status_args="$ac_config_status_args --quiet"
27407 exec 5>/dev/null
27408 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27409 exec 5>>config.log
27410 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27411 # would make configure fail if this is the last instruction.
27412 $ac_cs_success || { (exit 1); exit 1; }
27413fi
c906108c 27414
bec39cab
AC
27415#
27416# CONFIG_SUBDIRS section.
27417#
c906108c
SS
27418if test "$no_recursion" != yes; then
27419
27420 # Remove --cache-file and --srcdir arguments so they do not pile up.
27421 ac_sub_configure_args=
27422 ac_prev=
b4e70030 27423 for ac_arg in $ac_configure_args; do
c906108c
SS
27424 if test -n "$ac_prev"; then
27425 ac_prev=
27426 continue
27427 fi
bec39cab 27428 case $ac_arg in
c906108c
SS
27429 -cache-file | --cache-file | --cache-fil | --cache-fi \
27430 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27431 ac_prev=cache_file ;;
27432 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
27433 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27434 | --c=*)
27435 ;;
27436 --config-cache | -C)
c906108c
SS
27437 ;;
27438 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27439 ac_prev=srcdir ;;
27440 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27441 ;;
bec39cab
AC
27442 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27443 ac_prev=prefix ;;
27444 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27445 ;;
b4e70030 27446 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
27447 esac
27448 done
27449
bec39cab
AC
27450 # Always prepend --prefix to ensure using the same prefix
27451 # in subdir configurations.
27452 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
27453
b4e70030 27454 ac_popdir=`pwd`
bec39cab 27455 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
27456
27457 # Do not complain, so a configure script can configure whichever
27458 # parts of a large source tree are present.
bec39cab 27459 test -d $srcdir/$ac_dir || continue
c906108c 27460
b4e70030
JB
27461 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27462echo "$as_me: configuring in $ac_dir" >&6;}
27463 { if $as_mkdir_p; then
27464 mkdir -p "$ac_dir"
27465 else
27466 as_dir="$ac_dir"
bec39cab 27467 as_dirs=
b4e70030
JB
27468 while test ! -d "$as_dir"; do
27469 as_dirs="$as_dir $as_dirs"
27470 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
27471$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27472 X"$as_dir" : 'X\(//\)[^/]' \| \
27473 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
27474 X"$as_dir" : 'X\(/\)' \| \
27475 . : '\(.\)' 2>/dev/null ||
bec39cab 27476echo X"$as_dir" |
b4e70030
JB
27477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27479 /^X\(\/\/\)$/{ s//\1/; q; }
27480 /^X\(\/\).*/{ s//\1/; q; }
27481 s/.*/./; q'`
bec39cab 27482 done
b4e70030
JB
27483 test ! -n "$as_dirs" || mkdir $as_dirs
27484 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27485echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 27486 { (exit 1); exit 1; }; }; }
b4e70030 27487
bec39cab
AC
27488 ac_builddir=.
27489
b4e70030 27490if test "$ac_dir" != .; then
bec39cab 27491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
27492 # A "../" for each directory in $ac_dir_suffix.
27493 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27494else
27495 ac_dir_suffix= ac_top_builddir=
27496fi
bec39cab
AC
27497
27498case $srcdir in
b4e70030 27499 .) # No --srcdir option. We are building in place.
bec39cab 27500 ac_srcdir=.
b4e70030
JB
27501 if test -z "$ac_top_builddir"; then
27502 ac_top_srcdir=.
27503 else
27504 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27505 fi ;;
27506 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 27507 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
27508 ac_top_srcdir=$srcdir ;;
27509 *) # Relative path.
27510 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27511 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27512esac
27513
27514# Do not use `cd foo && pwd` to compute absolute paths, because
27515# the directories may not exist.
27516case `pwd` in
27517.) ac_abs_builddir="$ac_dir";;
27518*)
27519 case "$ac_dir" in
27520 .) ac_abs_builddir=`pwd`;;
27521 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27522 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27523 esac;;
27524esac
27525case $ac_abs_builddir in
27526.) ac_abs_top_builddir=${ac_top_builddir}.;;
27527*)
27528 case ${ac_top_builddir}. in
27529 .) ac_abs_top_builddir=$ac_abs_builddir;;
27530 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27531 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27532 esac;;
27533esac
27534case $ac_abs_builddir in
27535.) ac_abs_srcdir=$ac_srcdir;;
27536*)
27537 case $ac_srcdir in
27538 .) ac_abs_srcdir=$ac_abs_builddir;;
27539 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27540 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27541 esac;;
27542esac
27543case $ac_abs_builddir in
27544.) ac_abs_top_srcdir=$ac_top_srcdir;;
27545*)
27546 case $ac_top_srcdir in
27547 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27548 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27549 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27550 esac;;
bec39cab 27551esac
c906108c 27552
c906108c 27553
b4e70030 27554 cd $ac_dir
c906108c
SS
27555
27556 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
27557 if test -f $ac_srcdir/configure.gnu; then
27558 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
27559 elif test -f $ac_srcdir/configure; then
27560 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
27561 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
27562 ac_sub_configure=$ac_configure
27563 else
bec39cab
AC
27564 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27565echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
27566 ac_sub_configure=
27567 fi
27568
27569 # The recursion is here.
27570 if test -n "$ac_sub_configure"; then
c906108c 27571 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
27572 case $cache_file in
27573 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
27574 *) # Relative path.
27575 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 27576 esac
c906108c 27577
bec39cab
AC
27578 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27579echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 27580 # The eval makes quoting arguments work.
b4e70030
JB
27581 eval $ac_sub_configure $ac_sub_configure_args \
27582 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
27583 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27584echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27585 { (exit 1); exit 1; }; }
c906108c
SS
27586 fi
27587
b4e70030 27588 cd $ac_popdir
c906108c
SS
27589 done
27590fi
27591
27592
27593exit 0
This page took 2.217027 seconds and 4 git commands to generate.