* gdb.texinfo (GDB/MI Variable Objects): Improve the
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
b4e70030 3# Generated by GNU Autoconf 2.59.
c906108c 4#
b4e70030 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
bec39cab
AC
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 33$as_unset ENV MAIL MAILPATH
bec39cab
AC
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
b4e70030 47 $as_unset $as_var
bec39cab
AC
48 fi
49done
50
51# Required to use basename.
b4e70030 52if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
53 as_expr=expr
54else
55 as_expr=false
56fi
57
b4e70030 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
b4e70030 66as_me=`$as_basename "$0" ||
bec39cab
AC
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
bec39cab 71echo X/"$0" |
b4e70030
JB
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
bec39cab 76
4e8d927d 77
b4e70030
JB
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
4e8d927d 85
b4e70030
JB
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
4e8d927d
DJ
97fi
98
4e8d927d 99
b4e70030
JB
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
4e8d927d 116
b4e70030
JB
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
bec39cab 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4e70030 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab
AC
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
b4e70030
JB
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
bec39cab 137 /*)
b4e70030 138 if ("$as_dir/$as_base" -c '
4e8d927d
DJ
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
b4e70030 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4e8d927d 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
bec39cab
AC
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
bec39cab 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
bec39cab
AC
165 sed '
166 N
b4e70030
JB
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 170 t loop
b4e70030
JB
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
bec39cab 173 ' >$as_me.lineno &&
b4e70030 174 chmod +x $as_me.lineno ||
bec39cab
AC
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
bec39cab
AC
182 # Exit status is that of the last command.
183 exit
184}
185
186
b4e70030
JB
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
192esac
193
b4e70030 194if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
bec39cab 207 as_ln_s='cp -p'
b4e70030
JB
208 else
209 as_ln_s='ln -s'
210 fi
bec39cab
AC
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
b4e70030 216rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
b4e70030 225as_executable_p="test -f"
bec39cab
AC
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
b4e70030
JB
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
bec39cab 242
c906108c 243
bec39cab
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
b4e70030
JB
249exec 6>&1
250
bec39cab
AC
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
b4e70030
JB
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
bec39cab
AC
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
20e95c23 275ac_subdirs_all="$ac_subdirs_all doc testsuite"
bec39cab
AC
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
b4e70030
JB
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
bec39cab
AC
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
b4e70030
JB
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
3841debe 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
b4e70030 317ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
318
319# Initialize some variables set by options.
bec39cab
AC
320ac_init_help=
321ac_init_version=false
c906108c
SS
322# The variables have the same names as the options, with
323# dashes changed to underlines.
bec39cab 324cache_file=/dev/null
c906108c 325exec_prefix=NONE
c906108c 326no_create=
c906108c
SS
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
c906108c
SS
335verbose=
336x_includes=NONE
337x_libraries=NONE
bec39cab
AC
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
b4e70030 347datadir='${prefix}/share'
c906108c
SS
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
b4e70030 351libdir='${exec_prefix}/lib'
c906108c
SS
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
b4e70030
JB
354infodir='${prefix}/info'
355mandir='${prefix}/man'
c906108c 356
c906108c
SS
357ac_prev=
358for ac_option
359do
c906108c
SS
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
b4e70030 362 eval "$ac_prev=\$ac_option"
c906108c
SS
363 ac_prev=
364 continue
365 fi
366
b4e70030 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
b4e70030 371 case $ac_option in
c906108c
SS
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 376 bindir=$ac_optarg ;;
c906108c
SS
377
378 -build | --build | --buil | --bui | --bu)
bec39cab 379 ac_prev=build_alias ;;
c906108c 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 381 build_alias=$ac_optarg ;;
c906108c
SS
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
c906108c 392
b4e70030 393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 394 ac_prev=datadir ;;
b4e70030
JB
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
bec39cab 397 datadir=$ac_optarg ;;
c906108c
SS
398
399 -disable-* | --disable-*)
bec39cab 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 401 # Reject names that are not valid shell variable names.
bec39cab
AC
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030 406 eval "enable_$ac_feature=no" ;;
c906108c
SS
407
408 -enable-* | --enable-*)
bec39cab 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 410 # Reject names that are not valid shell variable names.
bec39cab
AC
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030
JB
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
bec39cab 428 exec_prefix=$ac_optarg ;;
c906108c
SS
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
bec39cab
AC
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
c906108c
SS
440
441 -host | --host | --hos | --ho)
bec39cab 442 ac_prev=host_alias ;;
c906108c 443 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 444 host_alias=$ac_optarg ;;
c906108c
SS
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 451 includedir=$ac_optarg ;;
c906108c
SS
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 456 infodir=$ac_optarg ;;
c906108c
SS
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 461 libdir=$ac_optarg ;;
c906108c
SS
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
bec39cab 468 libexecdir=$ac_optarg ;;
c906108c
SS
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 477 localstatedir=$ac_optarg ;;
c906108c
SS
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 482 mandir=$ac_optarg ;;
c906108c
SS
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 489 | --no-cr | --no-c | -n)
c906108c
SS
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 503 oldincludedir=$ac_optarg ;;
c906108c
SS
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 508 prefix=$ac_optarg ;;
c906108c
SS
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 515 program_prefix=$ac_optarg ;;
c906108c
SS
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 522 program_suffix=$ac_optarg ;;
c906108c
SS
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 539 program_transform_name=$ac_optarg ;;
c906108c
SS
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
bec39cab 549 sbindir=$ac_optarg ;;
c906108c
SS
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
bec39cab 560 sharedstatedir=$ac_optarg ;;
c906108c
SS
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
bec39cab 565 site=$ac_optarg ;;
3ace7edb 566
c906108c
SS
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 570 srcdir=$ac_optarg ;;
c906108c
SS
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 577 sysconfdir=$ac_optarg ;;
c906108c
SS
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 580 ac_prev=target_alias ;;
c906108c 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 582 target_alias=$ac_optarg ;;
c906108c
SS
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
bec39cab
AC
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
c906108c
SS
589
590 -with-* | --with-*)
bec39cab 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 592 # Reject names that are not valid shell variable names.
bec39cab
AC
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
c906108c 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
602
603 -without-* | --without-*)
bec39cab 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 605 # Reject names that are not valid shell variable names.
bec39cab
AC
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
b4e70030 610 eval "with_$ac_package=no" ;;
c906108c
SS
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 621 x_includes=$ac_optarg ;;
c906108c
SS
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 628 x_libraries=$ac_optarg ;;
c906108c 629
bec39cab
AC
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
c906108c
SS
633 ;;
634
bec39cab
AC
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
b4e70030
JB
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
643 export $ac_envvar ;;
644
c906108c 645 *)
bec39cab
AC
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
bec39cab
AC
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
c906108c 660fi
c906108c 661
b4e70030
JB
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
c906108c 664do
b4e70030 665 eval ac_val=$`echo $ac_var`
bec39cab 666 case $ac_val in
b4e70030
JB
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
c906108c
SS
682 esac
683done
684
bec39cab
AC
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
c906108c 702
bec39cab
AC
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
c906108c 707
c906108c
SS
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
b4e70030
JB
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
bec39cab 719echo X"$0" |
b4e70030
JB
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
c906108c 725 srcdir=$ac_confdir
b4e70030 726 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
b4e70030
JB
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 738 { (exit 1); exit 1; }; }
b4e70030 739 fi
c906108c 740fi
b4e70030
JB
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 743 { (exit 1); exit 1; }; }
b4e70030
JB
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
c906108c 777
bec39cab
AC
778#
779# Report the --help message.
780#
781if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE. See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
b4e70030
JB
805_ACEOF
806
807 cat <<_ACEOF
bec39cab
AC
808Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
b4e70030 825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b4e70030
JB
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
834_ACEOF
835
836 cat <<\_ACEOF
837
838Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
bec39cab
AC
863 --disable-gdbcli disable command-line interface (CLI)
864 --disable-gdbmi disable machine-interface (MI)
865 --enable-tui enable full-screen terminal user interface (TUI)
866 --enable-gdbtk enable gdbtk graphical user interface (GUI)
867 --enable-profiling enable profiling of GDB
3841debe 868 --disable-rpath do not hardcode runtime library paths
094a342e 869 --enable-werror treat compile warnings as errors
bec39cab
AC
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
874
875Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bec39cab
AC
878 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
3841debe
DJ
880 --with-gnu-ld assume the C compiler uses GNU ld default=no
881 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
882 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
883 --without-included-regex don't use included regex; this is the default
884 on systems with version 2 of the GNU C library
885 (use with caution on other system)
886 --with-sysroot=DIR Search for usr/lib et al within DIR.
887 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
888 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
889 --with-tclinclude=DIR Directory where tcl private headers are
890 --with-tkinclude=DIR Directory where tk private headers are
891 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
892 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
893 --with-x use the X Window System
894 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
895
896Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
b4e70030
JB
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
bec39cab
AC
903 CPP C preprocessor
904
905Use these variables to override the choices made by `configure' or to help
906it to find libraries and programs with nonstandard names/locations.
907
908_ACEOF
909fi
910
911if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
b4e70030 913 ac_popdir=`pwd`
bec39cab
AC
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
916 ac_builddir=.
917
b4e70030 918if test "$ac_dir" != .; then
bec39cab 919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922else
923 ac_dir_suffix= ac_top_builddir=
924fi
bec39cab
AC
925
926case $srcdir in
b4e70030 927 .) # No --srcdir option. We are building in place.
bec39cab 928 ac_srcdir=.
b4e70030
JB
929 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=.
931 else
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933 fi ;;
934 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 935 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
936 ac_top_srcdir=$srcdir ;;
937 *) # Relative path.
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940esac
941
942# Do not use `cd foo && pwd` to compute absolute paths, because
943# the directories may not exist.
944case `pwd` in
945.) ac_abs_builddir="$ac_dir";;
946*)
947 case "$ac_dir" in
948 .) ac_abs_builddir=`pwd`;;
949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_top_builddir=${ac_top_builddir}.;;
955*)
956 case ${ac_top_builddir}. in
957 .) ac_abs_top_builddir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_srcdir=$ac_srcdir;;
964*)
965 case $ac_srcdir in
966 .) ac_abs_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 esac;;
970esac
971case $ac_abs_builddir in
972.) ac_abs_top_srcdir=$ac_top_srcdir;;
973*)
974 case $ac_top_srcdir in
975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
978 esac;;
bec39cab
AC
979esac
980
b4e70030
JB
981 cd $ac_dir
982 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 983 if test -f $ac_srcdir/configure.gnu; then
b4e70030 984 echo
bec39cab
AC
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
b4e70030 987 echo
bec39cab 988 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
991 echo
992 $ac_configure --help
3ace7edb 993 else
bec39cab 994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
995 fi
996 cd $ac_popdir
bec39cab
AC
997 done
998fi
999
b4e70030 1000test -n "$ac_init_help" && exit 0
bec39cab
AC
1001if $ac_init_version; then
1002 cat <<\_ACEOF
1003
b4e70030 1004Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1005This configure script is free software; the Free Software Foundation
1006gives unlimited permission to copy, distribute and modify it.
1007_ACEOF
b4e70030 1008 exit 0
bec39cab 1009fi
b4e70030
JB
1010exec 5>config.log
1011cat >&5 <<_ACEOF
bec39cab
AC
1012This file contains any messages produced by compilers while
1013running configure, to aid debugging if configure makes a mistake.
1014
1015It was created by $as_me, which was
b4e70030 1016generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1017
1018 $ $0 $@
1019
1020_ACEOF
1021{
1022cat <<_ASUNAME
1023## --------- ##
1024## Platform. ##
1025## --------- ##
1026
1027hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031uname -v = `(uname -v) 2>/dev/null || echo unknown`
1032
1033/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1035
1036/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1037/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1038/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1039hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1040/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1041/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1042/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1043
1044_ASUNAME
1045
1046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1047for as_dir in $PATH
1048do
1049 IFS=$as_save_IFS
1050 test -z "$as_dir" && as_dir=.
1051 echo "PATH: $as_dir"
1052done
1053
1054} >&5
1055
1056cat >&5 <<_ACEOF
1057
1058
1059## ----------- ##
1060## Core tests. ##
1061## ----------- ##
1062
1063_ACEOF
1064
1065
1066# Keep a trace of the command line.
1067# Strip out --no-create and --no-recursion so they do not pile up.
1068# Strip out --silent because we don't want to record it for future runs.
1069# Also quote any args containing shell meta-characters.
1070# Make two passes to allow for proper duplicate-argument suppression.
1071ac_configure_args=
1072ac_configure_args0=
1073ac_configure_args1=
1074ac_sep=
1075ac_must_keep_next=false
1076for ac_pass in 1 2
1077do
1078 for ac_arg
1079 do
1080 case $ac_arg in
1081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 continue ;;
b4e70030 1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1086 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1087 esac
1088 case $ac_pass in
1089 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 2)
1091 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092 if test $ac_must_keep_next = true; then
1093 ac_must_keep_next=false # Got value, back to normal.
1094 else
1095 case $ac_arg in
1096 *=* | --config-cache | -C | -disable-* | --disable-* \
1097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099 | -with-* | --with-* | -without-* | --without-* | --x)
1100 case "$ac_configure_args0 " in
1101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 esac
1103 ;;
1104 -* ) ac_must_keep_next=true ;;
1105 esac
1106 fi
1107 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108 # Get rid of the leading space.
1109 ac_sep=" "
1110 ;;
1111 esac
1112 done
1113done
1114$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116
1117# When interrupted or exit'd, cleanup temporary files, and complete
1118# config.log. We remove comments because anyway the quotes in there
1119# would cause problems or look ugly.
b4e70030
JB
1120# WARNING: Be sure not to use single quotes in there, as some shells,
1121# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1122trap 'exit_status=$?
1123 # Save into config.log some information that might help in debugging.
1124 {
1125 echo
1126
1127 cat <<\_ASBOX
1128## ---------------- ##
1129## Cache variables. ##
1130## ---------------- ##
1131_ASBOX
1132 echo
1133 # The following way of writing the cache mishandles newlines in values,
b4e70030 1134{
bec39cab 1135 (set) 2>&1 |
b4e70030
JB
1136 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 *ac_space=\ *)
bec39cab 1138 sed -n \
b4e70030
JB
1139 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 ;;
bec39cab 1142 *)
b4e70030
JB
1143 sed -n \
1144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1145 ;;
b4e70030
JB
1146 esac;
1147}
bec39cab
AC
1148 echo
1149
1150 cat <<\_ASBOX
1151## ----------------- ##
1152## Output variables. ##
1153## ----------------- ##
1154_ASBOX
1155 echo
1156 for ac_var in $ac_subst_vars
1157 do
b4e70030
JB
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1160 done | sort
1161 echo
1162
1163 if test -n "$ac_subst_files"; then
1164 cat <<\_ASBOX
b4e70030
JB
1165## ------------- ##
1166## Output files. ##
1167## ------------- ##
bec39cab
AC
1168_ASBOX
1169 echo
1170 for ac_var in $ac_subst_files
1171 do
b4e70030
JB
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1174 done | sort
1175 echo
1176 fi
1177
1178 if test -s confdefs.h; then
1179 cat <<\_ASBOX
1180## ----------- ##
1181## confdefs.h. ##
1182## ----------- ##
1183_ASBOX
1184 echo
b4e70030 1185 sed "/^$/d" confdefs.h | sort
bec39cab 1186 echo
3ace7edb 1187 fi
bec39cab
AC
1188 test "$ac_signal" != 0 &&
1189 echo "$as_me: caught signal $ac_signal"
1190 echo "$as_me: exit $exit_status"
1191 } >&5
b4e70030
JB
1192 rm -f core *.core &&
1193 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1194 exit $exit_status
b4e70030 1195 ' 0
bec39cab
AC
1196for ac_signal in 1 2 13 15; do
1197 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1198done
1199ac_signal=0
1200
1201# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1202rm -rf conftest* confdefs.h
1203# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204echo >confdefs.h
bec39cab
AC
1205
1206# Predefined preprocessor variables.
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_NAME "$PACKAGE_NAME"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_VERSION "$PACKAGE_VERSION"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_STRING "$PACKAGE_STRING"
1225_ACEOF
1226
1227
1228cat >>confdefs.h <<_ACEOF
1229#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1230_ACEOF
1231
1232
1233# Let the site file select an alternate cache file if it wants to.
1234# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1235if test -z "$CONFIG_SITE"; then
1236 if test "x$prefix" != xNONE; then
1237 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 else
1239 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 fi
c906108c 1241fi
b4e70030 1242for ac_site_file in $CONFIG_SITE; do
c906108c 1243 if test -r "$ac_site_file"; then
bec39cab
AC
1244 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245echo "$as_me: loading site script $ac_site_file" >&6;}
1246 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1247 . "$ac_site_file"
1248 fi
1249done
1250
1251if test -r "$cache_file"; then
bec39cab
AC
1252 # Some versions of bash will fail to source /dev/null (special
1253 # files actually), so we avoid doing that.
1254 if test -f "$cache_file"; then
1255 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256echo "$as_me: loading cache $cache_file" >&6;}
1257 case $cache_file in
1258 [\\/]* | ?:[\\/]* ) . $cache_file;;
1259 *) . ./$cache_file;;
1260 esac
1261 fi
c906108c 1262else
bec39cab
AC
1263 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264echo "$as_me: creating cache $cache_file" >&6;}
1265 >$cache_file
1266fi
1267
1268# Check that the precious variables saved in the cache have kept the same
1269# value.
1270ac_cache_corrupted=false
b4e70030
JB
1271for ac_var in `(set) 2>&1 |
1272 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1275 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1277 case $ac_old_set,$ac_new_set in
1278 set,)
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1282 ,set)
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1286 ,);;
1287 *)
1288 if test "x$ac_old_val" != "x$ac_new_val"; then
1289 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1292echo "$as_me: former value: $ac_old_val" >&2;}
1293 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1294echo "$as_me: current value: $ac_new_val" >&2;}
1295 ac_cache_corrupted=:
1296 fi;;
1297 esac
1298 # Pass precious variables to config.status.
1299 if test "$ac_new_set" = set; then
1300 case $ac_new_val in
b4e70030
JB
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1303 *) ac_arg=$ac_var=$ac_new_val ;;
1304 esac
1305 case " $ac_configure_args " in
1306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1307 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1308 esac
1309 fi
1310done
1311if $ac_cache_corrupted; then
1312 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316 { (exit 1); exit 1; }; }
c906108c
SS
1317fi
1318
b4e70030
JB
1319ac_ext=c
1320ac_cpp='$CPP $CPPFLAGS'
1321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1324
1325
bec39cab
AC
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
bec39cab 1342
b4e70030
JB
1343 ac_config_headers="$ac_config_headers config.h:config.in"
1344
1345echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1346echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1347 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1348if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1349 enableval="$enable_maintainer_mode"
1350 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1351else
1352 USE_MAINTAINER_MODE=no
b4e70030
JB
1353fi;
1354 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1355echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1356
413ccac7
AC
1357
1358if test $USE_MAINTAINER_MODE = yes; then
1359 MAINTAINER_MODE_TRUE=
1360 MAINTAINER_MODE_FALSE='#'
1361else
1362 MAINTAINER_MODE_TRUE='#'
1363 MAINTAINER_MODE_FALSE=
1364fi
85981d60 1365
413ccac7 1366 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1367
c906108c 1368
bec39cab
AC
1369
1370ac_ext=c
1371ac_cpp='$CPP $CPPFLAGS'
1372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375if test -n "$ac_tool_prefix"; then
1376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1377set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1378echo "$as_me:$LINENO: checking for $ac_word" >&5
1379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1380if test "${ac_cv_prog_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383 if test -n "$CC"; then
1384 ac_cv_prog_CC="$CC" # Let the user override the test.
1385else
1386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387for as_dir in $PATH
1388do
1389 IFS=$as_save_IFS
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395 break 2
1396 fi
1397done
1398done
1399
1400fi
1401fi
1402CC=$ac_cv_prog_CC
1403if test -n "$CC"; then
b4e70030
JB
1404 echo "$as_me:$LINENO: result: $CC" >&5
1405echo "${ECHO_T}$CC" >&6
bec39cab 1406else
b4e70030
JB
1407 echo "$as_me:$LINENO: result: no" >&5
1408echo "${ECHO_T}no" >&6
bec39cab
AC
1409fi
1410
1411fi
1412if test -z "$ac_cv_prog_CC"; then
1413 ac_ct_CC=$CC
1414 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1415set dummy gcc; ac_word=$2
b4e70030
JB
1416echo "$as_me:$LINENO: checking for $ac_word" >&5
1417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1418if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420else
1421 if test -n "$ac_ct_CC"; then
1422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1423else
1424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425for as_dir in $PATH
1426do
1427 IFS=$as_save_IFS
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1431 ac_cv_prog_ac_ct_CC="gcc"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 break 2
1434 fi
1435done
1436done
1437
1438fi
1439fi
1440ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441if test -n "$ac_ct_CC"; then
b4e70030
JB
1442 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1444else
b4e70030
JB
1445 echo "$as_me:$LINENO: result: no" >&5
1446echo "${ECHO_T}no" >&6
bec39cab
AC
1447fi
1448
b4e70030 1449 CC=$ac_ct_CC
bec39cab
AC
1450else
1451 CC="$ac_cv_prog_CC"
1452fi
1453
1454if test -z "$CC"; then
b4e70030
JB
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1457set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1458echo "$as_me:$LINENO: checking for $ac_word" >&5
1459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1460if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1462else
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1465else
bec39cab
AC
1466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467for as_dir in $PATH
1468do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1473 ac_cv_prog_CC="${ac_tool_prefix}cc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 break 2
1476 fi
1477done
1478done
1479
c906108c
SS
1480fi
1481fi
bec39cab 1482CC=$ac_cv_prog_CC
c906108c 1483if test -n "$CC"; then
b4e70030
JB
1484 echo "$as_me:$LINENO: result: $CC" >&5
1485echo "${ECHO_T}$CC" >&6
c906108c 1486else
b4e70030
JB
1487 echo "$as_me:$LINENO: result: no" >&5
1488echo "${ECHO_T}no" >&6
c906108c
SS
1489fi
1490
b4e70030
JB
1491fi
1492if test -z "$ac_cv_prog_CC"; then
1493 ac_ct_CC=$CC
1494 # Extract the first word of "cc", so it can be a program name with args.
1495set dummy cc; ac_word=$2
1496echo "$as_me:$LINENO: checking for $ac_word" >&5
1497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501 if test -n "$ac_ct_CC"; then
1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1503else
1504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505for as_dir in $PATH
1506do
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_ac_ct_CC="cc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 break 2
4e8d927d 1514 fi
b4e70030
JB
1515done
1516done
1517
1518fi
1519fi
1520ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521if test -n "$ac_ct_CC"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523echo "${ECHO_T}$ac_ct_CC" >&6
1524else
1525 echo "$as_me:$LINENO: result: no" >&5
1526echo "${ECHO_T}no" >&6
1527fi
1528
1529 CC=$ac_ct_CC
1530else
1531 CC="$ac_cv_prog_CC"
1532fi
1533
bec39cab 1534fi
c906108c
SS
1535if test -z "$CC"; then
1536 # Extract the first word of "cc", so it can be a program name with args.
1537set dummy cc; ac_word=$2
b4e70030
JB
1538echo "$as_me:$LINENO: checking for $ac_word" >&5
1539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1540if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1542else
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1545else
c906108c 1546 ac_prog_rejected=no
bec39cab
AC
1547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548for as_dir in $PATH
1549do
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1555 ac_prog_rejected=yes
1556 continue
1557 fi
1558 ac_cv_prog_CC="cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562done
1563done
1564
c906108c
SS
1565if test $ac_prog_rejected = yes; then
1566 # We found a bogon in the path, so make sure we never use it.
1567 set dummy $ac_cv_prog_CC
1568 shift
bec39cab 1569 if test $# != 0; then
c906108c
SS
1570 # We chose a different compiler from the bogus one.
1571 # However, it has the same basename, so the bogon will be chosen
1572 # first if we set CC to just the basename; use the full file name.
1573 shift
bec39cab 1574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1575 fi
1576fi
1577fi
1578fi
bec39cab 1579CC=$ac_cv_prog_CC
c906108c 1580if test -n "$CC"; then
b4e70030
JB
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582echo "${ECHO_T}$CC" >&6
c906108c 1583else
b4e70030
JB
1584 echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
c906108c
SS
1586fi
1587
bec39cab
AC
1588fi
1589if test -z "$CC"; then
1590 if test -n "$ac_tool_prefix"; then
b4e70030 1591 for ac_prog in cl
bec39cab
AC
1592 do
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1595echo "$as_me:$LINENO: checking for $ac_word" >&5
1596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1597if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1599else
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1602else
bec39cab
AC
1603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604for as_dir in $PATH
1605do
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 break 2
1613 fi
1614done
1615done
1616
c906108c
SS
1617fi
1618fi
bec39cab 1619CC=$ac_cv_prog_CC
c906108c 1620if test -n "$CC"; then
b4e70030
JB
1621 echo "$as_me:$LINENO: result: $CC" >&5
1622echo "${ECHO_T}$CC" >&6
c906108c 1623else
b4e70030
JB
1624 echo "$as_me:$LINENO: result: no" >&5
1625echo "${ECHO_T}no" >&6
c906108c 1626fi
bec39cab
AC
1627
1628 test -n "$CC" && break
1629 done
1630fi
1631if test -z "$CC"; then
1632 ac_ct_CC=$CC
b4e70030 1633 for ac_prog in cl
bec39cab
AC
1634do
1635 # Extract the first word of "$ac_prog", so it can be a program name with args.
1636set dummy $ac_prog; ac_word=$2
b4e70030
JB
1637echo "$as_me:$LINENO: checking for $ac_word" >&5
1638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642 if test -n "$ac_ct_CC"; then
1643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644else
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1652 ac_cv_prog_ac_ct_CC="$ac_prog"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
c906108c 1655 fi
bec39cab
AC
1656done
1657done
1658
1659fi
1660fi
1661ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662if test -n "$ac_ct_CC"; then
b4e70030
JB
1663 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1665else
b4e70030
JB
1666 echo "$as_me:$LINENO: result: no" >&5
1667echo "${ECHO_T}no" >&6
c906108c
SS
1668fi
1669
bec39cab
AC
1670 test -n "$ac_ct_CC" && break
1671done
c906108c 1672
b4e70030 1673 CC=$ac_ct_CC
bec39cab
AC
1674fi
1675
1676fi
1677
1678
1679test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1680See \`config.log' for more details." >&5
1681echo "$as_me: error: no acceptable C compiler found in \$PATH
1682See \`config.log' for more details." >&2;}
1683 { (exit 1); exit 1; }; }
1684
1685# Provide some information about the compiler.
b4e70030
JB
1686echo "$as_me:$LINENO:" \
1687 "checking for C compiler version" >&5
bec39cab 1688ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1689{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1690 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1691 ac_status=$?
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
b4e70030
JB
1694{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1695 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1696 ac_status=$?
1697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698 (exit $ac_status); }
b4e70030
JB
1699{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1700 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704
1705cat >conftest.$ac_ext <<_ACEOF
1706/* confdefs.h. */
1707_ACEOF
1708cat confdefs.h >>conftest.$ac_ext
1709cat >>conftest.$ac_ext <<_ACEOF
1710/* end confdefs.h. */
1711
1712int
1713main ()
1714{
1715
1716 ;
1717 return 0;
1718}
1719_ACEOF
1720ac_clean_files_save=$ac_clean_files
b4e70030 1721ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1722# Try to create an executable without -o first, disregard a.out.
1723# It will help us diagnose broken compilers, and finding out an intuition
1724# of exeext.
b4e70030
JB
1725echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1726echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1727ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1728if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1729 (eval $ac_link_default) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }; then
b4e70030
JB
1733 # Find the output, starting from the most likely. This scheme is
1734# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1735# resort.
1736
1737# Be careful to initialize this variable, since it used to be cached.
1738# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1739ac_cv_exeext=
1740# b.out is created by i960 compilers.
1741for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1742do
1743 test -f "$ac_file" || continue
1744 case $ac_file in
b4e70030
JB
1745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1746 ;;
1747 conftest.$ac_ext )
1748 # This is the source file.
1749 ;;
1750 [ab].out )
1751 # We found the default executable, but exeext='' is most
1752 # certainly right.
1753 break;;
1754 *.* )
1755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 # FIXME: I believe we export ac_cv_exeext for Libtool,
1757 # but it would be cool to find out if it's true. Does anybody
1758 # maintain Libtool? --akim.
1759 export ac_cv_exeext
1760 break;;
1761 * )
1762 break;;
bec39cab
AC
1763 esac
1764done
1765else
1766 echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1770See \`config.log' for more details." >&5
1771echo "$as_me: error: C compiler cannot create executables
1772See \`config.log' for more details." >&2;}
1773 { (exit 77); exit 77; }; }
1774fi
1775
b4e70030
JB
1776ac_exeext=$ac_cv_exeext
1777echo "$as_me:$LINENO: result: $ac_file" >&5
1778echo "${ECHO_T}$ac_file" >&6
1779
1780# Check the compiler produces executables we can run. If not, either
bec39cab 1781# the compiler is broken, or we cross compile.
b4e70030
JB
1782echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1783echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1784# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785# If not cross compiling, check that we can run a simple program.
1786if test "$cross_compiling" != yes; then
1787 if { ac_try='./$ac_file'
1788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 (eval $ac_try) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1793 cross_compiling=no
c906108c 1794 else
bec39cab
AC
1795 if test "$cross_compiling" = maybe; then
1796 cross_compiling=yes
1797 else
1798 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1799If you meant to cross compile, use \`--host'.
1800See \`config.log' for more details." >&5
1801echo "$as_me: error: cannot run C compiled programs.
1802If you meant to cross compile, use \`--host'.
1803See \`config.log' for more details." >&2;}
1804 { (exit 1); exit 1; }; }
1805 fi
c906108c 1806 fi
bec39cab 1807fi
b4e70030
JB
1808echo "$as_me:$LINENO: result: yes" >&5
1809echo "${ECHO_T}yes" >&6
bec39cab 1810
b4e70030
JB
1811rm -f a.out a.exe conftest$ac_cv_exeext b.out
1812ac_clean_files=$ac_clean_files_save
1813# Check the compiler produces executables we can run. If not, either
1814# the compiler is broken, or we cross compile.
1815echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1816echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1817echo "$as_me:$LINENO: result: $cross_compiling" >&5
1818echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1819
b4e70030
JB
1820echo "$as_me:$LINENO: checking for suffix of executables" >&5
1821echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1823 (eval $ac_link) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
b4e70030
JB
1827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1828# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1829# work properly (i.e., refer to `conftest.exe'), while it won't with
1830# `rm'.
1831for ac_file in conftest.exe conftest conftest.*; do
1832 test -f "$ac_file" || continue
1833 case $ac_file in
1834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 export ac_cv_exeext
1837 break;;
1838 * ) break;;
1839 esac
1840done
c906108c 1841else
bec39cab
AC
1842 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1843See \`config.log' for more details." >&5
1844echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1845See \`config.log' for more details." >&2;}
1846 { (exit 1); exit 1; }; }
c906108c 1847fi
c906108c 1848
b4e70030
JB
1849rm -f conftest$ac_cv_exeext
1850echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1851echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1852
b4e70030 1853rm -f conftest.$ac_ext
bec39cab
AC
1854EXEEXT=$ac_cv_exeext
1855ac_exeext=$EXEEXT
b4e70030
JB
1856echo "$as_me:$LINENO: checking for suffix of object files" >&5
1857echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1858if test "${ac_cv_objext+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
b4e70030
JB
1861 cat >conftest.$ac_ext <<_ACEOF
1862/* confdefs.h. */
1863_ACEOF
1864cat confdefs.h >>conftest.$ac_ext
1865cat >>conftest.$ac_ext <<_ACEOF
1866/* end confdefs.h. */
1867
1868int
1869main ()
1870{
1871
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876rm -f conftest.o conftest.obj
bec39cab
AC
1877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1879 ac_status=$?
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
b4e70030 1882 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1883 case $ac_file in
b4e70030 1884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1886 break;;
1887 esac
1888done
c906108c 1889else
bec39cab
AC
1890 echo "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1894See \`config.log' for more details." >&5
1895echo "$as_me: error: cannot compute suffix of object files: cannot compile
1896See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
c906108c
SS
1898fi
1899
b4e70030 1900rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1901fi
b4e70030
JB
1902echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1903echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1904OBJEXT=$ac_cv_objext
1905ac_objext=$OBJEXT
b4e70030
JB
1906echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1907echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1908if test "${ac_cv_c_compiler_gnu+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1910else
bec39cab
AC
1911 cat >conftest.$ac_ext <<_ACEOF
1912/* confdefs.h. */
1913_ACEOF
1914cat confdefs.h >>conftest.$ac_ext
1915cat >>conftest.$ac_ext <<_ACEOF
1916/* end confdefs.h. */
1917
1918int
1919main ()
1920{
1921#ifndef __GNUC__
1922 choke me
1923#endif
1924
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929rm -f conftest.$ac_objext
1930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>conftest.er1
1932 ac_status=$?
1933 grep -v '^ *+' conftest.er1 >conftest.err
1934 rm -f conftest.er1
1935 cat conftest.err >&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); } &&
b4e70030
JB
1938 { ac_try='test -z "$ac_c_werror_flag"
1939 || test ! -s conftest.err'
bec39cab
AC
1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 (eval $ac_try) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1951 ac_compiler_gnu=yes
1952else
1953 echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
b4e70030 1956ac_compiler_gnu=no
bec39cab
AC
1957fi
1958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1959ac_cv_c_compiler_gnu=$ac_compiler_gnu
1960
1961fi
b4e70030
JB
1962echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1963echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1964GCC=`test $ac_compiler_gnu = yes && echo yes`
1965ac_test_CFLAGS=${CFLAGS+set}
1966ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1967CFLAGS="-g"
1968echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1969echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1970if test "${ac_cv_prog_cc_g+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
b4e70030 1973 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1974/* confdefs.h. */
1975_ACEOF
1976cat confdefs.h >>conftest.$ac_ext
1977cat >>conftest.$ac_ext <<_ACEOF
1978/* end confdefs.h. */
1979
1980int
1981main ()
1982{
1983
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
b4e70030
JB
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
bec39cab
AC
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
c906108c
SS
2010 ac_cv_prog_cc_g=yes
2011else
bec39cab
AC
2012 echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2014
b4e70030 2015ac_cv_prog_cc_g=no
4e8d927d 2016fi
bec39cab
AC
2017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018fi
b4e70030
JB
2019echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2020echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2021if test "$ac_test_CFLAGS" = set; then
bec39cab 2022 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2023elif test $ac_cv_prog_cc_g = yes; then
2024 if test "$GCC" = yes; then
2025 CFLAGS="-g -O2"
2026 else
2027 CFLAGS="-g"
2028 fi
2029else
2030 if test "$GCC" = yes; then
2031 CFLAGS="-O2"
2032 else
2033 CFLAGS=
2034 fi
2035fi
b4e70030
JB
2036echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2037echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2038if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
b4e70030 2041 ac_cv_prog_cc_stdc=no
bec39cab
AC
2042ac_save_CC=$CC
2043cat >conftest.$ac_ext <<_ACEOF
2044/* confdefs.h. */
2045_ACEOF
2046cat confdefs.h >>conftest.$ac_ext
2047cat >>conftest.$ac_ext <<_ACEOF
2048/* end confdefs.h. */
c906108c
SS
2049#include <stdarg.h>
2050#include <stdio.h>
2051#include <sys/types.h>
2052#include <sys/stat.h>
2053/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2054struct buf { int x; };
2055FILE * (*rcsopen) (struct buf *, struct stat *, int);
2056static char *e (p, i)
2057 char **p;
2058 int i;
2059{
2060 return p[i];
2061}
2062static char *f (char * (*g) (char **, int), char **p, ...)
2063{
2064 char *s;
2065 va_list v;
2066 va_start (v,p);
2067 s = g (p, va_arg (v,int));
2068 va_end (v);
2069 return s;
2070}
bec39cab
AC
2071
2072/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2073 function prototypes and stuff, but not '\xHH' hex character constants.
2074 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2075 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2077 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2078 that's true only with -std1. */
bec39cab
AC
2079int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2080
c906108c
SS
2081int test (int i, double x);
2082struct s1 {int (*f) (int a);};
2083struct s2 {int (*f) (double a);};
2084int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2085int argc;
2086char **argv;
bec39cab
AC
2087int
2088main ()
2089{
c906108c 2090return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2091 ;
2092 return 0;
2093}
2094_ACEOF
b4e70030
JB
2095# Don't try gcc -ansi; that turns off useful extensions and
2096# breaks some systems' header files.
2097# AIX -qlanglvl=ansi
2098# Ultrix and OSF/1 -std1
2099# HP-UX 10.20 and later -Ae
2100# HP-UX older versions -Aa -D_HPUX_SOURCE
2101# SVR4 -Xc -D__EXTENSIONS__
2102for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2103do
2104 CC="$ac_save_CC $ac_arg"
2105 rm -f conftest.$ac_objext
2106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 (eval $ac_compile) 2>conftest.er1
2108 ac_status=$?
2109 grep -v '^ *+' conftest.er1 >conftest.err
2110 rm -f conftest.er1
2111 cat conftest.err >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
b4e70030
JB
2114 { ac_try='test -z "$ac_c_werror_flag"
2115 || test ! -s conftest.err'
bec39cab
AC
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
b4e70030
JB
2127 ac_cv_prog_cc_stdc=$ac_arg
2128break
c906108c 2129else
bec39cab
AC
2130 echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
c906108c 2133fi
bec39cab 2134rm -f conftest.err conftest.$ac_objext
c906108c 2135done
b4e70030 2136rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2137CC=$ac_save_CC
c906108c
SS
2138
2139fi
b4e70030
JB
2140
2141case "x$ac_cv_prog_cc_stdc" in
2142 x|xno)
2143 echo "$as_me:$LINENO: result: none needed" >&5
2144echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2145 *)
b4e70030
JB
2146 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2147echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2148 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2149esac
2150
b4e70030
JB
2151# Some people use a C++ compiler to compile C. Since we use `exit',
2152# in C++ we need to declare it. In case someone uses the same compiler
2153# for both compiling C and C++ we need to have the C++ compiler decide
2154# the declaration of exit, since it's the most demanding environment.
2155cat >conftest.$ac_ext <<_ACEOF
2156#ifndef __cplusplus
2157 choke me
2158#endif
2159_ACEOF
2160rm -f conftest.$ac_objext
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
2163 ac_status=$?
2164 grep -v '^ *+' conftest.er1 >conftest.err
2165 rm -f conftest.er1
2166 cat conftest.err >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -z "$ac_c_werror_flag"
2170 || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 for ac_declaration in \
2183 '' \
2184 'extern "C" void std::exit (int) throw (); using std::exit;' \
2185 'extern "C" void std::exit (int); using std::exit;' \
2186 'extern "C" void exit (int) throw ();' \
2187 'extern "C" void exit (int);' \
2188 'void exit (int);'
2189do
2190 cat >conftest.$ac_ext <<_ACEOF
2191/* confdefs.h. */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h. */
2196$ac_declaration
2197#include <stdlib.h>
2198int
2199main ()
2200{
2201exit (42);
2202 ;
2203 return 0;
2204}
2205_ACEOF
2206rm -f conftest.$ac_objext
2207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag"
2216 || test ! -s conftest.err'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 :
2229else
2230 echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233continue
2234fi
2235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2236 cat >conftest.$ac_ext <<_ACEOF
2237/* confdefs.h. */
2238_ACEOF
2239cat confdefs.h >>conftest.$ac_ext
2240cat >>conftest.$ac_ext <<_ACEOF
2241/* end confdefs.h. */
2242$ac_declaration
2243int
2244main ()
2245{
2246exit (42);
2247 ;
2248 return 0;
2249}
2250_ACEOF
2251rm -f conftest.$ac_objext
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2254 ac_status=$?
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 break
2274else
2275 echo "$as_me: failed program was:" >&5
2276sed 's/^/| /' conftest.$ac_ext >&5
2277
2278fi
2279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280done
2281rm -f conftest*
2282if test -n "$ac_declaration"; then
2283 echo '#ifdef __cplusplus' >>confdefs.h
2284 echo $ac_declaration >>confdefs.h
2285 echo '#endif' >>confdefs.h
2286fi
2287
2288else
2289 echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2291
b4e70030
JB
2292fi
2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2299
60ca704f 2300
bec39cab
AC
2301cat >>confdefs.h <<\_ACEOF
2302#define _GNU_SOURCE 1
2303_ACEOF
c906108c
SS
2304
2305
8bb2c122 2306
bec39cab
AC
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2312echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2313echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2314# On Suns, sometimes $CPP names a directory.
2315if test -n "$CPP" && test -d "$CPP"; then
2316 CPP=
8bb2c122 2317fi
bec39cab
AC
2318if test -z "$CPP"; then
2319 if test "${ac_cv_prog_CPP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322 # Double quotes because CPP needs to be expanded
2323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2324 do
2325 ac_preproc_ok=false
2326for ac_c_preproc_warn_flag in '' yes
2327do
2328 # Use a header file that comes with gcc, so configuring glibc
2329 # with a fresh cross-compiler works.
2330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331 # <limits.h> exists even on freestanding compilers.
2332 # On the NeXT, cc -E runs the code through the compiler's parser,
2333 # not just through cpp. "Syntax error" is here to catch this case.
2334 cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
2340#ifdef __STDC__
2341# include <limits.h>
2342#else
2343# include <assert.h>
2344#endif
2345 Syntax error
2346_ACEOF
2347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2358 else
2359 ac_cpp_err=
2360 fi
8bb2c122 2361else
bec39cab 2362 ac_cpp_err=yes
8bb2c122 2363fi
bec39cab
AC
2364if test -z "$ac_cpp_err"; then
2365 :
8bb2c122 2366else
bec39cab
AC
2367 echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 # Broken: fails on valid input.
2371continue
2372fi
2373rm -f conftest.err conftest.$ac_ext
2374
b4e70030 2375 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2376 # can be detected and how.
2377 cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
2383#include <ac_nonexistent.h>
2384_ACEOF
2385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } >/dev/null; then
2393 if test -s conftest.err; then
2394 ac_cpp_err=$ac_c_preproc_warn_flag
2395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2396 else
2397 ac_cpp_err=
2398 fi
8bb2c122 2399else
bec39cab 2400 ac_cpp_err=yes
8bb2c122 2401fi
bec39cab
AC
2402if test -z "$ac_cpp_err"; then
2403 # Broken: success on invalid input.
2404continue
8bb2c122 2405else
bec39cab
AC
2406 echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2408
bec39cab
AC
2409 # Passes both tests.
2410ac_preproc_ok=:
2411break
8bb2c122 2412fi
bec39cab 2413rm -f conftest.err conftest.$ac_ext
8bb2c122 2414
bec39cab
AC
2415done
2416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2417rm -f conftest.err conftest.$ac_ext
2418if $ac_preproc_ok; then
2419 break
2420fi
8bb2c122 2421
bec39cab
AC
2422 done
2423 ac_cv_prog_CPP=$CPP
ddc9cd0f 2424
c906108c 2425fi
bec39cab
AC
2426 CPP=$ac_cv_prog_CPP
2427else
2428 ac_cv_prog_CPP=$CPP
c906108c 2429fi
b4e70030
JB
2430echo "$as_me:$LINENO: result: $CPP" >&5
2431echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2432ac_preproc_ok=false
2433for ac_c_preproc_warn_flag in '' yes
2434do
2435 # Use a header file that comes with gcc, so configuring glibc
2436 # with a fresh cross-compiler works.
2437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2438 # <limits.h> exists even on freestanding compilers.
2439 # On the NeXT, cc -E runs the code through the compiler's parser,
2440 # not just through cpp. "Syntax error" is here to catch this case.
2441 cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h. */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h. */
2447#ifdef __STDC__
2448# include <limits.h>
2449#else
2450# include <assert.h>
2451#endif
2452 Syntax error
2453_ACEOF
2454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
2464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2465 else
2466 ac_cpp_err=
2467 fi
c906108c 2468else
bec39cab 2469 ac_cpp_err=yes
c906108c 2470fi
bec39cab
AC
2471if test -z "$ac_cpp_err"; then
2472 :
c906108c 2473else
bec39cab
AC
2474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 # Broken: fails on valid input.
2478continue
2479fi
2480rm -f conftest.err conftest.$ac_ext
2481
b4e70030 2482 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2483 # can be detected and how.
2484 cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490#include <ac_nonexistent.h>
2491_ACEOF
2492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2503 else
2504 ac_cpp_err=
2505 fi
c906108c 2506else
bec39cab 2507 ac_cpp_err=yes
c906108c 2508fi
bec39cab
AC
2509if test -z "$ac_cpp_err"; then
2510 # Broken: success on invalid input.
2511continue
c906108c 2512else
bec39cab
AC
2513 echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2515
bec39cab
AC
2516 # Passes both tests.
2517ac_preproc_ok=:
2518break
c906108c 2519fi
bec39cab 2520rm -f conftest.err conftest.$ac_ext
c906108c 2521
bec39cab
AC
2522done
2523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2524rm -f conftest.err conftest.$ac_ext
2525if $ac_preproc_ok; then
c906108c
SS
2526 :
2527else
bec39cab
AC
2528 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2529See \`config.log' for more details." >&5
2530echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2531See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
c906108c 2533fi
c906108c 2534
bec39cab
AC
2535ac_ext=c
2536ac_cpp='$CPP $CPPFLAGS'
2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
b4e70030
JB
2542echo "$as_me:$LINENO: checking for egrep" >&5
2543echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2544if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
b4e70030
JB
2547 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2548 then ac_cv_prog_egrep='grep -E'
2549 else ac_cv_prog_egrep='egrep'
bec39cab 2550 fi
4e8d927d 2551fi
b4e70030
JB
2552echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2553echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2554 EGREP=$ac_cv_prog_egrep
c906108c 2555
bec39cab
AC
2556
2557
b4e70030
JB
2558echo "$as_me:$LINENO: checking for AIX" >&5
2559echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2560cat >conftest.$ac_ext <<_ACEOF
2561/* confdefs.h. */
2562_ACEOF
2563cat confdefs.h >>conftest.$ac_ext
2564cat >>conftest.$ac_ext <<_ACEOF
2565/* end confdefs.h. */
2566#ifdef _AIX
2567 yes
2568#endif
2569
2570_ACEOF
c906108c 2571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2572 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2573 echo "$as_me:$LINENO: result: yes" >&5
2574echo "${ECHO_T}yes" >&6
bec39cab
AC
2575cat >>confdefs.h <<\_ACEOF
2576#define _ALL_SOURCE 1
2577_ACEOF
2578
c906108c 2579else
b4e70030
JB
2580 echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6
c906108c
SS
2582fi
2583rm -f conftest*
2584
c906108c 2585
b4e70030
JB
2586echo "$as_me:$LINENO: checking for library containing strerror" >&5
2587echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2588if test "${ac_cv_search_strerror+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2590else
bec39cab 2591 ac_func_search_save_LIBS=$LIBS
b4e70030 2592ac_cv_search_strerror=no
bec39cab
AC
2593cat >conftest.$ac_ext <<_ACEOF
2594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
c906108c 2599
b4e70030 2600/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2601#ifdef __cplusplus
2602extern "C"
2603#endif
b4e70030
JB
2604/* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
bec39cab
AC
2606char strerror ();
2607int
2608main ()
2609{
b4e70030 2610strerror ();
bec39cab
AC
2611 ;
2612 return 0;
2613}
2614_ACEOF
b4e70030 2615rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2617 (eval $ac_link) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
b4e70030
JB
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
bec39cab
AC
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest$ac_exeext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
b4e70030 2637 ac_cv_search_strerror="none required"
c906108c 2638else
bec39cab
AC
2639 echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2641
2642fi
bec39cab 2643rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2644 conftest$ac_exeext conftest.$ac_ext
2645if test "$ac_cv_search_strerror" = no; then
2646 for ac_lib in cposix; do
2647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2648 cat >conftest.$ac_ext <<_ACEOF
2649/* confdefs.h. */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h. */
2654
2655/* Override any gcc2 internal prototype to avoid an error. */
2656#ifdef __cplusplus
2657extern "C"
2658#endif
2659/* We use char because int might match the return type of a gcc2
2660 builtin and then its argument prototype would still apply. */
2661char strerror ();
2662int
2663main ()
2664{
2665strerror ();
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext conftest$ac_exeext
2671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672 (eval $ac_link) 2>conftest.er1
2673 ac_status=$?
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest$ac_exeext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_search_strerror="-l$ac_lib"
2693break
4e8d927d 2694else
b4e70030
JB
2695 echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698fi
2699rm -f conftest.err conftest.$ac_objext \
2700 conftest$ac_exeext conftest.$ac_ext
2701 done
c906108c 2702fi
bec39cab 2703LIBS=$ac_func_search_save_LIBS
c906108c 2704fi
b4e70030
JB
2705echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2706echo "${ECHO_T}$ac_cv_search_strerror" >&6
2707if test "$ac_cv_search_strerror" != no; then
2708 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2709
c906108c
SS
2710fi
2711
c906108c 2712
c906108c 2713
bec39cab 2714
b4e70030
JB
2715echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2716echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
bec39cab
AC
2717if test "${am_cv_prog_cc_stdc+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2719else
bec39cab
AC
2720 am_cv_prog_cc_stdc=no
2721ac_save_CC="$CC"
2722# Don't try gcc -ansi; that turns off useful extensions and
2723# breaks some systems' header files.
2724# AIX -qlanglvl=ansi
2725# Ultrix and OSF/1 -std1
2726# HP-UX 10.20 and later -Ae
2727# HP-UX older versions -Aa -D_HPUX_SOURCE
2728# SVR4 -Xc -D__EXTENSIONS__
2729for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730do
2731 CC="$ac_save_CC $ac_arg"
2732 cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h. */
2738#include <stdarg.h>
2739#include <stdio.h>
2740#include <sys/types.h>
2741#include <sys/stat.h>
2742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743struct buf { int x; };
2744FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745static char *e (p, i)
2746 char **p;
2747 int i;
2748{
2749 return p[i];
2750}
2751static char *f (char * (*g) (char **, int), char **p, ...)
2752{
2753 char *s;
2754 va_list v;
2755 va_start (v,p);
2756 s = g (p, va_arg (v,int));
2757 va_end (v);
2758 return s;
2759}
2760int test (int i, double x);
2761struct s1 {int (*f) (int a);};
2762struct s2 {int (*f) (double a);};
2763int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764int argc;
2765char **argv;
c906108c 2766
bec39cab
AC
2767int
2768main ()
2769{
c906108c 2770
bec39cab 2771return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2772
bec39cab
AC
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
b4e70030
JB
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
bec39cab
AC
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2800else
bec39cab
AC
2801 echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2803
2804fi
bec39cab
AC
2805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806done
2807CC="$ac_save_CC"
c906108c
SS
2808
2809fi
2810
bec39cab 2811if test -z "$am_cv_prog_cc_stdc"; then
b4e70030
JB
2812 echo "$as_me:$LINENO: result: none needed" >&5
2813echo "${ECHO_T}none needed" >&6
c906108c 2814else
b4e70030
JB
2815 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2816echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2817fi
bec39cab
AC
2818case "x$am_cv_prog_cc_stdc" in
2819 x|xno) ;;
2820 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2821esac
c906108c 2822
c906108c 2823
bec39cab
AC
2824ac_aux_dir=
2825for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2826 if test -f $ac_dir/install-sh; then
2827 ac_aux_dir=$ac_dir
2828 ac_install_sh="$ac_aux_dir/install-sh -c"
2829 break
2830 elif test -f $ac_dir/install.sh; then
2831 ac_aux_dir=$ac_dir
2832 ac_install_sh="$ac_aux_dir/install.sh -c"
2833 break
2834 elif test -f $ac_dir/shtool; then
2835 ac_aux_dir=$ac_dir
2836 ac_install_sh="$ac_aux_dir/shtool install -c"
2837 break
2838 fi
2839done
2840if test -z "$ac_aux_dir"; then
2841 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2842echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2843 { (exit 1); exit 1; }; }
c906108c 2844fi
bec39cab
AC
2845ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2846ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2847ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2848
bec39cab
AC
2849# Make sure we can run config.sub.
2850$ac_config_sub sun4 >/dev/null 2>&1 ||
2851 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2852echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2853 { (exit 1); exit 1; }; }
2854
b4e70030
JB
2855echo "$as_me:$LINENO: checking build system type" >&5
2856echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2857if test "${ac_cv_build+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
b4e70030
JB
2860 ac_cv_build_alias=$build_alias
2861test -z "$ac_cv_build_alias" &&
2862 ac_cv_build_alias=`$ac_config_guess`
2863test -z "$ac_cv_build_alias" &&
bec39cab
AC
2864 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2865echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2866 { (exit 1); exit 1; }; }
b4e70030
JB
2867ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2868 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2869echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab
AC
2870 { (exit 1); exit 1; }; }
2871
2872fi
b4e70030
JB
2873echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2874echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2875build=$ac_cv_build
b4e70030
JB
2876build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2877build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2878build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2879
2880
b4e70030
JB
2881echo "$as_me:$LINENO: checking host system type" >&5
2882echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2883if test "${ac_cv_host+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
b4e70030
JB
2886 ac_cv_host_alias=$host_alias
2887test -z "$ac_cv_host_alias" &&
2888 ac_cv_host_alias=$ac_cv_build_alias
2889ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2890 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2891echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab
AC
2892 { (exit 1); exit 1; }; }
2893
2894fi
b4e70030
JB
2895echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2896echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2897host=$ac_cv_host
b4e70030
JB
2898host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2899host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2900host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2901
2902
b4e70030
JB
2903echo "$as_me:$LINENO: checking target system type" >&5
2904echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2905if test "${ac_cv_target+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
b4e70030
JB
2908 ac_cv_target_alias=$target_alias
2909test "x$ac_cv_target_alias" = "x" &&
2910 ac_cv_target_alias=$ac_cv_host_alias
2911ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2912 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2913echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
2914 { (exit 1); exit 1; }; }
2915
2916fi
b4e70030
JB
2917echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2918echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2919target=$ac_cv_target
b4e70030
JB
2920target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2921target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2922target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2923
c906108c 2924
bec39cab
AC
2925# The aliases save the names the user supplied, while $host etc.
2926# will get canonicalized.
2927test -n "$target_alias" &&
2928 test "$program_prefix$program_suffix$program_transform_name" = \
2929 NONENONEs,x,x, &&
2930 program_prefix=${target_alias}-
c906108c 2931
c906108c 2932
bec39cab
AC
2933CONFIG_OBS=
2934CONFIG_DEPS=
2935CONFIG_SRCS=
2936ENABLE_CFLAGS=
c906108c 2937
bec39cab
AC
2938CONFIG_ALL=
2939CONFIG_CLEAN=
2940CONFIG_INSTALL=
2941CONFIG_UNINSTALL=
2942
20e95c23
DJ
2943# If we haven't got the data from the intl directory,
2944# assume NLS is disabled.
2945USE_NLS=no
2946LIBINTL=
2947LIBINTL_DEP=
2948INCINTL=
2949XGETTEXT=
2950GMSGFMT=
2951POSUB=
3841debe
DJ
2952
2953if test -f ../intl/config.intl; then
2954 . ../intl/config.intl
20e95c23
DJ
2955fi
2956echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2957echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2958if test x"$USE_NLS" != xyes; then
b4e70030
JB
2959 echo "$as_me:$LINENO: result: no" >&5
2960echo "${ECHO_T}no" >&6
c906108c 2961else
20e95c23
DJ
2962 echo "$as_me:$LINENO: result: yes" >&5
2963echo "${ECHO_T}yes" >&6
c906108c 2964
20e95c23
DJ
2965cat >>confdefs.h <<\_ACEOF
2966#define ENABLE_NLS 1
bec39cab 2967_ACEOF
c906108c 2968
c906108c 2969
20e95c23
DJ
2970 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2971echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2972 # Look for .po and .gmo files in the source directory.
2973 CATALOGS=
2974 XLINGUAS=
2975 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2976 # If there aren't any .gmo files the shell will give us the
2977 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2978 # weeded out.
2979 case "$cat" in *\**)
2980 continue;;
2981 esac
2982 # The quadruple backslash is collapsed to a double backslash
2983 # by the backticks, then collapsed again by the double quotes,
2984 # leaving us with one backslash in the sed expression (right
2985 # before the dot that mustn't act as a wildcard).
2986 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2987 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2988 # The user is allowed to set LINGUAS to a list of languages to
2989 # install catalogs for. If it's empty that means "all of them."
2990 if test "x$LINGUAS" = x; then
2991 CATALOGS="$CATALOGS $cat"
2992 XLINGUAS="$XLINGUAS $lang"
2993 else
2994 case "$LINGUAS" in *$lang*)
2995 CATALOGS="$CATALOGS $cat"
2996 XLINGUAS="$XLINGUAS $lang"
2997 ;;
2998 esac
2999 fi
3000 done
3001 LINGUAS="$XLINGUAS"
3002 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3003echo "${ECHO_T}$LINGUAS" >&6
c906108c 3004
c906108c 3005
20e95c23 3006 DATADIRNAME=share
c906108c 3007
20e95c23 3008 INSTOBJEXT=.mo
c906108c 3009
20e95c23
DJ
3010 GENCAT=gencat
3011
3012 CATOBJEXT=.gmo
3013
3014fi
3015
3016localedir='${datadir}/locale'
c906108c 3017
bec39cab 3018
20e95c23 3019if test x"$USE_NLS" = xyes; then
bec39cab
AC
3020 CONFIG_ALL="$CONFIG_ALL all-po"
3021 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3022 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3023 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3024fi
3025
3026PACKAGE=gdb
3027
3028cat >>confdefs.h <<_ACEOF
3029#define PACKAGE "$PACKAGE"
3030_ACEOF
3031
3032
3033
3034debugdir=${libdir}/debug
3035
3036
b4e70030 3037# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 3038if test "${with_separate_debug_dir+set}" = set; then
b4e70030
JB
3039 withval="$with_separate_debug_dir"
3040 debugdir="${withval}"
3041fi;
bec39cab
AC
3042
3043
3044 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3046 ac_define_dir=`eval echo $debugdir`
3047 ac_define_dir=`eval echo $ac_define_dir`
3048
3049cat >>confdefs.h <<_ACEOF
3050#define DEBUGDIR "$ac_define_dir"
3051_ACEOF
3052
3053
3054#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3055
aa28a74e
DJ
3056if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3057 if test "x$prefix" = xNONE; then
3058 test_prefix=/usr/local
3059 else
3060 test_prefix=$prefix
3061 fi
3062else
3063 test_prefix=$exec_prefix
3064fi
3065case ${debugdir} in
3066"${test_prefix}"|"${test_prefix}/"*|\
3067'${exec_prefix}'|'${exec_prefix}/'*)
3068
3069cat >>confdefs.h <<\_ACEOF
3070#define DEBUGDIR_RELOCATABLE 1
3071_ACEOF
3072
3073 ;;
3074esac
3075
b4e70030
JB
3076
3077
bec39cab
AC
3078subdirs="$subdirs doc testsuite"
3079
3080
121ce6e5
DJ
3081# Provide defaults for some variables set by the per-host and per-target
3082# configuration.
3083gdb_host_obs=posix-hdep.o
3084
771b4502
UW
3085if test "${target}" = "${host}"; then
3086 gdb_native=yes
3087else
3088 gdb_native=no
3089fi
3090
bec39cab
AC
3091. $srcdir/configure.host
3092
3093. $srcdir/configure.tgt
3094
3095# Fetch the default architecture and default target vector from BFD.
3096targ=$target; . $srcdir/../bfd/config.bfd
3097
3098# We only want the first architecture, so strip off the others if
3099# there is more than one.
3100targ_archs=`echo $targ_archs | sed 's/ .*//'`
3101
3102if test "x$targ_archs" != x; then
3103
3104cat >>confdefs.h <<_ACEOF
3105#define DEFAULT_BFD_ARCH $targ_archs
3106_ACEOF
3107
3108fi
3109if test "x$targ_defvec" != x; then
3110
3111cat >>confdefs.h <<_ACEOF
3112#define DEFAULT_BFD_VEC $targ_defvec
3113_ACEOF
3114
3115fi
3116
3117test "$program_prefix" != NONE &&
b4e70030 3118 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
3119# Use a double $ so make ignores it.
3120test "$program_suffix" != NONE &&
b4e70030 3121 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
3122# Double any \ or $. echo might interpret backslashes.
3123# By default was `s,x,x', remove it if useless.
3124cat <<\_ACEOF >conftest.sed
3125s/[\\$]/&&/g;s/;s,x,x,$//
3126_ACEOF
3127program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 3128rm conftest.sed
bec39cab
AC
3129
3130
3131# The CLI cannot be disabled yet, but may be in the future.
3132
3133# Enable CLI.
b4e70030 3134# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 3135if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
3136 enableval="$enable_gdbcli"
3137 case $enableval in
bec39cab
AC
3138 yes)
3139 ;;
3140 no)
3141 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3142echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3143 { (exit 1); exit 1; }; } ;;
3144 *)
3145 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3146echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3147 { (exit 1); exit 1; }; } ;;
3148 esac
3149else
3150 enable_gdbcli=yes
b4e70030 3151fi;
bec39cab
AC
3152if test x"$enable_gdbcli" = xyes; then
3153 if test -d $srcdir/cli; then
3154 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3155 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3156 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3157 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3158 fi
3159fi
3160
3161# Enable MI.
b4e70030 3162# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 3163if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
3164 enableval="$enable_gdbmi"
3165 case $enableval in
bec39cab
AC
3166 yes | no)
3167 ;;
3168 *)
3169 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3170echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3171 { (exit 1); exit 1; }; } ;;
3172 esac
3173else
3174 enable_gdbmi=yes
b4e70030 3175fi;
bec39cab
AC
3176if test x"$enable_gdbmi" = xyes; then
3177 if test -d $srcdir/mi; then
3178 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3179 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3180 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3181 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3182 fi
3183fi
3184
3185# Enable TUI.
b4e70030 3186# Check whether --enable-tui or --disable-tui was given.
bec39cab 3187if test "${enable_tui+set}" = set; then
b4e70030
JB
3188 enableval="$enable_tui"
3189 case $enableval in
bec39cab
AC
3190 yes | no)
3191 ;;
3192 *)
3193 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3194echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3195 { (exit 1); exit 1; }; } ;;
3196 esac
3197else
3198 enable_tui=yes
b4e70030 3199fi;
bec39cab
AC
3200
3201# Enable gdbtk.
b4e70030 3202# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 3203if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
3204 enableval="$enable_gdbtk"
3205 case $enableval in
bec39cab
AC
3206 yes | no)
3207 ;;
3208 *)
3209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3210echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3211 { (exit 1); exit 1; }; } ;;
3212 esac
3213else
04ac69aa 3214 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
3215 enable_gdbtk=yes
3216 else
3217 enable_gdbtk=no
3218 fi
b4e70030 3219fi;
bec39cab
AC
3220# We unconditionally disable gdbtk tests on selected platforms.
3221case $host_os in
3222 go32* | windows*)
3223 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3224echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3225 enable_gdbtk=no ;;
3226esac
3227
3228# Libunwind support.
20e95c23
DJ
3229echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3230echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3231if test "${ac_cv_header_stdc+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234 cat >conftest.$ac_ext <<_ACEOF
3235/* confdefs.h. */
3236_ACEOF
3237cat confdefs.h >>conftest.$ac_ext
3238cat >>conftest.$ac_ext <<_ACEOF
3239/* end confdefs.h. */
3240#include <stdlib.h>
3241#include <stdarg.h>
3242#include <string.h>
3243#include <float.h>
3244
3245int
3246main ()
3247{
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_header_stdc=yes
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280ac_cv_header_stdc=no
3281fi
3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283
3284if test $ac_cv_header_stdc = yes; then
3285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3286 cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292#include <string.h>
3293
3294_ACEOF
3295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296 $EGREP "memchr" >/dev/null 2>&1; then
3297 :
3298else
3299 ac_cv_header_stdc=no
3300fi
3301rm -f conftest*
3302
3303fi
3304
3305if test $ac_cv_header_stdc = yes; then
3306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3307 cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
3313#include <stdlib.h>
3314
3315_ACEOF
3316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3317 $EGREP "free" >/dev/null 2>&1; then
3318 :
3319else
3320 ac_cv_header_stdc=no
3321fi
3322rm -f conftest*
3323
3324fi
3325
3326if test $ac_cv_header_stdc = yes; then
3327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3328 if test "$cross_compiling" = yes; then
3329 :
3330else
3331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337#include <ctype.h>
3338#if ((' ' & 0x0FF) == 0x020)
3339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3341#else
3342# define ISLOWER(c) \
3343 (('a' <= (c) && (c) <= 'i') \
3344 || ('j' <= (c) && (c) <= 'r') \
3345 || ('s' <= (c) && (c) <= 'z'))
3346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3347#endif
3348
3349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3350int
3351main ()
3352{
3353 int i;
3354 for (i = 0; i < 256; i++)
3355 if (XOR (islower (i), ISLOWER (i))
3356 || toupper (i) != TOUPPER (i))
3357 exit(2);
3358 exit (0);
3359}
3360_ACEOF
3361rm -f conftest$ac_exeext
3362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3363 (eval $ac_link) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 :
3373else
3374 echo "$as_me: program exited with status $ac_status" >&5
3375echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378( exit $ac_status )
3379ac_cv_header_stdc=no
3380fi
3381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3382fi
3383fi
3384fi
3385echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3386echo "${ECHO_T}$ac_cv_header_stdc" >&6
3387if test $ac_cv_header_stdc = yes; then
3388
3389cat >>confdefs.h <<\_ACEOF
3390#define STDC_HEADERS 1
3391_ACEOF
3392
3393fi
3394
3395# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3407do
3408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409echo "$as_me:$LINENO: checking for $ac_header" >&5
3410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420$ac_includes_default
3421
3422#include <$ac_header>
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3447else
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451eval "$as_ac_Header=no"
3452fi
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454fi
3455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460_ACEOF
3461
3462fi
3463
3464done
3465
3466
bec39cab 3467
b4e70030 3468# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3469if test "${with_libunwind+set}" = set; then
b4e70030
JB
3470 withval="$with_libunwind"
3471 case "${withval}" in
bec39cab
AC
3472 yes) enable_libunwind=yes ;;
3473 no) enable_libunwind=no ;;
3474 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3475echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3476 { (exit 1); exit 1; }; } ;;
3477esac
3478else
3479
3480
3481for ac_header in libunwind.h
3482do
3483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3484if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485 echo "$as_me:$LINENO: checking for $ac_header" >&5
3486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489fi
b4e70030
JB
3490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3492else
3493 # Is the header compilable?
b4e70030
JB
3494echo "$as_me:$LINENO: checking $ac_header usability" >&5
3495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3496cat >conftest.$ac_ext <<_ACEOF
3497/* confdefs.h. */
3498_ACEOF
3499cat confdefs.h >>conftest.$ac_ext
3500cat >>conftest.$ac_ext <<_ACEOF
3501/* end confdefs.h. */
3502$ac_includes_default
3503#include <$ac_header>
3504_ACEOF
3505rm -f conftest.$ac_objext
3506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
b4e70030
JB
3514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
bec39cab
AC
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_header_compiler=yes
3528else
3529 echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
b4e70030 3532ac_header_compiler=no
bec39cab
AC
3533fi
3534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3535echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3536echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3537
3538# Is the header present?
b4e70030
JB
3539echo "$as_me:$LINENO: checking $ac_header presence" >&5
3540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3541cat >conftest.$ac_ext <<_ACEOF
3542/* confdefs.h. */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h. */
3547#include <$ac_header>
3548_ACEOF
3549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev/null; then
3557 if test -s conftest.err; then
3558 ac_cpp_err=$ac_c_preproc_warn_flag
3559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3560 else
3561 ac_cpp_err=
3562 fi
3563else
3564 ac_cpp_err=yes
3565fi
3566if test -z "$ac_cpp_err"; then
3567 ac_header_preproc=yes
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 ac_header_preproc=no
3573fi
3574rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3575echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3576echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3577
3578# So? What about this header?
3579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3580 yes:no: )
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3584echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3585 ac_header_preproc=yes
3586 ;;
3587 no:yes:* )
3588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3593echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3595echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3599echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3600 (
3601 cat <<\_ASBOX
3602## ------------------------------------------ ##
3603## Report this to the AC_PACKAGE_NAME lists. ##
3604## ------------------------------------------ ##
3605_ASBOX
3606 ) |
3607 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3608 ;;
3609esac
b4e70030
JB
3610echo "$as_me:$LINENO: checking for $ac_header" >&5
3611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3612if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615 eval "$as_ac_Header=\$ac_header_preproc"
3616fi
b4e70030
JB
3617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3619
3620fi
3621if test `eval echo '${'$as_ac_Header'}'` = yes; then
3622 cat >>confdefs.h <<_ACEOF
3623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3624_ACEOF
3625
3626fi
3627
3628done
3629
3630
3631for ac_header in libunwind-ia64.h
3632do
3633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3634if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635 echo "$as_me:$LINENO: checking for $ac_header" >&5
3636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3637if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639fi
b4e70030
JB
3640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3642else
3643 # Is the header compilable?
b4e70030
JB
3644echo "$as_me:$LINENO: checking $ac_header usability" >&5
3645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3646cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h. */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h. */
3652$ac_includes_default
3653#include <$ac_header>
3654_ACEOF
3655rm -f conftest.$ac_objext
3656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
b4e70030
JB
3664 { ac_try='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
bec39cab
AC
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_header_compiler=yes
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
b4e70030 3682ac_header_compiler=no
bec39cab
AC
3683fi
3684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3685echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3686echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3687
3688# Is the header present?
b4e70030
JB
3689echo "$as_me:$LINENO: checking $ac_header presence" >&5
3690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3691cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h. */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h. */
3697#include <$ac_header>
3698_ACEOF
3699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } >/dev/null; then
3707 if test -s conftest.err; then
3708 ac_cpp_err=$ac_c_preproc_warn_flag
3709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3710 else
3711 ac_cpp_err=
3712 fi
3713else
3714 ac_cpp_err=yes
3715fi
3716if test -z "$ac_cpp_err"; then
3717 ac_header_preproc=yes
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 ac_header_preproc=no
3723fi
3724rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3725echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3726echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3727
3728# So? What about this header?
3729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3730 yes:no: )
3731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3735 ac_header_preproc=yes
3736 ;;
3737 no:yes:* )
3738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3750 (
3751 cat <<\_ASBOX
3752## ------------------------------------------ ##
3753## Report this to the AC_PACKAGE_NAME lists. ##
3754## ------------------------------------------ ##
3755_ASBOX
3756 ) |
3757 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3758 ;;
3759esac
b4e70030
JB
3760echo "$as_me:$LINENO: checking for $ac_header" >&5
3761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3762if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765 eval "$as_ac_Header=\$ac_header_preproc"
3766fi
b4e70030
JB
3767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3769
3770fi
3771if test `eval echo '${'$as_ac_Header'}'` = yes; then
3772 cat >>confdefs.h <<_ACEOF
3773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3774_ACEOF
3775
3776fi
3777
3778done
3779
3780 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3781 enable_libunwind=yes;
3782 fi
3783
b4e70030 3784fi;
bec39cab
AC
3785
3786if test x"$enable_libunwind" = xyes; then
3787
3788for ac_header in libunwind.h
3789do
3790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3791if eval "test \"\${$as_ac_Header+set}\" = set"; then
3792 echo "$as_me:$LINENO: checking for $ac_header" >&5
3793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3794if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796fi
b4e70030
JB
3797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3799else
3800 # Is the header compilable?
b4e70030
JB
3801echo "$as_me:$LINENO: checking $ac_header usability" >&5
3802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3803cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h. */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h. */
3809$ac_includes_default
3810#include <$ac_header>
3811_ACEOF
3812rm -f conftest.$ac_objext
3813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
b4e70030
JB
3821 { ac_try='test -z "$ac_c_werror_flag"
3822 || test ! -s conftest.err'
bec39cab
AC
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; } &&
3828 { ac_try='test -s conftest.$ac_objext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_header_compiler=yes
3835else
3836 echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
b4e70030 3839ac_header_compiler=no
bec39cab
AC
3840fi
3841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3842echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3843echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3844
3845# Is the header present?
b4e70030
JB
3846echo "$as_me:$LINENO: checking $ac_header presence" >&5
3847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3848cat >conftest.$ac_ext <<_ACEOF
3849/* confdefs.h. */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h. */
3854#include <$ac_header>
3855_ACEOF
3856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3867 else
3868 ac_cpp_err=
3869 fi
3870else
3871 ac_cpp_err=yes
3872fi
3873if test -z "$ac_cpp_err"; then
3874 ac_header_preproc=yes
3875else
3876 echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 ac_header_preproc=no
3880fi
3881rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3883echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3884
3885# So? What about this header?
3886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3887 yes:no: )
3888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3892 ac_header_preproc=yes
3893 ;;
3894 no:yes:* )
3895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3907 (
3908 cat <<\_ASBOX
3909## ------------------------------------------ ##
3910## Report this to the AC_PACKAGE_NAME lists. ##
3911## ------------------------------------------ ##
3912_ASBOX
3913 ) |
3914 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3915 ;;
3916esac
b4e70030
JB
3917echo "$as_me:$LINENO: checking for $ac_header" >&5
3918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3919if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922 eval "$as_ac_Header=\$ac_header_preproc"
3923fi
b4e70030
JB
3924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3926
3927fi
3928if test `eval echo '${'$as_ac_Header'}'` = yes; then
3929 cat >>confdefs.h <<_ACEOF
3930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3931_ACEOF
3932
3933fi
3934
3935done
3936
3937
3938for ac_header in libunwind-ia64.h
3939do
3940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3941if eval "test \"\${$as_ac_Header+set}\" = set"; then
3942 echo "$as_me:$LINENO: checking for $ac_header" >&5
3943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3944if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946fi
b4e70030
JB
3947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3949else
3950 # Is the header compilable?
b4e70030
JB
3951echo "$as_me:$LINENO: checking $ac_header usability" >&5
3952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3953cat >conftest.$ac_ext <<_ACEOF
3954/* confdefs.h. */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h. */
3959$ac_includes_default
3960#include <$ac_header>
3961_ACEOF
3962rm -f conftest.$ac_objext
3963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
b4e70030
JB
3971 { ac_try='test -z "$ac_c_werror_flag"
3972 || test ! -s conftest.err'
bec39cab
AC
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_header_compiler=yes
3985else
3986 echo "$as_me: failed program was:" >&5
3987sed 's/^/| /' conftest.$ac_ext >&5
3988
b4e70030 3989ac_header_compiler=no
bec39cab
AC
3990fi
3991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3993echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3994
3995# Is the header present?
b4e70030
JB
3996echo "$as_me:$LINENO: checking $ac_header presence" >&5
3997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3998cat >conftest.$ac_ext <<_ACEOF
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
4004#include <$ac_header>
4005_ACEOF
4006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } >/dev/null; then
4014 if test -s conftest.err; then
4015 ac_cpp_err=$ac_c_preproc_warn_flag
4016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4017 else
4018 ac_cpp_err=
4019 fi
4020else
4021 ac_cpp_err=yes
4022fi
4023if test -z "$ac_cpp_err"; then
4024 ac_header_preproc=yes
4025else
4026 echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 ac_header_preproc=no
4030fi
4031rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4033echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4034
4035# So? What about this header?
4036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4037 yes:no: )
4038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4042 ac_header_preproc=yes
4043 ;;
4044 no:yes:* )
4045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4057 (
4058 cat <<\_ASBOX
4059## ------------------------------------------ ##
4060## Report this to the AC_PACKAGE_NAME lists. ##
4061## ------------------------------------------ ##
4062_ASBOX
4063 ) |
4064 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4065 ;;
4066esac
b4e70030
JB
4067echo "$as_me:$LINENO: checking for $ac_header" >&5
4068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4069if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072 eval "$as_ac_Header=\$ac_header_preproc"
4073fi
b4e70030
JB
4074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4076
4077fi
4078if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079 cat >>confdefs.h <<_ACEOF
4080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4081_ACEOF
4082
4083fi
4084
4085done
4086
60ca704f
SE
4087
4088cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4089#define HAVE_LIBUNWIND 1
4090_ACEOF
4091
4092 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4093 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4094 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4095fi
4096
4097# Profiling support.
b4e70030 4098# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4099if test "${enable_profiling+set}" = set; then
b4e70030
JB
4100 enableval="$enable_profiling"
4101 case $enableval in
bec39cab
AC
4102 yes | no)
4103 ;;
4104 *)
4105 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4106echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4107 { (exit 1); exit 1; }; } ;;
4108 esac
4109else
4110 enable_profiling=no
b4e70030 4111fi;
bec39cab
AC
4112
4113
4114
4115for ac_func in monstartup _mcleanup
4116do
4117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4118echo "$as_me:$LINENO: checking for $ac_func" >&5
4119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4120if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123 cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h. */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h. */
4129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4131#define $ac_func innocuous_$ac_func
4132
4133/* System header to define __stub macros and hopefully few prototypes,
4134 which can conflict with char $ac_func (); below.
4135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 <limits.h> exists even on freestanding compilers. */
4137
4138#ifdef __STDC__
4139# include <limits.h>
4140#else
4141# include <assert.h>
4142#endif
4143
4144#undef $ac_func
4145
b4e70030 4146/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4147#ifdef __cplusplus
4148extern "C"
b4e70030 4149{
bec39cab 4150#endif
b4e70030
JB
4151/* We use char because int might match the return type of a gcc2
4152 builtin and then its argument prototype would still apply. */
bec39cab
AC
4153char $ac_func ();
4154/* The GNU C library defines this for functions which it implements
4155 to always fail with ENOSYS. Some functions are actually named
4156 something starting with __ and the normal name is an alias. */
b4e70030 4157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4158choke me
b4e70030
JB
4159#else
4160char (*f) () = $ac_func;
4161#endif
4162#ifdef __cplusplus
4163}
bec39cab
AC
4164#endif
4165
4166int
4167main ()
4168{
b4e70030 4169return f != $ac_func;
bec39cab
AC
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174rm -f conftest.$ac_objext conftest$ac_exeext
4175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4176 (eval $ac_link) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
b4e70030
JB
4183 { ac_try='test -z "$ac_c_werror_flag"
4184 || test ! -s conftest.err'
bec39cab
AC
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 eval "$as_ac_var=yes"
4197else
4198 echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
b4e70030 4201eval "$as_ac_var=no"
bec39cab
AC
4202fi
4203rm -f conftest.err conftest.$ac_objext \
4204 conftest$ac_exeext conftest.$ac_ext
4205fi
b4e70030
JB
4206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4207echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4208if test `eval echo '${'$as_ac_var'}'` = yes; then
4209 cat >>confdefs.h <<_ACEOF
4210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4211_ACEOF
4212
4213fi
4214done
4215
b4e70030
JB
4216echo "$as_me:$LINENO: checking for _etext" >&5
4217echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4218if test "${ac_cv_var__etext+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221 cat >conftest.$ac_ext <<_ACEOF
4222/* confdefs.h. */
4223_ACEOF
4224cat confdefs.h >>conftest.$ac_ext
4225cat >>conftest.$ac_ext <<_ACEOF
4226/* end confdefs.h. */
4227#include <stdlib.h>
4228extern char _etext;
4229
4230int
4231main ()
4232{
4233free (&_etext);
4234 ;
4235 return 0;
4236}
4237_ACEOF
4238rm -f conftest.$ac_objext conftest$ac_exeext
4239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4240 (eval $ac_link) 2>conftest.er1
4241 ac_status=$?
4242 grep -v '^ *+' conftest.er1 >conftest.err
4243 rm -f conftest.er1
4244 cat conftest.err >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } &&
b4e70030
JB
4247 { ac_try='test -z "$ac_c_werror_flag"
4248 || test ! -s conftest.err'
bec39cab
AC
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try='test -s conftest$ac_exeext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 (eval $ac_try) 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4260 ac_cv_var__etext=yes
4261else
4262 echo "$as_me: failed program was:" >&5
4263sed 's/^/| /' conftest.$ac_ext >&5
4264
b4e70030 4265ac_cv_var__etext=no
bec39cab
AC
4266fi
4267rm -f conftest.err conftest.$ac_objext \
4268 conftest$ac_exeext conftest.$ac_ext
4269fi
b4e70030
JB
4270echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4271echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4272if test $ac_cv_var__etext = yes; then
4273
4274cat >>confdefs.h <<\_ACEOF
4275#define HAVE__ETEXT 1
4276_ACEOF
4277
4278fi
4279if test "$enable_profiling" = yes ; then
4280 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4281 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4282echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4283 { (exit 1); exit 1; }; }
4284 fi
4285 PROFILE_CFLAGS=-pg
4286 OLD_CFLAGS="$CFLAGS"
4287 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4288
b4e70030
JB
4289 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4290echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4291if test "${ac_cv_cc_supports_pg+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4293else
bec39cab
AC
4294 cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h. */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h. */
4300
4301int
4302main ()
4303{
4304int x;
4305 ;
4306 return 0;
4307}
4308_ACEOF
4309rm -f conftest.$ac_objext
4310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311 (eval $ac_compile) 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
b4e70030
JB
4318 { ac_try='test -z "$ac_c_werror_flag"
4319 || test ! -s conftest.err'
bec39cab
AC
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4331 ac_cv_cc_supports_pg=yes
4332else
4333 echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
4335
b4e70030 4336ac_cv_cc_supports_pg=no
bec39cab
AC
4337fi
4338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4339fi
b4e70030
JB
4340echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4341echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4342
4343 if test $ac_cv_cc_supports_pg = no; then
4344 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4345echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4346 { (exit 1); exit 1; }; }
4347 fi
4348
4349 CFLAGS="$OLD_CFLAGS"
4350fi
4351
4352# --------------------- #
4353# Checks for programs. #
4354# --------------------- #
4355
4356for ac_prog in gawk mawk nawk awk
4357do
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359set dummy $ac_prog; ac_word=$2
b4e70030
JB
4360echo "$as_me:$LINENO: checking for $ac_word" >&5
4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4362if test "${ac_cv_prog_AWK+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365 if test -n "$AWK"; then
4366 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4367else
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4375 ac_cv_prog_AWK="$ac_prog"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379done
4380done
4381
4382fi
4383fi
4384AWK=$ac_cv_prog_AWK
4385if test -n "$AWK"; then
b4e70030
JB
4386 echo "$as_me:$LINENO: result: $AWK" >&5
4387echo "${ECHO_T}$AWK" >&6
bec39cab 4388else
b4e70030
JB
4389 echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
bec39cab
AC
4391fi
4392
4393 test -n "$AWK" && break
4394done
4395
4396# Find a good install program. We prefer a C program (faster),
4397# so one script is as good as another. But avoid the broken or
4398# incompatible versions:
4399# SysV /etc/install, /usr/sbin/install
4400# SunOS /usr/etc/install
4401# IRIX /sbin/install
4402# AIX /bin/install
4403# AmigaOS /C/install, which installs bootblocks on floppy discs
4404# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4405# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4406# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4407# OS/2's system install, which has a completely different semantic
4408# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4409echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4410echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4411if test -z "$INSTALL"; then
4412if test "${ac_cv_path_install+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 # Account for people who put trailing slashes in PATH elements.
4421case $as_dir/ in
4422 ./ | .// | /cC/* | \
4423 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4424 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4425 /usr/ucb/* ) ;;
c906108c 4426 *)
bec39cab
AC
4427 # OSF1 and SCO ODT 3.0 have their own names for install.
4428 # Don't use installbsd from OSF since it installs stuff as root
4429 # by default.
4430 for ac_prog in ginstall scoinst install; do
4431 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4432 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4433 if test $ac_prog = install &&
4434 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4435 # AIX install. It has an incompatible calling convention.
4436 :
4437 elif test $ac_prog = install &&
4438 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4439 # program-specific install script used by HP pwplus--don't use.
4440 :
4441 else
4442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4443 break 3
4444 fi
4445 fi
4446 done
4447 done
4448 ;;
c906108c 4449esac
bec39cab
AC
4450done
4451
4452
4453fi
4454 if test "${ac_cv_path_install+set}" = set; then
4455 INSTALL=$ac_cv_path_install
4456 else
b4e70030
JB
4457 # As a last resort, use the slow shell script. We don't cache a
4458 # path for INSTALL within a source directory, because that will
bec39cab 4459 # break other packages using the cache if that directory is
b4e70030 4460 # removed, or if the path is relative.
bec39cab
AC
4461 INSTALL=$ac_install_sh
4462 fi
4463fi
b4e70030
JB
4464echo "$as_me:$LINENO: result: $INSTALL" >&5
4465echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4466
4467# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4468# It thinks the first close brace ends the variable substitution.
4469test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4470
4471test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4472
4473test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4474
b4e70030
JB
4475echo "$as_me:$LINENO: checking whether ln -s works" >&5
4476echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4477LN_S=$as_ln_s
4478if test "$LN_S" = "ln -s"; then
b4e70030
JB
4479 echo "$as_me:$LINENO: result: yes" >&5
4480echo "${ECHO_T}yes" >&6
bec39cab 4481else
b4e70030
JB
4482 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4483echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4484fi
4485
4486if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4488set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4489echo "$as_me:$LINENO: checking for $ac_word" >&5
4490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4491if test "${ac_cv_prog_RANLIB+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494 if test -n "$RANLIB"; then
4495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4496else
4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH
4499do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4504 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508done
4509done
4510
4511fi
4512fi
4513RANLIB=$ac_cv_prog_RANLIB
4514if test -n "$RANLIB"; then
b4e70030
JB
4515 echo "$as_me:$LINENO: result: $RANLIB" >&5
4516echo "${ECHO_T}$RANLIB" >&6
bec39cab 4517else
b4e70030
JB
4518 echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6
bec39cab
AC
4520fi
4521
4522fi
4523if test -z "$ac_cv_prog_RANLIB"; then
4524 ac_ct_RANLIB=$RANLIB
4525 # Extract the first word of "ranlib", so it can be a program name with args.
4526set dummy ranlib; ac_word=$2
b4e70030
JB
4527echo "$as_me:$LINENO: checking for $ac_word" >&5
4528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4529if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 if test -n "$ac_ct_RANLIB"; then
4533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4534else
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4542 ac_cv_prog_ac_ct_RANLIB="ranlib"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546done
4547done
4548
b4e70030 4549 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4550fi
4551fi
4552ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4553if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4554 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4555echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4556else
b4e70030
JB
4557 echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6
bec39cab
AC
4559fi
4560
b4e70030 4561 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4562else
4563 RANLIB="$ac_cv_prog_RANLIB"
4564fi
4565
4566for ac_prog in 'bison -y' byacc
4567do
4568 # Extract the first word of "$ac_prog", so it can be a program name with args.
4569set dummy $ac_prog; ac_word=$2
b4e70030
JB
4570echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4572if test "${ac_cv_prog_YACC+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 if test -n "$YACC"; then
4576 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4585 ac_cv_prog_YACC="$ac_prog"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589done
4590done
4591
4592fi
4593fi
4594YACC=$ac_cv_prog_YACC
4595if test -n "$YACC"; then
b4e70030
JB
4596 echo "$as_me:$LINENO: result: $YACC" >&5
4597echo "${ECHO_T}$YACC" >&6
bec39cab 4598else
b4e70030
JB
4599 echo "$as_me:$LINENO: result: no" >&5
4600echo "${ECHO_T}no" >&6
bec39cab
AC
4601fi
4602
4603 test -n "$YACC" && break
4604done
4605test -n "$YACC" || YACC="yacc"
4606
4607
4608if test -n "$ac_tool_prefix"; then
4609 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4610set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4611echo "$as_me:$LINENO: checking for $ac_word" >&5
4612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4613if test "${ac_cv_prog_AR+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616 if test -n "$AR"; then
4617 ac_cv_prog_AR="$AR" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4626 ac_cv_prog_AR="${ac_tool_prefix}ar"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4629 fi
4630done
4631done
4632
4633fi
4634fi
4635AR=$ac_cv_prog_AR
4636if test -n "$AR"; then
b4e70030
JB
4637 echo "$as_me:$LINENO: result: $AR" >&5
4638echo "${ECHO_T}$AR" >&6
bec39cab 4639else
b4e70030
JB
4640 echo "$as_me:$LINENO: result: no" >&5
4641echo "${ECHO_T}no" >&6
bec39cab
AC
4642fi
4643
4644fi
4645if test -z "$ac_cv_prog_AR"; then
4646 ac_ct_AR=$AR
4647 # Extract the first word of "ar", so it can be a program name with args.
4648set dummy ar; ac_word=$2
b4e70030
JB
4649echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4651if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 if test -n "$ac_ct_AR"; then
4655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4664 ac_cv_prog_ac_ct_AR="ar"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669done
4670
4671fi
4672fi
4673ac_ct_AR=$ac_cv_prog_ac_ct_AR
4674if test -n "$ac_ct_AR"; then
b4e70030
JB
4675 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4676echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4677else
b4e70030
JB
4678 echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6
bec39cab
AC
4680fi
4681
b4e70030 4682 AR=$ac_ct_AR
bec39cab
AC
4683else
4684 AR="$ac_cv_prog_AR"
4685fi
4686
4687if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4689set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4690echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4692if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if test -n "$DLLTOOL"; then
4696 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4705 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710done
4711
4712fi
4713fi
4714DLLTOOL=$ac_cv_prog_DLLTOOL
4715if test -n "$DLLTOOL"; then
b4e70030
JB
4716 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4717echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4718else
b4e70030
JB
4719 echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6
bec39cab
AC
4721fi
4722
4723fi
4724if test -z "$ac_cv_prog_DLLTOOL"; then
4725 ac_ct_DLLTOOL=$DLLTOOL
4726 # Extract the first word of "dlltool", so it can be a program name with args.
4727set dummy dlltool; ac_word=$2
b4e70030
JB
4728echo "$as_me:$LINENO: checking for $ac_word" >&5
4729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4730if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 if test -n "$ac_ct_DLLTOOL"; then
4734 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4743 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747done
4748done
4749
4750fi
4751fi
4752ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4753if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4754 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4755echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4756else
b4e70030
JB
4757 echo "$as_me:$LINENO: result: no" >&5
4758echo "${ECHO_T}no" >&6
bec39cab
AC
4759fi
4760
b4e70030 4761 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4762else
4763 DLLTOOL="$ac_cv_prog_DLLTOOL"
4764fi
4765
4766if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4768set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4769echo "$as_me:$LINENO: checking for $ac_word" >&5
4770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4771if test "${ac_cv_prog_WINDRES+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774 if test -n "$WINDRES"; then
4775 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4776else
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4784 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788done
4789done
4790
4791fi
4792fi
4793WINDRES=$ac_cv_prog_WINDRES
4794if test -n "$WINDRES"; then
b4e70030
JB
4795 echo "$as_me:$LINENO: result: $WINDRES" >&5
4796echo "${ECHO_T}$WINDRES" >&6
bec39cab 4797else
b4e70030
JB
4798 echo "$as_me:$LINENO: result: no" >&5
4799echo "${ECHO_T}no" >&6
bec39cab
AC
4800fi
4801
4802fi
4803if test -z "$ac_cv_prog_WINDRES"; then
4804 ac_ct_WINDRES=$WINDRES
4805 # Extract the first word of "windres", so it can be a program name with args.
4806set dummy windres; ac_word=$2
b4e70030
JB
4807echo "$as_me:$LINENO: checking for $ac_word" >&5
4808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4809if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812 if test -n "$ac_ct_WINDRES"; then
4813 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4822 ac_cv_prog_ac_ct_WINDRES="windres"
4823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4825 fi
4826done
4827done
4828
4829fi
4830fi
4831ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4832if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4833 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4834echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4835else
b4e70030
JB
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
c906108c 4838fi
bec39cab 4839
b4e70030 4840 WINDRES=$ac_ct_WINDRES
c906108c 4841else
bec39cab 4842 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4843fi
4844
bec39cab
AC
4845
4846# Needed for GNU/Hurd.
4847if test -n "$ac_tool_prefix"; then
4848 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4849set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4850echo "$as_me:$LINENO: checking for $ac_word" >&5
4851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4852if test "${ac_cv_prog_MIG+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4854else
bec39cab
AC
4855 if test -n "$MIG"; then
4856 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4857else
4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4865 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869done
4870done
4871
c906108c 4872fi
bec39cab
AC
4873fi
4874MIG=$ac_cv_prog_MIG
4875if test -n "$MIG"; then
b4e70030
JB
4876 echo "$as_me:$LINENO: result: $MIG" >&5
4877echo "${ECHO_T}$MIG" >&6
c906108c 4878else
b4e70030
JB
4879 echo "$as_me:$LINENO: result: no" >&5
4880echo "${ECHO_T}no" >&6
c906108c
SS
4881fi
4882
bec39cab
AC
4883fi
4884if test -z "$ac_cv_prog_MIG"; then
4885 ac_ct_MIG=$MIG
4886 # Extract the first word of "mig", so it can be a program name with args.
4887set dummy mig; ac_word=$2
b4e70030
JB
4888echo "$as_me:$LINENO: checking for $ac_word" >&5
4889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4890if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893 if test -n "$ac_ct_MIG"; then
4894 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4895else
4896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4903 ac_cv_prog_ac_ct_MIG="mig"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4906 fi
4907done
4908done
c906108c 4909
bec39cab
AC
4910fi
4911fi
4912ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4913if test -n "$ac_ct_MIG"; then
b4e70030
JB
4914 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4915echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4916else
b4e70030
JB
4917 echo "$as_me:$LINENO: result: no" >&5
4918echo "${ECHO_T}no" >&6
bec39cab 4919fi
c906108c 4920
b4e70030 4921 MIG=$ac_ct_MIG
bec39cab
AC
4922else
4923 MIG="$ac_cv_prog_MIG"
4924fi
c906108c 4925
c906108c 4926
bec39cab
AC
4927# ---------------------- #
4928# Checks for libraries. #
4929# ---------------------- #
c906108c 4930
bec39cab 4931# We might need to link with -lm; most simulators need it.
c906108c 4932
b4e70030
JB
4933echo "$as_me:$LINENO: checking for main in -lm" >&5
4934echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
4935if test "${ac_cv_lib_m_main+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937else
4938 ac_check_lib_save_LIBS=$LIBS
4939LIBS="-lm $LIBS"
4940cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
c906108c 4946
c906108c 4947
bec39cab
AC
4948int
4949main ()
4950{
b4e70030 4951main ();
bec39cab
AC
4952 ;
4953 return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext conftest$ac_exeext
4957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
b4e70030
JB
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
bec39cab
AC
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest$ac_exeext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_cv_lib_m_main=yes
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
b4e70030 4983ac_cv_lib_m_main=no
bec39cab
AC
4984fi
4985rm -f conftest.err conftest.$ac_objext \
4986 conftest$ac_exeext conftest.$ac_ext
4987LIBS=$ac_check_lib_save_LIBS
4988fi
b4e70030
JB
4989echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4990echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
4991if test $ac_cv_lib_m_main = yes; then
4992 cat >>confdefs.h <<_ACEOF
4993#define HAVE_LIBM 1
4994_ACEOF
4995
4996 LIBS="-lm $LIBS"
c906108c 4997
c906108c 4998fi
bec39cab
AC
4999
5000
5001# We need to link with -lw to get `wctype' on Solaris before Solaris
5002# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5003# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5004# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
5005echo "$as_me:$LINENO: checking for wctype" >&5
5006echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
5007if test "${ac_cv_func_wctype+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010 cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h. */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h. */
5016/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5018#define wctype innocuous_wctype
5019
5020/* System header to define __stub macros and hopefully few prototypes,
5021 which can conflict with char wctype (); below.
5022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023 <limits.h> exists even on freestanding compilers. */
5024
5025#ifdef __STDC__
5026# include <limits.h>
5027#else
5028# include <assert.h>
5029#endif
5030
5031#undef wctype
5032
b4e70030 5033/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5034#ifdef __cplusplus
5035extern "C"
b4e70030 5036{
bec39cab 5037#endif
b4e70030
JB
5038/* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
bec39cab
AC
5040char wctype ();
5041/* The GNU C library defines this for functions which it implements
5042 to always fail with ENOSYS. Some functions are actually named
5043 something starting with __ and the normal name is an alias. */
b4e70030 5044#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5045choke me
b4e70030
JB
5046#else
5047char (*f) () = wctype;
5048#endif
5049#ifdef __cplusplus
5050}
bec39cab
AC
5051#endif
5052
5053int
5054main ()
5055{
b4e70030 5056return f != wctype;
bec39cab
AC
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061rm -f conftest.$ac_objext conftest$ac_exeext
5062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5063 (eval $ac_link) 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
b4e70030
JB
5070 { ac_try='test -z "$ac_c_werror_flag"
5071 || test ! -s conftest.err'
bec39cab
AC
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest$ac_exeext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5083 ac_cv_func_wctype=yes
5084else
5085 echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
b4e70030 5088ac_cv_func_wctype=no
bec39cab
AC
5089fi
5090rm -f conftest.err conftest.$ac_objext \
5091 conftest$ac_exeext conftest.$ac_ext
5092fi
b4e70030
JB
5093echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5094echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5095if test $ac_cv_func_wctype = yes; then
5096 :
c906108c 5097else
c906108c 5098
b4e70030
JB
5099echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5100echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5101if test "${ac_cv_lib_w_wctype+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 ac_check_lib_save_LIBS=$LIBS
5105LIBS="-lw $LIBS"
5106cat >conftest.$ac_ext <<_ACEOF
5107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
c906108c 5112
b4e70030 5113/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5114#ifdef __cplusplus
5115extern "C"
5116#endif
b4e70030
JB
5117/* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
bec39cab
AC
5119char wctype ();
5120int
5121main ()
5122{
b4e70030 5123wctype ();
bec39cab
AC
5124 ;
5125 return 0;
5126}
5127_ACEOF
5128rm -f conftest.$ac_objext conftest$ac_exeext
5129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5130 (eval $ac_link) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
b4e70030
JB
5137 { ac_try='test -z "$ac_c_werror_flag"
5138 || test ! -s conftest.err'
bec39cab
AC
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try='test -s conftest$ac_exeext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_lib_w_wctype=yes
5151else
5152 echo "$as_me: failed program was:" >&5
5153sed 's/^/| /' conftest.$ac_ext >&5
5154
b4e70030 5155ac_cv_lib_w_wctype=no
bec39cab
AC
5156fi
5157rm -f conftest.err conftest.$ac_objext \
5158 conftest$ac_exeext conftest.$ac_ext
5159LIBS=$ac_check_lib_save_LIBS
5160fi
b4e70030
JB
5161echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5162echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5163if test $ac_cv_lib_w_wctype = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165#define HAVE_LIBW 1
5166_ACEOF
c906108c 5167
bec39cab 5168 LIBS="-lw $LIBS"
c906108c 5169
bec39cab 5170fi
c906108c 5171
bec39cab 5172fi
c906108c 5173
ddc9cd0f 5174
bec39cab 5175# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5176echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5177echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5178if test "${ac_cv_search_gethostbyname+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 ac_func_search_save_LIBS=$LIBS
b4e70030 5182ac_cv_search_gethostbyname=no
bec39cab
AC
5183cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h. */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h. */
ddc9cd0f 5189
b4e70030 5190/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5191#ifdef __cplusplus
5192extern "C"
5193#endif
b4e70030
JB
5194/* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
bec39cab
AC
5196char gethostbyname ();
5197int
5198main ()
5199{
b4e70030 5200gethostbyname ();
bec39cab
AC
5201 ;
5202 return 0;
5203}
5204_ACEOF
b4e70030 5205rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5207 (eval $ac_link) 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
b4e70030
JB
5214 { ac_try='test -z "$ac_c_werror_flag"
5215 || test ! -s conftest.err'
bec39cab
AC
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; } &&
5221 { ac_try='test -s conftest$ac_exeext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 (eval $ac_try) 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
b4e70030 5227 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5228else
5229 echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5231
bec39cab
AC
5232fi
5233rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5234 conftest$ac_exeext conftest.$ac_ext
5235if test "$ac_cv_search_gethostbyname" = no; then
5236 for ac_lib in nsl; do
5237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5238 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
ddc9cd0f 5244
b4e70030 5245/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5246#ifdef __cplusplus
5247extern "C"
5248#endif
b4e70030
JB
5249/* We use char because int might match the return type of a gcc2
5250 builtin and then its argument prototype would still apply. */
5251char gethostbyname ();
bec39cab
AC
5252int
5253main ()
5254{
b4e70030 5255gethostbyname ();
bec39cab
AC
5256 ;
5257 return 0;
5258}
5259_ACEOF
b4e70030 5260rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5262 (eval $ac_link) 2>conftest.er1
5263 ac_status=$?
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
b4e70030
JB
5269 { ac_try='test -z "$ac_c_werror_flag"
5270 || test ! -s conftest.err'
bec39cab
AC
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; } &&
5276 { ac_try='test -s conftest$ac_exeext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
b4e70030
JB
5282 ac_cv_search_gethostbyname="-l$ac_lib"
5283break
bec39cab
AC
5284else
5285 echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288fi
5289rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5290 conftest$ac_exeext conftest.$ac_ext
5291 done
bec39cab
AC
5292fi
5293LIBS=$ac_func_search_save_LIBS
5294fi
b4e70030
JB
5295echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5296echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5297if test "$ac_cv_search_gethostbyname" != no; then
5298 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5299
bec39cab 5300fi
96baa820 5301
c906108c 5302
b4e70030
JB
5303# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5304echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5305echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5306if test "${ac_cv_search_socketpair+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 ac_func_search_save_LIBS=$LIBS
5310ac_cv_search_socketpair=no
5311cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h. */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h. */
5317
5318/* Override any gcc2 internal prototype to avoid an error. */
5319#ifdef __cplusplus
5320extern "C"
5321#endif
5322/* We use char because int might match the return type of a gcc2
5323 builtin and then its argument prototype would still apply. */
5324char socketpair ();
5325int
5326main ()
5327{
5328socketpair ();
5329 ;
5330 return 0;
5331}
5332_ACEOF
5333rm -f conftest.$ac_objext conftest$ac_exeext
5334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5335 (eval $ac_link) 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -z "$ac_c_werror_flag"
5343 || test ! -s conftest.err'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; } &&
5349 { ac_try='test -s conftest$ac_exeext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_cv_search_socketpair="none required"
5356else
5357 echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360fi
5361rm -f conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363if test "$ac_cv_search_socketpair" = no; then
5364 for ac_lib in socket; do
5365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5366 cat >conftest.$ac_ext <<_ACEOF
5367/* confdefs.h. */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h. */
5372
5373/* Override any gcc2 internal prototype to avoid an error. */
5374#ifdef __cplusplus
5375extern "C"
5376#endif
5377/* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5379char socketpair ();
5380int
5381main ()
5382{
5383socketpair ();
5384 ;
5385 return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext conftest$ac_exeext
5389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5390 (eval $ac_link) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest$ac_exeext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_cv_search_socketpair="-l$ac_lib"
5411break
5412else
5413 echo "$as_me: failed program was:" >&5
5414sed 's/^/| /' conftest.$ac_ext >&5
5415
5416fi
5417rm -f conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5419 done
5420fi
5421LIBS=$ac_func_search_save_LIBS
5422fi
5423echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5424echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5425if test "$ac_cv_search_socketpair" != no; then
5426 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5427
5428fi
5429
5430
5431# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5432#
5433# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5434# curses library because the latter might not provide all the
5435# functionality we need. However, this leads to problems on systems
5436# where the linker searches /usr/local/lib, but the compiler doesn't
5437# search /usr/local/include, if ncurses is installed in /usr/local. A
5438# default installation of ncurses on alpha*-dec-osf* will lead to such
5439# a situation.
b4e70030
JB
5440echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5441echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5442if test "${ac_cv_search_waddstr+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 ac_func_search_save_LIBS=$LIBS
b4e70030 5446ac_cv_search_waddstr=no
bec39cab
AC
5447cat >conftest.$ac_ext <<_ACEOF
5448/* confdefs.h. */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
5452/* end confdefs.h. */
c906108c 5453
b4e70030 5454/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5455#ifdef __cplusplus
5456extern "C"
5457#endif
b4e70030
JB
5458/* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
bec39cab
AC
5460char waddstr ();
5461int
5462main ()
5463{
b4e70030 5464waddstr ();
bec39cab
AC
5465 ;
5466 return 0;
5467}
5468_ACEOF
b4e70030 5469rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5471 (eval $ac_link) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
b4e70030
JB
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
bec39cab
AC
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
b4e70030 5491 ac_cv_search_waddstr="none required"
bec39cab
AC
5492else
5493 echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5495
5496fi
bec39cab 5497rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5498 conftest$ac_exeext conftest.$ac_ext
5499if test "$ac_cv_search_waddstr" = no; then
5500 for ac_lib in ncurses cursesX curses; do
5501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5502 cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h. */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h. */
5508
5509/* Override any gcc2 internal prototype to avoid an error. */
5510#ifdef __cplusplus
5511extern "C"
5512#endif
5513/* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5515char waddstr ();
5516int
5517main ()
5518{
5519waddstr ();
5520 ;
5521 return 0;
5522}
5523_ACEOF
5524rm -f conftest.$ac_objext conftest$ac_exeext
5525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5526 (eval $ac_link) 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -z "$ac_c_werror_flag"
5534 || test ! -s conftest.err'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; } &&
5540 { ac_try='test -s conftest$ac_exeext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 ac_cv_search_waddstr="-l$ac_lib"
5547break
4e8d927d 5548else
b4e70030
JB
5549 echo "$as_me: failed program was:" >&5
5550sed 's/^/| /' conftest.$ac_ext >&5
5551
5552fi
5553rm -f conftest.err conftest.$ac_objext \
5554 conftest$ac_exeext conftest.$ac_ext
5555 done
1ba607ad 5556fi
bec39cab
AC
5557LIBS=$ac_func_search_save_LIBS
5558fi
b4e70030
JB
5559echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5560echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5561if test "$ac_cv_search_waddstr" != no; then
5562 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5563
8bb2c122 5564fi
8bb2c122 5565
8bb2c122 5566
bec39cab
AC
5567# Since GDB uses Readline, we need termcap functionality. In many
5568# cases this will be provided by the curses library, but some systems
5569# have a seperate termcap library, or no curses library at all.
8bb2c122 5570
bec39cab
AC
5571case $host_os in
5572 cygwin*)
5573 if test -d $srcdir/libtermcap; then
5574 LIBS="../libtermcap/libtermcap.a $LIBS"
5575 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5576 fi ;;
5577 go32* | *djgpp*)
5578 ac_cv_search_tgetent="none required"
5579 ;;
7ef34f2c
MM
5580 *mingw32*)
5581 ac_cv_search_tgetent="none required"
5582 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5583 ;;
bec39cab 5584esac
627af7ea 5585
bec39cab 5586# These are the libraries checked by Readline.
b4e70030
JB
5587echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5588echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5589if test "${ac_cv_search_tgetent+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592 ac_func_search_save_LIBS=$LIBS
b4e70030 5593ac_cv_search_tgetent=no
bec39cab
AC
5594cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h. */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h. */
5600
b4e70030 5601/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5602#ifdef __cplusplus
5603extern "C"
5604#endif
b4e70030
JB
5605/* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
bec39cab
AC
5607char tgetent ();
5608int
5609main ()
5610{
b4e70030 5611tgetent ();
bec39cab
AC
5612 ;
5613 return 0;
5614}
5615_ACEOF
b4e70030 5616rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618 (eval $ac_link) 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } &&
b4e70030
JB
5625 { ac_try='test -z "$ac_c_werror_flag"
5626 || test ! -s conftest.err'
bec39cab
AC
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; } &&
5632 { ac_try='test -s conftest$ac_exeext'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
b4e70030 5638 ac_cv_search_tgetent="none required"
627af7ea 5639else
bec39cab
AC
5640 echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5642
627af7ea 5643fi
bec39cab 5644rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5645 conftest$ac_exeext conftest.$ac_ext
5646if test "$ac_cv_search_tgetent" = no; then
5647 for ac_lib in termcap tinfo curses ncurses; do
5648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5649 cat >conftest.$ac_ext <<_ACEOF
5650/* confdefs.h. */
5651_ACEOF
5652cat confdefs.h >>conftest.$ac_ext
5653cat >>conftest.$ac_ext <<_ACEOF
5654/* end confdefs.h. */
5655
5656/* Override any gcc2 internal prototype to avoid an error. */
5657#ifdef __cplusplus
5658extern "C"
5659#endif
5660/* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5662char tgetent ();
5663int
5664main ()
5665{
5666tgetent ();
5667 ;
5668 return 0;
5669}
5670_ACEOF
5671rm -f conftest.$ac_objext conftest$ac_exeext
5672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5673 (eval $ac_link) 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -z "$ac_c_werror_flag"
5681 || test ! -s conftest.err'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; } &&
5687 { ac_try='test -s conftest$ac_exeext'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 (eval $ac_try) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5693 ac_cv_search_tgetent="-l$ac_lib"
5694break
4e8d927d 5695else
b4e70030
JB
5696 echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699fi
5700rm -f conftest.err conftest.$ac_objext \
5701 conftest$ac_exeext conftest.$ac_ext
5702 done
bec39cab
AC
5703fi
5704LIBS=$ac_func_search_save_LIBS
5705fi
b4e70030
JB
5706echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5707echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5708if test "$ac_cv_search_tgetent" != no; then
5709 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5710
06825bd1
MK
5711fi
5712
06825bd1 5713
bec39cab
AC
5714if test "$ac_cv_search_tgetent" = no; then
5715 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5716echo "$as_me: error: no termcap library found" >&2;}
5717 { (exit 1); exit 1; }; }
8ee53726
MK
5718fi
5719
3841debe
DJ
5720
5721 if test "X$prefix" = "XNONE"; then
5722 acl_final_prefix="$ac_default_prefix"
5723 else
5724 acl_final_prefix="$prefix"
5725 fi
5726 if test "X$exec_prefix" = "XNONE"; then
5727 acl_final_exec_prefix='${prefix}'
5728 else
5729 acl_final_exec_prefix="$exec_prefix"
5730 fi
5731 acl_save_prefix="$prefix"
5732 prefix="$acl_final_prefix"
5733 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5734 prefix="$acl_save_prefix"
5735
5736
5737# Check whether --with-gnu-ld or --without-gnu-ld was given.
5738if test "${with_gnu_ld+set}" = set; then
5739 withval="$with_gnu_ld"
5740 test "$withval" = no || with_gnu_ld=yes
5741else
5742 with_gnu_ld=no
5743fi;
5744# Prepare PATH_SEPARATOR.
5745# The user is always right.
5746if test "${PATH_SEPARATOR+set}" != set; then
5747 echo "#! /bin/sh" >conf$$.sh
5748 echo "exit 0" >>conf$$.sh
5749 chmod +x conf$$.sh
5750 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5751 PATH_SEPARATOR=';'
5752 else
5753 PATH_SEPARATOR=:
5754 fi
5755 rm -f conf$$.sh
5756fi
5757ac_prog=ld
5758if test "$GCC" = yes; then
5759 # Check if gcc -print-prog-name=ld gives a path.
5760 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5761echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5762 case $host in
5763 *-*-mingw*)
5764 # gcc leaves a trailing carriage return which upsets mingw
5765 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5766 *)
5767 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5768 esac
5769 case $ac_prog in
5770 # Accept absolute paths.
5771 [\\/]* | [A-Za-z]:[\\/]*)
5772 re_direlt='/[^/][^/]*/\.\./'
5773 # Canonicalize the path of ld
5774 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5775 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5776 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5777 done
5778 test -z "$LD" && LD="$ac_prog"
5779 ;;
5780 "")
5781 # If it fails, then pretend we aren't using GCC.
5782 ac_prog=ld
5783 ;;
5784 *)
5785 # If it is relative, then search for the first ld in PATH.
5786 with_gnu_ld=unknown
5787 ;;
5788 esac
5789elif test "$with_gnu_ld" = yes; then
5790 echo "$as_me:$LINENO: checking for GNU ld" >&5
5791echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5792else
5793 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5794echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5795fi
5796if test "${acl_cv_path_LD+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799 if test -z "$LD"; then
5800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5801 for ac_dir in $PATH; do
5802 test -z "$ac_dir" && ac_dir=.
5803 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5804 acl_cv_path_LD="$ac_dir/$ac_prog"
5805 # Check to see if the program is GNU ld. I'd rather use --version,
5806 # but apparently some GNU ld's only accept -v.
5807 # Break only if it was the GNU/non-GNU ld that we prefer.
5808 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5809 test "$with_gnu_ld" != no && break
5810 else
5811 test "$with_gnu_ld" != yes && break
5812 fi
5813 fi
5814 done
5815 IFS="$ac_save_ifs"
5816else
5817 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5818fi
5819fi
5820
5821LD="$acl_cv_path_LD"
5822if test -n "$LD"; then
5823 echo "$as_me:$LINENO: result: $LD" >&5
5824echo "${ECHO_T}$LD" >&6
5825else
5826 echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
5828fi
5829test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5830echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5831 { (exit 1); exit 1; }; }
5832echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5833echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5834if test "${acl_cv_prog_gnu_ld+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5838if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5839 acl_cv_prog_gnu_ld=yes
5840else
5841 acl_cv_prog_gnu_ld=no
5842fi
5843fi
5844echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5845echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5846with_gnu_ld=$acl_cv_prog_gnu_ld
5847
5848
5849
5850 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5851echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5852if test "${acl_cv_rpath+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855
5856 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5857 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5858 . ./conftest.sh
5859 rm -f ./conftest.sh
5860 acl_cv_rpath=done
5861
5862fi
5863echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5864echo "${ECHO_T}$acl_cv_rpath" >&6
5865 wl="$acl_cv_wl"
5866 libext="$acl_cv_libext"
5867 shlibext="$acl_cv_shlibext"
5868 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5869 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5870 hardcode_direct="$acl_cv_hardcode_direct"
5871 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5872 # Check whether --enable-rpath or --disable-rpath was given.
5873if test "${enable_rpath+set}" = set; then
5874 enableval="$enable_rpath"
5875 :
5876else
5877 enable_rpath=yes
5878fi;
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888 use_additional=yes
5889
5890 acl_save_prefix="$prefix"
5891 prefix="$acl_final_prefix"
5892 acl_save_exec_prefix="$exec_prefix"
5893 exec_prefix="$acl_final_exec_prefix"
5894
5895 eval additional_includedir=\"$includedir\"
5896 eval additional_libdir=\"$libdir\"
5897
5898 exec_prefix="$acl_save_exec_prefix"
5899 prefix="$acl_save_prefix"
5900
5901
5902# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5903if test "${with_libexpat_prefix+set}" = set; then
5904 withval="$with_libexpat_prefix"
5905
5906 if test "X$withval" = "Xno"; then
5907 use_additional=no
5908 else
5909 if test "X$withval" = "X"; then
5910
5911 acl_save_prefix="$prefix"
5912 prefix="$acl_final_prefix"
5913 acl_save_exec_prefix="$exec_prefix"
5914 exec_prefix="$acl_final_exec_prefix"
5915
5916 eval additional_includedir=\"$includedir\"
5917 eval additional_libdir=\"$libdir\"
5918
5919 exec_prefix="$acl_save_exec_prefix"
5920 prefix="$acl_save_prefix"
5921
5922 else
5923 additional_includedir="$withval/include"
5924 additional_libdir="$withval/lib"
5925 fi
5926 fi
5927
5928fi;
5929 LIBEXPAT=
5930 LTLIBEXPAT=
5931 INCEXPAT=
5932 rpathdirs=
5933 ltrpathdirs=
5934 names_already_handled=
5935 names_next_round='expat '
5936 while test -n "$names_next_round"; do
5937 names_this_round="$names_next_round"
5938 names_next_round=
5939 for name in $names_this_round; do
5940 already_handled=
5941 for n in $names_already_handled; do
5942 if test "$n" = "$name"; then
5943 already_handled=yes
5944 break
5945 fi
5946 done
5947 if test -z "$already_handled"; then
5948 names_already_handled="$names_already_handled $name"
5949 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5950 eval value=\"\$HAVE_LIB$uppername\"
5951 if test -n "$value"; then
5952 if test "$value" = yes; then
5953 eval value=\"\$LIB$uppername\"
5954 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5955 eval value=\"\$LTLIB$uppername\"
5956 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5957 else
5958 :
5959 fi
5960 else
5961 found_dir=
5962 found_la=
5963 found_so=
5964 found_a=
5965 if test $use_additional = yes; then
5966 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5967 found_dir="$additional_libdir"
5968 found_so="$additional_libdir/lib$name.$shlibext"
5969 if test -f "$additional_libdir/lib$name.la"; then
5970 found_la="$additional_libdir/lib$name.la"
5971 fi
5972 else
5973 if test -f "$additional_libdir/lib$name.$libext"; then
5974 found_dir="$additional_libdir"
5975 found_a="$additional_libdir/lib$name.$libext"
5976 if test -f "$additional_libdir/lib$name.la"; then
5977 found_la="$additional_libdir/lib$name.la"
5978 fi
5979 fi
5980 fi
5981 fi
5982 if test "X$found_dir" = "X"; then
5983 for x in $LDFLAGS $LTLIBEXPAT; do
5984
5985 acl_save_prefix="$prefix"
5986 prefix="$acl_final_prefix"
5987 acl_save_exec_prefix="$exec_prefix"
5988 exec_prefix="$acl_final_exec_prefix"
5989 eval x=\"$x\"
5990 exec_prefix="$acl_save_exec_prefix"
5991 prefix="$acl_save_prefix"
5992
5993 case "$x" in
5994 -L*)
5995 dir=`echo "X$x" | sed -e 's/^X-L//'`
5996 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5997 found_dir="$dir"
5998 found_so="$dir/lib$name.$shlibext"
5999 if test -f "$dir/lib$name.la"; then
6000 found_la="$dir/lib$name.la"
6001 fi
6002 else
6003 if test -f "$dir/lib$name.$libext"; then
6004 found_dir="$dir"
6005 found_a="$dir/lib$name.$libext"
6006 if test -f "$dir/lib$name.la"; then
6007 found_la="$dir/lib$name.la"
6008 fi
6009 fi
6010 fi
6011 ;;
6012 esac
6013 if test "X$found_dir" != "X"; then
6014 break
6015 fi
6016 done
6017 fi
6018 if test "X$found_dir" != "X"; then
6019 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6020 if test "X$found_so" != "X"; then
6021 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6022 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6023 else
6024 haveit=
6025 for x in $ltrpathdirs; do
6026 if test "X$x" = "X$found_dir"; then
6027 haveit=yes
6028 break
6029 fi
6030 done
6031 if test -z "$haveit"; then
6032 ltrpathdirs="$ltrpathdirs $found_dir"
6033 fi
6034 if test "$hardcode_direct" = yes; then
6035 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6036 else
6037 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6038 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6039 haveit=
6040 for x in $rpathdirs; do
6041 if test "X$x" = "X$found_dir"; then
6042 haveit=yes
6043 break
6044 fi
6045 done
6046 if test -z "$haveit"; then
6047 rpathdirs="$rpathdirs $found_dir"
6048 fi
6049 else
6050 haveit=
6051 for x in $LDFLAGS $LIBEXPAT; do
6052
6053 acl_save_prefix="$prefix"
6054 prefix="$acl_final_prefix"
6055 acl_save_exec_prefix="$exec_prefix"
6056 exec_prefix="$acl_final_exec_prefix"
6057 eval x=\"$x\"
6058 exec_prefix="$acl_save_exec_prefix"
6059 prefix="$acl_save_prefix"
6060
6061 if test "X$x" = "X-L$found_dir"; then
6062 haveit=yes
6063 break
6064 fi
6065 done
6066 if test -z "$haveit"; then
6067 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6068 fi
6069 if test "$hardcode_minus_L" != no; then
6070 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6071 else
6072 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6073 fi
6074 fi
6075 fi
6076 fi
6077 else
6078 if test "X$found_a" != "X"; then
6079 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6080 else
6081 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6082 fi
6083 fi
6084 additional_includedir=
6085 case "$found_dir" in
6086 */lib | */lib/)
6087 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6088 additional_includedir="$basedir/include"
6089 ;;
6090 esac
6091 if test "X$additional_includedir" != "X"; then
6092 if test "X$additional_includedir" != "X/usr/include"; then
6093 haveit=
6094 if test "X$additional_includedir" = "X/usr/local/include"; then
6095 if test -n "$GCC"; then
6096 case $host_os in
6097 linux*) haveit=yes;;
6098 esac
6099 fi
6100 fi
6101 if test -z "$haveit"; then
6102 for x in $CPPFLAGS $INCEXPAT; do
6103
6104 acl_save_prefix="$prefix"
6105 prefix="$acl_final_prefix"
6106 acl_save_exec_prefix="$exec_prefix"
6107 exec_prefix="$acl_final_exec_prefix"
6108 eval x=\"$x\"
6109 exec_prefix="$acl_save_exec_prefix"
6110 prefix="$acl_save_prefix"
6111
6112 if test "X$x" = "X-I$additional_includedir"; then
6113 haveit=yes
6114 break
6115 fi
6116 done
6117 if test -z "$haveit"; then
6118 if test -d "$additional_includedir"; then
6119 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6120 fi
6121 fi
6122 fi
6123 fi
6124 fi
6125 if test -n "$found_la"; then
6126 save_libdir="$libdir"
6127 case "$found_la" in
6128 */* | *\\*) . "$found_la" ;;
6129 *) . "./$found_la" ;;
6130 esac
6131 libdir="$save_libdir"
6132 for dep in $dependency_libs; do
6133 case "$dep" in
6134 -L*)
6135 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6136 if test "X$additional_libdir" != "X/usr/lib"; then
6137 haveit=
6138 if test "X$additional_libdir" = "X/usr/local/lib"; then
6139 if test -n "$GCC"; then
6140 case $host_os in
6141 linux*) haveit=yes;;
6142 esac
6143 fi
6144 fi
6145 if test -z "$haveit"; then
6146 haveit=
6147 for x in $LDFLAGS $LIBEXPAT; do
6148
6149 acl_save_prefix="$prefix"
6150 prefix="$acl_final_prefix"
6151 acl_save_exec_prefix="$exec_prefix"
6152 exec_prefix="$acl_final_exec_prefix"
6153 eval x=\"$x\"
6154 exec_prefix="$acl_save_exec_prefix"
6155 prefix="$acl_save_prefix"
6156
6157 if test "X$x" = "X-L$additional_libdir"; then
6158 haveit=yes
6159 break
6160 fi
6161 done
6162 if test -z "$haveit"; then
6163 if test -d "$additional_libdir"; then
6164 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6165 fi
6166 fi
6167 haveit=
6168 for x in $LDFLAGS $LTLIBEXPAT; do
6169
6170 acl_save_prefix="$prefix"
6171 prefix="$acl_final_prefix"
6172 acl_save_exec_prefix="$exec_prefix"
6173 exec_prefix="$acl_final_exec_prefix"
6174 eval x=\"$x\"
6175 exec_prefix="$acl_save_exec_prefix"
6176 prefix="$acl_save_prefix"
6177
6178 if test "X$x" = "X-L$additional_libdir"; then
6179 haveit=yes
6180 break
6181 fi
6182 done
6183 if test -z "$haveit"; then
6184 if test -d "$additional_libdir"; then
6185 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6186 fi
6187 fi
6188 fi
6189 fi
6190 ;;
6191 -R*)
6192 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6193 if test "$enable_rpath" != no; then
6194 haveit=
6195 for x in $rpathdirs; do
6196 if test "X$x" = "X$dir"; then
6197 haveit=yes
6198 break
6199 fi
6200 done
6201 if test -z "$haveit"; then
6202 rpathdirs="$rpathdirs $dir"
6203 fi
6204 haveit=
6205 for x in $ltrpathdirs; do
6206 if test "X$x" = "X$dir"; then
6207 haveit=yes
6208 break
6209 fi
6210 done
6211 if test -z "$haveit"; then
6212 ltrpathdirs="$ltrpathdirs $dir"
6213 fi
6214 fi
6215 ;;
6216 -l*)
6217 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6218 ;;
6219 *.la)
6220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6221 ;;
6222 *)
6223 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6224 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6225 ;;
6226 esac
6227 done
6228 fi
6229 else
6230 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6231 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6232 fi
6233 fi
6234 fi
6235 done
6236 done
6237 if test "X$rpathdirs" != "X"; then
6238 if test -n "$hardcode_libdir_separator"; then
6239 alldirs=
6240 for found_dir in $rpathdirs; do
6241 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6242 done
6243 acl_save_libdir="$libdir"
6244 libdir="$alldirs"
6245 eval flag=\"$hardcode_libdir_flag_spec\"
6246 libdir="$acl_save_libdir"
6247 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6248 else
6249 for found_dir in $rpathdirs; do
6250 acl_save_libdir="$libdir"
6251 libdir="$found_dir"
6252 eval flag=\"$hardcode_libdir_flag_spec\"
6253 libdir="$acl_save_libdir"
6254 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6255 done
6256 fi
6257 fi
6258 if test "X$ltrpathdirs" != "X"; then
6259 for found_dir in $ltrpathdirs; do
6260 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6261 done
6262 fi
6263
6264
6265 ac_save_CPPFLAGS="$CPPFLAGS"
6266
6267 for element in $INCEXPAT; do
6268 haveit=
6269 for x in $CPPFLAGS; do
6270
6271 acl_save_prefix="$prefix"
6272 prefix="$acl_final_prefix"
6273 acl_save_exec_prefix="$exec_prefix"
6274 exec_prefix="$acl_final_exec_prefix"
6275 eval x=\"$x\"
6276 exec_prefix="$acl_save_exec_prefix"
6277 prefix="$acl_save_prefix"
6278
6279 if test "X$x" = "X$element"; then
6280 haveit=yes
6281 break
6282 fi
6283 done
6284 if test -z "$haveit"; then
6285 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6286 fi
6287 done
6288
6289
6290 echo "$as_me:$LINENO: checking for libexpat" >&5
6291echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6292if test "${ac_cv_libexpat+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295
6296 ac_save_LIBS="$LIBS"
6297 LIBS="$LIBS $LIBEXPAT"
6298 cat >conftest.$ac_ext <<_ACEOF
6299/* confdefs.h. */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h. */
6304#include "expat.h"
6305int
6306main ()
6307{
6308XML_Parser p = XML_ParserCreate (0);
6309 ;
6310 return 0;
6311}
6312_ACEOF
6313rm -f conftest.$ac_objext conftest$ac_exeext
6314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6315 (eval $ac_link) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest$ac_exeext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_libexpat=yes
6336else
6337 echo "$as_me: failed program was:" >&5
6338sed 's/^/| /' conftest.$ac_ext >&5
6339
6340ac_cv_libexpat=no
6341fi
6342rm -f conftest.err conftest.$ac_objext \
6343 conftest$ac_exeext conftest.$ac_ext
6344 LIBS="$ac_save_LIBS"
6345
6346fi
6347echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6348echo "${ECHO_T}$ac_cv_libexpat" >&6
6349 if test "$ac_cv_libexpat" = yes; then
6350 HAVE_LIBEXPAT=yes
6351
6352cat >>confdefs.h <<\_ACEOF
6353#define HAVE_LIBEXPAT 1
6354_ACEOF
6355
6356 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6357echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6358 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6359echo "${ECHO_T}$LIBEXPAT" >&6
6360 else
6361 HAVE_LIBEXPAT=no
6362 CPPFLAGS="$ac_save_CPPFLAGS"
6363 LIBEXPAT=
6364 LTLIBEXPAT=
6365 fi
6366
6367
6368
6369
6370
6371
6372if test "$HAVE_LIBEXPAT" != yes; then
6373 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5
6374echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;}
ca4ca11e
DJ
6375else
6376 save_LIBS=$LIBS
6377 LIBS="$LIBS $LIBEXPAT"
6378
6379for ac_func in XML_StopParser
6380do
6381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6382echo "$as_me:$LINENO: checking for $ac_func" >&5
6383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6384if eval "test \"\${$as_ac_var+set}\" = set"; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386else
6387 cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6395#define $ac_func innocuous_$ac_func
6396
6397/* System header to define __stub macros and hopefully few prototypes,
6398 which can conflict with char $ac_func (); below.
6399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 <limits.h> exists even on freestanding compilers. */
6401
6402#ifdef __STDC__
6403# include <limits.h>
6404#else
6405# include <assert.h>
6406#endif
6407
6408#undef $ac_func
6409
6410/* Override any gcc2 internal prototype to avoid an error. */
6411#ifdef __cplusplus
6412extern "C"
6413{
6414#endif
6415/* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6417char $ac_func ();
6418/* The GNU C library defines this for functions which it implements
6419 to always fail with ENOSYS. Some functions are actually named
6420 something starting with __ and the normal name is an alias. */
6421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6422choke me
6423#else
6424char (*f) () = $ac_func;
6425#endif
6426#ifdef __cplusplus
6427}
6428#endif
6429
6430int
6431main ()
6432{
6433return f != $ac_func;
6434 ;
6435 return 0;
6436}
6437_ACEOF
6438rm -f conftest.$ac_objext conftest$ac_exeext
6439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 eval "$as_ac_var=yes"
6461else
6462 echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465eval "$as_ac_var=no"
6466fi
6467rm -f conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext conftest.$ac_ext
6469fi
6470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6472if test `eval echo '${'$as_ac_var'}'` = yes; then
6473 cat >>confdefs.h <<_ACEOF
6474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6475_ACEOF
6476
6477fi
6478done
6479
6480 LIBS=$save_LIBS
3841debe
DJ
6481fi
6482
bec39cab
AC
6483# ------------------------- #
6484# Checks for header files. #
6485# ------------------------- #
8ee53726 6486
0e5d83e3 6487
bec39cab
AC
6488
6489
6490
6491
6492ac_header_dirent=no
6493for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6494 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6495echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6496echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6497if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500 cat >conftest.$ac_ext <<_ACEOF
6501/* confdefs.h. */
6502_ACEOF
6503cat confdefs.h >>conftest.$ac_ext
6504cat >>conftest.$ac_ext <<_ACEOF
6505/* end confdefs.h. */
6506#include <sys/types.h>
0e5d83e3 6507#include <$ac_hdr>
bec39cab
AC
6508
6509int
6510main ()
6511{
6512if ((DIR *) 0)
6513return 0;
6514 ;
6515 return 0;
6516}
6517_ACEOF
6518rm -f conftest.$ac_objext
6519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520 (eval $ac_compile) 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
b4e70030
JB
6527 { ac_try='test -z "$ac_c_werror_flag"
6528 || test ! -s conftest.err'
bec39cab
AC
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 (eval $ac_try) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 eval "$as_ac_Header=yes"
6541else
6542 echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
b4e70030 6545eval "$as_ac_Header=no"
bec39cab
AC
6546fi
6547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6548fi
b4e70030
JB
6549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6551if test `eval echo '${'$as_ac_Header'}'` = yes; then
6552 cat >>confdefs.h <<_ACEOF
6553#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6554_ACEOF
6555
6556ac_header_dirent=$ac_hdr; break
0e5d83e3 6557fi
0e5d83e3 6558
bec39cab
AC
6559done
6560# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6561if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6562 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6563echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6564if test "${ac_cv_search_opendir+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 ac_func_search_save_LIBS=$LIBS
b4e70030 6568ac_cv_search_opendir=no
bec39cab
AC
6569cat >conftest.$ac_ext <<_ACEOF
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
0e5d83e3 6575
b4e70030 6576/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6577#ifdef __cplusplus
6578extern "C"
6579#endif
b4e70030
JB
6580/* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
bec39cab
AC
6582char opendir ();
6583int
6584main ()
6585{
b4e70030 6586opendir ();
bec39cab
AC
6587 ;
6588 return 0;
6589}
6590_ACEOF
b4e70030 6591rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
b4e70030
JB
6600 { ac_try='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
bec39cab
AC
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
b4e70030 6613 ac_cv_search_opendir="none required"
bec39cab
AC
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618fi
bec39cab 6619rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6620 conftest$ac_exeext conftest.$ac_ext
6621if test "$ac_cv_search_opendir" = no; then
6622 for ac_lib in dir; do
6623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6624 cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h. */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h. */
6630
6631/* Override any gcc2 internal prototype to avoid an error. */
6632#ifdef __cplusplus
6633extern "C"
6634#endif
6635/* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6637char opendir ();
6638int
6639main ()
6640{
6641opendir ();
6642 ;
6643 return 0;
6644}
6645_ACEOF
6646rm -f conftest.$ac_objext conftest$ac_exeext
6647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648 (eval $ac_link) 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -z "$ac_c_werror_flag"
6656 || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest$ac_exeext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 (eval $ac_try) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_cv_search_opendir="-l$ac_lib"
6669break
4e8d927d 6670else
b4e70030
JB
6671 echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
6674fi
6675rm -f conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6677 done
0e5d83e3 6678fi
bec39cab 6679LIBS=$ac_func_search_save_LIBS
0e5d83e3 6680fi
b4e70030
JB
6681echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6682echo "${ECHO_T}$ac_cv_search_opendir" >&6
6683if test "$ac_cv_search_opendir" != no; then
6684 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6685
0e5d83e3
JJ
6686fi
6687
d28f9cdf 6688else
b4e70030
JB
6689 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6690echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6691if test "${ac_cv_search_opendir+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 ac_func_search_save_LIBS=$LIBS
b4e70030 6695ac_cv_search_opendir=no
bec39cab
AC
6696cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h. */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h. */
d28f9cdf 6702
b4e70030 6703/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6704#ifdef __cplusplus
6705extern "C"
d28f9cdf 6706#endif
b4e70030
JB
6707/* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
bec39cab
AC
6709char opendir ();
6710int
6711main ()
6712{
b4e70030 6713opendir ();
bec39cab
AC
6714 ;
6715 return 0;
6716}
6717_ACEOF
b4e70030 6718rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
b4e70030
JB
6727 { ac_try='test -z "$ac_c_werror_flag"
6728 || test ! -s conftest.err'
bec39cab
AC
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 (eval $ac_try) 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; } &&
6734 { ac_try='test -s conftest$ac_exeext'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 (eval $ac_try) 2>&5
6737 ac_status=$?
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; }; then
b4e70030 6740 ac_cv_search_opendir="none required"
d28f9cdf 6741else
bec39cab
AC
6742 echo "$as_me: failed program was:" >&5
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
d28f9cdf 6745fi
bec39cab 6746rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6747 conftest$ac_exeext conftest.$ac_ext
6748if test "$ac_cv_search_opendir" = no; then
6749 for ac_lib in x; do
6750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6751 cat >conftest.$ac_ext <<_ACEOF
6752/* confdefs.h. */
6753_ACEOF
6754cat confdefs.h >>conftest.$ac_ext
6755cat >>conftest.$ac_ext <<_ACEOF
6756/* end confdefs.h. */
6757
6758/* Override any gcc2 internal prototype to avoid an error. */
6759#ifdef __cplusplus
6760extern "C"
6761#endif
6762/* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6764char opendir ();
6765int
6766main ()
6767{
6768opendir ();
6769 ;
6770 return 0;
6771}
6772_ACEOF
6773rm -f conftest.$ac_objext conftest$ac_exeext
6774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; } &&
6789 { ac_try='test -s conftest$ac_exeext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_search_opendir="-l$ac_lib"
6796break
4e8d927d 6797else
b4e70030
JB
6798 echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801fi
6802rm -f conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6804 done
bec39cab
AC
6805fi
6806LIBS=$ac_func_search_save_LIBS
d28f9cdf 6807fi
b4e70030
JB
6808echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6809echo "${ECHO_T}$ac_cv_search_opendir" >&6
6810if test "$ac_cv_search_opendir" != no; then
6811 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 6812
d28f9cdf
DJ
6813fi
6814
bec39cab 6815fi
b0b1c2c0 6816
b4e70030
JB
6817echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6818echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
6819if test "${ac_cv_header_stat_broken+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 6821else
bec39cab
AC
6822 cat >conftest.$ac_ext <<_ACEOF
6823/* confdefs.h. */
6824_ACEOF
6825cat confdefs.h >>conftest.$ac_ext
6826cat >>conftest.$ac_ext <<_ACEOF
6827/* end confdefs.h. */
6828#include <sys/types.h>
6829#include <sys/stat.h>
b0b1c2c0 6830
b4e70030 6831#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
6832# if S_ISBLK (S_IFDIR)
6833You lose.
6834# endif
6835#endif
b0b1c2c0 6836
b4e70030 6837#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
6838# if S_ISBLK (S_IFCHR)
6839You lose.
6840# endif
6841#endif
d28f9cdf 6842
b4e70030 6843#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
6844# if S_ISLNK (S_IFREG)
6845You lose.
6846# endif
6847#endif
d28f9cdf 6848
b4e70030 6849#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
6850# if S_ISSOCK (S_IFREG)
6851You lose.
6852# endif
6853#endif
6854
6855_ACEOF
6856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 $EGREP "You lose" >/dev/null 2>&1; then
6858 ac_cv_header_stat_broken=yes
d28f9cdf 6859else
bec39cab 6860 ac_cv_header_stat_broken=no
d28f9cdf
DJ
6861fi
6862rm -f conftest*
d28f9cdf 6863
d28f9cdf 6864fi
b4e70030
JB
6865echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6866echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 6867if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 6868
bec39cab
AC
6869cat >>confdefs.h <<\_ACEOF
6870#define STAT_MACROS_BROKEN 1
6871_ACEOF
8bb2c122 6872
7a292a7a 6873fi
bec39cab 6874
b4e70030
JB
6875echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6876echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
6877if test "${ac_cv_header_stdc+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 6879else
bec39cab
AC
6880 cat >conftest.$ac_ext <<_ACEOF
6881/* confdefs.h. */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h. */
6886#include <stdlib.h>
6887#include <stdarg.h>
6888#include <string.h>
6889#include <float.h>
7a292a7a 6890
bec39cab
AC
6891int
6892main ()
6893{
7a292a7a 6894
bec39cab
AC
6895 ;
6896 return 0;
6897}
6898_ACEOF
6899rm -f conftest.$ac_objext
6900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
b4e70030
JB
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
bec39cab
AC
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest.$ac_objext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_header_stdc=yes
c906108c 6922else
bec39cab
AC
6923 echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
c906108c 6925
b4e70030 6926ac_cv_header_stdc=no
c906108c 6927fi
bec39cab 6928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6929
bec39cab
AC
6930if test $ac_cv_header_stdc = yes; then
6931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6932 cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938#include <string.h>
c906108c 6939
bec39cab
AC
6940_ACEOF
6941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6942 $EGREP "memchr" >/dev/null 2>&1; then
6943 :
8bb2c122 6944else
bec39cab 6945 ac_cv_header_stdc=no
8bb2c122 6946fi
bec39cab
AC
6947rm -f conftest*
6948
c906108c
SS
6949fi
6950
bec39cab
AC
6951if test $ac_cv_header_stdc = yes; then
6952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6953 cat >conftest.$ac_ext <<_ACEOF
6954/* confdefs.h. */
6955_ACEOF
6956cat confdefs.h >>conftest.$ac_ext
6957cat >>conftest.$ac_ext <<_ACEOF
6958/* end confdefs.h. */
6959#include <stdlib.h>
6960
6961_ACEOF
6962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963 $EGREP "free" >/dev/null 2>&1; then
6964 :
c906108c 6965else
bec39cab 6966 ac_cv_header_stdc=no
c906108c 6967fi
bec39cab
AC
6968rm -f conftest*
6969
c906108c
SS
6970fi
6971
bec39cab
AC
6972if test $ac_cv_header_stdc = yes; then
6973 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6974 if test "$cross_compiling" = yes; then
6975 :
c906108c 6976else
bec39cab
AC
6977 cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h. */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h. */
6983#include <ctype.h>
6984#if ((' ' & 0x0FF) == 0x020)
6985# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6986# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6987#else
6988# define ISLOWER(c) \
6989 (('a' <= (c) && (c) <= 'i') \
6990 || ('j' <= (c) && (c) <= 'r') \
6991 || ('s' <= (c) && (c) <= 'z'))
6992# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6993#endif
6994
6995#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6996int
6997main ()
6998{
6999 int i;
7000 for (i = 0; i < 256; i++)
7001 if (XOR (islower (i), ISLOWER (i))
7002 || toupper (i) != TOUPPER (i))
b4e70030
JB
7003 exit(2);
7004 exit (0);
bec39cab
AC
7005}
7006_ACEOF
7007rm -f conftest$ac_exeext
7008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 (eval $ac_try) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
7018 :
7019else
7020 echo "$as_me: program exited with status $ac_status" >&5
7021echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024( exit $ac_status )
7025ac_cv_header_stdc=no
c906108c 7026fi
b4e70030 7027rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7028fi
c906108c 7029fi
bec39cab 7030fi
b4e70030
JB
7031echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7032echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 7033if test $ac_cv_header_stdc = yes; then
c906108c 7034
bec39cab
AC
7035cat >>confdefs.h <<\_ACEOF
7036#define STDC_HEADERS 1
7037_ACEOF
c906108c 7038
bec39cab 7039fi
8bb2c122 7040
bec39cab 7041
7cb9022a 7042for ac_header in nlist.h
bec39cab
AC
7043do
7044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7045if eval "test \"\${$as_ac_Header+set}\" = set"; then
7046 echo "$as_me:$LINENO: checking for $ac_header" >&5
7047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7048if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050fi
b4e70030
JB
7051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7053else
7054 # Is the header compilable?
b4e70030
JB
7055echo "$as_me:$LINENO: checking $ac_header usability" >&5
7056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7057cat >conftest.$ac_ext <<_ACEOF
7058/* confdefs.h. */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h. */
7063$ac_includes_default
7064#include <$ac_header>
7065_ACEOF
7066rm -f conftest.$ac_objext
7067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
b4e70030
JB
7075 { ac_try='test -z "$ac_c_werror_flag"
7076 || test ! -s conftest.err'
bec39cab
AC
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest.$ac_objext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 ac_header_compiler=yes
7089else
7090 echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
b4e70030 7093ac_header_compiler=no
bec39cab
AC
7094fi
7095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7097echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7098
7099# Is the header present?
b4e70030
JB
7100echo "$as_me:$LINENO: checking $ac_header presence" >&5
7101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7102cat >conftest.$ac_ext <<_ACEOF
7103/* confdefs.h. */
7104_ACEOF
7105cat confdefs.h >>conftest.$ac_ext
7106cat >>conftest.$ac_ext <<_ACEOF
7107/* end confdefs.h. */
7108#include <$ac_header>
7109_ACEOF
7110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } >/dev/null; then
7118 if test -s conftest.err; then
7119 ac_cpp_err=$ac_c_preproc_warn_flag
7120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7121 else
7122 ac_cpp_err=
7123 fi
c906108c 7124else
bec39cab 7125 ac_cpp_err=yes
c906108c 7126fi
bec39cab
AC
7127if test -z "$ac_cpp_err"; then
7128 ac_header_preproc=yes
c906108c 7129else
bec39cab
AC
7130 echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7132
bec39cab
AC
7133 ac_header_preproc=no
7134fi
7135rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7137echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7138
bec39cab
AC
7139# So? What about this header?
7140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7141 yes:no: )
7142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7146 ac_header_preproc=yes
7147 ;;
7148 no:yes:* )
7149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7161 (
7162 cat <<\_ASBOX
7163## ------------------------------------------ ##
7164## Report this to the AC_PACKAGE_NAME lists. ##
7165## ------------------------------------------ ##
7166_ASBOX
7167 ) |
7168 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7169 ;;
7170esac
b4e70030
JB
7171echo "$as_me:$LINENO: checking for $ac_header" >&5
7172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7173if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7174 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7175else
bec39cab 7176 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7177fi
b4e70030
JB
7178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7180
95ca63c4 7181fi
bec39cab
AC
7182if test `eval echo '${'$as_ac_Header'}'` = yes; then
7183 cat >>confdefs.h <<_ACEOF
7184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7185_ACEOF
7186
95ca63c4
CF
7187fi
7188
bec39cab 7189done
95ca63c4
CF
7190
7191
7cb9022a 7192for ac_header in link.h
bec39cab
AC
7193do
7194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7195echo "$as_me:$LINENO: checking for $ac_header" >&5
7196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7198 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7199else
7cb9022a 7200 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7cb9022a
MK
7206#if HAVE_SYS_TYPES_H
7207# include <sys/types.h>
7208#endif
7209#if HAVE_NLIST_H
7210# include <nlist.h>
7211#endif
7212
7213
bec39cab
AC
7214#include <$ac_header>
7215_ACEOF
7216rm -f conftest.$ac_objext
7217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
b4e70030
JB
7225 { ac_try='test -z "$ac_c_werror_flag"
7226 || test ! -s conftest.err'
bec39cab
AC
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; } &&
7232 { ac_try='test -s conftest.$ac_objext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7cb9022a 7238 eval "$as_ac_Header=yes"
bec39cab
AC
7239else
7240 echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
b4e70030 7243eval "$as_ac_Header=no"
bec39cab
AC
7244fi
7245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7246fi
b4e70030
JB
7247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7249if test `eval echo '${'$as_ac_Header'}'` = yes; then
7250 cat >>confdefs.h <<_ACEOF
7251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7252_ACEOF
95ca63c4 7253
bec39cab 7254fi
95ca63c4 7255
bec39cab 7256done
95ca63c4 7257
c906108c 7258
7cb9022a 7259for ac_header in machine/reg.h
bec39cab
AC
7260do
7261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7262if eval "test \"\${$as_ac_Header+set}\" = set"; then
7263 echo "$as_me:$LINENO: checking for $ac_header" >&5
7264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7265if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267fi
b4e70030
JB
7268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7270else
7271 # Is the header compilable?
b4e70030
JB
7272echo "$as_me:$LINENO: checking $ac_header usability" >&5
7273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7274cat >conftest.$ac_ext <<_ACEOF
7275/* confdefs.h. */
7276_ACEOF
7277cat confdefs.h >>conftest.$ac_ext
7278cat >>conftest.$ac_ext <<_ACEOF
7279/* end confdefs.h. */
7280$ac_includes_default
7281#include <$ac_header>
7282_ACEOF
7283rm -f conftest.$ac_objext
7284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
b4e70030
JB
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
bec39cab
AC
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest.$ac_objext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_header_compiler=yes
7306else
7307 echo "$as_me: failed program was:" >&5
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
b4e70030 7310ac_header_compiler=no
bec39cab
AC
7311fi
7312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7314echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7315
7316# Is the header present?
b4e70030
JB
7317echo "$as_me:$LINENO: checking $ac_header presence" >&5
7318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7319cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h. */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h. */
7325#include <$ac_header>
7326_ACEOF
7327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } >/dev/null; then
7335 if test -s conftest.err; then
7336 ac_cpp_err=$ac_c_preproc_warn_flag
7337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7338 else
7339 ac_cpp_err=
7340 fi
75c6e08a 7341else
bec39cab 7342 ac_cpp_err=yes
75c6e08a 7343fi
bec39cab
AC
7344if test -z "$ac_cpp_err"; then
7345 ac_header_preproc=yes
7346else
7347 echo "$as_me: failed program was:" >&5
7348sed 's/^/| /' conftest.$ac_ext >&5
7349
7350 ac_header_preproc=no
75c6e08a 7351fi
bec39cab 7352rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7354echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7355
7356# So? What about this header?
7357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7358 yes:no: )
7359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7363 ac_header_preproc=yes
7364 ;;
7365 no:yes:* )
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7378 (
7379 cat <<\_ASBOX
7380## ------------------------------------------ ##
7381## Report this to the AC_PACKAGE_NAME lists. ##
7382## ------------------------------------------ ##
7383_ASBOX
7384 ) |
7385 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7386 ;;
7387esac
b4e70030
JB
7388echo "$as_me:$LINENO: checking for $ac_header" >&5
7389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7390if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7391 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7392else
bec39cab
AC
7393 eval "$as_ac_Header=\$ac_header_preproc"
7394fi
b4e70030
JB
7395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7397
75c6e08a 7398fi
bec39cab
AC
7399if test `eval echo '${'$as_ac_Header'}'` = yes; then
7400 cat >>confdefs.h <<_ACEOF
7401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7402_ACEOF
75c6e08a 7403
bec39cab 7404fi
75c6e08a 7405
bec39cab 7406done
75c6e08a
MK
7407
7408
9a156167 7409
bec39cab
AC
7410for ac_header in poll.h sys/poll.h
7411do
7412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7413if eval "test \"\${$as_ac_Header+set}\" = set"; then
7414 echo "$as_me:$LINENO: checking for $ac_header" >&5
7415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7416if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418fi
b4e70030
JB
7419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7421else
7422 # Is the header compilable?
b4e70030
JB
7423echo "$as_me:$LINENO: checking $ac_header usability" >&5
7424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7425cat >conftest.$ac_ext <<_ACEOF
7426/* confdefs.h. */
7427_ACEOF
7428cat confdefs.h >>conftest.$ac_ext
7429cat >>conftest.$ac_ext <<_ACEOF
7430/* end confdefs.h. */
7431$ac_includes_default
7432#include <$ac_header>
7433_ACEOF
7434rm -f conftest.$ac_objext
7435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436 (eval $ac_compile) 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
b4e70030
JB
7443 { ac_try='test -z "$ac_c_werror_flag"
7444 || test ! -s conftest.err'
bec39cab
AC
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 (eval $ac_try) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_header_compiler=yes
7457else
7458 echo "$as_me: failed program was:" >&5
7459sed 's/^/| /' conftest.$ac_ext >&5
7460
b4e70030 7461ac_header_compiler=no
bec39cab
AC
7462fi
7463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7465echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7466
7467# Is the header present?
b4e70030
JB
7468echo "$as_me:$LINENO: checking $ac_header presence" >&5
7469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7470cat >conftest.$ac_ext <<_ACEOF
7471/* confdefs.h. */
7472_ACEOF
7473cat confdefs.h >>conftest.$ac_ext
7474cat >>conftest.$ac_ext <<_ACEOF
7475/* end confdefs.h. */
7476#include <$ac_header>
7477_ACEOF
7478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7480 ac_status=$?
7481 grep -v '^ *+' conftest.er1 >conftest.err
7482 rm -f conftest.er1
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } >/dev/null; then
7486 if test -s conftest.err; then
7487 ac_cpp_err=$ac_c_preproc_warn_flag
7488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7489 else
7490 ac_cpp_err=
7491 fi
9a156167 7492else
bec39cab 7493 ac_cpp_err=yes
9a156167 7494fi
bec39cab
AC
7495if test -z "$ac_cpp_err"; then
7496 ac_header_preproc=yes
7497else
7498 echo "$as_me: failed program was:" >&5
7499sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7500
bec39cab 7501 ac_header_preproc=no
9a156167 7502fi
bec39cab 7503rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7505echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7506
bec39cab
AC
7507# So? What about this header?
7508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7509 yes:no: )
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7514 ac_header_preproc=yes
7515 ;;
7516 no:yes:* )
7517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7529 (
7530 cat <<\_ASBOX
7531## ------------------------------------------ ##
7532## Report this to the AC_PACKAGE_NAME lists. ##
7533## ------------------------------------------ ##
7534_ASBOX
7535 ) |
7536 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7537 ;;
7538esac
b4e70030
JB
7539echo "$as_me:$LINENO: checking for $ac_header" >&5
7540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7541if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7542 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7543else
bec39cab 7544 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7545fi
b4e70030
JB
7546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7548
bec39cab
AC
7549fi
7550if test `eval echo '${'$as_ac_Header'}'` = yes; then
7551 cat >>confdefs.h <<_ACEOF
7552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7553_ACEOF
9a156167 7554
bec39cab 7555fi
9a156167 7556
bec39cab 7557done
9a156167 7558
9a156167 7559
9a156167 7560
bec39cab
AC
7561
7562for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7563do
7564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7565if eval "test \"\${$as_ac_Header+set}\" = set"; then
7566 echo "$as_me:$LINENO: checking for $ac_header" >&5
7567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7568if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570fi
b4e70030
JB
7571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7573else
7574 # Is the header compilable?
b4e70030
JB
7575echo "$as_me:$LINENO: checking $ac_header usability" >&5
7576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7577cat >conftest.$ac_ext <<_ACEOF
7578/* confdefs.h. */
7579_ACEOF
7580cat confdefs.h >>conftest.$ac_ext
7581cat >>conftest.$ac_ext <<_ACEOF
7582/* end confdefs.h. */
7583$ac_includes_default
7584#include <$ac_header>
7585_ACEOF
7586rm -f conftest.$ac_objext
7587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588 (eval $ac_compile) 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } &&
b4e70030
JB
7595 { ac_try='test -z "$ac_c_werror_flag"
7596 || test ! -s conftest.err'
bec39cab
AC
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; } &&
7602 { ac_try='test -s conftest.$ac_objext'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 (eval $ac_try) 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; }; then
7608 ac_header_compiler=yes
7609else
7610 echo "$as_me: failed program was:" >&5
7611sed 's/^/| /' conftest.$ac_ext >&5
7612
b4e70030 7613ac_header_compiler=no
bec39cab
AC
7614fi
7615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7616echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7617echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7618
7619# Is the header present?
b4e70030
JB
7620echo "$as_me:$LINENO: checking $ac_header presence" >&5
7621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7622cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h. */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
7627/* end confdefs.h. */
7628#include <$ac_header>
7629_ACEOF
7630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7632 ac_status=$?
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } >/dev/null; then
7638 if test -s conftest.err; then
7639 ac_cpp_err=$ac_c_preproc_warn_flag
7640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7641 else
7642 ac_cpp_err=
7643 fi
9a156167 7644else
bec39cab 7645 ac_cpp_err=yes
9a156167 7646fi
bec39cab
AC
7647if test -z "$ac_cpp_err"; then
7648 ac_header_preproc=yes
7649else
7650 echo "$as_me: failed program was:" >&5
7651sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7652
bec39cab 7653 ac_header_preproc=no
9a156167 7654fi
bec39cab 7655rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7657echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7658
bec39cab
AC
7659# So? What about this header?
7660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7661 yes:no: )
7662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7666 ac_header_preproc=yes
7667 ;;
7668 no:yes:* )
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7681 (
7682 cat <<\_ASBOX
7683## ------------------------------------------ ##
7684## Report this to the AC_PACKAGE_NAME lists. ##
7685## ------------------------------------------ ##
7686_ASBOX
7687 ) |
7688 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7689 ;;
7690esac
b4e70030
JB
7691echo "$as_me:$LINENO: checking for $ac_header" >&5
7692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7693if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7694 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7695else
bec39cab 7696 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7697fi
b4e70030
JB
7698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
7700
7701fi
bec39cab
AC
7702if test `eval echo '${'$as_ac_Header'}'` = yes; then
7703 cat >>confdefs.h <<_ACEOF
7704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7705_ACEOF
9a156167 7706
bec39cab
AC
7707fi
7708
7709done
9a156167 7710
c890192f 7711
bec39cab
AC
7712for ac_header in stddef.h
7713do
7714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7715if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716 echo "$as_me:$LINENO: checking for $ac_header" >&5
7717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7718if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720fi
b4e70030
JB
7721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7723else
7724 # Is the header compilable?
b4e70030
JB
7725echo "$as_me:$LINENO: checking $ac_header usability" >&5
7726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7727cat >conftest.$ac_ext <<_ACEOF
7728/* confdefs.h. */
7729_ACEOF
7730cat confdefs.h >>conftest.$ac_ext
7731cat >>conftest.$ac_ext <<_ACEOF
7732/* end confdefs.h. */
7733$ac_includes_default
7734#include <$ac_header>
7735_ACEOF
7736rm -f conftest.$ac_objext
7737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7738 (eval $ac_compile) 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
b4e70030
JB
7745 { ac_try='test -z "$ac_c_werror_flag"
7746 || test ! -s conftest.err'
bec39cab
AC
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; } &&
7752 { ac_try='test -s conftest.$ac_objext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 (eval $ac_try) 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 ac_header_compiler=yes
7759else
7760 echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
b4e70030 7763ac_header_compiler=no
bec39cab
AC
7764fi
7765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7767echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7768
7769# Is the header present?
b4e70030
JB
7770echo "$as_me:$LINENO: checking $ac_header presence" >&5
7771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7772cat >conftest.$ac_ext <<_ACEOF
7773/* confdefs.h. */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h. */
7778#include <$ac_header>
7779_ACEOF
7780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } >/dev/null; then
7788 if test -s conftest.err; then
7789 ac_cpp_err=$ac_c_preproc_warn_flag
7790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7791 else
7792 ac_cpp_err=
7793 fi
c890192f 7794else
bec39cab
AC
7795 ac_cpp_err=yes
7796fi
7797if test -z "$ac_cpp_err"; then
7798 ac_header_preproc=yes
c890192f 7799else
bec39cab
AC
7800 echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 ac_header_preproc=no
c890192f 7804fi
bec39cab 7805rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7807echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7808
7809# So? What about this header?
7810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7811 yes:no: )
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7815echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7816 ac_header_preproc=yes
7817 ;;
7818 no:yes:* )
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7822echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7824echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7826echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7830echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7831 (
7832 cat <<\_ASBOX
7833## ------------------------------------------ ##
7834## Report this to the AC_PACKAGE_NAME lists. ##
7835## ------------------------------------------ ##
7836_ASBOX
7837 ) |
7838 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7839 ;;
7840esac
b4e70030
JB
7841echo "$as_me:$LINENO: checking for $ac_header" >&5
7842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7843if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7844 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 7845else
bec39cab 7846 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 7847fi
b4e70030
JB
7848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7850
c890192f 7851fi
bec39cab
AC
7852if test `eval echo '${'$as_ac_Header'}'` = yes; then
7853 cat >>confdefs.h <<_ACEOF
7854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7855_ACEOF
c890192f 7856
c890192f
MK
7857fi
7858
bec39cab 7859done
9a156167 7860
bec39cab
AC
7861
7862for ac_header in stdlib.h
7863do
7864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7865if eval "test \"\${$as_ac_Header+set}\" = set"; then
7866 echo "$as_me:$LINENO: checking for $ac_header" >&5
7867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7868if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870fi
b4e70030
JB
7871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7873else
7874 # Is the header compilable?
b4e70030
JB
7875echo "$as_me:$LINENO: checking $ac_header usability" >&5
7876echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7877cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h. */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h. */
7883$ac_includes_default
7884#include <$ac_header>
7885_ACEOF
7886rm -f conftest.$ac_objext
7887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>conftest.er1
7889 ac_status=$?
7890 grep -v '^ *+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
b4e70030
JB
7895 { ac_try='test -z "$ac_c_werror_flag"
7896 || test ! -s conftest.err'
bec39cab
AC
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_header_compiler=yes
7909else
7910 echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
7912
b4e70030 7913ac_header_compiler=no
bec39cab
AC
7914fi
7915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7917echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7918
7919# Is the header present?
b4e70030
JB
7920echo "$as_me:$LINENO: checking $ac_header presence" >&5
7921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7922cat >conftest.$ac_ext <<_ACEOF
7923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
7928#include <$ac_header>
7929_ACEOF
7930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7932 ac_status=$?
7933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } >/dev/null; then
7938 if test -s conftest.err; then
7939 ac_cpp_err=$ac_c_preproc_warn_flag
7940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7941 else
7942 ac_cpp_err=
7943 fi
9a156167 7944else
bec39cab
AC
7945 ac_cpp_err=yes
7946fi
7947if test -z "$ac_cpp_err"; then
7948 ac_header_preproc=yes
9a156167 7949else
bec39cab
AC
7950 echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 ac_header_preproc=no
9a156167 7954fi
bec39cab 7955rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7957echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7958
7959# So? What about this header?
7960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7961 yes:no: )
7962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7965echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7966 ac_header_preproc=yes
7967 ;;
7968 no:yes:* )
7969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7970echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7972echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7974echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7976echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7980echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7981 (
7982 cat <<\_ASBOX
7983## ------------------------------------------ ##
7984## Report this to the AC_PACKAGE_NAME lists. ##
7985## ------------------------------------------ ##
7986_ASBOX
7987 ) |
7988 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7989 ;;
7990esac
b4e70030
JB
7991echo "$as_me:$LINENO: checking for $ac_header" >&5
7992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7993if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7994 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7995else
bec39cab 7996 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7997fi
b4e70030
JB
7998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8000
9a156167 8001fi
bec39cab
AC
8002if test `eval echo '${'$as_ac_Header'}'` = yes; then
8003 cat >>confdefs.h <<_ACEOF
8004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8005_ACEOF
9a156167 8006
9a156167
MK
8007fi
8008
bec39cab
AC
8009done
8010
06825bd1 8011
bec39cab
AC
8012for ac_header in stdint.h
8013do
8014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8015if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016 echo "$as_me:$LINENO: checking for $ac_header" >&5
8017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8018if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020fi
b4e70030
JB
8021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8023else
8024 # Is the header compilable?
b4e70030
JB
8025echo "$as_me:$LINENO: checking $ac_header usability" >&5
8026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8027cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
8033$ac_includes_default
8034#include <$ac_header>
8035_ACEOF
8036rm -f conftest.$ac_objext
8037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8038 (eval $ac_compile) 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
b4e70030
JB
8045 { ac_try='test -z "$ac_c_werror_flag"
8046 || test ! -s conftest.err'
bec39cab
AC
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 ac_header_compiler=yes
8059else
8060 echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
b4e70030 8063ac_header_compiler=no
bec39cab
AC
8064fi
8065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8066echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8067echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8068
8069# Is the header present?
b4e70030
JB
8070echo "$as_me:$LINENO: checking $ac_header presence" >&5
8071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8072cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
8078#include <$ac_header>
8079_ACEOF
8080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } >/dev/null; then
8088 if test -s conftest.err; then
8089 ac_cpp_err=$ac_c_preproc_warn_flag
8090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8091 else
8092 ac_cpp_err=
8093 fi
06825bd1 8094else
bec39cab
AC
8095 ac_cpp_err=yes
8096fi
8097if test -z "$ac_cpp_err"; then
8098 ac_header_preproc=yes
06825bd1 8099else
bec39cab
AC
8100 echo "$as_me: failed program was:" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 ac_header_preproc=no
06825bd1 8104fi
bec39cab 8105rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8106echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8108
8109# So? What about this header?
8110case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8111 yes:no: )
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8115echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8116 ac_header_preproc=yes
8117 ;;
8118 no:yes:* )
8119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8120echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8122echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8124echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8126echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8128echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8130echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8131 (
8132 cat <<\_ASBOX
8133## ------------------------------------------ ##
8134## Report this to the AC_PACKAGE_NAME lists. ##
8135## ------------------------------------------ ##
8136_ASBOX
8137 ) |
8138 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8139 ;;
8140esac
b4e70030
JB
8141echo "$as_me:$LINENO: checking for $ac_header" >&5
8142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8143if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8144 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8145else
bec39cab 8146 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8147fi
b4e70030
JB
8148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8150
06825bd1 8151fi
bec39cab
AC
8152if test `eval echo '${'$as_ac_Header'}'` = yes; then
8153 cat >>confdefs.h <<_ACEOF
8154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8155_ACEOF
06825bd1 8156
06825bd1 8157fi
4f0be353 8158
bec39cab 8159done
4f0be353 8160
06825bd1 8161
06825bd1 8162
bec39cab
AC
8163
8164for ac_header in string.h memory.h strings.h
8165do
8166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8167if eval "test \"\${$as_ac_Header+set}\" = set"; then
8168 echo "$as_me:$LINENO: checking for $ac_header" >&5
8169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8170if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172fi
b4e70030
JB
8173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8175else
8176 # Is the header compilable?
b4e70030
JB
8177echo "$as_me:$LINENO: checking $ac_header usability" >&5
8178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8179cat >conftest.$ac_ext <<_ACEOF
8180/* confdefs.h. */
8181_ACEOF
8182cat confdefs.h >>conftest.$ac_ext
8183cat >>conftest.$ac_ext <<_ACEOF
8184/* end confdefs.h. */
8185$ac_includes_default
8186#include <$ac_header>
8187_ACEOF
8188rm -f conftest.$ac_objext
8189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
b4e70030
JB
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
bec39cab
AC
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_header_compiler=yes
8211else
8212 echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
b4e70030 8215ac_header_compiler=no
bec39cab
AC
8216fi
8217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8219echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8220
8221# Is the header present?
b4e70030
JB
8222echo "$as_me:$LINENO: checking $ac_header presence" >&5
8223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8224cat >conftest.$ac_ext <<_ACEOF
8225/* confdefs.h. */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h. */
8230#include <$ac_header>
8231_ACEOF
8232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } >/dev/null; then
8240 if test -s conftest.err; then
8241 ac_cpp_err=$ac_c_preproc_warn_flag
8242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8243 else
8244 ac_cpp_err=
8245 fi
06825bd1 8246else
bec39cab
AC
8247 ac_cpp_err=yes
8248fi
8249if test -z "$ac_cpp_err"; then
8250 ac_header_preproc=yes
06825bd1 8251else
bec39cab
AC
8252 echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_header_preproc=no
06825bd1 8256fi
bec39cab 8257rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8259echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8260
8261# So? What about this header?
8262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8263 yes:no: )
8264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8268 ac_header_preproc=yes
8269 ;;
8270 no:yes:* )
8271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8283 (
8284 cat <<\_ASBOX
8285## ------------------------------------------ ##
8286## Report this to the AC_PACKAGE_NAME lists. ##
8287## ------------------------------------------ ##
8288_ASBOX
8289 ) |
8290 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8291 ;;
8292esac
b4e70030
JB
8293echo "$as_me:$LINENO: checking for $ac_header" >&5
8294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8295if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8299fi
b4e70030
JB
8300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8302
06825bd1 8303fi
bec39cab
AC
8304if test `eval echo '${'$as_ac_Header'}'` = yes; then
8305 cat >>confdefs.h <<_ACEOF
8306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8307_ACEOF
06825bd1 8308
06825bd1
MK
8309fi
8310
bec39cab 8311done
5ee754fc 8312
bec39cab
AC
8313
8314for ac_header in sys/fault.h
5ee754fc 8315do
bec39cab 8316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8317if eval "test \"\${$as_ac_Header+set}\" = set"; then
8318 echo "$as_me:$LINENO: checking for $ac_header" >&5
8319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322fi
b4e70030
JB
8323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8325else
8326 # Is the header compilable?
b4e70030
JB
8327echo "$as_me:$LINENO: checking $ac_header usability" >&5
8328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8329cat >conftest.$ac_ext <<_ACEOF
8330/* confdefs.h. */
8331_ACEOF
8332cat confdefs.h >>conftest.$ac_ext
8333cat >>conftest.$ac_ext <<_ACEOF
8334/* end confdefs.h. */
8335$ac_includes_default
8336#include <$ac_header>
8337_ACEOF
8338rm -f conftest.$ac_objext
8339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
b4e70030
JB
8347 { ac_try='test -z "$ac_c_werror_flag"
8348 || test ! -s conftest.err'
bec39cab
AC
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_header_compiler=yes
8361else
8362 echo "$as_me: failed program was:" >&5
8363sed 's/^/| /' conftest.$ac_ext >&5
8364
b4e70030 8365ac_header_compiler=no
bec39cab
AC
8366fi
8367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8369echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8370
8371# Is the header present?
b4e70030
JB
8372echo "$as_me:$LINENO: checking $ac_header presence" >&5
8373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8374cat >conftest.$ac_ext <<_ACEOF
8375/* confdefs.h. */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h. */
8380#include <$ac_header>
8381_ACEOF
8382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } >/dev/null; then
8390 if test -s conftest.err; then
8391 ac_cpp_err=$ac_c_preproc_warn_flag
8392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8393 else
8394 ac_cpp_err=
8395 fi
5ee754fc 8396else
bec39cab 8397 ac_cpp_err=yes
5ee754fc 8398fi
bec39cab
AC
8399if test -z "$ac_cpp_err"; then
8400 ac_header_preproc=yes
8401else
8402 echo "$as_me: failed program was:" >&5
8403sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8404
bec39cab 8405 ac_header_preproc=no
5ee754fc 8406fi
bec39cab 8407rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8409echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8410
8411# So? What about this header?
8412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8413 yes:no: )
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8418 ac_header_preproc=yes
8419 ;;
8420 no:yes:* )
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8433 (
8434 cat <<\_ASBOX
8435## ------------------------------------------ ##
8436## Report this to the AC_PACKAGE_NAME lists. ##
8437## ------------------------------------------ ##
8438_ASBOX
8439 ) |
8440 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8441 ;;
8442esac
b4e70030
JB
8443echo "$as_me:$LINENO: checking for $ac_header" >&5
8444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8445if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8446 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8447else
bec39cab 8448 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8449fi
b4e70030
JB
8450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8452
5ee754fc 8453fi
bec39cab
AC
8454if test `eval echo '${'$as_ac_Header'}'` = yes; then
8455 cat >>confdefs.h <<_ACEOF
8456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8457_ACEOF
c906108c 8458
5ee754fc 8459fi
bec39cab
AC
8460
8461done
8462
8463
8464for ac_header in sys/file.h
8465do
8466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8467if eval "test \"\${$as_ac_Header+set}\" = set"; then
8468 echo "$as_me:$LINENO: checking for $ac_header" >&5
8469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8470if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472fi
b4e70030
JB
8473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8475else
8476 # Is the header compilable?
b4e70030
JB
8477echo "$as_me:$LINENO: checking $ac_header usability" >&5
8478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8479cat >conftest.$ac_ext <<_ACEOF
8480/* confdefs.h. */
8481_ACEOF
8482cat confdefs.h >>conftest.$ac_ext
8483cat >>conftest.$ac_ext <<_ACEOF
8484/* end confdefs.h. */
8485$ac_includes_default
8486#include <$ac_header>
8487_ACEOF
8488rm -f conftest.$ac_objext
8489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
b4e70030
JB
8497 { ac_try='test -z "$ac_c_werror_flag"
8498 || test ! -s conftest.err'
bec39cab
AC
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_header_compiler=yes
8511else
8512 echo "$as_me: failed program was:" >&5
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
b4e70030 8515ac_header_compiler=no
bec39cab
AC
8516fi
8517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8519echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8520
8521# Is the header present?
b4e70030
JB
8522echo "$as_me:$LINENO: checking $ac_header presence" >&5
8523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8524cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h. */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h. */
8530#include <$ac_header>
8531_ACEOF
8532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } >/dev/null; then
8540 if test -s conftest.err; then
8541 ac_cpp_err=$ac_c_preproc_warn_flag
8542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8543 else
8544 ac_cpp_err=
8545 fi
5ee754fc 8546else
bec39cab 8547 ac_cpp_err=yes
5ee754fc 8548fi
bec39cab
AC
8549if test -z "$ac_cpp_err"; then
8550 ac_header_preproc=yes
8551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8554
bec39cab 8555 ac_header_preproc=no
5ee754fc 8556fi
bec39cab 8557rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8559echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8560
bec39cab
AC
8561# So? What about this header?
8562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8563 yes:no: )
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8568 ac_header_preproc=yes
8569 ;;
8570 no:yes:* )
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8583 (
8584 cat <<\_ASBOX
8585## ------------------------------------------ ##
8586## Report this to the AC_PACKAGE_NAME lists. ##
8587## ------------------------------------------ ##
8588_ASBOX
8589 ) |
8590 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8591 ;;
8592esac
b4e70030
JB
8593echo "$as_me:$LINENO: checking for $ac_header" >&5
8594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8595if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8596 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8597else
bec39cab
AC
8598 eval "$as_ac_Header=\$ac_header_preproc"
8599fi
b4e70030
JB
8600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8602
bec39cab
AC
8603fi
8604if test `eval echo '${'$as_ac_Header'}'` = yes; then
8605 cat >>confdefs.h <<_ACEOF
8606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8607_ACEOF
5ee754fc 8608
bec39cab 8609fi
5ee754fc 8610
bec39cab 8611done
5ee754fc 8612
5ee754fc 8613
bec39cab
AC
8614for ac_header in sys/filio.h
8615do
8616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8617if eval "test \"\${$as_ac_Header+set}\" = set"; then
8618 echo "$as_me:$LINENO: checking for $ac_header" >&5
8619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8620if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622fi
b4e70030
JB
8623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8625else
8626 # Is the header compilable?
b4e70030
JB
8627echo "$as_me:$LINENO: checking $ac_header usability" >&5
8628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8629cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635$ac_includes_default
8636#include <$ac_header>
8637_ACEOF
8638rm -f conftest.$ac_objext
8639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
b4e70030
JB
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
bec39cab
AC
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest.$ac_objext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_header_compiler=yes
8661else
8662 echo "$as_me: failed program was:" >&5
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
b4e70030 8665ac_header_compiler=no
bec39cab
AC
8666fi
8667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8669echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8670
8671# Is the header present?
b4e70030
JB
8672echo "$as_me:$LINENO: checking $ac_header presence" >&5
8673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8674cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
8680#include <$ac_header>
8681_ACEOF
8682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } >/dev/null; then
8690 if test -s conftest.err; then
8691 ac_cpp_err=$ac_c_preproc_warn_flag
8692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8693 else
8694 ac_cpp_err=
8695 fi
5ee754fc 8696else
bec39cab 8697 ac_cpp_err=yes
5ee754fc 8698fi
bec39cab
AC
8699if test -z "$ac_cpp_err"; then
8700 ac_header_preproc=yes
8701else
8702 echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8704
bec39cab 8705 ac_header_preproc=no
5ee754fc 8706fi
bec39cab 8707rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8709echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8710
bec39cab
AC
8711# So? What about this header?
8712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8713 yes:no: )
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8718 ac_header_preproc=yes
8719 ;;
8720 no:yes:* )
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8724echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8728echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8733 (
8734 cat <<\_ASBOX
8735## ------------------------------------------ ##
8736## Report this to the AC_PACKAGE_NAME lists. ##
8737## ------------------------------------------ ##
8738_ASBOX
8739 ) |
8740 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8741 ;;
8742esac
b4e70030
JB
8743echo "$as_me:$LINENO: checking for $ac_header" >&5
8744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8745if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8746 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8747else
bec39cab 8748 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8749fi
b4e70030
JB
8750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8752
5ee754fc 8753fi
bec39cab
AC
8754if test `eval echo '${'$as_ac_Header'}'` = yes; then
8755 cat >>confdefs.h <<_ACEOF
8756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8757_ACEOF
5ee754fc
MK
8758
8759fi
8760
bec39cab
AC
8761done
8762
8763
8764for ac_header in sys/ioctl.h
8765do
8766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8767if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768 echo "$as_me:$LINENO: checking for $ac_header" >&5
8769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8770if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772fi
b4e70030
JB
8773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8775else
8776 # Is the header compilable?
b4e70030
JB
8777echo "$as_me:$LINENO: checking $ac_header usability" >&5
8778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8779cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
8785$ac_includes_default
8786#include <$ac_header>
8787_ACEOF
8788rm -f conftest.$ac_objext
8789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
b4e70030
JB
8797 { ac_try='test -z "$ac_c_werror_flag"
8798 || test ! -s conftest.err'
bec39cab
AC
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; } &&
8804 { ac_try='test -s conftest.$ac_objext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 (eval $ac_try) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8810 ac_header_compiler=yes
8811else
8812 echo "$as_me: failed program was:" >&5
8813sed 's/^/| /' conftest.$ac_ext >&5
8814
b4e70030 8815ac_header_compiler=no
bec39cab
AC
8816fi
8817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8819echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8820
8821# Is the header present?
b4e70030
JB
8822echo "$as_me:$LINENO: checking $ac_header presence" >&5
8823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8824cat >conftest.$ac_ext <<_ACEOF
8825/* confdefs.h. */
8826_ACEOF
8827cat confdefs.h >>conftest.$ac_ext
8828cat >>conftest.$ac_ext <<_ACEOF
8829/* end confdefs.h. */
8830#include <$ac_header>
8831_ACEOF
8832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } >/dev/null; then
8840 if test -s conftest.err; then
8841 ac_cpp_err=$ac_c_preproc_warn_flag
8842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8843 else
8844 ac_cpp_err=
8845 fi
5ee754fc 8846else
bec39cab 8847 ac_cpp_err=yes
5ee754fc 8848fi
bec39cab
AC
8849if test -z "$ac_cpp_err"; then
8850 ac_header_preproc=yes
8851else
8852 echo "$as_me: failed program was:" >&5
8853sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8854
bec39cab 8855 ac_header_preproc=no
5ee754fc 8856fi
bec39cab 8857rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8859echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8860
bec39cab
AC
8861# So? What about this header?
8862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8863 yes:no: )
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8868 ac_header_preproc=yes
8869 ;;
8870 no:yes:* )
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8883 (
8884 cat <<\_ASBOX
8885## ------------------------------------------ ##
8886## Report this to the AC_PACKAGE_NAME lists. ##
8887## ------------------------------------------ ##
8888_ASBOX
8889 ) |
8890 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8891 ;;
8892esac
b4e70030
JB
8893echo "$as_me:$LINENO: checking for $ac_header" >&5
8894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8895if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8896 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8897else
bec39cab 8898 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8899fi
b4e70030
JB
8900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
8902
8903fi
bec39cab
AC
8904if test `eval echo '${'$as_ac_Header'}'` = yes; then
8905 cat >>confdefs.h <<_ACEOF
8906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8907_ACEOF
8908
5ee754fc
MK
8909fi
8910
bec39cab 8911done
5ee754fc 8912
5ee754fc 8913
bec39cab 8914for ac_header in sys/param.h
5ee754fc 8915do
bec39cab 8916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8917if eval "test \"\${$as_ac_Header+set}\" = set"; then
8918 echo "$as_me:$LINENO: checking for $ac_header" >&5
8919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8920if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922fi
b4e70030
JB
8923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8925else
8926 # Is the header compilable?
b4e70030
JB
8927echo "$as_me:$LINENO: checking $ac_header usability" >&5
8928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8929cat >conftest.$ac_ext <<_ACEOF
8930/* confdefs.h. */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h. */
8935$ac_includes_default
8936#include <$ac_header>
8937_ACEOF
8938rm -f conftest.$ac_objext
8939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940 (eval $ac_compile) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
b4e70030
JB
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
bec39cab
AC
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest.$ac_objext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_header_compiler=yes
8961else
8962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
b4e70030 8965ac_header_compiler=no
bec39cab
AC
8966fi
8967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8969echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8970
8971# Is the header present?
b4e70030
JB
8972echo "$as_me:$LINENO: checking $ac_header presence" >&5
8973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8974cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980#include <$ac_header>
8981_ACEOF
8982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } >/dev/null; then
8990 if test -s conftest.err; then
8991 ac_cpp_err=$ac_c_preproc_warn_flag
8992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8993 else
8994 ac_cpp_err=
8995 fi
5ee754fc 8996else
bec39cab 8997 ac_cpp_err=yes
5ee754fc 8998fi
bec39cab
AC
8999if test -z "$ac_cpp_err"; then
9000 ac_header_preproc=yes
9001else
9002 echo "$as_me: failed program was:" >&5
9003sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9004
bec39cab 9005 ac_header_preproc=no
5ee754fc 9006fi
bec39cab 9007rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9009echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9010
9011# So? What about this header?
9012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9013 yes:no: )
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9018 ac_header_preproc=yes
9019 ;;
9020 no:yes:* )
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9033 (
9034 cat <<\_ASBOX
9035## ------------------------------------------ ##
9036## Report this to the AC_PACKAGE_NAME lists. ##
9037## ------------------------------------------ ##
9038_ASBOX
9039 ) |
9040 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9041 ;;
9042esac
b4e70030
JB
9043echo "$as_me:$LINENO: checking for $ac_header" >&5
9044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9046 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9047else
bec39cab 9048 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9049fi
b4e70030
JB
9050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9052
5ee754fc 9053fi
bec39cab
AC
9054if test `eval echo '${'$as_ac_Header'}'` = yes; then
9055 cat >>confdefs.h <<_ACEOF
9056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9057_ACEOF
9058
5ee754fc 9059fi
bec39cab 9060
5ee754fc
MK
9061done
9062
bec39cab
AC
9063
9064for ac_header in sys/proc.h
5ee754fc 9065do
bec39cab 9066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9067echo "$as_me:$LINENO: checking for $ac_header" >&5
9068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9069if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9070 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9071else
7cb9022a 9072 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9073/* confdefs.h. */
9074_ACEOF
9075cat confdefs.h >>conftest.$ac_ext
9076cat >>conftest.$ac_ext <<_ACEOF
9077/* end confdefs.h. */
7cb9022a
MK
9078#if HAVE_SYS_PARAM_H
9079# include <sys/param.h>
9080#endif
9081
9082
bec39cab
AC
9083#include <$ac_header>
9084_ACEOF
9085rm -f conftest.$ac_objext
9086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9087 (eval $ac_compile) 2>conftest.er1
9088 ac_status=$?
9089 grep -v '^ *+' conftest.er1 >conftest.err
9090 rm -f conftest.er1
9091 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } &&
b4e70030
JB
9094 { ac_try='test -z "$ac_c_werror_flag"
9095 || test ! -s conftest.err'
bec39cab
AC
9096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 (eval $ac_try) 2>&5
9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; } &&
9101 { ac_try='test -s conftest.$ac_objext'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 (eval $ac_try) 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; }; then
7cb9022a 9107 eval "$as_ac_Header=yes"
bec39cab
AC
9108else
9109 echo "$as_me: failed program was:" >&5
9110sed 's/^/| /' conftest.$ac_ext >&5
9111
b4e70030 9112eval "$as_ac_Header=no"
bec39cab
AC
9113fi
9114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9115fi
b4e70030
JB
9116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9118if test `eval echo '${'$as_ac_Header'}'` = yes; then
9119 cat >>confdefs.h <<_ACEOF
9120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9121_ACEOF
9122
5ee754fc 9123fi
bec39cab 9124
5ee754fc
MK
9125done
9126
bec39cab
AC
9127
9128for ac_header in sys/procfs.h
5ee754fc 9129do
bec39cab 9130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9131if eval "test \"\${$as_ac_Header+set}\" = set"; then
9132 echo "$as_me:$LINENO: checking for $ac_header" >&5
9133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9134if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136fi
b4e70030
JB
9137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9139else
9140 # Is the header compilable?
b4e70030
JB
9141echo "$as_me:$LINENO: checking $ac_header usability" >&5
9142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9143cat >conftest.$ac_ext <<_ACEOF
9144/* confdefs.h. */
9145_ACEOF
9146cat confdefs.h >>conftest.$ac_ext
9147cat >>conftest.$ac_ext <<_ACEOF
9148/* end confdefs.h. */
9149$ac_includes_default
9150#include <$ac_header>
9151_ACEOF
9152rm -f conftest.$ac_objext
9153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9154 (eval $ac_compile) 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
b4e70030
JB
9161 { ac_try='test -z "$ac_c_werror_flag"
9162 || test ! -s conftest.err'
bec39cab
AC
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 (eval $ac_try) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; } &&
9168 { ac_try='test -s conftest.$ac_objext'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 (eval $ac_try) 2>&5
9171 ac_status=$?
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 ac_header_compiler=yes
9175else
9176 echo "$as_me: failed program was:" >&5
9177sed 's/^/| /' conftest.$ac_ext >&5
9178
b4e70030 9179ac_header_compiler=no
bec39cab
AC
9180fi
9181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9183echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9184
9185# Is the header present?
b4e70030
JB
9186echo "$as_me:$LINENO: checking $ac_header presence" >&5
9187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9188cat >conftest.$ac_ext <<_ACEOF
9189/* confdefs.h. */
9190_ACEOF
9191cat confdefs.h >>conftest.$ac_ext
9192cat >>conftest.$ac_ext <<_ACEOF
9193/* end confdefs.h. */
9194#include <$ac_header>
9195_ACEOF
9196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9198 ac_status=$?
9199 grep -v '^ *+' conftest.er1 >conftest.err
9200 rm -f conftest.er1
9201 cat conftest.err >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } >/dev/null; then
9204 if test -s conftest.err; then
9205 ac_cpp_err=$ac_c_preproc_warn_flag
9206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9207 else
9208 ac_cpp_err=
9209 fi
9210else
9211 ac_cpp_err=yes
5ee754fc 9212fi
bec39cab
AC
9213if test -z "$ac_cpp_err"; then
9214 ac_header_preproc=yes
5ee754fc 9215else
bec39cab
AC
9216 echo "$as_me: failed program was:" >&5
9217sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_header_preproc=no
5ee754fc 9220fi
bec39cab 9221rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9223echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9224
bec39cab
AC
9225# So? What about this header?
9226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9227 yes:no: )
9228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9232 ac_header_preproc=yes
9233 ;;
9234 no:yes:* )
9235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9247 (
9248 cat <<\_ASBOX
9249## ------------------------------------------ ##
9250## Report this to the AC_PACKAGE_NAME lists. ##
9251## ------------------------------------------ ##
9252_ASBOX
9253 ) |
9254 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9255 ;;
9256esac
b4e70030
JB
9257echo "$as_me:$LINENO: checking for $ac_header" >&5
9258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9259if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9261else
9262 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9263fi
b4e70030
JB
9264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9266
5ee754fc 9267fi
bec39cab
AC
9268if test `eval echo '${'$as_ac_Header'}'` = yes; then
9269 cat >>confdefs.h <<_ACEOF
9270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9271_ACEOF
9272
5ee754fc 9273fi
bec39cab 9274
5ee754fc
MK
9275done
9276
bec39cab
AC
9277
9278
9279for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9280do
bec39cab 9281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9282if eval "test \"\${$as_ac_Header+set}\" = set"; then
9283 echo "$as_me:$LINENO: checking for $ac_header" >&5
9284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9285if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9287fi
b4e70030
JB
9288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9290else
9291 # Is the header compilable?
b4e70030
JB
9292echo "$as_me:$LINENO: checking $ac_header usability" >&5
9293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9294cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h. */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
9299/* end confdefs.h. */
9300$ac_includes_default
9301#include <$ac_header>
9302_ACEOF
9303rm -f conftest.$ac_objext
9304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9305 (eval $ac_compile) 2>conftest.er1
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
b4e70030
JB
9312 { ac_try='test -z "$ac_c_werror_flag"
9313 || test ! -s conftest.err'
bec39cab
AC
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; } &&
9319 { ac_try='test -s conftest.$ac_objext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_header_compiler=yes
9326else
9327 echo "$as_me: failed program was:" >&5
9328sed 's/^/| /' conftest.$ac_ext >&5
9329
b4e70030 9330ac_header_compiler=no
bec39cab
AC
9331fi
9332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9334echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9335
9336# Is the header present?
b4e70030
JB
9337echo "$as_me:$LINENO: checking $ac_header presence" >&5
9338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9339cat >conftest.$ac_ext <<_ACEOF
9340/* confdefs.h. */
9341_ACEOF
9342cat confdefs.h >>conftest.$ac_ext
9343cat >>conftest.$ac_ext <<_ACEOF
9344/* end confdefs.h. */
9345#include <$ac_header>
9346_ACEOF
9347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9349 ac_status=$?
9350 grep -v '^ *+' conftest.er1 >conftest.err
9351 rm -f conftest.er1
9352 cat conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } >/dev/null; then
9355 if test -s conftest.err; then
9356 ac_cpp_err=$ac_c_preproc_warn_flag
9357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9358 else
9359 ac_cpp_err=
9360 fi
9361else
9362 ac_cpp_err=yes
5ee754fc 9363fi
bec39cab
AC
9364if test -z "$ac_cpp_err"; then
9365 ac_header_preproc=yes
5ee754fc 9366else
bec39cab
AC
9367 echo "$as_me: failed program was:" >&5
9368sed 's/^/| /' conftest.$ac_ext >&5
9369
9370 ac_header_preproc=no
5ee754fc 9371fi
bec39cab 9372rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9374echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9375
bec39cab
AC
9376# So? What about this header?
9377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9378 yes:no: )
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9383 ac_header_preproc=yes
9384 ;;
9385 no:yes:* )
9386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9389echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9393echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9398 (
9399 cat <<\_ASBOX
9400## ------------------------------------------ ##
9401## Report this to the AC_PACKAGE_NAME lists. ##
9402## ------------------------------------------ ##
9403_ASBOX
9404 ) |
9405 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9406 ;;
9407esac
b4e70030
JB
9408echo "$as_me:$LINENO: checking for $ac_header" >&5
9409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9410if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9414fi
b4e70030
JB
9415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9417
5ee754fc 9418fi
bec39cab
AC
9419if test `eval echo '${'$as_ac_Header'}'` = yes; then
9420 cat >>confdefs.h <<_ACEOF
9421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9422_ACEOF
9423
5ee754fc 9424fi
bec39cab 9425
5ee754fc
MK
9426done
9427
bec39cab
AC
9428
9429
9430for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9431do
bec39cab 9432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9433if eval "test \"\${$as_ac_Header+set}\" = set"; then
9434 echo "$as_me:$LINENO: checking for $ac_header" >&5
9435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9436if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438fi
b4e70030
JB
9439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9441else
9442 # Is the header compilable?
b4e70030
JB
9443echo "$as_me:$LINENO: checking $ac_header usability" >&5
9444echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9445cat >conftest.$ac_ext <<_ACEOF
9446/* confdefs.h. */
9447_ACEOF
9448cat confdefs.h >>conftest.$ac_ext
9449cat >>conftest.$ac_ext <<_ACEOF
9450/* end confdefs.h. */
9451$ac_includes_default
9452#include <$ac_header>
9453_ACEOF
9454rm -f conftest.$ac_objext
9455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9456 (eval $ac_compile) 2>conftest.er1
9457 ac_status=$?
9458 grep -v '^ *+' conftest.er1 >conftest.err
9459 rm -f conftest.er1
9460 cat conftest.err >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
b4e70030
JB
9463 { ac_try='test -z "$ac_c_werror_flag"
9464 || test ! -s conftest.err'
bec39cab
AC
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; } &&
9470 { ac_try='test -s conftest.$ac_objext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_header_compiler=yes
9477else
9478 echo "$as_me: failed program was:" >&5
9479sed 's/^/| /' conftest.$ac_ext >&5
9480
b4e70030 9481ac_header_compiler=no
bec39cab
AC
9482fi
9483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9485echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9486
9487# Is the header present?
b4e70030
JB
9488echo "$as_me:$LINENO: checking $ac_header presence" >&5
9489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9490cat >conftest.$ac_ext <<_ACEOF
9491/* confdefs.h. */
9492_ACEOF
9493cat confdefs.h >>conftest.$ac_ext
9494cat >>conftest.$ac_ext <<_ACEOF
9495/* end confdefs.h. */
9496#include <$ac_header>
9497_ACEOF
9498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } >/dev/null; then
9506 if test -s conftest.err; then
9507 ac_cpp_err=$ac_c_preproc_warn_flag
9508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9509 else
9510 ac_cpp_err=
9511 fi
9512else
9513 ac_cpp_err=yes
5ee754fc 9514fi
bec39cab
AC
9515if test -z "$ac_cpp_err"; then
9516 ac_header_preproc=yes
5ee754fc 9517else
bec39cab
AC
9518 echo "$as_me: failed program was:" >&5
9519sed 's/^/| /' conftest.$ac_ext >&5
9520
9521 ac_header_preproc=no
5ee754fc 9522fi
bec39cab 9523rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9525echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9526
bec39cab
AC
9527# So? What about this header?
9528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9529 yes:no: )
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9534 ac_header_preproc=yes
9535 ;;
9536 no:yes:* )
9537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9544echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9549 (
9550 cat <<\_ASBOX
9551## ------------------------------------------ ##
9552## Report this to the AC_PACKAGE_NAME lists. ##
9553## ------------------------------------------ ##
9554_ASBOX
9555 ) |
9556 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9557 ;;
9558esac
b4e70030
JB
9559echo "$as_me:$LINENO: checking for $ac_header" >&5
9560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9561if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563else
9564 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9565fi
b4e70030
JB
9566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9568
5ee754fc 9569fi
bec39cab
AC
9570if test `eval echo '${'$as_ac_Header'}'` = yes; then
9571 cat >>confdefs.h <<_ACEOF
9572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9573_ACEOF
9574
5ee754fc 9575fi
bec39cab 9576
5ee754fc
MK
9577done
9578
bec39cab
AC
9579
9580for ac_header in sys/select.h
5ee754fc 9581do
bec39cab 9582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9583if eval "test \"\${$as_ac_Header+set}\" = set"; then
9584 echo "$as_me:$LINENO: checking for $ac_header" >&5
9585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9586if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588fi
b4e70030
JB
9589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9591else
9592 # Is the header compilable?
b4e70030
JB
9593echo "$as_me:$LINENO: checking $ac_header usability" >&5
9594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
9601$ac_includes_default
9602#include <$ac_header>
9603_ACEOF
9604rm -f conftest.$ac_objext
9605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>conftest.er1
9607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
b4e70030
JB
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
bec39cab
AC
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_header_compiler=yes
9627else
9628 echo "$as_me: failed program was:" >&5
9629sed 's/^/| /' conftest.$ac_ext >&5
9630
b4e70030 9631ac_header_compiler=no
bec39cab
AC
9632fi
9633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9635echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9636
9637# Is the header present?
b4e70030
JB
9638echo "$as_me:$LINENO: checking $ac_header presence" >&5
9639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9640cat >conftest.$ac_ext <<_ACEOF
9641/* confdefs.h. */
9642_ACEOF
9643cat confdefs.h >>conftest.$ac_ext
9644cat >>conftest.$ac_ext <<_ACEOF
9645/* end confdefs.h. */
9646#include <$ac_header>
9647_ACEOF
9648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } >/dev/null; then
9656 if test -s conftest.err; then
9657 ac_cpp_err=$ac_c_preproc_warn_flag
9658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9659 else
9660 ac_cpp_err=
9661 fi
9662else
9663 ac_cpp_err=yes
5ee754fc 9664fi
bec39cab
AC
9665if test -z "$ac_cpp_err"; then
9666 ac_header_preproc=yes
5ee754fc 9667else
bec39cab
AC
9668 echo "$as_me: failed program was:" >&5
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 ac_header_preproc=no
5ee754fc 9672fi
bec39cab 9673rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9675echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9676
bec39cab
AC
9677# So? What about this header?
9678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9679 yes:no: )
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9684 ac_header_preproc=yes
9685 ;;
9686 no:yes:* )
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9694echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9699 (
9700 cat <<\_ASBOX
9701## ------------------------------------------ ##
9702## Report this to the AC_PACKAGE_NAME lists. ##
9703## ------------------------------------------ ##
9704_ASBOX
9705 ) |
9706 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9707 ;;
9708esac
b4e70030
JB
9709echo "$as_me:$LINENO: checking for $ac_header" >&5
9710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9711if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713else
9714 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9715fi
b4e70030
JB
9716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9718
5ee754fc 9719fi
bec39cab
AC
9720if test `eval echo '${'$as_ac_Header'}'` = yes; then
9721 cat >>confdefs.h <<_ACEOF
9722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9723_ACEOF
9724
5ee754fc 9725fi
bec39cab 9726
5ee754fc
MK
9727done
9728
bec39cab
AC
9729
9730for ac_header in sys/syscall.h
5ee754fc 9731do
bec39cab 9732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9733if eval "test \"\${$as_ac_Header+set}\" = set"; then
9734 echo "$as_me:$LINENO: checking for $ac_header" >&5
9735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9736if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738fi
b4e70030
JB
9739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9741else
9742 # Is the header compilable?
b4e70030
JB
9743echo "$as_me:$LINENO: checking $ac_header usability" >&5
9744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9745cat >conftest.$ac_ext <<_ACEOF
9746/* confdefs.h. */
9747_ACEOF
9748cat confdefs.h >>conftest.$ac_ext
9749cat >>conftest.$ac_ext <<_ACEOF
9750/* end confdefs.h. */
9751$ac_includes_default
9752#include <$ac_header>
9753_ACEOF
9754rm -f conftest.$ac_objext
9755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
b4e70030
JB
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
bec39cab
AC
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_header_compiler=yes
9777else
9778 echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
b4e70030 9781ac_header_compiler=no
bec39cab
AC
9782fi
9783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9785echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9786
9787# Is the header present?
b4e70030
JB
9788echo "$as_me:$LINENO: checking $ac_header presence" >&5
9789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9790cat >conftest.$ac_ext <<_ACEOF
9791/* confdefs.h. */
9792_ACEOF
9793cat confdefs.h >>conftest.$ac_ext
9794cat >>conftest.$ac_ext <<_ACEOF
9795/* end confdefs.h. */
9796#include <$ac_header>
9797_ACEOF
9798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } >/dev/null; then
9806 if test -s conftest.err; then
9807 ac_cpp_err=$ac_c_preproc_warn_flag
9808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9809 else
9810 ac_cpp_err=
9811 fi
9812else
9813 ac_cpp_err=yes
5ee754fc 9814fi
bec39cab
AC
9815if test -z "$ac_cpp_err"; then
9816 ac_header_preproc=yes
5ee754fc 9817else
bec39cab
AC
9818 echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_header_preproc=no
5ee754fc 9822fi
bec39cab 9823rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9825echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9826
bec39cab
AC
9827# So? What about this header?
9828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9829 yes:no: )
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9834 ac_header_preproc=yes
9835 ;;
9836 no:yes:* )
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9844echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9849 (
9850 cat <<\_ASBOX
9851## ------------------------------------------ ##
9852## Report this to the AC_PACKAGE_NAME lists. ##
9853## ------------------------------------------ ##
9854_ASBOX
9855 ) |
9856 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9857 ;;
9858esac
b4e70030
JB
9859echo "$as_me:$LINENO: checking for $ac_header" >&5
9860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9861if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9865fi
b4e70030
JB
9866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9868
5ee754fc 9869fi
bec39cab
AC
9870if test `eval echo '${'$as_ac_Header'}'` = yes; then
9871 cat >>confdefs.h <<_ACEOF
9872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9873_ACEOF
9874
5ee754fc 9875fi
bec39cab 9876
5ee754fc
MK
9877done
9878
bec39cab
AC
9879
9880for ac_header in sys/types.h
5ee754fc 9881do
bec39cab 9882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9883if eval "test \"\${$as_ac_Header+set}\" = set"; then
9884 echo "$as_me:$LINENO: checking for $ac_header" >&5
9885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9886if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888fi
b4e70030
JB
9889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9891else
9892 # Is the header compilable?
b4e70030
JB
9893echo "$as_me:$LINENO: checking $ac_header usability" >&5
9894echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9895cat >conftest.$ac_ext <<_ACEOF
9896/* confdefs.h. */
9897_ACEOF
9898cat confdefs.h >>conftest.$ac_ext
9899cat >>conftest.$ac_ext <<_ACEOF
9900/* end confdefs.h. */
9901$ac_includes_default
9902#include <$ac_header>
9903_ACEOF
9904rm -f conftest.$ac_objext
9905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906 (eval $ac_compile) 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
b4e70030
JB
9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
bec39cab
AC
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest.$ac_objext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_header_compiler=yes
9927else
9928 echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
b4e70030 9931ac_header_compiler=no
bec39cab
AC
9932fi
9933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9934echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9935echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9936
9937# Is the header present?
b4e70030
JB
9938echo "$as_me:$LINENO: checking $ac_header presence" >&5
9939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9940cat >conftest.$ac_ext <<_ACEOF
9941/* confdefs.h. */
9942_ACEOF
9943cat confdefs.h >>conftest.$ac_ext
9944cat >>conftest.$ac_ext <<_ACEOF
9945/* end confdefs.h. */
9946#include <$ac_header>
9947_ACEOF
9948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } >/dev/null; then
9956 if test -s conftest.err; then
9957 ac_cpp_err=$ac_c_preproc_warn_flag
9958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9959 else
9960 ac_cpp_err=
9961 fi
9962else
9963 ac_cpp_err=yes
5ee754fc 9964fi
bec39cab
AC
9965if test -z "$ac_cpp_err"; then
9966 ac_header_preproc=yes
5ee754fc 9967else
bec39cab
AC
9968 echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971 ac_header_preproc=no
5ee754fc 9972fi
bec39cab 9973rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9975echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9976
bec39cab
AC
9977# So? What about this header?
9978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9979 yes:no: )
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9984 ac_header_preproc=yes
9985 ;;
9986 no:yes:* )
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9999 (
10000 cat <<\_ASBOX
10001## ------------------------------------------ ##
10002## Report this to the AC_PACKAGE_NAME lists. ##
10003## ------------------------------------------ ##
10004_ASBOX
10005 ) |
10006 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10007 ;;
10008esac
b4e70030
JB
10009echo "$as_me:$LINENO: checking for $ac_header" >&5
10010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10011if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013else
10014 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10015fi
b4e70030
JB
10016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10018
5ee754fc 10019fi
bec39cab
AC
10020if test `eval echo '${'$as_ac_Header'}'` = yes; then
10021 cat >>confdefs.h <<_ACEOF
10022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10023_ACEOF
10024
5ee754fc 10025fi
bec39cab 10026
5ee754fc
MK
10027done
10028
bec39cab
AC
10029
10030for ac_header in sys/user.h
5ee754fc 10031do
bec39cab 10032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10033echo "$as_me:$LINENO: checking for $ac_header" >&5
10034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10035if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10036 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10037else
7cb9022a 10038 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10039/* confdefs.h. */
10040_ACEOF
10041cat confdefs.h >>conftest.$ac_ext
10042cat >>conftest.$ac_ext <<_ACEOF
10043/* end confdefs.h. */
7cb9022a
MK
10044#if HAVE_SYS_PARAM_H
10045# include <sys/param.h>
10046#endif
10047
10048
bec39cab
AC
10049#include <$ac_header>
10050_ACEOF
10051rm -f conftest.$ac_objext
10052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10053 (eval $ac_compile) 2>conftest.er1
10054 ac_status=$?
10055 grep -v '^ *+' conftest.er1 >conftest.err
10056 rm -f conftest.er1
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
b4e70030
JB
10060 { ac_try='test -z "$ac_c_werror_flag"
10061 || test ! -s conftest.err'
bec39cab
AC
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest.$ac_objext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
7cb9022a 10073 eval "$as_ac_Header=yes"
bec39cab
AC
10074else
10075 echo "$as_me: failed program was:" >&5
10076sed 's/^/| /' conftest.$ac_ext >&5
10077
b4e70030 10078eval "$as_ac_Header=no"
bec39cab
AC
10079fi
10080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10081fi
b4e70030
JB
10082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10084if test `eval echo '${'$as_ac_Header'}'` = yes; then
10085 cat >>confdefs.h <<_ACEOF
10086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10087_ACEOF
10088
5ee754fc 10089fi
bec39cab 10090
5ee754fc
MK
10091done
10092
bec39cab
AC
10093
10094
10095for ac_header in sys/wait.h wait.h
5ee754fc 10096do
bec39cab 10097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10098if eval "test \"\${$as_ac_Header+set}\" = set"; then
10099 echo "$as_me:$LINENO: checking for $ac_header" >&5
10100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10101if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103fi
b4e70030
JB
10104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10106else
10107 # Is the header compilable?
b4e70030
JB
10108echo "$as_me:$LINENO: checking $ac_header usability" >&5
10109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10110cat >conftest.$ac_ext <<_ACEOF
10111/* confdefs.h. */
10112_ACEOF
10113cat confdefs.h >>conftest.$ac_ext
10114cat >>conftest.$ac_ext <<_ACEOF
10115/* end confdefs.h. */
10116$ac_includes_default
10117#include <$ac_header>
10118_ACEOF
10119rm -f conftest.$ac_objext
10120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10121 (eval $ac_compile) 2>conftest.er1
10122 ac_status=$?
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
b4e70030
JB
10128 { ac_try='test -z "$ac_c_werror_flag"
10129 || test ! -s conftest.err'
bec39cab
AC
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest.$ac_objext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_header_compiler=yes
10142else
10143 echo "$as_me: failed program was:" >&5
10144sed 's/^/| /' conftest.$ac_ext >&5
10145
b4e70030 10146ac_header_compiler=no
bec39cab
AC
10147fi
10148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10150echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10151
10152# Is the header present?
b4e70030
JB
10153echo "$as_me:$LINENO: checking $ac_header presence" >&5
10154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10155cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161#include <$ac_header>
10162_ACEOF
10163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } >/dev/null; then
10171 if test -s conftest.err; then
10172 ac_cpp_err=$ac_c_preproc_warn_flag
10173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10174 else
10175 ac_cpp_err=
10176 fi
10177else
10178 ac_cpp_err=yes
5ee754fc 10179fi
bec39cab
AC
10180if test -z "$ac_cpp_err"; then
10181 ac_header_preproc=yes
5ee754fc 10182else
bec39cab
AC
10183 echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 ac_header_preproc=no
5ee754fc 10187fi
bec39cab 10188rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10190echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10191
bec39cab
AC
10192# So? What about this header?
10193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10194 yes:no: )
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10199 ac_header_preproc=yes
10200 ;;
10201 no:yes:* )
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10214 (
10215 cat <<\_ASBOX
10216## ------------------------------------------ ##
10217## Report this to the AC_PACKAGE_NAME lists. ##
10218## ------------------------------------------ ##
10219_ASBOX
10220 ) |
10221 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10222 ;;
10223esac
b4e70030
JB
10224echo "$as_me:$LINENO: checking for $ac_header" >&5
10225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10226if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228else
10229 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10230fi
b4e70030
JB
10231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10233
9608ab8b 10234fi
bec39cab
AC
10235if test `eval echo '${'$as_ac_Header'}'` = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10238_ACEOF
10239
9608ab8b 10240fi
bec39cab 10241
9608ab8b 10242done
5ee754fc 10243
bec39cab
AC
10244
10245
10246
10247for ac_header in termios.h termio.h sgtty.h
5ee754fc 10248do
bec39cab 10249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10250if eval "test \"\${$as_ac_Header+set}\" = set"; then
10251 echo "$as_me:$LINENO: checking for $ac_header" >&5
10252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10253if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255fi
b4e70030
JB
10256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10258else
10259 # Is the header compilable?
b4e70030
JB
10260echo "$as_me:$LINENO: checking $ac_header usability" >&5
10261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10262cat >conftest.$ac_ext <<_ACEOF
10263/* confdefs.h. */
10264_ACEOF
10265cat confdefs.h >>conftest.$ac_ext
10266cat >>conftest.$ac_ext <<_ACEOF
10267/* end confdefs.h. */
10268$ac_includes_default
10269#include <$ac_header>
10270_ACEOF
10271rm -f conftest.$ac_objext
10272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>conftest.er1
10274 ac_status=$?
10275 grep -v '^ *+' conftest.er1 >conftest.err
10276 rm -f conftest.er1
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
b4e70030
JB
10280 { ac_try='test -z "$ac_c_werror_flag"
10281 || test ! -s conftest.err'
bec39cab
AC
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest.$ac_objext'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 ac_header_compiler=yes
10294else
10295 echo "$as_me: failed program was:" >&5
10296sed 's/^/| /' conftest.$ac_ext >&5
10297
b4e70030 10298ac_header_compiler=no
bec39cab
AC
10299fi
10300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10302echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10303
10304# Is the header present?
b4e70030
JB
10305echo "$as_me:$LINENO: checking $ac_header presence" >&5
10306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10307cat >conftest.$ac_ext <<_ACEOF
10308/* confdefs.h. */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h. */
10313#include <$ac_header>
10314_ACEOF
10315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } >/dev/null; then
10323 if test -s conftest.err; then
10324 ac_cpp_err=$ac_c_preproc_warn_flag
10325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10326 else
10327 ac_cpp_err=
10328 fi
10329else
10330 ac_cpp_err=yes
9608ab8b 10331fi
bec39cab
AC
10332if test -z "$ac_cpp_err"; then
10333 ac_header_preproc=yes
9608ab8b 10334else
bec39cab
AC
10335 echo "$as_me: failed program was:" >&5
10336sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 ac_header_preproc=no
9608ab8b 10339fi
bec39cab 10340rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10342echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10343
bec39cab
AC
10344# So? What about this header?
10345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10346 yes:no: )
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10351 ac_header_preproc=yes
10352 ;;
10353 no:yes:* )
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10366 (
10367 cat <<\_ASBOX
10368## ------------------------------------------ ##
10369## Report this to the AC_PACKAGE_NAME lists. ##
10370## ------------------------------------------ ##
10371_ASBOX
10372 ) |
10373 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10374 ;;
10375esac
b4e70030
JB
10376echo "$as_me:$LINENO: checking for $ac_header" >&5
10377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10378if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10380else
10381 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10382fi
b4e70030
JB
10383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10385
9608ab8b 10386fi
bec39cab
AC
10387if test `eval echo '${'$as_ac_Header'}'` = yes; then
10388 cat >>confdefs.h <<_ACEOF
10389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10390_ACEOF
10391
9608ab8b 10392fi
bec39cab 10393
5ee754fc 10394done
9608ab8b 10395
bec39cab
AC
10396
10397for ac_header in unistd.h
78434e59 10398do
bec39cab 10399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10400if eval "test \"\${$as_ac_Header+set}\" = set"; then
10401 echo "$as_me:$LINENO: checking for $ac_header" >&5
10402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10403if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405fi
b4e70030
JB
10406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10408else
10409 # Is the header compilable?
b4e70030
JB
10410echo "$as_me:$LINENO: checking $ac_header usability" >&5
10411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10412cat >conftest.$ac_ext <<_ACEOF
10413/* confdefs.h. */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h. */
10418$ac_includes_default
10419#include <$ac_header>
10420_ACEOF
10421rm -f conftest.$ac_objext
10422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423 (eval $ac_compile) 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
b4e70030
JB
10430 { ac_try='test -z "$ac_c_werror_flag"
10431 || test ! -s conftest.err'
bec39cab
AC
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest.$ac_objext'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_header_compiler=yes
10444else
10445 echo "$as_me: failed program was:" >&5
10446sed 's/^/| /' conftest.$ac_ext >&5
10447
b4e70030 10448ac_header_compiler=no
bec39cab
AC
10449fi
10450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10452echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10453
10454# Is the header present?
b4e70030
JB
10455echo "$as_me:$LINENO: checking $ac_header presence" >&5
10456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10457cat >conftest.$ac_ext <<_ACEOF
10458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
10463#include <$ac_header>
10464_ACEOF
10465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } >/dev/null; then
10473 if test -s conftest.err; then
10474 ac_cpp_err=$ac_c_preproc_warn_flag
10475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10476 else
10477 ac_cpp_err=
10478 fi
10479else
10480 ac_cpp_err=yes
78434e59 10481fi
bec39cab
AC
10482if test -z "$ac_cpp_err"; then
10483 ac_header_preproc=yes
78434e59 10484else
bec39cab
AC
10485 echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ac_header_preproc=no
78434e59 10489fi
bec39cab 10490rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10492echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 10493
bec39cab
AC
10494# So? What about this header?
10495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10496 yes:no: )
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10501 ac_header_preproc=yes
10502 ;;
10503 no:yes:* )
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10516 (
10517 cat <<\_ASBOX
10518## ------------------------------------------ ##
10519## Report this to the AC_PACKAGE_NAME lists. ##
10520## ------------------------------------------ ##
10521_ASBOX
10522 ) |
10523 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10524 ;;
10525esac
b4e70030
JB
10526echo "$as_me:$LINENO: checking for $ac_header" >&5
10527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10528if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 10532fi
b4e70030
JB
10533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10535
086ec9eb 10536fi
bec39cab
AC
10537if test `eval echo '${'$as_ac_Header'}'` = yes; then
10538 cat >>confdefs.h <<_ACEOF
10539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10540_ACEOF
10541
086ec9eb 10542fi
bec39cab 10543
086ec9eb
MK
10544done
10545
9608ab8b 10546
b1d19a62 10547# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
10548# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10549# think that we don't have <curses.h> if we're using GCC.
10550case $host_os in
b1d19a62 10551 solaris2.[789])
5ee754fc 10552 if test "$GCC" = yes; then
bec39cab
AC
10553
10554cat >>confdefs.h <<\_ACEOF
5ee754fc 10555#define _MSE_INT_H 1
bec39cab 10556_ACEOF
5ee754fc
MK
10557
10558 fi ;;
10559esac
bec39cab
AC
10560
10561
10562
10563
10564for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 10565do
bec39cab 10566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10567if eval "test \"\${$as_ac_Header+set}\" = set"; then
10568 echo "$as_me:$LINENO: checking for $ac_header" >&5
10569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10570if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10572fi
b4e70030
JB
10573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10575else
10576 # Is the header compilable?
b4e70030
JB
10577echo "$as_me:$LINENO: checking $ac_header usability" >&5
10578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10579cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
10585$ac_includes_default
10586#include <$ac_header>
10587_ACEOF
10588rm -f conftest.$ac_objext
10589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10590 (eval $ac_compile) 2>conftest.er1
10591 ac_status=$?
10592 grep -v '^ *+' conftest.er1 >conftest.err
10593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } &&
b4e70030
JB
10597 { ac_try='test -z "$ac_c_werror_flag"
10598 || test ! -s conftest.err'
bec39cab
AC
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10601 ac_status=$?
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; } &&
10604 { ac_try='test -s conftest.$ac_objext'
10605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10607 ac_status=$?
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; }; then
10610 ac_header_compiler=yes
10611else
10612 echo "$as_me: failed program was:" >&5
10613sed 's/^/| /' conftest.$ac_ext >&5
10614
b4e70030 10615ac_header_compiler=no
bec39cab
AC
10616fi
10617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10619echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10620
10621# Is the header present?
b4e70030
JB
10622echo "$as_me:$LINENO: checking $ac_header presence" >&5
10623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10624cat >conftest.$ac_ext <<_ACEOF
10625/* confdefs.h. */
10626_ACEOF
10627cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF
10629/* end confdefs.h. */
10630#include <$ac_header>
10631_ACEOF
10632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } >/dev/null; then
10640 if test -s conftest.err; then
10641 ac_cpp_err=$ac_c_preproc_warn_flag
10642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10643 else
10644 ac_cpp_err=
10645 fi
10646else
10647 ac_cpp_err=yes
c906108c 10648fi
bec39cab
AC
10649if test -z "$ac_cpp_err"; then
10650 ac_header_preproc=yes
10651else
10652 echo "$as_me: failed program was:" >&5
10653sed 's/^/| /' conftest.$ac_ext >&5
10654
10655 ac_header_preproc=no
c906108c 10656fi
bec39cab 10657rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10659echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10660
10661# So? What about this header?
10662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10663 yes:no: )
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10668 ac_header_preproc=yes
10669 ;;
10670 no:yes:* )
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10683 (
10684 cat <<\_ASBOX
10685## ------------------------------------------ ##
10686## Report this to the AC_PACKAGE_NAME lists. ##
10687## ------------------------------------------ ##
10688_ASBOX
10689 ) |
10690 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10691 ;;
10692esac
b4e70030
JB
10693echo "$as_me:$LINENO: checking for $ac_header" >&5
10694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10695if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10696 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 10697else
bec39cab 10698 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10699fi
b4e70030
JB
10700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10702
10703fi
10704if test `eval echo '${'$as_ac_Header'}'` = yes; then
10705 cat >>confdefs.h <<_ACEOF
10706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10707_ACEOF
10708
10709fi
10710
5ee754fc 10711done
c906108c 10712
bec39cab 10713
065a1afc 10714for ac_header in ncurses/term.h
3b78cdbb 10715do
bec39cab 10716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10717if eval "test \"\${$as_ac_Header+set}\" = set"; then
10718 echo "$as_me:$LINENO: checking for $ac_header" >&5
10719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10720if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10722fi
b4e70030
JB
10723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10725else
10726 # Is the header compilable?
b4e70030
JB
10727echo "$as_me:$LINENO: checking $ac_header usability" >&5
10728echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10729cat >conftest.$ac_ext <<_ACEOF
10730/* confdefs.h. */
10731_ACEOF
10732cat confdefs.h >>conftest.$ac_ext
10733cat >>conftest.$ac_ext <<_ACEOF
10734/* end confdefs.h. */
10735$ac_includes_default
10736#include <$ac_header>
10737_ACEOF
10738rm -f conftest.$ac_objext
10739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740 (eval $ac_compile) 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
b4e70030
JB
10747 { ac_try='test -z "$ac_c_werror_flag"
10748 || test ! -s conftest.err'
bec39cab
AC
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest.$ac_objext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 ac_header_compiler=yes
10761else
10762 echo "$as_me: failed program was:" >&5
10763sed 's/^/| /' conftest.$ac_ext >&5
10764
b4e70030 10765ac_header_compiler=no
bec39cab
AC
10766fi
10767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10769echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10770
10771# Is the header present?
b4e70030
JB
10772echo "$as_me:$LINENO: checking $ac_header presence" >&5
10773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10774cat >conftest.$ac_ext <<_ACEOF
10775/* confdefs.h. */
10776_ACEOF
10777cat confdefs.h >>conftest.$ac_ext
10778cat >>conftest.$ac_ext <<_ACEOF
10779/* end confdefs.h. */
10780#include <$ac_header>
10781_ACEOF
10782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } >/dev/null; then
10790 if test -s conftest.err; then
10791 ac_cpp_err=$ac_c_preproc_warn_flag
10792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10793 else
10794 ac_cpp_err=
10795 fi
10796else
10797 ac_cpp_err=yes
3b78cdbb 10798fi
bec39cab
AC
10799if test -z "$ac_cpp_err"; then
10800 ac_header_preproc=yes
10801else
10802 echo "$as_me: failed program was:" >&5
10803sed 's/^/| /' conftest.$ac_ext >&5
10804
10805 ac_header_preproc=no
3b78cdbb 10806fi
bec39cab 10807rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10809echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10810
10811# So? What about this header?
10812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10813 yes:no: )
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10818 ac_header_preproc=yes
10819 ;;
10820 no:yes:* )
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10828echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10833 (
10834 cat <<\_ASBOX
10835## ------------------------------------------ ##
10836## Report this to the AC_PACKAGE_NAME lists. ##
10837## ------------------------------------------ ##
10838_ASBOX
10839 ) |
10840 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10841 ;;
10842esac
b4e70030
JB
10843echo "$as_me:$LINENO: checking for $ac_header" >&5
10844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10845if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10846 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 10847else
bec39cab
AC
10848 eval "$as_ac_Header=\$ac_header_preproc"
10849fi
b4e70030
JB
10850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10852
3b78cdbb 10853fi
bec39cab
AC
10854if test `eval echo '${'$as_ac_Header'}'` = yes; then
10855 cat >>confdefs.h <<_ACEOF
10856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10857_ACEOF
10858
10859fi
10860
3b78cdbb
DA
10861done
10862
c906108c 10863
065a1afc
JB
10864for ac_header in term.h
10865do
10866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10867echo "$as_me:$LINENO: checking for $ac_header" >&5
10868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10869if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871else
10872 cat >conftest.$ac_ext <<_ACEOF
10873/* confdefs.h. */
10874_ACEOF
10875cat confdefs.h >>conftest.$ac_ext
10876cat >>conftest.$ac_ext <<_ACEOF
10877/* end confdefs.h. */
10878#if HAVE_CURSES_H
10879# include <curses.h>
10880#endif
10881
10882
10883#include <$ac_header>
10884_ACEOF
10885rm -f conftest.$ac_objext
10886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10887 (eval $ac_compile) 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
b4e70030
JB
10894 { ac_try='test -z "$ac_c_werror_flag"
10895 || test ! -s conftest.err'
065a1afc
JB
10896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897 (eval $ac_try) 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } &&
10901 { ac_try='test -s conftest.$ac_objext'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 eval "$as_ac_Header=yes"
10908else
10909 echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
b4e70030 10912eval "$as_ac_Header=no"
065a1afc
JB
10913fi
10914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10915fi
b4e70030
JB
10916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
10918if test `eval echo '${'$as_ac_Header'}'` = yes; then
10919 cat >>confdefs.h <<_ACEOF
10920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10921_ACEOF
10922
10923fi
10924
10925done
10926
10927
5ee754fc
MK
10928# FIXME: kettenis/20030102: In most cases we include these
10929# unconditionally, so what's the point in checking these?
bec39cab
AC
10930
10931
10932for ac_header in ctype.h time.h
c906108c 10933do
bec39cab 10934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10935if eval "test \"\${$as_ac_Header+set}\" = set"; then
10936 echo "$as_me:$LINENO: checking for $ac_header" >&5
10937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10938if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940fi
b4e70030
JB
10941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10943else
10944 # Is the header compilable?
b4e70030
JB
10945echo "$as_me:$LINENO: checking $ac_header usability" >&5
10946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10947cat >conftest.$ac_ext <<_ACEOF
10948/* confdefs.h. */
10949_ACEOF
10950cat confdefs.h >>conftest.$ac_ext
10951cat >>conftest.$ac_ext <<_ACEOF
10952/* end confdefs.h. */
10953$ac_includes_default
10954#include <$ac_header>
10955_ACEOF
10956rm -f conftest.$ac_objext
10957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10958 (eval $ac_compile) 2>conftest.er1
10959 ac_status=$?
10960 grep -v '^ *+' conftest.er1 >conftest.err
10961 rm -f conftest.er1
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
b4e70030
JB
10965 { ac_try='test -z "$ac_c_werror_flag"
10966 || test ! -s conftest.err'
bec39cab
AC
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; } &&
10972 { ac_try='test -s conftest.$ac_objext'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10978 ac_header_compiler=yes
10979else
10980 echo "$as_me: failed program was:" >&5
10981sed 's/^/| /' conftest.$ac_ext >&5
10982
b4e70030 10983ac_header_compiler=no
bec39cab
AC
10984fi
10985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10987echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10988
10989# Is the header present?
b4e70030
JB
10990echo "$as_me:$LINENO: checking $ac_header presence" >&5
10991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10992cat >conftest.$ac_ext <<_ACEOF
10993/* confdefs.h. */
10994_ACEOF
10995cat confdefs.h >>conftest.$ac_ext
10996cat >>conftest.$ac_ext <<_ACEOF
10997/* end confdefs.h. */
10998#include <$ac_header>
10999_ACEOF
11000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } >/dev/null; then
11008 if test -s conftest.err; then
11009 ac_cpp_err=$ac_c_preproc_warn_flag
11010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11011 else
11012 ac_cpp_err=
11013 fi
11014else
11015 ac_cpp_err=yes
c906108c 11016fi
bec39cab
AC
11017if test -z "$ac_cpp_err"; then
11018 ac_header_preproc=yes
11019else
11020 echo "$as_me: failed program was:" >&5
11021sed 's/^/| /' conftest.$ac_ext >&5
11022
11023 ac_header_preproc=no
c906108c 11024fi
bec39cab 11025rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11027echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11028
11029# So? What about this header?
11030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11031 yes:no: )
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11036 ac_header_preproc=yes
11037 ;;
11038 no:yes:* )
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11051 (
11052 cat <<\_ASBOX
11053## ------------------------------------------ ##
11054## Report this to the AC_PACKAGE_NAME lists. ##
11055## ------------------------------------------ ##
11056_ASBOX
11057 ) |
11058 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11059 ;;
11060esac
b4e70030
JB
11061echo "$as_me:$LINENO: checking for $ac_header" >&5
11062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11063if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11064 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11065else
bec39cab
AC
11066 eval "$as_ac_Header=\$ac_header_preproc"
11067fi
b4e70030
JB
11068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11070
11071fi
11072if test `eval echo '${'$as_ac_Header'}'` = yes; then
11073 cat >>confdefs.h <<_ACEOF
11074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11075_ACEOF
11076
c906108c 11077fi
bec39cab 11078
c906108c
SS
11079done
11080
5ee754fc 11081
4e8d927d 11082# Create a header we can use portably to get the standard integer types.
666ec76f 11083
4e8d927d
DJ
11084
11085inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11086
11087acx_cv_header_stdint=stddef.h
11088acx_cv_header_stdint_kind="(already complete)"
11089for i in stdint.h $inttype_headers; do
11090 unset ac_cv_type_uintptr_t
11091 unset ac_cv_type_uintmax_t
11092 unset ac_cv_type_int_least32_t
11093 unset ac_cv_type_int_fast32_t
11094 unset ac_cv_type_uint64_t
11095 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11096 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11097echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 11098if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 11099 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 11100else
bec39cab
AC
11101 cat >conftest.$ac_ext <<_ACEOF
11102/* confdefs.h. */
11103_ACEOF
11104cat confdefs.h >>conftest.$ac_ext
11105cat >>conftest.$ac_ext <<_ACEOF
11106/* end confdefs.h. */
4e8d927d
DJ
11107#include <sys/types.h>
11108#include <$i>
11109
bec39cab
AC
11110int
11111main ()
11112{
b4e70030 11113if ((uintmax_t *) 0)
4e8d927d 11114 return 0;
b4e70030 11115if (sizeof (uintmax_t))
4e8d927d
DJ
11116 return 0;
11117 ;
bec39cab
AC
11118 return 0;
11119}
11120_ACEOF
11121rm -f conftest.$ac_objext
11122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123 (eval $ac_compile) 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
b4e70030
JB
11130 { ac_try='test -z "$ac_c_werror_flag"
11131 || test ! -s conftest.err'
bec39cab
AC
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
4e8d927d 11143 ac_cv_type_uintmax_t=yes
40a7debc 11144else
bec39cab
AC
11145 echo "$as_me: failed program was:" >&5
11146sed 's/^/| /' conftest.$ac_ext >&5
11147
b4e70030 11148ac_cv_type_uintmax_t=no
40a7debc 11149fi
bec39cab 11150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11151fi
b4e70030
JB
11152echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11153echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11154if test $ac_cv_type_uintmax_t = yes; then
11155 acx_cv_header_stdint=$i
666ec76f 11156else
4e8d927d 11157 continue
666ec76f 11158fi
4e8d927d 11159
b4e70030
JB
11160 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11161echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11162if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164else
11165 cat >conftest.$ac_ext <<_ACEOF
11166/* confdefs.h. */
11167_ACEOF
11168cat confdefs.h >>conftest.$ac_ext
11169cat >>conftest.$ac_ext <<_ACEOF
11170/* end confdefs.h. */
4e8d927d
DJ
11171#include <sys/types.h>
11172#include <$i>
11173
666ec76f
MK
11174int
11175main ()
11176{
b4e70030 11177if ((uintptr_t *) 0)
4e8d927d 11178 return 0;
b4e70030 11179if (sizeof (uintptr_t))
4e8d927d 11180 return 0;
666ec76f
MK
11181 ;
11182 return 0;
11183}
11184_ACEOF
11185rm -f conftest.$ac_objext
11186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
b4e70030
JB
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
666ec76f
MK
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
4e8d927d 11207 ac_cv_type_uintptr_t=yes
666ec76f
MK
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11211
b4e70030 11212ac_cv_type_uintptr_t=no
a3828db0
MK
11213fi
11214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11215fi
b4e70030
JB
11216echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11217echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11218if test $ac_cv_type_uintptr_t = yes; then
11219 :
a3828db0 11220else
4e8d927d 11221 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11222fi
4e8d927d 11223
b4e70030
JB
11224 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11225echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11226if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228else
11229 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11230/* confdefs.h. */
11231_ACEOF
11232cat confdefs.h >>conftest.$ac_ext
11233cat >>conftest.$ac_ext <<_ACEOF
11234/* end confdefs.h. */
4e8d927d
DJ
11235#include <sys/types.h>
11236#include <$i>
11237
bec39cab
AC
11238int
11239main ()
11240{
b4e70030 11241if ((int_least32_t *) 0)
4e8d927d 11242 return 0;
b4e70030 11243if (sizeof (int_least32_t))
4e8d927d 11244 return 0;
bec39cab
AC
11245 ;
11246 return 0;
11247}
11248_ACEOF
11249rm -f conftest.$ac_objext
11250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>conftest.er1
11252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
b4e70030
JB
11258 { ac_try='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
bec39cab
AC
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
4e8d927d 11271 ac_cv_type_int_least32_t=yes
b9362cc7 11272else
bec39cab
AC
11273 echo "$as_me: failed program was:" >&5
11274sed 's/^/| /' conftest.$ac_ext >&5
11275
b4e70030 11276ac_cv_type_int_least32_t=no
b9362cc7 11277fi
bec39cab 11278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11279fi
b4e70030
JB
11280echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11281echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11282if test $ac_cv_type_int_least32_t = yes; then
11283 :
a3828db0 11284else
4e8d927d 11285 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11286fi
5ee754fc 11287
b4e70030
JB
11288 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11289echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11290if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292else
11293 cat >conftest.$ac_ext <<_ACEOF
11294/* confdefs.h. */
11295_ACEOF
11296cat confdefs.h >>conftest.$ac_ext
11297cat >>conftest.$ac_ext <<_ACEOF
11298/* end confdefs.h. */
4e8d927d
DJ
11299#include <sys/types.h>
11300#include <$i>
11301
bec39cab
AC
11302int
11303main ()
11304{
b4e70030 11305if ((int_fast32_t *) 0)
4e8d927d 11306 return 0;
b4e70030 11307if (sizeof (int_fast32_t))
4e8d927d 11308 return 0;
bec39cab
AC
11309 ;
11310 return 0;
11311}
11312_ACEOF
11313rm -f conftest.$ac_objext
11314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11315 (eval $ac_compile) 2>conftest.er1
11316 ac_status=$?
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
b4e70030
JB
11322 { ac_try='test -z "$ac_c_werror_flag"
11323 || test ! -s conftest.err'
bec39cab
AC
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest.$ac_objext'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
4e8d927d 11335 ac_cv_type_int_fast32_t=yes
c906108c 11336else
bec39cab
AC
11337 echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
b4e70030 11340ac_cv_type_int_fast32_t=no
c906108c 11341fi
bec39cab 11342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11343fi
b4e70030
JB
11344echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11345echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
11346if test $ac_cv_type_int_fast32_t = yes; then
11347 :
a3828db0 11348else
4e8d927d 11349 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11350fi
4e8d927d 11351
b4e70030
JB
11352 echo "$as_me:$LINENO: checking for uint64_t" >&5
11353echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11354if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11356else
11357 cat >conftest.$ac_ext <<_ACEOF
11358/* confdefs.h. */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h. */
4e8d927d
DJ
11363#include <sys/types.h>
11364#include <$i>
11365
bec39cab
AC
11366int
11367main ()
11368{
b4e70030 11369if ((uint64_t *) 0)
4e8d927d 11370 return 0;
b4e70030 11371if (sizeof (uint64_t))
4e8d927d 11372 return 0;
bec39cab
AC
11373 ;
11374 return 0;
11375}
11376_ACEOF
11377rm -f conftest.$ac_objext
11378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11379 (eval $ac_compile) 2>conftest.er1
11380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
b4e70030
JB
11386 { ac_try='test -z "$ac_c_werror_flag"
11387 || test ! -s conftest.err'
bec39cab
AC
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11390 ac_status=$?
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; } &&
11393 { ac_try='test -s conftest.$ac_objext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
4e8d927d 11399 ac_cv_type_uint64_t=yes
c906108c 11400else
bec39cab
AC
11401 echo "$as_me: failed program was:" >&5
11402sed 's/^/| /' conftest.$ac_ext >&5
11403
b4e70030 11404ac_cv_type_uint64_t=no
c906108c 11405fi
bec39cab 11406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11407fi
b4e70030
JB
11408echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11409echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
11410if test $ac_cv_type_uint64_t = yes; then
11411 :
a3828db0 11412else
4e8d927d 11413 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
11414fi
11415
4e8d927d
DJ
11416 break
11417done
11418if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 11419 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 11420 for i in stdint.h $inttype_headers; do
3841debe 11421 unset ac_cv_type_uintptr_t
4e8d927d
DJ
11422 unset ac_cv_type_uint32_t
11423 unset ac_cv_type_uint64_t
11424 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11425 echo "$as_me:$LINENO: checking for uint32_t" >&5
11426echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 11427if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 11428 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 11429else
bec39cab
AC
11430 cat >conftest.$ac_ext <<_ACEOF
11431/* confdefs.h. */
11432_ACEOF
11433cat confdefs.h >>conftest.$ac_ext
11434cat >>conftest.$ac_ext <<_ACEOF
11435/* end confdefs.h. */
4e8d927d
DJ
11436#include <sys/types.h>
11437#include <$i>
11438
a3828db0
MK
11439int
11440main ()
11441{
b4e70030 11442if ((uint32_t *) 0)
4e8d927d 11443 return 0;
b4e70030 11444if (sizeof (uint32_t))
4e8d927d 11445 return 0;
a3828db0
MK
11446 ;
11447 return 0;
11448}
bec39cab
AC
11449_ACEOF
11450rm -f conftest.$ac_objext
11451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452 (eval $ac_compile) 2>conftest.er1
11453 ac_status=$?
11454 grep -v '^ *+' conftest.er1 >conftest.err
11455 rm -f conftest.er1
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
b4e70030
JB
11459 { ac_try='test -z "$ac_c_werror_flag"
11460 || test ! -s conftest.err'
bec39cab
AC
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; } &&
11466 { ac_try='test -s conftest.$ac_objext'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
4e8d927d 11472 ac_cv_type_uint32_t=yes
bce58c09 11473else
bec39cab
AC
11474 echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
b4e70030 11477ac_cv_type_uint32_t=no
bce58c09 11478fi
bec39cab 11479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 11480fi
b4e70030
JB
11481echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11482echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
11483if test $ac_cv_type_uint32_t = yes; then
11484 acx_cv_header_stdint=$i
a3828db0 11485else
4e8d927d 11486 continue
e5a7de23 11487fi
4e8d927d 11488
b4e70030
JB
11489 echo "$as_me:$LINENO: checking for uint64_t" >&5
11490echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11491if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493else
11494 cat >conftest.$ac_ext <<_ACEOF
11495/* confdefs.h. */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h. */
4e8d927d
DJ
11500#include <sys/types.h>
11501#include <$i>
11502
e5a7de23
EZ
11503int
11504main ()
11505{
b4e70030 11506if ((uint64_t *) 0)
4e8d927d 11507 return 0;
b4e70030 11508if (sizeof (uint64_t))
4e8d927d 11509 return 0;
e5a7de23
EZ
11510 ;
11511 return 0;
11512}
11513_ACEOF
11514rm -f conftest.$ac_objext
11515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11516 (eval $ac_compile) 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
b4e70030
JB
11523 { ac_try='test -z "$ac_c_werror_flag"
11524 || test ! -s conftest.err'
e5a7de23
EZ
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
4e8d927d 11536 ac_cv_type_uint64_t=yes
e5a7de23
EZ
11537else
11538 echo "$as_me: failed program was:" >&5
11539sed 's/^/| /' conftest.$ac_ext >&5
11540
b4e70030 11541ac_cv_type_uint64_t=no
e5a7de23
EZ
11542fi
11543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11544fi
b4e70030
JB
11545echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11546echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
11547
11548 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11549echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11550if test "${ac_cv_type_uintptr_t+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552else
11553 cat >conftest.$ac_ext <<_ACEOF
11554/* confdefs.h. */
11555_ACEOF
11556cat confdefs.h >>conftest.$ac_ext
11557cat >>conftest.$ac_ext <<_ACEOF
11558/* end confdefs.h. */
11559#include <sys/types.h>
11560#include <$i>
11561
11562int
11563main ()
11564{
11565if ((uintptr_t *) 0)
11566 return 0;
11567if (sizeof (uintptr_t))
11568 return 0;
11569 ;
11570 return 0;
11571}
11572_ACEOF
11573rm -f conftest.$ac_objext
11574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag"
11583 || test ! -s conftest.err'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 ac_cv_type_uintptr_t=yes
e5a7de23 11596else
3841debe
DJ
11597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
11600ac_cv_type_uintptr_t=no
4e8d927d 11601fi
3841debe
DJ
11602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11603fi
11604echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11605echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 11606
4e8d927d
DJ
11607 break
11608 done
e5a7de23 11609fi
4e8d927d
DJ
11610if test "$acx_cv_header_stdint" = stddef.h; then
11611 acx_cv_header_stdint_kind="(u_intXX_t style)"
11612 for i in sys/types.h $inttype_headers; do
11613 unset ac_cv_type_u_int32_t
11614 unset ac_cv_type_u_int64_t
11615 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
11616 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11617echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 11618if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621 cat >conftest.$ac_ext <<_ACEOF
11622/* confdefs.h. */
11623_ACEOF
11624cat confdefs.h >>conftest.$ac_ext
11625cat >>conftest.$ac_ext <<_ACEOF
11626/* end confdefs.h. */
4e8d927d
DJ
11627#include <sys/types.h>
11628#include <$i>
11629
e5a7de23
EZ
11630int
11631main ()
11632{
b4e70030 11633if ((u_int32_t *) 0)
4e8d927d 11634 return 0;
b4e70030 11635if (sizeof (u_int32_t))
4e8d927d 11636 return 0;
e5a7de23
EZ
11637 ;
11638 return 0;
11639}
11640_ACEOF
11641rm -f conftest.$ac_objext
11642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
b4e70030
JB
11650 { ac_try='test -z "$ac_c_werror_flag"
11651 || test ! -s conftest.err'
e5a7de23
EZ
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
4e8d927d 11663 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
11664else
11665 echo "$as_me: failed program was:" >&5
11666sed 's/^/| /' conftest.$ac_ext >&5
11667
b4e70030 11668ac_cv_type_u_int32_t=no
e5a7de23
EZ
11669fi
11670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11671fi
b4e70030
JB
11672echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11673echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
11674if test $ac_cv_type_u_int32_t = yes; then
11675 acx_cv_header_stdint=$i
e5a7de23 11676else
4e8d927d 11677 continue
a3828db0 11678fi
5ee754fc 11679
b4e70030
JB
11680 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11681echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 11682if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11684else
11685 cat >conftest.$ac_ext <<_ACEOF
11686/* confdefs.h. */
11687_ACEOF
11688cat confdefs.h >>conftest.$ac_ext
11689cat >>conftest.$ac_ext <<_ACEOF
11690/* end confdefs.h. */
4e8d927d
DJ
11691#include <sys/types.h>
11692#include <$i>
11693
bec39cab
AC
11694int
11695main ()
11696{
b4e70030 11697if ((u_int64_t *) 0)
4e8d927d 11698 return 0;
b4e70030 11699if (sizeof (u_int64_t))
4e8d927d 11700 return 0;
bec39cab
AC
11701 ;
11702 return 0;
11703}
11704_ACEOF
a3828db0
MK
11705rm -f conftest.$ac_objext
11706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11707 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11708 ac_status=$?
11709 grep -v '^ *+' conftest.er1 >conftest.err
11710 rm -f conftest.er1
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
b4e70030
JB
11714 { ac_try='test -z "$ac_c_werror_flag"
11715 || test ! -s conftest.err'
bec39cab
AC
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; } &&
a3828db0 11721 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
4e8d927d 11727 ac_cv_type_u_int64_t=yes
bec39cab
AC
11728else
11729 echo "$as_me: failed program was:" >&5
11730sed 's/^/| /' conftest.$ac_ext >&5
11731
b4e70030 11732ac_cv_type_u_int64_t=no
4e8d927d 11733fi
4e8d927d
DJ
11734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11735fi
b4e70030
JB
11736echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11737echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
11738
11739 break
11740 done
11741fi
11742if test "$acx_cv_header_stdint" = stddef.h; then
11743 acx_cv_header_stdint_kind="(using manual detection)"
11744fi
11745
11746test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11747test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11748test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11749test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11750test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11751
11752# ----------------- Summarize what we found so far
11753
b4e70030
JB
11754echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
11755echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 11756
b4e70030 11757case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
11758$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
11759 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
11760 Xgdb_stdint.h : 'X\(/\)$' \| \
11761 . : '\(.\)' 2>/dev/null ||
4e8d927d 11762echo X/gdb_stdint.h |
b4e70030
JB
11763 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11764 /^X\/\(\/\/\)$/{ s//\1/; q; }
11765 /^X\/\(\/\).*/{ s//\1/; q; }
11766 s/.*/./; q'` in
4e8d927d
DJ
11767 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11768echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11769 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11770echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11771 *) ;;
11772esac
11773
b4e70030
JB
11774echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11775echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
11776
11777# ----------------- done included file, check C basic types --------
11778
11779# Lacking an uintptr_t? Test size of void *
11780case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
11781 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
11782echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
11783if test "${ac_cv_type_void_p+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785else
11786 cat >conftest.$ac_ext <<_ACEOF
a3828db0 11787/* confdefs.h. */
bec39cab
AC
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
a3828db0 11792$ac_includes_default
bec39cab
AC
11793int
11794main ()
11795{
b4e70030 11796if ((void * *) 0)
4e8d927d 11797 return 0;
b4e70030 11798if (sizeof (void *))
4e8d927d 11799 return 0;
bec39cab
AC
11800 ;
11801 return 0;
11802}
11803_ACEOF
a3828db0
MK
11804rm -f conftest.$ac_objext
11805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
b4e70030
JB
11813 { ac_try='test -z "$ac_c_werror_flag"
11814 || test ! -s conftest.err'
bec39cab
AC
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; } &&
a3828db0 11820 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
4e8d927d 11826 ac_cv_type_void_p=yes
46711df8 11827else
bec39cab
AC
11828 echo "$as_me: failed program was:" >&5
11829sed 's/^/| /' conftest.$ac_ext >&5
11830
b4e70030 11831ac_cv_type_void_p=no
a3828db0 11832fi
4e8d927d 11833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 11834fi
b4e70030
JB
11835echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11836echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 11837
b4e70030
JB
11838echo "$as_me:$LINENO: checking size of void *" >&5
11839echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 11840if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842else
4e8d927d 11843 if test "$ac_cv_type_void_p" = yes; then
b4e70030 11844 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
11845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11847 # This bug is HP SR number 8606223364.
11848 if test "$cross_compiling" = yes; then
11849 # Depending upon the size, compute the lo and hi bounds.
11850cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
11851/* confdefs.h. */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h. */
11856$ac_includes_default
11857int
11858main ()
11859{
b4e70030 11860static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
11861test_array [0] = 0
11862
d3ea6809
MM
11863 ;
11864 return 0;
11865}
11866_ACEOF
11867rm -f conftest.$ac_objext
11868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869 (eval $ac_compile) 2>conftest.er1
11870 ac_status=$?
11871 grep -v '^ *+' conftest.er1 >conftest.err
11872 rm -f conftest.er1
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } &&
b4e70030
JB
11876 { ac_try='test -z "$ac_c_werror_flag"
11877 || test ! -s conftest.err'
d3ea6809
MM
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
4e8d927d
DJ
11889 ac_lo=0 ac_mid=0
11890 while :; do
11891 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
11892/* confdefs.h. */
11893_ACEOF
11894cat confdefs.h >>conftest.$ac_ext
11895cat >>conftest.$ac_ext <<_ACEOF
11896/* end confdefs.h. */
11897$ac_includes_default
11898int
11899main ()
11900{
b4e70030 11901static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
11902test_array [0] = 0
11903
d3ea6809
MM
11904 ;
11905 return 0;
11906}
11907_ACEOF
11908rm -f conftest.$ac_objext
11909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11910 (eval $ac_compile) 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
b4e70030
JB
11917 { ac_try='test -z "$ac_c_werror_flag"
11918 || test ! -s conftest.err'
d3ea6809
MM
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
4e8d927d 11930 ac_hi=$ac_mid; break
d3ea6809
MM
11931else
11932 echo "$as_me: failed program was:" >&5
11933sed 's/^/| /' conftest.$ac_ext >&5
11934
b4e70030
JB
11935ac_lo=`expr $ac_mid + 1`
11936 if test $ac_lo -le $ac_mid; then
11937 ac_lo= ac_hi=
11938 break
11939 fi
11940 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 11941fi
4e8d927d
DJ
11942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11943 done
bec39cab 11944else
4e8d927d
DJ
11945 echo "$as_me: failed program was:" >&5
11946sed 's/^/| /' conftest.$ac_ext >&5
11947
b4e70030 11948cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11949/* confdefs.h. */
11950_ACEOF
11951cat confdefs.h >>conftest.$ac_ext
11952cat >>conftest.$ac_ext <<_ACEOF
11953/* end confdefs.h. */
4e8d927d 11954$ac_includes_default
bec39cab
AC
11955int
11956main ()
11957{
b4e70030 11958static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
11959test_array [0] = 0
11960
bec39cab
AC
11961 ;
11962 return 0;
11963}
11964_ACEOF
a3828db0
MK
11965rm -f conftest.$ac_objext
11966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
b4e70030
JB
11974 { ac_try='test -z "$ac_c_werror_flag"
11975 || test ! -s conftest.err'
bec39cab
AC
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
a3828db0 11981 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
4e8d927d
DJ
11987 ac_hi=-1 ac_mid=-1
11988 while :; do
11989 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
11990/* confdefs.h. */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h. */
4e8d927d 11995$ac_includes_default
f9f87d2c
MK
11996int
11997main ()
11998{
b4e70030 11999static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
12000test_array [0] = 0
12001
f9f87d2c
MK
12002 ;
12003 return 0;
12004}
12005_ACEOF
12006rm -f conftest.$ac_objext
12007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008 (eval $ac_compile) 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
b4e70030
JB
12015 { ac_try='test -z "$ac_c_werror_flag"
12016 || test ! -s conftest.err'
f9f87d2c
MK
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest.$ac_objext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
4e8d927d 12028 ac_lo=$ac_mid; break
f9f87d2c
MK
12029else
12030 echo "$as_me: failed program was:" >&5
12031sed 's/^/| /' conftest.$ac_ext >&5
12032
b4e70030
JB
12033ac_hi=`expr '(' $ac_mid ')' - 1`
12034 if test $ac_mid -le $ac_hi; then
12035 ac_lo= ac_hi=
12036 break
12037 fi
12038 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 12039fi
4e8d927d
DJ
12040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12041 done
12042else
12043 echo "$as_me: failed program was:" >&5
12044sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 12045
b4e70030 12046ac_lo= ac_hi=
4e8d927d 12047fi
4e8d927d 12048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 12049fi
4e8d927d
DJ
12050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12051# Binary search between lo and hi bounds.
12052while test "x$ac_lo" != "x$ac_hi"; do
12053 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
12054 cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
4e8d927d 12060$ac_includes_default
3be60c3d
MK
12061int
12062main ()
12063{
b4e70030 12064static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12065test_array [0] = 0
12066
3be60c3d
MK
12067 ;
12068 return 0;
12069}
12070_ACEOF
12071rm -f conftest.$ac_objext
12072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12073 (eval $ac_compile) 2>conftest.er1
12074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
b4e70030
JB
12080 { ac_try='test -z "$ac_c_werror_flag"
12081 || test ! -s conftest.err'
3be60c3d
MK
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest.$ac_objext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
4e8d927d 12093 ac_hi=$ac_mid
3be60c3d
MK
12094else
12095 echo "$as_me: failed program was:" >&5
12096sed 's/^/| /' conftest.$ac_ext >&5
12097
b4e70030 12098ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 12099fi
4e8d927d
DJ
12100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12101done
12102case $ac_lo in
12103?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 12104'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12105See \`config.log' for more details." >&5
b4e70030 12106echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12107See \`config.log' for more details." >&2;}
b4e70030 12108 { (exit 1); exit 1; }; } ;;
4e8d927d 12109esac
b4e70030
JB
12110else
12111 if test "$cross_compiling" = yes; then
12112 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12113See \`config.log' for more details." >&5
12114echo "$as_me: error: cannot run test program while cross compiling
12115See \`config.log' for more details." >&2;}
12116 { (exit 1); exit 1; }; }
4e8d927d
DJ
12117else
12118 cat >conftest.$ac_ext <<_ACEOF
12119/* confdefs.h. */
3be60c3d 12120_ACEOF
4e8d927d
DJ
12121cat confdefs.h >>conftest.$ac_ext
12122cat >>conftest.$ac_ext <<_ACEOF
12123/* end confdefs.h. */
12124$ac_includes_default
b4e70030
JB
12125long longval () { return (long) (sizeof (void *)); }
12126unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
12127#include <stdio.h>
12128#include <stdlib.h>
12129int
12130main ()
12131{
12132
12133 FILE *f = fopen ("conftest.val", "w");
12134 if (! f)
b4e70030
JB
12135 exit (1);
12136 if (((long) (sizeof (void *))) < 0)
4e8d927d 12137 {
b4e70030
JB
12138 long i = longval ();
12139 if (i != ((long) (sizeof (void *))))
12140 exit (1);
4e8d927d
DJ
12141 fprintf (f, "%ld\n", i);
12142 }
12143 else
12144 {
b4e70030
JB
12145 unsigned long i = ulongval ();
12146 if (i != ((long) (sizeof (void *))))
12147 exit (1);
4e8d927d
DJ
12148 fprintf (f, "%lu\n", i);
12149 }
b4e70030 12150 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12151
4e8d927d
DJ
12152 ;
12153 return 0;
12154}
12155_ACEOF
12156rm -f conftest$ac_exeext
12157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158 (eval $ac_link) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12167 ac_cv_sizeof_void_p=`cat conftest.val`
12168else
12169 echo "$as_me: program exited with status $ac_status" >&5
12170echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12172
4e8d927d 12173( exit $ac_status )
b4e70030 12174{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12175See \`config.log' for more details." >&5
b4e70030 12176echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12177See \`config.log' for more details." >&2;}
b4e70030
JB
12178 { (exit 1); exit 1; }; }
12179fi
12180rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12181fi
4e8d927d
DJ
12182fi
12183rm -f conftest.val
12184else
12185 ac_cv_sizeof_void_p=0
12186fi
12187fi
b4e70030
JB
12188echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12189echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12190cat >>confdefs.h <<_ACEOF
12191#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12192_ACEOF
f9f87d2c 12193
4e8d927d
DJ
12194 ;;
12195esac
46711df8 12196
4e8d927d
DJ
12197# Lacking an uint64_t? Test size of long
12198case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12199 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12200echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12201if test "${ac_cv_type_long+set}" = set; then
bec39cab 12202 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12203else
bec39cab
AC
12204 cat >conftest.$ac_ext <<_ACEOF
12205/* confdefs.h. */
12206_ACEOF
12207cat confdefs.h >>conftest.$ac_ext
12208cat >>conftest.$ac_ext <<_ACEOF
12209/* end confdefs.h. */
4e8d927d 12210$ac_includes_default
bec39cab 12211int
46711df8
MK
12212main ()
12213{
b4e70030 12214if ((long *) 0)
4e8d927d 12215 return 0;
b4e70030 12216if (sizeof (long))
4e8d927d 12217 return 0;
a3828db0
MK
12218 ;
12219 return 0;
46711df8 12220}
bec39cab 12221_ACEOF
a3828db0
MK
12222rm -f conftest.$ac_objext
12223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224 (eval $ac_compile) 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } &&
b4e70030
JB
12231 { ac_try='test -z "$ac_c_werror_flag"
12232 || test ! -s conftest.err'
a3828db0
MK
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
bec39cab
AC
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12237 (exit $ac_status); }; } &&
12238 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
4e8d927d 12244 ac_cv_type_long=yes
46711df8 12245else
a3828db0 12246 echo "$as_me: failed program was:" >&5
bec39cab
AC
12247sed 's/^/| /' conftest.$ac_ext >&5
12248
b4e70030 12249ac_cv_type_long=no
46711df8 12250fi
4e8d927d 12251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12252fi
b4e70030
JB
12253echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12254echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12255
b4e70030
JB
12256echo "$as_me:$LINENO: checking size of long" >&5
12257echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12258if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12259 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12260else
4e8d927d 12261 if test "$ac_cv_type_long" = yes; then
b4e70030 12262 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12265 # This bug is HP SR number 8606223364.
12266 if test "$cross_compiling" = yes; then
12267 # Depending upon the size, compute the lo and hi bounds.
12268cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12269/* confdefs.h. */
12270_ACEOF
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h. */
4e8d927d 12274$ac_includes_default
4e8d927d
DJ
12275int
12276main ()
12277{
b4e70030 12278static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12279test_array [0] = 0
a3828db0 12280
4e8d927d
DJ
12281 ;
12282 return 0;
12283}
bec39cab
AC
12284_ACEOF
12285rm -f conftest.$ac_objext
12286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287 (eval $ac_compile) 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
b4e70030
JB
12294 { ac_try='test -z "$ac_c_werror_flag"
12295 || test ! -s conftest.err'
bec39cab
AC
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
12301 { ac_try='test -s conftest.$ac_objext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
4e8d927d
DJ
12307 ac_lo=0 ac_mid=0
12308 while :; do
12309 cat >conftest.$ac_ext <<_ACEOF
12310/* confdefs.h. */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h. */
12315$ac_includes_default
4e8d927d
DJ
12316int
12317main ()
12318{
b4e70030 12319static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12320test_array [0] = 0
12321
12322 ;
12323 return 0;
12324}
12325_ACEOF
12326rm -f conftest.$ac_objext
12327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12328 (eval $ac_compile) 2>conftest.er1
12329 ac_status=$?
12330 grep -v '^ *+' conftest.er1 >conftest.err
12331 rm -f conftest.er1
12332 cat conftest.err >&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
b4e70030
JB
12335 { ac_try='test -z "$ac_c_werror_flag"
12336 || test ! -s conftest.err'
4e8d927d
DJ
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest.$ac_objext'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 ac_hi=$ac_mid; break
12349else
12350 echo "$as_me: failed program was:" >&5
12351sed 's/^/| /' conftest.$ac_ext >&5
12352
b4e70030
JB
12353ac_lo=`expr $ac_mid + 1`
12354 if test $ac_lo -le $ac_mid; then
12355 ac_lo= ac_hi=
12356 break
12357 fi
12358 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12359fi
4e8d927d
DJ
12360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12361 done
12362else
12363 echo "$as_me: failed program was:" >&5
12364sed 's/^/| /' conftest.$ac_ext >&5
12365
b4e70030 12366cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12367/* confdefs.h. */
12368_ACEOF
12369cat confdefs.h >>conftest.$ac_ext
12370cat >>conftest.$ac_ext <<_ACEOF
12371/* end confdefs.h. */
12372$ac_includes_default
4e8d927d
DJ
12373int
12374main ()
12375{
b4e70030 12376static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
12377test_array [0] = 0
12378
12379 ;
12380 return 0;
12381}
12382_ACEOF
12383rm -f conftest.$ac_objext
12384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12385 (eval $ac_compile) 2>conftest.er1
12386 ac_status=$?
12387 grep -v '^ *+' conftest.er1 >conftest.err
12388 rm -f conftest.er1
12389 cat conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
b4e70030
JB
12392 { ac_try='test -z "$ac_c_werror_flag"
12393 || test ! -s conftest.err'
4e8d927d
DJ
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; } &&
12399 { ac_try='test -s conftest.$ac_objext'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
12405 ac_hi=-1 ac_mid=-1
12406 while :; do
12407 cat >conftest.$ac_ext <<_ACEOF
12408/* confdefs.h. */
12409_ACEOF
12410cat confdefs.h >>conftest.$ac_ext
12411cat >>conftest.$ac_ext <<_ACEOF
12412/* end confdefs.h. */
12413$ac_includes_default
4e8d927d
DJ
12414int
12415main ()
12416{
b4e70030 12417static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
12418test_array [0] = 0
12419
12420 ;
12421 return 0;
12422}
12423_ACEOF
12424rm -f conftest.$ac_objext
12425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426 (eval $ac_compile) 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
b4e70030
JB
12433 { ac_try='test -z "$ac_c_werror_flag"
12434 || test ! -s conftest.err'
4e8d927d
DJ
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_lo=$ac_mid; break
12447else
12448 echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
b4e70030
JB
12451ac_hi=`expr '(' $ac_mid ')' - 1`
12452 if test $ac_mid -le $ac_hi; then
12453 ac_lo= ac_hi=
12454 break
12455 fi
12456 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12457fi
4e8d927d
DJ
12458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12459 done
12460else
12461 echo "$as_me: failed program was:" >&5
12462sed 's/^/| /' conftest.$ac_ext >&5
12463
b4e70030 12464ac_lo= ac_hi=
4e8d927d 12465fi
4e8d927d
DJ
12466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12467fi
4e8d927d
DJ
12468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12469# Binary search between lo and hi bounds.
12470while test "x$ac_lo" != "x$ac_hi"; do
12471 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12472 cat >conftest.$ac_ext <<_ACEOF
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
12477/* end confdefs.h. */
12478$ac_includes_default
4e8d927d
DJ
12479int
12480main ()
12481{
b4e70030 12482static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12483test_array [0] = 0
12484
12485 ;
12486 return 0;
12487}
12488_ACEOF
12489rm -f conftest.$ac_objext
12490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12491 (eval $ac_compile) 2>conftest.er1
12492 ac_status=$?
12493 grep -v '^ *+' conftest.er1 >conftest.err
12494 rm -f conftest.er1
12495 cat conftest.err >&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } &&
b4e70030
JB
12498 { ac_try='test -z "$ac_c_werror_flag"
12499 || test ! -s conftest.err'
4e8d927d
DJ
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; } &&
12505 { ac_try='test -s conftest.$ac_objext'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; }; then
12511 ac_hi=$ac_mid
12512else
12513 echo "$as_me: failed program was:" >&5
12514sed 's/^/| /' conftest.$ac_ext >&5
12515
b4e70030 12516ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12517fi
4e8d927d
DJ
12518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12519done
12520case $ac_lo in
12521?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 12522'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12523See \`config.log' for more details." >&5
b4e70030 12524echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12525See \`config.log' for more details." >&2;}
b4e70030 12526 { (exit 1); exit 1; }; } ;;
4e8d927d 12527esac
b4e70030
JB
12528else
12529 if test "$cross_compiling" = yes; then
12530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12531See \`config.log' for more details." >&5
12532echo "$as_me: error: cannot run test program while cross compiling
12533See \`config.log' for more details." >&2;}
12534 { (exit 1); exit 1; }; }
4e8d927d
DJ
12535else
12536 cat >conftest.$ac_ext <<_ACEOF
12537/* confdefs.h. */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
12541/* end confdefs.h. */
12542$ac_includes_default
b4e70030
JB
12543long longval () { return (long) (sizeof (long)); }
12544unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
12545#include <stdio.h>
12546#include <stdlib.h>
12547int
12548main ()
12549{
12550
12551 FILE *f = fopen ("conftest.val", "w");
12552 if (! f)
b4e70030
JB
12553 exit (1);
12554 if (((long) (sizeof (long))) < 0)
4e8d927d 12555 {
b4e70030
JB
12556 long i = longval ();
12557 if (i != ((long) (sizeof (long))))
12558 exit (1);
4e8d927d
DJ
12559 fprintf (f, "%ld\n", i);
12560 }
12561 else
12562 {
b4e70030
JB
12563 unsigned long i = ulongval ();
12564 if (i != ((long) (sizeof (long))))
12565 exit (1);
4e8d927d
DJ
12566 fprintf (f, "%lu\n", i);
12567 }
b4e70030 12568 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12569
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574rm -f conftest$ac_exeext
12575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12576 (eval $ac_link) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 ac_cv_sizeof_long=`cat conftest.val`
12586else
12587 echo "$as_me: program exited with status $ac_status" >&5
12588echo "$as_me: failed program was:" >&5
12589sed 's/^/| /' conftest.$ac_ext >&5
12590
12591( exit $ac_status )
b4e70030 12592{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12593See \`config.log' for more details." >&5
b4e70030 12594echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12595See \`config.log' for more details." >&2;}
b4e70030
JB
12596 { (exit 1); exit 1; }; }
12597fi
12598rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12599fi
4e8d927d
DJ
12600fi
12601rm -f conftest.val
12602else
12603 ac_cv_sizeof_long=0
12604fi
12605fi
b4e70030
JB
12606echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12607echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
12608cat >>confdefs.h <<_ACEOF
12609#define SIZEOF_LONG $ac_cv_sizeof_long
12610_ACEOF
12611
12612 ;;
12613esac
12614
12615if test $acx_cv_header_stdint = stddef.h; then
12616 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
12617 echo "$as_me:$LINENO: checking for int" >&5
12618echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
12619if test "${ac_cv_type_int+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621else
12622 cat >conftest.$ac_ext <<_ACEOF
12623/* confdefs.h. */
12624_ACEOF
12625cat confdefs.h >>conftest.$ac_ext
12626cat >>conftest.$ac_ext <<_ACEOF
12627/* end confdefs.h. */
12628$ac_includes_default
4e8d927d
DJ
12629int
12630main ()
12631{
b4e70030 12632if ((int *) 0)
4e8d927d 12633 return 0;
b4e70030 12634if (sizeof (int))
4e8d927d
DJ
12635 return 0;
12636 ;
12637 return 0;
12638}
12639_ACEOF
12640rm -f conftest.$ac_objext
12641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
b4e70030
JB
12649 { ac_try='test -z "$ac_c_werror_flag"
12650 || test ! -s conftest.err'
4e8d927d
DJ
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest.$ac_objext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_type_int=yes
12663else
12664 echo "$as_me: failed program was:" >&5
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
b4e70030 12667ac_cv_type_int=no
4e8d927d 12668fi
4e8d927d
DJ
12669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12670fi
b4e70030
JB
12671echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12672echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 12673
b4e70030
JB
12674echo "$as_me:$LINENO: checking size of int" >&5
12675echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
12676if test "${ac_cv_sizeof_int+set}" = set; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
12678else
12679 if test "$ac_cv_type_int" = yes; then
b4e70030 12680 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12683 # This bug is HP SR number 8606223364.
12684 if test "$cross_compiling" = yes; then
12685 # Depending upon the size, compute the lo and hi bounds.
12686cat >conftest.$ac_ext <<_ACEOF
12687/* confdefs.h. */
12688_ACEOF
12689cat confdefs.h >>conftest.$ac_ext
12690cat >>conftest.$ac_ext <<_ACEOF
12691/* end confdefs.h. */
12692$ac_includes_default
4e8d927d
DJ
12693int
12694main ()
12695{
b4e70030 12696static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
12697test_array [0] = 0
12698
12699 ;
12700 return 0;
12701}
12702_ACEOF
12703rm -f conftest.$ac_objext
12704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705 (eval $ac_compile) 2>conftest.er1
12706 ac_status=$?
12707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
b4e70030
JB
12712 { ac_try='test -z "$ac_c_werror_flag"
12713 || test ! -s conftest.err'
4e8d927d
DJ
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; } &&
12719 { ac_try='test -s conftest.$ac_objext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 ac_lo=0 ac_mid=0
12726 while :; do
12727 cat >conftest.$ac_ext <<_ACEOF
12728/* confdefs.h. */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
12732/* end confdefs.h. */
12733$ac_includes_default
4e8d927d
DJ
12734int
12735main ()
12736{
b4e70030 12737static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
12738test_array [0] = 0
12739
12740 ;
12741 return 0;
12742}
12743_ACEOF
12744rm -f conftest.$ac_objext
12745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746 (eval $ac_compile) 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
b4e70030
JB
12753 { ac_try='test -z "$ac_c_werror_flag"
12754 || test ! -s conftest.err'
4e8d927d
DJ
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest.$ac_objext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 ac_hi=$ac_mid; break
12767else
12768 echo "$as_me: failed program was:" >&5
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
b4e70030
JB
12771ac_lo=`expr $ac_mid + 1`
12772 if test $ac_lo -le $ac_mid; then
12773 ac_lo= ac_hi=
12774 break
12775 fi
12776 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12777fi
4e8d927d
DJ
12778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12779 done
12780else
12781 echo "$as_me: failed program was:" >&5
12782sed 's/^/| /' conftest.$ac_ext >&5
12783
b4e70030 12784cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12785/* confdefs.h. */
12786_ACEOF
12787cat confdefs.h >>conftest.$ac_ext
12788cat >>conftest.$ac_ext <<_ACEOF
12789/* end confdefs.h. */
12790$ac_includes_default
4e8d927d
DJ
12791int
12792main ()
12793{
b4e70030 12794static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
12795test_array [0] = 0
12796
12797 ;
12798 return 0;
12799}
12800_ACEOF
12801rm -f conftest.$ac_objext
12802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12803 (eval $ac_compile) 2>conftest.er1
12804 ac_status=$?
12805 grep -v '^ *+' conftest.er1 >conftest.err
12806 rm -f conftest.er1
12807 cat conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } &&
b4e70030
JB
12810 { ac_try='test -z "$ac_c_werror_flag"
12811 || test ! -s conftest.err'
4e8d927d
DJ
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try='test -s conftest.$ac_objext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_hi=-1 ac_mid=-1
12824 while :; do
12825 cat >conftest.$ac_ext <<_ACEOF
12826/* confdefs.h. */
12827_ACEOF
12828cat confdefs.h >>conftest.$ac_ext
12829cat >>conftest.$ac_ext <<_ACEOF
12830/* end confdefs.h. */
12831$ac_includes_default
4e8d927d
DJ
12832int
12833main ()
12834{
b4e70030 12835static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
12836test_array [0] = 0
12837
12838 ;
12839 return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext
12843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12844 (eval $ac_compile) 2>conftest.er1
12845 ac_status=$?
12846 grep -v '^ *+' conftest.er1 >conftest.err
12847 rm -f conftest.er1
12848 cat conftest.err >&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
b4e70030
JB
12851 { ac_try='test -z "$ac_c_werror_flag"
12852 || test ! -s conftest.err'
4e8d927d
DJ
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; } &&
12858 { ac_try='test -s conftest.$ac_objext'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 ac_lo=$ac_mid; break
12865else
12866 echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
b4e70030
JB
12869ac_hi=`expr '(' $ac_mid ')' - 1`
12870 if test $ac_mid -le $ac_hi; then
12871 ac_lo= ac_hi=
12872 break
12873 fi
12874 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12875fi
4e8d927d
DJ
12876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877 done
12878else
12879 echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
b4e70030 12882ac_lo= ac_hi=
4e8d927d 12883fi
4e8d927d
DJ
12884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12885fi
4e8d927d
DJ
12886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12887# Binary search between lo and hi bounds.
12888while test "x$ac_lo" != "x$ac_hi"; do
12889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12890 cat >conftest.$ac_ext <<_ACEOF
12891/* confdefs.h. */
12892_ACEOF
12893cat confdefs.h >>conftest.$ac_ext
12894cat >>conftest.$ac_ext <<_ACEOF
12895/* end confdefs.h. */
12896$ac_includes_default
4e8d927d
DJ
12897int
12898main ()
12899{
b4e70030 12900static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
12901test_array [0] = 0
12902
12903 ;
12904 return 0;
12905}
12906_ACEOF
12907rm -f conftest.$ac_objext
12908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
b4e70030
JB
12916 { ac_try='test -z "$ac_c_werror_flag"
12917 || test ! -s conftest.err'
4e8d927d
DJ
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_hi=$ac_mid
12930else
12931 echo "$as_me: failed program was:" >&5
12932sed 's/^/| /' conftest.$ac_ext >&5
12933
b4e70030 12934ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12935fi
4e8d927d
DJ
12936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12937done
12938case $ac_lo in
12939?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 12940'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 12941See \`config.log' for more details." >&5
b4e70030 12942echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 12943See \`config.log' for more details." >&2;}
b4e70030 12944 { (exit 1); exit 1; }; } ;;
4e8d927d 12945esac
b4e70030
JB
12946else
12947 if test "$cross_compiling" = yes; then
12948 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12949See \`config.log' for more details." >&5
12950echo "$as_me: error: cannot run test program while cross compiling
12951See \`config.log' for more details." >&2;}
12952 { (exit 1); exit 1; }; }
4e8d927d
DJ
12953else
12954 cat >conftest.$ac_ext <<_ACEOF
12955/* confdefs.h. */
12956_ACEOF
12957cat confdefs.h >>conftest.$ac_ext
12958cat >>conftest.$ac_ext <<_ACEOF
12959/* end confdefs.h. */
12960$ac_includes_default
b4e70030
JB
12961long longval () { return (long) (sizeof (int)); }
12962unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
12963#include <stdio.h>
12964#include <stdlib.h>
12965int
12966main ()
12967{
12968
12969 FILE *f = fopen ("conftest.val", "w");
12970 if (! f)
b4e70030
JB
12971 exit (1);
12972 if (((long) (sizeof (int))) < 0)
4e8d927d 12973 {
b4e70030
JB
12974 long i = longval ();
12975 if (i != ((long) (sizeof (int))))
12976 exit (1);
4e8d927d
DJ
12977 fprintf (f, "%ld\n", i);
12978 }
12979 else
12980 {
b4e70030
JB
12981 unsigned long i = ulongval ();
12982 if (i != ((long) (sizeof (int))))
12983 exit (1);
4e8d927d
DJ
12984 fprintf (f, "%lu\n", i);
12985 }
b4e70030 12986 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12987
12988 ;
12989 return 0;
12990}
12991_ACEOF
12992rm -f conftest$ac_exeext
12993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12994 (eval $ac_link) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ac_cv_sizeof_int=`cat conftest.val`
13004else
13005 echo "$as_me: program exited with status $ac_status" >&5
13006echo "$as_me: failed program was:" >&5
13007sed 's/^/| /' conftest.$ac_ext >&5
13008
13009( exit $ac_status )
b4e70030 13010{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13011See \`config.log' for more details." >&5
b4e70030 13012echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13013See \`config.log' for more details." >&2;}
b4e70030
JB
13014 { (exit 1); exit 1; }; }
13015fi
13016rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13017fi
4e8d927d
DJ
13018fi
13019rm -f conftest.val
13020else
13021 ac_cv_sizeof_int=0
13022fi
13023fi
b4e70030
JB
13024echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13025echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
13026cat >>confdefs.h <<_ACEOF
13027#define SIZEOF_INT $ac_cv_sizeof_int
13028_ACEOF
13029
13030
b4e70030
JB
13031 echo "$as_me:$LINENO: checking for short" >&5
13032echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
13033if test "${ac_cv_type_short+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035else
13036 cat >conftest.$ac_ext <<_ACEOF
13037/* confdefs.h. */
13038_ACEOF
13039cat confdefs.h >>conftest.$ac_ext
13040cat >>conftest.$ac_ext <<_ACEOF
13041/* end confdefs.h. */
13042$ac_includes_default
4e8d927d
DJ
13043int
13044main ()
13045{
b4e70030 13046if ((short *) 0)
4e8d927d 13047 return 0;
b4e70030 13048if (sizeof (short))
4e8d927d
DJ
13049 return 0;
13050 ;
13051 return 0;
13052}
13053_ACEOF
13054rm -f conftest.$ac_objext
13055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
b4e70030
JB
13063 { ac_try='test -z "$ac_c_werror_flag"
13064 || test ! -s conftest.err'
4e8d927d
DJ
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest.$ac_objext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 ac_cv_type_short=yes
13077else
13078 echo "$as_me: failed program was:" >&5
13079sed 's/^/| /' conftest.$ac_ext >&5
13080
b4e70030 13081ac_cv_type_short=no
4e8d927d 13082fi
4e8d927d
DJ
13083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13084fi
b4e70030
JB
13085echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13086echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 13087
b4e70030
JB
13088echo "$as_me:$LINENO: checking size of short" >&5
13089echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
13090if test "${ac_cv_sizeof_short+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092else
13093 if test "$ac_cv_type_short" = yes; then
b4e70030 13094 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13097 # This bug is HP SR number 8606223364.
13098 if test "$cross_compiling" = yes; then
13099 # Depending upon the size, compute the lo and hi bounds.
13100cat >conftest.$ac_ext <<_ACEOF
13101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
13105/* end confdefs.h. */
13106$ac_includes_default
4e8d927d
DJ
13107int
13108main ()
13109{
b4e70030 13110static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
13111test_array [0] = 0
13112
13113 ;
13114 return 0;
13115}
13116_ACEOF
13117rm -f conftest.$ac_objext
13118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13119 (eval $ac_compile) 2>conftest.er1
13120 ac_status=$?
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
b4e70030
JB
13126 { ac_try='test -z "$ac_c_werror_flag"
13127 || test ! -s conftest.err'
4e8d927d
DJ
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest.$ac_objext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_lo=0 ac_mid=0
13140 while :; do
13141 cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
13147$ac_includes_default
4e8d927d
DJ
13148int
13149main ()
13150{
b4e70030 13151static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13152test_array [0] = 0
13153
13154 ;
13155 return 0;
13156}
13157_ACEOF
13158rm -f conftest.$ac_objext
13159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160 (eval $ac_compile) 2>conftest.er1
13161 ac_status=$?
13162 grep -v '^ *+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
b4e70030
JB
13167 { ac_try='test -z "$ac_c_werror_flag"
13168 || test ! -s conftest.err'
4e8d927d
DJ
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest.$ac_objext'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13180 ac_hi=$ac_mid; break
13181else
13182 echo "$as_me: failed program was:" >&5
13183sed 's/^/| /' conftest.$ac_ext >&5
13184
b4e70030
JB
13185ac_lo=`expr $ac_mid + 1`
13186 if test $ac_lo -le $ac_mid; then
13187 ac_lo= ac_hi=
13188 break
13189 fi
13190 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13191fi
4e8d927d
DJ
13192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13193 done
13194else
13195 echo "$as_me: failed program was:" >&5
13196sed 's/^/| /' conftest.$ac_ext >&5
13197
b4e70030 13198cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13199/* confdefs.h. */
13200_ACEOF
13201cat confdefs.h >>conftest.$ac_ext
13202cat >>conftest.$ac_ext <<_ACEOF
13203/* end confdefs.h. */
13204$ac_includes_default
4e8d927d
DJ
13205int
13206main ()
13207{
b4e70030 13208static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13209test_array [0] = 0
13210
13211 ;
13212 return 0;
13213}
13214_ACEOF
13215rm -f conftest.$ac_objext
13216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217 (eval $ac_compile) 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
b4e70030
JB
13224 { ac_try='test -z "$ac_c_werror_flag"
13225 || test ! -s conftest.err'
4e8d927d
DJ
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13237 ac_hi=-1 ac_mid=-1
13238 while :; do
13239 cat >conftest.$ac_ext <<_ACEOF
13240/* confdefs.h. */
13241_ACEOF
13242cat confdefs.h >>conftest.$ac_ext
13243cat >>conftest.$ac_ext <<_ACEOF
13244/* end confdefs.h. */
13245$ac_includes_default
4e8d927d
DJ
13246int
13247main ()
13248{
b4e70030 13249static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13250test_array [0] = 0
13251
13252 ;
13253 return 0;
13254}
13255_ACEOF
13256rm -f conftest.$ac_objext
13257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13258 (eval $ac_compile) 2>conftest.er1
13259 ac_status=$?
13260 grep -v '^ *+' conftest.er1 >conftest.err
13261 rm -f conftest.er1
13262 cat conftest.err >&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
b4e70030
JB
13265 { ac_try='test -z "$ac_c_werror_flag"
13266 || test ! -s conftest.err'
4e8d927d
DJ
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; } &&
13272 { ac_try='test -s conftest.$ac_objext'
13273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13275 ac_status=$?
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13278 ac_lo=$ac_mid; break
13279else
13280 echo "$as_me: failed program was:" >&5
13281sed 's/^/| /' conftest.$ac_ext >&5
13282
b4e70030
JB
13283ac_hi=`expr '(' $ac_mid ')' - 1`
13284 if test $ac_mid -le $ac_hi; then
13285 ac_lo= ac_hi=
13286 break
13287 fi
13288 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13289fi
4e8d927d
DJ
13290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13291 done
13292else
13293 echo "$as_me: failed program was:" >&5
13294sed 's/^/| /' conftest.$ac_ext >&5
13295
b4e70030 13296ac_lo= ac_hi=
4e8d927d 13297fi
4e8d927d
DJ
13298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13299fi
4e8d927d
DJ
13300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13301# Binary search between lo and hi bounds.
13302while test "x$ac_lo" != "x$ac_hi"; do
13303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13304 cat >conftest.$ac_ext <<_ACEOF
13305/* confdefs.h. */
13306_ACEOF
13307cat confdefs.h >>conftest.$ac_ext
13308cat >>conftest.$ac_ext <<_ACEOF
13309/* end confdefs.h. */
13310$ac_includes_default
4e8d927d
DJ
13311int
13312main ()
13313{
b4e70030 13314static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13315test_array [0] = 0
13316
13317 ;
13318 return 0;
13319}
13320_ACEOF
13321rm -f conftest.$ac_objext
13322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13323 (eval $ac_compile) 2>conftest.er1
13324 ac_status=$?
13325 grep -v '^ *+' conftest.er1 >conftest.err
13326 rm -f conftest.er1
13327 cat conftest.err >&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } &&
b4e70030
JB
13330 { ac_try='test -z "$ac_c_werror_flag"
13331 || test ! -s conftest.err'
4e8d927d
DJ
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; } &&
13337 { ac_try='test -s conftest.$ac_objext'
13338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13339 (eval $ac_try) 2>&5
13340 ac_status=$?
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; }; then
13343 ac_hi=$ac_mid
13344else
13345 echo "$as_me: failed program was:" >&5
13346sed 's/^/| /' conftest.$ac_ext >&5
13347
b4e70030 13348ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13349fi
4e8d927d
DJ
13350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13351done
13352case $ac_lo in
13353?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 13354'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13355See \`config.log' for more details." >&5
b4e70030 13356echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13357See \`config.log' for more details." >&2;}
b4e70030 13358 { (exit 1); exit 1; }; } ;;
4e8d927d 13359esac
b4e70030
JB
13360else
13361 if test "$cross_compiling" = yes; then
13362 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13363See \`config.log' for more details." >&5
13364echo "$as_me: error: cannot run test program while cross compiling
13365See \`config.log' for more details." >&2;}
13366 { (exit 1); exit 1; }; }
4e8d927d
DJ
13367else
13368 cat >conftest.$ac_ext <<_ACEOF
13369/* confdefs.h. */
13370_ACEOF
13371cat confdefs.h >>conftest.$ac_ext
13372cat >>conftest.$ac_ext <<_ACEOF
13373/* end confdefs.h. */
13374$ac_includes_default
b4e70030
JB
13375long longval () { return (long) (sizeof (short)); }
13376unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
13377#include <stdio.h>
13378#include <stdlib.h>
13379int
13380main ()
13381{
13382
13383 FILE *f = fopen ("conftest.val", "w");
13384 if (! f)
b4e70030
JB
13385 exit (1);
13386 if (((long) (sizeof (short))) < 0)
4e8d927d 13387 {
b4e70030
JB
13388 long i = longval ();
13389 if (i != ((long) (sizeof (short))))
13390 exit (1);
4e8d927d
DJ
13391 fprintf (f, "%ld\n", i);
13392 }
13393 else
13394 {
b4e70030
JB
13395 unsigned long i = ulongval ();
13396 if (i != ((long) (sizeof (short))))
13397 exit (1);
4e8d927d
DJ
13398 fprintf (f, "%lu\n", i);
13399 }
b4e70030 13400 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13401
13402 ;
13403 return 0;
13404}
13405_ACEOF
13406rm -f conftest$ac_exeext
13407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408 (eval $ac_link) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417 ac_cv_sizeof_short=`cat conftest.val`
13418else
13419 echo "$as_me: program exited with status $ac_status" >&5
13420echo "$as_me: failed program was:" >&5
13421sed 's/^/| /' conftest.$ac_ext >&5
13422
13423( exit $ac_status )
b4e70030 13424{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13425See \`config.log' for more details." >&5
b4e70030 13426echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13427See \`config.log' for more details." >&2;}
b4e70030
JB
13428 { (exit 1); exit 1; }; }
13429fi
13430rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13431fi
4e8d927d
DJ
13432fi
13433rm -f conftest.val
13434else
13435 ac_cv_sizeof_short=0
13436fi
13437fi
b4e70030
JB
13438echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13439echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
13440cat >>confdefs.h <<_ACEOF
13441#define SIZEOF_SHORT $ac_cv_sizeof_short
13442_ACEOF
13443
13444
b4e70030
JB
13445 echo "$as_me:$LINENO: checking for char" >&5
13446echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
13447if test "${ac_cv_type_char+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449else
13450 cat >conftest.$ac_ext <<_ACEOF
13451/* confdefs.h. */
13452_ACEOF
13453cat confdefs.h >>conftest.$ac_ext
13454cat >>conftest.$ac_ext <<_ACEOF
13455/* end confdefs.h. */
13456$ac_includes_default
4e8d927d
DJ
13457int
13458main ()
13459{
b4e70030 13460if ((char *) 0)
4e8d927d 13461 return 0;
b4e70030 13462if (sizeof (char))
4e8d927d
DJ
13463 return 0;
13464 ;
13465 return 0;
13466}
13467_ACEOF
13468rm -f conftest.$ac_objext
13469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13470 (eval $ac_compile) 2>conftest.er1
13471 ac_status=$?
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
b4e70030
JB
13477 { ac_try='test -z "$ac_c_werror_flag"
13478 || test ! -s conftest.err'
4e8d927d
DJ
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest.$ac_objext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 ac_cv_type_char=yes
13491else
13492 echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
b4e70030 13495ac_cv_type_char=no
4e8d927d 13496fi
4e8d927d
DJ
13497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13498fi
b4e70030
JB
13499echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13500echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 13501
b4e70030
JB
13502echo "$as_me:$LINENO: checking size of char" >&5
13503echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
13504if test "${ac_cv_sizeof_char+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13506else
13507 if test "$ac_cv_type_char" = yes; then
b4e70030 13508 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13511 # This bug is HP SR number 8606223364.
13512 if test "$cross_compiling" = yes; then
13513 # Depending upon the size, compute the lo and hi bounds.
13514cat >conftest.$ac_ext <<_ACEOF
13515/* confdefs.h. */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
13519/* end confdefs.h. */
13520$ac_includes_default
4e8d927d
DJ
13521int
13522main ()
13523{
b4e70030 13524static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
13525test_array [0] = 0
13526
13527 ;
13528 return 0;
13529}
13530_ACEOF
13531rm -f conftest.$ac_objext
13532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13533 (eval $ac_compile) 2>conftest.er1
13534 ac_status=$?
13535 grep -v '^ *+' conftest.er1 >conftest.err
13536 rm -f conftest.er1
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } &&
b4e70030
JB
13540 { ac_try='test -z "$ac_c_werror_flag"
13541 || test ! -s conftest.err'
4e8d927d
DJ
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13544 ac_status=$?
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; } &&
13547 { ac_try='test -s conftest.$ac_objext'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; }; then
13553 ac_lo=0 ac_mid=0
13554 while :; do
13555 cat >conftest.$ac_ext <<_ACEOF
13556/* confdefs.h. */
13557_ACEOF
13558cat confdefs.h >>conftest.$ac_ext
13559cat >>conftest.$ac_ext <<_ACEOF
13560/* end confdefs.h. */
13561$ac_includes_default
4e8d927d
DJ
13562int
13563main ()
13564{
b4e70030 13565static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13566test_array [0] = 0
13567
13568 ;
13569 return 0;
13570}
13571_ACEOF
13572rm -f conftest.$ac_objext
13573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
b4e70030
JB
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
4e8d927d
DJ
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_hi=$ac_mid; break
13595else
13596 echo "$as_me: failed program was:" >&5
13597sed 's/^/| /' conftest.$ac_ext >&5
13598
b4e70030
JB
13599ac_lo=`expr $ac_mid + 1`
13600 if test $ac_lo -le $ac_mid; then
13601 ac_lo= ac_hi=
13602 break
13603 fi
13604 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13605fi
4e8d927d
DJ
13606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13607 done
13608else
13609 echo "$as_me: failed program was:" >&5
13610sed 's/^/| /' conftest.$ac_ext >&5
13611
b4e70030 13612cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13613/* confdefs.h. */
13614_ACEOF
13615cat confdefs.h >>conftest.$ac_ext
13616cat >>conftest.$ac_ext <<_ACEOF
13617/* end confdefs.h. */
13618$ac_includes_default
4e8d927d
DJ
13619int
13620main ()
13621{
b4e70030 13622static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
13623test_array [0] = 0
13624
13625 ;
13626 return 0;
13627}
13628_ACEOF
13629rm -f conftest.$ac_objext
13630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13631 (eval $ac_compile) 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } &&
b4e70030
JB
13638 { ac_try='test -z "$ac_c_werror_flag"
13639 || test ! -s conftest.err'
4e8d927d
DJ
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest.$ac_objext'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }; then
13651 ac_hi=-1 ac_mid=-1
13652 while :; do
13653 cat >conftest.$ac_ext <<_ACEOF
13654/* confdefs.h. */
13655_ACEOF
13656cat confdefs.h >>conftest.$ac_ext
13657cat >>conftest.$ac_ext <<_ACEOF
13658/* end confdefs.h. */
13659$ac_includes_default
4e8d927d
DJ
13660int
13661main ()
13662{
b4e70030 13663static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
13664test_array [0] = 0
13665
13666 ;
13667 return 0;
13668}
13669_ACEOF
13670rm -f conftest.$ac_objext
13671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13672 (eval $ac_compile) 2>conftest.er1
13673 ac_status=$?
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } &&
b4e70030
JB
13679 { ac_try='test -z "$ac_c_werror_flag"
13680 || test ! -s conftest.err'
4e8d927d
DJ
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; } &&
13686 { ac_try='test -s conftest.$ac_objext'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; }; then
13692 ac_lo=$ac_mid; break
13693else
13694 echo "$as_me: failed program was:" >&5
13695sed 's/^/| /' conftest.$ac_ext >&5
13696
b4e70030
JB
13697ac_hi=`expr '(' $ac_mid ')' - 1`
13698 if test $ac_mid -le $ac_hi; then
13699 ac_lo= ac_hi=
13700 break
13701 fi
13702 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13703fi
4e8d927d
DJ
13704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13705 done
13706else
13707 echo "$as_me: failed program was:" >&5
13708sed 's/^/| /' conftest.$ac_ext >&5
13709
b4e70030 13710ac_lo= ac_hi=
4e8d927d 13711fi
4e8d927d
DJ
13712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13713fi
4e8d927d
DJ
13714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13715# Binary search between lo and hi bounds.
13716while test "x$ac_lo" != "x$ac_hi"; do
13717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13718 cat >conftest.$ac_ext <<_ACEOF
13719/* confdefs.h. */
13720_ACEOF
13721cat confdefs.h >>conftest.$ac_ext
13722cat >>conftest.$ac_ext <<_ACEOF
13723/* end confdefs.h. */
13724$ac_includes_default
4e8d927d
DJ
13725int
13726main ()
13727{
b4e70030 13728static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13729test_array [0] = 0
13730
13731 ;
13732 return 0;
13733}
13734_ACEOF
13735rm -f conftest.$ac_objext
13736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13737 (eval $ac_compile) 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
b4e70030
JB
13744 { ac_try='test -z "$ac_c_werror_flag"
13745 || test ! -s conftest.err'
4e8d927d
DJ
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest.$ac_objext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_hi=$ac_mid
13758else
13759 echo "$as_me: failed program was:" >&5
13760sed 's/^/| /' conftest.$ac_ext >&5
13761
b4e70030 13762ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13763fi
4e8d927d
DJ
13764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13765done
13766case $ac_lo in
13767?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 13768'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 13769See \`config.log' for more details." >&5
b4e70030 13770echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 13771See \`config.log' for more details." >&2;}
b4e70030 13772 { (exit 1); exit 1; }; } ;;
4e8d927d 13773esac
b4e70030
JB
13774else
13775 if test "$cross_compiling" = yes; then
13776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13777See \`config.log' for more details." >&5
13778echo "$as_me: error: cannot run test program while cross compiling
13779See \`config.log' for more details." >&2;}
13780 { (exit 1); exit 1; }; }
4e8d927d
DJ
13781else
13782 cat >conftest.$ac_ext <<_ACEOF
13783/* confdefs.h. */
13784_ACEOF
13785cat confdefs.h >>conftest.$ac_ext
13786cat >>conftest.$ac_ext <<_ACEOF
13787/* end confdefs.h. */
13788$ac_includes_default
b4e70030
JB
13789long longval () { return (long) (sizeof (char)); }
13790unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
13791#include <stdio.h>
13792#include <stdlib.h>
13793int
13794main ()
13795{
13796
13797 FILE *f = fopen ("conftest.val", "w");
13798 if (! f)
b4e70030
JB
13799 exit (1);
13800 if (((long) (sizeof (char))) < 0)
4e8d927d 13801 {
b4e70030
JB
13802 long i = longval ();
13803 if (i != ((long) (sizeof (char))))
13804 exit (1);
4e8d927d
DJ
13805 fprintf (f, "%ld\n", i);
13806 }
13807 else
13808 {
b4e70030
JB
13809 unsigned long i = ulongval ();
13810 if (i != ((long) (sizeof (char))))
13811 exit (1);
4e8d927d
DJ
13812 fprintf (f, "%lu\n", i);
13813 }
b4e70030 13814 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13815
13816 ;
13817 return 0;
13818}
13819_ACEOF
13820rm -f conftest$ac_exeext
13821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822 (eval $ac_link) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_cv_sizeof_char=`cat conftest.val`
13832else
13833 echo "$as_me: program exited with status $ac_status" >&5
13834echo "$as_me: failed program was:" >&5
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
13837( exit $ac_status )
b4e70030 13838{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 13839See \`config.log' for more details." >&5
b4e70030 13840echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 13841See \`config.log' for more details." >&2;}
b4e70030
JB
13842 { (exit 1); exit 1; }; }
13843fi
13844rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13845fi
4e8d927d
DJ
13846fi
13847rm -f conftest.val
13848else
13849 ac_cv_sizeof_char=0
13850fi
13851fi
b4e70030
JB
13852echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13853echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
13854cat >>confdefs.h <<_ACEOF
13855#define SIZEOF_CHAR $ac_cv_sizeof_char
13856_ACEOF
13857
13858
13859
b4e70030
JB
13860 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
13861echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
13862 case "$ac_cv_sizeof_char" in
13863 1) acx_cv_type_int8_t=char ;;
13864 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
13865echo "$as_me: error: no 8-bit type" >&2;}
13866 { (exit please report a bug); exit please report a bug; }; }
13867 esac
b4e70030
JB
13868 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
13869echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 13870
b4e70030
JB
13871 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
13872echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
13873 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13874 2:*) acx_cv_type_int16_t=int ;;
13875 *:2) acx_cv_type_int16_t=short ;;
13876 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
13877echo "$as_me: error: no 16-bit type" >&2;}
13878 { (exit please report a bug); exit please report a bug; }; }
13879 esac
b4e70030
JB
13880 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
13881echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 13882
b4e70030
JB
13883 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
13884echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
13885 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13886 4:*) acx_cv_type_int32_t=int ;;
13887 *:4) acx_cv_type_int32_t=long ;;
13888 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
13889echo "$as_me: error: no 32-bit type" >&2;}
13890 { (exit please report a bug); exit please report a bug; }; }
13891 esac
b4e70030
JB
13892 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
13893echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
13894fi
13895
13896# These tests are here to make the output prettier
13897
13898if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13899 case "$ac_cv_sizeof_long" in
13900 8) acx_cv_type_int64_t=long ;;
13901 esac
b4e70030
JB
13902 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
13903echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
13904 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13905echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
13906fi
13907
13908# Now we can use the above types
13909
13910if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
13911 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
13912echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
13913 case $ac_cv_sizeof_void_p in
13914 2) acx_cv_type_intptr_t=int16_t ;;
13915 4) acx_cv_type_intptr_t=int32_t ;;
13916 8) acx_cv_type_intptr_t=int64_t ;;
13917 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
13918echo "$as_me: error: no equivalent for intptr_t" >&2;}
13919 { (exit please report a bug); exit please report a bug; }; }
13920 esac
b4e70030
JB
13921 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
13922echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
13923fi
13924
13925# ----------------- done all checks, emit header -------------
b4e70030 13926 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
13927
13928
13929
13930
13931# ------------------------- #
13932# Checks for declarations. #
13933# ------------------------- #
13934
b4e70030
JB
13935echo "$as_me:$LINENO: checking whether free is declared" >&5
13936echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
13937if test "${ac_cv_have_decl_free+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939else
13940 cat >conftest.$ac_ext <<_ACEOF
13941/* confdefs.h. */
13942_ACEOF
13943cat confdefs.h >>conftest.$ac_ext
13944cat >>conftest.$ac_ext <<_ACEOF
13945/* end confdefs.h. */
13946$ac_includes_default
13947int
13948main ()
13949{
13950#ifndef free
13951 char *p = (char *) free;
4e8d927d
DJ
13952#endif
13953
13954 ;
13955 return 0;
13956}
13957_ACEOF
13958rm -f conftest.$ac_objext
13959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>conftest.er1
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
b4e70030
JB
13967 { ac_try='test -z "$ac_c_werror_flag"
13968 || test ! -s conftest.err'
4e8d927d
DJ
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; } &&
13974 { ac_try='test -s conftest.$ac_objext'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13980 ac_cv_have_decl_free=yes
13981else
13982 echo "$as_me: failed program was:" >&5
13983sed 's/^/| /' conftest.$ac_ext >&5
13984
b4e70030 13985ac_cv_have_decl_free=no
4e8d927d 13986fi
4e8d927d
DJ
13987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13988fi
b4e70030
JB
13989echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13990echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
13991if test $ac_cv_have_decl_free = yes; then
13992
13993cat >>confdefs.h <<_ACEOF
13994#define HAVE_DECL_FREE 1
13995_ACEOF
13996
13997
13998else
13999 cat >>confdefs.h <<_ACEOF
14000#define HAVE_DECL_FREE 0
14001_ACEOF
14002
14003
14004fi
b4e70030
JB
14005echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14006echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14007if test "${ac_cv_have_decl_malloc+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009else
14010 cat >conftest.$ac_ext <<_ACEOF
14011/* confdefs.h. */
14012_ACEOF
14013cat confdefs.h >>conftest.$ac_ext
14014cat >>conftest.$ac_ext <<_ACEOF
14015/* end confdefs.h. */
14016$ac_includes_default
14017int
14018main ()
14019{
14020#ifndef malloc
14021 char *p = (char *) malloc;
4e8d927d
DJ
14022#endif
14023
14024 ;
14025 return 0;
14026}
14027_ACEOF
14028rm -f conftest.$ac_objext
14029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
b4e70030
JB
14037 { ac_try='test -z "$ac_c_werror_flag"
14038 || test ! -s conftest.err'
4e8d927d
DJ
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 ac_cv_have_decl_malloc=yes
14051else
14052 echo "$as_me: failed program was:" >&5
14053sed 's/^/| /' conftest.$ac_ext >&5
14054
b4e70030 14055ac_cv_have_decl_malloc=no
4e8d927d 14056fi
4e8d927d
DJ
14057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14058fi
b4e70030
JB
14059echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14060echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
14061if test $ac_cv_have_decl_malloc = yes; then
14062
14063cat >>confdefs.h <<_ACEOF
14064#define HAVE_DECL_MALLOC 1
14065_ACEOF
14066
14067
14068else
14069 cat >>confdefs.h <<_ACEOF
14070#define HAVE_DECL_MALLOC 0
14071_ACEOF
14072
14073
14074fi
b4e70030
JB
14075echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14076echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14077if test "${ac_cv_have_decl_realloc+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14079else
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
14087int
14088main ()
14089{
14090#ifndef realloc
14091 char *p = (char *) realloc;
4e8d927d
DJ
14092#endif
14093
14094 ;
14095 return 0;
14096}
14097_ACEOF
14098rm -f conftest.$ac_objext
14099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14100 (eval $ac_compile) 2>conftest.er1
14101 ac_status=$?
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } &&
b4e70030
JB
14107 { ac_try='test -z "$ac_c_werror_flag"
14108 || test ! -s conftest.err'
4e8d927d
DJ
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } &&
14114 { ac_try='test -s conftest.$ac_objext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 ac_cv_have_decl_realloc=yes
14121else
14122 echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
b4e70030 14125ac_cv_have_decl_realloc=no
4e8d927d 14126fi
4e8d927d
DJ
14127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14128fi
b4e70030
JB
14129echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14130echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
14131if test $ac_cv_have_decl_realloc = yes; then
14132
14133cat >>confdefs.h <<_ACEOF
14134#define HAVE_DECL_REALLOC 1
14135_ACEOF
14136
14137
14138else
14139 cat >>confdefs.h <<_ACEOF
14140#define HAVE_DECL_REALLOC 0
14141_ACEOF
14142
14143
14144fi
14145
14146
b4e70030
JB
14147echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14148echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14149if test "${ac_cv_have_decl_strerror+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151else
14152 cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158$ac_includes_default
14159int
14160main ()
14161{
14162#ifndef strerror
14163 char *p = (char *) strerror;
4e8d927d
DJ
14164#endif
14165
14166 ;
14167 return 0;
14168}
14169_ACEOF
14170rm -f conftest.$ac_objext
14171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14172 (eval $ac_compile) 2>conftest.er1
14173 ac_status=$?
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
b4e70030
JB
14179 { ac_try='test -z "$ac_c_werror_flag"
14180 || test ! -s conftest.err'
4e8d927d
DJ
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest.$ac_objext'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 ac_cv_have_decl_strerror=yes
14193else
14194 echo "$as_me: failed program was:" >&5
14195sed 's/^/| /' conftest.$ac_ext >&5
14196
b4e70030 14197ac_cv_have_decl_strerror=no
4e8d927d 14198fi
4e8d927d
DJ
14199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14200fi
b4e70030
JB
14201echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14202echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14203if test $ac_cv_have_decl_strerror = yes; then
14204
14205cat >>confdefs.h <<_ACEOF
14206#define HAVE_DECL_STRERROR 1
14207_ACEOF
14208
14209
14210else
14211 cat >>confdefs.h <<_ACEOF
14212#define HAVE_DECL_STRERROR 0
14213_ACEOF
14214
14215
14216fi
b4e70030
JB
14217echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14218echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14219if test "${ac_cv_have_decl_strstr+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221else
14222 cat >conftest.$ac_ext <<_ACEOF
14223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
14228$ac_includes_default
14229int
14230main ()
14231{
14232#ifndef strstr
14233 char *p = (char *) strstr;
4e8d927d
DJ
14234#endif
14235
14236 ;
14237 return 0;
14238}
14239_ACEOF
14240rm -f conftest.$ac_objext
14241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242 (eval $ac_compile) 2>conftest.er1
14243 ac_status=$?
14244 grep -v '^ *+' conftest.er1 >conftest.err
14245 rm -f conftest.er1
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
b4e70030
JB
14249 { ac_try='test -z "$ac_c_werror_flag"
14250 || test ! -s conftest.err'
4e8d927d
DJ
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } &&
14256 { ac_try='test -s conftest.$ac_objext'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 ac_cv_have_decl_strstr=yes
14263else
14264 echo "$as_me: failed program was:" >&5
14265sed 's/^/| /' conftest.$ac_ext >&5
14266
b4e70030 14267ac_cv_have_decl_strstr=no
4e8d927d 14268fi
4e8d927d
DJ
14269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14270fi
b4e70030
JB
14271echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14272echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14273if test $ac_cv_have_decl_strstr = yes; then
14274
14275cat >>confdefs.h <<_ACEOF
14276#define HAVE_DECL_STRSTR 1
14277_ACEOF
14278
14279
14280else
14281 cat >>confdefs.h <<_ACEOF
14282#define HAVE_DECL_STRSTR 0
14283_ACEOF
14284
14285
14286fi
14287
14288
b4e70030
JB
14289echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14290echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14291if test "${ac_cv_have_decl_getopt+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293else
14294 cat >conftest.$ac_ext <<_ACEOF
14295/* confdefs.h. */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
14299/* end confdefs.h. */
14300$ac_includes_default
14301int
14302main ()
14303{
14304#ifndef getopt
14305 char *p = (char *) getopt;
4e8d927d
DJ
14306#endif
14307
14308 ;
14309 return 0;
14310}
14311_ACEOF
14312rm -f conftest.$ac_objext
14313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
b4e70030
JB
14321 { ac_try='test -z "$ac_c_werror_flag"
14322 || test ! -s conftest.err'
4e8d927d
DJ
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_cv_have_decl_getopt=yes
14335else
14336 echo "$as_me: failed program was:" >&5
14337sed 's/^/| /' conftest.$ac_ext >&5
14338
b4e70030 14339ac_cv_have_decl_getopt=no
4e8d927d 14340fi
4e8d927d
DJ
14341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14342fi
b4e70030
JB
14343echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14344echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
14345if test $ac_cv_have_decl_getopt = yes; then
14346
14347cat >>confdefs.h <<_ACEOF
14348#define HAVE_DECL_GETOPT 1
14349_ACEOF
14350
14351
14352else
14353 cat >>confdefs.h <<_ACEOF
14354#define HAVE_DECL_GETOPT 0
14355_ACEOF
14356
14357
14358fi
b4e70030
JB
14359echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14360echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14361if test "${ac_cv_have_decl_snprintf+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364 cat >conftest.$ac_ext <<_ACEOF
14365/* confdefs.h. */
14366_ACEOF
14367cat confdefs.h >>conftest.$ac_ext
14368cat >>conftest.$ac_ext <<_ACEOF
14369/* end confdefs.h. */
14370$ac_includes_default
14371int
14372main ()
14373{
14374#ifndef snprintf
14375 char *p = (char *) snprintf;
4e8d927d
DJ
14376#endif
14377
14378 ;
14379 return 0;
14380}
14381_ACEOF
14382rm -f conftest.$ac_objext
14383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
b4e70030
JB
14391 { ac_try='test -z "$ac_c_werror_flag"
14392 || test ! -s conftest.err'
4e8d927d
DJ
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; } &&
14398 { ac_try='test -s conftest.$ac_objext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_cv_have_decl_snprintf=yes
14405else
14406 echo "$as_me: failed program was:" >&5
14407sed 's/^/| /' conftest.$ac_ext >&5
14408
b4e70030 14409ac_cv_have_decl_snprintf=no
4e8d927d 14410fi
4e8d927d
DJ
14411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14412fi
b4e70030
JB
14413echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14414echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
14415if test $ac_cv_have_decl_snprintf = yes; then
14416
14417cat >>confdefs.h <<_ACEOF
14418#define HAVE_DECL_SNPRINTF 1
14419_ACEOF
14420
14421
14422else
14423 cat >>confdefs.h <<_ACEOF
14424#define HAVE_DECL_SNPRINTF 0
14425_ACEOF
14426
14427
14428fi
b4e70030
JB
14429echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14430echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14431if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14433else
14434 cat >conftest.$ac_ext <<_ACEOF
14435/* confdefs.h. */
14436_ACEOF
14437cat confdefs.h >>conftest.$ac_ext
14438cat >>conftest.$ac_ext <<_ACEOF
14439/* end confdefs.h. */
14440$ac_includes_default
14441int
14442main ()
14443{
14444#ifndef vsnprintf
14445 char *p = (char *) vsnprintf;
4e8d927d
DJ
14446#endif
14447
14448 ;
14449 return 0;
14450}
14451_ACEOF
14452rm -f conftest.$ac_objext
14453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14454 (eval $ac_compile) 2>conftest.er1
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
b4e70030
JB
14461 { ac_try='test -z "$ac_c_werror_flag"
14462 || test ! -s conftest.err'
4e8d927d
DJ
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; } &&
14468 { ac_try='test -s conftest.$ac_objext'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
14474 ac_cv_have_decl_vsnprintf=yes
14475else
14476 echo "$as_me: failed program was:" >&5
14477sed 's/^/| /' conftest.$ac_ext >&5
14478
b4e70030 14479ac_cv_have_decl_vsnprintf=no
4e8d927d 14480fi
4e8d927d
DJ
14481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14482fi
b4e70030
JB
14483echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14484echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
14485if test $ac_cv_have_decl_vsnprintf = yes; then
14486
14487cat >>confdefs.h <<_ACEOF
14488#define HAVE_DECL_VSNPRINTF 1
14489_ACEOF
14490
14491
14492else
14493 cat >>confdefs.h <<_ACEOF
14494#define HAVE_DECL_VSNPRINTF 0
14495_ACEOF
14496
14497
14498fi
14499
14500
14501
14502# ----------------------- #
14503# Checks for structures. #
14504# ----------------------- #
14505
b4e70030
JB
14506echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14507echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
14508if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510else
14511 cat >conftest.$ac_ext <<_ACEOF
14512/* confdefs.h. */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
14516/* end confdefs.h. */
14517$ac_includes_default
14518int
14519main ()
14520{
14521static struct stat ac_aggr;
14522if (ac_aggr.st_blocks)
14523return 0;
14524 ;
14525 return 0;
14526}
14527_ACEOF
14528rm -f conftest.$ac_objext
14529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14530 (eval $ac_compile) 2>conftest.er1
14531 ac_status=$?
14532 grep -v '^ *+' conftest.er1 >conftest.err
14533 rm -f conftest.er1
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } &&
b4e70030
JB
14537 { ac_try='test -z "$ac_c_werror_flag"
14538 || test ! -s conftest.err'
4e8d927d
DJ
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; } &&
14544 { ac_try='test -s conftest.$ac_objext'
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }; then
14550 ac_cv_member_struct_stat_st_blocks=yes
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
14562int
14563main ()
14564{
14565static struct stat ac_aggr;
14566if (sizeof ac_aggr.st_blocks)
14567return 0;
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_cv_member_struct_stat_st_blocks=yes
14595else
14596 echo "$as_me: failed program was:" >&5
14597sed 's/^/| /' conftest.$ac_ext >&5
14598
b4e70030 14599ac_cv_member_struct_stat_st_blocks=no
4e8d927d 14600fi
4e8d927d
DJ
14601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14602fi
4e8d927d
DJ
14603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14604fi
b4e70030
JB
14605echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14606echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
14607if test $ac_cv_member_struct_stat_st_blocks = yes; then
14608
14609cat >>confdefs.h <<_ACEOF
14610#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14611_ACEOF
14612
14613
14614fi
14615
b4e70030
JB
14616echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14617echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
14618if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620else
14621 cat >conftest.$ac_ext <<_ACEOF
14622/* confdefs.h. */
14623_ACEOF
14624cat confdefs.h >>conftest.$ac_ext
14625cat >>conftest.$ac_ext <<_ACEOF
14626/* end confdefs.h. */
14627$ac_includes_default
14628int
14629main ()
14630{
14631static struct stat ac_aggr;
14632if (ac_aggr.st_blksize)
14633return 0;
14634 ;
14635 return 0;
14636}
14637_ACEOF
14638rm -f conftest.$ac_objext
14639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640 (eval $ac_compile) 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
b4e70030
JB
14647 { ac_try='test -z "$ac_c_werror_flag"
14648 || test ! -s conftest.err'
4e8d927d
DJ
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; } &&
14654 { ac_try='test -s conftest.$ac_objext'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_cv_member_struct_stat_st_blksize=yes
14661else
14662 echo "$as_me: failed program was:" >&5
14663sed 's/^/| /' conftest.$ac_ext >&5
14664
b4e70030 14665cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14666/* confdefs.h. */
14667_ACEOF
14668cat confdefs.h >>conftest.$ac_ext
14669cat >>conftest.$ac_ext <<_ACEOF
14670/* end confdefs.h. */
14671$ac_includes_default
14672int
14673main ()
14674{
14675static struct stat ac_aggr;
14676if (sizeof ac_aggr.st_blksize)
14677return 0;
14678 ;
14679 return 0;
14680}
14681_ACEOF
14682rm -f conftest.$ac_objext
14683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
b4e70030
JB
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
4e8d927d
DJ
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_cv_member_struct_stat_st_blksize=yes
14705else
14706 echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
b4e70030 14709ac_cv_member_struct_stat_st_blksize=no
4e8d927d 14710fi
4e8d927d
DJ
14711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14712fi
4e8d927d
DJ
14713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14714fi
b4e70030
JB
14715echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14716echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
14717if test $ac_cv_member_struct_stat_st_blksize = yes; then
14718
14719cat >>confdefs.h <<_ACEOF
14720#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14721_ACEOF
14722
14723
14724fi
14725
14726
14727# ------------------ #
14728# Checks for types. #
14729# ------------------ #
14730
b4e70030
JB
14731echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14732echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
14733if test "${ac_cv_type_signal+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14735else
14736 cat >conftest.$ac_ext <<_ACEOF
14737/* confdefs.h. */
14738_ACEOF
14739cat confdefs.h >>conftest.$ac_ext
14740cat >>conftest.$ac_ext <<_ACEOF
14741/* end confdefs.h. */
14742#include <sys/types.h>
14743#include <signal.h>
b4e70030
JB
14744#ifdef signal
14745# undef signal
14746#endif
14747#ifdef __cplusplus
14748extern "C" void (*signal (int, void (*)(int)))(int);
14749#else
14750void (*signal ()) ();
14751#endif
4e8d927d
DJ
14752
14753int
14754main ()
14755{
b4e70030 14756int i;
4e8d927d
DJ
14757 ;
14758 return 0;
14759}
14760_ACEOF
14761rm -f conftest.$ac_objext
14762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14763 (eval $ac_compile) 2>conftest.er1
14764 ac_status=$?
14765 grep -v '^ *+' conftest.er1 >conftest.err
14766 rm -f conftest.er1
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } &&
b4e70030
JB
14770 { ac_try='test -z "$ac_c_werror_flag"
14771 || test ! -s conftest.err'
4e8d927d
DJ
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; } &&
14777 { ac_try='test -s conftest.$ac_objext'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
b4e70030 14783 ac_cv_type_signal=void
4e8d927d
DJ
14784else
14785 echo "$as_me: failed program was:" >&5
14786sed 's/^/| /' conftest.$ac_ext >&5
14787
b4e70030 14788ac_cv_type_signal=int
4e8d927d 14789fi
4e8d927d
DJ
14790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14791fi
b4e70030
JB
14792echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14793echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
14794
14795cat >>confdefs.h <<_ACEOF
14796#define RETSIGTYPE $ac_cv_type_signal
14797_ACEOF
14798
14799
b4e70030
JB
14800echo "$as_me:$LINENO: checking for socklen_t" >&5
14801echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
14802if test "${ac_cv_type_socklen_t+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804else
14805 cat >conftest.$ac_ext <<_ACEOF
14806/* confdefs.h. */
14807_ACEOF
14808cat confdefs.h >>conftest.$ac_ext
14809cat >>conftest.$ac_ext <<_ACEOF
14810/* end confdefs.h. */
14811#include <sys/types.h>
14812#include <sys/socket.h>
14813
14814
4e8d927d
DJ
14815int
14816main ()
14817{
b4e70030 14818if ((socklen_t *) 0)
4e8d927d 14819 return 0;
b4e70030 14820if (sizeof (socklen_t))
4e8d927d
DJ
14821 return 0;
14822 ;
14823 return 0;
14824}
14825_ACEOF
14826rm -f conftest.$ac_objext
14827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14828 (eval $ac_compile) 2>conftest.er1
14829 ac_status=$?
14830 grep -v '^ *+' conftest.er1 >conftest.err
14831 rm -f conftest.er1
14832 cat conftest.err >&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } &&
b4e70030
JB
14835 { ac_try='test -z "$ac_c_werror_flag"
14836 || test ! -s conftest.err'
4e8d927d
DJ
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; } &&
14842 { ac_try='test -s conftest.$ac_objext'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
14848 ac_cv_type_socklen_t=yes
14849else
14850 echo "$as_me: failed program was:" >&5
14851sed 's/^/| /' conftest.$ac_ext >&5
14852
b4e70030 14853ac_cv_type_socklen_t=no
4e8d927d 14854fi
4e8d927d
DJ
14855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14856fi
b4e70030
JB
14857echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14858echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
14859if test $ac_cv_type_socklen_t = yes; then
14860
14861cat >>confdefs.h <<_ACEOF
14862#define HAVE_SOCKLEN_T 1
14863_ACEOF
14864
14865
14866fi
14867
b4e70030
JB
14868echo "$as_me:$LINENO: checking for uintptr_t" >&5
14869echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
14870if test "${ac_cv_type_uintptr_t+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14872else
14873 cat >conftest.$ac_ext <<_ACEOF
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
14879#include <stdint.h>
14880
4e8d927d
DJ
14881int
14882main ()
14883{
b4e70030 14884if ((uintptr_t *) 0)
4e8d927d 14885 return 0;
b4e70030 14886if (sizeof (uintptr_t))
4e8d927d
DJ
14887 return 0;
14888 ;
14889 return 0;
14890}
14891_ACEOF
14892rm -f conftest.$ac_objext
14893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14894 (eval $ac_compile) 2>conftest.er1
14895 ac_status=$?
14896 grep -v '^ *+' conftest.er1 >conftest.err
14897 rm -f conftest.er1
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
b4e70030
JB
14901 { ac_try='test -z "$ac_c_werror_flag"
14902 || test ! -s conftest.err'
4e8d927d
DJ
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try='test -s conftest.$ac_objext'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_cv_type_uintptr_t=yes
14915else
14916 echo "$as_me: failed program was:" >&5
14917sed 's/^/| /' conftest.$ac_ext >&5
14918
b4e70030 14919ac_cv_type_uintptr_t=no
4e8d927d 14920fi
4e8d927d
DJ
14921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14922fi
b4e70030
JB
14923echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14924echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
14925if test $ac_cv_type_uintptr_t = yes; then
14926
14927cat >>confdefs.h <<_ACEOF
14928#define HAVE_UINTPTR_T 1
14929_ACEOF
14930
14931
14932fi
14933
14934
14935# ------------------------------------- #
14936# Checks for compiler characteristics. #
14937# ------------------------------------- #
14938
b4e70030
JB
14939echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14940echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
14941if test "${ac_cv_c_const+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943else
14944 cat >conftest.$ac_ext <<_ACEOF
14945/* confdefs.h. */
14946_ACEOF
14947cat confdefs.h >>conftest.$ac_ext
14948cat >>conftest.$ac_ext <<_ACEOF
14949/* end confdefs.h. */
14950
14951int
14952main ()
14953{
14954/* FIXME: Include the comments suggested by Paul. */
14955#ifndef __cplusplus
14956 /* Ultrix mips cc rejects this. */
14957 typedef int charset[2];
14958 const charset x;
14959 /* SunOS 4.1.1 cc rejects this. */
14960 char const *const *ccp;
14961 char **p;
14962 /* NEC SVR4.0.2 mips cc rejects this. */
14963 struct point {int x, y;};
14964 static struct point const zero = {0,0};
14965 /* AIX XL C 1.02.0.0 rejects this.
14966 It does not let you subtract one const X* pointer from another in
14967 an arm of an if-expression whose if-part is not a constant
14968 expression */
14969 const char *g = "string";
14970 ccp = &g + (g ? g-g : 0);
14971 /* HPUX 7.0 cc rejects these. */
14972 ++ccp;
14973 p = (char**) ccp;
14974 ccp = (char const *const *) p;
14975 { /* SCO 3.2v4 cc rejects this. */
14976 char *t;
14977 char const *s = 0 ? (char *) 0 : (char const *) 0;
14978
14979 *t++ = 0;
4e8d927d
DJ
14980 }
14981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14982 int x[] = {25, 17};
14983 const int *foo = &x[0];
14984 ++foo;
14985 }
14986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14987 typedef const int *iptr;
14988 iptr p = 0;
14989 ++p;
14990 }
14991 { /* AIX XL C 1.02.0.0 rejects this saying
14992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14993 struct s { int j; const int *ap[3]; };
14994 struct s *b; b->j = 5;
14995 }
14996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14997 const int foo = 10;
4e8d927d 14998 }
4e8d927d
DJ
14999#endif
15000
15001 ;
15002 return 0;
15003}
15004_ACEOF
15005rm -f conftest.$ac_objext
15006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15007 (eval $ac_compile) 2>conftest.er1
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } &&
b4e70030
JB
15014 { ac_try='test -z "$ac_c_werror_flag"
15015 || test ! -s conftest.err'
4e8d927d
DJ
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; } &&
15021 { ac_try='test -s conftest.$ac_objext'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 ac_cv_c_const=yes
15028else
15029 echo "$as_me: failed program was:" >&5
15030sed 's/^/| /' conftest.$ac_ext >&5
15031
b4e70030 15032ac_cv_c_const=no
4e8d927d 15033fi
4e8d927d
DJ
15034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15035fi
b4e70030
JB
15036echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15037echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
15038if test $ac_cv_c_const = no; then
15039
15040cat >>confdefs.h <<\_ACEOF
15041#define const
15042_ACEOF
15043
15044fi
15045
b4e70030
JB
15046echo "$as_me:$LINENO: checking for inline" >&5
15047echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
15048if test "${ac_cv_c_inline+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
15050else
15051 ac_cv_c_inline=no
15052for ac_kw in inline __inline__ __inline; do
15053 cat >conftest.$ac_ext <<_ACEOF
15054/* confdefs.h. */
15055_ACEOF
15056cat confdefs.h >>conftest.$ac_ext
15057cat >>conftest.$ac_ext <<_ACEOF
15058/* end confdefs.h. */
15059#ifndef __cplusplus
15060typedef int foo_t;
15061static $ac_kw foo_t static_foo () {return 0; }
15062$ac_kw foo_t foo () {return 0; }
15063#endif
15064
15065_ACEOF
15066rm -f conftest.$ac_objext
15067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15068 (eval $ac_compile) 2>conftest.er1
15069 ac_status=$?
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } &&
b4e70030
JB
15075 { ac_try='test -z "$ac_c_werror_flag"
15076 || test ! -s conftest.err'
4e8d927d
DJ
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } &&
15082 { ac_try='test -s conftest.$ac_objext'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
b4e70030 15088 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
15089else
15090 echo "$as_me: failed program was:" >&5
15091sed 's/^/| /' conftest.$ac_ext >&5
15092
4e8d927d 15093fi
4e8d927d 15094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
15095done
15096
15097fi
b4e70030
JB
15098echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15099echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 15100
bec39cab 15101
a3828db0
MK
15102case $ac_cv_c_inline in
15103 inline | yes) ;;
15104 *)
15105 case $ac_cv_c_inline in
15106 no) ac_val=;;
15107 *) ac_val=$ac_cv_c_inline;;
15108 esac
15109 cat >>confdefs.h <<_ACEOF
15110#ifndef __cplusplus
15111#define inline $ac_val
15112#endif
15113_ACEOF
bec39cab
AC
15114 ;;
15115esac
bec39cab 15116
74c1b268 15117
a3828db0
MK
15118# ------------------------------ #
15119# Checks for library functions. #
15120# ------------------------------ #
bec39cab 15121
a3828db0
MK
15122# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15123# for constant arguments. Useless!
b4e70030
JB
15124echo "$as_me:$LINENO: checking for working alloca.h" >&5
15125echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 15126if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128else
15129 cat >conftest.$ac_ext <<_ACEOF
15130/* confdefs.h. */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
15134/* end confdefs.h. */
a3828db0 15135#include <alloca.h>
bec39cab
AC
15136int
15137main ()
15138{
a3828db0 15139char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
15140 ;
15141 return 0;
15142}
15143_ACEOF
15144rm -f conftest.$ac_objext conftest$ac_exeext
15145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146 (eval $ac_link) 2>conftest.er1
15147 ac_status=$?
15148 grep -v '^ *+' conftest.er1 >conftest.err
15149 rm -f conftest.er1
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
b4e70030
JB
15153 { ac_try='test -z "$ac_c_werror_flag"
15154 || test ! -s conftest.err'
bec39cab
AC
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; } &&
15160 { ac_try='test -s conftest$ac_exeext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
a3828db0 15166 ac_cv_working_alloca_h=yes
bec39cab
AC
15167else
15168 echo "$as_me: failed program was:" >&5
15169sed 's/^/| /' conftest.$ac_ext >&5
15170
b4e70030 15171ac_cv_working_alloca_h=no
bec39cab
AC
15172fi
15173rm -f conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15175fi
b4e70030
JB
15176echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15177echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
15178if test $ac_cv_working_alloca_h = yes; then
15179
15180cat >>confdefs.h <<\_ACEOF
15181#define HAVE_ALLOCA_H 1
bec39cab 15182_ACEOF
74c1b268 15183
74c1b268
AC
15184fi
15185
b4e70030
JB
15186echo "$as_me:$LINENO: checking for alloca" >&5
15187echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 15188if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 15189 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 15190else
bec39cab
AC
15191 cat >conftest.$ac_ext <<_ACEOF
15192/* confdefs.h. */
15193_ACEOF
15194cat confdefs.h >>conftest.$ac_ext
15195cat >>conftest.$ac_ext <<_ACEOF
15196/* end confdefs.h. */
a3828db0
MK
15197#ifdef __GNUC__
15198# define alloca __builtin_alloca
15199#else
15200# ifdef _MSC_VER
15201# include <malloc.h>
15202# define alloca _alloca
15203# else
15204# if HAVE_ALLOCA_H
15205# include <alloca.h>
15206# else
15207# ifdef _AIX
15208 #pragma alloca
15209# else
15210# ifndef alloca /* predefined by HP cc +Olibcalls */
15211char *alloca ();
15212# endif
15213# endif
15214# endif
97bf5e38 15215# endif
a3828db0 15216#endif
97bf5e38 15217
bec39cab
AC
15218int
15219main ()
15220{
a3828db0 15221char *p = (char *) alloca (1);
bec39cab
AC
15222 ;
15223 return 0;
15224}
15225_ACEOF
a3828db0
MK
15226rm -f conftest.$ac_objext conftest$ac_exeext
15227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15228 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15229 ac_status=$?
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
b4e70030
JB
15235 { ac_try='test -z "$ac_c_werror_flag"
15236 || test ! -s conftest.err'
bec39cab
AC
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; } &&
a3828db0 15242 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15245 ac_status=$?
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
a3828db0 15248 ac_cv_func_alloca_works=yes
0200359f 15249else
bec39cab
AC
15250 echo "$as_me: failed program was:" >&5
15251sed 's/^/| /' conftest.$ac_ext >&5
0200359f 15252
b4e70030 15253ac_cv_func_alloca_works=no
0200359f 15254fi
a3828db0
MK
15255rm -f conftest.err conftest.$ac_objext \
15256 conftest$ac_exeext conftest.$ac_ext
72473524 15257fi
b4e70030
JB
15258echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15259echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 15260
a3828db0
MK
15261if test $ac_cv_func_alloca_works = yes; then
15262
15263cat >>confdefs.h <<\_ACEOF
15264#define HAVE_ALLOCA 1
bec39cab
AC
15265_ACEOF
15266
a3828db0
MK
15267else
15268 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15269# that cause trouble. Some versions do not even contain alloca or
15270# contain a buggy version. If you still want to use their alloca,
15271# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 15272
b4e70030 15273ALLOCA=alloca.$ac_objext
bec39cab 15274
a3828db0
MK
15275cat >>confdefs.h <<\_ACEOF
15276#define C_ALLOCA 1
15277_ACEOF
bec39cab 15278
a3828db0 15279
b4e70030
JB
15280echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15281echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 15282if test "${ac_cv_os_cray+set}" = set; then
bec39cab 15283 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15284else
a3828db0 15285 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15286/* confdefs.h. */
15287_ACEOF
15288cat confdefs.h >>conftest.$ac_ext
15289cat >>conftest.$ac_ext <<_ACEOF
15290/* end confdefs.h. */
b4e70030 15291#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
15292webecray
15293#else
15294wenotbecray
15295#endif
15296
15297_ACEOF
15298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15299 $EGREP "webecray" >/dev/null 2>&1; then
15300 ac_cv_os_cray=yes
15301else
15302 ac_cv_os_cray=no
15303fi
15304rm -f conftest*
15305
15306fi
b4e70030
JB
15307echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15308echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
15309if test $ac_cv_os_cray = yes; then
15310 for ac_func in _getb67 GETB67 getb67; do
15311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15312echo "$as_me:$LINENO: checking for $ac_func" >&5
15313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15314if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316else
15317 cat >conftest.$ac_ext <<_ACEOF
15318/* confdefs.h. */
15319_ACEOF
15320cat confdefs.h >>conftest.$ac_ext
15321cat >>conftest.$ac_ext <<_ACEOF
15322/* end confdefs.h. */
15323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15325#define $ac_func innocuous_$ac_func
15326
15327/* System header to define __stub macros and hopefully few prototypes,
15328 which can conflict with char $ac_func (); below.
15329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15330 <limits.h> exists even on freestanding compilers. */
15331
15332#ifdef __STDC__
15333# include <limits.h>
15334#else
15335# include <assert.h>
15336#endif
15337
15338#undef $ac_func
15339
b4e70030 15340/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
15341#ifdef __cplusplus
15342extern "C"
b4e70030 15343{
a3828db0 15344#endif
b4e70030
JB
15345/* We use char because int might match the return type of a gcc2
15346 builtin and then its argument prototype would still apply. */
a3828db0
MK
15347char $ac_func ();
15348/* The GNU C library defines this for functions which it implements
15349 to always fail with ENOSYS. Some functions are actually named
15350 something starting with __ and the normal name is an alias. */
b4e70030 15351#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 15352choke me
b4e70030
JB
15353#else
15354char (*f) () = $ac_func;
15355#endif
15356#ifdef __cplusplus
15357}
a3828db0
MK
15358#endif
15359
15360int
15361main ()
15362{
b4e70030 15363return f != $ac_func;
a3828db0
MK
15364 ;
15365 return 0;
15366}
15367_ACEOF
15368rm -f conftest.$ac_objext conftest$ac_exeext
15369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370 (eval $ac_link) 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
b4e70030
JB
15377 { ac_try='test -z "$ac_c_werror_flag"
15378 || test ! -s conftest.err'
a3828db0
MK
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; } &&
15384 { ac_try='test -s conftest$ac_exeext'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 eval "$as_ac_var=yes"
15391else
15392 echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
b4e70030 15395eval "$as_ac_var=no"
a3828db0
MK
15396fi
15397rm -f conftest.err conftest.$ac_objext \
15398 conftest$ac_exeext conftest.$ac_ext
15399fi
b4e70030
JB
15400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
15402if test `eval echo '${'$as_ac_var'}'` = yes; then
15403
15404cat >>confdefs.h <<_ACEOF
15405#define CRAY_STACKSEG_END $ac_func
15406_ACEOF
15407
15408 break
15409fi
15410
15411 done
15412fi
15413
b4e70030
JB
15414echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15415echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
15416if test "${ac_cv_c_stack_direction+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418else
15419 if test "$cross_compiling" = yes; then
15420 ac_cv_c_stack_direction=0
15421else
15422 cat >conftest.$ac_ext <<_ACEOF
15423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
15428int
15429find_stack_direction ()
15430{
15431 static char *addr = 0;
15432 auto char dummy;
15433 if (addr == 0)
15434 {
15435 addr = &dummy;
15436 return find_stack_direction ();
15437 }
15438 else
15439 return (&dummy > addr) ? 1 : -1;
15440}
15441
15442int
15443main ()
15444{
b4e70030 15445 exit (find_stack_direction () < 0);
a3828db0
MK
15446}
15447_ACEOF
15448rm -f conftest$ac_exeext
15449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15450 (eval $ac_link) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459 ac_cv_c_stack_direction=1
15460else
15461 echo "$as_me: program exited with status $ac_status" >&5
15462echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465( exit $ac_status )
15466ac_cv_c_stack_direction=-1
15467fi
b4e70030 15468rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
15469fi
15470fi
b4e70030
JB
15471echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15472echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
15473
15474cat >>confdefs.h <<_ACEOF
15475#define STACK_DIRECTION $ac_cv_c_stack_direction
15476_ACEOF
15477
15478
15479fi
15480
15481
15482
15483for ac_header in stdlib.h unistd.h
15484do
15485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15486if eval "test \"\${$as_ac_Header+set}\" = set"; then
15487 echo "$as_me:$LINENO: checking for $ac_header" >&5
15488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15489if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491fi
b4e70030
JB
15492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
15494else
15495 # Is the header compilable?
b4e70030
JB
15496echo "$as_me:$LINENO: checking $ac_header usability" >&5
15497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
15498cat >conftest.$ac_ext <<_ACEOF
15499/* confdefs.h. */
15500_ACEOF
15501cat confdefs.h >>conftest.$ac_ext
15502cat >>conftest.$ac_ext <<_ACEOF
15503/* end confdefs.h. */
15504$ac_includes_default
15505#include <$ac_header>
15506_ACEOF
15507rm -f conftest.$ac_objext
15508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509 (eval $ac_compile) 2>conftest.er1
15510 ac_status=$?
bec39cab
AC
15511 grep -v '^ *+' conftest.er1 >conftest.err
15512 rm -f conftest.er1
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
b4e70030
JB
15516 { ac_try='test -z "$ac_c_werror_flag"
15517 || test ! -s conftest.err'
bec39cab
AC
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 ac_header_compiler=yes
15530else
15531 echo "$as_me: failed program was:" >&5
15532sed 's/^/| /' conftest.$ac_ext >&5
15533
b4e70030 15534ac_header_compiler=no
bec39cab
AC
15535fi
15536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15538echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15539
15540# Is the header present?
b4e70030
JB
15541echo "$as_me:$LINENO: checking $ac_header presence" >&5
15542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15543cat >conftest.$ac_ext <<_ACEOF
15544/* confdefs.h. */
15545_ACEOF
15546cat confdefs.h >>conftest.$ac_ext
15547cat >>conftest.$ac_ext <<_ACEOF
15548/* end confdefs.h. */
15549#include <$ac_header>
15550_ACEOF
15551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } >/dev/null; then
15559 if test -s conftest.err; then
15560 ac_cpp_err=$ac_c_preproc_warn_flag
15561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15562 else
15563 ac_cpp_err=
15564 fi
15565else
15566 ac_cpp_err=yes
15567fi
15568if test -z "$ac_cpp_err"; then
15569 ac_header_preproc=yes
97bf5e38 15570else
bec39cab
AC
15571 echo "$as_me: failed program was:" >&5
15572sed 's/^/| /' conftest.$ac_ext >&5
15573
15574 ac_header_preproc=no
72473524 15575fi
bec39cab 15576rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15578echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 15579
bec39cab
AC
15580# So? What about this header?
15581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15582 yes:no: )
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15587 ac_header_preproc=yes
15588 ;;
15589 no:yes:* )
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15602 (
15603 cat <<\_ASBOX
15604## ------------------------------------------ ##
15605## Report this to the AC_PACKAGE_NAME lists. ##
15606## ------------------------------------------ ##
15607_ASBOX
15608 ) |
15609 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15610 ;;
15611esac
b4e70030
JB
15612echo "$as_me:$LINENO: checking for $ac_header" >&5
15613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15614if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15615 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15616else
bec39cab
AC
15617 eval "$as_ac_Header=\$ac_header_preproc"
15618fi
b4e70030
JB
15619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15621
15622fi
15623if test `eval echo '${'$as_ac_Header'}'` = yes; then
15624 cat >>confdefs.h <<_ACEOF
15625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15626_ACEOF
15627
15628fi
15629
15630done
15631
15632
a3828db0 15633for ac_func in getpagesize
bec39cab
AC
15634do
15635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15636echo "$as_me:$LINENO: checking for $ac_func" >&5
15637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15638if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15640else
15641 cat >conftest.$ac_ext <<_ACEOF
15642/* confdefs.h. */
15643_ACEOF
15644cat confdefs.h >>conftest.$ac_ext
15645cat >>conftest.$ac_ext <<_ACEOF
15646/* end confdefs.h. */
15647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15649#define $ac_func innocuous_$ac_func
15650
97bf5e38 15651/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15652 which can conflict with char $ac_func (); below.
15653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15654 <limits.h> exists even on freestanding compilers. */
2b2d558c 15655
bec39cab
AC
15656#ifdef __STDC__
15657# include <limits.h>
15658#else
15659# include <assert.h>
15660#endif
97bf5e38 15661
bec39cab
AC
15662#undef $ac_func
15663
b4e70030 15664/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
15665#ifdef __cplusplus
15666extern "C"
b4e70030 15667{
bec39cab 15668#endif
b4e70030
JB
15669/* We use char because int might match the return type of a gcc2
15670 builtin and then its argument prototype would still apply. */
bec39cab 15671char $ac_func ();
97bf5e38
MK
15672/* The GNU C library defines this for functions which it implements
15673 to always fail with ENOSYS. Some functions are actually named
15674 something starting with __ and the normal name is an alias. */
b4e70030 15675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 15676choke me
b4e70030
JB
15677#else
15678char (*f) () = $ac_func;
15679#endif
15680#ifdef __cplusplus
15681}
97bf5e38
MK
15682#endif
15683
bec39cab
AC
15684int
15685main ()
15686{
b4e70030 15687return f != $ac_func;
bec39cab
AC
15688 ;
15689 return 0;
15690}
15691_ACEOF
15692rm -f conftest.$ac_objext conftest$ac_exeext
15693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694 (eval $ac_link) 2>conftest.er1
15695 ac_status=$?
15696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
b4e70030
JB
15701 { ac_try='test -z "$ac_c_werror_flag"
15702 || test ! -s conftest.err'
bec39cab
AC
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest$ac_exeext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 eval "$as_ac_var=yes"
15715else
15716 echo "$as_me: failed program was:" >&5
15717sed 's/^/| /' conftest.$ac_ext >&5
15718
b4e70030 15719eval "$as_ac_var=no"
bec39cab
AC
15720fi
15721rm -f conftest.err conftest.$ac_objext \
15722 conftest$ac_exeext conftest.$ac_ext
15723fi
b4e70030
JB
15724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
15726if test `eval echo '${'$as_ac_var'}'` = yes; then
15727 cat >>confdefs.h <<_ACEOF
15728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15729_ACEOF
15730
2b2d558c 15731fi
bec39cab 15732done
2b2d558c 15733
b4e70030
JB
15734echo "$as_me:$LINENO: checking for working mmap" >&5
15735echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 15736if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 15737 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15738else
bec39cab 15739 if test "$cross_compiling" = yes; then
a3828db0 15740 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
15741else
15742 cat >conftest.$ac_ext <<_ACEOF
a3828db0 15743/* confdefs.h. */
bec39cab
AC
15744_ACEOF
15745cat confdefs.h >>conftest.$ac_ext
15746cat >>conftest.$ac_ext <<_ACEOF
15747/* end confdefs.h. */
a3828db0
MK
15748$ac_includes_default
15749/* malloc might have been renamed as rpl_malloc. */
15750#undef malloc
bec39cab 15751
a3828db0
MK
15752/* Thanks to Mike Haertel and Jim Avera for this test.
15753 Here is a matrix of mmap possibilities:
15754 mmap private not fixed
15755 mmap private fixed at somewhere currently unmapped
15756 mmap private fixed at somewhere already mapped
15757 mmap shared not fixed
15758 mmap shared fixed at somewhere currently unmapped
15759 mmap shared fixed at somewhere already mapped
15760 For private mappings, we should verify that changes cannot be read()
15761 back from the file, nor mmap's back from the file at a different
15762 address. (There have been systems where private was not correctly
15763 implemented like the infamous i386 svr4.0, and systems where the
15764 VM page cache was not coherent with the file system buffer cache
15765 like early versions of FreeBSD and possibly contemporary NetBSD.)
15766 For shared mappings, we should conversely verify that changes get
15767 propagated back to all the places they're supposed to be.
7dfa765c 15768
a3828db0
MK
15769 Grep wants private fixed already mapped.
15770 The main things grep needs to know about mmap are:
15771 * does it exist and is it safe to write into the mmap'd area
15772 * how to use it (BSD variants) */
7dfa765c 15773
a3828db0
MK
15774#include <fcntl.h>
15775#include <sys/mman.h>
7dfa765c 15776
a3828db0
MK
15777#if !STDC_HEADERS && !HAVE_STDLIB_H
15778char *malloc ();
15779#endif
7dfa765c 15780
a3828db0
MK
15781/* This mess was copied from the GNU getpagesize.h. */
15782#if !HAVE_GETPAGESIZE
15783/* Assume that all systems that can run configure have sys/param.h. */
15784# if !HAVE_SYS_PARAM_H
15785# define HAVE_SYS_PARAM_H 1
15786# endif
64bb1671 15787
a3828db0
MK
15788# ifdef _SC_PAGESIZE
15789# define getpagesize() sysconf(_SC_PAGESIZE)
15790# else /* no _SC_PAGESIZE */
15791# if HAVE_SYS_PARAM_H
15792# include <sys/param.h>
15793# ifdef EXEC_PAGESIZE
15794# define getpagesize() EXEC_PAGESIZE
15795# else /* no EXEC_PAGESIZE */
15796# ifdef NBPG
15797# define getpagesize() NBPG * CLSIZE
15798# ifndef CLSIZE
15799# define CLSIZE 1
15800# endif /* no CLSIZE */
15801# else /* no NBPG */
15802# ifdef NBPC
15803# define getpagesize() NBPC
15804# else /* no NBPC */
15805# ifdef PAGESIZE
15806# define getpagesize() PAGESIZE
15807# endif /* PAGESIZE */
15808# endif /* no NBPC */
15809# endif /* no NBPG */
15810# endif /* no EXEC_PAGESIZE */
15811# else /* no HAVE_SYS_PARAM_H */
15812# define getpagesize() 8192 /* punt totally */
15813# endif /* no HAVE_SYS_PARAM_H */
15814# endif /* no _SC_PAGESIZE */
64bb1671 15815
a3828db0 15816#endif /* no HAVE_GETPAGESIZE */
64bb1671 15817
a3828db0
MK
15818int
15819main ()
15820{
15821 char *data, *data2, *data3;
15822 int i, pagesize;
15823 int fd;
97bf5e38 15824
a3828db0
MK
15825 pagesize = getpagesize ();
15826
15827 /* First, make a file with some known garbage in it. */
15828 data = (char *) malloc (pagesize);
15829 if (!data)
b4e70030 15830 exit (1);
a3828db0
MK
15831 for (i = 0; i < pagesize; ++i)
15832 *(data + i) = rand ();
15833 umask (0);
15834 fd = creat ("conftest.mmap", 0600);
15835 if (fd < 0)
b4e70030 15836 exit (1);
a3828db0 15837 if (write (fd, data, pagesize) != pagesize)
b4e70030 15838 exit (1);
a3828db0
MK
15839 close (fd);
15840
15841 /* Next, try to mmap the file at a fixed address which already has
15842 something else allocated at it. If we can, also make sure that
15843 we see the same garbage. */
15844 fd = open ("conftest.mmap", O_RDWR);
15845 if (fd < 0)
b4e70030 15846 exit (1);
a3828db0
MK
15847 data2 = (char *) malloc (2 * pagesize);
15848 if (!data2)
b4e70030
JB
15849 exit (1);
15850 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
15851 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15852 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 15853 exit (1);
a3828db0
MK
15854 for (i = 0; i < pagesize; ++i)
15855 if (*(data + i) != *(data2 + i))
b4e70030 15856 exit (1);
a3828db0
MK
15857
15858 /* Finally, make sure that changes to the mapped area do not
15859 percolate back to the file as seen by read(). (This is a bug on
15860 some variants of i386 svr4.0.) */
15861 for (i = 0; i < pagesize; ++i)
15862 *(data2 + i) = *(data2 + i) + 1;
15863 data3 = (char *) malloc (pagesize);
15864 if (!data3)
b4e70030 15865 exit (1);
a3828db0 15866 if (read (fd, data3, pagesize) != pagesize)
b4e70030 15867 exit (1);
a3828db0
MK
15868 for (i = 0; i < pagesize; ++i)
15869 if (*(data + i) != *(data3 + i))
b4e70030 15870 exit (1);
a3828db0 15871 close (fd);
b4e70030 15872 exit (0);
97bf5e38 15873}
bec39cab
AC
15874_ACEOF
15875rm -f conftest$ac_exeext
15876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15877 (eval $ac_link) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
a3828db0 15886 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 15887else
bec39cab
AC
15888 echo "$as_me: program exited with status $ac_status" >&5
15889echo "$as_me: failed program was:" >&5
15890sed 's/^/| /' conftest.$ac_ext >&5
15891
15892( exit $ac_status )
a3828db0 15893ac_cv_func_mmap_fixed_mapped=no
0afdd437 15894fi
b4e70030 15895rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 15896fi
a3828db0 15897fi
b4e70030
JB
15898echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15899echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 15900if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
15901
15902cat >>confdefs.h <<\_ACEOF
a3828db0 15903#define HAVE_MMAP 1
bec39cab 15904_ACEOF
0afdd437
MK
15905
15906fi
a3828db0 15907rm -f conftest.mmap
0afdd437 15908
b4e70030
JB
15909echo "$as_me:$LINENO: checking for pid_t" >&5
15910echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 15911if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15913else
15914 cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h. */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h. */
a3828db0 15920$ac_includes_default
bec39cab
AC
15921int
15922main ()
15923{
b4e70030 15924if ((pid_t *) 0)
a3828db0 15925 return 0;
b4e70030 15926if (sizeof (pid_t))
a3828db0 15927 return 0;
bec39cab
AC
15928 ;
15929 return 0;
15930}
15931_ACEOF
a3828db0
MK
15932rm -f conftest.$ac_objext
15933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
b4e70030
JB
15941 { ac_try='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
bec39cab
AC
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
a3828db0 15948 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
a3828db0 15954 ac_cv_type_pid_t=yes
bec39cab
AC
15955else
15956 echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
b4e70030 15959ac_cv_type_pid_t=no
bec39cab 15960fi
a3828db0 15961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 15962fi
b4e70030
JB
15963echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15964echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
15965if test $ac_cv_type_pid_t = yes; then
15966 :
15967else
15968
15969cat >>confdefs.h <<_ACEOF
15970#define pid_t int
bec39cab 15971_ACEOF
7e89e357 15972
7e89e357
JT
15973fi
15974
bec39cab 15975
b4e70030
JB
15976
15977for ac_header in unistd.h vfork.h
7be570e7 15978do
a3828db0 15979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15980if eval "test \"\${$as_ac_Header+set}\" = set"; then
15981 echo "$as_me:$LINENO: checking for $ac_header" >&5
15982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15983if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15984 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 15985fi
b4e70030
JB
15986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15988else
a3828db0 15989 # Is the header compilable?
b4e70030
JB
15990echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 15992cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15993/* confdefs.h. */
15994_ACEOF
15995cat confdefs.h >>conftest.$ac_ext
15996cat >>conftest.$ac_ext <<_ACEOF
15997/* end confdefs.h. */
a3828db0
MK
15998$ac_includes_default
15999#include <$ac_header>
bec39cab 16000_ACEOF
a3828db0
MK
16001rm -f conftest.$ac_objext
16002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
b4e70030
JB
16010 { ac_try='test -z "$ac_c_werror_flag"
16011 || test ! -s conftest.err'
bec39cab
AC
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
a3828db0 16017 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
a3828db0 16023 ac_header_compiler=yes
bec39cab
AC
16024else
16025 echo "$as_me: failed program was:" >&5
16026sed 's/^/| /' conftest.$ac_ext >&5
16027
b4e70030 16028ac_header_compiler=no
bec39cab 16029fi
a3828db0 16030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16032echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
16033
16034# Is the header present?
b4e70030
JB
16035echo "$as_me:$LINENO: checking $ac_header presence" >&5
16036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
16037cat >conftest.$ac_ext <<_ACEOF
16038/* confdefs.h. */
16039_ACEOF
16040cat confdefs.h >>conftest.$ac_ext
16041cat >>conftest.$ac_ext <<_ACEOF
16042/* end confdefs.h. */
16043#include <$ac_header>
16044_ACEOF
16045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16047 ac_status=$?
16048 grep -v '^ *+' conftest.er1 >conftest.err
16049 rm -f conftest.er1
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } >/dev/null; then
16053 if test -s conftest.err; then
16054 ac_cpp_err=$ac_c_preproc_warn_flag
16055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16056 else
16057 ac_cpp_err=
16058 fi
16059else
16060 ac_cpp_err=yes
16061fi
16062if test -z "$ac_cpp_err"; then
16063 ac_header_preproc=yes
16064else
16065 echo "$as_me: failed program was:" >&5
16066sed 's/^/| /' conftest.$ac_ext >&5
16067
16068 ac_header_preproc=no
16069fi
16070rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16072echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
16073
16074# So? What about this header?
16075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16076 yes:no: )
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16081 ac_header_preproc=yes
16082 ;;
16083 no:yes:* )
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16087echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16091echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16096 (
16097 cat <<\_ASBOX
16098## ------------------------------------------ ##
16099## Report this to the AC_PACKAGE_NAME lists. ##
16100## ------------------------------------------ ##
16101_ASBOX
16102 ) |
16103 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
16104 ;;
16105esac
b4e70030
JB
16106echo "$as_me:$LINENO: checking for $ac_header" >&5
16107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16108if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16110else
16111 eval "$as_ac_Header=\$ac_header_preproc"
16112fi
b4e70030
JB
16113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 16115
bec39cab 16116fi
a3828db0 16117if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 16118 cat >>confdefs.h <<_ACEOF
a3828db0 16119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 16120_ACEOF
14abd0fb 16121
14abd0fb 16122fi
a3828db0 16123
14abd0fb
MK
16124done
16125
bec39cab 16126
a3828db0
MK
16127
16128for ac_func in fork vfork
14abd0fb 16129do
bec39cab 16130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16131echo "$as_me:$LINENO: checking for $ac_func" >&5
16132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16133if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16135else
16136 cat >conftest.$ac_ext <<_ACEOF
16137/* confdefs.h. */
16138_ACEOF
16139cat confdefs.h >>conftest.$ac_ext
16140cat >>conftest.$ac_ext <<_ACEOF
16141/* end confdefs.h. */
16142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16144#define $ac_func innocuous_$ac_func
16145
14abd0fb 16146/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16147 which can conflict with char $ac_func (); below.
16148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16149 <limits.h> exists even on freestanding compilers. */
16150
16151#ifdef __STDC__
16152# include <limits.h>
16153#else
16154# include <assert.h>
16155#endif
14abd0fb 16156
bec39cab 16157#undef $ac_func
14abd0fb 16158
b4e70030 16159/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16160#ifdef __cplusplus
16161extern "C"
b4e70030 16162{
bec39cab 16163#endif
b4e70030
JB
16164/* We use char because int might match the return type of a gcc2
16165 builtin and then its argument prototype would still apply. */
bec39cab 16166char $ac_func ();
14abd0fb
MK
16167/* The GNU C library defines this for functions which it implements
16168 to always fail with ENOSYS. Some functions are actually named
16169 something starting with __ and the normal name is an alias. */
b4e70030 16170#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 16171choke me
b4e70030
JB
16172#else
16173char (*f) () = $ac_func;
16174#endif
16175#ifdef __cplusplus
16176}
14abd0fb
MK
16177#endif
16178
bec39cab
AC
16179int
16180main ()
16181{
b4e70030 16182return f != $ac_func;
bec39cab
AC
16183 ;
16184 return 0;
16185}
16186_ACEOF
16187rm -f conftest.$ac_objext conftest$ac_exeext
16188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
b4e70030
JB
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
bec39cab
AC
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest$ac_exeext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 eval "$as_ac_var=yes"
16210else
16211 echo "$as_me: failed program was:" >&5
16212sed 's/^/| /' conftest.$ac_ext >&5
16213
b4e70030 16214eval "$as_ac_var=no"
bec39cab
AC
16215fi
16216rm -f conftest.err conftest.$ac_objext \
16217 conftest$ac_exeext conftest.$ac_ext
16218fi
b4e70030
JB
16219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16221if test `eval echo '${'$as_ac_var'}'` = yes; then
16222 cat >>confdefs.h <<_ACEOF
16223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16224_ACEOF
7be570e7 16225
7be570e7
JM
16226fi
16227done
16228
a3828db0 16229if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
16230 echo "$as_me:$LINENO: checking for working fork" >&5
16231echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
16232if test "${ac_cv_func_fork_works+set}" = set; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16234else
16235 if test "$cross_compiling" = yes; then
16236 ac_cv_func_fork_works=cross
16237else
16238 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
16239/* By Ruediger Kuhlmann. */
16240 #include <sys/types.h>
16241 #if HAVE_UNISTD_H
16242 # include <unistd.h>
16243 #endif
16244 /* Some systems only have a dummy stub for fork() */
16245 int main ()
16246 {
16247 if (fork() < 0)
16248 exit (1);
16249 exit (0);
16250 }
a3828db0
MK
16251_ACEOF
16252rm -f conftest$ac_exeext
16253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16254 (eval $ac_link) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; }; then
16263 ac_cv_func_fork_works=yes
16264else
16265 echo "$as_me: program exited with status $ac_status" >&5
16266echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16268
a3828db0
MK
16269( exit $ac_status )
16270ac_cv_func_fork_works=no
16271fi
b4e70030 16272rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16273fi
16274fi
b4e70030
JB
16275echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16276echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
16277
16278else
16279 ac_cv_func_fork_works=$ac_cv_func_fork
16280fi
16281if test "x$ac_cv_func_fork_works" = xcross; then
16282 case $host in
16283 *-*-amigaos* | *-*-msdosdjgpp*)
16284 # Override, as these systems have only a dummy fork() stub
16285 ac_cv_func_fork_works=no
16286 ;;
16287 *)
16288 ac_cv_func_fork_works=yes
16289 ;;
16290 esac
16291 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16292echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16293fi
16294ac_cv_func_vfork_works=$ac_cv_func_vfork
16295if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
16296 echo "$as_me:$LINENO: checking for working vfork" >&5
16297echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 16298if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 16299 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16300else
16301 if test "$cross_compiling" = yes; then
16302 ac_cv_func_vfork_works=cross
bec39cab
AC
16303else
16304 cat >conftest.$ac_ext <<_ACEOF
16305/* confdefs.h. */
16306_ACEOF
16307cat confdefs.h >>conftest.$ac_ext
16308cat >>conftest.$ac_ext <<_ACEOF
16309/* end confdefs.h. */
a3828db0 16310/* Thanks to Paul Eggert for this test. */
b4e70030
JB
16311#include <stdio.h>
16312#include <stdlib.h>
16313#include <sys/types.h>
16314#include <sys/stat.h>
a3828db0 16315#include <sys/wait.h>
b4e70030
JB
16316#if HAVE_UNISTD_H
16317# include <unistd.h>
16318#endif
a3828db0
MK
16319#if HAVE_VFORK_H
16320# include <vfork.h>
bec39cab 16321#endif
a3828db0
MK
16322/* On some sparc systems, changes by the child to local and incoming
16323 argument registers are propagated back to the parent. The compiler
16324 is told about this with #include <vfork.h>, but some compilers
16325 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16326 static variable whose address is put into a register that is
16327 clobbered by the vfork. */
16328static void
bec39cab 16329#ifdef __cplusplus
a3828db0
MK
16330sparc_address_test (int arg)
16331# else
16332sparc_address_test (arg) int arg;
c906108c 16333#endif
a3828db0
MK
16334{
16335 static pid_t child;
16336 if (!child) {
16337 child = vfork ();
16338 if (child < 0) {
16339 perror ("vfork");
16340 _exit(2);
16341 }
16342 if (!child) {
16343 arg = getpid();
16344 write(-1, "", 0);
16345 _exit (arg);
16346 }
16347 }
16348}
97bf5e38 16349
bec39cab
AC
16350int
16351main ()
16352{
a3828db0
MK
16353 pid_t parent = getpid ();
16354 pid_t child;
16355
16356 sparc_address_test (0);
16357
16358 child = vfork ();
16359
16360 if (child == 0) {
16361 /* Here is another test for sparc vfork register problems. This
16362 test uses lots of local variables, at least as many local
16363 variables as main has allocated so far including compiler
16364 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16365 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16366 reuse the register of parent for one of the local variables,
16367 since it will think that parent can't possibly be used any more
16368 in this routine. Assigning to the local variable will thus
16369 munge parent in the parent process. */
16370 pid_t
16371 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16372 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16373 /* Convince the compiler that p..p7 are live; otherwise, it might
16374 use the same hardware register for all 8 local variables. */
16375 if (p != p1 || p != p2 || p != p3 || p != p4
16376 || p != p5 || p != p6 || p != p7)
16377 _exit(1);
16378
16379 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16380 from child file descriptors. If the child closes a descriptor
16381 before it execs or exits, this munges the parent's descriptor
16382 as well. Test for this by closing stdout in the child. */
16383 _exit(close(fileno(stdout)) != 0);
16384 } else {
16385 int status;
16386 struct stat st;
16387
16388 while (wait(&status) != child)
16389 ;
b4e70030 16390 exit(
a3828db0
MK
16391 /* Was there some problem with vforking? */
16392 child < 0
16393
16394 /* Did the child fail? (This shouldn't happen.) */
16395 || status
16396
16397 /* Did the vfork/compiler bug occur? */
16398 || parent != getpid()
16399
16400 /* Did the file descriptor bug occur? */
16401 || fstat(fileno(stdout), &st) != 0
16402 );
16403 }
bec39cab
AC
16404}
16405_ACEOF
a3828db0 16406rm -f conftest$ac_exeext
bec39cab 16407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16408 (eval $ac_link) 2>&5
bec39cab
AC
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
a3828db0
MK
16417 ac_cv_func_vfork_works=yes
16418else
16419 echo "$as_me: program exited with status $ac_status" >&5
16420echo "$as_me: failed program was:" >&5
16421sed 's/^/| /' conftest.$ac_ext >&5
16422
16423( exit $ac_status )
16424ac_cv_func_vfork_works=no
16425fi
b4e70030 16426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16427fi
16428fi
b4e70030
JB
16429echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16430echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
16431
16432fi;
16433if test "x$ac_cv_func_fork_works" = xcross; then
16434 ac_cv_func_vfork_works=$ac_cv_func_vfork
16435 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16436echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16437fi
16438
16439if test "x$ac_cv_func_vfork_works" = xyes; then
16440
16441cat >>confdefs.h <<\_ACEOF
16442#define HAVE_WORKING_VFORK 1
16443_ACEOF
16444
bec39cab 16445else
bec39cab 16446
a3828db0
MK
16447cat >>confdefs.h <<\_ACEOF
16448#define vfork fork
16449_ACEOF
16450
bec39cab 16451fi
a3828db0
MK
16452if test "x$ac_cv_func_fork_works" = xyes; then
16453
16454cat >>confdefs.h <<\_ACEOF
16455#define HAVE_WORKING_FORK 1
bec39cab 16456_ACEOF
c906108c 16457
c906108c
SS
16458fi
16459
bec39cab
AC
16460
16461
a3828db0 16462for ac_func in canonicalize_file_name realpath
97bf5e38 16463do
bec39cab 16464as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16465echo "$as_me:$LINENO: checking for $ac_func" >&5
16466echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16467if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16469else
16470 cat >conftest.$ac_ext <<_ACEOF
16471/* confdefs.h. */
16472_ACEOF
16473cat confdefs.h >>conftest.$ac_ext
16474cat >>conftest.$ac_ext <<_ACEOF
16475/* end confdefs.h. */
16476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16478#define $ac_func innocuous_$ac_func
16479
d3ea6809
MM
16480/* System header to define __stub macros and hopefully few prototypes,
16481 which can conflict with char $ac_func (); below.
16482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16483 <limits.h> exists even on freestanding compilers. */
16484
16485#ifdef __STDC__
16486# include <limits.h>
16487#else
16488# include <assert.h>
16489#endif
16490
16491#undef $ac_func
16492
b4e70030 16493/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
16494#ifdef __cplusplus
16495extern "C"
b4e70030 16496{
d3ea6809 16497#endif
b4e70030
JB
16498/* We use char because int might match the return type of a gcc2
16499 builtin and then its argument prototype would still apply. */
d3ea6809
MM
16500char $ac_func ();
16501/* The GNU C library defines this for functions which it implements
16502 to always fail with ENOSYS. Some functions are actually named
16503 something starting with __ and the normal name is an alias. */
b4e70030 16504#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 16505choke me
b4e70030
JB
16506#else
16507char (*f) () = $ac_func;
16508#endif
16509#ifdef __cplusplus
16510}
d3ea6809
MM
16511#endif
16512
16513int
16514main ()
16515{
b4e70030 16516return f != $ac_func;
d3ea6809
MM
16517 ;
16518 return 0;
16519}
16520_ACEOF
16521rm -f conftest.$ac_objext conftest$ac_exeext
16522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16523 (eval $ac_link) 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
b4e70030
JB
16530 { ac_try='test -z "$ac_c_werror_flag"
16531 || test ! -s conftest.err'
d3ea6809
MM
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; } &&
16537 { ac_try='test -s conftest$ac_exeext'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 eval "$as_ac_var=yes"
16544else
16545 echo "$as_me: failed program was:" >&5
16546sed 's/^/| /' conftest.$ac_ext >&5
16547
b4e70030 16548eval "$as_ac_var=no"
d3ea6809
MM
16549fi
16550rm -f conftest.err conftest.$ac_objext \
16551 conftest$ac_exeext conftest.$ac_ext
16552fi
b4e70030
JB
16553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16554echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
16555if test `eval echo '${'$as_ac_var'}'` = yes; then
16556 cat >>confdefs.h <<_ACEOF
16557#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16558_ACEOF
16559
16560fi
16561done
16562
16563
16564
16565for ac_func in getuid getgid
16566do
16567as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16568echo "$as_me:$LINENO: checking for $ac_func" >&5
16569echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16570if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16572else
16573 cat >conftest.$ac_ext <<_ACEOF
16574/* confdefs.h. */
16575_ACEOF
16576cat confdefs.h >>conftest.$ac_ext
16577cat >>conftest.$ac_ext <<_ACEOF
16578/* end confdefs.h. */
16579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16581#define $ac_func innocuous_$ac_func
16582
97bf5e38 16583/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16584 which can conflict with char $ac_func (); below.
16585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16586 <limits.h> exists even on freestanding compilers. */
c906108c 16587
bec39cab
AC
16588#ifdef __STDC__
16589# include <limits.h>
16590#else
16591# include <assert.h>
16592#endif
97bf5e38 16593
bec39cab
AC
16594#undef $ac_func
16595
b4e70030 16596/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16597#ifdef __cplusplus
16598extern "C"
b4e70030 16599{
bec39cab 16600#endif
b4e70030
JB
16601/* We use char because int might match the return type of a gcc2
16602 builtin and then its argument prototype would still apply. */
bec39cab 16603char $ac_func ();
97bf5e38
MK
16604/* The GNU C library defines this for functions which it implements
16605 to always fail with ENOSYS. Some functions are actually named
16606 something starting with __ and the normal name is an alias. */
b4e70030 16607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16608choke me
b4e70030
JB
16609#else
16610char (*f) () = $ac_func;
16611#endif
16612#ifdef __cplusplus
16613}
c906108c 16614#endif
97bf5e38 16615
bec39cab
AC
16616int
16617main ()
16618{
b4e70030 16619return f != $ac_func;
bec39cab
AC
16620 ;
16621 return 0;
16622}
16623_ACEOF
16624rm -f conftest.$ac_objext conftest$ac_exeext
16625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16626 (eval $ac_link) 2>conftest.er1
16627 ac_status=$?
16628 grep -v '^ *+' conftest.er1 >conftest.err
16629 rm -f conftest.er1
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
b4e70030
JB
16633 { ac_try='test -z "$ac_c_werror_flag"
16634 || test ! -s conftest.err'
bec39cab
AC
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; } &&
16640 { ac_try='test -s conftest$ac_exeext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16646 eval "$as_ac_var=yes"
16647else
16648 echo "$as_me: failed program was:" >&5
16649sed 's/^/| /' conftest.$ac_ext >&5
16650
b4e70030 16651eval "$as_ac_var=no"
bec39cab
AC
16652fi
16653rm -f conftest.err conftest.$ac_objext \
16654 conftest$ac_exeext conftest.$ac_ext
16655fi
b4e70030
JB
16656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16657echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16658if test `eval echo '${'$as_ac_var'}'` = yes; then
16659 cat >>confdefs.h <<_ACEOF
16660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16661_ACEOF
c906108c 16662
c906108c 16663fi
97bf5e38 16664done
c906108c 16665
bec39cab 16666
a3828db0 16667for ac_func in poll
97bf5e38 16668do
bec39cab 16669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16670echo "$as_me:$LINENO: checking for $ac_func" >&5
16671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16672if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16674else
16675 cat >conftest.$ac_ext <<_ACEOF
16676/* confdefs.h. */
16677_ACEOF
16678cat confdefs.h >>conftest.$ac_ext
16679cat >>conftest.$ac_ext <<_ACEOF
16680/* end confdefs.h. */
16681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16683#define $ac_func innocuous_$ac_func
16684
97bf5e38 16685/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16686 which can conflict with char $ac_func (); below.
16687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16688 <limits.h> exists even on freestanding compilers. */
16689
16690#ifdef __STDC__
16691# include <limits.h>
16692#else
16693# include <assert.h>
16694#endif
c906108c 16695
bec39cab 16696#undef $ac_func
97bf5e38 16697
b4e70030 16698/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16699#ifdef __cplusplus
16700extern "C"
b4e70030 16701{
bec39cab 16702#endif
b4e70030
JB
16703/* We use char because int might match the return type of a gcc2
16704 builtin and then its argument prototype would still apply. */
bec39cab 16705char $ac_func ();
97bf5e38
MK
16706/* The GNU C library defines this for functions which it implements
16707 to always fail with ENOSYS. Some functions are actually named
16708 something starting with __ and the normal name is an alias. */
b4e70030 16709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16710choke me
b4e70030
JB
16711#else
16712char (*f) () = $ac_func;
16713#endif
16714#ifdef __cplusplus
16715}
c906108c 16716#endif
97bf5e38 16717
bec39cab
AC
16718int
16719main ()
16720{
b4e70030 16721return f != $ac_func;
bec39cab
AC
16722 ;
16723 return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext conftest$ac_exeext
16727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 (eval $ac_link) 2>conftest.er1
16729 ac_status=$?
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
b4e70030
JB
16735 { ac_try='test -z "$ac_c_werror_flag"
16736 || test ! -s conftest.err'
bec39cab
AC
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 eval "$as_ac_var=yes"
16749else
16750 echo "$as_me: failed program was:" >&5
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
b4e70030 16753eval "$as_ac_var=no"
bec39cab
AC
16754fi
16755rm -f conftest.err conftest.$ac_objext \
16756 conftest$ac_exeext conftest.$ac_ext
16757fi
b4e70030
JB
16758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16759echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16760if test `eval echo '${'$as_ac_var'}'` = yes; then
16761 cat >>confdefs.h <<_ACEOF
16762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16763_ACEOF
c906108c 16764
c906108c 16765fi
97bf5e38 16766done
c906108c 16767
bec39cab 16768
a3828db0 16769for ac_func in pread64
97bf5e38 16770do
bec39cab 16771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16772echo "$as_me:$LINENO: checking for $ac_func" >&5
16773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16774if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16776else
16777 cat >conftest.$ac_ext <<_ACEOF
16778/* confdefs.h. */
16779_ACEOF
16780cat confdefs.h >>conftest.$ac_ext
16781cat >>conftest.$ac_ext <<_ACEOF
16782/* end confdefs.h. */
16783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16785#define $ac_func innocuous_$ac_func
16786
97bf5e38 16787/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16788 which can conflict with char $ac_func (); below.
16789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16790 <limits.h> exists even on freestanding compilers. */
16791
16792#ifdef __STDC__
16793# include <limits.h>
16794#else
16795# include <assert.h>
16796#endif
c906108c 16797
bec39cab 16798#undef $ac_func
97bf5e38 16799
b4e70030 16800/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16801#ifdef __cplusplus
16802extern "C"
b4e70030 16803{
bec39cab 16804#endif
b4e70030
JB
16805/* We use char because int might match the return type of a gcc2
16806 builtin and then its argument prototype would still apply. */
bec39cab 16807char $ac_func ();
97bf5e38
MK
16808/* The GNU C library defines this for functions which it implements
16809 to always fail with ENOSYS. Some functions are actually named
16810 something starting with __ and the normal name is an alias. */
b4e70030 16811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16812choke me
b4e70030
JB
16813#else
16814char (*f) () = $ac_func;
16815#endif
16816#ifdef __cplusplus
16817}
c906108c 16818#endif
97bf5e38 16819
bec39cab
AC
16820int
16821main ()
16822{
b4e70030 16823return f != $ac_func;
bec39cab
AC
16824 ;
16825 return 0;
16826}
16827_ACEOF
16828rm -f conftest.$ac_objext conftest$ac_exeext
16829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16830 (eval $ac_link) 2>conftest.er1
16831 ac_status=$?
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
b4e70030
JB
16837 { ac_try='test -z "$ac_c_werror_flag"
16838 || test ! -s conftest.err'
bec39cab
AC
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; } &&
16844 { ac_try='test -s conftest$ac_exeext'
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 eval "$as_ac_var=yes"
16851else
16852 echo "$as_me: failed program was:" >&5
16853sed 's/^/| /' conftest.$ac_ext >&5
16854
b4e70030 16855eval "$as_ac_var=no"
bec39cab
AC
16856fi
16857rm -f conftest.err conftest.$ac_objext \
16858 conftest$ac_exeext conftest.$ac_ext
16859fi
b4e70030
JB
16860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16862if test `eval echo '${'$as_ac_var'}'` = yes; then
16863 cat >>confdefs.h <<_ACEOF
16864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16865_ACEOF
c906108c 16866
c906108c 16867fi
97bf5e38 16868done
c906108c 16869
bec39cab 16870
a3828db0 16871for ac_func in sbrk
b757528f 16872do
bec39cab 16873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16874echo "$as_me:$LINENO: checking for $ac_func" >&5
16875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16876if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16878else
16879 cat >conftest.$ac_ext <<_ACEOF
16880/* confdefs.h. */
16881_ACEOF
16882cat confdefs.h >>conftest.$ac_ext
16883cat >>conftest.$ac_ext <<_ACEOF
16884/* end confdefs.h. */
16885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16887#define $ac_func innocuous_$ac_func
16888
b757528f 16889/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16890 which can conflict with char $ac_func (); below.
16891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16892 <limits.h> exists even on freestanding compilers. */
16893
16894#ifdef __STDC__
16895# include <limits.h>
16896#else
16897# include <assert.h>
16898#endif
b757528f 16899
bec39cab 16900#undef $ac_func
b757528f 16901
b4e70030 16902/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16903#ifdef __cplusplus
16904extern "C"
b4e70030 16905{
bec39cab 16906#endif
b4e70030
JB
16907/* We use char because int might match the return type of a gcc2
16908 builtin and then its argument prototype would still apply. */
bec39cab 16909char $ac_func ();
b757528f
JJ
16910/* The GNU C library defines this for functions which it implements
16911 to always fail with ENOSYS. Some functions are actually named
16912 something starting with __ and the normal name is an alias. */
b4e70030 16913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 16914choke me
b4e70030
JB
16915#else
16916char (*f) () = $ac_func;
16917#endif
16918#ifdef __cplusplus
16919}
b757528f
JJ
16920#endif
16921
bec39cab
AC
16922int
16923main ()
16924{
b4e70030 16925return f != $ac_func;
bec39cab
AC
16926 ;
16927 return 0;
16928}
16929_ACEOF
16930rm -f conftest.$ac_objext conftest$ac_exeext
16931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932 (eval $ac_link) 2>conftest.er1
16933 ac_status=$?
16934 grep -v '^ *+' conftest.er1 >conftest.err
16935 rm -f conftest.er1
16936 cat conftest.err >&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
b4e70030
JB
16939 { ac_try='test -z "$ac_c_werror_flag"
16940 || test ! -s conftest.err'
bec39cab
AC
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; } &&
16946 { ac_try='test -s conftest$ac_exeext'
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
16952 eval "$as_ac_var=yes"
16953else
16954 echo "$as_me: failed program was:" >&5
16955sed 's/^/| /' conftest.$ac_ext >&5
16956
b4e70030 16957eval "$as_ac_var=no"
bec39cab
AC
16958fi
16959rm -f conftest.err conftest.$ac_objext \
16960 conftest$ac_exeext conftest.$ac_ext
16961fi
b4e70030
JB
16962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16964if test `eval echo '${'$as_ac_var'}'` = yes; then
16965 cat >>confdefs.h <<_ACEOF
16966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16967_ACEOF
b757528f 16968
b757528f
JJ
16969fi
16970done
16971
bec39cab 16972
a3828db0
MK
16973
16974for ac_func in setpgid setpgrp
bcb3dc3d 16975do
bec39cab 16976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16977echo "$as_me:$LINENO: checking for $ac_func" >&5
16978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16979if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981else
16982 cat >conftest.$ac_ext <<_ACEOF
16983/* confdefs.h. */
16984_ACEOF
16985cat confdefs.h >>conftest.$ac_ext
16986cat >>conftest.$ac_ext <<_ACEOF
16987/* end confdefs.h. */
16988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16990#define $ac_func innocuous_$ac_func
16991
bcb3dc3d 16992/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16993 which can conflict with char $ac_func (); below.
16994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16995 <limits.h> exists even on freestanding compilers. */
16996
16997#ifdef __STDC__
16998# include <limits.h>
16999#else
17000# include <assert.h>
17001#endif
bcb3dc3d 17002
bec39cab 17003#undef $ac_func
bcb3dc3d 17004
b4e70030 17005/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17006#ifdef __cplusplus
17007extern "C"
b4e70030 17008{
bec39cab 17009#endif
b4e70030
JB
17010/* We use char because int might match the return type of a gcc2
17011 builtin and then its argument prototype would still apply. */
bec39cab 17012char $ac_func ();
bcb3dc3d
MK
17013/* The GNU C library defines this for functions which it implements
17014 to always fail with ENOSYS. Some functions are actually named
17015 something starting with __ and the normal name is an alias. */
b4e70030 17016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 17017choke me
b4e70030
JB
17018#else
17019char (*f) () = $ac_func;
17020#endif
17021#ifdef __cplusplus
17022}
bcb3dc3d
MK
17023#endif
17024
bec39cab
AC
17025int
17026main ()
17027{
b4e70030 17028return f != $ac_func;
bec39cab
AC
17029 ;
17030 return 0;
17031}
17032_ACEOF
17033rm -f conftest.$ac_objext conftest$ac_exeext
17034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
b4e70030
JB
17042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
bec39cab
AC
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 eval "$as_ac_var=yes"
17056else
17057 echo "$as_me: failed program was:" >&5
17058sed 's/^/| /' conftest.$ac_ext >&5
17059
b4e70030 17060eval "$as_ac_var=no"
bec39cab
AC
17061fi
17062rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064fi
b4e70030
JB
17065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17067if test `eval echo '${'$as_ac_var'}'` = yes; then
17068 cat >>confdefs.h <<_ACEOF
17069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17070_ACEOF
bcb3dc3d 17071
bcb3dc3d
MK
17072fi
17073done
17074
bec39cab 17075
a3828db0
MK
17076
17077
17078for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 17079do
bec39cab 17080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17081echo "$as_me:$LINENO: checking for $ac_func" >&5
17082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17083if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085else
17086 cat >conftest.$ac_ext <<_ACEOF
17087/* confdefs.h. */
17088_ACEOF
17089cat confdefs.h >>conftest.$ac_ext
17090cat >>conftest.$ac_ext <<_ACEOF
17091/* end confdefs.h. */
17092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17094#define $ac_func innocuous_$ac_func
17095
8b9cf735 17096/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17097 which can conflict with char $ac_func (); below.
17098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17099 <limits.h> exists even on freestanding compilers. */
17100
17101#ifdef __STDC__
17102# include <limits.h>
17103#else
17104# include <assert.h>
17105#endif
8b9cf735 17106
bec39cab 17107#undef $ac_func
8b9cf735 17108
b4e70030 17109/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17110#ifdef __cplusplus
17111extern "C"
b4e70030 17112{
a3828db0 17113#endif
b4e70030
JB
17114/* We use char because int might match the return type of a gcc2
17115 builtin and then its argument prototype would still apply. */
a3828db0
MK
17116char $ac_func ();
17117/* The GNU C library defines this for functions which it implements
17118 to always fail with ENOSYS. Some functions are actually named
17119 something starting with __ and the normal name is an alias. */
b4e70030 17120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17121choke me
b4e70030
JB
17122#else
17123char (*f) () = $ac_func;
17124#endif
17125#ifdef __cplusplus
17126}
a3828db0
MK
17127#endif
17128
bec39cab
AC
17129int
17130main ()
17131{
b4e70030 17132return f != $ac_func;
bec39cab
AC
17133 ;
17134 return 0;
17135}
17136_ACEOF
a3828db0
MK
17137rm -f conftest.$ac_objext conftest$ac_exeext
17138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17140 ac_status=$?
17141 grep -v '^ *+' conftest.er1 >conftest.err
17142 rm -f conftest.er1
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
b4e70030
JB
17146 { ac_try='test -z "$ac_c_werror_flag"
17147 || test ! -s conftest.err'
bec39cab
AC
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
a3828db0 17153 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; }; then
a3828db0 17159 eval "$as_ac_var=yes"
086ec9eb 17160else
bec39cab
AC
17161 echo "$as_me: failed program was:" >&5
17162sed 's/^/| /' conftest.$ac_ext >&5
17163
b4e70030 17164eval "$as_ac_var=no"
a3828db0
MK
17165fi
17166rm -f conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17168fi
b4e70030
JB
17169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17170echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17171if test `eval echo '${'$as_ac_var'}'` = yes; then
17172 cat >>confdefs.h <<_ACEOF
17173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17174_ACEOF
17175
086ec9eb 17176fi
a3828db0
MK
17177done
17178
17179
17180for ac_func in socketpair
17181do
17182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17183echo "$as_me:$LINENO: checking for $ac_func" >&5
17184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17185if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187else
17188 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17189/* confdefs.h. */
17190_ACEOF
17191cat confdefs.h >>conftest.$ac_ext
17192cat >>conftest.$ac_ext <<_ACEOF
17193/* end confdefs.h. */
a3828db0
MK
17194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17196#define $ac_func innocuous_$ac_func
17197
17198/* System header to define __stub macros and hopefully few prototypes,
17199 which can conflict with char $ac_func (); below.
17200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17201 <limits.h> exists even on freestanding compilers. */
17202
17203#ifdef __STDC__
17204# include <limits.h>
17205#else
17206# include <assert.h>
17207#endif
17208
17209#undef $ac_func
17210
b4e70030 17211/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17212#ifdef __cplusplus
17213extern "C"
b4e70030 17214{
a3828db0 17215#endif
b4e70030
JB
17216/* We use char because int might match the return type of a gcc2
17217 builtin and then its argument prototype would still apply. */
a3828db0
MK
17218char $ac_func ();
17219/* The GNU C library defines this for functions which it implements
17220 to always fail with ENOSYS. Some functions are actually named
17221 something starting with __ and the normal name is an alias. */
b4e70030 17222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17223choke me
b4e70030
JB
17224#else
17225char (*f) () = $ac_func;
17226#endif
17227#ifdef __cplusplus
17228}
a3828db0
MK
17229#endif
17230
bec39cab
AC
17231int
17232main ()
17233{
b4e70030 17234return f != $ac_func;
bec39cab
AC
17235 ;
17236 return 0;
17237}
17238_ACEOF
a3828db0
MK
17239rm -f conftest.$ac_objext conftest$ac_exeext
17240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
b4e70030
JB
17248 { ac_try='test -z "$ac_c_werror_flag"
17249 || test ! -s conftest.err'
bec39cab
AC
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
a3828db0 17255 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
a3828db0 17261 eval "$as_ac_var=yes"
086ec9eb 17262else
bec39cab
AC
17263 echo "$as_me: failed program was:" >&5
17264sed 's/^/| /' conftest.$ac_ext >&5
17265
b4e70030 17266eval "$as_ac_var=no"
086ec9eb 17267fi
a3828db0
MK
17268rm -f conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
086ec9eb 17270fi
b4e70030
JB
17271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17272echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17273if test `eval echo '${'$as_ac_var'}'` = yes; then
17274 cat >>confdefs.h <<_ACEOF
17275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17276_ACEOF
086ec9eb
MK
17277
17278fi
a3828db0 17279done
086ec9eb 17280
a3828db0
MK
17281
17282for ac_func in syscall
17283do
17284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17285echo "$as_me:$LINENO: checking for $ac_func" >&5
17286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17287if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17288 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
17289else
17290 cat >conftest.$ac_ext <<_ACEOF
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
a3828db0
MK
17296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17298#define $ac_func innocuous_$ac_func
17299
17300/* System header to define __stub macros and hopefully few prototypes,
17301 which can conflict with char $ac_func (); below.
17302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17303 <limits.h> exists even on freestanding compilers. */
17304
17305#ifdef __STDC__
17306# include <limits.h>
17307#else
17308# include <assert.h>
17309#endif
17310
17311#undef $ac_func
17312
b4e70030 17313/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17314#ifdef __cplusplus
17315extern "C"
b4e70030 17316{
a3828db0 17317#endif
b4e70030
JB
17318/* We use char because int might match the return type of a gcc2
17319 builtin and then its argument prototype would still apply. */
a3828db0
MK
17320char $ac_func ();
17321/* The GNU C library defines this for functions which it implements
17322 to always fail with ENOSYS. Some functions are actually named
17323 something starting with __ and the normal name is an alias. */
b4e70030 17324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17325choke me
b4e70030
JB
17326#else
17327char (*f) () = $ac_func;
17328#endif
17329#ifdef __cplusplus
17330}
c906108c 17331#endif
97bf5e38 17332
bec39cab
AC
17333int
17334main ()
97bf5e38 17335{
b4e70030 17336return f != $ac_func;
bec39cab
AC
17337 ;
17338 return 0;
97bf5e38 17339}
bec39cab 17340_ACEOF
a3828db0 17341rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 17342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17343 (eval $ac_link) 2>conftest.er1
bec39cab 17344 ac_status=$?
a3828db0
MK
17345 grep -v '^ *+' conftest.er1 >conftest.err
17346 rm -f conftest.er1
17347 cat conftest.err >&5
bec39cab 17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17349 (exit $ac_status); } &&
b4e70030
JB
17350 { ac_try='test -z "$ac_c_werror_flag"
17351 || test ! -s conftest.err'
a3828db0
MK
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; } &&
17357 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; }; then
a3828db0 17363 eval "$as_ac_var=yes"
c906108c 17364else
a3828db0 17365 echo "$as_me: failed program was:" >&5
bec39cab
AC
17366sed 's/^/| /' conftest.$ac_ext >&5
17367
b4e70030 17368eval "$as_ac_var=no"
97bf5e38 17369fi
a3828db0
MK
17370rm -f conftest.err conftest.$ac_objext \
17371 conftest$ac_exeext conftest.$ac_ext
17372fi
b4e70030
JB
17373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17374echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17375if test `eval echo '${'$as_ac_var'}'` = yes; then
17376 cat >>confdefs.h <<_ACEOF
17377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17378_ACEOF
c906108c
SS
17379
17380fi
a3828db0 17381done
c906108c 17382
a3828db0
MK
17383
17384for ac_func in ttrace
17385do
17386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17387echo "$as_me:$LINENO: checking for $ac_func" >&5
17388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17389if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17390 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 17391else
bec39cab
AC
17392 cat >conftest.$ac_ext <<_ACEOF
17393/* confdefs.h. */
17394_ACEOF
17395cat confdefs.h >>conftest.$ac_ext
17396cat >>conftest.$ac_ext <<_ACEOF
17397/* end confdefs.h. */
a3828db0
MK
17398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17400#define $ac_func innocuous_$ac_func
b83266a0 17401
a3828db0
MK
17402/* System header to define __stub macros and hopefully few prototypes,
17403 which can conflict with char $ac_func (); below.
17404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17405 <limits.h> exists even on freestanding compilers. */
17406
17407#ifdef __STDC__
17408# include <limits.h>
17409#else
17410# include <assert.h>
17411#endif
17412
17413#undef $ac_func
17414
b4e70030 17415/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17416#ifdef __cplusplus
17417extern "C"
b4e70030 17418{
a3828db0 17419#endif
b4e70030
JB
17420/* We use char because int might match the return type of a gcc2
17421 builtin and then its argument prototype would still apply. */
a3828db0
MK
17422char $ac_func ();
17423/* The GNU C library defines this for functions which it implements
17424 to always fail with ENOSYS. Some functions are actually named
17425 something starting with __ and the normal name is an alias. */
b4e70030 17426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17427choke me
b4e70030
JB
17428#else
17429char (*f) () = $ac_func;
17430#endif
17431#ifdef __cplusplus
17432}
a3828db0 17433#endif
97bf5e38 17434
bec39cab
AC
17435int
17436main ()
17437{
b4e70030 17438return f != $ac_func;
bec39cab
AC
17439 ;
17440 return 0;
17441}
17442_ACEOF
a3828db0
MK
17443rm -f conftest.$ac_objext conftest$ac_exeext
17444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17446 ac_status=$?
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
b4e70030
JB
17452 { ac_try='test -z "$ac_c_werror_flag"
17453 || test ! -s conftest.err'
bec39cab
AC
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
a3828db0 17459 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
a3828db0 17465 eval "$as_ac_var=yes"
b83266a0 17466else
bec39cab
AC
17467 echo "$as_me: failed program was:" >&5
17468sed 's/^/| /' conftest.$ac_ext >&5
17469
b4e70030 17470eval "$as_ac_var=no"
b83266a0 17471fi
a3828db0
MK
17472rm -f conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
b83266a0 17474fi
b4e70030
JB
17475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17477if test `eval echo '${'$as_ac_var'}'` = yes; then
17478 cat >>confdefs.h <<_ACEOF
17479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17480_ACEOF
b83266a0 17481
97bf5e38 17482fi
a3828db0 17483done
b83266a0 17484
a3828db0
MK
17485
17486for ac_func in wborder
17487do
17488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17489echo "$as_me:$LINENO: checking for $ac_func" >&5
17490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17491if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493else
17494 cat >conftest.$ac_ext <<_ACEOF
17495/* confdefs.h. */
17496_ACEOF
17497cat confdefs.h >>conftest.$ac_ext
17498cat >>conftest.$ac_ext <<_ACEOF
17499/* end confdefs.h. */
a3828db0
MK
17500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17502#define $ac_func innocuous_$ac_func
a4db0f07 17503
a3828db0
MK
17504/* System header to define __stub macros and hopefully few prototypes,
17505 which can conflict with char $ac_func (); below.
17506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17507 <limits.h> exists even on freestanding compilers. */
17508
17509#ifdef __STDC__
17510# include <limits.h>
17511#else
17512# include <assert.h>
17513#endif
17514
17515#undef $ac_func
17516
b4e70030 17517/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17518#ifdef __cplusplus
17519extern "C"
b4e70030 17520{
a3828db0 17521#endif
b4e70030
JB
17522/* We use char because int might match the return type of a gcc2
17523 builtin and then its argument prototype would still apply. */
a3828db0
MK
17524char $ac_func ();
17525/* The GNU C library defines this for functions which it implements
17526 to always fail with ENOSYS. Some functions are actually named
17527 something starting with __ and the normal name is an alias. */
b4e70030 17528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17529choke me
b4e70030
JB
17530#else
17531char (*f) () = $ac_func;
17532#endif
17533#ifdef __cplusplus
17534}
a3828db0 17535#endif
97bf5e38 17536
bec39cab
AC
17537int
17538main ()
17539{
b4e70030 17540return f != $ac_func;
bec39cab
AC
17541 ;
17542 return 0;
17543}
17544_ACEOF
a3828db0
MK
17545rm -f conftest.$ac_objext conftest$ac_exeext
17546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17547 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
b4e70030
JB
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
bec39cab
AC
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
a3828db0 17561 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
a3828db0 17567 eval "$as_ac_var=yes"
a4db0f07 17568else
bec39cab
AC
17569 echo "$as_me: failed program was:" >&5
17570sed 's/^/| /' conftest.$ac_ext >&5
17571
b4e70030 17572eval "$as_ac_var=no"
a4db0f07 17573fi
a3828db0
MK
17574rm -f conftest.err conftest.$ac_objext \
17575 conftest$ac_exeext conftest.$ac_ext
a4db0f07 17576fi
b4e70030
JB
17577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17579if test `eval echo '${'$as_ac_var'}'` = yes; then
17580 cat >>confdefs.h <<_ACEOF
17581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17582_ACEOF
a4db0f07
RH
17583
17584fi
a3828db0 17585done
c906108c 17586
06825bd1 17587
a3828db0
MK
17588# Check the return and argument types of ptrace. No canned test for
17589# this, so roll our own.
17590gdb_ptrace_headers='
17591#if HAVE_SYS_TYPES_H
17592# include <sys/types.h>
17593#endif
17594#if HAVE_SYS_PTRACE_H
17595# include <sys/ptrace.h>
17596#endif
17597#if HAVE_UNISTD_H
17598# include <unistd.h>
17599#endif
17600'
17601# There is no point in checking if we don't have a prototype.
b4e70030
JB
17602echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
17603echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 17604if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606else
17607 cat >conftest.$ac_ext <<_ACEOF
17608/* confdefs.h. */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h. */
a3828db0
MK
17613$gdb_ptrace_headers
17614
bec39cab
AC
17615int
17616main ()
17617{
a3828db0
MK
17618#ifndef ptrace
17619 char *p = (char *) ptrace;
06825bd1 17620#endif
a3828db0 17621
bec39cab
AC
17622 ;
17623 return 0;
17624}
17625_ACEOF
17626rm -f conftest.$ac_objext
17627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17628 (eval $ac_compile) 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
b4e70030
JB
17635 { ac_try='test -z "$ac_c_werror_flag"
17636 || test ! -s conftest.err'
bec39cab
AC
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } &&
17642 { ac_try='test -s conftest.$ac_objext'
17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17645 ac_status=$?
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; }; then
a3828db0 17648 ac_cv_have_decl_ptrace=yes
06825bd1 17649else
bec39cab
AC
17650 echo "$as_me: failed program was:" >&5
17651sed 's/^/| /' conftest.$ac_ext >&5
17652
b4e70030 17653ac_cv_have_decl_ptrace=no
06825bd1 17654fi
bec39cab 17655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 17656fi
b4e70030
JB
17657echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
17658echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 17659if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 17660
a3828db0
MK
17661cat >>confdefs.h <<_ACEOF
17662#define HAVE_DECL_PTRACE 1
17663_ACEOF
bec39cab 17664
bec39cab 17665
a3828db0
MK
17666else
17667 cat >>confdefs.h <<_ACEOF
17668#define HAVE_DECL_PTRACE 0
bec39cab 17669_ACEOF
06825bd1 17670
a3828db0
MK
17671
17672 : ${gdb_cv_func_ptrace_ret='int'}
17673 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17674
06825bd1
MK
17675fi
17676
a3828db0
MK
17677
17678# Check return type.
b4e70030
JB
17679echo "$as_me:$LINENO: checking return type of ptrace" >&5
17680echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 17681if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17683else
17684 cat >conftest.$ac_ext <<_ACEOF
17685/* confdefs.h. */
17686_ACEOF
17687cat confdefs.h >>conftest.$ac_ext
17688cat >>conftest.$ac_ext <<_ACEOF
17689/* end confdefs.h. */
a3828db0 17690$gdb_ptrace_headers
bec39cab
AC
17691int
17692main ()
17693{
a3828db0 17694extern int ptrace ();
bec39cab
AC
17695 ;
17696 return 0;
17697}
17698_ACEOF
17699rm -f conftest.$ac_objext
17700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>conftest.er1
17702 ac_status=$?
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
b4e70030
JB
17708 { ac_try='test -z "$ac_c_werror_flag"
17709 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
17715 { ac_try='test -s conftest.$ac_objext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
a3828db0 17721 gdb_cv_func_ptrace_ret='int'
70f9f479 17722else
bec39cab
AC
17723 echo "$as_me: failed program was:" >&5
17724sed 's/^/| /' conftest.$ac_ext >&5
17725
b4e70030 17726gdb_cv_func_ptrace_ret='long'
70f9f479 17727fi
bec39cab 17728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 17729fi
b4e70030
JB
17730echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
17731echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 17732
a3828db0
MK
17733cat >>confdefs.h <<_ACEOF
17734#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 17735_ACEOF
70f9f479 17736
a3828db0 17737# Check argument types.
b4e70030
JB
17738echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
17739echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 17740if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17742else
a3828db0
MK
17743
17744for gdb_arg1 in 'int' 'long'; do
17745 for gdb_arg2 in 'pid_t' 'int' 'long'; do
17746 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
17747 for gdb_arg4 in 'int' 'long'; do
17748 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17749/* confdefs.h. */
17750_ACEOF
17751cat confdefs.h >>conftest.$ac_ext
17752cat >>conftest.$ac_ext <<_ACEOF
17753/* end confdefs.h. */
a3828db0 17754$gdb_ptrace_headers
bec39cab
AC
17755int
17756main ()
17757{
a3828db0
MK
17758
17759extern $gdb_cv_func_ptrace_ret
17760 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
17761
bec39cab
AC
17762 ;
17763 return 0;
17764}
17765_ACEOF
17766rm -f conftest.$ac_objext
17767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17768 (eval $ac_compile) 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
b4e70030
JB
17775 { ac_try='test -z "$ac_c_werror_flag"
17776 || test ! -s conftest.err'
bec39cab
AC
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try='test -s conftest.$ac_objext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
a3828db0
MK
17788 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
17789 break 4;
5c7f2947 17790else
bec39cab
AC
17791 echo "$as_me: failed program was:" >&5
17792sed 's/^/| /' conftest.$ac_ext >&5
17793
5c7f2947 17794fi
bec39cab 17795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17796 for gdb_arg5 in 'int *' 'int' 'long'; do
17797 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17798/* confdefs.h. */
17799_ACEOF
17800cat confdefs.h >>conftest.$ac_ext
17801cat >>conftest.$ac_ext <<_ACEOF
17802/* end confdefs.h. */
a3828db0 17803$gdb_ptrace_headers
bec39cab
AC
17804int
17805main ()
17806{
a3828db0
MK
17807
17808extern $gdb_cv_func_ptrace_ret
17809 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
17810
bec39cab
AC
17811 ;
17812 return 0;
17813}
17814_ACEOF
17815rm -f conftest.$ac_objext
17816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17817 (eval $ac_compile) 2>conftest.er1
17818 ac_status=$?
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
b4e70030
JB
17824 { ac_try='test -z "$ac_c_werror_flag"
17825 || test ! -s conftest.err'
bec39cab
AC
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; } &&
17831 { ac_try='test -s conftest.$ac_objext'
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; }; then
a3828db0
MK
17837
17838gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
17839 break 5;
78434e59 17840else
bec39cab
AC
17841 echo "$as_me: failed program was:" >&5
17842sed 's/^/| /' conftest.$ac_ext >&5
17843
78434e59 17844fi
bec39cab 17845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17846 done
17847 done
17848 done
17849 done
17850done
17851# Provide a safe default value.
17852: ${gdb_cv_func_ptrace_args='int,int,long,long'}
17853
78434e59 17854fi
b4e70030
JB
17855echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
17856echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
17857ac_save_IFS=$IFS; IFS=','
17858set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
17859IFS=$ac_save_IFS
17860shift
bec39cab 17861
a3828db0
MK
17862cat >>confdefs.h <<_ACEOF
17863#define PTRACE_TYPE_ARG3 $3
17864_ACEOF
17865
17866if test -n "$5"; then
17867
17868cat >>confdefs.h <<_ACEOF
17869#define PTRACE_TYPE_ARG5 $5
bec39cab 17870_ACEOF
78434e59
MK
17871
17872fi
17873
a3828db0 17874if test "$cross_compiling" = no; then
b4e70030
JB
17875 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17876echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 17877if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 17878 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
17879else
17880 if test "$cross_compiling" = yes; then
17881 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17882echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17883 { (exit 1); exit 1; }; }
bec39cab
AC
17884else
17885 cat >conftest.$ac_ext <<_ACEOF
17886/* confdefs.h. */
17887_ACEOF
17888cat confdefs.h >>conftest.$ac_ext
17889cat >>conftest.$ac_ext <<_ACEOF
17890/* end confdefs.h. */
b4e70030
JB
17891#if HAVE_UNISTD_H
17892# include <unistd.h>
17893#endif
17894
bec39cab
AC
17895int
17896main ()
17897{
a3828db0
MK
17898/* If this system has a BSD-style setpgrp which takes arguments,
17899 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17900 exit successfully. */
b4e70030 17901 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
17902 ;
17903 return 0;
17904}
17905_ACEOF
a3828db0
MK
17906rm -f conftest$ac_exeext
17907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17908 (eval $ac_link) 2>&5
bec39cab
AC
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
a3828db0 17917 ac_cv_func_setpgrp_void=no
c906108c 17918else
a3828db0
MK
17919 echo "$as_me: program exited with status $ac_status" >&5
17920echo "$as_me: failed program was:" >&5
bec39cab
AC
17921sed 's/^/| /' conftest.$ac_ext >&5
17922
a3828db0
MK
17923( exit $ac_status )
17924ac_cv_func_setpgrp_void=yes
c906108c 17925fi
b4e70030 17926rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 17927fi
a3828db0 17928fi
b4e70030
JB
17929echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17930echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
17931if test $ac_cv_func_setpgrp_void = yes; then
17932
17933cat >>confdefs.h <<\_ACEOF
17934#define SETPGRP_VOID 1
bec39cab 17935_ACEOF
97bf5e38
MK
17936
17937fi
a3828db0
MK
17938
17939else
b4e70030
JB
17940 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17941echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 17942if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 17943 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17944else
bec39cab
AC
17945 cat >conftest.$ac_ext <<_ACEOF
17946/* confdefs.h. */
17947_ACEOF
17948cat confdefs.h >>conftest.$ac_ext
17949cat >>conftest.$ac_ext <<_ACEOF
17950/* end confdefs.h. */
a3828db0
MK
17951
17952#include <unistd.h>
17953
bec39cab
AC
17954int
17955main ()
17956{
a3828db0
MK
17957
17958 if (setpgrp(1,1) == -1)
17959 exit (0);
17960 else
17961 exit (1);
17962
bec39cab
AC
17963 ;
17964 return 0;
17965}
17966_ACEOF
17967rm -f conftest.$ac_objext
17968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17969 (eval $ac_compile) 2>conftest.er1
17970 ac_status=$?
17971 grep -v '^ *+' conftest.er1 >conftest.err
17972 rm -f conftest.er1
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } &&
b4e70030
JB
17976 { ac_try='test -z "$ac_c_werror_flag"
17977 || test ! -s conftest.err'
bec39cab
AC
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; } &&
17983 { ac_try='test -s conftest.$ac_objext'
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17986 ac_status=$?
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; }; then
a3828db0 17989 ac_cv_func_setpgrp_void=no
c906108c 17990else
bec39cab
AC
17991 echo "$as_me: failed program was:" >&5
17992sed 's/^/| /' conftest.$ac_ext >&5
17993
b4e70030 17994ac_cv_func_setpgrp_void=yes
c906108c 17995fi
bec39cab 17996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17997fi
b4e70030
JB
17998echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17999echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 18000if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 18001 cat >>confdefs.h <<\_ACEOF
a3828db0 18002#define SETPGRP_VOID 1
bec39cab 18003_ACEOF
c3f6f71d 18004
a3828db0 18005fi
c906108c
SS
18006fi
18007
a3828db0
MK
18008# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
18009# since sigsetjmp might only be defined as a macro.
b4e70030
JB
18010echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18011echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 18012if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18014else
18015 cat >conftest.$ac_ext <<_ACEOF
18016/* confdefs.h. */
18017_ACEOF
18018cat confdefs.h >>conftest.$ac_ext
18019cat >>conftest.$ac_ext <<_ACEOF
18020/* end confdefs.h. */
a3828db0
MK
18021
18022#include <setjmp.h>
18023
bec39cab
AC
18024int
18025main ()
18026{
a3828db0 18027sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
18028 ;
18029 return 0;
18030}
18031_ACEOF
18032rm -f conftest.$ac_objext
18033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18034 (eval $ac_compile) 2>conftest.er1
18035 ac_status=$?
18036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
b4e70030
JB
18041 { ac_try='test -z "$ac_c_werror_flag"
18042 || test ! -s conftest.err'
bec39cab
AC
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try='test -s conftest.$ac_objext'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
a3828db0 18054 gdb_cv_func_sigsetjmp=yes
c906108c 18055else
bec39cab
AC
18056 echo "$as_me: failed program was:" >&5
18057sed 's/^/| /' conftest.$ac_ext >&5
18058
b4e70030 18059gdb_cv_func_sigsetjmp=no
c906108c 18060fi
bec39cab 18061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18062fi
b4e70030
JB
18063echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18064echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 18065if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 18066
a3828db0
MK
18067cat >>confdefs.h <<\_ACEOF
18068#define HAVE_SIGSETJMP 1
bec39cab 18069_ACEOF
c906108c 18070
97bf5e38 18071fi
c906108c 18072
a3828db0
MK
18073# Assume we'll default to using the included libiberty regex.
18074gdb_use_included_regex=yes
18075
18076# However, if the system regex is GNU regex, then default to *not*
18077# using the included regex.
b4e70030
JB
18078echo "$as_me:$LINENO: checking for GNU regex" >&5
18079echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 18080if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18082else
18083 cat >conftest.$ac_ext <<_ACEOF
18084/* confdefs.h. */
18085_ACEOF
18086cat confdefs.h >>conftest.$ac_ext
18087cat >>conftest.$ac_ext <<_ACEOF
18088/* end confdefs.h. */
a3828db0 18089#include <gnu-versions.h>
bec39cab
AC
18090int
18091main ()
18092{
a3828db0
MK
18093#define REGEX_INTERFACE_VERSION 1
18094#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18095# error "Version mismatch"
18096#endif
bec39cab
AC
18097 ;
18098 return 0;
18099}
18100_ACEOF
18101rm -f conftest.$ac_objext
18102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18103 (eval $ac_compile) 2>conftest.er1
18104 ac_status=$?
18105 grep -v '^ *+' conftest.er1 >conftest.err
18106 rm -f conftest.er1
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
b4e70030
JB
18110 { ac_try='test -z "$ac_c_werror_flag"
18111 || test ! -s conftest.err'
bec39cab
AC
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try='test -s conftest.$ac_objext'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
a3828db0 18123 gdb_cv_have_gnu_regex=yes
c906108c 18124else
bec39cab
AC
18125 echo "$as_me: failed program was:" >&5
18126sed 's/^/| /' conftest.$ac_ext >&5
18127
b4e70030 18128gdb_cv_have_gnu_regex=no
c906108c 18129fi
bec39cab 18130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18131fi
b4e70030
JB
18132echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18133echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
18134if test $gdb_cv_have_gnu_regex = yes; then
18135 gdb_use_included_regex=no
18136fi
c906108c 18137
a3828db0 18138
b4e70030 18139# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 18140if test "${with_included_regex+set}" = set; then
b4e70030
JB
18141 withval="$with_included_regex"
18142 gdb_with_regex=$withval
a3828db0
MK
18143else
18144 gdb_with_regex=$gdb_use_included_regex
b4e70030 18145fi;
a3828db0
MK
18146if test "$gdb_with_regex" = yes; then
18147
18148cat >>confdefs.h <<\_ACEOF
18149#define USE_INCLUDED_REGEX 1
bec39cab 18150_ACEOF
c906108c 18151
97bf5e38 18152fi
c906108c 18153
5c45e068 18154# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
18155echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18156echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 18157if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18159else
18160 cat >conftest.$ac_ext <<_ACEOF
18161/* confdefs.h. */
18162_ACEOF
18163cat confdefs.h >>conftest.$ac_ext
18164cat >>conftest.$ac_ext <<_ACEOF
18165/* end confdefs.h. */
a3828db0
MK
18166#include <sys/param.h>
18167#include <sys/proc.h>
5c45e068
MK
18168
18169
bec39cab
AC
18170int
18171main ()
18172{
5c45e068
MK
18173static struct thread ac_aggr;
18174if (ac_aggr.td_pcb)
18175return 0;
bec39cab
AC
18176 ;
18177 return 0;
18178}
18179_ACEOF
18180rm -f conftest.$ac_objext
18181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18182 (eval $ac_compile) 2>conftest.er1
18183 ac_status=$?
18184 grep -v '^ *+' conftest.er1 >conftest.err
18185 rm -f conftest.er1
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } &&
b4e70030
JB
18189 { ac_try='test -z "$ac_c_werror_flag"
18190 || test ! -s conftest.err'
bec39cab
AC
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest.$ac_objext'
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
5c45e068 18202 ac_cv_member_struct_thread_td_pcb=yes
c906108c 18203else
bec39cab
AC
18204 echo "$as_me: failed program was:" >&5
18205sed 's/^/| /' conftest.$ac_ext >&5
18206
b4e70030 18207cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18208/* confdefs.h. */
18209_ACEOF
18210cat confdefs.h >>conftest.$ac_ext
18211cat >>conftest.$ac_ext <<_ACEOF
18212/* end confdefs.h. */
18213#include <sys/param.h>
18214#include <sys/proc.h>
18215
18216
18217int
18218main ()
18219{
18220static struct thread ac_aggr;
18221if (sizeof ac_aggr.td_pcb)
18222return 0;
18223 ;
18224 return 0;
18225}
18226_ACEOF
18227rm -f conftest.$ac_objext
18228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>conftest.er1
18230 ac_status=$?
18231 grep -v '^ *+' conftest.er1 >conftest.err
18232 rm -f conftest.er1
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
b4e70030
JB
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
5c45e068
MK
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_member_struct_thread_td_pcb=yes
18250else
18251 echo "$as_me: failed program was:" >&5
18252sed 's/^/| /' conftest.$ac_ext >&5
18253
b4e70030 18254ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
18255fi
18256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18257fi
bec39cab 18258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18259fi
b4e70030
JB
18260echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18261echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 18262if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 18263
5c45e068 18264cat >>confdefs.h <<_ACEOF
a3828db0 18265#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 18266_ACEOF
c906108c 18267
5c45e068 18268
97bf5e38 18269fi
c906108c 18270
5c45e068 18271
a3828db0 18272# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
18273echo "$as_me:$LINENO: checking for struct lwp" >&5
18274echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 18275if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18277else
18278 cat >conftest.$ac_ext <<_ACEOF
18279/* confdefs.h. */
18280_ACEOF
18281cat confdefs.h >>conftest.$ac_ext
18282cat >>conftest.$ac_ext <<_ACEOF
18283/* end confdefs.h. */
a3828db0
MK
18284#include <sys/param.h>
18285#include <sys/lwp.h>
bec39cab
AC
18286int
18287main ()
18288{
a3828db0 18289struct lwp l;
bec39cab
AC
18290 ;
18291 return 0;
18292}
18293_ACEOF
18294rm -f conftest.$ac_objext
18295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18296 (eval $ac_compile) 2>conftest.er1
18297 ac_status=$?
18298 grep -v '^ *+' conftest.er1 >conftest.err
18299 rm -f conftest.er1
18300 cat conftest.err >&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } &&
b4e70030
JB
18303 { ac_try='test -z "$ac_c_werror_flag"
18304 || test ! -s conftest.err'
bec39cab
AC
18305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306 (eval $ac_try) 2>&5
18307 ac_status=$?
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; } &&
18310 { ac_try='test -s conftest.$ac_objext'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; }; then
a3828db0 18316 gdb_cv_struct_lwp=yes
c906108c 18317else
bec39cab
AC
18318 echo "$as_me: failed program was:" >&5
18319sed 's/^/| /' conftest.$ac_ext >&5
18320
b4e70030 18321gdb_cv_struct_lwp=no
c906108c 18322fi
bec39cab 18323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18324fi
b4e70030
JB
18325echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18326echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 18327if test $gdb_cv_struct_lwp = yes; then
c906108c 18328
a3828db0
MK
18329cat >>confdefs.h <<\_ACEOF
18330#define HAVE_STRUCT_LWP 1
bec39cab 18331_ACEOF
c906108c 18332
97bf5e38 18333fi
c906108c 18334
a3828db0 18335# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
18336echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18337echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 18338if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18340else
18341 cat >conftest.$ac_ext <<_ACEOF
18342/* confdefs.h. */
18343_ACEOF
18344cat confdefs.h >>conftest.$ac_ext
18345cat >>conftest.$ac_ext <<_ACEOF
18346/* end confdefs.h. */
a3828db0
MK
18347#include <sys/types.h>
18348#include <machine/reg.h>
bec39cab
AC
18349int
18350main ()
18351{
a3828db0 18352struct reg r;
bec39cab
AC
18353 ;
18354 return 0;
18355}
18356_ACEOF
18357rm -f conftest.$ac_objext
18358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18359 (eval $ac_compile) 2>conftest.er1
18360 ac_status=$?
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
b4e70030
JB
18366 { ac_try='test -z "$ac_c_werror_flag"
18367 || test ! -s conftest.err'
bec39cab
AC
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest.$ac_objext'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
a3828db0 18379 gdb_cv_struct_reg=yes
27ca5dad 18380else
bec39cab
AC
18381 echo "$as_me: failed program was:" >&5
18382sed 's/^/| /' conftest.$ac_ext >&5
18383
b4e70030 18384gdb_cv_struct_reg=no
27ca5dad 18385fi
bec39cab 18386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 18387fi
b4e70030
JB
18388echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18389echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 18390if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
18391
18392cat >>confdefs.h <<\_ACEOF
a3828db0 18393#define HAVE_STRUCT_REG 1
bec39cab 18394_ACEOF
27ca5dad
MC
18395
18396fi
97bf5e38 18397
a3828db0
MK
18398# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18399# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
18400echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18401echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 18402if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 18403 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18404else
bec39cab
AC
18405 cat >conftest.$ac_ext <<_ACEOF
18406/* confdefs.h. */
18407_ACEOF
18408cat confdefs.h >>conftest.$ac_ext
18409cat >>conftest.$ac_ext <<_ACEOF
18410/* end confdefs.h. */
a3828db0 18411#include <machine/reg.h>
5c45e068
MK
18412
18413int
18414main ()
18415{
18416static struct reg ac_aggr;
18417if (ac_aggr.r_fs)
18418return 0;
18419 ;
18420 return 0;
18421}
18422_ACEOF
18423rm -f conftest.$ac_objext
18424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18425 (eval $ac_compile) 2>conftest.er1
18426 ac_status=$?
18427 grep -v '^ *+' conftest.er1 >conftest.err
18428 rm -f conftest.er1
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } &&
b4e70030
JB
18432 { ac_try='test -z "$ac_c_werror_flag"
18433 || test ! -s conftest.err'
5c45e068
MK
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try='test -s conftest.$ac_objext'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_cv_member_struct_reg_r_fs=yes
18446else
18447 echo "$as_me: failed program was:" >&5
18448sed 's/^/| /' conftest.$ac_ext >&5
18449
b4e70030 18450cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18451/* confdefs.h. */
18452_ACEOF
18453cat confdefs.h >>conftest.$ac_ext
18454cat >>conftest.$ac_ext <<_ACEOF
18455/* end confdefs.h. */
18456#include <machine/reg.h>
18457
bec39cab
AC
18458int
18459main ()
18460{
5c45e068
MK
18461static struct reg ac_aggr;
18462if (sizeof ac_aggr.r_fs)
18463return 0;
bec39cab
AC
18464 ;
18465 return 0;
18466}
18467_ACEOF
18468rm -f conftest.$ac_objext
18469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18470 (eval $ac_compile) 2>conftest.er1
18471 ac_status=$?
18472 grep -v '^ *+' conftest.er1 >conftest.err
18473 rm -f conftest.er1
18474 cat conftest.err >&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
b4e70030
JB
18477 { ac_try='test -z "$ac_c_werror_flag"
18478 || test ! -s conftest.err'
bec39cab
AC
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
18484 { ac_try='test -s conftest.$ac_objext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
5c45e068 18490 ac_cv_member_struct_reg_r_fs=yes
3862412b 18491else
bec39cab
AC
18492 echo "$as_me: failed program was:" >&5
18493sed 's/^/| /' conftest.$ac_ext >&5
18494
b4e70030 18495ac_cv_member_struct_reg_r_fs=no
3862412b 18496fi
bec39cab 18497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18498fi
5c45e068
MK
18499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18500fi
b4e70030
JB
18501echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18502echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
18503if test $ac_cv_member_struct_reg_r_fs = yes; then
18504
18505cat >>confdefs.h <<_ACEOF
a3828db0 18506#define HAVE_STRUCT_REG_R_FS 1
bec39cab 18507_ACEOF
3862412b 18508
5c45e068 18509
97bf5e38 18510fi
b4e70030
JB
18511echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18512echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 18513if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 18514 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18515else
bec39cab
AC
18516 cat >conftest.$ac_ext <<_ACEOF
18517/* confdefs.h. */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h. */
a3828db0 18522#include <machine/reg.h>
5c45e068 18523
bec39cab
AC
18524int
18525main ()
18526{
5c45e068
MK
18527static struct reg ac_aggr;
18528if (ac_aggr.r_gs)
18529return 0;
bec39cab
AC
18530 ;
18531 return 0;
18532}
18533_ACEOF
18534rm -f conftest.$ac_objext
18535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18536 (eval $ac_compile) 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
b4e70030
JB
18543 { ac_try='test -z "$ac_c_werror_flag"
18544 || test ! -s conftest.err'
bec39cab
AC
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try='test -s conftest.$ac_objext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
5c45e068 18556 ac_cv_member_struct_reg_r_gs=yes
3862412b 18557else
bec39cab
AC
18558 echo "$as_me: failed program was:" >&5
18559sed 's/^/| /' conftest.$ac_ext >&5
18560
b4e70030 18561cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18562/* confdefs.h. */
18563_ACEOF
18564cat confdefs.h >>conftest.$ac_ext
18565cat >>conftest.$ac_ext <<_ACEOF
18566/* end confdefs.h. */
18567#include <machine/reg.h>
18568
18569int
18570main ()
18571{
18572static struct reg ac_aggr;
18573if (sizeof ac_aggr.r_gs)
18574return 0;
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext
18580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18581 (eval $ac_compile) 2>conftest.er1
18582 ac_status=$?
18583 grep -v '^ *+' conftest.er1 >conftest.err
18584 rm -f conftest.er1
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
b4e70030
JB
18588 { ac_try='test -z "$ac_c_werror_flag"
18589 || test ! -s conftest.err'
5c45e068
MK
18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest.$ac_objext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_member_struct_reg_r_gs=yes
18602else
18603 echo "$as_me: failed program was:" >&5
18604sed 's/^/| /' conftest.$ac_ext >&5
18605
b4e70030 18606ac_cv_member_struct_reg_r_gs=no
3862412b 18607fi
bec39cab 18608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18609fi
5c45e068
MK
18610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18611fi
b4e70030
JB
18612echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
18613echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
18614if test $ac_cv_member_struct_reg_r_gs = yes; then
18615
18616cat >>confdefs.h <<_ACEOF
a3828db0 18617#define HAVE_STRUCT_REG_R_GS 1
bec39cab 18618_ACEOF
3862412b 18619
5c45e068 18620
97bf5e38 18621fi
3862412b 18622
5c45e068 18623
a3828db0 18624# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
18625echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
18626echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 18627if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 18628 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 18629else
bec39cab
AC
18630 cat >conftest.$ac_ext <<_ACEOF
18631/* confdefs.h. */
18632_ACEOF
18633cat confdefs.h >>conftest.$ac_ext
18634cat >>conftest.$ac_ext <<_ACEOF
18635/* end confdefs.h. */
a3828db0 18636#include <sys/ptrace.h>
bec39cab
AC
18637int
18638main ()
18639{
a3828db0 18640PTRACE_GETREGS;
bec39cab
AC
18641 ;
18642 return 0;
18643}
18644_ACEOF
18645rm -f conftest.$ac_objext
18646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18647 (eval $ac_compile) 2>conftest.er1
18648 ac_status=$?
18649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
b4e70030
JB
18654 { ac_try='test -z "$ac_c_werror_flag"
18655 || test ! -s conftest.err'
bec39cab
AC
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; } &&
18661 { ac_try='test -s conftest.$ac_objext'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
a3828db0 18667 gdb_cv_have_ptrace_getregs=yes
451928c5 18668else
bec39cab
AC
18669 echo "$as_me: failed program was:" >&5
18670sed 's/^/| /' conftest.$ac_ext >&5
18671
b4e70030 18672gdb_cv_have_ptrace_getregs=no
451928c5 18673fi
bec39cab 18674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
18675fi
18676
b4e70030
JB
18677echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
18678echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 18679if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
18680
18681cat >>confdefs.h <<\_ACEOF
a3828db0 18682#define HAVE_PTRACE_GETREGS 1
bec39cab 18683_ACEOF
451928c5 18684
97bf5e38 18685fi
451928c5 18686
a3828db0 18687# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
18688echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
18689echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 18690if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 18691 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 18692else
bec39cab
AC
18693 cat >conftest.$ac_ext <<_ACEOF
18694/* confdefs.h. */
18695_ACEOF
18696cat confdefs.h >>conftest.$ac_ext
18697cat >>conftest.$ac_ext <<_ACEOF
18698/* end confdefs.h. */
a3828db0 18699#include <sys/ptrace.h>
bec39cab
AC
18700int
18701main ()
18702{
a3828db0 18703PTRACE_GETFPXREGS;
bec39cab
AC
18704 ;
18705 return 0;
18706}
18707_ACEOF
18708rm -f conftest.$ac_objext
18709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18710 (eval $ac_compile) 2>conftest.er1
18711 ac_status=$?
18712 grep -v '^ *+' conftest.er1 >conftest.err
18713 rm -f conftest.er1
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } &&
b4e70030
JB
18717 { ac_try='test -z "$ac_c_werror_flag"
18718 || test ! -s conftest.err'
bec39cab
AC
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; } &&
18724 { ac_try='test -s conftest.$ac_objext'
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; }; then
a3828db0 18730 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 18731else
bec39cab
AC
18732 echo "$as_me: failed program was:" >&5
18733sed 's/^/| /' conftest.$ac_ext >&5
18734
b4e70030 18735gdb_cv_have_ptrace_getfpxregs=no
451928c5 18736fi
bec39cab 18737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
18738fi
18739
b4e70030
JB
18740echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
18741echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 18742if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
18743
18744cat >>confdefs.h <<\_ACEOF
a3828db0 18745#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 18746_ACEOF
451928c5 18747
97bf5e38 18748fi
451928c5 18749
a3828db0 18750# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
18751echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
18752echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 18753if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 18754 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18755else
bec39cab
AC
18756 cat >conftest.$ac_ext <<_ACEOF
18757/* confdefs.h. */
18758_ACEOF
18759cat confdefs.h >>conftest.$ac_ext
18760cat >>conftest.$ac_ext <<_ACEOF
18761/* end confdefs.h. */
a3828db0
MK
18762#include <sys/types.h>
18763#include <sys/ptrace.h>
bec39cab
AC
18764int
18765main ()
18766{
a3828db0 18767PT_GETDBREGS;
bec39cab
AC
18768 ;
18769 return 0;
18770}
18771_ACEOF
18772rm -f conftest.$ac_objext
18773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18774 (eval $ac_compile) 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
b4e70030
JB
18781 { ac_try='test -z "$ac_c_werror_flag"
18782 || test ! -s conftest.err'
bec39cab
AC
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try='test -s conftest.$ac_objext'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
a3828db0 18794 gdb_cv_have_pt_getdbregs=yes
3862412b 18795else
bec39cab
AC
18796 echo "$as_me: failed program was:" >&5
18797sed 's/^/| /' conftest.$ac_ext >&5
18798
b4e70030 18799gdb_cv_have_pt_getdbregs=no
3862412b 18800fi
bec39cab 18801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
18802fi
18803
b4e70030
JB
18804echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
18805echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 18806if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
18807
18808cat >>confdefs.h <<\_ACEOF
a3828db0 18809#define HAVE_PT_GETDBREGS 1
bec39cab 18810_ACEOF
3862412b 18811
97bf5e38 18812fi
3862412b 18813
a3828db0 18814# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
18815echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
18816echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 18817if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 18818 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18819else
bec39cab
AC
18820 cat >conftest.$ac_ext <<_ACEOF
18821/* confdefs.h. */
18822_ACEOF
18823cat confdefs.h >>conftest.$ac_ext
18824cat >>conftest.$ac_ext <<_ACEOF
18825/* end confdefs.h. */
a3828db0
MK
18826#include <sys/types.h>
18827#include <sys/ptrace.h>
bec39cab
AC
18828int
18829main ()
18830{
a3828db0 18831PT_GETXMMREGS;
bec39cab
AC
18832 ;
18833 return 0;
18834}
18835_ACEOF
18836rm -f conftest.$ac_objext
18837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18838 (eval $ac_compile) 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } &&
b4e70030
JB
18845 { ac_try='test -z "$ac_c_werror_flag"
18846 || test ! -s conftest.err'
bec39cab
AC
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest.$ac_objext'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
a3828db0 18858 gdb_cv_have_pt_getxmmregs=yes
3862412b 18859else
bec39cab
AC
18860 echo "$as_me: failed program was:" >&5
18861sed 's/^/| /' conftest.$ac_ext >&5
18862
b4e70030 18863gdb_cv_have_pt_getxmmregs=no
3862412b 18864fi
bec39cab 18865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
18866fi
18867
b4e70030
JB
18868echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
18869echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 18870if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
18871
18872cat >>confdefs.h <<\_ACEOF
a3828db0 18873#define HAVE_PT_GETXMMREGS 1
bec39cab 18874_ACEOF
3862412b 18875
97bf5e38 18876fi
3862412b 18877
97bf5e38
MK
18878# If we are configured native on GNU/Linux, work around problems with
18879# sys/procfs.h
18880# Also detect which type of /proc is in use, such as for Unixware or Solaris.
18881
18882if test "${target}" = "${host}"; then
18883 case "${host}" in
18884 i[3456]86-*-linux*)
60ca704f
SE
18885
18886cat >>confdefs.h <<\_ACEOF
97bf5e38 18887#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 18888_ACEOF
97bf5e38 18889
60ca704f
SE
18890
18891cat >>confdefs.h <<\_ACEOF
97bf5e38 18892#define sys_quotactl 1
bec39cab 18893_ACEOF
97bf5e38
MK
18894
18895 ;;
97bf5e38 18896 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
18897
18898cat >>confdefs.h <<\_ACEOF
97bf5e38 18899#define NEW_PROC_API 1
bec39cab 18900_ACEOF
97bf5e38
MK
18901
18902 ;;
0bbc026e 18903 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
18904
18905cat >>confdefs.h <<\_ACEOF
97bf5e38 18906#define NEW_PROC_API 1
bec39cab 18907_ACEOF
c960c18f
AC
18908
18909 ;;
18910 mips-sgi-irix5*)
18911 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
18912
18913cat >>confdefs.h <<\_ACEOF
c960c18f 18914#define _KMEMUSER 1
bec39cab 18915_ACEOF
97bf5e38
MK
18916
18917 ;;
18918 esac
18919fi
18920
18921if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
18922 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18923echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18924 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926else
18927 cat >conftest.$ac_ext <<_ACEOF
18928/* confdefs.h. */
18929_ACEOF
18930cat confdefs.h >>conftest.$ac_ext
18931cat >>conftest.$ac_ext <<_ACEOF
18932/* end confdefs.h. */
596c9d4b
KB
18933
18934#define _SYSCALL32
18935#include <sys/procfs.h>
bec39cab
AC
18936int
18937main ()
18938{
97bf5e38 18939pstatus_t avar
bec39cab
AC
18940 ;
18941 return 0;
18942}
18943_ACEOF
18944rm -f conftest.$ac_objext
18945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18946 (eval $ac_compile) 2>conftest.er1
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
b4e70030
JB
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
bec39cab
AC
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
97bf5e38 18966 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 18967else
bec39cab
AC
18968 echo "$as_me: failed program was:" >&5
18969sed 's/^/| /' conftest.$ac_ext >&5
18970
b4e70030 18971bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 18972
596c9d4b 18973fi
bec39cab 18974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18975fi
18976
97bf5e38 18977 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
18978
18979cat >>confdefs.h <<\_ACEOF
97bf5e38 18980#define HAVE_PSTATUS_T 1
bec39cab 18981_ACEOF
596c9d4b
KB
18982
18983 fi
b4e70030
JB
18984 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18985echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 18986
b4e70030
JB
18987 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
18988echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18989 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 18991else
bec39cab
AC
18992 cat >conftest.$ac_ext <<_ACEOF
18993/* confdefs.h. */
18994_ACEOF
18995cat confdefs.h >>conftest.$ac_ext
18996cat >>conftest.$ac_ext <<_ACEOF
18997/* end confdefs.h. */
596c9d4b
KB
18998
18999#define _SYSCALL32
19000#include <sys/procfs.h>
bec39cab
AC
19001int
19002main ()
19003{
97bf5e38 19004prrun_t avar
bec39cab
AC
19005 ;
19006 return 0;
19007}
19008_ACEOF
19009rm -f conftest.$ac_objext
19010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19011 (eval $ac_compile) 2>conftest.er1
19012 ac_status=$?
19013 grep -v '^ *+' conftest.er1 >conftest.err
19014 rm -f conftest.er1
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
b4e70030
JB
19018 { ac_try='test -z "$ac_c_werror_flag"
19019 || test ! -s conftest.err'
bec39cab
AC
19020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19021 (eval $ac_try) 2>&5
19022 ac_status=$?
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; } &&
19025 { ac_try='test -s conftest.$ac_objext'
19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19028 ac_status=$?
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; }; then
97bf5e38 19031 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 19032else
bec39cab
AC
19033 echo "$as_me: failed program was:" >&5
19034sed 's/^/| /' conftest.$ac_ext >&5
19035
b4e70030 19036bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 19037
596c9d4b 19038fi
bec39cab 19039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19040fi
19041
97bf5e38 19042 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
19043
19044cat >>confdefs.h <<\_ACEOF
97bf5e38 19045#define HAVE_PRRUN_T 1
bec39cab 19046_ACEOF
596c9d4b
KB
19047
19048 fi
b4e70030
JB
19049 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19050echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 19051
b4e70030
JB
19052 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19053echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19054 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19055 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19056else
bec39cab
AC
19057 cat >conftest.$ac_ext <<_ACEOF
19058/* confdefs.h. */
19059_ACEOF
19060cat confdefs.h >>conftest.$ac_ext
19061cat >>conftest.$ac_ext <<_ACEOF
19062/* end confdefs.h. */
596c9d4b
KB
19063
19064#define _SYSCALL32
19065#include <sys/procfs.h>
bec39cab
AC
19066int
19067main ()
19068{
97bf5e38 19069gregset_t avar
bec39cab
AC
19070 ;
19071 return 0;
19072}
19073_ACEOF
19074rm -f conftest.$ac_objext
19075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19076 (eval $ac_compile) 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } &&
b4e70030
JB
19083 { ac_try='test -z "$ac_c_werror_flag"
19084 || test ! -s conftest.err'
bec39cab
AC
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest.$ac_objext'
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
97bf5e38 19096 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 19097else
bec39cab
AC
19098 echo "$as_me: failed program was:" >&5
19099sed 's/^/| /' conftest.$ac_ext >&5
19100
b4e70030 19101bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 19102
596c9d4b 19103fi
bec39cab 19104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19105fi
19106
97bf5e38 19107 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
19108
19109cat >>confdefs.h <<\_ACEOF
97bf5e38 19110#define HAVE_GREGSET_T 1
bec39cab 19111_ACEOF
596c9d4b
KB
19112
19113 fi
b4e70030
JB
19114 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19115echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 19116
b4e70030
JB
19117 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19118echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19119 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 19121else
bec39cab
AC
19122 cat >conftest.$ac_ext <<_ACEOF
19123/* confdefs.h. */
19124_ACEOF
19125cat confdefs.h >>conftest.$ac_ext
19126cat >>conftest.$ac_ext <<_ACEOF
19127/* end confdefs.h. */
97bf5e38
MK
19128
19129#define _SYSCALL32
d84dd0c5 19130#include <sys/procfs.h>
bec39cab
AC
19131int
19132main ()
19133{
97bf5e38 19134fpregset_t avar
bec39cab
AC
19135 ;
19136 return 0;
19137}
19138_ACEOF
19139rm -f conftest.$ac_objext
19140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19141 (eval $ac_compile) 2>conftest.er1
19142 ac_status=$?
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
b4e70030
JB
19148 { ac_try='test -z "$ac_c_werror_flag"
19149 || test ! -s conftest.err'
bec39cab
AC
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest.$ac_objext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
97bf5e38 19161 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 19162else
bec39cab
AC
19163 echo "$as_me: failed program was:" >&5
19164sed 's/^/| /' conftest.$ac_ext >&5
19165
b4e70030 19166bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 19167
d84dd0c5 19168fi
bec39cab 19169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
19170fi
19171
97bf5e38 19172 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
19173
19174cat >>confdefs.h <<\_ACEOF
97bf5e38 19175#define HAVE_FPREGSET_T 1
bec39cab 19176_ACEOF
d84dd0c5 19177
97bf5e38 19178 fi
b4e70030
JB
19179 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19180echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 19181
b4e70030
JB
19182 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19183echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19184 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19186else
bec39cab
AC
19187 cat >conftest.$ac_ext <<_ACEOF
19188/* confdefs.h. */
19189_ACEOF
19190cat confdefs.h >>conftest.$ac_ext
19191cat >>conftest.$ac_ext <<_ACEOF
19192/* end confdefs.h. */
c906108c 19193
97bf5e38
MK
19194#define _SYSCALL32
19195#include <sys/procfs.h>
bec39cab
AC
19196int
19197main ()
19198{
97bf5e38 19199prgregset_t avar
bec39cab
AC
19200 ;
19201 return 0;
19202}
19203_ACEOF
19204rm -f conftest.$ac_objext
19205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206 (eval $ac_compile) 2>conftest.er1
19207 ac_status=$?
19208 grep -v '^ *+' conftest.er1 >conftest.err
19209 rm -f conftest.er1
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
b4e70030
JB
19213 { ac_try='test -z "$ac_c_werror_flag"
19214 || test ! -s conftest.err'
bec39cab
AC
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try='test -s conftest.$ac_objext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
97bf5e38 19226 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 19227else
bec39cab
AC
19228 echo "$as_me: failed program was:" >&5
19229sed 's/^/| /' conftest.$ac_ext >&5
19230
b4e70030 19231bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 19232
c906108c 19233fi
bec39cab 19234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19235fi
19236
97bf5e38 19237 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
19238
19239cat >>confdefs.h <<\_ACEOF
97bf5e38 19240#define HAVE_PRGREGSET_T 1
bec39cab 19241_ACEOF
c906108c 19242
97bf5e38 19243 fi
b4e70030
JB
19244 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19245echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 19246
b4e70030
JB
19247 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19248echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19249 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19251else
bec39cab
AC
19252 cat >conftest.$ac_ext <<_ACEOF
19253/* confdefs.h. */
19254_ACEOF
19255cat confdefs.h >>conftest.$ac_ext
19256cat >>conftest.$ac_ext <<_ACEOF
19257/* end confdefs.h. */
97bf5e38
MK
19258
19259#define _SYSCALL32
19260#include <sys/procfs.h>
bec39cab
AC
19261int
19262main ()
19263{
97bf5e38 19264prfpregset_t avar
bec39cab
AC
19265 ;
19266 return 0;
19267}
19268_ACEOF
19269rm -f conftest.$ac_objext
19270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19271 (eval $ac_compile) 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
b4e70030
JB
19278 { ac_try='test -z "$ac_c_werror_flag"
19279 || test ! -s conftest.err'
bec39cab
AC
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest.$ac_objext'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
97bf5e38 19291 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 19292else
bec39cab
AC
19293 echo "$as_me: failed program was:" >&5
19294sed 's/^/| /' conftest.$ac_ext >&5
19295
b4e70030 19296bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 19297
d45fe813 19298fi
bec39cab 19299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19300fi
19301
97bf5e38 19302 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
19303
19304cat >>confdefs.h <<\_ACEOF
97bf5e38 19305#define HAVE_PRFPREGSET_T 1
bec39cab 19306_ACEOF
d45fe813 19307
97bf5e38 19308 fi
b4e70030
JB
19309 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19310echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 19311
b4e70030
JB
19312 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19313echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19314 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19316else
bec39cab
AC
19317 cat >conftest.$ac_ext <<_ACEOF
19318/* confdefs.h. */
19319_ACEOF
19320cat confdefs.h >>conftest.$ac_ext
19321cat >>conftest.$ac_ext <<_ACEOF
19322/* end confdefs.h. */
97bf5e38
MK
19323
19324#define _SYSCALL32
19325#include <sys/procfs.h>
bec39cab
AC
19326int
19327main ()
19328{
97bf5e38 19329prgregset32_t avar
bec39cab
AC
19330 ;
19331 return 0;
19332}
19333_ACEOF
19334rm -f conftest.$ac_objext
19335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19336 (eval $ac_compile) 2>conftest.er1
19337 ac_status=$?
19338 grep -v '^ *+' conftest.er1 >conftest.err
19339 rm -f conftest.er1
19340 cat conftest.err >&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } &&
b4e70030
JB
19343 { ac_try='test -z "$ac_c_werror_flag"
19344 || test ! -s conftest.err'
bec39cab
AC
19345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; } &&
19350 { ac_try='test -s conftest.$ac_objext'
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; }; then
97bf5e38 19356 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 19357else
bec39cab
AC
19358 echo "$as_me: failed program was:" >&5
19359sed 's/^/| /' conftest.$ac_ext >&5
19360
b4e70030 19361bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 19362
d45fe813 19363fi
bec39cab 19364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19365fi
19366
97bf5e38 19367 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
19368
19369cat >>confdefs.h <<\_ACEOF
97bf5e38 19370#define HAVE_PRGREGSET32_T 1
bec39cab 19371_ACEOF
d45fe813 19372
97bf5e38 19373 fi
b4e70030
JB
19374 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19375echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 19376
b4e70030
JB
19377 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19378echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19379 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19381else
bec39cab
AC
19382 cat >conftest.$ac_ext <<_ACEOF
19383/* confdefs.h. */
19384_ACEOF
19385cat confdefs.h >>conftest.$ac_ext
19386cat >>conftest.$ac_ext <<_ACEOF
19387/* end confdefs.h. */
97bf5e38
MK
19388
19389#define _SYSCALL32
19390#include <sys/procfs.h>
bec39cab
AC
19391int
19392main ()
19393{
97bf5e38 19394prfpregset32_t avar
bec39cab
AC
19395 ;
19396 return 0;
19397}
19398_ACEOF
19399rm -f conftest.$ac_objext
19400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19401 (eval $ac_compile) 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
b4e70030
JB
19408 { ac_try='test -z "$ac_c_werror_flag"
19409 || test ! -s conftest.err'
bec39cab
AC
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; } &&
19415 { ac_try='test -s conftest.$ac_objext'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
97bf5e38 19421 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 19422else
bec39cab
AC
19423 echo "$as_me: failed program was:" >&5
19424sed 's/^/| /' conftest.$ac_ext >&5
19425
b4e70030 19426bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 19427
d45fe813 19428fi
bec39cab 19429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19430fi
19431
97bf5e38 19432 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
19433
19434cat >>confdefs.h <<\_ACEOF
97bf5e38 19435#define HAVE_PRFPREGSET32_T 1
bec39cab 19436_ACEOF
d45fe813 19437
97bf5e38 19438 fi
b4e70030
JB
19439 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19440echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 19441
b4e70030
JB
19442 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19443echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19444 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19446else
bec39cab
AC
19447 cat >conftest.$ac_ext <<_ACEOF
19448/* confdefs.h. */
19449_ACEOF
19450cat confdefs.h >>conftest.$ac_ext
19451cat >>conftest.$ac_ext <<_ACEOF
19452/* end confdefs.h. */
97bf5e38 19453
d45fe813 19454#define _SYSCALL32
97bf5e38 19455#include <sys/procfs.h>
bec39cab
AC
19456int
19457main ()
19458{
97bf5e38 19459lwpid_t avar
bec39cab
AC
19460 ;
19461 return 0;
19462}
19463_ACEOF
19464rm -f conftest.$ac_objext
19465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19466 (eval $ac_compile) 2>conftest.er1
19467 ac_status=$?
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
b4e70030
JB
19473 { ac_try='test -z "$ac_c_werror_flag"
19474 || test ! -s conftest.err'
bec39cab
AC
19475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476 (eval $ac_try) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; } &&
19480 { ac_try='test -s conftest.$ac_objext'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
97bf5e38 19486 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 19487else
bec39cab
AC
19488 echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
b4e70030 19491bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 19492
d45fe813 19493fi
bec39cab 19494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19495fi
19496
97bf5e38 19497 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
19498
19499cat >>confdefs.h <<\_ACEOF
97bf5e38 19500#define HAVE_LWPID_T 1
bec39cab 19501_ACEOF
d45fe813 19502
97bf5e38 19503 fi
b4e70030
JB
19504 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19505echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 19506
b4e70030
JB
19507 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19508echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19509 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19511else
bec39cab
AC
19512 cat >conftest.$ac_ext <<_ACEOF
19513/* confdefs.h. */
19514_ACEOF
19515cat confdefs.h >>conftest.$ac_ext
19516cat >>conftest.$ac_ext <<_ACEOF
19517/* end confdefs.h. */
c906108c 19518
97bf5e38
MK
19519#define _SYSCALL32
19520#include <sys/procfs.h>
bec39cab
AC
19521int
19522main ()
19523{
97bf5e38 19524psaddr_t avar
bec39cab
AC
19525 ;
19526 return 0;
19527}
19528_ACEOF
19529rm -f conftest.$ac_objext
19530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19531 (eval $ac_compile) 2>conftest.er1
19532 ac_status=$?
19533 grep -v '^ *+' conftest.er1 >conftest.err
19534 rm -f conftest.er1
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } &&
b4e70030
JB
19538 { ac_try='test -z "$ac_c_werror_flag"
19539 || test ! -s conftest.err'
bec39cab
AC
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; } &&
19545 { ac_try='test -s conftest.$ac_objext'
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
97bf5e38 19551 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 19552else
bec39cab
AC
19553 echo "$as_me: failed program was:" >&5
19554sed 's/^/| /' conftest.$ac_ext >&5
19555
b4e70030 19556bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 19557
c906108c 19558fi
bec39cab 19559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19560fi
19561
97bf5e38 19562 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
19563
19564cat >>confdefs.h <<\_ACEOF
97bf5e38 19565#define HAVE_PSADDR_T 1
bec39cab 19566_ACEOF
c906108c 19567
97bf5e38 19568 fi
b4e70030
JB
19569 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19570echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 19571
b4e70030
JB
19572 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19573echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19574 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19576else
bec39cab
AC
19577 cat >conftest.$ac_ext <<_ACEOF
19578/* confdefs.h. */
19579_ACEOF
19580cat confdefs.h >>conftest.$ac_ext
19581cat >>conftest.$ac_ext <<_ACEOF
19582/* end confdefs.h. */
c906108c 19583
97bf5e38
MK
19584#define _SYSCALL32
19585#include <sys/procfs.h>
bec39cab
AC
19586int
19587main ()
19588{
97bf5e38 19589prsysent_t avar
bec39cab
AC
19590 ;
19591 return 0;
19592}
19593_ACEOF
19594rm -f conftest.$ac_objext
19595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19596 (eval $ac_compile) 2>conftest.er1
19597 ac_status=$?
19598 grep -v '^ *+' conftest.er1 >conftest.err
19599 rm -f conftest.er1
19600 cat conftest.err >&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
b4e70030
JB
19603 { ac_try='test -z "$ac_c_werror_flag"
19604 || test ! -s conftest.err'
bec39cab
AC
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } &&
19610 { ac_try='test -s conftest.$ac_objext'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
97bf5e38 19616 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 19617else
bec39cab
AC
19618 echo "$as_me: failed program was:" >&5
19619sed 's/^/| /' conftest.$ac_ext >&5
19620
b4e70030 19621bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 19622
c906108c 19623fi
bec39cab 19624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19625fi
19626
97bf5e38 19627 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
19628
19629cat >>confdefs.h <<\_ACEOF
97bf5e38 19630#define HAVE_PRSYSENT_T 1
bec39cab 19631_ACEOF
c906108c 19632
97bf5e38 19633 fi
b4e70030
JB
19634 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
19635echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 19636
b4e70030
JB
19637 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
19638echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19639 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19641else
bec39cab
AC
19642 cat >conftest.$ac_ext <<_ACEOF
19643/* confdefs.h. */
19644_ACEOF
19645cat confdefs.h >>conftest.$ac_ext
19646cat >>conftest.$ac_ext <<_ACEOF
19647/* end confdefs.h. */
c906108c 19648
97bf5e38
MK
19649#define _SYSCALL32
19650#include <sys/procfs.h>
bec39cab
AC
19651int
19652main ()
19653{
97bf5e38 19654pr_sigset_t avar
bec39cab
AC
19655 ;
19656 return 0;
19657}
19658_ACEOF
19659rm -f conftest.$ac_objext
19660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19661 (eval $ac_compile) 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } &&
b4e70030
JB
19668 { ac_try='test -z "$ac_c_werror_flag"
19669 || test ! -s conftest.err'
bec39cab
AC
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; } &&
19675 { ac_try='test -s conftest.$ac_objext'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
97bf5e38 19681 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 19682else
bec39cab
AC
19683 echo "$as_me: failed program was:" >&5
19684sed 's/^/| /' conftest.$ac_ext >&5
19685
b4e70030 19686bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 19687
c906108c 19688fi
bec39cab 19689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19690fi
19691
97bf5e38 19692 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
19693
19694cat >>confdefs.h <<\_ACEOF
97bf5e38 19695#define HAVE_PR_SIGSET_T 1
bec39cab 19696_ACEOF
c906108c 19697
97bf5e38 19698 fi
b4e70030
JB
19699 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
19700echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 19701
b4e70030
JB
19702 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
19703echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19704 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19706else
bec39cab
AC
19707 cat >conftest.$ac_ext <<_ACEOF
19708/* confdefs.h. */
19709_ACEOF
19710cat confdefs.h >>conftest.$ac_ext
19711cat >>conftest.$ac_ext <<_ACEOF
19712/* end confdefs.h. */
c906108c 19713
97bf5e38
MK
19714#define _SYSCALL32
19715#include <sys/procfs.h>
bec39cab
AC
19716int
19717main ()
19718{
97bf5e38 19719pr_sigaction64_t avar
bec39cab
AC
19720 ;
19721 return 0;
19722}
19723_ACEOF
19724rm -f conftest.$ac_objext
19725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19726 (eval $ac_compile) 2>conftest.er1
19727 ac_status=$?
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
b4e70030
JB
19733 { ac_try='test -z "$ac_c_werror_flag"
19734 || test ! -s conftest.err'
bec39cab
AC
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } &&
19740 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
97bf5e38 19746 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 19747else
bec39cab
AC
19748 echo "$as_me: failed program was:" >&5
19749sed 's/^/| /' conftest.$ac_ext >&5
19750
b4e70030 19751bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 19752
c906108c 19753fi
bec39cab 19754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19755fi
19756
97bf5e38 19757 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
19758
19759cat >>confdefs.h <<\_ACEOF
97bf5e38 19760#define HAVE_PR_SIGACTION64_T 1
bec39cab 19761_ACEOF
c906108c 19762
97bf5e38 19763 fi
b4e70030
JB
19764 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
19765echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 19766
b4e70030
JB
19767 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
19768echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19769 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19771else
bec39cab
AC
19772 cat >conftest.$ac_ext <<_ACEOF
19773/* confdefs.h. */
19774_ACEOF
19775cat confdefs.h >>conftest.$ac_ext
19776cat >>conftest.$ac_ext <<_ACEOF
19777/* end confdefs.h. */
97bf5e38
MK
19778
19779#define _SYSCALL32
19780#include <sys/procfs.h>
bec39cab
AC
19781int
19782main ()
19783{
97bf5e38 19784pr_siginfo64_t avar
bec39cab
AC
19785 ;
19786 return 0;
19787}
19788_ACEOF
19789rm -f conftest.$ac_objext
19790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791 (eval $ac_compile) 2>conftest.er1
19792 ac_status=$?
19793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
b4e70030
JB
19798 { ac_try='test -z "$ac_c_werror_flag"
19799 || test ! -s conftest.err'
bec39cab
AC
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest.$ac_objext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
97bf5e38
MK
19811 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
19812else
bec39cab
AC
19813 echo "$as_me: failed program was:" >&5
19814sed 's/^/| /' conftest.$ac_ext >&5
19815
b4e70030 19816bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 19817
97bf5e38 19818fi
bec39cab 19819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19820fi
c906108c 19821
97bf5e38 19822 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
19823
19824cat >>confdefs.h <<\_ACEOF
97bf5e38 19825#define HAVE_PR_SIGINFO64_T 1
bec39cab 19826_ACEOF
c906108c 19827
97bf5e38 19828 fi
b4e70030
JB
19829 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
19830echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
19831
19832
97bf5e38
MK
19833
19834
19835
97bf5e38 19836 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
19837 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
19838echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
19839 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
19840 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
19841else
19842 if test "$cross_compiling" = yes; then
97bf5e38 19843 gdb_cv_prfpregset_t_broken=yes
c906108c 19844else
bec39cab
AC
19845 cat >conftest.$ac_ext <<_ACEOF
19846/* confdefs.h. */
19847_ACEOF
19848cat confdefs.h >>conftest.$ac_ext
19849cat >>conftest.$ac_ext <<_ACEOF
19850/* end confdefs.h. */
97bf5e38
MK
19851#include <sys/procfs.h>
19852 int main ()
19853 {
19854 if (sizeof (prfpregset_t) == sizeof (void *))
19855 return 1;
19856 return 0;
19857 }
bec39cab
AC
19858_ACEOF
19859rm -f conftest$ac_exeext
19860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19861 (eval $ac_link) 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; }; then
97bf5e38 19870 gdb_cv_prfpregset_t_broken=no
c906108c 19871else
bec39cab
AC
19872 echo "$as_me: program exited with status $ac_status" >&5
19873echo "$as_me: failed program was:" >&5
19874sed 's/^/| /' conftest.$ac_ext >&5
19875
19876( exit $ac_status )
19877gdb_cv_prfpregset_t_broken=yes
c906108c 19878fi
b4e70030 19879rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19880fi
c906108c
SS
19881fi
19882
b4e70030
JB
19883 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
19884echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 19885 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
19886
19887cat >>confdefs.h <<\_ACEOF
97bf5e38 19888#define PRFPREGSET_T_BROKEN 1
bec39cab 19889_ACEOF
c906108c 19890
97bf5e38
MK
19891 fi
19892 fi
c906108c 19893
bec39cab 19894
b4e70030
JB
19895 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
19896echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19897 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19899else
bec39cab
AC
19900 cat >conftest.$ac_ext <<_ACEOF
19901/* confdefs.h. */
19902_ACEOF
19903cat confdefs.h >>conftest.$ac_ext
19904cat >>conftest.$ac_ext <<_ACEOF
19905/* end confdefs.h. */
97bf5e38
MK
19906#include <unistd.h>
19907#include <sys/types.h>
19908#include <sys/procfs.h>
19909
bec39cab
AC
19910int
19911main ()
19912{
97bf5e38
MK
19913
19914 int dummy;;
19915 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
19916
19917 ;
19918 return 0;
19919}
19920_ACEOF
19921rm -f conftest.$ac_objext
19922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923 (eval $ac_compile) 2>conftest.er1
19924 ac_status=$?
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } &&
b4e70030
JB
19930 { ac_try='test -z "$ac_c_werror_flag"
19931 || test ! -s conftest.err'
bec39cab
AC
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; } &&
19937 { ac_try='test -s conftest.$ac_objext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
97bf5e38 19943 gdb_cv_have_procfs_piocset=yes
c906108c 19944else
bec39cab
AC
19945 echo "$as_me: failed program was:" >&5
19946sed 's/^/| /' conftest.$ac_ext >&5
19947
b4e70030 19948gdb_cv_have_procfs_piocset=no
c906108c 19949fi
bec39cab 19950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19951fi
97bf5e38 19952
b4e70030
JB
19953 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
19954echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 19955 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
19956
19957cat >>confdefs.h <<\_ACEOF
97bf5e38 19958#define HAVE_PROCFS_PIOCSET 1
bec39cab 19959_ACEOF
97bf5e38
MK
19960
19961 fi
c906108c 19962fi
c906108c 19963
97bf5e38 19964if test ${host} = ${target} ; then
bec39cab 19965
b4e70030
JB
19966 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
19967echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
19968 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19970else
19971 cat >conftest.$ac_ext <<_ACEOF
19972/* confdefs.h. */
19973_ACEOF
19974cat confdefs.h >>conftest.$ac_ext
19975cat >>conftest.$ac_ext <<_ACEOF
19976/* end confdefs.h. */
97bf5e38 19977#include <link.h>
bec39cab
AC
19978int
19979main ()
19980{
97bf5e38 19981struct link_map lm; (void) lm.l_addr;
bec39cab
AC
19982 ;
19983 return 0;
19984}
19985_ACEOF
19986rm -f conftest.$ac_objext
19987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19988 (eval $ac_compile) 2>conftest.er1
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
b4e70030
JB
19995 { ac_try='test -z "$ac_c_werror_flag"
19996 || test ! -s conftest.err'
bec39cab
AC
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; } &&
20002 { ac_try='test -s conftest.$ac_objext'
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
97bf5e38 20008 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 20009else
bec39cab
AC
20010 echo "$as_me: failed program was:" >&5
20011sed 's/^/| /' conftest.$ac_ext >&5
20012
b4e70030 20013gdb_cv_have_struct_link_map_with_l_members=no
c906108c 20014fi
bec39cab 20015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20016fi
20017
b4e70030
JB
20018 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20019echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 20020 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
20021
20022cat >>confdefs.h <<\_ACEOF
97bf5e38 20023#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 20024_ACEOF
97bf5e38
MK
20025
20026 fi
20027
bec39cab 20028
b4e70030
JB
20029 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20030echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20031 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20033else
bec39cab
AC
20034 cat >conftest.$ac_ext <<_ACEOF
20035/* confdefs.h. */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h. */
97bf5e38
MK
20040#include <sys/types.h>
20041#include <link.h>
bec39cab
AC
20042int
20043main ()
20044{
97bf5e38 20045struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
20046 ;
20047 return 0;
20048}
20049_ACEOF
20050rm -f conftest.$ac_objext
20051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20052 (eval $ac_compile) 2>conftest.er1
20053 ac_status=$?
20054 grep -v '^ *+' conftest.er1 >conftest.err
20055 rm -f conftest.er1
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } &&
b4e70030
JB
20059 { ac_try='test -z "$ac_c_werror_flag"
20060 || test ! -s conftest.err'
bec39cab
AC
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try='test -s conftest.$ac_objext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
97bf5e38
MK
20072 gdb_cv_have_struct_link_map_with_lm_members=yes
20073else
bec39cab
AC
20074 echo "$as_me: failed program was:" >&5
20075sed 's/^/| /' conftest.$ac_ext >&5
20076
b4e70030 20077gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 20078fi
bec39cab 20079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20080fi
c906108c 20081
b4e70030
JB
20082 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20083echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 20084 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
20085
20086cat >>confdefs.h <<\_ACEOF
97bf5e38 20087#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 20088_ACEOF
97bf5e38
MK
20089
20090 fi
20091
bec39cab 20092
b4e70030
JB
20093 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20094echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
20095 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20097else
bec39cab
AC
20098 cat >conftest.$ac_ext <<_ACEOF
20099/* confdefs.h. */
20100_ACEOF
20101cat confdefs.h >>conftest.$ac_ext
20102cat >>conftest.$ac_ext <<_ACEOF
20103/* end confdefs.h. */
97bf5e38
MK
20104#include <sys/types.h>
20105#ifdef HAVE_NLIST_H
20106#include <nlist.h>
20107#endif
20108#include <link.h>
bec39cab
AC
20109int
20110main ()
20111{
97bf5e38 20112struct so_map lm; (void) lm.som_addr;
bec39cab
AC
20113 ;
20114 return 0;
20115}
20116_ACEOF
20117rm -f conftest.$ac_objext
20118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20119 (eval $ac_compile) 2>conftest.er1
20120 ac_status=$?
20121 grep -v '^ *+' conftest.er1 >conftest.err
20122 rm -f conftest.er1
20123 cat conftest.err >&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } &&
b4e70030
JB
20126 { ac_try='test -z "$ac_c_werror_flag"
20127 || test ! -s conftest.err'
bec39cab
AC
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
97bf5e38
MK
20139 gdb_cv_have_struct_so_map_with_som_members=yes
20140else
bec39cab
AC
20141 echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
20143
b4e70030 20144gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 20145fi
bec39cab 20146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20147fi
c906108c 20148
b4e70030
JB
20149 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20150echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 20151 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
20152
20153cat >>confdefs.h <<\_ACEOF
97bf5e38 20154#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 20155_ACEOF
c906108c 20156
97bf5e38 20157 fi
c906108c 20158
bec39cab 20159
b4e70030
JB
20160 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20161echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
20162 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20164else
bec39cab
AC
20165 cat >conftest.$ac_ext <<_ACEOF
20166/* confdefs.h. */
20167_ACEOF
20168cat confdefs.h >>conftest.$ac_ext
20169cat >>conftest.$ac_ext <<_ACEOF
20170/* end confdefs.h. */
97bf5e38
MK
20171#define _SYSCALL32
20172#include <sys/link.h>
bec39cab
AC
20173int
20174main ()
20175{
97bf5e38 20176struct link_map32 l;
bec39cab
AC
20177 ;
20178 return 0;
20179}
20180_ACEOF
20181rm -f conftest.$ac_objext
20182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20183 (eval $ac_compile) 2>conftest.er1
20184 ac_status=$?
20185 grep -v '^ *+' conftest.er1 >conftest.err
20186 rm -f conftest.er1
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } &&
b4e70030
JB
20190 { ac_try='test -z "$ac_c_werror_flag"
20191 || test ! -s conftest.err'
bec39cab
AC
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest.$ac_objext'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
97bf5e38
MK
20203 gdb_cv_have_struct_link_map32=yes
20204else
bec39cab
AC
20205 echo "$as_me: failed program was:" >&5
20206sed 's/^/| /' conftest.$ac_ext >&5
20207
b4e70030 20208gdb_cv_have_struct_link_map32=no
97bf5e38 20209fi
bec39cab 20210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20211fi
c906108c 20212
b4e70030
JB
20213 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20214echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 20215 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
20216
20217cat >>confdefs.h <<\_ACEOF
97bf5e38 20218#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 20219_ACEOF
c906108c 20220
60ca704f
SE
20221
20222cat >>confdefs.h <<\_ACEOF
97bf5e38 20223#define _SYSCALL32 1
bec39cab 20224_ACEOF
c906108c 20225
97bf5e38
MK
20226 fi
20227fi
c906108c 20228
bc8bcb4b 20229# Check if the compiler supports the `long long' type.
c906108c 20230
b4e70030
JB
20231echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20232echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
20233if test "${gdb_cv_c_long_long+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20235else
bec39cab
AC
20236 cat >conftest.$ac_ext <<_ACEOF
20237/* confdefs.h. */
20238_ACEOF
20239cat confdefs.h >>conftest.$ac_ext
20240cat >>conftest.$ac_ext <<_ACEOF
20241/* end confdefs.h. */
bc8bcb4b 20242extern long long foo;
bec39cab
AC
20243int
20244main ()
20245{
bc8bcb4b 20246switch (foo & 2) { case 0: return 1; }
bec39cab
AC
20247 ;
20248 return 0;
20249}
20250_ACEOF
20251rm -f conftest.$ac_objext
20252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20253 (eval $ac_compile) 2>conftest.er1
20254 ac_status=$?
20255 grep -v '^ *+' conftest.er1 >conftest.err
20256 rm -f conftest.er1
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
b4e70030
JB
20260 { ac_try='test -z "$ac_c_werror_flag"
20261 || test ! -s conftest.err'
bec39cab
AC
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; } &&
20267 { ac_try='test -s conftest.$ac_objext'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
97bf5e38
MK
20273 gdb_cv_c_long_long=yes
20274else
bec39cab
AC
20275 echo "$as_me: failed program was:" >&5
20276sed 's/^/| /' conftest.$ac_ext >&5
20277
b4e70030 20278gdb_cv_c_long_long=no
97bf5e38 20279fi
bec39cab 20280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20281fi
b4e70030
JB
20282echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20283echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 20284if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
20285
20286cat >>confdefs.h <<\_ACEOF
97bf5e38 20287#define CC_HAS_LONG_LONG 1
bec39cab 20288_ACEOF
97bf5e38
MK
20289
20290fi
20291
bc8bcb4b 20292# Check if the compiler and runtime support printing long longs.
97bf5e38 20293
b4e70030
JB
20294echo "$as_me:$LINENO: checking for long long support in printf" >&5
20295echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
20296if test "${gdb_cv_printf_has_long_long+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20298else
20299 if test "$cross_compiling" = yes; then
20300 gdb_cv_printf_has_long_long=no
20301else
bec39cab
AC
20302 cat >conftest.$ac_ext <<_ACEOF
20303/* confdefs.h. */
20304_ACEOF
20305cat confdefs.h >>conftest.$ac_ext
20306cat >>conftest.$ac_ext <<_ACEOF
20307/* end confdefs.h. */
bc8bcb4b
MK
20308$ac_includes_default
20309int
20310main ()
20311{
20312char buf[32];
97bf5e38
MK
20313 long long l = 0;
20314 l = (l << 16) + 0x0123;
20315 l = (l << 16) + 0x4567;
20316 l = (l << 16) + 0x89ab;
20317 l = (l << 16) + 0xcdef;
20318 sprintf (buf, "0x%016llx", l);
20319 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
20320 ;
20321 return 0;
c906108c 20322}
bec39cab
AC
20323_ACEOF
20324rm -f conftest$ac_exeext
20325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20326 (eval $ac_link) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; }; then
97bf5e38
MK
20335 gdb_cv_printf_has_long_long=yes
20336else
bec39cab
AC
20337 echo "$as_me: program exited with status $ac_status" >&5
20338echo "$as_me: failed program was:" >&5
20339sed 's/^/| /' conftest.$ac_ext >&5
20340
20341( exit $ac_status )
20342gdb_cv_printf_has_long_long=no
97bf5e38 20343fi
b4e70030 20344rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20345fi
97bf5e38 20346fi
b4e70030
JB
20347echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20348echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 20349if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
20350
20351cat >>confdefs.h <<\_ACEOF
97bf5e38 20352#define PRINTF_HAS_LONG_LONG 1
bec39cab 20353_ACEOF
97bf5e38
MK
20354
20355fi
97bf5e38 20356
bc8bcb4b
MK
20357# Check if the compiler supports the `long double' type. We can't use
20358# AC_C_LONG_DOUBLE because that one does additional checks on the
20359# constants defined in <float.h> that fail on some systems,
20360# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 20361
b4e70030
JB
20362echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20363echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 20364if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 20365 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20366else
bec39cab
AC
20367 cat >conftest.$ac_ext <<_ACEOF
20368/* confdefs.h. */
20369_ACEOF
20370cat confdefs.h >>conftest.$ac_ext
20371cat >>conftest.$ac_ext <<_ACEOF
20372/* end confdefs.h. */
97bf5e38 20373long double foo;
bec39cab
AC
20374_ACEOF
20375rm -f conftest.$ac_objext
20376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20377 (eval $ac_compile) 2>conftest.er1
20378 ac_status=$?
20379 grep -v '^ *+' conftest.er1 >conftest.err
20380 rm -f conftest.er1
20381 cat conftest.err >&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } &&
b4e70030
JB
20384 { ac_try='test -z "$ac_c_werror_flag"
20385 || test ! -s conftest.err'
bec39cab
AC
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20388 ac_status=$?
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; } &&
20391 { ac_try='test -s conftest.$ac_objext'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
bc8bcb4b 20397 gdb_cv_c_long_double=yes
97bf5e38 20398else
bec39cab
AC
20399 echo "$as_me: failed program was:" >&5
20400sed 's/^/| /' conftest.$ac_ext >&5
20401
b4e70030 20402gdb_cv_c_long_double=no
97bf5e38 20403fi
bec39cab 20404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20405fi
b4e70030
JB
20406echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20407echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 20408if test $gdb_cv_c_long_double = yes; then
c906108c 20409
bc8bcb4b 20410cat >>confdefs.h <<\_ACEOF
97bf5e38 20411#define HAVE_LONG_DOUBLE 1
bec39cab 20412_ACEOF
97bf5e38
MK
20413
20414fi
20415
bc8bcb4b 20416# Check if the compiler and runtime support printing long doubles.
97bf5e38 20417
b4e70030
JB
20418echo "$as_me:$LINENO: checking for long double support in printf" >&5
20419echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
20420if test "${gdb_cv_printf_has_long_double+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20422else
20423 if test "$cross_compiling" = yes; then
20424 gdb_cv_printf_has_long_double=no
20425else
bec39cab
AC
20426 cat >conftest.$ac_ext <<_ACEOF
20427/* confdefs.h. */
20428_ACEOF
20429cat confdefs.h >>conftest.$ac_ext
20430cat >>conftest.$ac_ext <<_ACEOF
20431/* end confdefs.h. */
bc8bcb4b
MK
20432$ac_includes_default
20433int
20434main ()
20435{
20436char buf[16];
97bf5e38
MK
20437 long double f = 3.141592653;
20438 sprintf (buf, "%Lg", f);
20439 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
20440 ;
20441 return 0;
97bf5e38 20442}
bec39cab
AC
20443_ACEOF
20444rm -f conftest$ac_exeext
20445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446 (eval $ac_link) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; }; then
97bf5e38 20455 gdb_cv_printf_has_long_double=yes
c906108c 20456else
bec39cab
AC
20457 echo "$as_me: program exited with status $ac_status" >&5
20458echo "$as_me: failed program was:" >&5
20459sed 's/^/| /' conftest.$ac_ext >&5
20460
20461( exit $ac_status )
20462gdb_cv_printf_has_long_double=no
c906108c 20463fi
b4e70030 20464rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20465fi
c906108c 20466fi
b4e70030
JB
20467echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20468echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 20469if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
20470
20471cat >>confdefs.h <<\_ACEOF
97bf5e38 20472#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 20473_ACEOF
97bf5e38
MK
20474
20475fi
97bf5e38 20476
bc8bcb4b 20477# Check if the compiler and runtime support scanning long doubles.
97bf5e38 20478
b4e70030
JB
20479echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20480echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
20481if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20483else
20484 if test "$cross_compiling" = yes; then
20485 gdb_cv_scanf_has_long_double=no
20486else
bec39cab
AC
20487 cat >conftest.$ac_ext <<_ACEOF
20488/* confdefs.h. */
20489_ACEOF
20490cat confdefs.h >>conftest.$ac_ext
20491cat >>conftest.$ac_ext <<_ACEOF
20492/* end confdefs.h. */
bc8bcb4b
MK
20493#include <stdio.h>
20494int
20495main ()
20496{
20497char *buf = "3.141592653";
97bf5e38
MK
20498 long double f = 0;
20499 sscanf (buf, "%Lg", &f);
20500 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
20501 ;
20502 return 0;
97bf5e38 20503}
bec39cab
AC
20504_ACEOF
20505rm -f conftest$ac_exeext
20506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20507 (eval $ac_link) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
97bf5e38
MK
20516 gdb_cv_scanf_has_long_double=yes
20517else
bec39cab
AC
20518 echo "$as_me: program exited with status $ac_status" >&5
20519echo "$as_me: failed program was:" >&5
20520sed 's/^/| /' conftest.$ac_ext >&5
20521
20522( exit $ac_status )
20523gdb_cv_scanf_has_long_double=no
97bf5e38 20524fi
b4e70030 20525rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20526fi
c906108c 20527fi
b4e70030
JB
20528echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20529echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 20530if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
20531
20532cat >>confdefs.h <<\_ACEOF
97bf5e38 20533#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 20534_ACEOF
97bf5e38
MK
20535
20536fi
c906108c 20537
438013df
AO
20538case ${host_os} in
20539aix*)
b4e70030
JB
20540 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20541echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
20542if test "${gdb_cv_bigtoc+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 20544else
bec39cab 20545
438013df
AO
20546 SAVE_LDFLAGS=$LDFLAGS
20547
20548 case $GCC in
20549 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20550 *) gdb_cv_bigtoc=-bbigtoc ;;
20551 esac
20552
20553 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
20554 cat >conftest.$ac_ext <<_ACEOF
20555/* confdefs.h. */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h. */
438013df 20560
bec39cab
AC
20561int
20562main ()
20563{
438013df 20564int i;
bec39cab
AC
20565 ;
20566 return 0;
20567}
20568_ACEOF
20569rm -f conftest.$ac_objext conftest$ac_exeext
20570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20571 (eval $ac_link) 2>conftest.er1
20572 ac_status=$?
20573 grep -v '^ *+' conftest.er1 >conftest.err
20574 rm -f conftest.er1
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } &&
b4e70030
JB
20578 { ac_try='test -z "$ac_c_werror_flag"
20579 || test ! -s conftest.err'
bec39cab
AC
20580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581 (eval $ac_try) 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; } &&
20585 { ac_try='test -s conftest$ac_exeext'
20586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587 (eval $ac_try) 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; }; then
438013df
AO
20591 :
20592else
bec39cab
AC
20593 echo "$as_me: failed program was:" >&5
20594sed 's/^/| /' conftest.$ac_ext >&5
20595
b4e70030 20596gdb_cv_bigtoc=
438013df 20597fi
bec39cab
AC
20598rm -f conftest.err conftest.$ac_objext \
20599 conftest$ac_exeext conftest.$ac_ext
ec76baa5 20600 LDFLAGS="${SAVE_LDFLAGS}"
438013df 20601
bec39cab 20602fi
b4e70030
JB
20603echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
20604echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
20605 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
20606 ;;
20607esac
20608
c906108c
SS
20609
20610
20611if test ${build} = ${host} -a ${host} = ${target} ; then
20612 case ${host_os} in
20613 hpux*)
b4e70030
JB
20614 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
20615echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
20616 if test -f /usr/include/dce/cma_config.h ; then
20617 if test "$GCC" = "yes" ; then
b4e70030
JB
20618 echo "$as_me:$LINENO: result: yes" >&5
20619echo "${ECHO_T}yes" >&6
60ca704f
SE
20620
20621cat >>confdefs.h <<\_ACEOF
c906108c 20622#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 20623_ACEOF
c906108c 20624
3483b318 20625 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
20626 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
20627 else
b4e70030
JB
20628 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
20629echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
20630 fi
20631 else
b4e70030
JB
20632 echo "$as_me:$LINENO: result: no" >&5
20633echo "${ECHO_T}no" >&6
c906108c
SS
20634 fi
20635 ;;
20636 solaris*)
d92419e5
JB
20637 # See if thread_db library is around for Solaris thread debugging.
20638 # Note that we must explicitly test for version 1 of the library
20639 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
20640 # the same API.
b4e70030
JB
20641 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
20642echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 20643 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
20644 echo "$as_me:$LINENO: result: yes" >&5
20645echo "${ECHO_T}yes" >&6
60ca704f
SE
20646
20647cat >>confdefs.h <<\_ACEOF
c906108c 20648#define HAVE_THREAD_DB_LIB 1
bec39cab 20649_ACEOF
c906108c 20650
3483b318 20651 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 20652 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 20653
b4e70030
JB
20654echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20655echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
20656if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20658else
bec39cab 20659 ac_check_lib_save_LIBS=$LIBS
c906108c 20660LIBS="-ldl $LIBS"
bec39cab
AC
20661cat >conftest.$ac_ext <<_ACEOF
20662/* confdefs.h. */
20663_ACEOF
20664cat confdefs.h >>conftest.$ac_ext
20665cat >>conftest.$ac_ext <<_ACEOF
20666/* end confdefs.h. */
20667
b4e70030 20668/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
20669#ifdef __cplusplus
20670extern "C"
20671#endif
b4e70030
JB
20672/* We use char because int might match the return type of a gcc2
20673 builtin and then its argument prototype would still apply. */
bec39cab
AC
20674char dlopen ();
20675int
20676main ()
20677{
b4e70030 20678dlopen ();
bec39cab
AC
20679 ;
20680 return 0;
20681}
20682_ACEOF
20683rm -f conftest.$ac_objext conftest$ac_exeext
20684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20685 (eval $ac_link) 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'
bec39cab
AC
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_exeext'
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_lib_dl_dlopen=yes
20706else
20707 echo "$as_me: failed program was:" >&5
20708sed 's/^/| /' conftest.$ac_ext >&5
20709
b4e70030 20710ac_cv_lib_dl_dlopen=no
bec39cab
AC
20711fi
20712rm -f conftest.err conftest.$ac_objext \
20713 conftest$ac_exeext conftest.$ac_ext
20714LIBS=$ac_check_lib_save_LIBS
20715fi
b4e70030
JB
20716echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20717echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
20718if test $ac_cv_lib_dl_dlopen = yes; then
20719 cat >>confdefs.h <<_ACEOF
20720#define HAVE_LIBDL 1
20721_ACEOF
c906108c
SS
20722
20723 LIBS="-ldl $LIBS"
20724
c906108c
SS
20725fi
20726
20727 if test "$GCC" = "yes" ; then
20728 # The GNU linker requires the -export-dynamic option to make
20729 # all symbols visible in the dynamic symbol table.
20730 hold_ldflags=$LDFLAGS
b4e70030
JB
20731 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
20732echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 20733 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
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. */
c906108c 20740
bec39cab
AC
20741int
20742main ()
20743{
c906108c 20744int i;
bec39cab
AC
20745 ;
20746 return 0;
20747}
20748_ACEOF
20749rm -f conftest.$ac_objext conftest$ac_exeext
20750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20751 (eval $ac_link) 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_exeext'
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
c906108c
SS
20771 found=yes
20772else
bec39cab
AC
20773 echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
b4e70030 20776found=no
c906108c 20777fi
bec39cab
AC
20778rm -f conftest.err conftest.$ac_objext \
20779 conftest$ac_exeext conftest.$ac_ext
c906108c 20780 LDFLAGS=$hold_ldflags
b4e70030
JB
20781 echo "$as_me:$LINENO: result: $found" >&5
20782echo "${ECHO_T}$found" >&6
c906108c
SS
20783 if test $found = yes; then
20784 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
20785 fi
20786 fi
20787 # Sun randomly tweaked the prototypes in <proc_service.h>
20788 # at one point.
b4e70030
JB
20789 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
20790echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
20791 if test "${gdb_cv_proc_service_is_old+set}" = set; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20793else
bec39cab
AC
20794
20795 cat >conftest.$ac_ext <<_ACEOF
20796/* confdefs.h. */
20797_ACEOF
20798cat confdefs.h >>conftest.$ac_ext
20799cat >>conftest.$ac_ext <<_ACEOF
20800/* end confdefs.h. */
c906108c
SS
20801
20802 #include <proc_service.h>
20803 ps_err_e ps_pdwrite
20804 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 20805
bec39cab
AC
20806int
20807main ()
20808{
20809
20810 ;
20811 return 0;
20812}
20813_ACEOF
20814rm -f conftest.$ac_objext
20815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20816 (eval $ac_compile) 2>conftest.er1
20817 ac_status=$?
20818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
b4e70030
JB
20823 { ac_try='test -z "$ac_c_werror_flag"
20824 || test ! -s conftest.err'
bec39cab
AC
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20827 ac_status=$?
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest.$ac_objext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20833 ac_status=$?
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
c906108c
SS
20836 gdb_cv_proc_service_is_old=no
20837else
bec39cab
AC
20838 echo "$as_me: failed program was:" >&5
20839sed 's/^/| /' conftest.$ac_ext >&5
20840
b4e70030 20841gdb_cv_proc_service_is_old=yes
c906108c 20842fi
bec39cab
AC
20843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20844
c906108c
SS
20845fi
20846
b4e70030
JB
20847 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
20848echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 20849 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
20850
20851cat >>confdefs.h <<\_ACEOF
c906108c 20852#define PROC_SERVICE_IS_OLD 1
bec39cab 20853_ACEOF
c906108c
SS
20854
20855 fi
20856 else
b4e70030
JB
20857 echo "$as_me:$LINENO: result: no" >&5
20858echo "${ECHO_T}no" >&6
c906108c
SS
20859 fi
20860 ;;
d92419e5 20861 aix*)
b4e70030
JB
20862 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
20863echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
20864 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866else
20867 cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
d92419e5 20873#include <sys/pthdebug.h>
bec39cab
AC
20874int
20875main ()
20876{
d92419e5
JB
20877#ifndef PTHDB_VERSION_3
20878 #error
20879 #endif
bec39cab
AC
20880 ;
20881 return 0;
20882}
20883_ACEOF
20884rm -f conftest.$ac_objext
20885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20886 (eval $ac_compile) 2>conftest.er1
20887 ac_status=$?
20888 grep -v '^ *+' conftest.er1 >conftest.err
20889 rm -f conftest.er1
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
b4e70030
JB
20893 { ac_try='test -z "$ac_c_werror_flag"
20894 || test ! -s conftest.err'
bec39cab
AC
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
d92419e5
JB
20906 gdb_cv_have_aix_thread_debug=yes
20907else
bec39cab
AC
20908 echo "$as_me: failed program was:" >&5
20909sed 's/^/| /' conftest.$ac_ext >&5
20910
b4e70030 20911gdb_cv_have_aix_thread_debug=no
d92419e5 20912fi
bec39cab 20913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
20914fi
20915
b4e70030
JB
20916 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
20917echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
20918 if test $gdb_cv_have_aix_thread_debug = yes; then
20919 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 20920 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
20921 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
20922 fi
20923 ;;
c906108c 20924 esac
bec39cab 20925
c906108c
SS
20926fi
20927
3f47be5c 20928if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
20929 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
20930echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
20931if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20933else
20934 cat >conftest.$ac_ext <<_ACEOF
20935/* confdefs.h. */
20936_ACEOF
20937cat confdefs.h >>conftest.$ac_ext
20938cat >>conftest.$ac_ext <<_ACEOF
20939/* end confdefs.h. */
3f47be5c 20940#include <thread_db.h>
bec39cab
AC
20941int
20942main ()
20943{
3f47be5c 20944int i = TD_NOTALLOC;
bec39cab
AC
20945 ;
20946 return 0;
20947}
20948_ACEOF
20949rm -f conftest.$ac_objext
20950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20951 (eval $ac_compile) 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
b4e70030
JB
20958 { ac_try='test -z "$ac_c_werror_flag"
20959 || test ! -s conftest.err'
bec39cab
AC
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20962 ac_status=$?
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest.$ac_objext'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20968 ac_status=$?
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
3f47be5c
EZ
20971 gdb_cv_thread_db_h_has_td_notalloc=yes
20972else
bec39cab
AC
20973 echo "$as_me: failed program was:" >&5
20974sed 's/^/| /' conftest.$ac_ext >&5
20975
b4e70030 20976gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 20977
3f47be5c 20978fi
bec39cab 20979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 20980
bec39cab 20981fi
b4e70030
JB
20982echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
20983echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
20984 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
20985echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
20986if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20988else
20989 cat >conftest.$ac_ext <<_ACEOF
20990/* confdefs.h. */
20991_ACEOF
20992cat confdefs.h >>conftest.$ac_ext
20993cat >>conftest.$ac_ext <<_ACEOF
20994/* end confdefs.h. */
20995#include <thread_db.h>
20996int
20997main ()
20998{
20999int i = TD_VERSION;
21000 ;
21001 return 0;
21002}
21003_ACEOF
21004rm -f conftest.$ac_objext
21005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21006 (eval $ac_compile) 2>conftest.er1
21007 ac_status=$?
21008 grep -v '^ *+' conftest.er1 >conftest.err
21009 rm -f conftest.er1
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } &&
21013 { ac_try='test -z "$ac_c_werror_flag"
21014 || test ! -s conftest.err'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21017 ac_status=$?
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; } &&
21020 { ac_try='test -s conftest.$ac_objext'
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21023 ac_status=$?
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; }; then
21026 gdb_cv_thread_db_h_has_td_version=yes
21027else
21028 echo "$as_me: failed program was:" >&5
21029sed 's/^/| /' conftest.$ac_ext >&5
21030
21031gdb_cv_thread_db_h_has_td_version=no
21032
21033fi
21034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21035
21036fi
21037echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21038echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21039 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21040echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21041if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21043else
21044 cat >conftest.$ac_ext <<_ACEOF
21045/* confdefs.h. */
21046_ACEOF
21047cat confdefs.h >>conftest.$ac_ext
21048cat >>conftest.$ac_ext <<_ACEOF
21049/* end confdefs.h. */
21050#include <thread_db.h>
21051int
21052main ()
21053{
21054int i = TD_NOTLS;
21055 ;
21056 return 0;
21057}
21058_ACEOF
21059rm -f conftest.$ac_objext
21060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21061 (eval $ac_compile) 2>conftest.er1
21062 ac_status=$?
21063 grep -v '^ *+' conftest.er1 >conftest.err
21064 rm -f conftest.er1
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try='test -z "$ac_c_werror_flag"
21069 || test ! -s conftest.err'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try='test -s conftest.$ac_objext'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 gdb_cv_thread_db_h_has_td_notls=yes
21082else
21083 echo "$as_me: failed program was:" >&5
21084sed 's/^/| /' conftest.$ac_ext >&5
21085
21086gdb_cv_thread_db_h_has_td_notls=no
21087
21088fi
21089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21090
21091fi
21092echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21093echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
21094fi
21095if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
21096
21097cat >>confdefs.h <<\_ACEOF
3f47be5c 21098#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 21099_ACEOF
3f47be5c 21100
59f80f10
DJ
21101fi
21102if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21103
21104cat >>confdefs.h <<\_ACEOF
21105#define THREAD_DB_HAS_TD_VERSION 1
21106_ACEOF
21107
21108fi
21109if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21110
21111cat >>confdefs.h <<\_ACEOF
21112#define THREAD_DB_HAS_TD_NOTLS 1
21113_ACEOF
21114
3f47be5c
EZ
21115fi
21116
b757528f 21117if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
21118 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21119echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
21120if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21122else
21123 cat >conftest.$ac_ext <<_ACEOF
21124/* confdefs.h. */
21125_ACEOF
21126cat confdefs.h >>conftest.$ac_ext
21127cat >>conftest.$ac_ext <<_ACEOF
21128/* end confdefs.h. */
b757528f 21129#include <sys/syscall.h>
bec39cab
AC
21130int
21131main ()
21132{
b757528f 21133int i = __NR_tkill;
bec39cab
AC
21134 ;
21135 return 0;
21136}
21137_ACEOF
21138rm -f conftest.$ac_objext
21139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21140 (eval $ac_compile) 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
b4e70030
JB
21147 { ac_try='test -z "$ac_c_werror_flag"
21148 || test ! -s conftest.err'
bec39cab
AC
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; } &&
21154 { ac_try='test -s conftest.$ac_objext'
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
b757528f
JJ
21160 gdb_cv_sys_syscall_h_has_tkill=yes
21161else
bec39cab
AC
21162 echo "$as_me: failed program was:" >&5
21163sed 's/^/| /' conftest.$ac_ext >&5
21164
b4e70030 21165gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 21166
b757528f 21167fi
bec39cab 21168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 21169
bec39cab 21170fi
b4e70030
JB
21171echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21172echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
21173fi
21174if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
21175
21176cat >>confdefs.h <<\_ACEOF
b757528f 21177#define HAVE_TKILL_SYSCALL 1
bec39cab 21178_ACEOF
b757528f
JJ
21179
21180fi
21181
fb40c209 21182
bec39cab 21183
b4e70030 21184# Check whether --with-sysroot or --without-sysroot was given.
030292b7 21185if test "${with_sysroot+set}" = set; then
b4e70030
JB
21186 withval="$with_sysroot"
21187
030292b7 21188 case ${with_sysroot} in
715d1656 21189 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
21190 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21191 esac
21192
21193 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21194
aa28a74e 21195 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
030292b7
DJ
21196 if test "x$prefix" = xNONE; then
21197 test_prefix=/usr/local
21198 else
21199 test_prefix=$prefix
21200 fi
21201 else
21202 test_prefix=$exec_prefix
21203 fi
21204 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
21205 "${test_prefix}"|"${test_prefix}/"*|\
21206 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
21207 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21208 TARGET_SYSTEM_ROOT_DEFINE="$t"
21209 ;;
21210 esac
21211
21212else
bec39cab 21213
030292b7
DJ
21214 TARGET_SYSTEM_ROOT=
21215 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21216
b4e70030 21217fi;
030292b7
DJ
21218
21219
21220
b4e70030 21221# Check whether --enable-werror or --disable-werror was given.
094a342e 21222if test "${enable_werror+set}" = set; then
b4e70030
JB
21223 enableval="$enable_werror"
21224 case "${enableval}" in
094a342e
MK
21225 yes | y) ERROR_ON_WARNING="yes" ;;
21226 no | n) ERROR_ON_WARNING="no" ;;
21227 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21228echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21229 { (exit 1); exit 1; }; } ;;
21230 esac
b4e70030 21231fi;
094a342e
MK
21232
21233# Enable -Werror by default when using gcc
21234if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21235 ERROR_ON_WARNING=yes
21236fi
21237
21238WERROR_CFLAGS=""
21239if test "${ERROR_ON_WARNING}" = yes ; then
21240 WERROR_CFLAGS="-Werror"
21241fi
21242
aa79a185
DJ
21243# The entries after -Wno-pointer-sign are disabled warnings which may
21244# be enabled in the future, which can not currently be used to build
21245# GDB.
21246# NOTE: If you change this list, remember to update
3b851bce 21247# gdb/doc/gdbint.texinfo.
aa79a185
DJ
21248build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21249-Wformat-nonliteral -Wno-pointer-sign \
21250-Wno-unused -Wno-switch"
a3b362c4 21251
b4e70030 21252# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 21253if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
21254 enableval="$enable_build_warnings"
21255 case "${enableval}" in
c906108c
SS
21256 yes) ;;
21257 no) build_warnings="-w";;
21258 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21259 build_warnings="${build_warnings} ${t}";;
21260 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21261 build_warnings="${t} ${build_warnings}";;
21262 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21263esac
d4f3574e 21264if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 21265 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 21266fi
b4e70030 21267fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 21268if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
21269 enableval="$enable_gdb_build_warnings"
21270 case "${enableval}" in
3b851bce
AC
21271 yes) ;;
21272 no) build_warnings="-w";;
21273 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21274 build_warnings="${build_warnings} ${t}";;
21275 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21276 build_warnings="${t} ${build_warnings}";;
21277 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21278esac
21279if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21280 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21281fi
b4e70030 21282fi; WARN_CFLAGS=""
c906108c
SS
21283if test "x${build_warnings}" != x -a "x$GCC" = xyes
21284then
b4e70030
JB
21285 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21286echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
21287 # Separate out the -Werror flag as some files just cannot be
21288 # compiled with it enabled.
21289 for w in ${build_warnings}; do
21290 case $w in
21291 -Werr*) WERROR_CFLAGS=-Werror ;;
21292 *) # Check that GCC accepts it
4536bbc6
AC
21293 saved_CFLAGS="$CFLAGS"
21294 CFLAGS="$CFLAGS $w"
bec39cab
AC
21295 cat >conftest.$ac_ext <<_ACEOF
21296/* confdefs.h. */
21297_ACEOF
21298cat confdefs.h >>conftest.$ac_ext
21299cat >>conftest.$ac_ext <<_ACEOF
21300/* end confdefs.h. */
4536bbc6 21301
bec39cab
AC
21302int
21303main ()
21304{
4536bbc6 21305
bec39cab
AC
21306 ;
21307 return 0;
21308}
21309_ACEOF
21310rm -f conftest.$ac_objext
21311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21312 (eval $ac_compile) 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } &&
b4e70030
JB
21319 { ac_try='test -z "$ac_c_werror_flag"
21320 || test ! -s conftest.err'
bec39cab
AC
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest.$ac_objext'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
4536bbc6
AC
21332 WARN_CFLAGS="${WARN_CFLAGS} $w"
21333else
bec39cab
AC
21334 echo "$as_me: failed program was:" >&5
21335sed 's/^/| /' conftest.$ac_ext >&5
21336
4536bbc6 21337fi
bec39cab 21338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 21339 CFLAGS="$saved_CFLAGS"
746a987d
AC
21340 esac
21341 done
aa79a185
DJ
21342 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21343echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
21344fi
21345
21346
104c1213 21347
7a292a7a 21348# In the Cygwin environment, we need some additional flags.
b4e70030
JB
21349echo "$as_me:$LINENO: checking for cygwin" >&5
21350echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
21351if test "${gdb_cv_os_cygwin+set}" = set; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21353else
21354 cat >conftest.$ac_ext <<_ACEOF
21355/* confdefs.h. */
21356_ACEOF
21357cat confdefs.h >>conftest.$ac_ext
21358cat >>conftest.$ac_ext <<_ACEOF
21359/* end confdefs.h. */
7a292a7a
SS
21360
21361#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21362lose
21363#endif
bec39cab 21364_ACEOF
7a292a7a 21365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 21366 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
21367 gdb_cv_os_cygwin=yes
21368else
7a292a7a
SS
21369 gdb_cv_os_cygwin=no
21370fi
21371rm -f conftest*
21372
21373fi
b4e70030
JB
21374echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21375echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 21376
aff38e61 21377
3eb25fda 21378SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 21379case ${host} in
95cbc983
AC
21380 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21381 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 21382 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
21383esac
21384
21385
cd0fc7c3
SS
21386# libreadline needs libuser32.a in a cygwin environment
21387WIN32LIBS=
21388if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
21389 WIN32LIBS="-luser32"
21390 case "${target}" in
21391 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21392 ;;
21393 esac
cd0fc7c3 21394fi
c906108c 21395
b4505029
MM
21396# The ser-tcp.c module requires sockets.
21397case ${host} in
21398 *mingw32*)
21399
21400cat >>confdefs.h <<\_ACEOF
21401#define USE_WIN32API 1
21402_ACEOF
21403
21404 WIN32LIBS="$WIN32LIBS -lws2_32"
21405 ;;
21406esac
21407
7a292a7a 21408
121ce6e5
DJ
21409# Add any host-specific objects to GDB.
21410CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21411
3fc11d3e
JM
21412LIBGUI="../libgui/src/libgui.a"
21413GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21414
21415
7a292a7a 21416
3fc11d3e
JM
21417WIN32LDAPP=
21418
21419
21420
d91670b9
CV
21421case "${host}" in
21422*-*-cygwin*)
21423 configdir="win"
21424 ;;
21425*)
21426 configdir="unix"
21427 ;;
21428esac
3fc11d3e
JM
21429
21430GDBTKLIBS=
21431if test "${enable_gdbtk}" = "yes"; then
21432
d1c3b63a
KS
21433 # Gdbtk must have an absolute path to srcdir in order to run
21434 # properly when not installed.
21435 here=`pwd`
21436 cd ${srcdir}
21437 GDBTK_SRC_DIR=`pwd`
21438 cd $here
21439
bec39cab 21440
3fc11d3e
JM
21441#
21442# Ok, lets find the tcl configuration
bec39cab 21443# First, look for one uninstalled.
3fc11d3e
JM
21444# the alternative search directory is invoked by --with-tclconfig
21445#
21446
21447if test x"${no_tcl}" = x ; then
21448 # we reset no_tcl in case something fails here
21449 no_tcl=true
bec39cab 21450
b4e70030 21451# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 21452if test "${with_tclconfig+set}" = set; then
b4e70030
JB
21453 withval="$with_tclconfig"
21454 with_tclconfig=${withval}
21455fi;
21456 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21457echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
21458 if test "${ac_cv_c_tclconfig+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21460else
bec39cab 21461
3fc11d3e
JM
21462
21463 # First check to see if --with-tclconfig was specified.
21464 if test x"${with_tclconfig}" != x ; then
21465 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21466 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21467 else
bec39cab
AC
21468 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21469echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21470 { (exit 1); exit 1; }; }
3fc11d3e
JM
21471 fi
21472 fi
21473
21474 # then check for a private Tcl installation
21475 if test x"${ac_cv_c_tclconfig}" = x ; then
21476 for i in \
21477 ../tcl \
21478 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21479 ../../tcl \
21480 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21481 ../../../tcl \
21482 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21483 if test -f "$i/${configdir}/tclConfig.sh" ; then
21484 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21485 break
21486 fi
21487 done
21488 fi
21489 # check in a few common install locations
21490 if test x"${ac_cv_c_tclconfig}" = x ; then
21491 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21492 if test -f "$i/tclConfig.sh" ; then
21493 ac_cv_c_tclconfig=`(cd $i; pwd)`
21494 break
21495 fi
21496 done
21497 fi
21498 # check in a few other private locations
21499 if test x"${ac_cv_c_tclconfig}" = x ; then
21500 for i in \
21501 ${srcdir}/../tcl \
21502 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21503 if test -f "$i/${configdir}/tclConfig.sh" ; then
21504 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21505 break
21506 fi
21507 done
21508 fi
bec39cab 21509
3fc11d3e
JM
21510fi
21511
21512 if test x"${ac_cv_c_tclconfig}" = x ; then
21513 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
21514 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
21515echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
21516 else
21517 no_tcl=
21518 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
21519 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
21520echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
21521 fi
21522fi
21523
21524 if test -z "${no_tcl}"; then
bec39cab 21525
3fc11d3e
JM
21526 . $TCLCONFIG
21527
3fc11d3e
JM
21528
21529
21530
21531
3fc11d3e
JM
21532
21533
21534
bec39cab
AC
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
3fc11d3e
JM
21554#
21555# Ok, lets find the tk configuration
bec39cab 21556# First, look for one uninstalled.
3fc11d3e
JM
21557# the alternative search directory is invoked by --with-tkconfig
21558#
21559
21560if test x"${no_tk}" = x ; then
21561 # we reset no_tk in case something fails here
21562 no_tk=true
bec39cab 21563
b4e70030 21564# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 21565if test "${with_tkconfig+set}" = set; then
b4e70030
JB
21566 withval="$with_tkconfig"
21567 with_tkconfig=${withval}
21568fi;
21569 echo "$as_me:$LINENO: checking for Tk configuration" >&5
21570echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
21571 if test "${ac_cv_c_tkconfig+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21573else
bec39cab 21574
3fc11d3e
JM
21575
21576 # First check to see if --with-tkconfig was specified.
21577 if test x"${with_tkconfig}" != x ; then
21578 if test -f "${with_tkconfig}/tkConfig.sh" ; then
21579 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
21580 else
bec39cab
AC
21581 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
21582echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
21583 { (exit 1); exit 1; }; }
3fc11d3e
JM
21584 fi
21585 fi
21586
21587 # then check for a private Tk library
21588 if test x"${ac_cv_c_tkconfig}" = x ; then
21589 for i in \
21590 ../tk \
21591 `ls -dr ../tk[4-9]* 2>/dev/null` \
21592 ../../tk \
21593 `ls -dr ../../tk[4-9]* 2>/dev/null` \
21594 ../../../tk \
21595 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
21596 if test -f "$i/${configdir}/tkConfig.sh" ; then
21597 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21598 break
21599 fi
21600 done
21601 fi
21602 # check in a few common install locations
21603 if test x"${ac_cv_c_tkconfig}" = x ; then
21604 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21605 if test -f "$i/tkConfig.sh" ; then
21606 ac_cv_c_tkconfig=`(cd $i; pwd)`
21607 break
21608 fi
21609 done
21610 fi
21611 # check in a few other private locations
21612 if test x"${ac_cv_c_tkconfig}" = x ; then
21613 for i in \
21614 ${srcdir}/../tk \
21615 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
21616 if test -f "$i/${configdir}/tkConfig.sh" ; then
21617 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21618 break
21619 fi
21620 done
21621 fi
bec39cab 21622
3fc11d3e
JM
21623fi
21624
21625 if test x"${ac_cv_c_tkconfig}" = x ; then
21626 TKCONFIG="# no Tk configs found"
bec39cab
AC
21627 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
21628echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
21629 else
21630 no_tk=
21631 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
21632 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
21633echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
21634 fi
21635fi
21636
21637
21638
dd2504ab
JM
21639 # now look for Tcl library stuff
21640
d91670b9 21641 tcldir="../tcl/${configdir}/"
dd2504ab
JM
21642
21643 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
21644
3fc11d3e
JM
21645 # If $no_tk is nonempty, then we can't do Tk, and there is no
21646 # point to doing Tcl.
21647 if test -z "${no_tk}"; then
bec39cab 21648
3fc11d3e
JM
21649 if test -f "$TKCONFIG" ; then
21650 . $TKCONFIG
21651 fi
21652
3fc11d3e 21653
3fc11d3e
JM
21654
21655
3fc11d3e 21656
bec39cab
AC
21657
21658
21659
21660
21661
21662
21663
21664
21665
3fc11d3e
JM
21666#
21667# Ok, lets find the tcl source trees so we can use the headers
21668# Warning: transition of version 9 to 10 will break this algorithm
21669# because 10 sorts before 9. We also look for just tcl. We have to
21670# be careful that we don't match stuff like tclX by accident.
21671# the alternative search directory is involked by --with-tclinclude
21672#
21673
21674no_tcl=true
b4e70030
JB
21675echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
21676echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 21677
b4e70030 21678# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 21679if test "${with_tclinclude+set}" = set; then
b4e70030
JB
21680 withval="$with_tclinclude"
21681 with_tclinclude=${withval}
21682fi;
bec39cab
AC
21683if test "${ac_cv_c_tclh+set}" = set; then
21684 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21685else
bec39cab 21686
3fc11d3e
JM
21687# first check to see if --with-tclinclude was specified
21688if test x"${with_tclinclude}" != x ; then
21689 if test -f ${with_tclinclude}/tclInt.h ; then
21690 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
21691 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
21692 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
21693 else
bec39cab
AC
21694 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
21695echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
21696 { (exit 1); exit 1; }; }
3fc11d3e
JM
21697 fi
21698fi
21699
21700# next check if it came with Tcl configuration file
21701if test x"${ac_cv_c_tclconfig}" = x ; then
21702 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
21703 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
21704 fi
21705fi
21706
21707# next check in private source directory
21708#
21709# since ls returns lowest version numbers first, reverse its output
21710if test x"${ac_cv_c_tclh}" = x ; then
21711 for i in \
21712 ${srcdir}/../tcl \
21713 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
21714 ${srcdir}/../../tcl \
21715 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
21716 ${srcdir}/../../../tcl \
21717 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
21718 if test -f $i/generic/tclInt.h ; then
21719 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21720 break
21721 fi
21722 done
21723fi
21724# finally check in a few common install locations
21725#
21726# since ls returns lowest version numbers first, reverse its output
21727if test x"${ac_cv_c_tclh}" = x ; then
21728 for i in \
21729 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
21730 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
21731 /usr/local/src/tcl \
21732 /usr/local/lib/tcl \
21733 ${prefix}/include ; do
21734 if test -f $i/generic/tclInt.h ; then
21735 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21736 break
21737 fi
21738 done
21739fi
21740# see if one is installed
21741if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 21742 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
21743 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21744echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
21745if test "${ac_cv_header_tclInt_h+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21747fi
b4e70030
JB
21748echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21749echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
21750else
21751 # Is the header compilable?
b4e70030
JB
21752echo "$as_me:$LINENO: checking tclInt.h usability" >&5
21753echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
21754cat >conftest.$ac_ext <<_ACEOF
21755/* confdefs.h. */
21756_ACEOF
21757cat confdefs.h >>conftest.$ac_ext
21758cat >>conftest.$ac_ext <<_ACEOF
21759/* end confdefs.h. */
21760$ac_includes_default
21761#include <tclInt.h>
21762_ACEOF
21763rm -f conftest.$ac_objext
21764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21765 (eval $ac_compile) 2>conftest.er1
21766 ac_status=$?
21767 grep -v '^ *+' conftest.er1 >conftest.err
21768 rm -f conftest.er1
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } &&
b4e70030
JB
21772 { ac_try='test -z "$ac_c_werror_flag"
21773 || test ! -s conftest.err'
bec39cab
AC
21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775 (eval $ac_try) 2>&5
21776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; } &&
21779 { ac_try='test -s conftest.$ac_objext'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; }; then
21785 ac_header_compiler=yes
21786else
21787 echo "$as_me: failed program was:" >&5
21788sed 's/^/| /' conftest.$ac_ext >&5
21789
b4e70030 21790ac_header_compiler=no
bec39cab
AC
21791fi
21792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
21793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21794echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
21795
21796# Is the header present?
b4e70030
JB
21797echo "$as_me:$LINENO: checking tclInt.h presence" >&5
21798echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
21799cat >conftest.$ac_ext <<_ACEOF
21800/* confdefs.h. */
21801_ACEOF
21802cat confdefs.h >>conftest.$ac_ext
21803cat >>conftest.$ac_ext <<_ACEOF
21804/* end confdefs.h. */
3fc11d3e 21805#include <tclInt.h>
bec39cab
AC
21806_ACEOF
21807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21809 ac_status=$?
21810 grep -v '^ *+' conftest.er1 >conftest.err
21811 rm -f conftest.er1
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } >/dev/null; then
21815 if test -s conftest.err; then
21816 ac_cpp_err=$ac_c_preproc_warn_flag
21817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21818 else
21819 ac_cpp_err=
21820 fi
21821else
21822 ac_cpp_err=yes
3fc11d3e 21823fi
bec39cab
AC
21824if test -z "$ac_cpp_err"; then
21825 ac_header_preproc=yes
21826else
21827 echo "$as_me: failed program was:" >&5
21828sed 's/^/| /' conftest.$ac_ext >&5
21829
21830 ac_header_preproc=no
3fc11d3e 21831fi
bec39cab 21832rm -f conftest.err conftest.$ac_ext
b4e70030
JB
21833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21834echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
21835
21836# So? What about this header?
21837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21838 yes:no: )
21839 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21840echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21841 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
21842echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
21843 ac_header_preproc=yes
21844 ;;
21845 no:yes:* )
21846 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
21847echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
21848 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
21849echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
21850 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
21851echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
21852 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
21853echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21854 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
21855echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
21856 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
21857echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
21858 (
21859 cat <<\_ASBOX
21860## ------------------------------------------ ##
21861## Report this to the AC_PACKAGE_NAME lists. ##
21862## ------------------------------------------ ##
21863_ASBOX
21864 ) |
21865 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
21866 ;;
21867esac
b4e70030
JB
21868echo "$as_me:$LINENO: checking for tclInt.h" >&5
21869echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
21870if test "${ac_cv_header_tclInt_h+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21872else
21873 ac_cv_header_tclInt_h=$ac_header_preproc
21874fi
b4e70030
JB
21875echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21876echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
21877
21878fi
21879if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
21880 ac_cv_c_tclh=installed
21881else
bec39cab 21882 ac_cv_c_tclh=""
3fc11d3e
JM
21883fi
21884
bec39cab 21885
3fc11d3e
JM
21886fi
21887
21888fi
21889
21890if test x"${ac_cv_c_tclh}" = x ; then
21891 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
21892 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
21893echo "$as_me: error: Can't find Tcl private headers" >&2;}
21894 { (exit 1); exit 1; }; }
3fc11d3e
JM
21895fi
21896if test x"${ac_cv_c_tclh}" != x ; then
21897 no_tcl=""
21898 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
21899 echo "$as_me:$LINENO: result: is installed" >&5
21900echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
21901 TCLHDIR=""
21902 else
b4e70030
JB
21903 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
21904echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
21905 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
21906 TCLHDIR="-I${ac_cv_c_tclh}"
21907 fi
21908fi
21909
21910
21911
bec39cab 21912
3fc11d3e
JM
21913#
21914# Ok, lets find the tk source trees so we can use the headers
21915# If the directory (presumably symlink) named "tk" exists, use that one
21916# in preference to any others. Same logic is used when choosing library
21917# and again with Tcl. The search order is the best place to look first, then in
21918# decreasing significance. The loop breaks if the trigger file is found.
21919# Note the gross little conversion here of srcdir by cd'ing to the found
21920# directory. This converts the path from a relative to an absolute, so
21921# recursive cache variables for the path will work right. We check all
21922# the possible paths in one loop rather than many seperate loops to speed
21923# things up.
21924# the alternative search directory is involked by --with-tkinclude
21925#
21926no_tk=true
b4e70030
JB
21927echo "$as_me:$LINENO: checking for Tk private headers" >&5
21928echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 21929
b4e70030 21930# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 21931if test "${with_tkinclude+set}" = set; then
b4e70030
JB
21932 withval="$with_tkinclude"
21933 with_tkinclude=${withval}
21934fi;
bec39cab
AC
21935if test "${ac_cv_c_tkh+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21937else
bec39cab 21938
3fc11d3e
JM
21939# first check to see if --with-tkinclude was specified
21940if test x"${with_tkinclude}" != x ; then
21941 if test -f ${with_tkinclude}/tk.h ; then
21942 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
21943 elif test -f ${with_tkinclude}/generic/tk.h ; then
21944 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
21945 else
bec39cab
AC
21946 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
21947echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
21948 { (exit 1); exit 1; }; }
3fc11d3e
JM
21949 fi
21950fi
21951
21952# next check if it came with Tk configuration file
21953if test x"${ac_cv_c_tkconfig}" = x ; then
21954 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
21955 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
21956 fi
21957fi
21958
21959# next check in private source directory
21960#
21961# since ls returns lowest version numbers first, reverse its output
21962if test x"${ac_cv_c_tkh}" = x ; then
21963 for i in \
21964 ${srcdir}/../tk \
21965 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
21966 ${srcdir}/../../tk \
21967 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
21968 ${srcdir}/../../../tk \
21969 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
21970 if test -f $i/generic/tk.h ; then
21971 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21972 break
21973 fi
21974 done
21975fi
21976# finally check in a few common install locations
21977#
21978# since ls returns lowest version numbers first, reverse its output
21979if test x"${ac_cv_c_tkh}" = x ; then
21980 for i in \
21981 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
21982 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
21983 /usr/local/src/tk \
21984 /usr/local/lib/tk \
21985 ${prefix}/include ; do
21986 if test -f $i/generic/tk.h ; then
21987 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21988 break
21989 fi
21990 done
21991fi
21992# see if one is installed
21993if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 21994 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
21995 echo "$as_me:$LINENO: checking for tk.h" >&5
21996echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
21997if test "${ac_cv_header_tk_h+set}" = set; then
21998 echo $ECHO_N "(cached) $ECHO_C" >&6
21999fi
b4e70030
JB
22000echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22001echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
22002else
22003 # Is the header compilable?
b4e70030
JB
22004echo "$as_me:$LINENO: checking tk.h usability" >&5
22005echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
22006cat >conftest.$ac_ext <<_ACEOF
22007/* confdefs.h. */
22008_ACEOF
22009cat confdefs.h >>conftest.$ac_ext
22010cat >>conftest.$ac_ext <<_ACEOF
22011/* end confdefs.h. */
22012$ac_includes_default
3fc11d3e 22013#include <tk.h>
bec39cab
AC
22014_ACEOF
22015rm -f conftest.$ac_objext
22016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22017 (eval $ac_compile) 2>conftest.er1
22018 ac_status=$?
22019 grep -v '^ *+' conftest.er1 >conftest.err
22020 rm -f conftest.er1
22021 cat conftest.err >&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } &&
b4e70030
JB
22024 { ac_try='test -z "$ac_c_werror_flag"
22025 || test ! -s conftest.err'
bec39cab
AC
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22028 ac_status=$?
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; } &&
22031 { ac_try='test -s conftest.$ac_objext'
22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22034 ac_status=$?
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; }; then
22037 ac_header_compiler=yes
22038else
22039 echo "$as_me: failed program was:" >&5
22040sed 's/^/| /' conftest.$ac_ext >&5
22041
b4e70030 22042ac_header_compiler=no
bec39cab
AC
22043fi
22044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22046echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22047
22048# Is the header present?
b4e70030
JB
22049echo "$as_me:$LINENO: checking tk.h presence" >&5
22050echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
22051cat >conftest.$ac_ext <<_ACEOF
22052/* confdefs.h. */
22053_ACEOF
22054cat confdefs.h >>conftest.$ac_ext
22055cat >>conftest.$ac_ext <<_ACEOF
22056/* end confdefs.h. */
22057#include <tk.h>
22058_ACEOF
22059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } >/dev/null; then
22067 if test -s conftest.err; then
22068 ac_cpp_err=$ac_c_preproc_warn_flag
22069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22070 else
22071 ac_cpp_err=
22072 fi
22073else
22074 ac_cpp_err=yes
3fc11d3e 22075fi
bec39cab
AC
22076if test -z "$ac_cpp_err"; then
22077 ac_header_preproc=yes
22078else
22079 echo "$as_me: failed program was:" >&5
22080sed 's/^/| /' conftest.$ac_ext >&5
22081
22082 ac_header_preproc=no
22083fi
22084rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22086echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22087
22088# So? What about this header?
22089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22090 yes:no: )
22091 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22092echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22093 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22094echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22095 ac_header_preproc=yes
22096 ;;
22097 no:yes:* )
22098 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22099echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22101echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22103echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22105echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22107echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22108 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22109echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22110 (
22111 cat <<\_ASBOX
22112## ------------------------------------------ ##
22113## Report this to the AC_PACKAGE_NAME lists. ##
22114## ------------------------------------------ ##
22115_ASBOX
22116 ) |
22117 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22118 ;;
22119esac
b4e70030
JB
22120echo "$as_me:$LINENO: checking for tk.h" >&5
22121echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22122if test "${ac_cv_header_tk_h+set}" = set; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22124else
22125 ac_cv_header_tk_h=$ac_header_preproc
22126fi
b4e70030
JB
22127echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22128echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 22129
3fc11d3e 22130fi
bec39cab 22131if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
22132 ac_cv_c_tkh=installed
22133else
bec39cab 22134 ac_cv_c_tkh=""
3fc11d3e
JM
22135fi
22136
bec39cab 22137
3fc11d3e
JM
22138fi
22139
22140fi
22141
22142if test x"${ac_cv_c_tkh}" != x ; then
22143 no_tk=""
22144 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
22145 echo "$as_me:$LINENO: result: is installed" >&5
22146echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22147 TKHDIR=""
22148 else
b4e70030
JB
22149 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22150echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
22151 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22152 TKHDIR="-I${ac_cv_c_tkh}"
22153 fi
22154else
22155 TKHDIR="# no Tk directory found"
bec39cab
AC
22156 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22157echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
22158 no_tk=true
22159fi
22160
22161
22162
bec39cab 22163
b4e70030
JB
22164echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22165echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22166if test x"${ac_cv_c_itclh}" = x ; then
22167 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22168 if test -f $i/generic/itcl.h ; then
22169 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22170 break
22171 fi
22172 done
22173fi
22174if test x"${ac_cv_c_itclh}" = x ; then
22175 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
22176 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22177echo "$as_me: error: Can't find Itcl private headers" >&2;}
22178 { (exit 1); exit 1; }; }
3fc11d3e
JM
22179fi
22180if test x"${ac_cv_c_itclh}" != x ; then
22181 ITCLHDIR="-I${ac_cv_c_itclh}"
22182fi
22183# should always be here
22184# ITCLLIB="../itcl/itcl/unix/libitcl.a"
22185
22186#AC_SUBST(ITCLLIB)
22187
bec39cab 22188
b4e70030
JB
22189echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22190echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22191if test x"${ac_cv_c_itkh}" = x ; then
22192 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22193 if test -f $i/generic/itk.h ; then
22194 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22195 break
22196 fi
22197 done
22198fi
22199if test x"${ac_cv_c_itkh}" = x ; then
22200 ITKHDIR="# no Itk private headers found"
bec39cab
AC
22201 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22202echo "$as_me: error: Can't find Itk private headers" >&2;}
22203 { (exit 1); exit 1; }; }
3fc11d3e
JM
22204fi
22205if test x"${ac_cv_c_itkh}" != x ; then
22206 ITKHDIR="-I${ac_cv_c_itkh}"
22207fi
22208# should always be here
22209# ITKLIB="../itcl/itk/unix/libitk.a"
22210
22211#AC_SUBST(ITKLIB)
22212
3fc11d3e 22213
dd2504ab
JM
22214
22215 # now look for Tk library stuff
22216
d91670b9 22217 tkdir="../tk/${configdir}/"
dd2504ab
JM
22218
22219 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22220
3fc11d3e
JM
22221 # now look for Itcl library stuff
22222
bec39cab 22223
3fc11d3e
JM
22224#
22225# Ok, lets find the itcl configuration
bec39cab 22226# First, look for one uninstalled.
3fc11d3e
JM
22227# the alternative search directory is invoked by --with-itclconfig
22228#
22229
22230if test x"${no_itcl}" = x ; then
22231 # we reset no_itcl in case something fails here
22232 no_itcl=true
bec39cab 22233
b4e70030 22234# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 22235if test "${with_itclconfig+set}" = set; then
b4e70030
JB
22236 withval="$with_itclconfig"
22237 with_itclconfig=${withval}
22238fi;
22239 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22240echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
22241 if test "${ac_cv_c_itclconfig+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22243else
bec39cab 22244
3fc11d3e
JM
22245
22246 # First check to see if --with-itclconfig was specified.
22247 if test x"${with_itclconfig}" != x ; then
22248 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22249 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22250 else
bec39cab
AC
22251 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22252echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22253 { (exit 1); exit 1; }; }
3fc11d3e
JM
22254 fi
22255 fi
22256
22257 # then check for a private Itcl library
22258 if test x"${ac_cv_c_itclconfig}" = x ; then
22259 for i in \
22260 ../itcl/itcl \
22261 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22262 ../../itcl \
22263 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22264 ../../../itcl \
22265 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22266 if test -f "$i/itclConfig.sh" ; then
22267 ac_cv_c_itclconfig=`(cd $i; pwd)`
22268 break
22269 fi
22270 done
22271 fi
22272 # check in a few common install locations
22273 if test x"${ac_cv_c_itclconfig}" = x ; then
22274 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22275 if test -f "$i/itclConfig.sh" ; then
22276 ac_cv_c_itclconfig=`(cd $i; pwd)`
22277 break
22278 fi
22279 done
22280 fi
22281 # check in a few other private locations
22282 if test x"${ac_cv_c_itclconfig}" = x ; then
22283 for i in \
22284 ${srcdir}/../itcl/itcl \
22285 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22286 if test -f "$i/itclConfig.sh" ; then
22287 ac_cv_c_itclconfig=`(cd $i; pwd)`
22288 break
22289 fi
22290 done
22291 fi
bec39cab 22292
3fc11d3e
JM
22293fi
22294
22295 if test x"${ac_cv_c_itclconfig}" = x ; then
22296 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
22297 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22298echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
22299 else
22300 no_itcl=
22301 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
22302 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22303echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
22304 fi
22305fi
22306
22307 if test -z "${no_itcl}"; then
bec39cab 22308
3fc11d3e
JM
22309 if test -f "$ITCLCONFIG" ; then
22310 . $ITCLCONFIG
22311 fi
22312
3fc11d3e 22313
3fc11d3e
JM
22314
22315
bec39cab
AC
22316
22317
22318
22319
22320
22321
22322
3fc11d3e
JM
22323
22324 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 22325 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
22326 fi
22327
bec39cab 22328
3fc11d3e 22329 # now look for Itk library stuff
bec39cab 22330
3fc11d3e
JM
22331#
22332# Ok, lets find the itk configuration
bec39cab 22333# First, look for one uninstalled.
3fc11d3e
JM
22334# the alternative search directory is invoked by --with-itkconfig
22335#
22336
22337if test x"${no_itk}" = x ; then
22338 # we reset no_itk in case something fails here
22339 no_itk=true
bec39cab 22340
b4e70030 22341# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 22342if test "${with_itkconfig+set}" = set; then
b4e70030
JB
22343 withval="$with_itkconfig"
22344 with_itkconfig=${withval}
22345fi;
22346 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22347echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
22348 if test "${ac_cv_c_itkconfig+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22350else
bec39cab 22351
3fc11d3e
JM
22352
22353 # First check to see if --with-itkconfig was specified.
22354 if test x"${with_itkconfig}" != x ; then
22355 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22356 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22357 else
bec39cab
AC
22358 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22359echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22360 { (exit 1); exit 1; }; }
3fc11d3e
JM
22361 fi
22362 fi
22363
22364 # then check for a private Itk library
22365 if test x"${ac_cv_c_itkconfig}" = x ; then
22366 for i in \
22367 ../itcl/itk \
22368 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22369 ../../itk \
22370 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22371 ../../../itk \
22372 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22373 if test -f "$i/itkConfig.sh" ; then
22374 ac_cv_c_itkconfig=`(cd $i; pwd)`
22375 break
22376 fi
22377 done
22378 fi
22379 # check in a few common install locations
22380 if test x"${ac_cv_c_itkconfig}" = x ; then
22381 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22382 if test -f "$i/itkConfig.sh" ; then
22383 ac_cv_c_itkconfig=`(cd $i; pwd)`
22384 break
22385 fi
22386 done
22387 fi
22388 # check in a few other private locations
22389 if test x"${ac_cv_c_itkconfig}" = x ; then
22390 for i in \
22391 ${srcdir}/../itcl/itk \
22392 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22393 if test -f "$i/itkConfig.sh" ; then
22394 ac_cv_c_itkconfig=`(cd $i; pwd)`
22395 break
22396 fi
22397 done
22398 fi
bec39cab 22399
3fc11d3e
JM
22400fi
22401
22402 if test x"${ac_cv_c_itkconfig}" = x ; then
22403 ITKCONFIG="# no Itk configs found"
bec39cab
AC
22404 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22405echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
22406 else
22407 no_itk=
22408 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
22409 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22410echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
22411 fi
22412fi
22413
22414
bec39cab
AC
22415 if test -z "${no_itcl}"; then
22416
22417 if test -f "$ITKCONFIG" ; then
22418 . $ITKCONFIG
22419 fi
22420
22421
22422
22423
22424
22425
3fc11d3e 22426
3fc11d3e 22427
3fc11d3e
JM
22428
22429
3fc11d3e
JM
22430
22431
3fc11d3e 22432 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 22433 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
22434 fi
22435
4226a5a5 22436 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
22437
22438 # Include some libraries that Tcl and Tk want.
b2a1bd4f 22439 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
22440 # Yes, the ordering seems wrong here. But it isn't.
22441 # TK_LIBS is the list of libraries that need to be linked
22442 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22443 # were in LIBS then any link tests after this point would
22444 # try to include things like `$(LIBGUI)', which wouldn't work.
22445 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
22446
22447 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22448 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22449 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
22450 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22451 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22452 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22453 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
22454
22455 if test x$gdb_cv_os_cygwin = xyes; then
22456 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22457 WIN32LDAPP="-Wl,--subsystem,console"
22458 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22459 fi
22460 fi
22461 fi
ffc6a242 22462
b4e70030
JB
22463
22464
22465subdirs="$subdirs gdbtk"
3ace7edb 22466
3fc11d3e
JM
22467fi
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
dd2504ab 22481
b4e70030
JB
22482echo "$as_me:$LINENO: checking for X" >&5
22483echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 22484
c906108c 22485
b4e70030 22486# Check whether --with-x or --without-x was given.
c906108c 22487if test "${with_x+set}" = set; then
b4e70030 22488 withval="$with_x"
c906108c 22489
b4e70030 22490fi;
c906108c
SS
22491# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22492if test "x$with_x" = xno; then
22493 # The user explicitly disabled X.
22494 have_x=disabled
22495else
22496 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22497 # Both variables are already set.
22498 have_x=yes
22499 else
bec39cab
AC
22500 if test "${ac_cv_have_x+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22502else
22503 # One or both of the vars are not set, and there is no cached value.
bec39cab 22504ac_x_includes=no ac_x_libraries=no
b4e70030 22505rm -fr conftest.dir
bec39cab
AC
22506if mkdir conftest.dir; then
22507 cd conftest.dir
c906108c 22508 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 22509 cat >Imakefile <<'_ACEOF'
c906108c
SS
22510acfindx:
22511 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 22512_ACEOF
b4e70030 22513 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
22514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22515 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22516 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22517 for ac_extension in a so sl; do
22518 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
22519 test -f $ac_im_libdir/libX11.$ac_extension; then
22520 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
22521 fi
22522 done
22523 # Screen out bogus values from the imake configuration. They are
22524 # bogus both because they are the default anyway, and because
22525 # using them would break gcc on systems where it needs fixed includes.
bec39cab 22526 case $ac_im_incroot in
b4e70030 22527 /usr/include) ;;
bec39cab 22528 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 22529 esac
bec39cab 22530 case $ac_im_usrlibdir in
c906108c 22531 /usr/lib | /lib) ;;
bec39cab 22532 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
22533 esac
22534 fi
22535 cd ..
b4e70030 22536 rm -fr conftest.dir
c906108c
SS
22537fi
22538
bec39cab
AC
22539# Standard set of common directories for X headers.
22540# Check X11 before X11Rn because it is often a symlink to the current release.
22541ac_x_header_dirs='
22542/usr/X11/include
22543/usr/X11R6/include
22544/usr/X11R5/include
22545/usr/X11R4/include
22546
22547/usr/include/X11
22548/usr/include/X11R6
22549/usr/include/X11R5
22550/usr/include/X11R4
22551
22552/usr/local/X11/include
22553/usr/local/X11R6/include
22554/usr/local/X11R5/include
22555/usr/local/X11R4/include
22556
22557/usr/local/include/X11
22558/usr/local/include/X11R6
22559/usr/local/include/X11R5
22560/usr/local/include/X11R4
22561
22562/usr/X386/include
22563/usr/x386/include
22564/usr/XFree86/include/X11
22565
22566/usr/include
22567/usr/local/include
22568/usr/unsupported/include
22569/usr/athena/include
22570/usr/local/x11r5/include
22571/usr/lpp/Xamples/include
22572
22573/usr/openwin/include
22574/usr/openwin/share/include'
22575
22576if test "$ac_x_includes" = no; then
59f80f10 22577 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 22578 # First, try using that file with no special directory specified.
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. */
59f80f10 22585#include <X11/Intrinsic.h>
bec39cab
AC
22586_ACEOF
22587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22589 ac_status=$?
22590 grep -v '^ *+' conftest.er1 >conftest.err
22591 rm -f conftest.er1
22592 cat conftest.err >&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } >/dev/null; then
22595 if test -s conftest.err; then
22596 ac_cpp_err=$ac_c_preproc_warn_flag
22597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22598 else
22599 ac_cpp_err=
22600 fi
22601else
22602 ac_cpp_err=yes
22603fi
22604if test -z "$ac_cpp_err"; then
c906108c
SS
22605 # We can compile using X headers with no special include directory.
22606ac_x_includes=
22607else
bec39cab
AC
22608 echo "$as_me: failed program was:" >&5
22609sed 's/^/| /' conftest.$ac_ext >&5
22610
22611 for ac_dir in $ac_x_header_dirs; do
59f80f10 22612 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
22613 ac_x_includes=$ac_dir
22614 break
22615 fi
22616done
c906108c 22617fi
bec39cab
AC
22618rm -f conftest.err conftest.$ac_ext
22619fi # $ac_x_includes = no
c906108c 22620
bec39cab 22621if test "$ac_x_libraries" = no; then
c906108c 22622 # Check for the libraries.
c906108c
SS
22623 # See if we find them without any special options.
22624 # Don't add to $LIBS permanently.
bec39cab 22625 ac_save_LIBS=$LIBS
4e8d927d 22626 LIBS="-lXt $LIBS"
bec39cab
AC
22627 cat >conftest.$ac_ext <<_ACEOF
22628/* confdefs.h. */
22629_ACEOF
22630cat confdefs.h >>conftest.$ac_ext
22631cat >>conftest.$ac_ext <<_ACEOF
22632/* end confdefs.h. */
59f80f10 22633#include <X11/Intrinsic.h>
bec39cab
AC
22634int
22635main ()
22636{
59f80f10 22637XtMalloc (0)
bec39cab
AC
22638 ;
22639 return 0;
22640}
22641_ACEOF
22642rm -f conftest.$ac_objext conftest$ac_exeext
22643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22644 (eval $ac_link) 2>conftest.er1
22645 ac_status=$?
22646 grep -v '^ *+' conftest.er1 >conftest.err
22647 rm -f conftest.er1
22648 cat conftest.err >&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); } &&
b4e70030
JB
22651 { ac_try='test -z "$ac_c_werror_flag"
22652 || test ! -s conftest.err'
bec39cab
AC
22653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654 (eval $ac_try) 2>&5
22655 ac_status=$?
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); }; } &&
22658 { ac_try='test -s conftest$ac_exeext'
22659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660 (eval $ac_try) 2>&5
22661 ac_status=$?
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); }; }; then
22664 LIBS=$ac_save_LIBS
c906108c
SS
22665# We can link X programs with no special library path.
22666ac_x_libraries=
22667else
bec39cab
AC
22668 echo "$as_me: failed program was:" >&5
22669sed 's/^/| /' conftest.$ac_ext >&5
22670
b4e70030 22671LIBS=$ac_save_LIBS
bec39cab 22672for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 22673do
bec39cab 22674 # Don't even attempt the hair of trying to link an X program!
c906108c 22675 for ac_extension in a so sl; do
b4e70030 22676 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
22677 ac_x_libraries=$ac_dir
22678 break 2
22679 fi
22680 done
22681done
22682fi
bec39cab
AC
22683rm -f conftest.err conftest.$ac_objext \
22684 conftest$ac_exeext conftest.$ac_ext
22685fi # $ac_x_libraries = no
c906108c 22686
bec39cab 22687if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
22688 # Didn't find X anywhere. Cache the known absence of X.
22689 ac_cv_have_x="have_x=no"
22690else
22691 # Record where we found X for the cache.
22692 ac_cv_have_x="have_x=yes \
bec39cab 22693 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
22694fi
22695fi
bec39cab 22696
c906108c
SS
22697 fi
22698 eval "$ac_cv_have_x"
22699fi # $with_x != no
22700
22701if test "$have_x" != yes; then
b4e70030
JB
22702 echo "$as_me:$LINENO: result: $have_x" >&5
22703echo "${ECHO_T}$have_x" >&6
c906108c
SS
22704 no_x=yes
22705else
22706 # If each of the values was on the command line, it overrides each guess.
22707 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22708 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22709 # Update the cache value to reflect the command line values.
22710 ac_cv_have_x="have_x=yes \
22711 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
22712 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22713echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
22714fi
22715
22716
9cc52bde
MK
22717# Check whether we should enable the TUI, but only do so if we really
22718# can.
22719if test x"$enable_tui" = xyes; then
22720 if test -d $srcdir/tui; then
22721 if test "$ac_cv_search_waddstr" != no; then
22722 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22723 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22724 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22725 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
22726 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22727 CONFIG_ALL="${CONFIG_ALL} all-tui"
22728 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
22729 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
22730 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
22731 else
bec39cab
AC
22732 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
22733echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
22734 fi
22735 fi
22736fi
22737
bec39cab
AC
22738# Unlike the sim directory, whether a simulator is linked is controlled by
22739# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
22740# This code just checks for a few cases where we'd like to ignore those
22741# definitions, even when they're present in the '.mt' file. These cases
22742# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 22743# not part of the source tree.
7a292a7a 22744#
b4e70030 22745# Check whether --enable-sim or --disable-sim was given.
7a292a7a 22746if test "${enable_sim+set}" = set; then
b4e70030
JB
22747 enableval="$enable_sim"
22748 echo "enable_sim = $enable_sim";
7a292a7a
SS
22749 echo "enableval = ${enableval}";
22750 case "${enableval}" in
22751 yes) ignore_sim=false ;;
22752 no) ignore_sim=true ;;
22753 *) ignore_sim=false ;;
22754 esac
22755else
22756 ignore_sim=false
b4e70030 22757fi;
7a292a7a
SS
22758
22759if test ! -d "${srcdir}/../sim"; then
22760 ignore_sim=true
22761fi
22762
22763if test "${ignore_sim}" = "true"; then
22764 IGNORE_SIM="SIM="
22765 IGNORE_SIM_OBS="SIM_OBS="
22766else
22767 IGNORE_SIM=""
22768 IGNORE_SIM_OBS=""
60ca704f
SE
22769
22770cat >>confdefs.h <<\_ACEOF
7a292a7a 22771#define WITH_SIM 1
bec39cab 22772_ACEOF
7a292a7a
SS
22773
22774fi
22775
22776
22777
c906108c
SS
22778
22779
22780
22781
22782
22783
dfcd3bfb 22784
e56ac5c3
AC
22785
22786
b3a90332
AC
22787
22788
c35f4ffc 22789# List of host floatformats.
bec39cab
AC
22790
22791cat >>confdefs.h <<_ACEOF
c35f4ffc 22792#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 22793_ACEOF
c35f4ffc 22794
bec39cab
AC
22795
22796cat >>confdefs.h <<_ACEOF
c35f4ffc 22797#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
22798_ACEOF
22799
c35f4ffc 22800
bec39cab 22801cat >>confdefs.h <<_ACEOF
c35f4ffc 22802#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 22803_ACEOF
c35f4ffc
AC
22804
22805
c906108c
SS
22806# target_subdir is used by the testsuite to find the target libraries.
22807target_subdir=
22808if test "${host}" != "${target}"; then
22809 target_subdir="${target_alias}/"
22810fi
22811
22812
22813frags=
771b4502 22814if test "${gdb_native}" = "yes"; then
0dad8a66
MK
22815 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
22816 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
22817 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
22818echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
22819 { (exit 1); exit 1; }; }
0dad8a66
MK
22820 fi
22821 frags="$frags $host_makefile_frag"
22822else
22823 host_makefile_frag=/dev/null
c906108c 22824fi
c906108c
SS
22825
22826target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
22827if test ! -f ${target_makefile_frag}; then
bec39cab
AC
22828 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
22829echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
22830 { (exit 1); exit 1; }; }
c906108c
SS
22831fi
22832frags="$frags $target_makefile_frag"
22833
22834
22835
22836
22837
22838hostfile=`sed -n '
22839s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22840' ${host_makefile_frag}`
22841
22842targetfile=`sed -n '
b523a1fd 22843s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
22844' ${target_makefile_frag}`
22845
771b4502 22846if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
22847# We pick this up from the host configuration file (.mh) because we
22848# do not have a native configuration Makefile fragment.
c906108c
SS
22849nativefile=`sed -n '
22850s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22851' ${host_makefile_frag}`
c906108c
SS
22852fi
22853
22854
b00a8037 22855if test x"${gdb_osabi}" != x ; then
bec39cab
AC
22856
22857cat >>confdefs.h <<_ACEOF
b00a8037 22858#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 22859_ACEOF
b00a8037
DJ
22860
22861fi
22862
8dcde887 22863# Enable multi-ice-gdb-server.
b4e70030 22864# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 22865if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
22866 enableval="$enable_multi_ice"
22867 case $enableval in
8dcde887
MK
22868 yes | no)
22869 ;;
bec39cab
AC
22870 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
22871echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
22872 { (exit 1); exit 1; }; } ;;
8dcde887 22873 esac
b4e70030 22874fi;
4e8d927d 22875if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
22876
22877
22878subdirs="$subdirs multi-ice"
3ace7edb 22879
a85f51e7
DJ
22880fi
22881
a13e2c95
UW
22882# We only build gdbserver automatically in a native configuration.
22883if test "$gdb_native" = "yes"; then
b4e70030
JB
22884 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
22885echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 22886 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
22887 echo "$as_me:$LINENO: result: yes" >&5
22888echo "${ECHO_T}yes" >&6
22889
22890
22891subdirs="$subdirs gdbserver"
3ace7edb 22892
8dcde887 22893 else
b4e70030
JB
22894 echo "$as_me:$LINENO: result: no" >&5
22895echo "${ECHO_T}no" >&6
8dcde887
MK
22896 fi
22897fi
22898
2c0fc042
AC
22899# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
22900# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
22901# to an empty version.
c906108c
SS
22902
22903files=
22904links=
5a2402b8 22905
c906108c 22906rm -f xm.h
5a2402b8 22907xm_h=""
c906108c 22908if test "${hostfile}" != ""; then
5a2402b8 22909 xm_h=xm.h
0f475e27
AC
22910 case "${hostfile}" in
22911 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
22912 * ) GDB_XM_FILE="${hostfile}"
22913 esac
5a2402b8
AC
22914 files="${files} ${GDB_XM_FILE}"
22915 links="${links} xm.h"
60ca704f
SE
22916
22917cat >>confdefs.h <<_ACEOF
b78960be 22918#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 22919_ACEOF
5a2402b8 22920
c906108c 22921fi
5a2402b8
AC
22922
22923
c906108c 22924rm -f tm.h
5a2402b8 22925tm_h=""
c906108c 22926if test "${targetfile}" != ""; then
5a2402b8 22927 tm_h=tm.h
0f475e27 22928 case "${targetfile}" in
b8c4aece 22929 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
22930 * ) GDB_TM_FILE="${targetfile}"
22931 esac
5a2402b8
AC
22932 files="${files} ${GDB_TM_FILE}"
22933 links="${links} tm.h"
60ca704f
SE
22934
22935cat >>confdefs.h <<_ACEOF
b78960be 22936#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 22937_ACEOF
5a2402b8 22938
c906108c 22939fi
5a2402b8
AC
22940
22941
c906108c 22942rm -f nm.h
5a2402b8 22943nm_h=""
c906108c 22944if test "${nativefile}" != ""; then
5a2402b8 22945 nm_h=nm.h
0f475e27
AC
22946 case "${nativefile}" in
22947 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
22948 * ) GDB_NM_FILE="${nativefile}"
22949 esac
5a2402b8
AC
22950 files="${files} ${GDB_NM_FILE}"
22951 links="${links} nm.h"
60ca704f
SE
22952
22953cat >>confdefs.h <<_ACEOF
b78960be 22954#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 22955_ACEOF
5a2402b8 22956
c906108c 22957fi
5a2402b8
AC
22958
22959
bec39cab
AC
22960ac_sources="$files"
22961ac_dests="$links"
22962while test -n "$ac_sources"; do
22963 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22964 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22965 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22966done
b4e70030 22967 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
22968
22969
c906108c
SS
22970
22971
c906108c 22972
c906108c 22973
bec39cab
AC
22974cat >>confdefs.h <<\_ACEOF
22975#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
22976_ACEOF
c906108c 22977
234b45d4 22978
234b45d4
KB
22979
22980
22981
b4e70030 22982# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 22983if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
22984 withval="$with_libiconv_prefix"
22985
234b45d4
KB
22986 for dir in `echo "$withval" | tr : ' '`; do
22987 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
22988 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
22989 done
234b45d4 22990
b4e70030 22991fi;
234b45d4 22992
b4e70030
JB
22993 echo "$as_me:$LINENO: checking for iconv" >&5
22994echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
22995if test "${am_cv_func_iconv+set}" = set; then
22996 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 22997else
bec39cab 22998
234b45d4
KB
22999 am_cv_func_iconv="no, consider installing GNU libiconv"
23000 am_cv_lib_iconv=no
bec39cab
AC
23001 cat >conftest.$ac_ext <<_ACEOF
23002/* confdefs.h. */
23003_ACEOF
23004cat confdefs.h >>conftest.$ac_ext
23005cat >>conftest.$ac_ext <<_ACEOF
23006/* end confdefs.h. */
234b45d4
KB
23007#include <stdlib.h>
23008#include <iconv.h>
bec39cab
AC
23009int
23010main ()
23011{
234b45d4
KB
23012iconv_t cd = iconv_open("","");
23013 iconv(cd,NULL,NULL,NULL,NULL);
23014 iconv_close(cd);
bec39cab
AC
23015 ;
23016 return 0;
23017}
23018_ACEOF
23019rm -f conftest.$ac_objext conftest$ac_exeext
23020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021 (eval $ac_link) 2>conftest.er1
23022 ac_status=$?
23023 grep -v '^ *+' conftest.er1 >conftest.err
23024 rm -f conftest.er1
23025 cat conftest.err >&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); } &&
b4e70030
JB
23028 { ac_try='test -z "$ac_c_werror_flag"
23029 || test ! -s conftest.err'
bec39cab
AC
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23032 ac_status=$?
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; } &&
23035 { ac_try='test -s conftest$ac_exeext'
23036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037 (eval $ac_try) 2>&5
23038 ac_status=$?
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); }; }; then
234b45d4
KB
23041 am_cv_func_iconv=yes
23042else
bec39cab
AC
23043 echo "$as_me: failed program was:" >&5
23044sed 's/^/| /' conftest.$ac_ext >&5
23045
234b45d4 23046fi
bec39cab
AC
23047rm -f conftest.err conftest.$ac_objext \
23048 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23049 if test "$am_cv_func_iconv" != yes; then
23050 am_save_LIBS="$LIBS"
23051 LIBS="$LIBS -liconv"
bec39cab
AC
23052 cat >conftest.$ac_ext <<_ACEOF
23053/* confdefs.h. */
23054_ACEOF
23055cat confdefs.h >>conftest.$ac_ext
23056cat >>conftest.$ac_ext <<_ACEOF
23057/* end confdefs.h. */
234b45d4
KB
23058#include <stdlib.h>
23059#include <iconv.h>
bec39cab
AC
23060int
23061main ()
23062{
234b45d4
KB
23063iconv_t cd = iconv_open("","");
23064 iconv(cd,NULL,NULL,NULL,NULL);
23065 iconv_close(cd);
bec39cab
AC
23066 ;
23067 return 0;
23068}
23069_ACEOF
23070rm -f conftest.$ac_objext conftest$ac_exeext
23071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23072 (eval $ac_link) 2>conftest.er1
23073 ac_status=$?
23074 grep -v '^ *+' conftest.er1 >conftest.err
23075 rm -f conftest.er1
23076 cat conftest.err >&5
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } &&
b4e70030
JB
23079 { ac_try='test -z "$ac_c_werror_flag"
23080 || test ! -s conftest.err'
bec39cab
AC
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; } &&
23086 { ac_try='test -s conftest$ac_exeext'
23087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23088 (eval $ac_try) 2>&5
23089 ac_status=$?
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); }; }; then
234b45d4
KB
23092 am_cv_lib_iconv=yes
23093 am_cv_func_iconv=yes
23094else
bec39cab
AC
23095 echo "$as_me: failed program was:" >&5
23096sed 's/^/| /' conftest.$ac_ext >&5
23097
234b45d4 23098fi
bec39cab
AC
23099rm -f conftest.err conftest.$ac_objext \
23100 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23101 LIBS="$am_save_LIBS"
23102 fi
bec39cab
AC
23103
23104fi
b4e70030
JB
23105echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23106echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
23107 if test "$am_cv_func_iconv" = yes; then
23108
23109cat >>confdefs.h <<\_ACEOF
23110#define HAVE_ICONV 1
23111_ACEOF
23112
b4e70030
JB
23113 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23114echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
23115 if test "${am_cv_proto_iconv+set}" = set; then
23116 echo $ECHO_N "(cached) $ECHO_C" >&6
23117else
23118
23119 cat >conftest.$ac_ext <<_ACEOF
23120/* confdefs.h. */
23121_ACEOF
23122cat confdefs.h >>conftest.$ac_ext
23123cat >>conftest.$ac_ext <<_ACEOF
23124/* end confdefs.h. */
23125
23126#include <stdlib.h>
23127#include <iconv.h>
23128extern
23129#ifdef __cplusplus
23130"C"
23131#endif
23132#if defined(__STDC__) || defined(__cplusplus)
23133size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23134#else
23135size_t iconv();
23136#endif
23137
23138int
23139main ()
23140{
23141
23142 ;
23143 return 0;
23144}
23145_ACEOF
23146rm -f conftest.$ac_objext
23147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23148 (eval $ac_compile) 2>conftest.er1
23149 ac_status=$?
23150 grep -v '^ *+' conftest.er1 >conftest.err
23151 rm -f conftest.er1
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } &&
b4e70030
JB
23155 { ac_try='test -z "$ac_c_werror_flag"
23156 || test ! -s conftest.err'
bec39cab
AC
23157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158 (eval $ac_try) 2>&5
23159 ac_status=$?
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); }; } &&
23162 { ac_try='test -s conftest.$ac_objext'
23163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23165 ac_status=$?
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; }; then
23168 am_cv_proto_iconv_arg1=""
23169else
23170 echo "$as_me: failed program was:" >&5
23171sed 's/^/| /' conftest.$ac_ext >&5
23172
b4e70030 23173am_cv_proto_iconv_arg1="const"
bec39cab
AC
23174fi
23175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23176 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);"
23177fi
23178
23179 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 23180 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
23181 }$am_cv_proto_iconv" >&5
23182echo "${ECHO_T}${ac_t:-
b4e70030 23183 }$am_cv_proto_iconv" >&6
bec39cab
AC
23184
23185cat >>confdefs.h <<_ACEOF
23186#define ICONV_CONST $am_cv_proto_iconv_arg1
23187_ACEOF
23188
23189 fi
23190 LIBICONV=
23191 if test "$am_cv_lib_iconv" = yes; then
23192 LIBICONV="-liconv"
23193 fi
23194
23195
23196
b4e70030
JB
23197 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23198 ac_config_commands="$ac_config_commands default"
bec39cab
AC
23199cat >confcache <<\_ACEOF
23200# This file is a shell script that caches the results of configure
23201# tests run on this system so they can be shared between configure
23202# scripts and configure runs, see configure's option --config-cache.
23203# It is not useful on other systems. If it contains results you don't
23204# want to keep, you may remove or edit it.
23205#
23206# config.status only pays attention to the cache file if you give it
23207# the --recheck option to rerun configure.
23208#
23209# `ac_cv_env_foo' variables (set or unset) will be overridden when
23210# loading this file, other *unset* `ac_cv_foo' will be assigned the
23211# following values.
23212
23213_ACEOF
23214
23215# The following way of writing the cache mishandles newlines in values,
23216# but we know of no workaround that is simple, portable, and efficient.
b4e70030 23217# So, don't put newlines in cache variables' values.
bec39cab
AC
23218# Ultrix sh set writes to stderr and can't be redirected directly,
23219# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 23220{
bec39cab 23221 (set) 2>&1 |
b4e70030
JB
23222 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23223 *ac_space=\ *)
bec39cab
AC
23224 # `set' does not quote correctly, so add quotes (double-quote
23225 # substitution turns \\\\ into \\, and sed turns \\ into \).
23226 sed -n \
23227 "s/'/'\\\\''/g;
23228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 23229 ;;
bec39cab
AC
23230 *)
23231 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
23232 sed -n \
23233 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 23234 ;;
b4e70030
JB
23235 esac;
23236} |
bec39cab
AC
23237 sed '
23238 t clear
b4e70030 23239 : clear
bec39cab
AC
23240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23241 t end
b4e70030
JB
23242 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23243 : end' >>confcache
bec39cab
AC
23244if diff $cache_file confcache >/dev/null 2>&1; then :; else
23245 if test -w $cache_file; then
b4e70030 23246 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
23247 cat confcache >$cache_file
23248 else
b4e70030 23249 echo "not updating unwritable cache $cache_file"
bec39cab
AC
23250 fi
23251fi
23252rm -f confcache
23253
23254test "x$prefix" = xNONE && prefix=$ac_default_prefix
23255# Let make expand exec_prefix.
23256test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23257
b4e70030
JB
23258# VPATH may cause trouble with some makes, so we remove $(srcdir),
23259# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23260# trailing colons and then remove the whole line if VPATH becomes empty
23261# (actually we leave an empty line to preserve line numbers).
23262if test "x$srcdir" = x.; then
23263 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23264s/:*\$(srcdir):*/:/;
23265s/:*\${srcdir}:*/:/;
23266s/:*@srcdir@:*/:/;
23267s/^\([^=]*=[ ]*\):*/\1/;
23268s/:*$//;
23269s/^[^=]*=[ ]*$//;
23270}'
23271fi
23272
bec39cab
AC
23273DEFS=-DHAVE_CONFIG_H
23274
23275ac_libobjs=
23276ac_ltlibobjs=
23277for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23278 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
23279 ac_i=`echo "$ac_i" |
23280 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23281 # 2. Add them.
23282 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23283 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
23284done
23285LIBOBJS=$ac_libobjs
23286
23287LTLIBOBJS=$ac_ltlibobjs
23288
23289
85981d60
AC
23290if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23291 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23292Usually this means the macro was only invoked conditionally." >&5
23293echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23294Usually this means the macro was only invoked conditionally." >&2;}
23295 { (exit 1); exit 1; }; }
23296fi
bec39cab
AC
23297
23298: ${CONFIG_STATUS=./config.status}
23299ac_clean_files_save=$ac_clean_files
23300ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23301{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23302echo "$as_me: creating $CONFIG_STATUS" >&6;}
23303cat >$CONFIG_STATUS <<_ACEOF
23304#! $SHELL
23305# Generated by $as_me.
23306# Run this file to recreate the current configuration.
23307# Compiler output produced by configure, useful for debugging
23308# configure, is in config.log if it exists.
23309
23310debug=false
23311ac_cs_recheck=false
23312ac_cs_silent=false
23313SHELL=\${CONFIG_SHELL-$SHELL}
23314_ACEOF
23315
23316cat >>$CONFIG_STATUS <<\_ACEOF
23317## --------------------- ##
23318## M4sh Initialization. ##
23319## --------------------- ##
23320
23321# Be Bourne compatible
23322if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23323 emulate sh
23324 NULLCMD=:
23325 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23326 # is contrary to our usage. Disable this feature.
23327 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
23328elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23329 set -o posix
bec39cab
AC
23330fi
23331DUALCASE=1; export DUALCASE # for MKS sh
23332
23333# Support unset when possible.
23334if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23335 as_unset=unset
23336else
23337 as_unset=false
23338fi
23339
23340
23341# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 23342$as_unset ENV MAIL MAILPATH
bec39cab
AC
23343PS1='$ '
23344PS2='> '
23345PS4='+ '
23346
23347# NLS nuisances.
23348for as_var in \
23349 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23350 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23351 LC_TELEPHONE LC_TIME
23352do
23353 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23354 eval $as_var=C; export $as_var
23355 else
b4e70030 23356 $as_unset $as_var
bec39cab
AC
23357 fi
23358done
23359
23360# Required to use basename.
b4e70030 23361if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23362 as_expr=expr
23363else
23364 as_expr=false
23365fi
23366
b4e70030 23367if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
23368 as_basename=basename
23369else
23370 as_basename=false
23371fi
23372
23373
23374# Name of the executable.
b4e70030 23375as_me=`$as_basename "$0" ||
bec39cab
AC
23376$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23377 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
23378 X"$0" : 'X\(/\)$' \| \
23379 . : '\(.\)' 2>/dev/null ||
bec39cab 23380echo X/"$0" |
b4e70030
JB
23381 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23382 /^X\/\(\/\/\)$/{ s//\1/; q; }
23383 /^X\/\(\/\).*/{ s//\1/; q; }
23384 s/.*/./; q'`
bec39cab 23385
b4e70030
JB
23386
23387# PATH needs CR, and LINENO needs CR and PATH.
23388# Avoid depending upon Character Ranges.
23389as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23390as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23391as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23392as_cr_digits='0123456789'
23393as_cr_alnum=$as_cr_Letters$as_cr_digits
23394
23395# The user is always right.
23396if test "${PATH_SEPARATOR+set}" != set; then
23397 echo "#! /bin/sh" >conf$$.sh
23398 echo "exit 0" >>conf$$.sh
23399 chmod +x conf$$.sh
23400 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23401 PATH_SEPARATOR=';'
23402 else
23403 PATH_SEPARATOR=:
23404 fi
23405 rm -f conf$$.sh
23406fi
bec39cab
AC
23407
23408
b4e70030
JB
23409 as_lineno_1=$LINENO
23410 as_lineno_2=$LINENO
23411 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23412 test "x$as_lineno_1" != "x$as_lineno_2" &&
23413 test "x$as_lineno_3" = "x$as_lineno_2" || {
23414 # Find who we are. Look in the path if we contain no path at all
23415 # relative or not.
23416 case $0 in
23417 *[\\/]* ) as_myself=$0 ;;
23418 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23419for as_dir in $PATH
23420do
23421 IFS=$as_save_IFS
23422 test -z "$as_dir" && as_dir=.
23423 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23424done
bec39cab 23425
b4e70030
JB
23426 ;;
23427 esac
23428 # We did not find ourselves, most probably we were run as `sh COMMAND'
23429 # in which case we are not to be found in the path.
23430 if test "x$as_myself" = x; then
23431 as_myself=$0
23432 fi
23433 if test ! -f "$as_myself"; then
23434 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23435echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23436 { (exit 1); exit 1; }; }
23437 fi
23438 case $CONFIG_SHELL in
23439 '')
23440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23441for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23442do
23443 IFS=$as_save_IFS
23444 test -z "$as_dir" && as_dir=.
23445 for as_base in sh bash ksh sh5; do
23446 case $as_dir in
23447 /*)
23448 if ("$as_dir/$as_base" -c '
bec39cab
AC
23449 as_lineno_1=$LINENO
23450 as_lineno_2=$LINENO
b4e70030 23451 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 23452 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
23453 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23454 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23455 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23456 CONFIG_SHELL=$as_dir/$as_base
23457 export CONFIG_SHELL
23458 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23459 fi;;
23460 esac
23461 done
23462done
23463;;
23464 esac
bec39cab
AC
23465
23466 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23467 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
23468 # line-number line before each line; the second 'sed' does the real
23469 # work. The second script uses 'N' to pair each line-number line
23470 # with the numbered line, and appends trailing '-' during
23471 # substitution so that $LINENO is not a special case at line end.
bec39cab 23472 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
23473 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23474 sed '=' <$as_myself |
bec39cab
AC
23475 sed '
23476 N
b4e70030
JB
23477 s,$,-,
23478 : loop
23479 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 23480 t loop
b4e70030
JB
23481 s,-$,,
23482 s,^['$as_cr_digits']*\n,,
bec39cab 23483 ' >$as_me.lineno &&
b4e70030
JB
23484 chmod +x $as_me.lineno ||
23485 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23486echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
23487 { (exit 1); exit 1; }; }
23488
23489 # Don't try to exec as it changes $[0], causing all sort of problems
23490 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
23491 # original and so on. Autoconf is especially sensible to this).
23492 . ./$as_me.lineno
bec39cab
AC
23493 # Exit status is that of the last command.
23494 exit
23495}
23496
23497
b4e70030
JB
23498case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23499 *c*,-n*) ECHO_N= ECHO_C='
23500' ECHO_T=' ' ;;
23501 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23502 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
23503esac
23504
b4e70030 23505if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23506 as_expr=expr
23507else
23508 as_expr=false
23509fi
23510
23511rm -f conf$$ conf$$.exe conf$$.file
23512echo >conf$$.file
23513if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
23514 # We could just check for DJGPP; but this test a) works b) is more generic
23515 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23516 if test -f conf$$.exe; then
23517 # Don't use ln at all; we don't have any links
bec39cab 23518 as_ln_s='cp -p'
b4e70030
JB
23519 else
23520 as_ln_s='ln -s'
23521 fi
bec39cab
AC
23522elif ln conf$$.file conf$$ 2>/dev/null; then
23523 as_ln_s=ln
23524else
23525 as_ln_s='cp -p'
23526fi
b4e70030 23527rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
23528
23529if mkdir -p . 2>/dev/null; then
23530 as_mkdir_p=:
23531else
23532 test -d ./-p && rmdir ./-p
23533 as_mkdir_p=false
23534fi
23535
b4e70030 23536as_executable_p="test -f"
bec39cab
AC
23537
23538# Sed expression to map a string onto a valid CPP name.
23539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23540
23541# Sed expression to map a string onto a valid variable name.
23542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23543
23544
b4e70030
JB
23545# IFS
23546# We need space, tab and new line, in precisely that order.
23547as_nl='
23548'
23549IFS=" $as_nl"
23550
23551# CDPATH.
23552$as_unset CDPATH
23553
bec39cab
AC
23554exec 6>&1
23555
b4e70030 23556# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 23557# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
23558# values after options handling. Logging --version etc. is OK.
23559exec 5>>config.log
23560{
23561 echo
23562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23563## Running $as_me. ##
23564_ASBOX
23565} >&5
23566cat >&5 <<_CSEOF
23567
bec39cab 23568This file was extended by $as_me, which was
b4e70030 23569generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
23570
23571 CONFIG_FILES = $CONFIG_FILES
23572 CONFIG_HEADERS = $CONFIG_HEADERS
23573 CONFIG_LINKS = $CONFIG_LINKS
23574 CONFIG_COMMANDS = $CONFIG_COMMANDS
23575 $ $0 $@
23576
b4e70030
JB
23577_CSEOF
23578echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23579echo >&5
bec39cab
AC
23580_ACEOF
23581
23582# Files that config.status was made for.
b4e70030
JB
23583if test -n "$ac_config_files"; then
23584 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23585fi
234b45d4 23586
b4e70030
JB
23587if test -n "$ac_config_headers"; then
23588 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23589fi
23590
23591if test -n "$ac_config_links"; then
23592 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23593fi
23594
23595if test -n "$ac_config_commands"; then
23596 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23597fi
234b45d4 23598
bec39cab 23599cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 23600
bec39cab
AC
23601ac_cs_usage="\
23602\`$as_me' instantiates files from templates according to the
23603current configuration.
234b45d4 23604
bec39cab 23605Usage: $0 [OPTIONS] [FILE]...
234b45d4 23606
bec39cab
AC
23607 -h, --help print this help, then exit
23608 -V, --version print version number, then exit
23609 -q, --quiet do not print progress messages
23610 -d, --debug don't remove temporary files
23611 --recheck update $as_me by reconfiguring in the same conditions
23612 --file=FILE[:TEMPLATE]
23613 instantiate the configuration file FILE
23614 --header=FILE[:TEMPLATE]
23615 instantiate the configuration header FILE
234b45d4 23616
bec39cab
AC
23617Configuration files:
23618$config_files
234b45d4 23619
bec39cab
AC
23620Configuration headers:
23621$config_headers
234b45d4 23622
bec39cab
AC
23623Configuration links:
23624$config_links
234b45d4 23625
bec39cab
AC
23626Configuration commands:
23627$config_commands
23628
23629Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 23630_ACEOF
b4e70030 23631
bec39cab
AC
23632cat >>$CONFIG_STATUS <<_ACEOF
23633ac_cs_version="\\
23634config.status
b4e70030 23635configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
23636 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23637
b4e70030 23638Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
23639This config.status script is free software; the Free Software Foundation
23640gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
23641srcdir=$srcdir
23642INSTALL="$INSTALL"
bec39cab
AC
23643_ACEOF
23644
23645cat >>$CONFIG_STATUS <<\_ACEOF
23646# If no file are specified by the user, then we need to provide default
23647# value. By we need to know if files were specified by the user.
23648ac_need_defaults=:
23649while test $# != 0
23650do
23651 case $1 in
23652 --*=*)
b4e70030
JB
23653 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23654 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 23655 ac_shift=:
c906108c 23656 ;;
b4e70030 23657 -*)
bec39cab
AC
23658 ac_option=$1
23659 ac_optarg=$2
23660 ac_shift=shift
c906108c 23661 ;;
b4e70030
JB
23662 *) # This is not an option, so the user has probably given explicit
23663 # arguments.
23664 ac_option=$1
23665 ac_need_defaults=false;;
bec39cab 23666 esac
c906108c 23667
bec39cab
AC
23668 case $ac_option in
23669 # Handling of the options.
b4e70030
JB
23670_ACEOF
23671cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
23672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23673 ac_cs_recheck=: ;;
b4e70030
JB
23674 --version | --vers* | -V )
23675 echo "$ac_cs_version"; exit 0 ;;
23676 --he | --h)
23677 # Conflict between --help and --header
23678 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23679Try \`$0 --help' for more information." >&5
23680echo "$as_me: error: ambiguous option: $1
23681Try \`$0 --help' for more information." >&2;}
23682 { (exit 1); exit 1; }; };;
23683 --help | --hel | -h )
23684 echo "$ac_cs_usage"; exit 0 ;;
23685 --debug | --d* | -d )
bec39cab
AC
23686 debug=: ;;
23687 --file | --fil | --fi | --f )
23688 $ac_shift
23689 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23690 ac_need_defaults=false;;
23691 --header | --heade | --head | --hea )
23692 $ac_shift
23693 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23694 ac_need_defaults=false;;
23695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23696 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23697 ac_cs_silent=: ;;
c906108c 23698
bec39cab 23699 # This is an error.
b4e70030
JB
23700 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23701Try \`$0 --help' for more information." >&5
23702echo "$as_me: error: unrecognized option: $1
23703Try \`$0 --help' for more information." >&2;}
bec39cab 23704 { (exit 1); exit 1; }; } ;;
c906108c 23705
b4e70030 23706 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 23707
bec39cab
AC
23708 esac
23709 shift
23710done
c906108c 23711
bec39cab 23712ac_configure_extra_args=
c906108c 23713
bec39cab
AC
23714if $ac_cs_silent; then
23715 exec 6>/dev/null
23716 ac_configure_extra_args="$ac_configure_extra_args --silent"
23717fi
c906108c 23718
bec39cab
AC
23719_ACEOF
23720cat >>$CONFIG_STATUS <<_ACEOF
23721if \$ac_cs_recheck; then
b4e70030
JB
23722 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23723 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
23724fi
23725
23726_ACEOF
23727
23728cat >>$CONFIG_STATUS <<_ACEOF
c906108c 23729#
b4e70030 23730# INIT-COMMANDS section.
c906108c 23731#
c906108c 23732
b4e70030 23733
4e8d927d
DJ
23734GCC="$GCC"
23735CC="$CC"
23736acx_cv_header_stdint="$acx_cv_header_stdint"
23737acx_cv_type_int8_t="$acx_cv_type_int8_t"
23738acx_cv_type_int16_t="$acx_cv_type_int16_t"
23739acx_cv_type_int32_t="$acx_cv_type_int32_t"
23740acx_cv_type_int64_t="$acx_cv_type_int64_t"
23741acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23742ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23743ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23744ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23745ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23746ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23747ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23748ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23749ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23750
bec39cab
AC
23751
23752gdb_host_cpu=$gdb_host_cpu
23753gdb_target_cpu=$gdb_target_cpu
23754nativefile=$nativefile
23755
23756
23757_ACEOF
23758
4e8d927d 23759
b4e70030
JB
23760
23761cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 23762for ac_config_target in $ac_config_targets
c906108c 23763do
b4e70030
JB
23764 case "$ac_config_target" in
23765 # Handling of arguments.
23766 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23767 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
23768 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
23769 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
23770 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23771 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
23772 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23773echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23774 { (exit 1); exit 1; }; };;
c906108c
SS
23775 esac
23776done
23777
bec39cab
AC
23778# If the user did not use the arguments to specify the items to instantiate,
23779# then the envvar interface is used. Set only those that are not.
23780# We use the long form for the default assignment because of an extremely
23781# bizarre bug on SunOS 4.1.3.
23782if $ac_need_defaults; then
23783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23785 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23786 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23787fi
23788
b4e70030
JB
23789# Have a temporary directory for convenience. Make it in the build tree
23790# simply because there is no reason to put it here, and in addition,
23791# creating and moving files from /tmp can sometimes cause problems.
23792# Create a temporary directory, and hook for its removal unless debugging.
23793$debug ||
23794{
23795 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23796 trap '{ (exit 1); exit 1; }' 1 2 13 15
23797}
4e8d927d 23798
b4e70030 23799# Create a (secure) tmp directory for tmp files.
4e8d927d 23800
b4e70030
JB
23801{
23802 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23803 test -n "$tmp" && test -d "$tmp"
23804} ||
23805{
23806 tmp=./confstat$$-$RANDOM
23807 (umask 077 && mkdir $tmp)
23808} ||
23809{
23810 echo "$me: cannot create a temporary directory in ." >&2
23811 { (exit 1); exit 1; }
23812}
4e8d927d 23813
b4e70030 23814_ACEOF
4e8d927d 23815
b4e70030 23816cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 23817
b4e70030
JB
23818#
23819# CONFIG_FILES section.
23820#
4e8d927d 23821
b4e70030
JB
23822# No need to generate the scripts if there are no CONFIG_FILES.
23823# This happens for instance when ./config.status config.h
23824if test -n "\$CONFIG_FILES"; then
23825 # Protect against being on the right side of a sed subst in config.status.
23826 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23827 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23828s,@SHELL@,$SHELL,;t t
23829s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23830s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23831s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23832s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23833s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23834s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23835s,@exec_prefix@,$exec_prefix,;t t
23836s,@prefix@,$prefix,;t t
23837s,@program_transform_name@,$program_transform_name,;t t
23838s,@bindir@,$bindir,;t t
23839s,@sbindir@,$sbindir,;t t
23840s,@libexecdir@,$libexecdir,;t t
23841s,@datadir@,$datadir,;t t
23842s,@sysconfdir@,$sysconfdir,;t t
23843s,@sharedstatedir@,$sharedstatedir,;t t
23844s,@localstatedir@,$localstatedir,;t t
23845s,@libdir@,$libdir,;t t
23846s,@includedir@,$includedir,;t t
23847s,@oldincludedir@,$oldincludedir,;t t
23848s,@infodir@,$infodir,;t t
23849s,@mandir@,$mandir,;t t
23850s,@build_alias@,$build_alias,;t t
23851s,@host_alias@,$host_alias,;t t
23852s,@target_alias@,$target_alias,;t t
23853s,@DEFS@,$DEFS,;t t
23854s,@ECHO_C@,$ECHO_C,;t t
23855s,@ECHO_N@,$ECHO_N,;t t
23856s,@ECHO_T@,$ECHO_T,;t t
23857s,@LIBS@,$LIBS,;t t
23858s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23859s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23860s,@MAINT@,$MAINT,;t t
23861s,@CC@,$CC,;t t
23862s,@CFLAGS@,$CFLAGS,;t t
23863s,@LDFLAGS@,$LDFLAGS,;t t
23864s,@CPPFLAGS@,$CPPFLAGS,;t t
23865s,@ac_ct_CC@,$ac_ct_CC,;t t
23866s,@EXEEXT@,$EXEEXT,;t t
23867s,@OBJEXT@,$OBJEXT,;t t
23868s,@CPP@,$CPP,;t t
23869s,@EGREP@,$EGREP,;t t
23870s,@build@,$build,;t t
23871s,@build_cpu@,$build_cpu,;t t
23872s,@build_vendor@,$build_vendor,;t t
23873s,@build_os@,$build_os,;t t
23874s,@host@,$host,;t t
23875s,@host_cpu@,$host_cpu,;t t
23876s,@host_vendor@,$host_vendor,;t t
23877s,@host_os@,$host_os,;t t
23878s,@target@,$target,;t t
23879s,@target_cpu@,$target_cpu,;t t
23880s,@target_vendor@,$target_vendor,;t t
23881s,@target_os@,$target_os,;t t
b4e70030 23882s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
23883s,@LIBINTL@,$LIBINTL,;t t
23884s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23885s,@INCINTL@,$INCINTL,;t t
b4e70030 23886s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
23887s,@GMSGFMT@,$GMSGFMT,;t t
23888s,@POSUB@,$POSUB,;t t
b4e70030 23889s,@CATALOGS@,$CATALOGS,;t t
b4e70030 23890s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 23891s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
23892s,@GENCAT@,$GENCAT,;t t
23893s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
23894s,@localedir@,$localedir,;t t
23895s,@PACKAGE@,$PACKAGE,;t t
23896s,@subdirs@,$subdirs,;t t
23897s,@AWK@,$AWK,;t t
23898s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23899s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23900s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23901s,@LN_S@,$LN_S,;t t
20e95c23
DJ
23902s,@RANLIB@,$RANLIB,;t t
23903s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
23904s,@YACC@,$YACC,;t t
23905s,@AR@,$AR,;t t
23906s,@ac_ct_AR@,$ac_ct_AR,;t t
23907s,@DLLTOOL@,$DLLTOOL,;t t
23908s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23909s,@WINDRES@,$WINDRES,;t t
23910s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
23911s,@MIG@,$MIG,;t t
23912s,@ac_ct_MIG@,$ac_ct_MIG,;t t
3841debe
DJ
23913s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
23914s,@LIBEXPAT@,$LIBEXPAT,;t t
23915s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 23916s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
23917s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
23918s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
23919s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
23920s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23921s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
23922s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
23923s,@WIN32LIBS@,$WIN32LIBS,;t t
23924s,@LIBGUI@,$LIBGUI,;t t
23925s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
23926s,@WIN32LDAPP@,$WIN32LDAPP,;t t
23927s,@TCL_VERSION@,$TCL_VERSION,;t t
23928s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
23929s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
23930s,@TCL_CC@,$TCL_CC,;t t
23931s,@TCL_DEFS@,$TCL_DEFS,;t t
23932s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
23933s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
23934s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23935s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
23936s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
23937s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
23938s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
23939s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
23940s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
23941s,@TCL_RANLIB@,$TCL_RANLIB,;t t
23942s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
23943s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23944s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
23945s,@TK_VERSION@,$TK_VERSION,;t t
23946s,@TK_DEFS@,$TK_DEFS,;t t
23947s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
23948s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
23949s,@TK_XLIBSW@,$TK_XLIBSW,;t t
23950s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
23951s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
23952s,@TCLHDIR@,$TCLHDIR,;t t
23953s,@TKHDIR@,$TKHDIR,;t t
23954s,@ITCLHDIR@,$ITCLHDIR,;t t
23955s,@ITKHDIR@,$ITKHDIR,;t t
23956s,@ITCL_VERSION@,$ITCL_VERSION,;t t
23957s,@ITCL_DEFS@,$ITCL_DEFS,;t t
23958s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
23959s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
23960s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
23961s,@ITK_VERSION@,$ITK_VERSION,;t t
23962s,@ITK_DEFS@,$ITK_DEFS,;t t
23963s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
23964s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
23965s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
23966s,@X_CFLAGS@,$X_CFLAGS,;t t
23967s,@X_LDFLAGS@,$X_LDFLAGS,;t t
23968s,@X_LIBS@,$X_LIBS,;t t
23969s,@TCL_DEPS@,$TCL_DEPS,;t t
23970s,@TK_DEPS@,$TK_DEPS,;t t
23971s,@ITCLLIB@,$ITCLLIB,;t t
23972s,@ITCL_DEPS@,$ITCL_DEPS,;t t
23973s,@ITKLIB@,$ITKLIB,;t t
23974s,@ITK_DEPS@,$ITK_DEPS,;t t
23975s,@GDBTKLIBS@,$GDBTKLIBS,;t t
23976s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
23977s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
23978s,@IGNORE_SIM@,$IGNORE_SIM,;t t
23979s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
23980s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
23981s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
23982s,@CONFIG_OBS@,$CONFIG_OBS,;t t
23983s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
23984s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
23985s,@CONFIG_ALL@,$CONFIG_ALL,;t t
23986s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
23987s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
23988s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
23989s,@target_subdir@,$target_subdir,;t t
23990s,@frags@,$frags,;t t
23991s,@xm_h@,$xm_h,;t t
23992s,@tm_h@,$tm_h,;t t
23993s,@nm_h@,$nm_h,;t t
23994s,@LIBICONV@,$LIBICONV,;t t
23995s,@LIBOBJS@,$LIBOBJS,;t t
23996s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23997/@host_makefile_frag@/r $host_makefile_frag
23998s,@host_makefile_frag@,,;t t
23999/@target_makefile_frag@/r $target_makefile_frag
24000s,@target_makefile_frag@,,;t t
24001CEOF
24002
24003_ACEOF
24004
24005 cat >>$CONFIG_STATUS <<\_ACEOF
24006 # Split the substitutions into bite-sized pieces for seds with
24007 # small command number limits, like on Digital OSF/1 and HP-UX.
24008 ac_max_sed_lines=48
24009 ac_sed_frag=1 # Number of current file.
24010 ac_beg=1 # First line for current file.
24011 ac_end=$ac_max_sed_lines # Line after last line for current file.
24012 ac_more_lines=:
24013 ac_sed_cmds=
24014 while $ac_more_lines; do
24015 if test $ac_beg -gt 1; then
24016 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24017 else
24018 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 24019 fi
b4e70030
JB
24020 if test ! -s $tmp/subs.frag; then
24021 ac_more_lines=false
24022 else
24023 # The purpose of the label and of the branching condition is to
24024 # speed up the sed processing (if there are no `@' at all, there
24025 # is no need to browse any of the substitutions).
24026 # These are the two extra sed commands mentioned above.
24027 (echo ':t
24028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24029 if test -z "$ac_sed_cmds"; then
24030 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24031 else
24032 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24033 fi
24034 ac_sed_frag=`expr $ac_sed_frag + 1`
24035 ac_beg=$ac_end
24036 ac_end=`expr $ac_end + $ac_max_sed_lines`
24037 fi
24038 done
24039 if test -z "$ac_sed_cmds"; then
24040 ac_sed_cmds=cat
24041 fi
24042fi # test -n "$CONFIG_FILES"
4e8d927d 24043
b4e70030
JB
24044_ACEOF
24045cat >>$CONFIG_STATUS <<\_ACEOF
24046for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24048 case $ac_file in
24049 - | *:- | *:-:* ) # input from stdin
24050 cat >$tmp/stdin
24051 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24052 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24053 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24055 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
24056 esac
24057
b4e70030
JB
24058 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24059 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
24060$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24061 X"$ac_file" : 'X\(//\)[^/]' \| \
24062 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
24063 X"$ac_file" : 'X\(/\)' \| \
24064 . : '\(.\)' 2>/dev/null ||
bec39cab 24065echo X"$ac_file" |
b4e70030
JB
24066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24068 /^X\(\/\/\)$/{ s//\1/; q; }
24069 /^X\(\/\).*/{ s//\1/; q; }
24070 s/.*/./; q'`
24071 { if $as_mkdir_p; then
24072 mkdir -p "$ac_dir"
24073 else
24074 as_dir="$ac_dir"
bec39cab 24075 as_dirs=
b4e70030
JB
24076 while test ! -d "$as_dir"; do
24077 as_dirs="$as_dir $as_dirs"
24078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
24079$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24080 X"$as_dir" : 'X\(//\)[^/]' \| \
24081 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
24082 X"$as_dir" : 'X\(/\)' \| \
24083 . : '\(.\)' 2>/dev/null ||
bec39cab 24084echo X"$as_dir" |
b4e70030
JB
24085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24087 /^X\(\/\/\)$/{ s//\1/; q; }
24088 /^X\(\/\).*/{ s//\1/; q; }
24089 s/.*/./; q'`
bec39cab 24090 done
b4e70030
JB
24091 test ! -n "$as_dirs" || mkdir $as_dirs
24092 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24093echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 24094 { (exit 1); exit 1; }; }; }
b4e70030 24095
bec39cab
AC
24096 ac_builddir=.
24097
b4e70030 24098if test "$ac_dir" != .; then
bec39cab 24099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
24100 # A "../" for each directory in $ac_dir_suffix.
24101 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24102else
24103 ac_dir_suffix= ac_top_builddir=
24104fi
bec39cab
AC
24105
24106case $srcdir in
b4e70030 24107 .) # No --srcdir option. We are building in place.
bec39cab 24108 ac_srcdir=.
b4e70030
JB
24109 if test -z "$ac_top_builddir"; then
24110 ac_top_srcdir=.
24111 else
24112 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24113 fi ;;
24114 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 24115 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
24116 ac_top_srcdir=$srcdir ;;
24117 *) # Relative path.
24118 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24119 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
24120esac
24121
b4e70030
JB
24122# Do not use `cd foo && pwd` to compute absolute paths, because
24123# the directories may not exist.
24124case `pwd` in
24125.) ac_abs_builddir="$ac_dir";;
24126*)
24127 case "$ac_dir" in
24128 .) ac_abs_builddir=`pwd`;;
24129 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24130 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24131 esac;;
24132esac
24133case $ac_abs_builddir in
24134.) ac_abs_top_builddir=${ac_top_builddir}.;;
24135*)
24136 case ${ac_top_builddir}. in
24137 .) ac_abs_top_builddir=$ac_abs_builddir;;
24138 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24139 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24140 esac;;
24141esac
24142case $ac_abs_builddir in
24143.) ac_abs_srcdir=$ac_srcdir;;
24144*)
24145 case $ac_srcdir in
24146 .) ac_abs_srcdir=$ac_abs_builddir;;
24147 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24148 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24149 esac;;
24150esac
24151case $ac_abs_builddir in
24152.) ac_abs_top_srcdir=$ac_top_srcdir;;
24153*)
24154 case $ac_top_srcdir in
24155 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24156 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24157 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24158 esac;;
24159esac
c906108c 24160
c906108c 24161
bec39cab
AC
24162 case $INSTALL in
24163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 24164 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 24165 esac
121ce6e5 24166
b4e70030
JB
24167 if test x"$ac_file" != x-; then
24168 { echo "$as_me:$LINENO: creating $ac_file" >&5
24169echo "$as_me: creating $ac_file" >&6;}
24170 rm -f "$ac_file"
24171 fi
24172 # Let's still pretend it is `configure' which instantiates (i.e., don't
24173 # use $as_me), people would be surprised to read:
24174 # /* config.h. Generated by config.status. */
24175 if test x"$ac_file" = x-; then
24176 configure_input=
24177 else
24178 configure_input="$ac_file. "
24179 fi
24180 configure_input=$configure_input"Generated from `echo $ac_file_in |
24181 sed 's,.*/,,'` by configure."
24182
24183 # First look for the input files in the build tree, otherwise in the
24184 # src tree.
24185 ac_file_inputs=`IFS=:
24186 for f in $ac_file_in; do
24187 case $f in
24188 -) echo $tmp/stdin ;;
24189 [\\/$]*)
24190 # Absolute (can't be DOS-style, as IFS=:)
24191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24192echo "$as_me: error: cannot find input file: $f" >&2;}
24193 { (exit 1); exit 1; }; }
24194 echo "$f";;
24195 *) # Relative
24196 if test -f "$f"; then
24197 # Build tree
24198 echo "$f"
24199 elif test -f "$srcdir/$f"; then
24200 # Source tree
24201 echo "$srcdir/$f"
24202 else
24203 # /dev/null tree
24204 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24205echo "$as_me: error: cannot find input file: $f" >&2;}
24206 { (exit 1); exit 1; }; }
24207 fi;;
24208 esac
24209 done` || { (exit 1); exit 1; }
4e8d927d 24210_ACEOF
bec39cab
AC
24211cat >>$CONFIG_STATUS <<_ACEOF
24212 sed "$ac_vpsub
24213$extrasub
24214_ACEOF
24215cat >>$CONFIG_STATUS <<\_ACEOF
24216:t
24217/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
24218s,@configure_input@,$configure_input,;t t
24219s,@srcdir@,$ac_srcdir,;t t
24220s,@abs_srcdir@,$ac_abs_srcdir,;t t
24221s,@top_srcdir@,$ac_top_srcdir,;t t
24222s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24223s,@builddir@,$ac_builddir,;t t
24224s,@abs_builddir@,$ac_abs_builddir,;t t
24225s,@top_builddir@,$ac_top_builddir,;t t
24226s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24227s,@INSTALL@,$ac_INSTALL,;t t
24228" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24229 rm -f $tmp/stdin
24230 if test x"$ac_file" != x-; then
24231 mv $tmp/out $ac_file
24232 else
24233 cat $tmp/out
24234 rm -f $tmp/out
24235 fi
24236
24237done
24238_ACEOF
24239cat >>$CONFIG_STATUS <<\_ACEOF
24240
24241#
24242# CONFIG_HEADER section.
24243#
24244
24245# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24246# NAME is the cpp macro being defined and VALUE is the value it is being given.
24247#
24248# ac_d sets the value in "#define NAME VALUE" lines.
24249ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24250ac_dB='[ ].*$,\1#\2'
24251ac_dC=' '
24252ac_dD=',;t'
24253# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24254ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24255ac_uB='$,\1#\2define\3'
24256ac_uC=' '
24257ac_uD=',;t'
24258
24259for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 24261 case $ac_file in
b4e70030
JB
24262 - | *:- | *:-:* ) # input from stdin
24263 cat >$tmp/stdin
24264 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24266 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24268 * ) ac_file_in=$ac_file.in ;;
c906108c 24269 esac
b4e70030
JB
24270
24271 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24272echo "$as_me: creating $ac_file" >&6;}
24273
24274 # First look for the input files in the build tree, otherwise in the
24275 # src tree.
24276 ac_file_inputs=`IFS=:
24277 for f in $ac_file_in; do
24278 case $f in
24279 -) echo $tmp/stdin ;;
24280 [\\/$]*)
24281 # Absolute (can't be DOS-style, as IFS=:)
24282 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24283echo "$as_me: error: cannot find input file: $f" >&2;}
24284 { (exit 1); exit 1; }; }
24285 # Do quote $f, to prevent DOS paths from being IFS'd.
24286 echo "$f";;
24287 *) # Relative
24288 if test -f "$f"; then
24289 # Build tree
24290 echo "$f"
24291 elif test -f "$srcdir/$f"; then
24292 # Source tree
24293 echo "$srcdir/$f"
24294 else
24295 # /dev/null tree
24296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24297echo "$as_me: error: cannot find input file: $f" >&2;}
24298 { (exit 1); exit 1; }; }
24299 fi;;
24300 esac
24301 done` || { (exit 1); exit 1; }
24302 # Remove the trailing spaces.
24303 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24304
24305_ACEOF
24306
24307# Transform confdefs.h into two sed scripts, `conftest.defines' and
24308# `conftest.undefs', that substitutes the proper values into
24309# config.h.in to produce config.h. The first handles `#define'
24310# templates, and the second `#undef' templates.
24311# And first: Protect against being on the right side of a sed subst in
24312# config.status. Protect against being in an unquoted here document
24313# in config.status.
24314rm -f conftest.defines conftest.undefs
24315# Using a here document instead of a string reduces the quoting nightmare.
24316# Putting comments in sed scripts is not portable.
24317#
24318# `end' is used to avoid that the second main sed command (meant for
24319# 0-ary CPP macros) applies to n-ary macro definitions.
24320# See the Autoconf documentation for `clear'.
24321cat >confdef2sed.sed <<\_ACEOF
24322s/[\\&,]/\\&/g
24323s,[\\$`],\\&,g
24324t clear
24325: clear
24326s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24327t end
24328s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24329: end
24330_ACEOF
24331# If some macros were called several times there might be several times
24332# the same #defines, which is useless. Nevertheless, we may not want to
24333# sort them, since we want the *last* AC-DEFINE to be honored.
24334uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24335sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24336rm -f confdef2sed.sed
24337
24338# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
24339# example, in the case of _POSIX_SOURCE, which is predefined and required
24340# on some systems where configure will not decide to define it.
b4e70030
JB
24341cat >>conftest.undefs <<\_ACEOF
24342s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24343_ACEOF
24344
24345# Break up conftest.defines because some shells have a limit on the size
24346# of here documents, and old seds have small limits too (100 cmds).
24347echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24348echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24349echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24350echo ' :' >>$CONFIG_STATUS
24351rm -f conftest.tail
24352while grep . conftest.defines >/dev/null
bec39cab 24353do
b4e70030
JB
24354 # Write a limited-size here document to $tmp/defines.sed.
24355 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24356 # Speed up: don't consider the non `#define' lines.
24357 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24358 # Work around the forget-to-reset-the-flag bug.
24359 echo 't clr' >>$CONFIG_STATUS
24360 echo ': clr' >>$CONFIG_STATUS
24361 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 24362 echo 'CEOF
b4e70030
JB
24363 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24364 rm -f $tmp/in
24365 mv $tmp/out $tmp/in
24366' >>$CONFIG_STATUS
24367 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
24368 rm -f conftest.defines
24369 mv conftest.tail conftest.defines
24370done
b4e70030
JB
24371rm -f conftest.defines
24372echo ' fi # grep' >>$CONFIG_STATUS
24373echo >>$CONFIG_STATUS
24374
24375# Break up conftest.undefs because some shells have a limit on the size
24376# of here documents, and old seds have small limits too (100 cmds).
24377echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24378rm -f conftest.tail
24379while grep . conftest.undefs >/dev/null
24380do
24381 # Write a limited-size here document to $tmp/undefs.sed.
24382 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24383 # Speed up: don't consider the non `#undef'
24384 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24385 # Work around the forget-to-reset-the-flag bug.
24386 echo 't clr' >>$CONFIG_STATUS
24387 echo ': clr' >>$CONFIG_STATUS
24388 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24389 echo 'CEOF
24390 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24391 rm -f $tmp/in
24392 mv $tmp/out $tmp/in
24393' >>$CONFIG_STATUS
24394 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24395 rm -f conftest.undefs
24396 mv conftest.tail conftest.undefs
24397done
24398rm -f conftest.undefs
bec39cab
AC
24399
24400cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
24401 # Let's still pretend it is `configure' which instantiates (i.e., don't
24402 # use $as_me), people would be surprised to read:
24403 # /* config.h. Generated by config.status. */
24404 if test x"$ac_file" = x-; then
24405 echo "/* Generated by configure. */" >$tmp/config.h
24406 else
24407 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24408 fi
24409 cat $tmp/in >>$tmp/config.h
24410 rm -f $tmp/in
bec39cab 24411 if test x"$ac_file" != x-; then
b4e70030 24412 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
24413 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24414echo "$as_me: $ac_file is unchanged" >&6;}
24415 else
b4e70030
JB
24416 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24417$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24418 X"$ac_file" : 'X\(//\)[^/]' \| \
24419 X"$ac_file" : 'X\(//\)$' \| \
24420 X"$ac_file" : 'X\(/\)' \| \
24421 . : '\(.\)' 2>/dev/null ||
24422echo X"$ac_file" |
24423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24425 /^X\(\/\/\)$/{ s//\1/; q; }
24426 /^X\(\/\).*/{ s//\1/; q; }
24427 s/.*/./; q'`
24428 { if $as_mkdir_p; then
24429 mkdir -p "$ac_dir"
24430 else
24431 as_dir="$ac_dir"
24432 as_dirs=
24433 while test ! -d "$as_dir"; do
24434 as_dirs="$as_dir $as_dirs"
24435 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24436$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24437 X"$as_dir" : 'X\(//\)[^/]' \| \
24438 X"$as_dir" : 'X\(//\)$' \| \
24439 X"$as_dir" : 'X\(/\)' \| \
24440 . : '\(.\)' 2>/dev/null ||
24441echo X"$as_dir" |
24442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24444 /^X\(\/\/\)$/{ s//\1/; q; }
24445 /^X\(\/\).*/{ s//\1/; q; }
24446 s/.*/./; q'`
24447 done
24448 test ! -n "$as_dirs" || mkdir $as_dirs
24449 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24450echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24451 { (exit 1); exit 1; }; }; }
24452
bec39cab 24453 rm -f $ac_file
b4e70030 24454 mv $tmp/config.h $ac_file
bec39cab
AC
24455 fi
24456 else
b4e70030
JB
24457 cat $tmp/config.h
24458 rm -f $tmp/config.h
bec39cab 24459 fi
b4e70030
JB
24460done
24461_ACEOF
24462cat >>$CONFIG_STATUS <<\_ACEOF
24463
24464#
24465# CONFIG_LINKS section.
24466#
24467
24468for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24469 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24470 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 24471
b4e70030
JB
24472 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24473echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
24474
24475 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
24476 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24477echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24478 { (exit 1); exit 1; }; }
c906108c 24479 fi
b4e70030
JB
24480 rm -f $ac_dest
24481
24482 # Make relative symlinks.
24483 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24484$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24485 X"$ac_dest" : 'X\(//\)[^/]' \| \
24486 X"$ac_dest" : 'X\(//\)$' \| \
24487 X"$ac_dest" : 'X\(/\)' \| \
24488 . : '\(.\)' 2>/dev/null ||
24489echo X"$ac_dest" |
24490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24492 /^X\(\/\/\)$/{ s//\1/; q; }
24493 /^X\(\/\).*/{ s//\1/; q; }
24494 s/.*/./; q'`
24495 { if $as_mkdir_p; then
24496 mkdir -p "$ac_dest_dir"
24497 else
24498 as_dir="$ac_dest_dir"
24499 as_dirs=
24500 while test ! -d "$as_dir"; do
24501 as_dirs="$as_dir $as_dirs"
24502 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24503$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24504 X"$as_dir" : 'X\(//\)[^/]' \| \
24505 X"$as_dir" : 'X\(//\)$' \| \
24506 X"$as_dir" : 'X\(/\)' \| \
24507 . : '\(.\)' 2>/dev/null ||
24508echo X"$as_dir" |
24509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24511 /^X\(\/\/\)$/{ s//\1/; q; }
24512 /^X\(\/\).*/{ s//\1/; q; }
24513 s/.*/./; q'`
24514 done
24515 test ! -n "$as_dirs" || mkdir $as_dirs
24516 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24517echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24518 { (exit 1); exit 1; }; }; }
24519
24520 ac_builddir=.
24521
24522if test "$ac_dest_dir" != .; then
24523 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24524 # A "../" for each directory in $ac_dir_suffix.
24525 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24526else
24527 ac_dir_suffix= ac_top_builddir=
24528fi
24529
24530case $srcdir in
24531 .) # No --srcdir option. We are building in place.
24532 ac_srcdir=.
24533 if test -z "$ac_top_builddir"; then
24534 ac_top_srcdir=.
24535 else
24536 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24537 fi ;;
24538 [\\/]* | ?:[\\/]* ) # Absolute path.
24539 ac_srcdir=$srcdir$ac_dir_suffix;
24540 ac_top_srcdir=$srcdir ;;
24541 *) # Relative path.
24542 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24543 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24544esac
24545
24546# Do not use `cd foo && pwd` to compute absolute paths, because
24547# the directories may not exist.
24548case `pwd` in
24549.) ac_abs_builddir="$ac_dest_dir";;
24550*)
24551 case "$ac_dest_dir" in
24552 .) ac_abs_builddir=`pwd`;;
24553 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24554 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24555 esac;;
24556esac
24557case $ac_abs_builddir in
24558.) ac_abs_top_builddir=${ac_top_builddir}.;;
24559*)
24560 case ${ac_top_builddir}. in
24561 .) ac_abs_top_builddir=$ac_abs_builddir;;
24562 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24563 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24564 esac;;
24565esac
24566case $ac_abs_builddir in
24567.) ac_abs_srcdir=$ac_srcdir;;
24568*)
24569 case $ac_srcdir in
24570 .) ac_abs_srcdir=$ac_abs_builddir;;
24571 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24572 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24573 esac;;
24574esac
24575case $ac_abs_builddir in
24576.) ac_abs_top_srcdir=$ac_top_srcdir;;
24577*)
24578 case $ac_top_srcdir in
24579 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24580 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24581 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24582 esac;;
24583esac
24584
bec39cab
AC
24585
24586 case $srcdir in
24587 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 24588 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 24589 esac
b4e70030
JB
24590
24591 # Try a symlink, then a hard link, then a copy.
24592 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24593 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24594 cp -p $srcdir/$ac_source $ac_dest ||
24595 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24596echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 24597 { (exit 1); exit 1; }; }
b4e70030
JB
24598done
24599_ACEOF
24600cat >>$CONFIG_STATUS <<\_ACEOF
24601
24602#
24603# CONFIG_COMMANDS section.
24604#
24605for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24606 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24607 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24608 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24609$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24610 X"$ac_dest" : 'X\(//\)[^/]' \| \
24611 X"$ac_dest" : 'X\(//\)$' \| \
24612 X"$ac_dest" : 'X\(/\)' \| \
24613 . : '\(.\)' 2>/dev/null ||
24614echo X"$ac_dest" |
24615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24617 /^X\(\/\/\)$/{ s//\1/; q; }
24618 /^X\(\/\).*/{ s//\1/; q; }
24619 s/.*/./; q'`
24620 { if $as_mkdir_p; then
24621 mkdir -p "$ac_dir"
24622 else
24623 as_dir="$ac_dir"
24624 as_dirs=
24625 while test ! -d "$as_dir"; do
24626 as_dirs="$as_dir $as_dirs"
24627 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24628$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24629 X"$as_dir" : 'X\(//\)[^/]' \| \
24630 X"$as_dir" : 'X\(//\)$' \| \
24631 X"$as_dir" : 'X\(/\)' \| \
24632 . : '\(.\)' 2>/dev/null ||
24633echo X"$as_dir" |
24634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24636 /^X\(\/\/\)$/{ s//\1/; q; }
24637 /^X\(\/\).*/{ s//\1/; q; }
24638 s/.*/./; q'`
24639 done
24640 test ! -n "$as_dirs" || mkdir $as_dirs
24641 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24642echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24643 { (exit 1); exit 1; }; }; }
24644
24645 ac_builddir=.
24646
24647if test "$ac_dir" != .; then
24648 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24649 # A "../" for each directory in $ac_dir_suffix.
24650 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24651else
24652 ac_dir_suffix= ac_top_builddir=
24653fi
24654
24655case $srcdir in
24656 .) # No --srcdir option. We are building in place.
24657 ac_srcdir=.
24658 if test -z "$ac_top_builddir"; then
24659 ac_top_srcdir=.
24660 else
24661 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24662 fi ;;
24663 [\\/]* | ?:[\\/]* ) # Absolute path.
24664 ac_srcdir=$srcdir$ac_dir_suffix;
24665 ac_top_srcdir=$srcdir ;;
24666 *) # Relative path.
24667 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24668 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24669esac
24670
24671# Do not use `cd foo && pwd` to compute absolute paths, because
24672# the directories may not exist.
24673case `pwd` in
24674.) ac_abs_builddir="$ac_dir";;
24675*)
24676 case "$ac_dir" in
24677 .) ac_abs_builddir=`pwd`;;
24678 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24679 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24680 esac;;
24681esac
24682case $ac_abs_builddir in
24683.) ac_abs_top_builddir=${ac_top_builddir}.;;
24684*)
24685 case ${ac_top_builddir}. in
24686 .) ac_abs_top_builddir=$ac_abs_builddir;;
24687 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24688 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24689 esac;;
24690esac
24691case $ac_abs_builddir in
24692.) ac_abs_srcdir=$ac_srcdir;;
24693*)
24694 case $ac_srcdir in
24695 .) ac_abs_srcdir=$ac_abs_builddir;;
24696 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24697 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24698 esac;;
24699esac
24700case $ac_abs_builddir in
24701.) ac_abs_top_srcdir=$ac_top_srcdir;;
24702*)
24703 case $ac_top_srcdir in
24704 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24705 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24706 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24707 esac;;
24708esac
bec39cab 24709
bec39cab 24710
b4e70030
JB
24711 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24712echo "$as_me: executing $ac_dest commands" >&6;}
24713 case $ac_dest in
24714 gdb_stdint.h )
4e8d927d
DJ
24715if test "$GCC" = yes; then
24716 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24717else
24718 echo "/* generated for $CC */" > tmp-stdint.h
24719fi
24720
24721sed 's/^ *//' >> tmp-stdint.h <<EOF
24722
24723 #ifndef GCC_GENERATED_STDINT_H
24724 #define GCC_GENERATED_STDINT_H 1
24725
24726 #include <sys/types.h>
24727EOF
24728
24729if test "$acx_cv_header_stdint" != stdint.h; then
24730 echo "#include <stddef.h>" >> tmp-stdint.h
24731fi
24732if test "$acx_cv_header_stdint" != stddef.h; then
24733 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24734fi
24735
24736sed 's/^ *//' >> tmp-stdint.h <<EOF
24737 /* glibc uses these symbols as guards to prevent redefinitions. */
24738 #ifdef __int8_t_defined
24739 #define _INT8_T
24740 #define _INT16_T
24741 #define _INT32_T
24742 #endif
24743 #ifdef __uint32_t_defined
24744 #define _UINT32_T
24745 #endif
24746
24747EOF
24748
24749# ----------------- done header, emit basic int types -------------
24750if test "$acx_cv_header_stdint" = stddef.h; then
24751 sed 's/^ *//' >> tmp-stdint.h <<EOF
24752
24753 #ifndef _UINT8_T
24754 #define _UINT8_T
24755 typedef unsigned $acx_cv_type_int8_t uint8_t;
24756 #endif
24757
24758 #ifndef _UINT16_T
24759 #define _UINT16_T
24760 typedef unsigned $acx_cv_type_int16_t uint16_t;
24761 #endif
24762
24763 #ifndef _UINT32_T
24764 #define _UINT32_T
24765 typedef unsigned $acx_cv_type_int32_t uint32_t;
24766 #endif
24767
24768 #ifndef _INT8_T
24769 #define _INT8_T
24770 typedef $acx_cv_type_int8_t int8_t;
24771 #endif
24772
24773 #ifndef _INT16_T
24774 #define _INT16_T
24775 typedef $acx_cv_type_int16_t int16_t;
24776 #endif
24777
24778 #ifndef _INT32_T
24779 #define _INT32_T
24780 typedef $acx_cv_type_int32_t int32_t;
24781 #endif
24782EOF
24783elif test "$ac_cv_type_u_int32_t" = yes; then
24784 sed 's/^ *//' >> tmp-stdint.h <<EOF
24785
24786 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24787 #ifndef _INT8_T
24788 #define _INT8_T
24789 #endif
24790 #ifndef _INT16_T
24791 #define _INT16_T
24792 #endif
24793 #ifndef _INT32_T
24794 #define _INT32_T
24795 #endif
24796
24797 #ifndef _UINT8_T
24798 #define _UINT8_T
24799 typedef u_int8_t uint8_t;
24800 #endif
24801
24802 #ifndef _UINT16_T
24803 #define _UINT16_T
24804 typedef u_int16_t uint16_t;
24805 #endif
24806
24807 #ifndef _UINT32_T
24808 #define _UINT32_T
24809 typedef u_int32_t uint32_t;
24810 #endif
24811EOF
24812else
24813 sed 's/^ *//' >> tmp-stdint.h <<EOF
24814
24815 /* Some systems have guard macros to prevent redefinitions, define them. */
24816 #ifndef _INT8_T
24817 #define _INT8_T
24818 #endif
24819 #ifndef _INT16_T
24820 #define _INT16_T
24821 #endif
24822 #ifndef _INT32_T
24823 #define _INT32_T
24824 #endif
24825 #ifndef _UINT8_T
24826 #define _UINT8_T
24827 #endif
24828 #ifndef _UINT16_T
24829 #define _UINT16_T
24830 #endif
24831 #ifndef _UINT32_T
24832 #define _UINT32_T
24833 #endif
24834EOF
24835fi
24836
24837# ------------- done basic int types, emit int64_t types ------------
24838if test "$ac_cv_type_uint64_t" = yes; then
24839 sed 's/^ *//' >> tmp-stdint.h <<EOF
24840
24841 /* system headers have good uint64_t and int64_t */
24842 #ifndef _INT64_T
24843 #define _INT64_T
24844 #endif
24845 #ifndef _UINT64_T
24846 #define _UINT64_T
24847 #endif
24848EOF
24849elif test "$ac_cv_type_u_int64_t" = yes; then
24850 sed 's/^ *//' >> tmp-stdint.h <<EOF
24851
24852 /* system headers have an u_int64_t (and int64_t) */
24853 #ifndef _INT64_T
24854 #define _INT64_T
24855 #endif
24856 #ifndef _UINT64_T
24857 #define _UINT64_T
24858 typedef u_int64_t uint64_t;
24859 #endif
24860EOF
24861elif test -n "$acx_cv_type_int64_t"; then
24862 sed 's/^ *//' >> tmp-stdint.h <<EOF
24863
24864 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24865 #ifndef _INT64_T
24866 #define _INT64_T
24867 typedef $acx_cv_type_int64_t int64_t;
24868 #endif
24869 #ifndef _UINT64_T
24870 #define _UINT64_T
24871 typedef unsigned $acx_cv_type_int64_t uint64_t;
24872 #endif
24873EOF
24874else
24875 sed 's/^ *//' >> tmp-stdint.h <<EOF
24876
24877 /* some common heuristics for int64_t, using compiler-specific tests */
24878 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24879 #ifndef _INT64_T
24880 #define _INT64_T
24881 typedef long long int64_t;
24882 #endif
24883 #ifndef _UINT64_T
24884 #define _UINT64_T
24885 typedef unsigned long long uint64_t;
24886 #endif
24887
24888 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24889 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24890 does not implement __extension__. But that compiler doesn't define
24891 __GNUC_MINOR__. */
24892 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24893 # define __extension__
24894 # endif
24895
24896 # ifndef _INT64_T
24897 # define _INT64_T
24898 __extension__ typedef long long int64_t;
24899 # endif
24900 # ifndef _UINT64_T
24901 # define _UINT64_T
24902 __extension__ typedef unsigned long long uint64_t;
24903 # endif
24904
24905 #elif !defined __STRICT_ANSI__
24906 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24907
24908 # ifndef _INT64_T
24909 # define _INT64_T
24910 typedef __int64 int64_t;
24911 # endif
24912 # ifndef _UINT64_T
24913 # define _UINT64_T
24914 typedef unsigned __int64 uint64_t;
24915 # endif
24916 # endif /* compiler */
24917
24918 #endif /* ANSI version */
24919EOF
24920fi
24921
24922# ------------- done int64_t types, emit intptr types ------------
24923if test "$ac_cv_type_uintptr_t" != yes; then
24924 sed 's/^ *//' >> tmp-stdint.h <<EOF
24925
24926 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24927 typedef u$acx_cv_type_intptr_t uintptr_t;
24928 typedef $acx_cv_type_intptr_t intptr_t;
24929EOF
24930fi
24931
24932# ------------- done intptr types, emit int_least types ------------
24933if test "$ac_cv_type_int_least32_t" != yes; then
24934 sed 's/^ *//' >> tmp-stdint.h <<EOF
24935
24936 /* Define int_least types */
24937 typedef int8_t int_least8_t;
24938 typedef int16_t int_least16_t;
24939 typedef int32_t int_least32_t;
24940 #ifdef _INT64_T
24941 typedef int64_t int_least64_t;
24942 #endif
24943
24944 typedef uint8_t uint_least8_t;
24945 typedef uint16_t uint_least16_t;
24946 typedef uint32_t uint_least32_t;
24947 #ifdef _UINT64_T
24948 typedef uint64_t uint_least64_t;
24949 #endif
24950EOF
24951fi
24952
24953# ------------- done intptr types, emit int_fast types ------------
24954if test "$ac_cv_type_int_fast32_t" != yes; then
24955 sed 's/^ *//' >> tmp-stdint.h <<EOF
24956
24957 /* Define int_fast types. short is often slow */
24958 typedef int8_t int_fast8_t;
24959 typedef int int_fast16_t;
24960 typedef int32_t int_fast32_t;
24961 #ifdef _INT64_T
24962 typedef int64_t int_fast64_t;
24963 #endif
24964
24965 typedef uint8_t uint_fast8_t;
24966 typedef unsigned int uint_fast16_t;
24967 typedef uint32_t uint_fast32_t;
24968 #ifdef _UINT64_T
24969 typedef uint64_t uint_fast64_t;
24970 #endif
24971EOF
24972fi
24973
24974if test "$ac_cv_type_uintmax_t" != yes; then
24975 sed 's/^ *//' >> tmp-stdint.h <<EOF
24976
24977 /* Define intmax based on what we found */
24978 #ifdef _INT64_T
24979 typedef int64_t intmax_t;
24980 #else
24981 typedef long intmax_t;
24982 #endif
24983 #ifdef _UINT64_T
24984 typedef uint64_t uintmax_t;
24985 #else
24986 typedef unsigned long uintmax_t;
24987 #endif
24988EOF
24989fi
24990
24991sed 's/^ *//' >> tmp-stdint.h <<EOF
24992
24993 #endif /* GCC_GENERATED_STDINT_H */
24994EOF
24995
24996if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
24997 rm -f tmp-stdint.h
24998else
24999 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
25000fi
25001
4e8d927d 25002 ;;
b4e70030 25003 default )
c906108c 25004
2c0fc042 25005sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
25006/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
25007/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25008mv -f Makefile.tmp Makefile
25009
2acceee2 25010
c906108c
SS
25011case x$CONFIG_HEADERS in
25012xconfig.h:config.in)
25013echo > stamp-h ;;
25014esac
bec39cab
AC
25015 ;;
25016 esac
b4e70030
JB
25017done
25018_ACEOF
c906108c 25019
b4e70030 25020cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25021
25022{ (exit 0); exit 0; }
25023_ACEOF
c906108c 25024chmod +x $CONFIG_STATUS
bec39cab
AC
25025ac_clean_files=$ac_clean_files_save
25026
25027
25028# configure is writing to config.log, and then calls config.status.
25029# config.status does its own redirection, appending to config.log.
25030# Unfortunately, on DOS this fails, as config.log is still kept open
25031# by configure, so config.status won't be able to write to it; its
25032# output is simply discarded. So we exec the FD to /dev/null,
25033# effectively closing config.log, so it can be properly (re)opened and
25034# appended to by config.status. When coming back to configure, we
25035# need to make the FD available again.
25036if test "$no_create" != yes; then
25037 ac_cs_success=:
25038 ac_config_status_args=
25039 test "$silent" = yes &&
25040 ac_config_status_args="$ac_config_status_args --quiet"
25041 exec 5>/dev/null
25042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25043 exec 5>>config.log
25044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25045 # would make configure fail if this is the last instruction.
25046 $ac_cs_success || { (exit 1); exit 1; }
25047fi
c906108c 25048
bec39cab
AC
25049#
25050# CONFIG_SUBDIRS section.
25051#
c906108c
SS
25052if test "$no_recursion" != yes; then
25053
25054 # Remove --cache-file and --srcdir arguments so they do not pile up.
25055 ac_sub_configure_args=
25056 ac_prev=
b4e70030 25057 for ac_arg in $ac_configure_args; do
c906108c
SS
25058 if test -n "$ac_prev"; then
25059 ac_prev=
25060 continue
25061 fi
bec39cab 25062 case $ac_arg in
c906108c
SS
25063 -cache-file | --cache-file | --cache-fil | --cache-fi \
25064 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25065 ac_prev=cache_file ;;
25066 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
25067 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25068 | --c=*)
25069 ;;
25070 --config-cache | -C)
c906108c
SS
25071 ;;
25072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25073 ac_prev=srcdir ;;
25074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25075 ;;
bec39cab
AC
25076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25077 ac_prev=prefix ;;
25078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25079 ;;
b4e70030 25080 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
25081 esac
25082 done
25083
bec39cab
AC
25084 # Always prepend --prefix to ensure using the same prefix
25085 # in subdir configurations.
25086 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25087
b4e70030 25088 ac_popdir=`pwd`
bec39cab 25089 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
25090
25091 # Do not complain, so a configure script can configure whichever
25092 # parts of a large source tree are present.
bec39cab 25093 test -d $srcdir/$ac_dir || continue
c906108c 25094
b4e70030
JB
25095 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25096echo "$as_me: configuring in $ac_dir" >&6;}
25097 { if $as_mkdir_p; then
25098 mkdir -p "$ac_dir"
25099 else
25100 as_dir="$ac_dir"
bec39cab 25101 as_dirs=
b4e70030
JB
25102 while test ! -d "$as_dir"; do
25103 as_dirs="$as_dir $as_dirs"
25104 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25105$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25106 X"$as_dir" : 'X\(//\)[^/]' \| \
25107 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25108 X"$as_dir" : 'X\(/\)' \| \
25109 . : '\(.\)' 2>/dev/null ||
bec39cab 25110echo X"$as_dir" |
b4e70030
JB
25111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25113 /^X\(\/\/\)$/{ s//\1/; q; }
25114 /^X\(\/\).*/{ s//\1/; q; }
25115 s/.*/./; q'`
bec39cab 25116 done
b4e70030
JB
25117 test ! -n "$as_dirs" || mkdir $as_dirs
25118 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25119echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25120 { (exit 1); exit 1; }; }; }
b4e70030 25121
bec39cab
AC
25122 ac_builddir=.
25123
b4e70030 25124if test "$ac_dir" != .; then
bec39cab 25125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25126 # A "../" for each directory in $ac_dir_suffix.
25127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25128else
25129 ac_dir_suffix= ac_top_builddir=
25130fi
bec39cab
AC
25131
25132case $srcdir in
b4e70030 25133 .) # No --srcdir option. We are building in place.
bec39cab 25134 ac_srcdir=.
b4e70030
JB
25135 if test -z "$ac_top_builddir"; then
25136 ac_top_srcdir=.
25137 else
25138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25139 fi ;;
25140 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25141 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25142 ac_top_srcdir=$srcdir ;;
25143 *) # Relative path.
25144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25146esac
25147
25148# Do not use `cd foo && pwd` to compute absolute paths, because
25149# the directories may not exist.
25150case `pwd` in
25151.) ac_abs_builddir="$ac_dir";;
25152*)
25153 case "$ac_dir" in
25154 .) ac_abs_builddir=`pwd`;;
25155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25157 esac;;
25158esac
25159case $ac_abs_builddir in
25160.) ac_abs_top_builddir=${ac_top_builddir}.;;
25161*)
25162 case ${ac_top_builddir}. in
25163 .) ac_abs_top_builddir=$ac_abs_builddir;;
25164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25166 esac;;
25167esac
25168case $ac_abs_builddir in
25169.) ac_abs_srcdir=$ac_srcdir;;
25170*)
25171 case $ac_srcdir in
25172 .) ac_abs_srcdir=$ac_abs_builddir;;
25173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25175 esac;;
25176esac
25177case $ac_abs_builddir in
25178.) ac_abs_top_srcdir=$ac_top_srcdir;;
25179*)
25180 case $ac_top_srcdir in
25181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25184 esac;;
bec39cab 25185esac
c906108c 25186
c906108c 25187
b4e70030 25188 cd $ac_dir
c906108c
SS
25189
25190 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
25191 if test -f $ac_srcdir/configure.gnu; then
25192 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25193 elif test -f $ac_srcdir/configure; then
25194 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25195 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
25196 ac_sub_configure=$ac_configure
25197 else
bec39cab
AC
25198 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25199echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
25200 ac_sub_configure=
25201 fi
25202
25203 # The recursion is here.
25204 if test -n "$ac_sub_configure"; then
c906108c 25205 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
25206 case $cache_file in
25207 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
25208 *) # Relative path.
25209 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 25210 esac
c906108c 25211
bec39cab
AC
25212 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25213echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 25214 # The eval makes quoting arguments work.
b4e70030
JB
25215 eval $ac_sub_configure $ac_sub_configure_args \
25216 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
25217 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25218echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25219 { (exit 1); exit 1; }; }
c906108c
SS
25220 fi
25221
b4e70030 25222 cd $ac_popdir
c906108c
SS
25223 done
25224fi
25225
25226
25227exit 0
This page took 1.953244 seconds and 4 git commands to generate.