* aix5ppc-core.c: Define macros for the default architecture and
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
b4e70030 3# Generated by GNU Autoconf 2.59.
c906108c 4#
b4e70030 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
bec39cab
AC
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 33$as_unset ENV MAIL MAILPATH
bec39cab
AC
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
b4e70030 47 $as_unset $as_var
bec39cab
AC
48 fi
49done
50
51# Required to use basename.
b4e70030 52if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
53 as_expr=expr
54else
55 as_expr=false
56fi
57
b4e70030 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
b4e70030 66as_me=`$as_basename "$0" ||
bec39cab
AC
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
bec39cab 71echo X/"$0" |
b4e70030
JB
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
bec39cab 76
4e8d927d 77
b4e70030
JB
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
4e8d927d 85
b4e70030
JB
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
4e8d927d
DJ
97fi
98
4e8d927d 99
b4e70030
JB
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
4e8d927d 116
b4e70030
JB
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
bec39cab 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4e70030 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab
AC
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
b4e70030
JB
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
bec39cab 137 /*)
b4e70030 138 if ("$as_dir/$as_base" -c '
4e8d927d
DJ
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
b4e70030 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4e8d927d 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
bec39cab
AC
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
bec39cab 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
bec39cab
AC
165 sed '
166 N
b4e70030
JB
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 170 t loop
b4e70030
JB
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
bec39cab 173 ' >$as_me.lineno &&
b4e70030 174 chmod +x $as_me.lineno ||
bec39cab
AC
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
bec39cab
AC
182 # Exit status is that of the last command.
183 exit
184}
185
186
b4e70030
JB
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
192esac
193
b4e70030 194if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
bec39cab 207 as_ln_s='cp -p'
b4e70030
JB
208 else
209 as_ln_s='ln -s'
210 fi
bec39cab
AC
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
b4e70030 216rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
b4e70030 225as_executable_p="test -f"
bec39cab
AC
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
b4e70030
JB
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
bec39cab 242
c906108c 243
bec39cab
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
b4e70030
JB
249exec 6>&1
250
bec39cab
AC
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
b4e70030
JB
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
bec39cab
AC
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
b4e70030
JB
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
bec39cab
AC
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
783e057b
DJ
312gl_header_list=
313ac_subdirs_all="$ac_subdirs_all doc testsuite"
b4e70030
JB
314ac_subdirs_all="$ac_subdirs_all gdbtk"
315ac_subdirs_all="$ac_subdirs_all multi-ice"
316ac_subdirs_all="$ac_subdirs_all gdbserver"
783e057b 317ac_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 RANLIB ac_ct_RANLIB 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 GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
a4ce5b0d 318ac_subst_files='host_makefile_frag'
c906108c
SS
319
320# Initialize some variables set by options.
bec39cab
AC
321ac_init_help=
322ac_init_version=false
c906108c
SS
323# The variables have the same names as the options, with
324# dashes changed to underlines.
bec39cab 325cache_file=/dev/null
c906108c 326exec_prefix=NONE
c906108c 327no_create=
c906108c
SS
328no_recursion=
329prefix=NONE
330program_prefix=NONE
331program_suffix=NONE
332program_transform_name=s,x,x,
333silent=
334site=
335srcdir=
c906108c
SS
336verbose=
337x_includes=NONE
338x_libraries=NONE
bec39cab
AC
339
340# Installation directory options.
341# These are left unexpanded so users can "make install exec_prefix=/foo"
342# and all the variables that are supposed to be based on exec_prefix
343# by default will actually change.
344# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
345bindir='${exec_prefix}/bin'
346sbindir='${exec_prefix}/sbin'
347libexecdir='${exec_prefix}/libexec'
b4e70030 348datadir='${prefix}/share'
c906108c
SS
349sysconfdir='${prefix}/etc'
350sharedstatedir='${prefix}/com'
351localstatedir='${prefix}/var'
b4e70030 352libdir='${exec_prefix}/lib'
c906108c
SS
353includedir='${prefix}/include'
354oldincludedir='/usr/include'
b4e70030
JB
355infodir='${prefix}/info'
356mandir='${prefix}/man'
c906108c 357
c906108c
SS
358ac_prev=
359for ac_option
360do
c906108c
SS
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
b4e70030 363 eval "$ac_prev=\$ac_option"
c906108c
SS
364 ac_prev=
365 continue
366 fi
367
b4e70030 368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
b4e70030 372 case $ac_option in
c906108c
SS
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 377 bindir=$ac_optarg ;;
c906108c
SS
378
379 -build | --build | --buil | --bui | --bu)
bec39cab 380 ac_prev=build_alias ;;
c906108c 381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 382 build_alias=$ac_optarg ;;
c906108c
SS
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
c906108c 393
b4e70030 394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 395 ac_prev=datadir ;;
b4e70030
JB
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
bec39cab 398 datadir=$ac_optarg ;;
c906108c
SS
399
400 -disable-* | --disable-*)
bec39cab 401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 402 # Reject names that are not valid shell variable names.
bec39cab
AC
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030 407 eval "enable_$ac_feature=no" ;;
c906108c
SS
408
409 -enable-* | --enable-*)
bec39cab 410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 411 # Reject names that are not valid shell variable names.
bec39cab
AC
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030
JB
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 *) ac_optarg=yes ;;
419 esac
420 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
bec39cab 429 exec_prefix=$ac_optarg ;;
c906108c
SS
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
bec39cab
AC
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
c906108c
SS
441
442 -host | --host | --hos | --ho)
bec39cab 443 ac_prev=host_alias ;;
c906108c 444 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 445 host_alias=$ac_optarg ;;
c906108c
SS
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 452 includedir=$ac_optarg ;;
c906108c
SS
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 457 infodir=$ac_optarg ;;
c906108c
SS
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 462 libdir=$ac_optarg ;;
c906108c
SS
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
bec39cab 469 libexecdir=$ac_optarg ;;
c906108c
SS
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 478 localstatedir=$ac_optarg ;;
c906108c
SS
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 483 mandir=$ac_optarg ;;
c906108c
SS
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 490 | --no-cr | --no-c | -n)
c906108c
SS
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 504 oldincludedir=$ac_optarg ;;
c906108c
SS
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 509 prefix=$ac_optarg ;;
c906108c
SS
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 516 program_prefix=$ac_optarg ;;
c906108c
SS
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 523 program_suffix=$ac_optarg ;;
c906108c
SS
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 540 program_transform_name=$ac_optarg ;;
c906108c
SS
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
bec39cab 550 sbindir=$ac_optarg ;;
c906108c
SS
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
bec39cab 561 sharedstatedir=$ac_optarg ;;
c906108c
SS
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
bec39cab 566 site=$ac_optarg ;;
3ace7edb 567
c906108c
SS
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 571 srcdir=$ac_optarg ;;
c906108c
SS
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 578 sysconfdir=$ac_optarg ;;
c906108c
SS
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 581 ac_prev=target_alias ;;
c906108c 582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 583 target_alias=$ac_optarg ;;
c906108c
SS
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
bec39cab
AC
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
c906108c
SS
590
591 -with-* | --with-*)
bec39cab 592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 593 # Reject names that are not valid shell variable names.
bec39cab
AC
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
c906108c 597 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 *) ac_optarg=yes ;;
601 esac
602 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
603
604 -without-* | --without-*)
bec39cab 605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 606 # Reject names that are not valid shell variable names.
bec39cab
AC
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
b4e70030 611 eval "with_$ac_package=no" ;;
c906108c
SS
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 622 x_includes=$ac_optarg ;;
c906108c
SS
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 629 x_libraries=$ac_optarg ;;
c906108c 630
bec39cab
AC
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
c906108c
SS
634 ;;
635
bec39cab
AC
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
b4e70030
JB
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
644 export $ac_envvar ;;
645
c906108c 646 *)
bec39cab
AC
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
652 ;;
653
654 esac
655done
656
657if test -n "$ac_prev"; then
bec39cab
AC
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
c906108c 661fi
c906108c 662
b4e70030
JB
663# Be sure to have absolute paths.
664for ac_var in exec_prefix prefix
c906108c 665do
b4e70030 666 eval ac_val=$`echo $ac_var`
bec39cab 667 case $ac_val in
b4e70030
JB
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672done
673
674# Be sure to have absolute paths.
675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
677do
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
c906108c
SS
683 esac
684done
685
bec39cab
AC
686# There might be people who depend on the old broken behavior: `$host'
687# used to hold the argument of --host etc.
688# FIXME: To remove some day.
689build=$build_alias
690host=$host_alias
691target=$target_alias
692
693# FIXME: To remove some day.
694if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702fi
c906108c 703
bec39cab
AC
704ac_tool_prefix=
705test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707test "$silent" = yes && exec 6>/dev/null
c906108c 708
c906108c
SS
709
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
b4e70030
JB
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
bec39cab 720echo X"$0" |
b4e70030
JB
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
c906108c 726 srcdir=$ac_confdir
b4e70030 727 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
b4e70030
JB
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
737 else
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 739 { (exit 1); exit 1; }; }
b4e70030 740 fi
c906108c 741fi
b4e70030
JB
742(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 744 { (exit 1); exit 1; }; }
b4e70030
JB
745srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746ac_env_build_alias_set=${build_alias+set}
747ac_env_build_alias_value=$build_alias
748ac_cv_env_build_alias_set=${build_alias+set}
749ac_cv_env_build_alias_value=$build_alias
750ac_env_host_alias_set=${host_alias+set}
751ac_env_host_alias_value=$host_alias
752ac_cv_env_host_alias_set=${host_alias+set}
753ac_cv_env_host_alias_value=$host_alias
754ac_env_target_alias_set=${target_alias+set}
755ac_env_target_alias_value=$target_alias
756ac_cv_env_target_alias_set=${target_alias+set}
757ac_cv_env_target_alias_value=$target_alias
758ac_env_CC_set=${CC+set}
759ac_env_CC_value=$CC
760ac_cv_env_CC_set=${CC+set}
761ac_cv_env_CC_value=$CC
762ac_env_CFLAGS_set=${CFLAGS+set}
763ac_env_CFLAGS_value=$CFLAGS
764ac_cv_env_CFLAGS_set=${CFLAGS+set}
765ac_cv_env_CFLAGS_value=$CFLAGS
766ac_env_LDFLAGS_set=${LDFLAGS+set}
767ac_env_LDFLAGS_value=$LDFLAGS
768ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769ac_cv_env_LDFLAGS_value=$LDFLAGS
770ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_env_CPPFLAGS_value=$CPPFLAGS
772ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774ac_env_CPP_set=${CPP+set}
775ac_env_CPP_value=$CPP
776ac_cv_env_CPP_set=${CPP+set}
777ac_cv_env_CPP_value=$CPP
c906108c 778
bec39cab
AC
779#
780# Report the --help message.
781#
782if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
785 cat <<_ACEOF
786\`configure' configures this package to adapt to many kinds of systems.
787
788Usage: $0 [OPTION]... [VAR=VALUE]...
789
790To assign environment variables (e.g., CC, CFLAGS...), specify them as
791VAR=VALUE. See below for descriptions of some of the useful variables.
792
793Defaults for the options are specified in brackets.
794
795Configuration:
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805
b4e70030
JB
806_ACEOF
807
808 cat <<_ACEOF
bec39cab
AC
809Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
811 [$ac_default_prefix]
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 [PREFIX]
814
815By default, \`make install' will install all the files in
816\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818for instance \`--prefix=\$HOME'.
819
820For better control, use the options below.
821
822Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
b4e70030 826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b4e70030
JB
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
835_ACEOF
836
837 cat <<\_ACEOF
838
839Program names:
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843
844X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 --target=TARGET configure for building compilers for TARGET [HOST]
852_ACEOF
853fi
854
855if test -n "$ac_init_help"; then
856
857 cat <<\_ACEOF
858
859Optional Features:
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
e28b3332
DJ
864 --disable-dependency-tracking speeds up one-time build
865 --enable-dependency-tracking do not reject slow dependency extractors
d0c678e6 866 --enable-targets alternative target configurations
c0993dbe 867 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
bec39cab
AC
868 --disable-gdbcli disable command-line interface (CLI)
869 --disable-gdbmi disable machine-interface (MI)
870 --enable-tui enable full-screen terminal user interface (TUI)
871 --enable-gdbtk enable gdbtk graphical user interface (GUI)
872 --enable-profiling enable profiling of GDB
3841debe 873 --disable-rpath do not hardcode runtime library paths
094a342e 874 --enable-werror treat compile warnings as errors
bec39cab
AC
875 --enable-build-warnings Enable build-time compiler warnings if gcc is used
876 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
877 --enable-sim Link gdb with simulator
878 --enable-multi-ice build the multi-ice-gdb-server
879
880Optional Packages:
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bec39cab
AC
883 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
884 --with-libunwind Use libunwind frame unwinding support
6a30b0a5 885 --with-system-readline use installed readline library
5c39566f 886 --with-expat include expat support (auto/yes/no)
3841debe
DJ
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
889 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
890 --without-included-regex don't use included regex; this is the default
891 on systems with version 2 of the GNU C library
892 (use with caution on other system)
893 --with-sysroot=DIR Search for usr/lib et al within DIR.
894 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
895 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
896 --with-tclinclude=DIR Directory where tcl private headers are
897 --with-tkinclude=DIR Directory where tk private headers are
898 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
899 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
900 --with-x use the X Window System
901 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
902
903Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
b4e70030
JB
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
bec39cab
AC
910 CPP C preprocessor
911
912Use these variables to override the choices made by `configure' or to help
913it to find libraries and programs with nonstandard names/locations.
914
915_ACEOF
916fi
917
918if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
b4e70030 920 ac_popdir=`pwd`
bec39cab
AC
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
924
b4e70030 925if test "$ac_dir" != .; then
bec39cab 926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929else
930 ac_dir_suffix= ac_top_builddir=
931fi
bec39cab
AC
932
933case $srcdir in
b4e70030 934 .) # No --srcdir option. We are building in place.
bec39cab 935 ac_srcdir=.
b4e70030
JB
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 942 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947esac
948
949# Do not use `cd foo && pwd` to compute absolute paths, because
950# the directories may not exist.
951case `pwd` in
952.) ac_abs_builddir="$ac_dir";;
953*)
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_top_builddir=${ac_top_builddir}.;;
962*)
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968esac
969case $ac_abs_builddir in
970.) ac_abs_srcdir=$ac_srcdir;;
971*)
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977esac
978case $ac_abs_builddir in
979.) ac_abs_top_srcdir=$ac_top_srcdir;;
980*)
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
bec39cab
AC
986esac
987
b4e70030
JB
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 990 if test -f $ac_srcdir/configure.gnu; then
b4e70030 991 echo
bec39cab
AC
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
b4e70030 994 echo
bec39cab 995 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
3ace7edb 1000 else
bec39cab 1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
1002 fi
1003 cd $ac_popdir
bec39cab
AC
1004 done
1005fi
1006
b4e70030 1007test -n "$ac_init_help" && exit 0
bec39cab
AC
1008if $ac_init_version; then
1009 cat <<\_ACEOF
1010
b4e70030 1011Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1012This configure script is free software; the Free Software Foundation
1013gives unlimited permission to copy, distribute and modify it.
1014_ACEOF
b4e70030 1015 exit 0
bec39cab 1016fi
b4e70030
JB
1017exec 5>config.log
1018cat >&5 <<_ACEOF
bec39cab
AC
1019This file contains any messages produced by compilers while
1020running configure, to aid debugging if configure makes a mistake.
1021
1022It was created by $as_me, which was
b4e70030 1023generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1024
1025 $ $0 $@
1026
1027_ACEOF
1028{
1029cat <<_ASUNAME
1030## --------- ##
1031## Platform. ##
1032## --------- ##
1033
1034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039
1040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042
1043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1046hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050
1051_ASUNAME
1052
1053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054for as_dir in $PATH
1055do
1056 IFS=$as_save_IFS
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1059done
1060
1061} >&5
1062
1063cat >&5 <<_ACEOF
1064
1065
1066## ----------- ##
1067## Core tests. ##
1068## ----------- ##
1069
1070_ACEOF
1071
1072
1073# Keep a trace of the command line.
1074# Strip out --no-create and --no-recursion so they do not pile up.
1075# Strip out --silent because we don't want to record it for future runs.
1076# Also quote any args containing shell meta-characters.
1077# Make two passes to allow for proper duplicate-argument suppression.
1078ac_configure_args=
1079ac_configure_args0=
1080ac_configure_args1=
1081ac_sep=
1082ac_must_keep_next=false
1083for ac_pass in 1 2
1084do
1085 for ac_arg
1086 do
1087 case $ac_arg in
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 continue ;;
b4e70030 1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094 esac
1095 case $ac_pass in
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 2)
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1101 else
1102 case $ac_arg in
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109 esac
1110 ;;
1111 -* ) ac_must_keep_next=true ;;
1112 esac
1113 fi
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1116 ac_sep=" "
1117 ;;
1118 esac
1119 done
1120done
1121$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123
1124# When interrupted or exit'd, cleanup temporary files, and complete
1125# config.log. We remove comments because anyway the quotes in there
1126# would cause problems or look ugly.
b4e70030
JB
1127# WARNING: Be sure not to use single quotes in there, as some shells,
1128# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1129trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1131 {
1132 echo
1133
1134 cat <<\_ASBOX
1135## ---------------- ##
1136## Cache variables. ##
1137## ---------------- ##
1138_ASBOX
1139 echo
1140 # The following way of writing the cache mishandles newlines in values,
b4e70030 1141{
bec39cab 1142 (set) 2>&1 |
b4e70030
JB
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144 *ac_space=\ *)
bec39cab 1145 sed -n \
b4e70030
JB
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148 ;;
bec39cab 1149 *)
b4e70030
JB
1150 sed -n \
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1152 ;;
b4e70030
JB
1153 esac;
1154}
bec39cab
AC
1155 echo
1156
1157 cat <<\_ASBOX
1158## ----------------- ##
1159## Output variables. ##
1160## ----------------- ##
1161_ASBOX
1162 echo
1163 for ac_var in $ac_subst_vars
1164 do
b4e70030
JB
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1167 done | sort
1168 echo
1169
1170 if test -n "$ac_subst_files"; then
1171 cat <<\_ASBOX
b4e70030
JB
1172## ------------- ##
1173## Output files. ##
1174## ------------- ##
bec39cab
AC
1175_ASBOX
1176 echo
1177 for ac_var in $ac_subst_files
1178 do
b4e70030
JB
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1181 done | sort
1182 echo
1183 fi
1184
1185 if test -s confdefs.h; then
1186 cat <<\_ASBOX
1187## ----------- ##
1188## confdefs.h. ##
1189## ----------- ##
1190_ASBOX
1191 echo
b4e70030 1192 sed "/^$/d" confdefs.h | sort
bec39cab 1193 echo
3ace7edb 1194 fi
bec39cab
AC
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1198 } >&5
b4e70030
JB
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1201 exit $exit_status
b4e70030 1202 ' 0
bec39cab
AC
1203for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205done
1206ac_signal=0
1207
1208# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1209rm -rf conftest* confdefs.h
1210# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211echo >confdefs.h
bec39cab
AC
1212
1213# Predefined preprocessor variables.
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_NAME "$PACKAGE_NAME"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222_ACEOF
1223
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_VERSION "$PACKAGE_VERSION"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_STRING "$PACKAGE_STRING"
1232_ACEOF
1233
1234
1235cat >>confdefs.h <<_ACEOF
1236#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237_ACEOF
1238
1239
1240# Let the site file select an alternate cache file if it wants to.
1241# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1242if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 else
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247 fi
c906108c 1248fi
b4e70030 1249for ac_site_file in $CONFIG_SITE; do
c906108c 1250 if test -r "$ac_site_file"; then
bec39cab
AC
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1254 . "$ac_site_file"
1255 fi
1256done
1257
1258if test -r "$cache_file"; then
bec39cab
AC
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263echo "$as_me: loading cache $cache_file" >&6;}
1264 case $cache_file in
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1267 esac
1268 fi
c906108c 1269else
bec39cab
AC
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271echo "$as_me: creating cache $cache_file" >&6;}
1272 >$cache_file
1273fi
1274
1275# Check that the precious variables saved in the cache have kept the same
1276# value.
1277ac_cache_corrupted=false
b4e70030
JB
1278for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1284 case $ac_old_set,$ac_new_set in
1285 set,)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,set)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,);;
1294 *)
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1297echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1298 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1299echo "$as_me: former value: $ac_old_val" >&2;}
1300 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1301echo "$as_me: current value: $ac_new_val" >&2;}
1302 ac_cache_corrupted=:
1303 fi;;
1304 esac
1305 # Pass precious variables to config.status.
1306 if test "$ac_new_set" = set; then
1307 case $ac_new_val in
b4e70030
JB
1308 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1310 *) ac_arg=$ac_var=$ac_new_val ;;
1311 esac
1312 case " $ac_configure_args " in
1313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1314 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1315 esac
1316 fi
1317done
1318if $ac_cache_corrupted; then
1319 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1320echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1321 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1322echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1323 { (exit 1); exit 1; }; }
c906108c
SS
1324fi
1325
b4e70030
JB
1326ac_ext=c
1327ac_cpp='$CPP $CPPFLAGS'
1328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1331
1332
783e057b
DJ
1333gl_header_list="$gl_header_list stdint.h"
1334gl_header_list="$gl_header_list wchar.h"
1335gl_header_list="$gl_header_list string.h"
bec39cab
AC
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
bec39cab 1352
b4e70030
JB
1353 ac_config_headers="$ac_config_headers config.h:config.in"
1354
1355echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1356echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1357 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1358if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1359 enableval="$enable_maintainer_mode"
1360 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1361else
1362 USE_MAINTAINER_MODE=no
b4e70030
JB
1363fi;
1364 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1365echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1366
413ccac7
AC
1367
1368if test $USE_MAINTAINER_MODE = yes; then
1369 MAINTAINER_MODE_TRUE=
1370 MAINTAINER_MODE_FALSE='#'
1371else
1372 MAINTAINER_MODE_TRUE='#'
1373 MAINTAINER_MODE_FALSE=
1374fi
85981d60 1375
413ccac7 1376 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1377
c906108c 1378
bec39cab
AC
1379
1380ac_ext=c
1381ac_cpp='$CPP $CPPFLAGS'
1382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385if test -n "$ac_tool_prefix"; then
1386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1387set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1388echo "$as_me:$LINENO: checking for $ac_word" >&5
1389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1390if test "${ac_cv_prog_CC+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1392else
1393 if test -n "$CC"; then
1394 ac_cv_prog_CC="$CC" # Let the user override the test.
1395else
1396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397for as_dir in $PATH
1398do
1399 IFS=$as_save_IFS
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1405 break 2
1406 fi
1407done
1408done
1409
1410fi
1411fi
1412CC=$ac_cv_prog_CC
1413if test -n "$CC"; then
b4e70030
JB
1414 echo "$as_me:$LINENO: result: $CC" >&5
1415echo "${ECHO_T}$CC" >&6
bec39cab 1416else
b4e70030
JB
1417 echo "$as_me:$LINENO: result: no" >&5
1418echo "${ECHO_T}no" >&6
bec39cab
AC
1419fi
1420
1421fi
1422if test -z "$ac_cv_prog_CC"; then
1423 ac_ct_CC=$CC
1424 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1425set dummy gcc; ac_word=$2
b4e70030
JB
1426echo "$as_me:$LINENO: checking for $ac_word" >&5
1427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1428if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431 if test -n "$ac_ct_CC"; then
1432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1433else
1434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435for as_dir in $PATH
1436do
1437 IFS=$as_save_IFS
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1441 ac_cv_prog_ac_ct_CC="gcc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 break 2
1444 fi
1445done
1446done
1447
1448fi
1449fi
1450ac_ct_CC=$ac_cv_prog_ac_ct_CC
1451if test -n "$ac_ct_CC"; then
b4e70030
JB
1452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1453echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1454else
b4e70030
JB
1455 echo "$as_me:$LINENO: result: no" >&5
1456echo "${ECHO_T}no" >&6
bec39cab
AC
1457fi
1458
b4e70030 1459 CC=$ac_ct_CC
bec39cab
AC
1460else
1461 CC="$ac_cv_prog_CC"
1462fi
1463
1464if test -z "$CC"; then
b4e70030
JB
1465 if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1467set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1468echo "$as_me:$LINENO: checking for $ac_word" >&5
1469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1470if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1472else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475else
bec39cab
AC
1476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1483 ac_cv_prog_CC="${ac_tool_prefix}cc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487done
1488done
1489
c906108c
SS
1490fi
1491fi
bec39cab 1492CC=$ac_cv_prog_CC
c906108c 1493if test -n "$CC"; then
b4e70030
JB
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495echo "${ECHO_T}$CC" >&6
c906108c 1496else
b4e70030
JB
1497 echo "$as_me:$LINENO: result: no" >&5
1498echo "${ECHO_T}no" >&6
c906108c
SS
1499fi
1500
b4e70030
JB
1501fi
1502if test -z "$ac_cv_prog_CC"; then
1503 ac_ct_CC=$CC
1504 # Extract the first word of "cc", so it can be a program name with args.
1505set dummy cc; ac_word=$2
1506echo "$as_me:$LINENO: checking for $ac_word" >&5
1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1513else
1514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_ac_ct_CC="cc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
4e8d927d 1524 fi
b4e70030
JB
1525done
1526done
1527
1528fi
1529fi
1530ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531if test -n "$ac_ct_CC"; then
1532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533echo "${ECHO_T}$ac_ct_CC" >&6
1534else
1535 echo "$as_me:$LINENO: result: no" >&5
1536echo "${ECHO_T}no" >&6
1537fi
1538
1539 CC=$ac_ct_CC
1540else
1541 CC="$ac_cv_prog_CC"
1542fi
1543
bec39cab 1544fi
c906108c
SS
1545if test -z "$CC"; then
1546 # Extract the first word of "cc", so it can be a program name with args.
1547set dummy cc; ac_word=$2
b4e70030
JB
1548echo "$as_me:$LINENO: checking for $ac_word" >&5
1549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1550if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1552else
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1555else
c906108c 1556 ac_prog_rejected=no
bec39cab
AC
1557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558for as_dir in $PATH
1559do
1560 IFS=$as_save_IFS
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1565 ac_prog_rejected=yes
1566 continue
1567 fi
1568 ac_cv_prog_CC="cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 break 2
1571 fi
1572done
1573done
1574
c906108c
SS
1575if test $ac_prog_rejected = yes; then
1576 # We found a bogon in the path, so make sure we never use it.
1577 set dummy $ac_cv_prog_CC
1578 shift
bec39cab 1579 if test $# != 0; then
c906108c
SS
1580 # We chose a different compiler from the bogus one.
1581 # However, it has the same basename, so the bogon will be chosen
1582 # first if we set CC to just the basename; use the full file name.
1583 shift
bec39cab 1584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1585 fi
1586fi
1587fi
1588fi
bec39cab 1589CC=$ac_cv_prog_CC
c906108c 1590if test -n "$CC"; then
b4e70030
JB
1591 echo "$as_me:$LINENO: result: $CC" >&5
1592echo "${ECHO_T}$CC" >&6
c906108c 1593else
b4e70030
JB
1594 echo "$as_me:$LINENO: result: no" >&5
1595echo "${ECHO_T}no" >&6
c906108c
SS
1596fi
1597
bec39cab
AC
1598fi
1599if test -z "$CC"; then
1600 if test -n "$ac_tool_prefix"; then
b4e70030 1601 for ac_prog in cl
bec39cab
AC
1602 do
1603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1605echo "$as_me:$LINENO: checking for $ac_word" >&5
1606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1607if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1609else
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1612else
bec39cab
AC
1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614for as_dir in $PATH
1615do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624done
1625done
1626
c906108c
SS
1627fi
1628fi
bec39cab 1629CC=$ac_cv_prog_CC
c906108c 1630if test -n "$CC"; then
b4e70030
JB
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632echo "${ECHO_T}$CC" >&6
c906108c 1633else
b4e70030
JB
1634 echo "$as_me:$LINENO: result: no" >&5
1635echo "${ECHO_T}no" >&6
c906108c 1636fi
bec39cab
AC
1637
1638 test -n "$CC" && break
1639 done
1640fi
1641if test -z "$CC"; then
1642 ac_ct_CC=$CC
b4e70030 1643 for ac_prog in cl
bec39cab
AC
1644do
1645 # Extract the first word of "$ac_prog", so it can be a program name with args.
1646set dummy $ac_prog; ac_word=$2
b4e70030
JB
1647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654else
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1662 ac_cv_prog_ac_ct_CC="$ac_prog"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
c906108c 1665 fi
bec39cab
AC
1666done
1667done
1668
1669fi
1670fi
1671ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672if test -n "$ac_ct_CC"; then
b4e70030
JB
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1675else
b4e70030
JB
1676 echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
c906108c
SS
1678fi
1679
bec39cab
AC
1680 test -n "$ac_ct_CC" && break
1681done
c906108c 1682
b4e70030 1683 CC=$ac_ct_CC
bec39cab
AC
1684fi
1685
1686fi
1687
1688
1689test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1690See \`config.log' for more details." >&5
1691echo "$as_me: error: no acceptable C compiler found in \$PATH
1692See \`config.log' for more details." >&2;}
1693 { (exit 1); exit 1; }; }
1694
1695# Provide some information about the compiler.
b4e70030
JB
1696echo "$as_me:$LINENO:" \
1697 "checking for C compiler version" >&5
bec39cab 1698ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1699{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1700 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
b4e70030
JB
1704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1705 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1706 ac_status=$?
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }
b4e70030
JB
1709{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1710 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1711 ac_status=$?
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1714
1715cat >conftest.$ac_ext <<_ACEOF
1716/* confdefs.h. */
1717_ACEOF
1718cat confdefs.h >>conftest.$ac_ext
1719cat >>conftest.$ac_ext <<_ACEOF
1720/* end confdefs.h. */
1721
1722int
1723main ()
1724{
1725
1726 ;
1727 return 0;
1728}
1729_ACEOF
1730ac_clean_files_save=$ac_clean_files
b4e70030 1731ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1732# Try to create an executable without -o first, disregard a.out.
1733# It will help us diagnose broken compilers, and finding out an intuition
1734# of exeext.
b4e70030
JB
1735echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1736echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1737ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1738if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1739 (eval $ac_link_default) 2>&5
1740 ac_status=$?
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }; then
b4e70030
JB
1743 # Find the output, starting from the most likely. This scheme is
1744# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1745# resort.
1746
1747# Be careful to initialize this variable, since it used to be cached.
1748# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1749ac_cv_exeext=
1750# b.out is created by i960 compilers.
1751for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1752do
1753 test -f "$ac_file" || continue
1754 case $ac_file in
b4e70030
JB
1755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1756 ;;
1757 conftest.$ac_ext )
1758 # This is the source file.
1759 ;;
1760 [ab].out )
1761 # We found the default executable, but exeext='' is most
1762 # certainly right.
1763 break;;
1764 *.* )
1765 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1766 # FIXME: I believe we export ac_cv_exeext for Libtool,
1767 # but it would be cool to find out if it's true. Does anybody
1768 # maintain Libtool? --akim.
1769 export ac_cv_exeext
1770 break;;
1771 * )
1772 break;;
bec39cab
AC
1773 esac
1774done
1775else
1776 echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1780See \`config.log' for more details." >&5
1781echo "$as_me: error: C compiler cannot create executables
1782See \`config.log' for more details." >&2;}
1783 { (exit 77); exit 77; }; }
1784fi
1785
b4e70030
JB
1786ac_exeext=$ac_cv_exeext
1787echo "$as_me:$LINENO: result: $ac_file" >&5
1788echo "${ECHO_T}$ac_file" >&6
1789
1790# Check the compiler produces executables we can run. If not, either
bec39cab 1791# the compiler is broken, or we cross compile.
b4e70030
JB
1792echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1793echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1794# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1795# If not cross compiling, check that we can run a simple program.
1796if test "$cross_compiling" != yes; then
1797 if { ac_try='./$ac_file'
1798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1799 (eval $ac_try) 2>&5
1800 ac_status=$?
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }; }; then
1803 cross_compiling=no
c906108c 1804 else
bec39cab
AC
1805 if test "$cross_compiling" = maybe; then
1806 cross_compiling=yes
1807 else
1808 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1809If you meant to cross compile, use \`--host'.
1810See \`config.log' for more details." >&5
1811echo "$as_me: error: cannot run C compiled programs.
1812If you meant to cross compile, use \`--host'.
1813See \`config.log' for more details." >&2;}
1814 { (exit 1); exit 1; }; }
1815 fi
c906108c 1816 fi
bec39cab 1817fi
b4e70030
JB
1818echo "$as_me:$LINENO: result: yes" >&5
1819echo "${ECHO_T}yes" >&6
bec39cab 1820
b4e70030
JB
1821rm -f a.out a.exe conftest$ac_cv_exeext b.out
1822ac_clean_files=$ac_clean_files_save
1823# Check the compiler produces executables we can run. If not, either
1824# the compiler is broken, or we cross compile.
1825echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1826echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1827echo "$as_me:$LINENO: result: $cross_compiling" >&5
1828echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1829
b4e70030
JB
1830echo "$as_me:$LINENO: checking for suffix of executables" >&5
1831echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1833 (eval $ac_link) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; then
b4e70030
JB
1837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1838# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1839# work properly (i.e., refer to `conftest.exe'), while it won't with
1840# `rm'.
1841for ac_file in conftest.exe conftest conftest.*; do
1842 test -f "$ac_file" || continue
1843 case $ac_file in
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 export ac_cv_exeext
1847 break;;
1848 * ) break;;
1849 esac
1850done
c906108c 1851else
bec39cab
AC
1852 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1853See \`config.log' for more details." >&5
1854echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1855See \`config.log' for more details." >&2;}
1856 { (exit 1); exit 1; }; }
c906108c 1857fi
c906108c 1858
b4e70030
JB
1859rm -f conftest$ac_cv_exeext
1860echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1861echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1862
b4e70030 1863rm -f conftest.$ac_ext
bec39cab
AC
1864EXEEXT=$ac_cv_exeext
1865ac_exeext=$EXEEXT
b4e70030
JB
1866echo "$as_me:$LINENO: checking for suffix of object files" >&5
1867echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1868if test "${ac_cv_objext+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
b4e70030
JB
1871 cat >conftest.$ac_ext <<_ACEOF
1872/* confdefs.h. */
1873_ACEOF
1874cat confdefs.h >>conftest.$ac_ext
1875cat >>conftest.$ac_ext <<_ACEOF
1876/* end confdefs.h. */
1877
1878int
1879main ()
1880{
1881
1882 ;
1883 return 0;
1884}
1885_ACEOF
1886rm -f conftest.o conftest.obj
bec39cab
AC
1887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1888 (eval $ac_compile) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
b4e70030 1892 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1893 case $ac_file in
b4e70030 1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1896 break;;
1897 esac
1898done
c906108c 1899else
bec39cab
AC
1900 echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1904See \`config.log' for more details." >&5
1905echo "$as_me: error: cannot compute suffix of object files: cannot compile
1906See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
c906108c
SS
1908fi
1909
b4e70030 1910rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1911fi
b4e70030
JB
1912echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1913echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1914OBJEXT=$ac_cv_objext
1915ac_objext=$OBJEXT
b4e70030
JB
1916echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1917echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1918if test "${ac_cv_c_compiler_gnu+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1920else
bec39cab
AC
1921 cat >conftest.$ac_ext <<_ACEOF
1922/* confdefs.h. */
1923_ACEOF
1924cat confdefs.h >>conftest.$ac_ext
1925cat >>conftest.$ac_ext <<_ACEOF
1926/* end confdefs.h. */
1927
1928int
1929main ()
1930{
1931#ifndef __GNUC__
1932 choke me
1933#endif
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939rm -f conftest.$ac_objext
1940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>conftest.er1
1942 ac_status=$?
1943 grep -v '^ *+' conftest.er1 >conftest.err
1944 rm -f conftest.er1
1945 cat conftest.err >&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); } &&
b4e70030
JB
1948 { ac_try='test -z "$ac_c_werror_flag"
1949 || test ! -s conftest.err'
bec39cab
AC
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 (eval $ac_try) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; } &&
1955 { ac_try='test -s conftest.$ac_objext'
1956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 (eval $ac_try) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; }; then
1961 ac_compiler_gnu=yes
1962else
1963 echo "$as_me: failed program was:" >&5
1964sed 's/^/| /' conftest.$ac_ext >&5
1965
b4e70030 1966ac_compiler_gnu=no
bec39cab
AC
1967fi
1968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1969ac_cv_c_compiler_gnu=$ac_compiler_gnu
1970
1971fi
b4e70030
JB
1972echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1973echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1974GCC=`test $ac_compiler_gnu = yes && echo yes`
1975ac_test_CFLAGS=${CFLAGS+set}
1976ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1977CFLAGS="-g"
1978echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1979echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1980if test "${ac_cv_prog_cc_g+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
b4e70030 1983 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1984/* confdefs.h. */
1985_ACEOF
1986cat confdefs.h >>conftest.$ac_ext
1987cat >>conftest.$ac_ext <<_ACEOF
1988/* end confdefs.h. */
1989
1990int
1991main ()
1992{
1993
1994 ;
1995 return 0;
1996}
1997_ACEOF
1998rm -f conftest.$ac_objext
1999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>conftest.er1
2001 ac_status=$?
2002 grep -v '^ *+' conftest.er1 >conftest.err
2003 rm -f conftest.er1
2004 cat conftest.err >&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
b4e70030
JB
2007 { ac_try='test -z "$ac_c_werror_flag"
2008 || test ! -s conftest.err'
bec39cab
AC
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; } &&
2014 { ac_try='test -s conftest.$ac_objext'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 (eval $ac_try) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
c906108c
SS
2020 ac_cv_prog_cc_g=yes
2021else
bec39cab
AC
2022 echo "$as_me: failed program was:" >&5
2023sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2024
b4e70030 2025ac_cv_prog_cc_g=no
4e8d927d 2026fi
bec39cab
AC
2027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2028fi
b4e70030
JB
2029echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2031if test "$ac_test_CFLAGS" = set; then
bec39cab 2032 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2033elif test $ac_cv_prog_cc_g = yes; then
2034 if test "$GCC" = yes; then
2035 CFLAGS="-g -O2"
2036 else
2037 CFLAGS="-g"
2038 fi
2039else
2040 if test "$GCC" = yes; then
2041 CFLAGS="-O2"
2042 else
2043 CFLAGS=
2044 fi
2045fi
b4e70030
JB
2046echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
b4e70030 2051 ac_cv_prog_cc_stdc=no
bec39cab
AC
2052ac_save_CC=$CC
2053cat >conftest.$ac_ext <<_ACEOF
2054/* confdefs.h. */
2055_ACEOF
2056cat confdefs.h >>conftest.$ac_ext
2057cat >>conftest.$ac_ext <<_ACEOF
2058/* end confdefs.h. */
c906108c
SS
2059#include <stdarg.h>
2060#include <stdio.h>
2061#include <sys/types.h>
2062#include <sys/stat.h>
2063/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2064struct buf { int x; };
2065FILE * (*rcsopen) (struct buf *, struct stat *, int);
2066static char *e (p, i)
2067 char **p;
2068 int i;
2069{
2070 return p[i];
2071}
2072static char *f (char * (*g) (char **, int), char **p, ...)
2073{
2074 char *s;
2075 va_list v;
2076 va_start (v,p);
2077 s = g (p, va_arg (v,int));
2078 va_end (v);
2079 return s;
2080}
bec39cab
AC
2081
2082/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2083 function prototypes and stuff, but not '\xHH' hex character constants.
2084 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2085 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2086 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2087 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2088 that's true only with -std1. */
bec39cab
AC
2089int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2090
c906108c
SS
2091int test (int i, double x);
2092struct s1 {int (*f) (int a);};
2093struct s2 {int (*f) (double a);};
2094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2095int argc;
2096char **argv;
bec39cab
AC
2097int
2098main ()
2099{
c906108c 2100return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2101 ;
2102 return 0;
2103}
2104_ACEOF
b4e70030
JB
2105# Don't try gcc -ansi; that turns off useful extensions and
2106# breaks some systems' header files.
2107# AIX -qlanglvl=ansi
2108# Ultrix and OSF/1 -std1
2109# HP-UX 10.20 and later -Ae
2110# HP-UX older versions -Aa -D_HPUX_SOURCE
2111# SVR4 -Xc -D__EXTENSIONS__
2112for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2113do
2114 CC="$ac_save_CC $ac_arg"
2115 rm -f conftest.$ac_objext
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>conftest.er1
2118 ac_status=$?
2119 grep -v '^ *+' conftest.er1 >conftest.err
2120 rm -f conftest.er1
2121 cat conftest.err >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); } &&
b4e70030
JB
2124 { ac_try='test -z "$ac_c_werror_flag"
2125 || test ! -s conftest.err'
bec39cab
AC
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; } &&
2131 { ac_try='test -s conftest.$ac_objext'
2132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 (eval $ac_try) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; }; then
b4e70030
JB
2137 ac_cv_prog_cc_stdc=$ac_arg
2138break
c906108c 2139else
bec39cab
AC
2140 echo "$as_me: failed program was:" >&5
2141sed 's/^/| /' conftest.$ac_ext >&5
2142
c906108c 2143fi
bec39cab 2144rm -f conftest.err conftest.$ac_objext
c906108c 2145done
b4e70030 2146rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2147CC=$ac_save_CC
c906108c
SS
2148
2149fi
b4e70030
JB
2150
2151case "x$ac_cv_prog_cc_stdc" in
2152 x|xno)
2153 echo "$as_me:$LINENO: result: none needed" >&5
2154echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2155 *)
b4e70030
JB
2156 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2157echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2158 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2159esac
2160
b4e70030
JB
2161# Some people use a C++ compiler to compile C. Since we use `exit',
2162# in C++ we need to declare it. In case someone uses the same compiler
2163# for both compiling C and C++ we need to have the C++ compiler decide
2164# the declaration of exit, since it's the most demanding environment.
2165cat >conftest.$ac_ext <<_ACEOF
2166#ifndef __cplusplus
2167 choke me
2168#endif
2169_ACEOF
2170rm -f conftest.$ac_objext
2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration in \
2193 '' \
2194 'extern "C" void std::exit (int) throw (); using std::exit;' \
2195 'extern "C" void std::exit (int); using std::exit;' \
2196 'extern "C" void exit (int) throw ();' \
2197 'extern "C" void exit (int);' \
2198 'void exit (int);'
2199do
2200 cat >conftest.$ac_ext <<_ACEOF
2201/* confdefs.h. */
2202_ACEOF
2203cat confdefs.h >>conftest.$ac_ext
2204cat >>conftest.$ac_ext <<_ACEOF
2205/* end confdefs.h. */
2206$ac_declaration
2207#include <stdlib.h>
2208int
2209main ()
2210{
2211exit (42);
2212 ;
2213 return 0;
2214}
2215_ACEOF
2216rm -f conftest.$ac_objext
2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2219 ac_status=$?
2220 grep -v '^ *+' conftest.er1 >conftest.err
2221 rm -f conftest.er1
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag"
2226 || test ! -s conftest.err'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 :
2239else
2240 echo "$as_me: failed program was:" >&5
2241sed 's/^/| /' conftest.$ac_ext >&5
2242
2243continue
2244fi
2245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2246 cat >conftest.$ac_ext <<_ACEOF
2247/* confdefs.h. */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h. */
2252$ac_declaration
2253int
2254main ()
2255{
2256exit (42);
2257 ;
2258 return 0;
2259}
2260_ACEOF
2261rm -f conftest.$ac_objext
2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2264 ac_status=$?
2265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag"
2271 || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 break
2284else
2285 echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288fi
2289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290done
2291rm -f conftest*
2292if test -n "$ac_declaration"; then
2293 echo '#ifdef __cplusplus' >>confdefs.h
2294 echo $ac_declaration >>confdefs.h
2295 echo '#endif' >>confdefs.h
2296fi
2297
2298else
2299 echo "$as_me: failed program was:" >&5
2300sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2301
b4e70030
JB
2302fi
2303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2304ac_ext=c
2305ac_cpp='$CPP $CPPFLAGS'
2306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2309
60ca704f 2310
bec39cab
AC
2311cat >>confdefs.h <<\_ACEOF
2312#define _GNU_SOURCE 1
2313_ACEOF
c906108c
SS
2314
2315
8bb2c122 2316
bec39cab
AC
2317ac_ext=c
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2322echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2323echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2324# On Suns, sometimes $CPP names a directory.
2325if test -n "$CPP" && test -d "$CPP"; then
2326 CPP=
8bb2c122 2327fi
bec39cab
AC
2328if test -z "$CPP"; then
2329 if test "${ac_cv_prog_CPP+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 # Double quotes because CPP needs to be expanded
2333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2334 do
2335 ac_preproc_ok=false
2336for ac_c_preproc_warn_flag in '' yes
2337do
2338 # Use a header file that comes with gcc, so configuring glibc
2339 # with a fresh cross-compiler works.
2340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2341 # <limits.h> exists even on freestanding compilers.
2342 # On the NeXT, cc -E runs the code through the compiler's parser,
2343 # not just through cpp. "Syntax error" is here to catch this case.
2344 cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
2350#ifdef __STDC__
2351# include <limits.h>
2352#else
2353# include <assert.h>
2354#endif
2355 Syntax error
2356_ACEOF
2357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2359 ac_status=$?
2360 grep -v '^ *+' conftest.er1 >conftest.err
2361 rm -f conftest.er1
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } >/dev/null; then
2365 if test -s conftest.err; then
2366 ac_cpp_err=$ac_c_preproc_warn_flag
2367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2368 else
2369 ac_cpp_err=
2370 fi
8bb2c122 2371else
bec39cab 2372 ac_cpp_err=yes
8bb2c122 2373fi
bec39cab
AC
2374if test -z "$ac_cpp_err"; then
2375 :
8bb2c122 2376else
bec39cab
AC
2377 echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 # Broken: fails on valid input.
2381continue
2382fi
2383rm -f conftest.err conftest.$ac_ext
2384
b4e70030 2385 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2386 # can be detected and how.
2387 cat >conftest.$ac_ext <<_ACEOF
2388/* confdefs.h. */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h. */
2393#include <ac_nonexistent.h>
2394_ACEOF
2395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } >/dev/null; then
2403 if test -s conftest.err; then
2404 ac_cpp_err=$ac_c_preproc_warn_flag
2405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2406 else
2407 ac_cpp_err=
2408 fi
8bb2c122 2409else
bec39cab 2410 ac_cpp_err=yes
8bb2c122 2411fi
bec39cab
AC
2412if test -z "$ac_cpp_err"; then
2413 # Broken: success on invalid input.
2414continue
8bb2c122 2415else
bec39cab
AC
2416 echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2418
bec39cab
AC
2419 # Passes both tests.
2420ac_preproc_ok=:
2421break
8bb2c122 2422fi
bec39cab 2423rm -f conftest.err conftest.$ac_ext
8bb2c122 2424
bec39cab
AC
2425done
2426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2427rm -f conftest.err conftest.$ac_ext
2428if $ac_preproc_ok; then
2429 break
2430fi
8bb2c122 2431
bec39cab
AC
2432 done
2433 ac_cv_prog_CPP=$CPP
ddc9cd0f 2434
c906108c 2435fi
bec39cab
AC
2436 CPP=$ac_cv_prog_CPP
2437else
2438 ac_cv_prog_CPP=$CPP
c906108c 2439fi
b4e70030
JB
2440echo "$as_me:$LINENO: result: $CPP" >&5
2441echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2442ac_preproc_ok=false
2443for ac_c_preproc_warn_flag in '' yes
2444do
2445 # Use a header file that comes with gcc, so configuring glibc
2446 # with a fresh cross-compiler works.
2447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2448 # <limits.h> exists even on freestanding compilers.
2449 # On the NeXT, cc -E runs the code through the compiler's parser,
2450 # not just through cpp. "Syntax error" is here to catch this case.
2451 cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h. */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h. */
2457#ifdef __STDC__
2458# include <limits.h>
2459#else
2460# include <assert.h>
2461#endif
2462 Syntax error
2463_ACEOF
2464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } >/dev/null; then
2472 if test -s conftest.err; then
2473 ac_cpp_err=$ac_c_preproc_warn_flag
2474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2475 else
2476 ac_cpp_err=
2477 fi
c906108c 2478else
bec39cab 2479 ac_cpp_err=yes
c906108c 2480fi
bec39cab
AC
2481if test -z "$ac_cpp_err"; then
2482 :
c906108c 2483else
bec39cab
AC
2484 echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 # Broken: fails on valid input.
2488continue
2489fi
2490rm -f conftest.err conftest.$ac_ext
2491
b4e70030 2492 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2493 # can be detected and how.
2494 cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h. */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h. */
2500#include <ac_nonexistent.h>
2501_ACEOF
2502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } >/dev/null; then
2510 if test -s conftest.err; then
2511 ac_cpp_err=$ac_c_preproc_warn_flag
2512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2513 else
2514 ac_cpp_err=
2515 fi
c906108c 2516else
bec39cab 2517 ac_cpp_err=yes
c906108c 2518fi
bec39cab
AC
2519if test -z "$ac_cpp_err"; then
2520 # Broken: success on invalid input.
2521continue
c906108c 2522else
bec39cab
AC
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2525
bec39cab
AC
2526 # Passes both tests.
2527ac_preproc_ok=:
2528break
c906108c 2529fi
bec39cab 2530rm -f conftest.err conftest.$ac_ext
c906108c 2531
bec39cab
AC
2532done
2533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2534rm -f conftest.err conftest.$ac_ext
2535if $ac_preproc_ok; then
c906108c
SS
2536 :
2537else
bec39cab
AC
2538 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2539See \`config.log' for more details." >&5
2540echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2541See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
c906108c 2543fi
c906108c 2544
bec39cab
AC
2545ac_ext=c
2546ac_cpp='$CPP $CPPFLAGS'
2547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550
2551
b4e70030
JB
2552echo "$as_me:$LINENO: checking for egrep" >&5
2553echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2554if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
b4e70030
JB
2557 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2558 then ac_cv_prog_egrep='grep -E'
2559 else ac_cv_prog_egrep='egrep'
bec39cab 2560 fi
4e8d927d 2561fi
b4e70030
JB
2562echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2563echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2564 EGREP=$ac_cv_prog_egrep
c906108c 2565
bec39cab
AC
2566
2567
b4e70030
JB
2568echo "$as_me:$LINENO: checking for AIX" >&5
2569echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2570cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h. */
2576#ifdef _AIX
2577 yes
2578#endif
2579
2580_ACEOF
c906108c 2581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2582 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2583 echo "$as_me:$LINENO: result: yes" >&5
2584echo "${ECHO_T}yes" >&6
bec39cab
AC
2585cat >>confdefs.h <<\_ACEOF
2586#define _ALL_SOURCE 1
2587_ACEOF
2588
c906108c 2589else
b4e70030
JB
2590 echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6
c906108c
SS
2592fi
2593rm -f conftest*
2594
c906108c 2595
b4e70030
JB
2596echo "$as_me:$LINENO: checking for library containing strerror" >&5
2597echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2598if test "${ac_cv_search_strerror+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2600else
bec39cab 2601 ac_func_search_save_LIBS=$LIBS
b4e70030 2602ac_cv_search_strerror=no
bec39cab
AC
2603cat >conftest.$ac_ext <<_ACEOF
2604/* confdefs.h. */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h. */
c906108c 2609
b4e70030 2610/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2611#ifdef __cplusplus
2612extern "C"
2613#endif
b4e70030
JB
2614/* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
bec39cab
AC
2616char strerror ();
2617int
2618main ()
2619{
b4e70030 2620strerror ();
bec39cab
AC
2621 ;
2622 return 0;
2623}
2624_ACEOF
b4e70030 2625rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627 (eval $ac_link) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
b4e70030
JB
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
bec39cab
AC
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest$ac_exeext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
b4e70030 2647 ac_cv_search_strerror="none required"
c906108c 2648else
bec39cab
AC
2649 echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2651
2652fi
bec39cab 2653rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2654 conftest$ac_exeext conftest.$ac_ext
2655if test "$ac_cv_search_strerror" = no; then
2656 for ac_lib in cposix; do
2657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2658 cat >conftest.$ac_ext <<_ACEOF
2659/* confdefs.h. */
2660_ACEOF
2661cat confdefs.h >>conftest.$ac_ext
2662cat >>conftest.$ac_ext <<_ACEOF
2663/* end confdefs.h. */
2664
2665/* Override any gcc2 internal prototype to avoid an error. */
2666#ifdef __cplusplus
2667extern "C"
2668#endif
2669/* We use char because int might match the return type of a gcc2
2670 builtin and then its argument prototype would still apply. */
2671char strerror ();
2672int
2673main ()
2674{
2675strerror ();
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680rm -f conftest.$ac_objext conftest$ac_exeext
2681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2682 (eval $ac_link) 2>conftest.er1
2683 ac_status=$?
2684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest$ac_exeext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 ac_cv_search_strerror="-l$ac_lib"
2703break
4e8d927d 2704else
b4e70030
JB
2705 echo "$as_me: failed program was:" >&5
2706sed 's/^/| /' conftest.$ac_ext >&5
2707
2708fi
2709rm -f conftest.err conftest.$ac_objext \
2710 conftest$ac_exeext conftest.$ac_ext
2711 done
c906108c 2712fi
bec39cab 2713LIBS=$ac_func_search_save_LIBS
c906108c 2714fi
b4e70030
JB
2715echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2716echo "${ECHO_T}$ac_cv_search_strerror" >&6
2717if test "$ac_cv_search_strerror" != no; then
2718 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2719
c906108c
SS
2720fi
2721
783e057b
DJ
2722if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2724set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2725echo "$as_me:$LINENO: checking for $ac_word" >&5
2726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727if test "${ac_cv_prog_RANLIB+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730 if test -n "$RANLIB"; then
2731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744done
2745done
c906108c 2746
783e057b
DJ
2747fi
2748fi
2749RANLIB=$ac_cv_prog_RANLIB
2750if test -n "$RANLIB"; then
2751 echo "$as_me:$LINENO: result: $RANLIB" >&5
2752echo "${ECHO_T}$RANLIB" >&6
2753else
2754 echo "$as_me:$LINENO: result: no" >&5
2755echo "${ECHO_T}no" >&6
2756fi
bec39cab 2757
783e057b
DJ
2758fi
2759if test -z "$ac_cv_prog_RANLIB"; then
2760 ac_ct_RANLIB=$RANLIB
2761 # Extract the first word of "ranlib", so it can be a program name with args.
2762set dummy ranlib; ac_word=$2
2763echo "$as_me:$LINENO: checking for $ac_word" >&5
2764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
bec39cab 2766 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2767else
783e057b
DJ
2768 if test -n "$ac_ct_RANLIB"; then
2769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
bec39cab 2773do
783e057b
DJ
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_RANLIB="ranlib"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782done
2783done
2784
2785 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2786fi
2787fi
2788ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2789if test -n "$ac_ct_RANLIB"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2791echo "${ECHO_T}$ac_ct_RANLIB" >&6
2792else
2793 echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6
2795fi
2796
2797 RANLIB=$ac_ct_RANLIB
2798else
2799 RANLIB="$ac_cv_prog_RANLIB"
2800fi
2801
2802echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2803echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2804if test "${ac_cv_header_stdc+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806else
bec39cab
AC
2807 cat >conftest.$ac_ext <<_ACEOF
2808/* confdefs.h. */
2809_ACEOF
2810cat confdefs.h >>conftest.$ac_ext
2811cat >>conftest.$ac_ext <<_ACEOF
2812/* end confdefs.h. */
783e057b 2813#include <stdlib.h>
bec39cab 2814#include <stdarg.h>
783e057b
DJ
2815#include <string.h>
2816#include <float.h>
c906108c 2817
bec39cab
AC
2818int
2819main ()
2820{
c906108c 2821
bec39cab
AC
2822 ;
2823 return 0;
2824}
2825_ACEOF
2826rm -f conftest.$ac_objext
2827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
b4e70030
JB
2835 { ac_try='test -z "$ac_c_werror_flag"
2836 || test ! -s conftest.err'
bec39cab
AC
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
783e057b 2848 ac_cv_header_stdc=yes
c906108c 2849else
bec39cab
AC
2850 echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2852
783e057b 2853ac_cv_header_stdc=no
c906108c 2854fi
bec39cab 2855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2856
783e057b
DJ
2857if test $ac_cv_header_stdc = yes; then
2858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2859 cat >conftest.$ac_ext <<_ACEOF
2860/* confdefs.h. */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h. */
2865#include <string.h>
c906108c 2866
783e057b
DJ
2867_ACEOF
2868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2869 $EGREP "memchr" >/dev/null 2>&1; then
2870 :
c906108c 2871else
783e057b 2872 ac_cv_header_stdc=no
c906108c 2873fi
783e057b 2874rm -f conftest*
c906108c
SS
2875
2876fi
2877
783e057b
DJ
2878if test $ac_cv_header_stdc = yes; then
2879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2880 cat >conftest.$ac_ext <<_ACEOF
2881/* confdefs.h. */
2882_ACEOF
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h. */
2886#include <stdlib.h>
bec39cab 2887
783e057b
DJ
2888_ACEOF
2889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2890 $EGREP "free" >/dev/null 2>&1; then
2891 :
bec39cab 2892else
783e057b 2893 ac_cv_header_stdc=no
bec39cab 2894fi
783e057b 2895rm -f conftest*
bec39cab
AC
2896
2897fi
bec39cab 2898
783e057b
DJ
2899if test $ac_cv_header_stdc = yes; then
2900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2901 if test "$cross_compiling" = yes; then
2902 :
bec39cab 2903else
783e057b
DJ
2904 cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
2910#include <ctype.h>
2911#if ((' ' & 0x0FF) == 0x020)
2912# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2913# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2914#else
2915# define ISLOWER(c) \
2916 (('a' <= (c) && (c) <= 'i') \
2917 || ('j' <= (c) && (c) <= 'r') \
2918 || ('s' <= (c) && (c) <= 'z'))
2919# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2920#endif
2921
2922#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2923int
2924main ()
2925{
2926 int i;
2927 for (i = 0; i < 256; i++)
2928 if (XOR (islower (i), ISLOWER (i))
2929 || toupper (i) != TOUPPER (i))
2930 exit(2);
2931 exit (0);
2932}
2933_ACEOF
2934rm -f conftest$ac_exeext
2935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936 (eval $ac_link) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 :
2946else
2947 echo "$as_me: program exited with status $ac_status" >&5
2948echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951( exit $ac_status )
2952ac_cv_header_stdc=no
2953fi
2954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2955fi
2956fi
2957fi
2958echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2959echo "${ECHO_T}$ac_cv_header_stdc" >&6
2960if test $ac_cv_header_stdc = yes; then
2961
2962cat >>confdefs.h <<\_ACEOF
2963#define STDC_HEADERS 1
2964_ACEOF
2965
2966fi
2967
2968# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2979 inttypes.h stdint.h unistd.h
2980do
2981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2982echo "$as_me:$LINENO: checking for $ac_header" >&5
2983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2984if eval "test \"\${$as_ac_Header+set}\" = set"; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987 cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
2993$ac_includes_default
2994
2995#include <$ac_header>
2996_ACEOF
2997rm -f conftest.$ac_objext
2998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999 (eval $ac_compile) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -z "$ac_c_werror_flag"
3007 || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 (eval $ac_try) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 eval "$as_ac_Header=yes"
3020else
3021 echo "$as_me: failed program was:" >&5
3022sed 's/^/| /' conftest.$ac_ext >&5
3023
3024eval "$as_ac_Header=no"
3025fi
3026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027fi
3028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3030if test `eval echo '${'$as_ac_Header'}'` = yes; then
3031 cat >>confdefs.h <<_ACEOF
3032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3033_ACEOF
3034
3035fi
3036
3037done
3038
3039
3040
3041 if test "${ac_cv_header_minix_config_h+set}" = set; then
3042 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3043echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3044if test "${ac_cv_header_minix_config_h+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046fi
3047echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3048echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3049else
3050 # Is the header compilable?
3051echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3052echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3053cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
3059$ac_includes_default
3060#include <minix/config.h>
3061_ACEOF
3062rm -f conftest.$ac_objext
3063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag"
3072 || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 ac_header_compiler=yes
3085else
3086 echo "$as_me: failed program was:" >&5
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
3089ac_header_compiler=no
3090fi
3091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3093echo "${ECHO_T}$ac_header_compiler" >&6
3094
3095# Is the header present?
3096echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3097echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3098cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104#include <minix/config.h>
3105_ACEOF
3106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } >/dev/null; then
3114 if test -s conftest.err; then
3115 ac_cpp_err=$ac_c_preproc_warn_flag
3116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3117 else
3118 ac_cpp_err=
3119 fi
3120else
3121 ac_cpp_err=yes
3122fi
3123if test -z "$ac_cpp_err"; then
3124 ac_header_preproc=yes
3125else
3126 echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 ac_header_preproc=no
3130fi
3131rm -f conftest.err conftest.$ac_ext
3132echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3133echo "${ECHO_T}$ac_header_preproc" >&6
3134
3135# So? What about this header?
3136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3137 yes:no: )
3138 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3139echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3140 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3141echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3142 ac_header_preproc=yes
3143 ;;
3144 no:yes:* )
3145 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3146echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3147 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3148echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3149 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3150echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3151 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3152echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3153 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3154echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3155 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3156echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3157 (
3158 cat <<\_ASBOX
3159## ------------------------------------------ ##
3160## Report this to the AC_PACKAGE_NAME lists. ##
3161## ------------------------------------------ ##
3162_ASBOX
3163 ) |
3164 sed "s/^/$as_me: WARNING: /" >&2
3165 ;;
3166esac
3167echo "$as_me:$LINENO: checking for minix/config.h" >&5
3168echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3169if test "${ac_cv_header_minix_config_h+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171else
3172 ac_cv_header_minix_config_h=$ac_header_preproc
3173fi
3174echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3175echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3176
3177fi
3178if test $ac_cv_header_minix_config_h = yes; then
3179 MINIX=yes
3180else
3181 MINIX=
3182fi
3183
3184
3185 if test "$MINIX" = yes; then
3186
3187cat >>confdefs.h <<\_ACEOF
3188#define _POSIX_SOURCE 1
3189_ACEOF
3190
3191
3192cat >>confdefs.h <<\_ACEOF
3193#define _POSIX_1_SOURCE 2
3194_ACEOF
3195
3196
3197cat >>confdefs.h <<\_ACEOF
3198#define _MINIX 1
3199_ACEOF
3200
3201 fi
3202
3203
3204
3205 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3206echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3207if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
3216
3217# define __EXTENSIONS__ 1
3218 $ac_includes_default
3219int
3220main ()
3221{
3222
3223 ;
3224 return 0;
3225}
3226_ACEOF
3227rm -f conftest.$ac_objext
3228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -z "$ac_c_werror_flag"
3237 || test ! -s conftest.err'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_cv_safe_to_define___extensions__=yes
3250else
3251 echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254ac_cv_safe_to_define___extensions__=no
3255fi
3256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257fi
3258echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3259echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3260 test $ac_cv_safe_to_define___extensions__ = yes &&
3261 cat >>confdefs.h <<\_ACEOF
3262#define __EXTENSIONS__ 1
3263_ACEOF
3264
3265 cat >>confdefs.h <<\_ACEOF
3266#define _ALL_SOURCE 1
3267_ACEOF
3268
3269 cat >>confdefs.h <<\_ACEOF
3270#define _GNU_SOURCE 1
3271_ACEOF
3272
3273 cat >>confdefs.h <<\_ACEOF
3274#define _POSIX_PTHREAD_SEMANTICS 1
3275_ACEOF
3276
3277 cat >>confdefs.h <<\_ACEOF
3278#define _TANDEM_SOURCE 1
3279_ACEOF
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3291echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3292if test "${am_cv_prog_cc_stdc+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294else
3295 am_cv_prog_cc_stdc=no
3296ac_save_CC="$CC"
3297# Don't try gcc -ansi; that turns off useful extensions and
3298# breaks some systems' header files.
3299# AIX -qlanglvl=ansi
3300# Ultrix and OSF/1 -std1
3301# HP-UX 10.20 and later -Ae
3302# HP-UX older versions -Aa -D_HPUX_SOURCE
3303# SVR4 -Xc -D__EXTENSIONS__
3304for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3305do
3306 CC="$ac_save_CC $ac_arg"
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 <stdarg.h>
3314#include <stdio.h>
3315#include <sys/types.h>
3316#include <sys/stat.h>
3317/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3318struct buf { int x; };
3319FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320static char *e (p, i)
3321 char **p;
3322 int i;
3323{
3324 return p[i];
3325}
3326static char *f (char * (*g) (char **, int), char **p, ...)
3327{
3328 char *s;
3329 va_list v;
3330 va_start (v,p);
3331 s = g (p, va_arg (v,int));
3332 va_end (v);
3333 return s;
3334}
3335int test (int i, double x);
3336struct s1 {int (*f) (int a);};
3337struct s2 {int (*f) (double a);};
3338int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339int argc;
3340char **argv;
3341
3342int
3343main ()
3344{
3345
3346return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3347
3348 ;
3349 return 0;
3350}
3351_ACEOF
3352rm -f conftest.$ac_objext
3353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>conftest.er1
3355 ac_status=$?
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try='test -z "$ac_c_werror_flag"
3362 || test ! -s conftest.err'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 (eval $ac_try) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 am_cv_prog_cc_stdc="$ac_arg"; break
3375else
3376 echo "$as_me: failed program was:" >&5
3377sed 's/^/| /' conftest.$ac_ext >&5
3378
3379fi
3380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381done
3382CC="$ac_save_CC"
3383
3384fi
3385
3386if test -z "$am_cv_prog_cc_stdc"; then
3387 echo "$as_me:$LINENO: result: none needed" >&5
3388echo "${ECHO_T}none needed" >&6
3389else
3390 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3391echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3392fi
3393case "x$am_cv_prog_cc_stdc" in
3394 x|xno) ;;
3395 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3396esac
3397
3398
3399ac_aux_dir=
3400for ac_dir in .. $srcdir/..; do
3401 if test -f $ac_dir/install-sh; then
3402 ac_aux_dir=$ac_dir
3403 ac_install_sh="$ac_aux_dir/install-sh -c"
3404 break
3405 elif test -f $ac_dir/install.sh; then
3406 ac_aux_dir=$ac_dir
3407 ac_install_sh="$ac_aux_dir/install.sh -c"
3408 break
3409 elif test -f $ac_dir/shtool; then
3410 ac_aux_dir=$ac_dir
3411 ac_install_sh="$ac_aux_dir/shtool install -c"
3412 break
3413 fi
3414done
3415if test -z "$ac_aux_dir"; then
3416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3417echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3418 { (exit 1); exit 1; }; }
3419fi
3420ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3421ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3422ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3423
3424# Make sure we can run config.sub.
3425$ac_config_sub sun4 >/dev/null 2>&1 ||
3426 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3427echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3428 { (exit 1); exit 1; }; }
3429
3430echo "$as_me:$LINENO: checking build system type" >&5
3431echo $ECHO_N "checking build system type... $ECHO_C" >&6
3432if test "${ac_cv_build+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435 ac_cv_build_alias=$build_alias
3436test -z "$ac_cv_build_alias" &&
3437 ac_cv_build_alias=`$ac_config_guess`
3438test -z "$ac_cv_build_alias" &&
3439 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3440echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3441 { (exit 1); exit 1; }; }
3442ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3443 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3444echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3445 { (exit 1); exit 1; }; }
3446
3447fi
3448echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3449echo "${ECHO_T}$ac_cv_build" >&6
3450build=$ac_cv_build
3451build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3452build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3453build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3454
3455
3456echo "$as_me:$LINENO: checking host system type" >&5
3457echo $ECHO_N "checking host system type... $ECHO_C" >&6
3458if test "${ac_cv_host+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461 ac_cv_host_alias=$host_alias
3462test -z "$ac_cv_host_alias" &&
3463 ac_cv_host_alias=$ac_cv_build_alias
3464ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3465 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3466echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3467 { (exit 1); exit 1; }; }
3468
3469fi
3470echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3471echo "${ECHO_T}$ac_cv_host" >&6
3472host=$ac_cv_host
3473host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3474host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3475host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3476
3477
3478echo "$as_me:$LINENO: checking target system type" >&5
3479echo $ECHO_N "checking target system type... $ECHO_C" >&6
3480if test "${ac_cv_target+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483 ac_cv_target_alias=$target_alias
3484test "x$ac_cv_target_alias" = "x" &&
b4e70030
JB
3485 ac_cv_target_alias=$ac_cv_host_alias
3486ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3487 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3488echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
3489 { (exit 1); exit 1; }; }
3490
3491fi
783e057b
DJ
3492echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3493echo "${ECHO_T}$ac_cv_target" >&6
3494target=$ac_cv_target
3495target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3496target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3497target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3498
3499
3500# The aliases save the names the user supplied, while $host etc.
3501# will get canonicalized.
3502test -n "$target_alias" &&
3503 test "$program_prefix$program_suffix$program_transform_name" = \
3504 NONENONEs,x,x, &&
3505 program_prefix=${target_alias}-
3506
3507
3508CONFIG_OBS=
3509CONFIG_DEPS=
3510CONFIG_SRCS=
3511ENABLE_CFLAGS=
3512
3513CONFIG_ALL=
3514CONFIG_CLEAN=
3515CONFIG_INSTALL=
3516CONFIG_UNINSTALL=
3517
3518# If we haven't got the data from the intl directory,
3519# assume NLS is disabled.
3520USE_NLS=no
3521LIBINTL=
3522LIBINTL_DEP=
3523INCINTL=
3524XGETTEXT=
3525GMSGFMT=
3526POSUB=
3527
3528if test -f ../intl/config.intl; then
3529 . ../intl/config.intl
3530fi
3531echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3532echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3533if test x"$USE_NLS" != xyes; then
3534 echo "$as_me:$LINENO: result: no" >&5
3535echo "${ECHO_T}no" >&6
3536else
3537 echo "$as_me:$LINENO: result: yes" >&5
3538echo "${ECHO_T}yes" >&6
3539
3540cat >>confdefs.h <<\_ACEOF
3541#define ENABLE_NLS 1
3542_ACEOF
3543
3544
3545 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3546echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3547 # Look for .po and .gmo files in the source directory.
3548 CATALOGS=
3549 XLINGUAS=
3550 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3551 # If there aren't any .gmo files the shell will give us the
3552 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3553 # weeded out.
3554 case "$cat" in *\**)
3555 continue;;
3556 esac
3557 # The quadruple backslash is collapsed to a double backslash
3558 # by the backticks, then collapsed again by the double quotes,
3559 # leaving us with one backslash in the sed expression (right
3560 # before the dot that mustn't act as a wildcard).
3561 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3562 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3563 # The user is allowed to set LINGUAS to a list of languages to
3564 # install catalogs for. If it's empty that means "all of them."
3565 if test "x$LINGUAS" = x; then
3566 CATALOGS="$CATALOGS $cat"
3567 XLINGUAS="$XLINGUAS $lang"
3568 else
3569 case "$LINGUAS" in *$lang*)
3570 CATALOGS="$CATALOGS $cat"
3571 XLINGUAS="$XLINGUAS $lang"
3572 ;;
3573 esac
3574 fi
3575 done
3576 LINGUAS="$XLINGUAS"
3577 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3578echo "${ECHO_T}$LINGUAS" >&6
3579
3580
3581 DATADIRNAME=share
3582
3583 INSTOBJEXT=.mo
3584
3585 GENCAT=gencat
3586
3587 CATOBJEXT=.gmo
3588
3589fi
3590
3591localedir='${datadir}/locale'
3592
3593
3594if test x"$USE_NLS" = xyes; then
3595 CONFIG_ALL="$CONFIG_ALL all-po"
3596 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3597 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3598 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3599fi
3600
3601
3602 GNULIB_MEMMEM=0;
3603 GNULIB_MEMPCPY=0;
3604 GNULIB_MEMRCHR=0;
3605 GNULIB_STPCPY=0;
3606 GNULIB_STPNCPY=0;
3607 GNULIB_STRCHRNUL=0;
3608 GNULIB_STRDUP=0;
3609 GNULIB_STRNDUP=0;
3610 GNULIB_STRNLEN=0;
3611 GNULIB_STRPBRK=0;
3612 GNULIB_STRSEP=0;
3613 GNULIB_STRSTR=0;
3614 GNULIB_STRCASESTR=0;
3615 GNULIB_STRTOK_R=0;
3616 GNULIB_MBSLEN=0;
3617 GNULIB_MBSNLEN=0;
3618 GNULIB_MBSCHR=0;
3619 GNULIB_MBSRCHR=0;
3620 GNULIB_MBSSTR=0;
3621 GNULIB_MBSCASECMP=0;
3622 GNULIB_MBSNCASECMP=0;
3623 GNULIB_MBSPCASECMP=0;
3624 GNULIB_MBSCASESTR=0;
3625 GNULIB_MBSCSPN=0;
3626 GNULIB_MBSPBRK=0;
3627 GNULIB_MBSSPN=0;
3628 GNULIB_MBSSEP=0;
3629 GNULIB_MBSTOK_R=0;
3630 GNULIB_STRERROR=0;
3631 GNULIB_STRSIGNAL=0;
3632 HAVE_DECL_MEMMEM=1;
3633 HAVE_MEMPCPY=1;
3634 HAVE_DECL_MEMRCHR=1;
3635 HAVE_STPCPY=1;
3636 HAVE_STPNCPY=1;
3637 HAVE_STRCHRNUL=1;
3638 HAVE_DECL_STRDUP=1;
3639 HAVE_STRNDUP=1;
3640 HAVE_DECL_STRNDUP=1;
3641 HAVE_DECL_STRNLEN=1;
3642 HAVE_STRPBRK=1;
3643 HAVE_STRSEP=1;
3644 HAVE_STRCASESTR=1;
3645 HAVE_DECL_STRTOK_R=1;
3646 HAVE_DECL_STRERROR=1;
3647 HAVE_DECL_STRSIGNAL=1;
3648 REPLACE_STRERROR=0;
3649 REPLACE_STRSIGNAL=0;
3650 REPLACE_MEMMEM=0;
3651 REPLACE_STRCASESTR=0;
3652 REPLACE_STRSTR=0;
3653
3654
3655 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3656echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3657if test "${ac_cv_have_decl_memmem+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
3660 cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h. */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h. */
3666$ac_includes_default
3667int
3668main ()
3669{
3670#ifndef memmem
3671 char *p = (char *) memmem;
3672#endif
3673
3674 ;
3675 return 0;
3676}
3677_ACEOF
3678rm -f conftest.$ac_objext
3679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -z "$ac_c_werror_flag"
3688 || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_cv_have_decl_memmem=yes
3701else
3702 echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705ac_cv_have_decl_memmem=no
3706fi
3707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3708fi
3709echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3710echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3711if test $ac_cv_have_decl_memmem = yes; then
3712
3713cat >>confdefs.h <<_ACEOF
3714#define HAVE_DECL_MEMMEM 1
3715_ACEOF
3716
3717
3718else
3719 cat >>confdefs.h <<_ACEOF
3720#define HAVE_DECL_MEMMEM 0
3721_ACEOF
3722
3723
3724fi
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740for ac_func in memmem
3741do
3742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3743echo "$as_me:$LINENO: checking for $ac_func" >&5
3744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3745if eval "test \"\${$as_ac_var+set}\" = set"; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
3748 cat >conftest.$ac_ext <<_ACEOF
3749/* confdefs.h. */
3750_ACEOF
3751cat confdefs.h >>conftest.$ac_ext
3752cat >>conftest.$ac_ext <<_ACEOF
3753/* end confdefs.h. */
3754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3756#define $ac_func innocuous_$ac_func
3757
3758/* System header to define __stub macros and hopefully few prototypes,
3759 which can conflict with char $ac_func (); below.
3760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3761 <limits.h> exists even on freestanding compilers. */
3762
3763#ifdef __STDC__
3764# include <limits.h>
3765#else
3766# include <assert.h>
3767#endif
3768
3769#undef $ac_func
3770
3771/* Override any gcc2 internal prototype to avoid an error. */
3772#ifdef __cplusplus
3773extern "C"
3774{
3775#endif
3776/* We use char because int might match the return type of a gcc2
3777 builtin and then its argument prototype would still apply. */
3778char $ac_func ();
3779/* The GNU C library defines this for functions which it implements
3780 to always fail with ENOSYS. Some functions are actually named
3781 something starting with __ and the normal name is an alias. */
3782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3783choke me
3784#else
3785char (*f) () = $ac_func;
3786#endif
3787#ifdef __cplusplus
3788}
3789#endif
3790
3791int
3792main ()
3793{
3794return f != $ac_func;
3795 ;
3796 return 0;
3797}
3798_ACEOF
3799rm -f conftest.$ac_objext conftest$ac_exeext
3800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest$ac_exeext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 eval "$as_ac_var=yes"
3822else
3823 echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826eval "$as_ac_var=no"
3827fi
3828rm -f conftest.err conftest.$ac_objext \
3829 conftest$ac_exeext conftest.$ac_ext
3830fi
3831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3833if test `eval echo '${'$as_ac_var'}'` = yes; then
3834 cat >>confdefs.h <<_ACEOF
3835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3836_ACEOF
3837
3838else
3839
3840 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3841
3842fi
3843done
3844
3845
3846
3847 :
3848
3849
3850
3851
3852
3853 if test $ac_cv_have_decl_memmem = no; then
3854 HAVE_DECL_MEMMEM=0
3855 fi
3856 :
3857
3858
3859 echo "$as_me:$LINENO: checking for long long int" >&5
3860echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3861if test "${ac_cv_type_long_long_int+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 cat >conftest.$ac_ext <<_ACEOF
3865
3866 /* confdefs.h. */
3867_ACEOF
3868cat confdefs.h >>conftest.$ac_ext
3869cat >>conftest.$ac_ext <<_ACEOF
3870/* end confdefs.h. */
3871/* For now, do not test the preprocessor; as of 2007 there are too many
3872 implementations with broken preprocessors. Perhaps this can
3873 be revisited in 2012. In the meantime, code should not expect
3874 #if to work with literals wider than 32 bits. */
3875 /* Test literals. */
3876 long long int ll = 9223372036854775807ll;
3877 long long int nll = -9223372036854775807LL;
3878 unsigned long long int ull = 18446744073709551615ULL;
3879 /* Test constant expressions. */
3880 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3881 ? 1 : -1)];
3882 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3883 ? 1 : -1)];
3884 int i = 63;
3885int
3886main ()
3887{
3888/* Test availability of runtime routines for shift and division. */
3889 long long int llmax = 9223372036854775807ll;
3890 unsigned long long int ullmax = 18446744073709551615ull;
3891 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3892 | (llmax / ll) | (llmax % ll)
3893 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3894 | (ullmax / ull) | (ullmax % ull));
3895 ;
3896 return 0;
3897}
3898
3899_ACEOF
3900rm -f conftest.$ac_objext conftest$ac_exeext
3901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902 (eval $ac_link) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try='test -z "$ac_c_werror_flag"
3910 || test ! -s conftest.err'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; } &&
3916 { ac_try='test -s conftest$ac_exeext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 if test "$cross_compiling" = yes; then
3923 ac_cv_type_long_long_int=yes
3924else
3925 cat >conftest.$ac_ext <<_ACEOF
3926/* confdefs.h. */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h. */
3931#include <limits.h>
3932 #ifndef LLONG_MAX
3933 # define HALF \
3934 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3935 # define LLONG_MAX (HALF - 1 + HALF)
3936 #endif
3937int
3938main ()
3939{
3940long long int n = 1;
3941 int i;
3942 for (i = 0; ; i++)
3943 {
3944 long long int m = n << i;
3945 if (m >> i != n)
3946 return 1;
3947 if (LLONG_MAX / 2 < m)
3948 break;
3949 }
3950 return 0;
3951 ;
3952 return 0;
3953}
3954_ACEOF
3955rm -f conftest$ac_exeext
3956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_type_long_long_int=yes
3967else
3968 echo "$as_me: program exited with status $ac_status" >&5
3969echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972( exit $ac_status )
3973ac_cv_type_long_long_int=no
3974fi
3975rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3976fi
3977else
3978 echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981ac_cv_type_long_long_int=no
3982fi
3983rm -f conftest.err conftest.$ac_objext \
3984 conftest$ac_exeext conftest.$ac_ext
3985fi
3986echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
3987echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
3988 if test $ac_cv_type_long_long_int = yes; then
3989
3990cat >>confdefs.h <<\_ACEOF
3991#define HAVE_LONG_LONG_INT 1
3992_ACEOF
3993
3994 fi
3995
3996
3997 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
3998echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
3999if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 cat >conftest.$ac_ext <<_ACEOF
4003
4004 /* confdefs.h. */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h. */
4009/* For now, do not test the preprocessor; as of 2007 there are too many
4010 implementations with broken preprocessors. Perhaps this can
4011 be revisited in 2012. In the meantime, code should not expect
4012 #if to work with literals wider than 32 bits. */
4013 /* Test literals. */
4014 long long int ll = 9223372036854775807ll;
4015 long long int nll = -9223372036854775807LL;
4016 unsigned long long int ull = 18446744073709551615ULL;
4017 /* Test constant expressions. */
4018 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4019 ? 1 : -1)];
4020 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4021 ? 1 : -1)];
4022 int i = 63;
4023int
4024main ()
4025{
4026/* Test availability of runtime routines for shift and division. */
4027 long long int llmax = 9223372036854775807ll;
4028 unsigned long long int ullmax = 18446744073709551615ull;
4029 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4030 | (llmax / ll) | (llmax % ll)
4031 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4032 | (ullmax / ull) | (ullmax % ull));
4033 ;
4034 return 0;
4035}
4036
4037_ACEOF
4038rm -f conftest.$ac_objext conftest$ac_exeext
4039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4040 (eval $ac_link) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest$ac_exeext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 ac_cv_type_unsigned_long_long_int=yes
4061else
4062 echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065ac_cv_type_unsigned_long_long_int=no
4066fi
4067rm -f conftest.err conftest.$ac_objext \
4068 conftest$ac_exeext conftest.$ac_ext
4069fi
4070echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4071echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4072 if test $ac_cv_type_unsigned_long_long_int = yes; then
4073
4074cat >>confdefs.h <<\_ACEOF
4075#define HAVE_UNSIGNED_LONG_LONG_INT 1
4076_ACEOF
4077
4078 fi
4079
4080
4081
4082 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4083echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4084if test "${gl_cv_have_include_next+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087 rm -rf conftestd1 conftestd2
4088 mkdir conftestd1 conftestd2
4089 cat <<EOF > conftestd1/conftest.h
4090#define DEFINED_IN_CONFTESTD1
4091#include_next <conftest.h>
4092#ifdef DEFINED_IN_CONFTESTD2
4093int foo;
4094#else
4095#error "include_next doesn't work"
4096#endif
4097EOF
4098 cat <<EOF > conftestd2/conftest.h
4099#ifndef DEFINED_IN_CONFTESTD1
4100#error "include_next test doesn't work"
4101#endif
4102#define DEFINED_IN_CONFTESTD2
4103EOF
4104 save_CPPFLAGS="$CPPFLAGS"
4105 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4106 cat >conftest.$ac_ext <<_ACEOF
4107#include <conftest.h>
4108_ACEOF
4109rm -f conftest.$ac_objext
4110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag"
4119 || test ! -s conftest.err'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; } &&
4125 { ac_try='test -s conftest.$ac_objext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 gl_cv_have_include_next=yes
4132else
4133 echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136gl_cv_have_include_next=no
4137fi
4138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139 CPPFLAGS="$save_CPPFLAGS"
4140 rm -rf conftestd1 conftestd2
4141
4142fi
4143echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4144echo "${ECHO_T}$gl_cv_have_include_next" >&6
4145 if test $gl_cv_have_include_next = yes; then
4146
4147
4148cat >>confdefs.h <<\_ACEOF
4149#define HAVE_INCLUDE_NEXT 1
4150_ACEOF
4151
4152
4153 INCLUDE_NEXT=include_next
4154 else
4155 INCLUDE_NEXT=include
4156 fi
4157
4158
4159
4160
4161
4162
4163
4164for ac_header in $gl_header_list
4165do
4166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4167if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168 echo "$as_me:$LINENO: checking for $ac_header" >&5
4169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4170if eval "test \"\${$as_ac_Header+set}\" = set"; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172fi
4173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4175else
4176 # Is the header compilable?
4177echo "$as_me:$LINENO: checking $ac_header usability" >&5
4178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4179cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h. */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
4184/* end confdefs.h. */
4185$ac_includes_default
4186#include <$ac_header>
4187_ACEOF
4188rm -f conftest.$ac_objext
4189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_header_compiler=yes
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
4215ac_header_compiler=no
4216fi
4217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4219echo "${ECHO_T}$ac_header_compiler" >&6
4220
4221# Is the header present?
4222echo "$as_me:$LINENO: checking $ac_header presence" >&5
4223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4224cat >conftest.$ac_ext <<_ACEOF
4225/* confdefs.h. */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h. */
4230#include <$ac_header>
4231_ACEOF
4232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } >/dev/null; then
4240 if test -s conftest.err; then
4241 ac_cpp_err=$ac_c_preproc_warn_flag
4242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4243 else
4244 ac_cpp_err=
4245 fi
4246else
4247 ac_cpp_err=yes
4248fi
4249if test -z "$ac_cpp_err"; then
4250 ac_header_preproc=yes
4251else
4252 echo "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 ac_header_preproc=no
4256fi
4257rm -f conftest.err conftest.$ac_ext
4258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4259echo "${ECHO_T}$ac_header_preproc" >&6
4260
4261# So? What about this header?
4262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4263 yes:no: )
4264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4268 ac_header_preproc=yes
4269 ;;
4270 no:yes:* )
4271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4283 (
4284 cat <<\_ASBOX
4285## ------------------------------------------ ##
4286## Report this to the AC_PACKAGE_NAME lists. ##
4287## ------------------------------------------ ##
4288_ASBOX
4289 ) |
4290 sed "s/^/$as_me: WARNING: /" >&2
4291 ;;
4292esac
4293echo "$as_me:$LINENO: checking for $ac_header" >&5
4294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4295if eval "test \"\${$as_ac_Header+set}\" = set"; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298 eval "$as_ac_Header=\$ac_header_preproc"
4299fi
4300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4302
4303fi
4304if test `eval echo '${'$as_ac_Header'}'` = yes; then
4305 cat >>confdefs.h <<_ACEOF
4306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4307_ACEOF
4308
4309fi
4310
4311done
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4325echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4326if test "${ac_cv_c_restrict+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329 ac_cv_c_restrict=no
4330 # The order here caters to the fact that C++ does not require restrict.
4331 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4332 cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h. */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h. */
4338typedef int * int_ptr;
4339 int foo (int_ptr $ac_kw ip) {
4340 return ip[0];
4341 }
4342int
4343main ()
4344{
4345int s[1];
4346 int * $ac_kw t = s;
4347 t[0] = 0;
4348 return foo(t)
4349 ;
4350 return 0;
4351}
4352_ACEOF
4353rm -f conftest.$ac_objext
4354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355 (eval $ac_compile) 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -z "$ac_c_werror_flag"
4363 || test ! -s conftest.err'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; } &&
4369 { ac_try='test -s conftest.$ac_objext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 ac_cv_c_restrict=$ac_kw
4376else
4377 echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380fi
4381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4382 test "$ac_cv_c_restrict" != no && break
4383 done
4384
4385fi
4386echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4387echo "${ECHO_T}$ac_cv_c_restrict" >&6
4388
4389
4390 case $ac_cv_c_restrict in
4391 restrict) ;;
4392 no) cat >>confdefs.h <<\_ACEOF
4393#define restrict
4394_ACEOF
4395 ;;
4396 *) cat >>confdefs.h <<_ACEOF
4397#define restrict $ac_cv_c_restrict
4398_ACEOF
4399 ;;
4400 esac
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414 :
4415
4416
4417
4418
4419
4420
4421
4422 if test $gl_cv_have_include_next = yes; then
4423 gl_cv_next_string_h='<'string.h'>'
4424 else
4425 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4426echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4427if test "${gl_cv_next_string_h+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430
4431 if test $ac_cv_header_string_h = yes; then
4432 cat >conftest.$ac_ext <<_ACEOF
4433/* confdefs.h. */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4437/* end confdefs.h. */
4438#include <string.h>
4439
4440_ACEOF
4441 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442 sed -n '\#/string.h#{
4443 s#.*"\(.*/string.h\)".*#\1#
4444 s#^/[^/]#//&#
4445 p
4446 q
4447 }'`'"'
4448 else
4449 gl_cv_next_string_h='<'string.h'>'
4450 fi
4451
4452fi
4453echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4454echo "${ECHO_T}$gl_cv_next_string_h" >&6
4455 fi
4456 NEXT_STRING_H=$gl_cv_next_string_h
4457
4458
4459
4460
4461
4462 GNULIB_WCWIDTH=0;
4463 HAVE_DECL_WCWIDTH=1;
4464 REPLACE_WCWIDTH=0;
4465 WCHAR_H=
4466
4467
4468
4469
4470
4471if false; then
4472 GL_COND_LIBTOOL_TRUE=
4473 GL_COND_LIBTOOL_FALSE='#'
4474else
4475 GL_COND_LIBTOOL_TRUE='#'
4476 GL_COND_LIBTOOL_FALSE=
4477fi
4478
4479 gl_cond_libtool=false
4480 gl_libdeps=
4481 gl_ltlibdeps=
4482
4483
4484
4485 gl_source_base='gnulib'
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495for ac_func in memchr
4496do
4497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4498echo "$as_me:$LINENO: checking for $ac_func" >&5
4499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4500if eval "test \"\${$as_ac_var+set}\" = set"; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503 cat >conftest.$ac_ext <<_ACEOF
4504/* confdefs.h. */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h. */
4509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4511#define $ac_func innocuous_$ac_func
4512
4513/* System header to define __stub macros and hopefully few prototypes,
4514 which can conflict with char $ac_func (); below.
4515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4516 <limits.h> exists even on freestanding compilers. */
4517
4518#ifdef __STDC__
4519# include <limits.h>
4520#else
4521# include <assert.h>
4522#endif
4523
4524#undef $ac_func
4525
4526/* Override any gcc2 internal prototype to avoid an error. */
4527#ifdef __cplusplus
4528extern "C"
4529{
4530#endif
4531/* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */
4533char $ac_func ();
4534/* The GNU C library defines this for functions which it implements
4535 to always fail with ENOSYS. Some functions are actually named
4536 something starting with __ and the normal name is an alias. */
4537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4538choke me
4539#else
4540char (*f) () = $ac_func;
4541#endif
4542#ifdef __cplusplus
4543}
4544#endif
4545
4546int
4547main ()
4548{
4549return f != $ac_func;
4550 ;
4551 return 0;
4552}
4553_ACEOF
4554rm -f conftest.$ac_objext conftest$ac_exeext
4555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4556 (eval $ac_link) 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag"
4564 || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest$ac_exeext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 eval "$as_ac_var=yes"
4577else
4578 echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581eval "$as_ac_var=no"
4582fi
4583rm -f conftest.err conftest.$ac_objext \
4584 conftest$ac_exeext conftest.$ac_ext
4585fi
4586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4588if test `eval echo '${'$as_ac_var'}'` = yes; then
4589 cat >>confdefs.h <<_ACEOF
4590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4591_ACEOF
4592
4593else
4594
4595 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4596
4597fi
4598done
4599
4600
4601 if test $ac_cv_func_memchr = no; then
4602
4603
4604for ac_header in bp-sym.h
4605do
4606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4607if eval "test \"\${$as_ac_Header+set}\" = set"; then
4608 echo "$as_me:$LINENO: checking for $ac_header" >&5
4609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4610if eval "test \"\${$as_ac_Header+set}\" = set"; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612fi
4613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4615else
4616 # Is the header compilable?
4617echo "$as_me:$LINENO: checking $ac_header usability" >&5
4618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4619cat >conftest.$ac_ext <<_ACEOF
4620/* confdefs.h. */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h. */
4625$ac_includes_default
4626#include <$ac_header>
4627_ACEOF
4628rm -f conftest.$ac_objext
4629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -z "$ac_c_werror_flag"
4638 || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_header_compiler=yes
4651else
4652 echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
4655ac_header_compiler=no
4656fi
4657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4658echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4659echo "${ECHO_T}$ac_header_compiler" >&6
4660
4661# Is the header present?
4662echo "$as_me:$LINENO: checking $ac_header presence" >&5
4663echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4664cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h. */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h. */
4670#include <$ac_header>
4671_ACEOF
4672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } >/dev/null; then
4680 if test -s conftest.err; then
4681 ac_cpp_err=$ac_c_preproc_warn_flag
4682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4683 else
4684 ac_cpp_err=
4685 fi
4686else
4687 ac_cpp_err=yes
4688fi
4689if test -z "$ac_cpp_err"; then
4690 ac_header_preproc=yes
4691else
4692 echo "$as_me: failed program was:" >&5
4693sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 ac_header_preproc=no
4696fi
4697rm -f conftest.err conftest.$ac_ext
4698echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4699echo "${ECHO_T}$ac_header_preproc" >&6
4700
4701# So? What about this header?
4702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4703 yes:no: )
4704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4705echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4707echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4708 ac_header_preproc=yes
4709 ;;
4710 no:yes:* )
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4712echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4714echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4716echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4718echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4720echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4722echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4723 (
4724 cat <<\_ASBOX
4725## ------------------------------------------ ##
4726## Report this to the AC_PACKAGE_NAME lists. ##
4727## ------------------------------------------ ##
4728_ASBOX
4729 ) |
4730 sed "s/^/$as_me: WARNING: /" >&2
4731 ;;
4732esac
4733echo "$as_me:$LINENO: checking for $ac_header" >&5
4734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4735if eval "test \"\${$as_ac_Header+set}\" = set"; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738 eval "$as_ac_Header=\$ac_header_preproc"
4739fi
4740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4742
4743fi
4744if test `eval echo '${'$as_ac_Header'}'` = yes; then
4745 cat >>confdefs.h <<_ACEOF
4746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4747_ACEOF
4748
4749fi
4750
4751done
4752
4753
4754 fi
4755
4756
4757 echo "$as_me:$LINENO: checking for working memcmp" >&5
4758echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4759if test "${ac_cv_func_memcmp_working+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761else
4762 if test "$cross_compiling" = yes; then
4763 ac_cv_func_memcmp_working=no
4764else
4765 cat >conftest.$ac_ext <<_ACEOF
4766/* confdefs.h. */
4767_ACEOF
4768cat confdefs.h >>conftest.$ac_ext
4769cat >>conftest.$ac_ext <<_ACEOF
4770/* end confdefs.h. */
4771$ac_includes_default
4772int
4773main ()
4774{
4775
4776 /* Some versions of memcmp are not 8-bit clean. */
4777 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4778 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4779 exit (1);
4780
4781 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4782 or more and with at least one buffer not starting on a 4-byte boundary.
4783 William Lewis provided this test program. */
4784 {
4785 char foo[21];
4786 char bar[21];
4787 int i;
4788 for (i = 0; i < 4; i++)
4789 {
4790 char *a = foo + i;
4791 char *b = bar + i;
4792 strcpy (a, "--------01111111");
4793 strcpy (b, "--------10000000");
4794 if (memcmp (a, b, 16) >= 0)
4795 exit (1);
4796 }
4797 exit (0);
4798 }
4799
4800 ;
4801 return 0;
4802}
4803_ACEOF
4804rm -f conftest$ac_exeext
4805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806 (eval $ac_link) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_cv_func_memcmp_working=yes
4816else
4817 echo "$as_me: program exited with status $ac_status" >&5
4818echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821( exit $ac_status )
4822ac_cv_func_memcmp_working=no
4823fi
4824rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4825fi
4826fi
4827echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4828echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4829test $ac_cv_func_memcmp_working = no &&
4830
4831
4832
4833
4834
4835
4836 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4837
4838
4839 if test $ac_cv_func_memcmp_working = no; then
4840
4841cat >>confdefs.h <<\_ACEOF
4842#define memcmp rpl_memcmp
4843_ACEOF
4844
4845 :
4846 fi
4847
4848
4849
4850 if test $ac_cv_have_decl_memmem = yes; then
4851 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4852echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4853if test "${gl_cv_func_memmem_works+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 if test "$cross_compiling" = yes; then
4857 gl_cv_func_memmem_works="guessing no"
4858else
4859 cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h. */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h. */
4865
4866#include <string.h> /* for memmem */
4867#include <stdlib.h> /* for malloc */
4868#include <unistd.h> /* for alarm */
4869
4870int
4871main ()
4872{
4873size_t m = 1000000;
4874 char *haystack = (char *) malloc (2 * m + 1);
4875 char *needle = (char *) malloc (m + 1);
4876 void *result = 0;
4877 /* Failure to compile this test due to missing alarm is okay,
4878 since all such platforms (mingw) also lack memmem. */
4879 alarm (5);
4880 /* Check for quadratic performance. */
4881 if (haystack && needle)
4882 {
4883 memset (haystack, 'A', 2 * m);
4884 haystack[2 * m] = 'B';
4885 memset (needle, 'A', m);
4886 needle[m] = 'B';
4887 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4888 }
4889 /* Check for empty needle behavior. */
4890 return !result || !memmem ("a", 1, 0, 0);
4891 ;
4892 return 0;
4893}
4894_ACEOF
4895rm -f conftest$ac_exeext
4896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 gl_cv_func_memmem_works=yes
4907else
4908 echo "$as_me: program exited with status $ac_status" >&5
4909echo "$as_me: failed program was:" >&5
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
4912( exit $ac_status )
4913gl_cv_func_memmem_works=no
4914fi
4915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4916fi
4917fi
4918echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4919echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4920 if test "$gl_cv_func_memmem_works" != yes; then
4921 REPLACE_MEMMEM=1
4922
4923
4924
4925
4926
4927
4928
4929 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4930
4931 fi
4932 fi
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946for ac_func in memmem
4947do
4948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4949echo "$as_me:$LINENO: checking for $ac_func" >&5
4950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4951if eval "test \"\${$as_ac_var+set}\" = set"; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953else
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4962#define $ac_func innocuous_$ac_func
4963
4964/* System header to define __stub macros and hopefully few prototypes,
4965 which can conflict with char $ac_func (); below.
4966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967 <limits.h> exists even on freestanding compilers. */
4968
4969#ifdef __STDC__
4970# include <limits.h>
4971#else
4972# include <assert.h>
4973#endif
4974
4975#undef $ac_func
4976
4977/* Override any gcc2 internal prototype to avoid an error. */
4978#ifdef __cplusplus
4979extern "C"
4980{
4981#endif
4982/* We use char because int might match the return type of a gcc2
4983 builtin and then its argument prototype would still apply. */
4984char $ac_func ();
4985/* The GNU C library defines this for functions which it implements
4986 to always fail with ENOSYS. Some functions are actually named
4987 something starting with __ and the normal name is an alias. */
4988#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4989choke me
4990#else
4991char (*f) () = $ac_func;
4992#endif
4993#ifdef __cplusplus
4994}
4995#endif
4996
4997int
4998main ()
4999{
5000return f != $ac_func;
5001 ;
5002 return 0;
5003}
5004_ACEOF
5005rm -f conftest.$ac_objext conftest$ac_exeext
5006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5007 (eval $ac_link) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -z "$ac_c_werror_flag"
5015 || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest$ac_exeext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 eval "$as_ac_var=yes"
5028else
5029 echo "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032eval "$as_ac_var=no"
5033fi
5034rm -f conftest.err conftest.$ac_objext \
5035 conftest$ac_exeext conftest.$ac_ext
5036fi
5037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5038echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5039if test `eval echo '${'$as_ac_var'}'` = yes; then
5040 cat >>confdefs.h <<_ACEOF
5041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5042_ACEOF
5043
5044else
5045
5046 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5047
5048fi
5049done
5050
5051
5052
5053 :
5054
5055
5056
5057
5058
5059 if test $ac_cv_have_decl_memmem = no; then
5060 HAVE_DECL_MEMMEM=0
5061 fi
5062 :
5063
5064
5065
5066 GNULIB_MEMMEM=1
5067
5068
5069
5070
5071 if test $ac_cv_type_long_long_int = yes; then
5072 HAVE_LONG_LONG_INT=1
5073 else
5074 HAVE_LONG_LONG_INT=0
5075 fi
5076
5077
5078 if test $ac_cv_type_unsigned_long_long_int = yes; then
5079 HAVE_UNSIGNED_LONG_LONG_INT=1
5080 else
5081 HAVE_UNSIGNED_LONG_LONG_INT=0
5082 fi
5083
5084
5085 if test $ac_cv_header_inttypes_h = yes; then
5086 HAVE_INTTYPES_H=1
5087 else
5088 HAVE_INTTYPES_H=0
5089 fi
5090
5091
5092 if test $ac_cv_header_sys_types_h = yes; then
5093 HAVE_SYS_TYPES_H=1
5094 else
5095 HAVE_SYS_TYPES_H=0
5096 fi
5097
5098
5099
5100
5101
5102 :
5103
5104
5105
5106
5107
5108
5109
5110 if test $gl_cv_have_include_next = yes; then
5111 gl_cv_next_stdint_h='<'stdint.h'>'
5112 else
5113 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5114echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5115if test "${gl_cv_next_stdint_h+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117else
5118
5119 if test $ac_cv_header_stdint_h = yes; then
5120 cat >conftest.$ac_ext <<_ACEOF
5121/* confdefs.h. */
5122_ACEOF
5123cat confdefs.h >>conftest.$ac_ext
5124cat >>conftest.$ac_ext <<_ACEOF
5125/* end confdefs.h. */
5126#include <stdint.h>
5127
5128_ACEOF
5129 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5130 sed -n '\#/stdint.h#{
5131 s#.*"\(.*/stdint.h\)".*#\1#
5132 s#^/[^/]#//&#
5133 p
5134 q
5135 }'`'"'
5136 else
5137 gl_cv_next_stdint_h='<'stdint.h'>'
5138 fi
5139
5140fi
5141echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5142echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5143 fi
5144 NEXT_STDINT_H=$gl_cv_next_stdint_h
5145
5146
5147
5148 if test $ac_cv_header_stdint_h = yes; then
5149 HAVE_STDINT_H=1
5150 else
5151 HAVE_STDINT_H=0
5152 fi
5153
5154
5155 if test $ac_cv_header_stdint_h = yes; then
5156 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5157echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5158if test "${gl_cv_header_working_stdint_h+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161 gl_cv_header_working_stdint_h=no
5162 cat >conftest.$ac_ext <<_ACEOF
5163
5164 /* confdefs.h. */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>conftest.$ac_ext <<_ACEOF
5168/* end confdefs.h. */
5169
5170#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5171#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5172#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5173#include <stdint.h>
5174/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5175#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5176#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5177#endif
5178
5179
5180 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5181 included before <wchar.h>. */
5182 #include <stddef.h>
5183 #include <signal.h>
5184 #if HAVE_WCHAR_H
5185 # include <stdio.h>
5186 # include <time.h>
5187 # include <wchar.h>
5188 #endif
5189
5190
5191#ifdef INT8_MAX
5192int8_t a1 = INT8_MAX;
5193int8_t a1min = INT8_MIN;
5194#endif
5195#ifdef INT16_MAX
5196int16_t a2 = INT16_MAX;
5197int16_t a2min = INT16_MIN;
5198#endif
5199#ifdef INT32_MAX
5200int32_t a3 = INT32_MAX;
5201int32_t a3min = INT32_MIN;
5202#endif
5203#ifdef INT64_MAX
5204int64_t a4 = INT64_MAX;
5205int64_t a4min = INT64_MIN;
5206#endif
5207#ifdef UINT8_MAX
5208uint8_t b1 = UINT8_MAX;
5209#else
5210typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5211#endif
5212#ifdef UINT16_MAX
5213uint16_t b2 = UINT16_MAX;
5214#endif
5215#ifdef UINT32_MAX
5216uint32_t b3 = UINT32_MAX;
5217#endif
5218#ifdef UINT64_MAX
5219uint64_t b4 = UINT64_MAX;
5220#endif
5221int_least8_t c1 = INT8_C (0x7f);
5222int_least8_t c1max = INT_LEAST8_MAX;
5223int_least8_t c1min = INT_LEAST8_MIN;
5224int_least16_t c2 = INT16_C (0x7fff);
5225int_least16_t c2max = INT_LEAST16_MAX;
5226int_least16_t c2min = INT_LEAST16_MIN;
5227int_least32_t c3 = INT32_C (0x7fffffff);
5228int_least32_t c3max = INT_LEAST32_MAX;
5229int_least32_t c3min = INT_LEAST32_MIN;
5230int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5231int_least64_t c4max = INT_LEAST64_MAX;
5232int_least64_t c4min = INT_LEAST64_MIN;
5233uint_least8_t d1 = UINT8_C (0xff);
5234uint_least8_t d1max = UINT_LEAST8_MAX;
5235uint_least16_t d2 = UINT16_C (0xffff);
5236uint_least16_t d2max = UINT_LEAST16_MAX;
5237uint_least32_t d3 = UINT32_C (0xffffffff);
5238uint_least32_t d3max = UINT_LEAST32_MAX;
5239uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5240uint_least64_t d4max = UINT_LEAST64_MAX;
5241int_fast8_t e1 = INT_FAST8_MAX;
5242int_fast8_t e1min = INT_FAST8_MIN;
5243int_fast16_t e2 = INT_FAST16_MAX;
5244int_fast16_t e2min = INT_FAST16_MIN;
5245int_fast32_t e3 = INT_FAST32_MAX;
5246int_fast32_t e3min = INT_FAST32_MIN;
5247int_fast64_t e4 = INT_FAST64_MAX;
5248int_fast64_t e4min = INT_FAST64_MIN;
5249uint_fast8_t f1 = UINT_FAST8_MAX;
5250uint_fast16_t f2 = UINT_FAST16_MAX;
5251uint_fast32_t f3 = UINT_FAST32_MAX;
5252uint_fast64_t f4 = UINT_FAST64_MAX;
5253#ifdef INTPTR_MAX
5254intptr_t g = INTPTR_MAX;
5255intptr_t gmin = INTPTR_MIN;
5256#endif
5257#ifdef UINTPTR_MAX
5258uintptr_t h = UINTPTR_MAX;
5259#endif
5260intmax_t i = INTMAX_MAX;
5261uintmax_t j = UINTMAX_MAX;
5262
5263#include <limits.h> /* for CHAR_BIT */
5264#define TYPE_MINIMUM(t) \
5265 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5266#define TYPE_MAXIMUM(t) \
5267 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5268struct s {
5269 int check_PTRDIFF:
5270 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5271 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5272 ? 1 : -1;
5273 /* Detect bug in FreeBSD 6.0 / ia64. */
5274 int check_SIG_ATOMIC:
5275 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5276 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5277 ? 1 : -1;
5278 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5279 int check_WCHAR:
5280 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5281 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5282 ? 1 : -1;
5283 /* Detect bug in mingw. */
5284 int check_WINT:
5285 WINT_MIN == TYPE_MINIMUM (wint_t)
5286 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5287 ? 1 : -1;
5288
5289 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5290 int check_UINT8_C:
5291 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5292 int check_UINT16_C:
5293 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5294
5295 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5296#ifdef UINT8_MAX
5297 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5298#endif
5299#ifdef UINT16_MAX
5300 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5301#endif
5302#ifdef UINT32_MAX
5303 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5304#endif
5305#ifdef UINT64_MAX
5306 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5307#endif
5308 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5309 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5310 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5311 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5312 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5313 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5314 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5315 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5316 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5317 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5318 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5319};
5320
5321int
5322main ()
5323{
5324
5325 ;
5326 return 0;
5327}
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 (eval $ac_try) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 gl_cv_header_working_stdint_h=yes
5352else
5353 echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356fi
5357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358fi
5359echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5360echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5361 fi
5362 if test "$gl_cv_header_working_stdint_h" = yes; then
5363 STDINT_H=
5364 else
5365
5366
5367for ac_header in sys/inttypes.h sys/bitypes.h
5368do
5369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5370if eval "test \"\${$as_ac_Header+set}\" = set"; then
5371 echo "$as_me:$LINENO: checking for $ac_header" >&5
5372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5373if eval "test \"\${$as_ac_Header+set}\" = set"; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375fi
5376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5378else
5379 # Is the header compilable?
5380echo "$as_me:$LINENO: checking $ac_header usability" >&5
5381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5382cat >conftest.$ac_ext <<_ACEOF
5383/* confdefs.h. */
5384_ACEOF
5385cat confdefs.h >>conftest.$ac_ext
5386cat >>conftest.$ac_ext <<_ACEOF
5387/* end confdefs.h. */
5388$ac_includes_default
5389#include <$ac_header>
5390_ACEOF
5391rm -f conftest.$ac_objext
5392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag"
5401 || test ! -s conftest.err'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 (eval $ac_try) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_header_compiler=yes
5414else
5415 echo "$as_me: failed program was:" >&5
5416sed 's/^/| /' conftest.$ac_ext >&5
5417
5418ac_header_compiler=no
5419fi
5420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422echo "${ECHO_T}$ac_header_compiler" >&6
5423
5424# Is the header present?
5425echo "$as_me:$LINENO: checking $ac_header presence" >&5
5426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5427cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433#include <$ac_header>
5434_ACEOF
5435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } >/dev/null; then
5443 if test -s conftest.err; then
5444 ac_cpp_err=$ac_c_preproc_warn_flag
5445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5446 else
5447 ac_cpp_err=
5448 fi
5449else
5450 ac_cpp_err=yes
5451fi
5452if test -z "$ac_cpp_err"; then
5453 ac_header_preproc=yes
5454else
5455 echo "$as_me: failed program was:" >&5
5456sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_header_preproc=no
5459fi
5460rm -f conftest.err conftest.$ac_ext
5461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5462echo "${ECHO_T}$ac_header_preproc" >&6
5463
5464# So? What about this header?
5465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5466 yes:no: )
5467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5471 ac_header_preproc=yes
5472 ;;
5473 no:yes:* )
5474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5486 (
5487 cat <<\_ASBOX
5488## ------------------------------------------ ##
5489## Report this to the AC_PACKAGE_NAME lists. ##
5490## ------------------------------------------ ##
5491_ASBOX
5492 ) |
5493 sed "s/^/$as_me: WARNING: /" >&2
5494 ;;
5495esac
5496echo "$as_me:$LINENO: checking for $ac_header" >&5
5497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5498if eval "test \"\${$as_ac_Header+set}\" = set"; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501 eval "$as_ac_Header=\$ac_header_preproc"
5502fi
5503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5505
5506fi
5507if test `eval echo '${'$as_ac_Header'}'` = yes; then
5508 cat >>confdefs.h <<_ACEOF
5509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5510_ACEOF
5511
5512fi
5513
5514done
5515
5516 if test $ac_cv_header_sys_inttypes_h = yes; then
5517 HAVE_SYS_INTTYPES_H=1
5518 else
5519 HAVE_SYS_INTTYPES_H=0
5520 fi
5521
5522 if test $ac_cv_header_sys_bitypes_h = yes; then
5523 HAVE_SYS_BITYPES_H=1
5524 else
5525 HAVE_SYS_BITYPES_H=0
5526 fi
5527
5528
5529
5530 :
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5546 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5547echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5548if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551 if test "$cross_compiling" = yes; then
5552 # Depending upon the size, compute the lo and hi bounds.
5553cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h. */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h. */
5559
5560 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5561 included before <wchar.h>. */
5562 #include <stddef.h>
5563 #include <signal.h>
5564 #if HAVE_WCHAR_H
5565 # include <stdio.h>
5566 # include <time.h>
5567 # include <wchar.h>
5568 #endif
5569
5570#include <limits.h>
5571int
5572main ()
5573{
5574static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5575test_array [0] = 0
5576
5577 ;
5578 return 0;
5579}
5580_ACEOF
5581rm -f conftest.$ac_objext
5582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag"
5591 || test ! -s conftest.err'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_lo=0 ac_mid=0
5604 while :; do
5605 cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h. */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h. */
5611
5612 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5613 included before <wchar.h>. */
5614 #include <stddef.h>
5615 #include <signal.h>
5616 #if HAVE_WCHAR_H
5617 # include <stdio.h>
5618 # include <time.h>
5619 # include <wchar.h>
5620 #endif
5621
5622#include <limits.h>
5623int
5624main ()
5625{
5626static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5627test_array [0] = 0
5628
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633rm -f conftest.$ac_objext
5634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try='test -z "$ac_c_werror_flag"
5643 || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_hi=$ac_mid; break
5656else
5657 echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
5660ac_lo=`expr $ac_mid + 1`
5661 if test $ac_lo -le $ac_mid; then
5662 ac_lo= ac_hi=
5663 break
5664 fi
5665 ac_mid=`expr 2 '*' $ac_mid + 1`
5666fi
5667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668 done
5669else
5670 echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h. */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h. */
5679
5680 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5681 included before <wchar.h>. */
5682 #include <stddef.h>
5683 #include <signal.h>
5684 #if HAVE_WCHAR_H
5685 # include <stdio.h>
5686 # include <time.h>
5687 # include <wchar.h>
5688 #endif
5689
5690#include <limits.h>
5691int
5692main ()
5693{
5694static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5695test_array [0] = 0
5696
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext
5702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_hi=-1 ac_mid=-1
5724 while :; do
5725 cat >conftest.$ac_ext <<_ACEOF
5726/* confdefs.h. */
5727_ACEOF
5728cat confdefs.h >>conftest.$ac_ext
5729cat >>conftest.$ac_ext <<_ACEOF
5730/* end confdefs.h. */
5731
5732 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5733 included before <wchar.h>. */
5734 #include <stddef.h>
5735 #include <signal.h>
5736 #if HAVE_WCHAR_H
5737 # include <stdio.h>
5738 # include <time.h>
5739 # include <wchar.h>
5740 #endif
5741
5742#include <limits.h>
5743int
5744main ()
5745{
5746static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5747test_array [0] = 0
5748
5749 ;
5750 return 0;
5751}
5752_ACEOF
5753rm -f conftest.$ac_objext
5754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_lo=$ac_mid; break
5776else
5777 echo "$as_me: failed program was:" >&5
5778sed 's/^/| /' conftest.$ac_ext >&5
5779
5780ac_hi=`expr '(' $ac_mid ')' - 1`
5781 if test $ac_mid -le $ac_hi; then
5782 ac_lo= ac_hi=
5783 break
5784 fi
5785 ac_mid=`expr 2 '*' $ac_mid`
5786fi
5787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788 done
5789else
5790 echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793ac_lo= ac_hi=
5794fi
5795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5796fi
5797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5798# Binary search between lo and hi bounds.
5799while test "x$ac_lo" != "x$ac_hi"; do
5800 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5801 cat >conftest.$ac_ext <<_ACEOF
5802/* confdefs.h. */
5803_ACEOF
5804cat confdefs.h >>conftest.$ac_ext
5805cat >>conftest.$ac_ext <<_ACEOF
5806/* end confdefs.h. */
5807
5808 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5809 included before <wchar.h>. */
5810 #include <stddef.h>
5811 #include <signal.h>
5812 #if HAVE_WCHAR_H
5813 # include <stdio.h>
5814 # include <time.h>
5815 # include <wchar.h>
5816 #endif
5817
5818#include <limits.h>
5819int
5820main ()
5821{
5822static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5823test_array [0] = 0
5824
5825 ;
5826 return 0;
5827}
5828_ACEOF
5829rm -f conftest.$ac_objext
5830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_hi=$ac_mid
5852else
5853 echo "$as_me: failed program was:" >&5
5854sed 's/^/| /' conftest.$ac_ext >&5
5855
5856ac_lo=`expr '(' $ac_mid ')' + 1`
5857fi
5858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859done
5860case $ac_lo in
5861?*) result=$ac_lo;;
5862'') result=unknown ;;
5863esac
5864else
5865 if test "$cross_compiling" = yes; then
5866 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5867See \`config.log' for more details." >&5
5868echo "$as_me: error: cannot run test program while cross compiling
5869See \`config.log' for more details." >&2;}
5870 { (exit 1); exit 1; }; }
5871else
5872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
5878
5879 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5880 included before <wchar.h>. */
5881 #include <stddef.h>
5882 #include <signal.h>
5883 #if HAVE_WCHAR_H
5884 # include <stdio.h>
5885 # include <time.h>
5886 # include <wchar.h>
5887 #endif
5888
5889#include <limits.h>
5890long longval () { return sizeof ($gltype) * CHAR_BIT; }
5891unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5892#include <stdio.h>
5893#include <stdlib.h>
5894int
5895main ()
5896{
5897
5898 FILE *f = fopen ("conftest.val", "w");
5899 if (! f)
5900 exit (1);
5901 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5902 {
5903 long i = longval ();
5904 if (i != (sizeof ($gltype) * CHAR_BIT))
5905 exit (1);
5906 fprintf (f, "%ld\n", i);
5907 }
5908 else
5909 {
5910 unsigned long i = ulongval ();
5911 if (i != (sizeof ($gltype) * CHAR_BIT))
5912 exit (1);
5913 fprintf (f, "%lu\n", i);
5914 }
5915 exit (ferror (f) || fclose (f) != 0);
5916
5917 ;
5918 return 0;
5919}
5920_ACEOF
5921rm -f conftest$ac_exeext
5922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 result=`cat conftest.val`
5933else
5934 echo "$as_me: program exited with status $ac_status" >&5
5935echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938( exit $ac_status )
5939result=unknown
5940fi
5941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5942fi
5943fi
5944rm -f conftest.val
5945 eval gl_cv_bitsizeof_${gltype}=\$result
c906108c 5946
783e057b
DJ
5947fi
5948echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5949echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5950 eval result=\$gl_cv_bitsizeof_${gltype}
5951 if test $result = unknown; then
5952 result=0
5953 fi
5954 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5955 cat >>confdefs.h <<_ACEOF
5956#define BITSIZEOF_${GLTYPE} $result
5957_ACEOF
c906108c 5958
783e057b
DJ
5959 eval BITSIZEOF_${GLTYPE}=\$result
5960 done
c906108c 5961
c906108c 5962
c906108c 5963
bec39cab 5964
3841debe 5965
783e057b
DJ
5966
5967
5968 for gltype in sig_atomic_t wchar_t wint_t ; do
5969 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5970echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5971if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973else
5974 cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h. */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h. */
5980
5981 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5982 included before <wchar.h>. */
5983 #include <stddef.h>
5984 #include <signal.h>
5985 #if HAVE_WCHAR_H
5986 # include <stdio.h>
5987 # include <time.h>
5988 # include <wchar.h>
5989 #endif
5990
5991 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5992int
5993main ()
5994{
5995
5996 ;
5997 return 0;
5998}
5999_ACEOF
6000rm -f conftest.$ac_objext
6001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 result=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027result=no
20e95c23 6028fi
783e057b
DJ
6029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 eval gl_cv_type_${gltype}_signed=\$result
6031
6032fi
6033echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6034echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6035 eval result=\$gl_cv_type_${gltype}_signed
6036 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6037 if test "$result" = yes; then
6038 cat >>confdefs.h <<_ACEOF
6039#define HAVE_SIGNED_${GLTYPE} 1
6040_ACEOF
6041
6042 eval HAVE_SIGNED_${GLTYPE}=1
6043 else
6044 eval HAVE_SIGNED_${GLTYPE}=0
6045 fi
6046 done
6047
6048
6049 gl_cv_type_ptrdiff_t_signed=yes
6050 gl_cv_type_size_t_signed=no
6051
6052
6053
6054
6055
6056
6057
6058 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6059 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6060echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6061if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6063else
783e057b
DJ
6064 eval gl_cv_type_${gltype}_suffix=no
6065 eval result=\$gl_cv_type_${gltype}_signed
6066 if test "$result" = yes; then
6067 glsufu=
6068 else
6069 glsufu=u
6070 fi
6071 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6072 case $glsuf in
6073 '') gltype1='int';;
6074 l) gltype1='long int';;
6075 ll) gltype1='long long int';;
6076 i64) gltype1='__int64';;
6077 u) gltype1='unsigned int';;
6078 ul) gltype1='unsigned long int';;
6079 ull) gltype1='unsigned long long int';;
6080 ui64)gltype1='unsigned __int64';;
6081 esac
6082 cat >conftest.$ac_ext <<_ACEOF
6083/* confdefs.h. */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h. */
6088
6089 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6090 included before <wchar.h>. */
6091 #include <stddef.h>
6092 #include <signal.h>
6093 #if HAVE_WCHAR_H
6094 # include <stdio.h>
6095 # include <time.h>
6096 # include <wchar.h>
6097 #endif
6098
6099 extern $gltype foo;
6100 extern $gltype1 foo;
6101int
6102main ()
6103{
6104
6105 ;
6106 return 0;
6107}
6108_ACEOF
6109rm -f conftest.$ac_objext
6110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111 (eval $ac_compile) 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try='test -z "$ac_c_werror_flag"
6119 || test ! -s conftest.err'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 (eval $ac_try) 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; } &&
6125 { ac_try='test -s conftest.$ac_objext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 eval gl_cv_type_${gltype}_suffix=\$glsuf
6132else
6133 echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136fi
6137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6138 eval result=\$gl_cv_type_${gltype}_suffix
6139 test "$result" != no && break
6140 done
6141fi
6142echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6143echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6144 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6145 eval result=\$gl_cv_type_${gltype}_suffix
6146 test "$result" = no && result=
6147 eval ${GLTYPE}_SUFFIX=\$result
6148 cat >>confdefs.h <<_ACEOF
6149#define ${GLTYPE}_SUFFIX $result
6150_ACEOF
6151
6152 done
6153
6154
6155
6156 STDINT_H=stdint.h
6157 fi
6158
6159
6160
6161
6162
6163
6164
6165 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6166echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6167if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170 cat >conftest.$ac_ext <<_ACEOF
6171#include <wchar.h>
6172wchar_t w;
6173_ACEOF
6174rm -f conftest.$ac_objext
6175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 gl_cv_header_wchar_h_standalone=yes
6197else
6198 echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201gl_cv_header_wchar_h_standalone=no
6202fi
6203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204fi
6205echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6206echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6207 if test $gl_cv_header_wchar_h_standalone != yes; then
6208 WCHAR_H=wchar.h
6209 fi
6210
6211
6212 :
6213
6214
6215
6216
6217
6218 if test $ac_cv_header_wchar_h = yes; then
6219 HAVE_WCHAR_H=1
6220 else
6221 HAVE_WCHAR_H=0
6222 fi
6223
6224
6225
6226
6227 :
6228
6229
6230
6231
6232
6233
6234
6235 if test $gl_cv_have_include_next = yes; then
6236 gl_cv_next_wchar_h='<'wchar.h'>'
6237 else
6238 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6239echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6240if test "${gl_cv_next_wchar_h+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243
6244 if test $ac_cv_header_wchar_h = yes; then
6245 cat >conftest.$ac_ext <<_ACEOF
6246/* confdefs.h. */
6247_ACEOF
6248cat confdefs.h >>conftest.$ac_ext
6249cat >>conftest.$ac_ext <<_ACEOF
6250/* end confdefs.h. */
6251#include <wchar.h>
6252
6253_ACEOF
6254 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6255 sed -n '\#/wchar.h#{
6256 s#.*"\(.*/wchar.h\)".*#\1#
6257 s#^/[^/]#//&#
6258 p
6259 q
6260 }'`'"'
6261 else
6262 gl_cv_next_wchar_h='<'wchar.h'>'
6263 fi
6264
6265fi
6266echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6267echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6268 fi
6269 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6270
c906108c 6271
c906108c 6272
c906108c 6273
c906108c 6274
c906108c 6275
c906108c 6276
c906108c 6277
783e057b
DJ
6278 gltests_libdeps=
6279 gltests_ltlibdeps=
20e95c23 6280
20e95c23 6281
20e95c23 6282
783e057b 6283 gl_source_base='tests'
c906108c 6284
bec39cab 6285
bec39cab 6286
783e057b
DJ
6287
6288 LIBGNU_LIBDEPS="$gl_libdeps"
6289
6290 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6291
6292
e28b3332 6293
bec39cab
AC
6294PACKAGE=gdb
6295
6296cat >>confdefs.h <<_ACEOF
6297#define PACKAGE "$PACKAGE"
6298_ACEOF
6299
6300
6301
e28b3332
DJ
6302# GDB does not use automake, but gnulib does. This line lets us
6303# generate its Makefile.in.
6304am__api_version="1.9"
6305# Find a good install program. We prefer a C program (faster),
6306# so one script is as good as another. But avoid the broken or
6307# incompatible versions:
6308# SysV /etc/install, /usr/sbin/install
6309# SunOS /usr/etc/install
6310# IRIX /sbin/install
6311# AIX /bin/install
6312# AmigaOS /C/install, which installs bootblocks on floppy discs
6313# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6314# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6315# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6316# OS/2's system install, which has a completely different semantic
6317# ./install, which can be erroneously created by make from ./install.sh.
6318echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6319echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6320if test -z "$INSTALL"; then
6321if test "${ac_cv_path_install+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 # Account for people who put trailing slashes in PATH elements.
6330case $as_dir/ in
6331 ./ | .// | /cC/* | \
6332 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6333 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6334 /usr/ucb/* ) ;;
6335 *)
6336 # OSF1 and SCO ODT 3.0 have their own names for install.
6337 # Don't use installbsd from OSF since it installs stuff as root
6338 # by default.
6339 for ac_prog in ginstall scoinst install; do
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6342 if test $ac_prog = install &&
6343 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6344 # AIX install. It has an incompatible calling convention.
6345 :
6346 elif test $ac_prog = install &&
6347 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6348 # program-specific install script used by HP pwplus--don't use.
6349 :
6350 else
6351 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6352 break 3
6353 fi
6354 fi
6355 done
6356 done
6357 ;;
6358esac
6359done
6360
6361
6362fi
6363 if test "${ac_cv_path_install+set}" = set; then
6364 INSTALL=$ac_cv_path_install
6365 else
6366 # As a last resort, use the slow shell script. We don't cache a
6367 # path for INSTALL within a source directory, because that will
6368 # break other packages using the cache if that directory is
6369 # removed, or if the path is relative.
6370 INSTALL=$ac_install_sh
6371 fi
6372fi
6373echo "$as_me:$LINENO: result: $INSTALL" >&5
6374echo "${ECHO_T}$INSTALL" >&6
6375
6376# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6377# It thinks the first close brace ends the variable substitution.
6378test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6379
6380test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6381
6382test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6383
6384echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6385echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6386# Just in case
6387sleep 1
6388echo timestamp > conftest.file
6389# Do `set' in a subshell so we don't clobber the current shell's
6390# arguments. Must try -L first in case configure is actually a
6391# symlink; some systems play weird games with the mod time of symlinks
6392# (eg FreeBSD returns the mod time of the symlink's containing
6393# directory).
6394if (
6395 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6396 if test "$*" = "X"; then
6397 # -L didn't work.
6398 set X `ls -t $srcdir/configure conftest.file`
6399 fi
6400 rm -f conftest.file
6401 if test "$*" != "X $srcdir/configure conftest.file" \
6402 && test "$*" != "X conftest.file $srcdir/configure"; then
6403
6404 # If neither matched, then we have a broken ls. This can happen
6405 # if, for instance, CONFIG_SHELL is bash and it inherits a
6406 # broken ls alias from the environment. This has actually
6407 # happened. Such a system could not be considered "sane".
6408 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6409alias in your environment" >&5
6410echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6411alias in your environment" >&2;}
6412 { (exit 1); exit 1; }; }
6413 fi
6414
6415 test "$2" = conftest.file
6416 )
6417then
6418 # Ok.
6419 :
6420else
6421 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6422Check your system clock" >&5
6423echo "$as_me: error: newly created file is older than distributed files!
6424Check your system clock" >&2;}
6425 { (exit 1); exit 1; }; }
6426fi
6427echo "$as_me:$LINENO: result: yes" >&5
6428echo "${ECHO_T}yes" >&6
6429test "$program_prefix" != NONE &&
6430 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6431# Use a double $ so make ignores it.
6432test "$program_suffix" != NONE &&
6433 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6434# Double any \ or $. echo might interpret backslashes.
6435# By default was `s,x,x', remove it if useless.
6436cat <<\_ACEOF >conftest.sed
6437s/[\\$]/&&/g;s/;s,x,x,$//
6438_ACEOF
6439program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6440rm conftest.sed
6441
6442# expand $ac_aux_dir to an absolute path
6443am_aux_dir=`cd $ac_aux_dir && pwd`
6444
6445test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6446# Use eval to expand $SHELL
6447if eval "$MISSING --run true"; then
6448 am_missing_run="$MISSING --run "
6449else
6450 am_missing_run=
6451 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6452echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6453fi
6454
6455if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6456 # We used to keeping the `.' as first argument, in order to
6457 # allow $(mkdir_p) to be used without argument. As in
6458 # $(mkdir_p) $(somedir)
6459 # where $(somedir) is conditionally defined. However this is wrong
6460 # for two reasons:
6461 # 1. if the package is installed by a user who cannot write `.'
6462 # make install will fail,
6463 # 2. the above comment should most certainly read
6464 # $(mkdir_p) $(DESTDIR)$(somedir)
6465 # so it does not work when $(somedir) is undefined and
6466 # $(DESTDIR) is not.
6467 # To support the latter case, we have to write
6468 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6469 # so the `.' trick is pointless.
6470 mkdir_p='mkdir -p --'
6471else
6472 # On NextStep and OpenStep, the `mkdir' command does not
6473 # recognize any option. It will interpret all options as
6474 # directories to create, and then abort because `.' already
6475 # exists.
6476 for d in ./-p ./--version;
6477 do
6478 test -d $d && rmdir $d
6479 done
6480 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6481 if test -f "$ac_aux_dir/mkinstalldirs"; then
6482 mkdir_p='$(mkinstalldirs)'
6483 else
6484 mkdir_p='$(install_sh) -d'
6485 fi
6486fi
6487
6488for ac_prog in gawk mawk nawk awk
6489do
6490 # Extract the first word of "$ac_prog", so it can be a program name with args.
6491set dummy $ac_prog; ac_word=$2
6492echo "$as_me:$LINENO: checking for $ac_word" >&5
6493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6494if test "${ac_cv_prog_AWK+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496else
6497 if test -n "$AWK"; then
6498 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6499else
6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_AWK="$ac_prog"
6508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511done
6512done
6513
6514fi
6515fi
6516AWK=$ac_cv_prog_AWK
6517if test -n "$AWK"; then
6518 echo "$as_me:$LINENO: result: $AWK" >&5
6519echo "${ECHO_T}$AWK" >&6
6520else
6521 echo "$as_me:$LINENO: result: no" >&5
6522echo "${ECHO_T}no" >&6
6523fi
6524
6525 test -n "$AWK" && break
6526done
6527
6528echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6529echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6530set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6531if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 cat >conftest.make <<\_ACEOF
6535all:
6536 @echo 'ac_maketemp="$(MAKE)"'
6537_ACEOF
6538# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6539eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6540if test -n "$ac_maketemp"; then
6541 eval ac_cv_prog_make_${ac_make}_set=yes
6542else
6543 eval ac_cv_prog_make_${ac_make}_set=no
6544fi
6545rm -f conftest.make
6546fi
6547if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6548 echo "$as_me:$LINENO: result: yes" >&5
6549echo "${ECHO_T}yes" >&6
6550 SET_MAKE=
6551else
6552 echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6
6554 SET_MAKE="MAKE=${MAKE-make}"
6555fi
6556
6557rm -rf .tst 2>/dev/null
6558mkdir .tst 2>/dev/null
6559if test -d .tst; then
6560 am__leading_dot=.
6561else
6562 am__leading_dot=_
6563fi
6564rmdir .tst 2>/dev/null
6565
6566DEPDIR="${am__leading_dot}deps"
6567
6568 ac_config_commands="$ac_config_commands depfiles"
6569
6570
6571am_make=${MAKE-make}
6572cat > confinc << 'END'
6573am__doit:
6574 @echo done
6575.PHONY: am__doit
6576END
6577# If we don't find an include directive, just comment out the code.
6578echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6579echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6580am__include="#"
6581am__quote=
6582_am_result=none
6583# First try GNU make style include.
6584echo "include confinc" > confmf
6585# We grep out `Entering directory' and `Leaving directory'
6586# messages which can occur if `w' ends up in MAKEFLAGS.
6587# In particular we don't look at `^make:' because GNU make might
6588# be invoked under some other name (usually "gmake"), in which
6589# case it prints its new name instead of `make'.
6590if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6591 am__include=include
6592 am__quote=
6593 _am_result=GNU
6594fi
6595# Now try BSD make style include.
6596if test "$am__include" = "#"; then
6597 echo '.include "confinc"' > confmf
6598 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6599 am__include=.include
6600 am__quote="\""
6601 _am_result=BSD
6602 fi
6603fi
6604
6605
6606echo "$as_me:$LINENO: result: $_am_result" >&5
6607echo "${ECHO_T}$_am_result" >&6
6608rm -f confinc confmf
6609
6610# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6611if test "${enable_dependency_tracking+set}" = set; then
6612 enableval="$enable_dependency_tracking"
6613
6614fi;
6615if test "x$enable_dependency_tracking" != xno; then
6616 am_depcomp="$ac_aux_dir/depcomp"
6617 AMDEPBACKSLASH='\'
6618fi
6619
6620
6621if test "x$enable_dependency_tracking" != xno; then
6622 AMDEP_TRUE=
6623 AMDEP_FALSE='#'
6624else
6625 AMDEP_TRUE='#'
6626 AMDEP_FALSE=
6627fi
6628
6629
6630
6631# test to see if srcdir already configured
6632if test "`cd $srcdir && pwd`" != "`pwd`" &&
6633 test -f $srcdir/config.status; then
6634 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6635echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6636 { (exit 1); exit 1; }; }
6637fi
6638
6639# test whether we have cygpath
6640if test -z "$CYGPATH_W"; then
6641 if (cygpath --version) >/dev/null 2>/dev/null; then
6642 CYGPATH_W='cygpath -w'
6643 else
6644 CYGPATH_W=echo
6645 fi
6646fi
6647
6648
6649# Define the identity of the package.
6650 PACKAGE=gdb
6651 VERSION=UNUSED-VERSION
6652
6653
6654# Some tools Automake needs.
6655
6656ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6657
6658
6659AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6660
6661
6662AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6663
6664
6665AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6666
6667
6668MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6669
6670install_sh=${install_sh-"$am_aux_dir/install-sh"}
6671
6672# Installed binaries are usually stripped using `strip' when the user
6673# run `make install-strip'. However `strip' might not be the right
6674# tool to use in cross-compilation environments, therefore Automake
6675# will honor the `STRIP' environment variable to overrule this program.
6676if test "$cross_compiling" != no; then
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6679set dummy ${ac_tool_prefix}strip; ac_word=$2
6680echo "$as_me:$LINENO: checking for $ac_word" >&5
6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6682if test "${ac_cv_prog_STRIP+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684else
6685 if test -n "$STRIP"; then
6686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6687else
6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699done
6700done
6701
6702fi
6703fi
6704STRIP=$ac_cv_prog_STRIP
6705if test -n "$STRIP"; then
6706 echo "$as_me:$LINENO: result: $STRIP" >&5
6707echo "${ECHO_T}$STRIP" >&6
6708else
6709 echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6
6711fi
6712
6713fi
6714if test -z "$ac_cv_prog_STRIP"; then
6715 ac_ct_STRIP=$STRIP
6716 # Extract the first word of "strip", so it can be a program name with args.
6717set dummy strip; ac_word=$2
6718echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6720if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723 if test -n "$ac_ct_STRIP"; then
6724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_STRIP="strip"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737done
6738done
6739
6740 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6741fi
6742fi
6743ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6744if test -n "$ac_ct_STRIP"; then
6745 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6746echo "${ECHO_T}$ac_ct_STRIP" >&6
6747else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750fi
6751
6752 STRIP=$ac_ct_STRIP
6753else
6754 STRIP="$ac_cv_prog_STRIP"
6755fi
6756
6757fi
6758INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6759
6760# We need awk for the "check" target. The system "awk" is bad on
6761# some platforms.
6762# Always define AMTAR for backward compatibility.
6763
6764AMTAR=${AMTAR-"${am_missing_run}tar"}
6765
6766am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6767
6768
6769
6770
6771depcc="$CC" am_compiler_list=
6772
6773echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6774echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6775if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777else
6778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6779 # We make a subdir and do the tests there. Otherwise we can end up
6780 # making bogus files that we don't know about and never remove. For
6781 # instance it was reported that on HP-UX the gcc test will end up
6782 # making a dummy file named `D' -- because `-MD' means `put the output
6783 # in D'.
6784 mkdir conftest.dir
6785 # Copy depcomp to subdir because otherwise we won't find it if we're
6786 # using a relative directory.
6787 cp "$am_depcomp" conftest.dir
6788 cd conftest.dir
6789 # We will build objects and dependencies in a subdirectory because
6790 # it helps to detect inapplicable dependency modes. For instance
6791 # both Tru64's cc and ICC support -MD to output dependencies as a
6792 # side effect of compilation, but ICC will put the dependencies in
6793 # the current directory while Tru64 will put them in the object
6794 # directory.
6795 mkdir sub
6796
6797 am_cv_CC_dependencies_compiler_type=none
6798 if test "$am_compiler_list" = ""; then
6799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6800 fi
6801 for depmode in $am_compiler_list; do
6802 # Setup a source with many dependencies, because some compilers
6803 # like to wrap large dependency lists on column 80 (with \), and
6804 # we should not choose a depcomp mode which is confused by this.
6805 #
6806 # We need to recreate these files for each test, as the compiler may
6807 # overwrite some of them when testing with obscure command lines.
6808 # This happens at least with the AIX C compiler.
6809 : > sub/conftest.c
6810 for i in 1 2 3 4 5 6; do
6811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6813 # Solaris 8's {/usr,}/bin/sh.
6814 touch sub/conftst$i.h
6815 done
6816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6817
6818 case $depmode in
6819 nosideeffect)
6820 # after this tag, mechanisms are not by side-effect, so they'll
6821 # only be used when explicitly requested
6822 if test "x$enable_dependency_tracking" = xyes; then
6823 continue
6824 else
6825 break
6826 fi
6827 ;;
6828 none) break ;;
6829 esac
6830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6831 # mode. It turns out that the SunPro C++ compiler does not properly
6832 # handle `-M -o', and we need to detect this.
6833 if depmode=$depmode \
6834 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6836 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6837 >/dev/null 2>conftest.err &&
6838 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6839 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6840 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6841 # icc doesn't choke on unknown options, it will just issue warnings
6842 # or remarks (even with -Werror). So we grep stderr for any message
6843 # that says an option was ignored or not supported.
6844 # When given -MP, icc 7.0 and 7.1 complain thusly:
6845 # icc: Command line warning: ignoring option '-M'; no argument required
6846 # The diagnosis changed in icc 8.0:
6847 # icc: Command line remark: option '-MP' not supported
6848 if (grep 'ignoring option' conftest.err ||
6849 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6850 am_cv_CC_dependencies_compiler_type=$depmode
6851 break
6852 fi
6853 fi
6854 done
6855
6856 cd ..
6857 rm -rf conftest.dir
6858else
6859 am_cv_CC_dependencies_compiler_type=none
6860fi
6861
6862fi
6863echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6864echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6865CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6866
6867
6868
6869if
6870 test "x$enable_dependency_tracking" != xno \
6871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6872 am__fastdepCC_TRUE=
6873 am__fastdepCC_FALSE='#'
6874else
6875 am__fastdepCC_TRUE='#'
6876 am__fastdepCC_FALSE=
6877fi
6878
6879
6880
6881
bec39cab
AC
6882debugdir=${libdir}/debug
6883
6884
b4e70030 6885# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 6886if test "${with_separate_debug_dir+set}" = set; then
783e057b
DJ
6887 withval="$with_separate_debug_dir"
6888 debugdir="${withval}"
6889fi;
20e95c23 6890
20e95c23 6891
783e057b
DJ
6892 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6894 ac_define_dir=`eval echo $debugdir`
6895 ac_define_dir=`eval echo $ac_define_dir`
20e95c23 6896
783e057b
DJ
6897cat >>confdefs.h <<_ACEOF
6898#define DEBUGDIR "$ac_define_dir"
20e95c23 6899_ACEOF
20e95c23 6900
20e95c23 6901
783e057b 6902#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
20e95c23 6903
783e057b
DJ
6904if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6905 if test "x$prefix" = xNONE; then
6906 test_prefix=/usr/local
6907 else
6908 test_prefix=$prefix
6909 fi
20e95c23 6910else
783e057b 6911 test_prefix=$exec_prefix
20e95c23 6912fi
783e057b
DJ
6913case ${debugdir} in
6914"${test_prefix}"|"${test_prefix}/"*|\
6915'${exec_prefix}'|'${exec_prefix}/'*)
20e95c23
DJ
6916
6917cat >>confdefs.h <<\_ACEOF
783e057b 6918#define DEBUGDIR_RELOCATABLE 1
20e95c23
DJ
6919_ACEOF
6920
783e057b
DJ
6921 ;;
6922esac
6923
20e95c23 6924
20e95c23 6925
783e057b 6926subdirs="$subdirs doc testsuite"
20e95c23
DJ
6927
6928
783e057b
DJ
6929# Check whether to support alternative target configurations
6930# Check whether --enable-targets or --disable-targets was given.
6931if test "${enable_targets+set}" = set; then
6932 enableval="$enable_targets"
6933 case "${enableval}" in
6934 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6935echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6936 { (exit 1); exit 1; }; }
6937 ;;
6938 no) enable_targets= ;;
6939 *) enable_targets=$enableval ;;
6940esac
6941fi;
20e95c23 6942
783e057b
DJ
6943# Check whether to enable 64-bit support on 32-bit hosts
6944# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6945if test "${enable_64_bit_bfd+set}" = set; then
6946 enableval="$enable_64_bit_bfd"
6947 case "${enableval}" in
6948 yes) want64=true ;;
6949 no) want64=false ;;
6950 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6951echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6952 { (exit 1); exit 1; }; } ;;
6953esac
6954else
6955 want64=false
6956fi;
6957# Provide defaults for some variables set by the per-host and per-target
6958# configuration.
6959gdb_host_obs=posix-hdep.o
20e95c23 6960
783e057b
DJ
6961if test "${target}" = "${host}"; then
6962 gdb_native=yes
6963else
6964 gdb_native=no
6965fi
20e95c23 6966
783e057b 6967. $srcdir/configure.host
20e95c23 6968
783e057b 6969# Accumulate some settings from configure.tgt over all enabled targets
20e95c23 6970
783e057b
DJ
6971TARGET_OBS=
6972all_targets=
20e95c23 6973
783e057b 6974for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
20e95c23 6975do
783e057b
DJ
6976 if test "$targ_alias" = "all"; then
6977 all_targets=true
6978 else
6979 # Canonicalize the secondary target names.
6980 result=`$ac_config_sub $targ_alias 2>/dev/null`
6981 if test -n "$result"; then
6982 targ=$result
6983 else
6984 targ=$targ_alias
6985 fi
20e95c23 6986
783e057b 6987 . ${srcdir}/configure.tgt
20e95c23 6988
783e057b
DJ
6989 # Target-specific object files
6990 for i in ${gdb_target_obs}; do
6991 case " $TARGET_OBS " in
6992 *" ${i} "*) ;;
6993 *)
6994 TARGET_OBS="$TARGET_OBS ${i}"
6995 ;;
6996 esac
6997 done
20e95c23 6998
783e057b
DJ
6999 # Check whether this target needs 64-bit CORE_ADDR
7000 if test x${want64} = xfalse; then
7001 . ${srcdir}/../bfd/config.bfd
7002 fi
7003 fi
20e95c23
DJ
7004done
7005
783e057b
DJ
7006if test x${all_targets} = xtrue; then
7007
7008 # We want all 64-bit targets if we either:
7009 # - run on a 64-bit host or
7010 # - already require 64-bit support for some other target or
7011 # - the --enable-64-bit-bfd option was supplied
7012 # Otherwise we only support all 32-bit targets.
7013 #
7014 # NOTE: This test must be in sync with the corresponding
7015 # tests in BFD!
20e95c23 7016
783e057b
DJ
7017 if test x${want64} = xfalse; then
7018 echo "$as_me:$LINENO: checking for long" >&5
c0993dbe
UW
7019echo $ECHO_N "checking for long... $ECHO_C" >&6
7020if test "${ac_cv_type_long+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h. */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h. */
7029$ac_includes_default
7030int
7031main ()
7032{
7033if ((long *) 0)
7034 return 0;
7035if (sizeof (long))
7036 return 0;
7037 ;
7038 return 0;
7039}
7040_ACEOF
7041rm -f conftest.$ac_objext
7042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -z "$ac_c_werror_flag"
7051 || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 ac_cv_type_long=yes
7064else
7065 echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068ac_cv_type_long=no
7069fi
7070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071fi
7072echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7073echo "${ECHO_T}$ac_cv_type_long" >&6
7074
7075echo "$as_me:$LINENO: checking size of long" >&5
7076echo $ECHO_N "checking size of long... $ECHO_C" >&6
7077if test "${ac_cv_sizeof_long+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079else
7080 if test "$ac_cv_type_long" = yes; then
7081 # The cast to unsigned long works around a bug in the HP C Compiler
7082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7084 # This bug is HP SR number 8606223364.
7085 if test "$cross_compiling" = yes; then
7086 # Depending upon the size, compute the lo and hi bounds.
7087cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h. */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h. */
7093$ac_includes_default
7094int
7095main ()
7096{
7097static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7098test_array [0] = 0
7099
7100 ;
7101 return 0;
7102}
7103_ACEOF
7104rm -f conftest.$ac_objext
7105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_c_werror_flag"
7114 || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_lo=0 ac_mid=0
7127 while :; do
7128 cat >conftest.$ac_ext <<_ACEOF
7129/* confdefs.h. */
7130_ACEOF
7131cat confdefs.h >>conftest.$ac_ext
7132cat >>conftest.$ac_ext <<_ACEOF
7133/* end confdefs.h. */
7134$ac_includes_default
7135int
7136main ()
7137{
7138static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7139test_array [0] = 0
7140
7141 ;
7142 return 0;
7143}
7144_ACEOF
7145rm -f conftest.$ac_objext
7146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147 (eval $ac_compile) 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try='test -s conftest.$ac_objext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 ac_hi=$ac_mid; break
7168else
7169 echo "$as_me: failed program was:" >&5
7170sed 's/^/| /' conftest.$ac_ext >&5
7171
7172ac_lo=`expr $ac_mid + 1`
7173 if test $ac_lo -le $ac_mid; then
7174 ac_lo= ac_hi=
7175 break
7176 fi
7177 ac_mid=`expr 2 '*' $ac_mid + 1`
7178fi
7179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7180 done
7181else
7182 echo "$as_me: failed program was:" >&5
7183sed 's/^/| /' conftest.$ac_ext >&5
7184
7185cat >conftest.$ac_ext <<_ACEOF
7186/* confdefs.h. */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
7190/* end confdefs.h. */
7191$ac_includes_default
7192int
7193main ()
7194{
7195static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7196test_array [0] = 0
7197
7198 ;
7199 return 0;
7200}
7201_ACEOF
7202rm -f conftest.$ac_objext
7203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204 (eval $ac_compile) 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } &&
7211 { ac_try='test -z "$ac_c_werror_flag"
7212 || test ! -s conftest.err'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; } &&
7218 { ac_try='test -s conftest.$ac_objext'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 (eval $ac_try) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; }; then
7224 ac_hi=-1 ac_mid=-1
7225 while :; do
7226 cat >conftest.$ac_ext <<_ACEOF
7227/* confdefs.h. */
7228_ACEOF
7229cat confdefs.h >>conftest.$ac_ext
7230cat >>conftest.$ac_ext <<_ACEOF
7231/* end confdefs.h. */
7232$ac_includes_default
7233int
7234main ()
7235{
7236static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7237test_array [0] = 0
7238
7239 ;
7240 return 0;
7241}
7242_ACEOF
7243rm -f conftest.$ac_objext
7244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7245 (eval $ac_compile) 2>conftest.er1
7246 ac_status=$?
7247 grep -v '^ *+' conftest.er1 >conftest.err
7248 rm -f conftest.er1
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -z "$ac_c_werror_flag"
7253 || test ! -s conftest.err'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; } &&
7259 { ac_try='test -s conftest.$ac_objext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 (eval $ac_try) 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 ac_lo=$ac_mid; break
7266else
7267 echo "$as_me: failed program was:" >&5
7268sed 's/^/| /' conftest.$ac_ext >&5
7269
7270ac_hi=`expr '(' $ac_mid ')' - 1`
7271 if test $ac_mid -le $ac_hi; then
7272 ac_lo= ac_hi=
7273 break
7274 fi
7275 ac_mid=`expr 2 '*' $ac_mid`
7276fi
7277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278 done
7279else
7280 echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283ac_lo= ac_hi=
7284fi
7285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7286fi
7287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7288# Binary search between lo and hi bounds.
7289while test "x$ac_lo" != "x$ac_hi"; do
7290 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7291 cat >conftest.$ac_ext <<_ACEOF
7292/* confdefs.h. */
7293_ACEOF
7294cat confdefs.h >>conftest.$ac_ext
7295cat >>conftest.$ac_ext <<_ACEOF
7296/* end confdefs.h. */
7297$ac_includes_default
7298int
7299main ()
7300{
7301static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7302test_array [0] = 0
7303
7304 ;
7305 return 0;
7306}
7307_ACEOF
7308rm -f conftest.$ac_objext
7309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_hi=$ac_mid
7331else
7332 echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335ac_lo=`expr '(' $ac_mid ')' + 1`
7336fi
7337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7338done
7339case $ac_lo in
7340?*) ac_cv_sizeof_long=$ac_lo;;
7341'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7342See \`config.log' for more details." >&5
7343echo "$as_me: error: cannot compute sizeof (long), 77
7344See \`config.log' for more details." >&2;}
7345 { (exit 1); exit 1; }; } ;;
7346esac
7347else
7348 if test "$cross_compiling" = yes; then
7349 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7350See \`config.log' for more details." >&5
7351echo "$as_me: error: cannot run test program while cross compiling
7352See \`config.log' for more details." >&2;}
7353 { (exit 1); exit 1; }; }
7354else
7355 cat >conftest.$ac_ext <<_ACEOF
7356/* confdefs.h. */
7357_ACEOF
7358cat confdefs.h >>conftest.$ac_ext
7359cat >>conftest.$ac_ext <<_ACEOF
7360/* end confdefs.h. */
7361$ac_includes_default
7362long longval () { return (long) (sizeof (long)); }
7363unsigned long ulongval () { return (long) (sizeof (long)); }
7364#include <stdio.h>
7365#include <stdlib.h>
7366int
7367main ()
7368{
7369
7370 FILE *f = fopen ("conftest.val", "w");
7371 if (! f)
7372 exit (1);
7373 if (((long) (sizeof (long))) < 0)
7374 {
7375 long i = longval ();
7376 if (i != ((long) (sizeof (long))))
7377 exit (1);
7378 fprintf (f, "%ld\n", i);
7379 }
7380 else
7381 {
7382 unsigned long i = ulongval ();
7383 if (i != ((long) (sizeof (long))))
7384 exit (1);
7385 fprintf (f, "%lu\n", i);
7386 }
7387 exit (ferror (f) || fclose (f) != 0);
7388
7389 ;
7390 return 0;
7391}
7392_ACEOF
7393rm -f conftest$ac_exeext
7394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7395 (eval $ac_link) 2>&5
7396 ac_status=$?
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 (eval $ac_try) 2>&5
7401 ac_status=$?
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; }; then
7404 ac_cv_sizeof_long=`cat conftest.val`
7405else
7406 echo "$as_me: program exited with status $ac_status" >&5
7407echo "$as_me: failed program was:" >&5
7408sed 's/^/| /' conftest.$ac_ext >&5
7409
7410( exit $ac_status )
7411{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7412See \`config.log' for more details." >&5
7413echo "$as_me: error: cannot compute sizeof (long), 77
7414See \`config.log' for more details." >&2;}
7415 { (exit 1); exit 1; }; }
7416fi
7417rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7418fi
7419fi
7420rm -f conftest.val
7421else
7422 ac_cv_sizeof_long=0
7423fi
7424fi
7425echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7426echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7427cat >>confdefs.h <<_ACEOF
7428#define SIZEOF_LONG $ac_cv_sizeof_long
7429_ACEOF
7430
7431
7432 if test "x${ac_cv_sizeof_long}" = "x8"; then
7433 want64=true
7434 fi
7435 fi
7436 if test x${want64} = xtrue; then
7437 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7438 else
7439 TARGET_OBS='$(ALL_TARGET_OBS)'
7440 fi
7441fi
7442
7443
7444
7445# For other settings, only the main target counts.
7446gdb_sim=
7447gdb_osabi=
7448build_gdbserver=
7449targ=$target; . ${srcdir}/configure.tgt
7450
7451# Fetch the default architecture and default target vector from BFD.
7452targ=$target; . $srcdir/../bfd/config.bfd
7453
7454# We only want the first architecture, so strip off the others if
7455# there is more than one.
7456targ_archs=`echo $targ_archs | sed 's/ .*//'`
7457
7458if test "x$targ_archs" != x; then
7459
7460cat >>confdefs.h <<_ACEOF
7461#define DEFAULT_BFD_ARCH $targ_archs
7462_ACEOF
7463
7464fi
7465if test "x$targ_defvec" != x; then
7466
7467cat >>confdefs.h <<_ACEOF
7468#define DEFAULT_BFD_VEC $targ_defvec
7469_ACEOF
7470
7471fi
7472
c0993dbe
UW
7473# The CLI cannot be disabled yet, but may be in the future.
7474
7475# Enable CLI.
7476# Check whether --enable-gdbcli or --disable-gdbcli was given.
7477if test "${enable_gdbcli+set}" = set; then
7478 enableval="$enable_gdbcli"
7479 case $enableval in
7480 yes)
7481 ;;
7482 no)
7483 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7484echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7485 { (exit 1); exit 1; }; } ;;
7486 *)
7487 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7488echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7489 { (exit 1); exit 1; }; } ;;
7490 esac
7491else
7492 enable_gdbcli=yes
7493fi;
7494if test x"$enable_gdbcli" = xyes; then
7495 if test -d $srcdir/cli; then
7496 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7497 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7498 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7499 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7500 fi
7501fi
7502
7503# Enable MI.
7504# Check whether --enable-gdbmi or --disable-gdbmi was given.
7505if test "${enable_gdbmi+set}" = set; then
7506 enableval="$enable_gdbmi"
7507 case $enableval in
7508 yes | no)
7509 ;;
7510 *)
7511 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7512echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7513 { (exit 1); exit 1; }; } ;;
7514 esac
7515else
7516 enable_gdbmi=yes
7517fi;
7518if test x"$enable_gdbmi" = xyes; then
7519 if test -d $srcdir/mi; then
7520 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7521 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7522 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7523 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7524 fi
7525fi
7526
7527# Enable TUI.
7528# Check whether --enable-tui or --disable-tui was given.
7529if test "${enable_tui+set}" = set; then
7530 enableval="$enable_tui"
7531 case $enableval in
7532 yes | no)
7533 ;;
7534 *)
7535 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7536echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7537 { (exit 1); exit 1; }; } ;;
7538 esac
7539else
7540 enable_tui=yes
7541fi;
7542
7543# Enable gdbtk.
7544# Check whether --enable-gdbtk or --disable-gdbtk was given.
7545if test "${enable_gdbtk+set}" = set; then
7546 enableval="$enable_gdbtk"
7547 case $enableval in
7548 yes | no)
7549 ;;
7550 *)
7551 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7552echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7553 { (exit 1); exit 1; }; } ;;
7554 esac
7555else
7556 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7557 enable_gdbtk=yes
7558 else
7559 enable_gdbtk=no
7560 fi
7561fi;
7562# We unconditionally disable gdbtk tests on selected platforms.
7563case $host_os in
7564 go32* | windows*)
7565 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7566echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7567 enable_gdbtk=no ;;
7568esac
7569
7570# Libunwind support.
bec39cab 7571
b4e70030 7572# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 7573if test "${with_libunwind+set}" = set; then
b4e70030
JB
7574 withval="$with_libunwind"
7575 case "${withval}" in
bec39cab
AC
7576 yes) enable_libunwind=yes ;;
7577 no) enable_libunwind=no ;;
7578 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7579echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7580 { (exit 1); exit 1; }; } ;;
7581esac
7582else
7583
7584
7585for ac_header in libunwind.h
7586do
7587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7588if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589 echo "$as_me:$LINENO: checking for $ac_header" >&5
7590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7591if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593fi
b4e70030
JB
7594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7596else
7597 # Is the header compilable?
b4e70030
JB
7598echo "$as_me:$LINENO: checking $ac_header usability" >&5
7599echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7600cat >conftest.$ac_ext <<_ACEOF
7601/* confdefs.h. */
7602_ACEOF
7603cat confdefs.h >>conftest.$ac_ext
7604cat >>conftest.$ac_ext <<_ACEOF
7605/* end confdefs.h. */
7606$ac_includes_default
7607#include <$ac_header>
7608_ACEOF
7609rm -f conftest.$ac_objext
7610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7611 (eval $ac_compile) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
b4e70030
JB
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
bec39cab
AC
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest.$ac_objext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_header_compiler=yes
7632else
7633 echo "$as_me: failed program was:" >&5
7634sed 's/^/| /' conftest.$ac_ext >&5
7635
b4e70030 7636ac_header_compiler=no
bec39cab
AC
7637fi
7638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7640echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7641
7642# Is the header present?
b4e70030
JB
7643echo "$as_me:$LINENO: checking $ac_header presence" >&5
7644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7645cat >conftest.$ac_ext <<_ACEOF
7646/* confdefs.h. */
7647_ACEOF
7648cat confdefs.h >>conftest.$ac_ext
7649cat >>conftest.$ac_ext <<_ACEOF
7650/* end confdefs.h. */
7651#include <$ac_header>
7652_ACEOF
7653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } >/dev/null; then
7661 if test -s conftest.err; then
7662 ac_cpp_err=$ac_c_preproc_warn_flag
7663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7664 else
7665 ac_cpp_err=
7666 fi
7667else
7668 ac_cpp_err=yes
7669fi
7670if test -z "$ac_cpp_err"; then
7671 ac_header_preproc=yes
7672else
7673 echo "$as_me: failed program was:" >&5
7674sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 ac_header_preproc=no
7677fi
7678rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7680echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7681
7682# So? What about this header?
7683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7684 yes:no: )
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7689 ac_header_preproc=yes
7690 ;;
7691 no:yes:* )
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7704 (
7705 cat <<\_ASBOX
7706## ------------------------------------------ ##
7707## Report this to the AC_PACKAGE_NAME lists. ##
7708## ------------------------------------------ ##
7709_ASBOX
7710 ) |
7711 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7712 ;;
7713esac
b4e70030
JB
7714echo "$as_me:$LINENO: checking for $ac_header" >&5
7715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7716if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719 eval "$as_ac_Header=\$ac_header_preproc"
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
7723
7724fi
7725if test `eval echo '${'$as_ac_Header'}'` = yes; then
7726 cat >>confdefs.h <<_ACEOF
7727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728_ACEOF
7729
7730fi
7731
7732done
7733
7734
7735for ac_header in libunwind-ia64.h
7736do
7737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7738if eval "test \"\${$as_ac_Header+set}\" = set"; then
7739 echo "$as_me:$LINENO: checking for $ac_header" >&5
7740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7741if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743fi
b4e70030
JB
7744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7746else
7747 # Is the header compilable?
b4e70030
JB
7748echo "$as_me:$LINENO: checking $ac_header usability" >&5
7749echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7750cat >conftest.$ac_ext <<_ACEOF
7751/* confdefs.h. */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h. */
7756$ac_includes_default
7757#include <$ac_header>
7758_ACEOF
7759rm -f conftest.$ac_objext
7760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
b4e70030
JB
7768 { ac_try='test -z "$ac_c_werror_flag"
7769 || test ! -s conftest.err'
bec39cab
AC
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest.$ac_objext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_header_compiler=yes
7782else
7783 echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
b4e70030 7786ac_header_compiler=no
bec39cab
AC
7787fi
7788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7790echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7791
7792# Is the header present?
b4e70030
JB
7793echo "$as_me:$LINENO: checking $ac_header presence" >&5
7794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7795cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */
7801#include <$ac_header>
7802_ACEOF
7803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } >/dev/null; then
7811 if test -s conftest.err; then
7812 ac_cpp_err=$ac_c_preproc_warn_flag
7813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7814 else
7815 ac_cpp_err=
7816 fi
7817else
7818 ac_cpp_err=yes
7819fi
7820if test -z "$ac_cpp_err"; then
7821 ac_header_preproc=yes
7822else
7823 echo "$as_me: failed program was:" >&5
7824sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 ac_header_preproc=no
7827fi
7828rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7830echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7831
7832# So? What about this header?
7833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7834 yes:no: )
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7839 ac_header_preproc=yes
7840 ;;
7841 no:yes:* )
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7845echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7849echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7854 (
7855 cat <<\_ASBOX
7856## ------------------------------------------ ##
7857## Report this to the AC_PACKAGE_NAME lists. ##
7858## ------------------------------------------ ##
7859_ASBOX
7860 ) |
7861 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7862 ;;
7863esac
b4e70030
JB
7864echo "$as_me:$LINENO: checking for $ac_header" >&5
7865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7866if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868else
7869 eval "$as_ac_Header=\$ac_header_preproc"
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
7873
7874fi
7875if test `eval echo '${'$as_ac_Header'}'` = yes; then
7876 cat >>confdefs.h <<_ACEOF
7877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7878_ACEOF
7879
7880fi
7881
7882done
7883
7884 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7885 enable_libunwind=yes;
7886 fi
7887
b4e70030 7888fi;
bec39cab
AC
7889
7890if test x"$enable_libunwind" = xyes; then
7891
7892for ac_header in libunwind.h
7893do
7894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7895if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896 echo "$as_me:$LINENO: checking for $ac_header" >&5
7897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7898if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7900fi
b4e70030
JB
7901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7903else
7904 # Is the header compilable?
b4e70030
JB
7905echo "$as_me:$LINENO: checking $ac_header usability" >&5
7906echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7907cat >conftest.$ac_ext <<_ACEOF
7908/* confdefs.h. */
7909_ACEOF
7910cat confdefs.h >>conftest.$ac_ext
7911cat >>conftest.$ac_ext <<_ACEOF
7912/* end confdefs.h. */
7913$ac_includes_default
7914#include <$ac_header>
7915_ACEOF
7916rm -f conftest.$ac_objext
7917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7918 (eval $ac_compile) 2>conftest.er1
7919 ac_status=$?
7920 grep -v '^ *+' conftest.er1 >conftest.err
7921 rm -f conftest.er1
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
b4e70030
JB
7925 { ac_try='test -z "$ac_c_werror_flag"
7926 || test ! -s conftest.err'
bec39cab
AC
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; } &&
7932 { ac_try='test -s conftest.$ac_objext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 (eval $ac_try) 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 ac_header_compiler=yes
7939else
7940 echo "$as_me: failed program was:" >&5
7941sed 's/^/| /' conftest.$ac_ext >&5
7942
b4e70030 7943ac_header_compiler=no
bec39cab
AC
7944fi
7945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7946echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7947echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7948
7949# Is the header present?
b4e70030
JB
7950echo "$as_me:$LINENO: checking $ac_header presence" >&5
7951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7952cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */
7954_ACEOF
7955cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */
7958#include <$ac_header>
7959_ACEOF
7960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } >/dev/null; then
7968 if test -s conftest.err; then
7969 ac_cpp_err=$ac_c_preproc_warn_flag
7970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7971 else
7972 ac_cpp_err=
7973 fi
7974else
7975 ac_cpp_err=yes
7976fi
7977if test -z "$ac_cpp_err"; then
7978 ac_header_preproc=yes
7979else
7980 echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 ac_header_preproc=no
7984fi
7985rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7986echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7987echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7988
7989# So? What about this header?
7990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7991 yes:no: )
7992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7996 ac_header_preproc=yes
7997 ;;
7998 no:yes:* )
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8011 (
8012 cat <<\_ASBOX
8013## ------------------------------------------ ##
8014## Report this to the AC_PACKAGE_NAME lists. ##
8015## ------------------------------------------ ##
8016_ASBOX
8017 ) |
8018 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8019 ;;
8020esac
b4e70030
JB
8021echo "$as_me:$LINENO: checking for $ac_header" >&5
8022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8023if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025else
8026 eval "$as_ac_Header=\$ac_header_preproc"
8027fi
b4e70030
JB
8028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8030
8031fi
8032if test `eval echo '${'$as_ac_Header'}'` = yes; then
8033 cat >>confdefs.h <<_ACEOF
8034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8035_ACEOF
8036
8037fi
8038
8039done
8040
8041
8042for ac_header in libunwind-ia64.h
8043do
8044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8045if eval "test \"\${$as_ac_Header+set}\" = set"; then
8046 echo "$as_me:$LINENO: checking for $ac_header" >&5
8047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8048if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050fi
b4e70030
JB
8051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8053else
8054 # Is the header compilable?
b4e70030
JB
8055echo "$as_me:$LINENO: checking $ac_header usability" >&5
8056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8057cat >conftest.$ac_ext <<_ACEOF
8058/* confdefs.h. */
8059_ACEOF
8060cat confdefs.h >>conftest.$ac_ext
8061cat >>conftest.$ac_ext <<_ACEOF
8062/* end confdefs.h. */
8063$ac_includes_default
8064#include <$ac_header>
8065_ACEOF
8066rm -f conftest.$ac_objext
8067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
b4e70030
JB
8075 { ac_try='test -z "$ac_c_werror_flag"
8076 || test ! -s conftest.err'
bec39cab
AC
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_header_compiler=yes
8089else
8090 echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
b4e70030 8093ac_header_compiler=no
bec39cab
AC
8094fi
8095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8097echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8098
8099# Is the header present?
b4e70030
JB
8100echo "$as_me:$LINENO: checking $ac_header presence" >&5
8101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8102cat >conftest.$ac_ext <<_ACEOF
8103/* confdefs.h. */
8104_ACEOF
8105cat confdefs.h >>conftest.$ac_ext
8106cat >>conftest.$ac_ext <<_ACEOF
8107/* end confdefs.h. */
8108#include <$ac_header>
8109_ACEOF
8110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } >/dev/null; then
8118 if test -s conftest.err; then
8119 ac_cpp_err=$ac_c_preproc_warn_flag
8120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8121 else
8122 ac_cpp_err=
8123 fi
8124else
8125 ac_cpp_err=yes
8126fi
8127if test -z "$ac_cpp_err"; then
8128 ac_header_preproc=yes
8129else
8130 echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_header_preproc=no
8134fi
8135rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8137echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8138
8139# So? What about this header?
8140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8141 yes:no: )
8142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8146 ac_header_preproc=yes
8147 ;;
8148 no:yes:* )
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8161 (
8162 cat <<\_ASBOX
8163## ------------------------------------------ ##
8164## Report this to the AC_PACKAGE_NAME lists. ##
8165## ------------------------------------------ ##
8166_ASBOX
8167 ) |
8168 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8169 ;;
8170esac
b4e70030
JB
8171echo "$as_me:$LINENO: checking for $ac_header" >&5
8172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8173if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 eval "$as_ac_Header=\$ac_header_preproc"
8177fi
b4e70030
JB
8178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8180
8181fi
8182if test `eval echo '${'$as_ac_Header'}'` = yes; then
8183 cat >>confdefs.h <<_ACEOF
8184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8185_ACEOF
8186
8187fi
8188
8189done
8190
60ca704f
SE
8191
8192cat >>confdefs.h <<\_ACEOF
bec39cab
AC
8193#define HAVE_LIBUNWIND 1
8194_ACEOF
8195
8196 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8197 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8198 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8199fi
8200
8201# Profiling support.
b4e70030 8202# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 8203if test "${enable_profiling+set}" = set; then
b4e70030
JB
8204 enableval="$enable_profiling"
8205 case $enableval in
bec39cab
AC
8206 yes | no)
8207 ;;
8208 *)
8209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8210echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8211 { (exit 1); exit 1; }; } ;;
8212 esac
8213else
8214 enable_profiling=no
b4e70030 8215fi;
bec39cab
AC
8216
8217
8218
8219for ac_func in monstartup _mcleanup
8220do
8221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
8222echo "$as_me:$LINENO: checking for $ac_func" >&5
8223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8224if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h. */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h. */
8233/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8235#define $ac_func innocuous_$ac_func
8236
8237/* System header to define __stub macros and hopefully few prototypes,
8238 which can conflict with char $ac_func (); below.
8239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8240 <limits.h> exists even on freestanding compilers. */
8241
8242#ifdef __STDC__
8243# include <limits.h>
8244#else
8245# include <assert.h>
8246#endif
8247
8248#undef $ac_func
8249
b4e70030 8250/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8251#ifdef __cplusplus
8252extern "C"
b4e70030 8253{
bec39cab 8254#endif
b4e70030
JB
8255/* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
bec39cab
AC
8257char $ac_func ();
8258/* The GNU C library defines this for functions which it implements
8259 to always fail with ENOSYS. Some functions are actually named
8260 something starting with __ and the normal name is an alias. */
b4e70030 8261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 8262choke me
b4e70030
JB
8263#else
8264char (*f) () = $ac_func;
8265#endif
8266#ifdef __cplusplus
8267}
bec39cab
AC
8268#endif
8269
8270int
8271main ()
8272{
b4e70030 8273return f != $ac_func;
bec39cab
AC
8274 ;
8275 return 0;
8276}
8277_ACEOF
8278rm -f conftest.$ac_objext conftest$ac_exeext
8279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
b4e70030
JB
8287 { ac_try='test -z "$ac_c_werror_flag"
8288 || test ! -s conftest.err'
bec39cab
AC
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest$ac_exeext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 eval "$as_ac_var=yes"
8301else
8302 echo "$as_me: failed program was:" >&5
8303sed 's/^/| /' conftest.$ac_ext >&5
8304
b4e70030 8305eval "$as_ac_var=no"
bec39cab
AC
8306fi
8307rm -f conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309fi
b4e70030
JB
8310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
8312if test `eval echo '${'$as_ac_var'}'` = yes; then
8313 cat >>confdefs.h <<_ACEOF
8314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8315_ACEOF
8316
8317fi
8318done
8319
b4e70030
JB
8320echo "$as_me:$LINENO: checking for _etext" >&5
8321echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
8322if test "${ac_cv_var__etext+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324else
8325 cat >conftest.$ac_ext <<_ACEOF
8326/* confdefs.h. */
8327_ACEOF
8328cat confdefs.h >>conftest.$ac_ext
8329cat >>conftest.$ac_ext <<_ACEOF
8330/* end confdefs.h. */
8331#include <stdlib.h>
8332extern char _etext;
8333
8334int
8335main ()
8336{
8337free (&_etext);
8338 ;
8339 return 0;
8340}
8341_ACEOF
8342rm -f conftest.$ac_objext conftest$ac_exeext
8343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
b4e70030
JB
8351 { ac_try='test -z "$ac_c_werror_flag"
8352 || test ! -s conftest.err'
bec39cab
AC
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_var__etext=yes
8365else
8366 echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
b4e70030 8369ac_cv_var__etext=no
bec39cab
AC
8370fi
8371rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373fi
b4e70030
JB
8374echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8375echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
8376if test $ac_cv_var__etext = yes; then
8377
8378cat >>confdefs.h <<\_ACEOF
8379#define HAVE__ETEXT 1
8380_ACEOF
8381
01fe12f6
JB
8382fi
8383echo "$as_me:$LINENO: checking for etext" >&5
8384echo $ECHO_N "checking for etext... $ECHO_C" >&6
8385if test "${ac_cv_var_etext+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387else
8388 cat >conftest.$ac_ext <<_ACEOF
8389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
8394#include <stdlib.h>
8395extern char etext;
8396
8397int
8398main ()
8399{
8400free (&etext);
8401 ;
8402 return 0;
8403}
8404_ACEOF
8405rm -f conftest.$ac_objext conftest$ac_exeext
8406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag"
8415 || test ! -s conftest.err'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest$ac_exeext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 (eval $ac_try) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_var_etext=yes
8428else
8429 echo "$as_me: failed program was:" >&5
8430sed 's/^/| /' conftest.$ac_ext >&5
8431
8432ac_cv_var_etext=no
8433fi
8434rm -f conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436fi
8437echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8438echo "${ECHO_T}$ac_cv_var_etext" >&6
8439if test $ac_cv_var_etext = yes; then
8440
8441cat >>confdefs.h <<\_ACEOF
8442#define HAVE_ETEXT 1
8443_ACEOF
8444
bec39cab
AC
8445fi
8446if test "$enable_profiling" = yes ; then
8447 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8448 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8449echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8450 { (exit 1); exit 1; }; }
8451 fi
8452 PROFILE_CFLAGS=-pg
8453 OLD_CFLAGS="$CFLAGS"
8454 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8455
b4e70030
JB
8456 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8457echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
8458if test "${ac_cv_cc_supports_pg+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8460else
bec39cab
AC
8461 cat >conftest.$ac_ext <<_ACEOF
8462/* confdefs.h. */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h. */
8467
8468int
8469main ()
8470{
8471int x;
8472 ;
8473 return 0;
8474}
8475_ACEOF
8476rm -f conftest.$ac_objext
8477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
b4e70030
JB
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
bec39cab
AC
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_cc_supports_pg=yes
8499else
8500 echo "$as_me: failed program was:" >&5
8501sed 's/^/| /' conftest.$ac_ext >&5
8502
b4e70030 8503ac_cv_cc_supports_pg=no
bec39cab
AC
8504fi
8505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506fi
b4e70030
JB
8507echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8508echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
8509
8510 if test $ac_cv_cc_supports_pg = no; then
8511 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8512echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8513 { (exit 1); exit 1; }; }
8514 fi
8515
8516 CFLAGS="$OLD_CFLAGS"
8517fi
8518
8519# --------------------- #
8520# Checks for programs. #
8521# --------------------- #
8522
8523for ac_prog in gawk mawk nawk awk
8524do
8525 # Extract the first word of "$ac_prog", so it can be a program name with args.
8526set dummy $ac_prog; ac_word=$2
b4e70030
JB
8527echo "$as_me:$LINENO: checking for $ac_word" >&5
8528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8529if test "${ac_cv_prog_AWK+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531else
8532 if test -n "$AWK"; then
8533 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8534else
8535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536for as_dir in $PATH
8537do
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8542 ac_cv_prog_AWK="$ac_prog"
8543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8545 fi
8546done
8547done
8548
8549fi
8550fi
8551AWK=$ac_cv_prog_AWK
8552if test -n "$AWK"; then
b4e70030
JB
8553 echo "$as_me:$LINENO: result: $AWK" >&5
8554echo "${ECHO_T}$AWK" >&6
bec39cab 8555else
b4e70030
JB
8556 echo "$as_me:$LINENO: result: no" >&5
8557echo "${ECHO_T}no" >&6
bec39cab
AC
8558fi
8559
8560 test -n "$AWK" && break
8561done
8562
8563# Find a good install program. We prefer a C program (faster),
8564# so one script is as good as another. But avoid the broken or
8565# incompatible versions:
8566# SysV /etc/install, /usr/sbin/install
8567# SunOS /usr/etc/install
8568# IRIX /sbin/install
8569# AIX /bin/install
8570# AmigaOS /C/install, which installs bootblocks on floppy discs
8571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8574# OS/2's system install, which has a completely different semantic
8575# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
8576echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8577echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
8578if test -z "$INSTALL"; then
8579if test "${ac_cv_path_install+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581else
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 # Account for people who put trailing slashes in PATH elements.
8588case $as_dir/ in
8589 ./ | .// | /cC/* | \
8590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8591 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8592 /usr/ucb/* ) ;;
c906108c 8593 *)
bec39cab
AC
8594 # OSF1 and SCO ODT 3.0 have their own names for install.
8595 # Don't use installbsd from OSF since it installs stuff as root
8596 # by default.
8597 for ac_prog in ginstall scoinst install; do
8598 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8599 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
8600 if test $ac_prog = install &&
8601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8602 # AIX install. It has an incompatible calling convention.
8603 :
8604 elif test $ac_prog = install &&
8605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8606 # program-specific install script used by HP pwplus--don't use.
8607 :
8608 else
8609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8610 break 3
8611 fi
8612 fi
8613 done
8614 done
8615 ;;
c906108c 8616esac
bec39cab
AC
8617done
8618
8619
8620fi
8621 if test "${ac_cv_path_install+set}" = set; then
8622 INSTALL=$ac_cv_path_install
8623 else
b4e70030
JB
8624 # As a last resort, use the slow shell script. We don't cache a
8625 # path for INSTALL within a source directory, because that will
bec39cab 8626 # break other packages using the cache if that directory is
b4e70030 8627 # removed, or if the path is relative.
bec39cab
AC
8628 INSTALL=$ac_install_sh
8629 fi
8630fi
b4e70030
JB
8631echo "$as_me:$LINENO: result: $INSTALL" >&5
8632echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
8633
8634# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8635# It thinks the first close brace ends the variable substitution.
8636test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8637
8638test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8639
8640test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8641
b4e70030
JB
8642echo "$as_me:$LINENO: checking whether ln -s works" >&5
8643echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
8644LN_S=$as_ln_s
8645if test "$LN_S" = "ln -s"; then
b4e70030
JB
8646 echo "$as_me:$LINENO: result: yes" >&5
8647echo "${ECHO_T}yes" >&6
bec39cab 8648else
b4e70030
JB
8649 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8650echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
8651fi
8652
8653if test -n "$ac_tool_prefix"; then
8654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8655set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
8656echo "$as_me:$LINENO: checking for $ac_word" >&5
8657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8658if test "${ac_cv_prog_RANLIB+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661 if test -n "$RANLIB"; then
8662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8663else
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8674 fi
8675done
8676done
8677
8678fi
8679fi
8680RANLIB=$ac_cv_prog_RANLIB
8681if test -n "$RANLIB"; then
b4e70030
JB
8682 echo "$as_me:$LINENO: result: $RANLIB" >&5
8683echo "${ECHO_T}$RANLIB" >&6
bec39cab 8684else
b4e70030
JB
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
bec39cab
AC
8687fi
8688
8689fi
8690if test -z "$ac_cv_prog_RANLIB"; then
8691 ac_ct_RANLIB=$RANLIB
8692 # Extract the first word of "ranlib", so it can be a program name with args.
8693set dummy ranlib; ac_word=$2
b4e70030
JB
8694echo "$as_me:$LINENO: checking for $ac_word" >&5
8695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8696if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698else
8699 if test -n "$ac_ct_RANLIB"; then
8700 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8701else
8702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $PATH
8704do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8709 ac_cv_prog_ac_ct_RANLIB="ranlib"
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713done
8714done
8715
b4e70030 8716 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
8717fi
8718fi
8719ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8720if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
8721 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8722echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 8723else
b4e70030
JB
8724 echo "$as_me:$LINENO: result: no" >&5
8725echo "${ECHO_T}no" >&6
bec39cab
AC
8726fi
8727
b4e70030 8728 RANLIB=$ac_ct_RANLIB
bec39cab
AC
8729else
8730 RANLIB="$ac_cv_prog_RANLIB"
8731fi
8732
8733for ac_prog in 'bison -y' byacc
8734do
8735 # Extract the first word of "$ac_prog", so it can be a program name with args.
8736set dummy $ac_prog; ac_word=$2
b4e70030
JB
8737echo "$as_me:$LINENO: checking for $ac_word" >&5
8738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8739if test "${ac_cv_prog_YACC+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741else
8742 if test -n "$YACC"; then
8743 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8752 ac_cv_prog_YACC="$ac_prog"
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757done
8758
8759fi
8760fi
8761YACC=$ac_cv_prog_YACC
8762if test -n "$YACC"; then
b4e70030
JB
8763 echo "$as_me:$LINENO: result: $YACC" >&5
8764echo "${ECHO_T}$YACC" >&6
bec39cab 8765else
b4e70030
JB
8766 echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
bec39cab
AC
8768fi
8769
8770 test -n "$YACC" && break
8771done
8772test -n "$YACC" || YACC="yacc"
8773
8774
8775if test -n "$ac_tool_prefix"; then
8776 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8777set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
8778echo "$as_me:$LINENO: checking for $ac_word" >&5
8779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8780if test "${ac_cv_prog_AR+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782else
8783 if test -n "$AR"; then
8784 ac_cv_prog_AR="$AR" # Let the user override the test.
8785else
8786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8793 ac_cv_prog_AR="${ac_tool_prefix}ar"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8796 fi
8797done
8798done
8799
8800fi
8801fi
8802AR=$ac_cv_prog_AR
8803if test -n "$AR"; then
b4e70030
JB
8804 echo "$as_me:$LINENO: result: $AR" >&5
8805echo "${ECHO_T}$AR" >&6
bec39cab 8806else
b4e70030
JB
8807 echo "$as_me:$LINENO: result: no" >&5
8808echo "${ECHO_T}no" >&6
bec39cab
AC
8809fi
8810
8811fi
8812if test -z "$ac_cv_prog_AR"; then
8813 ac_ct_AR=$AR
8814 # Extract the first word of "ar", so it can be a program name with args.
8815set dummy ar; ac_word=$2
b4e70030
JB
8816echo "$as_me:$LINENO: checking for $ac_word" >&5
8817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8818if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820else
8821 if test -n "$ac_ct_AR"; then
8822 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8823else
8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825for as_dir in $PATH
8826do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8831 ac_cv_prog_ac_ct_AR="ar"
8832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835done
8836done
8837
8838fi
8839fi
8840ac_ct_AR=$ac_cv_prog_ac_ct_AR
8841if test -n "$ac_ct_AR"; then
b4e70030
JB
8842 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8843echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 8844else
b4e70030
JB
8845 echo "$as_me:$LINENO: result: no" >&5
8846echo "${ECHO_T}no" >&6
bec39cab
AC
8847fi
8848
b4e70030 8849 AR=$ac_ct_AR
bec39cab
AC
8850else
8851 AR="$ac_cv_prog_AR"
8852fi
8853
8854if test -n "$ac_tool_prefix"; then
8855 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8856set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
8857echo "$as_me:$LINENO: checking for $ac_word" >&5
8858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8859if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861else
8862 if test -n "$DLLTOOL"; then
8863 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8864else
8865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866for as_dir in $PATH
8867do
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8872 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8875 fi
8876done
8877done
8878
8879fi
8880fi
8881DLLTOOL=$ac_cv_prog_DLLTOOL
8882if test -n "$DLLTOOL"; then
b4e70030
JB
8883 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8884echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 8885else
b4e70030
JB
8886 echo "$as_me:$LINENO: result: no" >&5
8887echo "${ECHO_T}no" >&6
bec39cab
AC
8888fi
8889
8890fi
8891if test -z "$ac_cv_prog_DLLTOOL"; then
8892 ac_ct_DLLTOOL=$DLLTOOL
8893 # Extract the first word of "dlltool", so it can be a program name with args.
8894set dummy dlltool; ac_word=$2
b4e70030
JB
8895echo "$as_me:$LINENO: checking for $ac_word" >&5
8896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8897if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899else
8900 if test -n "$ac_ct_DLLTOOL"; then
8901 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8902else
8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904for as_dir in $PATH
8905do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8910 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914done
8915done
8916
8917fi
8918fi
8919ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8920if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
8921 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8922echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 8923else
b4e70030
JB
8924 echo "$as_me:$LINENO: result: no" >&5
8925echo "${ECHO_T}no" >&6
bec39cab
AC
8926fi
8927
b4e70030 8928 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
8929else
8930 DLLTOOL="$ac_cv_prog_DLLTOOL"
8931fi
8932
8933if test -n "$ac_tool_prefix"; then
8934 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8935set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
8936echo "$as_me:$LINENO: checking for $ac_word" >&5
8937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8938if test "${ac_cv_prog_WINDRES+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940else
8941 if test -n "$WINDRES"; then
8942 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8943else
8944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945for as_dir in $PATH
8946do
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8951 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8954 fi
8955done
8956done
8957
8958fi
8959fi
8960WINDRES=$ac_cv_prog_WINDRES
8961if test -n "$WINDRES"; then
b4e70030
JB
8962 echo "$as_me:$LINENO: result: $WINDRES" >&5
8963echo "${ECHO_T}$WINDRES" >&6
bec39cab 8964else
b4e70030
JB
8965 echo "$as_me:$LINENO: result: no" >&5
8966echo "${ECHO_T}no" >&6
bec39cab
AC
8967fi
8968
8969fi
8970if test -z "$ac_cv_prog_WINDRES"; then
8971 ac_ct_WINDRES=$WINDRES
8972 # Extract the first word of "windres", so it can be a program name with args.
8973set dummy windres; ac_word=$2
b4e70030
JB
8974echo "$as_me:$LINENO: checking for $ac_word" >&5
8975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8976if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978else
8979 if test -n "$ac_ct_WINDRES"; then
8980 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8981else
8982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983for as_dir in $PATH
8984do
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8989 ac_cv_prog_ac_ct_WINDRES="windres"
8990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8992 fi
8993done
8994done
8995
8996fi
8997fi
8998ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8999if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
9000 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9001echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 9002else
b4e70030
JB
9003 echo "$as_me:$LINENO: result: no" >&5
9004echo "${ECHO_T}no" >&6
c906108c 9005fi
bec39cab 9006
b4e70030 9007 WINDRES=$ac_ct_WINDRES
c906108c 9008else
bec39cab 9009 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
9010fi
9011
bec39cab
AC
9012
9013# Needed for GNU/Hurd.
9014if test -n "$ac_tool_prefix"; then
9015 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9016set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
9017echo "$as_me:$LINENO: checking for $ac_word" >&5
9018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9019if test "${ac_cv_prog_MIG+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 9021else
bec39cab
AC
9022 if test -n "$MIG"; then
9023 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9024else
9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9032 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036done
9037done
9038
c906108c 9039fi
bec39cab
AC
9040fi
9041MIG=$ac_cv_prog_MIG
9042if test -n "$MIG"; then
b4e70030
JB
9043 echo "$as_me:$LINENO: result: $MIG" >&5
9044echo "${ECHO_T}$MIG" >&6
c906108c 9045else
b4e70030
JB
9046 echo "$as_me:$LINENO: result: no" >&5
9047echo "${ECHO_T}no" >&6
c906108c
SS
9048fi
9049
bec39cab
AC
9050fi
9051if test -z "$ac_cv_prog_MIG"; then
9052 ac_ct_MIG=$MIG
9053 # Extract the first word of "mig", so it can be a program name with args.
9054set dummy mig; ac_word=$2
b4e70030
JB
9055echo "$as_me:$LINENO: checking for $ac_word" >&5
9056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9057if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059else
9060 if test -n "$ac_ct_MIG"; then
9061 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9062else
9063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064for as_dir in $PATH
9065do
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
9068 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9070 ac_cv_prog_ac_ct_MIG="mig"
9071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 break 2
9073 fi
9074done
9075done
c906108c 9076
bec39cab
AC
9077fi
9078fi
9079ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9080if test -n "$ac_ct_MIG"; then
b4e70030
JB
9081 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9082echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 9083else
b4e70030
JB
9084 echo "$as_me:$LINENO: result: no" >&5
9085echo "${ECHO_T}no" >&6
bec39cab 9086fi
c906108c 9087
b4e70030 9088 MIG=$ac_ct_MIG
bec39cab
AC
9089else
9090 MIG="$ac_cv_prog_MIG"
9091fi
c906108c 9092
c906108c 9093
bec39cab
AC
9094# ---------------------- #
9095# Checks for libraries. #
9096# ---------------------- #
c906108c 9097
bec39cab 9098# We might need to link with -lm; most simulators need it.
c906108c 9099
b4e70030
JB
9100echo "$as_me:$LINENO: checking for main in -lm" >&5
9101echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
9102if test "${ac_cv_lib_m_main+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104else
9105 ac_check_lib_save_LIBS=$LIBS
9106LIBS="-lm $LIBS"
9107cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h. */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h. */
c906108c 9113
c906108c 9114
bec39cab
AC
9115int
9116main ()
9117{
b4e70030 9118main ();
bec39cab
AC
9119 ;
9120 return 0;
9121}
9122_ACEOF
9123rm -f conftest.$ac_objext conftest$ac_exeext
9124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
b4e70030
JB
9132 { ac_try='test -z "$ac_c_werror_flag"
9133 || test ! -s conftest.err'
bec39cab
AC
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 (eval $ac_try) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 ac_cv_lib_m_main=yes
9146else
9147 echo "$as_me: failed program was:" >&5
9148sed 's/^/| /' conftest.$ac_ext >&5
9149
b4e70030 9150ac_cv_lib_m_main=no
bec39cab
AC
9151fi
9152rm -f conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154LIBS=$ac_check_lib_save_LIBS
9155fi
b4e70030
JB
9156echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9157echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
9158if test $ac_cv_lib_m_main = yes; then
9159 cat >>confdefs.h <<_ACEOF
9160#define HAVE_LIBM 1
9161_ACEOF
9162
9163 LIBS="-lm $LIBS"
c906108c 9164
c906108c 9165fi
bec39cab
AC
9166
9167
9168# We need to link with -lw to get `wctype' on Solaris before Solaris
9169# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9170# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9171# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
9172echo "$as_me:$LINENO: checking for wctype" >&5
9173echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
9174if test "${ac_cv_func_wctype+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9176else
9177 cat >conftest.$ac_ext <<_ACEOF
9178/* confdefs.h. */
9179_ACEOF
9180cat confdefs.h >>conftest.$ac_ext
9181cat >>conftest.$ac_ext <<_ACEOF
9182/* end confdefs.h. */
9183/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9185#define wctype innocuous_wctype
9186
9187/* System header to define __stub macros and hopefully few prototypes,
9188 which can conflict with char wctype (); below.
9189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9190 <limits.h> exists even on freestanding compilers. */
9191
9192#ifdef __STDC__
9193# include <limits.h>
9194#else
9195# include <assert.h>
9196#endif
9197
9198#undef wctype
9199
b4e70030 9200/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9201#ifdef __cplusplus
9202extern "C"
b4e70030 9203{
bec39cab 9204#endif
b4e70030
JB
9205/* We use char because int might match the return type of a gcc2
9206 builtin and then its argument prototype would still apply. */
bec39cab
AC
9207char wctype ();
9208/* The GNU C library defines this for functions which it implements
9209 to always fail with ENOSYS. Some functions are actually named
9210 something starting with __ and the normal name is an alias. */
b4e70030 9211#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 9212choke me
b4e70030
JB
9213#else
9214char (*f) () = wctype;
9215#endif
9216#ifdef __cplusplus
9217}
bec39cab
AC
9218#endif
9219
9220int
9221main ()
9222{
b4e70030 9223return f != wctype;
bec39cab
AC
9224 ;
9225 return 0;
9226}
9227_ACEOF
9228rm -f conftest.$ac_objext conftest$ac_exeext
9229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
b4e70030
JB
9237 { ac_try='test -z "$ac_c_werror_flag"
9238 || test ! -s conftest.err'
bec39cab
AC
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; } &&
9244 { ac_try='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_cv_func_wctype=yes
9251else
9252 echo "$as_me: failed program was:" >&5
9253sed 's/^/| /' conftest.$ac_ext >&5
9254
b4e70030 9255ac_cv_func_wctype=no
bec39cab
AC
9256fi
9257rm -f conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259fi
b4e70030
JB
9260echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9261echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
9262if test $ac_cv_func_wctype = yes; then
9263 :
c906108c 9264else
c906108c 9265
b4e70030
JB
9266echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9267echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
9268if test "${ac_cv_lib_w_wctype+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270else
9271 ac_check_lib_save_LIBS=$LIBS
9272LIBS="-lw $LIBS"
9273cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h. */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
9278/* end confdefs.h. */
c906108c 9279
b4e70030 9280/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9281#ifdef __cplusplus
9282extern "C"
9283#endif
b4e70030
JB
9284/* We use char because int might match the return type of a gcc2
9285 builtin and then its argument prototype would still apply. */
bec39cab
AC
9286char wctype ();
9287int
9288main ()
9289{
b4e70030 9290wctype ();
bec39cab
AC
9291 ;
9292 return 0;
9293}
9294_ACEOF
9295rm -f conftest.$ac_objext conftest$ac_exeext
9296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297 (eval $ac_link) 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
b4e70030
JB
9304 { ac_try='test -z "$ac_c_werror_flag"
9305 || test ! -s conftest.err'
bec39cab
AC
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; } &&
9311 { ac_try='test -s conftest$ac_exeext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 (eval $ac_try) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 ac_cv_lib_w_wctype=yes
9318else
9319 echo "$as_me: failed program was:" >&5
9320sed 's/^/| /' conftest.$ac_ext >&5
9321
b4e70030 9322ac_cv_lib_w_wctype=no
bec39cab
AC
9323fi
9324rm -f conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
9326LIBS=$ac_check_lib_save_LIBS
9327fi
b4e70030
JB
9328echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9329echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
9330if test $ac_cv_lib_w_wctype = yes; then
9331 cat >>confdefs.h <<_ACEOF
9332#define HAVE_LIBW 1
9333_ACEOF
c906108c 9334
bec39cab 9335 LIBS="-lw $LIBS"
c906108c 9336
bec39cab 9337fi
c906108c 9338
bec39cab 9339fi
c906108c 9340
ddc9cd0f 9341
bec39cab 9342# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
9343echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9344echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
9345if test "${ac_cv_search_gethostbyname+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348 ac_func_search_save_LIBS=$LIBS
b4e70030 9349ac_cv_search_gethostbyname=no
bec39cab
AC
9350cat >conftest.$ac_ext <<_ACEOF
9351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
ddc9cd0f 9356
b4e70030 9357/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9358#ifdef __cplusplus
9359extern "C"
9360#endif
b4e70030
JB
9361/* We use char because int might match the return type of a gcc2
9362 builtin and then its argument prototype would still apply. */
bec39cab
AC
9363char gethostbyname ();
9364int
9365main ()
9366{
b4e70030 9367gethostbyname ();
bec39cab
AC
9368 ;
9369 return 0;
9370}
9371_ACEOF
b4e70030 9372rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9374 (eval $ac_link) 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
b4e70030
JB
9381 { ac_try='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
bec39cab
AC
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
b4e70030 9394 ac_cv_search_gethostbyname="none required"
bec39cab
AC
9395else
9396 echo "$as_me: failed program was:" >&5
9397sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 9398
bec39cab
AC
9399fi
9400rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9401 conftest$ac_exeext conftest.$ac_ext
9402if test "$ac_cv_search_gethostbyname" = no; then
9403 for ac_lib in nsl; do
9404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9405 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9406/* confdefs.h. */
9407_ACEOF
9408cat confdefs.h >>conftest.$ac_ext
9409cat >>conftest.$ac_ext <<_ACEOF
9410/* end confdefs.h. */
ddc9cd0f 9411
b4e70030 9412/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9413#ifdef __cplusplus
9414extern "C"
9415#endif
b4e70030
JB
9416/* We use char because int might match the return type of a gcc2
9417 builtin and then its argument prototype would still apply. */
9418char gethostbyname ();
bec39cab
AC
9419int
9420main ()
9421{
b4e70030 9422gethostbyname ();
bec39cab
AC
9423 ;
9424 return 0;
9425}
9426_ACEOF
b4e70030 9427rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429 (eval $ac_link) 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
b4e70030
JB
9436 { ac_try='test -z "$ac_c_werror_flag"
9437 || test ! -s conftest.err'
bec39cab
AC
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 (eval $ac_try) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; } &&
9443 { ac_try='test -s conftest$ac_exeext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 (eval $ac_try) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
b4e70030
JB
9449 ac_cv_search_gethostbyname="-l$ac_lib"
9450break
bec39cab
AC
9451else
9452 echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
9455fi
9456rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9457 conftest$ac_exeext conftest.$ac_ext
9458 done
bec39cab
AC
9459fi
9460LIBS=$ac_func_search_save_LIBS
9461fi
b4e70030
JB
9462echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9463echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9464if test "$ac_cv_search_gethostbyname" != no; then
9465 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 9466
bec39cab 9467fi
96baa820 9468
c906108c 9469
b4e70030
JB
9470# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9471echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9472echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9473if test "${ac_cv_search_socketpair+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476 ac_func_search_save_LIBS=$LIBS
9477ac_cv_search_socketpair=no
9478cat >conftest.$ac_ext <<_ACEOF
9479/* confdefs.h. */
9480_ACEOF
9481cat confdefs.h >>conftest.$ac_ext
9482cat >>conftest.$ac_ext <<_ACEOF
9483/* end confdefs.h. */
9484
9485/* Override any gcc2 internal prototype to avoid an error. */
9486#ifdef __cplusplus
9487extern "C"
9488#endif
9489/* We use char because int might match the return type of a gcc2
9490 builtin and then its argument prototype would still apply. */
9491char socketpair ();
9492int
9493main ()
9494{
9495socketpair ();
9496 ;
9497 return 0;
9498}
9499_ACEOF
9500rm -f conftest.$ac_objext conftest$ac_exeext
9501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502 (eval $ac_link) 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag"
9510 || test ! -s conftest.err'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; } &&
9516 { ac_try='test -s conftest$ac_exeext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_search_socketpair="none required"
9523else
9524 echo "$as_me: failed program was:" >&5
9525sed 's/^/| /' conftest.$ac_ext >&5
9526
9527fi
9528rm -f conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530if test "$ac_cv_search_socketpair" = no; then
9531 for ac_lib in socket; do
9532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9533 cat >conftest.$ac_ext <<_ACEOF
9534/* confdefs.h. */
9535_ACEOF
9536cat confdefs.h >>conftest.$ac_ext
9537cat >>conftest.$ac_ext <<_ACEOF
9538/* end confdefs.h. */
9539
9540/* Override any gcc2 internal prototype to avoid an error. */
9541#ifdef __cplusplus
9542extern "C"
9543#endif
9544/* We use char because int might match the return type of a gcc2
9545 builtin and then its argument prototype would still apply. */
9546char socketpair ();
9547int
9548main ()
9549{
9550socketpair ();
9551 ;
9552 return 0;
9553}
9554_ACEOF
9555rm -f conftest.$ac_objext conftest$ac_exeext
9556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_search_socketpair="-l$ac_lib"
9578break
9579else
9580 echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583fi
9584rm -f conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 done
9587fi
9588LIBS=$ac_func_search_save_LIBS
9589fi
9590echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9591echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9592if test "$ac_cv_search_socketpair" != no; then
9593 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9594
9595fi
9596
9597
9598# For the TUI, we need enhanced curses functionality.
bec39cab
AC
9599#
9600# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9601# curses library because the latter might not provide all the
9602# functionality we need. However, this leads to problems on systems
9603# where the linker searches /usr/local/lib, but the compiler doesn't
9604# search /usr/local/include, if ncurses is installed in /usr/local. A
9605# default installation of ncurses on alpha*-dec-osf* will lead to such
9606# a situation.
b4e70030
JB
9607echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9608echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
9609if test "${ac_cv_search_waddstr+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611else
9612 ac_func_search_save_LIBS=$LIBS
b4e70030 9613ac_cv_search_waddstr=no
bec39cab
AC
9614cat >conftest.$ac_ext <<_ACEOF
9615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
c906108c 9620
b4e70030 9621/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9622#ifdef __cplusplus
9623extern "C"
9624#endif
b4e70030
JB
9625/* We use char because int might match the return type of a gcc2
9626 builtin and then its argument prototype would still apply. */
bec39cab
AC
9627char waddstr ();
9628int
9629main ()
9630{
b4e70030 9631waddstr ();
bec39cab
AC
9632 ;
9633 return 0;
9634}
9635_ACEOF
b4e70030 9636rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638 (eval $ac_link) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
b4e70030
JB
9645 { ac_try='test -z "$ac_c_werror_flag"
9646 || test ! -s conftest.err'
bec39cab
AC
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest$ac_exeext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 (eval $ac_try) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
b4e70030 9658 ac_cv_search_waddstr="none required"
bec39cab
AC
9659else
9660 echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
9662
9663fi
bec39cab 9664rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9665 conftest$ac_exeext conftest.$ac_ext
9666if test "$ac_cv_search_waddstr" = no; then
9667 for ac_lib in ncurses cursesX curses; do
9668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9669 cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
9675
9676/* Override any gcc2 internal prototype to avoid an error. */
9677#ifdef __cplusplus
9678extern "C"
9679#endif
9680/* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9682char waddstr ();
9683int
9684main ()
9685{
9686waddstr ();
9687 ;
9688 return 0;
9689}
9690_ACEOF
9691rm -f conftest.$ac_objext conftest$ac_exeext
9692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9693 (eval $ac_link) 2>conftest.er1
9694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -z "$ac_c_werror_flag"
9701 || test ! -s conftest.err'
9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 (eval $ac_try) 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_cv_search_waddstr="-l$ac_lib"
9714break
4e8d927d 9715else
b4e70030
JB
9716 echo "$as_me: failed program was:" >&5
9717sed 's/^/| /' conftest.$ac_ext >&5
9718
9719fi
9720rm -f conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext conftest.$ac_ext
9722 done
1ba607ad 9723fi
bec39cab
AC
9724LIBS=$ac_func_search_save_LIBS
9725fi
b4e70030
JB
9726echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
9727echo "${ECHO_T}$ac_cv_search_waddstr" >&6
9728if test "$ac_cv_search_waddstr" != no; then
9729 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 9730
8bb2c122 9731fi
8bb2c122 9732
8bb2c122 9733
d542061a
UW
9734# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9735echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9736echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9737if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739else
9740 ac_func_search_save_LIBS=$LIBS
9741ac_cv_search_dlgetmodinfo=no
9742cat >conftest.$ac_ext <<_ACEOF
9743/* confdefs.h. */
9744_ACEOF
9745cat confdefs.h >>conftest.$ac_ext
9746cat >>conftest.$ac_ext <<_ACEOF
9747/* end confdefs.h. */
9748
9749/* Override any gcc2 internal prototype to avoid an error. */
9750#ifdef __cplusplus
9751extern "C"
9752#endif
9753/* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9755char dlgetmodinfo ();
9756int
9757main ()
9758{
9759dlgetmodinfo ();
9760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext conftest$ac_exeext
9765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest$ac_exeext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_cv_search_dlgetmodinfo="none required"
9787else
9788 echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
9791fi
9792rm -f conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794if test "$ac_cv_search_dlgetmodinfo" = no; then
9795 for ac_lib in dl xpdl; do
9796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9797 cat >conftest.$ac_ext <<_ACEOF
9798/* confdefs.h. */
9799_ACEOF
9800cat confdefs.h >>conftest.$ac_ext
9801cat >>conftest.$ac_ext <<_ACEOF
9802/* end confdefs.h. */
9803
9804/* Override any gcc2 internal prototype to avoid an error. */
9805#ifdef __cplusplus
9806extern "C"
9807#endif
9808/* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9810char dlgetmodinfo ();
9811int
9812main ()
9813{
9814dlgetmodinfo ();
9815 ;
9816 return 0;
9817}
9818_ACEOF
9819rm -f conftest.$ac_objext conftest$ac_exeext
9820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9821 (eval $ac_link) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_search_dlgetmodinfo="-l$ac_lib"
9842break
9843else
9844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847fi
9848rm -f conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850 done
9851fi
9852LIBS=$ac_func_search_save_LIBS
9853fi
9854echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
9855echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
9856if test "$ac_cv_search_dlgetmodinfo" != no; then
9857 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
9858
9859fi
9860
9861
bec39cab
AC
9862# Since GDB uses Readline, we need termcap functionality. In many
9863# cases this will be provided by the curses library, but some systems
9864# have a seperate termcap library, or no curses library at all.
8bb2c122 9865
bec39cab
AC
9866case $host_os in
9867 cygwin*)
9868 if test -d $srcdir/libtermcap; then
9869 LIBS="../libtermcap/libtermcap.a $LIBS"
9870 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9871 fi ;;
9872 go32* | *djgpp*)
9873 ac_cv_search_tgetent="none required"
9874 ;;
7ef34f2c
MM
9875 *mingw32*)
9876 ac_cv_search_tgetent="none required"
9877 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
9878 ;;
bec39cab 9879esac
627af7ea 9880
bec39cab 9881# These are the libraries checked by Readline.
b4e70030
JB
9882echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9883echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
9884if test "${ac_cv_search_tgetent+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886else
9887 ac_func_search_save_LIBS=$LIBS
b4e70030 9888ac_cv_search_tgetent=no
bec39cab
AC
9889cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h. */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h. */
9895
b4e70030 9896/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9897#ifdef __cplusplus
9898extern "C"
9899#endif
b4e70030
JB
9900/* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
bec39cab
AC
9902char tgetent ();
9903int
9904main ()
9905{
b4e70030 9906tgetent ();
bec39cab
AC
9907 ;
9908 return 0;
9909}
9910_ACEOF
b4e70030 9911rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>conftest.er1
9914 ac_status=$?
9915 grep -v '^ *+' conftest.er1 >conftest.err
9916 rm -f conftest.er1
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
b4e70030
JB
9920 { ac_try='test -z "$ac_c_werror_flag"
9921 || test ! -s conftest.err'
bec39cab
AC
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 (eval $ac_try) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 (eval $ac_try) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
b4e70030 9933 ac_cv_search_tgetent="none required"
627af7ea 9934else
bec39cab
AC
9935 echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 9937
627af7ea 9938fi
bec39cab 9939rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9940 conftest$ac_exeext conftest.$ac_ext
9941if test "$ac_cv_search_tgetent" = no; then
9942 for ac_lib in termcap tinfo curses ncurses; do
9943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9944 cat >conftest.$ac_ext <<_ACEOF
9945/* confdefs.h. */
9946_ACEOF
9947cat confdefs.h >>conftest.$ac_ext
9948cat >>conftest.$ac_ext <<_ACEOF
9949/* end confdefs.h. */
9950
9951/* Override any gcc2 internal prototype to avoid an error. */
9952#ifdef __cplusplus
9953extern "C"
9954#endif
9955/* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9957char tgetent ();
9958int
9959main ()
9960{
9961tgetent ();
9962 ;
9963 return 0;
9964}
9965_ACEOF
9966rm -f conftest.$ac_objext conftest$ac_exeext
9967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968 (eval $ac_link) 2>conftest.er1
9969 ac_status=$?
9970 grep -v '^ *+' conftest.er1 >conftest.err
9971 rm -f conftest.er1
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag"
9976 || test ! -s conftest.err'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 (eval $ac_try) 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest$ac_exeext'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_search_tgetent="-l$ac_lib"
9989break
4e8d927d 9990else
b4e70030
JB
9991 echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
9994fi
9995rm -f conftest.err conftest.$ac_objext \
9996 conftest$ac_exeext conftest.$ac_ext
9997 done
bec39cab
AC
9998fi
9999LIBS=$ac_func_search_save_LIBS
10000fi
b4e70030
JB
10001echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10002echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10003if test "$ac_cv_search_tgetent" != no; then
10004 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 10005
06825bd1
MK
10006fi
10007
06825bd1 10008
bec39cab
AC
10009if test "$ac_cv_search_tgetent" = no; then
10010 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10011echo "$as_me: error: no termcap library found" >&2;}
10012 { (exit 1); exit 1; }; }
8ee53726
MK
10013fi
10014
3841debe 10015
6a30b0a5
AS
10016# Check whether --with-system-readline or --without-system-readline was given.
10017if test "${with_system_readline+set}" = set; then
10018 withval="$with_system_readline"
10019
10020fi;
10021
10022if test "$with_system_readline" = yes; then
10023 READLINE=-lreadline
10024 READLINE_DEPS=
10025 READLINE_CFLAGS=
10026else
10027 READLINE='$(READLINE_DIR)/libreadline.a'
10028 READLINE_DEPS='$(READLINE)'
10029 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10030fi
10031
10032
10033
10034
10035
5c39566f
DJ
10036# Check whether --with-expat or --without-expat was given.
10037if test "${with_expat+set}" = set; then
10038 withval="$with_expat"
10039
10040else
10041 with_expat=auto
10042fi;
10043echo "$as_me:$LINENO: checking whether to use expat" >&5
10044echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10045echo "$as_me:$LINENO: result: $with_expat" >&5
10046echo "${ECHO_T}$with_expat" >&6
10047
10048if test "${with_expat}" = no; then
10049 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10050echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10051 HAVE_LIBEXPAT=no
10052else
10053
3841debe
DJ
10054 if test "X$prefix" = "XNONE"; then
10055 acl_final_prefix="$ac_default_prefix"
10056 else
10057 acl_final_prefix="$prefix"
10058 fi
10059 if test "X$exec_prefix" = "XNONE"; then
10060 acl_final_exec_prefix='${prefix}'
10061 else
10062 acl_final_exec_prefix="$exec_prefix"
10063 fi
10064 acl_save_prefix="$prefix"
10065 prefix="$acl_final_prefix"
10066 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10067 prefix="$acl_save_prefix"
10068
10069
10070# Check whether --with-gnu-ld or --without-gnu-ld was given.
10071if test "${with_gnu_ld+set}" = set; then
10072 withval="$with_gnu_ld"
10073 test "$withval" = no || with_gnu_ld=yes
10074else
10075 with_gnu_ld=no
10076fi;
10077# Prepare PATH_SEPARATOR.
10078# The user is always right.
10079if test "${PATH_SEPARATOR+set}" != set; then
10080 echo "#! /bin/sh" >conf$$.sh
10081 echo "exit 0" >>conf$$.sh
10082 chmod +x conf$$.sh
10083 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10084 PATH_SEPARATOR=';'
10085 else
10086 PATH_SEPARATOR=:
10087 fi
10088 rm -f conf$$.sh
10089fi
10090ac_prog=ld
10091if test "$GCC" = yes; then
10092 # Check if gcc -print-prog-name=ld gives a path.
10093 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10094echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10095 case $host in
10096 *-*-mingw*)
10097 # gcc leaves a trailing carriage return which upsets mingw
10098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10099 *)
10100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10101 esac
10102 case $ac_prog in
10103 # Accept absolute paths.
10104 [\\/]* | [A-Za-z]:[\\/]*)
10105 re_direlt='/[^/][^/]*/\.\./'
10106 # Canonicalize the path of ld
10107 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10108 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10109 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10110 done
10111 test -z "$LD" && LD="$ac_prog"
10112 ;;
10113 "")
10114 # If it fails, then pretend we aren't using GCC.
10115 ac_prog=ld
10116 ;;
10117 *)
10118 # If it is relative, then search for the first ld in PATH.
10119 with_gnu_ld=unknown
10120 ;;
10121 esac
10122elif test "$with_gnu_ld" = yes; then
10123 echo "$as_me:$LINENO: checking for GNU ld" >&5
10124echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10125else
10126 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10127echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10128fi
10129if test "${acl_cv_path_LD+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131else
10132 if test -z "$LD"; then
10133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10134 for ac_dir in $PATH; do
10135 test -z "$ac_dir" && ac_dir=.
10136 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10137 acl_cv_path_LD="$ac_dir/$ac_prog"
10138 # Check to see if the program is GNU ld. I'd rather use --version,
10139 # but apparently some GNU ld's only accept -v.
10140 # Break only if it was the GNU/non-GNU ld that we prefer.
10141 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10142 test "$with_gnu_ld" != no && break
10143 else
10144 test "$with_gnu_ld" != yes && break
10145 fi
10146 fi
10147 done
10148 IFS="$ac_save_ifs"
10149else
10150 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10151fi
10152fi
10153
10154LD="$acl_cv_path_LD"
10155if test -n "$LD"; then
10156 echo "$as_me:$LINENO: result: $LD" >&5
10157echo "${ECHO_T}$LD" >&6
10158else
10159 echo "$as_me:$LINENO: result: no" >&5
10160echo "${ECHO_T}no" >&6
10161fi
10162test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10163echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10164 { (exit 1); exit 1; }; }
10165echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10166echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10167if test "${acl_cv_prog_gnu_ld+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169else
10170 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10171if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10172 acl_cv_prog_gnu_ld=yes
10173else
10174 acl_cv_prog_gnu_ld=no
10175fi
10176fi
10177echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10178echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10179with_gnu_ld=$acl_cv_prog_gnu_ld
10180
10181
10182
10183 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10184echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10185if test "${acl_cv_rpath+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187else
10188
10189 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10190 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10191 . ./conftest.sh
10192 rm -f ./conftest.sh
10193 acl_cv_rpath=done
10194
10195fi
10196echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10197echo "${ECHO_T}$acl_cv_rpath" >&6
10198 wl="$acl_cv_wl"
10199 libext="$acl_cv_libext"
10200 shlibext="$acl_cv_shlibext"
10201 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10202 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10203 hardcode_direct="$acl_cv_hardcode_direct"
10204 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10205 # Check whether --enable-rpath or --disable-rpath was given.
10206if test "${enable_rpath+set}" = set; then
10207 enableval="$enable_rpath"
10208 :
10209else
10210 enable_rpath=yes
10211fi;
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221 use_additional=yes
10222
10223 acl_save_prefix="$prefix"
10224 prefix="$acl_final_prefix"
10225 acl_save_exec_prefix="$exec_prefix"
10226 exec_prefix="$acl_final_exec_prefix"
10227
10228 eval additional_includedir=\"$includedir\"
10229 eval additional_libdir=\"$libdir\"
10230
10231 exec_prefix="$acl_save_exec_prefix"
10232 prefix="$acl_save_prefix"
10233
10234
10235# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10236if test "${with_libexpat_prefix+set}" = set; then
10237 withval="$with_libexpat_prefix"
10238
10239 if test "X$withval" = "Xno"; then
10240 use_additional=no
10241 else
10242 if test "X$withval" = "X"; then
10243
10244 acl_save_prefix="$prefix"
10245 prefix="$acl_final_prefix"
10246 acl_save_exec_prefix="$exec_prefix"
10247 exec_prefix="$acl_final_exec_prefix"
10248
10249 eval additional_includedir=\"$includedir\"
10250 eval additional_libdir=\"$libdir\"
10251
10252 exec_prefix="$acl_save_exec_prefix"
10253 prefix="$acl_save_prefix"
10254
10255 else
10256 additional_includedir="$withval/include"
10257 additional_libdir="$withval/lib"
10258 fi
10259 fi
10260
10261fi;
10262 LIBEXPAT=
10263 LTLIBEXPAT=
10264 INCEXPAT=
10265 rpathdirs=
10266 ltrpathdirs=
10267 names_already_handled=
10268 names_next_round='expat '
10269 while test -n "$names_next_round"; do
10270 names_this_round="$names_next_round"
10271 names_next_round=
10272 for name in $names_this_round; do
10273 already_handled=
10274 for n in $names_already_handled; do
10275 if test "$n" = "$name"; then
10276 already_handled=yes
10277 break
10278 fi
10279 done
10280 if test -z "$already_handled"; then
10281 names_already_handled="$names_already_handled $name"
10282 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10283 eval value=\"\$HAVE_LIB$uppername\"
10284 if test -n "$value"; then
10285 if test "$value" = yes; then
10286 eval value=\"\$LIB$uppername\"
10287 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10288 eval value=\"\$LTLIB$uppername\"
10289 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10290 else
10291 :
10292 fi
10293 else
10294 found_dir=
10295 found_la=
10296 found_so=
10297 found_a=
10298 if test $use_additional = yes; then
10299 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10300 found_dir="$additional_libdir"
10301 found_so="$additional_libdir/lib$name.$shlibext"
10302 if test -f "$additional_libdir/lib$name.la"; then
10303 found_la="$additional_libdir/lib$name.la"
10304 fi
10305 else
10306 if test -f "$additional_libdir/lib$name.$libext"; then
10307 found_dir="$additional_libdir"
10308 found_a="$additional_libdir/lib$name.$libext"
10309 if test -f "$additional_libdir/lib$name.la"; then
10310 found_la="$additional_libdir/lib$name.la"
10311 fi
10312 fi
10313 fi
10314 fi
10315 if test "X$found_dir" = "X"; then
10316 for x in $LDFLAGS $LTLIBEXPAT; do
10317
10318 acl_save_prefix="$prefix"
10319 prefix="$acl_final_prefix"
10320 acl_save_exec_prefix="$exec_prefix"
10321 exec_prefix="$acl_final_exec_prefix"
10322 eval x=\"$x\"
10323 exec_prefix="$acl_save_exec_prefix"
10324 prefix="$acl_save_prefix"
10325
10326 case "$x" in
10327 -L*)
10328 dir=`echo "X$x" | sed -e 's/^X-L//'`
10329 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10330 found_dir="$dir"
10331 found_so="$dir/lib$name.$shlibext"
10332 if test -f "$dir/lib$name.la"; then
10333 found_la="$dir/lib$name.la"
10334 fi
10335 else
10336 if test -f "$dir/lib$name.$libext"; then
10337 found_dir="$dir"
10338 found_a="$dir/lib$name.$libext"
10339 if test -f "$dir/lib$name.la"; then
10340 found_la="$dir/lib$name.la"
10341 fi
10342 fi
10343 fi
10344 ;;
10345 esac
10346 if test "X$found_dir" != "X"; then
10347 break
10348 fi
10349 done
10350 fi
10351 if test "X$found_dir" != "X"; then
10352 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10353 if test "X$found_so" != "X"; then
10354 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10355 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10356 else
10357 haveit=
10358 for x in $ltrpathdirs; do
10359 if test "X$x" = "X$found_dir"; then
10360 haveit=yes
10361 break
10362 fi
10363 done
10364 if test -z "$haveit"; then
10365 ltrpathdirs="$ltrpathdirs $found_dir"
10366 fi
10367 if test "$hardcode_direct" = yes; then
10368 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10369 else
10370 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10371 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10372 haveit=
10373 for x in $rpathdirs; do
10374 if test "X$x" = "X$found_dir"; then
10375 haveit=yes
10376 break
10377 fi
10378 done
10379 if test -z "$haveit"; then
10380 rpathdirs="$rpathdirs $found_dir"
10381 fi
10382 else
10383 haveit=
10384 for x in $LDFLAGS $LIBEXPAT; do
10385
10386 acl_save_prefix="$prefix"
10387 prefix="$acl_final_prefix"
10388 acl_save_exec_prefix="$exec_prefix"
10389 exec_prefix="$acl_final_exec_prefix"
10390 eval x=\"$x\"
10391 exec_prefix="$acl_save_exec_prefix"
10392 prefix="$acl_save_prefix"
10393
10394 if test "X$x" = "X-L$found_dir"; then
10395 haveit=yes
10396 break
10397 fi
10398 done
10399 if test -z "$haveit"; then
10400 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10401 fi
10402 if test "$hardcode_minus_L" != no; then
10403 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10404 else
10405 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10406 fi
10407 fi
10408 fi
10409 fi
10410 else
10411 if test "X$found_a" != "X"; then
10412 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10413 else
10414 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10415 fi
10416 fi
10417 additional_includedir=
10418 case "$found_dir" in
10419 */lib | */lib/)
10420 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10421 additional_includedir="$basedir/include"
10422 ;;
10423 esac
10424 if test "X$additional_includedir" != "X"; then
10425 if test "X$additional_includedir" != "X/usr/include"; then
10426 haveit=
10427 if test "X$additional_includedir" = "X/usr/local/include"; then
10428 if test -n "$GCC"; then
10429 case $host_os in
10430 linux*) haveit=yes;;
10431 esac
10432 fi
10433 fi
10434 if test -z "$haveit"; then
10435 for x in $CPPFLAGS $INCEXPAT; do
10436
10437 acl_save_prefix="$prefix"
10438 prefix="$acl_final_prefix"
10439 acl_save_exec_prefix="$exec_prefix"
10440 exec_prefix="$acl_final_exec_prefix"
10441 eval x=\"$x\"
10442 exec_prefix="$acl_save_exec_prefix"
10443 prefix="$acl_save_prefix"
10444
10445 if test "X$x" = "X-I$additional_includedir"; then
10446 haveit=yes
10447 break
10448 fi
10449 done
10450 if test -z "$haveit"; then
10451 if test -d "$additional_includedir"; then
10452 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10453 fi
10454 fi
10455 fi
10456 fi
10457 fi
10458 if test -n "$found_la"; then
10459 save_libdir="$libdir"
10460 case "$found_la" in
10461 */* | *\\*) . "$found_la" ;;
10462 *) . "./$found_la" ;;
10463 esac
10464 libdir="$save_libdir"
10465 for dep in $dependency_libs; do
10466 case "$dep" in
10467 -L*)
10468 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10469 if test "X$additional_libdir" != "X/usr/lib"; then
10470 haveit=
10471 if test "X$additional_libdir" = "X/usr/local/lib"; then
10472 if test -n "$GCC"; then
10473 case $host_os in
10474 linux*) haveit=yes;;
10475 esac
10476 fi
10477 fi
10478 if test -z "$haveit"; then
10479 haveit=
10480 for x in $LDFLAGS $LIBEXPAT; do
10481
10482 acl_save_prefix="$prefix"
10483 prefix="$acl_final_prefix"
10484 acl_save_exec_prefix="$exec_prefix"
10485 exec_prefix="$acl_final_exec_prefix"
10486 eval x=\"$x\"
10487 exec_prefix="$acl_save_exec_prefix"
10488 prefix="$acl_save_prefix"
10489
10490 if test "X$x" = "X-L$additional_libdir"; then
10491 haveit=yes
10492 break
10493 fi
10494 done
10495 if test -z "$haveit"; then
10496 if test -d "$additional_libdir"; then
10497 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10498 fi
10499 fi
10500 haveit=
10501 for x in $LDFLAGS $LTLIBEXPAT; do
10502
10503 acl_save_prefix="$prefix"
10504 prefix="$acl_final_prefix"
10505 acl_save_exec_prefix="$exec_prefix"
10506 exec_prefix="$acl_final_exec_prefix"
10507 eval x=\"$x\"
10508 exec_prefix="$acl_save_exec_prefix"
10509 prefix="$acl_save_prefix"
10510
10511 if test "X$x" = "X-L$additional_libdir"; then
10512 haveit=yes
10513 break
10514 fi
10515 done
10516 if test -z "$haveit"; then
10517 if test -d "$additional_libdir"; then
10518 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10519 fi
10520 fi
10521 fi
10522 fi
10523 ;;
10524 -R*)
10525 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10526 if test "$enable_rpath" != no; then
10527 haveit=
10528 for x in $rpathdirs; do
10529 if test "X$x" = "X$dir"; then
10530 haveit=yes
10531 break
10532 fi
10533 done
10534 if test -z "$haveit"; then
10535 rpathdirs="$rpathdirs $dir"
10536 fi
10537 haveit=
10538 for x in $ltrpathdirs; do
10539 if test "X$x" = "X$dir"; then
10540 haveit=yes
10541 break
10542 fi
10543 done
10544 if test -z "$haveit"; then
10545 ltrpathdirs="$ltrpathdirs $dir"
10546 fi
10547 fi
10548 ;;
10549 -l*)
10550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10551 ;;
10552 *.la)
10553 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10554 ;;
10555 *)
10556 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10557 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10558 ;;
10559 esac
10560 done
10561 fi
10562 else
10563 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10564 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10565 fi
10566 fi
10567 fi
10568 done
10569 done
10570 if test "X$rpathdirs" != "X"; then
10571 if test -n "$hardcode_libdir_separator"; then
10572 alldirs=
10573 for found_dir in $rpathdirs; do
10574 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10575 done
10576 acl_save_libdir="$libdir"
10577 libdir="$alldirs"
10578 eval flag=\"$hardcode_libdir_flag_spec\"
10579 libdir="$acl_save_libdir"
10580 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10581 else
10582 for found_dir in $rpathdirs; do
10583 acl_save_libdir="$libdir"
10584 libdir="$found_dir"
10585 eval flag=\"$hardcode_libdir_flag_spec\"
10586 libdir="$acl_save_libdir"
10587 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10588 done
10589 fi
10590 fi
10591 if test "X$ltrpathdirs" != "X"; then
10592 for found_dir in $ltrpathdirs; do
10593 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10594 done
10595 fi
10596
10597
10598 ac_save_CPPFLAGS="$CPPFLAGS"
10599
10600 for element in $INCEXPAT; do
10601 haveit=
10602 for x in $CPPFLAGS; do
10603
10604 acl_save_prefix="$prefix"
10605 prefix="$acl_final_prefix"
10606 acl_save_exec_prefix="$exec_prefix"
10607 exec_prefix="$acl_final_exec_prefix"
10608 eval x=\"$x\"
10609 exec_prefix="$acl_save_exec_prefix"
10610 prefix="$acl_save_prefix"
10611
10612 if test "X$x" = "X$element"; then
10613 haveit=yes
10614 break
10615 fi
10616 done
10617 if test -z "$haveit"; then
10618 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10619 fi
10620 done
10621
10622
10623 echo "$as_me:$LINENO: checking for libexpat" >&5
10624echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
10625if test "${ac_cv_libexpat+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627else
10628
10629 ac_save_LIBS="$LIBS"
10630 LIBS="$LIBS $LIBEXPAT"
10631 cat >conftest.$ac_ext <<_ACEOF
10632/* confdefs.h. */
10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h. */
10637#include "expat.h"
10638int
10639main ()
10640{
10641XML_Parser p = XML_ParserCreate (0);
10642 ;
10643 return 0;
10644}
10645_ACEOF
10646rm -f conftest.$ac_objext conftest$ac_exeext
10647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag"
10656 || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest$ac_exeext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_libexpat=yes
10669else
10670 echo "$as_me: failed program was:" >&5
10671sed 's/^/| /' conftest.$ac_ext >&5
10672
10673ac_cv_libexpat=no
10674fi
10675rm -f conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 LIBS="$ac_save_LIBS"
10678
10679fi
10680echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
10681echo "${ECHO_T}$ac_cv_libexpat" >&6
10682 if test "$ac_cv_libexpat" = yes; then
10683 HAVE_LIBEXPAT=yes
10684
10685cat >>confdefs.h <<\_ACEOF
10686#define HAVE_LIBEXPAT 1
10687_ACEOF
10688
10689 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
10690echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
10691 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
10692echo "${ECHO_T}$LIBEXPAT" >&6
10693 else
10694 HAVE_LIBEXPAT=no
10695 CPPFLAGS="$ac_save_CPPFLAGS"
10696 LIBEXPAT=
10697 LTLIBEXPAT=
10698 fi
10699
10700
10701
10702
10703
10704
5c39566f
DJ
10705 if test "$HAVE_LIBEXPAT" != yes; then
10706 if test "$with_expat" = yes; then
10707 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
10708echo "$as_me: error: expat is missing or unusable" >&2;}
10709 { (exit 1); exit 1; }; }
10710 else
10711 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10712echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10713 fi
10714 else
10715 save_LIBS=$LIBS
10716 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
10717
10718for ac_func in XML_StopParser
10719do
10720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10721echo "$as_me:$LINENO: checking for $ac_func" >&5
10722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10723if eval "test \"\${$as_ac_var+set}\" = set"; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725else
10726 cat >conftest.$ac_ext <<_ACEOF
10727/* confdefs.h. */
10728_ACEOF
10729cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h. */
10732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10734#define $ac_func innocuous_$ac_func
10735
10736/* System header to define __stub macros and hopefully few prototypes,
10737 which can conflict with char $ac_func (); below.
10738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10739 <limits.h> exists even on freestanding compilers. */
10740
10741#ifdef __STDC__
10742# include <limits.h>
10743#else
10744# include <assert.h>
10745#endif
10746
10747#undef $ac_func
10748
10749/* Override any gcc2 internal prototype to avoid an error. */
10750#ifdef __cplusplus
10751extern "C"
10752{
10753#endif
10754/* We use char because int might match the return type of a gcc2
10755 builtin and then its argument prototype would still apply. */
10756char $ac_func ();
10757/* The GNU C library defines this for functions which it implements
10758 to always fail with ENOSYS. Some functions are actually named
10759 something starting with __ and the normal name is an alias. */
10760#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10761choke me
10762#else
10763char (*f) () = $ac_func;
10764#endif
10765#ifdef __cplusplus
10766}
10767#endif
10768
10769int
10770main ()
10771{
10772return f != $ac_func;
10773 ;
10774 return 0;
10775}
10776_ACEOF
10777rm -f conftest.$ac_objext conftest$ac_exeext
10778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10779 (eval $ac_link) 2>conftest.er1
10780 ac_status=$?
10781 grep -v '^ *+' conftest.er1 >conftest.err
10782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -z "$ac_c_werror_flag"
10787 || test ! -s conftest.err'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; } &&
10793 { ac_try='test -s conftest$ac_exeext'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 eval "$as_ac_var=yes"
10800else
10801 echo "$as_me: failed program was:" >&5
10802sed 's/^/| /' conftest.$ac_ext >&5
10803
10804eval "$as_ac_var=no"
10805fi
10806rm -f conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext conftest.$ac_ext
10808fi
10809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10810echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10811if test `eval echo '${'$as_ac_var'}'` = yes; then
10812 cat >>confdefs.h <<_ACEOF
10813#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10814_ACEOF
10815
10816fi
10817done
10818
5c39566f
DJ
10819 LIBS=$save_LIBS
10820 fi
3841debe
DJ
10821fi
10822
bec39cab
AC
10823# ------------------------- #
10824# Checks for header files. #
10825# ------------------------- #
8ee53726 10826
0e5d83e3 10827
bec39cab
AC
10828
10829
10830
10831
10832ac_header_dirent=no
10833for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10834 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
10835echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10836echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10837if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839else
10840 cat >conftest.$ac_ext <<_ACEOF
10841/* confdefs.h. */
10842_ACEOF
10843cat confdefs.h >>conftest.$ac_ext
10844cat >>conftest.$ac_ext <<_ACEOF
10845/* end confdefs.h. */
10846#include <sys/types.h>
0e5d83e3 10847#include <$ac_hdr>
bec39cab
AC
10848
10849int
10850main ()
10851{
10852if ((DIR *) 0)
10853return 0;
10854 ;
10855 return 0;
10856}
10857_ACEOF
10858rm -f conftest.$ac_objext
10859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10860 (eval $ac_compile) 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
b4e70030
JB
10867 { ac_try='test -z "$ac_c_werror_flag"
10868 || test ! -s conftest.err'
bec39cab
AC
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest.$ac_objext'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
10880 eval "$as_ac_Header=yes"
10881else
10882 echo "$as_me: failed program was:" >&5
10883sed 's/^/| /' conftest.$ac_ext >&5
10884
b4e70030 10885eval "$as_ac_Header=no"
bec39cab
AC
10886fi
10887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10888fi
b4e70030
JB
10889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10891if test `eval echo '${'$as_ac_Header'}'` = yes; then
10892 cat >>confdefs.h <<_ACEOF
10893#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10894_ACEOF
10895
10896ac_header_dirent=$ac_hdr; break
0e5d83e3 10897fi
0e5d83e3 10898
bec39cab
AC
10899done
10900# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10901if test $ac_header_dirent = dirent.h; then
b4e70030
JB
10902 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10903echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
10904if test "${ac_cv_search_opendir+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906else
10907 ac_func_search_save_LIBS=$LIBS
b4e70030 10908ac_cv_search_opendir=no
bec39cab
AC
10909cat >conftest.$ac_ext <<_ACEOF
10910/* confdefs.h. */
10911_ACEOF
10912cat confdefs.h >>conftest.$ac_ext
10913cat >>conftest.$ac_ext <<_ACEOF
10914/* end confdefs.h. */
0e5d83e3 10915
b4e70030 10916/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10917#ifdef __cplusplus
10918extern "C"
10919#endif
b4e70030
JB
10920/* We use char because int might match the return type of a gcc2
10921 builtin and then its argument prototype would still apply. */
bec39cab
AC
10922char opendir ();
10923int
10924main ()
10925{
b4e70030 10926opendir ();
bec39cab
AC
10927 ;
10928 return 0;
10929}
10930_ACEOF
b4e70030 10931rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10933 (eval $ac_link) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
b4e70030
JB
10940 { ac_try='test -z "$ac_c_werror_flag"
10941 || test ! -s conftest.err'
bec39cab
AC
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10944 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; } &&
10947 { ac_try='test -s conftest$ac_exeext'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
b4e70030 10953 ac_cv_search_opendir="none required"
bec39cab
AC
10954else
10955 echo "$as_me: failed program was:" >&5
10956sed 's/^/| /' conftest.$ac_ext >&5
10957
10958fi
bec39cab 10959rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10960 conftest$ac_exeext conftest.$ac_ext
10961if test "$ac_cv_search_opendir" = no; then
10962 for ac_lib in dir; do
10963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10964 cat >conftest.$ac_ext <<_ACEOF
10965/* confdefs.h. */
10966_ACEOF
10967cat confdefs.h >>conftest.$ac_ext
10968cat >>conftest.$ac_ext <<_ACEOF
10969/* end confdefs.h. */
10970
10971/* Override any gcc2 internal prototype to avoid an error. */
10972#ifdef __cplusplus
10973extern "C"
10974#endif
10975/* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977char opendir ();
10978int
10979main ()
10980{
10981opendir ();
10982 ;
10983 return 0;
10984}
10985_ACEOF
10986rm -f conftest.$ac_objext conftest$ac_exeext
10987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10988 (eval $ac_link) 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try='test -z "$ac_c_werror_flag"
10996 || test ! -s conftest.err'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } &&
11002 { ac_try='test -s conftest$ac_exeext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 ac_cv_search_opendir="-l$ac_lib"
11009break
4e8d927d 11010else
b4e70030
JB
11011 echo "$as_me: failed program was:" >&5
11012sed 's/^/| /' conftest.$ac_ext >&5
11013
11014fi
11015rm -f conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017 done
0e5d83e3 11018fi
bec39cab 11019LIBS=$ac_func_search_save_LIBS
0e5d83e3 11020fi
b4e70030
JB
11021echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11022echo "${ECHO_T}$ac_cv_search_opendir" >&6
11023if test "$ac_cv_search_opendir" != no; then
11024 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 11025
0e5d83e3
JJ
11026fi
11027
d28f9cdf 11028else
b4e70030
JB
11029 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11030echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11031if test "${ac_cv_search_opendir+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033else
11034 ac_func_search_save_LIBS=$LIBS
b4e70030 11035ac_cv_search_opendir=no
bec39cab
AC
11036cat >conftest.$ac_ext <<_ACEOF
11037/* confdefs.h. */
11038_ACEOF
11039cat confdefs.h >>conftest.$ac_ext
11040cat >>conftest.$ac_ext <<_ACEOF
11041/* end confdefs.h. */
d28f9cdf 11042
b4e70030 11043/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11044#ifdef __cplusplus
11045extern "C"
d28f9cdf 11046#endif
b4e70030
JB
11047/* We use char because int might match the return type of a gcc2
11048 builtin and then its argument prototype would still apply. */
bec39cab
AC
11049char opendir ();
11050int
11051main ()
11052{
b4e70030 11053opendir ();
bec39cab
AC
11054 ;
11055 return 0;
11056}
11057_ACEOF
b4e70030 11058rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060 (eval $ac_link) 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
b4e70030
JB
11067 { ac_try='test -z "$ac_c_werror_flag"
11068 || test ! -s conftest.err'
bec39cab
AC
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; } &&
11074 { ac_try='test -s conftest$ac_exeext'
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
b4e70030 11080 ac_cv_search_opendir="none required"
d28f9cdf 11081else
bec39cab
AC
11082 echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
d28f9cdf 11085fi
bec39cab 11086rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11087 conftest$ac_exeext conftest.$ac_ext
11088if test "$ac_cv_search_opendir" = no; then
11089 for ac_lib in x; do
11090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11091 cat >conftest.$ac_ext <<_ACEOF
11092/* confdefs.h. */
11093_ACEOF
11094cat confdefs.h >>conftest.$ac_ext
11095cat >>conftest.$ac_ext <<_ACEOF
11096/* end confdefs.h. */
11097
11098/* Override any gcc2 internal prototype to avoid an error. */
11099#ifdef __cplusplus
11100extern "C"
11101#endif
11102/* We use char because int might match the return type of a gcc2
11103 builtin and then its argument prototype would still apply. */
11104char opendir ();
11105int
11106main ()
11107{
11108opendir ();
11109 ;
11110 return 0;
11111}
11112_ACEOF
11113rm -f conftest.$ac_objext conftest$ac_exeext
11114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115 (eval $ac_link) 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag"
11123 || test ! -s conftest.err'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest$ac_exeext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_cv_search_opendir="-l$ac_lib"
11136break
4e8d927d 11137else
b4e70030
JB
11138 echo "$as_me: failed program was:" >&5
11139sed 's/^/| /' conftest.$ac_ext >&5
11140
11141fi
11142rm -f conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext conftest.$ac_ext
11144 done
bec39cab
AC
11145fi
11146LIBS=$ac_func_search_save_LIBS
d28f9cdf 11147fi
b4e70030
JB
11148echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11149echo "${ECHO_T}$ac_cv_search_opendir" >&6
11150if test "$ac_cv_search_opendir" != no; then
11151 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 11152
d28f9cdf
DJ
11153fi
11154
bec39cab 11155fi
b0b1c2c0 11156
b4e70030
JB
11157echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11158echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
11159if test "${ac_cv_header_stat_broken+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 11161else
bec39cab
AC
11162 cat >conftest.$ac_ext <<_ACEOF
11163/* confdefs.h. */
11164_ACEOF
11165cat confdefs.h >>conftest.$ac_ext
11166cat >>conftest.$ac_ext <<_ACEOF
11167/* end confdefs.h. */
11168#include <sys/types.h>
11169#include <sys/stat.h>
b0b1c2c0 11170
b4e70030 11171#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
11172# if S_ISBLK (S_IFDIR)
11173You lose.
11174# endif
11175#endif
b0b1c2c0 11176
b4e70030 11177#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
11178# if S_ISBLK (S_IFCHR)
11179You lose.
11180# endif
11181#endif
d28f9cdf 11182
b4e70030 11183#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
11184# if S_ISLNK (S_IFREG)
11185You lose.
11186# endif
11187#endif
d28f9cdf 11188
b4e70030 11189#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
11190# if S_ISSOCK (S_IFREG)
11191You lose.
11192# endif
11193#endif
11194
11195_ACEOF
11196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11197 $EGREP "You lose" >/dev/null 2>&1; then
11198 ac_cv_header_stat_broken=yes
d28f9cdf 11199else
bec39cab 11200 ac_cv_header_stat_broken=no
d28f9cdf
DJ
11201fi
11202rm -f conftest*
d28f9cdf 11203
d28f9cdf 11204fi
b4e70030
JB
11205echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11206echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 11207if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 11208
bec39cab
AC
11209cat >>confdefs.h <<\_ACEOF
11210#define STAT_MACROS_BROKEN 1
11211_ACEOF
8bb2c122 11212
7a292a7a 11213fi
bec39cab 11214
b4e70030
JB
11215echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11216echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
11217if test "${ac_cv_header_stdc+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 11219else
bec39cab
AC
11220 cat >conftest.$ac_ext <<_ACEOF
11221/* confdefs.h. */
11222_ACEOF
11223cat confdefs.h >>conftest.$ac_ext
11224cat >>conftest.$ac_ext <<_ACEOF
11225/* end confdefs.h. */
11226#include <stdlib.h>
11227#include <stdarg.h>
11228#include <string.h>
11229#include <float.h>
7a292a7a 11230
bec39cab
AC
11231int
11232main ()
11233{
7a292a7a 11234
bec39cab
AC
11235 ;
11236 return 0;
11237}
11238_ACEOF
11239rm -f conftest.$ac_objext
11240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
b4e70030
JB
11248 { ac_try='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
bec39cab
AC
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest.$ac_objext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_cv_header_stdc=yes
c906108c 11262else
bec39cab
AC
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
c906108c 11265
b4e70030 11266ac_cv_header_stdc=no
c906108c 11267fi
bec39cab 11268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11269
bec39cab
AC
11270if test $ac_cv_header_stdc = yes; then
11271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11272 cat >conftest.$ac_ext <<_ACEOF
11273/* confdefs.h. */
11274_ACEOF
11275cat confdefs.h >>conftest.$ac_ext
11276cat >>conftest.$ac_ext <<_ACEOF
11277/* end confdefs.h. */
11278#include <string.h>
c906108c 11279
bec39cab
AC
11280_ACEOF
11281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11282 $EGREP "memchr" >/dev/null 2>&1; then
11283 :
8bb2c122 11284else
bec39cab 11285 ac_cv_header_stdc=no
8bb2c122 11286fi
bec39cab
AC
11287rm -f conftest*
11288
c906108c
SS
11289fi
11290
bec39cab
AC
11291if test $ac_cv_header_stdc = yes; then
11292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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. */
11299#include <stdlib.h>
11300
11301_ACEOF
11302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11303 $EGREP "free" >/dev/null 2>&1; then
11304 :
c906108c 11305else
bec39cab 11306 ac_cv_header_stdc=no
c906108c 11307fi
bec39cab
AC
11308rm -f conftest*
11309
c906108c
SS
11310fi
11311
bec39cab
AC
11312if test $ac_cv_header_stdc = yes; then
11313 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11314 if test "$cross_compiling" = yes; then
11315 :
c906108c 11316else
bec39cab
AC
11317 cat >conftest.$ac_ext <<_ACEOF
11318/* confdefs.h. */
11319_ACEOF
11320cat confdefs.h >>conftest.$ac_ext
11321cat >>conftest.$ac_ext <<_ACEOF
11322/* end confdefs.h. */
11323#include <ctype.h>
11324#if ((' ' & 0x0FF) == 0x020)
11325# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11326# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11327#else
11328# define ISLOWER(c) \
11329 (('a' <= (c) && (c) <= 'i') \
11330 || ('j' <= (c) && (c) <= 'r') \
11331 || ('s' <= (c) && (c) <= 'z'))
11332# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11333#endif
11334
11335#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11336int
11337main ()
11338{
11339 int i;
11340 for (i = 0; i < 256; i++)
11341 if (XOR (islower (i), ISLOWER (i))
11342 || toupper (i) != TOUPPER (i))
b4e70030
JB
11343 exit(2);
11344 exit (0);
bec39cab
AC
11345}
11346_ACEOF
11347rm -f conftest$ac_exeext
11348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349 (eval $ac_link) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 :
11359else
11360 echo "$as_me: program exited with status $ac_status" >&5
11361echo "$as_me: failed program was:" >&5
11362sed 's/^/| /' conftest.$ac_ext >&5
11363
11364( exit $ac_status )
11365ac_cv_header_stdc=no
c906108c 11366fi
b4e70030 11367rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 11368fi
c906108c 11369fi
bec39cab 11370fi
b4e70030
JB
11371echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11372echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 11373if test $ac_cv_header_stdc = yes; then
c906108c 11374
bec39cab
AC
11375cat >>confdefs.h <<\_ACEOF
11376#define STDC_HEADERS 1
11377_ACEOF
c906108c 11378
bec39cab 11379fi
8bb2c122 11380
bec39cab 11381
7cb9022a 11382for ac_header in nlist.h
bec39cab
AC
11383do
11384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11385if eval "test \"\${$as_ac_Header+set}\" = set"; then
11386 echo "$as_me:$LINENO: checking for $ac_header" >&5
11387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11388if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11390fi
b4e70030
JB
11391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11393else
11394 # Is the header compilable?
b4e70030
JB
11395echo "$as_me:$LINENO: checking $ac_header usability" >&5
11396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11397cat >conftest.$ac_ext <<_ACEOF
11398/* confdefs.h. */
11399_ACEOF
11400cat confdefs.h >>conftest.$ac_ext
11401cat >>conftest.$ac_ext <<_ACEOF
11402/* end confdefs.h. */
11403$ac_includes_default
11404#include <$ac_header>
11405_ACEOF
11406rm -f conftest.$ac_objext
11407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11408 (eval $ac_compile) 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
b4e70030
JB
11415 { ac_try='test -z "$ac_c_werror_flag"
11416 || test ! -s conftest.err'
bec39cab
AC
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_header_compiler=yes
11429else
11430 echo "$as_me: failed program was:" >&5
11431sed 's/^/| /' conftest.$ac_ext >&5
11432
b4e70030 11433ac_header_compiler=no
bec39cab
AC
11434fi
11435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11437echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11438
11439# Is the header present?
b4e70030
JB
11440echo "$as_me:$LINENO: checking $ac_header presence" >&5
11441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11442cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h. */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h. */
11448#include <$ac_header>
11449_ACEOF
11450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } >/dev/null; then
11458 if test -s conftest.err; then
11459 ac_cpp_err=$ac_c_preproc_warn_flag
11460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11461 else
11462 ac_cpp_err=
11463 fi
c906108c 11464else
bec39cab 11465 ac_cpp_err=yes
c906108c 11466fi
bec39cab
AC
11467if test -z "$ac_cpp_err"; then
11468 ac_header_preproc=yes
c906108c 11469else
bec39cab
AC
11470 echo "$as_me: failed program was:" >&5
11471sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 11472
bec39cab
AC
11473 ac_header_preproc=no
11474fi
11475rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11477echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 11478
bec39cab
AC
11479# So? What about this header?
11480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11481 yes:no: )
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11486 ac_header_preproc=yes
11487 ;;
11488 no:yes:* )
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11501 (
11502 cat <<\_ASBOX
11503## ------------------------------------------ ##
11504## Report this to the AC_PACKAGE_NAME lists. ##
11505## ------------------------------------------ ##
11506_ASBOX
11507 ) |
11508 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11509 ;;
11510esac
b4e70030
JB
11511echo "$as_me:$LINENO: checking for $ac_header" >&5
11512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11513if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11514 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 11515else
bec39cab 11516 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 11517fi
b4e70030
JB
11518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11520
95ca63c4 11521fi
bec39cab
AC
11522if test `eval echo '${'$as_ac_Header'}'` = yes; then
11523 cat >>confdefs.h <<_ACEOF
11524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11525_ACEOF
11526
95ca63c4
CF
11527fi
11528
bec39cab 11529done
95ca63c4
CF
11530
11531
7cb9022a 11532for ac_header in link.h
bec39cab
AC
11533do
11534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11535echo "$as_me:$LINENO: checking for $ac_header" >&5
11536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11537if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11538 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11539else
7cb9022a 11540 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11541/* confdefs.h. */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h. */
7cb9022a
MK
11546#if HAVE_SYS_TYPES_H
11547# include <sys/types.h>
11548#endif
11549#if HAVE_NLIST_H
11550# include <nlist.h>
11551#endif
11552
11553
bec39cab
AC
11554#include <$ac_header>
11555_ACEOF
11556rm -f conftest.$ac_objext
11557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>conftest.er1
11559 ac_status=$?
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
b4e70030
JB
11565 { ac_try='test -z "$ac_c_werror_flag"
11566 || test ! -s conftest.err'
bec39cab
AC
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
7cb9022a 11578 eval "$as_ac_Header=yes"
bec39cab
AC
11579else
11580 echo "$as_me: failed program was:" >&5
11581sed 's/^/| /' conftest.$ac_ext >&5
11582
b4e70030 11583eval "$as_ac_Header=no"
bec39cab
AC
11584fi
11585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 11586fi
b4e70030
JB
11587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11589if test `eval echo '${'$as_ac_Header'}'` = yes; then
11590 cat >>confdefs.h <<_ACEOF
11591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592_ACEOF
95ca63c4 11593
bec39cab 11594fi
95ca63c4 11595
bec39cab 11596done
95ca63c4 11597
c906108c 11598
7cb9022a 11599for ac_header in machine/reg.h
bec39cab
AC
11600do
11601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11602if eval "test \"\${$as_ac_Header+set}\" = set"; then
11603 echo "$as_me:$LINENO: checking for $ac_header" >&5
11604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11605if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11607fi
b4e70030
JB
11608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11610else
11611 # Is the header compilable?
b4e70030
JB
11612echo "$as_me:$LINENO: checking $ac_header usability" >&5
11613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11614cat >conftest.$ac_ext <<_ACEOF
11615/* confdefs.h. */
11616_ACEOF
11617cat confdefs.h >>conftest.$ac_ext
11618cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h. */
11620$ac_includes_default
11621#include <$ac_header>
11622_ACEOF
11623rm -f conftest.$ac_objext
11624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
b4e70030
JB
11632 { ac_try='test -z "$ac_c_werror_flag"
11633 || test ! -s conftest.err'
bec39cab
AC
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest.$ac_objext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 ac_header_compiler=yes
11646else
11647 echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
11649
b4e70030 11650ac_header_compiler=no
bec39cab
AC
11651fi
11652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11653echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11654echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11655
11656# Is the header present?
b4e70030
JB
11657echo "$as_me:$LINENO: checking $ac_header presence" >&5
11658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11659cat >conftest.$ac_ext <<_ACEOF
11660/* confdefs.h. */
11661_ACEOF
11662cat confdefs.h >>conftest.$ac_ext
11663cat >>conftest.$ac_ext <<_ACEOF
11664/* end confdefs.h. */
11665#include <$ac_header>
11666_ACEOF
11667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } >/dev/null; then
11675 if test -s conftest.err; then
11676 ac_cpp_err=$ac_c_preproc_warn_flag
11677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11678 else
11679 ac_cpp_err=
11680 fi
75c6e08a 11681else
bec39cab 11682 ac_cpp_err=yes
75c6e08a 11683fi
bec39cab
AC
11684if test -z "$ac_cpp_err"; then
11685 ac_header_preproc=yes
11686else
11687 echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 ac_header_preproc=no
75c6e08a 11691fi
bec39cab 11692rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11693echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11694echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11695
11696# So? What about this header?
11697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11698 yes:no: )
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11700echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11702echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11703 ac_header_preproc=yes
11704 ;;
11705 no:yes:* )
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11707echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11709echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11711echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11713echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11715echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11717echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11718 (
11719 cat <<\_ASBOX
11720## ------------------------------------------ ##
11721## Report this to the AC_PACKAGE_NAME lists. ##
11722## ------------------------------------------ ##
11723_ASBOX
11724 ) |
11725 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11726 ;;
11727esac
b4e70030
JB
11728echo "$as_me:$LINENO: checking for $ac_header" >&5
11729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11730if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11731 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 11732else
bec39cab
AC
11733 eval "$as_ac_Header=\$ac_header_preproc"
11734fi
b4e70030
JB
11735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11737
75c6e08a 11738fi
bec39cab
AC
11739if test `eval echo '${'$as_ac_Header'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11742_ACEOF
75c6e08a 11743
bec39cab 11744fi
75c6e08a 11745
bec39cab 11746done
75c6e08a
MK
11747
11748
9a156167 11749
bec39cab
AC
11750for ac_header in poll.h sys/poll.h
11751do
11752as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11753if eval "test \"\${$as_ac_Header+set}\" = set"; then
11754 echo "$as_me:$LINENO: checking for $ac_header" >&5
11755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11756if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758fi
b4e70030
JB
11759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11761else
11762 # Is the header compilable?
b4e70030
JB
11763echo "$as_me:$LINENO: checking $ac_header usability" >&5
11764echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11765cat >conftest.$ac_ext <<_ACEOF
11766/* confdefs.h. */
11767_ACEOF
11768cat confdefs.h >>conftest.$ac_ext
11769cat >>conftest.$ac_ext <<_ACEOF
11770/* end confdefs.h. */
11771$ac_includes_default
11772#include <$ac_header>
11773_ACEOF
11774rm -f conftest.$ac_objext
11775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776 (eval $ac_compile) 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
b4e70030
JB
11783 { ac_try='test -z "$ac_c_werror_flag"
11784 || test ! -s conftest.err'
bec39cab
AC
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; } &&
11790 { ac_try='test -s conftest.$ac_objext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 ac_header_compiler=yes
11797else
11798 echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
b4e70030 11801ac_header_compiler=no
bec39cab
AC
11802fi
11803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11804echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11805echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11806
11807# Is the header present?
b4e70030
JB
11808echo "$as_me:$LINENO: checking $ac_header presence" >&5
11809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11810cat >conftest.$ac_ext <<_ACEOF
11811/* confdefs.h. */
11812_ACEOF
11813cat confdefs.h >>conftest.$ac_ext
11814cat >>conftest.$ac_ext <<_ACEOF
11815/* end confdefs.h. */
11816#include <$ac_header>
11817_ACEOF
11818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11820 ac_status=$?
11821 grep -v '^ *+' conftest.er1 >conftest.err
11822 rm -f conftest.er1
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } >/dev/null; then
11826 if test -s conftest.err; then
11827 ac_cpp_err=$ac_c_preproc_warn_flag
11828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11829 else
11830 ac_cpp_err=
11831 fi
9a156167 11832else
bec39cab 11833 ac_cpp_err=yes
9a156167 11834fi
bec39cab
AC
11835if test -z "$ac_cpp_err"; then
11836 ac_header_preproc=yes
11837else
11838 echo "$as_me: failed program was:" >&5
11839sed 's/^/| /' conftest.$ac_ext >&5
9a156167 11840
bec39cab 11841 ac_header_preproc=no
9a156167 11842fi
bec39cab 11843rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11844echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 11846
bec39cab
AC
11847# So? What about this header?
11848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11849 yes:no: )
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11853echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11854 ac_header_preproc=yes
11855 ;;
11856 no:yes:* )
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11860echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11862echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11864echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11868echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11869 (
11870 cat <<\_ASBOX
11871## ------------------------------------------ ##
11872## Report this to the AC_PACKAGE_NAME lists. ##
11873## ------------------------------------------ ##
11874_ASBOX
11875 ) |
11876 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11877 ;;
11878esac
b4e70030
JB
11879echo "$as_me:$LINENO: checking for $ac_header" >&5
11880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11881if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11882 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 11883else
bec39cab 11884 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 11885fi
b4e70030
JB
11886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 11888
bec39cab
AC
11889fi
11890if test `eval echo '${'$as_ac_Header'}'` = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11893_ACEOF
9a156167 11894
bec39cab 11895fi
9a156167 11896
bec39cab 11897done
9a156167 11898
9a156167 11899
9a156167 11900
bec39cab
AC
11901
11902for ac_header in proc_service.h thread_db.h gnu/libc-version.h
11903do
11904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11905if eval "test \"\${$as_ac_Header+set}\" = set"; then
11906 echo "$as_me:$LINENO: checking for $ac_header" >&5
11907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11908if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910fi
b4e70030
JB
11911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11913else
11914 # Is the header compilable?
b4e70030
JB
11915echo "$as_me:$LINENO: checking $ac_header usability" >&5
11916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11917cat >conftest.$ac_ext <<_ACEOF
11918/* confdefs.h. */
11919_ACEOF
11920cat confdefs.h >>conftest.$ac_ext
11921cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
11922/* end confdefs.h. */
11923$ac_includes_default
11924#include <$ac_header>
11925_ACEOF
11926rm -f conftest.$ac_objext
11927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11928 (eval $ac_compile) 2>conftest.er1
11929 ac_status=$?
11930 grep -v '^ *+' conftest.er1 >conftest.err
11931 rm -f conftest.er1
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -z "$ac_c_werror_flag"
11936 || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_header_compiler=yes
11949else
11950 echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
11953ac_header_compiler=no
11954fi
11955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11956echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11957echo "${ECHO_T}$ac_header_compiler" >&6
11958
11959# Is the header present?
11960echo "$as_me:$LINENO: checking $ac_header presence" >&5
11961echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11962cat >conftest.$ac_ext <<_ACEOF
11963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */
11968#include <$ac_header>
11969_ACEOF
11970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } >/dev/null; then
11978 if test -s conftest.err; then
11979 ac_cpp_err=$ac_c_preproc_warn_flag
11980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11981 else
11982 ac_cpp_err=
11983 fi
11984else
11985 ac_cpp_err=yes
11986fi
11987if test -z "$ac_cpp_err"; then
11988 ac_header_preproc=yes
11989else
11990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 ac_header_preproc=no
11994fi
11995rm -f conftest.err conftest.$ac_ext
11996echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11997echo "${ECHO_T}$ac_header_preproc" >&6
11998
11999# So? What about this header?
12000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12001 yes:no: )
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12006 ac_header_preproc=yes
12007 ;;
12008 no:yes:* )
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12016echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12021 (
12022 cat <<\_ASBOX
12023## ------------------------------------------ ##
12024## Report this to the AC_PACKAGE_NAME lists. ##
12025## ------------------------------------------ ##
12026_ASBOX
12027 ) |
12028 sed "s/^/$as_me: WARNING: /" >&2
12029 ;;
12030esac
12031echo "$as_me:$LINENO: checking for $ac_header" >&5
12032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12033if eval "test \"\${$as_ac_Header+set}\" = set"; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035else
12036 eval "$as_ac_Header=\$ac_header_preproc"
12037fi
12038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12040
12041fi
12042if test `eval echo '${'$as_ac_Header'}'` = yes; then
12043 cat >>confdefs.h <<_ACEOF
12044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12045_ACEOF
12046
12047fi
12048
12049done
12050
12051
12052for ac_header in signal.h
12053do
12054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12055if eval "test \"\${$as_ac_Header+set}\" = set"; then
12056 echo "$as_me:$LINENO: checking for $ac_header" >&5
12057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12058if eval "test \"\${$as_ac_Header+set}\" = set"; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060fi
12061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12063else
12064 # Is the header compilable?
12065echo "$as_me:$LINENO: checking $ac_header usability" >&5
12066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12067cat >conftest.$ac_ext <<_ACEOF
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
12072/* end confdefs.h. */
12073$ac_includes_default
12074#include <$ac_header>
12075_ACEOF
12076rm -f conftest.$ac_objext
12077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12078 (eval $ac_compile) 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
b4e70030
JB
12085 { ac_try='test -z "$ac_c_werror_flag"
12086 || test ! -s conftest.err'
bec39cab
AC
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest.$ac_objext'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 ac_header_compiler=yes
12099else
12100 echo "$as_me: failed program was:" >&5
12101sed 's/^/| /' conftest.$ac_ext >&5
12102
b4e70030 12103ac_header_compiler=no
bec39cab
AC
12104fi
12105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12107echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12108
12109# Is the header present?
b4e70030
JB
12110echo "$as_me:$LINENO: checking $ac_header presence" >&5
12111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12112cat >conftest.$ac_ext <<_ACEOF
12113/* confdefs.h. */
12114_ACEOF
12115cat confdefs.h >>conftest.$ac_ext
12116cat >>conftest.$ac_ext <<_ACEOF
12117/* end confdefs.h. */
12118#include <$ac_header>
12119_ACEOF
12120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } >/dev/null; then
12128 if test -s conftest.err; then
12129 ac_cpp_err=$ac_c_preproc_warn_flag
12130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12131 else
12132 ac_cpp_err=
12133 fi
9a156167 12134else
bec39cab 12135 ac_cpp_err=yes
9a156167 12136fi
bec39cab
AC
12137if test -z "$ac_cpp_err"; then
12138 ac_header_preproc=yes
12139else
12140 echo "$as_me: failed program was:" >&5
12141sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12142
bec39cab 12143 ac_header_preproc=no
9a156167 12144fi
bec39cab 12145rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12147echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12148
bec39cab
AC
12149# So? What about this header?
12150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12151 yes:no: )
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12156 ac_header_preproc=yes
12157 ;;
12158 no:yes:* )
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12171 (
12172 cat <<\_ASBOX
12173## ------------------------------------------ ##
12174## Report this to the AC_PACKAGE_NAME lists. ##
12175## ------------------------------------------ ##
12176_ASBOX
12177 ) |
12178 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12179 ;;
12180esac
b4e70030
JB
12181echo "$as_me:$LINENO: checking for $ac_header" >&5
12182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12183if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12184 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12185else
bec39cab 12186 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12187fi
b4e70030
JB
12188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
12190
12191fi
bec39cab
AC
12192if test `eval echo '${'$as_ac_Header'}'` = yes; then
12193 cat >>confdefs.h <<_ACEOF
12194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12195_ACEOF
9a156167 12196
bec39cab
AC
12197fi
12198
12199done
9a156167 12200
c890192f 12201
bec39cab
AC
12202for ac_header in stddef.h
12203do
12204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12205if eval "test \"\${$as_ac_Header+set}\" = set"; then
12206 echo "$as_me:$LINENO: checking for $ac_header" >&5
12207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12208if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210fi
b4e70030
JB
12211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12213else
12214 # Is the header compilable?
b4e70030
JB
12215echo "$as_me:$LINENO: checking $ac_header usability" >&5
12216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12217cat >conftest.$ac_ext <<_ACEOF
12218/* confdefs.h. */
12219_ACEOF
12220cat confdefs.h >>conftest.$ac_ext
12221cat >>conftest.$ac_ext <<_ACEOF
12222/* end confdefs.h. */
12223$ac_includes_default
12224#include <$ac_header>
12225_ACEOF
12226rm -f conftest.$ac_objext
12227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228 (eval $ac_compile) 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
b4e70030
JB
12235 { ac_try='test -z "$ac_c_werror_flag"
12236 || test ! -s conftest.err'
bec39cab
AC
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_header_compiler=yes
12249else
12250 echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
b4e70030 12253ac_header_compiler=no
bec39cab
AC
12254fi
12255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12257echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12258
12259# Is the header present?
b4e70030
JB
12260echo "$as_me:$LINENO: checking $ac_header presence" >&5
12261echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12262cat >conftest.$ac_ext <<_ACEOF
12263/* confdefs.h. */
12264_ACEOF
12265cat confdefs.h >>conftest.$ac_ext
12266cat >>conftest.$ac_ext <<_ACEOF
12267/* end confdefs.h. */
12268#include <$ac_header>
12269_ACEOF
12270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } >/dev/null; then
12278 if test -s conftest.err; then
12279 ac_cpp_err=$ac_c_preproc_warn_flag
12280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12281 else
12282 ac_cpp_err=
12283 fi
c890192f 12284else
bec39cab
AC
12285 ac_cpp_err=yes
12286fi
12287if test -z "$ac_cpp_err"; then
12288 ac_header_preproc=yes
c890192f 12289else
bec39cab
AC
12290 echo "$as_me: failed program was:" >&5
12291sed 's/^/| /' conftest.$ac_ext >&5
12292
12293 ac_header_preproc=no
c890192f 12294fi
bec39cab 12295rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12297echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12298
12299# So? What about this header?
12300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12301 yes:no: )
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12306 ac_header_preproc=yes
12307 ;;
12308 no:yes:* )
12309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12321 (
12322 cat <<\_ASBOX
12323## ------------------------------------------ ##
12324## Report this to the AC_PACKAGE_NAME lists. ##
12325## ------------------------------------------ ##
12326_ASBOX
12327 ) |
12328 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12329 ;;
12330esac
b4e70030
JB
12331echo "$as_me:$LINENO: checking for $ac_header" >&5
12332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12333if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12334 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 12335else
bec39cab 12336 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 12337fi
b4e70030
JB
12338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12340
c890192f 12341fi
bec39cab
AC
12342if test `eval echo '${'$as_ac_Header'}'` = yes; then
12343 cat >>confdefs.h <<_ACEOF
12344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12345_ACEOF
c890192f 12346
c890192f
MK
12347fi
12348
bec39cab 12349done
9a156167 12350
bec39cab
AC
12351
12352for ac_header in stdlib.h
12353do
12354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12355if eval "test \"\${$as_ac_Header+set}\" = set"; then
12356 echo "$as_me:$LINENO: checking for $ac_header" >&5
12357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12358if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360fi
b4e70030
JB
12361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12363else
12364 # Is the header compilable?
b4e70030
JB
12365echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12367cat >conftest.$ac_ext <<_ACEOF
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373$ac_includes_default
12374#include <$ac_header>
12375_ACEOF
12376rm -f conftest.$ac_objext
12377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378 (eval $ac_compile) 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
b4e70030
JB
12385 { ac_try='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
bec39cab
AC
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_header_compiler=yes
12399else
12400 echo "$as_me: failed program was:" >&5
12401sed 's/^/| /' conftest.$ac_ext >&5
12402
b4e70030 12403ac_header_compiler=no
bec39cab
AC
12404fi
12405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12407echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12408
12409# Is the header present?
b4e70030
JB
12410echo "$as_me:$LINENO: checking $ac_header presence" >&5
12411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12412cat >conftest.$ac_ext <<_ACEOF
12413/* confdefs.h. */
12414_ACEOF
12415cat confdefs.h >>conftest.$ac_ext
12416cat >>conftest.$ac_ext <<_ACEOF
12417/* end confdefs.h. */
12418#include <$ac_header>
12419_ACEOF
12420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null; then
12428 if test -s conftest.err; then
12429 ac_cpp_err=$ac_c_preproc_warn_flag
12430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12431 else
12432 ac_cpp_err=
12433 fi
9a156167 12434else
bec39cab
AC
12435 ac_cpp_err=yes
12436fi
12437if test -z "$ac_cpp_err"; then
12438 ac_header_preproc=yes
9a156167 12439else
bec39cab
AC
12440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_header_preproc=no
9a156167 12444fi
bec39cab 12445rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12447echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12448
12449# So? What about this header?
12450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12451 yes:no: )
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12456 ac_header_preproc=yes
12457 ;;
12458 no:yes:* )
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12471 (
12472 cat <<\_ASBOX
12473## ------------------------------------------ ##
12474## Report this to the AC_PACKAGE_NAME lists. ##
12475## ------------------------------------------ ##
12476_ASBOX
12477 ) |
12478 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12479 ;;
12480esac
b4e70030
JB
12481echo "$as_me:$LINENO: checking for $ac_header" >&5
12482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12484 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12485else
bec39cab 12486 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12487fi
b4e70030
JB
12488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12490
9a156167 12491fi
bec39cab
AC
12492if test `eval echo '${'$as_ac_Header'}'` = yes; then
12493 cat >>confdefs.h <<_ACEOF
12494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12495_ACEOF
9a156167 12496
9a156167
MK
12497fi
12498
bec39cab
AC
12499done
12500
06825bd1 12501
bec39cab
AC
12502for ac_header in stdint.h
12503do
12504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12505if eval "test \"\${$as_ac_Header+set}\" = set"; then
12506 echo "$as_me:$LINENO: checking for $ac_header" >&5
12507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12508if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510fi
b4e70030
JB
12511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12513else
12514 # Is the header compilable?
b4e70030
JB
12515echo "$as_me:$LINENO: checking $ac_header usability" >&5
12516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12517cat >conftest.$ac_ext <<_ACEOF
12518/* confdefs.h. */
12519_ACEOF
12520cat confdefs.h >>conftest.$ac_ext
12521cat >>conftest.$ac_ext <<_ACEOF
12522/* end confdefs.h. */
12523$ac_includes_default
12524#include <$ac_header>
12525_ACEOF
12526rm -f conftest.$ac_objext
12527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
b4e70030
JB
12535 { ac_try='test -z "$ac_c_werror_flag"
12536 || test ! -s conftest.err'
bec39cab
AC
12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest.$ac_objext'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 ac_header_compiler=yes
12549else
12550 echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
b4e70030 12553ac_header_compiler=no
bec39cab
AC
12554fi
12555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12557echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12558
12559# Is the header present?
b4e70030
JB
12560echo "$as_me:$LINENO: checking $ac_header presence" >&5
12561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12562cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h. */
12568#include <$ac_header>
12569_ACEOF
12570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } >/dev/null; then
12578 if test -s conftest.err; then
12579 ac_cpp_err=$ac_c_preproc_warn_flag
12580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12581 else
12582 ac_cpp_err=
12583 fi
06825bd1 12584else
bec39cab
AC
12585 ac_cpp_err=yes
12586fi
12587if test -z "$ac_cpp_err"; then
12588 ac_header_preproc=yes
06825bd1 12589else
bec39cab
AC
12590 echo "$as_me: failed program was:" >&5
12591sed 's/^/| /' conftest.$ac_ext >&5
12592
12593 ac_header_preproc=no
06825bd1 12594fi
bec39cab 12595rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12597echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12598
12599# So? What about this header?
12600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12601 yes:no: )
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12606 ac_header_preproc=yes
12607 ;;
12608 no:yes:* )
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12621 (
12622 cat <<\_ASBOX
12623## ------------------------------------------ ##
12624## Report this to the AC_PACKAGE_NAME lists. ##
12625## ------------------------------------------ ##
12626_ASBOX
12627 ) |
12628 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12629 ;;
12630esac
b4e70030
JB
12631echo "$as_me:$LINENO: checking for $ac_header" >&5
12632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12633if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12634 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 12635else
bec39cab 12636 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 12637fi
b4e70030
JB
12638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12640
06825bd1 12641fi
bec39cab
AC
12642if test `eval echo '${'$as_ac_Header'}'` = yes; then
12643 cat >>confdefs.h <<_ACEOF
12644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12645_ACEOF
06825bd1 12646
06825bd1 12647fi
4f0be353 12648
bec39cab 12649done
4f0be353 12650
06825bd1 12651
06825bd1 12652
bec39cab
AC
12653
12654for ac_header in string.h memory.h strings.h
12655do
12656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12657if eval "test \"\${$as_ac_Header+set}\" = set"; then
12658 echo "$as_me:$LINENO: checking for $ac_header" >&5
12659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12660if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12662fi
b4e70030
JB
12663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12665else
12666 # Is the header compilable?
b4e70030
JB
12667echo "$as_me:$LINENO: checking $ac_header usability" >&5
12668echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12669cat >conftest.$ac_ext <<_ACEOF
12670/* confdefs.h. */
12671_ACEOF
12672cat confdefs.h >>conftest.$ac_ext
12673cat >>conftest.$ac_ext <<_ACEOF
12674/* end confdefs.h. */
12675$ac_includes_default
12676#include <$ac_header>
12677_ACEOF
12678rm -f conftest.$ac_objext
12679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
b4e70030
JB
12687 { ac_try='test -z "$ac_c_werror_flag"
12688 || test ! -s conftest.err'
bec39cab
AC
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest.$ac_objext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 ac_header_compiler=yes
12701else
12702 echo "$as_me: failed program was:" >&5
12703sed 's/^/| /' conftest.$ac_ext >&5
12704
b4e70030 12705ac_header_compiler=no
bec39cab
AC
12706fi
12707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12708echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12709echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12710
12711# Is the header present?
b4e70030
JB
12712echo "$as_me:$LINENO: checking $ac_header presence" >&5
12713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12714cat >conftest.$ac_ext <<_ACEOF
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
12720#include <$ac_header>
12721_ACEOF
12722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } >/dev/null; then
12730 if test -s conftest.err; then
12731 ac_cpp_err=$ac_c_preproc_warn_flag
12732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12733 else
12734 ac_cpp_err=
12735 fi
06825bd1 12736else
bec39cab
AC
12737 ac_cpp_err=yes
12738fi
12739if test -z "$ac_cpp_err"; then
12740 ac_header_preproc=yes
06825bd1 12741else
bec39cab
AC
12742 echo "$as_me: failed program was:" >&5
12743sed 's/^/| /' conftest.$ac_ext >&5
12744
12745 ac_header_preproc=no
06825bd1 12746fi
bec39cab 12747rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12748echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12749echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12750
12751# So? What about this header?
12752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12753 yes:no: )
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12757echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12758 ac_header_preproc=yes
12759 ;;
12760 no:yes:* )
12761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12762echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12764echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12766echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12768echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12772echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12773 (
12774 cat <<\_ASBOX
12775## ------------------------------------------ ##
12776## Report this to the AC_PACKAGE_NAME lists. ##
12777## ------------------------------------------ ##
12778_ASBOX
12779 ) |
12780 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12781 ;;
12782esac
b4e70030
JB
12783echo "$as_me:$LINENO: checking for $ac_header" >&5
12784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12785if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787else
12788 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 12789fi
b4e70030
JB
12790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 12792
06825bd1 12793fi
bec39cab
AC
12794if test `eval echo '${'$as_ac_Header'}'` = yes; then
12795 cat >>confdefs.h <<_ACEOF
12796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12797_ACEOF
06825bd1 12798
06825bd1
MK
12799fi
12800
bec39cab 12801done
5ee754fc 12802
bec39cab
AC
12803
12804for ac_header in sys/fault.h
5ee754fc 12805do
bec39cab 12806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12807if eval "test \"\${$as_ac_Header+set}\" = set"; then
12808 echo "$as_me:$LINENO: checking for $ac_header" >&5
12809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12810if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12812fi
b4e70030
JB
12813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12815else
12816 # Is the header compilable?
b4e70030
JB
12817echo "$as_me:$LINENO: checking $ac_header usability" >&5
12818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12819cat >conftest.$ac_ext <<_ACEOF
12820/* confdefs.h. */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h. */
12825$ac_includes_default
12826#include <$ac_header>
12827_ACEOF
12828rm -f conftest.$ac_objext
12829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
b4e70030
JB
12837 { ac_try='test -z "$ac_c_werror_flag"
12838 || test ! -s conftest.err'
bec39cab
AC
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest.$ac_objext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 ac_header_compiler=yes
12851else
12852 echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
b4e70030 12855ac_header_compiler=no
bec39cab
AC
12856fi
12857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12859echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12860
12861# Is the header present?
b4e70030
JB
12862echo "$as_me:$LINENO: checking $ac_header presence" >&5
12863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12864cat >conftest.$ac_ext <<_ACEOF
12865/* confdefs.h. */
12866_ACEOF
12867cat confdefs.h >>conftest.$ac_ext
12868cat >>conftest.$ac_ext <<_ACEOF
12869/* end confdefs.h. */
12870#include <$ac_header>
12871_ACEOF
12872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } >/dev/null; then
12880 if test -s conftest.err; then
12881 ac_cpp_err=$ac_c_preproc_warn_flag
12882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12883 else
12884 ac_cpp_err=
12885 fi
5ee754fc 12886else
bec39cab 12887 ac_cpp_err=yes
5ee754fc 12888fi
bec39cab
AC
12889if test -z "$ac_cpp_err"; then
12890 ac_header_preproc=yes
12891else
12892 echo "$as_me: failed program was:" >&5
12893sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 12894
bec39cab 12895 ac_header_preproc=no
5ee754fc 12896fi
bec39cab 12897rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12899echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12900
12901# So? What about this header?
12902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12903 yes:no: )
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12908 ac_header_preproc=yes
12909 ;;
12910 no:yes:* )
12911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12923 (
12924 cat <<\_ASBOX
12925## ------------------------------------------ ##
12926## Report this to the AC_PACKAGE_NAME lists. ##
12927## ------------------------------------------ ##
12928_ASBOX
12929 ) |
12930 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12931 ;;
12932esac
b4e70030
JB
12933echo "$as_me:$LINENO: checking for $ac_header" >&5
12934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12935if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12936 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 12937else
bec39cab 12938 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12939fi
b4e70030
JB
12940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 12942
5ee754fc 12943fi
bec39cab
AC
12944if test `eval echo '${'$as_ac_Header'}'` = yes; then
12945 cat >>confdefs.h <<_ACEOF
12946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12947_ACEOF
c906108c 12948
5ee754fc 12949fi
bec39cab
AC
12950
12951done
12952
12953
12954for ac_header in sys/file.h
12955do
12956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12957if eval "test \"\${$as_ac_Header+set}\" = set"; then
12958 echo "$as_me:$LINENO: checking for $ac_header" >&5
12959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12960if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962fi
b4e70030
JB
12963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12965else
12966 # Is the header compilable?
b4e70030
JB
12967echo "$as_me:$LINENO: checking $ac_header usability" >&5
12968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12969cat >conftest.$ac_ext <<_ACEOF
12970/* confdefs.h. */
12971_ACEOF
12972cat confdefs.h >>conftest.$ac_ext
12973cat >>conftest.$ac_ext <<_ACEOF
12974/* end confdefs.h. */
12975$ac_includes_default
12976#include <$ac_header>
12977_ACEOF
12978rm -f conftest.$ac_objext
12979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
b4e70030
JB
12987 { ac_try='test -z "$ac_c_werror_flag"
12988 || test ! -s conftest.err'
bec39cab
AC
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try='test -s conftest.$ac_objext'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000 ac_header_compiler=yes
13001else
13002 echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
b4e70030 13005ac_header_compiler=no
bec39cab
AC
13006fi
13007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13008echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13009echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13010
13011# Is the header present?
b4e70030
JB
13012echo "$as_me:$LINENO: checking $ac_header presence" >&5
13013echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13014cat >conftest.$ac_ext <<_ACEOF
13015/* confdefs.h. */
13016_ACEOF
13017cat confdefs.h >>conftest.$ac_ext
13018cat >>conftest.$ac_ext <<_ACEOF
13019/* end confdefs.h. */
13020#include <$ac_header>
13021_ACEOF
13022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } >/dev/null; then
13030 if test -s conftest.err; then
13031 ac_cpp_err=$ac_c_preproc_warn_flag
13032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13033 else
13034 ac_cpp_err=
13035 fi
5ee754fc 13036else
bec39cab 13037 ac_cpp_err=yes
5ee754fc 13038fi
bec39cab
AC
13039if test -z "$ac_cpp_err"; then
13040 ac_header_preproc=yes
13041else
13042 echo "$as_me: failed program was:" >&5
13043sed 's/^/| /' conftest.$ac_ext >&5
c906108c 13044
bec39cab 13045 ac_header_preproc=no
5ee754fc 13046fi
bec39cab 13047rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13048echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13049echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 13050
bec39cab
AC
13051# So? What about this header?
13052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13053 yes:no: )
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13058 ac_header_preproc=yes
13059 ;;
13060 no:yes:* )
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13068echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13073 (
13074 cat <<\_ASBOX
13075## ------------------------------------------ ##
13076## Report this to the AC_PACKAGE_NAME lists. ##
13077## ------------------------------------------ ##
13078_ASBOX
13079 ) |
13080 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13081 ;;
13082esac
b4e70030
JB
13083echo "$as_me:$LINENO: checking for $ac_header" >&5
13084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13085if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13086 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13087else
bec39cab
AC
13088 eval "$as_ac_Header=\$ac_header_preproc"
13089fi
b4e70030
JB
13090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13092
bec39cab
AC
13093fi
13094if test `eval echo '${'$as_ac_Header'}'` = yes; then
13095 cat >>confdefs.h <<_ACEOF
13096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13097_ACEOF
5ee754fc 13098
bec39cab 13099fi
5ee754fc 13100
bec39cab 13101done
5ee754fc 13102
5ee754fc 13103
bec39cab
AC
13104for ac_header in sys/filio.h
13105do
13106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13107if eval "test \"\${$as_ac_Header+set}\" = set"; then
13108 echo "$as_me:$LINENO: checking for $ac_header" >&5
13109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13110if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112fi
b4e70030
JB
13113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13115else
13116 # Is the header compilable?
b4e70030
JB
13117echo "$as_me:$LINENO: checking $ac_header usability" >&5
13118echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13119cat >conftest.$ac_ext <<_ACEOF
13120/* confdefs.h. */
13121_ACEOF
13122cat confdefs.h >>conftest.$ac_ext
13123cat >>conftest.$ac_ext <<_ACEOF
13124/* end confdefs.h. */
13125$ac_includes_default
13126#include <$ac_header>
13127_ACEOF
13128rm -f conftest.$ac_objext
13129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13130 (eval $ac_compile) 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
b4e70030
JB
13137 { ac_try='test -z "$ac_c_werror_flag"
13138 || test ! -s conftest.err'
bec39cab
AC
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest.$ac_objext'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 ac_header_compiler=yes
13151else
13152 echo "$as_me: failed program was:" >&5
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
b4e70030 13155ac_header_compiler=no
bec39cab
AC
13156fi
13157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13158echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13159echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13160
13161# Is the header present?
b4e70030
JB
13162echo "$as_me:$LINENO: checking $ac_header presence" >&5
13163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13164cat >conftest.$ac_ext <<_ACEOF
13165/* confdefs.h. */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
13169/* end confdefs.h. */
13170#include <$ac_header>
13171_ACEOF
13172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } >/dev/null; then
13180 if test -s conftest.err; then
13181 ac_cpp_err=$ac_c_preproc_warn_flag
13182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13183 else
13184 ac_cpp_err=
13185 fi
5ee754fc 13186else
bec39cab 13187 ac_cpp_err=yes
5ee754fc 13188fi
bec39cab
AC
13189if test -z "$ac_cpp_err"; then
13190 ac_header_preproc=yes
13191else
13192 echo "$as_me: failed program was:" >&5
13193sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13194
bec39cab 13195 ac_header_preproc=no
5ee754fc 13196fi
bec39cab 13197rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13198echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13199echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13200
bec39cab
AC
13201# So? What about this header?
13202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13203 yes:no: )
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13208 ac_header_preproc=yes
13209 ;;
13210 no:yes:* )
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13218echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13223 (
13224 cat <<\_ASBOX
13225## ------------------------------------------ ##
13226## Report this to the AC_PACKAGE_NAME lists. ##
13227## ------------------------------------------ ##
13228_ASBOX
13229 ) |
13230 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13231 ;;
13232esac
b4e70030
JB
13233echo "$as_me:$LINENO: checking for $ac_header" >&5
13234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13235if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13236 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13237else
bec39cab 13238 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13239fi
b4e70030
JB
13240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13242
5ee754fc 13243fi
bec39cab
AC
13244if test `eval echo '${'$as_ac_Header'}'` = yes; then
13245 cat >>confdefs.h <<_ACEOF
13246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13247_ACEOF
5ee754fc
MK
13248
13249fi
13250
bec39cab
AC
13251done
13252
13253
13254for ac_header in sys/ioctl.h
13255do
13256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13257if eval "test \"\${$as_ac_Header+set}\" = set"; then
13258 echo "$as_me:$LINENO: checking for $ac_header" >&5
13259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13260if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262fi
b4e70030
JB
13263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13265else
13266 # Is the header compilable?
b4e70030
JB
13267echo "$as_me:$LINENO: checking $ac_header usability" >&5
13268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13269cat >conftest.$ac_ext <<_ACEOF
13270/* confdefs.h. */
13271_ACEOF
13272cat confdefs.h >>conftest.$ac_ext
13273cat >>conftest.$ac_ext <<_ACEOF
13274/* end confdefs.h. */
13275$ac_includes_default
13276#include <$ac_header>
13277_ACEOF
13278rm -f conftest.$ac_objext
13279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13280 (eval $ac_compile) 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
b4e70030
JB
13287 { ac_try='test -z "$ac_c_werror_flag"
13288 || test ! -s conftest.err'
bec39cab
AC
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 ac_header_compiler=yes
13301else
13302 echo "$as_me: failed program was:" >&5
13303sed 's/^/| /' conftest.$ac_ext >&5
13304
b4e70030 13305ac_header_compiler=no
bec39cab
AC
13306fi
13307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13308echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13309echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13310
13311# Is the header present?
b4e70030
JB
13312echo "$as_me:$LINENO: checking $ac_header presence" >&5
13313echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13314cat >conftest.$ac_ext <<_ACEOF
13315/* confdefs.h. */
13316_ACEOF
13317cat confdefs.h >>conftest.$ac_ext
13318cat >>conftest.$ac_ext <<_ACEOF
13319/* end confdefs.h. */
13320#include <$ac_header>
13321_ACEOF
13322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13323 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
13330 if test -s conftest.err; then
13331 ac_cpp_err=$ac_c_preproc_warn_flag
13332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13333 else
13334 ac_cpp_err=
13335 fi
5ee754fc 13336else
bec39cab 13337 ac_cpp_err=yes
5ee754fc 13338fi
bec39cab
AC
13339if test -z "$ac_cpp_err"; then
13340 ac_header_preproc=yes
13341else
13342 echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13344
bec39cab 13345 ac_header_preproc=no
5ee754fc 13346fi
bec39cab 13347rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13348echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13349echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13350
bec39cab
AC
13351# So? What about this header?
13352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13353 yes:no: )
13354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13355echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13357echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13358 ac_header_preproc=yes
13359 ;;
13360 no:yes:* )
13361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13364echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13366echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13368echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13370echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13372echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13373 (
13374 cat <<\_ASBOX
13375## ------------------------------------------ ##
13376## Report this to the AC_PACKAGE_NAME lists. ##
13377## ------------------------------------------ ##
13378_ASBOX
13379 ) |
13380 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13381 ;;
13382esac
b4e70030
JB
13383echo "$as_me:$LINENO: checking for $ac_header" >&5
13384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13385if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13386 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13387else
bec39cab 13388 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13389fi
b4e70030
JB
13390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
13392
13393fi
bec39cab
AC
13394if test `eval echo '${'$as_ac_Header'}'` = yes; then
13395 cat >>confdefs.h <<_ACEOF
13396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13397_ACEOF
13398
5ee754fc
MK
13399fi
13400
bec39cab 13401done
5ee754fc 13402
5ee754fc 13403
bec39cab 13404for ac_header in sys/param.h
5ee754fc 13405do
bec39cab 13406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13407if eval "test \"\${$as_ac_Header+set}\" = set"; then
13408 echo "$as_me:$LINENO: checking for $ac_header" >&5
13409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13410if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412fi
b4e70030
JB
13413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13415else
13416 # Is the header compilable?
b4e70030
JB
13417echo "$as_me:$LINENO: checking $ac_header usability" >&5
13418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13419cat >conftest.$ac_ext <<_ACEOF
13420/* confdefs.h. */
13421_ACEOF
13422cat confdefs.h >>conftest.$ac_ext
13423cat >>conftest.$ac_ext <<_ACEOF
13424/* end confdefs.h. */
13425$ac_includes_default
13426#include <$ac_header>
13427_ACEOF
13428rm -f conftest.$ac_objext
13429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430 (eval $ac_compile) 2>conftest.er1
13431 ac_status=$?
13432 grep -v '^ *+' conftest.er1 >conftest.err
13433 rm -f conftest.er1
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
b4e70030
JB
13437 { ac_try='test -z "$ac_c_werror_flag"
13438 || test ! -s conftest.err'
bec39cab
AC
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 ac_header_compiler=yes
13451else
13452 echo "$as_me: failed program was:" >&5
13453sed 's/^/| /' conftest.$ac_ext >&5
13454
b4e70030 13455ac_header_compiler=no
bec39cab
AC
13456fi
13457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13459echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13460
13461# Is the header present?
b4e70030
JB
13462echo "$as_me:$LINENO: checking $ac_header presence" >&5
13463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13464cat >conftest.$ac_ext <<_ACEOF
13465/* confdefs.h. */
13466_ACEOF
13467cat confdefs.h >>conftest.$ac_ext
13468cat >>conftest.$ac_ext <<_ACEOF
13469/* end confdefs.h. */
13470#include <$ac_header>
13471_ACEOF
13472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } >/dev/null; then
13480 if test -s conftest.err; then
13481 ac_cpp_err=$ac_c_preproc_warn_flag
13482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13483 else
13484 ac_cpp_err=
13485 fi
5ee754fc 13486else
bec39cab 13487 ac_cpp_err=yes
5ee754fc 13488fi
bec39cab
AC
13489if test -z "$ac_cpp_err"; then
13490 ac_header_preproc=yes
13491else
13492 echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13494
bec39cab 13495 ac_header_preproc=no
5ee754fc 13496fi
bec39cab 13497rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13499echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13500
13501# So? What about this header?
13502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13503 yes:no: )
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13508 ac_header_preproc=yes
13509 ;;
13510 no:yes:* )
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13523 (
13524 cat <<\_ASBOX
13525## ------------------------------------------ ##
13526## Report this to the AC_PACKAGE_NAME lists. ##
13527## ------------------------------------------ ##
13528_ASBOX
13529 ) |
13530 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13531 ;;
13532esac
b4e70030
JB
13533echo "$as_me:$LINENO: checking for $ac_header" >&5
13534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13535if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13536 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13537else
bec39cab 13538 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13539fi
b4e70030
JB
13540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13542
5ee754fc 13543fi
bec39cab
AC
13544if test `eval echo '${'$as_ac_Header'}'` = yes; then
13545 cat >>confdefs.h <<_ACEOF
13546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13547_ACEOF
13548
5ee754fc 13549fi
bec39cab 13550
5ee754fc
MK
13551done
13552
bec39cab 13553
7eb368b3
NR
13554for ac_header in sys/resource.h
13555do
13556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13557if eval "test \"\${$as_ac_Header+set}\" = set"; then
13558 echo "$as_me:$LINENO: checking for $ac_header" >&5
13559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13560if eval "test \"\${$as_ac_Header+set}\" = set"; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13562fi
13563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13565else
13566 # Is the header compilable?
13567echo "$as_me:$LINENO: checking $ac_header usability" >&5
13568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13569cat >conftest.$ac_ext <<_ACEOF
13570/* confdefs.h. */
13571_ACEOF
13572cat confdefs.h >>conftest.$ac_ext
13573cat >>conftest.$ac_ext <<_ACEOF
13574/* end confdefs.h. */
13575$ac_includes_default
13576#include <$ac_header>
13577_ACEOF
13578rm -f conftest.$ac_objext
13579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_c_werror_flag"
13588 || test ! -s conftest.err'
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); }; } &&
13594 { ac_try='test -s conftest.$ac_objext'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_header_compiler=yes
13601else
13602 echo "$as_me: failed program was:" >&5
13603sed 's/^/| /' conftest.$ac_ext >&5
13604
13605ac_header_compiler=no
13606fi
13607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13609echo "${ECHO_T}$ac_header_compiler" >&6
13610
13611# Is the header present?
13612echo "$as_me:$LINENO: checking $ac_header presence" >&5
13613echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13614cat >conftest.$ac_ext <<_ACEOF
13615/* confdefs.h. */
13616_ACEOF
13617cat confdefs.h >>conftest.$ac_ext
13618cat >>conftest.$ac_ext <<_ACEOF
13619/* end confdefs.h. */
13620#include <$ac_header>
13621_ACEOF
13622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } >/dev/null; then
13630 if test -s conftest.err; then
13631 ac_cpp_err=$ac_c_preproc_warn_flag
13632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13633 else
13634 ac_cpp_err=
13635 fi
13636else
13637 ac_cpp_err=yes
13638fi
13639if test -z "$ac_cpp_err"; then
13640 ac_header_preproc=yes
13641else
13642 echo "$as_me: failed program was:" >&5
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
13645 ac_header_preproc=no
13646fi
13647rm -f conftest.err conftest.$ac_ext
13648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13649echo "${ECHO_T}$ac_header_preproc" >&6
13650
13651# So? What about this header?
13652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13653 yes:no: )
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13658 ac_header_preproc=yes
13659 ;;
13660 no:yes:* )
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13673 (
13674 cat <<\_ASBOX
13675## ------------------------------------------ ##
13676## Report this to the AC_PACKAGE_NAME lists. ##
13677## ------------------------------------------ ##
13678_ASBOX
13679 ) |
13680 sed "s/^/$as_me: WARNING: /" >&2
13681 ;;
13682esac
13683echo "$as_me:$LINENO: checking for $ac_header" >&5
13684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13685if eval "test \"\${$as_ac_Header+set}\" = set"; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13687else
13688 eval "$as_ac_Header=\$ac_header_preproc"
13689fi
13690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13692
13693fi
13694if test `eval echo '${'$as_ac_Header'}'` = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13697_ACEOF
13698
13699fi
13700
13701done
13702
13703
bec39cab 13704for ac_header in sys/proc.h
5ee754fc 13705do
bec39cab 13706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13707echo "$as_me:$LINENO: checking for $ac_header" >&5
13708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13709if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13710 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13711else
7cb9022a 13712 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13713/* confdefs.h. */
13714_ACEOF
13715cat confdefs.h >>conftest.$ac_ext
13716cat >>conftest.$ac_ext <<_ACEOF
13717/* end confdefs.h. */
7cb9022a
MK
13718#if HAVE_SYS_PARAM_H
13719# include <sys/param.h>
13720#endif
13721
13722
bec39cab
AC
13723#include <$ac_header>
13724_ACEOF
13725rm -f conftest.$ac_objext
13726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727 (eval $ac_compile) 2>conftest.er1
13728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
b4e70030
JB
13734 { ac_try='test -z "$ac_c_werror_flag"
13735 || test ! -s conftest.err'
bec39cab
AC
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest.$ac_objext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
7cb9022a 13747 eval "$as_ac_Header=yes"
bec39cab
AC
13748else
13749 echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
b4e70030 13752eval "$as_ac_Header=no"
bec39cab
AC
13753fi
13754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 13755fi
b4e70030
JB
13756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13758if test `eval echo '${'$as_ac_Header'}'` = yes; then
13759 cat >>confdefs.h <<_ACEOF
13760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13761_ACEOF
13762
5ee754fc 13763fi
bec39cab 13764
5ee754fc
MK
13765done
13766
bec39cab
AC
13767
13768for ac_header in sys/procfs.h
5ee754fc 13769do
bec39cab 13770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13771if eval "test \"\${$as_ac_Header+set}\" = set"; then
13772 echo "$as_me:$LINENO: checking for $ac_header" >&5
13773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13774if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776fi
b4e70030
JB
13777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13779else
13780 # Is the header compilable?
b4e70030
JB
13781echo "$as_me:$LINENO: checking $ac_header usability" >&5
13782echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13783cat >conftest.$ac_ext <<_ACEOF
13784/* confdefs.h. */
13785_ACEOF
13786cat confdefs.h >>conftest.$ac_ext
13787cat >>conftest.$ac_ext <<_ACEOF
13788/* end confdefs.h. */
13789$ac_includes_default
13790#include <$ac_header>
13791_ACEOF
13792rm -f conftest.$ac_objext
13793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>conftest.er1
13795 ac_status=$?
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
b4e70030
JB
13801 { ac_try='test -z "$ac_c_werror_flag"
13802 || test ! -s conftest.err'
bec39cab
AC
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_header_compiler=yes
13815else
13816 echo "$as_me: failed program was:" >&5
13817sed 's/^/| /' conftest.$ac_ext >&5
13818
b4e70030 13819ac_header_compiler=no
bec39cab
AC
13820fi
13821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13823echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13824
13825# Is the header present?
b4e70030
JB
13826echo "$as_me:$LINENO: checking $ac_header presence" >&5
13827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13828cat >conftest.$ac_ext <<_ACEOF
13829/* confdefs.h. */
13830_ACEOF
13831cat confdefs.h >>conftest.$ac_ext
13832cat >>conftest.$ac_ext <<_ACEOF
13833/* end confdefs.h. */
13834#include <$ac_header>
13835_ACEOF
13836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } >/dev/null; then
13844 if test -s conftest.err; then
13845 ac_cpp_err=$ac_c_preproc_warn_flag
13846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13847 else
13848 ac_cpp_err=
13849 fi
13850else
13851 ac_cpp_err=yes
5ee754fc 13852fi
bec39cab
AC
13853if test -z "$ac_cpp_err"; then
13854 ac_header_preproc=yes
5ee754fc 13855else
bec39cab
AC
13856 echo "$as_me: failed program was:" >&5
13857sed 's/^/| /' conftest.$ac_ext >&5
13858
13859 ac_header_preproc=no
5ee754fc 13860fi
bec39cab 13861rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13863echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13864
bec39cab
AC
13865# So? What about this header?
13866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13867 yes:no: )
13868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13871echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13872 ac_header_preproc=yes
13873 ;;
13874 no:yes:* )
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13876echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13878echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13880echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13882echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13884echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13886echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13887 (
13888 cat <<\_ASBOX
13889## ------------------------------------------ ##
13890## Report this to the AC_PACKAGE_NAME lists. ##
13891## ------------------------------------------ ##
13892_ASBOX
13893 ) |
13894 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13895 ;;
13896esac
b4e70030
JB
13897echo "$as_me:$LINENO: checking for $ac_header" >&5
13898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13899if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13903fi
b4e70030
JB
13904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 13906
5ee754fc 13907fi
bec39cab
AC
13908if test `eval echo '${'$as_ac_Header'}'` = yes; then
13909 cat >>confdefs.h <<_ACEOF
13910#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13911_ACEOF
13912
5ee754fc 13913fi
bec39cab 13914
5ee754fc
MK
13915done
13916
bec39cab
AC
13917
13918
13919for ac_header in sys/ptrace.h ptrace.h
5ee754fc 13920do
bec39cab 13921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13922if eval "test \"\${$as_ac_Header+set}\" = set"; then
13923 echo "$as_me:$LINENO: checking for $ac_header" >&5
13924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13925if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927fi
b4e70030
JB
13928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13930else
13931 # Is the header compilable?
b4e70030
JB
13932echo "$as_me:$LINENO: checking $ac_header usability" >&5
13933echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13934cat >conftest.$ac_ext <<_ACEOF
13935/* confdefs.h. */
13936_ACEOF
13937cat confdefs.h >>conftest.$ac_ext
13938cat >>conftest.$ac_ext <<_ACEOF
13939/* end confdefs.h. */
13940$ac_includes_default
13941#include <$ac_header>
13942_ACEOF
13943rm -f conftest.$ac_objext
13944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
b4e70030
JB
13952 { ac_try='test -z "$ac_c_werror_flag"
13953 || test ! -s conftest.err'
bec39cab
AC
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest.$ac_objext'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 ac_header_compiler=yes
13966else
13967 echo "$as_me: failed program was:" >&5
13968sed 's/^/| /' conftest.$ac_ext >&5
13969
b4e70030 13970ac_header_compiler=no
bec39cab
AC
13971fi
13972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13973echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13975
13976# Is the header present?
b4e70030
JB
13977echo "$as_me:$LINENO: checking $ac_header presence" >&5
13978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13979cat >conftest.$ac_ext <<_ACEOF
13980/* confdefs.h. */
13981_ACEOF
13982cat confdefs.h >>conftest.$ac_ext
13983cat >>conftest.$ac_ext <<_ACEOF
13984/* end confdefs.h. */
13985#include <$ac_header>
13986_ACEOF
13987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } >/dev/null; then
13995 if test -s conftest.err; then
13996 ac_cpp_err=$ac_c_preproc_warn_flag
13997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13998 else
13999 ac_cpp_err=
14000 fi
14001else
14002 ac_cpp_err=yes
5ee754fc 14003fi
bec39cab
AC
14004if test -z "$ac_cpp_err"; then
14005 ac_header_preproc=yes
5ee754fc 14006else
bec39cab
AC
14007 echo "$as_me: failed program was:" >&5
14008sed 's/^/| /' conftest.$ac_ext >&5
14009
14010 ac_header_preproc=no
5ee754fc 14011fi
bec39cab 14012rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14013echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14014echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14015
bec39cab
AC
14016# So? What about this header?
14017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14018 yes:no: )
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14023 ac_header_preproc=yes
14024 ;;
14025 no:yes:* )
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14038 (
14039 cat <<\_ASBOX
14040## ------------------------------------------ ##
14041## Report this to the AC_PACKAGE_NAME lists. ##
14042## ------------------------------------------ ##
14043_ASBOX
14044 ) |
14045 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14046 ;;
14047esac
b4e70030
JB
14048echo "$as_me:$LINENO: checking for $ac_header" >&5
14049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14050if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052else
14053 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14054fi
b4e70030
JB
14055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14057
5ee754fc 14058fi
bec39cab
AC
14059if test `eval echo '${'$as_ac_Header'}'` = yes; then
14060 cat >>confdefs.h <<_ACEOF
14061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14062_ACEOF
14063
5ee754fc 14064fi
bec39cab 14065
5ee754fc
MK
14066done
14067
bec39cab
AC
14068
14069
14070for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 14071do
bec39cab 14072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14073if eval "test \"\${$as_ac_Header+set}\" = set"; then
14074 echo "$as_me:$LINENO: checking for $ac_header" >&5
14075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14076if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078fi
b4e70030
JB
14079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14081else
14082 # Is the header compilable?
b4e70030
JB
14083echo "$as_me:$LINENO: checking $ac_header usability" >&5
14084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14085cat >conftest.$ac_ext <<_ACEOF
14086/* confdefs.h. */
14087_ACEOF
14088cat confdefs.h >>conftest.$ac_ext
14089cat >>conftest.$ac_ext <<_ACEOF
14090/* end confdefs.h. */
14091$ac_includes_default
14092#include <$ac_header>
14093_ACEOF
14094rm -f conftest.$ac_objext
14095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
b4e70030
JB
14103 { ac_try='test -z "$ac_c_werror_flag"
14104 || test ! -s conftest.err'
bec39cab
AC
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_header_compiler=yes
14117else
14118 echo "$as_me: failed program was:" >&5
14119sed 's/^/| /' conftest.$ac_ext >&5
14120
b4e70030 14121ac_header_compiler=no
bec39cab
AC
14122fi
14123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14124echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14125echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14126
14127# Is the header present?
b4e70030
JB
14128echo "$as_me:$LINENO: checking $ac_header presence" >&5
14129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14130cat >conftest.$ac_ext <<_ACEOF
14131/* confdefs.h. */
14132_ACEOF
14133cat confdefs.h >>conftest.$ac_ext
14134cat >>conftest.$ac_ext <<_ACEOF
14135/* end confdefs.h. */
14136#include <$ac_header>
14137_ACEOF
14138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } >/dev/null; then
14146 if test -s conftest.err; then
14147 ac_cpp_err=$ac_c_preproc_warn_flag
14148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14149 else
14150 ac_cpp_err=
14151 fi
14152else
14153 ac_cpp_err=yes
5ee754fc 14154fi
bec39cab
AC
14155if test -z "$ac_cpp_err"; then
14156 ac_header_preproc=yes
5ee754fc 14157else
bec39cab
AC
14158 echo "$as_me: failed program was:" >&5
14159sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 ac_header_preproc=no
5ee754fc 14162fi
bec39cab 14163rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14164echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14165echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14166
bec39cab
AC
14167# So? What about this header?
14168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14169 yes:no: )
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14174 ac_header_preproc=yes
14175 ;;
14176 no:yes:* )
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14189 (
14190 cat <<\_ASBOX
14191## ------------------------------------------ ##
14192## Report this to the AC_PACKAGE_NAME lists. ##
14193## ------------------------------------------ ##
14194_ASBOX
14195 ) |
14196 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14197 ;;
14198esac
b4e70030
JB
14199echo "$as_me:$LINENO: checking for $ac_header" >&5
14200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14201if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203else
14204 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14205fi
b4e70030
JB
14206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14208
5ee754fc 14209fi
bec39cab
AC
14210if test `eval echo '${'$as_ac_Header'}'` = yes; then
14211 cat >>confdefs.h <<_ACEOF
14212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14213_ACEOF
14214
5ee754fc 14215fi
bec39cab 14216
5ee754fc
MK
14217done
14218
bec39cab
AC
14219
14220for ac_header in sys/select.h
5ee754fc 14221do
bec39cab 14222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14223if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224 echo "$as_me:$LINENO: checking for $ac_header" >&5
14225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14226if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228fi
b4e70030
JB
14229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14231else
14232 # Is the header compilable?
b4e70030
JB
14233echo "$as_me:$LINENO: checking $ac_header usability" >&5
14234echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14235cat >conftest.$ac_ext <<_ACEOF
14236/* confdefs.h. */
14237_ACEOF
14238cat confdefs.h >>conftest.$ac_ext
14239cat >>conftest.$ac_ext <<_ACEOF
14240/* end confdefs.h. */
14241$ac_includes_default
14242#include <$ac_header>
14243_ACEOF
14244rm -f conftest.$ac_objext
14245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246 (eval $ac_compile) 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
b4e70030
JB
14253 { ac_try='test -z "$ac_c_werror_flag"
14254 || test ! -s conftest.err'
bec39cab
AC
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_header_compiler=yes
14267else
14268 echo "$as_me: failed program was:" >&5
14269sed 's/^/| /' conftest.$ac_ext >&5
14270
b4e70030 14271ac_header_compiler=no
bec39cab
AC
14272fi
14273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14274echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14275echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14276
14277# Is the header present?
b4e70030
JB
14278echo "$as_me:$LINENO: checking $ac_header presence" >&5
14279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14280cat >conftest.$ac_ext <<_ACEOF
14281/* confdefs.h. */
14282_ACEOF
14283cat confdefs.h >>conftest.$ac_ext
14284cat >>conftest.$ac_ext <<_ACEOF
14285/* end confdefs.h. */
14286#include <$ac_header>
14287_ACEOF
14288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } >/dev/null; then
14296 if test -s conftest.err; then
14297 ac_cpp_err=$ac_c_preproc_warn_flag
14298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14299 else
14300 ac_cpp_err=
14301 fi
14302else
14303 ac_cpp_err=yes
5ee754fc 14304fi
bec39cab
AC
14305if test -z "$ac_cpp_err"; then
14306 ac_header_preproc=yes
5ee754fc 14307else
bec39cab
AC
14308 echo "$as_me: failed program was:" >&5
14309sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 ac_header_preproc=no
5ee754fc 14312fi
bec39cab 14313rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14314echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14315echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14316
bec39cab
AC
14317# So? What about this header?
14318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14319 yes:no: )
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14321echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14323echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14324 ac_header_preproc=yes
14325 ;;
14326 no:yes:* )
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14328echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14330echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14332echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14334echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14336echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14338echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14339 (
14340 cat <<\_ASBOX
14341## ------------------------------------------ ##
14342## Report this to the AC_PACKAGE_NAME lists. ##
14343## ------------------------------------------ ##
14344_ASBOX
14345 ) |
14346 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14347 ;;
14348esac
b4e70030
JB
14349echo "$as_me:$LINENO: checking for $ac_header" >&5
14350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14351if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14353else
14354 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14355fi
b4e70030
JB
14356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14358
5ee754fc 14359fi
bec39cab
AC
14360if test `eval echo '${'$as_ac_Header'}'` = yes; then
14361 cat >>confdefs.h <<_ACEOF
14362#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14363_ACEOF
14364
5ee754fc 14365fi
bec39cab 14366
5ee754fc
MK
14367done
14368
bec39cab
AC
14369
14370for ac_header in sys/syscall.h
5ee754fc 14371do
bec39cab 14372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14373if eval "test \"\${$as_ac_Header+set}\" = set"; then
14374 echo "$as_me:$LINENO: checking for $ac_header" >&5
14375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14376if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378fi
b4e70030
JB
14379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14381else
14382 # Is the header compilable?
b4e70030
JB
14383echo "$as_me:$LINENO: checking $ac_header usability" >&5
14384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14385cat >conftest.$ac_ext <<_ACEOF
14386/* confdefs.h. */
14387_ACEOF
14388cat confdefs.h >>conftest.$ac_ext
14389cat >>conftest.$ac_ext <<_ACEOF
14390/* end confdefs.h. */
14391$ac_includes_default
14392#include <$ac_header>
14393_ACEOF
14394rm -f conftest.$ac_objext
14395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14396 (eval $ac_compile) 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
b4e70030
JB
14403 { ac_try='test -z "$ac_c_werror_flag"
14404 || test ! -s conftest.err'
bec39cab
AC
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest.$ac_objext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_header_compiler=yes
14417else
14418 echo "$as_me: failed program was:" >&5
14419sed 's/^/| /' conftest.$ac_ext >&5
14420
b4e70030 14421ac_header_compiler=no
bec39cab
AC
14422fi
14423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14425echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14426
14427# Is the header present?
b4e70030
JB
14428echo "$as_me:$LINENO: checking $ac_header presence" >&5
14429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14430cat >conftest.$ac_ext <<_ACEOF
14431/* confdefs.h. */
14432_ACEOF
14433cat confdefs.h >>conftest.$ac_ext
14434cat >>conftest.$ac_ext <<_ACEOF
14435/* end confdefs.h. */
14436#include <$ac_header>
14437_ACEOF
14438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } >/dev/null; then
14446 if test -s conftest.err; then
14447 ac_cpp_err=$ac_c_preproc_warn_flag
14448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14449 else
14450 ac_cpp_err=
14451 fi
14452else
14453 ac_cpp_err=yes
5ee754fc 14454fi
bec39cab
AC
14455if test -z "$ac_cpp_err"; then
14456 ac_header_preproc=yes
5ee754fc 14457else
bec39cab
AC
14458 echo "$as_me: failed program was:" >&5
14459sed 's/^/| /' conftest.$ac_ext >&5
14460
14461 ac_header_preproc=no
5ee754fc 14462fi
bec39cab 14463rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14465echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14466
bec39cab
AC
14467# So? What about this header?
14468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14469 yes:no: )
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14474 ac_header_preproc=yes
14475 ;;
14476 no:yes:* )
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14489 (
14490 cat <<\_ASBOX
14491## ------------------------------------------ ##
14492## Report this to the AC_PACKAGE_NAME lists. ##
14493## ------------------------------------------ ##
14494_ASBOX
14495 ) |
14496 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14497 ;;
14498esac
b4e70030
JB
14499echo "$as_me:$LINENO: checking for $ac_header" >&5
14500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14501if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503else
14504 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14505fi
b4e70030
JB
14506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14508
5ee754fc 14509fi
bec39cab
AC
14510if test `eval echo '${'$as_ac_Header'}'` = yes; then
14511 cat >>confdefs.h <<_ACEOF
14512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14513_ACEOF
14514
5ee754fc 14515fi
bec39cab 14516
5ee754fc
MK
14517done
14518
bec39cab
AC
14519
14520for ac_header in sys/types.h
5ee754fc 14521do
bec39cab 14522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14523if eval "test \"\${$as_ac_Header+set}\" = set"; then
14524 echo "$as_me:$LINENO: checking for $ac_header" >&5
14525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14526if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528fi
b4e70030
JB
14529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14531else
14532 # Is the header compilable?
b4e70030
JB
14533echo "$as_me:$LINENO: checking $ac_header usability" >&5
14534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14535cat >conftest.$ac_ext <<_ACEOF
14536/* confdefs.h. */
14537_ACEOF
14538cat confdefs.h >>conftest.$ac_ext
14539cat >>conftest.$ac_ext <<_ACEOF
14540/* end confdefs.h. */
14541$ac_includes_default
14542#include <$ac_header>
14543_ACEOF
14544rm -f conftest.$ac_objext
14545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14546 (eval $ac_compile) 2>conftest.er1
14547 ac_status=$?
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
b4e70030
JB
14553 { ac_try='test -z "$ac_c_werror_flag"
14554 || test ! -s conftest.err'
bec39cab
AC
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest.$ac_objext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_header_compiler=yes
14567else
14568 echo "$as_me: failed program was:" >&5
14569sed 's/^/| /' conftest.$ac_ext >&5
14570
b4e70030 14571ac_header_compiler=no
bec39cab
AC
14572fi
14573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14575echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14576
14577# Is the header present?
b4e70030
JB
14578echo "$as_me:$LINENO: checking $ac_header presence" >&5
14579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14580cat >conftest.$ac_ext <<_ACEOF
14581/* confdefs.h. */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
14585/* end confdefs.h. */
14586#include <$ac_header>
14587_ACEOF
14588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } >/dev/null; then
14596 if test -s conftest.err; then
14597 ac_cpp_err=$ac_c_preproc_warn_flag
14598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14599 else
14600 ac_cpp_err=
14601 fi
14602else
14603 ac_cpp_err=yes
5ee754fc 14604fi
bec39cab
AC
14605if test -z "$ac_cpp_err"; then
14606 ac_header_preproc=yes
5ee754fc 14607else
bec39cab
AC
14608 echo "$as_me: failed program was:" >&5
14609sed 's/^/| /' conftest.$ac_ext >&5
14610
14611 ac_header_preproc=no
5ee754fc 14612fi
bec39cab 14613rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14615echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14616
bec39cab
AC
14617# So? What about this header?
14618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14619 yes:no: )
14620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14624 ac_header_preproc=yes
14625 ;;
14626 no:yes:* )
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14639 (
14640 cat <<\_ASBOX
14641## ------------------------------------------ ##
14642## Report this to the AC_PACKAGE_NAME lists. ##
14643## ------------------------------------------ ##
14644_ASBOX
14645 ) |
14646 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14647 ;;
14648esac
b4e70030
JB
14649echo "$as_me:$LINENO: checking for $ac_header" >&5
14650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14651if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653else
14654 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14655fi
b4e70030
JB
14656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14658
5ee754fc 14659fi
bec39cab
AC
14660if test `eval echo '${'$as_ac_Header'}'` = yes; then
14661 cat >>confdefs.h <<_ACEOF
14662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14663_ACEOF
14664
5ee754fc 14665fi
bec39cab 14666
5ee754fc
MK
14667done
14668
bec39cab
AC
14669
14670for ac_header in sys/user.h
5ee754fc 14671do
bec39cab 14672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14673echo "$as_me:$LINENO: checking for $ac_header" >&5
14674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14675if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14676 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14677else
7cb9022a 14678 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14679/* confdefs.h. */
14680_ACEOF
14681cat confdefs.h >>conftest.$ac_ext
14682cat >>conftest.$ac_ext <<_ACEOF
14683/* end confdefs.h. */
7cb9022a
MK
14684#if HAVE_SYS_PARAM_H
14685# include <sys/param.h>
14686#endif
14687
14688
bec39cab
AC
14689#include <$ac_header>
14690_ACEOF
14691rm -f conftest.$ac_objext
14692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14693 (eval $ac_compile) 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
b4e70030
JB
14700 { ac_try='test -z "$ac_c_werror_flag"
14701 || test ! -s conftest.err'
bec39cab
AC
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
7cb9022a 14713 eval "$as_ac_Header=yes"
bec39cab
AC
14714else
14715 echo "$as_me: failed program was:" >&5
14716sed 's/^/| /' conftest.$ac_ext >&5
14717
b4e70030 14718eval "$as_ac_Header=no"
bec39cab
AC
14719fi
14720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 14721fi
b4e70030
JB
14722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14724if test `eval echo '${'$as_ac_Header'}'` = yes; then
14725 cat >>confdefs.h <<_ACEOF
14726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14727_ACEOF
14728
5ee754fc 14729fi
bec39cab 14730
5ee754fc
MK
14731done
14732
bec39cab
AC
14733
14734
14735for ac_header in sys/wait.h wait.h
5ee754fc 14736do
bec39cab 14737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14738if eval "test \"\${$as_ac_Header+set}\" = set"; then
14739 echo "$as_me:$LINENO: checking for $ac_header" >&5
14740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14741if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743fi
b4e70030
JB
14744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14746else
14747 # Is the header compilable?
b4e70030
JB
14748echo "$as_me:$LINENO: checking $ac_header usability" >&5
14749echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14750cat >conftest.$ac_ext <<_ACEOF
14751/* confdefs.h. */
14752_ACEOF
14753cat confdefs.h >>conftest.$ac_ext
14754cat >>conftest.$ac_ext <<_ACEOF
14755/* end confdefs.h. */
14756$ac_includes_default
14757#include <$ac_header>
14758_ACEOF
14759rm -f conftest.$ac_objext
14760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14761 (eval $ac_compile) 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
b4e70030
JB
14768 { ac_try='test -z "$ac_c_werror_flag"
14769 || test ! -s conftest.err'
bec39cab
AC
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest.$ac_objext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_header_compiler=yes
14782else
14783 echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5
14785
b4e70030 14786ac_header_compiler=no
bec39cab
AC
14787fi
14788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14790echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14791
14792# Is the header present?
b4e70030
JB
14793echo "$as_me:$LINENO: checking $ac_header presence" >&5
14794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14795cat >conftest.$ac_ext <<_ACEOF
14796/* confdefs.h. */
14797_ACEOF
14798cat confdefs.h >>conftest.$ac_ext
14799cat >>conftest.$ac_ext <<_ACEOF
14800/* end confdefs.h. */
14801#include <$ac_header>
14802_ACEOF
14803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14805 ac_status=$?
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } >/dev/null; then
14811 if test -s conftest.err; then
14812 ac_cpp_err=$ac_c_preproc_warn_flag
14813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14814 else
14815 ac_cpp_err=
14816 fi
14817else
14818 ac_cpp_err=yes
5ee754fc 14819fi
bec39cab
AC
14820if test -z "$ac_cpp_err"; then
14821 ac_header_preproc=yes
5ee754fc 14822else
bec39cab
AC
14823 echo "$as_me: failed program was:" >&5
14824sed 's/^/| /' conftest.$ac_ext >&5
14825
14826 ac_header_preproc=no
5ee754fc 14827fi
bec39cab 14828rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14830echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14831
bec39cab
AC
14832# So? What about this header?
14833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14834 yes:no: )
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14839 ac_header_preproc=yes
14840 ;;
14841 no:yes:* )
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14845echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14849echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14854 (
14855 cat <<\_ASBOX
14856## ------------------------------------------ ##
14857## Report this to the AC_PACKAGE_NAME lists. ##
14858## ------------------------------------------ ##
14859_ASBOX
14860 ) |
14861 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14862 ;;
14863esac
b4e70030
JB
14864echo "$as_me:$LINENO: checking for $ac_header" >&5
14865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14866if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14868else
14869 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 14870fi
b4e70030
JB
14871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14873
9608ab8b 14874fi
bec39cab
AC
14875if test `eval echo '${'$as_ac_Header'}'` = yes; then
14876 cat >>confdefs.h <<_ACEOF
14877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14878_ACEOF
14879
9608ab8b 14880fi
bec39cab 14881
9608ab8b 14882done
5ee754fc 14883
bec39cab
AC
14884
14885
14886
14887for ac_header in termios.h termio.h sgtty.h
5ee754fc 14888do
bec39cab 14889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14890if eval "test \"\${$as_ac_Header+set}\" = set"; then
14891 echo "$as_me:$LINENO: checking for $ac_header" >&5
14892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14893if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14895fi
b4e70030
JB
14896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14898else
14899 # Is the header compilable?
b4e70030
JB
14900echo "$as_me:$LINENO: checking $ac_header usability" >&5
14901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14902cat >conftest.$ac_ext <<_ACEOF
14903/* confdefs.h. */
14904_ACEOF
14905cat confdefs.h >>conftest.$ac_ext
14906cat >>conftest.$ac_ext <<_ACEOF
14907/* end confdefs.h. */
14908$ac_includes_default
14909#include <$ac_header>
14910_ACEOF
14911rm -f conftest.$ac_objext
14912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14913 (eval $ac_compile) 2>conftest.er1
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
b4e70030
JB
14920 { ac_try='test -z "$ac_c_werror_flag"
14921 || test ! -s conftest.err'
bec39cab
AC
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try='test -s conftest.$ac_objext'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_header_compiler=yes
14934else
14935 echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
b4e70030 14938ac_header_compiler=no
bec39cab
AC
14939fi
14940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14942echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14943
14944# Is the header present?
b4e70030
JB
14945echo "$as_me:$LINENO: checking $ac_header presence" >&5
14946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14947cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h. */
14949_ACEOF
14950cat confdefs.h >>conftest.$ac_ext
14951cat >>conftest.$ac_ext <<_ACEOF
14952/* end confdefs.h. */
14953#include <$ac_header>
14954_ACEOF
14955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } >/dev/null; then
14963 if test -s conftest.err; then
14964 ac_cpp_err=$ac_c_preproc_warn_flag
14965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14966 else
14967 ac_cpp_err=
14968 fi
14969else
14970 ac_cpp_err=yes
9608ab8b 14971fi
bec39cab
AC
14972if test -z "$ac_cpp_err"; then
14973 ac_header_preproc=yes
9608ab8b 14974else
bec39cab
AC
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978 ac_header_preproc=no
9608ab8b 14979fi
bec39cab 14980rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14982echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 14983
bec39cab
AC
14984# So? What about this header?
14985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14986 yes:no: )
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14991 ac_header_preproc=yes
14992 ;;
14993 no:yes:* )
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15006 (
15007 cat <<\_ASBOX
15008## ------------------------------------------ ##
15009## Report this to the AC_PACKAGE_NAME lists. ##
15010## ------------------------------------------ ##
15011_ASBOX
15012 ) |
15013 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15014 ;;
15015esac
b4e70030
JB
15016echo "$as_me:$LINENO: checking for $ac_header" >&5
15017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15018if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15020else
15021 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15022fi
b4e70030
JB
15023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15025
9608ab8b 15026fi
bec39cab
AC
15027if test `eval echo '${'$as_ac_Header'}'` = yes; then
15028 cat >>confdefs.h <<_ACEOF
15029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15030_ACEOF
15031
9608ab8b 15032fi
bec39cab 15033
5ee754fc 15034done
9608ab8b 15035
bec39cab
AC
15036
15037for ac_header in unistd.h
78434e59 15038do
bec39cab 15039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15040if eval "test \"\${$as_ac_Header+set}\" = set"; then
15041 echo "$as_me:$LINENO: checking for $ac_header" >&5
15042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15043if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045fi
b4e70030
JB
15046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15048else
15049 # Is the header compilable?
b4e70030
JB
15050echo "$as_me:$LINENO: checking $ac_header usability" >&5
15051echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15052cat >conftest.$ac_ext <<_ACEOF
15053/* confdefs.h. */
15054_ACEOF
15055cat confdefs.h >>conftest.$ac_ext
15056cat >>conftest.$ac_ext <<_ACEOF
15057/* end confdefs.h. */
15058$ac_includes_default
15059#include <$ac_header>
15060_ACEOF
15061rm -f conftest.$ac_objext
15062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063 (eval $ac_compile) 2>conftest.er1
15064 ac_status=$?
15065 grep -v '^ *+' conftest.er1 >conftest.err
15066 rm -f conftest.er1
15067 cat conftest.err >&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } &&
b4e70030
JB
15070 { ac_try='test -z "$ac_c_werror_flag"
15071 || test ! -s conftest.err'
bec39cab
AC
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; } &&
15077 { ac_try='test -s conftest.$ac_objext'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15083 ac_header_compiler=yes
15084else
15085 echo "$as_me: failed program was:" >&5
15086sed 's/^/| /' conftest.$ac_ext >&5
15087
b4e70030 15088ac_header_compiler=no
bec39cab
AC
15089fi
15090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15092echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15093
15094# Is the header present?
b4e70030
JB
15095echo "$as_me:$LINENO: checking $ac_header presence" >&5
15096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15097cat >conftest.$ac_ext <<_ACEOF
15098/* confdefs.h. */
15099_ACEOF
15100cat confdefs.h >>conftest.$ac_ext
15101cat >>conftest.$ac_ext <<_ACEOF
15102/* end confdefs.h. */
15103#include <$ac_header>
15104_ACEOF
15105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } >/dev/null; then
15113 if test -s conftest.err; then
15114 ac_cpp_err=$ac_c_preproc_warn_flag
15115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15116 else
15117 ac_cpp_err=
15118 fi
15119else
15120 ac_cpp_err=yes
78434e59 15121fi
bec39cab
AC
15122if test -z "$ac_cpp_err"; then
15123 ac_header_preproc=yes
78434e59 15124else
bec39cab
AC
15125 echo "$as_me: failed program was:" >&5
15126sed 's/^/| /' conftest.$ac_ext >&5
15127
15128 ac_header_preproc=no
78434e59 15129fi
bec39cab 15130rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15132echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 15133
bec39cab
AC
15134# So? What about this header?
15135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15136 yes:no: )
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15141 ac_header_preproc=yes
15142 ;;
15143 no:yes:* )
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15147echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15151echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15156 (
15157 cat <<\_ASBOX
15158## ------------------------------------------ ##
15159## Report this to the AC_PACKAGE_NAME lists. ##
15160## ------------------------------------------ ##
15161_ASBOX
15162 ) |
15163 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15164 ;;
15165esac
b4e70030
JB
15166echo "$as_me:$LINENO: checking for $ac_header" >&5
15167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15168if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170else
15171 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 15172fi
b4e70030
JB
15173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15175
086ec9eb 15176fi
bec39cab
AC
15177if test `eval echo '${'$as_ac_Header'}'` = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15180_ACEOF
15181
086ec9eb 15182fi
bec39cab 15183
086ec9eb
MK
15184done
15185
9608ab8b 15186
b1d19a62 15187# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
15188# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15189# think that we don't have <curses.h> if we're using GCC.
15190case $host_os in
b1d19a62 15191 solaris2.[789])
5ee754fc 15192 if test "$GCC" = yes; then
bec39cab
AC
15193
15194cat >>confdefs.h <<\_ACEOF
5ee754fc 15195#define _MSE_INT_H 1
bec39cab 15196_ACEOF
5ee754fc
MK
15197
15198 fi ;;
15199esac
bec39cab
AC
15200
15201
15202
15203
15204for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 15205do
bec39cab 15206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15207if eval "test \"\${$as_ac_Header+set}\" = set"; then
15208 echo "$as_me:$LINENO: checking for $ac_header" >&5
15209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15210if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212fi
b4e70030
JB
15213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15215else
15216 # Is the header compilable?
b4e70030
JB
15217echo "$as_me:$LINENO: checking $ac_header usability" >&5
15218echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15219cat >conftest.$ac_ext <<_ACEOF
15220/* confdefs.h. */
15221_ACEOF
15222cat confdefs.h >>conftest.$ac_ext
15223cat >>conftest.$ac_ext <<_ACEOF
15224/* end confdefs.h. */
15225$ac_includes_default
15226#include <$ac_header>
15227_ACEOF
15228rm -f conftest.$ac_objext
15229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230 (eval $ac_compile) 2>conftest.er1
15231 ac_status=$?
15232 grep -v '^ *+' conftest.er1 >conftest.err
15233 rm -f conftest.er1
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
b4e70030
JB
15237 { ac_try='test -z "$ac_c_werror_flag"
15238 || test ! -s conftest.err'
bec39cab
AC
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_header_compiler=yes
15251else
15252 echo "$as_me: failed program was:" >&5
15253sed 's/^/| /' conftest.$ac_ext >&5
15254
b4e70030 15255ac_header_compiler=no
bec39cab
AC
15256fi
15257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15258echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15259echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15260
15261# Is the header present?
b4e70030
JB
15262echo "$as_me:$LINENO: checking $ac_header presence" >&5
15263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15264cat >conftest.$ac_ext <<_ACEOF
15265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h. */
15270#include <$ac_header>
15271_ACEOF
15272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15274 ac_status=$?
15275 grep -v '^ *+' conftest.er1 >conftest.err
15276 rm -f conftest.er1
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } >/dev/null; then
15280 if test -s conftest.err; then
15281 ac_cpp_err=$ac_c_preproc_warn_flag
15282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15283 else
15284 ac_cpp_err=
15285 fi
15286else
15287 ac_cpp_err=yes
c906108c 15288fi
bec39cab
AC
15289if test -z "$ac_cpp_err"; then
15290 ac_header_preproc=yes
15291else
15292 echo "$as_me: failed program was:" >&5
15293sed 's/^/| /' conftest.$ac_ext >&5
15294
15295 ac_header_preproc=no
c906108c 15296fi
bec39cab 15297rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15298echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15299echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15300
15301# So? What about this header?
15302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15303 yes:no: )
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15305echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15307echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15308 ac_header_preproc=yes
15309 ;;
15310 no:yes:* )
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15312echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15314echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15316echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15318echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15320echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15322echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15323 (
15324 cat <<\_ASBOX
15325## ------------------------------------------ ##
15326## Report this to the AC_PACKAGE_NAME lists. ##
15327## ------------------------------------------ ##
15328_ASBOX
15329 ) |
15330 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15331 ;;
15332esac
b4e70030
JB
15333echo "$as_me:$LINENO: checking for $ac_header" >&5
15334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15335if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15336 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 15337else
bec39cab 15338 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 15339fi
b4e70030
JB
15340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15342
15343fi
15344if test `eval echo '${'$as_ac_Header'}'` = yes; then
15345 cat >>confdefs.h <<_ACEOF
15346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15347_ACEOF
15348
15349fi
15350
5ee754fc 15351done
c906108c 15352
bec39cab 15353
065a1afc 15354for ac_header in ncurses/term.h
3b78cdbb 15355do
bec39cab 15356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15357if eval "test \"\${$as_ac_Header+set}\" = set"; then
15358 echo "$as_me:$LINENO: checking for $ac_header" >&5
15359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15360if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15362fi
b4e70030
JB
15363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15365else
15366 # Is the header compilable?
b4e70030
JB
15367echo "$as_me:$LINENO: checking $ac_header usability" >&5
15368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15369cat >conftest.$ac_ext <<_ACEOF
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
15375$ac_includes_default
15376#include <$ac_header>
15377_ACEOF
15378rm -f conftest.$ac_objext
15379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15380 (eval $ac_compile) 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
b4e70030
JB
15387 { ac_try='test -z "$ac_c_werror_flag"
15388 || test ! -s conftest.err'
bec39cab
AC
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest.$ac_objext'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_header_compiler=yes
15401else
15402 echo "$as_me: failed program was:" >&5
15403sed 's/^/| /' conftest.$ac_ext >&5
15404
b4e70030 15405ac_header_compiler=no
bec39cab
AC
15406fi
15407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15408echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15409echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15410
15411# Is the header present?
b4e70030
JB
15412echo "$as_me:$LINENO: checking $ac_header presence" >&5
15413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15414cat >conftest.$ac_ext <<_ACEOF
15415/* confdefs.h. */
15416_ACEOF
15417cat confdefs.h >>conftest.$ac_ext
15418cat >>conftest.$ac_ext <<_ACEOF
15419/* end confdefs.h. */
15420#include <$ac_header>
15421_ACEOF
15422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } >/dev/null; then
15430 if test -s conftest.err; then
15431 ac_cpp_err=$ac_c_preproc_warn_flag
15432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15433 else
15434 ac_cpp_err=
15435 fi
15436else
15437 ac_cpp_err=yes
3b78cdbb 15438fi
bec39cab
AC
15439if test -z "$ac_cpp_err"; then
15440 ac_header_preproc=yes
15441else
15442 echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5
15444
15445 ac_header_preproc=no
3b78cdbb 15446fi
bec39cab 15447rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15448echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15449echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15450
15451# So? What about this header?
15452case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15453 yes:no: )
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15455echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15457echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15458 ac_header_preproc=yes
15459 ;;
15460 no:yes:* )
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15462echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15464echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15466echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15468echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15470echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15472echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15473 (
15474 cat <<\_ASBOX
15475## ------------------------------------------ ##
15476## Report this to the AC_PACKAGE_NAME lists. ##
15477## ------------------------------------------ ##
15478_ASBOX
15479 ) |
15480 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15481 ;;
15482esac
b4e70030
JB
15483echo "$as_me:$LINENO: checking for $ac_header" >&5
15484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15485if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15486 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 15487else
bec39cab
AC
15488 eval "$as_ac_Header=\$ac_header_preproc"
15489fi
b4e70030
JB
15490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15492
3b78cdbb 15493fi
bec39cab
AC
15494if test `eval echo '${'$as_ac_Header'}'` = yes; then
15495 cat >>confdefs.h <<_ACEOF
15496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15497_ACEOF
15498
15499fi
15500
3b78cdbb
DA
15501done
15502
c906108c 15503
065a1afc
JB
15504for ac_header in term.h
15505do
15506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15507echo "$as_me:$LINENO: checking for $ac_header" >&5
15508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15509if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15511else
15512 cat >conftest.$ac_ext <<_ACEOF
15513/* confdefs.h. */
15514_ACEOF
15515cat confdefs.h >>conftest.$ac_ext
15516cat >>conftest.$ac_ext <<_ACEOF
15517/* end confdefs.h. */
15518#if HAVE_CURSES_H
15519# include <curses.h>
15520#endif
15521
15522
15523#include <$ac_header>
15524_ACEOF
15525rm -f conftest.$ac_objext
15526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527 (eval $ac_compile) 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
b4e70030
JB
15534 { ac_try='test -z "$ac_c_werror_flag"
15535 || test ! -s conftest.err'
065a1afc
JB
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest.$ac_objext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 eval "$as_ac_Header=yes"
15548else
15549 echo "$as_me: failed program was:" >&5
15550sed 's/^/| /' conftest.$ac_ext >&5
15551
b4e70030 15552eval "$as_ac_Header=no"
065a1afc
JB
15553fi
15554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15555fi
b4e70030
JB
15556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
15558if test `eval echo '${'$as_ac_Header'}'` = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15561_ACEOF
15562
15563fi
15564
15565done
15566
15567
d542061a
UW
15568# Check for HP/UX 64-bit shared library support
15569
15570for ac_header in elf_hp.h
15571do
15572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15573if eval "test \"\${$as_ac_Header+set}\" = set"; then
15574 echo "$as_me:$LINENO: checking for $ac_header" >&5
15575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15576if eval "test \"\${$as_ac_Header+set}\" = set"; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15578fi
15579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15581else
15582 # Is the header compilable?
15583echo "$as_me:$LINENO: checking $ac_header usability" >&5
15584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15585cat >conftest.$ac_ext <<_ACEOF
15586/* confdefs.h. */
15587_ACEOF
15588cat confdefs.h >>conftest.$ac_ext
15589cat >>conftest.$ac_ext <<_ACEOF
15590/* end confdefs.h. */
15591$ac_includes_default
15592#include <$ac_header>
15593_ACEOF
15594rm -f conftest.$ac_objext
15595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596 (eval $ac_compile) 2>conftest.er1
15597 ac_status=$?
15598 grep -v '^ *+' conftest.er1 >conftest.err
15599 rm -f conftest.er1
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -z "$ac_c_werror_flag"
15604 || test ! -s conftest.err'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 ac_header_compiler=yes
15617else
15618 echo "$as_me: failed program was:" >&5
15619sed 's/^/| /' conftest.$ac_ext >&5
15620
15621ac_header_compiler=no
15622fi
15623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15625echo "${ECHO_T}$ac_header_compiler" >&6
15626
15627# Is the header present?
15628echo "$as_me:$LINENO: checking $ac_header presence" >&5
15629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15630cat >conftest.$ac_ext <<_ACEOF
15631/* confdefs.h. */
15632_ACEOF
15633cat confdefs.h >>conftest.$ac_ext
15634cat >>conftest.$ac_ext <<_ACEOF
15635/* end confdefs.h. */
15636#include <$ac_header>
15637_ACEOF
15638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15640 ac_status=$?
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } >/dev/null; then
15646 if test -s conftest.err; then
15647 ac_cpp_err=$ac_c_preproc_warn_flag
15648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15649 else
15650 ac_cpp_err=
15651 fi
15652else
15653 ac_cpp_err=yes
15654fi
15655if test -z "$ac_cpp_err"; then
15656 ac_header_preproc=yes
15657else
15658 echo "$as_me: failed program was:" >&5
15659sed 's/^/| /' conftest.$ac_ext >&5
15660
15661 ac_header_preproc=no
15662fi
15663rm -f conftest.err conftest.$ac_ext
15664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15665echo "${ECHO_T}$ac_header_preproc" >&6
15666
15667# So? What about this header?
15668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15669 yes:no: )
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15673echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15674 ac_header_preproc=yes
15675 ;;
15676 no:yes:* )
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15682echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15684echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15688echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15689 (
15690 cat <<\_ASBOX
15691## ------------------------------------------ ##
15692## Report this to the AC_PACKAGE_NAME lists. ##
15693## ------------------------------------------ ##
15694_ASBOX
15695 ) |
15696 sed "s/^/$as_me: WARNING: /" >&2
15697 ;;
15698esac
15699echo "$as_me:$LINENO: checking for $ac_header" >&5
15700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15701if eval "test \"\${$as_ac_Header+set}\" = set"; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15703else
15704 eval "$as_ac_Header=\$ac_header_preproc"
15705fi
15706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15708
15709fi
15710if test `eval echo '${'$as_ac_Header'}'` = yes; then
15711 cat >>confdefs.h <<_ACEOF
15712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15713_ACEOF
15714
15715fi
15716
15717done
15718
15719
5ee754fc
MK
15720# FIXME: kettenis/20030102: In most cases we include these
15721# unconditionally, so what's the point in checking these?
bec39cab
AC
15722
15723
15724for ac_header in ctype.h time.h
c906108c 15725do
bec39cab 15726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15727if eval "test \"\${$as_ac_Header+set}\" = set"; then
15728 echo "$as_me:$LINENO: checking for $ac_header" >&5
15729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15730if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15732fi
b4e70030
JB
15733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15735else
15736 # Is the header compilable?
b4e70030
JB
15737echo "$as_me:$LINENO: checking $ac_header usability" >&5
15738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15739cat >conftest.$ac_ext <<_ACEOF
15740/* confdefs.h. */
15741_ACEOF
15742cat confdefs.h >>conftest.$ac_ext
15743cat >>conftest.$ac_ext <<_ACEOF
15744/* end confdefs.h. */
15745$ac_includes_default
15746#include <$ac_header>
15747_ACEOF
15748rm -f conftest.$ac_objext
15749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15750 (eval $ac_compile) 2>conftest.er1
15751 ac_status=$?
15752 grep -v '^ *+' conftest.er1 >conftest.err
15753 rm -f conftest.er1
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
b4e70030
JB
15757 { ac_try='test -z "$ac_c_werror_flag"
15758 || test ! -s conftest.err'
bec39cab
AC
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try='test -s conftest.$ac_objext'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15770 ac_header_compiler=yes
15771else
15772 echo "$as_me: failed program was:" >&5
15773sed 's/^/| /' conftest.$ac_ext >&5
15774
b4e70030 15775ac_header_compiler=no
bec39cab
AC
15776fi
15777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15780
15781# Is the header present?
b4e70030
JB
15782echo "$as_me:$LINENO: checking $ac_header presence" >&5
15783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15784cat >conftest.$ac_ext <<_ACEOF
15785/* confdefs.h. */
15786_ACEOF
15787cat confdefs.h >>conftest.$ac_ext
15788cat >>conftest.$ac_ext <<_ACEOF
15789/* end confdefs.h. */
15790#include <$ac_header>
15791_ACEOF
15792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } >/dev/null; then
15800 if test -s conftest.err; then
15801 ac_cpp_err=$ac_c_preproc_warn_flag
15802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15803 else
15804 ac_cpp_err=
15805 fi
15806else
15807 ac_cpp_err=yes
c906108c 15808fi
bec39cab
AC
15809if test -z "$ac_cpp_err"; then
15810 ac_header_preproc=yes
15811else
15812 echo "$as_me: failed program was:" >&5
15813sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 ac_header_preproc=no
c906108c 15816fi
bec39cab 15817rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15819echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15820
15821# So? What about this header?
15822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15823 yes:no: )
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15828 ac_header_preproc=yes
15829 ;;
15830 no:yes:* )
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15843 (
15844 cat <<\_ASBOX
15845## ------------------------------------------ ##
15846## Report this to the AC_PACKAGE_NAME lists. ##
15847## ------------------------------------------ ##
15848_ASBOX
15849 ) |
15850 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15851 ;;
15852esac
b4e70030
JB
15853echo "$as_me:$LINENO: checking for $ac_header" >&5
15854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15855if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15856 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 15857else
bec39cab
AC
15858 eval "$as_ac_Header=\$ac_header_preproc"
15859fi
b4e70030
JB
15860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15862
15863fi
15864if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15867_ACEOF
15868
c906108c 15869fi
bec39cab 15870
c906108c
SS
15871done
15872
5ee754fc 15873
4e8d927d 15874# Create a header we can use portably to get the standard integer types.
666ec76f 15875
4e8d927d
DJ
15876
15877inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15878
15879acx_cv_header_stdint=stddef.h
15880acx_cv_header_stdint_kind="(already complete)"
15881for i in stdint.h $inttype_headers; do
15882 unset ac_cv_type_uintptr_t
15883 unset ac_cv_type_uintmax_t
15884 unset ac_cv_type_int_least32_t
15885 unset ac_cv_type_int_fast32_t
15886 unset ac_cv_type_uint64_t
15887 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
15888 echo "$as_me:$LINENO: checking for uintmax_t" >&5
15889echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 15890if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 15891 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 15892else
bec39cab
AC
15893 cat >conftest.$ac_ext <<_ACEOF
15894/* confdefs.h. */
15895_ACEOF
15896cat confdefs.h >>conftest.$ac_ext
15897cat >>conftest.$ac_ext <<_ACEOF
15898/* end confdefs.h. */
4e8d927d
DJ
15899#include <sys/types.h>
15900#include <$i>
15901
bec39cab
AC
15902int
15903main ()
15904{
b4e70030 15905if ((uintmax_t *) 0)
4e8d927d 15906 return 0;
b4e70030 15907if (sizeof (uintmax_t))
4e8d927d
DJ
15908 return 0;
15909 ;
bec39cab
AC
15910 return 0;
15911}
15912_ACEOF
15913rm -f conftest.$ac_objext
15914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15915 (eval $ac_compile) 2>conftest.er1
15916 ac_status=$?
15917 grep -v '^ *+' conftest.er1 >conftest.err
15918 rm -f conftest.er1
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
b4e70030
JB
15922 { ac_try='test -z "$ac_c_werror_flag"
15923 || test ! -s conftest.err'
bec39cab
AC
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest.$ac_objext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
4e8d927d 15935 ac_cv_type_uintmax_t=yes
40a7debc 15936else
bec39cab
AC
15937 echo "$as_me: failed program was:" >&5
15938sed 's/^/| /' conftest.$ac_ext >&5
15939
b4e70030 15940ac_cv_type_uintmax_t=no
40a7debc 15941fi
bec39cab 15942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 15943fi
b4e70030
JB
15944echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
15945echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
15946if test $ac_cv_type_uintmax_t = yes; then
15947 acx_cv_header_stdint=$i
666ec76f 15948else
4e8d927d 15949 continue
666ec76f 15950fi
4e8d927d 15951
b4e70030
JB
15952 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15953echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 15954if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956else
15957 cat >conftest.$ac_ext <<_ACEOF
15958/* confdefs.h. */
15959_ACEOF
15960cat confdefs.h >>conftest.$ac_ext
15961cat >>conftest.$ac_ext <<_ACEOF
15962/* end confdefs.h. */
4e8d927d
DJ
15963#include <sys/types.h>
15964#include <$i>
15965
666ec76f
MK
15966int
15967main ()
15968{
b4e70030 15969if ((uintptr_t *) 0)
4e8d927d 15970 return 0;
b4e70030 15971if (sizeof (uintptr_t))
4e8d927d 15972 return 0;
666ec76f
MK
15973 ;
15974 return 0;
15975}
15976_ACEOF
15977rm -f conftest.$ac_objext
15978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>conftest.er1
15980 ac_status=$?
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
b4e70030
JB
15986 { ac_try='test -z "$ac_c_werror_flag"
15987 || test ! -s conftest.err'
666ec76f
MK
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; } &&
15993 { ac_try='test -s conftest.$ac_objext'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
4e8d927d 15999 ac_cv_type_uintptr_t=yes
666ec76f
MK
16000else
16001 echo "$as_me: failed program was:" >&5
16002sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16003
b4e70030 16004ac_cv_type_uintptr_t=no
a3828db0
MK
16005fi
16006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16007fi
b4e70030
JB
16008echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16009echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
16010if test $ac_cv_type_uintptr_t = yes; then
16011 :
a3828db0 16012else
4e8d927d 16013 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 16014fi
4e8d927d 16015
b4e70030
JB
16016 echo "$as_me:$LINENO: checking for int_least32_t" >&5
16017echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 16018if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020else
16021 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
16022/* confdefs.h. */
16023_ACEOF
16024cat confdefs.h >>conftest.$ac_ext
16025cat >>conftest.$ac_ext <<_ACEOF
16026/* end confdefs.h. */
4e8d927d
DJ
16027#include <sys/types.h>
16028#include <$i>
16029
bec39cab
AC
16030int
16031main ()
16032{
b4e70030 16033if ((int_least32_t *) 0)
4e8d927d 16034 return 0;
b4e70030 16035if (sizeof (int_least32_t))
4e8d927d 16036 return 0;
bec39cab
AC
16037 ;
16038 return 0;
16039}
16040_ACEOF
16041rm -f conftest.$ac_objext
16042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16043 (eval $ac_compile) 2>conftest.er1
16044 ac_status=$?
16045 grep -v '^ *+' conftest.er1 >conftest.err
16046 rm -f conftest.er1
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
b4e70030
JB
16050 { ac_try='test -z "$ac_c_werror_flag"
16051 || test ! -s conftest.err'
bec39cab
AC
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest.$ac_objext'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
4e8d927d 16063 ac_cv_type_int_least32_t=yes
b9362cc7 16064else
bec39cab
AC
16065 echo "$as_me: failed program was:" >&5
16066sed 's/^/| /' conftest.$ac_ext >&5
16067
b4e70030 16068ac_cv_type_int_least32_t=no
b9362cc7 16069fi
bec39cab 16070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 16071fi
b4e70030
JB
16072echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
16073echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
16074if test $ac_cv_type_int_least32_t = yes; then
16075 :
a3828db0 16076else
4e8d927d 16077 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 16078fi
5ee754fc 16079
b4e70030
JB
16080 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
16081echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 16082if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16084else
16085 cat >conftest.$ac_ext <<_ACEOF
16086/* confdefs.h. */
16087_ACEOF
16088cat confdefs.h >>conftest.$ac_ext
16089cat >>conftest.$ac_ext <<_ACEOF
16090/* end confdefs.h. */
4e8d927d
DJ
16091#include <sys/types.h>
16092#include <$i>
16093
bec39cab
AC
16094int
16095main ()
16096{
b4e70030 16097if ((int_fast32_t *) 0)
4e8d927d 16098 return 0;
b4e70030 16099if (sizeof (int_fast32_t))
4e8d927d 16100 return 0;
bec39cab
AC
16101 ;
16102 return 0;
16103}
16104_ACEOF
16105rm -f conftest.$ac_objext
16106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16107 (eval $ac_compile) 2>conftest.er1
16108 ac_status=$?
16109 grep -v '^ *+' conftest.er1 >conftest.err
16110 rm -f conftest.er1
16111 cat conftest.err >&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
b4e70030
JB
16114 { ac_try='test -z "$ac_c_werror_flag"
16115 || test ! -s conftest.err'
bec39cab
AC
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; } &&
16121 { ac_try='test -s conftest.$ac_objext'
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
4e8d927d 16127 ac_cv_type_int_fast32_t=yes
c906108c 16128else
bec39cab
AC
16129 echo "$as_me: failed program was:" >&5
16130sed 's/^/| /' conftest.$ac_ext >&5
16131
b4e70030 16132ac_cv_type_int_fast32_t=no
c906108c 16133fi
bec39cab 16134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16135fi
b4e70030
JB
16136echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
16137echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
16138if test $ac_cv_type_int_fast32_t = yes; then
16139 :
a3828db0 16140else
4e8d927d 16141 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 16142fi
4e8d927d 16143
b4e70030
JB
16144 echo "$as_me:$LINENO: checking for uint64_t" >&5
16145echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 16146if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16148else
16149 cat >conftest.$ac_ext <<_ACEOF
16150/* confdefs.h. */
16151_ACEOF
16152cat confdefs.h >>conftest.$ac_ext
16153cat >>conftest.$ac_ext <<_ACEOF
16154/* end confdefs.h. */
4e8d927d
DJ
16155#include <sys/types.h>
16156#include <$i>
16157
bec39cab
AC
16158int
16159main ()
16160{
b4e70030 16161if ((uint64_t *) 0)
4e8d927d 16162 return 0;
b4e70030 16163if (sizeof (uint64_t))
4e8d927d 16164 return 0;
bec39cab
AC
16165 ;
16166 return 0;
16167}
16168_ACEOF
16169rm -f conftest.$ac_objext
16170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>conftest.er1
16172 ac_status=$?
16173 grep -v '^ *+' conftest.er1 >conftest.err
16174 rm -f conftest.er1
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
b4e70030
JB
16178 { ac_try='test -z "$ac_c_werror_flag"
16179 || test ! -s conftest.err'
bec39cab
AC
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest.$ac_objext'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
4e8d927d 16191 ac_cv_type_uint64_t=yes
c906108c 16192else
bec39cab
AC
16193 echo "$as_me: failed program was:" >&5
16194sed 's/^/| /' conftest.$ac_ext >&5
16195
b4e70030 16196ac_cv_type_uint64_t=no
c906108c 16197fi
bec39cab 16198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16199fi
b4e70030
JB
16200echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16201echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
16202if test $ac_cv_type_uint64_t = yes; then
16203 :
a3828db0 16204else
4e8d927d 16205 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
16206fi
16207
4e8d927d
DJ
16208 break
16209done
16210if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 16211 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 16212 for i in stdint.h $inttype_headers; do
3841debe 16213 unset ac_cv_type_uintptr_t
4e8d927d
DJ
16214 unset ac_cv_type_uint32_t
16215 unset ac_cv_type_uint64_t
16216 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
16217 echo "$as_me:$LINENO: checking for uint32_t" >&5
16218echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 16219if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 16220 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 16221else
bec39cab
AC
16222 cat >conftest.$ac_ext <<_ACEOF
16223/* confdefs.h. */
16224_ACEOF
16225cat confdefs.h >>conftest.$ac_ext
16226cat >>conftest.$ac_ext <<_ACEOF
16227/* end confdefs.h. */
4e8d927d
DJ
16228#include <sys/types.h>
16229#include <$i>
16230
a3828db0
MK
16231int
16232main ()
16233{
b4e70030 16234if ((uint32_t *) 0)
4e8d927d 16235 return 0;
b4e70030 16236if (sizeof (uint32_t))
4e8d927d 16237 return 0;
a3828db0
MK
16238 ;
16239 return 0;
16240}
bec39cab
AC
16241_ACEOF
16242rm -f conftest.$ac_objext
16243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16244 (eval $ac_compile) 2>conftest.er1
16245 ac_status=$?
16246 grep -v '^ *+' conftest.er1 >conftest.err
16247 rm -f conftest.er1
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
b4e70030
JB
16251 { ac_try='test -z "$ac_c_werror_flag"
16252 || test ! -s conftest.err'
bec39cab
AC
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; } &&
16258 { ac_try='test -s conftest.$ac_objext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
4e8d927d 16264 ac_cv_type_uint32_t=yes
bce58c09 16265else
bec39cab
AC
16266 echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
b4e70030 16269ac_cv_type_uint32_t=no
bce58c09 16270fi
bec39cab 16271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 16272fi
b4e70030
JB
16273echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16274echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
16275if test $ac_cv_type_uint32_t = yes; then
16276 acx_cv_header_stdint=$i
a3828db0 16277else
4e8d927d 16278 continue
e5a7de23 16279fi
4e8d927d 16280
b4e70030
JB
16281 echo "$as_me:$LINENO: checking for uint64_t" >&5
16282echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 16283if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285else
16286 cat >conftest.$ac_ext <<_ACEOF
16287/* confdefs.h. */
16288_ACEOF
16289cat confdefs.h >>conftest.$ac_ext
16290cat >>conftest.$ac_ext <<_ACEOF
16291/* end confdefs.h. */
4e8d927d
DJ
16292#include <sys/types.h>
16293#include <$i>
16294
e5a7de23
EZ
16295int
16296main ()
16297{
b4e70030 16298if ((uint64_t *) 0)
4e8d927d 16299 return 0;
b4e70030 16300if (sizeof (uint64_t))
4e8d927d 16301 return 0;
e5a7de23
EZ
16302 ;
16303 return 0;
16304}
16305_ACEOF
16306rm -f conftest.$ac_objext
16307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16308 (eval $ac_compile) 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
b4e70030
JB
16315 { ac_try='test -z "$ac_c_werror_flag"
16316 || test ! -s conftest.err'
e5a7de23
EZ
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; } &&
16322 { ac_try='test -s conftest.$ac_objext'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; }; then
4e8d927d 16328 ac_cv_type_uint64_t=yes
e5a7de23
EZ
16329else
16330 echo "$as_me: failed program was:" >&5
16331sed 's/^/| /' conftest.$ac_ext >&5
16332
b4e70030 16333ac_cv_type_uint64_t=no
e5a7de23
EZ
16334fi
16335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16336fi
b4e70030
JB
16337echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16338echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
16339
16340 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16341echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16342if test "${ac_cv_type_uintptr_t+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16344else
16345 cat >conftest.$ac_ext <<_ACEOF
16346/* confdefs.h. */
16347_ACEOF
16348cat confdefs.h >>conftest.$ac_ext
16349cat >>conftest.$ac_ext <<_ACEOF
16350/* end confdefs.h. */
16351#include <sys/types.h>
16352#include <$i>
16353
16354int
16355main ()
16356{
16357if ((uintptr_t *) 0)
16358 return 0;
16359if (sizeof (uintptr_t))
16360 return 0;
16361 ;
16362 return 0;
16363}
16364_ACEOF
16365rm -f conftest.$ac_objext
16366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367 (eval $ac_compile) 2>conftest.er1
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
16374 { ac_try='test -z "$ac_c_werror_flag"
16375 || test ! -s conftest.err'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 ac_cv_type_uintptr_t=yes
e5a7de23 16388else
3841debe
DJ
16389 echo "$as_me: failed program was:" >&5
16390sed 's/^/| /' conftest.$ac_ext >&5
16391
16392ac_cv_type_uintptr_t=no
4e8d927d 16393fi
3841debe
DJ
16394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16395fi
16396echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16397echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 16398
4e8d927d
DJ
16399 break
16400 done
e5a7de23 16401fi
4e8d927d
DJ
16402if test "$acx_cv_header_stdint" = stddef.h; then
16403 acx_cv_header_stdint_kind="(u_intXX_t style)"
16404 for i in sys/types.h $inttype_headers; do
16405 unset ac_cv_type_u_int32_t
16406 unset ac_cv_type_u_int64_t
16407 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
16408 echo "$as_me:$LINENO: checking for u_int32_t" >&5
16409echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 16410if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16412else
16413 cat >conftest.$ac_ext <<_ACEOF
16414/* confdefs.h. */
16415_ACEOF
16416cat confdefs.h >>conftest.$ac_ext
16417cat >>conftest.$ac_ext <<_ACEOF
16418/* end confdefs.h. */
4e8d927d
DJ
16419#include <sys/types.h>
16420#include <$i>
16421
e5a7de23
EZ
16422int
16423main ()
16424{
b4e70030 16425if ((u_int32_t *) 0)
4e8d927d 16426 return 0;
b4e70030 16427if (sizeof (u_int32_t))
4e8d927d 16428 return 0;
e5a7de23
EZ
16429 ;
16430 return 0;
16431}
16432_ACEOF
16433rm -f conftest.$ac_objext
16434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16435 (eval $ac_compile) 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } &&
b4e70030
JB
16442 { ac_try='test -z "$ac_c_werror_flag"
16443 || test ! -s conftest.err'
e5a7de23
EZ
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; } &&
16449 { ac_try='test -s conftest.$ac_objext'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
4e8d927d 16455 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
16456else
16457 echo "$as_me: failed program was:" >&5
16458sed 's/^/| /' conftest.$ac_ext >&5
16459
b4e70030 16460ac_cv_type_u_int32_t=no
e5a7de23
EZ
16461fi
16462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16463fi
b4e70030
JB
16464echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
16465echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
16466if test $ac_cv_type_u_int32_t = yes; then
16467 acx_cv_header_stdint=$i
e5a7de23 16468else
4e8d927d 16469 continue
a3828db0 16470fi
5ee754fc 16471
b4e70030
JB
16472 echo "$as_me:$LINENO: checking for u_int64_t" >&5
16473echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 16474if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476else
16477 cat >conftest.$ac_ext <<_ACEOF
16478/* confdefs.h. */
16479_ACEOF
16480cat confdefs.h >>conftest.$ac_ext
16481cat >>conftest.$ac_ext <<_ACEOF
16482/* end confdefs.h. */
4e8d927d
DJ
16483#include <sys/types.h>
16484#include <$i>
16485
bec39cab
AC
16486int
16487main ()
16488{
b4e70030 16489if ((u_int64_t *) 0)
4e8d927d 16490 return 0;
b4e70030 16491if (sizeof (u_int64_t))
4e8d927d 16492 return 0;
bec39cab
AC
16493 ;
16494 return 0;
16495}
16496_ACEOF
a3828db0
MK
16497rm -f conftest.$ac_objext
16498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16499 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16500 ac_status=$?
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
b4e70030
JB
16506 { ac_try='test -z "$ac_c_werror_flag"
16507 || test ! -s conftest.err'
bec39cab
AC
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; } &&
a3828db0 16513 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
4e8d927d 16519 ac_cv_type_u_int64_t=yes
bec39cab
AC
16520else
16521 echo "$as_me: failed program was:" >&5
16522sed 's/^/| /' conftest.$ac_ext >&5
16523
b4e70030 16524ac_cv_type_u_int64_t=no
4e8d927d 16525fi
4e8d927d
DJ
16526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16527fi
b4e70030
JB
16528echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16529echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
16530
16531 break
16532 done
16533fi
16534if test "$acx_cv_header_stdint" = stddef.h; then
16535 acx_cv_header_stdint_kind="(using manual detection)"
16536fi
16537
16538test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16539test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16540test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16541test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16542test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16543
16544# ----------------- Summarize what we found so far
16545
b4e70030
JB
16546echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
16547echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 16548
b4e70030 16549case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
16550$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
16551 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
16552 Xgdb_stdint.h : 'X\(/\)$' \| \
16553 . : '\(.\)' 2>/dev/null ||
4e8d927d 16554echo X/gdb_stdint.h |
b4e70030
JB
16555 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16556 /^X\/\(\/\/\)$/{ s//\1/; q; }
16557 /^X\/\(\/\).*/{ s//\1/; q; }
16558 s/.*/./; q'` in
4e8d927d
DJ
16559 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16560echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16561 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16562echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16563 *) ;;
16564esac
16565
b4e70030
JB
16566echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16567echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
16568
16569# ----------------- done included file, check C basic types --------
16570
16571# Lacking an uintptr_t? Test size of void *
16572case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
16573 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
16574echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
16575if test "${ac_cv_type_void_p+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577else
16578 cat >conftest.$ac_ext <<_ACEOF
a3828db0 16579/* confdefs.h. */
bec39cab
AC
16580_ACEOF
16581cat confdefs.h >>conftest.$ac_ext
16582cat >>conftest.$ac_ext <<_ACEOF
16583/* end confdefs.h. */
a3828db0 16584$ac_includes_default
bec39cab
AC
16585int
16586main ()
16587{
b4e70030 16588if ((void * *) 0)
4e8d927d 16589 return 0;
b4e70030 16590if (sizeof (void *))
4e8d927d 16591 return 0;
bec39cab
AC
16592 ;
16593 return 0;
16594}
16595_ACEOF
a3828db0
MK
16596rm -f conftest.$ac_objext
16597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16598 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
b4e70030
JB
16605 { ac_try='test -z "$ac_c_werror_flag"
16606 || test ! -s conftest.err'
bec39cab
AC
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; } &&
a3828db0 16612 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
4e8d927d 16618 ac_cv_type_void_p=yes
46711df8 16619else
bec39cab
AC
16620 echo "$as_me: failed program was:" >&5
16621sed 's/^/| /' conftest.$ac_ext >&5
16622
b4e70030 16623ac_cv_type_void_p=no
a3828db0 16624fi
4e8d927d 16625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 16626fi
b4e70030
JB
16627echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16628echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 16629
b4e70030
JB
16630echo "$as_me:$LINENO: checking size of void *" >&5
16631echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 16632if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634else
4e8d927d 16635 if test "$ac_cv_type_void_p" = yes; then
b4e70030 16636 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
16637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16639 # This bug is HP SR number 8606223364.
16640 if test "$cross_compiling" = yes; then
16641 # Depending upon the size, compute the lo and hi bounds.
16642cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
16643/* confdefs.h. */
16644_ACEOF
16645cat confdefs.h >>conftest.$ac_ext
16646cat >>conftest.$ac_ext <<_ACEOF
16647/* end confdefs.h. */
16648$ac_includes_default
16649int
16650main ()
16651{
b4e70030 16652static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
16653test_array [0] = 0
16654
d3ea6809
MM
16655 ;
16656 return 0;
16657}
16658_ACEOF
16659rm -f conftest.$ac_objext
16660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16661 (eval $ac_compile) 2>conftest.er1
16662 ac_status=$?
16663 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1
16665 cat conftest.err >&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
b4e70030
JB
16668 { ac_try='test -z "$ac_c_werror_flag"
16669 || test ! -s conftest.err'
d3ea6809
MM
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } &&
16675 { ac_try='test -s conftest.$ac_objext'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; }; then
4e8d927d
DJ
16681 ac_lo=0 ac_mid=0
16682 while :; do
16683 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
16684/* confdefs.h. */
16685_ACEOF
16686cat confdefs.h >>conftest.$ac_ext
16687cat >>conftest.$ac_ext <<_ACEOF
16688/* end confdefs.h. */
16689$ac_includes_default
16690int
16691main ()
16692{
b4e70030 16693static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
16694test_array [0] = 0
16695
d3ea6809
MM
16696 ;
16697 return 0;
16698}
16699_ACEOF
16700rm -f conftest.$ac_objext
16701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702 (eval $ac_compile) 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
b4e70030
JB
16709 { ac_try='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
d3ea6809
MM
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
4e8d927d 16722 ac_hi=$ac_mid; break
d3ea6809
MM
16723else
16724 echo "$as_me: failed program was:" >&5
16725sed 's/^/| /' conftest.$ac_ext >&5
16726
b4e70030
JB
16727ac_lo=`expr $ac_mid + 1`
16728 if test $ac_lo -le $ac_mid; then
16729 ac_lo= ac_hi=
16730 break
16731 fi
16732 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 16733fi
4e8d927d
DJ
16734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16735 done
bec39cab 16736else
4e8d927d
DJ
16737 echo "$as_me: failed program was:" >&5
16738sed 's/^/| /' conftest.$ac_ext >&5
16739
b4e70030 16740cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16741/* confdefs.h. */
16742_ACEOF
16743cat confdefs.h >>conftest.$ac_ext
16744cat >>conftest.$ac_ext <<_ACEOF
16745/* end confdefs.h. */
4e8d927d 16746$ac_includes_default
bec39cab
AC
16747int
16748main ()
16749{
b4e70030 16750static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
16751test_array [0] = 0
16752
bec39cab
AC
16753 ;
16754 return 0;
16755}
16756_ACEOF
a3828db0
MK
16757rm -f conftest.$ac_objext
16758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16759 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16760 ac_status=$?
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
b4e70030
JB
16766 { ac_try='test -z "$ac_c_werror_flag"
16767 || test ! -s conftest.err'
bec39cab
AC
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; } &&
a3828db0 16773 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
4e8d927d
DJ
16779 ac_hi=-1 ac_mid=-1
16780 while :; do
16781 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
16782/* confdefs.h. */
16783_ACEOF
16784cat confdefs.h >>conftest.$ac_ext
16785cat >>conftest.$ac_ext <<_ACEOF
16786/* end confdefs.h. */
4e8d927d 16787$ac_includes_default
f9f87d2c
MK
16788int
16789main ()
16790{
b4e70030 16791static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
16792test_array [0] = 0
16793
f9f87d2c
MK
16794 ;
16795 return 0;
16796}
16797_ACEOF
16798rm -f conftest.$ac_objext
16799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16800 (eval $ac_compile) 2>conftest.er1
16801 ac_status=$?
16802 grep -v '^ *+' conftest.er1 >conftest.err
16803 rm -f conftest.er1
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } &&
b4e70030
JB
16807 { ac_try='test -z "$ac_c_werror_flag"
16808 || test ! -s conftest.err'
f9f87d2c
MK
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest.$ac_objext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
4e8d927d 16820 ac_lo=$ac_mid; break
f9f87d2c
MK
16821else
16822 echo "$as_me: failed program was:" >&5
16823sed 's/^/| /' conftest.$ac_ext >&5
16824
b4e70030
JB
16825ac_hi=`expr '(' $ac_mid ')' - 1`
16826 if test $ac_mid -le $ac_hi; then
16827 ac_lo= ac_hi=
16828 break
16829 fi
16830 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 16831fi
4e8d927d
DJ
16832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16833 done
16834else
16835 echo "$as_me: failed program was:" >&5
16836sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 16837
b4e70030 16838ac_lo= ac_hi=
4e8d927d 16839fi
4e8d927d 16840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 16841fi
4e8d927d
DJ
16842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16843# Binary search between lo and hi bounds.
16844while test "x$ac_lo" != "x$ac_hi"; do
16845 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
16846 cat >conftest.$ac_ext <<_ACEOF
16847/* confdefs.h. */
16848_ACEOF
16849cat confdefs.h >>conftest.$ac_ext
16850cat >>conftest.$ac_ext <<_ACEOF
16851/* end confdefs.h. */
4e8d927d 16852$ac_includes_default
3be60c3d
MK
16853int
16854main ()
16855{
b4e70030 16856static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
16857test_array [0] = 0
16858
3be60c3d
MK
16859 ;
16860 return 0;
16861}
16862_ACEOF
16863rm -f conftest.$ac_objext
16864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16865 (eval $ac_compile) 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } &&
b4e70030
JB
16872 { ac_try='test -z "$ac_c_werror_flag"
16873 || test ! -s conftest.err'
3be60c3d
MK
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; } &&
16879 { ac_try='test -s conftest.$ac_objext'
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
4e8d927d 16885 ac_hi=$ac_mid
3be60c3d
MK
16886else
16887 echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
b4e70030 16890ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 16891fi
4e8d927d
DJ
16892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16893done
16894case $ac_lo in
16895?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 16896'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 16897See \`config.log' for more details." >&5
b4e70030 16898echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 16899See \`config.log' for more details." >&2;}
b4e70030 16900 { (exit 1); exit 1; }; } ;;
4e8d927d 16901esac
b4e70030
JB
16902else
16903 if test "$cross_compiling" = yes; then
16904 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16905See \`config.log' for more details." >&5
16906echo "$as_me: error: cannot run test program while cross compiling
16907See \`config.log' for more details." >&2;}
16908 { (exit 1); exit 1; }; }
4e8d927d
DJ
16909else
16910 cat >conftest.$ac_ext <<_ACEOF
16911/* confdefs.h. */
3be60c3d 16912_ACEOF
4e8d927d
DJ
16913cat confdefs.h >>conftest.$ac_ext
16914cat >>conftest.$ac_ext <<_ACEOF
16915/* end confdefs.h. */
16916$ac_includes_default
b4e70030
JB
16917long longval () { return (long) (sizeof (void *)); }
16918unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
16919#include <stdio.h>
16920#include <stdlib.h>
16921int
16922main ()
16923{
16924
16925 FILE *f = fopen ("conftest.val", "w");
16926 if (! f)
b4e70030
JB
16927 exit (1);
16928 if (((long) (sizeof (void *))) < 0)
4e8d927d 16929 {
b4e70030
JB
16930 long i = longval ();
16931 if (i != ((long) (sizeof (void *))))
16932 exit (1);
4e8d927d
DJ
16933 fprintf (f, "%ld\n", i);
16934 }
16935 else
16936 {
b4e70030
JB
16937 unsigned long i = ulongval ();
16938 if (i != ((long) (sizeof (void *))))
16939 exit (1);
4e8d927d
DJ
16940 fprintf (f, "%lu\n", i);
16941 }
b4e70030 16942 exit (ferror (f) || fclose (f) != 0);
3be60c3d 16943
4e8d927d
DJ
16944 ;
16945 return 0;
16946}
16947_ACEOF
16948rm -f conftest$ac_exeext
16949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16950 (eval $ac_link) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_sizeof_void_p=`cat conftest.val`
16960else
16961 echo "$as_me: program exited with status $ac_status" >&5
16962echo "$as_me: failed program was:" >&5
16963sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 16964
4e8d927d 16965( exit $ac_status )
b4e70030 16966{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 16967See \`config.log' for more details." >&5
b4e70030 16968echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 16969See \`config.log' for more details." >&2;}
b4e70030
JB
16970 { (exit 1); exit 1; }; }
16971fi
16972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 16973fi
4e8d927d
DJ
16974fi
16975rm -f conftest.val
16976else
16977 ac_cv_sizeof_void_p=0
16978fi
16979fi
b4e70030
JB
16980echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16981echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
16982cat >>confdefs.h <<_ACEOF
16983#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16984_ACEOF
f9f87d2c 16985
4e8d927d
DJ
16986 ;;
16987esac
46711df8 16988
4e8d927d
DJ
16989# Lacking an uint64_t? Test size of long
16990case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
16991 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
16992echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 16993if test "${ac_cv_type_long+set}" = set; then
bec39cab 16994 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 16995else
bec39cab
AC
16996 cat >conftest.$ac_ext <<_ACEOF
16997/* confdefs.h. */
16998_ACEOF
16999cat confdefs.h >>conftest.$ac_ext
17000cat >>conftest.$ac_ext <<_ACEOF
17001/* end confdefs.h. */
4e8d927d 17002$ac_includes_default
bec39cab 17003int
46711df8
MK
17004main ()
17005{
b4e70030 17006if ((long *) 0)
4e8d927d 17007 return 0;
b4e70030 17008if (sizeof (long))
4e8d927d 17009 return 0;
a3828db0
MK
17010 ;
17011 return 0;
46711df8 17012}
bec39cab 17013_ACEOF
a3828db0
MK
17014rm -f conftest.$ac_objext
17015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>conftest.er1
17017 ac_status=$?
17018 grep -v '^ *+' conftest.er1 >conftest.err
17019 rm -f conftest.er1
17020 cat conftest.err >&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
b4e70030
JB
17023 { ac_try='test -z "$ac_c_werror_flag"
17024 || test ! -s conftest.err'
a3828db0
MK
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
bec39cab
AC
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
4e8d927d 17036 ac_cv_type_long=yes
46711df8 17037else
a3828db0 17038 echo "$as_me: failed program was:" >&5
bec39cab
AC
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
b4e70030 17041ac_cv_type_long=no
46711df8 17042fi
4e8d927d 17043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 17044fi
b4e70030
JB
17045echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17046echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 17047
b4e70030
JB
17048echo "$as_me:$LINENO: checking size of long" >&5
17049echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 17050if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 17051 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 17052else
4e8d927d 17053 if test "$ac_cv_type_long" = yes; then
b4e70030 17054 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
17055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17057 # This bug is HP SR number 8606223364.
17058 if test "$cross_compiling" = yes; then
17059 # Depending upon the size, compute the lo and hi bounds.
17060cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17061/* confdefs.h. */
17062_ACEOF
17063cat confdefs.h >>conftest.$ac_ext
17064cat >>conftest.$ac_ext <<_ACEOF
17065/* end confdefs.h. */
4e8d927d 17066$ac_includes_default
4e8d927d
DJ
17067int
17068main ()
17069{
b4e70030 17070static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 17071test_array [0] = 0
a3828db0 17072
4e8d927d
DJ
17073 ;
17074 return 0;
17075}
bec39cab
AC
17076_ACEOF
17077rm -f conftest.$ac_objext
17078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17079 (eval $ac_compile) 2>conftest.er1
17080 ac_status=$?
17081 grep -v '^ *+' conftest.er1 >conftest.err
17082 rm -f conftest.er1
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
b4e70030
JB
17086 { ac_try='test -z "$ac_c_werror_flag"
17087 || test ! -s conftest.err'
bec39cab
AC
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest.$ac_objext'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
4e8d927d
DJ
17099 ac_lo=0 ac_mid=0
17100 while :; do
17101 cat >conftest.$ac_ext <<_ACEOF
17102/* confdefs.h. */
17103_ACEOF
17104cat confdefs.h >>conftest.$ac_ext
17105cat >>conftest.$ac_ext <<_ACEOF
17106/* end confdefs.h. */
17107$ac_includes_default
4e8d927d
DJ
17108int
17109main ()
17110{
b4e70030 17111static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
17112test_array [0] = 0
17113
17114 ;
17115 return 0;
17116}
17117_ACEOF
17118rm -f conftest.$ac_objext
17119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
b4e70030
JB
17127 { ac_try='test -z "$ac_c_werror_flag"
17128 || test ! -s conftest.err'
4e8d927d
DJ
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; } &&
17134 { ac_try='test -s conftest.$ac_objext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 ac_hi=$ac_mid; break
17141else
17142 echo "$as_me: failed program was:" >&5
17143sed 's/^/| /' conftest.$ac_ext >&5
17144
b4e70030
JB
17145ac_lo=`expr $ac_mid + 1`
17146 if test $ac_lo -le $ac_mid; then
17147 ac_lo= ac_hi=
17148 break
17149 fi
17150 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 17151fi
4e8d927d
DJ
17152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17153 done
17154else
17155 echo "$as_me: failed program was:" >&5
17156sed 's/^/| /' conftest.$ac_ext >&5
17157
b4e70030 17158cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17159/* confdefs.h. */
17160_ACEOF
17161cat confdefs.h >>conftest.$ac_ext
17162cat >>conftest.$ac_ext <<_ACEOF
17163/* end confdefs.h. */
17164$ac_includes_default
4e8d927d
DJ
17165int
17166main ()
17167{
b4e70030 17168static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
17169test_array [0] = 0
17170
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext
17176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17177 (eval $ac_compile) 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
b4e70030
JB
17184 { ac_try='test -z "$ac_c_werror_flag"
17185 || test ! -s conftest.err'
4e8d927d
DJ
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } &&
17191 { ac_try='test -s conftest.$ac_objext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 ac_hi=-1 ac_mid=-1
17198 while :; do
17199 cat >conftest.$ac_ext <<_ACEOF
17200/* confdefs.h. */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h. */
17205$ac_includes_default
4e8d927d
DJ
17206int
17207main ()
17208{
b4e70030 17209static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
17210test_array [0] = 0
17211
17212 ;
17213 return 0;
17214}
17215_ACEOF
17216rm -f conftest.$ac_objext
17217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17218 (eval $ac_compile) 2>conftest.er1
17219 ac_status=$?
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
b4e70030
JB
17225 { ac_try='test -z "$ac_c_werror_flag"
17226 || test ! -s conftest.err'
4e8d927d
DJ
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest.$ac_objext'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 ac_lo=$ac_mid; break
17239else
17240 echo "$as_me: failed program was:" >&5
17241sed 's/^/| /' conftest.$ac_ext >&5
17242
b4e70030
JB
17243ac_hi=`expr '(' $ac_mid ')' - 1`
17244 if test $ac_mid -le $ac_hi; then
17245 ac_lo= ac_hi=
17246 break
17247 fi
17248 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 17249fi
4e8d927d
DJ
17250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17251 done
17252else
17253 echo "$as_me: failed program was:" >&5
17254sed 's/^/| /' conftest.$ac_ext >&5
17255
b4e70030 17256ac_lo= ac_hi=
4e8d927d 17257fi
4e8d927d
DJ
17258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17259fi
4e8d927d
DJ
17260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17261# Binary search between lo and hi bounds.
17262while test "x$ac_lo" != "x$ac_hi"; do
17263 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17264 cat >conftest.$ac_ext <<_ACEOF
17265/* confdefs.h. */
17266_ACEOF
17267cat confdefs.h >>conftest.$ac_ext
17268cat >>conftest.$ac_ext <<_ACEOF
17269/* end confdefs.h. */
17270$ac_includes_default
4e8d927d
DJ
17271int
17272main ()
17273{
b4e70030 17274static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
17275test_array [0] = 0
17276
17277 ;
17278 return 0;
17279}
17280_ACEOF
17281rm -f conftest.$ac_objext
17282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17283 (eval $ac_compile) 2>conftest.er1
17284 ac_status=$?
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } &&
b4e70030
JB
17290 { ac_try='test -z "$ac_c_werror_flag"
17291 || test ! -s conftest.err'
4e8d927d
DJ
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; } &&
17297 { ac_try='test -s conftest.$ac_objext'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_hi=$ac_mid
17304else
17305 echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
b4e70030 17308ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 17309fi
4e8d927d
DJ
17310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17311done
17312case $ac_lo in
17313?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 17314'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 17315See \`config.log' for more details." >&5
b4e70030 17316echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 17317See \`config.log' for more details." >&2;}
b4e70030 17318 { (exit 1); exit 1; }; } ;;
4e8d927d 17319esac
b4e70030
JB
17320else
17321 if test "$cross_compiling" = yes; then
17322 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17323See \`config.log' for more details." >&5
17324echo "$as_me: error: cannot run test program while cross compiling
17325See \`config.log' for more details." >&2;}
17326 { (exit 1); exit 1; }; }
4e8d927d
DJ
17327else
17328 cat >conftest.$ac_ext <<_ACEOF
17329/* confdefs.h. */
17330_ACEOF
17331cat confdefs.h >>conftest.$ac_ext
17332cat >>conftest.$ac_ext <<_ACEOF
17333/* end confdefs.h. */
17334$ac_includes_default
b4e70030
JB
17335long longval () { return (long) (sizeof (long)); }
17336unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
17337#include <stdio.h>
17338#include <stdlib.h>
17339int
17340main ()
17341{
17342
17343 FILE *f = fopen ("conftest.val", "w");
17344 if (! f)
b4e70030
JB
17345 exit (1);
17346 if (((long) (sizeof (long))) < 0)
4e8d927d 17347 {
b4e70030
JB
17348 long i = longval ();
17349 if (i != ((long) (sizeof (long))))
17350 exit (1);
4e8d927d
DJ
17351 fprintf (f, "%ld\n", i);
17352 }
17353 else
17354 {
b4e70030
JB
17355 unsigned long i = ulongval ();
17356 if (i != ((long) (sizeof (long))))
17357 exit (1);
4e8d927d
DJ
17358 fprintf (f, "%lu\n", i);
17359 }
b4e70030 17360 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
17361
17362 ;
17363 return 0;
17364}
17365_ACEOF
17366rm -f conftest$ac_exeext
17367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17368 (eval $ac_link) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_cv_sizeof_long=`cat conftest.val`
17378else
17379 echo "$as_me: program exited with status $ac_status" >&5
17380echo "$as_me: failed program was:" >&5
17381sed 's/^/| /' conftest.$ac_ext >&5
17382
17383( exit $ac_status )
b4e70030 17384{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 17385See \`config.log' for more details." >&5
b4e70030 17386echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 17387See \`config.log' for more details." >&2;}
b4e70030
JB
17388 { (exit 1); exit 1; }; }
17389fi
17390rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 17391fi
4e8d927d
DJ
17392fi
17393rm -f conftest.val
17394else
17395 ac_cv_sizeof_long=0
17396fi
17397fi
b4e70030
JB
17398echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17399echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
17400cat >>confdefs.h <<_ACEOF
17401#define SIZEOF_LONG $ac_cv_sizeof_long
17402_ACEOF
17403
17404 ;;
17405esac
17406
17407if test $acx_cv_header_stdint = stddef.h; then
17408 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
17409 echo "$as_me:$LINENO: checking for int" >&5
17410echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
17411if test "${ac_cv_type_int+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17413else
17414 cat >conftest.$ac_ext <<_ACEOF
17415/* confdefs.h. */
17416_ACEOF
17417cat confdefs.h >>conftest.$ac_ext
17418cat >>conftest.$ac_ext <<_ACEOF
17419/* end confdefs.h. */
17420$ac_includes_default
4e8d927d
DJ
17421int
17422main ()
17423{
b4e70030 17424if ((int *) 0)
4e8d927d 17425 return 0;
b4e70030 17426if (sizeof (int))
4e8d927d
DJ
17427 return 0;
17428 ;
17429 return 0;
17430}
17431_ACEOF
17432rm -f conftest.$ac_objext
17433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17434 (eval $ac_compile) 2>conftest.er1
17435 ac_status=$?
17436 grep -v '^ *+' conftest.er1 >conftest.err
17437 rm -f conftest.er1
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
b4e70030
JB
17441 { ac_try='test -z "$ac_c_werror_flag"
17442 || test ! -s conftest.err'
4e8d927d
DJ
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try='test -s conftest.$ac_objext'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_type_int=yes
17455else
17456 echo "$as_me: failed program was:" >&5
17457sed 's/^/| /' conftest.$ac_ext >&5
17458
b4e70030 17459ac_cv_type_int=no
4e8d927d 17460fi
4e8d927d
DJ
17461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17462fi
b4e70030
JB
17463echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17464echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 17465
b4e70030
JB
17466echo "$as_me:$LINENO: checking size of int" >&5
17467echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
17468if test "${ac_cv_sizeof_int+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17470else
17471 if test "$ac_cv_type_int" = yes; then
b4e70030 17472 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
17473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17475 # This bug is HP SR number 8606223364.
17476 if test "$cross_compiling" = yes; then
17477 # Depending upon the size, compute the lo and hi bounds.
17478cat >conftest.$ac_ext <<_ACEOF
17479/* confdefs.h. */
17480_ACEOF
17481cat confdefs.h >>conftest.$ac_ext
17482cat >>conftest.$ac_ext <<_ACEOF
17483/* end confdefs.h. */
17484$ac_includes_default
4e8d927d
DJ
17485int
17486main ()
17487{
b4e70030 17488static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
17489test_array [0] = 0
17490
17491 ;
17492 return 0;
17493}
17494_ACEOF
17495rm -f conftest.$ac_objext
17496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17497 (eval $ac_compile) 2>conftest.er1
17498 ac_status=$?
17499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
b4e70030
JB
17504 { ac_try='test -z "$ac_c_werror_flag"
17505 || test ! -s conftest.err'
4e8d927d
DJ
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest.$ac_objext'
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_lo=0 ac_mid=0
17518 while :; do
17519 cat >conftest.$ac_ext <<_ACEOF
17520/* confdefs.h. */
17521_ACEOF
17522cat confdefs.h >>conftest.$ac_ext
17523cat >>conftest.$ac_ext <<_ACEOF
17524/* end confdefs.h. */
17525$ac_includes_default
4e8d927d
DJ
17526int
17527main ()
17528{
b4e70030 17529static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
17530test_array [0] = 0
17531
17532 ;
17533 return 0;
17534}
17535_ACEOF
17536rm -f conftest.$ac_objext
17537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17538 (eval $ac_compile) 2>conftest.er1
17539 ac_status=$?
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
b4e70030
JB
17545 { ac_try='test -z "$ac_c_werror_flag"
17546 || test ! -s conftest.err'
4e8d927d
DJ
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest.$ac_objext'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_hi=$ac_mid; break
17559else
17560 echo "$as_me: failed program was:" >&5
17561sed 's/^/| /' conftest.$ac_ext >&5
17562
b4e70030
JB
17563ac_lo=`expr $ac_mid + 1`
17564 if test $ac_lo -le $ac_mid; then
17565 ac_lo= ac_hi=
17566 break
17567 fi
17568 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 17569fi
4e8d927d
DJ
17570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17571 done
17572else
17573 echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
b4e70030 17576cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17577/* confdefs.h. */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>conftest.$ac_ext <<_ACEOF
17581/* end confdefs.h. */
17582$ac_includes_default
4e8d927d
DJ
17583int
17584main ()
17585{
b4e70030 17586static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
17587test_array [0] = 0
17588
17589 ;
17590 return 0;
17591}
17592_ACEOF
17593rm -f conftest.$ac_objext
17594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595 (eval $ac_compile) 2>conftest.er1
17596 ac_status=$?
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
b4e70030
JB
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
4e8d927d
DJ
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest.$ac_objext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_hi=-1 ac_mid=-1
17616 while :; do
17617 cat >conftest.$ac_ext <<_ACEOF
17618/* confdefs.h. */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h. */
17623$ac_includes_default
4e8d927d
DJ
17624int
17625main ()
17626{
b4e70030 17627static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
17628test_array [0] = 0
17629
17630 ;
17631 return 0;
17632}
17633_ACEOF
17634rm -f conftest.$ac_objext
17635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636 (eval $ac_compile) 2>conftest.er1
17637 ac_status=$?
17638 grep -v '^ *+' conftest.er1 >conftest.err
17639 rm -f conftest.er1
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
b4e70030
JB
17643 { ac_try='test -z "$ac_c_werror_flag"
17644 || test ! -s conftest.err'
4e8d927d
DJ
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; } &&
17650 { ac_try='test -s conftest.$ac_objext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 ac_lo=$ac_mid; break
17657else
17658 echo "$as_me: failed program was:" >&5
17659sed 's/^/| /' conftest.$ac_ext >&5
17660
b4e70030
JB
17661ac_hi=`expr '(' $ac_mid ')' - 1`
17662 if test $ac_mid -le $ac_hi; then
17663 ac_lo= ac_hi=
17664 break
17665 fi
17666 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 17667fi
4e8d927d
DJ
17668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17669 done
17670else
17671 echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
b4e70030 17674ac_lo= ac_hi=
4e8d927d 17675fi
4e8d927d
DJ
17676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17677fi
4e8d927d
DJ
17678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17679# Binary search between lo and hi bounds.
17680while test "x$ac_lo" != "x$ac_hi"; do
17681 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17682 cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688$ac_includes_default
4e8d927d
DJ
17689int
17690main ()
17691{
b4e70030 17692static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
17693test_array [0] = 0
17694
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'
4e8d927d
DJ
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
17721 ac_hi=$ac_mid
17722else
17723 echo "$as_me: failed program was:" >&5
17724sed 's/^/| /' conftest.$ac_ext >&5
17725
b4e70030 17726ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 17727fi
4e8d927d
DJ
17728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17729done
17730case $ac_lo in
17731?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 17732'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 17733See \`config.log' for more details." >&5
b4e70030 17734echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 17735See \`config.log' for more details." >&2;}
b4e70030 17736 { (exit 1); exit 1; }; } ;;
4e8d927d 17737esac
b4e70030
JB
17738else
17739 if test "$cross_compiling" = yes; then
17740 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17741See \`config.log' for more details." >&5
17742echo "$as_me: error: cannot run test program while cross compiling
17743See \`config.log' for more details." >&2;}
17744 { (exit 1); exit 1; }; }
4e8d927d
DJ
17745else
17746 cat >conftest.$ac_ext <<_ACEOF
17747/* confdefs.h. */
17748_ACEOF
17749cat confdefs.h >>conftest.$ac_ext
17750cat >>conftest.$ac_ext <<_ACEOF
17751/* end confdefs.h. */
17752$ac_includes_default
b4e70030
JB
17753long longval () { return (long) (sizeof (int)); }
17754unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
17755#include <stdio.h>
17756#include <stdlib.h>
17757int
17758main ()
17759{
17760
17761 FILE *f = fopen ("conftest.val", "w");
17762 if (! f)
b4e70030
JB
17763 exit (1);
17764 if (((long) (sizeof (int))) < 0)
4e8d927d 17765 {
b4e70030
JB
17766 long i = longval ();
17767 if (i != ((long) (sizeof (int))))
17768 exit (1);
4e8d927d
DJ
17769 fprintf (f, "%ld\n", i);
17770 }
17771 else
17772 {
b4e70030
JB
17773 unsigned long i = ulongval ();
17774 if (i != ((long) (sizeof (int))))
17775 exit (1);
4e8d927d
DJ
17776 fprintf (f, "%lu\n", i);
17777 }
b4e70030 17778 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
17779
17780 ;
17781 return 0;
17782}
17783_ACEOF
17784rm -f conftest$ac_exeext
17785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786 (eval $ac_link) 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ac_cv_sizeof_int=`cat conftest.val`
17796else
17797 echo "$as_me: program exited with status $ac_status" >&5
17798echo "$as_me: failed program was:" >&5
17799sed 's/^/| /' conftest.$ac_ext >&5
17800
17801( exit $ac_status )
b4e70030 17802{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 17803See \`config.log' for more details." >&5
b4e70030 17804echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 17805See \`config.log' for more details." >&2;}
b4e70030
JB
17806 { (exit 1); exit 1; }; }
17807fi
17808rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 17809fi
4e8d927d
DJ
17810fi
17811rm -f conftest.val
17812else
17813 ac_cv_sizeof_int=0
17814fi
17815fi
b4e70030
JB
17816echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17817echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
17818cat >>confdefs.h <<_ACEOF
17819#define SIZEOF_INT $ac_cv_sizeof_int
17820_ACEOF
17821
17822
b4e70030
JB
17823 echo "$as_me:$LINENO: checking for short" >&5
17824echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
17825if test "${ac_cv_type_short+set}" = set; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17827else
17828 cat >conftest.$ac_ext <<_ACEOF
17829/* confdefs.h. */
17830_ACEOF
17831cat confdefs.h >>conftest.$ac_ext
17832cat >>conftest.$ac_ext <<_ACEOF
17833/* end confdefs.h. */
17834$ac_includes_default
4e8d927d
DJ
17835int
17836main ()
17837{
b4e70030 17838if ((short *) 0)
4e8d927d 17839 return 0;
b4e70030 17840if (sizeof (short))
4e8d927d
DJ
17841 return 0;
17842 ;
17843 return 0;
17844}
17845_ACEOF
17846rm -f conftest.$ac_objext
17847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17848 (eval $ac_compile) 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
b4e70030
JB
17855 { ac_try='test -z "$ac_c_werror_flag"
17856 || test ! -s conftest.err'
4e8d927d
DJ
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest.$ac_objext'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_type_short=yes
17869else
17870 echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
b4e70030 17873ac_cv_type_short=no
4e8d927d 17874fi
4e8d927d
DJ
17875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17876fi
b4e70030
JB
17877echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17878echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 17879
b4e70030
JB
17880echo "$as_me:$LINENO: checking size of short" >&5
17881echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
17882if test "${ac_cv_sizeof_short+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17884else
17885 if test "$ac_cv_type_short" = yes; then
b4e70030 17886 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
17887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17889 # This bug is HP SR number 8606223364.
17890 if test "$cross_compiling" = yes; then
17891 # Depending upon the size, compute the lo and hi bounds.
17892cat >conftest.$ac_ext <<_ACEOF
17893/* confdefs.h. */
17894_ACEOF
17895cat confdefs.h >>conftest.$ac_ext
17896cat >>conftest.$ac_ext <<_ACEOF
17897/* end confdefs.h. */
17898$ac_includes_default
4e8d927d
DJ
17899int
17900main ()
17901{
b4e70030 17902static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
17903test_array [0] = 0
17904
17905 ;
17906 return 0;
17907}
17908_ACEOF
17909rm -f conftest.$ac_objext
17910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17911 (eval $ac_compile) 2>conftest.er1
17912 ac_status=$?
17913 grep -v '^ *+' conftest.er1 >conftest.err
17914 rm -f conftest.er1
17915 cat conftest.err >&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } &&
b4e70030
JB
17918 { ac_try='test -z "$ac_c_werror_flag"
17919 || test ! -s conftest.err'
4e8d927d
DJ
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try='test -s conftest.$ac_objext'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 ac_lo=0 ac_mid=0
17932 while :; do
17933 cat >conftest.$ac_ext <<_ACEOF
17934/* confdefs.h. */
17935_ACEOF
17936cat confdefs.h >>conftest.$ac_ext
17937cat >>conftest.$ac_ext <<_ACEOF
17938/* end confdefs.h. */
17939$ac_includes_default
4e8d927d
DJ
17940int
17941main ()
17942{
b4e70030 17943static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
17944test_array [0] = 0
17945
17946 ;
17947 return 0;
17948}
17949_ACEOF
17950rm -f conftest.$ac_objext
17951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17952 (eval $ac_compile) 2>conftest.er1
17953 ac_status=$?
17954 grep -v '^ *+' conftest.er1 >conftest.err
17955 rm -f conftest.er1
17956 cat conftest.err >&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } &&
b4e70030
JB
17959 { ac_try='test -z "$ac_c_werror_flag"
17960 || test ! -s conftest.err'
4e8d927d
DJ
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; } &&
17966 { ac_try='test -s conftest.$ac_objext'
17967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968 (eval $ac_try) 2>&5
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; }; then
17972 ac_hi=$ac_mid; break
17973else
17974 echo "$as_me: failed program was:" >&5
17975sed 's/^/| /' conftest.$ac_ext >&5
17976
b4e70030
JB
17977ac_lo=`expr $ac_mid + 1`
17978 if test $ac_lo -le $ac_mid; then
17979 ac_lo= ac_hi=
17980 break
17981 fi
17982 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 17983fi
4e8d927d
DJ
17984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17985 done
17986else
17987 echo "$as_me: failed program was:" >&5
17988sed 's/^/| /' conftest.$ac_ext >&5
17989
b4e70030 17990cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17991/* confdefs.h. */
17992_ACEOF
17993cat confdefs.h >>conftest.$ac_ext
17994cat >>conftest.$ac_ext <<_ACEOF
17995/* end confdefs.h. */
17996$ac_includes_default
4e8d927d
DJ
17997int
17998main ()
17999{
b4e70030 18000static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
18001test_array [0] = 0
18002
18003 ;
18004 return 0;
18005}
18006_ACEOF
18007rm -f conftest.$ac_objext
18008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18009 (eval $ac_compile) 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
b4e70030
JB
18016 { ac_try='test -z "$ac_c_werror_flag"
18017 || test ! -s conftest.err'
4e8d927d
DJ
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try='test -s conftest.$ac_objext'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_hi=-1 ac_mid=-1
18030 while :; do
18031 cat >conftest.$ac_ext <<_ACEOF
18032/* confdefs.h. */
18033_ACEOF
18034cat confdefs.h >>conftest.$ac_ext
18035cat >>conftest.$ac_ext <<_ACEOF
18036/* end confdefs.h. */
18037$ac_includes_default
4e8d927d
DJ
18038int
18039main ()
18040{
b4e70030 18041static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
18042test_array [0] = 0
18043
18044 ;
18045 return 0;
18046}
18047_ACEOF
18048rm -f conftest.$ac_objext
18049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18050 (eval $ac_compile) 2>conftest.er1
18051 ac_status=$?
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
b4e70030
JB
18057 { ac_try='test -z "$ac_c_werror_flag"
18058 || test ! -s conftest.err'
4e8d927d
DJ
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest.$ac_objext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_lo=$ac_mid; break
18071else
18072 echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
b4e70030
JB
18075ac_hi=`expr '(' $ac_mid ')' - 1`
18076 if test $ac_mid -le $ac_hi; then
18077 ac_lo= ac_hi=
18078 break
18079 fi
18080 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 18081fi
4e8d927d
DJ
18082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18083 done
18084else
18085 echo "$as_me: failed program was:" >&5
18086sed 's/^/| /' conftest.$ac_ext >&5
18087
b4e70030 18088ac_lo= ac_hi=
4e8d927d 18089fi
4e8d927d
DJ
18090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18091fi
4e8d927d
DJ
18092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18093# Binary search between lo and hi bounds.
18094while test "x$ac_lo" != "x$ac_hi"; do
18095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18096 cat >conftest.$ac_ext <<_ACEOF
18097/* confdefs.h. */
18098_ACEOF
18099cat confdefs.h >>conftest.$ac_ext
18100cat >>conftest.$ac_ext <<_ACEOF
18101/* end confdefs.h. */
18102$ac_includes_default
4e8d927d
DJ
18103int
18104main ()
18105{
b4e70030 18106static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
18107test_array [0] = 0
18108
18109 ;
18110 return 0;
18111}
18112_ACEOF
18113rm -f conftest.$ac_objext
18114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>conftest.er1
18116 ac_status=$?
18117 grep -v '^ *+' conftest.er1 >conftest.err
18118 rm -f conftest.er1
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } &&
b4e70030
JB
18122 { ac_try='test -z "$ac_c_werror_flag"
18123 || test ! -s conftest.err'
4e8d927d
DJ
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_hi=$ac_mid
18136else
18137 echo "$as_me: failed program was:" >&5
18138sed 's/^/| /' conftest.$ac_ext >&5
18139
b4e70030 18140ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 18141fi
4e8d927d
DJ
18142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18143done
18144case $ac_lo in
18145?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 18146'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 18147See \`config.log' for more details." >&5
b4e70030 18148echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 18149See \`config.log' for more details." >&2;}
b4e70030 18150 { (exit 1); exit 1; }; } ;;
4e8d927d 18151esac
b4e70030
JB
18152else
18153 if test "$cross_compiling" = yes; then
18154 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18155See \`config.log' for more details." >&5
18156echo "$as_me: error: cannot run test program while cross compiling
18157See \`config.log' for more details." >&2;}
18158 { (exit 1); exit 1; }; }
4e8d927d
DJ
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. */
18166$ac_includes_default
b4e70030
JB
18167long longval () { return (long) (sizeof (short)); }
18168unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
18169#include <stdio.h>
18170#include <stdlib.h>
18171int
18172main ()
18173{
18174
18175 FILE *f = fopen ("conftest.val", "w");
18176 if (! f)
b4e70030
JB
18177 exit (1);
18178 if (((long) (sizeof (short))) < 0)
4e8d927d 18179 {
b4e70030
JB
18180 long i = longval ();
18181 if (i != ((long) (sizeof (short))))
18182 exit (1);
4e8d927d
DJ
18183 fprintf (f, "%ld\n", i);
18184 }
18185 else
18186 {
b4e70030
JB
18187 unsigned long i = ulongval ();
18188 if (i != ((long) (sizeof (short))))
18189 exit (1);
4e8d927d
DJ
18190 fprintf (f, "%lu\n", i);
18191 }
b4e70030 18192 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
18193
18194 ;
18195 return 0;
18196}
18197_ACEOF
18198rm -f conftest$ac_exeext
18199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200 (eval $ac_link) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18206 ac_status=$?
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18209 ac_cv_sizeof_short=`cat conftest.val`
18210else
18211 echo "$as_me: program exited with status $ac_status" >&5
18212echo "$as_me: failed program was:" >&5
18213sed 's/^/| /' conftest.$ac_ext >&5
18214
18215( exit $ac_status )
b4e70030 18216{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 18217See \`config.log' for more details." >&5
b4e70030 18218echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 18219See \`config.log' for more details." >&2;}
b4e70030
JB
18220 { (exit 1); exit 1; }; }
18221fi
18222rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 18223fi
4e8d927d
DJ
18224fi
18225rm -f conftest.val
18226else
18227 ac_cv_sizeof_short=0
18228fi
18229fi
b4e70030
JB
18230echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18231echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
18232cat >>confdefs.h <<_ACEOF
18233#define SIZEOF_SHORT $ac_cv_sizeof_short
18234_ACEOF
18235
18236
b4e70030
JB
18237 echo "$as_me:$LINENO: checking for char" >&5
18238echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
18239if test "${ac_cv_type_char+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241else
18242 cat >conftest.$ac_ext <<_ACEOF
18243/* confdefs.h. */
18244_ACEOF
18245cat confdefs.h >>conftest.$ac_ext
18246cat >>conftest.$ac_ext <<_ACEOF
18247/* end confdefs.h. */
18248$ac_includes_default
4e8d927d
DJ
18249int
18250main ()
18251{
b4e70030 18252if ((char *) 0)
4e8d927d 18253 return 0;
b4e70030 18254if (sizeof (char))
4e8d927d
DJ
18255 return 0;
18256 ;
18257 return 0;
18258}
18259_ACEOF
18260rm -f conftest.$ac_objext
18261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18262 (eval $ac_compile) 2>conftest.er1
18263 ac_status=$?
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
b4e70030
JB
18269 { ac_try='test -z "$ac_c_werror_flag"
18270 || test ! -s conftest.err'
4e8d927d
DJ
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest.$ac_objext'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
18282 ac_cv_type_char=yes
18283else
18284 echo "$as_me: failed program was:" >&5
18285sed 's/^/| /' conftest.$ac_ext >&5
18286
b4e70030 18287ac_cv_type_char=no
4e8d927d 18288fi
4e8d927d
DJ
18289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18290fi
b4e70030
JB
18291echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18292echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 18293
b4e70030
JB
18294echo "$as_me:$LINENO: checking size of char" >&5
18295echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
18296if test "${ac_cv_sizeof_char+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298else
18299 if test "$ac_cv_type_char" = yes; then
b4e70030 18300 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
18301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18303 # This bug is HP SR number 8606223364.
18304 if test "$cross_compiling" = yes; then
18305 # Depending upon the size, compute the lo and hi bounds.
18306cat >conftest.$ac_ext <<_ACEOF
18307/* confdefs.h. */
18308_ACEOF
18309cat confdefs.h >>conftest.$ac_ext
18310cat >>conftest.$ac_ext <<_ACEOF
18311/* end confdefs.h. */
18312$ac_includes_default
4e8d927d
DJ
18313int
18314main ()
18315{
b4e70030 18316static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
18317test_array [0] = 0
18318
18319 ;
18320 return 0;
18321}
18322_ACEOF
18323rm -f conftest.$ac_objext
18324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325 (eval $ac_compile) 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
b4e70030
JB
18332 { ac_try='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
4e8d927d
DJ
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_lo=0 ac_mid=0
18346 while :; do
18347 cat >conftest.$ac_ext <<_ACEOF
18348/* confdefs.h. */
18349_ACEOF
18350cat confdefs.h >>conftest.$ac_ext
18351cat >>conftest.$ac_ext <<_ACEOF
18352/* end confdefs.h. */
18353$ac_includes_default
4e8d927d
DJ
18354int
18355main ()
18356{
b4e70030 18357static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
18358test_array [0] = 0
18359
18360 ;
18361 return 0;
18362}
18363_ACEOF
18364rm -f conftest.$ac_objext
18365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18366 (eval $ac_compile) 2>conftest.er1
18367 ac_status=$?
18368 grep -v '^ *+' conftest.er1 >conftest.err
18369 rm -f conftest.er1
18370 cat conftest.err >&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } &&
b4e70030
JB
18373 { ac_try='test -z "$ac_c_werror_flag"
18374 || test ! -s conftest.err'
4e8d927d
DJ
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; } &&
18380 { ac_try='test -s conftest.$ac_objext'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_hi=$ac_mid; break
18387else
18388 echo "$as_me: failed program was:" >&5
18389sed 's/^/| /' conftest.$ac_ext >&5
18390
b4e70030
JB
18391ac_lo=`expr $ac_mid + 1`
18392 if test $ac_lo -le $ac_mid; then
18393 ac_lo= ac_hi=
18394 break
18395 fi
18396 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 18397fi
4e8d927d
DJ
18398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18399 done
18400else
18401 echo "$as_me: failed program was:" >&5
18402sed 's/^/| /' conftest.$ac_ext >&5
18403
b4e70030 18404cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
18405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
18410$ac_includes_default
4e8d927d
DJ
18411int
18412main ()
18413{
b4e70030 18414static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
18415test_array [0] = 0
18416
18417 ;
18418 return 0;
18419}
18420_ACEOF
18421rm -f conftest.$ac_objext
18422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18423 (eval $ac_compile) 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
b4e70030
JB
18430 { ac_try='test -z "$ac_c_werror_flag"
18431 || test ! -s conftest.err'
4e8d927d
DJ
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest.$ac_objext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_hi=-1 ac_mid=-1
18444 while :; do
18445 cat >conftest.$ac_ext <<_ACEOF
18446/* confdefs.h. */
18447_ACEOF
18448cat confdefs.h >>conftest.$ac_ext
18449cat >>conftest.$ac_ext <<_ACEOF
18450/* end confdefs.h. */
18451$ac_includes_default
4e8d927d
DJ
18452int
18453main ()
18454{
b4e70030 18455static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
18456test_array [0] = 0
18457
18458 ;
18459 return 0;
18460}
18461_ACEOF
18462rm -f conftest.$ac_objext
18463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18464 (eval $ac_compile) 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
b4e70030
JB
18471 { ac_try='test -z "$ac_c_werror_flag"
18472 || test ! -s conftest.err'
4e8d927d
DJ
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18484 ac_lo=$ac_mid; break
18485else
18486 echo "$as_me: failed program was:" >&5
18487sed 's/^/| /' conftest.$ac_ext >&5
18488
b4e70030
JB
18489ac_hi=`expr '(' $ac_mid ')' - 1`
18490 if test $ac_mid -le $ac_hi; then
18491 ac_lo= ac_hi=
18492 break
18493 fi
18494 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 18495fi
4e8d927d
DJ
18496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18497 done
18498else
18499 echo "$as_me: failed program was:" >&5
18500sed 's/^/| /' conftest.$ac_ext >&5
18501
b4e70030 18502ac_lo= ac_hi=
4e8d927d 18503fi
4e8d927d
DJ
18504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18505fi
4e8d927d
DJ
18506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18507# Binary search between lo and hi bounds.
18508while test "x$ac_lo" != "x$ac_hi"; do
18509 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18510 cat >conftest.$ac_ext <<_ACEOF
18511/* confdefs.h. */
18512_ACEOF
18513cat confdefs.h >>conftest.$ac_ext
18514cat >>conftest.$ac_ext <<_ACEOF
18515/* end confdefs.h. */
18516$ac_includes_default
4e8d927d
DJ
18517int
18518main ()
18519{
b4e70030 18520static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
18521test_array [0] = 0
18522
18523 ;
18524 return 0;
18525}
18526_ACEOF
18527rm -f conftest.$ac_objext
18528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18529 (eval $ac_compile) 2>conftest.er1
18530 ac_status=$?
18531 grep -v '^ *+' conftest.er1 >conftest.err
18532 rm -f conftest.er1
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
b4e70030
JB
18536 { ac_try='test -z "$ac_c_werror_flag"
18537 || test ! -s conftest.err'
4e8d927d
DJ
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; } &&
18543 { ac_try='test -s conftest.$ac_objext'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549 ac_hi=$ac_mid
18550else
18551 echo "$as_me: failed program was:" >&5
18552sed 's/^/| /' conftest.$ac_ext >&5
18553
b4e70030 18554ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 18555fi
4e8d927d
DJ
18556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18557done
18558case $ac_lo in
18559?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 18560'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 18561See \`config.log' for more details." >&5
b4e70030 18562echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 18563See \`config.log' for more details." >&2;}
b4e70030 18564 { (exit 1); exit 1; }; } ;;
4e8d927d 18565esac
b4e70030
JB
18566else
18567 if test "$cross_compiling" = yes; then
18568 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18569See \`config.log' for more details." >&5
18570echo "$as_me: error: cannot run test program while cross compiling
18571See \`config.log' for more details." >&2;}
18572 { (exit 1); exit 1; }; }
4e8d927d
DJ
18573else
18574 cat >conftest.$ac_ext <<_ACEOF
18575/* confdefs.h. */
18576_ACEOF
18577cat confdefs.h >>conftest.$ac_ext
18578cat >>conftest.$ac_ext <<_ACEOF
18579/* end confdefs.h. */
18580$ac_includes_default
b4e70030
JB
18581long longval () { return (long) (sizeof (char)); }
18582unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
18583#include <stdio.h>
18584#include <stdlib.h>
18585int
18586main ()
18587{
18588
18589 FILE *f = fopen ("conftest.val", "w");
18590 if (! f)
b4e70030
JB
18591 exit (1);
18592 if (((long) (sizeof (char))) < 0)
4e8d927d 18593 {
b4e70030
JB
18594 long i = longval ();
18595 if (i != ((long) (sizeof (char))))
18596 exit (1);
4e8d927d
DJ
18597 fprintf (f, "%ld\n", i);
18598 }
18599 else
18600 {
b4e70030
JB
18601 unsigned long i = ulongval ();
18602 if (i != ((long) (sizeof (char))))
18603 exit (1);
4e8d927d
DJ
18604 fprintf (f, "%lu\n", i);
18605 }
b4e70030 18606 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
18607
18608 ;
18609 return 0;
18610}
18611_ACEOF
18612rm -f conftest$ac_exeext
18613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614 (eval $ac_link) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_sizeof_char=`cat conftest.val`
18624else
18625 echo "$as_me: program exited with status $ac_status" >&5
18626echo "$as_me: failed program was:" >&5
18627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629( exit $ac_status )
b4e70030 18630{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 18631See \`config.log' for more details." >&5
b4e70030 18632echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 18633See \`config.log' for more details." >&2;}
b4e70030
JB
18634 { (exit 1); exit 1; }; }
18635fi
18636rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 18637fi
4e8d927d
DJ
18638fi
18639rm -f conftest.val
18640else
18641 ac_cv_sizeof_char=0
18642fi
18643fi
b4e70030
JB
18644echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18645echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
18646cat >>confdefs.h <<_ACEOF
18647#define SIZEOF_CHAR $ac_cv_sizeof_char
18648_ACEOF
18649
18650
18651
b4e70030
JB
18652 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
18653echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
18654 case "$ac_cv_sizeof_char" in
18655 1) acx_cv_type_int8_t=char ;;
18656 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
18657echo "$as_me: error: no 8-bit type" >&2;}
18658 { (exit please report a bug); exit please report a bug; }; }
18659 esac
b4e70030
JB
18660 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
18661echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 18662
b4e70030
JB
18663 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
18664echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
18665 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
18666 2:*) acx_cv_type_int16_t=int ;;
18667 *:2) acx_cv_type_int16_t=short ;;
18668 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
18669echo "$as_me: error: no 16-bit type" >&2;}
18670 { (exit please report a bug); exit please report a bug; }; }
18671 esac
b4e70030
JB
18672 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
18673echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 18674
b4e70030
JB
18675 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
18676echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
18677 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
18678 4:*) acx_cv_type_int32_t=int ;;
18679 *:4) acx_cv_type_int32_t=long ;;
18680 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
18681echo "$as_me: error: no 32-bit type" >&2;}
18682 { (exit please report a bug); exit please report a bug; }; }
18683 esac
b4e70030
JB
18684 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
18685echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
18686fi
18687
18688# These tests are here to make the output prettier
18689
18690if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
18691 case "$ac_cv_sizeof_long" in
18692 8) acx_cv_type_int64_t=long ;;
18693 esac
b4e70030
JB
18694 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
18695echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
18696 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
18697echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
18698fi
18699
18700# Now we can use the above types
18701
18702if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
18703 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
18704echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
18705 case $ac_cv_sizeof_void_p in
18706 2) acx_cv_type_intptr_t=int16_t ;;
18707 4) acx_cv_type_intptr_t=int32_t ;;
18708 8) acx_cv_type_intptr_t=int64_t ;;
18709 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
18710echo "$as_me: error: no equivalent for intptr_t" >&2;}
18711 { (exit please report a bug); exit please report a bug; }; }
18712 esac
b4e70030
JB
18713 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
18714echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
18715fi
18716
18717# ----------------- done all checks, emit header -------------
b4e70030 18718 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
18719
18720
18721
18722
18723# ------------------------- #
18724# Checks for declarations. #
18725# ------------------------- #
18726
b4e70030
JB
18727echo "$as_me:$LINENO: checking whether free is declared" >&5
18728echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
18729if test "${ac_cv_have_decl_free+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18731else
18732 cat >conftest.$ac_ext <<_ACEOF
18733/* confdefs.h. */
18734_ACEOF
18735cat confdefs.h >>conftest.$ac_ext
18736cat >>conftest.$ac_ext <<_ACEOF
18737/* end confdefs.h. */
18738$ac_includes_default
18739int
18740main ()
18741{
18742#ifndef free
18743 char *p = (char *) free;
4e8d927d
DJ
18744#endif
18745
18746 ;
18747 return 0;
18748}
18749_ACEOF
18750rm -f conftest.$ac_objext
18751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18752 (eval $ac_compile) 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
b4e70030
JB
18759 { ac_try='test -z "$ac_c_werror_flag"
18760 || test ! -s conftest.err'
4e8d927d
DJ
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest.$ac_objext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_have_decl_free=yes
18773else
18774 echo "$as_me: failed program was:" >&5
18775sed 's/^/| /' conftest.$ac_ext >&5
18776
b4e70030 18777ac_cv_have_decl_free=no
4e8d927d 18778fi
4e8d927d
DJ
18779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18780fi
b4e70030
JB
18781echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18782echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
18783if test $ac_cv_have_decl_free = yes; then
18784
18785cat >>confdefs.h <<_ACEOF
18786#define HAVE_DECL_FREE 1
18787_ACEOF
18788
18789
18790else
18791 cat >>confdefs.h <<_ACEOF
18792#define HAVE_DECL_FREE 0
18793_ACEOF
18794
18795
18796fi
b4e70030
JB
18797echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18798echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
18799if test "${ac_cv_have_decl_malloc+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801else
18802 cat >conftest.$ac_ext <<_ACEOF
18803/* confdefs.h. */
18804_ACEOF
18805cat confdefs.h >>conftest.$ac_ext
18806cat >>conftest.$ac_ext <<_ACEOF
18807/* end confdefs.h. */
18808$ac_includes_default
18809int
18810main ()
18811{
18812#ifndef malloc
18813 char *p = (char *) malloc;
4e8d927d
DJ
18814#endif
18815
18816 ;
18817 return 0;
18818}
18819_ACEOF
18820rm -f conftest.$ac_objext
18821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18822 (eval $ac_compile) 2>conftest.er1
18823 ac_status=$?
18824 grep -v '^ *+' conftest.er1 >conftest.err
18825 rm -f conftest.er1
18826 cat conftest.err >&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
b4e70030
JB
18829 { ac_try='test -z "$ac_c_werror_flag"
18830 || test ! -s conftest.err'
4e8d927d
DJ
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest.$ac_objext'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_cv_have_decl_malloc=yes
18843else
18844 echo "$as_me: failed program was:" >&5
18845sed 's/^/| /' conftest.$ac_ext >&5
18846
b4e70030 18847ac_cv_have_decl_malloc=no
4e8d927d 18848fi
4e8d927d
DJ
18849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18850fi
b4e70030
JB
18851echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18852echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
18853if test $ac_cv_have_decl_malloc = yes; then
18854
18855cat >>confdefs.h <<_ACEOF
18856#define HAVE_DECL_MALLOC 1
18857_ACEOF
18858
18859
18860else
18861 cat >>confdefs.h <<_ACEOF
18862#define HAVE_DECL_MALLOC 0
18863_ACEOF
18864
18865
18866fi
b4e70030
JB
18867echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18868echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
18869if test "${ac_cv_have_decl_realloc+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18871else
18872 cat >conftest.$ac_ext <<_ACEOF
18873/* confdefs.h. */
18874_ACEOF
18875cat confdefs.h >>conftest.$ac_ext
18876cat >>conftest.$ac_ext <<_ACEOF
18877/* end confdefs.h. */
18878$ac_includes_default
18879int
18880main ()
18881{
18882#ifndef realloc
18883 char *p = (char *) realloc;
4e8d927d
DJ
18884#endif
18885
18886 ;
18887 return 0;
18888}
18889_ACEOF
18890rm -f conftest.$ac_objext
18891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892 (eval $ac_compile) 2>conftest.er1
18893 ac_status=$?
18894 grep -v '^ *+' conftest.er1 >conftest.err
18895 rm -f conftest.er1
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } &&
b4e70030
JB
18899 { ac_try='test -z "$ac_c_werror_flag"
18900 || test ! -s conftest.err'
4e8d927d
DJ
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; } &&
18906 { ac_try='test -s conftest.$ac_objext'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; }; then
18912 ac_cv_have_decl_realloc=yes
18913else
18914 echo "$as_me: failed program was:" >&5
18915sed 's/^/| /' conftest.$ac_ext >&5
18916
b4e70030 18917ac_cv_have_decl_realloc=no
4e8d927d 18918fi
4e8d927d
DJ
18919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18920fi
b4e70030
JB
18921echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18922echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
18923if test $ac_cv_have_decl_realloc = yes; then
18924
18925cat >>confdefs.h <<_ACEOF
18926#define HAVE_DECL_REALLOC 1
18927_ACEOF
18928
18929
18930else
18931 cat >>confdefs.h <<_ACEOF
18932#define HAVE_DECL_REALLOC 0
18933_ACEOF
18934
18935
18936fi
18937
18938
b4e70030
JB
18939echo "$as_me:$LINENO: checking whether strerror is declared" >&5
18940echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
18941if test "${ac_cv_have_decl_strerror+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943else
18944 cat >conftest.$ac_ext <<_ACEOF
18945/* confdefs.h. */
18946_ACEOF
18947cat confdefs.h >>conftest.$ac_ext
18948cat >>conftest.$ac_ext <<_ACEOF
18949/* end confdefs.h. */
18950$ac_includes_default
18951int
18952main ()
18953{
18954#ifndef strerror
18955 char *p = (char *) strerror;
4e8d927d
DJ
18956#endif
18957
18958 ;
18959 return 0;
18960}
18961_ACEOF
18962rm -f conftest.$ac_objext
18963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18964 (eval $ac_compile) 2>conftest.er1
18965 ac_status=$?
18966 grep -v '^ *+' conftest.er1 >conftest.err
18967 rm -f conftest.er1
18968 cat conftest.err >&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
b4e70030
JB
18971 { ac_try='test -z "$ac_c_werror_flag"
18972 || test ! -s conftest.err'
4e8d927d
DJ
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; } &&
18978 { ac_try='test -s conftest.$ac_objext'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_cv_have_decl_strerror=yes
18985else
18986 echo "$as_me: failed program was:" >&5
18987sed 's/^/| /' conftest.$ac_ext >&5
18988
b4e70030 18989ac_cv_have_decl_strerror=no
4e8d927d 18990fi
4e8d927d
DJ
18991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18992fi
b4e70030
JB
18993echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
18994echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
18995if test $ac_cv_have_decl_strerror = yes; then
18996
18997cat >>confdefs.h <<_ACEOF
18998#define HAVE_DECL_STRERROR 1
18999_ACEOF
19000
19001
19002else
19003 cat >>confdefs.h <<_ACEOF
19004#define HAVE_DECL_STRERROR 0
19005_ACEOF
19006
19007
19008fi
b4e70030
JB
19009echo "$as_me:$LINENO: checking whether strstr is declared" >&5
19010echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
19011if test "${ac_cv_have_decl_strstr+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014 cat >conftest.$ac_ext <<_ACEOF
19015/* confdefs.h. */
19016_ACEOF
19017cat confdefs.h >>conftest.$ac_ext
19018cat >>conftest.$ac_ext <<_ACEOF
19019/* end confdefs.h. */
19020$ac_includes_default
19021int
19022main ()
19023{
19024#ifndef strstr
19025 char *p = (char *) strstr;
4e8d927d
DJ
19026#endif
19027
19028 ;
19029 return 0;
19030}
19031_ACEOF
19032rm -f conftest.$ac_objext
19033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19034 (eval $ac_compile) 2>conftest.er1
19035 ac_status=$?
19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
b4e70030
JB
19041 { ac_try='test -z "$ac_c_werror_flag"
19042 || test ! -s conftest.err'
4e8d927d
DJ
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest.$ac_objext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_cv_have_decl_strstr=yes
19055else
19056 echo "$as_me: failed program was:" >&5
19057sed 's/^/| /' conftest.$ac_ext >&5
19058
b4e70030 19059ac_cv_have_decl_strstr=no
4e8d927d 19060fi
4e8d927d
DJ
19061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19062fi
b4e70030
JB
19063echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
19064echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
19065if test $ac_cv_have_decl_strstr = yes; then
19066
19067cat >>confdefs.h <<_ACEOF
19068#define HAVE_DECL_STRSTR 1
19069_ACEOF
19070
19071
19072else
19073 cat >>confdefs.h <<_ACEOF
19074#define HAVE_DECL_STRSTR 0
19075_ACEOF
19076
19077
19078fi
19079
19080
b4e70030
JB
19081echo "$as_me:$LINENO: checking whether getopt is declared" >&5
19082echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
19083if test "${ac_cv_have_decl_getopt+set}" = set; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19085else
19086 cat >conftest.$ac_ext <<_ACEOF
19087/* confdefs.h. */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h. */
19092$ac_includes_default
19093int
19094main ()
19095{
19096#ifndef getopt
19097 char *p = (char *) getopt;
4e8d927d
DJ
19098#endif
19099
19100 ;
19101 return 0;
19102}
19103_ACEOF
19104rm -f conftest.$ac_objext
19105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19106 (eval $ac_compile) 2>conftest.er1
19107 ac_status=$?
19108 grep -v '^ *+' conftest.er1 >conftest.err
19109 rm -f conftest.er1
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } &&
b4e70030
JB
19113 { ac_try='test -z "$ac_c_werror_flag"
19114 || test ! -s conftest.err'
4e8d927d
DJ
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; } &&
19120 { ac_try='test -s conftest.$ac_objext'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 ac_cv_have_decl_getopt=yes
19127else
19128 echo "$as_me: failed program was:" >&5
19129sed 's/^/| /' conftest.$ac_ext >&5
19130
b4e70030 19131ac_cv_have_decl_getopt=no
4e8d927d 19132fi
4e8d927d
DJ
19133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19134fi
b4e70030
JB
19135echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
19136echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
19137if test $ac_cv_have_decl_getopt = yes; then
19138
19139cat >>confdefs.h <<_ACEOF
19140#define HAVE_DECL_GETOPT 1
19141_ACEOF
19142
19143
19144else
19145 cat >>confdefs.h <<_ACEOF
19146#define HAVE_DECL_GETOPT 0
19147_ACEOF
19148
19149
19150fi
b4e70030
JB
19151echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19152echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
19153if test "${ac_cv_have_decl_snprintf+set}" = set; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19155else
19156 cat >conftest.$ac_ext <<_ACEOF
19157/* confdefs.h. */
19158_ACEOF
19159cat confdefs.h >>conftest.$ac_ext
19160cat >>conftest.$ac_ext <<_ACEOF
19161/* end confdefs.h. */
19162$ac_includes_default
19163int
19164main ()
19165{
19166#ifndef snprintf
19167 char *p = (char *) snprintf;
4e8d927d
DJ
19168#endif
19169
19170 ;
19171 return 0;
19172}
19173_ACEOF
19174rm -f conftest.$ac_objext
19175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19176 (eval $ac_compile) 2>conftest.er1
19177 ac_status=$?
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
b4e70030
JB
19183 { ac_try='test -z "$ac_c_werror_flag"
19184 || test ! -s conftest.err'
4e8d927d
DJ
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; } &&
19190 { ac_try='test -s conftest.$ac_objext'
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_cv_have_decl_snprintf=yes
19197else
19198 echo "$as_me: failed program was:" >&5
19199sed 's/^/| /' conftest.$ac_ext >&5
19200
b4e70030 19201ac_cv_have_decl_snprintf=no
4e8d927d 19202fi
4e8d927d
DJ
19203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19204fi
b4e70030
JB
19205echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19206echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
19207if test $ac_cv_have_decl_snprintf = yes; then
19208
19209cat >>confdefs.h <<_ACEOF
19210#define HAVE_DECL_SNPRINTF 1
19211_ACEOF
19212
19213
19214else
19215 cat >>confdefs.h <<_ACEOF
19216#define HAVE_DECL_SNPRINTF 0
19217_ACEOF
19218
19219
19220fi
b4e70030
JB
19221echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19222echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
19223if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19225else
19226 cat >conftest.$ac_ext <<_ACEOF
19227/* confdefs.h. */
19228_ACEOF
19229cat confdefs.h >>conftest.$ac_ext
19230cat >>conftest.$ac_ext <<_ACEOF
19231/* end confdefs.h. */
19232$ac_includes_default
19233int
19234main ()
19235{
19236#ifndef vsnprintf
19237 char *p = (char *) vsnprintf;
4e8d927d
DJ
19238#endif
19239
19240 ;
19241 return 0;
19242}
19243_ACEOF
19244rm -f conftest.$ac_objext
19245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19246 (eval $ac_compile) 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
b4e70030
JB
19253 { ac_try='test -z "$ac_c_werror_flag"
19254 || test ! -s conftest.err'
4e8d927d
DJ
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest.$ac_objext'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; }; then
19266 ac_cv_have_decl_vsnprintf=yes
19267else
19268 echo "$as_me: failed program was:" >&5
19269sed 's/^/| /' conftest.$ac_ext >&5
19270
b4e70030 19271ac_cv_have_decl_vsnprintf=no
4e8d927d 19272fi
4e8d927d
DJ
19273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19274fi
b4e70030
JB
19275echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
19276echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
19277if test $ac_cv_have_decl_vsnprintf = yes; then
19278
19279cat >>confdefs.h <<_ACEOF
19280#define HAVE_DECL_VSNPRINTF 1
19281_ACEOF
19282
19283
19284else
19285 cat >>confdefs.h <<_ACEOF
19286#define HAVE_DECL_VSNPRINTF 0
19287_ACEOF
19288
19289
19290fi
19291
19292
19293
19294# ----------------------- #
19295# Checks for structures. #
19296# ----------------------- #
19297
b4e70030
JB
19298echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19299echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
19300if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19302else
19303 cat >conftest.$ac_ext <<_ACEOF
19304/* confdefs.h. */
19305_ACEOF
19306cat confdefs.h >>conftest.$ac_ext
19307cat >>conftest.$ac_ext <<_ACEOF
19308/* end confdefs.h. */
19309$ac_includes_default
19310int
19311main ()
19312{
19313static struct stat ac_aggr;
19314if (ac_aggr.st_blocks)
19315return 0;
19316 ;
19317 return 0;
19318}
19319_ACEOF
19320rm -f conftest.$ac_objext
19321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19322 (eval $ac_compile) 2>conftest.er1
19323 ac_status=$?
19324 grep -v '^ *+' conftest.er1 >conftest.err
19325 rm -f conftest.er1
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
b4e70030
JB
19329 { ac_try='test -z "$ac_c_werror_flag"
19330 || test ! -s conftest.err'
4e8d927d
DJ
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest.$ac_objext'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_cv_member_struct_stat_st_blocks=yes
19343else
19344 echo "$as_me: failed program was:" >&5
19345sed 's/^/| /' conftest.$ac_ext >&5
19346
b4e70030 19347cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
19348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h. */
19353$ac_includes_default
19354int
19355main ()
19356{
19357static struct stat ac_aggr;
19358if (sizeof ac_aggr.st_blocks)
19359return 0;
19360 ;
19361 return 0;
19362}
19363_ACEOF
19364rm -f conftest.$ac_objext
19365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366 (eval $ac_compile) 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
b4e70030
JB
19373 { ac_try='test -z "$ac_c_werror_flag"
19374 || test ! -s conftest.err'
4e8d927d
DJ
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest.$ac_objext'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_cv_member_struct_stat_st_blocks=yes
19387else
19388 echo "$as_me: failed program was:" >&5
19389sed 's/^/| /' conftest.$ac_ext >&5
19390
b4e70030 19391ac_cv_member_struct_stat_st_blocks=no
4e8d927d 19392fi
4e8d927d
DJ
19393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19394fi
4e8d927d
DJ
19395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19396fi
b4e70030
JB
19397echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19398echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
19399if test $ac_cv_member_struct_stat_st_blocks = yes; then
19400
19401cat >>confdefs.h <<_ACEOF
19402#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19403_ACEOF
19404
19405
19406fi
19407
b4e70030
JB
19408echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19409echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
19410if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19412else
19413 cat >conftest.$ac_ext <<_ACEOF
19414/* confdefs.h. */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h. */
19419$ac_includes_default
19420int
19421main ()
19422{
19423static struct stat ac_aggr;
19424if (ac_aggr.st_blksize)
19425return 0;
19426 ;
19427 return 0;
19428}
19429_ACEOF
19430rm -f conftest.$ac_objext
19431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19432 (eval $ac_compile) 2>conftest.er1
19433 ac_status=$?
19434 grep -v '^ *+' conftest.er1 >conftest.err
19435 rm -f conftest.er1
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
b4e70030
JB
19439 { ac_try='test -z "$ac_c_werror_flag"
19440 || test ! -s conftest.err'
4e8d927d
DJ
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest.$ac_objext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_cv_member_struct_stat_st_blksize=yes
19453else
19454 echo "$as_me: failed program was:" >&5
19455sed 's/^/| /' conftest.$ac_ext >&5
19456
b4e70030 19457cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
19458/* confdefs.h. */
19459_ACEOF
19460cat confdefs.h >>conftest.$ac_ext
19461cat >>conftest.$ac_ext <<_ACEOF
19462/* end confdefs.h. */
19463$ac_includes_default
19464int
19465main ()
19466{
19467static struct stat ac_aggr;
19468if (sizeof ac_aggr.st_blksize)
19469return 0;
19470 ;
19471 return 0;
19472}
19473_ACEOF
19474rm -f conftest.$ac_objext
19475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19476 (eval $ac_compile) 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
b4e70030
JB
19483 { ac_try='test -z "$ac_c_werror_flag"
19484 || test ! -s conftest.err'
4e8d927d
DJ
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest.$ac_objext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 ac_cv_member_struct_stat_st_blksize=yes
19497else
19498 echo "$as_me: failed program was:" >&5
19499sed 's/^/| /' conftest.$ac_ext >&5
19500
b4e70030 19501ac_cv_member_struct_stat_st_blksize=no
4e8d927d 19502fi
4e8d927d
DJ
19503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19504fi
4e8d927d
DJ
19505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19506fi
b4e70030
JB
19507echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19508echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
19509if test $ac_cv_member_struct_stat_st_blksize = yes; then
19510
19511cat >>confdefs.h <<_ACEOF
19512#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19513_ACEOF
19514
19515
19516fi
19517
19518
19519# ------------------ #
19520# Checks for types. #
19521# ------------------ #
19522
b4e70030
JB
19523echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19524echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
19525if test "${ac_cv_type_signal+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19527else
19528 cat >conftest.$ac_ext <<_ACEOF
19529/* confdefs.h. */
19530_ACEOF
19531cat confdefs.h >>conftest.$ac_ext
19532cat >>conftest.$ac_ext <<_ACEOF
19533/* end confdefs.h. */
19534#include <sys/types.h>
19535#include <signal.h>
b4e70030
JB
19536#ifdef signal
19537# undef signal
19538#endif
19539#ifdef __cplusplus
19540extern "C" void (*signal (int, void (*)(int)))(int);
19541#else
19542void (*signal ()) ();
19543#endif
4e8d927d
DJ
19544
19545int
19546main ()
19547{
b4e70030 19548int i;
4e8d927d
DJ
19549 ;
19550 return 0;
19551}
19552_ACEOF
19553rm -f conftest.$ac_objext
19554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19555 (eval $ac_compile) 2>conftest.er1
19556 ac_status=$?
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
b4e70030
JB
19562 { ac_try='test -z "$ac_c_werror_flag"
19563 || test ! -s conftest.err'
4e8d927d
DJ
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest.$ac_objext'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
b4e70030 19575 ac_cv_type_signal=void
4e8d927d
DJ
19576else
19577 echo "$as_me: failed program was:" >&5
19578sed 's/^/| /' conftest.$ac_ext >&5
19579
b4e70030 19580ac_cv_type_signal=int
4e8d927d 19581fi
4e8d927d
DJ
19582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19583fi
b4e70030
JB
19584echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19585echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
19586
19587cat >>confdefs.h <<_ACEOF
19588#define RETSIGTYPE $ac_cv_type_signal
19589_ACEOF
19590
19591
b4e70030
JB
19592echo "$as_me:$LINENO: checking for socklen_t" >&5
19593echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
19594if test "${ac_cv_type_socklen_t+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596else
19597 cat >conftest.$ac_ext <<_ACEOF
19598/* confdefs.h. */
19599_ACEOF
19600cat confdefs.h >>conftest.$ac_ext
19601cat >>conftest.$ac_ext <<_ACEOF
19602/* end confdefs.h. */
19603#include <sys/types.h>
19604#include <sys/socket.h>
19605
19606
4e8d927d
DJ
19607int
19608main ()
19609{
b4e70030 19610if ((socklen_t *) 0)
4e8d927d 19611 return 0;
b4e70030 19612if (sizeof (socklen_t))
4e8d927d
DJ
19613 return 0;
19614 ;
19615 return 0;
19616}
19617_ACEOF
19618rm -f conftest.$ac_objext
19619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19620 (eval $ac_compile) 2>conftest.er1
19621 ac_status=$?
19622 grep -v '^ *+' conftest.er1 >conftest.err
19623 rm -f conftest.er1
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
b4e70030
JB
19627 { ac_try='test -z "$ac_c_werror_flag"
19628 || test ! -s conftest.err'
4e8d927d
DJ
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_cv_type_socklen_t=yes
19641else
19642 echo "$as_me: failed program was:" >&5
19643sed 's/^/| /' conftest.$ac_ext >&5
19644
b4e70030 19645ac_cv_type_socklen_t=no
4e8d927d 19646fi
4e8d927d
DJ
19647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19648fi
b4e70030
JB
19649echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
19650echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
19651if test $ac_cv_type_socklen_t = yes; then
19652
19653cat >>confdefs.h <<_ACEOF
19654#define HAVE_SOCKLEN_T 1
19655_ACEOF
19656
19657
19658fi
19659
b4e70030
JB
19660echo "$as_me:$LINENO: checking for uintptr_t" >&5
19661echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
19662if test "${ac_cv_type_uintptr_t+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664else
19665 cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671#include <stdint.h>
19672
4e8d927d
DJ
19673int
19674main ()
19675{
b4e70030 19676if ((uintptr_t *) 0)
4e8d927d 19677 return 0;
b4e70030 19678if (sizeof (uintptr_t))
4e8d927d
DJ
19679 return 0;
19680 ;
19681 return 0;
19682}
19683_ACEOF
19684rm -f conftest.$ac_objext
19685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19686 (eval $ac_compile) 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
b4e70030
JB
19693 { ac_try='test -z "$ac_c_werror_flag"
19694 || test ! -s conftest.err'
4e8d927d
DJ
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; } &&
19700 { ac_try='test -s conftest.$ac_objext'
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; }; then
19706 ac_cv_type_uintptr_t=yes
19707else
19708 echo "$as_me: failed program was:" >&5
19709sed 's/^/| /' conftest.$ac_ext >&5
19710
b4e70030 19711ac_cv_type_uintptr_t=no
4e8d927d 19712fi
4e8d927d
DJ
19713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714fi
b4e70030
JB
19715echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
19716echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
19717if test $ac_cv_type_uintptr_t = yes; then
19718
19719cat >>confdefs.h <<_ACEOF
19720#define HAVE_UINTPTR_T 1
19721_ACEOF
19722
19723
19724fi
19725
19726
19727# ------------------------------------- #
19728# Checks for compiler characteristics. #
19729# ------------------------------------- #
19730
b4e70030
JB
19731echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19732echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
19733if test "${ac_cv_c_const+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735else
19736 cat >conftest.$ac_ext <<_ACEOF
19737/* confdefs.h. */
19738_ACEOF
19739cat confdefs.h >>conftest.$ac_ext
19740cat >>conftest.$ac_ext <<_ACEOF
19741/* end confdefs.h. */
19742
19743int
19744main ()
19745{
19746/* FIXME: Include the comments suggested by Paul. */
19747#ifndef __cplusplus
19748 /* Ultrix mips cc rejects this. */
19749 typedef int charset[2];
19750 const charset x;
19751 /* SunOS 4.1.1 cc rejects this. */
19752 char const *const *ccp;
19753 char **p;
19754 /* NEC SVR4.0.2 mips cc rejects this. */
19755 struct point {int x, y;};
19756 static struct point const zero = {0,0};
19757 /* AIX XL C 1.02.0.0 rejects this.
19758 It does not let you subtract one const X* pointer from another in
19759 an arm of an if-expression whose if-part is not a constant
19760 expression */
19761 const char *g = "string";
19762 ccp = &g + (g ? g-g : 0);
19763 /* HPUX 7.0 cc rejects these. */
19764 ++ccp;
19765 p = (char**) ccp;
19766 ccp = (char const *const *) p;
19767 { /* SCO 3.2v4 cc rejects this. */
19768 char *t;
19769 char const *s = 0 ? (char *) 0 : (char const *) 0;
19770
19771 *t++ = 0;
4e8d927d
DJ
19772 }
19773 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19774 int x[] = {25, 17};
19775 const int *foo = &x[0];
19776 ++foo;
19777 }
19778 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19779 typedef const int *iptr;
19780 iptr p = 0;
19781 ++p;
19782 }
19783 { /* AIX XL C 1.02.0.0 rejects this saying
19784 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19785 struct s { int j; const int *ap[3]; };
19786 struct s *b; b->j = 5;
19787 }
19788 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19789 const int foo = 10;
4e8d927d 19790 }
4e8d927d
DJ
19791#endif
19792
19793 ;
19794 return 0;
19795}
19796_ACEOF
19797rm -f conftest.$ac_objext
19798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19799 (eval $ac_compile) 2>conftest.er1
19800 ac_status=$?
19801 grep -v '^ *+' conftest.er1 >conftest.err
19802 rm -f conftest.er1
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
b4e70030
JB
19806 { ac_try='test -z "$ac_c_werror_flag"
19807 || test ! -s conftest.err'
4e8d927d
DJ
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest.$ac_objext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 ac_cv_c_const=yes
19820else
19821 echo "$as_me: failed program was:" >&5
19822sed 's/^/| /' conftest.$ac_ext >&5
19823
b4e70030 19824ac_cv_c_const=no
4e8d927d 19825fi
4e8d927d
DJ
19826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19827fi
b4e70030
JB
19828echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19829echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
19830if test $ac_cv_c_const = no; then
19831
19832cat >>confdefs.h <<\_ACEOF
19833#define const
19834_ACEOF
19835
19836fi
19837
b4e70030
JB
19838echo "$as_me:$LINENO: checking for inline" >&5
19839echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
19840if test "${ac_cv_c_inline+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19842else
19843 ac_cv_c_inline=no
19844for ac_kw in inline __inline__ __inline; do
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. */
19851#ifndef __cplusplus
19852typedef int foo_t;
19853static $ac_kw foo_t static_foo () {return 0; }
19854$ac_kw foo_t foo () {return 0; }
19855#endif
19856
19857_ACEOF
19858rm -f conftest.$ac_objext
19859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19860 (eval $ac_compile) 2>conftest.er1
19861 ac_status=$?
19862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
b4e70030
JB
19867 { ac_try='test -z "$ac_c_werror_flag"
19868 || test ! -s conftest.err'
4e8d927d
DJ
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
b4e70030 19880 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
19881else
19882 echo "$as_me: failed program was:" >&5
19883sed 's/^/| /' conftest.$ac_ext >&5
19884
4e8d927d 19885fi
4e8d927d 19886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
19887done
19888
19889fi
b4e70030
JB
19890echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19891echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 19892
bec39cab 19893
a3828db0
MK
19894case $ac_cv_c_inline in
19895 inline | yes) ;;
19896 *)
19897 case $ac_cv_c_inline in
19898 no) ac_val=;;
19899 *) ac_val=$ac_cv_c_inline;;
19900 esac
19901 cat >>confdefs.h <<_ACEOF
19902#ifndef __cplusplus
19903#define inline $ac_val
19904#endif
19905_ACEOF
bec39cab
AC
19906 ;;
19907esac
bec39cab 19908
9b913628
TJB
19909echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19910echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19911if test "${ac_cv_c_bigendian+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913else
19914 # See if sys/param.h defines the BYTE_ORDER macro.
19915cat >conftest.$ac_ext <<_ACEOF
19916/* confdefs.h. */
19917_ACEOF
19918cat confdefs.h >>conftest.$ac_ext
19919cat >>conftest.$ac_ext <<_ACEOF
19920/* end confdefs.h. */
19921#include <sys/types.h>
19922#include <sys/param.h>
19923
19924int
19925main ()
19926{
19927#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19928 bogus endian macros
19929#endif
19930
19931 ;
19932 return 0;
19933}
19934_ACEOF
19935rm -f conftest.$ac_objext
19936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19937 (eval $ac_compile) 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -z "$ac_c_werror_flag"
19945 || test ! -s conftest.err'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try='test -s conftest.$ac_objext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 # It does; now see whether it defined to BIG_ENDIAN or not.
19958cat >conftest.$ac_ext <<_ACEOF
19959/* confdefs.h. */
19960_ACEOF
19961cat confdefs.h >>conftest.$ac_ext
19962cat >>conftest.$ac_ext <<_ACEOF
19963/* end confdefs.h. */
19964#include <sys/types.h>
19965#include <sys/param.h>
19966
19967int
19968main ()
19969{
19970#if BYTE_ORDER != BIG_ENDIAN
19971 not big endian
19972#endif
19973
19974 ;
19975 return 0;
19976}
19977_ACEOF
19978rm -f conftest.$ac_objext
19979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19980 (eval $ac_compile) 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -z "$ac_c_werror_flag"
19988 || test ! -s conftest.err'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; } &&
19994 { ac_try='test -s conftest.$ac_objext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_cv_c_bigendian=yes
20001else
20002 echo "$as_me: failed program was:" >&5
20003sed 's/^/| /' conftest.$ac_ext >&5
20004
20005ac_cv_c_bigendian=no
20006fi
20007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20008else
20009 echo "$as_me: failed program was:" >&5
20010sed 's/^/| /' conftest.$ac_ext >&5
20011
20012# It does not; compile a test program.
20013if test "$cross_compiling" = yes; then
20014 # try to guess the endianness by grepping values into an object file
20015 ac_cv_c_bigendian=unknown
20016 cat >conftest.$ac_ext <<_ACEOF
20017/* confdefs.h. */
20018_ACEOF
20019cat confdefs.h >>conftest.$ac_ext
20020cat >>conftest.$ac_ext <<_ACEOF
20021/* end confdefs.h. */
20022short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20023short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20024void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20025short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20026short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20027void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20028int
20029main ()
20030{
20031 _ascii (); _ebcdic ();
20032 ;
20033 return 0;
20034}
20035_ACEOF
20036rm -f conftest.$ac_objext
20037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20038 (eval $ac_compile) 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag"
20046 || test ! -s conftest.err'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest.$ac_objext'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20059 ac_cv_c_bigendian=yes
20060fi
20061if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20062 if test "$ac_cv_c_bigendian" = unknown; then
20063 ac_cv_c_bigendian=no
20064 else
20065 # finding both strings is unlikely to happen, but who knows?
20066 ac_cv_c_bigendian=unknown
20067 fi
20068fi
20069else
20070 echo "$as_me: failed program was:" >&5
20071sed 's/^/| /' conftest.$ac_ext >&5
20072
20073fi
20074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20075else
20076 cat >conftest.$ac_ext <<_ACEOF
20077/* confdefs.h. */
20078_ACEOF
20079cat confdefs.h >>conftest.$ac_ext
20080cat >>conftest.$ac_ext <<_ACEOF
20081/* end confdefs.h. */
20082int
20083main ()
20084{
20085 /* Are we little or big endian? From Harbison&Steele. */
20086 union
20087 {
20088 long l;
20089 char c[sizeof (long)];
20090 } u;
20091 u.l = 1;
20092 exit (u.c[sizeof (long) - 1] == 1);
20093}
20094_ACEOF
20095rm -f conftest$ac_exeext
20096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20097 (eval $ac_link) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; }; then
20106 ac_cv_c_bigendian=no
20107else
20108 echo "$as_me: program exited with status $ac_status" >&5
20109echo "$as_me: failed program was:" >&5
20110sed 's/^/| /' conftest.$ac_ext >&5
20111
20112( exit $ac_status )
20113ac_cv_c_bigendian=yes
20114fi
20115rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20116fi
20117fi
20118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20119fi
20120echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20121echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20122case $ac_cv_c_bigendian in
20123 yes)
20124
20125cat >>confdefs.h <<\_ACEOF
20126#define WORDS_BIGENDIAN 1
20127_ACEOF
20128 ;;
20129 no)
20130 ;;
20131 *)
20132 { { echo "$as_me:$LINENO: error: unknown endianness
20133presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20134echo "$as_me: error: unknown endianness
20135presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20136 { (exit 1); exit 1; }; } ;;
20137esac
20138
74c1b268 20139
a3828db0
MK
20140# ------------------------------ #
20141# Checks for library functions. #
20142# ------------------------------ #
bec39cab 20143
a3828db0
MK
20144# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20145# for constant arguments. Useless!
b4e70030
JB
20146echo "$as_me:$LINENO: checking for working alloca.h" >&5
20147echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 20148if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20150else
20151 cat >conftest.$ac_ext <<_ACEOF
20152/* confdefs.h. */
20153_ACEOF
20154cat confdefs.h >>conftest.$ac_ext
20155cat >>conftest.$ac_ext <<_ACEOF
20156/* end confdefs.h. */
a3828db0 20157#include <alloca.h>
bec39cab
AC
20158int
20159main ()
20160{
a3828db0 20161char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
20162 ;
20163 return 0;
20164}
20165_ACEOF
20166rm -f conftest.$ac_objext conftest$ac_exeext
20167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168 (eval $ac_link) 2>conftest.er1
20169 ac_status=$?
20170 grep -v '^ *+' conftest.er1 >conftest.err
20171 rm -f conftest.er1
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
b4e70030
JB
20175 { ac_try='test -z "$ac_c_werror_flag"
20176 || test ! -s conftest.err'
bec39cab
AC
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest$ac_exeext'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
a3828db0 20188 ac_cv_working_alloca_h=yes
bec39cab
AC
20189else
20190 echo "$as_me: failed program was:" >&5
20191sed 's/^/| /' conftest.$ac_ext >&5
20192
b4e70030 20193ac_cv_working_alloca_h=no
bec39cab
AC
20194fi
20195rm -f conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext conftest.$ac_ext
20197fi
b4e70030
JB
20198echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20199echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
20200if test $ac_cv_working_alloca_h = yes; then
20201
20202cat >>confdefs.h <<\_ACEOF
20203#define HAVE_ALLOCA_H 1
bec39cab 20204_ACEOF
74c1b268 20205
74c1b268
AC
20206fi
20207
b4e70030
JB
20208echo "$as_me:$LINENO: checking for alloca" >&5
20209echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 20210if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 20211 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 20212else
bec39cab
AC
20213 cat >conftest.$ac_ext <<_ACEOF
20214/* confdefs.h. */
20215_ACEOF
20216cat confdefs.h >>conftest.$ac_ext
20217cat >>conftest.$ac_ext <<_ACEOF
20218/* end confdefs.h. */
a3828db0
MK
20219#ifdef __GNUC__
20220# define alloca __builtin_alloca
20221#else
20222# ifdef _MSC_VER
20223# include <malloc.h>
20224# define alloca _alloca
20225# else
20226# if HAVE_ALLOCA_H
20227# include <alloca.h>
20228# else
20229# ifdef _AIX
20230 #pragma alloca
20231# else
20232# ifndef alloca /* predefined by HP cc +Olibcalls */
20233char *alloca ();
20234# endif
20235# endif
20236# endif
97bf5e38 20237# endif
a3828db0 20238#endif
97bf5e38 20239
bec39cab
AC
20240int
20241main ()
20242{
a3828db0 20243char *p = (char *) alloca (1);
bec39cab
AC
20244 ;
20245 return 0;
20246}
20247_ACEOF
a3828db0
MK
20248rm -f conftest.$ac_objext conftest$ac_exeext
20249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20250 (eval $ac_link) 2>conftest.er1
bec39cab
AC
20251 ac_status=$?
20252 grep -v '^ *+' conftest.er1 >conftest.err
20253 rm -f conftest.er1
20254 cat conftest.err >&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } &&
b4e70030
JB
20257 { ac_try='test -z "$ac_c_werror_flag"
20258 || test ! -s conftest.err'
bec39cab
AC
20259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; } &&
a3828db0 20264 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; }; then
a3828db0 20270 ac_cv_func_alloca_works=yes
0200359f 20271else
bec39cab
AC
20272 echo "$as_me: failed program was:" >&5
20273sed 's/^/| /' conftest.$ac_ext >&5
0200359f 20274
b4e70030 20275ac_cv_func_alloca_works=no
0200359f 20276fi
a3828db0
MK
20277rm -f conftest.err conftest.$ac_objext \
20278 conftest$ac_exeext conftest.$ac_ext
72473524 20279fi
b4e70030
JB
20280echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20281echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 20282
a3828db0
MK
20283if test $ac_cv_func_alloca_works = yes; then
20284
20285cat >>confdefs.h <<\_ACEOF
20286#define HAVE_ALLOCA 1
bec39cab
AC
20287_ACEOF
20288
a3828db0
MK
20289else
20290 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20291# that cause trouble. Some versions do not even contain alloca or
20292# contain a buggy version. If you still want to use their alloca,
20293# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 20294
b4e70030 20295ALLOCA=alloca.$ac_objext
bec39cab 20296
a3828db0
MK
20297cat >>confdefs.h <<\_ACEOF
20298#define C_ALLOCA 1
20299_ACEOF
bec39cab 20300
a3828db0 20301
b4e70030
JB
20302echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20303echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 20304if test "${ac_cv_os_cray+set}" = set; then
bec39cab 20305 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 20306else
a3828db0 20307 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20308/* confdefs.h. */
20309_ACEOF
20310cat confdefs.h >>conftest.$ac_ext
20311cat >>conftest.$ac_ext <<_ACEOF
20312/* end confdefs.h. */
b4e70030 20313#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
20314webecray
20315#else
20316wenotbecray
20317#endif
20318
20319_ACEOF
20320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20321 $EGREP "webecray" >/dev/null 2>&1; then
20322 ac_cv_os_cray=yes
20323else
20324 ac_cv_os_cray=no
20325fi
20326rm -f conftest*
20327
20328fi
b4e70030
JB
20329echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20330echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
20331if test $ac_cv_os_cray = yes; then
20332 for ac_func in _getb67 GETB67 getb67; do
20333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20334echo "$as_me:$LINENO: checking for $ac_func" >&5
20335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20336if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20338else
20339 cat >conftest.$ac_ext <<_ACEOF
20340/* confdefs.h. */
20341_ACEOF
20342cat confdefs.h >>conftest.$ac_ext
20343cat >>conftest.$ac_ext <<_ACEOF
20344/* end confdefs.h. */
20345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20347#define $ac_func innocuous_$ac_func
20348
20349/* System header to define __stub macros and hopefully few prototypes,
20350 which can conflict with char $ac_func (); below.
20351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20352 <limits.h> exists even on freestanding compilers. */
20353
20354#ifdef __STDC__
20355# include <limits.h>
20356#else
20357# include <assert.h>
20358#endif
20359
20360#undef $ac_func
20361
b4e70030 20362/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20363#ifdef __cplusplus
20364extern "C"
b4e70030 20365{
a3828db0 20366#endif
b4e70030
JB
20367/* We use char because int might match the return type of a gcc2
20368 builtin and then its argument prototype would still apply. */
a3828db0
MK
20369char $ac_func ();
20370/* The GNU C library defines this for functions which it implements
20371 to always fail with ENOSYS. Some functions are actually named
20372 something starting with __ and the normal name is an alias. */
b4e70030 20373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20374choke me
b4e70030
JB
20375#else
20376char (*f) () = $ac_func;
20377#endif
20378#ifdef __cplusplus
20379}
a3828db0
MK
20380#endif
20381
20382int
20383main ()
20384{
b4e70030 20385return f != $ac_func;
a3828db0
MK
20386 ;
20387 return 0;
20388}
20389_ACEOF
20390rm -f conftest.$ac_objext conftest$ac_exeext
20391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392 (eval $ac_link) 2>conftest.er1
20393 ac_status=$?
20394 grep -v '^ *+' conftest.er1 >conftest.err
20395 rm -f conftest.er1
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } &&
b4e70030
JB
20399 { ac_try='test -z "$ac_c_werror_flag"
20400 || test ! -s conftest.err'
a3828db0
MK
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20403 ac_status=$?
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest$ac_exeext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 eval "$as_ac_var=yes"
20413else
20414 echo "$as_me: failed program was:" >&5
20415sed 's/^/| /' conftest.$ac_ext >&5
20416
b4e70030 20417eval "$as_ac_var=no"
a3828db0
MK
20418fi
20419rm -f conftest.err conftest.$ac_objext \
20420 conftest$ac_exeext conftest.$ac_ext
20421fi
b4e70030
JB
20422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20423echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20424if test `eval echo '${'$as_ac_var'}'` = yes; then
20425
20426cat >>confdefs.h <<_ACEOF
20427#define CRAY_STACKSEG_END $ac_func
20428_ACEOF
20429
20430 break
20431fi
20432
20433 done
20434fi
20435
b4e70030
JB
20436echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20437echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
20438if test "${ac_cv_c_stack_direction+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440else
20441 if test "$cross_compiling" = yes; then
20442 ac_cv_c_stack_direction=0
20443else
20444 cat >conftest.$ac_ext <<_ACEOF
20445/* confdefs.h. */
20446_ACEOF
20447cat confdefs.h >>conftest.$ac_ext
20448cat >>conftest.$ac_ext <<_ACEOF
20449/* end confdefs.h. */
20450int
20451find_stack_direction ()
20452{
20453 static char *addr = 0;
20454 auto char dummy;
20455 if (addr == 0)
20456 {
20457 addr = &dummy;
20458 return find_stack_direction ();
20459 }
20460 else
20461 return (&dummy > addr) ? 1 : -1;
20462}
20463
20464int
20465main ()
20466{
b4e70030 20467 exit (find_stack_direction () < 0);
a3828db0
MK
20468}
20469_ACEOF
20470rm -f conftest$ac_exeext
20471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20472 (eval $ac_link) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 ac_cv_c_stack_direction=1
20482else
20483 echo "$as_me: program exited with status $ac_status" >&5
20484echo "$as_me: failed program was:" >&5
20485sed 's/^/| /' conftest.$ac_ext >&5
20486
20487( exit $ac_status )
20488ac_cv_c_stack_direction=-1
20489fi
b4e70030 20490rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20491fi
20492fi
b4e70030
JB
20493echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20494echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
20495
20496cat >>confdefs.h <<_ACEOF
20497#define STACK_DIRECTION $ac_cv_c_stack_direction
20498_ACEOF
20499
20500
20501fi
20502
20503
20504
20505for ac_header in stdlib.h unistd.h
20506do
20507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
20508if eval "test \"\${$as_ac_Header+set}\" = set"; then
20509 echo "$as_me:$LINENO: checking for $ac_header" >&5
20510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20511if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513fi
b4e70030
JB
20514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
20516else
20517 # Is the header compilable?
b4e70030
JB
20518echo "$as_me:$LINENO: checking $ac_header usability" >&5
20519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
20520cat >conftest.$ac_ext <<_ACEOF
20521/* confdefs.h. */
20522_ACEOF
20523cat confdefs.h >>conftest.$ac_ext
20524cat >>conftest.$ac_ext <<_ACEOF
20525/* end confdefs.h. */
20526$ac_includes_default
20527#include <$ac_header>
20528_ACEOF
20529rm -f conftest.$ac_objext
20530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20531 (eval $ac_compile) 2>conftest.er1
20532 ac_status=$?
bec39cab
AC
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } &&
b4e70030
JB
20538 { ac_try='test -z "$ac_c_werror_flag"
20539 || test ! -s conftest.err'
bec39cab
AC
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try='test -s conftest.$ac_objext'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 ac_header_compiler=yes
20552else
20553 echo "$as_me: failed program was:" >&5
20554sed 's/^/| /' conftest.$ac_ext >&5
20555
b4e70030 20556ac_header_compiler=no
bec39cab
AC
20557fi
20558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
20559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20560echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
20561
20562# Is the header present?
b4e70030
JB
20563echo "$as_me:$LINENO: checking $ac_header presence" >&5
20564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
20565cat >conftest.$ac_ext <<_ACEOF
20566/* confdefs.h. */
20567_ACEOF
20568cat confdefs.h >>conftest.$ac_ext
20569cat >>conftest.$ac_ext <<_ACEOF
20570/* end confdefs.h. */
20571#include <$ac_header>
20572_ACEOF
20573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } >/dev/null; then
20581 if test -s conftest.err; then
20582 ac_cpp_err=$ac_c_preproc_warn_flag
20583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20584 else
20585 ac_cpp_err=
20586 fi
20587else
20588 ac_cpp_err=yes
20589fi
20590if test -z "$ac_cpp_err"; then
20591 ac_header_preproc=yes
97bf5e38 20592else
bec39cab
AC
20593 echo "$as_me: failed program was:" >&5
20594sed 's/^/| /' conftest.$ac_ext >&5
20595
20596 ac_header_preproc=no
72473524 20597fi
bec39cab 20598rm -f conftest.err conftest.$ac_ext
b4e70030
JB
20599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20600echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 20601
bec39cab
AC
20602# So? What about this header?
20603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20604 yes:no: )
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20609 ac_header_preproc=yes
20610 ;;
20611 no:yes:* )
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
20624 (
20625 cat <<\_ASBOX
20626## ------------------------------------------ ##
20627## Report this to the AC_PACKAGE_NAME lists. ##
20628## ------------------------------------------ ##
20629_ASBOX
20630 ) |
20631 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
20632 ;;
20633esac
b4e70030
JB
20634echo "$as_me:$LINENO: checking for $ac_header" >&5
20635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20636if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 20637 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20638else
bec39cab
AC
20639 eval "$as_ac_Header=\$ac_header_preproc"
20640fi
b4e70030
JB
20641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
20643
20644fi
20645if test `eval echo '${'$as_ac_Header'}'` = yes; then
20646 cat >>confdefs.h <<_ACEOF
20647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20648_ACEOF
20649
20650fi
20651
20652done
20653
20654
a3828db0 20655for ac_func in getpagesize
bec39cab
AC
20656do
20657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20658echo "$as_me:$LINENO: checking for $ac_func" >&5
20659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20660if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662else
20663 cat >conftest.$ac_ext <<_ACEOF
20664/* confdefs.h. */
20665_ACEOF
20666cat confdefs.h >>conftest.$ac_ext
20667cat >>conftest.$ac_ext <<_ACEOF
20668/* end confdefs.h. */
20669/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20671#define $ac_func innocuous_$ac_func
20672
97bf5e38 20673/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
20674 which can conflict with char $ac_func (); below.
20675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20676 <limits.h> exists even on freestanding compilers. */
2b2d558c 20677
bec39cab
AC
20678#ifdef __STDC__
20679# include <limits.h>
20680#else
20681# include <assert.h>
20682#endif
97bf5e38 20683
bec39cab
AC
20684#undef $ac_func
20685
b4e70030 20686/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
20687#ifdef __cplusplus
20688extern "C"
b4e70030 20689{
bec39cab 20690#endif
b4e70030
JB
20691/* We use char because int might match the return type of a gcc2
20692 builtin and then its argument prototype would still apply. */
bec39cab 20693char $ac_func ();
97bf5e38
MK
20694/* The GNU C library defines this for functions which it implements
20695 to always fail with ENOSYS. Some functions are actually named
20696 something starting with __ and the normal name is an alias. */
b4e70030 20697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 20698choke me
b4e70030
JB
20699#else
20700char (*f) () = $ac_func;
20701#endif
20702#ifdef __cplusplus
20703}
97bf5e38
MK
20704#endif
20705
bec39cab
AC
20706int
20707main ()
20708{
b4e70030 20709return f != $ac_func;
bec39cab
AC
20710 ;
20711 return 0;
20712}
20713_ACEOF
20714rm -f conftest.$ac_objext conftest$ac_exeext
20715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716 (eval $ac_link) 2>conftest.er1
20717 ac_status=$?
20718 grep -v '^ *+' conftest.er1 >conftest.err
20719 rm -f conftest.er1
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
b4e70030
JB
20723 { ac_try='test -z "$ac_c_werror_flag"
20724 || test ! -s conftest.err'
bec39cab
AC
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; } &&
20730 { ac_try='test -s conftest$ac_exeext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 eval "$as_ac_var=yes"
20737else
20738 echo "$as_me: failed program was:" >&5
20739sed 's/^/| /' conftest.$ac_ext >&5
20740
b4e70030 20741eval "$as_ac_var=no"
bec39cab
AC
20742fi
20743rm -f conftest.err conftest.$ac_objext \
20744 conftest$ac_exeext conftest.$ac_ext
20745fi
b4e70030
JB
20746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20747echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
20748if test `eval echo '${'$as_ac_var'}'` = yes; then
20749 cat >>confdefs.h <<_ACEOF
20750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20751_ACEOF
20752
2b2d558c 20753fi
bec39cab 20754done
2b2d558c 20755
b4e70030
JB
20756echo "$as_me:$LINENO: checking for working mmap" >&5
20757echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 20758if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 20759 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20760else
bec39cab 20761 if test "$cross_compiling" = yes; then
a3828db0 20762 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
20763else
20764 cat >conftest.$ac_ext <<_ACEOF
a3828db0 20765/* confdefs.h. */
bec39cab
AC
20766_ACEOF
20767cat confdefs.h >>conftest.$ac_ext
20768cat >>conftest.$ac_ext <<_ACEOF
20769/* end confdefs.h. */
a3828db0
MK
20770$ac_includes_default
20771/* malloc might have been renamed as rpl_malloc. */
20772#undef malloc
bec39cab 20773
a3828db0
MK
20774/* Thanks to Mike Haertel and Jim Avera for this test.
20775 Here is a matrix of mmap possibilities:
20776 mmap private not fixed
20777 mmap private fixed at somewhere currently unmapped
20778 mmap private fixed at somewhere already mapped
20779 mmap shared not fixed
20780 mmap shared fixed at somewhere currently unmapped
20781 mmap shared fixed at somewhere already mapped
20782 For private mappings, we should verify that changes cannot be read()
20783 back from the file, nor mmap's back from the file at a different
20784 address. (There have been systems where private was not correctly
20785 implemented like the infamous i386 svr4.0, and systems where the
20786 VM page cache was not coherent with the file system buffer cache
20787 like early versions of FreeBSD and possibly contemporary NetBSD.)
20788 For shared mappings, we should conversely verify that changes get
20789 propagated back to all the places they're supposed to be.
7dfa765c 20790
a3828db0
MK
20791 Grep wants private fixed already mapped.
20792 The main things grep needs to know about mmap are:
20793 * does it exist and is it safe to write into the mmap'd area
20794 * how to use it (BSD variants) */
7dfa765c 20795
a3828db0
MK
20796#include <fcntl.h>
20797#include <sys/mman.h>
7dfa765c 20798
a3828db0
MK
20799#if !STDC_HEADERS && !HAVE_STDLIB_H
20800char *malloc ();
20801#endif
7dfa765c 20802
a3828db0
MK
20803/* This mess was copied from the GNU getpagesize.h. */
20804#if !HAVE_GETPAGESIZE
20805/* Assume that all systems that can run configure have sys/param.h. */
20806# if !HAVE_SYS_PARAM_H
20807# define HAVE_SYS_PARAM_H 1
20808# endif
64bb1671 20809
a3828db0
MK
20810# ifdef _SC_PAGESIZE
20811# define getpagesize() sysconf(_SC_PAGESIZE)
20812# else /* no _SC_PAGESIZE */
20813# if HAVE_SYS_PARAM_H
20814# include <sys/param.h>
20815# ifdef EXEC_PAGESIZE
20816# define getpagesize() EXEC_PAGESIZE
20817# else /* no EXEC_PAGESIZE */
20818# ifdef NBPG
20819# define getpagesize() NBPG * CLSIZE
20820# ifndef CLSIZE
20821# define CLSIZE 1
20822# endif /* no CLSIZE */
20823# else /* no NBPG */
20824# ifdef NBPC
20825# define getpagesize() NBPC
20826# else /* no NBPC */
20827# ifdef PAGESIZE
20828# define getpagesize() PAGESIZE
20829# endif /* PAGESIZE */
20830# endif /* no NBPC */
20831# endif /* no NBPG */
20832# endif /* no EXEC_PAGESIZE */
20833# else /* no HAVE_SYS_PARAM_H */
20834# define getpagesize() 8192 /* punt totally */
20835# endif /* no HAVE_SYS_PARAM_H */
20836# endif /* no _SC_PAGESIZE */
64bb1671 20837
a3828db0 20838#endif /* no HAVE_GETPAGESIZE */
64bb1671 20839
a3828db0
MK
20840int
20841main ()
20842{
20843 char *data, *data2, *data3;
20844 int i, pagesize;
20845 int fd;
97bf5e38 20846
a3828db0
MK
20847 pagesize = getpagesize ();
20848
20849 /* First, make a file with some known garbage in it. */
20850 data = (char *) malloc (pagesize);
20851 if (!data)
b4e70030 20852 exit (1);
a3828db0
MK
20853 for (i = 0; i < pagesize; ++i)
20854 *(data + i) = rand ();
20855 umask (0);
20856 fd = creat ("conftest.mmap", 0600);
20857 if (fd < 0)
b4e70030 20858 exit (1);
a3828db0 20859 if (write (fd, data, pagesize) != pagesize)
b4e70030 20860 exit (1);
a3828db0
MK
20861 close (fd);
20862
20863 /* Next, try to mmap the file at a fixed address which already has
20864 something else allocated at it. If we can, also make sure that
20865 we see the same garbage. */
20866 fd = open ("conftest.mmap", O_RDWR);
20867 if (fd < 0)
b4e70030 20868 exit (1);
a3828db0
MK
20869 data2 = (char *) malloc (2 * pagesize);
20870 if (!data2)
b4e70030
JB
20871 exit (1);
20872 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
20873 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20874 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 20875 exit (1);
a3828db0
MK
20876 for (i = 0; i < pagesize; ++i)
20877 if (*(data + i) != *(data2 + i))
b4e70030 20878 exit (1);
a3828db0
MK
20879
20880 /* Finally, make sure that changes to the mapped area do not
20881 percolate back to the file as seen by read(). (This is a bug on
20882 some variants of i386 svr4.0.) */
20883 for (i = 0; i < pagesize; ++i)
20884 *(data2 + i) = *(data2 + i) + 1;
20885 data3 = (char *) malloc (pagesize);
20886 if (!data3)
b4e70030 20887 exit (1);
a3828db0 20888 if (read (fd, data3, pagesize) != pagesize)
b4e70030 20889 exit (1);
a3828db0
MK
20890 for (i = 0; i < pagesize; ++i)
20891 if (*(data + i) != *(data3 + i))
b4e70030 20892 exit (1);
a3828db0 20893 close (fd);
b4e70030 20894 exit (0);
97bf5e38 20895}
bec39cab
AC
20896_ACEOF
20897rm -f conftest$ac_exeext
20898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899 (eval $ac_link) 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
a3828db0 20908 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 20909else
bec39cab
AC
20910 echo "$as_me: program exited with status $ac_status" >&5
20911echo "$as_me: failed program was:" >&5
20912sed 's/^/| /' conftest.$ac_ext >&5
20913
20914( exit $ac_status )
a3828db0 20915ac_cv_func_mmap_fixed_mapped=no
0afdd437 20916fi
b4e70030 20917rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 20918fi
a3828db0 20919fi
b4e70030
JB
20920echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20921echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 20922if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
20923
20924cat >>confdefs.h <<\_ACEOF
a3828db0 20925#define HAVE_MMAP 1
bec39cab 20926_ACEOF
0afdd437
MK
20927
20928fi
a3828db0 20929rm -f conftest.mmap
0afdd437 20930
b4e70030
JB
20931echo "$as_me:$LINENO: checking for pid_t" >&5
20932echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 20933if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20935else
20936 cat >conftest.$ac_ext <<_ACEOF
20937/* confdefs.h. */
20938_ACEOF
20939cat confdefs.h >>conftest.$ac_ext
20940cat >>conftest.$ac_ext <<_ACEOF
20941/* end confdefs.h. */
a3828db0 20942$ac_includes_default
bec39cab
AC
20943int
20944main ()
20945{
b4e70030 20946if ((pid_t *) 0)
a3828db0 20947 return 0;
b4e70030 20948if (sizeof (pid_t))
a3828db0 20949 return 0;
bec39cab
AC
20950 ;
20951 return 0;
20952}
20953_ACEOF
a3828db0
MK
20954rm -f conftest.$ac_objext
20955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20956 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
b4e70030
JB
20963 { ac_try='test -z "$ac_c_werror_flag"
20964 || test ! -s conftest.err'
bec39cab
AC
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; } &&
a3828db0 20970 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
20971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972 (eval $ac_try) 2>&5
20973 ac_status=$?
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; }; then
a3828db0 20976 ac_cv_type_pid_t=yes
bec39cab
AC
20977else
20978 echo "$as_me: failed program was:" >&5
20979sed 's/^/| /' conftest.$ac_ext >&5
20980
b4e70030 20981ac_cv_type_pid_t=no
bec39cab 20982fi
a3828db0 20983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 20984fi
b4e70030
JB
20985echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20986echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
20987if test $ac_cv_type_pid_t = yes; then
20988 :
20989else
20990
20991cat >>confdefs.h <<_ACEOF
20992#define pid_t int
bec39cab 20993_ACEOF
7e89e357 20994
7e89e357
JT
20995fi
20996
bec39cab 20997
b4e70030
JB
20998
20999for ac_header in unistd.h vfork.h
7be570e7 21000do
a3828db0 21001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
21002if eval "test \"\${$as_ac_Header+set}\" = set"; then
21003 echo "$as_me:$LINENO: checking for $ac_header" >&5
21004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21005if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 21006 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 21007fi
b4e70030
JB
21008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 21010else
a3828db0 21011 # Is the header compilable?
b4e70030
JB
21012echo "$as_me:$LINENO: checking $ac_header usability" >&5
21013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 21014cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
21015/* confdefs.h. */
21016_ACEOF
21017cat confdefs.h >>conftest.$ac_ext
21018cat >>conftest.$ac_ext <<_ACEOF
21019/* end confdefs.h. */
a3828db0
MK
21020$ac_includes_default
21021#include <$ac_header>
bec39cab 21022_ACEOF
a3828db0
MK
21023rm -f conftest.$ac_objext
21024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21025 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
21026 ac_status=$?
21027 grep -v '^ *+' conftest.er1 >conftest.err
21028 rm -f conftest.er1
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
b4e70030
JB
21032 { ac_try='test -z "$ac_c_werror_flag"
21033 || test ! -s conftest.err'
bec39cab
AC
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
a3828db0 21039 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
a3828db0 21045 ac_header_compiler=yes
bec39cab
AC
21046else
21047 echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
b4e70030 21050ac_header_compiler=no
bec39cab 21051fi
a3828db0 21052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
21053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21054echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
21055
21056# Is the header present?
b4e70030
JB
21057echo "$as_me:$LINENO: checking $ac_header presence" >&5
21058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
21059cat >conftest.$ac_ext <<_ACEOF
21060/* confdefs.h. */
21061_ACEOF
21062cat confdefs.h >>conftest.$ac_ext
21063cat >>conftest.$ac_ext <<_ACEOF
21064/* end confdefs.h. */
21065#include <$ac_header>
21066_ACEOF
21067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } >/dev/null; then
21075 if test -s conftest.err; then
21076 ac_cpp_err=$ac_c_preproc_warn_flag
21077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21078 else
21079 ac_cpp_err=
21080 fi
21081else
21082 ac_cpp_err=yes
21083fi
21084if test -z "$ac_cpp_err"; then
21085 ac_header_preproc=yes
21086else
21087 echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 ac_header_preproc=no
21091fi
21092rm -f conftest.err conftest.$ac_ext
b4e70030
JB
21093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21094echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
21095
21096# So? What about this header?
21097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21098 yes:no: )
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21103 ac_header_preproc=yes
21104 ;;
21105 no:yes:* )
21106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
21118 (
21119 cat <<\_ASBOX
21120## ------------------------------------------ ##
21121## Report this to the AC_PACKAGE_NAME lists. ##
21122## ------------------------------------------ ##
21123_ASBOX
21124 ) |
21125 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
21126 ;;
21127esac
b4e70030
JB
21128echo "$as_me:$LINENO: checking for $ac_header" >&5
21129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21130if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21132else
21133 eval "$as_ac_Header=\$ac_header_preproc"
21134fi
b4e70030
JB
21135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 21137
bec39cab 21138fi
a3828db0 21139if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 21140 cat >>confdefs.h <<_ACEOF
a3828db0 21141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 21142_ACEOF
14abd0fb 21143
14abd0fb 21144fi
a3828db0 21145
14abd0fb
MK
21146done
21147
bec39cab 21148
a3828db0
MK
21149
21150for ac_func in fork vfork
14abd0fb 21151do
bec39cab 21152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
21153echo "$as_me:$LINENO: checking for $ac_func" >&5
21154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21155if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157else
21158 cat >conftest.$ac_ext <<_ACEOF
21159/* confdefs.h. */
21160_ACEOF
21161cat confdefs.h >>conftest.$ac_ext
21162cat >>conftest.$ac_ext <<_ACEOF
21163/* end confdefs.h. */
21164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21166#define $ac_func innocuous_$ac_func
21167
14abd0fb 21168/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
21169 which can conflict with char $ac_func (); below.
21170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21171 <limits.h> exists even on freestanding compilers. */
21172
21173#ifdef __STDC__
21174# include <limits.h>
21175#else
21176# include <assert.h>
21177#endif
14abd0fb 21178
bec39cab 21179#undef $ac_func
14abd0fb 21180
b4e70030 21181/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21182#ifdef __cplusplus
21183extern "C"
b4e70030 21184{
bec39cab 21185#endif
b4e70030
JB
21186/* We use char because int might match the return type of a gcc2
21187 builtin and then its argument prototype would still apply. */
bec39cab 21188char $ac_func ();
14abd0fb
MK
21189/* The GNU C library defines this for functions which it implements
21190 to always fail with ENOSYS. Some functions are actually named
21191 something starting with __ and the normal name is an alias. */
b4e70030 21192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 21193choke me
b4e70030
JB
21194#else
21195char (*f) () = $ac_func;
21196#endif
21197#ifdef __cplusplus
21198}
14abd0fb
MK
21199#endif
21200
bec39cab
AC
21201int
21202main ()
21203{
b4e70030 21204return f != $ac_func;
bec39cab
AC
21205 ;
21206 return 0;
21207}
21208_ACEOF
21209rm -f conftest.$ac_objext conftest$ac_exeext
21210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21211 (eval $ac_link) 2>conftest.er1
21212 ac_status=$?
21213 grep -v '^ *+' conftest.er1 >conftest.err
21214 rm -f conftest.er1
21215 cat conftest.err >&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } &&
b4e70030
JB
21218 { ac_try='test -z "$ac_c_werror_flag"
21219 || test ! -s conftest.err'
bec39cab
AC
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; } &&
21225 { ac_try='test -s conftest$ac_exeext'
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21228 ac_status=$?
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; }; then
21231 eval "$as_ac_var=yes"
21232else
21233 echo "$as_me: failed program was:" >&5
21234sed 's/^/| /' conftest.$ac_ext >&5
21235
b4e70030 21236eval "$as_ac_var=no"
bec39cab
AC
21237fi
21238rm -f conftest.err conftest.$ac_objext \
21239 conftest$ac_exeext conftest.$ac_ext
21240fi
b4e70030
JB
21241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
21243if test `eval echo '${'$as_ac_var'}'` = yes; then
21244 cat >>confdefs.h <<_ACEOF
21245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21246_ACEOF
7be570e7 21247
7be570e7
JM
21248fi
21249done
21250
a3828db0 21251if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
21252 echo "$as_me:$LINENO: checking for working fork" >&5
21253echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
21254if test "${ac_cv_func_fork_works+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21256else
21257 if test "$cross_compiling" = yes; then
21258 ac_cv_func_fork_works=cross
21259else
21260 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
21261/* By Ruediger Kuhlmann. */
21262 #include <sys/types.h>
21263 #if HAVE_UNISTD_H
21264 # include <unistd.h>
21265 #endif
21266 /* Some systems only have a dummy stub for fork() */
21267 int main ()
21268 {
21269 if (fork() < 0)
21270 exit (1);
21271 exit (0);
21272 }
a3828db0
MK
21273_ACEOF
21274rm -f conftest$ac_exeext
21275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21276 (eval $ac_link) 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_cv_func_fork_works=yes
21286else
21287 echo "$as_me: program exited with status $ac_status" >&5
21288echo "$as_me: failed program was:" >&5
21289sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 21290
a3828db0
MK
21291( exit $ac_status )
21292ac_cv_func_fork_works=no
21293fi
b4e70030 21294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
21295fi
21296fi
b4e70030
JB
21297echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21298echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
21299
21300else
21301 ac_cv_func_fork_works=$ac_cv_func_fork
21302fi
21303if test "x$ac_cv_func_fork_works" = xcross; then
21304 case $host in
21305 *-*-amigaos* | *-*-msdosdjgpp*)
21306 # Override, as these systems have only a dummy fork() stub
21307 ac_cv_func_fork_works=no
21308 ;;
21309 *)
21310 ac_cv_func_fork_works=yes
21311 ;;
21312 esac
21313 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21314echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21315fi
21316ac_cv_func_vfork_works=$ac_cv_func_vfork
21317if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
21318 echo "$as_me:$LINENO: checking for working vfork" >&5
21319echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 21320if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 21321 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
21322else
21323 if test "$cross_compiling" = yes; then
21324 ac_cv_func_vfork_works=cross
bec39cab
AC
21325else
21326 cat >conftest.$ac_ext <<_ACEOF
21327/* confdefs.h. */
21328_ACEOF
21329cat confdefs.h >>conftest.$ac_ext
21330cat >>conftest.$ac_ext <<_ACEOF
21331/* end confdefs.h. */
a3828db0 21332/* Thanks to Paul Eggert for this test. */
b4e70030
JB
21333#include <stdio.h>
21334#include <stdlib.h>
21335#include <sys/types.h>
21336#include <sys/stat.h>
a3828db0 21337#include <sys/wait.h>
b4e70030
JB
21338#if HAVE_UNISTD_H
21339# include <unistd.h>
21340#endif
a3828db0
MK
21341#if HAVE_VFORK_H
21342# include <vfork.h>
bec39cab 21343#endif
a3828db0
MK
21344/* On some sparc systems, changes by the child to local and incoming
21345 argument registers are propagated back to the parent. The compiler
21346 is told about this with #include <vfork.h>, but some compilers
21347 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21348 static variable whose address is put into a register that is
21349 clobbered by the vfork. */
21350static void
bec39cab 21351#ifdef __cplusplus
a3828db0
MK
21352sparc_address_test (int arg)
21353# else
21354sparc_address_test (arg) int arg;
c906108c 21355#endif
a3828db0
MK
21356{
21357 static pid_t child;
21358 if (!child) {
21359 child = vfork ();
21360 if (child < 0) {
21361 perror ("vfork");
21362 _exit(2);
21363 }
21364 if (!child) {
21365 arg = getpid();
21366 write(-1, "", 0);
21367 _exit (arg);
21368 }
21369 }
21370}
97bf5e38 21371
bec39cab
AC
21372int
21373main ()
21374{
a3828db0
MK
21375 pid_t parent = getpid ();
21376 pid_t child;
21377
21378 sparc_address_test (0);
21379
21380 child = vfork ();
21381
21382 if (child == 0) {
21383 /* Here is another test for sparc vfork register problems. This
21384 test uses lots of local variables, at least as many local
21385 variables as main has allocated so far including compiler
21386 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21387 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21388 reuse the register of parent for one of the local variables,
21389 since it will think that parent can't possibly be used any more
21390 in this routine. Assigning to the local variable will thus
21391 munge parent in the parent process. */
21392 pid_t
21393 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21394 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21395 /* Convince the compiler that p..p7 are live; otherwise, it might
21396 use the same hardware register for all 8 local variables. */
21397 if (p != p1 || p != p2 || p != p3 || p != p4
21398 || p != p5 || p != p6 || p != p7)
21399 _exit(1);
21400
21401 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21402 from child file descriptors. If the child closes a descriptor
21403 before it execs or exits, this munges the parent's descriptor
21404 as well. Test for this by closing stdout in the child. */
21405 _exit(close(fileno(stdout)) != 0);
21406 } else {
21407 int status;
21408 struct stat st;
21409
21410 while (wait(&status) != child)
21411 ;
b4e70030 21412 exit(
a3828db0
MK
21413 /* Was there some problem with vforking? */
21414 child < 0
21415
21416 /* Did the child fail? (This shouldn't happen.) */
21417 || status
21418
21419 /* Did the vfork/compiler bug occur? */
21420 || parent != getpid()
21421
21422 /* Did the file descriptor bug occur? */
21423 || fstat(fileno(stdout), &st) != 0
21424 );
21425 }
bec39cab
AC
21426}
21427_ACEOF
a3828db0 21428rm -f conftest$ac_exeext
bec39cab 21429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 21430 (eval $ac_link) 2>&5
bec39cab
AC
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 21433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
a3828db0
MK
21439 ac_cv_func_vfork_works=yes
21440else
21441 echo "$as_me: program exited with status $ac_status" >&5
21442echo "$as_me: failed program was:" >&5
21443sed 's/^/| /' conftest.$ac_ext >&5
21444
21445( exit $ac_status )
21446ac_cv_func_vfork_works=no
21447fi
b4e70030 21448rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
21449fi
21450fi
b4e70030
JB
21451echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21452echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
21453
21454fi;
21455if test "x$ac_cv_func_fork_works" = xcross; then
21456 ac_cv_func_vfork_works=$ac_cv_func_vfork
21457 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21458echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21459fi
21460
21461if test "x$ac_cv_func_vfork_works" = xyes; then
21462
21463cat >>confdefs.h <<\_ACEOF
21464#define HAVE_WORKING_VFORK 1
21465_ACEOF
21466
bec39cab 21467else
bec39cab 21468
a3828db0
MK
21469cat >>confdefs.h <<\_ACEOF
21470#define vfork fork
21471_ACEOF
21472
bec39cab 21473fi
a3828db0
MK
21474if test "x$ac_cv_func_fork_works" = xyes; then
21475
21476cat >>confdefs.h <<\_ACEOF
21477#define HAVE_WORKING_FORK 1
bec39cab 21478_ACEOF
c906108c 21479
c906108c
SS
21480fi
21481
bec39cab
AC
21482
21483
a3828db0 21484for ac_func in canonicalize_file_name realpath
97bf5e38 21485do
bec39cab 21486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 21487echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
21488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21489if eval "test \"\${$as_ac_var+set}\" = set"; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491else
21492 cat >conftest.$ac_ext <<_ACEOF
21493/* confdefs.h. */
21494_ACEOF
21495cat confdefs.h >>conftest.$ac_ext
21496cat >>conftest.$ac_ext <<_ACEOF
21497/* end confdefs.h. */
21498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21500#define $ac_func innocuous_$ac_func
21501
21502/* System header to define __stub macros and hopefully few prototypes,
21503 which can conflict with char $ac_func (); below.
21504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21505 <limits.h> exists even on freestanding compilers. */
21506
21507#ifdef __STDC__
21508# include <limits.h>
21509#else
21510# include <assert.h>
21511#endif
21512
21513#undef $ac_func
21514
21515/* Override any gcc2 internal prototype to avoid an error. */
21516#ifdef __cplusplus
21517extern "C"
21518{
21519#endif
21520/* We use char because int might match the return type of a gcc2
21521 builtin and then its argument prototype would still apply. */
21522char $ac_func ();
21523/* The GNU C library defines this for functions which it implements
21524 to always fail with ENOSYS. Some functions are actually named
21525 something starting with __ and the normal name is an alias. */
21526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21527choke me
21528#else
21529char (*f) () = $ac_func;
21530#endif
21531#ifdef __cplusplus
21532}
21533#endif
21534
21535int
21536main ()
21537{
21538return f != $ac_func;
21539 ;
21540 return 0;
21541}
21542_ACEOF
21543rm -f conftest.$ac_objext conftest$ac_exeext
21544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21545 (eval $ac_link) 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } &&
21552 { ac_try='test -z "$ac_c_werror_flag"
21553 || test ! -s conftest.err'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest$ac_exeext'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 eval "$as_ac_var=yes"
21566else
21567 echo "$as_me: failed program was:" >&5
21568sed 's/^/| /' conftest.$ac_ext >&5
21569
21570eval "$as_ac_var=no"
21571fi
21572rm -f conftest.err conftest.$ac_objext \
21573 conftest$ac_exeext conftest.$ac_ext
21574fi
21575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21576echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21577if test `eval echo '${'$as_ac_var'}'` = yes; then
21578 cat >>confdefs.h <<_ACEOF
21579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21580_ACEOF
21581
21582fi
21583done
21584
21585
21586for ac_func in getrusage
21587do
21588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21589echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
21590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21591if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21593else
21594 cat >conftest.$ac_ext <<_ACEOF
21595/* confdefs.h. */
21596_ACEOF
21597cat confdefs.h >>conftest.$ac_ext
21598cat >>conftest.$ac_ext <<_ACEOF
21599/* end confdefs.h. */
21600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21602#define $ac_func innocuous_$ac_func
21603
d3ea6809
MM
21604/* System header to define __stub macros and hopefully few prototypes,
21605 which can conflict with char $ac_func (); below.
21606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21607 <limits.h> exists even on freestanding compilers. */
21608
21609#ifdef __STDC__
21610# include <limits.h>
21611#else
21612# include <assert.h>
21613#endif
21614
21615#undef $ac_func
21616
b4e70030 21617/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
21618#ifdef __cplusplus
21619extern "C"
b4e70030 21620{
d3ea6809 21621#endif
b4e70030
JB
21622/* We use char because int might match the return type of a gcc2
21623 builtin and then its argument prototype would still apply. */
d3ea6809
MM
21624char $ac_func ();
21625/* The GNU C library defines this for functions which it implements
21626 to always fail with ENOSYS. Some functions are actually named
21627 something starting with __ and the normal name is an alias. */
b4e70030 21628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 21629choke me
b4e70030
JB
21630#else
21631char (*f) () = $ac_func;
21632#endif
21633#ifdef __cplusplus
21634}
d3ea6809
MM
21635#endif
21636
21637int
21638main ()
21639{
b4e70030 21640return f != $ac_func;
d3ea6809
MM
21641 ;
21642 return 0;
21643}
21644_ACEOF
21645rm -f conftest.$ac_objext conftest$ac_exeext
21646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647 (eval $ac_link) 2>conftest.er1
21648 ac_status=$?
21649 grep -v '^ *+' conftest.er1 >conftest.err
21650 rm -f conftest.er1
21651 cat conftest.err >&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } &&
b4e70030
JB
21654 { ac_try='test -z "$ac_c_werror_flag"
21655 || test ! -s conftest.err'
d3ea6809
MM
21656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657 (eval $ac_try) 2>&5
21658 ac_status=$?
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); }; } &&
21661 { ac_try='test -s conftest$ac_exeext'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 eval "$as_ac_var=yes"
21668else
21669 echo "$as_me: failed program was:" >&5
21670sed 's/^/| /' conftest.$ac_ext >&5
21671
b4e70030 21672eval "$as_ac_var=no"
d3ea6809
MM
21673fi
21674rm -f conftest.err conftest.$ac_objext \
21675 conftest$ac_exeext conftest.$ac_ext
21676fi
b4e70030
JB
21677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
21679if test `eval echo '${'$as_ac_var'}'` = yes; then
21680 cat >>confdefs.h <<_ACEOF
21681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21682_ACEOF
21683
21684fi
21685done
21686
21687
21688
21689for ac_func in getuid getgid
21690do
21691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
21692echo "$as_me:$LINENO: checking for $ac_func" >&5
21693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21694if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21696else
21697 cat >conftest.$ac_ext <<_ACEOF
21698/* confdefs.h. */
21699_ACEOF
21700cat confdefs.h >>conftest.$ac_ext
21701cat >>conftest.$ac_ext <<_ACEOF
21702/* end confdefs.h. */
21703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21705#define $ac_func innocuous_$ac_func
21706
97bf5e38 21707/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
21708 which can conflict with char $ac_func (); below.
21709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21710 <limits.h> exists even on freestanding compilers. */
c906108c 21711
bec39cab
AC
21712#ifdef __STDC__
21713# include <limits.h>
21714#else
21715# include <assert.h>
21716#endif
97bf5e38 21717
bec39cab
AC
21718#undef $ac_func
21719
b4e70030 21720/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21721#ifdef __cplusplus
21722extern "C"
b4e70030 21723{
bec39cab 21724#endif
b4e70030
JB
21725/* We use char because int might match the return type of a gcc2
21726 builtin and then its argument prototype would still apply. */
bec39cab 21727char $ac_func ();
97bf5e38
MK
21728/* The GNU C library defines this for functions which it implements
21729 to always fail with ENOSYS. Some functions are actually named
21730 something starting with __ and the normal name is an alias. */
b4e70030 21731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 21732choke me
b4e70030
JB
21733#else
21734char (*f) () = $ac_func;
21735#endif
21736#ifdef __cplusplus
21737}
c906108c 21738#endif
97bf5e38 21739
bec39cab
AC
21740int
21741main ()
21742{
b4e70030 21743return f != $ac_func;
bec39cab
AC
21744 ;
21745 return 0;
21746}
21747_ACEOF
21748rm -f conftest.$ac_objext conftest$ac_exeext
21749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21750 (eval $ac_link) 2>conftest.er1
21751 ac_status=$?
21752 grep -v '^ *+' conftest.er1 >conftest.err
21753 rm -f conftest.er1
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
b4e70030
JB
21757 { ac_try='test -z "$ac_c_werror_flag"
21758 || test ! -s conftest.err'
bec39cab
AC
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; } &&
21764 { ac_try='test -s conftest$ac_exeext'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21767 ac_status=$?
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770 eval "$as_ac_var=yes"
21771else
21772 echo "$as_me: failed program was:" >&5
21773sed 's/^/| /' conftest.$ac_ext >&5
21774
b4e70030 21775eval "$as_ac_var=no"
bec39cab
AC
21776fi
21777rm -f conftest.err conftest.$ac_objext \
21778 conftest$ac_exeext conftest.$ac_ext
21779fi
b4e70030
JB
21780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
21782if test `eval echo '${'$as_ac_var'}'` = yes; then
21783 cat >>confdefs.h <<_ACEOF
21784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21785_ACEOF
c906108c 21786
c906108c 21787fi
97bf5e38 21788done
c906108c 21789
bec39cab 21790
a3828db0 21791for ac_func in poll
97bf5e38 21792do
bec39cab 21793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
21794echo "$as_me:$LINENO: checking for $ac_func" >&5
21795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21796if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
21797 echo $ECHO_N "(cached) $ECHO_C" >&6
21798else
21799 cat >conftest.$ac_ext <<_ACEOF
21800/* confdefs.h. */
21801_ACEOF
21802cat confdefs.h >>conftest.$ac_ext
21803cat >>conftest.$ac_ext <<_ACEOF
21804/* end confdefs.h. */
21805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21807#define $ac_func innocuous_$ac_func
21808
97bf5e38 21809/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
21810 which can conflict with char $ac_func (); below.
21811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21812 <limits.h> exists even on freestanding compilers. */
21813
21814#ifdef __STDC__
21815# include <limits.h>
21816#else
21817# include <assert.h>
21818#endif
c906108c 21819
bec39cab 21820#undef $ac_func
97bf5e38 21821
b4e70030 21822/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21823#ifdef __cplusplus
21824extern "C"
b4e70030 21825{
bec39cab 21826#endif
b4e70030
JB
21827/* We use char because int might match the return type of a gcc2
21828 builtin and then its argument prototype would still apply. */
bec39cab 21829char $ac_func ();
97bf5e38
MK
21830/* The GNU C library defines this for functions which it implements
21831 to always fail with ENOSYS. Some functions are actually named
21832 something starting with __ and the normal name is an alias. */
b4e70030 21833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 21834choke me
b4e70030
JB
21835#else
21836char (*f) () = $ac_func;
21837#endif
21838#ifdef __cplusplus
21839}
c906108c 21840#endif
97bf5e38 21841
bec39cab
AC
21842int
21843main ()
21844{
b4e70030 21845return f != $ac_func;
bec39cab
AC
21846 ;
21847 return 0;
21848}
21849_ACEOF
21850rm -f conftest.$ac_objext conftest$ac_exeext
21851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852 (eval $ac_link) 2>conftest.er1
21853 ac_status=$?
21854 grep -v '^ *+' conftest.er1 >conftest.err
21855 rm -f conftest.er1
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } &&
b4e70030
JB
21859 { ac_try='test -z "$ac_c_werror_flag"
21860 || test ! -s conftest.err'
bec39cab
AC
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; } &&
21866 { ac_try='test -s conftest$ac_exeext'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; }; then
21872 eval "$as_ac_var=yes"
21873else
21874 echo "$as_me: failed program was:" >&5
21875sed 's/^/| /' conftest.$ac_ext >&5
21876
b4e70030 21877eval "$as_ac_var=no"
bec39cab
AC
21878fi
21879rm -f conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21881fi
b4e70030
JB
21882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
21884if test `eval echo '${'$as_ac_var'}'` = yes; then
21885 cat >>confdefs.h <<_ACEOF
21886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21887_ACEOF
c906108c 21888
c906108c 21889fi
97bf5e38 21890done
c906108c 21891
bec39cab 21892
a3828db0 21893for ac_func in pread64
97bf5e38 21894do
bec39cab 21895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
21896echo "$as_me:$LINENO: checking for $ac_func" >&5
21897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21898if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21900else
21901 cat >conftest.$ac_ext <<_ACEOF
21902/* confdefs.h. */
21903_ACEOF
21904cat confdefs.h >>conftest.$ac_ext
21905cat >>conftest.$ac_ext <<_ACEOF
21906/* end confdefs.h. */
21907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21909#define $ac_func innocuous_$ac_func
21910
97bf5e38 21911/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
21912 which can conflict with char $ac_func (); below.
21913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21914 <limits.h> exists even on freestanding compilers. */
21915
21916#ifdef __STDC__
21917# include <limits.h>
21918#else
21919# include <assert.h>
21920#endif
c906108c 21921
bec39cab 21922#undef $ac_func
97bf5e38 21923
b4e70030 21924/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21925#ifdef __cplusplus
21926extern "C"
b4e70030 21927{
bec39cab 21928#endif
b4e70030
JB
21929/* We use char because int might match the return type of a gcc2
21930 builtin and then its argument prototype would still apply. */
bec39cab 21931char $ac_func ();
97bf5e38
MK
21932/* The GNU C library defines this for functions which it implements
21933 to always fail with ENOSYS. Some functions are actually named
21934 something starting with __ and the normal name is an alias. */
b4e70030 21935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 21936choke me
b4e70030
JB
21937#else
21938char (*f) () = $ac_func;
21939#endif
21940#ifdef __cplusplus
21941}
c906108c 21942#endif
97bf5e38 21943
bec39cab
AC
21944int
21945main ()
21946{
b4e70030 21947return f != $ac_func;
bec39cab
AC
21948 ;
21949 return 0;
21950}
21951_ACEOF
21952rm -f conftest.$ac_objext conftest$ac_exeext
21953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21954 (eval $ac_link) 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
b4e70030
JB
21961 { ac_try='test -z "$ac_c_werror_flag"
21962 || test ! -s conftest.err'
bec39cab
AC
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; } &&
21968 { ac_try='test -s conftest$ac_exeext'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }; then
21974 eval "$as_ac_var=yes"
21975else
21976 echo "$as_me: failed program was:" >&5
21977sed 's/^/| /' conftest.$ac_ext >&5
21978
b4e70030 21979eval "$as_ac_var=no"
bec39cab
AC
21980fi
21981rm -f conftest.err conftest.$ac_objext \
21982 conftest$ac_exeext conftest.$ac_ext
21983fi
b4e70030
JB
21984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
21986if test `eval echo '${'$as_ac_var'}'` = yes; then
21987 cat >>confdefs.h <<_ACEOF
21988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21989_ACEOF
c906108c 21990
c906108c 21991fi
97bf5e38 21992done
c906108c 21993
bec39cab 21994
a3828db0 21995for ac_func in sbrk
b757528f 21996do
bec39cab 21997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
21998echo "$as_me:$LINENO: checking for $ac_func" >&5
21999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22000if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22002else
22003 cat >conftest.$ac_ext <<_ACEOF
22004/* confdefs.h. */
22005_ACEOF
22006cat confdefs.h >>conftest.$ac_ext
22007cat >>conftest.$ac_ext <<_ACEOF
22008/* end confdefs.h. */
22009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22011#define $ac_func innocuous_$ac_func
22012
b757528f 22013/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22014 which can conflict with char $ac_func (); below.
22015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22016 <limits.h> exists even on freestanding compilers. */
22017
22018#ifdef __STDC__
22019# include <limits.h>
22020#else
22021# include <assert.h>
22022#endif
b757528f 22023
bec39cab 22024#undef $ac_func
b757528f 22025
b4e70030 22026/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22027#ifdef __cplusplus
22028extern "C"
b4e70030 22029{
bec39cab 22030#endif
b4e70030
JB
22031/* We use char because int might match the return type of a gcc2
22032 builtin and then its argument prototype would still apply. */
bec39cab 22033char $ac_func ();
b757528f
JJ
22034/* The GNU C library defines this for functions which it implements
22035 to always fail with ENOSYS. Some functions are actually named
22036 something starting with __ and the normal name is an alias. */
b4e70030 22037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 22038choke me
b4e70030
JB
22039#else
22040char (*f) () = $ac_func;
22041#endif
22042#ifdef __cplusplus
22043}
b757528f
JJ
22044#endif
22045
bec39cab
AC
22046int
22047main ()
22048{
b4e70030 22049return f != $ac_func;
bec39cab
AC
22050 ;
22051 return 0;
22052}
22053_ACEOF
22054rm -f conftest.$ac_objext conftest$ac_exeext
22055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22056 (eval $ac_link) 2>conftest.er1
22057 ac_status=$?
22058 grep -v '^ *+' conftest.er1 >conftest.err
22059 rm -f conftest.er1
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } &&
b4e70030
JB
22063 { ac_try='test -z "$ac_c_werror_flag"
22064 || test ! -s conftest.err'
bec39cab
AC
22065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066 (eval $ac_try) 2>&5
22067 ac_status=$?
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); }; } &&
22070 { ac_try='test -s conftest$ac_exeext'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22073 ac_status=$?
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; }; then
22076 eval "$as_ac_var=yes"
22077else
22078 echo "$as_me: failed program was:" >&5
22079sed 's/^/| /' conftest.$ac_ext >&5
22080
b4e70030 22081eval "$as_ac_var=no"
bec39cab
AC
22082fi
22083rm -f conftest.err conftest.$ac_objext \
22084 conftest$ac_exeext conftest.$ac_ext
22085fi
b4e70030
JB
22086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22087echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22088if test `eval echo '${'$as_ac_var'}'` = yes; then
22089 cat >>confdefs.h <<_ACEOF
22090#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22091_ACEOF
b757528f 22092
b757528f
JJ
22093fi
22094done
22095
bec39cab 22096
a3828db0 22097
83116857
TJB
22098
22099for ac_func in setpgid setpgrp setsid
bcb3dc3d 22100do
bec39cab 22101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22102echo "$as_me:$LINENO: checking for $ac_func" >&5
22103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22104if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22105 echo $ECHO_N "(cached) $ECHO_C" >&6
22106else
22107 cat >conftest.$ac_ext <<_ACEOF
22108/* confdefs.h. */
22109_ACEOF
22110cat confdefs.h >>conftest.$ac_ext
22111cat >>conftest.$ac_ext <<_ACEOF
22112/* end confdefs.h. */
22113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22115#define $ac_func innocuous_$ac_func
22116
bcb3dc3d 22117/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22118 which can conflict with char $ac_func (); below.
22119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22120 <limits.h> exists even on freestanding compilers. */
22121
22122#ifdef __STDC__
22123# include <limits.h>
22124#else
22125# include <assert.h>
22126#endif
bcb3dc3d 22127
bec39cab 22128#undef $ac_func
bcb3dc3d 22129
b4e70030 22130/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22131#ifdef __cplusplus
22132extern "C"
b4e70030 22133{
bec39cab 22134#endif
b4e70030
JB
22135/* We use char because int might match the return type of a gcc2
22136 builtin and then its argument prototype would still apply. */
bec39cab 22137char $ac_func ();
bcb3dc3d
MK
22138/* The GNU C library defines this for functions which it implements
22139 to always fail with ENOSYS. Some functions are actually named
22140 something starting with __ and the normal name is an alias. */
b4e70030 22141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 22142choke me
b4e70030
JB
22143#else
22144char (*f) () = $ac_func;
22145#endif
22146#ifdef __cplusplus
22147}
bcb3dc3d
MK
22148#endif
22149
bec39cab
AC
22150int
22151main ()
22152{
b4e70030 22153return f != $ac_func;
bec39cab
AC
22154 ;
22155 return 0;
22156}
22157_ACEOF
22158rm -f conftest.$ac_objext conftest$ac_exeext
22159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22160 (eval $ac_link) 2>conftest.er1
22161 ac_status=$?
22162 grep -v '^ *+' conftest.er1 >conftest.err
22163 rm -f conftest.er1
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } &&
b4e70030
JB
22167 { ac_try='test -z "$ac_c_werror_flag"
22168 || test ! -s conftest.err'
bec39cab
AC
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; } &&
22174 { ac_try='test -s conftest$ac_exeext'
22175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176 (eval $ac_try) 2>&5
22177 ac_status=$?
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }; then
22180 eval "$as_ac_var=yes"
22181else
22182 echo "$as_me: failed program was:" >&5
22183sed 's/^/| /' conftest.$ac_ext >&5
22184
b4e70030 22185eval "$as_ac_var=no"
bec39cab
AC
22186fi
22187rm -f conftest.err conftest.$ac_objext \
22188 conftest$ac_exeext conftest.$ac_ext
22189fi
b4e70030
JB
22190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22192if test `eval echo '${'$as_ac_var'}'` = yes; then
22193 cat >>confdefs.h <<_ACEOF
22194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22195_ACEOF
bcb3dc3d 22196
bcb3dc3d
MK
22197fi
22198done
22199
bec39cab 22200
a3828db0
MK
22201
22202
22203for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 22204do
bec39cab 22205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22206echo "$as_me:$LINENO: checking for $ac_func" >&5
22207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22208if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210else
22211 cat >conftest.$ac_ext <<_ACEOF
22212/* confdefs.h. */
22213_ACEOF
22214cat confdefs.h >>conftest.$ac_ext
22215cat >>conftest.$ac_ext <<_ACEOF
22216/* end confdefs.h. */
22217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22219#define $ac_func innocuous_$ac_func
22220
8b9cf735 22221/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22222 which can conflict with char $ac_func (); below.
22223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22224 <limits.h> exists even on freestanding compilers. */
22225
22226#ifdef __STDC__
22227# include <limits.h>
22228#else
22229# include <assert.h>
22230#endif
8b9cf735 22231
bec39cab 22232#undef $ac_func
8b9cf735 22233
b4e70030 22234/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22235#ifdef __cplusplus
22236extern "C"
b4e70030 22237{
a3828db0 22238#endif
b4e70030
JB
22239/* We use char because int might match the return type of a gcc2
22240 builtin and then its argument prototype would still apply. */
a3828db0
MK
22241char $ac_func ();
22242/* The GNU C library defines this for functions which it implements
22243 to always fail with ENOSYS. Some functions are actually named
22244 something starting with __ and the normal name is an alias. */
b4e70030 22245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22246choke me
b4e70030
JB
22247#else
22248char (*f) () = $ac_func;
22249#endif
22250#ifdef __cplusplus
22251}
a3828db0
MK
22252#endif
22253
bec39cab
AC
22254int
22255main ()
22256{
b4e70030 22257return f != $ac_func;
bec39cab
AC
22258 ;
22259 return 0;
22260}
22261_ACEOF
a3828db0
MK
22262rm -f conftest.$ac_objext conftest$ac_exeext
22263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22264 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22265 ac_status=$?
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } &&
b4e70030
JB
22271 { ac_try='test -z "$ac_c_werror_flag"
22272 || test ! -s conftest.err'
bec39cab
AC
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22275 ac_status=$?
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; } &&
a3828db0 22278 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22281 ac_status=$?
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; }; then
a3828db0 22284 eval "$as_ac_var=yes"
086ec9eb 22285else
bec39cab
AC
22286 echo "$as_me: failed program was:" >&5
22287sed 's/^/| /' conftest.$ac_ext >&5
22288
b4e70030 22289eval "$as_ac_var=no"
a3828db0
MK
22290fi
22291rm -f conftest.err conftest.$ac_objext \
22292 conftest$ac_exeext conftest.$ac_ext
22293fi
b4e70030
JB
22294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22296if test `eval echo '${'$as_ac_var'}'` = yes; then
22297 cat >>confdefs.h <<_ACEOF
22298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22299_ACEOF
22300
086ec9eb 22301fi
a3828db0
MK
22302done
22303
22304
22305for ac_func in socketpair
22306do
22307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22308echo "$as_me:$LINENO: checking for $ac_func" >&5
22309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22310if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
22312else
22313 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
22314/* confdefs.h. */
22315_ACEOF
22316cat confdefs.h >>conftest.$ac_ext
22317cat >>conftest.$ac_ext <<_ACEOF
22318/* end confdefs.h. */
a3828db0
MK
22319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22321#define $ac_func innocuous_$ac_func
22322
22323/* System header to define __stub macros and hopefully few prototypes,
22324 which can conflict with char $ac_func (); below.
22325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22326 <limits.h> exists even on freestanding compilers. */
22327
22328#ifdef __STDC__
22329# include <limits.h>
22330#else
22331# include <assert.h>
22332#endif
22333
22334#undef $ac_func
22335
b4e70030 22336/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22337#ifdef __cplusplus
22338extern "C"
b4e70030 22339{
a3828db0 22340#endif
b4e70030
JB
22341/* We use char because int might match the return type of a gcc2
22342 builtin and then its argument prototype would still apply. */
a3828db0
MK
22343char $ac_func ();
22344/* The GNU C library defines this for functions which it implements
22345 to always fail with ENOSYS. Some functions are actually named
22346 something starting with __ and the normal name is an alias. */
b4e70030 22347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22348choke me
b4e70030
JB
22349#else
22350char (*f) () = $ac_func;
22351#endif
22352#ifdef __cplusplus
22353}
a3828db0
MK
22354#endif
22355
bec39cab
AC
22356int
22357main ()
22358{
b4e70030 22359return f != $ac_func;
bec39cab
AC
22360 ;
22361 return 0;
22362}
22363_ACEOF
a3828db0
MK
22364rm -f conftest.$ac_objext conftest$ac_exeext
22365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22366 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22367 ac_status=$?
22368 grep -v '^ *+' conftest.er1 >conftest.err
22369 rm -f conftest.er1
22370 cat conftest.err >&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } &&
b4e70030
JB
22373 { ac_try='test -z "$ac_c_werror_flag"
22374 || test ! -s conftest.err'
bec39cab
AC
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; } &&
a3828db0 22380 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22383 ac_status=$?
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; }; then
a3828db0 22386 eval "$as_ac_var=yes"
086ec9eb 22387else
bec39cab
AC
22388 echo "$as_me: failed program was:" >&5
22389sed 's/^/| /' conftest.$ac_ext >&5
22390
b4e70030 22391eval "$as_ac_var=no"
086ec9eb 22392fi
a3828db0
MK
22393rm -f conftest.err conftest.$ac_objext \
22394 conftest$ac_exeext conftest.$ac_ext
086ec9eb 22395fi
b4e70030
JB
22396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22397echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22398if test `eval echo '${'$as_ac_var'}'` = yes; then
22399 cat >>confdefs.h <<_ACEOF
22400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22401_ACEOF
086ec9eb
MK
22402
22403fi
a3828db0 22404done
086ec9eb 22405
a3828db0
MK
22406
22407for ac_func in syscall
22408do
22409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22410echo "$as_me:$LINENO: checking for $ac_func" >&5
22411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22412if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 22413 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
22414else
22415 cat >conftest.$ac_ext <<_ACEOF
22416/* confdefs.h. */
22417_ACEOF
22418cat confdefs.h >>conftest.$ac_ext
22419cat >>conftest.$ac_ext <<_ACEOF
22420/* end confdefs.h. */
a3828db0
MK
22421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22423#define $ac_func innocuous_$ac_func
22424
22425/* System header to define __stub macros and hopefully few prototypes,
22426 which can conflict with char $ac_func (); below.
22427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22428 <limits.h> exists even on freestanding compilers. */
22429
22430#ifdef __STDC__
22431# include <limits.h>
22432#else
22433# include <assert.h>
22434#endif
22435
22436#undef $ac_func
22437
b4e70030 22438/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22439#ifdef __cplusplus
22440extern "C"
b4e70030 22441{
a3828db0 22442#endif
b4e70030
JB
22443/* We use char because int might match the return type of a gcc2
22444 builtin and then its argument prototype would still apply. */
a3828db0
MK
22445char $ac_func ();
22446/* The GNU C library defines this for functions which it implements
22447 to always fail with ENOSYS. Some functions are actually named
22448 something starting with __ and the normal name is an alias. */
b4e70030 22449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22450choke me
b4e70030
JB
22451#else
22452char (*f) () = $ac_func;
22453#endif
22454#ifdef __cplusplus
22455}
c906108c 22456#endif
97bf5e38 22457
bec39cab
AC
22458int
22459main ()
97bf5e38 22460{
b4e70030 22461return f != $ac_func;
bec39cab
AC
22462 ;
22463 return 0;
97bf5e38 22464}
bec39cab 22465_ACEOF
a3828db0 22466rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 22467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 22468 (eval $ac_link) 2>conftest.er1
bec39cab 22469 ac_status=$?
a3828db0
MK
22470 grep -v '^ *+' conftest.er1 >conftest.err
22471 rm -f conftest.er1
22472 cat conftest.err >&5
bec39cab 22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 22474 (exit $ac_status); } &&
b4e70030
JB
22475 { ac_try='test -z "$ac_c_werror_flag"
22476 || test ! -s conftest.err'
a3828db0
MK
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; } &&
22482 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22484 (eval $ac_try) 2>&5
22485 ac_status=$?
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); }; }; then
a3828db0 22488 eval "$as_ac_var=yes"
c906108c 22489else
a3828db0 22490 echo "$as_me: failed program was:" >&5
bec39cab
AC
22491sed 's/^/| /' conftest.$ac_ext >&5
22492
b4e70030 22493eval "$as_ac_var=no"
97bf5e38 22494fi
a3828db0
MK
22495rm -f conftest.err conftest.$ac_objext \
22496 conftest$ac_exeext conftest.$ac_ext
22497fi
b4e70030
JB
22498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22500if test `eval echo '${'$as_ac_var'}'` = yes; then
22501 cat >>confdefs.h <<_ACEOF
22502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22503_ACEOF
c906108c
SS
22504
22505fi
a3828db0 22506done
c906108c 22507
a3828db0
MK
22508
22509for ac_func in ttrace
22510do
22511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22512echo "$as_me:$LINENO: checking for $ac_func" >&5
22513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22514if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 22515 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 22516else
bec39cab
AC
22517 cat >conftest.$ac_ext <<_ACEOF
22518/* confdefs.h. */
22519_ACEOF
22520cat confdefs.h >>conftest.$ac_ext
22521cat >>conftest.$ac_ext <<_ACEOF
22522/* end confdefs.h. */
a3828db0
MK
22523/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22525#define $ac_func innocuous_$ac_func
b83266a0 22526
a3828db0
MK
22527/* System header to define __stub macros and hopefully few prototypes,
22528 which can conflict with char $ac_func (); below.
22529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22530 <limits.h> exists even on freestanding compilers. */
22531
22532#ifdef __STDC__
22533# include <limits.h>
22534#else
22535# include <assert.h>
22536#endif
22537
22538#undef $ac_func
22539
b4e70030 22540/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22541#ifdef __cplusplus
22542extern "C"
b4e70030 22543{
a3828db0 22544#endif
b4e70030
JB
22545/* We use char because int might match the return type of a gcc2
22546 builtin and then its argument prototype would still apply. */
a3828db0
MK
22547char $ac_func ();
22548/* The GNU C library defines this for functions which it implements
22549 to always fail with ENOSYS. Some functions are actually named
22550 something starting with __ and the normal name is an alias. */
b4e70030 22551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22552choke me
b4e70030
JB
22553#else
22554char (*f) () = $ac_func;
22555#endif
22556#ifdef __cplusplus
22557}
a3828db0 22558#endif
97bf5e38 22559
bec39cab
AC
22560int
22561main ()
22562{
b4e70030 22563return f != $ac_func;
bec39cab
AC
22564 ;
22565 return 0;
22566}
22567_ACEOF
a3828db0
MK
22568rm -f conftest.$ac_objext conftest$ac_exeext
22569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22570 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22571 ac_status=$?
22572 grep -v '^ *+' conftest.er1 >conftest.err
22573 rm -f conftest.er1
22574 cat conftest.err >&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } &&
b4e70030
JB
22577 { ac_try='test -z "$ac_c_werror_flag"
22578 || test ! -s conftest.err'
bec39cab
AC
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; } &&
a3828db0 22584 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22587 ac_status=$?
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
a3828db0 22590 eval "$as_ac_var=yes"
b83266a0 22591else
bec39cab
AC
22592 echo "$as_me: failed program was:" >&5
22593sed 's/^/| /' conftest.$ac_ext >&5
22594
b4e70030 22595eval "$as_ac_var=no"
b83266a0 22596fi
a3828db0
MK
22597rm -f conftest.err conftest.$ac_objext \
22598 conftest$ac_exeext conftest.$ac_ext
b83266a0 22599fi
b4e70030
JB
22600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22601echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22602if test `eval echo '${'$as_ac_var'}'` = yes; then
22603 cat >>confdefs.h <<_ACEOF
22604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22605_ACEOF
b83266a0 22606
97bf5e38 22607fi
a3828db0 22608done
b83266a0 22609
a3828db0
MK
22610
22611for ac_func in wborder
22612do
22613as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22614echo "$as_me:$LINENO: checking for $ac_func" >&5
22615echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22616if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22617 echo $ECHO_N "(cached) $ECHO_C" >&6
22618else
22619 cat >conftest.$ac_ext <<_ACEOF
22620/* confdefs.h. */
22621_ACEOF
22622cat confdefs.h >>conftest.$ac_ext
22623cat >>conftest.$ac_ext <<_ACEOF
22624/* end confdefs.h. */
a3828db0
MK
22625/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22627#define $ac_func innocuous_$ac_func
a4db0f07 22628
a3828db0
MK
22629/* System header to define __stub macros and hopefully few prototypes,
22630 which can conflict with char $ac_func (); below.
22631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22632 <limits.h> exists even on freestanding compilers. */
22633
22634#ifdef __STDC__
22635# include <limits.h>
22636#else
22637# include <assert.h>
22638#endif
22639
22640#undef $ac_func
22641
b4e70030 22642/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22643#ifdef __cplusplus
22644extern "C"
b4e70030 22645{
a3828db0 22646#endif
b4e70030
JB
22647/* We use char because int might match the return type of a gcc2
22648 builtin and then its argument prototype would still apply. */
a3828db0
MK
22649char $ac_func ();
22650/* The GNU C library defines this for functions which it implements
22651 to always fail with ENOSYS. Some functions are actually named
22652 something starting with __ and the normal name is an alias. */
b4e70030 22653#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22654choke me
b4e70030
JB
22655#else
22656char (*f) () = $ac_func;
22657#endif
22658#ifdef __cplusplus
22659}
a3828db0 22660#endif
97bf5e38 22661
bec39cab
AC
22662int
22663main ()
22664{
b4e70030 22665return f != $ac_func;
bec39cab
AC
22666 ;
22667 return 0;
22668}
22669_ACEOF
a3828db0
MK
22670rm -f conftest.$ac_objext conftest$ac_exeext
22671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22672 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22673 ac_status=$?
22674 grep -v '^ *+' conftest.er1 >conftest.err
22675 rm -f conftest.er1
22676 cat conftest.err >&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } &&
b4e70030
JB
22679 { ac_try='test -z "$ac_c_werror_flag"
22680 || test ! -s conftest.err'
bec39cab
AC
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; } &&
a3828db0 22686 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22689 ac_status=$?
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }; then
a3828db0 22692 eval "$as_ac_var=yes"
a4db0f07 22693else
bec39cab
AC
22694 echo "$as_me: failed program was:" >&5
22695sed 's/^/| /' conftest.$ac_ext >&5
22696
b4e70030 22697eval "$as_ac_var=no"
a4db0f07 22698fi
a3828db0
MK
22699rm -f conftest.err conftest.$ac_objext \
22700 conftest$ac_exeext conftest.$ac_ext
a4db0f07 22701fi
b4e70030
JB
22702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22703echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22704if test `eval echo '${'$as_ac_var'}'` = yes; then
22705 cat >>confdefs.h <<_ACEOF
22706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22707_ACEOF
a4db0f07
RH
22708
22709fi
a3828db0 22710done
c906108c 22711
06825bd1 22712
a3828db0
MK
22713# Check the return and argument types of ptrace. No canned test for
22714# this, so roll our own.
22715gdb_ptrace_headers='
22716#if HAVE_SYS_TYPES_H
22717# include <sys/types.h>
22718#endif
22719#if HAVE_SYS_PTRACE_H
22720# include <sys/ptrace.h>
22721#endif
22722#if HAVE_UNISTD_H
22723# include <unistd.h>
22724#endif
22725'
22726# There is no point in checking if we don't have a prototype.
b4e70030
JB
22727echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
22728echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 22729if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22731else
22732 cat >conftest.$ac_ext <<_ACEOF
22733/* confdefs.h. */
22734_ACEOF
22735cat confdefs.h >>conftest.$ac_ext
22736cat >>conftest.$ac_ext <<_ACEOF
22737/* end confdefs.h. */
a3828db0
MK
22738$gdb_ptrace_headers
22739
bec39cab
AC
22740int
22741main ()
22742{
a3828db0
MK
22743#ifndef ptrace
22744 char *p = (char *) ptrace;
06825bd1 22745#endif
a3828db0 22746
bec39cab
AC
22747 ;
22748 return 0;
22749}
22750_ACEOF
22751rm -f conftest.$ac_objext
22752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22753 (eval $ac_compile) 2>conftest.er1
22754 ac_status=$?
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } &&
b4e70030
JB
22760 { ac_try='test -z "$ac_c_werror_flag"
22761 || test ! -s conftest.err'
bec39cab
AC
22762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763 (eval $ac_try) 2>&5
22764 ac_status=$?
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; } &&
22767 { ac_try='test -s conftest.$ac_objext'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; }; then
a3828db0 22773 ac_cv_have_decl_ptrace=yes
06825bd1 22774else
bec39cab
AC
22775 echo "$as_me: failed program was:" >&5
22776sed 's/^/| /' conftest.$ac_ext >&5
22777
b4e70030 22778ac_cv_have_decl_ptrace=no
06825bd1 22779fi
bec39cab 22780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 22781fi
b4e70030
JB
22782echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
22783echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 22784if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 22785
a3828db0
MK
22786cat >>confdefs.h <<_ACEOF
22787#define HAVE_DECL_PTRACE 1
22788_ACEOF
bec39cab 22789
bec39cab 22790
a3828db0
MK
22791else
22792 cat >>confdefs.h <<_ACEOF
22793#define HAVE_DECL_PTRACE 0
bec39cab 22794_ACEOF
06825bd1 22795
a3828db0
MK
22796
22797 : ${gdb_cv_func_ptrace_ret='int'}
22798 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
22799
06825bd1
MK
22800fi
22801
a3828db0
MK
22802
22803# Check return type.
b4e70030
JB
22804echo "$as_me:$LINENO: checking return type of ptrace" >&5
22805echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 22806if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808else
22809 cat >conftest.$ac_ext <<_ACEOF
22810/* confdefs.h. */
22811_ACEOF
22812cat confdefs.h >>conftest.$ac_ext
22813cat >>conftest.$ac_ext <<_ACEOF
22814/* end confdefs.h. */
a3828db0 22815$gdb_ptrace_headers
bec39cab
AC
22816int
22817main ()
22818{
a3828db0 22819extern int ptrace ();
bec39cab
AC
22820 ;
22821 return 0;
22822}
22823_ACEOF
22824rm -f conftest.$ac_objext
22825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22826 (eval $ac_compile) 2>conftest.er1
22827 ac_status=$?
22828 grep -v '^ *+' conftest.er1 >conftest.err
22829 rm -f conftest.er1
22830 cat conftest.err >&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } &&
b4e70030
JB
22833 { ac_try='test -z "$ac_c_werror_flag"
22834 || test ! -s conftest.err'
bec39cab
AC
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; } &&
22840 { ac_try='test -s conftest.$ac_objext'
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22843 ac_status=$?
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; }; then
a3828db0 22846 gdb_cv_func_ptrace_ret='int'
70f9f479 22847else
bec39cab
AC
22848 echo "$as_me: failed program was:" >&5
22849sed 's/^/| /' conftest.$ac_ext >&5
22850
b4e70030 22851gdb_cv_func_ptrace_ret='long'
70f9f479 22852fi
bec39cab 22853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 22854fi
b4e70030
JB
22855echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
22856echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 22857
a3828db0
MK
22858cat >>confdefs.h <<_ACEOF
22859#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 22860_ACEOF
70f9f479 22861
a3828db0 22862# Check argument types.
b4e70030
JB
22863echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
22864echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 22865if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22867else
a3828db0
MK
22868
22869for gdb_arg1 in 'int' 'long'; do
22870 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 22871 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0
MK
22872 for gdb_arg4 in 'int' 'long'; do
22873 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
22874/* confdefs.h. */
22875_ACEOF
22876cat confdefs.h >>conftest.$ac_ext
22877cat >>conftest.$ac_ext <<_ACEOF
22878/* end confdefs.h. */
a3828db0 22879$gdb_ptrace_headers
bec39cab
AC
22880int
22881main ()
22882{
a3828db0
MK
22883
22884extern $gdb_cv_func_ptrace_ret
22885 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
22886
bec39cab
AC
22887 ;
22888 return 0;
22889}
22890_ACEOF
22891rm -f conftest.$ac_objext
22892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22893 (eval $ac_compile) 2>conftest.er1
22894 ac_status=$?
22895 grep -v '^ *+' conftest.er1 >conftest.err
22896 rm -f conftest.er1
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } &&
b4e70030
JB
22900 { ac_try='test -z "$ac_c_werror_flag"
22901 || test ! -s conftest.err'
bec39cab
AC
22902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903 (eval $ac_try) 2>&5
22904 ac_status=$?
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); }; } &&
22907 { ac_try='test -s conftest.$ac_objext'
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22910 ac_status=$?
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; }; then
a3828db0
MK
22913 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
22914 break 4;
5c7f2947 22915else
bec39cab
AC
22916 echo "$as_me: failed program was:" >&5
22917sed 's/^/| /' conftest.$ac_ext >&5
22918
5c7f2947 22919fi
bec39cab 22920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
22921 for gdb_arg5 in 'int *' 'int' 'long'; do
22922 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
22923/* confdefs.h. */
22924_ACEOF
22925cat confdefs.h >>conftest.$ac_ext
22926cat >>conftest.$ac_ext <<_ACEOF
22927/* end confdefs.h. */
a3828db0 22928$gdb_ptrace_headers
bec39cab
AC
22929int
22930main ()
22931{
a3828db0
MK
22932
22933extern $gdb_cv_func_ptrace_ret
22934 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
22935
bec39cab
AC
22936 ;
22937 return 0;
22938}
22939_ACEOF
22940rm -f conftest.$ac_objext
22941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22942 (eval $ac_compile) 2>conftest.er1
22943 ac_status=$?
22944 grep -v '^ *+' conftest.er1 >conftest.err
22945 rm -f conftest.er1
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } &&
b4e70030
JB
22949 { ac_try='test -z "$ac_c_werror_flag"
22950 || test ! -s conftest.err'
bec39cab
AC
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; } &&
22956 { ac_try='test -s conftest.$ac_objext'
22957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958 (eval $ac_try) 2>&5
22959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; }; then
a3828db0
MK
22962
22963gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
22964 break 5;
78434e59 22965else
bec39cab
AC
22966 echo "$as_me: failed program was:" >&5
22967sed 's/^/| /' conftest.$ac_ext >&5
22968
78434e59 22969fi
bec39cab 22970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
22971 done
22972 done
22973 done
22974 done
22975done
22976# Provide a safe default value.
22977: ${gdb_cv_func_ptrace_args='int,int,long,long'}
22978
78434e59 22979fi
b4e70030
JB
22980echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
22981echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
22982ac_save_IFS=$IFS; IFS=','
22983set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
22984IFS=$ac_save_IFS
22985shift
bec39cab 22986
a3828db0
MK
22987cat >>confdefs.h <<_ACEOF
22988#define PTRACE_TYPE_ARG3 $3
22989_ACEOF
22990
22991if test -n "$5"; then
22992
22993cat >>confdefs.h <<_ACEOF
22994#define PTRACE_TYPE_ARG5 $5
bec39cab 22995_ACEOF
78434e59
MK
22996
22997fi
22998
a3828db0 22999if test "$cross_compiling" = no; then
b4e70030
JB
23000 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23001echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 23002if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 23003 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
23004else
23005 if test "$cross_compiling" = yes; then
23006 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
23007echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
23008 { (exit 1); exit 1; }; }
bec39cab
AC
23009else
23010 cat >conftest.$ac_ext <<_ACEOF
23011/* confdefs.h. */
23012_ACEOF
23013cat confdefs.h >>conftest.$ac_ext
23014cat >>conftest.$ac_ext <<_ACEOF
23015/* end confdefs.h. */
b4e70030
JB
23016#if HAVE_UNISTD_H
23017# include <unistd.h>
23018#endif
23019
bec39cab
AC
23020int
23021main ()
23022{
a3828db0
MK
23023/* If this system has a BSD-style setpgrp which takes arguments,
23024 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23025 exit successfully. */
b4e70030 23026 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
23027 ;
23028 return 0;
23029}
23030_ACEOF
a3828db0
MK
23031rm -f conftest$ac_exeext
23032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23033 (eval $ac_link) 2>&5
bec39cab
AC
23034 ac_status=$?
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 23036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
23037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; }; then
a3828db0 23042 ac_cv_func_setpgrp_void=no
c906108c 23043else
a3828db0
MK
23044 echo "$as_me: program exited with status $ac_status" >&5
23045echo "$as_me: failed program was:" >&5
bec39cab
AC
23046sed 's/^/| /' conftest.$ac_ext >&5
23047
a3828db0
MK
23048( exit $ac_status )
23049ac_cv_func_setpgrp_void=yes
c906108c 23050fi
b4e70030 23051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 23052fi
a3828db0 23053fi
b4e70030
JB
23054echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23055echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
23056if test $ac_cv_func_setpgrp_void = yes; then
23057
23058cat >>confdefs.h <<\_ACEOF
23059#define SETPGRP_VOID 1
bec39cab 23060_ACEOF
97bf5e38
MK
23061
23062fi
a3828db0
MK
23063
23064else
b4e70030
JB
23065 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23066echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 23067if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 23068 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 23069else
bec39cab
AC
23070 cat >conftest.$ac_ext <<_ACEOF
23071/* confdefs.h. */
23072_ACEOF
23073cat confdefs.h >>conftest.$ac_ext
23074cat >>conftest.$ac_ext <<_ACEOF
23075/* end confdefs.h. */
a3828db0
MK
23076
23077#include <unistd.h>
23078
bec39cab
AC
23079int
23080main ()
23081{
a3828db0
MK
23082
23083 if (setpgrp(1,1) == -1)
23084 exit (0);
23085 else
23086 exit (1);
23087
bec39cab
AC
23088 ;
23089 return 0;
23090}
23091_ACEOF
23092rm -f conftest.$ac_objext
23093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23094 (eval $ac_compile) 2>conftest.er1
23095 ac_status=$?
23096 grep -v '^ *+' conftest.er1 >conftest.err
23097 rm -f conftest.er1
23098 cat conftest.err >&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } &&
b4e70030
JB
23101 { ac_try='test -z "$ac_c_werror_flag"
23102 || test ! -s conftest.err'
bec39cab
AC
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23105 ac_status=$?
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; } &&
23108 { ac_try='test -s conftest.$ac_objext'
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; }; then
a3828db0 23114 ac_cv_func_setpgrp_void=no
c906108c 23115else
bec39cab
AC
23116 echo "$as_me: failed program was:" >&5
23117sed 's/^/| /' conftest.$ac_ext >&5
23118
b4e70030 23119ac_cv_func_setpgrp_void=yes
c906108c 23120fi
bec39cab 23121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23122fi
b4e70030
JB
23123echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23124echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 23125if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 23126 cat >>confdefs.h <<\_ACEOF
a3828db0 23127#define SETPGRP_VOID 1
bec39cab 23128_ACEOF
c3f6f71d 23129
a3828db0 23130fi
c906108c
SS
23131fi
23132
a3828db0
MK
23133# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
23134# since sigsetjmp might only be defined as a macro.
b4e70030
JB
23135echo "$as_me:$LINENO: checking for sigsetjmp" >&5
23136echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 23137if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23139else
23140 cat >conftest.$ac_ext <<_ACEOF
23141/* confdefs.h. */
23142_ACEOF
23143cat confdefs.h >>conftest.$ac_ext
23144cat >>conftest.$ac_ext <<_ACEOF
23145/* end confdefs.h. */
a3828db0
MK
23146
23147#include <setjmp.h>
23148
bec39cab
AC
23149int
23150main ()
23151{
a3828db0 23152sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
23153 ;
23154 return 0;
23155}
23156_ACEOF
23157rm -f conftest.$ac_objext
23158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23159 (eval $ac_compile) 2>conftest.er1
23160 ac_status=$?
23161 grep -v '^ *+' conftest.er1 >conftest.err
23162 rm -f conftest.er1
23163 cat conftest.err >&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); } &&
b4e70030
JB
23166 { ac_try='test -z "$ac_c_werror_flag"
23167 || test ! -s conftest.err'
bec39cab
AC
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; } &&
23173 { ac_try='test -s conftest.$ac_objext'
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }; then
a3828db0 23179 gdb_cv_func_sigsetjmp=yes
c906108c 23180else
bec39cab
AC
23181 echo "$as_me: failed program was:" >&5
23182sed 's/^/| /' conftest.$ac_ext >&5
23183
b4e70030 23184gdb_cv_func_sigsetjmp=no
c906108c 23185fi
bec39cab 23186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23187fi
b4e70030
JB
23188echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
23189echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 23190if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 23191
a3828db0
MK
23192cat >>confdefs.h <<\_ACEOF
23193#define HAVE_SIGSETJMP 1
bec39cab 23194_ACEOF
c906108c 23195
97bf5e38 23196fi
c906108c 23197
a3828db0
MK
23198# Assume we'll default to using the included libiberty regex.
23199gdb_use_included_regex=yes
23200
23201# However, if the system regex is GNU regex, then default to *not*
23202# using the included regex.
b4e70030
JB
23203echo "$as_me:$LINENO: checking for GNU regex" >&5
23204echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 23205if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23207else
23208 cat >conftest.$ac_ext <<_ACEOF
23209/* confdefs.h. */
23210_ACEOF
23211cat confdefs.h >>conftest.$ac_ext
23212cat >>conftest.$ac_ext <<_ACEOF
23213/* end confdefs.h. */
a3828db0 23214#include <gnu-versions.h>
bec39cab
AC
23215int
23216main ()
23217{
a3828db0
MK
23218#define REGEX_INTERFACE_VERSION 1
23219#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
23220# error "Version mismatch"
23221#endif
bec39cab
AC
23222 ;
23223 return 0;
23224}
23225_ACEOF
23226rm -f conftest.$ac_objext
23227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23228 (eval $ac_compile) 2>conftest.er1
23229 ac_status=$?
23230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } &&
b4e70030
JB
23235 { ac_try='test -z "$ac_c_werror_flag"
23236 || test ! -s conftest.err'
bec39cab
AC
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest.$ac_objext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
a3828db0 23248 gdb_cv_have_gnu_regex=yes
c906108c 23249else
bec39cab
AC
23250 echo "$as_me: failed program was:" >&5
23251sed 's/^/| /' conftest.$ac_ext >&5
23252
b4e70030 23253gdb_cv_have_gnu_regex=no
c906108c 23254fi
bec39cab 23255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23256fi
b4e70030
JB
23257echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
23258echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
23259if test $gdb_cv_have_gnu_regex = yes; then
23260 gdb_use_included_regex=no
23261fi
c906108c 23262
a3828db0 23263
b4e70030 23264# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 23265if test "${with_included_regex+set}" = set; then
b4e70030
JB
23266 withval="$with_included_regex"
23267 gdb_with_regex=$withval
a3828db0
MK
23268else
23269 gdb_with_regex=$gdb_use_included_regex
b4e70030 23270fi;
a3828db0
MK
23271if test "$gdb_with_regex" = yes; then
23272
23273cat >>confdefs.h <<\_ACEOF
23274#define USE_INCLUDED_REGEX 1
bec39cab 23275_ACEOF
c906108c 23276
97bf5e38 23277fi
c906108c 23278
5c45e068 23279# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
23280echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
23281echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 23282if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23284else
23285 cat >conftest.$ac_ext <<_ACEOF
23286/* confdefs.h. */
23287_ACEOF
23288cat confdefs.h >>conftest.$ac_ext
23289cat >>conftest.$ac_ext <<_ACEOF
23290/* end confdefs.h. */
a3828db0
MK
23291#include <sys/param.h>
23292#include <sys/proc.h>
5c45e068
MK
23293
23294
bec39cab
AC
23295int
23296main ()
23297{
5c45e068
MK
23298static struct thread ac_aggr;
23299if (ac_aggr.td_pcb)
23300return 0;
bec39cab
AC
23301 ;
23302 return 0;
23303}
23304_ACEOF
23305rm -f conftest.$ac_objext
23306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23307 (eval $ac_compile) 2>conftest.er1
23308 ac_status=$?
23309 grep -v '^ *+' conftest.er1 >conftest.err
23310 rm -f conftest.er1
23311 cat conftest.err >&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } &&
b4e70030
JB
23314 { ac_try='test -z "$ac_c_werror_flag"
23315 || test ! -s conftest.err'
bec39cab
AC
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; } &&
23321 { ac_try='test -s conftest.$ac_objext'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
5c45e068 23327 ac_cv_member_struct_thread_td_pcb=yes
c906108c 23328else
bec39cab
AC
23329 echo "$as_me: failed program was:" >&5
23330sed 's/^/| /' conftest.$ac_ext >&5
23331
b4e70030 23332cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
23333/* confdefs.h. */
23334_ACEOF
23335cat confdefs.h >>conftest.$ac_ext
23336cat >>conftest.$ac_ext <<_ACEOF
23337/* end confdefs.h. */
23338#include <sys/param.h>
23339#include <sys/proc.h>
23340
23341
23342int
23343main ()
23344{
23345static struct thread ac_aggr;
23346if (sizeof ac_aggr.td_pcb)
23347return 0;
23348 ;
23349 return 0;
23350}
23351_ACEOF
23352rm -f conftest.$ac_objext
23353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23354 (eval $ac_compile) 2>conftest.er1
23355 ac_status=$?
23356 grep -v '^ *+' conftest.er1 >conftest.err
23357 rm -f conftest.er1
23358 cat conftest.err >&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } &&
b4e70030
JB
23361 { ac_try='test -z "$ac_c_werror_flag"
23362 || test ! -s conftest.err'
5c45e068
MK
23363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364 (eval $ac_try) 2>&5
23365 ac_status=$?
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); }; } &&
23368 { ac_try='test -s conftest.$ac_objext'
23369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370 (eval $ac_try) 2>&5
23371 ac_status=$?
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); }; }; then
23374 ac_cv_member_struct_thread_td_pcb=yes
23375else
23376 echo "$as_me: failed program was:" >&5
23377sed 's/^/| /' conftest.$ac_ext >&5
23378
b4e70030 23379ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
23380fi
23381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23382fi
bec39cab 23383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23384fi
b4e70030
JB
23385echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
23386echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 23387if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 23388
5c45e068 23389cat >>confdefs.h <<_ACEOF
a3828db0 23390#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 23391_ACEOF
c906108c 23392
5c45e068 23393
97bf5e38 23394fi
c906108c 23395
5c45e068 23396
a3828db0 23397# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
23398echo "$as_me:$LINENO: checking for struct lwp" >&5
23399echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 23400if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23402else
23403 cat >conftest.$ac_ext <<_ACEOF
23404/* confdefs.h. */
23405_ACEOF
23406cat confdefs.h >>conftest.$ac_ext
23407cat >>conftest.$ac_ext <<_ACEOF
23408/* end confdefs.h. */
a3828db0
MK
23409#include <sys/param.h>
23410#include <sys/lwp.h>
bec39cab
AC
23411int
23412main ()
23413{
a3828db0 23414struct lwp l;
bec39cab
AC
23415 ;
23416 return 0;
23417}
23418_ACEOF
23419rm -f conftest.$ac_objext
23420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23421 (eval $ac_compile) 2>conftest.er1
23422 ac_status=$?
23423 grep -v '^ *+' conftest.er1 >conftest.err
23424 rm -f conftest.er1
23425 cat conftest.err >&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } &&
b4e70030
JB
23428 { ac_try='test -z "$ac_c_werror_flag"
23429 || test ! -s conftest.err'
bec39cab
AC
23430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431 (eval $ac_try) 2>&5
23432 ac_status=$?
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; } &&
23435 { ac_try='test -s conftest.$ac_objext'
23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437 (eval $ac_try) 2>&5
23438 ac_status=$?
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; }; then
a3828db0 23441 gdb_cv_struct_lwp=yes
c906108c 23442else
bec39cab
AC
23443 echo "$as_me: failed program was:" >&5
23444sed 's/^/| /' conftest.$ac_ext >&5
23445
b4e70030 23446gdb_cv_struct_lwp=no
c906108c 23447fi
bec39cab 23448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23449fi
b4e70030
JB
23450echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
23451echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 23452if test $gdb_cv_struct_lwp = yes; then
c906108c 23453
a3828db0
MK
23454cat >>confdefs.h <<\_ACEOF
23455#define HAVE_STRUCT_LWP 1
bec39cab 23456_ACEOF
c906108c 23457
97bf5e38 23458fi
c906108c 23459
a3828db0 23460# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
23461echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
23462echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 23463if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
23464 echo $ECHO_N "(cached) $ECHO_C" >&6
23465else
23466 cat >conftest.$ac_ext <<_ACEOF
23467/* confdefs.h. */
23468_ACEOF
23469cat confdefs.h >>conftest.$ac_ext
23470cat >>conftest.$ac_ext <<_ACEOF
23471/* end confdefs.h. */
a3828db0
MK
23472#include <sys/types.h>
23473#include <machine/reg.h>
bec39cab
AC
23474int
23475main ()
23476{
a3828db0 23477struct reg r;
bec39cab
AC
23478 ;
23479 return 0;
23480}
23481_ACEOF
23482rm -f conftest.$ac_objext
23483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23484 (eval $ac_compile) 2>conftest.er1
23485 ac_status=$?
23486 grep -v '^ *+' conftest.er1 >conftest.err
23487 rm -f conftest.er1
23488 cat conftest.err >&5
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); } &&
b4e70030
JB
23491 { ac_try='test -z "$ac_c_werror_flag"
23492 || test ! -s conftest.err'
bec39cab
AC
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; } &&
23498 { ac_try='test -s conftest.$ac_objext'
23499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; }; then
a3828db0 23504 gdb_cv_struct_reg=yes
27ca5dad 23505else
bec39cab
AC
23506 echo "$as_me: failed program was:" >&5
23507sed 's/^/| /' conftest.$ac_ext >&5
23508
b4e70030 23509gdb_cv_struct_reg=no
27ca5dad 23510fi
bec39cab 23511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 23512fi
b4e70030
JB
23513echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
23514echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 23515if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
23516
23517cat >>confdefs.h <<\_ACEOF
a3828db0 23518#define HAVE_STRUCT_REG 1
bec39cab 23519_ACEOF
27ca5dad
MC
23520
23521fi
97bf5e38 23522
a3828db0
MK
23523# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
23524# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
23525echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
23526echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 23527if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 23528 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 23529else
bec39cab
AC
23530 cat >conftest.$ac_ext <<_ACEOF
23531/* confdefs.h. */
23532_ACEOF
23533cat confdefs.h >>conftest.$ac_ext
23534cat >>conftest.$ac_ext <<_ACEOF
23535/* end confdefs.h. */
a3828db0 23536#include <machine/reg.h>
5c45e068
MK
23537
23538int
23539main ()
23540{
23541static struct reg ac_aggr;
23542if (ac_aggr.r_fs)
23543return 0;
23544 ;
23545 return 0;
23546}
23547_ACEOF
23548rm -f conftest.$ac_objext
23549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23550 (eval $ac_compile) 2>conftest.er1
23551 ac_status=$?
23552 grep -v '^ *+' conftest.er1 >conftest.err
23553 rm -f conftest.er1
23554 cat conftest.err >&5
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } &&
b4e70030
JB
23557 { ac_try='test -z "$ac_c_werror_flag"
23558 || test ! -s conftest.err'
5c45e068
MK
23559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560 (eval $ac_try) 2>&5
23561 ac_status=$?
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }; } &&
23564 { ac_try='test -s conftest.$ac_objext'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; }; then
23570 ac_cv_member_struct_reg_r_fs=yes
23571else
23572 echo "$as_me: failed program was:" >&5
23573sed 's/^/| /' conftest.$ac_ext >&5
23574
b4e70030 23575cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
23576/* confdefs.h. */
23577_ACEOF
23578cat confdefs.h >>conftest.$ac_ext
23579cat >>conftest.$ac_ext <<_ACEOF
23580/* end confdefs.h. */
23581#include <machine/reg.h>
23582
bec39cab
AC
23583int
23584main ()
23585{
5c45e068
MK
23586static struct reg ac_aggr;
23587if (sizeof ac_aggr.r_fs)
23588return 0;
bec39cab
AC
23589 ;
23590 return 0;
23591}
23592_ACEOF
23593rm -f conftest.$ac_objext
23594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23595 (eval $ac_compile) 2>conftest.er1
23596 ac_status=$?
23597 grep -v '^ *+' conftest.er1 >conftest.err
23598 rm -f conftest.er1
23599 cat conftest.err >&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); } &&
b4e70030
JB
23602 { ac_try='test -z "$ac_c_werror_flag"
23603 || test ! -s conftest.err'
bec39cab
AC
23604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; } &&
23609 { ac_try='test -s conftest.$ac_objext'
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; }; then
5c45e068 23615 ac_cv_member_struct_reg_r_fs=yes
3862412b 23616else
bec39cab
AC
23617 echo "$as_me: failed program was:" >&5
23618sed 's/^/| /' conftest.$ac_ext >&5
23619
b4e70030 23620ac_cv_member_struct_reg_r_fs=no
3862412b 23621fi
bec39cab 23622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 23623fi
5c45e068
MK
23624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23625fi
b4e70030
JB
23626echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
23627echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
23628if test $ac_cv_member_struct_reg_r_fs = yes; then
23629
23630cat >>confdefs.h <<_ACEOF
a3828db0 23631#define HAVE_STRUCT_REG_R_FS 1
bec39cab 23632_ACEOF
3862412b 23633
5c45e068 23634
97bf5e38 23635fi
b4e70030
JB
23636echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
23637echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 23638if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 23639 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 23640else
bec39cab
AC
23641 cat >conftest.$ac_ext <<_ACEOF
23642/* confdefs.h. */
23643_ACEOF
23644cat confdefs.h >>conftest.$ac_ext
23645cat >>conftest.$ac_ext <<_ACEOF
23646/* end confdefs.h. */
a3828db0 23647#include <machine/reg.h>
5c45e068 23648
bec39cab
AC
23649int
23650main ()
23651{
5c45e068
MK
23652static struct reg ac_aggr;
23653if (ac_aggr.r_gs)
23654return 0;
bec39cab
AC
23655 ;
23656 return 0;
23657}
23658_ACEOF
23659rm -f conftest.$ac_objext
23660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23661 (eval $ac_compile) 2>conftest.er1
23662 ac_status=$?
23663 grep -v '^ *+' conftest.er1 >conftest.err
23664 rm -f conftest.er1
23665 cat conftest.err >&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } &&
b4e70030
JB
23668 { ac_try='test -z "$ac_c_werror_flag"
23669 || test ! -s conftest.err'
bec39cab
AC
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; } &&
23675 { ac_try='test -s conftest.$ac_objext'
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; }; then
5c45e068 23681 ac_cv_member_struct_reg_r_gs=yes
3862412b 23682else
bec39cab
AC
23683 echo "$as_me: failed program was:" >&5
23684sed 's/^/| /' conftest.$ac_ext >&5
23685
b4e70030 23686cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
23687/* confdefs.h. */
23688_ACEOF
23689cat confdefs.h >>conftest.$ac_ext
23690cat >>conftest.$ac_ext <<_ACEOF
23691/* end confdefs.h. */
23692#include <machine/reg.h>
23693
23694int
23695main ()
23696{
23697static struct reg ac_aggr;
23698if (sizeof ac_aggr.r_gs)
23699return 0;
23700 ;
23701 return 0;
23702}
23703_ACEOF
23704rm -f conftest.$ac_objext
23705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23706 (eval $ac_compile) 2>conftest.er1
23707 ac_status=$?
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } &&
b4e70030
JB
23713 { ac_try='test -z "$ac_c_werror_flag"
23714 || test ! -s conftest.err'
5c45e068
MK
23715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716 (eval $ac_try) 2>&5
23717 ac_status=$?
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; } &&
23720 { ac_try='test -s conftest.$ac_objext'
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; }; then
23726 ac_cv_member_struct_reg_r_gs=yes
23727else
23728 echo "$as_me: failed program was:" >&5
23729sed 's/^/| /' conftest.$ac_ext >&5
23730
b4e70030 23731ac_cv_member_struct_reg_r_gs=no
3862412b 23732fi
bec39cab 23733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 23734fi
5c45e068
MK
23735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23736fi
b4e70030
JB
23737echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
23738echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
23739if test $ac_cv_member_struct_reg_r_gs = yes; then
23740
23741cat >>confdefs.h <<_ACEOF
a3828db0 23742#define HAVE_STRUCT_REG_R_GS 1
bec39cab 23743_ACEOF
3862412b 23744
5c45e068 23745
97bf5e38 23746fi
3862412b 23747
5c45e068 23748
a3828db0 23749# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
23750echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
23751echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 23752if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 23753 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 23754else
bec39cab
AC
23755 cat >conftest.$ac_ext <<_ACEOF
23756/* confdefs.h. */
23757_ACEOF
23758cat confdefs.h >>conftest.$ac_ext
23759cat >>conftest.$ac_ext <<_ACEOF
23760/* end confdefs.h. */
a3828db0 23761#include <sys/ptrace.h>
bec39cab
AC
23762int
23763main ()
23764{
a3828db0 23765PTRACE_GETREGS;
bec39cab
AC
23766 ;
23767 return 0;
23768}
23769_ACEOF
23770rm -f conftest.$ac_objext
23771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23772 (eval $ac_compile) 2>conftest.er1
23773 ac_status=$?
23774 grep -v '^ *+' conftest.er1 >conftest.err
23775 rm -f conftest.er1
23776 cat conftest.err >&5
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); } &&
b4e70030
JB
23779 { ac_try='test -z "$ac_c_werror_flag"
23780 || test ! -s conftest.err'
bec39cab
AC
23781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782 (eval $ac_try) 2>&5
23783 ac_status=$?
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); }; } &&
23786 { ac_try='test -s conftest.$ac_objext'
23787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788 (eval $ac_try) 2>&5
23789 ac_status=$?
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); }; }; then
a3828db0 23792 gdb_cv_have_ptrace_getregs=yes
451928c5 23793else
bec39cab
AC
23794 echo "$as_me: failed program was:" >&5
23795sed 's/^/| /' conftest.$ac_ext >&5
23796
b4e70030 23797gdb_cv_have_ptrace_getregs=no
451928c5 23798fi
bec39cab 23799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
23800fi
23801
b4e70030
JB
23802echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
23803echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 23804if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
23805
23806cat >>confdefs.h <<\_ACEOF
a3828db0 23807#define HAVE_PTRACE_GETREGS 1
bec39cab 23808_ACEOF
451928c5 23809
97bf5e38 23810fi
451928c5 23811
a3828db0 23812# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
23813echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
23814echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 23815if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 23816 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 23817else
bec39cab
AC
23818 cat >conftest.$ac_ext <<_ACEOF
23819/* confdefs.h. */
23820_ACEOF
23821cat confdefs.h >>conftest.$ac_ext
23822cat >>conftest.$ac_ext <<_ACEOF
23823/* end confdefs.h. */
a3828db0 23824#include <sys/ptrace.h>
bec39cab
AC
23825int
23826main ()
23827{
a3828db0 23828PTRACE_GETFPXREGS;
bec39cab
AC
23829 ;
23830 return 0;
23831}
23832_ACEOF
23833rm -f conftest.$ac_objext
23834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23835 (eval $ac_compile) 2>conftest.er1
23836 ac_status=$?
23837 grep -v '^ *+' conftest.er1 >conftest.err
23838 rm -f conftest.er1
23839 cat conftest.err >&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } &&
b4e70030
JB
23842 { ac_try='test -z "$ac_c_werror_flag"
23843 || test ! -s conftest.err'
bec39cab
AC
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; } &&
23849 { ac_try='test -s conftest.$ac_objext'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; }; then
a3828db0 23855 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 23856else
bec39cab
AC
23857 echo "$as_me: failed program was:" >&5
23858sed 's/^/| /' conftest.$ac_ext >&5
23859
b4e70030 23860gdb_cv_have_ptrace_getfpxregs=no
451928c5 23861fi
bec39cab 23862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
23863fi
23864
b4e70030
JB
23865echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
23866echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 23867if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
23868
23869cat >>confdefs.h <<\_ACEOF
a3828db0 23870#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 23871_ACEOF
451928c5 23872
97bf5e38 23873fi
451928c5 23874
a3828db0 23875# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
23876echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
23877echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 23878if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 23879 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 23880else
bec39cab
AC
23881 cat >conftest.$ac_ext <<_ACEOF
23882/* confdefs.h. */
23883_ACEOF
23884cat confdefs.h >>conftest.$ac_ext
23885cat >>conftest.$ac_ext <<_ACEOF
23886/* end confdefs.h. */
a3828db0
MK
23887#include <sys/types.h>
23888#include <sys/ptrace.h>
bec39cab
AC
23889int
23890main ()
23891{
a3828db0 23892PT_GETDBREGS;
bec39cab
AC
23893 ;
23894 return 0;
23895}
23896_ACEOF
23897rm -f conftest.$ac_objext
23898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23899 (eval $ac_compile) 2>conftest.er1
23900 ac_status=$?
23901 grep -v '^ *+' conftest.er1 >conftest.err
23902 rm -f conftest.er1
23903 cat conftest.err >&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } &&
b4e70030
JB
23906 { ac_try='test -z "$ac_c_werror_flag"
23907 || test ! -s conftest.err'
bec39cab
AC
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; } &&
23913 { ac_try='test -s conftest.$ac_objext'
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
a3828db0 23919 gdb_cv_have_pt_getdbregs=yes
3862412b 23920else
bec39cab
AC
23921 echo "$as_me: failed program was:" >&5
23922sed 's/^/| /' conftest.$ac_ext >&5
23923
b4e70030 23924gdb_cv_have_pt_getdbregs=no
3862412b 23925fi
bec39cab 23926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
23927fi
23928
b4e70030
JB
23929echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
23930echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 23931if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
23932
23933cat >>confdefs.h <<\_ACEOF
a3828db0 23934#define HAVE_PT_GETDBREGS 1
bec39cab 23935_ACEOF
3862412b 23936
97bf5e38 23937fi
3862412b 23938
a3828db0 23939# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
23940echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
23941echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 23942if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 23943 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 23944else
bec39cab
AC
23945 cat >conftest.$ac_ext <<_ACEOF
23946/* confdefs.h. */
23947_ACEOF
23948cat confdefs.h >>conftest.$ac_ext
23949cat >>conftest.$ac_ext <<_ACEOF
23950/* end confdefs.h. */
a3828db0
MK
23951#include <sys/types.h>
23952#include <sys/ptrace.h>
bec39cab
AC
23953int
23954main ()
23955{
a3828db0 23956PT_GETXMMREGS;
bec39cab
AC
23957 ;
23958 return 0;
23959}
23960_ACEOF
23961rm -f conftest.$ac_objext
23962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23963 (eval $ac_compile) 2>conftest.er1
23964 ac_status=$?
23965 grep -v '^ *+' conftest.er1 >conftest.err
23966 rm -f conftest.er1
23967 cat conftest.err >&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } &&
b4e70030
JB
23970 { ac_try='test -z "$ac_c_werror_flag"
23971 || test ! -s conftest.err'
bec39cab
AC
23972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23973 (eval $ac_try) 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; } &&
23977 { ac_try='test -s conftest.$ac_objext'
23978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); }; }; then
a3828db0 23983 gdb_cv_have_pt_getxmmregs=yes
3862412b 23984else
bec39cab
AC
23985 echo "$as_me: failed program was:" >&5
23986sed 's/^/| /' conftest.$ac_ext >&5
23987
b4e70030 23988gdb_cv_have_pt_getxmmregs=no
3862412b 23989fi
bec39cab 23990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
23991fi
23992
b4e70030
JB
23993echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
23994echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 23995if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
23996
23997cat >>confdefs.h <<\_ACEOF
a3828db0 23998#define HAVE_PT_GETXMMREGS 1
bec39cab 23999_ACEOF
3862412b 24000
97bf5e38 24001fi
3862412b 24002
eb368090 24003# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
24004
24005if test "${target}" = "${host}"; then
24006 case "${host}" in
97bf5e38 24007 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
24008
24009cat >>confdefs.h <<\_ACEOF
97bf5e38 24010#define NEW_PROC_API 1
bec39cab 24011_ACEOF
97bf5e38
MK
24012
24013 ;;
c162e8c9 24014 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f
SE
24015
24016cat >>confdefs.h <<\_ACEOF
97bf5e38 24017#define NEW_PROC_API 1
bec39cab 24018_ACEOF
c960c18f
AC
24019
24020 ;;
24021 mips-sgi-irix5*)
24022 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
24023
24024cat >>confdefs.h <<\_ACEOF
c960c18f 24025#define _KMEMUSER 1
bec39cab 24026_ACEOF
97bf5e38
MK
24027
24028 ;;
24029 esac
24030fi
24031
24032if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
24033 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
24034echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24035 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24037else
24038 cat >conftest.$ac_ext <<_ACEOF
24039/* confdefs.h. */
24040_ACEOF
24041cat confdefs.h >>conftest.$ac_ext
24042cat >>conftest.$ac_ext <<_ACEOF
24043/* end confdefs.h. */
596c9d4b
KB
24044
24045#define _SYSCALL32
24046#include <sys/procfs.h>
bec39cab
AC
24047int
24048main ()
24049{
97bf5e38 24050pstatus_t avar
bec39cab
AC
24051 ;
24052 return 0;
24053}
24054_ACEOF
24055rm -f conftest.$ac_objext
24056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24057 (eval $ac_compile) 2>conftest.er1
24058 ac_status=$?
24059 grep -v '^ *+' conftest.er1 >conftest.err
24060 rm -f conftest.er1
24061 cat conftest.err >&5
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); } &&
b4e70030
JB
24064 { ac_try='test -z "$ac_c_werror_flag"
24065 || test ! -s conftest.err'
bec39cab
AC
24066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24067 (eval $ac_try) 2>&5
24068 ac_status=$?
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); }; } &&
24071 { ac_try='test -s conftest.$ac_objext'
24072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24073 (eval $ac_try) 2>&5
24074 ac_status=$?
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); }; }; then
97bf5e38 24077 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 24078else
bec39cab
AC
24079 echo "$as_me: failed program was:" >&5
24080sed 's/^/| /' conftest.$ac_ext >&5
24081
b4e70030 24082bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 24083
596c9d4b 24084fi
bec39cab 24085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
24086fi
24087
97bf5e38 24088 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
24089
24090cat >>confdefs.h <<\_ACEOF
97bf5e38 24091#define HAVE_PSTATUS_T 1
bec39cab 24092_ACEOF
596c9d4b
KB
24093
24094 fi
b4e70030
JB
24095 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
24096echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 24097
b4e70030
JB
24098 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
24099echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24100 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 24102else
bec39cab
AC
24103 cat >conftest.$ac_ext <<_ACEOF
24104/* confdefs.h. */
24105_ACEOF
24106cat confdefs.h >>conftest.$ac_ext
24107cat >>conftest.$ac_ext <<_ACEOF
24108/* end confdefs.h. */
596c9d4b
KB
24109
24110#define _SYSCALL32
24111#include <sys/procfs.h>
bec39cab
AC
24112int
24113main ()
24114{
97bf5e38 24115prrun_t avar
bec39cab
AC
24116 ;
24117 return 0;
24118}
24119_ACEOF
24120rm -f conftest.$ac_objext
24121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24122 (eval $ac_compile) 2>conftest.er1
24123 ac_status=$?
24124 grep -v '^ *+' conftest.er1 >conftest.err
24125 rm -f conftest.er1
24126 cat conftest.err >&5
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); } &&
b4e70030
JB
24129 { ac_try='test -z "$ac_c_werror_flag"
24130 || test ! -s conftest.err'
bec39cab
AC
24131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132 (eval $ac_try) 2>&5
24133 ac_status=$?
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); }; } &&
24136 { ac_try='test -s conftest.$ac_objext'
24137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24138 (eval $ac_try) 2>&5
24139 ac_status=$?
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); }; }; then
97bf5e38 24142 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 24143else
bec39cab
AC
24144 echo "$as_me: failed program was:" >&5
24145sed 's/^/| /' conftest.$ac_ext >&5
24146
b4e70030 24147bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 24148
596c9d4b 24149fi
bec39cab 24150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
24151fi
24152
97bf5e38 24153 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
24154
24155cat >>confdefs.h <<\_ACEOF
97bf5e38 24156#define HAVE_PRRUN_T 1
bec39cab 24157_ACEOF
596c9d4b
KB
24158
24159 fi
b4e70030
JB
24160 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
24161echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 24162
b4e70030
JB
24163 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
24164echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24165 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
24166 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 24167else
bec39cab
AC
24168 cat >conftest.$ac_ext <<_ACEOF
24169/* confdefs.h. */
24170_ACEOF
24171cat confdefs.h >>conftest.$ac_ext
24172cat >>conftest.$ac_ext <<_ACEOF
24173/* end confdefs.h. */
596c9d4b
KB
24174
24175#define _SYSCALL32
24176#include <sys/procfs.h>
bec39cab
AC
24177int
24178main ()
24179{
97bf5e38 24180gregset_t avar
bec39cab
AC
24181 ;
24182 return 0;
24183}
24184_ACEOF
24185rm -f conftest.$ac_objext
24186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24187 (eval $ac_compile) 2>conftest.er1
24188 ac_status=$?
24189 grep -v '^ *+' conftest.er1 >conftest.err
24190 rm -f conftest.er1
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } &&
b4e70030
JB
24194 { ac_try='test -z "$ac_c_werror_flag"
24195 || test ! -s conftest.err'
bec39cab
AC
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24198 ac_status=$?
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; } &&
24201 { ac_try='test -s conftest.$ac_objext'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; }; then
97bf5e38 24207 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 24208else
bec39cab
AC
24209 echo "$as_me: failed program was:" >&5
24210sed 's/^/| /' conftest.$ac_ext >&5
24211
b4e70030 24212bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 24213
596c9d4b 24214fi
bec39cab 24215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
24216fi
24217
97bf5e38 24218 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
24219
24220cat >>confdefs.h <<\_ACEOF
97bf5e38 24221#define HAVE_GREGSET_T 1
bec39cab 24222_ACEOF
596c9d4b
KB
24223
24224 fi
b4e70030
JB
24225 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
24226echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 24227
b4e70030
JB
24228 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
24229echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24230 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
24231 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 24232else
bec39cab
AC
24233 cat >conftest.$ac_ext <<_ACEOF
24234/* confdefs.h. */
24235_ACEOF
24236cat confdefs.h >>conftest.$ac_ext
24237cat >>conftest.$ac_ext <<_ACEOF
24238/* end confdefs.h. */
97bf5e38
MK
24239
24240#define _SYSCALL32
d84dd0c5 24241#include <sys/procfs.h>
bec39cab
AC
24242int
24243main ()
24244{
97bf5e38 24245fpregset_t avar
bec39cab
AC
24246 ;
24247 return 0;
24248}
24249_ACEOF
24250rm -f conftest.$ac_objext
24251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24252 (eval $ac_compile) 2>conftest.er1
24253 ac_status=$?
24254 grep -v '^ *+' conftest.er1 >conftest.err
24255 rm -f conftest.er1
24256 cat conftest.err >&5
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); } &&
b4e70030
JB
24259 { ac_try='test -z "$ac_c_werror_flag"
24260 || test ! -s conftest.err'
bec39cab
AC
24261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262 (eval $ac_try) 2>&5
24263 ac_status=$?
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); }; } &&
24266 { ac_try='test -s conftest.$ac_objext'
24267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268 (eval $ac_try) 2>&5
24269 ac_status=$?
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); }; }; then
97bf5e38 24272 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 24273else
bec39cab
AC
24274 echo "$as_me: failed program was:" >&5
24275sed 's/^/| /' conftest.$ac_ext >&5
24276
b4e70030 24277bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 24278
d84dd0c5 24279fi
bec39cab 24280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
24281fi
24282
97bf5e38 24283 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
24284
24285cat >>confdefs.h <<\_ACEOF
97bf5e38 24286#define HAVE_FPREGSET_T 1
bec39cab 24287_ACEOF
d84dd0c5 24288
97bf5e38 24289 fi
b4e70030
JB
24290 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
24291echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 24292
b4e70030
JB
24293 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
24294echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24295 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
24296 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 24297else
bec39cab
AC
24298 cat >conftest.$ac_ext <<_ACEOF
24299/* confdefs.h. */
24300_ACEOF
24301cat confdefs.h >>conftest.$ac_ext
24302cat >>conftest.$ac_ext <<_ACEOF
24303/* end confdefs.h. */
c906108c 24304
97bf5e38
MK
24305#define _SYSCALL32
24306#include <sys/procfs.h>
bec39cab
AC
24307int
24308main ()
24309{
97bf5e38 24310prgregset_t avar
bec39cab
AC
24311 ;
24312 return 0;
24313}
24314_ACEOF
24315rm -f conftest.$ac_objext
24316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24317 (eval $ac_compile) 2>conftest.er1
24318 ac_status=$?
24319 grep -v '^ *+' conftest.er1 >conftest.err
24320 rm -f conftest.er1
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } &&
b4e70030
JB
24324 { ac_try='test -z "$ac_c_werror_flag"
24325 || test ! -s conftest.err'
bec39cab
AC
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest.$ac_objext'
24332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333 (eval $ac_try) 2>&5
24334 ac_status=$?
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); }; }; then
97bf5e38 24337 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 24338else
bec39cab
AC
24339 echo "$as_me: failed program was:" >&5
24340sed 's/^/| /' conftest.$ac_ext >&5
24341
b4e70030 24342bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 24343
c906108c 24344fi
bec39cab 24345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
24346fi
24347
97bf5e38 24348 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
24349
24350cat >>confdefs.h <<\_ACEOF
97bf5e38 24351#define HAVE_PRGREGSET_T 1
bec39cab 24352_ACEOF
c906108c 24353
97bf5e38 24354 fi
b4e70030
JB
24355 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
24356echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 24357
b4e70030
JB
24358 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
24359echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24360 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24362else
bec39cab
AC
24363 cat >conftest.$ac_ext <<_ACEOF
24364/* confdefs.h. */
24365_ACEOF
24366cat confdefs.h >>conftest.$ac_ext
24367cat >>conftest.$ac_ext <<_ACEOF
24368/* end confdefs.h. */
97bf5e38
MK
24369
24370#define _SYSCALL32
24371#include <sys/procfs.h>
bec39cab
AC
24372int
24373main ()
24374{
97bf5e38 24375prfpregset_t avar
bec39cab
AC
24376 ;
24377 return 0;
24378}
24379_ACEOF
24380rm -f conftest.$ac_objext
24381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24382 (eval $ac_compile) 2>conftest.er1
24383 ac_status=$?
24384 grep -v '^ *+' conftest.er1 >conftest.err
24385 rm -f conftest.er1
24386 cat conftest.err >&5
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); } &&
b4e70030
JB
24389 { ac_try='test -z "$ac_c_werror_flag"
24390 || test ! -s conftest.err'
bec39cab
AC
24391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24392 (eval $ac_try) 2>&5
24393 ac_status=$?
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); }; } &&
24396 { ac_try='test -s conftest.$ac_objext'
24397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 (eval $ac_try) 2>&5
24399 ac_status=$?
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; }; then
97bf5e38 24402 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 24403else
bec39cab
AC
24404 echo "$as_me: failed program was:" >&5
24405sed 's/^/| /' conftest.$ac_ext >&5
24406
b4e70030 24407bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 24408
d45fe813 24409fi
bec39cab 24410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24411fi
24412
97bf5e38 24413 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
24414
24415cat >>confdefs.h <<\_ACEOF
97bf5e38 24416#define HAVE_PRFPREGSET_T 1
bec39cab 24417_ACEOF
d45fe813 24418
97bf5e38 24419 fi
b4e70030
JB
24420 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
24421echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 24422
b4e70030
JB
24423 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
24424echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24425 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24427else
bec39cab
AC
24428 cat >conftest.$ac_ext <<_ACEOF
24429/* confdefs.h. */
24430_ACEOF
24431cat confdefs.h >>conftest.$ac_ext
24432cat >>conftest.$ac_ext <<_ACEOF
24433/* end confdefs.h. */
97bf5e38
MK
24434
24435#define _SYSCALL32
24436#include <sys/procfs.h>
bec39cab
AC
24437int
24438main ()
24439{
97bf5e38 24440prgregset32_t avar
bec39cab
AC
24441 ;
24442 return 0;
24443}
24444_ACEOF
24445rm -f conftest.$ac_objext
24446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24447 (eval $ac_compile) 2>conftest.er1
24448 ac_status=$?
24449 grep -v '^ *+' conftest.er1 >conftest.err
24450 rm -f conftest.er1
24451 cat conftest.err >&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } &&
b4e70030
JB
24454 { ac_try='test -z "$ac_c_werror_flag"
24455 || test ! -s conftest.err'
bec39cab
AC
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24458 ac_status=$?
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; } &&
24461 { ac_try='test -s conftest.$ac_objext'
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24464 ac_status=$?
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; }; then
97bf5e38 24467 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 24468else
bec39cab
AC
24469 echo "$as_me: failed program was:" >&5
24470sed 's/^/| /' conftest.$ac_ext >&5
24471
b4e70030 24472bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 24473
d45fe813 24474fi
bec39cab 24475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24476fi
24477
97bf5e38 24478 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
24479
24480cat >>confdefs.h <<\_ACEOF
97bf5e38 24481#define HAVE_PRGREGSET32_T 1
bec39cab 24482_ACEOF
d45fe813 24483
97bf5e38 24484 fi
b4e70030
JB
24485 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
24486echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 24487
b4e70030
JB
24488 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
24489echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24490 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
24491 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24492else
bec39cab
AC
24493 cat >conftest.$ac_ext <<_ACEOF
24494/* confdefs.h. */
24495_ACEOF
24496cat confdefs.h >>conftest.$ac_ext
24497cat >>conftest.$ac_ext <<_ACEOF
24498/* end confdefs.h. */
97bf5e38
MK
24499
24500#define _SYSCALL32
24501#include <sys/procfs.h>
bec39cab
AC
24502int
24503main ()
24504{
97bf5e38 24505prfpregset32_t avar
bec39cab
AC
24506 ;
24507 return 0;
24508}
24509_ACEOF
24510rm -f conftest.$ac_objext
24511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24512 (eval $ac_compile) 2>conftest.er1
24513 ac_status=$?
24514 grep -v '^ *+' conftest.er1 >conftest.err
24515 rm -f conftest.er1
24516 cat conftest.err >&5
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); } &&
b4e70030
JB
24519 { ac_try='test -z "$ac_c_werror_flag"
24520 || test ! -s conftest.err'
bec39cab
AC
24521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24522 (eval $ac_try) 2>&5
24523 ac_status=$?
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; } &&
24526 { ac_try='test -s conftest.$ac_objext'
24527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528 (eval $ac_try) 2>&5
24529 ac_status=$?
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; }; then
97bf5e38 24532 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 24533else
bec39cab
AC
24534 echo "$as_me: failed program was:" >&5
24535sed 's/^/| /' conftest.$ac_ext >&5
24536
b4e70030 24537bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 24538
d45fe813 24539fi
bec39cab 24540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24541fi
24542
97bf5e38 24543 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
24544
24545cat >>confdefs.h <<\_ACEOF
97bf5e38 24546#define HAVE_PRFPREGSET32_T 1
bec39cab 24547_ACEOF
d45fe813 24548
97bf5e38 24549 fi
b4e70030
JB
24550 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
24551echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 24552
b4e70030
JB
24553 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
24554echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24555 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
24556 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24557else
bec39cab
AC
24558 cat >conftest.$ac_ext <<_ACEOF
24559/* confdefs.h. */
24560_ACEOF
24561cat confdefs.h >>conftest.$ac_ext
24562cat >>conftest.$ac_ext <<_ACEOF
24563/* end confdefs.h. */
97bf5e38 24564
d45fe813 24565#define _SYSCALL32
97bf5e38 24566#include <sys/procfs.h>
bec39cab
AC
24567int
24568main ()
24569{
97bf5e38 24570lwpid_t avar
bec39cab
AC
24571 ;
24572 return 0;
24573}
24574_ACEOF
24575rm -f conftest.$ac_objext
24576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24577 (eval $ac_compile) 2>conftest.er1
24578 ac_status=$?
24579 grep -v '^ *+' conftest.er1 >conftest.err
24580 rm -f conftest.er1
24581 cat conftest.err >&5
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); } &&
b4e70030
JB
24584 { ac_try='test -z "$ac_c_werror_flag"
24585 || test ! -s conftest.err'
bec39cab
AC
24586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587 (eval $ac_try) 2>&5
24588 ac_status=$?
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); }; } &&
24591 { ac_try='test -s conftest.$ac_objext'
24592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593 (eval $ac_try) 2>&5
24594 ac_status=$?
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; }; then
97bf5e38 24597 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 24598else
bec39cab
AC
24599 echo "$as_me: failed program was:" >&5
24600sed 's/^/| /' conftest.$ac_ext >&5
24601
b4e70030 24602bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 24603
d45fe813 24604fi
bec39cab 24605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24606fi
24607
97bf5e38 24608 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
24609
24610cat >>confdefs.h <<\_ACEOF
97bf5e38 24611#define HAVE_LWPID_T 1
bec39cab 24612_ACEOF
d45fe813 24613
97bf5e38 24614 fi
b4e70030
JB
24615 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
24616echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 24617
b4e70030
JB
24618 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
24619echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24620 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
24621 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 24622else
bec39cab
AC
24623 cat >conftest.$ac_ext <<_ACEOF
24624/* confdefs.h. */
24625_ACEOF
24626cat confdefs.h >>conftest.$ac_ext
24627cat >>conftest.$ac_ext <<_ACEOF
24628/* end confdefs.h. */
c906108c 24629
97bf5e38
MK
24630#define _SYSCALL32
24631#include <sys/procfs.h>
bec39cab
AC
24632int
24633main ()
24634{
97bf5e38 24635psaddr_t avar
bec39cab
AC
24636 ;
24637 return 0;
24638}
24639_ACEOF
24640rm -f conftest.$ac_objext
24641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24642 (eval $ac_compile) 2>conftest.er1
24643 ac_status=$?
24644 grep -v '^ *+' conftest.er1 >conftest.err
24645 rm -f conftest.er1
24646 cat conftest.err >&5
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); } &&
b4e70030
JB
24649 { ac_try='test -z "$ac_c_werror_flag"
24650 || test ! -s conftest.err'
bec39cab
AC
24651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24652 (eval $ac_try) 2>&5
24653 ac_status=$?
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); }; } &&
24656 { ac_try='test -s conftest.$ac_objext'
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; }; then
97bf5e38 24662 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 24663else
bec39cab
AC
24664 echo "$as_me: failed program was:" >&5
24665sed 's/^/| /' conftest.$ac_ext >&5
24666
b4e70030 24667bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 24668
c906108c 24669fi
bec39cab 24670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
24671fi
24672
97bf5e38 24673 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
24674
24675cat >>confdefs.h <<\_ACEOF
97bf5e38 24676#define HAVE_PSADDR_T 1
bec39cab 24677_ACEOF
c906108c 24678
97bf5e38 24679 fi
b4e70030
JB
24680 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
24681echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 24682
b4e70030
JB
24683 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
24684echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24685 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
24686 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 24687else
bec39cab
AC
24688 cat >conftest.$ac_ext <<_ACEOF
24689/* confdefs.h. */
24690_ACEOF
24691cat confdefs.h >>conftest.$ac_ext
24692cat >>conftest.$ac_ext <<_ACEOF
24693/* end confdefs.h. */
c906108c 24694
97bf5e38
MK
24695#define _SYSCALL32
24696#include <sys/procfs.h>
bec39cab
AC
24697int
24698main ()
24699{
97bf5e38 24700prsysent_t avar
bec39cab
AC
24701 ;
24702 return 0;
24703}
24704_ACEOF
24705rm -f conftest.$ac_objext
24706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24707 (eval $ac_compile) 2>conftest.er1
24708 ac_status=$?
24709 grep -v '^ *+' conftest.er1 >conftest.err
24710 rm -f conftest.er1
24711 cat conftest.err >&5
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); } &&
b4e70030
JB
24714 { ac_try='test -z "$ac_c_werror_flag"
24715 || test ! -s conftest.err'
bec39cab
AC
24716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24717 (eval $ac_try) 2>&5
24718 ac_status=$?
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); }; } &&
24721 { ac_try='test -s conftest.$ac_objext'
24722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24723 (eval $ac_try) 2>&5
24724 ac_status=$?
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); }; }; then
97bf5e38 24727 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 24728else
bec39cab
AC
24729 echo "$as_me: failed program was:" >&5
24730sed 's/^/| /' conftest.$ac_ext >&5
24731
b4e70030 24732bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 24733
c906108c 24734fi
bec39cab 24735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
24736fi
24737
97bf5e38 24738 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
24739
24740cat >>confdefs.h <<\_ACEOF
97bf5e38 24741#define HAVE_PRSYSENT_T 1
bec39cab 24742_ACEOF
c906108c 24743
97bf5e38 24744 fi
b4e70030
JB
24745 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
24746echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 24747
b4e70030
JB
24748 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
24749echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24750 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
24751 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 24752else
bec39cab
AC
24753 cat >conftest.$ac_ext <<_ACEOF
24754/* confdefs.h. */
24755_ACEOF
24756cat confdefs.h >>conftest.$ac_ext
24757cat >>conftest.$ac_ext <<_ACEOF
24758/* end confdefs.h. */
c906108c 24759
97bf5e38
MK
24760#define _SYSCALL32
24761#include <sys/procfs.h>
bec39cab
AC
24762int
24763main ()
24764{
97bf5e38 24765pr_sigset_t avar
bec39cab
AC
24766 ;
24767 return 0;
24768}
24769_ACEOF
24770rm -f conftest.$ac_objext
24771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24772 (eval $ac_compile) 2>conftest.er1
24773 ac_status=$?
24774 grep -v '^ *+' conftest.er1 >conftest.err
24775 rm -f conftest.er1
24776 cat conftest.err >&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
b4e70030
JB
24779 { ac_try='test -z "$ac_c_werror_flag"
24780 || test ! -s conftest.err'
bec39cab
AC
24781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); }; } &&
24786 { ac_try='test -s conftest.$ac_objext'
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; }; then
97bf5e38 24792 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 24793else
bec39cab
AC
24794 echo "$as_me: failed program was:" >&5
24795sed 's/^/| /' conftest.$ac_ext >&5
24796
b4e70030 24797bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 24798
c906108c 24799fi
bec39cab 24800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
24801fi
24802
97bf5e38 24803 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
24804
24805cat >>confdefs.h <<\_ACEOF
97bf5e38 24806#define HAVE_PR_SIGSET_T 1
bec39cab 24807_ACEOF
c906108c 24808
97bf5e38 24809 fi
b4e70030
JB
24810 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
24811echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 24812
b4e70030
JB
24813 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
24814echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24815 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
24816 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 24817else
bec39cab
AC
24818 cat >conftest.$ac_ext <<_ACEOF
24819/* confdefs.h. */
24820_ACEOF
24821cat confdefs.h >>conftest.$ac_ext
24822cat >>conftest.$ac_ext <<_ACEOF
24823/* end confdefs.h. */
c906108c 24824
97bf5e38
MK
24825#define _SYSCALL32
24826#include <sys/procfs.h>
bec39cab
AC
24827int
24828main ()
24829{
97bf5e38 24830pr_sigaction64_t avar
bec39cab
AC
24831 ;
24832 return 0;
24833}
24834_ACEOF
24835rm -f conftest.$ac_objext
24836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24837 (eval $ac_compile) 2>conftest.er1
24838 ac_status=$?
24839 grep -v '^ *+' conftest.er1 >conftest.err
24840 rm -f conftest.er1
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } &&
b4e70030
JB
24844 { ac_try='test -z "$ac_c_werror_flag"
24845 || test ! -s conftest.err'
bec39cab
AC
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } &&
24851 { ac_try='test -s conftest.$ac_objext'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; }; then
97bf5e38 24857 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 24858else
bec39cab
AC
24859 echo "$as_me: failed program was:" >&5
24860sed 's/^/| /' conftest.$ac_ext >&5
24861
b4e70030 24862bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 24863
c906108c 24864fi
bec39cab 24865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
24866fi
24867
97bf5e38 24868 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
24869
24870cat >>confdefs.h <<\_ACEOF
97bf5e38 24871#define HAVE_PR_SIGACTION64_T 1
bec39cab 24872_ACEOF
c906108c 24873
97bf5e38 24874 fi
b4e70030
JB
24875 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
24876echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 24877
b4e70030
JB
24878 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
24879echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24880 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 24882else
bec39cab
AC
24883 cat >conftest.$ac_ext <<_ACEOF
24884/* confdefs.h. */
24885_ACEOF
24886cat confdefs.h >>conftest.$ac_ext
24887cat >>conftest.$ac_ext <<_ACEOF
24888/* end confdefs.h. */
97bf5e38
MK
24889
24890#define _SYSCALL32
24891#include <sys/procfs.h>
bec39cab
AC
24892int
24893main ()
24894{
97bf5e38 24895pr_siginfo64_t avar
bec39cab
AC
24896 ;
24897 return 0;
24898}
24899_ACEOF
24900rm -f conftest.$ac_objext
24901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24902 (eval $ac_compile) 2>conftest.er1
24903 ac_status=$?
24904 grep -v '^ *+' conftest.er1 >conftest.err
24905 rm -f conftest.er1
24906 cat conftest.err >&5
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } &&
b4e70030
JB
24909 { ac_try='test -z "$ac_c_werror_flag"
24910 || test ! -s conftest.err'
bec39cab
AC
24911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912 (eval $ac_try) 2>&5
24913 ac_status=$?
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); }; } &&
24916 { ac_try='test -s conftest.$ac_objext'
24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; }; then
97bf5e38
MK
24922 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
24923else
bec39cab
AC
24924 echo "$as_me: failed program was:" >&5
24925sed 's/^/| /' conftest.$ac_ext >&5
24926
b4e70030 24927bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 24928
97bf5e38 24929fi
bec39cab 24930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 24931fi
c906108c 24932
97bf5e38 24933 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
24934
24935cat >>confdefs.h <<\_ACEOF
97bf5e38 24936#define HAVE_PR_SIGINFO64_T 1
bec39cab 24937_ACEOF
c906108c 24938
97bf5e38 24939 fi
b4e70030
JB
24940 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
24941echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
24942
24943
97bf5e38
MK
24944
24945
24946
97bf5e38 24947 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
24948 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
24949echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
24950 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
24951 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
24952else
24953 if test "$cross_compiling" = yes; then
97bf5e38 24954 gdb_cv_prfpregset_t_broken=yes
c906108c 24955else
bec39cab
AC
24956 cat >conftest.$ac_ext <<_ACEOF
24957/* confdefs.h. */
24958_ACEOF
24959cat confdefs.h >>conftest.$ac_ext
24960cat >>conftest.$ac_ext <<_ACEOF
24961/* end confdefs.h. */
97bf5e38
MK
24962#include <sys/procfs.h>
24963 int main ()
24964 {
24965 if (sizeof (prfpregset_t) == sizeof (void *))
24966 return 1;
24967 return 0;
24968 }
bec39cab
AC
24969_ACEOF
24970rm -f conftest$ac_exeext
24971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24972 (eval $ac_link) 2>&5
24973 ac_status=$?
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977 (eval $ac_try) 2>&5
24978 ac_status=$?
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; }; then
97bf5e38 24981 gdb_cv_prfpregset_t_broken=no
c906108c 24982else
bec39cab
AC
24983 echo "$as_me: program exited with status $ac_status" >&5
24984echo "$as_me: failed program was:" >&5
24985sed 's/^/| /' conftest.$ac_ext >&5
24986
24987( exit $ac_status )
24988gdb_cv_prfpregset_t_broken=yes
c906108c 24989fi
b4e70030 24990rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 24991fi
c906108c
SS
24992fi
24993
b4e70030
JB
24994 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
24995echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 24996 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
24997
24998cat >>confdefs.h <<\_ACEOF
97bf5e38 24999#define PRFPREGSET_T_BROKEN 1
bec39cab 25000_ACEOF
c906108c 25001
97bf5e38
MK
25002 fi
25003 fi
c906108c 25004
bec39cab 25005
b4e70030
JB
25006 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
25007echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
25008 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
25009 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25010else
bec39cab
AC
25011 cat >conftest.$ac_ext <<_ACEOF
25012/* confdefs.h. */
25013_ACEOF
25014cat confdefs.h >>conftest.$ac_ext
25015cat >>conftest.$ac_ext <<_ACEOF
25016/* end confdefs.h. */
97bf5e38
MK
25017#include <unistd.h>
25018#include <sys/types.h>
25019#include <sys/procfs.h>
25020
bec39cab
AC
25021int
25022main ()
25023{
97bf5e38
MK
25024
25025 int dummy;;
25026 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
25027
25028 ;
25029 return 0;
25030}
25031_ACEOF
25032rm -f conftest.$ac_objext
25033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25034 (eval $ac_compile) 2>conftest.er1
25035 ac_status=$?
25036 grep -v '^ *+' conftest.er1 >conftest.err
25037 rm -f conftest.er1
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } &&
b4e70030
JB
25041 { ac_try='test -z "$ac_c_werror_flag"
25042 || test ! -s conftest.err'
bec39cab
AC
25043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25044 (eval $ac_try) 2>&5
25045 ac_status=$?
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); }; } &&
25048 { ac_try='test -s conftest.$ac_objext'
25049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050 (eval $ac_try) 2>&5
25051 ac_status=$?
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); }; }; then
97bf5e38 25054 gdb_cv_have_procfs_piocset=yes
c906108c 25055else
bec39cab
AC
25056 echo "$as_me: failed program was:" >&5
25057sed 's/^/| /' conftest.$ac_ext >&5
25058
b4e70030 25059gdb_cv_have_procfs_piocset=no
c906108c 25060fi
bec39cab 25061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 25062fi
97bf5e38 25063
b4e70030
JB
25064 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
25065echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 25066 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
25067
25068cat >>confdefs.h <<\_ACEOF
97bf5e38 25069#define HAVE_PROCFS_PIOCSET 1
bec39cab 25070_ACEOF
97bf5e38
MK
25071
25072 fi
c906108c 25073fi
c906108c 25074
97bf5e38 25075if test ${host} = ${target} ; then
bec39cab 25076
b4e70030
JB
25077 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
25078echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
25079 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
25080 echo $ECHO_N "(cached) $ECHO_C" >&6
25081else
25082 cat >conftest.$ac_ext <<_ACEOF
25083/* confdefs.h. */
25084_ACEOF
25085cat confdefs.h >>conftest.$ac_ext
25086cat >>conftest.$ac_ext <<_ACEOF
25087/* end confdefs.h. */
97bf5e38 25088#include <link.h>
bec39cab
AC
25089int
25090main ()
25091{
97bf5e38 25092struct link_map lm; (void) lm.l_addr;
bec39cab
AC
25093 ;
25094 return 0;
25095}
25096_ACEOF
25097rm -f conftest.$ac_objext
25098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25099 (eval $ac_compile) 2>conftest.er1
25100 ac_status=$?
25101 grep -v '^ *+' conftest.er1 >conftest.err
25102 rm -f conftest.er1
25103 cat conftest.err >&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } &&
b4e70030
JB
25106 { ac_try='test -z "$ac_c_werror_flag"
25107 || test ! -s conftest.err'
bec39cab
AC
25108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25109 (eval $ac_try) 2>&5
25110 ac_status=$?
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); }; } &&
25113 { ac_try='test -s conftest.$ac_objext'
25114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115 (eval $ac_try) 2>&5
25116 ac_status=$?
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; }; then
97bf5e38 25119 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 25120else
bec39cab
AC
25121 echo "$as_me: failed program was:" >&5
25122sed 's/^/| /' conftest.$ac_ext >&5
25123
b4e70030 25124gdb_cv_have_struct_link_map_with_l_members=no
c906108c 25125fi
bec39cab 25126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
25127fi
25128
b4e70030
JB
25129 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
25130echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 25131 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
25132
25133cat >>confdefs.h <<\_ACEOF
97bf5e38 25134#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 25135_ACEOF
97bf5e38
MK
25136
25137 fi
25138
bec39cab 25139
b4e70030
JB
25140 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
25141echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
25142 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
25143 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25144else
bec39cab
AC
25145 cat >conftest.$ac_ext <<_ACEOF
25146/* confdefs.h. */
25147_ACEOF
25148cat confdefs.h >>conftest.$ac_ext
25149cat >>conftest.$ac_ext <<_ACEOF
25150/* end confdefs.h. */
97bf5e38
MK
25151#include <sys/types.h>
25152#include <link.h>
bec39cab
AC
25153int
25154main ()
25155{
97bf5e38 25156struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
25157 ;
25158 return 0;
25159}
25160_ACEOF
25161rm -f conftest.$ac_objext
25162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25163 (eval $ac_compile) 2>conftest.er1
25164 ac_status=$?
25165 grep -v '^ *+' conftest.er1 >conftest.err
25166 rm -f conftest.er1
25167 cat conftest.err >&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
b4e70030
JB
25170 { ac_try='test -z "$ac_c_werror_flag"
25171 || test ! -s conftest.err'
bec39cab
AC
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25174 ac_status=$?
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; } &&
25177 { ac_try='test -s conftest.$ac_objext'
25178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; }; then
97bf5e38
MK
25183 gdb_cv_have_struct_link_map_with_lm_members=yes
25184else
bec39cab
AC
25185 echo "$as_me: failed program was:" >&5
25186sed 's/^/| /' conftest.$ac_ext >&5
25187
b4e70030 25188gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 25189fi
bec39cab 25190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 25191fi
c906108c 25192
b4e70030
JB
25193 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
25194echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 25195 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
25196
25197cat >>confdefs.h <<\_ACEOF
97bf5e38 25198#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 25199_ACEOF
97bf5e38
MK
25200
25201 fi
25202
bec39cab 25203
b4e70030
JB
25204 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
25205echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
25206 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
25207 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25208else
bec39cab
AC
25209 cat >conftest.$ac_ext <<_ACEOF
25210/* confdefs.h. */
25211_ACEOF
25212cat confdefs.h >>conftest.$ac_ext
25213cat >>conftest.$ac_ext <<_ACEOF
25214/* end confdefs.h. */
97bf5e38
MK
25215#include <sys/types.h>
25216#ifdef HAVE_NLIST_H
25217#include <nlist.h>
25218#endif
25219#include <link.h>
bec39cab
AC
25220int
25221main ()
25222{
97bf5e38 25223struct so_map lm; (void) lm.som_addr;
bec39cab
AC
25224 ;
25225 return 0;
25226}
25227_ACEOF
25228rm -f conftest.$ac_objext
25229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25230 (eval $ac_compile) 2>conftest.er1
25231 ac_status=$?
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
b4e70030
JB
25237 { ac_try='test -z "$ac_c_werror_flag"
25238 || test ! -s conftest.err'
bec39cab
AC
25239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; } &&
25244 { ac_try='test -s conftest.$ac_objext'
25245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25247 ac_status=$?
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; }; then
97bf5e38
MK
25250 gdb_cv_have_struct_so_map_with_som_members=yes
25251else
bec39cab
AC
25252 echo "$as_me: failed program was:" >&5
25253sed 's/^/| /' conftest.$ac_ext >&5
25254
b4e70030 25255gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 25256fi
bec39cab 25257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25258fi
c906108c 25259
b4e70030
JB
25260 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
25261echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 25262 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
25263
25264cat >>confdefs.h <<\_ACEOF
97bf5e38 25265#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 25266_ACEOF
c906108c 25267
97bf5e38 25268 fi
c906108c 25269
bec39cab 25270
b4e70030
JB
25271 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
25272echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
25273 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25275else
bec39cab
AC
25276 cat >conftest.$ac_ext <<_ACEOF
25277/* confdefs.h. */
25278_ACEOF
25279cat confdefs.h >>conftest.$ac_ext
25280cat >>conftest.$ac_ext <<_ACEOF
25281/* end confdefs.h. */
97bf5e38
MK
25282#define _SYSCALL32
25283#include <sys/link.h>
bec39cab
AC
25284int
25285main ()
25286{
97bf5e38 25287struct link_map32 l;
bec39cab
AC
25288 ;
25289 return 0;
25290}
25291_ACEOF
25292rm -f conftest.$ac_objext
25293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25294 (eval $ac_compile) 2>conftest.er1
25295 ac_status=$?
25296 grep -v '^ *+' conftest.er1 >conftest.err
25297 rm -f conftest.er1
25298 cat conftest.err >&5
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); } &&
b4e70030
JB
25301 { ac_try='test -z "$ac_c_werror_flag"
25302 || test ! -s conftest.err'
bec39cab
AC
25303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25304 (eval $ac_try) 2>&5
25305 ac_status=$?
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); }; } &&
25308 { ac_try='test -s conftest.$ac_objext'
25309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25310 (eval $ac_try) 2>&5
25311 ac_status=$?
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); }; }; then
97bf5e38
MK
25314 gdb_cv_have_struct_link_map32=yes
25315else
bec39cab
AC
25316 echo "$as_me: failed program was:" >&5
25317sed 's/^/| /' conftest.$ac_ext >&5
25318
b4e70030 25319gdb_cv_have_struct_link_map32=no
97bf5e38 25320fi
bec39cab 25321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25322fi
c906108c 25323
b4e70030
JB
25324 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
25325echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 25326 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
25327
25328cat >>confdefs.h <<\_ACEOF
97bf5e38 25329#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 25330_ACEOF
c906108c 25331
60ca704f
SE
25332
25333cat >>confdefs.h <<\_ACEOF
97bf5e38 25334#define _SYSCALL32 1
bec39cab 25335_ACEOF
c906108c 25336
97bf5e38
MK
25337 fi
25338fi
c906108c 25339
bc8bcb4b 25340# Check if the compiler supports the `long long' type.
c906108c 25341
b4e70030
JB
25342echo "$as_me:$LINENO: checking for long long support in compiler" >&5
25343echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
25344if test "${gdb_cv_c_long_long+set}" = set; then
25345 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25346else
bec39cab
AC
25347 cat >conftest.$ac_ext <<_ACEOF
25348/* confdefs.h. */
25349_ACEOF
25350cat confdefs.h >>conftest.$ac_ext
25351cat >>conftest.$ac_ext <<_ACEOF
25352/* end confdefs.h. */
bc8bcb4b 25353extern long long foo;
bec39cab
AC
25354int
25355main ()
25356{
bc8bcb4b 25357switch (foo & 2) { case 0: return 1; }
bec39cab
AC
25358 ;
25359 return 0;
25360}
25361_ACEOF
25362rm -f conftest.$ac_objext
25363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25364 (eval $ac_compile) 2>conftest.er1
25365 ac_status=$?
25366 grep -v '^ *+' conftest.er1 >conftest.err
25367 rm -f conftest.er1
25368 cat conftest.err >&5
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); } &&
b4e70030
JB
25371 { ac_try='test -z "$ac_c_werror_flag"
25372 || test ! -s conftest.err'
bec39cab
AC
25373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374 (eval $ac_try) 2>&5
25375 ac_status=$?
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); }; } &&
25378 { ac_try='test -s conftest.$ac_objext'
25379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380 (eval $ac_try) 2>&5
25381 ac_status=$?
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; }; then
97bf5e38
MK
25384 gdb_cv_c_long_long=yes
25385else
bec39cab
AC
25386 echo "$as_me: failed program was:" >&5
25387sed 's/^/| /' conftest.$ac_ext >&5
25388
b4e70030 25389gdb_cv_c_long_long=no
97bf5e38 25390fi
bec39cab 25391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25392fi
b4e70030
JB
25393echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
25394echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 25395if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
25396
25397cat >>confdefs.h <<\_ACEOF
97bf5e38 25398#define CC_HAS_LONG_LONG 1
bec39cab 25399_ACEOF
97bf5e38
MK
25400
25401fi
25402
bc8bcb4b 25403# Check if the compiler and runtime support printing long longs.
97bf5e38 25404
b4e70030
JB
25405echo "$as_me:$LINENO: checking for long long support in printf" >&5
25406echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
25407if test "${gdb_cv_printf_has_long_long+set}" = set; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
25409else
25410 if test "$cross_compiling" = yes; then
25411 gdb_cv_printf_has_long_long=no
25412else
bec39cab
AC
25413 cat >conftest.$ac_ext <<_ACEOF
25414/* confdefs.h. */
25415_ACEOF
25416cat confdefs.h >>conftest.$ac_ext
25417cat >>conftest.$ac_ext <<_ACEOF
25418/* end confdefs.h. */
bc8bcb4b
MK
25419$ac_includes_default
25420int
25421main ()
25422{
25423char buf[32];
97bf5e38
MK
25424 long long l = 0;
25425 l = (l << 16) + 0x0123;
25426 l = (l << 16) + 0x4567;
25427 l = (l << 16) + 0x89ab;
25428 l = (l << 16) + 0xcdef;
25429 sprintf (buf, "0x%016llx", l);
25430 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
25431 ;
25432 return 0;
c906108c 25433}
bec39cab
AC
25434_ACEOF
25435rm -f conftest$ac_exeext
25436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25437 (eval $ac_link) 2>&5
25438 ac_status=$?
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25443 ac_status=$?
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; }; then
97bf5e38
MK
25446 gdb_cv_printf_has_long_long=yes
25447else
bec39cab
AC
25448 echo "$as_me: program exited with status $ac_status" >&5
25449echo "$as_me: failed program was:" >&5
25450sed 's/^/| /' conftest.$ac_ext >&5
25451
25452( exit $ac_status )
25453gdb_cv_printf_has_long_long=no
97bf5e38 25454fi
b4e70030 25455rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 25456fi
97bf5e38 25457fi
b4e70030
JB
25458echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
25459echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 25460if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
25461
25462cat >>confdefs.h <<\_ACEOF
97bf5e38 25463#define PRINTF_HAS_LONG_LONG 1
bec39cab 25464_ACEOF
97bf5e38
MK
25465
25466fi
97bf5e38 25467
1a619819
LM
25468# Check if the compiler and runtime support printing decfloats.
25469
25470echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
25471echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
25472if test "${gdb_cv_printf_has_decfloat+set}" = set; then
25473 echo $ECHO_N "(cached) $ECHO_C" >&6
25474else
25475 if test "$cross_compiling" = yes; then
25476 gdb_cv_printf_has_decfloat=no
25477else
25478 cat >conftest.$ac_ext <<_ACEOF
25479/* confdefs.h. */
25480_ACEOF
25481cat confdefs.h >>conftest.$ac_ext
25482cat >>conftest.$ac_ext <<_ACEOF
25483/* end confdefs.h. */
25484$ac_includes_default
25485int
25486main ()
25487{
25488char buf[64];
25489 _Decimal32 d32 = 1.2345df;
25490 _Decimal64 d64 = 1.2345dd;
25491 _Decimal128 d128 = 1.2345dl;
25492 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
25493 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
25494 ;
25495 return 0;
25496}
25497_ACEOF
25498rm -f conftest$ac_exeext
25499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25500 (eval $ac_link) 2>&5
25501 ac_status=$?
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; }; then
25509 gdb_cv_printf_has_decfloat=yes
25510else
25511 echo "$as_me: program exited with status $ac_status" >&5
25512echo "$as_me: failed program was:" >&5
25513sed 's/^/| /' conftest.$ac_ext >&5
25514
25515( exit $ac_status )
25516gdb_cv_printf_has_decfloat=no
25517fi
25518rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25519fi
25520fi
25521echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
25522echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
25523if test $gdb_cv_printf_has_decfloat = yes; then
25524
25525cat >>confdefs.h <<\_ACEOF
25526#define PRINTF_HAS_DECFLOAT 1
25527_ACEOF
25528
25529fi
25530
bc8bcb4b
MK
25531# Check if the compiler supports the `long double' type. We can't use
25532# AC_C_LONG_DOUBLE because that one does additional checks on the
25533# constants defined in <float.h> that fail on some systems,
25534# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 25535
b4e70030
JB
25536echo "$as_me:$LINENO: checking for long double support in compiler" >&5
25537echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 25538if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 25539 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25540else
bec39cab
AC
25541 cat >conftest.$ac_ext <<_ACEOF
25542/* confdefs.h. */
25543_ACEOF
25544cat confdefs.h >>conftest.$ac_ext
25545cat >>conftest.$ac_ext <<_ACEOF
25546/* end confdefs.h. */
97bf5e38 25547long double foo;
bec39cab
AC
25548_ACEOF
25549rm -f conftest.$ac_objext
25550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25551 (eval $ac_compile) 2>conftest.er1
25552 ac_status=$?
25553 grep -v '^ *+' conftest.er1 >conftest.err
25554 rm -f conftest.er1
25555 cat conftest.err >&5
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); } &&
b4e70030
JB
25558 { ac_try='test -z "$ac_c_werror_flag"
25559 || test ! -s conftest.err'
bec39cab
AC
25560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25561 (eval $ac_try) 2>&5
25562 ac_status=$?
25563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25564 (exit $ac_status); }; } &&
25565 { ac_try='test -s conftest.$ac_objext'
25566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25567 (eval $ac_try) 2>&5
25568 ac_status=$?
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); }; }; then
bc8bcb4b 25571 gdb_cv_c_long_double=yes
97bf5e38 25572else
bec39cab
AC
25573 echo "$as_me: failed program was:" >&5
25574sed 's/^/| /' conftest.$ac_ext >&5
25575
b4e70030 25576gdb_cv_c_long_double=no
97bf5e38 25577fi
bec39cab 25578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25579fi
b4e70030
JB
25580echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
25581echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 25582if test $gdb_cv_c_long_double = yes; then
c906108c 25583
bc8bcb4b 25584cat >>confdefs.h <<\_ACEOF
97bf5e38 25585#define HAVE_LONG_DOUBLE 1
bec39cab 25586_ACEOF
97bf5e38
MK
25587
25588fi
25589
bc8bcb4b 25590# Check if the compiler and runtime support printing long doubles.
97bf5e38 25591
b4e70030
JB
25592echo "$as_me:$LINENO: checking for long double support in printf" >&5
25593echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
25594if test "${gdb_cv_printf_has_long_double+set}" = set; then
25595 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
25596else
25597 if test "$cross_compiling" = yes; then
25598 gdb_cv_printf_has_long_double=no
25599else
bec39cab
AC
25600 cat >conftest.$ac_ext <<_ACEOF
25601/* confdefs.h. */
25602_ACEOF
25603cat confdefs.h >>conftest.$ac_ext
25604cat >>conftest.$ac_ext <<_ACEOF
25605/* end confdefs.h. */
bc8bcb4b
MK
25606$ac_includes_default
25607int
25608main ()
25609{
25610char buf[16];
97bf5e38
MK
25611 long double f = 3.141592653;
25612 sprintf (buf, "%Lg", f);
25613 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
25614 ;
25615 return 0;
97bf5e38 25616}
bec39cab
AC
25617_ACEOF
25618rm -f conftest$ac_exeext
25619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25620 (eval $ac_link) 2>&5
25621 ac_status=$?
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625 (eval $ac_try) 2>&5
25626 ac_status=$?
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; }; then
97bf5e38 25629 gdb_cv_printf_has_long_double=yes
c906108c 25630else
bec39cab
AC
25631 echo "$as_me: program exited with status $ac_status" >&5
25632echo "$as_me: failed program was:" >&5
25633sed 's/^/| /' conftest.$ac_ext >&5
25634
25635( exit $ac_status )
25636gdb_cv_printf_has_long_double=no
c906108c 25637fi
b4e70030 25638rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 25639fi
c906108c 25640fi
b4e70030
JB
25641echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
25642echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 25643if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
25644
25645cat >>confdefs.h <<\_ACEOF
97bf5e38 25646#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 25647_ACEOF
97bf5e38
MK
25648
25649fi
97bf5e38 25650
bc8bcb4b 25651# Check if the compiler and runtime support scanning long doubles.
97bf5e38 25652
b4e70030
JB
25653echo "$as_me:$LINENO: checking for long double support in scanf" >&5
25654echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
25655if test "${gdb_cv_scanf_has_long_double+set}" = set; then
25656 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
25657else
25658 if test "$cross_compiling" = yes; then
25659 gdb_cv_scanf_has_long_double=no
25660else
bec39cab
AC
25661 cat >conftest.$ac_ext <<_ACEOF
25662/* confdefs.h. */
25663_ACEOF
25664cat confdefs.h >>conftest.$ac_ext
25665cat >>conftest.$ac_ext <<_ACEOF
25666/* end confdefs.h. */
bc8bcb4b
MK
25667#include <stdio.h>
25668int
25669main ()
25670{
25671char *buf = "3.141592653";
97bf5e38
MK
25672 long double f = 0;
25673 sscanf (buf, "%Lg", &f);
25674 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
25675 ;
25676 return 0;
97bf5e38 25677}
bec39cab
AC
25678_ACEOF
25679rm -f conftest$ac_exeext
25680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25681 (eval $ac_link) 2>&5
25682 ac_status=$?
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
97bf5e38
MK
25690 gdb_cv_scanf_has_long_double=yes
25691else
bec39cab
AC
25692 echo "$as_me: program exited with status $ac_status" >&5
25693echo "$as_me: failed program was:" >&5
25694sed 's/^/| /' conftest.$ac_ext >&5
25695
25696( exit $ac_status )
25697gdb_cv_scanf_has_long_double=no
97bf5e38 25698fi
b4e70030 25699rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 25700fi
c906108c 25701fi
b4e70030
JB
25702echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
25703echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 25704if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
25705
25706cat >>confdefs.h <<\_ACEOF
97bf5e38 25707#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 25708_ACEOF
97bf5e38
MK
25709
25710fi
c906108c 25711
438013df
AO
25712case ${host_os} in
25713aix*)
b4e70030
JB
25714 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
25715echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
25716if test "${gdb_cv_bigtoc+set}" = set; then
25717 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 25718else
bec39cab 25719
438013df
AO
25720 SAVE_LDFLAGS=$LDFLAGS
25721
25722 case $GCC in
25723 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
25724 *) gdb_cv_bigtoc=-bbigtoc ;;
25725 esac
25726
25727 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
25728 cat >conftest.$ac_ext <<_ACEOF
25729/* confdefs.h. */
25730_ACEOF
25731cat confdefs.h >>conftest.$ac_ext
25732cat >>conftest.$ac_ext <<_ACEOF
25733/* end confdefs.h. */
438013df 25734
bec39cab
AC
25735int
25736main ()
25737{
438013df 25738int i;
bec39cab
AC
25739 ;
25740 return 0;
25741}
25742_ACEOF
25743rm -f conftest.$ac_objext conftest$ac_exeext
25744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25745 (eval $ac_link) 2>conftest.er1
25746 ac_status=$?
25747 grep -v '^ *+' conftest.er1 >conftest.err
25748 rm -f conftest.er1
25749 cat conftest.err >&5
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } &&
b4e70030
JB
25752 { ac_try='test -z "$ac_c_werror_flag"
25753 || test ! -s conftest.err'
bec39cab
AC
25754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25755 (eval $ac_try) 2>&5
25756 ac_status=$?
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; } &&
25759 { ac_try='test -s conftest$ac_exeext'
25760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761 (eval $ac_try) 2>&5
25762 ac_status=$?
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); }; }; then
438013df
AO
25765 :
25766else
bec39cab
AC
25767 echo "$as_me: failed program was:" >&5
25768sed 's/^/| /' conftest.$ac_ext >&5
25769
b4e70030 25770gdb_cv_bigtoc=
438013df 25771fi
bec39cab
AC
25772rm -f conftest.err conftest.$ac_objext \
25773 conftest$ac_exeext conftest.$ac_ext
ec76baa5 25774 LDFLAGS="${SAVE_LDFLAGS}"
438013df 25775
bec39cab 25776fi
b4e70030
JB
25777echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
25778echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
25779 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
25780 ;;
25781esac
25782
c906108c
SS
25783
25784
25785if test ${build} = ${host} -a ${host} = ${target} ; then
25786 case ${host_os} in
25787 hpux*)
b4e70030
JB
25788 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
25789echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
25790 if test -f /usr/include/dce/cma_config.h ; then
25791 if test "$GCC" = "yes" ; then
b4e70030
JB
25792 echo "$as_me:$LINENO: result: yes" >&5
25793echo "${ECHO_T}yes" >&6
60ca704f
SE
25794
25795cat >>confdefs.h <<\_ACEOF
c906108c 25796#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 25797_ACEOF
c906108c 25798
3483b318 25799 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
25800 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
25801 else
b4e70030
JB
25802 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
25803echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
25804 fi
25805 else
b4e70030
JB
25806 echo "$as_me:$LINENO: result: no" >&5
25807echo "${ECHO_T}no" >&6
c906108c
SS
25808 fi
25809 ;;
25810 solaris*)
d92419e5
JB
25811 # See if thread_db library is around for Solaris thread debugging.
25812 # Note that we must explicitly test for version 1 of the library
25813 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
25814 # the same API.
b4e70030
JB
25815 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
25816echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 25817 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
25818 echo "$as_me:$LINENO: result: yes" >&5
25819echo "${ECHO_T}yes" >&6
60ca704f
SE
25820
25821cat >>confdefs.h <<\_ACEOF
c906108c 25822#define HAVE_THREAD_DB_LIB 1
bec39cab 25823_ACEOF
c906108c 25824
3483b318 25825 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 25826 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 25827
b4e70030
JB
25828echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
25829echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
25830if test "${ac_cv_lib_dl_dlopen+set}" = set; then
25831 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25832else
bec39cab 25833 ac_check_lib_save_LIBS=$LIBS
c906108c 25834LIBS="-ldl $LIBS"
bec39cab
AC
25835cat >conftest.$ac_ext <<_ACEOF
25836/* confdefs.h. */
25837_ACEOF
25838cat confdefs.h >>conftest.$ac_ext
25839cat >>conftest.$ac_ext <<_ACEOF
25840/* end confdefs.h. */
25841
b4e70030 25842/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
25843#ifdef __cplusplus
25844extern "C"
25845#endif
b4e70030
JB
25846/* We use char because int might match the return type of a gcc2
25847 builtin and then its argument prototype would still apply. */
bec39cab
AC
25848char dlopen ();
25849int
25850main ()
25851{
b4e70030 25852dlopen ();
bec39cab
AC
25853 ;
25854 return 0;
25855}
25856_ACEOF
25857rm -f conftest.$ac_objext conftest$ac_exeext
25858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25859 (eval $ac_link) 2>conftest.er1
25860 ac_status=$?
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
b4e70030
JB
25866 { ac_try='test -z "$ac_c_werror_flag"
25867 || test ! -s conftest.err'
bec39cab
AC
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; } &&
25873 { ac_try='test -s conftest$ac_exeext'
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25876 ac_status=$?
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 ac_cv_lib_dl_dlopen=yes
25880else
25881 echo "$as_me: failed program was:" >&5
25882sed 's/^/| /' conftest.$ac_ext >&5
25883
b4e70030 25884ac_cv_lib_dl_dlopen=no
bec39cab
AC
25885fi
25886rm -f conftest.err conftest.$ac_objext \
25887 conftest$ac_exeext conftest.$ac_ext
25888LIBS=$ac_check_lib_save_LIBS
25889fi
b4e70030
JB
25890echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
25891echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
25892if test $ac_cv_lib_dl_dlopen = yes; then
25893 cat >>confdefs.h <<_ACEOF
25894#define HAVE_LIBDL 1
25895_ACEOF
c906108c
SS
25896
25897 LIBS="-ldl $LIBS"
25898
c906108c
SS
25899fi
25900
25901 if test "$GCC" = "yes" ; then
25902 # The GNU linker requires the -export-dynamic option to make
25903 # all symbols visible in the dynamic symbol table.
25904 hold_ldflags=$LDFLAGS
b4e70030
JB
25905 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
25906echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 25907 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
25908 cat >conftest.$ac_ext <<_ACEOF
25909/* confdefs.h. */
25910_ACEOF
25911cat confdefs.h >>conftest.$ac_ext
25912cat >>conftest.$ac_ext <<_ACEOF
25913/* end confdefs.h. */
c906108c 25914
bec39cab
AC
25915int
25916main ()
25917{
c906108c 25918int i;
bec39cab
AC
25919 ;
25920 return 0;
25921}
25922_ACEOF
25923rm -f conftest.$ac_objext conftest$ac_exeext
25924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25925 (eval $ac_link) 2>conftest.er1
25926 ac_status=$?
25927 grep -v '^ *+' conftest.er1 >conftest.err
25928 rm -f conftest.er1
25929 cat conftest.err >&5
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } &&
b4e70030
JB
25932 { ac_try='test -z "$ac_c_werror_flag"
25933 || test ! -s conftest.err'
bec39cab
AC
25934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25935 (eval $ac_try) 2>&5
25936 ac_status=$?
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); }; } &&
25939 { ac_try='test -s conftest$ac_exeext'
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; }; then
c906108c
SS
25945 found=yes
25946else
bec39cab
AC
25947 echo "$as_me: failed program was:" >&5
25948sed 's/^/| /' conftest.$ac_ext >&5
25949
b4e70030 25950found=no
c906108c 25951fi
bec39cab
AC
25952rm -f conftest.err conftest.$ac_objext \
25953 conftest$ac_exeext conftest.$ac_ext
c906108c 25954 LDFLAGS=$hold_ldflags
b4e70030
JB
25955 echo "$as_me:$LINENO: result: $found" >&5
25956echo "${ECHO_T}$found" >&6
c906108c
SS
25957 if test $found = yes; then
25958 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
25959 fi
25960 fi
25961 # Sun randomly tweaked the prototypes in <proc_service.h>
25962 # at one point.
b4e70030
JB
25963 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
25964echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
25965 if test "${gdb_cv_proc_service_is_old+set}" = set; then
25966 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25967else
bec39cab
AC
25968
25969 cat >conftest.$ac_ext <<_ACEOF
25970/* confdefs.h. */
25971_ACEOF
25972cat confdefs.h >>conftest.$ac_ext
25973cat >>conftest.$ac_ext <<_ACEOF
25974/* end confdefs.h. */
c906108c
SS
25975
25976 #include <proc_service.h>
25977 ps_err_e ps_pdwrite
25978 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 25979
bec39cab
AC
25980int
25981main ()
25982{
25983
25984 ;
25985 return 0;
25986}
25987_ACEOF
25988rm -f conftest.$ac_objext
25989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25990 (eval $ac_compile) 2>conftest.er1
25991 ac_status=$?
25992 grep -v '^ *+' conftest.er1 >conftest.err
25993 rm -f conftest.er1
25994 cat conftest.err >&5
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); } &&
b4e70030
JB
25997 { ac_try='test -z "$ac_c_werror_flag"
25998 || test ! -s conftest.err'
bec39cab
AC
25999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); }; } &&
26004 { ac_try='test -s conftest.$ac_objext'
26005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26006 (eval $ac_try) 2>&5
26007 ac_status=$?
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); }; }; then
c906108c
SS
26010 gdb_cv_proc_service_is_old=no
26011else
bec39cab
AC
26012 echo "$as_me: failed program was:" >&5
26013sed 's/^/| /' conftest.$ac_ext >&5
26014
b4e70030 26015gdb_cv_proc_service_is_old=yes
c906108c 26016fi
bec39cab
AC
26017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26018
c906108c
SS
26019fi
26020
b4e70030
JB
26021 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
26022echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 26023 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
26024
26025cat >>confdefs.h <<\_ACEOF
c906108c 26026#define PROC_SERVICE_IS_OLD 1
bec39cab 26027_ACEOF
c906108c
SS
26028
26029 fi
26030 else
b4e70030
JB
26031 echo "$as_me:$LINENO: result: no" >&5
26032echo "${ECHO_T}no" >&6
c906108c
SS
26033 fi
26034 ;;
d92419e5 26035 aix*)
b4e70030
JB
26036 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
26037echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
26038 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
26039 echo $ECHO_N "(cached) $ECHO_C" >&6
26040else
26041 cat >conftest.$ac_ext <<_ACEOF
26042/* confdefs.h. */
26043_ACEOF
26044cat confdefs.h >>conftest.$ac_ext
26045cat >>conftest.$ac_ext <<_ACEOF
26046/* end confdefs.h. */
d92419e5 26047#include <sys/pthdebug.h>
bec39cab
AC
26048int
26049main ()
26050{
d92419e5
JB
26051#ifndef PTHDB_VERSION_3
26052 #error
26053 #endif
bec39cab
AC
26054 ;
26055 return 0;
26056}
26057_ACEOF
26058rm -f conftest.$ac_objext
26059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26060 (eval $ac_compile) 2>conftest.er1
26061 ac_status=$?
26062 grep -v '^ *+' conftest.er1 >conftest.err
26063 rm -f conftest.er1
26064 cat conftest.err >&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } &&
b4e70030
JB
26067 { ac_try='test -z "$ac_c_werror_flag"
26068 || test ! -s conftest.err'
bec39cab
AC
26069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26070 (eval $ac_try) 2>&5
26071 ac_status=$?
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); }; } &&
26074 { ac_try='test -s conftest.$ac_objext'
26075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076 (eval $ac_try) 2>&5
26077 ac_status=$?
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); }; }; then
d92419e5
JB
26080 gdb_cv_have_aix_thread_debug=yes
26081else
bec39cab
AC
26082 echo "$as_me: failed program was:" >&5
26083sed 's/^/| /' conftest.$ac_ext >&5
26084
b4e70030 26085gdb_cv_have_aix_thread_debug=no
d92419e5 26086fi
bec39cab 26087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
26088fi
26089
b4e70030
JB
26090 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
26091echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
26092 if test $gdb_cv_have_aix_thread_debug = yes; then
26093 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 26094 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
26095 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
26096 fi
26097 ;;
c906108c 26098 esac
bec39cab 26099
c906108c
SS
26100fi
26101
3f47be5c 26102if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
26103 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
26104echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
26105if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26107else
26108 cat >conftest.$ac_ext <<_ACEOF
26109/* confdefs.h. */
26110_ACEOF
26111cat confdefs.h >>conftest.$ac_ext
26112cat >>conftest.$ac_ext <<_ACEOF
26113/* end confdefs.h. */
3f47be5c 26114#include <thread_db.h>
bec39cab
AC
26115int
26116main ()
26117{
3f47be5c 26118int i = TD_NOTALLOC;
bec39cab
AC
26119 ;
26120 return 0;
26121}
26122_ACEOF
26123rm -f conftest.$ac_objext
26124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26125 (eval $ac_compile) 2>conftest.er1
26126 ac_status=$?
26127 grep -v '^ *+' conftest.er1 >conftest.err
26128 rm -f conftest.er1
26129 cat conftest.err >&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); } &&
b4e70030
JB
26132 { ac_try='test -z "$ac_c_werror_flag"
26133 || test ! -s conftest.err'
bec39cab
AC
26134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135 (eval $ac_try) 2>&5
26136 ac_status=$?
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); }; } &&
26139 { ac_try='test -s conftest.$ac_objext'
26140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); }; }; then
3f47be5c
EZ
26145 gdb_cv_thread_db_h_has_td_notalloc=yes
26146else
bec39cab
AC
26147 echo "$as_me: failed program was:" >&5
26148sed 's/^/| /' conftest.$ac_ext >&5
26149
b4e70030 26150gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 26151
3f47be5c 26152fi
bec39cab 26153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 26154
bec39cab 26155fi
b4e70030
JB
26156echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
26157echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
26158 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
26159echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
26160if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
26161 echo $ECHO_N "(cached) $ECHO_C" >&6
26162else
26163 cat >conftest.$ac_ext <<_ACEOF
26164/* confdefs.h. */
26165_ACEOF
26166cat confdefs.h >>conftest.$ac_ext
26167cat >>conftest.$ac_ext <<_ACEOF
26168/* end confdefs.h. */
26169#include <thread_db.h>
26170int
26171main ()
26172{
26173int i = TD_VERSION;
26174 ;
26175 return 0;
26176}
26177_ACEOF
26178rm -f conftest.$ac_objext
26179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26180 (eval $ac_compile) 2>conftest.er1
26181 ac_status=$?
26182 grep -v '^ *+' conftest.er1 >conftest.err
26183 rm -f conftest.er1
26184 cat conftest.err >&5
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); } &&
26187 { ac_try='test -z "$ac_c_werror_flag"
26188 || test ! -s conftest.err'
26189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; } &&
26194 { ac_try='test -s conftest.$ac_objext'
26195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
26197 ac_status=$?
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; }; then
26200 gdb_cv_thread_db_h_has_td_version=yes
26201else
26202 echo "$as_me: failed program was:" >&5
26203sed 's/^/| /' conftest.$ac_ext >&5
26204
26205gdb_cv_thread_db_h_has_td_version=no
26206
26207fi
26208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26209
26210fi
26211echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
26212echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
26213 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
26214echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
26215if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
26216 echo $ECHO_N "(cached) $ECHO_C" >&6
26217else
26218 cat >conftest.$ac_ext <<_ACEOF
26219/* confdefs.h. */
26220_ACEOF
26221cat confdefs.h >>conftest.$ac_ext
26222cat >>conftest.$ac_ext <<_ACEOF
26223/* end confdefs.h. */
26224#include <thread_db.h>
26225int
26226main ()
26227{
26228int i = TD_NOTLS;
26229 ;
26230 return 0;
26231}
26232_ACEOF
26233rm -f conftest.$ac_objext
26234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26235 (eval $ac_compile) 2>conftest.er1
26236 ac_status=$?
26237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } &&
26242 { ac_try='test -z "$ac_c_werror_flag"
26243 || test ! -s conftest.err'
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26246 ac_status=$?
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; } &&
26249 { ac_try='test -s conftest.$ac_objext'
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26252 ac_status=$?
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; }; then
26255 gdb_cv_thread_db_h_has_td_notls=yes
26256else
26257 echo "$as_me: failed program was:" >&5
26258sed 's/^/| /' conftest.$ac_ext >&5
26259
26260gdb_cv_thread_db_h_has_td_notls=no
26261
26262fi
26263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26264
26265fi
26266echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
26267echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
26268fi
26269if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
26270
26271cat >>confdefs.h <<\_ACEOF
3f47be5c 26272#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 26273_ACEOF
3f47be5c 26274
59f80f10
DJ
26275fi
26276if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
26277
26278cat >>confdefs.h <<\_ACEOF
26279#define THREAD_DB_HAS_TD_VERSION 1
26280_ACEOF
26281
26282fi
26283if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
26284
26285cat >>confdefs.h <<\_ACEOF
26286#define THREAD_DB_HAS_TD_NOTLS 1
26287_ACEOF
26288
3f47be5c
EZ
26289fi
26290
b757528f 26291if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
26292 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
26293echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
26294if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
26295 echo $ECHO_N "(cached) $ECHO_C" >&6
26296else
26297 cat >conftest.$ac_ext <<_ACEOF
26298/* confdefs.h. */
26299_ACEOF
26300cat confdefs.h >>conftest.$ac_ext
26301cat >>conftest.$ac_ext <<_ACEOF
26302/* end confdefs.h. */
b757528f 26303#include <sys/syscall.h>
bec39cab
AC
26304int
26305main ()
26306{
b757528f 26307int i = __NR_tkill;
bec39cab
AC
26308 ;
26309 return 0;
26310}
26311_ACEOF
26312rm -f conftest.$ac_objext
26313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26314 (eval $ac_compile) 2>conftest.er1
26315 ac_status=$?
26316 grep -v '^ *+' conftest.er1 >conftest.err
26317 rm -f conftest.er1
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } &&
b4e70030
JB
26321 { ac_try='test -z "$ac_c_werror_flag"
26322 || test ! -s conftest.err'
bec39cab
AC
26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26325 ac_status=$?
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); }; } &&
26328 { ac_try='test -s conftest.$ac_objext'
26329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330 (eval $ac_try) 2>&5
26331 ac_status=$?
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); }; }; then
b757528f
JJ
26334 gdb_cv_sys_syscall_h_has_tkill=yes
26335else
bec39cab
AC
26336 echo "$as_me: failed program was:" >&5
26337sed 's/^/| /' conftest.$ac_ext >&5
26338
b4e70030 26339gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 26340
b757528f 26341fi
bec39cab 26342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 26343
bec39cab 26344fi
b4e70030
JB
26345echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
26346echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
26347fi
26348if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
26349
26350cat >>confdefs.h <<\_ACEOF
b757528f 26351#define HAVE_TKILL_SYSCALL 1
bec39cab 26352_ACEOF
b757528f
JJ
26353
26354fi
26355
fb40c209 26356
bec39cab 26357
b4e70030 26358# Check whether --with-sysroot or --without-sysroot was given.
030292b7 26359if test "${with_sysroot+set}" = set; then
b4e70030
JB
26360 withval="$with_sysroot"
26361
030292b7 26362 case ${with_sysroot} in
715d1656 26363 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
26364 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
26365 esac
26366
26367 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
26368
07abfebf
RS
26369 if test "x$prefix" = xNONE; then
26370 test_prefix=/usr/local
26371 else
26372 test_prefix=$prefix
26373 fi
aa28a74e 26374 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 26375 test_exec_prefix=$test_prefix
030292b7 26376 else
07abfebf 26377 test_exec_prefix=$exec_prefix
030292b7
DJ
26378 fi
26379 case ${TARGET_SYSTEM_ROOT} in
715d1656 26380 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
26381 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
26382 '${prefix}'|'${prefix}/'*|\
715d1656 26383 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
26384 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
26385 TARGET_SYSTEM_ROOT_DEFINE="$t"
26386 ;;
26387 esac
26388
26389else
bec39cab 26390
030292b7
DJ
26391 TARGET_SYSTEM_ROOT=
26392 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
26393
b4e70030 26394fi;
030292b7
DJ
26395
26396
26397
b4e70030 26398# Check whether --enable-werror or --disable-werror was given.
094a342e 26399if test "${enable_werror+set}" = set; then
b4e70030
JB
26400 enableval="$enable_werror"
26401 case "${enableval}" in
094a342e
MK
26402 yes | y) ERROR_ON_WARNING="yes" ;;
26403 no | n) ERROR_ON_WARNING="no" ;;
26404 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
26405echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
26406 { (exit 1); exit 1; }; } ;;
26407 esac
b4e70030 26408fi;
094a342e
MK
26409
26410# Enable -Werror by default when using gcc
26411if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
26412 ERROR_ON_WARNING=yes
26413fi
26414
26415WERROR_CFLAGS=""
26416if test "${ERROR_ON_WARNING}" = yes ; then
26417 WERROR_CFLAGS="-Werror"
26418fi
26419
aa79a185
DJ
26420# The entries after -Wno-pointer-sign are disabled warnings which may
26421# be enabled in the future, which can not currently be used to build
26422# GDB.
26423# NOTE: If you change this list, remember to update
3b851bce 26424# gdb/doc/gdbint.texinfo.
aa79a185
DJ
26425build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
26426-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 26427-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 26428
b4e70030 26429# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 26430if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
26431 enableval="$enable_build_warnings"
26432 case "${enableval}" in
c906108c
SS
26433 yes) ;;
26434 no) build_warnings="-w";;
26435 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26436 build_warnings="${build_warnings} ${t}";;
26437 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26438 build_warnings="${t} ${build_warnings}";;
26439 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26440esac
d4f3574e 26441if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 26442 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 26443fi
b4e70030 26444fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 26445if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
26446 enableval="$enable_gdb_build_warnings"
26447 case "${enableval}" in
3b851bce
AC
26448 yes) ;;
26449 no) build_warnings="-w";;
26450 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26451 build_warnings="${build_warnings} ${t}";;
26452 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26453 build_warnings="${t} ${build_warnings}";;
26454 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26455esac
26456if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
26457 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
26458fi
b4e70030 26459fi; WARN_CFLAGS=""
c906108c
SS
26460if test "x${build_warnings}" != x -a "x$GCC" = xyes
26461then
b4e70030
JB
26462 echo "$as_me:$LINENO: checking compiler warning flags" >&5
26463echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
26464 # Separate out the -Werror flag as some files just cannot be
26465 # compiled with it enabled.
26466 for w in ${build_warnings}; do
26467 case $w in
26468 -Werr*) WERROR_CFLAGS=-Werror ;;
26469 *) # Check that GCC accepts it
4536bbc6
AC
26470 saved_CFLAGS="$CFLAGS"
26471 CFLAGS="$CFLAGS $w"
bec39cab
AC
26472 cat >conftest.$ac_ext <<_ACEOF
26473/* confdefs.h. */
26474_ACEOF
26475cat confdefs.h >>conftest.$ac_ext
26476cat >>conftest.$ac_ext <<_ACEOF
26477/* end confdefs.h. */
4536bbc6 26478
bec39cab
AC
26479int
26480main ()
26481{
4536bbc6 26482
bec39cab
AC
26483 ;
26484 return 0;
26485}
26486_ACEOF
26487rm -f conftest.$ac_objext
26488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26489 (eval $ac_compile) 2>conftest.er1
26490 ac_status=$?
26491 grep -v '^ *+' conftest.er1 >conftest.err
26492 rm -f conftest.er1
26493 cat conftest.err >&5
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); } &&
b4e70030
JB
26496 { ac_try='test -z "$ac_c_werror_flag"
26497 || test ! -s conftest.err'
bec39cab
AC
26498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26499 (eval $ac_try) 2>&5
26500 ac_status=$?
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); }; } &&
26503 { ac_try='test -s conftest.$ac_objext'
26504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26505 (eval $ac_try) 2>&5
26506 ac_status=$?
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); }; }; then
4536bbc6
AC
26509 WARN_CFLAGS="${WARN_CFLAGS} $w"
26510else
bec39cab
AC
26511 echo "$as_me: failed program was:" >&5
26512sed 's/^/| /' conftest.$ac_ext >&5
26513
4536bbc6 26514fi
bec39cab 26515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 26516 CFLAGS="$saved_CFLAGS"
746a987d
AC
26517 esac
26518 done
aa79a185
DJ
26519 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
26520echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
26521fi
26522
26523
104c1213 26524
7a292a7a 26525# In the Cygwin environment, we need some additional flags.
b4e70030
JB
26526echo "$as_me:$LINENO: checking for cygwin" >&5
26527echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
26528if test "${gdb_cv_os_cygwin+set}" = set; then
26529 echo $ECHO_N "(cached) $ECHO_C" >&6
26530else
26531 cat >conftest.$ac_ext <<_ACEOF
26532/* confdefs.h. */
26533_ACEOF
26534cat confdefs.h >>conftest.$ac_ext
26535cat >>conftest.$ac_ext <<_ACEOF
26536/* end confdefs.h. */
7a292a7a
SS
26537
26538#if defined (__CYGWIN__) || defined (__CYGWIN32__)
26539lose
26540#endif
bec39cab 26541_ACEOF
7a292a7a 26542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 26543 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
26544 gdb_cv_os_cygwin=yes
26545else
7a292a7a
SS
26546 gdb_cv_os_cygwin=no
26547fi
26548rm -f conftest*
26549
26550fi
b4e70030
JB
26551echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
26552echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 26553
aff38e61 26554
3eb25fda 26555SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 26556case ${host} in
95cbc983
AC
26557 *go32* ) SER_HARDWIRE=ser-go32.o ;;
26558 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 26559 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
26560esac
26561
26562
cd0fc7c3
SS
26563# libreadline needs libuser32.a in a cygwin environment
26564WIN32LIBS=
26565if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
26566 WIN32LIBS="-luser32"
26567 case "${target}" in
26568 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
26569 ;;
26570 esac
cd0fc7c3 26571fi
c906108c 26572
b4505029
MM
26573# The ser-tcp.c module requires sockets.
26574case ${host} in
26575 *mingw32*)
26576
26577cat >>confdefs.h <<\_ACEOF
26578#define USE_WIN32API 1
26579_ACEOF
26580
26581 WIN32LIBS="$WIN32LIBS -lws2_32"
26582 ;;
26583esac
26584
7a292a7a 26585
31d99776
DJ
26586# Add ELF support to GDB, but only if BFD includes ELF support.
26587OLD_CFLAGS=$CFLAGS
26588OLD_LDFLAGS=$LDFLAGS
26589OLD_LIBS=$LIBS
cab58a69 26590CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 26591LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9
DJ
26592intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
26593LIBS="$LIBS -lbfd -liberty $intl"
31d99776
DJ
26594echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
26595echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
26596if test "${gdb_cv_var_elf+set}" = set; then
26597 echo $ECHO_N "(cached) $ECHO_C" >&6
26598else
26599 cat >conftest.$ac_ext <<_ACEOF
26600/* confdefs.h. */
26601_ACEOF
26602cat confdefs.h >>conftest.$ac_ext
26603cat >>conftest.$ac_ext <<_ACEOF
26604/* end confdefs.h. */
26605#include <stdlib.h>
26606#include "bfd.h"
26607#include "elf-bfd.h"
26608
26609int
26610main ()
26611{
26612bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
26613 ;
26614 return 0;
26615}
26616_ACEOF
26617rm -f conftest.$ac_objext conftest$ac_exeext
26618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26619 (eval $ac_link) 2>conftest.er1
26620 ac_status=$?
26621 grep -v '^ *+' conftest.er1 >conftest.err
26622 rm -f conftest.er1
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } &&
26626 { ac_try='test -z "$ac_c_werror_flag"
26627 || test ! -s conftest.err'
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26630 ac_status=$?
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; } &&
26633 { ac_try='test -s conftest$ac_exeext'
26634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635 (eval $ac_try) 2>&5
26636 ac_status=$?
26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); }; }; then
26639 gdb_cv_var_elf=yes
26640else
26641 echo "$as_me: failed program was:" >&5
26642sed 's/^/| /' conftest.$ac_ext >&5
26643
26644gdb_cv_var_elf=no
26645fi
26646rm -f conftest.err conftest.$ac_objext \
26647 conftest$ac_exeext conftest.$ac_ext
26648fi
26649echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
26650echo "${ECHO_T}$gdb_cv_var_elf" >&6
26651if test $gdb_cv_var_elf = yes; then
26652 CONFIG_OBS="$CONFIG_OBS elfread.o"
26653
26654cat >>confdefs.h <<\_ACEOF
26655#define HAVE_ELF 1
26656_ACEOF
26657
26658fi
26659CFLAGS=$OLD_CFLAGS
26660LDFLAGS=$OLD_LDFLAGS
26661LIBS=$OLD_LIBS
26662
121ce6e5
DJ
26663# Add any host-specific objects to GDB.
26664CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
26665
3fc11d3e
JM
26666LIBGUI="../libgui/src/libgui.a"
26667GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
26668
26669
7a292a7a 26670
3fc11d3e
JM
26671WIN32LDAPP=
26672
26673
26674
d91670b9 26675case "${host}" in
686a5eed 26676*-*-cygwin* | *-*-mingw* )
d91670b9
CV
26677 configdir="win"
26678 ;;
26679*)
26680 configdir="unix"
26681 ;;
26682esac
3fc11d3e
JM
26683
26684GDBTKLIBS=
26685if test "${enable_gdbtk}" = "yes"; then
26686
d1c3b63a
KS
26687 # Gdbtk must have an absolute path to srcdir in order to run
26688 # properly when not installed.
26689 here=`pwd`
26690 cd ${srcdir}
26691 GDBTK_SRC_DIR=`pwd`
26692 cd $here
26693
bec39cab 26694
3fc11d3e
JM
26695#
26696# Ok, lets find the tcl configuration
bec39cab 26697# First, look for one uninstalled.
3fc11d3e
JM
26698# the alternative search directory is invoked by --with-tclconfig
26699#
26700
26701if test x"${no_tcl}" = x ; then
26702 # we reset no_tcl in case something fails here
26703 no_tcl=true
bec39cab 26704
b4e70030 26705# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 26706if test "${with_tclconfig+set}" = set; then
b4e70030
JB
26707 withval="$with_tclconfig"
26708 with_tclconfig=${withval}
26709fi;
26710 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
26711echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
26712 if test "${ac_cv_c_tclconfig+set}" = set; then
26713 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 26714else
bec39cab 26715
3fc11d3e
JM
26716
26717 # First check to see if --with-tclconfig was specified.
26718 if test x"${with_tclconfig}" != x ; then
26719 if test -f "${with_tclconfig}/tclConfig.sh" ; then
26720 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
26721 else
bec39cab
AC
26722 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
26723echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
26724 { (exit 1); exit 1; }; }
3fc11d3e
JM
26725 fi
26726 fi
26727
26728 # then check for a private Tcl installation
26729 if test x"${ac_cv_c_tclconfig}" = x ; then
26730 for i in \
26731 ../tcl \
26732 `ls -dr ../tcl[7-9]* 2>/dev/null` \
26733 ../../tcl \
26734 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
26735 ../../../tcl \
26736 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
26737 if test -f "$i/${configdir}/tclConfig.sh" ; then
26738 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
26739 break
26740 fi
26741 done
26742 fi
26743 # check in a few common install locations
26744 if test x"${ac_cv_c_tclconfig}" = x ; then
26745 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
26746 if test -f "$i/tclConfig.sh" ; then
26747 ac_cv_c_tclconfig=`(cd $i; pwd)`
26748 break
26749 fi
26750 done
26751 fi
26752 # check in a few other private locations
26753 if test x"${ac_cv_c_tclconfig}" = x ; then
26754 for i in \
26755 ${srcdir}/../tcl \
26756 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
26757 if test -f "$i/${configdir}/tclConfig.sh" ; then
26758 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
26759 break
26760 fi
26761 done
26762 fi
bec39cab 26763
3fc11d3e
JM
26764fi
26765
26766 if test x"${ac_cv_c_tclconfig}" = x ; then
26767 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
26768 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
26769echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
26770 else
26771 no_tcl=
26772 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
26773 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
26774echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
26775 fi
26776fi
26777
26778 if test -z "${no_tcl}"; then
bec39cab 26779
3fc11d3e
JM
26780 . $TCLCONFIG
26781
3fc11d3e
JM
26782
26783
26784
26785
3fc11d3e
JM
26786
26787
26788
bec39cab
AC
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
3fc11d3e
JM
26808#
26809# Ok, lets find the tk configuration
bec39cab 26810# First, look for one uninstalled.
3fc11d3e
JM
26811# the alternative search directory is invoked by --with-tkconfig
26812#
26813
26814if test x"${no_tk}" = x ; then
26815 # we reset no_tk in case something fails here
26816 no_tk=true
bec39cab 26817
b4e70030 26818# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 26819if test "${with_tkconfig+set}" = set; then
b4e70030
JB
26820 withval="$with_tkconfig"
26821 with_tkconfig=${withval}
26822fi;
26823 echo "$as_me:$LINENO: checking for Tk configuration" >&5
26824echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
26825 if test "${ac_cv_c_tkconfig+set}" = set; then
26826 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 26827else
bec39cab 26828
3fc11d3e
JM
26829
26830 # First check to see if --with-tkconfig was specified.
26831 if test x"${with_tkconfig}" != x ; then
26832 if test -f "${with_tkconfig}/tkConfig.sh" ; then
26833 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
26834 else
bec39cab
AC
26835 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
26836echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
26837 { (exit 1); exit 1; }; }
3fc11d3e
JM
26838 fi
26839 fi
26840
26841 # then check for a private Tk library
26842 if test x"${ac_cv_c_tkconfig}" = x ; then
26843 for i in \
26844 ../tk \
26845 `ls -dr ../tk[4-9]* 2>/dev/null` \
26846 ../../tk \
26847 `ls -dr ../../tk[4-9]* 2>/dev/null` \
26848 ../../../tk \
26849 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
26850 if test -f "$i/${configdir}/tkConfig.sh" ; then
26851 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
26852 break
26853 fi
26854 done
26855 fi
26856 # check in a few common install locations
26857 if test x"${ac_cv_c_tkconfig}" = x ; then
26858 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
26859 if test -f "$i/tkConfig.sh" ; then
26860 ac_cv_c_tkconfig=`(cd $i; pwd)`
26861 break
26862 fi
26863 done
26864 fi
26865 # check in a few other private locations
26866 if test x"${ac_cv_c_tkconfig}" = x ; then
26867 for i in \
26868 ${srcdir}/../tk \
26869 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
26870 if test -f "$i/${configdir}/tkConfig.sh" ; then
26871 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
26872 break
26873 fi
26874 done
26875 fi
bec39cab 26876
3fc11d3e
JM
26877fi
26878
26879 if test x"${ac_cv_c_tkconfig}" = x ; then
26880 TKCONFIG="# no Tk configs found"
bec39cab
AC
26881 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
26882echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
26883 else
26884 no_tk=
26885 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
26886 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
26887echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
26888 fi
26889fi
26890
26891
26892
dd2504ab
JM
26893 # now look for Tcl library stuff
26894
d91670b9 26895 tcldir="../tcl/${configdir}/"
dd2504ab
JM
26896
26897 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
26898
3fc11d3e
JM
26899 # If $no_tk is nonempty, then we can't do Tk, and there is no
26900 # point to doing Tcl.
26901 if test -z "${no_tk}"; then
bec39cab 26902
3fc11d3e
JM
26903 if test -f "$TKCONFIG" ; then
26904 . $TKCONFIG
26905 fi
26906
3fc11d3e 26907
3fc11d3e
JM
26908
26909
3fc11d3e 26910
bec39cab
AC
26911
26912
26913
26914
26915
26916
26917
26918
26919
3fc11d3e
JM
26920#
26921# Ok, lets find the tcl source trees so we can use the headers
26922# Warning: transition of version 9 to 10 will break this algorithm
26923# because 10 sorts before 9. We also look for just tcl. We have to
26924# be careful that we don't match stuff like tclX by accident.
26925# the alternative search directory is involked by --with-tclinclude
26926#
26927
26928no_tcl=true
b4e70030
JB
26929echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
26930echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 26931
b4e70030 26932# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 26933if test "${with_tclinclude+set}" = set; then
b4e70030
JB
26934 withval="$with_tclinclude"
26935 with_tclinclude=${withval}
26936fi;
bec39cab
AC
26937if test "${ac_cv_c_tclh+set}" = set; then
26938 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 26939else
bec39cab 26940
3fc11d3e
JM
26941# first check to see if --with-tclinclude was specified
26942if test x"${with_tclinclude}" != x ; then
26943 if test -f ${with_tclinclude}/tclInt.h ; then
26944 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
26945 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
26946 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
26947 else
bec39cab
AC
26948 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
26949echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
26950 { (exit 1); exit 1; }; }
3fc11d3e
JM
26951 fi
26952fi
26953
26954# next check if it came with Tcl configuration file
26955if test x"${ac_cv_c_tclconfig}" = x ; then
26956 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
26957 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
26958 fi
26959fi
26960
26961# next check in private source directory
26962#
26963# since ls returns lowest version numbers first, reverse its output
26964if test x"${ac_cv_c_tclh}" = x ; then
26965 for i in \
26966 ${srcdir}/../tcl \
26967 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
26968 ${srcdir}/../../tcl \
26969 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
26970 ${srcdir}/../../../tcl \
26971 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
26972 if test -f $i/generic/tclInt.h ; then
26973 ac_cv_c_tclh=`(cd $i/generic; pwd)`
26974 break
26975 fi
26976 done
26977fi
26978# finally check in a few common install locations
26979#
26980# since ls returns lowest version numbers first, reverse its output
26981if test x"${ac_cv_c_tclh}" = x ; then
26982 for i in \
26983 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
26984 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
26985 /usr/local/src/tcl \
26986 /usr/local/lib/tcl \
26987 ${prefix}/include ; do
26988 if test -f $i/generic/tclInt.h ; then
26989 ac_cv_c_tclh=`(cd $i/generic; pwd)`
26990 break
26991 fi
26992 done
26993fi
26994# see if one is installed
26995if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 26996 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
26997 echo "$as_me:$LINENO: checking for tclInt.h" >&5
26998echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
26999if test "${ac_cv_header_tclInt_h+set}" = set; then
27000 echo $ECHO_N "(cached) $ECHO_C" >&6
27001fi
b4e70030
JB
27002echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27003echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
27004else
27005 # Is the header compilable?
b4e70030
JB
27006echo "$as_me:$LINENO: checking tclInt.h usability" >&5
27007echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
27008cat >conftest.$ac_ext <<_ACEOF
27009/* confdefs.h. */
27010_ACEOF
27011cat confdefs.h >>conftest.$ac_ext
27012cat >>conftest.$ac_ext <<_ACEOF
27013/* end confdefs.h. */
27014$ac_includes_default
27015#include <tclInt.h>
27016_ACEOF
27017rm -f conftest.$ac_objext
27018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27019 (eval $ac_compile) 2>conftest.er1
27020 ac_status=$?
27021 grep -v '^ *+' conftest.er1 >conftest.err
27022 rm -f conftest.er1
27023 cat conftest.err >&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } &&
b4e70030
JB
27026 { ac_try='test -z "$ac_c_werror_flag"
27027 || test ! -s conftest.err'
bec39cab
AC
27028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27029 (eval $ac_try) 2>&5
27030 ac_status=$?
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); }; } &&
27033 { ac_try='test -s conftest.$ac_objext'
27034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27035 (eval $ac_try) 2>&5
27036 ac_status=$?
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); }; }; then
27039 ac_header_compiler=yes
27040else
27041 echo "$as_me: failed program was:" >&5
27042sed 's/^/| /' conftest.$ac_ext >&5
27043
b4e70030 27044ac_header_compiler=no
bec39cab
AC
27045fi
27046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
27047echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27048echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
27049
27050# Is the header present?
b4e70030
JB
27051echo "$as_me:$LINENO: checking tclInt.h presence" >&5
27052echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
27053cat >conftest.$ac_ext <<_ACEOF
27054/* confdefs.h. */
27055_ACEOF
27056cat confdefs.h >>conftest.$ac_ext
27057cat >>conftest.$ac_ext <<_ACEOF
27058/* end confdefs.h. */
3fc11d3e 27059#include <tclInt.h>
bec39cab
AC
27060_ACEOF
27061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27063 ac_status=$?
27064 grep -v '^ *+' conftest.er1 >conftest.err
27065 rm -f conftest.er1
27066 cat conftest.err >&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } >/dev/null; then
27069 if test -s conftest.err; then
27070 ac_cpp_err=$ac_c_preproc_warn_flag
27071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27072 else
27073 ac_cpp_err=
27074 fi
27075else
27076 ac_cpp_err=yes
3fc11d3e 27077fi
bec39cab
AC
27078if test -z "$ac_cpp_err"; then
27079 ac_header_preproc=yes
27080else
27081 echo "$as_me: failed program was:" >&5
27082sed 's/^/| /' conftest.$ac_ext >&5
27083
27084 ac_header_preproc=no
3fc11d3e 27085fi
bec39cab 27086rm -f conftest.err conftest.$ac_ext
b4e70030
JB
27087echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27088echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
27089
27090# So? What about this header?
27091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27092 yes:no: )
27093 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27094echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27095 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
27096echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
27097 ac_header_preproc=yes
27098 ;;
27099 no:yes:* )
27100 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
27101echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
27102 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
27103echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
27104 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
27105echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
27106 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
27107echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
27108 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
27109echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
27110 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
27111echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
27112 (
27113 cat <<\_ASBOX
27114## ------------------------------------------ ##
27115## Report this to the AC_PACKAGE_NAME lists. ##
27116## ------------------------------------------ ##
27117_ASBOX
27118 ) |
27119 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
27120 ;;
27121esac
b4e70030
JB
27122echo "$as_me:$LINENO: checking for tclInt.h" >&5
27123echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
27124if test "${ac_cv_header_tclInt_h+set}" = set; then
27125 echo $ECHO_N "(cached) $ECHO_C" >&6
27126else
27127 ac_cv_header_tclInt_h=$ac_header_preproc
27128fi
b4e70030
JB
27129echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27130echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
27131
27132fi
27133if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
27134 ac_cv_c_tclh=installed
27135else
bec39cab 27136 ac_cv_c_tclh=""
3fc11d3e
JM
27137fi
27138
bec39cab 27139
3fc11d3e
JM
27140fi
27141
27142fi
27143
27144if test x"${ac_cv_c_tclh}" = x ; then
27145 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
27146 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
27147echo "$as_me: error: Can't find Tcl private headers" >&2;}
27148 { (exit 1); exit 1; }; }
3fc11d3e
JM
27149fi
27150if test x"${ac_cv_c_tclh}" != x ; then
27151 no_tcl=""
27152 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
27153 echo "$as_me:$LINENO: result: is installed" >&5
27154echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
27155 TCLHDIR=""
27156 else
b4e70030
JB
27157 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
27158echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
27159 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
27160 TCLHDIR="-I${ac_cv_c_tclh}"
27161 fi
27162fi
27163
27164
27165
bec39cab 27166
3fc11d3e
JM
27167#
27168# Ok, lets find the tk source trees so we can use the headers
27169# If the directory (presumably symlink) named "tk" exists, use that one
27170# in preference to any others. Same logic is used when choosing library
27171# and again with Tcl. The search order is the best place to look first, then in
27172# decreasing significance. The loop breaks if the trigger file is found.
27173# Note the gross little conversion here of srcdir by cd'ing to the found
27174# directory. This converts the path from a relative to an absolute, so
27175# recursive cache variables for the path will work right. We check all
27176# the possible paths in one loop rather than many seperate loops to speed
27177# things up.
27178# the alternative search directory is involked by --with-tkinclude
27179#
27180no_tk=true
b4e70030
JB
27181echo "$as_me:$LINENO: checking for Tk private headers" >&5
27182echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 27183
b4e70030 27184# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 27185if test "${with_tkinclude+set}" = set; then
b4e70030
JB
27186 withval="$with_tkinclude"
27187 with_tkinclude=${withval}
27188fi;
bec39cab
AC
27189if test "${ac_cv_c_tkh+set}" = set; then
27190 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27191else
bec39cab 27192
3fc11d3e
JM
27193# first check to see if --with-tkinclude was specified
27194if test x"${with_tkinclude}" != x ; then
27195 if test -f ${with_tkinclude}/tk.h ; then
27196 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
27197 elif test -f ${with_tkinclude}/generic/tk.h ; then
27198 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
27199 else
bec39cab
AC
27200 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
27201echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
27202 { (exit 1); exit 1; }; }
3fc11d3e
JM
27203 fi
27204fi
27205
27206# next check if it came with Tk configuration file
27207if test x"${ac_cv_c_tkconfig}" = x ; then
27208 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
27209 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
27210 fi
27211fi
27212
27213# next check in private source directory
27214#
27215# since ls returns lowest version numbers first, reverse its output
27216if test x"${ac_cv_c_tkh}" = x ; then
27217 for i in \
27218 ${srcdir}/../tk \
27219 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
27220 ${srcdir}/../../tk \
27221 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
27222 ${srcdir}/../../../tk \
27223 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
27224 if test -f $i/generic/tk.h ; then
27225 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27226 break
27227 fi
27228 done
27229fi
27230# finally check in a few common install locations
27231#
27232# since ls returns lowest version numbers first, reverse its output
27233if test x"${ac_cv_c_tkh}" = x ; then
27234 for i in \
27235 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
27236 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
27237 /usr/local/src/tk \
27238 /usr/local/lib/tk \
27239 ${prefix}/include ; do
27240 if test -f $i/generic/tk.h ; then
27241 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27242 break
27243 fi
27244 done
27245fi
27246# see if one is installed
27247if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 27248 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
27249 echo "$as_me:$LINENO: checking for tk.h" >&5
27250echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
27251if test "${ac_cv_header_tk_h+set}" = set; then
27252 echo $ECHO_N "(cached) $ECHO_C" >&6
27253fi
b4e70030
JB
27254echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27255echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
27256else
27257 # Is the header compilable?
b4e70030
JB
27258echo "$as_me:$LINENO: checking tk.h usability" >&5
27259echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
27260cat >conftest.$ac_ext <<_ACEOF
27261/* confdefs.h. */
27262_ACEOF
27263cat confdefs.h >>conftest.$ac_ext
27264cat >>conftest.$ac_ext <<_ACEOF
27265/* end confdefs.h. */
27266$ac_includes_default
3fc11d3e 27267#include <tk.h>
bec39cab
AC
27268_ACEOF
27269rm -f conftest.$ac_objext
27270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27271 (eval $ac_compile) 2>conftest.er1
27272 ac_status=$?
27273 grep -v '^ *+' conftest.er1 >conftest.err
27274 rm -f conftest.er1
27275 cat conftest.err >&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); } &&
b4e70030
JB
27278 { ac_try='test -z "$ac_c_werror_flag"
27279 || test ! -s conftest.err'
bec39cab
AC
27280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27281 (eval $ac_try) 2>&5
27282 ac_status=$?
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); }; } &&
27285 { ac_try='test -s conftest.$ac_objext'
27286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27287 (eval $ac_try) 2>&5
27288 ac_status=$?
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); }; }; then
27291 ac_header_compiler=yes
27292else
27293 echo "$as_me: failed program was:" >&5
27294sed 's/^/| /' conftest.$ac_ext >&5
27295
b4e70030 27296ac_header_compiler=no
bec39cab
AC
27297fi
27298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
27299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27300echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
27301
27302# Is the header present?
b4e70030
JB
27303echo "$as_me:$LINENO: checking tk.h presence" >&5
27304echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
27305cat >conftest.$ac_ext <<_ACEOF
27306/* confdefs.h. */
27307_ACEOF
27308cat confdefs.h >>conftest.$ac_ext
27309cat >>conftest.$ac_ext <<_ACEOF
27310/* end confdefs.h. */
27311#include <tk.h>
27312_ACEOF
27313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27315 ac_status=$?
27316 grep -v '^ *+' conftest.er1 >conftest.err
27317 rm -f conftest.er1
27318 cat conftest.err >&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } >/dev/null; then
27321 if test -s conftest.err; then
27322 ac_cpp_err=$ac_c_preproc_warn_flag
27323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27324 else
27325 ac_cpp_err=
27326 fi
27327else
27328 ac_cpp_err=yes
3fc11d3e 27329fi
bec39cab
AC
27330if test -z "$ac_cpp_err"; then
27331 ac_header_preproc=yes
27332else
27333 echo "$as_me: failed program was:" >&5
27334sed 's/^/| /' conftest.$ac_ext >&5
27335
27336 ac_header_preproc=no
27337fi
27338rm -f conftest.err conftest.$ac_ext
b4e70030
JB
27339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27340echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
27341
27342# So? What about this header?
27343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27344 yes:no: )
27345 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
27346echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27347 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
27348echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
27349 ac_header_preproc=yes
27350 ;;
27351 no:yes:* )
27352 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
27353echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
27354 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
27355echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
27356 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
27357echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
27358 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
27359echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
27360 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
27361echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
27362 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
27363echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
27364 (
27365 cat <<\_ASBOX
27366## ------------------------------------------ ##
27367## Report this to the AC_PACKAGE_NAME lists. ##
27368## ------------------------------------------ ##
27369_ASBOX
27370 ) |
27371 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
27372 ;;
27373esac
b4e70030
JB
27374echo "$as_me:$LINENO: checking for tk.h" >&5
27375echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
27376if test "${ac_cv_header_tk_h+set}" = set; then
27377 echo $ECHO_N "(cached) $ECHO_C" >&6
27378else
27379 ac_cv_header_tk_h=$ac_header_preproc
27380fi
b4e70030
JB
27381echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27382echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 27383
3fc11d3e 27384fi
bec39cab 27385if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
27386 ac_cv_c_tkh=installed
27387else
bec39cab 27388 ac_cv_c_tkh=""
3fc11d3e
JM
27389fi
27390
bec39cab 27391
3fc11d3e
JM
27392fi
27393
27394fi
27395
27396if test x"${ac_cv_c_tkh}" != x ; then
27397 no_tk=""
27398 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
27399 echo "$as_me:$LINENO: result: is installed" >&5
27400echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
27401 TKHDIR=""
27402 else
b4e70030
JB
27403 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
27404echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
27405 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
27406 TKHDIR="-I${ac_cv_c_tkh}"
27407 fi
27408else
27409 TKHDIR="# no Tk directory found"
bec39cab
AC
27410 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
27411echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
27412 no_tk=true
27413fi
27414
27415
27416
bec39cab 27417
b4e70030
JB
27418echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
27419echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
27420if test x"${ac_cv_c_itclh}" = x ; then
27421 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
27422 if test -f $i/generic/itcl.h ; then
27423 ac_cv_c_itclh=`(cd $i/generic; pwd)`
27424 break
27425 fi
27426 done
27427fi
27428if test x"${ac_cv_c_itclh}" = x ; then
27429 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
27430 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
27431echo "$as_me: error: Can't find Itcl private headers" >&2;}
27432 { (exit 1); exit 1; }; }
3fc11d3e
JM
27433fi
27434if test x"${ac_cv_c_itclh}" != x ; then
27435 ITCLHDIR="-I${ac_cv_c_itclh}"
27436fi
27437# should always be here
27438# ITCLLIB="../itcl/itcl/unix/libitcl.a"
27439
27440#AC_SUBST(ITCLLIB)
27441
bec39cab 27442
b4e70030
JB
27443echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
27444echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
27445if test x"${ac_cv_c_itkh}" = x ; then
27446 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
27447 if test -f $i/generic/itk.h ; then
27448 ac_cv_c_itkh=`(cd $i/generic; pwd)`
27449 break
27450 fi
27451 done
27452fi
27453if test x"${ac_cv_c_itkh}" = x ; then
27454 ITKHDIR="# no Itk private headers found"
bec39cab
AC
27455 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
27456echo "$as_me: error: Can't find Itk private headers" >&2;}
27457 { (exit 1); exit 1; }; }
3fc11d3e
JM
27458fi
27459if test x"${ac_cv_c_itkh}" != x ; then
27460 ITKHDIR="-I${ac_cv_c_itkh}"
27461fi
27462# should always be here
27463# ITKLIB="../itcl/itk/unix/libitk.a"
27464
27465#AC_SUBST(ITKLIB)
27466
3fc11d3e 27467
dd2504ab
JM
27468
27469 # now look for Tk library stuff
27470
d91670b9 27471 tkdir="../tk/${configdir}/"
dd2504ab
JM
27472
27473 TK_DEPS="${tkdir}${TK_LIB_FILE}"
27474
3fc11d3e
JM
27475 # now look for Itcl library stuff
27476
bec39cab 27477
3fc11d3e
JM
27478#
27479# Ok, lets find the itcl configuration
bec39cab 27480# First, look for one uninstalled.
3fc11d3e
JM
27481# the alternative search directory is invoked by --with-itclconfig
27482#
27483
27484if test x"${no_itcl}" = x ; then
27485 # we reset no_itcl in case something fails here
27486 no_itcl=true
bec39cab 27487
b4e70030 27488# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 27489if test "${with_itclconfig+set}" = set; then
b4e70030
JB
27490 withval="$with_itclconfig"
27491 with_itclconfig=${withval}
27492fi;
27493 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
27494echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
27495 if test "${ac_cv_c_itclconfig+set}" = set; then
27496 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27497else
bec39cab 27498
3fc11d3e
JM
27499
27500 # First check to see if --with-itclconfig was specified.
27501 if test x"${with_itclconfig}" != x ; then
27502 if test -f "${with_itclconfig}/itclConfig.sh" ; then
27503 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
27504 else
bec39cab
AC
27505 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
27506echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
27507 { (exit 1); exit 1; }; }
3fc11d3e
JM
27508 fi
27509 fi
27510
27511 # then check for a private Itcl library
27512 if test x"${ac_cv_c_itclconfig}" = x ; then
27513 for i in \
27514 ../itcl/itcl \
27515 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
27516 ../../itcl \
27517 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
27518 ../../../itcl \
27519 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
27520 if test -f "$i/itclConfig.sh" ; then
27521 ac_cv_c_itclconfig=`(cd $i; pwd)`
27522 break
27523 fi
27524 done
27525 fi
27526 # check in a few common install locations
27527 if test x"${ac_cv_c_itclconfig}" = x ; then
27528 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27529 if test -f "$i/itclConfig.sh" ; then
27530 ac_cv_c_itclconfig=`(cd $i; pwd)`
27531 break
27532 fi
27533 done
27534 fi
27535 # check in a few other private locations
27536 if test x"${ac_cv_c_itclconfig}" = x ; then
27537 for i in \
27538 ${srcdir}/../itcl/itcl \
27539 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
27540 if test -f "$i/itclConfig.sh" ; then
27541 ac_cv_c_itclconfig=`(cd $i; pwd)`
27542 break
27543 fi
27544 done
27545 fi
bec39cab 27546
3fc11d3e
JM
27547fi
27548
27549 if test x"${ac_cv_c_itclconfig}" = x ; then
27550 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
27551 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
27552echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
27553 else
27554 no_itcl=
27555 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
27556 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
27557echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
27558 fi
27559fi
27560
27561 if test -z "${no_itcl}"; then
bec39cab 27562
3fc11d3e
JM
27563 if test -f "$ITCLCONFIG" ; then
27564 . $ITCLCONFIG
27565 fi
27566
3fc11d3e 27567
3fc11d3e
JM
27568
27569
bec39cab
AC
27570
27571
27572
27573
27574
27575
27576
3fc11d3e
JM
27577
27578 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 27579 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
27580 fi
27581
bec39cab 27582
3fc11d3e 27583 # now look for Itk library stuff
bec39cab 27584
3fc11d3e
JM
27585#
27586# Ok, lets find the itk configuration
bec39cab 27587# First, look for one uninstalled.
3fc11d3e
JM
27588# the alternative search directory is invoked by --with-itkconfig
27589#
27590
27591if test x"${no_itk}" = x ; then
27592 # we reset no_itk in case something fails here
27593 no_itk=true
bec39cab 27594
b4e70030 27595# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 27596if test "${with_itkconfig+set}" = set; then
b4e70030
JB
27597 withval="$with_itkconfig"
27598 with_itkconfig=${withval}
27599fi;
27600 echo "$as_me:$LINENO: checking for Itk configuration" >&5
27601echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
27602 if test "${ac_cv_c_itkconfig+set}" = set; then
27603 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27604else
bec39cab 27605
3fc11d3e
JM
27606
27607 # First check to see if --with-itkconfig was specified.
27608 if test x"${with_itkconfig}" != x ; then
27609 if test -f "${with_itkconfig}/itkConfig.sh" ; then
27610 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
27611 else
bec39cab
AC
27612 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
27613echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
27614 { (exit 1); exit 1; }; }
3fc11d3e
JM
27615 fi
27616 fi
27617
27618 # then check for a private Itk library
27619 if test x"${ac_cv_c_itkconfig}" = x ; then
27620 for i in \
27621 ../itcl/itk \
27622 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
27623 ../../itk \
27624 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
27625 ../../../itk \
27626 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
27627 if test -f "$i/itkConfig.sh" ; then
27628 ac_cv_c_itkconfig=`(cd $i; pwd)`
27629 break
27630 fi
27631 done
27632 fi
27633 # check in a few common install locations
27634 if test x"${ac_cv_c_itkconfig}" = x ; then
27635 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27636 if test -f "$i/itkConfig.sh" ; then
27637 ac_cv_c_itkconfig=`(cd $i; pwd)`
27638 break
27639 fi
27640 done
27641 fi
27642 # check in a few other private locations
27643 if test x"${ac_cv_c_itkconfig}" = x ; then
27644 for i in \
27645 ${srcdir}/../itcl/itk \
27646 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
27647 if test -f "$i/itkConfig.sh" ; then
27648 ac_cv_c_itkconfig=`(cd $i; pwd)`
27649 break
27650 fi
27651 done
27652 fi
bec39cab 27653
3fc11d3e
JM
27654fi
27655
27656 if test x"${ac_cv_c_itkconfig}" = x ; then
27657 ITKCONFIG="# no Itk configs found"
bec39cab
AC
27658 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
27659echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
27660 else
27661 no_itk=
27662 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
27663 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
27664echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
27665 fi
27666fi
27667
27668
bec39cab
AC
27669 if test -z "${no_itcl}"; then
27670
27671 if test -f "$ITKCONFIG" ; then
27672 . $ITKCONFIG
27673 fi
27674
27675
27676
27677
27678
27679
3fc11d3e 27680
3fc11d3e 27681
3fc11d3e
JM
27682
27683
3fc11d3e
JM
27684
27685
3fc11d3e 27686 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 27687 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
27688 fi
27689
4226a5a5 27690 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
27691
27692 # Include some libraries that Tcl and Tk want.
b2a1bd4f 27693 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
27694 # Yes, the ordering seems wrong here. But it isn't.
27695 # TK_LIBS is the list of libraries that need to be linked
27696 # after Tcl/Tk. Note that this isn't put into LIBS. If it
27697 # were in LIBS then any link tests after this point would
27698 # try to include things like `$(LIBGUI)', which wouldn't work.
27699 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
27700
27701 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
27702 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
27703 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
27704 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
27705 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
27706 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
27707 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
27708
27709 if test x$gdb_cv_os_cygwin = xyes; then
27710 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
27711 WIN32LDAPP="-Wl,--subsystem,console"
27712 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
27713 fi
27714 fi
27715 fi
ffc6a242 27716
b4e70030
JB
27717
27718
27719subdirs="$subdirs gdbtk"
3ace7edb 27720
3fc11d3e
JM
27721fi
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
dd2504ab 27735
b4e70030
JB
27736echo "$as_me:$LINENO: checking for X" >&5
27737echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 27738
c906108c 27739
b4e70030 27740# Check whether --with-x or --without-x was given.
c906108c 27741if test "${with_x+set}" = set; then
b4e70030 27742 withval="$with_x"
c906108c 27743
b4e70030 27744fi;
c906108c
SS
27745# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27746if test "x$with_x" = xno; then
27747 # The user explicitly disabled X.
27748 have_x=disabled
27749else
27750 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27751 # Both variables are already set.
27752 have_x=yes
27753 else
bec39cab
AC
27754 if test "${ac_cv_have_x+set}" = set; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
27756else
27757 # One or both of the vars are not set, and there is no cached value.
bec39cab 27758ac_x_includes=no ac_x_libraries=no
b4e70030 27759rm -fr conftest.dir
bec39cab
AC
27760if mkdir conftest.dir; then
27761 cd conftest.dir
c906108c 27762 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 27763 cat >Imakefile <<'_ACEOF'
c906108c
SS
27764acfindx:
27765 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 27766_ACEOF
b4e70030 27767 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
27768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27769 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27770 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27771 for ac_extension in a so sl; do
27772 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
27773 test -f $ac_im_libdir/libX11.$ac_extension; then
27774 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
27775 fi
27776 done
27777 # Screen out bogus values from the imake configuration. They are
27778 # bogus both because they are the default anyway, and because
27779 # using them would break gcc on systems where it needs fixed includes.
bec39cab 27780 case $ac_im_incroot in
b4e70030 27781 /usr/include) ;;
bec39cab 27782 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 27783 esac
bec39cab 27784 case $ac_im_usrlibdir in
c906108c 27785 /usr/lib | /lib) ;;
bec39cab 27786 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
27787 esac
27788 fi
27789 cd ..
b4e70030 27790 rm -fr conftest.dir
c906108c
SS
27791fi
27792
bec39cab
AC
27793# Standard set of common directories for X headers.
27794# Check X11 before X11Rn because it is often a symlink to the current release.
27795ac_x_header_dirs='
27796/usr/X11/include
27797/usr/X11R6/include
27798/usr/X11R5/include
27799/usr/X11R4/include
27800
27801/usr/include/X11
27802/usr/include/X11R6
27803/usr/include/X11R5
27804/usr/include/X11R4
27805
27806/usr/local/X11/include
27807/usr/local/X11R6/include
27808/usr/local/X11R5/include
27809/usr/local/X11R4/include
27810
27811/usr/local/include/X11
27812/usr/local/include/X11R6
27813/usr/local/include/X11R5
27814/usr/local/include/X11R4
27815
27816/usr/X386/include
27817/usr/x386/include
27818/usr/XFree86/include/X11
27819
27820/usr/include
27821/usr/local/include
27822/usr/unsupported/include
27823/usr/athena/include
27824/usr/local/x11r5/include
27825/usr/lpp/Xamples/include
27826
27827/usr/openwin/include
27828/usr/openwin/share/include'
27829
27830if test "$ac_x_includes" = no; then
59f80f10 27831 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 27832 # First, try using that file with no special directory specified.
bec39cab
AC
27833 cat >conftest.$ac_ext <<_ACEOF
27834/* confdefs.h. */
27835_ACEOF
27836cat confdefs.h >>conftest.$ac_ext
27837cat >>conftest.$ac_ext <<_ACEOF
27838/* end confdefs.h. */
59f80f10 27839#include <X11/Intrinsic.h>
bec39cab
AC
27840_ACEOF
27841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27843 ac_status=$?
27844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } >/dev/null; then
27849 if test -s conftest.err; then
27850 ac_cpp_err=$ac_c_preproc_warn_flag
27851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27852 else
27853 ac_cpp_err=
27854 fi
27855else
27856 ac_cpp_err=yes
27857fi
27858if test -z "$ac_cpp_err"; then
c906108c
SS
27859 # We can compile using X headers with no special include directory.
27860ac_x_includes=
27861else
bec39cab
AC
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865 for ac_dir in $ac_x_header_dirs; do
59f80f10 27866 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
27867 ac_x_includes=$ac_dir
27868 break
27869 fi
27870done
c906108c 27871fi
bec39cab
AC
27872rm -f conftest.err conftest.$ac_ext
27873fi # $ac_x_includes = no
c906108c 27874
bec39cab 27875if test "$ac_x_libraries" = no; then
c906108c 27876 # Check for the libraries.
c906108c
SS
27877 # See if we find them without any special options.
27878 # Don't add to $LIBS permanently.
bec39cab 27879 ac_save_LIBS=$LIBS
4e8d927d 27880 LIBS="-lXt $LIBS"
bec39cab
AC
27881 cat >conftest.$ac_ext <<_ACEOF
27882/* confdefs.h. */
27883_ACEOF
27884cat confdefs.h >>conftest.$ac_ext
27885cat >>conftest.$ac_ext <<_ACEOF
27886/* end confdefs.h. */
59f80f10 27887#include <X11/Intrinsic.h>
bec39cab
AC
27888int
27889main ()
27890{
59f80f10 27891XtMalloc (0)
bec39cab
AC
27892 ;
27893 return 0;
27894}
27895_ACEOF
27896rm -f conftest.$ac_objext conftest$ac_exeext
27897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27898 (eval $ac_link) 2>conftest.er1
27899 ac_status=$?
27900 grep -v '^ *+' conftest.er1 >conftest.err
27901 rm -f conftest.er1
27902 cat conftest.err >&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); } &&
b4e70030
JB
27905 { ac_try='test -z "$ac_c_werror_flag"
27906 || test ! -s conftest.err'
bec39cab
AC
27907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908 (eval $ac_try) 2>&5
27909 ac_status=$?
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; } &&
27912 { ac_try='test -s conftest$ac_exeext'
27913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27914 (eval $ac_try) 2>&5
27915 ac_status=$?
27916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917 (exit $ac_status); }; }; then
27918 LIBS=$ac_save_LIBS
c906108c
SS
27919# We can link X programs with no special library path.
27920ac_x_libraries=
27921else
bec39cab
AC
27922 echo "$as_me: failed program was:" >&5
27923sed 's/^/| /' conftest.$ac_ext >&5
27924
b4e70030 27925LIBS=$ac_save_LIBS
bec39cab 27926for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 27927do
bec39cab 27928 # Don't even attempt the hair of trying to link an X program!
c906108c 27929 for ac_extension in a so sl; do
b4e70030 27930 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
27931 ac_x_libraries=$ac_dir
27932 break 2
27933 fi
27934 done
27935done
27936fi
bec39cab
AC
27937rm -f conftest.err conftest.$ac_objext \
27938 conftest$ac_exeext conftest.$ac_ext
27939fi # $ac_x_libraries = no
c906108c 27940
bec39cab 27941if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
27942 # Didn't find X anywhere. Cache the known absence of X.
27943 ac_cv_have_x="have_x=no"
27944else
27945 # Record where we found X for the cache.
27946 ac_cv_have_x="have_x=yes \
bec39cab 27947 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
27948fi
27949fi
bec39cab 27950
c906108c
SS
27951 fi
27952 eval "$ac_cv_have_x"
27953fi # $with_x != no
27954
27955if test "$have_x" != yes; then
b4e70030
JB
27956 echo "$as_me:$LINENO: result: $have_x" >&5
27957echo "${ECHO_T}$have_x" >&6
c906108c
SS
27958 no_x=yes
27959else
27960 # If each of the values was on the command line, it overrides each guess.
27961 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27962 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27963 # Update the cache value to reflect the command line values.
27964 ac_cv_have_x="have_x=yes \
27965 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
27966 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27967echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
27968fi
27969
27970
9cc52bde
MK
27971# Check whether we should enable the TUI, but only do so if we really
27972# can.
27973if test x"$enable_tui" = xyes; then
27974 if test -d $srcdir/tui; then
27975 if test "$ac_cv_search_waddstr" != no; then
27976 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
27977 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
27978 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
27979 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
27980 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
27981 CONFIG_ALL="${CONFIG_ALL} all-tui"
27982 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
27983 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
27984 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
27985 else
bec39cab
AC
27986 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
27987echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
27988 fi
27989 fi
27990fi
27991
bec39cab 27992# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 27993# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
27994# This code just checks for a few cases where we'd like to ignore those
27995# definitions, even when they're present in the '.mt' file. These cases
27996# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 27997# not part of the source tree.
7a292a7a 27998#
b4e70030 27999# Check whether --enable-sim or --disable-sim was given.
7a292a7a 28000if test "${enable_sim+set}" = set; then
b4e70030
JB
28001 enableval="$enable_sim"
28002 echo "enable_sim = $enable_sim";
7a292a7a
SS
28003 echo "enableval = ${enableval}";
28004 case "${enableval}" in
28005 yes) ignore_sim=false ;;
28006 no) ignore_sim=true ;;
28007 *) ignore_sim=false ;;
28008 esac
28009else
28010 ignore_sim=false
b4e70030 28011fi;
7a292a7a
SS
28012
28013if test ! -d "${srcdir}/../sim"; then
28014 ignore_sim=true
28015fi
28016
9b624dbe
UW
28017SIM=
28018SIM_OBS=
28019if test "${ignore_sim}" = "false"; then
28020 if test x"${gdb_sim}" != x ; then
28021 SIM="${gdb_sim}"
28022 SIM_OBS="remote-sim.o"
60ca704f
SE
28023
28024cat >>confdefs.h <<\_ACEOF
7a292a7a 28025#define WITH_SIM 1
bec39cab 28026_ACEOF
7a292a7a 28027
9b624dbe 28028 fi
7a292a7a
SS
28029fi
28030
28031
28032
c906108c
SS
28033
28034
28035
28036
28037
28038
dfcd3bfb 28039
e56ac5c3
AC
28040
28041
b3a90332
AC
28042
28043
c35f4ffc 28044# List of host floatformats.
bec39cab
AC
28045
28046cat >>confdefs.h <<_ACEOF
c35f4ffc 28047#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 28048_ACEOF
c35f4ffc 28049
bec39cab
AC
28050
28051cat >>confdefs.h <<_ACEOF
c35f4ffc 28052#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
28053_ACEOF
28054
c35f4ffc 28055
bec39cab 28056cat >>confdefs.h <<_ACEOF
c35f4ffc 28057#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 28058_ACEOF
c35f4ffc
AC
28059
28060
c906108c
SS
28061# target_subdir is used by the testsuite to find the target libraries.
28062target_subdir=
28063if test "${host}" != "${target}"; then
28064 target_subdir="${target_alias}/"
28065fi
28066
28067
28068frags=
771b4502 28069if test "${gdb_native}" = "yes"; then
0dad8a66
MK
28070 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
28071 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
28072 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
28073echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
28074 { (exit 1); exit 1; }; }
0dad8a66
MK
28075 fi
28076 frags="$frags $host_makefile_frag"
28077else
28078 host_makefile_frag=/dev/null
c906108c 28079fi
c906108c 28080
c906108c
SS
28081
28082
28083
771b4502 28084if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
28085# We pick this up from the host configuration file (.mh) because we
28086# do not have a native configuration Makefile fragment.
c906108c
SS
28087nativefile=`sed -n '
28088s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
28089' ${host_makefile_frag}`
c906108c
SS
28090fi
28091
28092
b00a8037 28093if test x"${gdb_osabi}" != x ; then
bec39cab
AC
28094
28095cat >>confdefs.h <<_ACEOF
b00a8037 28096#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 28097_ACEOF
b00a8037
DJ
28098
28099fi
28100
8dcde887 28101# Enable multi-ice-gdb-server.
b4e70030 28102# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 28103if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
28104 enableval="$enable_multi_ice"
28105 case $enableval in
8dcde887
MK
28106 yes | no)
28107 ;;
bec39cab
AC
28108 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
28109echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
28110 { (exit 1); exit 1; }; } ;;
8dcde887 28111 esac
b4e70030 28112fi;
4e8d927d 28113if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
28114
28115
28116subdirs="$subdirs multi-ice"
3ace7edb 28117
a85f51e7
DJ
28118fi
28119
a13e2c95
UW
28120# We only build gdbserver automatically in a native configuration.
28121if test "$gdb_native" = "yes"; then
b4e70030
JB
28122 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
28123echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 28124 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
28125 echo "$as_me:$LINENO: result: yes" >&5
28126echo "${ECHO_T}yes" >&6
28127
28128
28129subdirs="$subdirs gdbserver"
3ace7edb 28130
8dcde887 28131 else
b4e70030
JB
28132 echo "$as_me:$LINENO: result: no" >&5
28133echo "${ECHO_T}no" >&6
8dcde887
MK
28134 fi
28135fi
28136
db985757 28137# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 28138# to an empty version.
c906108c
SS
28139
28140files=
28141links=
5a2402b8 28142
c906108c 28143rm -f nm.h
5a2402b8 28144nm_h=""
c906108c 28145if test "${nativefile}" != ""; then
5a2402b8 28146 nm_h=nm.h
0f475e27
AC
28147 case "${nativefile}" in
28148 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
28149 * ) GDB_NM_FILE="${nativefile}"
28150 esac
5a2402b8
AC
28151 files="${files} ${GDB_NM_FILE}"
28152 links="${links} nm.h"
60ca704f
SE
28153
28154cat >>confdefs.h <<_ACEOF
b78960be 28155#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 28156_ACEOF
5a2402b8 28157
c906108c 28158fi
5a2402b8
AC
28159
28160
bec39cab
AC
28161ac_sources="$files"
28162ac_dests="$links"
28163while test -n "$ac_sources"; do
28164 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
28165 set $ac_sources; ac_source=$1; shift; ac_sources=$*
28166 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
28167done
b4e70030 28168 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
28169
28170
c906108c
SS
28171
28172
c906108c 28173
c906108c 28174
bec39cab
AC
28175cat >>confdefs.h <<\_ACEOF
28176#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
28177_ACEOF
c906108c 28178
234b45d4 28179
234b45d4
KB
28180
28181
28182
b4e70030 28183# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 28184if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
28185 withval="$with_libiconv_prefix"
28186
234b45d4
KB
28187 for dir in `echo "$withval" | tr : ' '`; do
28188 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28189 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28190 done
234b45d4 28191
b4e70030 28192fi;
234b45d4 28193
b4e70030
JB
28194 echo "$as_me:$LINENO: checking for iconv" >&5
28195echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
28196if test "${am_cv_func_iconv+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 28198else
bec39cab 28199
234b45d4
KB
28200 am_cv_func_iconv="no, consider installing GNU libiconv"
28201 am_cv_lib_iconv=no
bec39cab
AC
28202 cat >conftest.$ac_ext <<_ACEOF
28203/* confdefs.h. */
28204_ACEOF
28205cat confdefs.h >>conftest.$ac_ext
28206cat >>conftest.$ac_ext <<_ACEOF
28207/* end confdefs.h. */
234b45d4
KB
28208#include <stdlib.h>
28209#include <iconv.h>
bec39cab
AC
28210int
28211main ()
28212{
234b45d4
KB
28213iconv_t cd = iconv_open("","");
28214 iconv(cd,NULL,NULL,NULL,NULL);
28215 iconv_close(cd);
bec39cab
AC
28216 ;
28217 return 0;
28218}
28219_ACEOF
28220rm -f conftest.$ac_objext conftest$ac_exeext
28221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28222 (eval $ac_link) 2>conftest.er1
28223 ac_status=$?
28224 grep -v '^ *+' conftest.er1 >conftest.err
28225 rm -f conftest.er1
28226 cat conftest.err >&5
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); } &&
b4e70030
JB
28229 { ac_try='test -z "$ac_c_werror_flag"
28230 || test ! -s conftest.err'
bec39cab
AC
28231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28232 (eval $ac_try) 2>&5
28233 ac_status=$?
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); }; } &&
28236 { ac_try='test -s conftest$ac_exeext'
28237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238 (eval $ac_try) 2>&5
28239 ac_status=$?
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; }; then
234b45d4
KB
28242 am_cv_func_iconv=yes
28243else
bec39cab
AC
28244 echo "$as_me: failed program was:" >&5
28245sed 's/^/| /' conftest.$ac_ext >&5
28246
234b45d4 28247fi
bec39cab
AC
28248rm -f conftest.err conftest.$ac_objext \
28249 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
28250 if test "$am_cv_func_iconv" != yes; then
28251 am_save_LIBS="$LIBS"
28252 LIBS="$LIBS -liconv"
bec39cab
AC
28253 cat >conftest.$ac_ext <<_ACEOF
28254/* confdefs.h. */
28255_ACEOF
28256cat confdefs.h >>conftest.$ac_ext
28257cat >>conftest.$ac_ext <<_ACEOF
28258/* end confdefs.h. */
234b45d4
KB
28259#include <stdlib.h>
28260#include <iconv.h>
bec39cab
AC
28261int
28262main ()
28263{
234b45d4
KB
28264iconv_t cd = iconv_open("","");
28265 iconv(cd,NULL,NULL,NULL,NULL);
28266 iconv_close(cd);
bec39cab
AC
28267 ;
28268 return 0;
28269}
28270_ACEOF
28271rm -f conftest.$ac_objext conftest$ac_exeext
28272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28273 (eval $ac_link) 2>conftest.er1
28274 ac_status=$?
28275 grep -v '^ *+' conftest.er1 >conftest.err
28276 rm -f conftest.er1
28277 cat conftest.err >&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); } &&
b4e70030
JB
28280 { ac_try='test -z "$ac_c_werror_flag"
28281 || test ! -s conftest.err'
bec39cab
AC
28282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283 (eval $ac_try) 2>&5
28284 ac_status=$?
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; } &&
28287 { ac_try='test -s conftest$ac_exeext'
28288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289 (eval $ac_try) 2>&5
28290 ac_status=$?
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; }; then
234b45d4
KB
28293 am_cv_lib_iconv=yes
28294 am_cv_func_iconv=yes
28295else
bec39cab
AC
28296 echo "$as_me: failed program was:" >&5
28297sed 's/^/| /' conftest.$ac_ext >&5
28298
234b45d4 28299fi
bec39cab
AC
28300rm -f conftest.err conftest.$ac_objext \
28301 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
28302 LIBS="$am_save_LIBS"
28303 fi
bec39cab
AC
28304
28305fi
b4e70030
JB
28306echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28307echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
28308 if test "$am_cv_func_iconv" = yes; then
28309
28310cat >>confdefs.h <<\_ACEOF
28311#define HAVE_ICONV 1
28312_ACEOF
28313
b4e70030
JB
28314 echo "$as_me:$LINENO: checking for iconv declaration" >&5
28315echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
28316 if test "${am_cv_proto_iconv+set}" = set; then
28317 echo $ECHO_N "(cached) $ECHO_C" >&6
28318else
28319
28320 cat >conftest.$ac_ext <<_ACEOF
28321/* confdefs.h. */
28322_ACEOF
28323cat confdefs.h >>conftest.$ac_ext
28324cat >>conftest.$ac_ext <<_ACEOF
28325/* end confdefs.h. */
28326
28327#include <stdlib.h>
28328#include <iconv.h>
28329extern
28330#ifdef __cplusplus
28331"C"
28332#endif
28333#if defined(__STDC__) || defined(__cplusplus)
28334size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28335#else
28336size_t iconv();
28337#endif
28338
28339int
28340main ()
28341{
28342
28343 ;
28344 return 0;
28345}
28346_ACEOF
28347rm -f conftest.$ac_objext
28348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28349 (eval $ac_compile) 2>conftest.er1
28350 ac_status=$?
28351 grep -v '^ *+' conftest.er1 >conftest.err
28352 rm -f conftest.er1
28353 cat conftest.err >&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } &&
b4e70030
JB
28356 { ac_try='test -z "$ac_c_werror_flag"
28357 || test ! -s conftest.err'
bec39cab
AC
28358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359 (eval $ac_try) 2>&5
28360 ac_status=$?
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; } &&
28363 { ac_try='test -s conftest.$ac_objext'
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 am_cv_proto_iconv_arg1=""
28370else
28371 echo "$as_me: failed program was:" >&5
28372sed 's/^/| /' conftest.$ac_ext >&5
28373
b4e70030 28374am_cv_proto_iconv_arg1="const"
bec39cab
AC
28375fi
28376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28377 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);"
28378fi
28379
28380 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 28381 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
28382 }$am_cv_proto_iconv" >&5
28383echo "${ECHO_T}${ac_t:-
b4e70030 28384 }$am_cv_proto_iconv" >&6
bec39cab
AC
28385
28386cat >>confdefs.h <<_ACEOF
28387#define ICONV_CONST $am_cv_proto_iconv_arg1
28388_ACEOF
28389
28390 fi
28391 LIBICONV=
28392 if test "$am_cv_lib_iconv" = yes; then
28393 LIBICONV="-liconv"
28394 fi
28395
28396
28397
e28b3332 28398 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
b4e70030 28399 ac_config_commands="$ac_config_commands default"
bec39cab
AC
28400cat >confcache <<\_ACEOF
28401# This file is a shell script that caches the results of configure
28402# tests run on this system so they can be shared between configure
28403# scripts and configure runs, see configure's option --config-cache.
28404# It is not useful on other systems. If it contains results you don't
28405# want to keep, you may remove or edit it.
28406#
28407# config.status only pays attention to the cache file if you give it
28408# the --recheck option to rerun configure.
28409#
28410# `ac_cv_env_foo' variables (set or unset) will be overridden when
28411# loading this file, other *unset* `ac_cv_foo' will be assigned the
28412# following values.
28413
28414_ACEOF
28415
28416# The following way of writing the cache mishandles newlines in values,
28417# but we know of no workaround that is simple, portable, and efficient.
b4e70030 28418# So, don't put newlines in cache variables' values.
bec39cab
AC
28419# Ultrix sh set writes to stderr and can't be redirected directly,
28420# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 28421{
bec39cab 28422 (set) 2>&1 |
b4e70030
JB
28423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28424 *ac_space=\ *)
bec39cab
AC
28425 # `set' does not quote correctly, so add quotes (double-quote
28426 # substitution turns \\\\ into \\, and sed turns \\ into \).
28427 sed -n \
28428 "s/'/'\\\\''/g;
28429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 28430 ;;
bec39cab
AC
28431 *)
28432 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
28433 sed -n \
28434 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 28435 ;;
b4e70030
JB
28436 esac;
28437} |
bec39cab
AC
28438 sed '
28439 t clear
b4e70030 28440 : clear
bec39cab
AC
28441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28442 t end
b4e70030
JB
28443 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28444 : end' >>confcache
bec39cab
AC
28445if diff $cache_file confcache >/dev/null 2>&1; then :; else
28446 if test -w $cache_file; then
b4e70030 28447 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
28448 cat confcache >$cache_file
28449 else
b4e70030 28450 echo "not updating unwritable cache $cache_file"
bec39cab
AC
28451 fi
28452fi
28453rm -f confcache
28454
28455test "x$prefix" = xNONE && prefix=$ac_default_prefix
28456# Let make expand exec_prefix.
28457test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28458
b4e70030
JB
28459# VPATH may cause trouble with some makes, so we remove $(srcdir),
28460# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28461# trailing colons and then remove the whole line if VPATH becomes empty
28462# (actually we leave an empty line to preserve line numbers).
28463if test "x$srcdir" = x.; then
28464 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28465s/:*\$(srcdir):*/:/;
28466s/:*\${srcdir}:*/:/;
28467s/:*@srcdir@:*/:/;
28468s/^\([^=]*=[ ]*\):*/\1/;
28469s/:*$//;
28470s/^[^=]*=[ ]*$//;
28471}'
28472fi
28473
bec39cab
AC
28474DEFS=-DHAVE_CONFIG_H
28475
28476ac_libobjs=
28477ac_ltlibobjs=
28478for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28479 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
28480 ac_i=`echo "$ac_i" |
28481 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28482 # 2. Add them.
28483 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28484 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
28485done
28486LIBOBJS=$ac_libobjs
28487
28488LTLIBOBJS=$ac_ltlibobjs
28489
28490
85981d60
AC
28491if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28492 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28493Usually this means the macro was only invoked conditionally." >&5
28494echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28495Usually this means the macro was only invoked conditionally." >&2;}
28496 { (exit 1); exit 1; }; }
28497fi
783e057b
DJ
28498if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28499 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28500Usually this means the macro was only invoked conditionally." >&5
28501echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28502Usually this means the macro was only invoked conditionally." >&2;}
28503 { (exit 1); exit 1; }; }
28504fi
28505
28506 gl_libobjs=
28507 gl_ltlibobjs=
28508 if test -n "$gl_LIBOBJS"; then
28509 # Remove the extension.
28510 sed_drop_objext='s/\.o$//;s/\.obj$//'
28511 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28512 gl_libobjs="$gl_libobjs $i.$ac_objext"
28513 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28514 done
28515 fi
28516 gl_LIBOBJS=$gl_libobjs
28517
28518 gl_LTLIBOBJS=$gl_ltlibobjs
28519
28520
28521
28522 gltests_libobjs=
28523 gltests_ltlibobjs=
28524 if test -n "$gltests_LIBOBJS"; then
28525 # Remove the extension.
28526 sed_drop_objext='s/\.o$//;s/\.obj$//'
28527 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28528 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28529 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28530 done
28531 fi
28532 gltests_LIBOBJS=$gltests_libobjs
28533
28534 gltests_LTLIBOBJS=$gltests_ltlibobjs
28535
28536
e28b3332
DJ
28537if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28538 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28539Usually this means the macro was only invoked conditionally." >&5
28540echo "$as_me: error: conditional \"AMDEP\" was never defined.
28541Usually this means the macro was only invoked conditionally." >&2;}
28542 { (exit 1); exit 1; }; }
28543fi
28544if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28545 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28546Usually this means the macro was only invoked conditionally." >&5
28547echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28548Usually this means the macro was only invoked conditionally." >&2;}
28549 { (exit 1); exit 1; }; }
28550fi
bec39cab
AC
28551
28552: ${CONFIG_STATUS=./config.status}
28553ac_clean_files_save=$ac_clean_files
28554ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28555{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28556echo "$as_me: creating $CONFIG_STATUS" >&6;}
28557cat >$CONFIG_STATUS <<_ACEOF
28558#! $SHELL
28559# Generated by $as_me.
28560# Run this file to recreate the current configuration.
28561# Compiler output produced by configure, useful for debugging
28562# configure, is in config.log if it exists.
28563
28564debug=false
28565ac_cs_recheck=false
28566ac_cs_silent=false
28567SHELL=\${CONFIG_SHELL-$SHELL}
28568_ACEOF
28569
28570cat >>$CONFIG_STATUS <<\_ACEOF
28571## --------------------- ##
28572## M4sh Initialization. ##
28573## --------------------- ##
28574
28575# Be Bourne compatible
28576if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28577 emulate sh
28578 NULLCMD=:
28579 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28580 # is contrary to our usage. Disable this feature.
28581 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
28582elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28583 set -o posix
bec39cab
AC
28584fi
28585DUALCASE=1; export DUALCASE # for MKS sh
28586
28587# Support unset when possible.
28588if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28589 as_unset=unset
28590else
28591 as_unset=false
28592fi
28593
28594
28595# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 28596$as_unset ENV MAIL MAILPATH
bec39cab
AC
28597PS1='$ '
28598PS2='> '
28599PS4='+ '
28600
28601# NLS nuisances.
28602for as_var in \
28603 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28604 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28605 LC_TELEPHONE LC_TIME
28606do
28607 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28608 eval $as_var=C; export $as_var
28609 else
b4e70030 28610 $as_unset $as_var
bec39cab
AC
28611 fi
28612done
28613
28614# Required to use basename.
b4e70030 28615if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
28616 as_expr=expr
28617else
28618 as_expr=false
28619fi
28620
b4e70030 28621if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
28622 as_basename=basename
28623else
28624 as_basename=false
28625fi
28626
28627
28628# Name of the executable.
b4e70030 28629as_me=`$as_basename "$0" ||
bec39cab
AC
28630$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28631 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
28632 X"$0" : 'X\(/\)$' \| \
28633 . : '\(.\)' 2>/dev/null ||
bec39cab 28634echo X/"$0" |
b4e70030
JB
28635 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28636 /^X\/\(\/\/\)$/{ s//\1/; q; }
28637 /^X\/\(\/\).*/{ s//\1/; q; }
28638 s/.*/./; q'`
bec39cab 28639
b4e70030
JB
28640
28641# PATH needs CR, and LINENO needs CR and PATH.
28642# Avoid depending upon Character Ranges.
28643as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28644as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28645as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28646as_cr_digits='0123456789'
28647as_cr_alnum=$as_cr_Letters$as_cr_digits
28648
28649# The user is always right.
28650if test "${PATH_SEPARATOR+set}" != set; then
28651 echo "#! /bin/sh" >conf$$.sh
28652 echo "exit 0" >>conf$$.sh
28653 chmod +x conf$$.sh
28654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28655 PATH_SEPARATOR=';'
28656 else
28657 PATH_SEPARATOR=:
28658 fi
28659 rm -f conf$$.sh
28660fi
bec39cab
AC
28661
28662
b4e70030
JB
28663 as_lineno_1=$LINENO
28664 as_lineno_2=$LINENO
28665 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28666 test "x$as_lineno_1" != "x$as_lineno_2" &&
28667 test "x$as_lineno_3" = "x$as_lineno_2" || {
28668 # Find who we are. Look in the path if we contain no path at all
28669 # relative or not.
28670 case $0 in
28671 *[\\/]* ) as_myself=$0 ;;
28672 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28673for as_dir in $PATH
28674do
28675 IFS=$as_save_IFS
28676 test -z "$as_dir" && as_dir=.
28677 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28678done
bec39cab 28679
b4e70030
JB
28680 ;;
28681 esac
28682 # We did not find ourselves, most probably we were run as `sh COMMAND'
28683 # in which case we are not to be found in the path.
28684 if test "x$as_myself" = x; then
28685 as_myself=$0
28686 fi
28687 if test ! -f "$as_myself"; then
28688 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28689echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28690 { (exit 1); exit 1; }; }
28691 fi
28692 case $CONFIG_SHELL in
28693 '')
28694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28695for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28696do
28697 IFS=$as_save_IFS
28698 test -z "$as_dir" && as_dir=.
28699 for as_base in sh bash ksh sh5; do
28700 case $as_dir in
28701 /*)
28702 if ("$as_dir/$as_base" -c '
bec39cab
AC
28703 as_lineno_1=$LINENO
28704 as_lineno_2=$LINENO
b4e70030 28705 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 28706 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
28707 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28708 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28709 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28710 CONFIG_SHELL=$as_dir/$as_base
28711 export CONFIG_SHELL
28712 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28713 fi;;
28714 esac
28715 done
28716done
28717;;
28718 esac
bec39cab
AC
28719
28720 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28721 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
28722 # line-number line before each line; the second 'sed' does the real
28723 # work. The second script uses 'N' to pair each line-number line
28724 # with the numbered line, and appends trailing '-' during
28725 # substitution so that $LINENO is not a special case at line end.
bec39cab 28726 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
28727 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28728 sed '=' <$as_myself |
bec39cab
AC
28729 sed '
28730 N
b4e70030
JB
28731 s,$,-,
28732 : loop
28733 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 28734 t loop
b4e70030
JB
28735 s,-$,,
28736 s,^['$as_cr_digits']*\n,,
bec39cab 28737 ' >$as_me.lineno &&
b4e70030
JB
28738 chmod +x $as_me.lineno ||
28739 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28740echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
28741 { (exit 1); exit 1; }; }
28742
28743 # Don't try to exec as it changes $[0], causing all sort of problems
28744 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
28745 # original and so on. Autoconf is especially sensible to this).
28746 . ./$as_me.lineno
bec39cab
AC
28747 # Exit status is that of the last command.
28748 exit
28749}
28750
28751
b4e70030
JB
28752case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28753 *c*,-n*) ECHO_N= ECHO_C='
28754' ECHO_T=' ' ;;
28755 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28756 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
28757esac
28758
b4e70030 28759if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
28760 as_expr=expr
28761else
28762 as_expr=false
28763fi
28764
28765rm -f conf$$ conf$$.exe conf$$.file
28766echo >conf$$.file
28767if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
28768 # We could just check for DJGPP; but this test a) works b) is more generic
28769 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28770 if test -f conf$$.exe; then
28771 # Don't use ln at all; we don't have any links
bec39cab 28772 as_ln_s='cp -p'
b4e70030
JB
28773 else
28774 as_ln_s='ln -s'
28775 fi
bec39cab
AC
28776elif ln conf$$.file conf$$ 2>/dev/null; then
28777 as_ln_s=ln
28778else
28779 as_ln_s='cp -p'
28780fi
b4e70030 28781rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
28782
28783if mkdir -p . 2>/dev/null; then
28784 as_mkdir_p=:
28785else
28786 test -d ./-p && rmdir ./-p
28787 as_mkdir_p=false
28788fi
28789
b4e70030 28790as_executable_p="test -f"
bec39cab
AC
28791
28792# Sed expression to map a string onto a valid CPP name.
28793as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28794
28795# Sed expression to map a string onto a valid variable name.
28796as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28797
28798
b4e70030
JB
28799# IFS
28800# We need space, tab and new line, in precisely that order.
28801as_nl='
28802'
28803IFS=" $as_nl"
28804
28805# CDPATH.
28806$as_unset CDPATH
28807
bec39cab
AC
28808exec 6>&1
28809
b4e70030 28810# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 28811# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
28812# values after options handling. Logging --version etc. is OK.
28813exec 5>>config.log
28814{
28815 echo
28816 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28817## Running $as_me. ##
28818_ASBOX
28819} >&5
28820cat >&5 <<_CSEOF
28821
bec39cab 28822This file was extended by $as_me, which was
b4e70030 28823generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
28824
28825 CONFIG_FILES = $CONFIG_FILES
28826 CONFIG_HEADERS = $CONFIG_HEADERS
28827 CONFIG_LINKS = $CONFIG_LINKS
28828 CONFIG_COMMANDS = $CONFIG_COMMANDS
28829 $ $0 $@
28830
b4e70030
JB
28831_CSEOF
28832echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28833echo >&5
bec39cab
AC
28834_ACEOF
28835
28836# Files that config.status was made for.
b4e70030
JB
28837if test -n "$ac_config_files"; then
28838 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28839fi
234b45d4 28840
b4e70030
JB
28841if test -n "$ac_config_headers"; then
28842 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28843fi
28844
28845if test -n "$ac_config_links"; then
28846 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28847fi
28848
28849if test -n "$ac_config_commands"; then
28850 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28851fi
234b45d4 28852
bec39cab 28853cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 28854
bec39cab
AC
28855ac_cs_usage="\
28856\`$as_me' instantiates files from templates according to the
28857current configuration.
234b45d4 28858
bec39cab 28859Usage: $0 [OPTIONS] [FILE]...
234b45d4 28860
bec39cab
AC
28861 -h, --help print this help, then exit
28862 -V, --version print version number, then exit
28863 -q, --quiet do not print progress messages
28864 -d, --debug don't remove temporary files
28865 --recheck update $as_me by reconfiguring in the same conditions
28866 --file=FILE[:TEMPLATE]
28867 instantiate the configuration file FILE
28868 --header=FILE[:TEMPLATE]
28869 instantiate the configuration header FILE
234b45d4 28870
bec39cab
AC
28871Configuration files:
28872$config_files
234b45d4 28873
bec39cab
AC
28874Configuration headers:
28875$config_headers
234b45d4 28876
bec39cab
AC
28877Configuration links:
28878$config_links
234b45d4 28879
bec39cab
AC
28880Configuration commands:
28881$config_commands
28882
28883Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 28884_ACEOF
b4e70030 28885
bec39cab
AC
28886cat >>$CONFIG_STATUS <<_ACEOF
28887ac_cs_version="\\
28888config.status
b4e70030 28889configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
28890 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28891
b4e70030 28892Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
28893This config.status script is free software; the Free Software Foundation
28894gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
28895srcdir=$srcdir
28896INSTALL="$INSTALL"
bec39cab
AC
28897_ACEOF
28898
28899cat >>$CONFIG_STATUS <<\_ACEOF
28900# If no file are specified by the user, then we need to provide default
28901# value. By we need to know if files were specified by the user.
28902ac_need_defaults=:
28903while test $# != 0
28904do
28905 case $1 in
28906 --*=*)
b4e70030
JB
28907 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28908 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 28909 ac_shift=:
c906108c 28910 ;;
b4e70030 28911 -*)
bec39cab
AC
28912 ac_option=$1
28913 ac_optarg=$2
28914 ac_shift=shift
c906108c 28915 ;;
b4e70030
JB
28916 *) # This is not an option, so the user has probably given explicit
28917 # arguments.
28918 ac_option=$1
28919 ac_need_defaults=false;;
bec39cab 28920 esac
c906108c 28921
bec39cab
AC
28922 case $ac_option in
28923 # Handling of the options.
b4e70030
JB
28924_ACEOF
28925cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
28926 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28927 ac_cs_recheck=: ;;
b4e70030
JB
28928 --version | --vers* | -V )
28929 echo "$ac_cs_version"; exit 0 ;;
28930 --he | --h)
28931 # Conflict between --help and --header
28932 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28933Try \`$0 --help' for more information." >&5
28934echo "$as_me: error: ambiguous option: $1
28935Try \`$0 --help' for more information." >&2;}
28936 { (exit 1); exit 1; }; };;
28937 --help | --hel | -h )
28938 echo "$ac_cs_usage"; exit 0 ;;
28939 --debug | --d* | -d )
bec39cab
AC
28940 debug=: ;;
28941 --file | --fil | --fi | --f )
28942 $ac_shift
28943 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28944 ac_need_defaults=false;;
28945 --header | --heade | --head | --hea )
28946 $ac_shift
28947 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28948 ac_need_defaults=false;;
28949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28951 ac_cs_silent=: ;;
c906108c 28952
bec39cab 28953 # This is an error.
b4e70030
JB
28954 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28955Try \`$0 --help' for more information." >&5
28956echo "$as_me: error: unrecognized option: $1
28957Try \`$0 --help' for more information." >&2;}
bec39cab 28958 { (exit 1); exit 1; }; } ;;
c906108c 28959
b4e70030 28960 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 28961
bec39cab
AC
28962 esac
28963 shift
28964done
c906108c 28965
bec39cab 28966ac_configure_extra_args=
c906108c 28967
bec39cab
AC
28968if $ac_cs_silent; then
28969 exec 6>/dev/null
28970 ac_configure_extra_args="$ac_configure_extra_args --silent"
28971fi
c906108c 28972
bec39cab
AC
28973_ACEOF
28974cat >>$CONFIG_STATUS <<_ACEOF
28975if \$ac_cs_recheck; then
b4e70030
JB
28976 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28977 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
28978fi
28979
28980_ACEOF
28981
28982cat >>$CONFIG_STATUS <<_ACEOF
c906108c 28983#
b4e70030 28984# INIT-COMMANDS section.
c906108c 28985#
c906108c 28986
e28b3332 28987AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 28988
4e8d927d
DJ
28989GCC="$GCC"
28990CC="$CC"
28991acx_cv_header_stdint="$acx_cv_header_stdint"
28992acx_cv_type_int8_t="$acx_cv_type_int8_t"
28993acx_cv_type_int16_t="$acx_cv_type_int16_t"
28994acx_cv_type_int32_t="$acx_cv_type_int32_t"
28995acx_cv_type_int64_t="$acx_cv_type_int64_t"
28996acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28997ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28998ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28999ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
29000ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
29001ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
29002ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
29003ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
29004ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
29005
bec39cab
AC
29006
29007gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
29008nativefile=$nativefile
29009
29010
29011_ACEOF
29012
4e8d927d 29013
b4e70030
JB
29014
29015cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 29016for ac_config_target in $ac_config_targets
c906108c 29017do
b4e70030
JB
29018 case "$ac_config_target" in
29019 # Handling of arguments.
29020 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29021 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
e28b3332 29022 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
b4e70030 29023 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
e28b3332 29024 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b4e70030
JB
29025 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
29026 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29027 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
29028 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29029echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29030 { (exit 1); exit 1; }; };;
c906108c
SS
29031 esac
29032done
29033
bec39cab
AC
29034# If the user did not use the arguments to specify the items to instantiate,
29035# then the envvar interface is used. Set only those that are not.
29036# We use the long form for the default assignment because of an extremely
29037# bizarre bug on SunOS 4.1.3.
29038if $ac_need_defaults; then
29039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29040 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29041 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29042 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29043fi
29044
b4e70030
JB
29045# Have a temporary directory for convenience. Make it in the build tree
29046# simply because there is no reason to put it here, and in addition,
29047# creating and moving files from /tmp can sometimes cause problems.
29048# Create a temporary directory, and hook for its removal unless debugging.
29049$debug ||
29050{
29051 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29052 trap '{ (exit 1); exit 1; }' 1 2 13 15
29053}
4e8d927d 29054
b4e70030 29055# Create a (secure) tmp directory for tmp files.
4e8d927d 29056
b4e70030
JB
29057{
29058 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29059 test -n "$tmp" && test -d "$tmp"
29060} ||
29061{
29062 tmp=./confstat$$-$RANDOM
29063 (umask 077 && mkdir $tmp)
29064} ||
29065{
29066 echo "$me: cannot create a temporary directory in ." >&2
29067 { (exit 1); exit 1; }
29068}
4e8d927d 29069
b4e70030 29070_ACEOF
4e8d927d 29071
b4e70030 29072cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 29073
b4e70030
JB
29074#
29075# CONFIG_FILES section.
29076#
4e8d927d 29077
b4e70030
JB
29078# No need to generate the scripts if there are no CONFIG_FILES.
29079# This happens for instance when ./config.status config.h
29080if test -n "\$CONFIG_FILES"; then
29081 # Protect against being on the right side of a sed subst in config.status.
29082 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29083 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29084s,@SHELL@,$SHELL,;t t
29085s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29086s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29087s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29088s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29089s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29090s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29091s,@exec_prefix@,$exec_prefix,;t t
29092s,@prefix@,$prefix,;t t
29093s,@program_transform_name@,$program_transform_name,;t t
29094s,@bindir@,$bindir,;t t
29095s,@sbindir@,$sbindir,;t t
29096s,@libexecdir@,$libexecdir,;t t
29097s,@datadir@,$datadir,;t t
29098s,@sysconfdir@,$sysconfdir,;t t
29099s,@sharedstatedir@,$sharedstatedir,;t t
29100s,@localstatedir@,$localstatedir,;t t
29101s,@libdir@,$libdir,;t t
29102s,@includedir@,$includedir,;t t
29103s,@oldincludedir@,$oldincludedir,;t t
29104s,@infodir@,$infodir,;t t
29105s,@mandir@,$mandir,;t t
29106s,@build_alias@,$build_alias,;t t
29107s,@host_alias@,$host_alias,;t t
29108s,@target_alias@,$target_alias,;t t
29109s,@DEFS@,$DEFS,;t t
29110s,@ECHO_C@,$ECHO_C,;t t
29111s,@ECHO_N@,$ECHO_N,;t t
29112s,@ECHO_T@,$ECHO_T,;t t
29113s,@LIBS@,$LIBS,;t t
29114s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29115s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29116s,@MAINT@,$MAINT,;t t
29117s,@CC@,$CC,;t t
29118s,@CFLAGS@,$CFLAGS,;t t
29119s,@LDFLAGS@,$LDFLAGS,;t t
29120s,@CPPFLAGS@,$CPPFLAGS,;t t
29121s,@ac_ct_CC@,$ac_ct_CC,;t t
29122s,@EXEEXT@,$EXEEXT,;t t
29123s,@OBJEXT@,$OBJEXT,;t t
29124s,@CPP@,$CPP,;t t
29125s,@EGREP@,$EGREP,;t t
783e057b
DJ
29126s,@RANLIB@,$RANLIB,;t t
29127s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
29128s,@build@,$build,;t t
29129s,@build_cpu@,$build_cpu,;t t
29130s,@build_vendor@,$build_vendor,;t t
29131s,@build_os@,$build_os,;t t
29132s,@host@,$host,;t t
29133s,@host_cpu@,$host_cpu,;t t
29134s,@host_vendor@,$host_vendor,;t t
29135s,@host_os@,$host_os,;t t
29136s,@target@,$target,;t t
29137s,@target_cpu@,$target_cpu,;t t
29138s,@target_vendor@,$target_vendor,;t t
29139s,@target_os@,$target_os,;t t
b4e70030 29140s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
29141s,@LIBINTL@,$LIBINTL,;t t
29142s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
29143s,@INCINTL@,$INCINTL,;t t
b4e70030 29144s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
29145s,@GMSGFMT@,$GMSGFMT,;t t
29146s,@POSUB@,$POSUB,;t t
b4e70030 29147s,@CATALOGS@,$CATALOGS,;t t
b4e70030 29148s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 29149s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
29150s,@GENCAT@,$GENCAT,;t t
29151s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030 29152s,@localedir@,$localedir,;t t
783e057b
DJ
29153s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
29154s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
29155s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
29156s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
29157s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
29158s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
29159s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
29160s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
29161s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
29162s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
29163s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
29164s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
29165s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
29166s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
29167s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
29168s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
29169s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
29170s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
29171s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
29172s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
29173s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
29174s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
29175s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
29176s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
29177s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
29178s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
29179s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
29180s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
29181s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
29182s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
29183s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
29184s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
29185s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
29186s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
29187s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
29188s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
29189s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
29190s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
29191s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
29192s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
29193s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
29194s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
29195s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
29196s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
29197s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
29198s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
29199s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
29200s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
29201s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
29202s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
29203s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
29204s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
29205s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
29206s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
29207s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
29208s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
29209s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
29210s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
29211s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
29212s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29213s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
29214s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
29215s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
29216s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
29217s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
29218s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
29219s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
29220s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
29221s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
29222s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
29223s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
29224s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
29225s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
29226s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
29227s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
29228s,@STDINT_H@,$STDINT_H,;t t
29229s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
29230s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
29231s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
29232s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
29233s,@WCHAR_H@,$WCHAR_H,;t t
29234s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
29235s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
29236s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
29237s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
b4e70030 29238s,@PACKAGE@,$PACKAGE,;t t
b4e70030
JB
29239s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29240s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29241s,@INSTALL_DATA@,$INSTALL_DATA,;t t
e28b3332
DJ
29242s,@CYGPATH_W@,$CYGPATH_W,;t t
29243s,@VERSION@,$VERSION,;t t
29244s,@ACLOCAL@,$ACLOCAL,;t t
29245s,@AUTOCONF@,$AUTOCONF,;t t
29246s,@AUTOMAKE@,$AUTOMAKE,;t t
29247s,@AUTOHEADER@,$AUTOHEADER,;t t
29248s,@MAKEINFO@,$MAKEINFO,;t t
29249s,@install_sh@,$install_sh,;t t
29250s,@STRIP@,$STRIP,;t t
29251s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29252s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29253s,@mkdir_p@,$mkdir_p,;t t
29254s,@AWK@,$AWK,;t t
29255s,@SET_MAKE@,$SET_MAKE,;t t
29256s,@am__leading_dot@,$am__leading_dot,;t t
29257s,@AMTAR@,$AMTAR,;t t
29258s,@am__tar@,$am__tar,;t t
29259s,@am__untar@,$am__untar,;t t
29260s,@DEPDIR@,$DEPDIR,;t t
29261s,@am__include@,$am__include,;t t
29262s,@am__quote@,$am__quote,;t t
29263s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29264s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29265s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29266s,@CCDEPMODE@,$CCDEPMODE,;t t
29267s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29268s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29269s,@subdirs@,$subdirs,;t t
29270s,@TARGET_OBS@,$TARGET_OBS,;t t
b4e70030
JB
29271s,@LN_S@,$LN_S,;t t
29272s,@YACC@,$YACC,;t t
29273s,@AR@,$AR,;t t
29274s,@ac_ct_AR@,$ac_ct_AR,;t t
29275s,@DLLTOOL@,$DLLTOOL,;t t
29276s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
29277s,@WINDRES@,$WINDRES,;t t
29278s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
29279s,@MIG@,$MIG,;t t
29280s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
29281s,@READLINE@,$READLINE,;t t
29282s,@READLINE_DEPS@,$READLINE_DEPS,;t t
29283s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
29284s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
29285s,@LIBEXPAT@,$LIBEXPAT,;t t
29286s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 29287s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
29288s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
29289s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
29290s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
29291s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
29292s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
29293s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
29294s,@WIN32LIBS@,$WIN32LIBS,;t t
29295s,@LIBGUI@,$LIBGUI,;t t
29296s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
29297s,@WIN32LDAPP@,$WIN32LDAPP,;t t
29298s,@TCL_VERSION@,$TCL_VERSION,;t t
29299s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
29300s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
29301s,@TCL_CC@,$TCL_CC,;t t
29302s,@TCL_DEFS@,$TCL_DEFS,;t t
29303s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
29304s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
29305s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
29306s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
29307s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
29308s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
29309s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
29310s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
29311s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
29312s,@TCL_RANLIB@,$TCL_RANLIB,;t t
29313s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
29314s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
29315s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
29316s,@TK_VERSION@,$TK_VERSION,;t t
29317s,@TK_DEFS@,$TK_DEFS,;t t
29318s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
29319s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
29320s,@TK_XLIBSW@,$TK_XLIBSW,;t t
29321s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
29322s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
29323s,@TCLHDIR@,$TCLHDIR,;t t
29324s,@TKHDIR@,$TKHDIR,;t t
29325s,@ITCLHDIR@,$ITCLHDIR,;t t
29326s,@ITKHDIR@,$ITKHDIR,;t t
29327s,@ITCL_VERSION@,$ITCL_VERSION,;t t
29328s,@ITCL_DEFS@,$ITCL_DEFS,;t t
29329s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
29330s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
29331s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
29332s,@ITK_VERSION@,$ITK_VERSION,;t t
29333s,@ITK_DEFS@,$ITK_DEFS,;t t
29334s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
29335s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
29336s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
29337s,@X_CFLAGS@,$X_CFLAGS,;t t
29338s,@X_LDFLAGS@,$X_LDFLAGS,;t t
29339s,@X_LIBS@,$X_LIBS,;t t
29340s,@TCL_DEPS@,$TCL_DEPS,;t t
29341s,@TK_DEPS@,$TK_DEPS,;t t
29342s,@ITCLLIB@,$ITCLLIB,;t t
29343s,@ITCL_DEPS@,$ITCL_DEPS,;t t
29344s,@ITKLIB@,$ITKLIB,;t t
29345s,@ITK_DEPS@,$ITK_DEPS,;t t
29346s,@GDBTKLIBS@,$GDBTKLIBS,;t t
29347s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
29348s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
29349s,@SIM@,$SIM,;t t
29350s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
29351s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
29352s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
29353s,@CONFIG_OBS@,$CONFIG_OBS,;t t
29354s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
29355s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
29356s,@CONFIG_ALL@,$CONFIG_ALL,;t t
29357s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
29358s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
29359s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
29360s,@target_subdir@,$target_subdir,;t t
29361s,@frags@,$frags,;t t
b4e70030
JB
29362s,@nm_h@,$nm_h,;t t
29363s,@LIBICONV@,$LIBICONV,;t t
29364s,@LIBOBJS@,$LIBOBJS,;t t
29365s,@LTLIBOBJS@,$LTLIBOBJS,;t t
783e057b
DJ
29366s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
29367s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
29368s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
29369s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
b4e70030
JB
29370/@host_makefile_frag@/r $host_makefile_frag
29371s,@host_makefile_frag@,,;t t
b4e70030
JB
29372CEOF
29373
29374_ACEOF
29375
29376 cat >>$CONFIG_STATUS <<\_ACEOF
29377 # Split the substitutions into bite-sized pieces for seds with
29378 # small command number limits, like on Digital OSF/1 and HP-UX.
29379 ac_max_sed_lines=48
29380 ac_sed_frag=1 # Number of current file.
29381 ac_beg=1 # First line for current file.
29382 ac_end=$ac_max_sed_lines # Line after last line for current file.
29383 ac_more_lines=:
29384 ac_sed_cmds=
29385 while $ac_more_lines; do
29386 if test $ac_beg -gt 1; then
29387 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29388 else
29389 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 29390 fi
b4e70030
JB
29391 if test ! -s $tmp/subs.frag; then
29392 ac_more_lines=false
29393 else
29394 # The purpose of the label and of the branching condition is to
29395 # speed up the sed processing (if there are no `@' at all, there
29396 # is no need to browse any of the substitutions).
29397 # These are the two extra sed commands mentioned above.
29398 (echo ':t
29399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29400 if test -z "$ac_sed_cmds"; then
29401 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29402 else
29403 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29404 fi
29405 ac_sed_frag=`expr $ac_sed_frag + 1`
29406 ac_beg=$ac_end
29407 ac_end=`expr $ac_end + $ac_max_sed_lines`
29408 fi
29409 done
29410 if test -z "$ac_sed_cmds"; then
29411 ac_sed_cmds=cat
29412 fi
29413fi # test -n "$CONFIG_FILES"
4e8d927d 29414
b4e70030
JB
29415_ACEOF
29416cat >>$CONFIG_STATUS <<\_ACEOF
29417for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29419 case $ac_file in
29420 - | *:- | *:-:* ) # input from stdin
29421 cat >$tmp/stdin
29422 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29424 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29426 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
29427 esac
29428
b4e70030
JB
29429 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29430 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
29431$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29432 X"$ac_file" : 'X\(//\)[^/]' \| \
29433 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
29434 X"$ac_file" : 'X\(/\)' \| \
29435 . : '\(.\)' 2>/dev/null ||
bec39cab 29436echo X"$ac_file" |
b4e70030
JB
29437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29439 /^X\(\/\/\)$/{ s//\1/; q; }
29440 /^X\(\/\).*/{ s//\1/; q; }
29441 s/.*/./; q'`
29442 { if $as_mkdir_p; then
29443 mkdir -p "$ac_dir"
29444 else
29445 as_dir="$ac_dir"
bec39cab 29446 as_dirs=
b4e70030
JB
29447 while test ! -d "$as_dir"; do
29448 as_dirs="$as_dir $as_dirs"
29449 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
29450$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29451 X"$as_dir" : 'X\(//\)[^/]' \| \
29452 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
29453 X"$as_dir" : 'X\(/\)' \| \
29454 . : '\(.\)' 2>/dev/null ||
bec39cab 29455echo X"$as_dir" |
b4e70030
JB
29456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29458 /^X\(\/\/\)$/{ s//\1/; q; }
29459 /^X\(\/\).*/{ s//\1/; q; }
29460 s/.*/./; q'`
bec39cab 29461 done
b4e70030
JB
29462 test ! -n "$as_dirs" || mkdir $as_dirs
29463 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29464echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 29465 { (exit 1); exit 1; }; }; }
b4e70030 29466
bec39cab
AC
29467 ac_builddir=.
29468
b4e70030 29469if test "$ac_dir" != .; then
bec39cab 29470 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
29471 # A "../" for each directory in $ac_dir_suffix.
29472 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29473else
29474 ac_dir_suffix= ac_top_builddir=
29475fi
bec39cab
AC
29476
29477case $srcdir in
b4e70030 29478 .) # No --srcdir option. We are building in place.
bec39cab 29479 ac_srcdir=.
b4e70030
JB
29480 if test -z "$ac_top_builddir"; then
29481 ac_top_srcdir=.
29482 else
29483 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29484 fi ;;
29485 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 29486 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
29487 ac_top_srcdir=$srcdir ;;
29488 *) # Relative path.
29489 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29490 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
29491esac
29492
b4e70030
JB
29493# Do not use `cd foo && pwd` to compute absolute paths, because
29494# the directories may not exist.
29495case `pwd` in
29496.) ac_abs_builddir="$ac_dir";;
29497*)
29498 case "$ac_dir" in
29499 .) ac_abs_builddir=`pwd`;;
29500 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29501 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29502 esac;;
29503esac
29504case $ac_abs_builddir in
29505.) ac_abs_top_builddir=${ac_top_builddir}.;;
29506*)
29507 case ${ac_top_builddir}. in
29508 .) ac_abs_top_builddir=$ac_abs_builddir;;
29509 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29510 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29511 esac;;
29512esac
29513case $ac_abs_builddir in
29514.) ac_abs_srcdir=$ac_srcdir;;
29515*)
29516 case $ac_srcdir in
29517 .) ac_abs_srcdir=$ac_abs_builddir;;
29518 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29519 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29520 esac;;
29521esac
29522case $ac_abs_builddir in
29523.) ac_abs_top_srcdir=$ac_top_srcdir;;
29524*)
29525 case $ac_top_srcdir in
29526 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29527 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29528 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29529 esac;;
29530esac
c906108c 29531
c906108c 29532
bec39cab
AC
29533 case $INSTALL in
29534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 29535 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 29536 esac
121ce6e5 29537
b4e70030
JB
29538 if test x"$ac_file" != x-; then
29539 { echo "$as_me:$LINENO: creating $ac_file" >&5
29540echo "$as_me: creating $ac_file" >&6;}
29541 rm -f "$ac_file"
29542 fi
29543 # Let's still pretend it is `configure' which instantiates (i.e., don't
29544 # use $as_me), people would be surprised to read:
29545 # /* config.h. Generated by config.status. */
29546 if test x"$ac_file" = x-; then
29547 configure_input=
29548 else
29549 configure_input="$ac_file. "
29550 fi
29551 configure_input=$configure_input"Generated from `echo $ac_file_in |
29552 sed 's,.*/,,'` by configure."
29553
29554 # First look for the input files in the build tree, otherwise in the
29555 # src tree.
29556 ac_file_inputs=`IFS=:
29557 for f in $ac_file_in; do
29558 case $f in
29559 -) echo $tmp/stdin ;;
29560 [\\/$]*)
29561 # Absolute (can't be DOS-style, as IFS=:)
29562 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29563echo "$as_me: error: cannot find input file: $f" >&2;}
29564 { (exit 1); exit 1; }; }
29565 echo "$f";;
29566 *) # Relative
29567 if test -f "$f"; then
29568 # Build tree
29569 echo "$f"
29570 elif test -f "$srcdir/$f"; then
29571 # Source tree
29572 echo "$srcdir/$f"
29573 else
29574 # /dev/null tree
29575 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29576echo "$as_me: error: cannot find input file: $f" >&2;}
29577 { (exit 1); exit 1; }; }
29578 fi;;
29579 esac
29580 done` || { (exit 1); exit 1; }
4e8d927d 29581_ACEOF
bec39cab
AC
29582cat >>$CONFIG_STATUS <<_ACEOF
29583 sed "$ac_vpsub
29584$extrasub
29585_ACEOF
29586cat >>$CONFIG_STATUS <<\_ACEOF
29587:t
29588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
29589s,@configure_input@,$configure_input,;t t
29590s,@srcdir@,$ac_srcdir,;t t
29591s,@abs_srcdir@,$ac_abs_srcdir,;t t
29592s,@top_srcdir@,$ac_top_srcdir,;t t
29593s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29594s,@builddir@,$ac_builddir,;t t
29595s,@abs_builddir@,$ac_abs_builddir,;t t
29596s,@top_builddir@,$ac_top_builddir,;t t
29597s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29598s,@INSTALL@,$ac_INSTALL,;t t
29599" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29600 rm -f $tmp/stdin
29601 if test x"$ac_file" != x-; then
29602 mv $tmp/out $ac_file
29603 else
29604 cat $tmp/out
29605 rm -f $tmp/out
29606 fi
29607
29608done
29609_ACEOF
29610cat >>$CONFIG_STATUS <<\_ACEOF
29611
29612#
29613# CONFIG_HEADER section.
29614#
29615
29616# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29617# NAME is the cpp macro being defined and VALUE is the value it is being given.
29618#
29619# ac_d sets the value in "#define NAME VALUE" lines.
29620ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29621ac_dB='[ ].*$,\1#\2'
29622ac_dC=' '
29623ac_dD=',;t'
29624# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29625ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29626ac_uB='$,\1#\2define\3'
29627ac_uC=' '
29628ac_uD=',;t'
29629
29630for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 29632 case $ac_file in
b4e70030
JB
29633 - | *:- | *:-:* ) # input from stdin
29634 cat >$tmp/stdin
29635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29639 * ) ac_file_in=$ac_file.in ;;
c906108c 29640 esac
b4e70030
JB
29641
29642 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29643echo "$as_me: creating $ac_file" >&6;}
29644
29645 # First look for the input files in the build tree, otherwise in the
29646 # src tree.
29647 ac_file_inputs=`IFS=:
29648 for f in $ac_file_in; do
29649 case $f in
29650 -) echo $tmp/stdin ;;
29651 [\\/$]*)
29652 # Absolute (can't be DOS-style, as IFS=:)
29653 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29654echo "$as_me: error: cannot find input file: $f" >&2;}
29655 { (exit 1); exit 1; }; }
29656 # Do quote $f, to prevent DOS paths from being IFS'd.
29657 echo "$f";;
29658 *) # Relative
29659 if test -f "$f"; then
29660 # Build tree
29661 echo "$f"
29662 elif test -f "$srcdir/$f"; then
29663 # Source tree
29664 echo "$srcdir/$f"
29665 else
29666 # /dev/null tree
29667 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29668echo "$as_me: error: cannot find input file: $f" >&2;}
29669 { (exit 1); exit 1; }; }
29670 fi;;
29671 esac
29672 done` || { (exit 1); exit 1; }
29673 # Remove the trailing spaces.
29674 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29675
29676_ACEOF
29677
29678# Transform confdefs.h into two sed scripts, `conftest.defines' and
29679# `conftest.undefs', that substitutes the proper values into
29680# config.h.in to produce config.h. The first handles `#define'
29681# templates, and the second `#undef' templates.
29682# And first: Protect against being on the right side of a sed subst in
29683# config.status. Protect against being in an unquoted here document
29684# in config.status.
29685rm -f conftest.defines conftest.undefs
29686# Using a here document instead of a string reduces the quoting nightmare.
29687# Putting comments in sed scripts is not portable.
29688#
29689# `end' is used to avoid that the second main sed command (meant for
29690# 0-ary CPP macros) applies to n-ary macro definitions.
29691# See the Autoconf documentation for `clear'.
29692cat >confdef2sed.sed <<\_ACEOF
29693s/[\\&,]/\\&/g
29694s,[\\$`],\\&,g
29695t clear
29696: clear
29697s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29698t end
29699s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29700: end
29701_ACEOF
29702# If some macros were called several times there might be several times
29703# the same #defines, which is useless. Nevertheless, we may not want to
29704# sort them, since we want the *last* AC-DEFINE to be honored.
29705uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29706sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29707rm -f confdef2sed.sed
29708
29709# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
29710# example, in the case of _POSIX_SOURCE, which is predefined and required
29711# on some systems where configure will not decide to define it.
b4e70030
JB
29712cat >>conftest.undefs <<\_ACEOF
29713s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29714_ACEOF
29715
29716# Break up conftest.defines because some shells have a limit on the size
29717# of here documents, and old seds have small limits too (100 cmds).
29718echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29719echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29720echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29721echo ' :' >>$CONFIG_STATUS
29722rm -f conftest.tail
29723while grep . conftest.defines >/dev/null
bec39cab 29724do
b4e70030
JB
29725 # Write a limited-size here document to $tmp/defines.sed.
29726 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29727 # Speed up: don't consider the non `#define' lines.
29728 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29729 # Work around the forget-to-reset-the-flag bug.
29730 echo 't clr' >>$CONFIG_STATUS
29731 echo ': clr' >>$CONFIG_STATUS
29732 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 29733 echo 'CEOF
b4e70030
JB
29734 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29735 rm -f $tmp/in
29736 mv $tmp/out $tmp/in
29737' >>$CONFIG_STATUS
29738 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
29739 rm -f conftest.defines
29740 mv conftest.tail conftest.defines
29741done
b4e70030
JB
29742rm -f conftest.defines
29743echo ' fi # grep' >>$CONFIG_STATUS
29744echo >>$CONFIG_STATUS
29745
29746# Break up conftest.undefs because some shells have a limit on the size
29747# of here documents, and old seds have small limits too (100 cmds).
29748echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29749rm -f conftest.tail
29750while grep . conftest.undefs >/dev/null
29751do
29752 # Write a limited-size here document to $tmp/undefs.sed.
29753 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29754 # Speed up: don't consider the non `#undef'
29755 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29756 # Work around the forget-to-reset-the-flag bug.
29757 echo 't clr' >>$CONFIG_STATUS
29758 echo ': clr' >>$CONFIG_STATUS
29759 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29760 echo 'CEOF
29761 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29762 rm -f $tmp/in
29763 mv $tmp/out $tmp/in
29764' >>$CONFIG_STATUS
29765 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29766 rm -f conftest.undefs
29767 mv conftest.tail conftest.undefs
29768done
29769rm -f conftest.undefs
bec39cab
AC
29770
29771cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
29772 # Let's still pretend it is `configure' which instantiates (i.e., don't
29773 # use $as_me), people would be surprised to read:
29774 # /* config.h. Generated by config.status. */
29775 if test x"$ac_file" = x-; then
29776 echo "/* Generated by configure. */" >$tmp/config.h
29777 else
29778 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29779 fi
29780 cat $tmp/in >>$tmp/config.h
29781 rm -f $tmp/in
bec39cab 29782 if test x"$ac_file" != x-; then
b4e70030 29783 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
29784 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29785echo "$as_me: $ac_file is unchanged" >&6;}
29786 else
b4e70030
JB
29787 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29788$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29789 X"$ac_file" : 'X\(//\)[^/]' \| \
29790 X"$ac_file" : 'X\(//\)$' \| \
29791 X"$ac_file" : 'X\(/\)' \| \
29792 . : '\(.\)' 2>/dev/null ||
29793echo X"$ac_file" |
29794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29796 /^X\(\/\/\)$/{ s//\1/; q; }
29797 /^X\(\/\).*/{ s//\1/; q; }
29798 s/.*/./; q'`
29799 { if $as_mkdir_p; then
29800 mkdir -p "$ac_dir"
29801 else
29802 as_dir="$ac_dir"
29803 as_dirs=
29804 while test ! -d "$as_dir"; do
29805 as_dirs="$as_dir $as_dirs"
29806 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29807$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29808 X"$as_dir" : 'X\(//\)[^/]' \| \
29809 X"$as_dir" : 'X\(//\)$' \| \
29810 X"$as_dir" : 'X\(/\)' \| \
29811 . : '\(.\)' 2>/dev/null ||
29812echo X"$as_dir" |
29813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29815 /^X\(\/\/\)$/{ s//\1/; q; }
29816 /^X\(\/\).*/{ s//\1/; q; }
29817 s/.*/./; q'`
29818 done
29819 test ! -n "$as_dirs" || mkdir $as_dirs
29820 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29821echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29822 { (exit 1); exit 1; }; }; }
29823
bec39cab 29824 rm -f $ac_file
b4e70030 29825 mv $tmp/config.h $ac_file
bec39cab
AC
29826 fi
29827 else
b4e70030
JB
29828 cat $tmp/config.h
29829 rm -f $tmp/config.h
bec39cab 29830 fi
e28b3332
DJ
29831# Compute $ac_file's index in $config_headers.
29832_am_stamp_count=1
29833for _am_header in $config_headers :; do
29834 case $_am_header in
29835 $ac_file | $ac_file:* )
29836 break ;;
29837 * )
29838 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29839 esac
29840done
29841echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29842$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29843 X$ac_file : 'X\(//\)[^/]' \| \
29844 X$ac_file : 'X\(//\)$' \| \
29845 X$ac_file : 'X\(/\)' \| \
29846 . : '\(.\)' 2>/dev/null ||
29847echo X$ac_file |
29848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29850 /^X\(\/\/\)$/{ s//\1/; q; }
29851 /^X\(\/\).*/{ s//\1/; q; }
29852 s/.*/./; q'`/stamp-h$_am_stamp_count
b4e70030
JB
29853done
29854_ACEOF
29855cat >>$CONFIG_STATUS <<\_ACEOF
29856
29857#
29858# CONFIG_LINKS section.
29859#
29860
29861for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
29862 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29863 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 29864
b4e70030
JB
29865 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
29866echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
29867
29868 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
29869 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29870echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29871 { (exit 1); exit 1; }; }
c906108c 29872 fi
b4e70030
JB
29873 rm -f $ac_dest
29874
29875 # Make relative symlinks.
29876 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
29877$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29878 X"$ac_dest" : 'X\(//\)[^/]' \| \
29879 X"$ac_dest" : 'X\(//\)$' \| \
29880 X"$ac_dest" : 'X\(/\)' \| \
29881 . : '\(.\)' 2>/dev/null ||
29882echo X"$ac_dest" |
29883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29885 /^X\(\/\/\)$/{ s//\1/; q; }
29886 /^X\(\/\).*/{ s//\1/; q; }
29887 s/.*/./; q'`
29888 { if $as_mkdir_p; then
29889 mkdir -p "$ac_dest_dir"
29890 else
29891 as_dir="$ac_dest_dir"
29892 as_dirs=
29893 while test ! -d "$as_dir"; do
29894 as_dirs="$as_dir $as_dirs"
29895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29897 X"$as_dir" : 'X\(//\)[^/]' \| \
29898 X"$as_dir" : 'X\(//\)$' \| \
29899 X"$as_dir" : 'X\(/\)' \| \
29900 . : '\(.\)' 2>/dev/null ||
29901echo X"$as_dir" |
29902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29904 /^X\(\/\/\)$/{ s//\1/; q; }
29905 /^X\(\/\).*/{ s//\1/; q; }
29906 s/.*/./; q'`
29907 done
29908 test ! -n "$as_dirs" || mkdir $as_dirs
29909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
29910echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
29911 { (exit 1); exit 1; }; }; }
29912
29913 ac_builddir=.
29914
29915if test "$ac_dest_dir" != .; then
29916 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
29917 # A "../" for each directory in $ac_dir_suffix.
29918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29919else
29920 ac_dir_suffix= ac_top_builddir=
29921fi
29922
29923case $srcdir in
29924 .) # No --srcdir option. We are building in place.
29925 ac_srcdir=.
29926 if test -z "$ac_top_builddir"; then
29927 ac_top_srcdir=.
29928 else
29929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29930 fi ;;
29931 [\\/]* | ?:[\\/]* ) # Absolute path.
29932 ac_srcdir=$srcdir$ac_dir_suffix;
29933 ac_top_srcdir=$srcdir ;;
29934 *) # Relative path.
29935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29937esac
29938
29939# Do not use `cd foo && pwd` to compute absolute paths, because
29940# the directories may not exist.
29941case `pwd` in
29942.) ac_abs_builddir="$ac_dest_dir";;
29943*)
29944 case "$ac_dest_dir" in
29945 .) ac_abs_builddir=`pwd`;;
29946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
29947 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
29948 esac;;
29949esac
29950case $ac_abs_builddir in
29951.) ac_abs_top_builddir=${ac_top_builddir}.;;
29952*)
29953 case ${ac_top_builddir}. in
29954 .) ac_abs_top_builddir=$ac_abs_builddir;;
29955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29957 esac;;
29958esac
29959case $ac_abs_builddir in
29960.) ac_abs_srcdir=$ac_srcdir;;
29961*)
29962 case $ac_srcdir in
29963 .) ac_abs_srcdir=$ac_abs_builddir;;
29964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29966 esac;;
29967esac
29968case $ac_abs_builddir in
29969.) ac_abs_top_srcdir=$ac_top_srcdir;;
29970*)
29971 case $ac_top_srcdir in
29972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29975 esac;;
29976esac
29977
bec39cab
AC
29978
29979 case $srcdir in
29980 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 29981 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 29982 esac
b4e70030
JB
29983
29984 # Try a symlink, then a hard link, then a copy.
29985 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
29986 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
29987 cp -p $srcdir/$ac_source $ac_dest ||
29988 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
29989echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 29990 { (exit 1); exit 1; }; }
b4e70030
JB
29991done
29992_ACEOF
29993cat >>$CONFIG_STATUS <<\_ACEOF
29994
29995#
29996# CONFIG_COMMANDS section.
29997#
29998for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29999 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30000 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30001 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30002$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30003 X"$ac_dest" : 'X\(//\)[^/]' \| \
30004 X"$ac_dest" : 'X\(//\)$' \| \
30005 X"$ac_dest" : 'X\(/\)' \| \
30006 . : '\(.\)' 2>/dev/null ||
30007echo X"$ac_dest" |
30008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30010 /^X\(\/\/\)$/{ s//\1/; q; }
30011 /^X\(\/\).*/{ s//\1/; q; }
30012 s/.*/./; q'`
30013 { if $as_mkdir_p; then
30014 mkdir -p "$ac_dir"
30015 else
30016 as_dir="$ac_dir"
30017 as_dirs=
30018 while test ! -d "$as_dir"; do
30019 as_dirs="$as_dir $as_dirs"
30020 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30022 X"$as_dir" : 'X\(//\)[^/]' \| \
30023 X"$as_dir" : 'X\(//\)$' \| \
30024 X"$as_dir" : 'X\(/\)' \| \
30025 . : '\(.\)' 2>/dev/null ||
30026echo X"$as_dir" |
30027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30029 /^X\(\/\/\)$/{ s//\1/; q; }
30030 /^X\(\/\).*/{ s//\1/; q; }
30031 s/.*/./; q'`
30032 done
30033 test ! -n "$as_dirs" || mkdir $as_dirs
30034 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30035echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30036 { (exit 1); exit 1; }; }; }
30037
30038 ac_builddir=.
30039
30040if test "$ac_dir" != .; then
30041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30042 # A "../" for each directory in $ac_dir_suffix.
30043 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30044else
30045 ac_dir_suffix= ac_top_builddir=
30046fi
30047
30048case $srcdir in
30049 .) # No --srcdir option. We are building in place.
30050 ac_srcdir=.
30051 if test -z "$ac_top_builddir"; then
30052 ac_top_srcdir=.
30053 else
30054 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30055 fi ;;
30056 [\\/]* | ?:[\\/]* ) # Absolute path.
30057 ac_srcdir=$srcdir$ac_dir_suffix;
30058 ac_top_srcdir=$srcdir ;;
30059 *) # Relative path.
30060 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30061 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30062esac
30063
30064# Do not use `cd foo && pwd` to compute absolute paths, because
30065# the directories may not exist.
30066case `pwd` in
30067.) ac_abs_builddir="$ac_dir";;
30068*)
30069 case "$ac_dir" in
30070 .) ac_abs_builddir=`pwd`;;
30071 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30072 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30073 esac;;
30074esac
30075case $ac_abs_builddir in
30076.) ac_abs_top_builddir=${ac_top_builddir}.;;
30077*)
30078 case ${ac_top_builddir}. in
30079 .) ac_abs_top_builddir=$ac_abs_builddir;;
30080 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30081 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30082 esac;;
30083esac
30084case $ac_abs_builddir in
30085.) ac_abs_srcdir=$ac_srcdir;;
30086*)
30087 case $ac_srcdir in
30088 .) ac_abs_srcdir=$ac_abs_builddir;;
30089 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30090 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30091 esac;;
30092esac
30093case $ac_abs_builddir in
30094.) ac_abs_top_srcdir=$ac_top_srcdir;;
30095*)
30096 case $ac_top_srcdir in
30097 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30098 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30099 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30100 esac;;
30101esac
bec39cab 30102
bec39cab 30103
b4e70030
JB
30104 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30105echo "$as_me: executing $ac_dest commands" >&6;}
30106 case $ac_dest in
e28b3332
DJ
30107 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30108 # Strip MF so we end up with the name of the file.
30109 mf=`echo "$mf" | sed -e 's/:.*$//'`
30110 # Check whether this is an Automake generated Makefile or not.
30111 # We used to match only the files named `Makefile.in', but
30112 # some people rename them; so instead we look at the file content.
30113 # Grep'ing the first line is not enough: some people post-process
30114 # each Makefile.in and add a new line on top of each file to say so.
30115 # So let's grep whole file.
30116 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30117 dirpart=`(dirname "$mf") 2>/dev/null ||
30118$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30119 X"$mf" : 'X\(//\)[^/]' \| \
30120 X"$mf" : 'X\(//\)$' \| \
30121 X"$mf" : 'X\(/\)' \| \
30122 . : '\(.\)' 2>/dev/null ||
30123echo X"$mf" |
30124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30126 /^X\(\/\/\)$/{ s//\1/; q; }
30127 /^X\(\/\).*/{ s//\1/; q; }
30128 s/.*/./; q'`
30129 else
30130 continue
30131 fi
30132 # Extract the definition of DEPDIR, am__include, and am__quote
30133 # from the Makefile without running `make'.
30134 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30135 test -z "$DEPDIR" && continue
30136 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30137 test -z "am__include" && continue
30138 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30139 # When using ansi2knr, U may be empty or an underscore; expand it
30140 U=`sed -n 's/^U = //p' < "$mf"`
30141 # Find all dependency output files, they are included files with
30142 # $(DEPDIR) in their names. We invoke sed twice because it is the
30143 # simplest approach to changing $(DEPDIR) to its actual value in the
30144 # expansion.
30145 for file in `sed -n "
30146 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30147 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30148 # Make sure the directory exists.
30149 test -f "$dirpart/$file" && continue
30150 fdir=`(dirname "$file") 2>/dev/null ||
30151$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30152 X"$file" : 'X\(//\)[^/]' \| \
30153 X"$file" : 'X\(//\)$' \| \
30154 X"$file" : 'X\(/\)' \| \
30155 . : '\(.\)' 2>/dev/null ||
30156echo X"$file" |
30157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30159 /^X\(\/\/\)$/{ s//\1/; q; }
30160 /^X\(\/\).*/{ s//\1/; q; }
30161 s/.*/./; q'`
30162 { if $as_mkdir_p; then
30163 mkdir -p $dirpart/$fdir
30164 else
30165 as_dir=$dirpart/$fdir
30166 as_dirs=
30167 while test ! -d "$as_dir"; do
30168 as_dirs="$as_dir $as_dirs"
30169 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30170$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30171 X"$as_dir" : 'X\(//\)[^/]' \| \
30172 X"$as_dir" : 'X\(//\)$' \| \
30173 X"$as_dir" : 'X\(/\)' \| \
30174 . : '\(.\)' 2>/dev/null ||
30175echo X"$as_dir" |
30176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30178 /^X\(\/\/\)$/{ s//\1/; q; }
30179 /^X\(\/\).*/{ s//\1/; q; }
30180 s/.*/./; q'`
30181 done
30182 test ! -n "$as_dirs" || mkdir $as_dirs
30183 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30184echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30185 { (exit 1); exit 1; }; }; }
30186
30187 # echo "creating $dirpart/$file"
30188 echo '# dummy' > "$dirpart/$file"
30189 done
30190done
30191 ;;
b4e70030 30192 gdb_stdint.h )
4e8d927d
DJ
30193if test "$GCC" = yes; then
30194 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
30195else
30196 echo "/* generated for $CC */" > tmp-stdint.h
30197fi
30198
30199sed 's/^ *//' >> tmp-stdint.h <<EOF
30200
30201 #ifndef GCC_GENERATED_STDINT_H
30202 #define GCC_GENERATED_STDINT_H 1
30203
30204 #include <sys/types.h>
30205EOF
30206
30207if test "$acx_cv_header_stdint" != stdint.h; then
30208 echo "#include <stddef.h>" >> tmp-stdint.h
30209fi
30210if test "$acx_cv_header_stdint" != stddef.h; then
30211 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
30212fi
30213
30214sed 's/^ *//' >> tmp-stdint.h <<EOF
30215 /* glibc uses these symbols as guards to prevent redefinitions. */
30216 #ifdef __int8_t_defined
30217 #define _INT8_T
30218 #define _INT16_T
30219 #define _INT32_T
30220 #endif
30221 #ifdef __uint32_t_defined
30222 #define _UINT32_T
30223 #endif
30224
30225EOF
30226
30227# ----------------- done header, emit basic int types -------------
30228if test "$acx_cv_header_stdint" = stddef.h; then
30229 sed 's/^ *//' >> tmp-stdint.h <<EOF
30230
30231 #ifndef _UINT8_T
30232 #define _UINT8_T
07abfebf
RS
30233 #ifndef __uint8_t_defined
30234 #define __uint8_t_defined
4e8d927d
DJ
30235 typedef unsigned $acx_cv_type_int8_t uint8_t;
30236 #endif
07abfebf 30237 #endif
4e8d927d
DJ
30238
30239 #ifndef _UINT16_T
30240 #define _UINT16_T
07abfebf
RS
30241 #ifndef __uint16_t_defined
30242 #define __uint16_t_defined
4e8d927d
DJ
30243 typedef unsigned $acx_cv_type_int16_t uint16_t;
30244 #endif
07abfebf 30245 #endif
4e8d927d
DJ
30246
30247 #ifndef _UINT32_T
30248 #define _UINT32_T
07abfebf
RS
30249 #ifndef __uint32_t_defined
30250 #define __uint32_t_defined
4e8d927d
DJ
30251 typedef unsigned $acx_cv_type_int32_t uint32_t;
30252 #endif
07abfebf 30253 #endif
4e8d927d
DJ
30254
30255 #ifndef _INT8_T
30256 #define _INT8_T
07abfebf
RS
30257 #ifndef __int8_t_defined
30258 #define __int8_t_defined
4e8d927d
DJ
30259 typedef $acx_cv_type_int8_t int8_t;
30260 #endif
07abfebf 30261 #endif
4e8d927d
DJ
30262
30263 #ifndef _INT16_T
30264 #define _INT16_T
07abfebf
RS
30265 #ifndef __int16_t_defined
30266 #define __int16_t_defined
4e8d927d
DJ
30267 typedef $acx_cv_type_int16_t int16_t;
30268 #endif
07abfebf 30269 #endif
4e8d927d
DJ
30270
30271 #ifndef _INT32_T
30272 #define _INT32_T
07abfebf
RS
30273 #ifndef __int32_t_defined
30274 #define __int32_t_defined
4e8d927d
DJ
30275 typedef $acx_cv_type_int32_t int32_t;
30276 #endif
07abfebf 30277 #endif
4e8d927d
DJ
30278EOF
30279elif test "$ac_cv_type_u_int32_t" = yes; then
30280 sed 's/^ *//' >> tmp-stdint.h <<EOF
30281
30282 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30283 #ifndef _INT8_T
30284 #define _INT8_T
30285 #endif
30286 #ifndef _INT16_T
30287 #define _INT16_T
30288 #endif
30289 #ifndef _INT32_T
30290 #define _INT32_T
30291 #endif
30292
30293 #ifndef _UINT8_T
30294 #define _UINT8_T
07abfebf
RS
30295 #ifndef __uint8_t_defined
30296 #define __uint8_t_defined
4e8d927d
DJ
30297 typedef u_int8_t uint8_t;
30298 #endif
07abfebf 30299 #endif
4e8d927d
DJ
30300
30301 #ifndef _UINT16_T
30302 #define _UINT16_T
07abfebf
RS
30303 #ifndef __uint16_t_defined
30304 #define __uint16_t_defined
4e8d927d
DJ
30305 typedef u_int16_t uint16_t;
30306 #endif
07abfebf 30307 #endif
4e8d927d
DJ
30308
30309 #ifndef _UINT32_T
30310 #define _UINT32_T
07abfebf
RS
30311 #ifndef __uint32_t_defined
30312 #define __uint32_t_defined
4e8d927d
DJ
30313 typedef u_int32_t uint32_t;
30314 #endif
07abfebf 30315 #endif
4e8d927d
DJ
30316EOF
30317else
30318 sed 's/^ *//' >> tmp-stdint.h <<EOF
30319
30320 /* Some systems have guard macros to prevent redefinitions, define them. */
30321 #ifndef _INT8_T
30322 #define _INT8_T
30323 #endif
30324 #ifndef _INT16_T
30325 #define _INT16_T
30326 #endif
30327 #ifndef _INT32_T
30328 #define _INT32_T
30329 #endif
30330 #ifndef _UINT8_T
30331 #define _UINT8_T
30332 #endif
30333 #ifndef _UINT16_T
30334 #define _UINT16_T
30335 #endif
30336 #ifndef _UINT32_T
30337 #define _UINT32_T
30338 #endif
30339EOF
30340fi
30341
30342# ------------- done basic int types, emit int64_t types ------------
30343if test "$ac_cv_type_uint64_t" = yes; then
30344 sed 's/^ *//' >> tmp-stdint.h <<EOF
30345
30346 /* system headers have good uint64_t and int64_t */
30347 #ifndef _INT64_T
30348 #define _INT64_T
30349 #endif
30350 #ifndef _UINT64_T
30351 #define _UINT64_T
30352 #endif
30353EOF
30354elif test "$ac_cv_type_u_int64_t" = yes; then
30355 sed 's/^ *//' >> tmp-stdint.h <<EOF
30356
30357 /* system headers have an u_int64_t (and int64_t) */
30358 #ifndef _INT64_T
30359 #define _INT64_T
30360 #endif
30361 #ifndef _UINT64_T
30362 #define _UINT64_T
07abfebf
RS
30363 #ifndef __uint64_t_defined
30364 #define __uint64_t_defined
4e8d927d
DJ
30365 typedef u_int64_t uint64_t;
30366 #endif
07abfebf 30367 #endif
4e8d927d
DJ
30368EOF
30369elif test -n "$acx_cv_type_int64_t"; then
30370 sed 's/^ *//' >> tmp-stdint.h <<EOF
30371
30372 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30373 #ifndef _INT64_T
30374 #define _INT64_T
30375 typedef $acx_cv_type_int64_t int64_t;
30376 #endif
30377 #ifndef _UINT64_T
30378 #define _UINT64_T
07abfebf
RS
30379 #ifndef __uint64_t_defined
30380 #define __uint64_t_defined
4e8d927d
DJ
30381 typedef unsigned $acx_cv_type_int64_t uint64_t;
30382 #endif
07abfebf 30383 #endif
4e8d927d
DJ
30384EOF
30385else
30386 sed 's/^ *//' >> tmp-stdint.h <<EOF
30387
30388 /* some common heuristics for int64_t, using compiler-specific tests */
30389 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30390 #ifndef _INT64_T
30391 #define _INT64_T
07abfebf 30392 #ifndef __int64_t_defined
4e8d927d
DJ
30393 typedef long long int64_t;
30394 #endif
07abfebf 30395 #endif
4e8d927d
DJ
30396 #ifndef _UINT64_T
30397 #define _UINT64_T
30398 typedef unsigned long long uint64_t;
30399 #endif
30400
30401 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30402 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30403 does not implement __extension__. But that compiler doesn't define
30404 __GNUC_MINOR__. */
30405 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30406 # define __extension__
30407 # endif
30408
30409 # ifndef _INT64_T
30410 # define _INT64_T
30411 __extension__ typedef long long int64_t;
30412 # endif
30413 # ifndef _UINT64_T
30414 # define _UINT64_T
30415 __extension__ typedef unsigned long long uint64_t;
30416 # endif
30417
30418 #elif !defined __STRICT_ANSI__
30419 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30420
30421 # ifndef _INT64_T
30422 # define _INT64_T
30423 typedef __int64 int64_t;
30424 # endif
30425 # ifndef _UINT64_T
30426 # define _UINT64_T
30427 typedef unsigned __int64 uint64_t;
30428 # endif
30429 # endif /* compiler */
30430
30431 #endif /* ANSI version */
30432EOF
30433fi
30434
30435# ------------- done int64_t types, emit intptr types ------------
30436if test "$ac_cv_type_uintptr_t" != yes; then
30437 sed 's/^ *//' >> tmp-stdint.h <<EOF
30438
30439 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
07abfebf 30440 #ifndef __uintptr_t_defined
4e8d927d 30441 typedef u$acx_cv_type_intptr_t uintptr_t;
07abfebf
RS
30442 #endif
30443 #ifndef __intptr_t_defined
4e8d927d 30444 typedef $acx_cv_type_intptr_t intptr_t;
07abfebf 30445 #endif
4e8d927d
DJ
30446EOF
30447fi
30448
30449# ------------- done intptr types, emit int_least types ------------
30450if test "$ac_cv_type_int_least32_t" != yes; then
30451 sed 's/^ *//' >> tmp-stdint.h <<EOF
30452
30453 /* Define int_least types */
30454 typedef int8_t int_least8_t;
30455 typedef int16_t int_least16_t;
30456 typedef int32_t int_least32_t;
30457 #ifdef _INT64_T
30458 typedef int64_t int_least64_t;
30459 #endif
30460
30461 typedef uint8_t uint_least8_t;
30462 typedef uint16_t uint_least16_t;
30463 typedef uint32_t uint_least32_t;
30464 #ifdef _UINT64_T
30465 typedef uint64_t uint_least64_t;
30466 #endif
30467EOF
30468fi
30469
30470# ------------- done intptr types, emit int_fast types ------------
30471if test "$ac_cv_type_int_fast32_t" != yes; then
30472 sed 's/^ *//' >> tmp-stdint.h <<EOF
30473
30474 /* Define int_fast types. short is often slow */
30475 typedef int8_t int_fast8_t;
30476 typedef int int_fast16_t;
30477 typedef int32_t int_fast32_t;
30478 #ifdef _INT64_T
30479 typedef int64_t int_fast64_t;
30480 #endif
30481
30482 typedef uint8_t uint_fast8_t;
30483 typedef unsigned int uint_fast16_t;
30484 typedef uint32_t uint_fast32_t;
30485 #ifdef _UINT64_T
30486 typedef uint64_t uint_fast64_t;
30487 #endif
30488EOF
30489fi
30490
30491if test "$ac_cv_type_uintmax_t" != yes; then
30492 sed 's/^ *//' >> tmp-stdint.h <<EOF
30493
30494 /* Define intmax based on what we found */
30495 #ifdef _INT64_T
30496 typedef int64_t intmax_t;
30497 #else
30498 typedef long intmax_t;
30499 #endif
30500 #ifdef _UINT64_T
30501 typedef uint64_t uintmax_t;
30502 #else
30503 typedef unsigned long uintmax_t;
30504 #endif
30505EOF
30506fi
30507
30508sed 's/^ *//' >> tmp-stdint.h <<EOF
30509
30510 #endif /* GCC_GENERATED_STDINT_H */
30511EOF
30512
30513if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
30514 rm -f tmp-stdint.h
30515else
30516 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
30517fi
30518
4e8d927d 30519 ;;
b4e70030 30520 default )
c906108c 30521
db985757 30522sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
30523mv -f Makefile.tmp Makefile
30524
2acceee2 30525
c906108c
SS
30526case x$CONFIG_HEADERS in
30527xconfig.h:config.in)
30528echo > stamp-h ;;
30529esac
bec39cab
AC
30530 ;;
30531 esac
b4e70030
JB
30532done
30533_ACEOF
c906108c 30534
b4e70030 30535cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
30536
30537{ (exit 0); exit 0; }
30538_ACEOF
c906108c 30539chmod +x $CONFIG_STATUS
bec39cab
AC
30540ac_clean_files=$ac_clean_files_save
30541
30542
30543# configure is writing to config.log, and then calls config.status.
30544# config.status does its own redirection, appending to config.log.
30545# Unfortunately, on DOS this fails, as config.log is still kept open
30546# by configure, so config.status won't be able to write to it; its
30547# output is simply discarded. So we exec the FD to /dev/null,
30548# effectively closing config.log, so it can be properly (re)opened and
30549# appended to by config.status. When coming back to configure, we
30550# need to make the FD available again.
30551if test "$no_create" != yes; then
30552 ac_cs_success=:
30553 ac_config_status_args=
30554 test "$silent" = yes &&
30555 ac_config_status_args="$ac_config_status_args --quiet"
30556 exec 5>/dev/null
30557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30558 exec 5>>config.log
30559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30560 # would make configure fail if this is the last instruction.
30561 $ac_cs_success || { (exit 1); exit 1; }
30562fi
c906108c 30563
bec39cab
AC
30564#
30565# CONFIG_SUBDIRS section.
30566#
c906108c
SS
30567if test "$no_recursion" != yes; then
30568
30569 # Remove --cache-file and --srcdir arguments so they do not pile up.
30570 ac_sub_configure_args=
30571 ac_prev=
b4e70030 30572 for ac_arg in $ac_configure_args; do
c906108c
SS
30573 if test -n "$ac_prev"; then
30574 ac_prev=
30575 continue
30576 fi
bec39cab 30577 case $ac_arg in
c906108c
SS
30578 -cache-file | --cache-file | --cache-fil | --cache-fi \
30579 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30580 ac_prev=cache_file ;;
30581 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
30582 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30583 | --c=*)
30584 ;;
30585 --config-cache | -C)
c906108c
SS
30586 ;;
30587 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30588 ac_prev=srcdir ;;
30589 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30590 ;;
bec39cab
AC
30591 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30592 ac_prev=prefix ;;
30593 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30594 ;;
b4e70030 30595 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
30596 esac
30597 done
30598
bec39cab
AC
30599 # Always prepend --prefix to ensure using the same prefix
30600 # in subdir configurations.
30601 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
30602
b4e70030 30603 ac_popdir=`pwd`
bec39cab 30604 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
30605
30606 # Do not complain, so a configure script can configure whichever
30607 # parts of a large source tree are present.
bec39cab 30608 test -d $srcdir/$ac_dir || continue
c906108c 30609
b4e70030
JB
30610 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
30611echo "$as_me: configuring in $ac_dir" >&6;}
30612 { if $as_mkdir_p; then
30613 mkdir -p "$ac_dir"
30614 else
30615 as_dir="$ac_dir"
bec39cab 30616 as_dirs=
b4e70030
JB
30617 while test ! -d "$as_dir"; do
30618 as_dirs="$as_dir $as_dirs"
30619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
30620$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30621 X"$as_dir" : 'X\(//\)[^/]' \| \
30622 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
30623 X"$as_dir" : 'X\(/\)' \| \
30624 . : '\(.\)' 2>/dev/null ||
bec39cab 30625echo X"$as_dir" |
b4e70030
JB
30626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30628 /^X\(\/\/\)$/{ s//\1/; q; }
30629 /^X\(\/\).*/{ s//\1/; q; }
30630 s/.*/./; q'`
bec39cab 30631 done
b4e70030
JB
30632 test ! -n "$as_dirs" || mkdir $as_dirs
30633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30634echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 30635 { (exit 1); exit 1; }; }; }
b4e70030 30636
bec39cab
AC
30637 ac_builddir=.
30638
b4e70030 30639if test "$ac_dir" != .; then
bec39cab 30640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
30641 # A "../" for each directory in $ac_dir_suffix.
30642 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30643else
30644 ac_dir_suffix= ac_top_builddir=
30645fi
bec39cab
AC
30646
30647case $srcdir in
b4e70030 30648 .) # No --srcdir option. We are building in place.
bec39cab 30649 ac_srcdir=.
b4e70030
JB
30650 if test -z "$ac_top_builddir"; then
30651 ac_top_srcdir=.
30652 else
30653 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30654 fi ;;
30655 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 30656 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
30657 ac_top_srcdir=$srcdir ;;
30658 *) # Relative path.
30659 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30660 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30661esac
30662
30663# Do not use `cd foo && pwd` to compute absolute paths, because
30664# the directories may not exist.
30665case `pwd` in
30666.) ac_abs_builddir="$ac_dir";;
30667*)
30668 case "$ac_dir" in
30669 .) ac_abs_builddir=`pwd`;;
30670 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30671 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30672 esac;;
30673esac
30674case $ac_abs_builddir in
30675.) ac_abs_top_builddir=${ac_top_builddir}.;;
30676*)
30677 case ${ac_top_builddir}. in
30678 .) ac_abs_top_builddir=$ac_abs_builddir;;
30679 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30680 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30681 esac;;
30682esac
30683case $ac_abs_builddir in
30684.) ac_abs_srcdir=$ac_srcdir;;
30685*)
30686 case $ac_srcdir in
30687 .) ac_abs_srcdir=$ac_abs_builddir;;
30688 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30689 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30690 esac;;
30691esac
30692case $ac_abs_builddir in
30693.) ac_abs_top_srcdir=$ac_top_srcdir;;
30694*)
30695 case $ac_top_srcdir in
30696 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30697 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30698 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30699 esac;;
bec39cab 30700esac
c906108c 30701
c906108c 30702
b4e70030 30703 cd $ac_dir
c906108c
SS
30704
30705 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
30706 if test -f $ac_srcdir/configure.gnu; then
30707 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
30708 elif test -f $ac_srcdir/configure; then
30709 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
30710 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
30711 ac_sub_configure=$ac_configure
30712 else
bec39cab
AC
30713 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
30714echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
30715 ac_sub_configure=
30716 fi
30717
30718 # The recursion is here.
30719 if test -n "$ac_sub_configure"; then
c906108c 30720 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
30721 case $cache_file in
30722 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
30723 *) # Relative path.
30724 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 30725 esac
c906108c 30726
bec39cab
AC
30727 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
30728echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 30729 # The eval makes quoting arguments work.
b4e70030
JB
30730 eval $ac_sub_configure $ac_sub_configure_args \
30731 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
30732 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
30733echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
30734 { (exit 1); exit 1; }; }
c906108c
SS
30735 fi
30736
b4e70030 30737 cd $ac_popdir
c906108c
SS
30738 done
30739fi
30740
30741
30742exit 0
This page took 2.593959 seconds and 4 git commands to generate.