ChangeLog:
[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"
d57a3c85 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 GNULIB_STDINT_H 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 PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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 PYTHON_CFLAGS 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_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS 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'
d5af19ba 319ac_pwd=`pwd`
c906108c
SS
320
321# Initialize some variables set by options.
bec39cab
AC
322ac_init_help=
323ac_init_version=false
c906108c
SS
324# The variables have the same names as the options, with
325# dashes changed to underlines.
bec39cab 326cache_file=/dev/null
c906108c 327exec_prefix=NONE
c906108c 328no_create=
c906108c
SS
329no_recursion=
330prefix=NONE
331program_prefix=NONE
332program_suffix=NONE
333program_transform_name=s,x,x,
334silent=
335site=
336srcdir=
c906108c
SS
337verbose=
338x_includes=NONE
339x_libraries=NONE
bec39cab
AC
340
341# Installation directory options.
342# These are left unexpanded so users can "make install exec_prefix=/foo"
343# and all the variables that are supposed to be based on exec_prefix
344# by default will actually change.
345# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
346bindir='${exec_prefix}/bin'
347sbindir='${exec_prefix}/sbin'
348libexecdir='${exec_prefix}/libexec'
b4e70030 349datadir='${prefix}/share'
c906108c
SS
350sysconfdir='${prefix}/etc'
351sharedstatedir='${prefix}/com'
352localstatedir='${prefix}/var'
b4e70030 353libdir='${exec_prefix}/lib'
c906108c
SS
354includedir='${prefix}/include'
355oldincludedir='/usr/include'
b4e70030
JB
356infodir='${prefix}/info'
357mandir='${prefix}/man'
c906108c 358
c906108c
SS
359ac_prev=
360for ac_option
361do
c906108c
SS
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
b4e70030 364 eval "$ac_prev=\$ac_option"
c906108c
SS
365 ac_prev=
366 continue
367 fi
368
b4e70030 369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
b4e70030 373 case $ac_option in
c906108c
SS
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 378 bindir=$ac_optarg ;;
c906108c
SS
379
380 -build | --build | --buil | --bui | --bu)
bec39cab 381 ac_prev=build_alias ;;
c906108c 382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 383 build_alias=$ac_optarg ;;
c906108c
SS
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
c906108c 394
b4e70030 395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 396 ac_prev=datadir ;;
b4e70030
JB
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
bec39cab 399 datadir=$ac_optarg ;;
c906108c
SS
400
401 -disable-* | --disable-*)
bec39cab 402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 403 # Reject names that are not valid shell variable names.
bec39cab
AC
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030 408 eval "enable_$ac_feature=no" ;;
c906108c
SS
409
410 -enable-* | --enable-*)
bec39cab 411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 412 # Reject names that are not valid shell variable names.
bec39cab
AC
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030
JB
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) ac_optarg=yes ;;
420 esac
421 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
bec39cab 430 exec_prefix=$ac_optarg ;;
c906108c
SS
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
bec39cab
AC
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
c906108c
SS
442
443 -host | --host | --hos | --ho)
bec39cab 444 ac_prev=host_alias ;;
c906108c 445 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 446 host_alias=$ac_optarg ;;
c906108c
SS
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 453 includedir=$ac_optarg ;;
c906108c
SS
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 458 infodir=$ac_optarg ;;
c906108c
SS
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 463 libdir=$ac_optarg ;;
c906108c
SS
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
bec39cab 470 libexecdir=$ac_optarg ;;
c906108c
SS
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 479 localstatedir=$ac_optarg ;;
c906108c
SS
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 484 mandir=$ac_optarg ;;
c906108c
SS
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 491 | --no-cr | --no-c | -n)
c906108c
SS
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 505 oldincludedir=$ac_optarg ;;
c906108c
SS
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 510 prefix=$ac_optarg ;;
c906108c
SS
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 517 program_prefix=$ac_optarg ;;
c906108c
SS
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 524 program_suffix=$ac_optarg ;;
c906108c
SS
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 541 program_transform_name=$ac_optarg ;;
c906108c
SS
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
bec39cab 551 sbindir=$ac_optarg ;;
c906108c
SS
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
bec39cab 562 sharedstatedir=$ac_optarg ;;
c906108c
SS
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
bec39cab 567 site=$ac_optarg ;;
3ace7edb 568
c906108c
SS
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 572 srcdir=$ac_optarg ;;
c906108c
SS
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 579 sysconfdir=$ac_optarg ;;
c906108c
SS
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 582 ac_prev=target_alias ;;
c906108c 583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 584 target_alias=$ac_optarg ;;
c906108c
SS
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
bec39cab
AC
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
c906108c
SS
591
592 -with-* | --with-*)
bec39cab 593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 594 # Reject names that are not valid shell variable names.
bec39cab
AC
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
c906108c 598 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
604
605 -without-* | --without-*)
bec39cab 606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 607 # Reject names that are not valid shell variable names.
bec39cab
AC
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
b4e70030 612 eval "with_$ac_package=no" ;;
c906108c
SS
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 623 x_includes=$ac_optarg ;;
c906108c
SS
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 630 x_libraries=$ac_optarg ;;
c906108c 631
bec39cab
AC
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
c906108c
SS
635 ;;
636
bec39cab
AC
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
b4e70030
JB
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
645 export $ac_envvar ;;
646
c906108c 647 *)
bec39cab
AC
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
653 ;;
654
655 esac
656done
657
658if test -n "$ac_prev"; then
bec39cab
AC
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
c906108c 662fi
c906108c 663
b4e70030
JB
664# Be sure to have absolute paths.
665for ac_var in exec_prefix prefix
c906108c 666do
b4e70030 667 eval ac_val=$`echo $ac_var`
bec39cab 668 case $ac_val in
b4e70030
JB
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673done
674
675# Be sure to have absolute paths.
676for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678do
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
c906108c
SS
684 esac
685done
686
bec39cab
AC
687# There might be people who depend on the old broken behavior: `$host'
688# used to hold the argument of --host etc.
689# FIXME: To remove some day.
690build=$build_alias
691host=$host_alias
692target=$target_alias
693
694# FIXME: To remove some day.
695if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703fi
c906108c 704
bec39cab
AC
705ac_tool_prefix=
706test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708test "$silent" = yes && exec 6>/dev/null
c906108c 709
c906108c
SS
710
711# Find the source files, if location was not specified.
712if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
b4e70030
JB
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
716$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
bec39cab 721echo X"$0" |
b4e70030
JB
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
c906108c 727 srcdir=$ac_confdir
b4e70030 728 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
729 srcdir=..
730 fi
731else
732 ac_srcdir_defaulted=no
733fi
b4e70030
JB
734if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
738 else
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 740 { (exit 1); exit 1; }; }
b4e70030 741 fi
c906108c 742fi
b4e70030
JB
743(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 745 { (exit 1); exit 1; }; }
b4e70030
JB
746srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747ac_env_build_alias_set=${build_alias+set}
748ac_env_build_alias_value=$build_alias
749ac_cv_env_build_alias_set=${build_alias+set}
750ac_cv_env_build_alias_value=$build_alias
751ac_env_host_alias_set=${host_alias+set}
752ac_env_host_alias_value=$host_alias
753ac_cv_env_host_alias_set=${host_alias+set}
754ac_cv_env_host_alias_value=$host_alias
755ac_env_target_alias_set=${target_alias+set}
756ac_env_target_alias_value=$target_alias
757ac_cv_env_target_alias_set=${target_alias+set}
758ac_cv_env_target_alias_value=$target_alias
759ac_env_CC_set=${CC+set}
760ac_env_CC_value=$CC
761ac_cv_env_CC_set=${CC+set}
762ac_cv_env_CC_value=$CC
763ac_env_CFLAGS_set=${CFLAGS+set}
764ac_env_CFLAGS_value=$CFLAGS
765ac_cv_env_CFLAGS_set=${CFLAGS+set}
766ac_cv_env_CFLAGS_value=$CFLAGS
767ac_env_LDFLAGS_set=${LDFLAGS+set}
768ac_env_LDFLAGS_value=$LDFLAGS
769ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770ac_cv_env_LDFLAGS_value=$LDFLAGS
771ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_env_CPPFLAGS_value=$CPPFLAGS
773ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775ac_env_CPP_set=${CPP+set}
776ac_env_CPP_value=$CPP
777ac_cv_env_CPP_set=${CPP+set}
778ac_cv_env_CPP_value=$CPP
c906108c 779
bec39cab
AC
780#
781# Report the --help message.
782#
783if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787\`configure' configures this package to adapt to many kinds of systems.
788
789Usage: $0 [OPTION]... [VAR=VALUE]...
790
791To assign environment variables (e.g., CC, CFLAGS...), specify them as
792VAR=VALUE. See below for descriptions of some of the useful variables.
793
794Defaults for the options are specified in brackets.
795
796Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
b4e70030
JB
807_ACEOF
808
809 cat <<_ACEOF
bec39cab
AC
810Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816By default, \`make install' will install all the files in
817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819for instance \`--prefix=\$HOME'.
820
821For better control, use the options below.
822
823Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
b4e70030 827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b4e70030
JB
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
836_ACEOF
837
838 cat <<\_ACEOF
839
840Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
e28b3332
DJ
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
d0c678e6 867 --enable-targets alternative target configurations
c0993dbe 868 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
bec39cab
AC
869 --disable-gdbcli disable command-line interface (CLI)
870 --disable-gdbmi disable machine-interface (MI)
871 --enable-tui enable full-screen terminal user interface (TUI)
872 --enable-gdbtk enable gdbtk graphical user interface (GUI)
873 --enable-profiling enable profiling of GDB
3841debe 874 --disable-rpath do not hardcode runtime library paths
094a342e 875 --enable-werror treat compile warnings as errors
bec39cab
AC
876 --enable-build-warnings Enable build-time compiler warnings if gcc is used
877 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
878 --enable-sim Link gdb with simulator
879 --enable-multi-ice build the multi-ice-gdb-server
880
881Optional Packages:
882 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bec39cab
AC
884 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
885 --with-libunwind Use libunwind frame unwinding support
c16158bc
JM
886 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
887 --with-bugurl=URL Direct users to URL to report a bug
6a30b0a5 888 --with-system-readline use installed readline library
5c39566f 889 --with-expat include expat support (auto/yes/no)
3841debe
DJ
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
892 --without-libexpat-prefix don't search for libexpat in includedir and libdir
d57a3c85 893 --with-python include python support (auto/yes/no/<path>)
bec39cab
AC
894 --without-included-regex don't use included regex; this is the default
895 on systems with version 2 of the GNU C library
896 (use with caution on other system)
897 --with-sysroot=DIR Search for usr/lib et al within DIR.
5062cc19
KS
898 --with-tcl directory containing tcl configuration (tclConfig.sh)
899 --with-tk directory containing tk configuration (tkConfig.sh)
bec39cab
AC
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
fdc59709
PB
1296 # differences in whitespace do not lead to failure.
1297 ac_old_val_w=`echo x $ac_old_val`
1298 ac_new_val_w=`echo x $ac_new_val`
1299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
bec39cab 1301echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
fdc59709
PB
1302 ac_cache_corrupted=:
1303 else
1304 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1305echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1306 eval $ac_var=\$ac_old_val
1307 fi
1308 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1309echo "$as_me: former value: \`$ac_old_val'" >&2;}
1310 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1311echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
1312 fi;;
1313 esac
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1316 case $ac_new_val in
b4e70030
JB
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1320 esac
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324 esac
1325 fi
1326done
1327if $ac_cache_corrupted; then
d5af19ba
DJ
1328 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1329echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
c906108c
SS
1335fi
1336
b4e70030
JB
1337ac_ext=c
1338ac_cpp='$CPP $CPPFLAGS'
1339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1342
1343
783e057b
DJ
1344gl_header_list="$gl_header_list stdint.h"
1345gl_header_list="$gl_header_list wchar.h"
1346gl_header_list="$gl_header_list string.h"
bec39cab
AC
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
bec39cab 1363
d5af19ba
DJ
1364
1365
1366
b4e70030
JB
1367 ac_config_headers="$ac_config_headers config.h:config.in"
1368
1369echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1370echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1371 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1372if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1373 enableval="$enable_maintainer_mode"
1374 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1375else
1376 USE_MAINTAINER_MODE=no
b4e70030
JB
1377fi;
1378 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1379echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1380
413ccac7
AC
1381
1382if test $USE_MAINTAINER_MODE = yes; then
1383 MAINTAINER_MODE_TRUE=
1384 MAINTAINER_MODE_FALSE='#'
1385else
1386 MAINTAINER_MODE_TRUE='#'
1387 MAINTAINER_MODE_FALSE=
1388fi
85981d60 1389
413ccac7 1390 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1391
c906108c 1392
bec39cab
AC
1393
1394ac_ext=c
1395ac_cpp='$CPP $CPPFLAGS'
1396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1401set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1402echo "$as_me:$LINENO: checking for $ac_word" >&5
1403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1404if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1409else
1410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411for as_dir in $PATH
1412do
1413 IFS=$as_save_IFS
1414 test -z "$as_dir" && as_dir=.
1415 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419 break 2
1420 fi
1421done
1422done
1423
1424fi
1425fi
1426CC=$ac_cv_prog_CC
1427if test -n "$CC"; then
b4e70030
JB
1428 echo "$as_me:$LINENO: result: $CC" >&5
1429echo "${ECHO_T}$CC" >&6
bec39cab 1430else
b4e70030
JB
1431 echo "$as_me:$LINENO: result: no" >&5
1432echo "${ECHO_T}no" >&6
bec39cab
AC
1433fi
1434
1435fi
1436if test -z "$ac_cv_prog_CC"; then
1437 ac_ct_CC=$CC
1438 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1439set dummy gcc; ac_word=$2
b4e70030
JB
1440echo "$as_me:$LINENO: checking for $ac_word" >&5
1441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445 if test -n "$ac_ct_CC"; then
1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1447else
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1455 ac_cv_prog_ac_ct_CC="gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459done
1460done
1461
1462fi
1463fi
1464ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465if test -n "$ac_ct_CC"; then
b4e70030
JB
1466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1467echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1468else
b4e70030
JB
1469 echo "$as_me:$LINENO: result: no" >&5
1470echo "${ECHO_T}no" >&6
bec39cab
AC
1471fi
1472
b4e70030 1473 CC=$ac_ct_CC
bec39cab
AC
1474else
1475 CC="$ac_cv_prog_CC"
1476fi
1477
1478if test -z "$CC"; then
b4e70030
JB
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1481set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1482echo "$as_me:$LINENO: checking for $ac_word" >&5
1483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1484if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1486else
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1489else
bec39cab
AC
1490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1497 ac_cv_prog_CC="${ac_tool_prefix}cc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501done
1502done
1503
c906108c
SS
1504fi
1505fi
bec39cab 1506CC=$ac_cv_prog_CC
c906108c 1507if test -n "$CC"; then
b4e70030
JB
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509echo "${ECHO_T}$CC" >&6
c906108c 1510else
b4e70030
JB
1511 echo "$as_me:$LINENO: result: no" >&5
1512echo "${ECHO_T}no" >&6
c906108c
SS
1513fi
1514
b4e70030
JB
1515fi
1516if test -z "$ac_cv_prog_CC"; then
1517 ac_ct_CC=$CC
1518 # Extract the first word of "cc", so it can be a program name with args.
1519set dummy cc; ac_word=$2
1520echo "$as_me:$LINENO: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527else
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_ac_ct_CC="cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
4e8d927d 1538 fi
b4e70030
JB
1539done
1540done
1541
1542fi
1543fi
1544ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545if test -n "$ac_ct_CC"; then
1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547echo "${ECHO_T}$ac_ct_CC" >&6
1548else
1549 echo "$as_me:$LINENO: result: no" >&5
1550echo "${ECHO_T}no" >&6
1551fi
1552
1553 CC=$ac_ct_CC
1554else
1555 CC="$ac_cv_prog_CC"
1556fi
1557
bec39cab 1558fi
c906108c
SS
1559if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561set dummy cc; ac_word=$2
b4e70030
JB
1562echo "$as_me:$LINENO: checking for $ac_word" >&5
1563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1564if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1566else
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1569else
c906108c 1570 ac_prog_rejected=no
bec39cab
AC
1571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572for as_dir in $PATH
1573do
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1579 ac_prog_rejected=yes
1580 continue
1581 fi
1582 ac_cv_prog_CC="cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1585 fi
1586done
1587done
1588
c906108c
SS
1589if test $ac_prog_rejected = yes; then
1590 # We found a bogon in the path, so make sure we never use it.
1591 set dummy $ac_cv_prog_CC
1592 shift
bec39cab 1593 if test $# != 0; then
c906108c
SS
1594 # We chose a different compiler from the bogus one.
1595 # However, it has the same basename, so the bogon will be chosen
1596 # first if we set CC to just the basename; use the full file name.
1597 shift
bec39cab 1598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1599 fi
1600fi
1601fi
1602fi
bec39cab 1603CC=$ac_cv_prog_CC
c906108c 1604if test -n "$CC"; then
b4e70030
JB
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606echo "${ECHO_T}$CC" >&6
c906108c 1607else
b4e70030
JB
1608 echo "$as_me:$LINENO: result: no" >&5
1609echo "${ECHO_T}no" >&6
c906108c
SS
1610fi
1611
bec39cab
AC
1612fi
1613if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
b4e70030 1615 for ac_prog in cl
bec39cab
AC
1616 do
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1619echo "$as_me:$LINENO: checking for $ac_word" >&5
1620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1621if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1623else
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1626else
bec39cab
AC
1627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 break 2
1637 fi
1638done
1639done
1640
c906108c
SS
1641fi
1642fi
bec39cab 1643CC=$ac_cv_prog_CC
c906108c 1644if test -n "$CC"; then
b4e70030
JB
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646echo "${ECHO_T}$CC" >&6
c906108c 1647else
b4e70030
JB
1648 echo "$as_me:$LINENO: result: no" >&5
1649echo "${ECHO_T}no" >&6
c906108c 1650fi
bec39cab
AC
1651
1652 test -n "$CC" && break
1653 done
1654fi
1655if test -z "$CC"; then
1656 ac_ct_CC=$CC
b4e70030 1657 for ac_prog in cl
bec39cab
AC
1658do
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660set dummy $ac_prog; ac_word=$2
b4e70030
JB
1661echo "$as_me:$LINENO: checking for $ac_word" >&5
1662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1663if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665else
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668else
1669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670for as_dir in $PATH
1671do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
c906108c 1679 fi
bec39cab
AC
1680done
1681done
1682
1683fi
1684fi
1685ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686if test -n "$ac_ct_CC"; then
b4e70030
JB
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1689else
b4e70030
JB
1690 echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
c906108c
SS
1692fi
1693
bec39cab
AC
1694 test -n "$ac_ct_CC" && break
1695done
c906108c 1696
b4e70030 1697 CC=$ac_ct_CC
bec39cab
AC
1698fi
1699
1700fi
1701
1702
d5af19ba
DJ
1703test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1704echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bec39cab
AC
1706See \`config.log' for more details." >&5
1707echo "$as_me: error: no acceptable C compiler found in \$PATH
1708See \`config.log' for more details." >&2;}
d5af19ba 1709 { (exit 1); exit 1; }; }; }
bec39cab
AC
1710
1711# Provide some information about the compiler.
b4e70030
JB
1712echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
bec39cab 1714ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1715{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
b4e70030
JB
1720{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
b4e70030
JB
1725{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1730
1731cat >conftest.$ac_ext <<_ACEOF
1732/* confdefs.h. */
1733_ACEOF
1734cat confdefs.h >>conftest.$ac_ext
1735cat >>conftest.$ac_ext <<_ACEOF
1736/* end confdefs.h. */
1737
1738int
1739main ()
1740{
1741
1742 ;
1743 return 0;
1744}
1745_ACEOF
1746ac_clean_files_save=$ac_clean_files
b4e70030 1747ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1748# Try to create an executable without -o first, disregard a.out.
1749# It will help us diagnose broken compilers, and finding out an intuition
1750# of exeext.
b4e70030
JB
1751echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1752echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1753ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755 (eval $ac_link_default) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
b4e70030
JB
1759 # Find the output, starting from the most likely. This scheme is
1760# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1761# resort.
1762
1763# Be careful to initialize this variable, since it used to be cached.
1764# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765ac_cv_exeext=
1766# b.out is created by i960 compilers.
1767for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1768do
1769 test -f "$ac_file" || continue
1770 case $ac_file in
b4e70030
JB
1771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1772 ;;
1773 conftest.$ac_ext )
1774 # This is the source file.
1775 ;;
1776 [ab].out )
1777 # We found the default executable, but exeext='' is most
1778 # certainly right.
1779 break;;
1780 *.* )
1781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 # FIXME: I believe we export ac_cv_exeext for Libtool,
1783 # but it would be cool to find out if it's true. Does anybody
1784 # maintain Libtool? --akim.
1785 export ac_cv_exeext
1786 break;;
1787 * )
1788 break;;
bec39cab
AC
1789 esac
1790done
1791else
1792 echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
d5af19ba
DJ
1795{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1796echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1797{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1798See \`config.log' for more details." >&5
1799echo "$as_me: error: C compiler cannot create executables
1800See \`config.log' for more details." >&2;}
d5af19ba 1801 { (exit 77); exit 77; }; }; }
bec39cab
AC
1802fi
1803
b4e70030
JB
1804ac_exeext=$ac_cv_exeext
1805echo "$as_me:$LINENO: result: $ac_file" >&5
1806echo "${ECHO_T}$ac_file" >&6
1807
1808# Check the compiler produces executables we can run. If not, either
bec39cab 1809# the compiler is broken, or we cross compile.
b4e70030
JB
1810echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1811echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1812# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1813# If not cross compiling, check that we can run a simple program.
1814if test "$cross_compiling" != yes; then
1815 if { ac_try='./$ac_file'
1816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1817 (eval $ac_try) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1821 cross_compiling=no
c906108c 1822 else
bec39cab
AC
1823 if test "$cross_compiling" = maybe; then
1824 cross_compiling=yes
1825 else
d5af19ba
DJ
1826 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
bec39cab
AC
1829If you meant to cross compile, use \`--host'.
1830See \`config.log' for more details." >&5
1831echo "$as_me: error: cannot run C compiled programs.
1832If you meant to cross compile, use \`--host'.
1833See \`config.log' for more details." >&2;}
d5af19ba 1834 { (exit 1); exit 1; }; }; }
bec39cab 1835 fi
c906108c 1836 fi
bec39cab 1837fi
b4e70030
JB
1838echo "$as_me:$LINENO: result: yes" >&5
1839echo "${ECHO_T}yes" >&6
bec39cab 1840
b4e70030
JB
1841rm -f a.out a.exe conftest$ac_cv_exeext b.out
1842ac_clean_files=$ac_clean_files_save
1843# Check the compiler produces executables we can run. If not, either
1844# the compiler is broken, or we cross compile.
1845echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1846echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1847echo "$as_me:$LINENO: result: $cross_compiling" >&5
1848echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1849
b4e70030
JB
1850echo "$as_me:$LINENO: checking for suffix of executables" >&5
1851echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1853 (eval $ac_link) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
b4e70030
JB
1857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1858# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1859# work properly (i.e., refer to `conftest.exe'), while it won't with
1860# `rm'.
1861for ac_file in conftest.exe conftest conftest.*; do
1862 test -f "$ac_file" || continue
1863 case $ac_file in
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1866 export ac_cv_exeext
1867 break;;
1868 * ) break;;
1869 esac
1870done
c906108c 1871else
d5af19ba
DJ
1872 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bec39cab
AC
1875See \`config.log' for more details." >&5
1876echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877See \`config.log' for more details." >&2;}
d5af19ba 1878 { (exit 1); exit 1; }; }; }
c906108c 1879fi
c906108c 1880
b4e70030
JB
1881rm -f conftest$ac_cv_exeext
1882echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1884
b4e70030 1885rm -f conftest.$ac_ext
bec39cab
AC
1886EXEEXT=$ac_cv_exeext
1887ac_exeext=$EXEEXT
b4e70030
JB
1888echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1890if test "${ac_cv_objext+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
b4e70030
JB
1893 cat >conftest.$ac_ext <<_ACEOF
1894/* confdefs.h. */
1895_ACEOF
1896cat confdefs.h >>conftest.$ac_ext
1897cat >>conftest.$ac_ext <<_ACEOF
1898/* end confdefs.h. */
1899
1900int
1901main ()
1902{
1903
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908rm -f conftest.o conftest.obj
bec39cab
AC
1909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
b4e70030 1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1915 case $ac_file in
b4e70030 1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1918 break;;
1919 esac
1920done
c906108c 1921else
bec39cab
AC
1922 echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
d5af19ba
DJ
1925{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1926echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1927{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1928See \`config.log' for more details." >&5
1929echo "$as_me: error: cannot compute suffix of object files: cannot compile
1930See \`config.log' for more details." >&2;}
d5af19ba 1931 { (exit 1); exit 1; }; }; }
c906108c
SS
1932fi
1933
b4e70030 1934rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1935fi
b4e70030
JB
1936echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1937echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1938OBJEXT=$ac_cv_objext
1939ac_objext=$OBJEXT
b4e70030
JB
1940echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1941echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1942if test "${ac_cv_c_compiler_gnu+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1944else
bec39cab
AC
1945 cat >conftest.$ac_ext <<_ACEOF
1946/* confdefs.h. */
1947_ACEOF
1948cat confdefs.h >>conftest.$ac_ext
1949cat >>conftest.$ac_ext <<_ACEOF
1950/* end confdefs.h. */
1951
1952int
1953main ()
1954{
1955#ifndef __GNUC__
1956 choke me
1957#endif
1958
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963rm -f conftest.$ac_objext
1964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>conftest.er1
1966 ac_status=$?
1967 grep -v '^ *+' conftest.er1 >conftest.err
1968 rm -f conftest.er1
1969 cat conftest.err >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); } &&
b4e70030
JB
1972 { ac_try='test -z "$ac_c_werror_flag"
1973 || test ! -s conftest.err'
bec39cab
AC
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975 (eval $ac_try) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 ac_compiler_gnu=yes
1986else
1987 echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
b4e70030 1990ac_compiler_gnu=no
bec39cab
AC
1991fi
1992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1993ac_cv_c_compiler_gnu=$ac_compiler_gnu
1994
1995fi
b4e70030
JB
1996echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1997echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1998GCC=`test $ac_compiler_gnu = yes && echo yes`
1999ac_test_CFLAGS=${CFLAGS+set}
2000ac_save_CFLAGS=$CFLAGS
b4e70030
JB
2001CFLAGS="-g"
2002echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2003echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
2004if test "${ac_cv_prog_cc_g+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
b4e70030 2007 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
2008/* confdefs.h. */
2009_ACEOF
2010cat confdefs.h >>conftest.$ac_ext
2011cat >>conftest.$ac_ext <<_ACEOF
2012/* end confdefs.h. */
2013
2014int
2015main ()
2016{
2017
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022rm -f conftest.$ac_objext
2023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>conftest.er1
2025 ac_status=$?
2026 grep -v '^ *+' conftest.er1 >conftest.err
2027 rm -f conftest.er1
2028 cat conftest.err >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
b4e70030
JB
2031 { ac_try='test -z "$ac_c_werror_flag"
2032 || test ! -s conftest.err'
bec39cab
AC
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; } &&
2038 { ac_try='test -s conftest.$ac_objext'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 (eval $ac_try) 2>&5
2041 ac_status=$?
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; }; then
c906108c
SS
2044 ac_cv_prog_cc_g=yes
2045else
bec39cab
AC
2046 echo "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2048
b4e70030 2049ac_cv_prog_cc_g=no
4e8d927d 2050fi
bec39cab
AC
2051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
b4e70030
JB
2053echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2054echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2055if test "$ac_test_CFLAGS" = set; then
bec39cab 2056 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2057elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2059 CFLAGS="-g -O2"
2060 else
2061 CFLAGS="-g"
2062 fi
2063else
2064 if test "$GCC" = yes; then
2065 CFLAGS="-O2"
2066 else
2067 CFLAGS=
2068 fi
2069fi
b4e70030
JB
2070echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2071echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2072if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
b4e70030 2075 ac_cv_prog_cc_stdc=no
bec39cab
AC
2076ac_save_CC=$CC
2077cat >conftest.$ac_ext <<_ACEOF
2078/* confdefs.h. */
2079_ACEOF
2080cat confdefs.h >>conftest.$ac_ext
2081cat >>conftest.$ac_ext <<_ACEOF
2082/* end confdefs.h. */
c906108c
SS
2083#include <stdarg.h>
2084#include <stdio.h>
2085#include <sys/types.h>
2086#include <sys/stat.h>
2087/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2088struct buf { int x; };
2089FILE * (*rcsopen) (struct buf *, struct stat *, int);
2090static char *e (p, i)
2091 char **p;
2092 int i;
2093{
2094 return p[i];
2095}
2096static char *f (char * (*g) (char **, int), char **p, ...)
2097{
2098 char *s;
2099 va_list v;
2100 va_start (v,p);
2101 s = g (p, va_arg (v,int));
2102 va_end (v);
2103 return s;
2104}
bec39cab
AC
2105
2106/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2107 function prototypes and stuff, but not '\xHH' hex character constants.
2108 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2109 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2111 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2112 that's true only with -std1. */
bec39cab
AC
2113int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2114
c906108c
SS
2115int test (int i, double x);
2116struct s1 {int (*f) (int a);};
2117struct s2 {int (*f) (double a);};
2118int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2119int argc;
2120char **argv;
bec39cab
AC
2121int
2122main ()
2123{
c906108c 2124return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2125 ;
2126 return 0;
2127}
2128_ACEOF
b4e70030
JB
2129# Don't try gcc -ansi; that turns off useful extensions and
2130# breaks some systems' header files.
2131# AIX -qlanglvl=ansi
2132# Ultrix and OSF/1 -std1
2133# HP-UX 10.20 and later -Ae
2134# HP-UX older versions -Aa -D_HPUX_SOURCE
2135# SVR4 -Xc -D__EXTENSIONS__
2136for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2137do
2138 CC="$ac_save_CC $ac_arg"
2139 rm -f conftest.$ac_objext
2140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
b4e70030
JB
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
bec39cab
AC
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
b4e70030
JB
2161 ac_cv_prog_cc_stdc=$ac_arg
2162break
c906108c 2163else
bec39cab
AC
2164 echo "$as_me: failed program was:" >&5
2165sed 's/^/| /' conftest.$ac_ext >&5
2166
c906108c 2167fi
bec39cab 2168rm -f conftest.err conftest.$ac_objext
c906108c 2169done
b4e70030 2170rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2171CC=$ac_save_CC
c906108c
SS
2172
2173fi
b4e70030
JB
2174
2175case "x$ac_cv_prog_cc_stdc" in
2176 x|xno)
2177 echo "$as_me:$LINENO: result: none needed" >&5
2178echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2179 *)
b4e70030
JB
2180 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2181echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2183esac
2184
b4e70030
JB
2185# Some people use a C++ compiler to compile C. Since we use `exit',
2186# in C++ we need to declare it. In case someone uses the same compiler
2187# for both compiling C and C++ we need to have the C++ compiler decide
2188# the declaration of exit, since it's the most demanding environment.
2189cat >conftest.$ac_ext <<_ACEOF
2190#ifndef __cplusplus
2191 choke me
2192#endif
2193_ACEOF
2194rm -f conftest.$ac_objext
2195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
2197 ac_status=$?
2198 grep -v '^ *+' conftest.er1 >conftest.err
2199 rm -f conftest.er1
2200 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag"
2204 || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 for ac_declaration in \
2217 '' \
2218 'extern "C" void std::exit (int) throw (); using std::exit;' \
2219 'extern "C" void std::exit (int); using std::exit;' \
2220 'extern "C" void exit (int) throw ();' \
2221 'extern "C" void exit (int);' \
2222 'void exit (int);'
2223do
2224 cat >conftest.$ac_ext <<_ACEOF
2225/* confdefs.h. */
2226_ACEOF
2227cat confdefs.h >>conftest.$ac_ext
2228cat >>conftest.$ac_ext <<_ACEOF
2229/* end confdefs.h. */
2230$ac_declaration
2231#include <stdlib.h>
2232int
2233main ()
2234{
2235exit (42);
2236 ;
2237 return 0;
2238}
2239_ACEOF
2240rm -f conftest.$ac_objext
2241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2243 ac_status=$?
2244 grep -v '^ *+' conftest.er1 >conftest.err
2245 rm -f conftest.er1
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 (eval $ac_try) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 (eval $ac_try) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 :
2263else
2264 echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267continue
2268fi
2269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270 cat >conftest.$ac_ext <<_ACEOF
2271/* confdefs.h. */
2272_ACEOF
2273cat confdefs.h >>conftest.$ac_ext
2274cat >>conftest.$ac_ext <<_ACEOF
2275/* end confdefs.h. */
2276$ac_declaration
2277int
2278main ()
2279{
2280exit (42);
2281 ;
2282 return 0;
2283}
2284_ACEOF
2285rm -f conftest.$ac_objext
2286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2288 ac_status=$?
2289 grep -v '^ *+' conftest.er1 >conftest.err
2290 rm -f conftest.er1
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2307 break
2308else
2309 echo "$as_me: failed program was:" >&5
2310sed 's/^/| /' conftest.$ac_ext >&5
2311
2312fi
2313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2314done
2315rm -f conftest*
2316if test -n "$ac_declaration"; then
2317 echo '#ifdef __cplusplus' >>confdefs.h
2318 echo $ac_declaration >>confdefs.h
2319 echo '#endif' >>confdefs.h
2320fi
2321
2322else
2323 echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2325
b4e70030
JB
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2328ac_ext=c
2329ac_cpp='$CPP $CPPFLAGS'
2330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2333
60ca704f 2334
bec39cab
AC
2335cat >>confdefs.h <<\_ACEOF
2336#define _GNU_SOURCE 1
2337_ACEOF
c906108c
SS
2338
2339
8bb2c122 2340
bec39cab
AC
2341ac_ext=c
2342ac_cpp='$CPP $CPPFLAGS'
2343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2346echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2348# On Suns, sometimes $CPP names a directory.
2349if test -n "$CPP" && test -d "$CPP"; then
2350 CPP=
8bb2c122 2351fi
bec39cab
AC
2352if test -z "$CPP"; then
2353 if test "${ac_cv_prog_CPP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 # Double quotes because CPP needs to be expanded
2357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2358 do
2359 ac_preproc_ok=false
2360for ac_c_preproc_warn_flag in '' yes
2361do
2362 # Use a header file that comes with gcc, so configuring glibc
2363 # with a fresh cross-compiler works.
2364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365 # <limits.h> exists even on freestanding compilers.
2366 # On the NeXT, cc -E runs the code through the compiler's parser,
2367 # not just through cpp. "Syntax error" is here to catch this case.
2368 cat >conftest.$ac_ext <<_ACEOF
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
2374#ifdef __STDC__
2375# include <limits.h>
2376#else
2377# include <assert.h>
2378#endif
2379 Syntax error
2380_ACEOF
2381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392 else
2393 ac_cpp_err=
2394 fi
8bb2c122 2395else
bec39cab 2396 ac_cpp_err=yes
8bb2c122 2397fi
bec39cab
AC
2398if test -z "$ac_cpp_err"; then
2399 :
8bb2c122 2400else
bec39cab
AC
2401 echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 # Broken: fails on valid input.
2405continue
2406fi
2407rm -f conftest.err conftest.$ac_ext
2408
b4e70030 2409 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2410 # can be detected and how.
2411 cat >conftest.$ac_ext <<_ACEOF
2412/* confdefs.h. */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h. */
2417#include <ac_nonexistent.h>
2418_ACEOF
2419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev/null; then
2427 if test -s conftest.err; then
2428 ac_cpp_err=$ac_c_preproc_warn_flag
2429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430 else
2431 ac_cpp_err=
2432 fi
8bb2c122 2433else
bec39cab 2434 ac_cpp_err=yes
8bb2c122 2435fi
bec39cab
AC
2436if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2438continue
8bb2c122 2439else
bec39cab
AC
2440 echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2442
bec39cab
AC
2443 # Passes both tests.
2444ac_preproc_ok=:
2445break
8bb2c122 2446fi
bec39cab 2447rm -f conftest.err conftest.$ac_ext
8bb2c122 2448
bec39cab
AC
2449done
2450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451rm -f conftest.err conftest.$ac_ext
2452if $ac_preproc_ok; then
2453 break
2454fi
8bb2c122 2455
bec39cab
AC
2456 done
2457 ac_cv_prog_CPP=$CPP
ddc9cd0f 2458
c906108c 2459fi
bec39cab
AC
2460 CPP=$ac_cv_prog_CPP
2461else
2462 ac_cv_prog_CPP=$CPP
c906108c 2463fi
b4e70030
JB
2464echo "$as_me:$LINENO: result: $CPP" >&5
2465echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2466ac_preproc_ok=false
2467for ac_c_preproc_warn_flag in '' yes
2468do
2469 # Use a header file that comes with gcc, so configuring glibc
2470 # with a fresh cross-compiler works.
2471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472 # <limits.h> exists even on freestanding compilers.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp. "Syntax error" is here to catch this case.
2475 cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h. */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h. */
2481#ifdef __STDC__
2482# include <limits.h>
2483#else
2484# include <assert.h>
2485#endif
2486 Syntax error
2487_ACEOF
2488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499 else
2500 ac_cpp_err=
2501 fi
c906108c 2502else
bec39cab 2503 ac_cpp_err=yes
c906108c 2504fi
bec39cab
AC
2505if test -z "$ac_cpp_err"; then
2506 :
c906108c 2507else
bec39cab
AC
2508 echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 # Broken: fails on valid input.
2512continue
2513fi
2514rm -f conftest.err conftest.$ac_ext
2515
b4e70030 2516 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2517 # can be detected and how.
2518 cat >conftest.$ac_ext <<_ACEOF
2519/* confdefs.h. */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h. */
2524#include <ac_nonexistent.h>
2525_ACEOF
2526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } >/dev/null; then
2534 if test -s conftest.err; then
2535 ac_cpp_err=$ac_c_preproc_warn_flag
2536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2537 else
2538 ac_cpp_err=
2539 fi
c906108c 2540else
bec39cab 2541 ac_cpp_err=yes
c906108c 2542fi
bec39cab
AC
2543if test -z "$ac_cpp_err"; then
2544 # Broken: success on invalid input.
2545continue
c906108c 2546else
bec39cab
AC
2547 echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2549
bec39cab
AC
2550 # Passes both tests.
2551ac_preproc_ok=:
2552break
c906108c 2553fi
bec39cab 2554rm -f conftest.err conftest.$ac_ext
c906108c 2555
bec39cab
AC
2556done
2557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558rm -f conftest.err conftest.$ac_ext
2559if $ac_preproc_ok; then
c906108c
SS
2560 :
2561else
d5af19ba
DJ
2562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2563echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
bec39cab
AC
2565See \`config.log' for more details." >&5
2566echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2567See \`config.log' for more details." >&2;}
d5af19ba 2568 { (exit 1); exit 1; }; }; }
c906108c 2569fi
c906108c 2570
bec39cab
AC
2571ac_ext=c
2572ac_cpp='$CPP $CPPFLAGS'
2573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
2577
b4e70030
JB
2578echo "$as_me:$LINENO: checking for egrep" >&5
2579echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2580if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
b4e70030
JB
2583 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2584 then ac_cv_prog_egrep='grep -E'
2585 else ac_cv_prog_egrep='egrep'
bec39cab 2586 fi
4e8d927d 2587fi
b4e70030
JB
2588echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2589echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2590 EGREP=$ac_cv_prog_egrep
c906108c 2591
bec39cab
AC
2592
2593
b4e70030
JB
2594echo "$as_me:$LINENO: checking for AIX" >&5
2595echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2596cat >conftest.$ac_ext <<_ACEOF
2597/* confdefs.h. */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h. */
2602#ifdef _AIX
2603 yes
2604#endif
2605
2606_ACEOF
c906108c 2607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2608 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2609 echo "$as_me:$LINENO: result: yes" >&5
2610echo "${ECHO_T}yes" >&6
bec39cab
AC
2611cat >>confdefs.h <<\_ACEOF
2612#define _ALL_SOURCE 1
2613_ACEOF
2614
c906108c 2615else
b4e70030
JB
2616 echo "$as_me:$LINENO: result: no" >&5
2617echo "${ECHO_T}no" >&6
c906108c
SS
2618fi
2619rm -f conftest*
2620
c906108c 2621
b4e70030
JB
2622echo "$as_me:$LINENO: checking for library containing strerror" >&5
2623echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2624if test "${ac_cv_search_strerror+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2626else
bec39cab 2627 ac_func_search_save_LIBS=$LIBS
b4e70030 2628ac_cv_search_strerror=no
bec39cab
AC
2629cat >conftest.$ac_ext <<_ACEOF
2630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
c906108c 2635
b4e70030 2636/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2637#ifdef __cplusplus
2638extern "C"
2639#endif
b4e70030
JB
2640/* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
bec39cab
AC
2642char strerror ();
2643int
2644main ()
2645{
b4e70030 2646strerror ();
bec39cab
AC
2647 ;
2648 return 0;
2649}
2650_ACEOF
b4e70030 2651rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
b4e70030
JB
2660 { ac_try='test -z "$ac_c_werror_flag"
2661 || test ! -s conftest.err'
bec39cab
AC
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest$ac_exeext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
b4e70030 2673 ac_cv_search_strerror="none required"
c906108c 2674else
bec39cab
AC
2675 echo "$as_me: failed program was:" >&5
2676sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2677
2678fi
bec39cab 2679rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2680 conftest$ac_exeext conftest.$ac_ext
2681if test "$ac_cv_search_strerror" = no; then
2682 for ac_lib in cposix; do
2683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2684 cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h. */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h. */
2690
2691/* Override any gcc2 internal prototype to avoid an error. */
2692#ifdef __cplusplus
2693extern "C"
2694#endif
2695/* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2697char strerror ();
2698int
2699main ()
2700{
2701strerror ();
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext conftest$ac_exeext
2707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708 (eval $ac_link) 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_search_strerror="-l$ac_lib"
2729break
4e8d927d 2730else
b4e70030
JB
2731 echo "$as_me: failed program was:" >&5
2732sed 's/^/| /' conftest.$ac_ext >&5
2733
2734fi
2735rm -f conftest.err conftest.$ac_objext \
2736 conftest$ac_exeext conftest.$ac_ext
2737 done
c906108c 2738fi
bec39cab 2739LIBS=$ac_func_search_save_LIBS
c906108c 2740fi
b4e70030
JB
2741echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2742echo "${ECHO_T}$ac_cv_search_strerror" >&6
2743if test "$ac_cv_search_strerror" != no; then
2744 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2745
c906108c
SS
2746fi
2747
783e057b
DJ
2748if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2750set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2751echo "$as_me:$LINENO: checking for $ac_word" >&5
2752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753if test "${ac_cv_prog_RANLIB+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756 if test -n "$RANLIB"; then
2757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770done
2771done
c906108c 2772
783e057b
DJ
2773fi
2774fi
2775RANLIB=$ac_cv_prog_RANLIB
2776if test -n "$RANLIB"; then
2777 echo "$as_me:$LINENO: result: $RANLIB" >&5
2778echo "${ECHO_T}$RANLIB" >&6
2779else
2780 echo "$as_me:$LINENO: result: no" >&5
2781echo "${ECHO_T}no" >&6
2782fi
bec39cab 2783
783e057b
DJ
2784fi
2785if test -z "$ac_cv_prog_RANLIB"; then
2786 ac_ct_RANLIB=$RANLIB
2787 # Extract the first word of "ranlib", so it can be a program name with args.
2788set dummy ranlib; ac_word=$2
2789echo "$as_me:$LINENO: checking for $ac_word" >&5
2790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
bec39cab 2792 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2793else
783e057b
DJ
2794 if test -n "$ac_ct_RANLIB"; then
2795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
bec39cab 2799do
783e057b
DJ
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_ac_ct_RANLIB="ranlib"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808done
2809done
2810
2811 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2812fi
2813fi
2814ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2815if test -n "$ac_ct_RANLIB"; then
2816 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2817echo "${ECHO_T}$ac_ct_RANLIB" >&6
2818else
2819 echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6
2821fi
2822
2823 RANLIB=$ac_ct_RANLIB
2824else
2825 RANLIB="$ac_cv_prog_RANLIB"
2826fi
2827
2828echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2829echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2830if test "${ac_cv_header_stdc+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
bec39cab
AC
2833 cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
783e057b 2839#include <stdlib.h>
bec39cab 2840#include <stdarg.h>
783e057b
DJ
2841#include <string.h>
2842#include <float.h>
c906108c 2843
bec39cab
AC
2844int
2845main ()
2846{
c906108c 2847
bec39cab
AC
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852rm -f conftest.$ac_objext
2853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
b4e70030
JB
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
bec39cab
AC
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
783e057b 2874 ac_cv_header_stdc=yes
c906108c 2875else
bec39cab
AC
2876 echo "$as_me: failed program was:" >&5
2877sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2878
783e057b 2879ac_cv_header_stdc=no
c906108c 2880fi
bec39cab 2881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2882
783e057b
DJ
2883if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h. */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h. */
2891#include <string.h>
c906108c 2892
783e057b
DJ
2893_ACEOF
2894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2895 $EGREP "memchr" >/dev/null 2>&1; then
2896 :
c906108c 2897else
783e057b 2898 ac_cv_header_stdc=no
c906108c 2899fi
783e057b 2900rm -f conftest*
c906108c
SS
2901
2902fi
2903
783e057b
DJ
2904if test $ac_cv_header_stdc = yes; then
2905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2906 cat >conftest.$ac_ext <<_ACEOF
2907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
2912#include <stdlib.h>
bec39cab 2913
783e057b
DJ
2914_ACEOF
2915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 $EGREP "free" >/dev/null 2>&1; then
2917 :
bec39cab 2918else
783e057b 2919 ac_cv_header_stdc=no
bec39cab 2920fi
783e057b 2921rm -f conftest*
bec39cab
AC
2922
2923fi
bec39cab 2924
783e057b
DJ
2925if test $ac_cv_header_stdc = yes; then
2926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2927 if test "$cross_compiling" = yes; then
2928 :
bec39cab 2929else
783e057b
DJ
2930 cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h. */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h. */
2936#include <ctype.h>
2937#if ((' ' & 0x0FF) == 0x020)
2938# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2939# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2940#else
2941# define ISLOWER(c) \
2942 (('a' <= (c) && (c) <= 'i') \
2943 || ('j' <= (c) && (c) <= 'r') \
2944 || ('s' <= (c) && (c) <= 'z'))
2945# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2946#endif
2947
2948#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2949int
2950main ()
2951{
2952 int i;
2953 for (i = 0; i < 256; i++)
2954 if (XOR (islower (i), ISLOWER (i))
2955 || toupper (i) != TOUPPER (i))
2956 exit(2);
2957 exit (0);
2958}
2959_ACEOF
2960rm -f conftest$ac_exeext
2961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962 (eval $ac_link) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 :
2972else
2973 echo "$as_me: program exited with status $ac_status" >&5
2974echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977( exit $ac_status )
2978ac_cv_header_stdc=no
2979fi
2980rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981fi
2982fi
2983fi
2984echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2985echo "${ECHO_T}$ac_cv_header_stdc" >&6
2986if test $ac_cv_header_stdc = yes; then
2987
2988cat >>confdefs.h <<\_ACEOF
2989#define STDC_HEADERS 1
2990_ACEOF
2991
2992fi
2993
2994# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3005 inttypes.h stdint.h unistd.h
3006do
3007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3008echo "$as_me:$LINENO: checking for $ac_header" >&5
3009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3010if eval "test \"\${$as_ac_Header+set}\" = set"; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013 cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019$ac_includes_default
3020
3021#include <$ac_header>
3022_ACEOF
3023rm -f conftest.$ac_objext
3024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 eval "$as_ac_Header=yes"
3046else
3047 echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050eval "$as_ac_Header=no"
3051fi
3052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053fi
3054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056if test `eval echo '${'$as_ac_Header'}'` = yes; then
3057 cat >>confdefs.h <<_ACEOF
3058#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3059_ACEOF
3060
3061fi
3062
3063done
3064
3065
3066
3067 if test "${ac_cv_header_minix_config_h+set}" = set; then
3068 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3069echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3070if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072fi
3073echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3074echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3075else
3076 # Is the header compilable?
3077echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3078echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3079cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085$ac_includes_default
3086#include <minix/config.h>
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_header_compiler=yes
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115ac_header_compiler=no
3116fi
3117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3119echo "${ECHO_T}$ac_header_compiler" >&6
3120
3121# Is the header present?
3122echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3123echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3124cat >conftest.$ac_ext <<_ACEOF
3125/* confdefs.h. */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h. */
3130#include <minix/config.h>
3131_ACEOF
3132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143 else
3144 ac_cpp_err=
3145 fi
3146else
3147 ac_cpp_err=yes
3148fi
3149if test -z "$ac_cpp_err"; then
3150 ac_header_preproc=yes
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 ac_header_preproc=no
3156fi
3157rm -f conftest.err conftest.$ac_ext
3158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3159echo "${ECHO_T}$ac_header_preproc" >&6
3160
3161# So? What about this header?
3162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3163 yes:no: )
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3165echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3167echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3168 ac_header_preproc=yes
3169 ;;
3170 no:yes:* )
3171 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3172echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3173 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3174echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3175 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3176echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3177 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3178echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3179 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3180echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3181 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3182echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3183 (
3184 cat <<\_ASBOX
3185## ------------------------------------------ ##
3186## Report this to the AC_PACKAGE_NAME lists. ##
3187## ------------------------------------------ ##
3188_ASBOX
3189 ) |
3190 sed "s/^/$as_me: WARNING: /" >&2
3191 ;;
3192esac
3193echo "$as_me:$LINENO: checking for minix/config.h" >&5
3194echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3195if test "${ac_cv_header_minix_config_h+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197else
3198 ac_cv_header_minix_config_h=$ac_header_preproc
3199fi
3200echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3201echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3202
3203fi
3204if test $ac_cv_header_minix_config_h = yes; then
3205 MINIX=yes
3206else
3207 MINIX=
3208fi
3209
3210
3211 if test "$MINIX" = yes; then
3212
3213cat >>confdefs.h <<\_ACEOF
3214#define _POSIX_SOURCE 1
3215_ACEOF
3216
3217
3218cat >>confdefs.h <<\_ACEOF
3219#define _POSIX_1_SOURCE 2
3220_ACEOF
3221
3222
3223cat >>confdefs.h <<\_ACEOF
3224#define _MINIX 1
3225_ACEOF
3226
3227 fi
3228
3229
3230
3231 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3232echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3233if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236 cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h. */
3242
3243# define __EXTENSIONS__ 1
3244 $ac_includes_default
3245int
3246main ()
3247{
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_safe_to_define___extensions__=yes
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280ac_cv_safe_to_define___extensions__=no
3281fi
3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283fi
3284echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3285echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3286 test $ac_cv_safe_to_define___extensions__ = yes &&
3287 cat >>confdefs.h <<\_ACEOF
3288#define __EXTENSIONS__ 1
3289_ACEOF
3290
3291 cat >>confdefs.h <<\_ACEOF
3292#define _ALL_SOURCE 1
3293_ACEOF
3294
3295 cat >>confdefs.h <<\_ACEOF
3296#define _GNU_SOURCE 1
3297_ACEOF
3298
3299 cat >>confdefs.h <<\_ACEOF
3300#define _POSIX_PTHREAD_SEMANTICS 1
3301_ACEOF
3302
3303 cat >>confdefs.h <<\_ACEOF
3304#define _TANDEM_SOURCE 1
3305_ACEOF
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3317echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3318if test "${am_cv_prog_cc_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 am_cv_prog_cc_stdc=no
3322ac_save_CC="$CC"
3323# Don't try gcc -ansi; that turns off useful extensions and
3324# breaks some systems' header files.
3325# AIX -qlanglvl=ansi
3326# Ultrix and OSF/1 -std1
3327# HP-UX 10.20 and later -Ae
3328# HP-UX older versions -Aa -D_HPUX_SOURCE
3329# SVR4 -Xc -D__EXTENSIONS__
3330for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331do
3332 CC="$ac_save_CC $ac_arg"
3333 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h. */
3339#include <stdarg.h>
3340#include <stdio.h>
3341#include <sys/types.h>
3342#include <sys/stat.h>
3343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344struct buf { int x; };
3345FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346static char *e (p, i)
3347 char **p;
3348 int i;
3349{
3350 return p[i];
3351}
3352static char *f (char * (*g) (char **, int), char **p, ...)
3353{
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360}
3361int test (int i, double x);
3362struct s1 {int (*f) (int a);};
3363struct s2 {int (*f) (double a);};
3364int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365int argc;
3366char **argv;
3367
3368int
3369main ()
3370{
3371
3372return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3373
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378rm -f conftest.$ac_objext
3379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 am_cv_prog_cc_stdc="$ac_arg"; break
3401else
3402 echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405fi
3406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407done
3408CC="$ac_save_CC"
3409
3410fi
3411
3412if test -z "$am_cv_prog_cc_stdc"; then
3413 echo "$as_me:$LINENO: result: none needed" >&5
3414echo "${ECHO_T}none needed" >&6
3415else
3416 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3417echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3418fi
3419case "x$am_cv_prog_cc_stdc" in
3420 x|xno) ;;
3421 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3422esac
3423
3424
3425ac_aux_dir=
3426for ac_dir in .. $srcdir/..; do
3427 if test -f $ac_dir/install-sh; then
3428 ac_aux_dir=$ac_dir
3429 ac_install_sh="$ac_aux_dir/install-sh -c"
3430 break
3431 elif test -f $ac_dir/install.sh; then
3432 ac_aux_dir=$ac_dir
3433 ac_install_sh="$ac_aux_dir/install.sh -c"
3434 break
3435 elif test -f $ac_dir/shtool; then
3436 ac_aux_dir=$ac_dir
3437 ac_install_sh="$ac_aux_dir/shtool install -c"
3438 break
3439 fi
3440done
3441if test -z "$ac_aux_dir"; then
3442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3443echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3444 { (exit 1); exit 1; }; }
3445fi
3446ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3447ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3448ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3449
3450# Make sure we can run config.sub.
3451$ac_config_sub sun4 >/dev/null 2>&1 ||
3452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3453echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3454 { (exit 1); exit 1; }; }
3455
3456echo "$as_me:$LINENO: checking build system type" >&5
3457echo $ECHO_N "checking build system type... $ECHO_C" >&6
3458if test "${ac_cv_build+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461 ac_cv_build_alias=$build_alias
3462test -z "$ac_cv_build_alias" &&
3463 ac_cv_build_alias=`$ac_config_guess`
3464test -z "$ac_cv_build_alias" &&
3465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3466echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3467 { (exit 1); exit 1; }; }
3468ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3470echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3471 { (exit 1); exit 1; }; }
3472
3473fi
3474echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3475echo "${ECHO_T}$ac_cv_build" >&6
3476build=$ac_cv_build
3477build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3478build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3479build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3480
3481
3482echo "$as_me:$LINENO: checking host system type" >&5
3483echo $ECHO_N "checking host system type... $ECHO_C" >&6
3484if test "${ac_cv_host+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487 ac_cv_host_alias=$host_alias
3488test -z "$ac_cv_host_alias" &&
3489 ac_cv_host_alias=$ac_cv_build_alias
3490ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3492echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3493 { (exit 1); exit 1; }; }
3494
3495fi
3496echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3497echo "${ECHO_T}$ac_cv_host" >&6
3498host=$ac_cv_host
3499host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3500host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3501host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3502
3503
3504echo "$as_me:$LINENO: checking target system type" >&5
3505echo $ECHO_N "checking target system type... $ECHO_C" >&6
3506if test "${ac_cv_target+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508else
3509 ac_cv_target_alias=$target_alias
3510test "x$ac_cv_target_alias" = "x" &&
b4e70030
JB
3511 ac_cv_target_alias=$ac_cv_host_alias
3512ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3514echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
3515 { (exit 1); exit 1; }; }
3516
3517fi
783e057b
DJ
3518echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3519echo "${ECHO_T}$ac_cv_target" >&6
3520target=$ac_cv_target
3521target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3522target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3523target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3524
3525
3526# The aliases save the names the user supplied, while $host etc.
3527# will get canonicalized.
3528test -n "$target_alias" &&
3529 test "$program_prefix$program_suffix$program_transform_name" = \
3530 NONENONEs,x,x, &&
3531 program_prefix=${target_alias}-
3532
3533
3534CONFIG_OBS=
3535CONFIG_DEPS=
3536CONFIG_SRCS=
3537ENABLE_CFLAGS=
3538
3539CONFIG_ALL=
3540CONFIG_CLEAN=
3541CONFIG_INSTALL=
3542CONFIG_UNINSTALL=
3543
3544# If we haven't got the data from the intl directory,
3545# assume NLS is disabled.
3546USE_NLS=no
3547LIBINTL=
3548LIBINTL_DEP=
3549INCINTL=
3550XGETTEXT=
3551GMSGFMT=
3552POSUB=
3553
3554if test -f ../intl/config.intl; then
3555 . ../intl/config.intl
3556fi
3557echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3558echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3559if test x"$USE_NLS" != xyes; then
3560 echo "$as_me:$LINENO: result: no" >&5
3561echo "${ECHO_T}no" >&6
3562else
3563 echo "$as_me:$LINENO: result: yes" >&5
3564echo "${ECHO_T}yes" >&6
3565
3566cat >>confdefs.h <<\_ACEOF
3567#define ENABLE_NLS 1
3568_ACEOF
3569
3570
3571 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3572echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3573 # Look for .po and .gmo files in the source directory.
3574 CATALOGS=
3575 XLINGUAS=
3576 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3577 # If there aren't any .gmo files the shell will give us the
3578 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3579 # weeded out.
3580 case "$cat" in *\**)
3581 continue;;
3582 esac
3583 # The quadruple backslash is collapsed to a double backslash
3584 # by the backticks, then collapsed again by the double quotes,
3585 # leaving us with one backslash in the sed expression (right
3586 # before the dot that mustn't act as a wildcard).
3587 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3588 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3589 # The user is allowed to set LINGUAS to a list of languages to
3590 # install catalogs for. If it's empty that means "all of them."
3591 if test "x$LINGUAS" = x; then
3592 CATALOGS="$CATALOGS $cat"
3593 XLINGUAS="$XLINGUAS $lang"
3594 else
3595 case "$LINGUAS" in *$lang*)
3596 CATALOGS="$CATALOGS $cat"
3597 XLINGUAS="$XLINGUAS $lang"
3598 ;;
3599 esac
3600 fi
3601 done
3602 LINGUAS="$XLINGUAS"
3603 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3604echo "${ECHO_T}$LINGUAS" >&6
3605
3606
3607 DATADIRNAME=share
3608
3609 INSTOBJEXT=.mo
3610
3611 GENCAT=gencat
3612
3613 CATOBJEXT=.gmo
3614
3615fi
3616
3617localedir='${datadir}/locale'
3618
3619
3620if test x"$USE_NLS" = xyes; then
3621 CONFIG_ALL="$CONFIG_ALL all-po"
3622 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3623 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3624 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3625fi
3626
3627
3628 GNULIB_MEMMEM=0;
3629 GNULIB_MEMPCPY=0;
3630 GNULIB_MEMRCHR=0;
3631 GNULIB_STPCPY=0;
3632 GNULIB_STPNCPY=0;
3633 GNULIB_STRCHRNUL=0;
3634 GNULIB_STRDUP=0;
3635 GNULIB_STRNDUP=0;
3636 GNULIB_STRNLEN=0;
3637 GNULIB_STRPBRK=0;
3638 GNULIB_STRSEP=0;
3639 GNULIB_STRSTR=0;
3640 GNULIB_STRCASESTR=0;
3641 GNULIB_STRTOK_R=0;
3642 GNULIB_MBSLEN=0;
3643 GNULIB_MBSNLEN=0;
3644 GNULIB_MBSCHR=0;
3645 GNULIB_MBSRCHR=0;
3646 GNULIB_MBSSTR=0;
3647 GNULIB_MBSCASECMP=0;
3648 GNULIB_MBSNCASECMP=0;
3649 GNULIB_MBSPCASECMP=0;
3650 GNULIB_MBSCASESTR=0;
3651 GNULIB_MBSCSPN=0;
3652 GNULIB_MBSPBRK=0;
3653 GNULIB_MBSSPN=0;
3654 GNULIB_MBSSEP=0;
3655 GNULIB_MBSTOK_R=0;
3656 GNULIB_STRERROR=0;
3657 GNULIB_STRSIGNAL=0;
3658 HAVE_DECL_MEMMEM=1;
3659 HAVE_MEMPCPY=1;
3660 HAVE_DECL_MEMRCHR=1;
3661 HAVE_STPCPY=1;
3662 HAVE_STPNCPY=1;
3663 HAVE_STRCHRNUL=1;
3664 HAVE_DECL_STRDUP=1;
3665 HAVE_STRNDUP=1;
3666 HAVE_DECL_STRNDUP=1;
3667 HAVE_DECL_STRNLEN=1;
3668 HAVE_STRPBRK=1;
3669 HAVE_STRSEP=1;
3670 HAVE_STRCASESTR=1;
3671 HAVE_DECL_STRTOK_R=1;
3672 HAVE_DECL_STRERROR=1;
3673 HAVE_DECL_STRSIGNAL=1;
3674 REPLACE_STRERROR=0;
3675 REPLACE_STRSIGNAL=0;
3676 REPLACE_MEMMEM=0;
3677 REPLACE_STRCASESTR=0;
3678 REPLACE_STRSTR=0;
3679
3680
3681 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3682echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3683if test "${ac_cv_have_decl_memmem+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686 cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h. */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h. */
3692$ac_includes_default
3693int
3694main ()
3695{
3696#ifndef memmem
3697 char *p = (char *) memmem;
3698#endif
3699
3700 ;
3701 return 0;
3702}
3703_ACEOF
3704rm -f conftest.$ac_objext
3705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>conftest.er1
3707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -z "$ac_c_werror_flag"
3714 || test ! -s conftest.err'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; } &&
3720 { ac_try='test -s conftest.$ac_objext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_cv_have_decl_memmem=yes
3727else
3728 echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731ac_cv_have_decl_memmem=no
3732fi
3733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734fi
3735echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3736echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3737if test $ac_cv_have_decl_memmem = yes; then
3738
3739cat >>confdefs.h <<_ACEOF
3740#define HAVE_DECL_MEMMEM 1
3741_ACEOF
3742
3743
3744else
3745 cat >>confdefs.h <<_ACEOF
3746#define HAVE_DECL_MEMMEM 0
3747_ACEOF
3748
3749
3750fi
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766for ac_func in memmem
3767do
3768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3769echo "$as_me:$LINENO: checking for $ac_func" >&5
3770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3771if eval "test \"\${$as_ac_var+set}\" = set"; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
3774 cat >conftest.$ac_ext <<_ACEOF
3775/* confdefs.h. */
3776_ACEOF
3777cat confdefs.h >>conftest.$ac_ext
3778cat >>conftest.$ac_ext <<_ACEOF
3779/* end confdefs.h. */
3780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3782#define $ac_func innocuous_$ac_func
3783
3784/* System header to define __stub macros and hopefully few prototypes,
3785 which can conflict with char $ac_func (); below.
3786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 <limits.h> exists even on freestanding compilers. */
3788
3789#ifdef __STDC__
3790# include <limits.h>
3791#else
3792# include <assert.h>
3793#endif
3794
3795#undef $ac_func
3796
3797/* Override any gcc2 internal prototype to avoid an error. */
3798#ifdef __cplusplus
3799extern "C"
3800{
3801#endif
3802/* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3804char $ac_func ();
3805/* The GNU C library defines this for functions which it implements
3806 to always fail with ENOSYS. Some functions are actually named
3807 something starting with __ and the normal name is an alias. */
3808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3809choke me
3810#else
3811char (*f) () = $ac_func;
3812#endif
3813#ifdef __cplusplus
3814}
3815#endif
3816
3817int
3818main ()
3819{
3820return f != $ac_func;
3821 ;
3822 return 0;
3823}
3824_ACEOF
3825rm -f conftest.$ac_objext conftest$ac_exeext
3826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3827 (eval $ac_link) 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_c_werror_flag"
3835 || test ! -s conftest.err'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest$ac_exeext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 eval "$as_ac_var=yes"
3848else
3849 echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852eval "$as_ac_var=no"
3853fi
3854rm -f conftest.err conftest.$ac_objext \
3855 conftest$ac_exeext conftest.$ac_ext
3856fi
3857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3858echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3859if test `eval echo '${'$as_ac_var'}'` = yes; then
3860 cat >>confdefs.h <<_ACEOF
3861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3862_ACEOF
3863
3864else
3865
3866 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3867
3868fi
3869done
3870
3871
3872
3873 :
3874
3875
3876
3877
3878
3879 if test $ac_cv_have_decl_memmem = no; then
3880 HAVE_DECL_MEMMEM=0
3881 fi
3882 :
3883
3884
3885 echo "$as_me:$LINENO: checking for long long int" >&5
3886echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3887if test "${ac_cv_type_long_long_int+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890 cat >conftest.$ac_ext <<_ACEOF
3891
3892 /* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
3897/* For now, do not test the preprocessor; as of 2007 there are too many
3898 implementations with broken preprocessors. Perhaps this can
3899 be revisited in 2012. In the meantime, code should not expect
3900 #if to work with literals wider than 32 bits. */
3901 /* Test literals. */
3902 long long int ll = 9223372036854775807ll;
3903 long long int nll = -9223372036854775807LL;
3904 unsigned long long int ull = 18446744073709551615ULL;
3905 /* Test constant expressions. */
3906 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3907 ? 1 : -1)];
3908 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3909 ? 1 : -1)];
3910 int i = 63;
3911int
3912main ()
3913{
3914/* Test availability of runtime routines for shift and division. */
3915 long long int llmax = 9223372036854775807ll;
3916 unsigned long long int ullmax = 18446744073709551615ull;
3917 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3918 | (llmax / ll) | (llmax % ll)
3919 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3920 | (ullmax / ull) | (ullmax % ull));
3921 ;
3922 return 0;
3923}
3924
3925_ACEOF
3926rm -f conftest.$ac_objext conftest$ac_exeext
3927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -z "$ac_c_werror_flag"
3936 || test ! -s conftest.err'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; } &&
3942 { ac_try='test -s conftest$ac_exeext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 if test "$cross_compiling" = yes; then
3949 ac_cv_type_long_long_int=yes
3950else
3951 cat >conftest.$ac_ext <<_ACEOF
3952/* confdefs.h. */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
3956/* end confdefs.h. */
3957#include <limits.h>
3958 #ifndef LLONG_MAX
3959 # define HALF \
3960 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3961 # define LLONG_MAX (HALF - 1 + HALF)
3962 #endif
3963int
3964main ()
3965{
3966long long int n = 1;
3967 int i;
3968 for (i = 0; ; i++)
3969 {
3970 long long int m = n << i;
3971 if (m >> i != n)
3972 return 1;
3973 if (LLONG_MAX / 2 < m)
3974 break;
3975 }
3976 return 0;
3977 ;
3978 return 0;
3979}
3980_ACEOF
3981rm -f conftest$ac_exeext
3982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983 (eval $ac_link) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_type_long_long_int=yes
3993else
3994 echo "$as_me: program exited with status $ac_status" >&5
3995echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998( exit $ac_status )
3999ac_cv_type_long_long_int=no
4000fi
4001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4002fi
4003else
4004 echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007ac_cv_type_long_long_int=no
4008fi
4009rm -f conftest.err conftest.$ac_objext \
4010 conftest$ac_exeext conftest.$ac_ext
4011fi
4012echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4013echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4014 if test $ac_cv_type_long_long_int = yes; then
4015
4016cat >>confdefs.h <<\_ACEOF
4017#define HAVE_LONG_LONG_INT 1
4018_ACEOF
4019
4020 fi
4021
4022
4023 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4024echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4025if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028 cat >conftest.$ac_ext <<_ACEOF
4029
4030 /* confdefs.h. */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h. */
4035/* For now, do not test the preprocessor; as of 2007 there are too many
4036 implementations with broken preprocessors. Perhaps this can
4037 be revisited in 2012. In the meantime, code should not expect
4038 #if to work with literals wider than 32 bits. */
4039 /* Test literals. */
4040 long long int ll = 9223372036854775807ll;
4041 long long int nll = -9223372036854775807LL;
4042 unsigned long long int ull = 18446744073709551615ULL;
4043 /* Test constant expressions. */
4044 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4045 ? 1 : -1)];
4046 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4047 ? 1 : -1)];
4048 int i = 63;
4049int
4050main ()
4051{
4052/* Test availability of runtime routines for shift and division. */
4053 long long int llmax = 9223372036854775807ll;
4054 unsigned long long int ullmax = 18446744073709551615ull;
4055 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4056 | (llmax / ll) | (llmax % ll)
4057 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4058 | (ullmax / ull) | (ullmax % ull));
4059 ;
4060 return 0;
4061}
4062
4063_ACEOF
4064rm -f conftest.$ac_objext conftest$ac_exeext
4065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4066 (eval $ac_link) 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest$ac_exeext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_type_unsigned_long_long_int=yes
4087else
4088 echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091ac_cv_type_unsigned_long_long_int=no
4092fi
4093rm -f conftest.err conftest.$ac_objext \
4094 conftest$ac_exeext conftest.$ac_ext
4095fi
4096echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4097echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4098 if test $ac_cv_type_unsigned_long_long_int = yes; then
4099
4100cat >>confdefs.h <<\_ACEOF
4101#define HAVE_UNSIGNED_LONG_LONG_INT 1
4102_ACEOF
4103
4104 fi
4105
4106
4107
4108 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4109echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4110if test "${gl_cv_have_include_next+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113 rm -rf conftestd1 conftestd2
4114 mkdir conftestd1 conftestd2
4115 cat <<EOF > conftestd1/conftest.h
4116#define DEFINED_IN_CONFTESTD1
4117#include_next <conftest.h>
4118#ifdef DEFINED_IN_CONFTESTD2
4119int foo;
4120#else
4121#error "include_next doesn't work"
4122#endif
4123EOF
4124 cat <<EOF > conftestd2/conftest.h
4125#ifndef DEFINED_IN_CONFTESTD1
4126#error "include_next test doesn't work"
4127#endif
4128#define DEFINED_IN_CONFTESTD2
4129EOF
4130 save_CPPFLAGS="$CPPFLAGS"
4131 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4132 cat >conftest.$ac_ext <<_ACEOF
4133#include <conftest.h>
4134_ACEOF
4135rm -f conftest.$ac_objext
4136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4137 (eval $ac_compile) 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag"
4145 || test ! -s conftest.err'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 gl_cv_have_include_next=yes
4158else
4159 echo "$as_me: failed program was:" >&5
4160sed 's/^/| /' conftest.$ac_ext >&5
4161
4162gl_cv_have_include_next=no
4163fi
4164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4165 CPPFLAGS="$save_CPPFLAGS"
4166 rm -rf conftestd1 conftestd2
4167
4168fi
4169echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4170echo "${ECHO_T}$gl_cv_have_include_next" >&6
4171 if test $gl_cv_have_include_next = yes; then
4172
4173
4174cat >>confdefs.h <<\_ACEOF
4175#define HAVE_INCLUDE_NEXT 1
4176_ACEOF
4177
4178
4179 INCLUDE_NEXT=include_next
4180 else
4181 INCLUDE_NEXT=include
4182 fi
4183
4184
4185
4186
4187
4188
4189
4190for ac_header in $gl_header_list
4191do
4192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4193if eval "test \"\${$as_ac_Header+set}\" = set"; then
4194 echo "$as_me:$LINENO: checking for $ac_header" >&5
4195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4196if eval "test \"\${$as_ac_Header+set}\" = set"; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198fi
4199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4201else
4202 # Is the header compilable?
4203echo "$as_me:$LINENO: checking $ac_header usability" >&5
4204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4205cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
4211$ac_includes_default
4212#include <$ac_header>
4213_ACEOF
4214rm -f conftest.$ac_objext
4215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try='test -z "$ac_c_werror_flag"
4224 || test ! -s conftest.err'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 ac_header_compiler=yes
4237else
4238 echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241ac_header_compiler=no
4242fi
4243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4245echo "${ECHO_T}$ac_header_compiler" >&6
4246
4247# Is the header present?
4248echo "$as_me:$LINENO: checking $ac_header presence" >&5
4249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4250cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h. */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h. */
4256#include <$ac_header>
4257_ACEOF
4258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4260 ac_status=$?
4261 grep -v '^ *+' conftest.er1 >conftest.err
4262 rm -f conftest.er1
4263 cat conftest.err >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } >/dev/null; then
4266 if test -s conftest.err; then
4267 ac_cpp_err=$ac_c_preproc_warn_flag
4268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4269 else
4270 ac_cpp_err=
4271 fi
4272else
4273 ac_cpp_err=yes
4274fi
4275if test -z "$ac_cpp_err"; then
4276 ac_header_preproc=yes
4277else
4278 echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 ac_header_preproc=no
4282fi
4283rm -f conftest.err conftest.$ac_ext
4284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4285echo "${ECHO_T}$ac_header_preproc" >&6
4286
4287# So? What about this header?
4288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4289 yes:no: )
4290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4294 ac_header_preproc=yes
4295 ;;
4296 no:yes:* )
4297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4309 (
4310 cat <<\_ASBOX
4311## ------------------------------------------ ##
4312## Report this to the AC_PACKAGE_NAME lists. ##
4313## ------------------------------------------ ##
4314_ASBOX
4315 ) |
4316 sed "s/^/$as_me: WARNING: /" >&2
4317 ;;
4318esac
4319echo "$as_me:$LINENO: checking for $ac_header" >&5
4320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4321if eval "test \"\${$as_ac_Header+set}\" = set"; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324 eval "$as_ac_Header=\$ac_header_preproc"
4325fi
4326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4328
4329fi
4330if test `eval echo '${'$as_ac_Header'}'` = yes; then
4331 cat >>confdefs.h <<_ACEOF
4332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4333_ACEOF
4334
4335fi
4336
4337done
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4351echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4352if test "${ac_cv_c_restrict+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354else
4355 ac_cv_c_restrict=no
4356 # The order here caters to the fact that C++ does not require restrict.
4357 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4358 cat >conftest.$ac_ext <<_ACEOF
4359/* confdefs.h. */
4360_ACEOF
4361cat confdefs.h >>conftest.$ac_ext
4362cat >>conftest.$ac_ext <<_ACEOF
4363/* end confdefs.h. */
4364typedef int * int_ptr;
4365 int foo (int_ptr $ac_kw ip) {
4366 return ip[0];
4367 }
4368int
4369main ()
4370{
4371int s[1];
4372 int * $ac_kw t = s;
4373 t[0] = 0;
4374 return foo(t)
4375 ;
4376 return 0;
4377}
4378_ACEOF
4379rm -f conftest.$ac_objext
4380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -z "$ac_c_werror_flag"
4389 || test ! -s conftest.err'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; } &&
4395 { ac_try='test -s conftest.$ac_objext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 ac_cv_c_restrict=$ac_kw
4402else
4403 echo "$as_me: failed program was:" >&5
4404sed 's/^/| /' conftest.$ac_ext >&5
4405
4406fi
4407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4408 test "$ac_cv_c_restrict" != no && break
4409 done
4410
4411fi
4412echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4413echo "${ECHO_T}$ac_cv_c_restrict" >&6
4414
4415
4416 case $ac_cv_c_restrict in
4417 restrict) ;;
4418 no) cat >>confdefs.h <<\_ACEOF
4419#define restrict
4420_ACEOF
4421 ;;
4422 *) cat >>confdefs.h <<_ACEOF
4423#define restrict $ac_cv_c_restrict
4424_ACEOF
4425 ;;
4426 esac
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440 :
4441
4442
4443
4444
4445
4446
4447
4448 if test $gl_cv_have_include_next = yes; then
4449 gl_cv_next_string_h='<'string.h'>'
4450 else
4451 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4452echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4453if test "${gl_cv_next_string_h+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455else
4456
4457 if test $ac_cv_header_string_h = yes; then
4458 cat >conftest.$ac_ext <<_ACEOF
4459/* confdefs.h. */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
4463/* end confdefs.h. */
4464#include <string.h>
4465
4466_ACEOF
4467 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4468 sed -n '\#/string.h#{
4469 s#.*"\(.*/string.h\)".*#\1#
4470 s#^/[^/]#//&#
4471 p
4472 q
4473 }'`'"'
4474 else
4475 gl_cv_next_string_h='<'string.h'>'
4476 fi
4477
4478fi
4479echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4480echo "${ECHO_T}$gl_cv_next_string_h" >&6
4481 fi
4482 NEXT_STRING_H=$gl_cv_next_string_h
4483
4484
4485
4486
4487
4488 GNULIB_WCWIDTH=0;
4489 HAVE_DECL_WCWIDTH=1;
4490 REPLACE_WCWIDTH=0;
4491 WCHAR_H=
4492
4493
4494
4495
4496
4497if false; then
4498 GL_COND_LIBTOOL_TRUE=
4499 GL_COND_LIBTOOL_FALSE='#'
4500else
4501 GL_COND_LIBTOOL_TRUE='#'
4502 GL_COND_LIBTOOL_FALSE=
4503fi
4504
4505 gl_cond_libtool=false
4506 gl_libdeps=
4507 gl_ltlibdeps=
4508
4509
4510
4511 gl_source_base='gnulib'
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521for ac_func in memchr
4522do
4523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4524echo "$as_me:$LINENO: checking for $ac_func" >&5
4525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4526if eval "test \"\${$as_ac_var+set}\" = set"; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528else
4529 cat >conftest.$ac_ext <<_ACEOF
4530/* confdefs.h. */
4531_ACEOF
4532cat confdefs.h >>conftest.$ac_ext
4533cat >>conftest.$ac_ext <<_ACEOF
4534/* end confdefs.h. */
4535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4537#define $ac_func innocuous_$ac_func
4538
4539/* System header to define __stub macros and hopefully few prototypes,
4540 which can conflict with char $ac_func (); below.
4541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542 <limits.h> exists even on freestanding compilers. */
4543
4544#ifdef __STDC__
4545# include <limits.h>
4546#else
4547# include <assert.h>
4548#endif
4549
4550#undef $ac_func
4551
4552/* Override any gcc2 internal prototype to avoid an error. */
4553#ifdef __cplusplus
4554extern "C"
4555{
4556#endif
4557/* We use char because int might match the return type of a gcc2
4558 builtin and then its argument prototype would still apply. */
4559char $ac_func ();
4560/* The GNU C library defines this for functions which it implements
4561 to always fail with ENOSYS. Some functions are actually named
4562 something starting with __ and the normal name is an alias. */
4563#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4564choke me
4565#else
4566char (*f) () = $ac_func;
4567#endif
4568#ifdef __cplusplus
4569}
4570#endif
4571
4572int
4573main ()
4574{
4575return f != $ac_func;
4576 ;
4577 return 0;
4578}
4579_ACEOF
4580rm -f conftest.$ac_objext conftest$ac_exeext
4581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582 (eval $ac_link) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest$ac_exeext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 eval "$as_ac_var=yes"
4603else
4604 echo "$as_me: failed program was:" >&5
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
4607eval "$as_ac_var=no"
4608fi
4609rm -f conftest.err conftest.$ac_objext \
4610 conftest$ac_exeext conftest.$ac_ext
4611fi
4612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4614if test `eval echo '${'$as_ac_var'}'` = yes; then
4615 cat >>confdefs.h <<_ACEOF
4616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4617_ACEOF
4618
4619else
4620
4621 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4622
4623fi
4624done
4625
4626
4627 if test $ac_cv_func_memchr = no; then
4628
4629
4630for ac_header in bp-sym.h
4631do
4632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4633if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo "$as_me:$LINENO: checking for $ac_header" >&5
4635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4636if eval "test \"\${$as_ac_Header+set}\" = set"; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638fi
4639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4641else
4642 # Is the header compilable?
4643echo "$as_me:$LINENO: checking $ac_header usability" >&5
4644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4645cat >conftest.$ac_ext <<_ACEOF
4646/* confdefs.h. */
4647_ACEOF
4648cat confdefs.h >>conftest.$ac_ext
4649cat >>conftest.$ac_ext <<_ACEOF
4650/* end confdefs.h. */
4651$ac_includes_default
4652#include <$ac_header>
4653_ACEOF
4654rm -f conftest.$ac_objext
4655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>conftest.er1
4657 ac_status=$?
4658 grep -v '^ *+' conftest.er1 >conftest.err
4659 rm -f conftest.er1
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_c_werror_flag"
4664 || test ! -s conftest.err'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try='test -s conftest.$ac_objext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_header_compiler=yes
4677else
4678 echo "$as_me: failed program was:" >&5
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681ac_header_compiler=no
4682fi
4683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4685echo "${ECHO_T}$ac_header_compiler" >&6
4686
4687# Is the header present?
4688echo "$as_me:$LINENO: checking $ac_header presence" >&5
4689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4690cat >conftest.$ac_ext <<_ACEOF
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
4696#include <$ac_header>
4697_ACEOF
4698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null; then
4706 if test -s conftest.err; then
4707 ac_cpp_err=$ac_c_preproc_warn_flag
4708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4709 else
4710 ac_cpp_err=
4711 fi
4712else
4713 ac_cpp_err=yes
4714fi
4715if test -z "$ac_cpp_err"; then
4716 ac_header_preproc=yes
4717else
4718 echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721 ac_header_preproc=no
4722fi
4723rm -f conftest.err conftest.$ac_ext
4724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725echo "${ECHO_T}$ac_header_preproc" >&6
4726
4727# So? What about this header?
4728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4729 yes:no: )
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4734 ac_header_preproc=yes
4735 ;;
4736 no:yes:* )
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4749 (
4750 cat <<\_ASBOX
4751## ------------------------------------------ ##
4752## Report this to the AC_PACKAGE_NAME lists. ##
4753## ------------------------------------------ ##
4754_ASBOX
4755 ) |
4756 sed "s/^/$as_me: WARNING: /" >&2
4757 ;;
4758esac
4759echo "$as_me:$LINENO: checking for $ac_header" >&5
4760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763else
4764 eval "$as_ac_Header=\$ac_header_preproc"
4765fi
4766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768
4769fi
4770if test `eval echo '${'$as_ac_Header'}'` = yes; then
4771 cat >>confdefs.h <<_ACEOF
4772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4773_ACEOF
4774
4775fi
4776
4777done
4778
4779
4780 fi
4781
4782
4783 echo "$as_me:$LINENO: checking for working memcmp" >&5
4784echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4785if test "${ac_cv_func_memcmp_working+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 if test "$cross_compiling" = yes; then
4789 ac_cv_func_memcmp_working=no
4790else
4791 cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h. */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h. */
4797$ac_includes_default
4798int
4799main ()
4800{
4801
4802 /* Some versions of memcmp are not 8-bit clean. */
4803 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4804 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4805 exit (1);
4806
4807 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4808 or more and with at least one buffer not starting on a 4-byte boundary.
4809 William Lewis provided this test program. */
4810 {
4811 char foo[21];
4812 char bar[21];
4813 int i;
4814 for (i = 0; i < 4; i++)
4815 {
4816 char *a = foo + i;
4817 char *b = bar + i;
4818 strcpy (a, "--------01111111");
4819 strcpy (b, "--------10000000");
4820 if (memcmp (a, b, 16) >= 0)
4821 exit (1);
4822 }
4823 exit (0);
4824 }
4825
4826 ;
4827 return 0;
4828}
4829_ACEOF
4830rm -f conftest$ac_exeext
4831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4832 (eval $ac_link) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_cv_func_memcmp_working=yes
4842else
4843 echo "$as_me: program exited with status $ac_status" >&5
4844echo "$as_me: failed program was:" >&5
4845sed 's/^/| /' conftest.$ac_ext >&5
4846
4847( exit $ac_status )
4848ac_cv_func_memcmp_working=no
4849fi
4850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4851fi
4852fi
4853echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4854echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4855test $ac_cv_func_memcmp_working = no &&
4856
4857
4858
4859
4860
4861
4862 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4863
4864
4865 if test $ac_cv_func_memcmp_working = no; then
4866
4867cat >>confdefs.h <<\_ACEOF
4868#define memcmp rpl_memcmp
4869_ACEOF
4870
4871 :
4872 fi
4873
4874
4875
4876 if test $ac_cv_have_decl_memmem = yes; then
4877 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4878echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4879if test "${gl_cv_func_memmem_works+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881else
4882 if test "$cross_compiling" = yes; then
4883 gl_cv_func_memmem_works="guessing no"
4884else
4885 cat >conftest.$ac_ext <<_ACEOF
4886/* confdefs.h. */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h. */
4891
4892#include <string.h> /* for memmem */
4893#include <stdlib.h> /* for malloc */
4894#include <unistd.h> /* for alarm */
4895
4896int
4897main ()
4898{
4899size_t m = 1000000;
4900 char *haystack = (char *) malloc (2 * m + 1);
4901 char *needle = (char *) malloc (m + 1);
4902 void *result = 0;
4903 /* Failure to compile this test due to missing alarm is okay,
4904 since all such platforms (mingw) also lack memmem. */
4905 alarm (5);
4906 /* Check for quadratic performance. */
4907 if (haystack && needle)
4908 {
4909 memset (haystack, 'A', 2 * m);
4910 haystack[2 * m] = 'B';
4911 memset (needle, 'A', m);
4912 needle[m] = 'B';
4913 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4914 }
4915 /* Check for empty needle behavior. */
4916 return !result || !memmem ("a", 1, 0, 0);
4917 ;
4918 return 0;
4919}
4920_ACEOF
4921rm -f conftest$ac_exeext
4922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4923 (eval $ac_link) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 (eval $ac_try) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 gl_cv_func_memmem_works=yes
4933else
4934 echo "$as_me: program exited with status $ac_status" >&5
4935echo "$as_me: failed program was:" >&5
4936sed 's/^/| /' conftest.$ac_ext >&5
4937
4938( exit $ac_status )
4939gl_cv_func_memmem_works=no
4940fi
4941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4942fi
4943fi
4944echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4945echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4946 if test "$gl_cv_func_memmem_works" != yes; then
4947 REPLACE_MEMMEM=1
4948
4949
4950
4951
4952
4953
4954
4955 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4956
4957 fi
4958 fi
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972for ac_func in memmem
4973do
4974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4975echo "$as_me:$LINENO: checking for $ac_func" >&5
4976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4977if eval "test \"\${$as_ac_var+set}\" = set"; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979else
4980 cat >conftest.$ac_ext <<_ACEOF
4981/* confdefs.h. */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h. */
4986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4988#define $ac_func innocuous_$ac_func
4989
4990/* System header to define __stub macros and hopefully few prototypes,
4991 which can conflict with char $ac_func (); below.
4992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 <limits.h> exists even on freestanding compilers. */
4994
4995#ifdef __STDC__
4996# include <limits.h>
4997#else
4998# include <assert.h>
4999#endif
5000
5001#undef $ac_func
5002
5003/* Override any gcc2 internal prototype to avoid an error. */
5004#ifdef __cplusplus
5005extern "C"
5006{
5007#endif
5008/* We use char because int might match the return type of a gcc2
5009 builtin and then its argument prototype would still apply. */
5010char $ac_func ();
5011/* The GNU C library defines this for functions which it implements
5012 to always fail with ENOSYS. Some functions are actually named
5013 something starting with __ and the normal name is an alias. */
5014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5015choke me
5016#else
5017char (*f) () = $ac_func;
5018#endif
5019#ifdef __cplusplus
5020}
5021#endif
5022
5023int
5024main ()
5025{
5026return f != $ac_func;
5027 ;
5028 return 0;
5029}
5030_ACEOF
5031rm -f conftest.$ac_objext conftest$ac_exeext
5032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag"
5041 || test ! -s conftest.err'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 (eval $ac_try) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try='test -s conftest$ac_exeext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 (eval $ac_try) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 eval "$as_ac_var=yes"
5054else
5055 echo "$as_me: failed program was:" >&5
5056sed 's/^/| /' conftest.$ac_ext >&5
5057
5058eval "$as_ac_var=no"
5059fi
5060rm -f conftest.err conftest.$ac_objext \
5061 conftest$ac_exeext conftest.$ac_ext
5062fi
5063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5064echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5065if test `eval echo '${'$as_ac_var'}'` = yes; then
5066 cat >>confdefs.h <<_ACEOF
5067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5068_ACEOF
5069
5070else
5071
5072 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5073
5074fi
5075done
5076
5077
5078
5079 :
5080
5081
5082
5083
5084
5085 if test $ac_cv_have_decl_memmem = no; then
5086 HAVE_DECL_MEMMEM=0
5087 fi
5088 :
5089
5090
5091
5092 GNULIB_MEMMEM=1
5093
5094
5095
5096
5097 if test $ac_cv_type_long_long_int = yes; then
5098 HAVE_LONG_LONG_INT=1
5099 else
5100 HAVE_LONG_LONG_INT=0
5101 fi
5102
5103
5104 if test $ac_cv_type_unsigned_long_long_int = yes; then
5105 HAVE_UNSIGNED_LONG_LONG_INT=1
5106 else
5107 HAVE_UNSIGNED_LONG_LONG_INT=0
5108 fi
5109
5110
5111 if test $ac_cv_header_inttypes_h = yes; then
5112 HAVE_INTTYPES_H=1
5113 else
5114 HAVE_INTTYPES_H=0
5115 fi
5116
5117
5118 if test $ac_cv_header_sys_types_h = yes; then
5119 HAVE_SYS_TYPES_H=1
5120 else
5121 HAVE_SYS_TYPES_H=0
5122 fi
5123
5124
5125
5126
5127
5128 :
5129
5130
5131
5132
5133
5134
5135
5136 if test $gl_cv_have_include_next = yes; then
5137 gl_cv_next_stdint_h='<'stdint.h'>'
5138 else
5139 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5140echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5141if test "${gl_cv_next_stdint_h+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143else
5144
5145 if test $ac_cv_header_stdint_h = yes; then
5146 cat >conftest.$ac_ext <<_ACEOF
5147/* confdefs.h. */
5148_ACEOF
5149cat confdefs.h >>conftest.$ac_ext
5150cat >>conftest.$ac_ext <<_ACEOF
5151/* end confdefs.h. */
5152#include <stdint.h>
5153
5154_ACEOF
5155 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5156 sed -n '\#/stdint.h#{
5157 s#.*"\(.*/stdint.h\)".*#\1#
5158 s#^/[^/]#//&#
5159 p
5160 q
5161 }'`'"'
5162 else
5163 gl_cv_next_stdint_h='<'stdint.h'>'
5164 fi
5165
5166fi
5167echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5168echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5169 fi
5170 NEXT_STDINT_H=$gl_cv_next_stdint_h
5171
5172
5173
5174 if test $ac_cv_header_stdint_h = yes; then
5175 HAVE_STDINT_H=1
5176 else
5177 HAVE_STDINT_H=0
5178 fi
5179
5180
5181 if test $ac_cv_header_stdint_h = yes; then
5182 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5183echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5184if test "${gl_cv_header_working_stdint_h+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186else
5187 gl_cv_header_working_stdint_h=no
5188 cat >conftest.$ac_ext <<_ACEOF
5189
5190 /* confdefs.h. */
5191_ACEOF
5192cat confdefs.h >>conftest.$ac_ext
5193cat >>conftest.$ac_ext <<_ACEOF
5194/* end confdefs.h. */
5195
5196#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5197#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5198#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5199#include <stdint.h>
5200/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5201#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5202#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5203#endif
5204
5205
5206 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5207 included before <wchar.h>. */
5208 #include <stddef.h>
5209 #include <signal.h>
5210 #if HAVE_WCHAR_H
5211 # include <stdio.h>
5212 # include <time.h>
5213 # include <wchar.h>
5214 #endif
5215
5216
5217#ifdef INT8_MAX
5218int8_t a1 = INT8_MAX;
5219int8_t a1min = INT8_MIN;
5220#endif
5221#ifdef INT16_MAX
5222int16_t a2 = INT16_MAX;
5223int16_t a2min = INT16_MIN;
5224#endif
5225#ifdef INT32_MAX
5226int32_t a3 = INT32_MAX;
5227int32_t a3min = INT32_MIN;
5228#endif
5229#ifdef INT64_MAX
5230int64_t a4 = INT64_MAX;
5231int64_t a4min = INT64_MIN;
5232#endif
5233#ifdef UINT8_MAX
5234uint8_t b1 = UINT8_MAX;
5235#else
5236typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5237#endif
5238#ifdef UINT16_MAX
5239uint16_t b2 = UINT16_MAX;
5240#endif
5241#ifdef UINT32_MAX
5242uint32_t b3 = UINT32_MAX;
5243#endif
5244#ifdef UINT64_MAX
5245uint64_t b4 = UINT64_MAX;
5246#endif
5247int_least8_t c1 = INT8_C (0x7f);
5248int_least8_t c1max = INT_LEAST8_MAX;
5249int_least8_t c1min = INT_LEAST8_MIN;
5250int_least16_t c2 = INT16_C (0x7fff);
5251int_least16_t c2max = INT_LEAST16_MAX;
5252int_least16_t c2min = INT_LEAST16_MIN;
5253int_least32_t c3 = INT32_C (0x7fffffff);
5254int_least32_t c3max = INT_LEAST32_MAX;
5255int_least32_t c3min = INT_LEAST32_MIN;
5256int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5257int_least64_t c4max = INT_LEAST64_MAX;
5258int_least64_t c4min = INT_LEAST64_MIN;
5259uint_least8_t d1 = UINT8_C (0xff);
5260uint_least8_t d1max = UINT_LEAST8_MAX;
5261uint_least16_t d2 = UINT16_C (0xffff);
5262uint_least16_t d2max = UINT_LEAST16_MAX;
5263uint_least32_t d3 = UINT32_C (0xffffffff);
5264uint_least32_t d3max = UINT_LEAST32_MAX;
5265uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5266uint_least64_t d4max = UINT_LEAST64_MAX;
5267int_fast8_t e1 = INT_FAST8_MAX;
5268int_fast8_t e1min = INT_FAST8_MIN;
5269int_fast16_t e2 = INT_FAST16_MAX;
5270int_fast16_t e2min = INT_FAST16_MIN;
5271int_fast32_t e3 = INT_FAST32_MAX;
5272int_fast32_t e3min = INT_FAST32_MIN;
5273int_fast64_t e4 = INT_FAST64_MAX;
5274int_fast64_t e4min = INT_FAST64_MIN;
5275uint_fast8_t f1 = UINT_FAST8_MAX;
5276uint_fast16_t f2 = UINT_FAST16_MAX;
5277uint_fast32_t f3 = UINT_FAST32_MAX;
5278uint_fast64_t f4 = UINT_FAST64_MAX;
5279#ifdef INTPTR_MAX
5280intptr_t g = INTPTR_MAX;
5281intptr_t gmin = INTPTR_MIN;
5282#endif
5283#ifdef UINTPTR_MAX
5284uintptr_t h = UINTPTR_MAX;
5285#endif
5286intmax_t i = INTMAX_MAX;
5287uintmax_t j = UINTMAX_MAX;
5288
5289#include <limits.h> /* for CHAR_BIT */
5290#define TYPE_MINIMUM(t) \
5291 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5292#define TYPE_MAXIMUM(t) \
5293 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5294struct s {
5295 int check_PTRDIFF:
5296 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5297 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5298 ? 1 : -1;
5299 /* Detect bug in FreeBSD 6.0 / ia64. */
5300 int check_SIG_ATOMIC:
5301 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5302 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5303 ? 1 : -1;
5304 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5305 int check_WCHAR:
5306 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5307 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5308 ? 1 : -1;
5309 /* Detect bug in mingw. */
5310 int check_WINT:
5311 WINT_MIN == TYPE_MINIMUM (wint_t)
5312 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5313 ? 1 : -1;
5314
5315 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5316 int check_UINT8_C:
5317 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5318 int check_UINT16_C:
5319 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5320
5321 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5322#ifdef UINT8_MAX
5323 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5324#endif
5325#ifdef UINT16_MAX
5326 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5327#endif
5328#ifdef UINT32_MAX
5329 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5330#endif
5331#ifdef UINT64_MAX
5332 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5333#endif
5334 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5335 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5336 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5337 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5338 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5339 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5340 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5341 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5342 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5343 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5344 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5345};
5346
5347int
5348main ()
5349{
5350
5351 ;
5352 return 0;
5353}
5354_ACEOF
5355rm -f conftest.$ac_objext
5356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>conftest.er1
5358 ac_status=$?
5359 grep -v '^ *+' conftest.er1 >conftest.err
5360 rm -f conftest.er1
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -z "$ac_c_werror_flag"
5365 || test ! -s conftest.err'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; } &&
5371 { ac_try='test -s conftest.$ac_objext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 (eval $ac_try) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5377 gl_cv_header_working_stdint_h=yes
5378else
5379 echo "$as_me: failed program was:" >&5
5380sed 's/^/| /' conftest.$ac_ext >&5
5381
5382fi
5383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384fi
5385echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5386echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5387 fi
5388 if test "$gl_cv_header_working_stdint_h" = yes; then
5389 STDINT_H=
5390 else
5391
5392
5393for ac_header in sys/inttypes.h sys/bitypes.h
5394do
5395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5396if eval "test \"\${$as_ac_Header+set}\" = set"; then
5397 echo "$as_me:$LINENO: checking for $ac_header" >&5
5398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5399if eval "test \"\${$as_ac_Header+set}\" = set"; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401fi
5402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5404else
5405 # Is the header compilable?
5406echo "$as_me:$LINENO: checking $ac_header usability" >&5
5407echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5408cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h. */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h. */
5414$ac_includes_default
5415#include <$ac_header>
5416_ACEOF
5417rm -f conftest.$ac_objext
5418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 (eval $ac_compile) 2>conftest.er1
5420 ac_status=$?
5421 grep -v '^ *+' conftest.er1 >conftest.err
5422 rm -f conftest.er1
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -z "$ac_c_werror_flag"
5427 || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 (eval $ac_try) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_header_compiler=yes
5440else
5441 echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
5444ac_header_compiler=no
5445fi
5446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5448echo "${ECHO_T}$ac_header_compiler" >&6
5449
5450# Is the header present?
5451echo "$as_me:$LINENO: checking $ac_header presence" >&5
5452echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5453cat >conftest.$ac_ext <<_ACEOF
5454/* confdefs.h. */
5455_ACEOF
5456cat confdefs.h >>conftest.$ac_ext
5457cat >>conftest.$ac_ext <<_ACEOF
5458/* end confdefs.h. */
5459#include <$ac_header>
5460_ACEOF
5461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } >/dev/null; then
5469 if test -s conftest.err; then
5470 ac_cpp_err=$ac_c_preproc_warn_flag
5471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5472 else
5473 ac_cpp_err=
5474 fi
5475else
5476 ac_cpp_err=yes
5477fi
5478if test -z "$ac_cpp_err"; then
5479 ac_header_preproc=yes
5480else
5481 echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 ac_header_preproc=no
5485fi
5486rm -f conftest.err conftest.$ac_ext
5487echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5488echo "${ECHO_T}$ac_header_preproc" >&6
5489
5490# So? What about this header?
5491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5492 yes:no: )
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5494echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5496echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5497 ac_header_preproc=yes
5498 ;;
5499 no:yes:* )
5500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5503echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5505echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5507echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5511echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5512 (
5513 cat <<\_ASBOX
5514## ------------------------------------------ ##
5515## Report this to the AC_PACKAGE_NAME lists. ##
5516## ------------------------------------------ ##
5517_ASBOX
5518 ) |
5519 sed "s/^/$as_me: WARNING: /" >&2
5520 ;;
5521esac
5522echo "$as_me:$LINENO: checking for $ac_header" >&5
5523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5524if eval "test \"\${$as_ac_Header+set}\" = set"; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527 eval "$as_ac_Header=\$ac_header_preproc"
5528fi
5529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5531
5532fi
5533if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536_ACEOF
5537
5538fi
5539
5540done
5541
5542 if test $ac_cv_header_sys_inttypes_h = yes; then
5543 HAVE_SYS_INTTYPES_H=1
5544 else
5545 HAVE_SYS_INTTYPES_H=0
5546 fi
5547
5548 if test $ac_cv_header_sys_bitypes_h = yes; then
5549 HAVE_SYS_BITYPES_H=1
5550 else
5551 HAVE_SYS_BITYPES_H=0
5552 fi
5553
5554
5555
5556 :
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5572 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5573echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5574if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577 if test "$cross_compiling" = yes; then
5578 # Depending upon the size, compute the lo and hi bounds.
5579cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h. */
5585
5586 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5587 included before <wchar.h>. */
5588 #include <stddef.h>
5589 #include <signal.h>
5590 #if HAVE_WCHAR_H
5591 # include <stdio.h>
5592 # include <time.h>
5593 # include <wchar.h>
5594 #endif
5595
5596#include <limits.h>
5597int
5598main ()
5599{
5600static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5601test_array [0] = 0
5602
5603 ;
5604 return 0;
5605}
5606_ACEOF
5607rm -f conftest.$ac_objext
5608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -z "$ac_c_werror_flag"
5617 || test ! -s conftest.err'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 (eval $ac_try) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; } &&
5623 { ac_try='test -s conftest.$ac_objext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_lo=0 ac_mid=0
5630 while :; do
5631 cat >conftest.$ac_ext <<_ACEOF
5632/* confdefs.h. */
5633_ACEOF
5634cat confdefs.h >>conftest.$ac_ext
5635cat >>conftest.$ac_ext <<_ACEOF
5636/* end confdefs.h. */
5637
5638 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5639 included before <wchar.h>. */
5640 #include <stddef.h>
5641 #include <signal.h>
5642 #if HAVE_WCHAR_H
5643 # include <stdio.h>
5644 # include <time.h>
5645 # include <wchar.h>
5646 #endif
5647
5648#include <limits.h>
5649int
5650main ()
5651{
5652static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5653test_array [0] = 0
5654
5655 ;
5656 return 0;
5657}
5658_ACEOF
5659rm -f conftest.$ac_objext
5660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -z "$ac_c_werror_flag"
5669 || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 ac_hi=$ac_mid; break
5682else
5683 echo "$as_me: failed program was:" >&5
5684sed 's/^/| /' conftest.$ac_ext >&5
5685
5686ac_lo=`expr $ac_mid + 1`
5687 if test $ac_lo -le $ac_mid; then
5688 ac_lo= ac_hi=
5689 break
5690 fi
5691 ac_mid=`expr 2 '*' $ac_mid + 1`
5692fi
5693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694 done
5695else
5696 echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h. */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h. */
5705
5706 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5707 included before <wchar.h>. */
5708 #include <stddef.h>
5709 #include <signal.h>
5710 #if HAVE_WCHAR_H
5711 # include <stdio.h>
5712 # include <time.h>
5713 # include <wchar.h>
5714 #endif
5715
5716#include <limits.h>
5717int
5718main ()
5719{
5720static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5721test_array [0] = 0
5722
5723 ;
5724 return 0;
5725}
5726_ACEOF
5727rm -f conftest.$ac_objext
5728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 ac_hi=-1 ac_mid=-1
5750 while :; do
5751 cat >conftest.$ac_ext <<_ACEOF
5752/* confdefs.h. */
5753_ACEOF
5754cat confdefs.h >>conftest.$ac_ext
5755cat >>conftest.$ac_ext <<_ACEOF
5756/* end confdefs.h. */
5757
5758 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5759 included before <wchar.h>. */
5760 #include <stddef.h>
5761 #include <signal.h>
5762 #if HAVE_WCHAR_H
5763 # include <stdio.h>
5764 # include <time.h>
5765 # include <wchar.h>
5766 #endif
5767
5768#include <limits.h>
5769int
5770main ()
5771{
5772static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5773test_array [0] = 0
5774
5775 ;
5776 return 0;
5777}
5778_ACEOF
5779rm -f conftest.$ac_objext
5780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest.$ac_objext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_lo=$ac_mid; break
5802else
5803 echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806ac_hi=`expr '(' $ac_mid ')' - 1`
5807 if test $ac_mid -le $ac_hi; then
5808 ac_lo= ac_hi=
5809 break
5810 fi
5811 ac_mid=`expr 2 '*' $ac_mid`
5812fi
5813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814 done
5815else
5816 echo "$as_me: failed program was:" >&5
5817sed 's/^/| /' conftest.$ac_ext >&5
5818
5819ac_lo= ac_hi=
5820fi
5821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822fi
5823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5824# Binary search between lo and hi bounds.
5825while test "x$ac_lo" != "x$ac_hi"; do
5826 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5827 cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h. */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h. */
5833
5834 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5835 included before <wchar.h>. */
5836 #include <stddef.h>
5837 #include <signal.h>
5838 #if HAVE_WCHAR_H
5839 # include <stdio.h>
5840 # include <time.h>
5841 # include <wchar.h>
5842 #endif
5843
5844#include <limits.h>
5845int
5846main ()
5847{
5848static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5849test_array [0] = 0
5850
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855rm -f conftest.$ac_objext
5856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_hi=$ac_mid
5878else
5879 echo "$as_me: failed program was:" >&5
5880sed 's/^/| /' conftest.$ac_ext >&5
5881
5882ac_lo=`expr '(' $ac_mid ')' + 1`
5883fi
5884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885done
5886case $ac_lo in
5887?*) result=$ac_lo;;
5888'') result=unknown ;;
5889esac
5890else
5891 if test "$cross_compiling" = yes; then
d5af19ba
DJ
5892 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5893echo "$as_me: error: in \`$ac_pwd':" >&2;}
5894{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
783e057b
DJ
5895See \`config.log' for more details." >&5
5896echo "$as_me: error: cannot run test program while cross compiling
5897See \`config.log' for more details." >&2;}
d5af19ba 5898 { (exit 1); exit 1; }; }; }
783e057b
DJ
5899else
5900 cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h. */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h. */
5906
5907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5908 included before <wchar.h>. */
5909 #include <stddef.h>
5910 #include <signal.h>
5911 #if HAVE_WCHAR_H
5912 # include <stdio.h>
5913 # include <time.h>
5914 # include <wchar.h>
5915 #endif
5916
5917#include <limits.h>
5918long longval () { return sizeof ($gltype) * CHAR_BIT; }
5919unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5920#include <stdio.h>
5921#include <stdlib.h>
5922int
5923main ()
5924{
5925
5926 FILE *f = fopen ("conftest.val", "w");
5927 if (! f)
5928 exit (1);
5929 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5930 {
5931 long i = longval ();
5932 if (i != (sizeof ($gltype) * CHAR_BIT))
5933 exit (1);
5934 fprintf (f, "%ld\n", i);
5935 }
5936 else
5937 {
5938 unsigned long i = ulongval ();
5939 if (i != (sizeof ($gltype) * CHAR_BIT))
5940 exit (1);
5941 fprintf (f, "%lu\n", i);
5942 }
5943 exit (ferror (f) || fclose (f) != 0);
5944
5945 ;
5946 return 0;
5947}
5948_ACEOF
5949rm -f conftest$ac_exeext
5950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5951 (eval $ac_link) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 result=`cat conftest.val`
5961else
5962 echo "$as_me: program exited with status $ac_status" >&5
5963echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966( exit $ac_status )
5967result=unknown
5968fi
5969rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5970fi
5971fi
5972rm -f conftest.val
5973 eval gl_cv_bitsizeof_${gltype}=\$result
c906108c 5974
783e057b
DJ
5975fi
5976echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5977echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5978 eval result=\$gl_cv_bitsizeof_${gltype}
5979 if test $result = unknown; then
5980 result=0
5981 fi
5982 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5983 cat >>confdefs.h <<_ACEOF
5984#define BITSIZEOF_${GLTYPE} $result
5985_ACEOF
c906108c 5986
783e057b
DJ
5987 eval BITSIZEOF_${GLTYPE}=\$result
5988 done
c906108c 5989
c906108c 5990
c906108c 5991
bec39cab 5992
3841debe 5993
783e057b
DJ
5994
5995
5996 for gltype in sig_atomic_t wchar_t wint_t ; do
5997 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5998echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5999if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008
6009 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6010 included before <wchar.h>. */
6011 #include <stddef.h>
6012 #include <signal.h>
6013 #if HAVE_WCHAR_H
6014 # include <stdio.h>
6015 # include <time.h>
6016 # include <wchar.h>
6017 #endif
6018
6019 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6020int
6021main ()
6022{
6023
6024 ;
6025 return 0;
6026}
6027_ACEOF
6028rm -f conftest.$ac_objext
6029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030 (eval $ac_compile) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -z "$ac_c_werror_flag"
6038 || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest.$ac_objext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 result=yes
6051else
6052 echo "$as_me: failed program was:" >&5
6053sed 's/^/| /' conftest.$ac_ext >&5
6054
6055result=no
20e95c23 6056fi
783e057b
DJ
6057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6058 eval gl_cv_type_${gltype}_signed=\$result
6059
6060fi
6061echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6062echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6063 eval result=\$gl_cv_type_${gltype}_signed
6064 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6065 if test "$result" = yes; then
6066 cat >>confdefs.h <<_ACEOF
6067#define HAVE_SIGNED_${GLTYPE} 1
6068_ACEOF
6069
6070 eval HAVE_SIGNED_${GLTYPE}=1
6071 else
6072 eval HAVE_SIGNED_${GLTYPE}=0
6073 fi
6074 done
6075
6076
6077 gl_cv_type_ptrdiff_t_signed=yes
6078 gl_cv_type_size_t_signed=no
6079
6080
6081
6082
6083
6084
6085
6086 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6087 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6088echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6089if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6091else
783e057b
DJ
6092 eval gl_cv_type_${gltype}_suffix=no
6093 eval result=\$gl_cv_type_${gltype}_signed
6094 if test "$result" = yes; then
6095 glsufu=
6096 else
6097 glsufu=u
6098 fi
6099 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6100 case $glsuf in
6101 '') gltype1='int';;
6102 l) gltype1='long int';;
6103 ll) gltype1='long long int';;
6104 i64) gltype1='__int64';;
6105 u) gltype1='unsigned int';;
6106 ul) gltype1='unsigned long int';;
6107 ull) gltype1='unsigned long long int';;
6108 ui64)gltype1='unsigned __int64';;
6109 esac
6110 cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
6116
6117 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6118 included before <wchar.h>. */
6119 #include <stddef.h>
6120 #include <signal.h>
6121 #if HAVE_WCHAR_H
6122 # include <stdio.h>
6123 # include <time.h>
6124 # include <wchar.h>
6125 #endif
6126
6127 extern $gltype foo;
6128 extern $gltype1 foo;
6129int
6130main ()
6131{
6132
6133 ;
6134 return 0;
6135}
6136_ACEOF
6137rm -f conftest.$ac_objext
6138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag"
6147 || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 eval gl_cv_type_${gltype}_suffix=\$glsuf
6160else
6161 echo "$as_me: failed program was:" >&5
6162sed 's/^/| /' conftest.$ac_ext >&5
6163
6164fi
6165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6166 eval result=\$gl_cv_type_${gltype}_suffix
6167 test "$result" != no && break
6168 done
6169fi
6170echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6171echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6172 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6173 eval result=\$gl_cv_type_${gltype}_suffix
6174 test "$result" = no && result=
6175 eval ${GLTYPE}_SUFFIX=\$result
6176 cat >>confdefs.h <<_ACEOF
6177#define ${GLTYPE}_SUFFIX $result
6178_ACEOF
6179
6180 done
6181
6182
6183
6184 STDINT_H=stdint.h
6185 fi
6186
6187
6188
6189
6190
6191
6192
6193 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6194echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6195if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198 cat >conftest.$ac_ext <<_ACEOF
6199#include <wchar.h>
6200wchar_t w;
6201_ACEOF
6202rm -f conftest.$ac_objext
6203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -z "$ac_c_werror_flag"
6212 || test ! -s conftest.err'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; } &&
6218 { ac_try='test -s conftest.$ac_objext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 gl_cv_header_wchar_h_standalone=yes
6225else
6226 echo "$as_me: failed program was:" >&5
6227sed 's/^/| /' conftest.$ac_ext >&5
6228
6229gl_cv_header_wchar_h_standalone=no
6230fi
6231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232fi
6233echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6234echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6235 if test $gl_cv_header_wchar_h_standalone != yes; then
6236 WCHAR_H=wchar.h
6237 fi
6238
6239
6240 :
6241
6242
6243
6244
6245
6246 if test $ac_cv_header_wchar_h = yes; then
6247 HAVE_WCHAR_H=1
6248 else
6249 HAVE_WCHAR_H=0
6250 fi
6251
6252
6253
6254
6255 :
6256
6257
6258
6259
6260
6261
6262
6263 if test $gl_cv_have_include_next = yes; then
6264 gl_cv_next_wchar_h='<'wchar.h'>'
6265 else
6266 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6267echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6268if test "${gl_cv_next_wchar_h+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271
6272 if test $ac_cv_header_wchar_h = yes; then
6273 cat >conftest.$ac_ext <<_ACEOF
6274/* confdefs.h. */
6275_ACEOF
6276cat confdefs.h >>conftest.$ac_ext
6277cat >>conftest.$ac_ext <<_ACEOF
6278/* end confdefs.h. */
6279#include <wchar.h>
6280
6281_ACEOF
6282 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 sed -n '\#/wchar.h#{
6284 s#.*"\(.*/wchar.h\)".*#\1#
6285 s#^/[^/]#//&#
6286 p
6287 q
6288 }'`'"'
6289 else
6290 gl_cv_next_wchar_h='<'wchar.h'>'
6291 fi
6292
6293fi
6294echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6295echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6296 fi
6297 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6298
c906108c 6299
c906108c 6300
c906108c 6301
c906108c 6302
c906108c 6303
c906108c 6304
c906108c 6305
783e057b
DJ
6306 gltests_libdeps=
6307 gltests_ltlibdeps=
20e95c23 6308
20e95c23 6309
20e95c23 6310
783e057b 6311 gl_source_base='tests'
c906108c 6312
bec39cab 6313
bec39cab 6314
783e057b
DJ
6315
6316 LIBGNU_LIBDEPS="$gl_libdeps"
6317
6318 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6319
6320
e28b3332 6321
d5af19ba
DJ
6322# For Makefile dependencies.
6323GNULIB_STDINT_H=
6324if test x"$STDINT_H" != x; then
6325 GNULIB_STDINT_H=gnulib/$STDINT_H
6326fi
6327
6328
bec39cab
AC
6329PACKAGE=gdb
6330
6331cat >>confdefs.h <<_ACEOF
6332#define PACKAGE "$PACKAGE"
6333_ACEOF
6334
6335
6336
e28b3332
DJ
6337# GDB does not use automake, but gnulib does. This line lets us
6338# generate its Makefile.in.
6339am__api_version="1.9"
6340# Find a good install program. We prefer a C program (faster),
6341# so one script is as good as another. But avoid the broken or
6342# incompatible versions:
6343# SysV /etc/install, /usr/sbin/install
6344# SunOS /usr/etc/install
6345# IRIX /sbin/install
6346# AIX /bin/install
6347# AmigaOS /C/install, which installs bootblocks on floppy discs
6348# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6349# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6350# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6351# OS/2's system install, which has a completely different semantic
6352# ./install, which can be erroneously created by make from ./install.sh.
6353echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6354echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6355if test -z "$INSTALL"; then
6356if test "${ac_cv_path_install+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 # Account for people who put trailing slashes in PATH elements.
6365case $as_dir/ in
6366 ./ | .// | /cC/* | \
6367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6368 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6369 /usr/ucb/* ) ;;
6370 *)
6371 # OSF1 and SCO ODT 3.0 have their own names for install.
6372 # Don't use installbsd from OSF since it installs stuff as root
6373 # by default.
6374 for ac_prog in ginstall scoinst install; do
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6377 if test $ac_prog = install &&
6378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6379 # AIX install. It has an incompatible calling convention.
6380 :
6381 elif test $ac_prog = install &&
6382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6383 # program-specific install script used by HP pwplus--don't use.
6384 :
6385 else
6386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6387 break 3
6388 fi
6389 fi
6390 done
6391 done
6392 ;;
6393esac
6394done
6395
6396
6397fi
6398 if test "${ac_cv_path_install+set}" = set; then
6399 INSTALL=$ac_cv_path_install
6400 else
6401 # As a last resort, use the slow shell script. We don't cache a
6402 # path for INSTALL within a source directory, because that will
6403 # break other packages using the cache if that directory is
6404 # removed, or if the path is relative.
6405 INSTALL=$ac_install_sh
6406 fi
6407fi
6408echo "$as_me:$LINENO: result: $INSTALL" >&5
6409echo "${ECHO_T}$INSTALL" >&6
6410
6411# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6412# It thinks the first close brace ends the variable substitution.
6413test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6414
6415test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6416
6417test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6418
6419echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6420echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6421# Just in case
6422sleep 1
6423echo timestamp > conftest.file
6424# Do `set' in a subshell so we don't clobber the current shell's
6425# arguments. Must try -L first in case configure is actually a
6426# symlink; some systems play weird games with the mod time of symlinks
6427# (eg FreeBSD returns the mod time of the symlink's containing
6428# directory).
6429if (
6430 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6431 if test "$*" = "X"; then
6432 # -L didn't work.
6433 set X `ls -t $srcdir/configure conftest.file`
6434 fi
6435 rm -f conftest.file
6436 if test "$*" != "X $srcdir/configure conftest.file" \
6437 && test "$*" != "X conftest.file $srcdir/configure"; then
6438
6439 # If neither matched, then we have a broken ls. This can happen
6440 # if, for instance, CONFIG_SHELL is bash and it inherits a
6441 # broken ls alias from the environment. This has actually
6442 # happened. Such a system could not be considered "sane".
6443 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6444alias in your environment" >&5
6445echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6446alias in your environment" >&2;}
6447 { (exit 1); exit 1; }; }
6448 fi
6449
6450 test "$2" = conftest.file
6451 )
6452then
6453 # Ok.
6454 :
6455else
6456 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6457Check your system clock" >&5
6458echo "$as_me: error: newly created file is older than distributed files!
6459Check your system clock" >&2;}
6460 { (exit 1); exit 1; }; }
6461fi
6462echo "$as_me:$LINENO: result: yes" >&5
6463echo "${ECHO_T}yes" >&6
6464test "$program_prefix" != NONE &&
6465 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6466# Use a double $ so make ignores it.
6467test "$program_suffix" != NONE &&
6468 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6469# Double any \ or $. echo might interpret backslashes.
6470# By default was `s,x,x', remove it if useless.
6471cat <<\_ACEOF >conftest.sed
6472s/[\\$]/&&/g;s/;s,x,x,$//
6473_ACEOF
6474program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6475rm conftest.sed
6476
6477# expand $ac_aux_dir to an absolute path
6478am_aux_dir=`cd $ac_aux_dir && pwd`
6479
6480test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6481# Use eval to expand $SHELL
6482if eval "$MISSING --run true"; then
6483 am_missing_run="$MISSING --run "
6484else
6485 am_missing_run=
6486 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6487echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6488fi
6489
6490if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6491 # We used to keeping the `.' as first argument, in order to
6492 # allow $(mkdir_p) to be used without argument. As in
6493 # $(mkdir_p) $(somedir)
6494 # where $(somedir) is conditionally defined. However this is wrong
6495 # for two reasons:
6496 # 1. if the package is installed by a user who cannot write `.'
6497 # make install will fail,
6498 # 2. the above comment should most certainly read
6499 # $(mkdir_p) $(DESTDIR)$(somedir)
6500 # so it does not work when $(somedir) is undefined and
6501 # $(DESTDIR) is not.
6502 # To support the latter case, we have to write
6503 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6504 # so the `.' trick is pointless.
6505 mkdir_p='mkdir -p --'
6506else
6507 # On NextStep and OpenStep, the `mkdir' command does not
6508 # recognize any option. It will interpret all options as
6509 # directories to create, and then abort because `.' already
6510 # exists.
6511 for d in ./-p ./--version;
6512 do
6513 test -d $d && rmdir $d
6514 done
6515 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6516 if test -f "$ac_aux_dir/mkinstalldirs"; then
6517 mkdir_p='$(mkinstalldirs)'
6518 else
6519 mkdir_p='$(install_sh) -d'
6520 fi
6521fi
6522
6523for ac_prog in gawk mawk nawk awk
6524do
6525 # Extract the first word of "$ac_prog", so it can be a program name with args.
6526set dummy $ac_prog; ac_word=$2
6527echo "$as_me:$LINENO: checking for $ac_word" >&5
6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6529if test "${ac_cv_prog_AWK+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532 if test -n "$AWK"; then
6533 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_AWK="$ac_prog"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546done
6547done
6548
6549fi
6550fi
6551AWK=$ac_cv_prog_AWK
6552if test -n "$AWK"; then
6553 echo "$as_me:$LINENO: result: $AWK" >&5
6554echo "${ECHO_T}$AWK" >&6
6555else
6556 echo "$as_me:$LINENO: result: no" >&5
6557echo "${ECHO_T}no" >&6
6558fi
6559
6560 test -n "$AWK" && break
6561done
6562
6563echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6564echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6565set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6566if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569 cat >conftest.make <<\_ACEOF
6570all:
6571 @echo 'ac_maketemp="$(MAKE)"'
6572_ACEOF
6573# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6574eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6575if test -n "$ac_maketemp"; then
6576 eval ac_cv_prog_make_${ac_make}_set=yes
6577else
6578 eval ac_cv_prog_make_${ac_make}_set=no
6579fi
6580rm -f conftest.make
6581fi
6582if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6583 echo "$as_me:$LINENO: result: yes" >&5
6584echo "${ECHO_T}yes" >&6
6585 SET_MAKE=
6586else
6587 echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6
6589 SET_MAKE="MAKE=${MAKE-make}"
6590fi
6591
6592rm -rf .tst 2>/dev/null
6593mkdir .tst 2>/dev/null
6594if test -d .tst; then
6595 am__leading_dot=.
6596else
6597 am__leading_dot=_
6598fi
6599rmdir .tst 2>/dev/null
6600
6601DEPDIR="${am__leading_dot}deps"
6602
6603 ac_config_commands="$ac_config_commands depfiles"
6604
6605
6606am_make=${MAKE-make}
6607cat > confinc << 'END'
6608am__doit:
6609 @echo done
6610.PHONY: am__doit
6611END
6612# If we don't find an include directive, just comment out the code.
6613echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6614echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6615am__include="#"
6616am__quote=
6617_am_result=none
6618# First try GNU make style include.
6619echo "include confinc" > confmf
6620# We grep out `Entering directory' and `Leaving directory'
6621# messages which can occur if `w' ends up in MAKEFLAGS.
6622# In particular we don't look at `^make:' because GNU make might
6623# be invoked under some other name (usually "gmake"), in which
6624# case it prints its new name instead of `make'.
6625if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6626 am__include=include
6627 am__quote=
6628 _am_result=GNU
6629fi
6630# Now try BSD make style include.
6631if test "$am__include" = "#"; then
6632 echo '.include "confinc"' > confmf
6633 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6634 am__include=.include
6635 am__quote="\""
6636 _am_result=BSD
6637 fi
6638fi
6639
6640
6641echo "$as_me:$LINENO: result: $_am_result" >&5
6642echo "${ECHO_T}$_am_result" >&6
6643rm -f confinc confmf
6644
6645# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6646if test "${enable_dependency_tracking+set}" = set; then
6647 enableval="$enable_dependency_tracking"
6648
6649fi;
6650if test "x$enable_dependency_tracking" != xno; then
6651 am_depcomp="$ac_aux_dir/depcomp"
6652 AMDEPBACKSLASH='\'
6653fi
6654
6655
6656if test "x$enable_dependency_tracking" != xno; then
6657 AMDEP_TRUE=
6658 AMDEP_FALSE='#'
6659else
6660 AMDEP_TRUE='#'
6661 AMDEP_FALSE=
6662fi
6663
6664
6665
6666# test to see if srcdir already configured
6667if test "`cd $srcdir && pwd`" != "`pwd`" &&
6668 test -f $srcdir/config.status; then
6669 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6670echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6671 { (exit 1); exit 1; }; }
6672fi
6673
6674# test whether we have cygpath
6675if test -z "$CYGPATH_W"; then
6676 if (cygpath --version) >/dev/null 2>/dev/null; then
6677 CYGPATH_W='cygpath -w'
6678 else
6679 CYGPATH_W=echo
6680 fi
6681fi
6682
6683
6684# Define the identity of the package.
6685 PACKAGE=gdb
6686 VERSION=UNUSED-VERSION
6687
6688
6689# Some tools Automake needs.
6690
6691ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6692
6693
6694AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6695
6696
6697AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6698
6699
6700AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6701
6702
6703MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6704
6705install_sh=${install_sh-"$am_aux_dir/install-sh"}
6706
6707# Installed binaries are usually stripped using `strip' when the user
6708# run `make install-strip'. However `strip' might not be the right
6709# tool to use in cross-compilation environments, therefore Automake
6710# will honor the `STRIP' environment variable to overrule this program.
6711if test "$cross_compiling" != no; then
6712 if test -n "$ac_tool_prefix"; then
6713 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6714set dummy ${ac_tool_prefix}strip; ac_word=$2
6715echo "$as_me:$LINENO: checking for $ac_word" >&5
6716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6717if test "${ac_cv_prog_STRIP+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720 if test -n "$STRIP"; then
6721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6722else
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734done
6735done
6736
6737fi
6738fi
6739STRIP=$ac_cv_prog_STRIP
6740if test -n "$STRIP"; then
6741 echo "$as_me:$LINENO: result: $STRIP" >&5
6742echo "${ECHO_T}$STRIP" >&6
6743else
6744 echo "$as_me:$LINENO: result: no" >&5
6745echo "${ECHO_T}no" >&6
6746fi
6747
6748fi
6749if test -z "$ac_cv_prog_STRIP"; then
6750 ac_ct_STRIP=$STRIP
6751 # Extract the first word of "strip", so it can be a program name with args.
6752set dummy strip; ac_word=$2
6753echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6755if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 if test -n "$ac_ct_STRIP"; then
6759 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_ac_ct_STRIP="strip"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
6773done
6774
6775 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6776fi
6777fi
6778ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6779if test -n "$ac_ct_STRIP"; then
6780 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6781echo "${ECHO_T}$ac_ct_STRIP" >&6
6782else
6783 echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6
6785fi
6786
6787 STRIP=$ac_ct_STRIP
6788else
6789 STRIP="$ac_cv_prog_STRIP"
6790fi
6791
6792fi
6793INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6794
6795# We need awk for the "check" target. The system "awk" is bad on
6796# some platforms.
6797# Always define AMTAR for backward compatibility.
6798
6799AMTAR=${AMTAR-"${am_missing_run}tar"}
6800
6801am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6802
6803
6804
6805
6806depcc="$CC" am_compiler_list=
6807
6808echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6809echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6810if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6814 # We make a subdir and do the tests there. Otherwise we can end up
6815 # making bogus files that we don't know about and never remove. For
6816 # instance it was reported that on HP-UX the gcc test will end up
6817 # making a dummy file named `D' -- because `-MD' means `put the output
6818 # in D'.
6819 mkdir conftest.dir
6820 # Copy depcomp to subdir because otherwise we won't find it if we're
6821 # using a relative directory.
6822 cp "$am_depcomp" conftest.dir
6823 cd conftest.dir
6824 # We will build objects and dependencies in a subdirectory because
6825 # it helps to detect inapplicable dependency modes. For instance
6826 # both Tru64's cc and ICC support -MD to output dependencies as a
6827 # side effect of compilation, but ICC will put the dependencies in
6828 # the current directory while Tru64 will put them in the object
6829 # directory.
6830 mkdir sub
6831
6832 am_cv_CC_dependencies_compiler_type=none
6833 if test "$am_compiler_list" = ""; then
6834 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6835 fi
6836 for depmode in $am_compiler_list; do
6837 # Setup a source with many dependencies, because some compilers
6838 # like to wrap large dependency lists on column 80 (with \), and
6839 # we should not choose a depcomp mode which is confused by this.
6840 #
6841 # We need to recreate these files for each test, as the compiler may
6842 # overwrite some of them when testing with obscure command lines.
6843 # This happens at least with the AIX C compiler.
6844 : > sub/conftest.c
6845 for i in 1 2 3 4 5 6; do
6846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6847 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6848 # Solaris 8's {/usr,}/bin/sh.
6849 touch sub/conftst$i.h
6850 done
6851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6852
6853 case $depmode in
6854 nosideeffect)
6855 # after this tag, mechanisms are not by side-effect, so they'll
6856 # only be used when explicitly requested
6857 if test "x$enable_dependency_tracking" = xyes; then
6858 continue
6859 else
6860 break
6861 fi
6862 ;;
6863 none) break ;;
6864 esac
6865 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6866 # mode. It turns out that the SunPro C++ compiler does not properly
6867 # handle `-M -o', and we need to detect this.
6868 if depmode=$depmode \
6869 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6870 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6871 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6872 >/dev/null 2>conftest.err &&
6873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6874 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6876 # icc doesn't choke on unknown options, it will just issue warnings
6877 # or remarks (even with -Werror). So we grep stderr for any message
6878 # that says an option was ignored or not supported.
6879 # When given -MP, icc 7.0 and 7.1 complain thusly:
6880 # icc: Command line warning: ignoring option '-M'; no argument required
6881 # The diagnosis changed in icc 8.0:
6882 # icc: Command line remark: option '-MP' not supported
6883 if (grep 'ignoring option' conftest.err ||
6884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6885 am_cv_CC_dependencies_compiler_type=$depmode
6886 break
6887 fi
6888 fi
6889 done
6890
6891 cd ..
6892 rm -rf conftest.dir
6893else
6894 am_cv_CC_dependencies_compiler_type=none
6895fi
6896
6897fi
6898echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6899echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6900CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6901
6902
6903
6904if
6905 test "x$enable_dependency_tracking" != xno \
6906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6907 am__fastdepCC_TRUE=
6908 am__fastdepCC_FALSE='#'
6909else
6910 am__fastdepCC_TRUE='#'
6911 am__fastdepCC_FALSE=
6912fi
6913
6914
6915
6916
bec39cab
AC
6917debugdir=${libdir}/debug
6918
6919
b4e70030 6920# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 6921if test "${with_separate_debug_dir+set}" = set; then
783e057b
DJ
6922 withval="$with_separate_debug_dir"
6923 debugdir="${withval}"
6924fi;
20e95c23 6925
20e95c23 6926
783e057b
DJ
6927 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6928 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6929 ac_define_dir=`eval echo $debugdir`
6930 ac_define_dir=`eval echo $ac_define_dir`
20e95c23 6931
783e057b
DJ
6932cat >>confdefs.h <<_ACEOF
6933#define DEBUGDIR "$ac_define_dir"
20e95c23 6934_ACEOF
20e95c23 6935
20e95c23 6936
783e057b 6937#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
20e95c23 6938
783e057b
DJ
6939if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6940 if test "x$prefix" = xNONE; then
6941 test_prefix=/usr/local
6942 else
6943 test_prefix=$prefix
6944 fi
20e95c23 6945else
783e057b 6946 test_prefix=$exec_prefix
20e95c23 6947fi
783e057b
DJ
6948case ${debugdir} in
6949"${test_prefix}"|"${test_prefix}/"*|\
6950'${exec_prefix}'|'${exec_prefix}/'*)
20e95c23
DJ
6951
6952cat >>confdefs.h <<\_ACEOF
783e057b 6953#define DEBUGDIR_RELOCATABLE 1
20e95c23
DJ
6954_ACEOF
6955
783e057b
DJ
6956 ;;
6957esac
6958
20e95c23 6959
20e95c23 6960
783e057b 6961subdirs="$subdirs doc testsuite"
20e95c23
DJ
6962
6963
783e057b
DJ
6964# Check whether to support alternative target configurations
6965# Check whether --enable-targets or --disable-targets was given.
6966if test "${enable_targets+set}" = set; then
6967 enableval="$enable_targets"
6968 case "${enableval}" in
6969 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6970echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6971 { (exit 1); exit 1; }; }
6972 ;;
6973 no) enable_targets= ;;
6974 *) enable_targets=$enableval ;;
6975esac
6976fi;
20e95c23 6977
783e057b
DJ
6978# Check whether to enable 64-bit support on 32-bit hosts
6979# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6980if test "${enable_64_bit_bfd+set}" = set; then
6981 enableval="$enable_64_bit_bfd"
6982 case "${enableval}" in
6983 yes) want64=true ;;
6984 no) want64=false ;;
6985 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6986echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6987 { (exit 1); exit 1; }; } ;;
6988esac
6989else
6990 want64=false
6991fi;
6992# Provide defaults for some variables set by the per-host and per-target
6993# configuration.
6994gdb_host_obs=posix-hdep.o
20e95c23 6995
783e057b
DJ
6996if test "${target}" = "${host}"; then
6997 gdb_native=yes
6998else
6999 gdb_native=no
7000fi
20e95c23 7001
783e057b 7002. $srcdir/configure.host
20e95c23 7003
783e057b 7004# Accumulate some settings from configure.tgt over all enabled targets
20e95c23 7005
783e057b
DJ
7006TARGET_OBS=
7007all_targets=
20e95c23 7008
783e057b 7009for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
20e95c23 7010do
783e057b
DJ
7011 if test "$targ_alias" = "all"; then
7012 all_targets=true
7013 else
7014 # Canonicalize the secondary target names.
7015 result=`$ac_config_sub $targ_alias 2>/dev/null`
7016 if test -n "$result"; then
7017 targ=$result
7018 else
7019 targ=$targ_alias
7020 fi
20e95c23 7021
783e057b 7022 . ${srcdir}/configure.tgt
20e95c23 7023
783e057b
DJ
7024 # Target-specific object files
7025 for i in ${gdb_target_obs}; do
7026 case " $TARGET_OBS " in
7027 *" ${i} "*) ;;
7028 *)
7029 TARGET_OBS="$TARGET_OBS ${i}"
7030 ;;
7031 esac
7032 done
20e95c23 7033
783e057b
DJ
7034 # Check whether this target needs 64-bit CORE_ADDR
7035 if test x${want64} = xfalse; then
7036 . ${srcdir}/../bfd/config.bfd
7037 fi
7038 fi
20e95c23
DJ
7039done
7040
783e057b
DJ
7041if test x${all_targets} = xtrue; then
7042
7043 # We want all 64-bit targets if we either:
7044 # - run on a 64-bit host or
7045 # - already require 64-bit support for some other target or
7046 # - the --enable-64-bit-bfd option was supplied
7047 # Otherwise we only support all 32-bit targets.
7048 #
7049 # NOTE: This test must be in sync with the corresponding
7050 # tests in BFD!
20e95c23 7051
783e057b
DJ
7052 if test x${want64} = xfalse; then
7053 echo "$as_me:$LINENO: checking for long" >&5
c0993dbe
UW
7054echo $ECHO_N "checking for long... $ECHO_C" >&6
7055if test "${ac_cv_type_long+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057else
7058 cat >conftest.$ac_ext <<_ACEOF
7059/* confdefs.h. */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h. */
7064$ac_includes_default
7065int
7066main ()
7067{
7068if ((long *) 0)
7069 return 0;
7070if (sizeof (long))
7071 return 0;
7072 ;
7073 return 0;
7074}
7075_ACEOF
7076rm -f conftest.$ac_objext
7077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 (eval $ac_try) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_type_long=yes
7099else
7100 echo "$as_me: failed program was:" >&5
7101sed 's/^/| /' conftest.$ac_ext >&5
7102
7103ac_cv_type_long=no
7104fi
7105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7106fi
7107echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7108echo "${ECHO_T}$ac_cv_type_long" >&6
7109
7110echo "$as_me:$LINENO: checking size of long" >&5
7111echo $ECHO_N "checking size of long... $ECHO_C" >&6
7112if test "${ac_cv_sizeof_long+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114else
7115 if test "$ac_cv_type_long" = yes; then
7116 # The cast to unsigned long works around a bug in the HP C Compiler
7117 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7118 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7119 # This bug is HP SR number 8606223364.
7120 if test "$cross_compiling" = yes; then
7121 # Depending upon the size, compute the lo and hi bounds.
7122cat >conftest.$ac_ext <<_ACEOF
7123/* confdefs.h. */
7124_ACEOF
7125cat confdefs.h >>conftest.$ac_ext
7126cat >>conftest.$ac_ext <<_ACEOF
7127/* end confdefs.h. */
7128$ac_includes_default
7129int
7130main ()
7131{
7132static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7133test_array [0] = 0
7134
7135 ;
7136 return 0;
7137}
7138_ACEOF
7139rm -f conftest.$ac_objext
7140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7161 ac_lo=0 ac_mid=0
7162 while :; do
7163 cat >conftest.$ac_ext <<_ACEOF
7164/* confdefs.h. */
7165_ACEOF
7166cat confdefs.h >>conftest.$ac_ext
7167cat >>conftest.$ac_ext <<_ACEOF
7168/* end confdefs.h. */
7169$ac_includes_default
7170int
7171main ()
7172{
7173static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7174test_array [0] = 0
7175
7176 ;
7177 return 0;
7178}
7179_ACEOF
7180rm -f conftest.$ac_objext
7181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182 (eval $ac_compile) 2>conftest.er1
7183 ac_status=$?
7184 grep -v '^ *+' conftest.er1 >conftest.err
7185 rm -f conftest.er1
7186 cat conftest.err >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try='test -z "$ac_c_werror_flag"
7190 || test ! -s conftest.err'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; } &&
7196 { ac_try='test -s conftest.$ac_objext'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 (eval $ac_try) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; }; then
7202 ac_hi=$ac_mid; break
7203else
7204 echo "$as_me: failed program was:" >&5
7205sed 's/^/| /' conftest.$ac_ext >&5
7206
7207ac_lo=`expr $ac_mid + 1`
7208 if test $ac_lo -le $ac_mid; then
7209 ac_lo= ac_hi=
7210 break
7211 fi
7212 ac_mid=`expr 2 '*' $ac_mid + 1`
7213fi
7214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7215 done
7216else
7217 echo "$as_me: failed program was:" >&5
7218sed 's/^/| /' conftest.$ac_ext >&5
7219
7220cat >conftest.$ac_ext <<_ACEOF
7221/* confdefs.h. */
7222_ACEOF
7223cat confdefs.h >>conftest.$ac_ext
7224cat >>conftest.$ac_ext <<_ACEOF
7225/* end confdefs.h. */
7226$ac_includes_default
7227int
7228main ()
7229{
7230static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7231test_array [0] = 0
7232
7233 ;
7234 return 0;
7235}
7236_ACEOF
7237rm -f conftest.$ac_objext
7238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag"
7247 || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7259 ac_hi=-1 ac_mid=-1
7260 while :; do
7261 cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h. */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h. */
7267$ac_includes_default
7268int
7269main ()
7270{
7271static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7272test_array [0] = 0
7273
7274 ;
7275 return 0;
7276}
7277_ACEOF
7278rm -f conftest.$ac_objext
7279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280 (eval $ac_compile) 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try='test -z "$ac_c_werror_flag"
7288 || test ! -s conftest.err'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try='test -s conftest.$ac_objext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_lo=$ac_mid; break
7301else
7302 echo "$as_me: failed program was:" >&5
7303sed 's/^/| /' conftest.$ac_ext >&5
7304
7305ac_hi=`expr '(' $ac_mid ')' - 1`
7306 if test $ac_mid -le $ac_hi; then
7307 ac_lo= ac_hi=
7308 break
7309 fi
7310 ac_mid=`expr 2 '*' $ac_mid`
7311fi
7312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 done
7314else
7315 echo "$as_me: failed program was:" >&5
7316sed 's/^/| /' conftest.$ac_ext >&5
7317
7318ac_lo= ac_hi=
7319fi
7320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7321fi
7322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7323# Binary search between lo and hi bounds.
7324while test "x$ac_lo" != "x$ac_hi"; do
7325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7326 cat >conftest.$ac_ext <<_ACEOF
7327/* confdefs.h. */
7328_ACEOF
7329cat confdefs.h >>conftest.$ac_ext
7330cat >>conftest.$ac_ext <<_ACEOF
7331/* end confdefs.h. */
7332$ac_includes_default
7333int
7334main ()
7335{
7336static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7337test_array [0] = 0
7338
7339 ;
7340 return 0;
7341}
7342_ACEOF
7343rm -f conftest.$ac_objext
7344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_hi=$ac_mid
7366else
7367 echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
7370ac_lo=`expr '(' $ac_mid ')' + 1`
7371fi
7372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7373done
7374case $ac_lo in
7375?*) ac_cv_sizeof_long=$ac_lo;;
d5af19ba
DJ
7376'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7377echo "$as_me: error: in \`$ac_pwd':" >&2;}
7378{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
c0993dbe
UW
7379See \`config.log' for more details." >&5
7380echo "$as_me: error: cannot compute sizeof (long), 77
7381See \`config.log' for more details." >&2;}
d5af19ba 7382 { (exit 1); exit 1; }; }; } ;;
c0993dbe
UW
7383esac
7384else
7385 if test "$cross_compiling" = yes; then
d5af19ba
DJ
7386 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7387echo "$as_me: error: in \`$ac_pwd':" >&2;}
7388{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
c0993dbe
UW
7389See \`config.log' for more details." >&5
7390echo "$as_me: error: cannot run test program while cross compiling
7391See \`config.log' for more details." >&2;}
d5af19ba 7392 { (exit 1); exit 1; }; }; }
c0993dbe
UW
7393else
7394 cat >conftest.$ac_ext <<_ACEOF
7395/* confdefs.h. */
7396_ACEOF
7397cat confdefs.h >>conftest.$ac_ext
7398cat >>conftest.$ac_ext <<_ACEOF
7399/* end confdefs.h. */
7400$ac_includes_default
7401long longval () { return (long) (sizeof (long)); }
7402unsigned long ulongval () { return (long) (sizeof (long)); }
7403#include <stdio.h>
7404#include <stdlib.h>
7405int
7406main ()
7407{
7408
7409 FILE *f = fopen ("conftest.val", "w");
7410 if (! f)
7411 exit (1);
7412 if (((long) (sizeof (long))) < 0)
7413 {
7414 long i = longval ();
7415 if (i != ((long) (sizeof (long))))
7416 exit (1);
7417 fprintf (f, "%ld\n", i);
7418 }
7419 else
7420 {
7421 unsigned long i = ulongval ();
7422 if (i != ((long) (sizeof (long))))
7423 exit (1);
7424 fprintf (f, "%lu\n", i);
7425 }
7426 exit (ferror (f) || fclose (f) != 0);
7427
7428 ;
7429 return 0;
7430}
7431_ACEOF
7432rm -f conftest$ac_exeext
7433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7434 (eval $ac_link) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 (eval $ac_try) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; }; then
7443 ac_cv_sizeof_long=`cat conftest.val`
7444else
7445 echo "$as_me: program exited with status $ac_status" >&5
7446echo "$as_me: failed program was:" >&5
7447sed 's/^/| /' conftest.$ac_ext >&5
7448
7449( exit $ac_status )
d5af19ba
DJ
7450{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7451echo "$as_me: error: in \`$ac_pwd':" >&2;}
c0993dbe
UW
7452{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7453See \`config.log' for more details." >&5
7454echo "$as_me: error: cannot compute sizeof (long), 77
7455See \`config.log' for more details." >&2;}
d5af19ba 7456 { (exit 1); exit 1; }; }; }
c0993dbe
UW
7457fi
7458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7459fi
7460fi
7461rm -f conftest.val
7462else
7463 ac_cv_sizeof_long=0
7464fi
7465fi
7466echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7467echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7468cat >>confdefs.h <<_ACEOF
7469#define SIZEOF_LONG $ac_cv_sizeof_long
7470_ACEOF
7471
7472
7473 if test "x${ac_cv_sizeof_long}" = "x8"; then
7474 want64=true
7475 fi
7476 fi
7477 if test x${want64} = xtrue; then
7478 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7479 else
7480 TARGET_OBS='$(ALL_TARGET_OBS)'
7481 fi
7482fi
7483
7484
7485
7486# For other settings, only the main target counts.
7487gdb_sim=
7488gdb_osabi=
7489build_gdbserver=
7490targ=$target; . ${srcdir}/configure.tgt
7491
7492# Fetch the default architecture and default target vector from BFD.
7493targ=$target; . $srcdir/../bfd/config.bfd
7494
7495# We only want the first architecture, so strip off the others if
7496# there is more than one.
7497targ_archs=`echo $targ_archs | sed 's/ .*//'`
7498
7499if test "x$targ_archs" != x; then
7500
7501cat >>confdefs.h <<_ACEOF
7502#define DEFAULT_BFD_ARCH $targ_archs
7503_ACEOF
7504
7505fi
7506if test "x$targ_defvec" != x; then
7507
7508cat >>confdefs.h <<_ACEOF
7509#define DEFAULT_BFD_VEC $targ_defvec
7510_ACEOF
7511
7512fi
7513
c0993dbe
UW
7514# The CLI cannot be disabled yet, but may be in the future.
7515
7516# Enable CLI.
7517# Check whether --enable-gdbcli or --disable-gdbcli was given.
7518if test "${enable_gdbcli+set}" = set; then
7519 enableval="$enable_gdbcli"
7520 case $enableval in
7521 yes)
7522 ;;
7523 no)
7524 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7525echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7526 { (exit 1); exit 1; }; } ;;
7527 *)
7528 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7529echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7530 { (exit 1); exit 1; }; } ;;
7531 esac
7532else
7533 enable_gdbcli=yes
7534fi;
7535if test x"$enable_gdbcli" = xyes; then
7536 if test -d $srcdir/cli; then
7537 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7538 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7539 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7540 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7541 fi
7542fi
7543
7544# Enable MI.
7545# Check whether --enable-gdbmi or --disable-gdbmi was given.
7546if test "${enable_gdbmi+set}" = set; then
7547 enableval="$enable_gdbmi"
7548 case $enableval in
7549 yes | no)
7550 ;;
7551 *)
7552 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7553echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7554 { (exit 1); exit 1; }; } ;;
7555 esac
7556else
7557 enable_gdbmi=yes
7558fi;
7559if test x"$enable_gdbmi" = xyes; then
7560 if test -d $srcdir/mi; then
7561 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7562 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7563 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7564 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7565 fi
7566fi
7567
7568# Enable TUI.
7569# Check whether --enable-tui or --disable-tui was given.
7570if test "${enable_tui+set}" = set; then
7571 enableval="$enable_tui"
7572 case $enableval in
3ca64bd3 7573 yes | no | auto)
c0993dbe
UW
7574 ;;
7575 *)
7576 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7577echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7578 { (exit 1); exit 1; }; } ;;
7579 esac
7580else
3ca64bd3 7581 enable_tui=auto
c0993dbe
UW
7582fi;
7583
7584# Enable gdbtk.
7585# Check whether --enable-gdbtk or --disable-gdbtk was given.
7586if test "${enable_gdbtk+set}" = set; then
7587 enableval="$enable_gdbtk"
7588 case $enableval in
7589 yes | no)
7590 ;;
7591 *)
7592 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7593echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7594 { (exit 1); exit 1; }; } ;;
7595 esac
7596else
5062cc19 7597 if test -d $srcdir/gdbtk; then
c0993dbe
UW
7598 enable_gdbtk=yes
7599 else
7600 enable_gdbtk=no
7601 fi
7602fi;
7603# We unconditionally disable gdbtk tests on selected platforms.
7604case $host_os in
7605 go32* | windows*)
7606 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7607echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7608 enable_gdbtk=no ;;
7609esac
7610
7611# Libunwind support.
bec39cab 7612
b4e70030 7613# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 7614if test "${with_libunwind+set}" = set; then
b4e70030
JB
7615 withval="$with_libunwind"
7616 case "${withval}" in
bec39cab
AC
7617 yes) enable_libunwind=yes ;;
7618 no) enable_libunwind=no ;;
7619 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7620echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7621 { (exit 1); exit 1; }; } ;;
7622esac
7623else
7624
7625
7626for ac_header in libunwind.h
7627do
7628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7629if eval "test \"\${$as_ac_Header+set}\" = set"; then
7630 echo "$as_me:$LINENO: checking for $ac_header" >&5
7631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7632if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634fi
b4e70030
JB
7635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7637else
7638 # Is the header compilable?
b4e70030
JB
7639echo "$as_me:$LINENO: checking $ac_header usability" >&5
7640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7641cat >conftest.$ac_ext <<_ACEOF
7642/* confdefs.h. */
7643_ACEOF
7644cat confdefs.h >>conftest.$ac_ext
7645cat >>conftest.$ac_ext <<_ACEOF
7646/* end confdefs.h. */
7647$ac_includes_default
7648#include <$ac_header>
7649_ACEOF
7650rm -f conftest.$ac_objext
7651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
b4e70030
JB
7659 { ac_try='test -z "$ac_c_werror_flag"
7660 || test ! -s conftest.err'
bec39cab
AC
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 (eval $ac_try) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; } &&
7666 { ac_try='test -s conftest.$ac_objext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 ac_header_compiler=yes
7673else
7674 echo "$as_me: failed program was:" >&5
7675sed 's/^/| /' conftest.$ac_ext >&5
7676
b4e70030 7677ac_header_compiler=no
bec39cab
AC
7678fi
7679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7681echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7682
7683# Is the header present?
b4e70030
JB
7684echo "$as_me:$LINENO: checking $ac_header presence" >&5
7685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7686cat >conftest.$ac_ext <<_ACEOF
7687/* confdefs.h. */
7688_ACEOF
7689cat confdefs.h >>conftest.$ac_ext
7690cat >>conftest.$ac_ext <<_ACEOF
7691/* end confdefs.h. */
7692#include <$ac_header>
7693_ACEOF
7694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } >/dev/null; then
7702 if test -s conftest.err; then
7703 ac_cpp_err=$ac_c_preproc_warn_flag
7704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7705 else
7706 ac_cpp_err=
7707 fi
7708else
7709 ac_cpp_err=yes
7710fi
7711if test -z "$ac_cpp_err"; then
7712 ac_header_preproc=yes
7713else
7714 echo "$as_me: failed program was:" >&5
7715sed 's/^/| /' conftest.$ac_ext >&5
7716
7717 ac_header_preproc=no
7718fi
7719rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7721echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7722
7723# So? What about this header?
7724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7725 yes:no: )
7726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7730 ac_header_preproc=yes
7731 ;;
7732 no:yes:* )
7733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7745 (
7746 cat <<\_ASBOX
7747## ------------------------------------------ ##
7748## Report this to the AC_PACKAGE_NAME lists. ##
7749## ------------------------------------------ ##
7750_ASBOX
7751 ) |
7752 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7753 ;;
7754esac
b4e70030
JB
7755echo "$as_me:$LINENO: checking for $ac_header" >&5
7756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7757if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760 eval "$as_ac_Header=\$ac_header_preproc"
7761fi
b4e70030
JB
7762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7764
7765fi
7766if test `eval echo '${'$as_ac_Header'}'` = yes; then
7767 cat >>confdefs.h <<_ACEOF
7768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7769_ACEOF
7770
7771fi
7772
7773done
7774
7775
7776for ac_header in libunwind-ia64.h
7777do
7778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7779if eval "test \"\${$as_ac_Header+set}\" = set"; then
7780 echo "$as_me:$LINENO: checking for $ac_header" >&5
7781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7782if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7784fi
b4e70030
JB
7785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7787else
7788 # Is the header compilable?
b4e70030
JB
7789echo "$as_me:$LINENO: checking $ac_header usability" >&5
7790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7791cat >conftest.$ac_ext <<_ACEOF
7792/* confdefs.h. */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
7796/* end confdefs.h. */
7797$ac_includes_default
7798#include <$ac_header>
7799_ACEOF
7800rm -f conftest.$ac_objext
7801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7802 (eval $ac_compile) 2>conftest.er1
7803 ac_status=$?
7804 grep -v '^ *+' conftest.er1 >conftest.err
7805 rm -f conftest.er1
7806 cat conftest.err >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } &&
b4e70030
JB
7809 { ac_try='test -z "$ac_c_werror_flag"
7810 || test ! -s conftest.err'
bec39cab
AC
7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 (eval $ac_try) 2>&5
7813 ac_status=$?
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; } &&
7816 { ac_try='test -s conftest.$ac_objext'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 (eval $ac_try) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 ac_header_compiler=yes
7823else
7824 echo "$as_me: failed program was:" >&5
7825sed 's/^/| /' conftest.$ac_ext >&5
7826
b4e70030 7827ac_header_compiler=no
bec39cab
AC
7828fi
7829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7831echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7832
7833# Is the header present?
b4e70030
JB
7834echo "$as_me:$LINENO: checking $ac_header presence" >&5
7835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7836cat >conftest.$ac_ext <<_ACEOF
7837/* confdefs.h. */
7838_ACEOF
7839cat confdefs.h >>conftest.$ac_ext
7840cat >>conftest.$ac_ext <<_ACEOF
7841/* end confdefs.h. */
7842#include <$ac_header>
7843_ACEOF
7844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } >/dev/null; then
7852 if test -s conftest.err; then
7853 ac_cpp_err=$ac_c_preproc_warn_flag
7854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7855 else
7856 ac_cpp_err=
7857 fi
7858else
7859 ac_cpp_err=yes
7860fi
7861if test -z "$ac_cpp_err"; then
7862 ac_header_preproc=yes
7863else
7864 echo "$as_me: failed program was:" >&5
7865sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 ac_header_preproc=no
7868fi
7869rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7871echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7872
7873# So? What about this header?
7874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7875 yes:no: )
7876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7880 ac_header_preproc=yes
7881 ;;
7882 no:yes:* )
7883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7886echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7890echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7895 (
7896 cat <<\_ASBOX
7897## ------------------------------------------ ##
7898## Report this to the AC_PACKAGE_NAME lists. ##
7899## ------------------------------------------ ##
7900_ASBOX
7901 ) |
7902 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7903 ;;
7904esac
b4e70030
JB
7905echo "$as_me:$LINENO: checking for $ac_header" >&5
7906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7907if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910 eval "$as_ac_Header=\$ac_header_preproc"
7911fi
b4e70030
JB
7912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7914
7915fi
7916if test `eval echo '${'$as_ac_Header'}'` = yes; then
7917 cat >>confdefs.h <<_ACEOF
7918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7919_ACEOF
7920
7921fi
7922
7923done
7924
7925 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7926 enable_libunwind=yes;
7927 fi
7928
b4e70030 7929fi;
bec39cab
AC
7930
7931if test x"$enable_libunwind" = xyes; then
7932
7933for ac_header in libunwind.h
7934do
7935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7936if eval "test \"\${$as_ac_Header+set}\" = set"; then
7937 echo "$as_me:$LINENO: checking for $ac_header" >&5
7938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7939if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7941fi
b4e70030
JB
7942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7944else
7945 # Is the header compilable?
b4e70030
JB
7946echo "$as_me:$LINENO: checking $ac_header usability" >&5
7947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7948cat >conftest.$ac_ext <<_ACEOF
7949/* confdefs.h. */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h. */
7954$ac_includes_default
7955#include <$ac_header>
7956_ACEOF
7957rm -f conftest.$ac_objext
7958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959 (eval $ac_compile) 2>conftest.er1
7960 ac_status=$?
7961 grep -v '^ *+' conftest.er1 >conftest.err
7962 rm -f conftest.er1
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
b4e70030
JB
7966 { ac_try='test -z "$ac_c_werror_flag"
7967 || test ! -s conftest.err'
bec39cab
AC
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; } &&
7973 { ac_try='test -s conftest.$ac_objext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 ac_header_compiler=yes
7980else
7981 echo "$as_me: failed program was:" >&5
7982sed 's/^/| /' conftest.$ac_ext >&5
7983
b4e70030 7984ac_header_compiler=no
bec39cab
AC
7985fi
7986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7987echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7988echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7989
7990# Is the header present?
b4e70030
JB
7991echo "$as_me:$LINENO: checking $ac_header presence" >&5
7992echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7993cat >conftest.$ac_ext <<_ACEOF
7994/* confdefs.h. */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h. */
7999#include <$ac_header>
8000_ACEOF
8001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8003 ac_status=$?
8004 grep -v '^ *+' conftest.er1 >conftest.err
8005 rm -f conftest.er1
8006 cat conftest.err >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } >/dev/null; then
8009 if test -s conftest.err; then
8010 ac_cpp_err=$ac_c_preproc_warn_flag
8011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8012 else
8013 ac_cpp_err=
8014 fi
8015else
8016 ac_cpp_err=yes
8017fi
8018if test -z "$ac_cpp_err"; then
8019 ac_header_preproc=yes
8020else
8021 echo "$as_me: failed program was:" >&5
8022sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_header_preproc=no
8025fi
8026rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8027echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8028echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8029
8030# So? What about this header?
8031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8032 yes:no: )
8033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8034echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8036echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8037 ac_header_preproc=yes
8038 ;;
8039 no:yes:* )
8040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8045echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8047echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8049echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8051echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8052 (
8053 cat <<\_ASBOX
8054## ------------------------------------------ ##
8055## Report this to the AC_PACKAGE_NAME lists. ##
8056## ------------------------------------------ ##
8057_ASBOX
8058 ) |
8059 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8060 ;;
8061esac
b4e70030
JB
8062echo "$as_me:$LINENO: checking for $ac_header" >&5
8063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8064if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8066else
8067 eval "$as_ac_Header=\$ac_header_preproc"
8068fi
b4e70030
JB
8069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8071
8072fi
8073if test `eval echo '${'$as_ac_Header'}'` = yes; then
8074 cat >>confdefs.h <<_ACEOF
8075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076_ACEOF
8077
8078fi
8079
8080done
8081
8082
8083for ac_header in libunwind-ia64.h
8084do
8085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8086if eval "test \"\${$as_ac_Header+set}\" = set"; then
8087 echo "$as_me:$LINENO: checking for $ac_header" >&5
8088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8089if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091fi
b4e70030
JB
8092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8094else
8095 # Is the header compilable?
b4e70030
JB
8096echo "$as_me:$LINENO: checking $ac_header usability" >&5
8097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8098cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h. */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h. */
8104$ac_includes_default
8105#include <$ac_header>
8106_ACEOF
8107rm -f conftest.$ac_objext
8108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109 (eval $ac_compile) 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
b4e70030
JB
8116 { ac_try='test -z "$ac_c_werror_flag"
8117 || test ! -s conftest.err'
bec39cab
AC
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; } &&
8123 { ac_try='test -s conftest.$ac_objext'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 (eval $ac_try) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 ac_header_compiler=yes
8130else
8131 echo "$as_me: failed program was:" >&5
8132sed 's/^/| /' conftest.$ac_ext >&5
8133
b4e70030 8134ac_header_compiler=no
bec39cab
AC
8135fi
8136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8138echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8139
8140# Is the header present?
b4e70030
JB
8141echo "$as_me:$LINENO: checking $ac_header presence" >&5
8142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8143cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h. */
8149#include <$ac_header>
8150_ACEOF
8151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } >/dev/null; then
8159 if test -s conftest.err; then
8160 ac_cpp_err=$ac_c_preproc_warn_flag
8161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8162 else
8163 ac_cpp_err=
8164 fi
8165else
8166 ac_cpp_err=yes
8167fi
8168if test -z "$ac_cpp_err"; then
8169 ac_header_preproc=yes
8170else
8171 echo "$as_me: failed program was:" >&5
8172sed 's/^/| /' conftest.$ac_ext >&5
8173
8174 ac_header_preproc=no
8175fi
8176rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8178echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8179
8180# So? What about this header?
8181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8182 yes:no: )
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8187 ac_header_preproc=yes
8188 ;;
8189 no:yes:* )
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8202 (
8203 cat <<\_ASBOX
8204## ------------------------------------------ ##
8205## Report this to the AC_PACKAGE_NAME lists. ##
8206## ------------------------------------------ ##
8207_ASBOX
8208 ) |
8209 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8210 ;;
8211esac
b4e70030
JB
8212echo "$as_me:$LINENO: checking for $ac_header" >&5
8213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8214if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216else
8217 eval "$as_ac_Header=\$ac_header_preproc"
8218fi
b4e70030
JB
8219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8221
8222fi
8223if test `eval echo '${'$as_ac_Header'}'` = yes; then
8224 cat >>confdefs.h <<_ACEOF
8225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8226_ACEOF
8227
8228fi
8229
8230done
8231
60ca704f
SE
8232
8233cat >>confdefs.h <<\_ACEOF
bec39cab
AC
8234#define HAVE_LIBUNWIND 1
8235_ACEOF
8236
8237 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8238 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8239 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8240fi
8241
8242# Profiling support.
b4e70030 8243# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 8244if test "${enable_profiling+set}" = set; then
b4e70030
JB
8245 enableval="$enable_profiling"
8246 case $enableval in
bec39cab
AC
8247 yes | no)
8248 ;;
8249 *)
8250 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8251echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8252 { (exit 1); exit 1; }; } ;;
8253 esac
8254else
8255 enable_profiling=no
b4e70030 8256fi;
bec39cab
AC
8257
8258
8259
8260for ac_func in monstartup _mcleanup
8261do
8262as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
8263echo "$as_me:$LINENO: checking for $ac_func" >&5
8264echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8265if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267else
8268 cat >conftest.$ac_ext <<_ACEOF
8269/* confdefs.h. */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h. */
8274/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8276#define $ac_func innocuous_$ac_func
8277
8278/* System header to define __stub macros and hopefully few prototypes,
8279 which can conflict with char $ac_func (); below.
8280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8281 <limits.h> exists even on freestanding compilers. */
8282
8283#ifdef __STDC__
8284# include <limits.h>
8285#else
8286# include <assert.h>
8287#endif
8288
8289#undef $ac_func
8290
b4e70030 8291/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8292#ifdef __cplusplus
8293extern "C"
b4e70030 8294{
bec39cab 8295#endif
b4e70030
JB
8296/* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
bec39cab
AC
8298char $ac_func ();
8299/* The GNU C library defines this for functions which it implements
8300 to always fail with ENOSYS. Some functions are actually named
8301 something starting with __ and the normal name is an alias. */
b4e70030 8302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 8303choke me
b4e70030
JB
8304#else
8305char (*f) () = $ac_func;
8306#endif
8307#ifdef __cplusplus
8308}
bec39cab
AC
8309#endif
8310
8311int
8312main ()
8313{
b4e70030 8314return f != $ac_func;
bec39cab
AC
8315 ;
8316 return 0;
8317}
8318_ACEOF
8319rm -f conftest.$ac_objext conftest$ac_exeext
8320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321 (eval $ac_link) 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
b4e70030
JB
8328 { ac_try='test -z "$ac_c_werror_flag"
8329 || test ! -s conftest.err'
bec39cab
AC
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try='test -s conftest$ac_exeext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 (eval $ac_try) 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8341 eval "$as_ac_var=yes"
8342else
8343 echo "$as_me: failed program was:" >&5
8344sed 's/^/| /' conftest.$ac_ext >&5
8345
b4e70030 8346eval "$as_ac_var=no"
bec39cab
AC
8347fi
8348rm -f conftest.err conftest.$ac_objext \
8349 conftest$ac_exeext conftest.$ac_ext
8350fi
b4e70030
JB
8351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8352echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
8353if test `eval echo '${'$as_ac_var'}'` = yes; then
8354 cat >>confdefs.h <<_ACEOF
8355#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8356_ACEOF
8357
8358fi
8359done
8360
b4e70030
JB
8361echo "$as_me:$LINENO: checking for _etext" >&5
8362echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
8363if test "${ac_cv_var__etext+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365else
8366 cat >conftest.$ac_ext <<_ACEOF
8367/* confdefs.h. */
8368_ACEOF
8369cat confdefs.h >>conftest.$ac_ext
8370cat >>conftest.$ac_ext <<_ACEOF
8371/* end confdefs.h. */
8372#include <stdlib.h>
8373extern char _etext;
8374
8375int
8376main ()
8377{
8378free (&_etext);
8379 ;
8380 return 0;
8381}
8382_ACEOF
8383rm -f conftest.$ac_objext conftest$ac_exeext
8384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385 (eval $ac_link) 2>conftest.er1
8386 ac_status=$?
8387 grep -v '^ *+' conftest.er1 >conftest.err
8388 rm -f conftest.er1
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
b4e70030
JB
8392 { ac_try='test -z "$ac_c_werror_flag"
8393 || test ! -s conftest.err'
bec39cab
AC
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest$ac_exeext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_var__etext=yes
8406else
8407 echo "$as_me: failed program was:" >&5
8408sed 's/^/| /' conftest.$ac_ext >&5
8409
b4e70030 8410ac_cv_var__etext=no
bec39cab
AC
8411fi
8412rm -f conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
8414fi
b4e70030
JB
8415echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8416echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
8417if test $ac_cv_var__etext = yes; then
8418
8419cat >>confdefs.h <<\_ACEOF
8420#define HAVE__ETEXT 1
8421_ACEOF
8422
01fe12f6
JB
8423fi
8424echo "$as_me:$LINENO: checking for etext" >&5
8425echo $ECHO_N "checking for etext... $ECHO_C" >&6
8426if test "${ac_cv_var_etext+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429 cat >conftest.$ac_ext <<_ACEOF
8430/* confdefs.h. */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h. */
8435#include <stdlib.h>
8436extern char etext;
8437
8438int
8439main ()
8440{
8441free (&etext);
8442 ;
8443 return 0;
8444}
8445_ACEOF
8446rm -f conftest.$ac_objext conftest$ac_exeext
8447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_var_etext=yes
8469else
8470 echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
8473ac_cv_var_etext=no
8474fi
8475rm -f conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8477fi
8478echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8479echo "${ECHO_T}$ac_cv_var_etext" >&6
8480if test $ac_cv_var_etext = yes; then
8481
8482cat >>confdefs.h <<\_ACEOF
8483#define HAVE_ETEXT 1
8484_ACEOF
8485
bec39cab
AC
8486fi
8487if test "$enable_profiling" = yes ; then
8488 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8489 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8490echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8491 { (exit 1); exit 1; }; }
8492 fi
8493 PROFILE_CFLAGS=-pg
8494 OLD_CFLAGS="$CFLAGS"
8495 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8496
b4e70030
JB
8497 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8498echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
8499if test "${ac_cv_cc_supports_pg+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8501else
bec39cab
AC
8502 cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h. */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h. */
8508
8509int
8510main ()
8511{
8512int x;
8513 ;
8514 return 0;
8515}
8516_ACEOF
8517rm -f conftest.$ac_objext
8518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
b4e70030
JB
8526 { ac_try='test -z "$ac_c_werror_flag"
8527 || test ! -s conftest.err'
bec39cab
AC
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 (eval $ac_try) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_cv_cc_supports_pg=yes
8540else
8541 echo "$as_me: failed program was:" >&5
8542sed 's/^/| /' conftest.$ac_ext >&5
8543
b4e70030 8544ac_cv_cc_supports_pg=no
bec39cab
AC
8545fi
8546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8547fi
b4e70030
JB
8548echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8549echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
8550
8551 if test $ac_cv_cc_supports_pg = no; then
8552 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8553echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8554 { (exit 1); exit 1; }; }
8555 fi
8556
8557 CFLAGS="$OLD_CFLAGS"
8558fi
8559
c16158bc
JM
8560
8561
8562# Check whether --with-pkgversion or --without-pkgversion was given.
8563if test "${with_pkgversion+set}" = set; then
8564 withval="$with_pkgversion"
8565 case "$withval" in
8566 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8567echo "$as_me: error: package version not specified" >&2;}
8568 { (exit 1); exit 1; }; } ;;
8569 no) PKGVERSION= ;;
8570 *) PKGVERSION="($withval) " ;;
8571 esac
8572else
8573 PKGVERSION="(GDB) "
8574
8575fi;
8576
8577
8578
8579
8580# Check whether --with-bugurl or --without-bugurl was given.
8581if test "${with_bugurl+set}" = set; then
8582 withval="$with_bugurl"
8583 case "$withval" in
8584 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8585echo "$as_me: error: bug URL not specified" >&2;}
8586 { (exit 1); exit 1; }; } ;;
8587 no) BUGURL=
8588 ;;
8589 *) BUGURL="$withval"
8590 ;;
8591 esac
8592else
8593 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8594
8595fi;
8596 case ${BUGURL} in
8597 "")
8598 REPORT_BUGS_TO=
8599 REPORT_BUGS_TEXI=
8600 ;;
8601 *)
8602 REPORT_BUGS_TO="<$BUGURL>"
8603 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8604 ;;
8605 esac;
8606
8607
8608
8609
8610cat >>confdefs.h <<_ACEOF
8611#define PKGVERSION "$PKGVERSION"
8612_ACEOF
8613
8614
8615cat >>confdefs.h <<_ACEOF
8616#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8617_ACEOF
8618
8619
bec39cab
AC
8620# --------------------- #
8621# Checks for programs. #
8622# --------------------- #
8623
8624for ac_prog in gawk mawk nawk awk
8625do
8626 # Extract the first word of "$ac_prog", so it can be a program name with args.
8627set dummy $ac_prog; ac_word=$2
b4e70030
JB
8628echo "$as_me:$LINENO: checking for $ac_word" >&5
8629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8630if test "${ac_cv_prog_AWK+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8632else
8633 if test -n "$AWK"; then
8634 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8635else
8636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637for as_dir in $PATH
8638do
8639 IFS=$as_save_IFS
8640 test -z "$as_dir" && as_dir=.
8641 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8643 ac_cv_prog_AWK="$ac_prog"
8644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8645 break 2
8646 fi
8647done
8648done
8649
8650fi
8651fi
8652AWK=$ac_cv_prog_AWK
8653if test -n "$AWK"; then
b4e70030
JB
8654 echo "$as_me:$LINENO: result: $AWK" >&5
8655echo "${ECHO_T}$AWK" >&6
bec39cab 8656else
b4e70030
JB
8657 echo "$as_me:$LINENO: result: no" >&5
8658echo "${ECHO_T}no" >&6
bec39cab
AC
8659fi
8660
8661 test -n "$AWK" && break
8662done
8663
8664# Find a good install program. We prefer a C program (faster),
8665# so one script is as good as another. But avoid the broken or
8666# incompatible versions:
8667# SysV /etc/install, /usr/sbin/install
8668# SunOS /usr/etc/install
8669# IRIX /sbin/install
8670# AIX /bin/install
8671# AmigaOS /C/install, which installs bootblocks on floppy discs
8672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8675# OS/2's system install, which has a completely different semantic
8676# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
8677echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8678echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
8679if test -z "$INSTALL"; then
8680if test "${ac_cv_path_install+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8682else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684for as_dir in $PATH
8685do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 # Account for people who put trailing slashes in PATH elements.
8689case $as_dir/ in
8690 ./ | .// | /cC/* | \
8691 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8692 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8693 /usr/ucb/* ) ;;
c906108c 8694 *)
bec39cab
AC
8695 # OSF1 and SCO ODT 3.0 have their own names for install.
8696 # Don't use installbsd from OSF since it installs stuff as root
8697 # by default.
8698 for ac_prog in ginstall scoinst install; do
8699 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8700 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
8701 if test $ac_prog = install &&
8702 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8703 # AIX install. It has an incompatible calling convention.
8704 :
8705 elif test $ac_prog = install &&
8706 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8707 # program-specific install script used by HP pwplus--don't use.
8708 :
8709 else
8710 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8711 break 3
8712 fi
8713 fi
8714 done
8715 done
8716 ;;
c906108c 8717esac
bec39cab
AC
8718done
8719
8720
8721fi
8722 if test "${ac_cv_path_install+set}" = set; then
8723 INSTALL=$ac_cv_path_install
8724 else
b4e70030
JB
8725 # As a last resort, use the slow shell script. We don't cache a
8726 # path for INSTALL within a source directory, because that will
bec39cab 8727 # break other packages using the cache if that directory is
b4e70030 8728 # removed, or if the path is relative.
bec39cab
AC
8729 INSTALL=$ac_install_sh
8730 fi
8731fi
b4e70030
JB
8732echo "$as_me:$LINENO: result: $INSTALL" >&5
8733echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
8734
8735# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8736# It thinks the first close brace ends the variable substitution.
8737test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8738
8739test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8740
8741test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8742
b4e70030
JB
8743echo "$as_me:$LINENO: checking whether ln -s works" >&5
8744echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
8745LN_S=$as_ln_s
8746if test "$LN_S" = "ln -s"; then
b4e70030
JB
8747 echo "$as_me:$LINENO: result: yes" >&5
8748echo "${ECHO_T}yes" >&6
bec39cab 8749else
b4e70030
JB
8750 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8751echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
8752fi
8753
8754if test -n "$ac_tool_prefix"; then
8755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8756set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
8757echo "$as_me:$LINENO: checking for $ac_word" >&5
8758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8759if test "${ac_cv_prog_RANLIB+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761else
8762 if test -n "$RANLIB"; then
8763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8764else
8765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766for as_dir in $PATH
8767do
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
8770 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 break 2
8775 fi
8776done
8777done
8778
8779fi
8780fi
8781RANLIB=$ac_cv_prog_RANLIB
8782if test -n "$RANLIB"; then
b4e70030
JB
8783 echo "$as_me:$LINENO: result: $RANLIB" >&5
8784echo "${ECHO_T}$RANLIB" >&6
bec39cab 8785else
b4e70030
JB
8786 echo "$as_me:$LINENO: result: no" >&5
8787echo "${ECHO_T}no" >&6
bec39cab
AC
8788fi
8789
8790fi
8791if test -z "$ac_cv_prog_RANLIB"; then
8792 ac_ct_RANLIB=$RANLIB
8793 # Extract the first word of "ranlib", so it can be a program name with args.
8794set dummy ranlib; ac_word=$2
b4e70030
JB
8795echo "$as_me:$LINENO: checking for $ac_word" >&5
8796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8797if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8799else
8800 if test -n "$ac_ct_RANLIB"; then
8801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8802else
8803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804for as_dir in $PATH
8805do
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8810 ac_cv_prog_ac_ct_RANLIB="ranlib"
8811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 break 2
8813 fi
8814done
8815done
8816
b4e70030 8817 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
8818fi
8819fi
8820ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8821if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
8822 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8823echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 8824else
b4e70030
JB
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
bec39cab
AC
8827fi
8828
b4e70030 8829 RANLIB=$ac_ct_RANLIB
bec39cab
AC
8830else
8831 RANLIB="$ac_cv_prog_RANLIB"
8832fi
8833
8834for ac_prog in 'bison -y' byacc
8835do
8836 # Extract the first word of "$ac_prog", so it can be a program name with args.
8837set dummy $ac_prog; ac_word=$2
b4e70030
JB
8838echo "$as_me:$LINENO: checking for $ac_word" >&5
8839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8840if test "${ac_cv_prog_YACC+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842else
8843 if test -n "$YACC"; then
8844 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8845else
8846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847for as_dir in $PATH
8848do
8849 IFS=$as_save_IFS
8850 test -z "$as_dir" && as_dir=.
8851 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8853 ac_cv_prog_YACC="$ac_prog"
8854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 break 2
8856 fi
8857done
8858done
8859
8860fi
8861fi
8862YACC=$ac_cv_prog_YACC
8863if test -n "$YACC"; then
b4e70030
JB
8864 echo "$as_me:$LINENO: result: $YACC" >&5
8865echo "${ECHO_T}$YACC" >&6
bec39cab 8866else
b4e70030
JB
8867 echo "$as_me:$LINENO: result: no" >&5
8868echo "${ECHO_T}no" >&6
bec39cab
AC
8869fi
8870
8871 test -n "$YACC" && break
8872done
8873test -n "$YACC" || YACC="yacc"
8874
8875
8876if test -n "$ac_tool_prefix"; then
8877 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8878set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
8879echo "$as_me:$LINENO: checking for $ac_word" >&5
8880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8881if test "${ac_cv_prog_AR+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8883else
8884 if test -n "$AR"; then
8885 ac_cv_prog_AR="$AR" # Let the user override the test.
8886else
8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8894 ac_cv_prog_AR="${ac_tool_prefix}ar"
8895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8897 fi
8898done
8899done
8900
8901fi
8902fi
8903AR=$ac_cv_prog_AR
8904if test -n "$AR"; then
b4e70030
JB
8905 echo "$as_me:$LINENO: result: $AR" >&5
8906echo "${ECHO_T}$AR" >&6
bec39cab 8907else
b4e70030
JB
8908 echo "$as_me:$LINENO: result: no" >&5
8909echo "${ECHO_T}no" >&6
bec39cab
AC
8910fi
8911
8912fi
8913if test -z "$ac_cv_prog_AR"; then
8914 ac_ct_AR=$AR
8915 # Extract the first word of "ar", so it can be a program name with args.
8916set dummy ar; ac_word=$2
b4e70030
JB
8917echo "$as_me:$LINENO: checking for $ac_word" >&5
8918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8919if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921else
8922 if test -n "$ac_ct_AR"; then
8923 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8924else
8925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926for as_dir in $PATH
8927do
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8932 ac_cv_prog_ac_ct_AR="ar"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 break 2
8935 fi
8936done
8937done
8938
8939fi
8940fi
8941ac_ct_AR=$ac_cv_prog_ac_ct_AR
8942if test -n "$ac_ct_AR"; then
b4e70030
JB
8943 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8944echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 8945else
b4e70030
JB
8946 echo "$as_me:$LINENO: result: no" >&5
8947echo "${ECHO_T}no" >&6
bec39cab
AC
8948fi
8949
b4e70030 8950 AR=$ac_ct_AR
bec39cab
AC
8951else
8952 AR="$ac_cv_prog_AR"
8953fi
8954
8955if test -n "$ac_tool_prefix"; then
8956 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8957set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
8958echo "$as_me:$LINENO: checking for $ac_word" >&5
8959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8960if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962else
8963 if test -n "$DLLTOOL"; then
8964 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8965else
8966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967for as_dir in $PATH
8968do
8969 IFS=$as_save_IFS
8970 test -z "$as_dir" && as_dir=.
8971 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8973 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8975 break 2
8976 fi
8977done
8978done
8979
8980fi
8981fi
8982DLLTOOL=$ac_cv_prog_DLLTOOL
8983if test -n "$DLLTOOL"; then
b4e70030
JB
8984 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8985echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 8986else
b4e70030
JB
8987 echo "$as_me:$LINENO: result: no" >&5
8988echo "${ECHO_T}no" >&6
bec39cab
AC
8989fi
8990
8991fi
8992if test -z "$ac_cv_prog_DLLTOOL"; then
8993 ac_ct_DLLTOOL=$DLLTOOL
8994 # Extract the first word of "dlltool", so it can be a program name with args.
8995set dummy dlltool; ac_word=$2
b4e70030
JB
8996echo "$as_me:$LINENO: checking for $ac_word" >&5
8997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8998if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9000else
9001 if test -n "$ac_ct_DLLTOOL"; then
9002 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9003else
9004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005for as_dir in $PATH
9006do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9011 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9014 fi
9015done
9016done
9017
9018fi
9019fi
9020ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9021if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
9022 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9023echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 9024else
b4e70030
JB
9025 echo "$as_me:$LINENO: result: no" >&5
9026echo "${ECHO_T}no" >&6
bec39cab
AC
9027fi
9028
b4e70030 9029 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
9030else
9031 DLLTOOL="$ac_cv_prog_DLLTOOL"
9032fi
9033
9034if test -n "$ac_tool_prefix"; then
9035 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9036set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
9037echo "$as_me:$LINENO: checking for $ac_word" >&5
9038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9039if test "${ac_cv_prog_WINDRES+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9041else
9042 if test -n "$WINDRES"; then
9043 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9044else
9045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046for as_dir in $PATH
9047do
9048 IFS=$as_save_IFS
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9052 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 break 2
9055 fi
9056done
9057done
9058
9059fi
9060fi
9061WINDRES=$ac_cv_prog_WINDRES
9062if test -n "$WINDRES"; then
b4e70030
JB
9063 echo "$as_me:$LINENO: result: $WINDRES" >&5
9064echo "${ECHO_T}$WINDRES" >&6
bec39cab 9065else
b4e70030
JB
9066 echo "$as_me:$LINENO: result: no" >&5
9067echo "${ECHO_T}no" >&6
bec39cab
AC
9068fi
9069
9070fi
9071if test -z "$ac_cv_prog_WINDRES"; then
9072 ac_ct_WINDRES=$WINDRES
9073 # Extract the first word of "windres", so it can be a program name with args.
9074set dummy windres; ac_word=$2
b4e70030
JB
9075echo "$as_me:$LINENO: checking for $ac_word" >&5
9076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9077if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079else
9080 if test -n "$ac_ct_WINDRES"; then
9081 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9082else
9083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084for as_dir in $PATH
9085do
9086 IFS=$as_save_IFS
9087 test -z "$as_dir" && as_dir=.
9088 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9090 ac_cv_prog_ac_ct_WINDRES="windres"
9091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9092 break 2
9093 fi
9094done
9095done
9096
9097fi
9098fi
9099ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9100if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
9101 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9102echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 9103else
b4e70030
JB
9104 echo "$as_me:$LINENO: result: no" >&5
9105echo "${ECHO_T}no" >&6
c906108c 9106fi
bec39cab 9107
b4e70030 9108 WINDRES=$ac_ct_WINDRES
c906108c 9109else
bec39cab 9110 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
9111fi
9112
bec39cab
AC
9113
9114# Needed for GNU/Hurd.
9115if test -n "$ac_tool_prefix"; then
9116 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9117set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
9118echo "$as_me:$LINENO: checking for $ac_word" >&5
9119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9120if test "${ac_cv_prog_MIG+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 9122else
bec39cab
AC
9123 if test -n "$MIG"; then
9124 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9125else
9126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127for as_dir in $PATH
9128do
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9133 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9136 fi
9137done
9138done
9139
c906108c 9140fi
bec39cab
AC
9141fi
9142MIG=$ac_cv_prog_MIG
9143if test -n "$MIG"; then
b4e70030
JB
9144 echo "$as_me:$LINENO: result: $MIG" >&5
9145echo "${ECHO_T}$MIG" >&6
c906108c 9146else
b4e70030
JB
9147 echo "$as_me:$LINENO: result: no" >&5
9148echo "${ECHO_T}no" >&6
c906108c
SS
9149fi
9150
bec39cab
AC
9151fi
9152if test -z "$ac_cv_prog_MIG"; then
9153 ac_ct_MIG=$MIG
9154 # Extract the first word of "mig", so it can be a program name with args.
9155set dummy mig; ac_word=$2
b4e70030
JB
9156echo "$as_me:$LINENO: checking for $ac_word" >&5
9157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9158if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160else
9161 if test -n "$ac_ct_MIG"; then
9162 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9163else
9164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165for as_dir in $PATH
9166do
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9171 ac_cv_prog_ac_ct_MIG="mig"
9172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9174 fi
9175done
9176done
c906108c 9177
bec39cab
AC
9178fi
9179fi
9180ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9181if test -n "$ac_ct_MIG"; then
b4e70030
JB
9182 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9183echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 9184else
b4e70030
JB
9185 echo "$as_me:$LINENO: result: no" >&5
9186echo "${ECHO_T}no" >&6
bec39cab 9187fi
c906108c 9188
b4e70030 9189 MIG=$ac_ct_MIG
bec39cab
AC
9190else
9191 MIG="$ac_cv_prog_MIG"
9192fi
c906108c 9193
c906108c 9194
bec39cab
AC
9195# ---------------------- #
9196# Checks for libraries. #
9197# ---------------------- #
c906108c 9198
bec39cab 9199# We might need to link with -lm; most simulators need it.
c906108c 9200
b4e70030
JB
9201echo "$as_me:$LINENO: checking for main in -lm" >&5
9202echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
9203if test "${ac_cv_lib_m_main+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9205else
9206 ac_check_lib_save_LIBS=$LIBS
9207LIBS="-lm $LIBS"
9208cat >conftest.$ac_ext <<_ACEOF
9209/* confdefs.h. */
9210_ACEOF
9211cat confdefs.h >>conftest.$ac_ext
9212cat >>conftest.$ac_ext <<_ACEOF
9213/* end confdefs.h. */
c906108c 9214
c906108c 9215
bec39cab
AC
9216int
9217main ()
9218{
b4e70030 9219main ();
bec39cab
AC
9220 ;
9221 return 0;
9222}
9223_ACEOF
9224rm -f conftest.$ac_objext conftest$ac_exeext
9225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226 (eval $ac_link) 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
b4e70030
JB
9233 { ac_try='test -z "$ac_c_werror_flag"
9234 || test ! -s conftest.err'
bec39cab
AC
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; } &&
9240 { ac_try='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 (eval $ac_try) 2>&5
9243 ac_status=$?
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 ac_cv_lib_m_main=yes
9247else
9248 echo "$as_me: failed program was:" >&5
9249sed 's/^/| /' conftest.$ac_ext >&5
9250
b4e70030 9251ac_cv_lib_m_main=no
bec39cab
AC
9252fi
9253rm -f conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9255LIBS=$ac_check_lib_save_LIBS
9256fi
b4e70030
JB
9257echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9258echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
9259if test $ac_cv_lib_m_main = yes; then
9260 cat >>confdefs.h <<_ACEOF
9261#define HAVE_LIBM 1
9262_ACEOF
9263
9264 LIBS="-lm $LIBS"
c906108c 9265
c906108c 9266fi
bec39cab
AC
9267
9268
9269# We need to link with -lw to get `wctype' on Solaris before Solaris
9270# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9271# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9272# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
9273echo "$as_me:$LINENO: checking for wctype" >&5
9274echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
9275if test "${ac_cv_func_wctype+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277else
9278 cat >conftest.$ac_ext <<_ACEOF
9279/* confdefs.h. */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h. */
9284/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9286#define wctype innocuous_wctype
9287
9288/* System header to define __stub macros and hopefully few prototypes,
9289 which can conflict with char wctype (); below.
9290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9291 <limits.h> exists even on freestanding compilers. */
9292
9293#ifdef __STDC__
9294# include <limits.h>
9295#else
9296# include <assert.h>
9297#endif
9298
9299#undef wctype
9300
b4e70030 9301/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9302#ifdef __cplusplus
9303extern "C"
b4e70030 9304{
bec39cab 9305#endif
b4e70030
JB
9306/* We use char because int might match the return type of a gcc2
9307 builtin and then its argument prototype would still apply. */
bec39cab
AC
9308char wctype ();
9309/* The GNU C library defines this for functions which it implements
9310 to always fail with ENOSYS. Some functions are actually named
9311 something starting with __ and the normal name is an alias. */
b4e70030 9312#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 9313choke me
b4e70030
JB
9314#else
9315char (*f) () = wctype;
9316#endif
9317#ifdef __cplusplus
9318}
bec39cab
AC
9319#endif
9320
9321int
9322main ()
9323{
b4e70030 9324return f != wctype;
bec39cab
AC
9325 ;
9326 return 0;
9327}
9328_ACEOF
9329rm -f conftest.$ac_objext conftest$ac_exeext
9330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331 (eval $ac_link) 2>conftest.er1
9332 ac_status=$?
9333 grep -v '^ *+' conftest.er1 >conftest.err
9334 rm -f conftest.er1
9335 cat conftest.err >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } &&
b4e70030
JB
9338 { ac_try='test -z "$ac_c_werror_flag"
9339 || test ! -s conftest.err'
bec39cab
AC
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; } &&
9345 { ac_try='test -s conftest$ac_exeext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_func_wctype=yes
9352else
9353 echo "$as_me: failed program was:" >&5
9354sed 's/^/| /' conftest.$ac_ext >&5
9355
b4e70030 9356ac_cv_func_wctype=no
bec39cab
AC
9357fi
9358rm -f conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360fi
b4e70030
JB
9361echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9362echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
9363if test $ac_cv_func_wctype = yes; then
9364 :
c906108c 9365else
c906108c 9366
b4e70030
JB
9367echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9368echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
9369if test "${ac_cv_lib_w_wctype+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9371else
9372 ac_check_lib_save_LIBS=$LIBS
9373LIBS="-lw $LIBS"
9374cat >conftest.$ac_ext <<_ACEOF
9375/* confdefs.h. */
9376_ACEOF
9377cat confdefs.h >>conftest.$ac_ext
9378cat >>conftest.$ac_ext <<_ACEOF
9379/* end confdefs.h. */
c906108c 9380
b4e70030 9381/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9382#ifdef __cplusplus
9383extern "C"
9384#endif
b4e70030
JB
9385/* We use char because int might match the return type of a gcc2
9386 builtin and then its argument prototype would still apply. */
bec39cab
AC
9387char wctype ();
9388int
9389main ()
9390{
b4e70030 9391wctype ();
bec39cab
AC
9392 ;
9393 return 0;
9394}
9395_ACEOF
9396rm -f conftest.$ac_objext conftest$ac_exeext
9397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9398 (eval $ac_link) 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
b4e70030
JB
9405 { ac_try='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
bec39cab
AC
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_cv_lib_w_wctype=yes
9419else
9420 echo "$as_me: failed program was:" >&5
9421sed 's/^/| /' conftest.$ac_ext >&5
9422
b4e70030 9423ac_cv_lib_w_wctype=no
bec39cab
AC
9424fi
9425rm -f conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
9427LIBS=$ac_check_lib_save_LIBS
9428fi
b4e70030
JB
9429echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9430echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
9431if test $ac_cv_lib_w_wctype = yes; then
9432 cat >>confdefs.h <<_ACEOF
9433#define HAVE_LIBW 1
9434_ACEOF
c906108c 9435
bec39cab 9436 LIBS="-lw $LIBS"
c906108c 9437
bec39cab 9438fi
c906108c 9439
bec39cab 9440fi
c906108c 9441
ddc9cd0f 9442
bec39cab 9443# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
9444echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9445echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
9446if test "${ac_cv_search_gethostbyname+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448else
9449 ac_func_search_save_LIBS=$LIBS
b4e70030 9450ac_cv_search_gethostbyname=no
bec39cab
AC
9451cat >conftest.$ac_ext <<_ACEOF
9452/* confdefs.h. */
9453_ACEOF
9454cat confdefs.h >>conftest.$ac_ext
9455cat >>conftest.$ac_ext <<_ACEOF
9456/* end confdefs.h. */
ddc9cd0f 9457
b4e70030 9458/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9459#ifdef __cplusplus
9460extern "C"
9461#endif
b4e70030
JB
9462/* We use char because int might match the return type of a gcc2
9463 builtin and then its argument prototype would still apply. */
bec39cab
AC
9464char gethostbyname ();
9465int
9466main ()
9467{
b4e70030 9468gethostbyname ();
bec39cab
AC
9469 ;
9470 return 0;
9471}
9472_ACEOF
b4e70030 9473rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475 (eval $ac_link) 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } &&
b4e70030
JB
9482 { ac_try='test -z "$ac_c_werror_flag"
9483 || test ! -s conftest.err'
bec39cab
AC
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; } &&
9489 { ac_try='test -s conftest$ac_exeext'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 (eval $ac_try) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
b4e70030 9495 ac_cv_search_gethostbyname="none required"
bec39cab
AC
9496else
9497 echo "$as_me: failed program was:" >&5
9498sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 9499
bec39cab
AC
9500fi
9501rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9502 conftest$ac_exeext conftest.$ac_ext
9503if test "$ac_cv_search_gethostbyname" = no; then
9504 for ac_lib in nsl; do
9505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9506 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9507/* confdefs.h. */
9508_ACEOF
9509cat confdefs.h >>conftest.$ac_ext
9510cat >>conftest.$ac_ext <<_ACEOF
9511/* end confdefs.h. */
ddc9cd0f 9512
b4e70030 9513/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9514#ifdef __cplusplus
9515extern "C"
9516#endif
b4e70030
JB
9517/* We use char because int might match the return type of a gcc2
9518 builtin and then its argument prototype would still apply. */
9519char gethostbyname ();
bec39cab
AC
9520int
9521main ()
9522{
b4e70030 9523gethostbyname ();
bec39cab
AC
9524 ;
9525 return 0;
9526}
9527_ACEOF
b4e70030 9528rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9530 (eval $ac_link) 2>conftest.er1
9531 ac_status=$?
9532 grep -v '^ *+' conftest.er1 >conftest.err
9533 rm -f conftest.er1
9534 cat conftest.err >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } &&
b4e70030
JB
9537 { ac_try='test -z "$ac_c_werror_flag"
9538 || test ! -s conftest.err'
bec39cab
AC
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 (eval $ac_try) 2>&5
9541 ac_status=$?
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; } &&
9544 { ac_try='test -s conftest$ac_exeext'
9545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 (eval $ac_try) 2>&5
9547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; }; then
b4e70030
JB
9550 ac_cv_search_gethostbyname="-l$ac_lib"
9551break
bec39cab
AC
9552else
9553 echo "$as_me: failed program was:" >&5
9554sed 's/^/| /' conftest.$ac_ext >&5
9555
9556fi
9557rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9558 conftest$ac_exeext conftest.$ac_ext
9559 done
bec39cab
AC
9560fi
9561LIBS=$ac_func_search_save_LIBS
9562fi
b4e70030
JB
9563echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9564echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9565if test "$ac_cv_search_gethostbyname" != no; then
9566 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 9567
bec39cab 9568fi
96baa820 9569
c906108c 9570
b4e70030
JB
9571# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9572echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9573echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9574if test "${ac_cv_search_socketpair+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576else
9577 ac_func_search_save_LIBS=$LIBS
9578ac_cv_search_socketpair=no
9579cat >conftest.$ac_ext <<_ACEOF
9580/* confdefs.h. */
9581_ACEOF
9582cat confdefs.h >>conftest.$ac_ext
9583cat >>conftest.$ac_ext <<_ACEOF
9584/* end confdefs.h. */
9585
9586/* Override any gcc2 internal prototype to avoid an error. */
9587#ifdef __cplusplus
9588extern "C"
9589#endif
9590/* We use char because int might match the return type of a gcc2
9591 builtin and then its argument prototype would still apply. */
9592char socketpair ();
9593int
9594main ()
9595{
9596socketpair ();
9597 ;
9598 return 0;
9599}
9600_ACEOF
9601rm -f conftest.$ac_objext conftest$ac_exeext
9602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest$ac_exeext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 ac_cv_search_socketpair="none required"
9624else
9625 echo "$as_me: failed program was:" >&5
9626sed 's/^/| /' conftest.$ac_ext >&5
9627
9628fi
9629rm -f conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631if test "$ac_cv_search_socketpair" = no; then
9632 for ac_lib in socket; do
9633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9634 cat >conftest.$ac_ext <<_ACEOF
9635/* confdefs.h. */
9636_ACEOF
9637cat confdefs.h >>conftest.$ac_ext
9638cat >>conftest.$ac_ext <<_ACEOF
9639/* end confdefs.h. */
9640
9641/* Override any gcc2 internal prototype to avoid an error. */
9642#ifdef __cplusplus
9643extern "C"
9644#endif
9645/* We use char because int might match the return type of a gcc2
9646 builtin and then its argument prototype would still apply. */
9647char socketpair ();
9648int
9649main ()
9650{
9651socketpair ();
9652 ;
9653 return 0;
9654}
9655_ACEOF
9656rm -f conftest.$ac_objext conftest$ac_exeext
9657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>conftest.er1
9659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } &&
9665 { ac_try='test -z "$ac_c_werror_flag"
9666 || test ! -s conftest.err'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; } &&
9672 { ac_try='test -s conftest$ac_exeext'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 (eval $ac_try) 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 ac_cv_search_socketpair="-l$ac_lib"
9679break
9680else
9681 echo "$as_me: failed program was:" >&5
9682sed 's/^/| /' conftest.$ac_ext >&5
9683
9684fi
9685rm -f conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 done
9688fi
9689LIBS=$ac_func_search_save_LIBS
9690fi
9691echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9692echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9693if test "$ac_cv_search_socketpair" != no; then
9694 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9695
9696fi
9697
9698
233a11ab
CS
9699# Link in zlib if we can. This allows us to read compressed debug sections.
9700echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9701echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9702if test "${ac_cv_search_zlibVersion+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705 ac_func_search_save_LIBS=$LIBS
9706ac_cv_search_zlibVersion=no
9707cat >conftest.$ac_ext <<_ACEOF
9708/* confdefs.h. */
9709_ACEOF
9710cat confdefs.h >>conftest.$ac_ext
9711cat >>conftest.$ac_ext <<_ACEOF
9712/* end confdefs.h. */
9713
9714/* Override any gcc2 internal prototype to avoid an error. */
9715#ifdef __cplusplus
9716extern "C"
9717#endif
9718/* We use char because int might match the return type of a gcc2
9719 builtin and then its argument prototype would still apply. */
9720char zlibVersion ();
9721int
9722main ()
9723{
9724zlibVersion ();
9725 ;
9726 return 0;
9727}
9728_ACEOF
9729rm -f conftest.$ac_objext conftest$ac_exeext
9730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731 (eval $ac_link) 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag"
9739 || test ! -s conftest.err'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; } &&
9745 { ac_try='test -s conftest$ac_exeext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_cv_search_zlibVersion="none required"
9752else
9753 echo "$as_me: failed program was:" >&5
9754sed 's/^/| /' conftest.$ac_ext >&5
9755
9756fi
9757rm -f conftest.err conftest.$ac_objext \
9758 conftest$ac_exeext conftest.$ac_ext
9759if test "$ac_cv_search_zlibVersion" = no; then
9760 for ac_lib in z; do
9761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9762 cat >conftest.$ac_ext <<_ACEOF
9763/* confdefs.h. */
9764_ACEOF
9765cat confdefs.h >>conftest.$ac_ext
9766cat >>conftest.$ac_ext <<_ACEOF
9767/* end confdefs.h. */
9768
9769/* Override any gcc2 internal prototype to avoid an error. */
9770#ifdef __cplusplus
9771extern "C"
9772#endif
9773/* We use char because int might match the return type of a gcc2
9774 builtin and then its argument prototype would still apply. */
9775char zlibVersion ();
9776int
9777main ()
9778{
9779zlibVersion ();
9780 ;
9781 return 0;
9782}
9783_ACEOF
9784rm -f conftest.$ac_objext conftest$ac_exeext
9785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786 (eval $ac_link) 2>conftest.er1
9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -z "$ac_c_werror_flag"
9794 || test ! -s conftest.err'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 (eval $ac_try) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_search_zlibVersion="-l$ac_lib"
9807break
9808else
9809 echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
9811
9812fi
9813rm -f conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815 done
9816fi
9817LIBS=$ac_func_search_save_LIBS
9818fi
9819echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9820echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9821if test "$ac_cv_search_zlibVersion" != no; then
9822 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9823
9824for ac_header in zlib.h
9825do
9826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9827if eval "test \"\${$as_ac_Header+set}\" = set"; then
9828 echo "$as_me:$LINENO: checking for $ac_header" >&5
9829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9830if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832fi
9833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9835else
9836 # Is the header compilable?
9837echo "$as_me:$LINENO: checking $ac_header usability" >&5
9838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9839cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h. */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h. */
9845$ac_includes_default
9846#include <$ac_header>
9847_ACEOF
9848rm -f conftest.$ac_objext
9849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850 (eval $ac_compile) 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -z "$ac_c_werror_flag"
9858 || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 (eval $ac_try) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest.$ac_objext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 (eval $ac_try) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 ac_header_compiler=yes
9871else
9872 echo "$as_me: failed program was:" >&5
9873sed 's/^/| /' conftest.$ac_ext >&5
9874
9875ac_header_compiler=no
9876fi
9877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9879echo "${ECHO_T}$ac_header_compiler" >&6
9880
9881# Is the header present?
9882echo "$as_me:$LINENO: checking $ac_header presence" >&5
9883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9884cat >conftest.$ac_ext <<_ACEOF
9885/* confdefs.h. */
9886_ACEOF
9887cat confdefs.h >>conftest.$ac_ext
9888cat >>conftest.$ac_ext <<_ACEOF
9889/* end confdefs.h. */
9890#include <$ac_header>
9891_ACEOF
9892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } >/dev/null; then
9900 if test -s conftest.err; then
9901 ac_cpp_err=$ac_c_preproc_warn_flag
9902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9903 else
9904 ac_cpp_err=
9905 fi
9906else
9907 ac_cpp_err=yes
9908fi
9909if test -z "$ac_cpp_err"; then
9910 ac_header_preproc=yes
9911else
9912 echo "$as_me: failed program was:" >&5
9913sed 's/^/| /' conftest.$ac_ext >&5
9914
9915 ac_header_preproc=no
9916fi
9917rm -f conftest.err conftest.$ac_ext
9918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9919echo "${ECHO_T}$ac_header_preproc" >&6
9920
9921# So? What about this header?
9922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9923 yes:no: )
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9928 ac_header_preproc=yes
9929 ;;
9930 no:yes:* )
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9938echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9943 (
9944 cat <<\_ASBOX
9945## ------------------------------------------ ##
9946## Report this to the AC_PACKAGE_NAME lists. ##
9947## ------------------------------------------ ##
9948_ASBOX
9949 ) |
9950 sed "s/^/$as_me: WARNING: /" >&2
9951 ;;
9952esac
9953echo "$as_me:$LINENO: checking for $ac_header" >&5
9954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9955if eval "test \"\${$as_ac_Header+set}\" = set"; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957else
9958 eval "$as_ac_Header=\$ac_header_preproc"
9959fi
9960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9962
9963fi
9964if test `eval echo '${'$as_ac_Header'}'` = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9967_ACEOF
9968
9969fi
9970
9971done
9972
9973fi
9974
9975
b4e70030 9976# For the TUI, we need enhanced curses functionality.
bec39cab
AC
9977#
9978# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9979# curses library because the latter might not provide all the
9980# functionality we need. However, this leads to problems on systems
9981# where the linker searches /usr/local/lib, but the compiler doesn't
9982# search /usr/local/include, if ncurses is installed in /usr/local. A
9983# default installation of ncurses on alpha*-dec-osf* will lead to such
9984# a situation.
b4e70030
JB
9985echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9986echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
9987if test "${ac_cv_search_waddstr+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989else
9990 ac_func_search_save_LIBS=$LIBS
b4e70030 9991ac_cv_search_waddstr=no
bec39cab
AC
9992cat >conftest.$ac_ext <<_ACEOF
9993/* confdefs.h. */
9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h. */
c906108c 9998
b4e70030 9999/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10000#ifdef __cplusplus
10001extern "C"
10002#endif
b4e70030
JB
10003/* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
bec39cab
AC
10005char waddstr ();
10006int
10007main ()
10008{
b4e70030 10009waddstr ();
bec39cab
AC
10010 ;
10011 return 0;
10012}
10013_ACEOF
b4e70030 10014rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
b4e70030
JB
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
bec39cab
AC
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
b4e70030 10036 ac_cv_search_waddstr="none required"
bec39cab
AC
10037else
10038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
10040
10041fi
bec39cab 10042rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10043 conftest$ac_exeext conftest.$ac_ext
10044if test "$ac_cv_search_waddstr" = no; then
10045 for ac_lib in ncurses cursesX curses; do
10046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10047 cat >conftest.$ac_ext <<_ACEOF
10048/* confdefs.h. */
10049_ACEOF
10050cat confdefs.h >>conftest.$ac_ext
10051cat >>conftest.$ac_ext <<_ACEOF
10052/* end confdefs.h. */
10053
10054/* Override any gcc2 internal prototype to avoid an error. */
10055#ifdef __cplusplus
10056extern "C"
10057#endif
10058/* We use char because int might match the return type of a gcc2
10059 builtin and then its argument prototype would still apply. */
10060char waddstr ();
10061int
10062main ()
10063{
10064waddstr ();
10065 ;
10066 return 0;
10067}
10068_ACEOF
10069rm -f conftest.$ac_objext conftest$ac_exeext
10070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071 (eval $ac_link) 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag"
10079 || test ! -s conftest.err'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest$ac_exeext'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_search_waddstr="-l$ac_lib"
10092break
4e8d927d 10093else
b4e70030
JB
10094 echo "$as_me: failed program was:" >&5
10095sed 's/^/| /' conftest.$ac_ext >&5
10096
10097fi
10098rm -f conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10100 done
1ba607ad 10101fi
bec39cab
AC
10102LIBS=$ac_func_search_save_LIBS
10103fi
b4e70030
JB
10104echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10105echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10106if test "$ac_cv_search_waddstr" != no; then
10107 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 10108
8bb2c122 10109fi
8bb2c122 10110
8bb2c122 10111
d542061a
UW
10112# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10113echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10114echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10115if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10117else
10118 ac_func_search_save_LIBS=$LIBS
10119ac_cv_search_dlgetmodinfo=no
10120cat >conftest.$ac_ext <<_ACEOF
10121/* confdefs.h. */
10122_ACEOF
10123cat confdefs.h >>conftest.$ac_ext
10124cat >>conftest.$ac_ext <<_ACEOF
10125/* end confdefs.h. */
10126
10127/* Override any gcc2 internal prototype to avoid an error. */
10128#ifdef __cplusplus
10129extern "C"
10130#endif
10131/* We use char because int might match the return type of a gcc2
10132 builtin and then its argument prototype would still apply. */
10133char dlgetmodinfo ();
10134int
10135main ()
10136{
10137dlgetmodinfo ();
10138 ;
10139 return 0;
10140}
10141_ACEOF
10142rm -f conftest.$ac_objext conftest$ac_exeext
10143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_cv_search_dlgetmodinfo="none required"
10165else
10166 echo "$as_me: failed program was:" >&5
10167sed 's/^/| /' conftest.$ac_ext >&5
10168
10169fi
10170rm -f conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10172if test "$ac_cv_search_dlgetmodinfo" = no; then
10173 for ac_lib in dl xpdl; do
10174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10175 cat >conftest.$ac_ext <<_ACEOF
10176/* confdefs.h. */
10177_ACEOF
10178cat confdefs.h >>conftest.$ac_ext
10179cat >>conftest.$ac_ext <<_ACEOF
10180/* end confdefs.h. */
10181
10182/* Override any gcc2 internal prototype to avoid an error. */
10183#ifdef __cplusplus
10184extern "C"
10185#endif
10186/* We use char because int might match the return type of a gcc2
10187 builtin and then its argument prototype would still apply. */
10188char dlgetmodinfo ();
10189int
10190main ()
10191{
10192dlgetmodinfo ();
10193 ;
10194 return 0;
10195}
10196_ACEOF
10197rm -f conftest.$ac_objext conftest$ac_exeext
10198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199 (eval $ac_link) 2>conftest.er1
10200 ac_status=$?
10201 grep -v '^ *+' conftest.er1 >conftest.err
10202 rm -f conftest.er1
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } &&
10206 { ac_try='test -z "$ac_c_werror_flag"
10207 || test ! -s conftest.err'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; } &&
10213 { ac_try='test -s conftest$ac_exeext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10220break
10221else
10222 echo "$as_me: failed program was:" >&5
10223sed 's/^/| /' conftest.$ac_ext >&5
10224
10225fi
10226rm -f conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 done
10229fi
10230LIBS=$ac_func_search_save_LIBS
10231fi
10232echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10233echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10234if test "$ac_cv_search_dlgetmodinfo" != no; then
10235 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10236
10237fi
10238
10239
bec39cab
AC
10240# Since GDB uses Readline, we need termcap functionality. In many
10241# cases this will be provided by the curses library, but some systems
10242# have a seperate termcap library, or no curses library at all.
8bb2c122 10243
bec39cab
AC
10244case $host_os in
10245 cygwin*)
10246 if test -d $srcdir/libtermcap; then
10247 LIBS="../libtermcap/libtermcap.a $LIBS"
10248 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10249 fi ;;
10250 go32* | *djgpp*)
10251 ac_cv_search_tgetent="none required"
10252 ;;
7ef34f2c
MM
10253 *mingw32*)
10254 ac_cv_search_tgetent="none required"
10255 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10256 ;;
bec39cab 10257esac
627af7ea 10258
bec39cab 10259# These are the libraries checked by Readline.
b4e70030
JB
10260echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10261echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
10262if test "${ac_cv_search_tgetent+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265 ac_func_search_save_LIBS=$LIBS
b4e70030 10266ac_cv_search_tgetent=no
bec39cab
AC
10267cat >conftest.$ac_ext <<_ACEOF
10268/* confdefs.h. */
10269_ACEOF
10270cat confdefs.h >>conftest.$ac_ext
10271cat >>conftest.$ac_ext <<_ACEOF
10272/* end confdefs.h. */
10273
b4e70030 10274/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10275#ifdef __cplusplus
10276extern "C"
10277#endif
b4e70030
JB
10278/* We use char because int might match the return type of a gcc2
10279 builtin and then its argument prototype would still apply. */
bec39cab
AC
10280char tgetent ();
10281int
10282main ()
10283{
b4e70030 10284tgetent ();
bec39cab
AC
10285 ;
10286 return 0;
10287}
10288_ACEOF
b4e70030 10289rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291 (eval $ac_link) 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
b4e70030
JB
10298 { ac_try='test -z "$ac_c_werror_flag"
10299 || test ! -s conftest.err'
bec39cab
AC
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest$ac_exeext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
b4e70030 10311 ac_cv_search_tgetent="none required"
627af7ea 10312else
bec39cab
AC
10313 echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 10315
627af7ea 10316fi
bec39cab 10317rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10318 conftest$ac_exeext conftest.$ac_ext
10319if test "$ac_cv_search_tgetent" = no; then
10320 for ac_lib in termcap tinfo curses ncurses; do
10321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10322 cat >conftest.$ac_ext <<_ACEOF
10323/* confdefs.h. */
10324_ACEOF
10325cat confdefs.h >>conftest.$ac_ext
10326cat >>conftest.$ac_ext <<_ACEOF
10327/* end confdefs.h. */
10328
10329/* Override any gcc2 internal prototype to avoid an error. */
10330#ifdef __cplusplus
10331extern "C"
10332#endif
10333/* We use char because int might match the return type of a gcc2
10334 builtin and then its argument prototype would still apply. */
10335char tgetent ();
10336int
10337main ()
10338{
10339tgetent ();
10340 ;
10341 return 0;
10342}
10343_ACEOF
10344rm -f conftest.$ac_objext conftest$ac_exeext
10345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346 (eval $ac_link) 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -z "$ac_c_werror_flag"
10354 || test ! -s conftest.err'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest$ac_exeext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_cv_search_tgetent="-l$ac_lib"
10367break
4e8d927d 10368else
b4e70030
JB
10369 echo "$as_me: failed program was:" >&5
10370sed 's/^/| /' conftest.$ac_ext >&5
10371
10372fi
10373rm -f conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 done
bec39cab
AC
10376fi
10377LIBS=$ac_func_search_save_LIBS
10378fi
b4e70030
JB
10379echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10380echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10381if test "$ac_cv_search_tgetent" != no; then
10382 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 10383
06825bd1
MK
10384fi
10385
06825bd1 10386
bec39cab
AC
10387if test "$ac_cv_search_tgetent" = no; then
10388 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10389echo "$as_me: error: no termcap library found" >&2;}
10390 { (exit 1); exit 1; }; }
8ee53726
MK
10391fi
10392
3841debe 10393
6a30b0a5
AS
10394# Check whether --with-system-readline or --without-system-readline was given.
10395if test "${with_system_readline+set}" = set; then
10396 withval="$with_system_readline"
10397
10398fi;
10399
10400if test "$with_system_readline" = yes; then
10401 READLINE=-lreadline
10402 READLINE_DEPS=
10403 READLINE_CFLAGS=
10404else
10405 READLINE='$(READLINE_DIR)/libreadline.a'
10406 READLINE_DEPS='$(READLINE)'
10407 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10408fi
10409
10410
10411
10412
10413
5c39566f
DJ
10414# Check whether --with-expat or --without-expat was given.
10415if test "${with_expat+set}" = set; then
10416 withval="$with_expat"
10417
10418else
10419 with_expat=auto
10420fi;
10421echo "$as_me:$LINENO: checking whether to use expat" >&5
10422echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10423echo "$as_me:$LINENO: result: $with_expat" >&5
10424echo "${ECHO_T}$with_expat" >&6
10425
10426if test "${with_expat}" = no; then
10427 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10428echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10429 HAVE_LIBEXPAT=no
10430else
10431
3841debe
DJ
10432 if test "X$prefix" = "XNONE"; then
10433 acl_final_prefix="$ac_default_prefix"
10434 else
10435 acl_final_prefix="$prefix"
10436 fi
10437 if test "X$exec_prefix" = "XNONE"; then
10438 acl_final_exec_prefix='${prefix}'
10439 else
10440 acl_final_exec_prefix="$exec_prefix"
10441 fi
10442 acl_save_prefix="$prefix"
10443 prefix="$acl_final_prefix"
10444 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10445 prefix="$acl_save_prefix"
10446
10447
10448# Check whether --with-gnu-ld or --without-gnu-ld was given.
10449if test "${with_gnu_ld+set}" = set; then
10450 withval="$with_gnu_ld"
10451 test "$withval" = no || with_gnu_ld=yes
10452else
10453 with_gnu_ld=no
10454fi;
10455# Prepare PATH_SEPARATOR.
10456# The user is always right.
10457if test "${PATH_SEPARATOR+set}" != set; then
10458 echo "#! /bin/sh" >conf$$.sh
10459 echo "exit 0" >>conf$$.sh
10460 chmod +x conf$$.sh
10461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10462 PATH_SEPARATOR=';'
10463 else
10464 PATH_SEPARATOR=:
10465 fi
10466 rm -f conf$$.sh
10467fi
10468ac_prog=ld
10469if test "$GCC" = yes; then
10470 # Check if gcc -print-prog-name=ld gives a path.
10471 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10472echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10473 case $host in
10474 *-*-mingw*)
10475 # gcc leaves a trailing carriage return which upsets mingw
10476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10477 *)
10478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10479 esac
10480 case $ac_prog in
10481 # Accept absolute paths.
10482 [\\/]* | [A-Za-z]:[\\/]*)
10483 re_direlt='/[^/][^/]*/\.\./'
10484 # Canonicalize the path of ld
10485 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10486 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10487 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10488 done
10489 test -z "$LD" && LD="$ac_prog"
10490 ;;
10491 "")
10492 # If it fails, then pretend we aren't using GCC.
10493 ac_prog=ld
10494 ;;
10495 *)
10496 # If it is relative, then search for the first ld in PATH.
10497 with_gnu_ld=unknown
10498 ;;
10499 esac
10500elif test "$with_gnu_ld" = yes; then
10501 echo "$as_me:$LINENO: checking for GNU ld" >&5
10502echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10503else
10504 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10505echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10506fi
10507if test "${acl_cv_path_LD+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509else
10510 if test -z "$LD"; then
10511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10512 for ac_dir in $PATH; do
10513 test -z "$ac_dir" && ac_dir=.
10514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10515 acl_cv_path_LD="$ac_dir/$ac_prog"
10516 # Check to see if the program is GNU ld. I'd rather use --version,
10517 # but apparently some GNU ld's only accept -v.
10518 # Break only if it was the GNU/non-GNU ld that we prefer.
10519 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10520 test "$with_gnu_ld" != no && break
10521 else
10522 test "$with_gnu_ld" != yes && break
10523 fi
10524 fi
10525 done
10526 IFS="$ac_save_ifs"
10527else
10528 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10529fi
10530fi
10531
10532LD="$acl_cv_path_LD"
10533if test -n "$LD"; then
10534 echo "$as_me:$LINENO: result: $LD" >&5
10535echo "${ECHO_T}$LD" >&6
10536else
10537 echo "$as_me:$LINENO: result: no" >&5
10538echo "${ECHO_T}no" >&6
10539fi
10540test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10541echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10542 { (exit 1); exit 1; }; }
10543echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10544echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10545if test "${acl_cv_prog_gnu_ld+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10549if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10550 acl_cv_prog_gnu_ld=yes
10551else
10552 acl_cv_prog_gnu_ld=no
10553fi
10554fi
10555echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10556echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10557with_gnu_ld=$acl_cv_prog_gnu_ld
10558
10559
10560
10561 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10562echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10563if test "${acl_cv_rpath+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565else
10566
10567 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10568 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10569 . ./conftest.sh
10570 rm -f ./conftest.sh
10571 acl_cv_rpath=done
10572
10573fi
10574echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10575echo "${ECHO_T}$acl_cv_rpath" >&6
10576 wl="$acl_cv_wl"
10577 libext="$acl_cv_libext"
10578 shlibext="$acl_cv_shlibext"
10579 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10580 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10581 hardcode_direct="$acl_cv_hardcode_direct"
10582 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10583 # Check whether --enable-rpath or --disable-rpath was given.
10584if test "${enable_rpath+set}" = set; then
10585 enableval="$enable_rpath"
10586 :
10587else
10588 enable_rpath=yes
10589fi;
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599 use_additional=yes
10600
10601 acl_save_prefix="$prefix"
10602 prefix="$acl_final_prefix"
10603 acl_save_exec_prefix="$exec_prefix"
10604 exec_prefix="$acl_final_exec_prefix"
10605
10606 eval additional_includedir=\"$includedir\"
10607 eval additional_libdir=\"$libdir\"
10608
10609 exec_prefix="$acl_save_exec_prefix"
10610 prefix="$acl_save_prefix"
10611
10612
10613# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10614if test "${with_libexpat_prefix+set}" = set; then
10615 withval="$with_libexpat_prefix"
10616
10617 if test "X$withval" = "Xno"; then
10618 use_additional=no
10619 else
10620 if test "X$withval" = "X"; then
10621
10622 acl_save_prefix="$prefix"
10623 prefix="$acl_final_prefix"
10624 acl_save_exec_prefix="$exec_prefix"
10625 exec_prefix="$acl_final_exec_prefix"
10626
10627 eval additional_includedir=\"$includedir\"
10628 eval additional_libdir=\"$libdir\"
10629
10630 exec_prefix="$acl_save_exec_prefix"
10631 prefix="$acl_save_prefix"
10632
10633 else
10634 additional_includedir="$withval/include"
10635 additional_libdir="$withval/lib"
10636 fi
10637 fi
10638
10639fi;
10640 LIBEXPAT=
10641 LTLIBEXPAT=
10642 INCEXPAT=
10643 rpathdirs=
10644 ltrpathdirs=
10645 names_already_handled=
10646 names_next_round='expat '
10647 while test -n "$names_next_round"; do
10648 names_this_round="$names_next_round"
10649 names_next_round=
10650 for name in $names_this_round; do
10651 already_handled=
10652 for n in $names_already_handled; do
10653 if test "$n" = "$name"; then
10654 already_handled=yes
10655 break
10656 fi
10657 done
10658 if test -z "$already_handled"; then
10659 names_already_handled="$names_already_handled $name"
10660 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10661 eval value=\"\$HAVE_LIB$uppername\"
10662 if test -n "$value"; then
10663 if test "$value" = yes; then
10664 eval value=\"\$LIB$uppername\"
10665 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10666 eval value=\"\$LTLIB$uppername\"
10667 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10668 else
10669 :
10670 fi
10671 else
10672 found_dir=
10673 found_la=
10674 found_so=
10675 found_a=
10676 if test $use_additional = yes; then
10677 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10678 found_dir="$additional_libdir"
10679 found_so="$additional_libdir/lib$name.$shlibext"
10680 if test -f "$additional_libdir/lib$name.la"; then
10681 found_la="$additional_libdir/lib$name.la"
10682 fi
10683 else
10684 if test -f "$additional_libdir/lib$name.$libext"; then
10685 found_dir="$additional_libdir"
10686 found_a="$additional_libdir/lib$name.$libext"
10687 if test -f "$additional_libdir/lib$name.la"; then
10688 found_la="$additional_libdir/lib$name.la"
10689 fi
10690 fi
10691 fi
10692 fi
10693 if test "X$found_dir" = "X"; then
10694 for x in $LDFLAGS $LTLIBEXPAT; do
10695
10696 acl_save_prefix="$prefix"
10697 prefix="$acl_final_prefix"
10698 acl_save_exec_prefix="$exec_prefix"
10699 exec_prefix="$acl_final_exec_prefix"
10700 eval x=\"$x\"
10701 exec_prefix="$acl_save_exec_prefix"
10702 prefix="$acl_save_prefix"
10703
10704 case "$x" in
10705 -L*)
10706 dir=`echo "X$x" | sed -e 's/^X-L//'`
10707 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10708 found_dir="$dir"
10709 found_so="$dir/lib$name.$shlibext"
10710 if test -f "$dir/lib$name.la"; then
10711 found_la="$dir/lib$name.la"
10712 fi
10713 else
10714 if test -f "$dir/lib$name.$libext"; then
10715 found_dir="$dir"
10716 found_a="$dir/lib$name.$libext"
10717 if test -f "$dir/lib$name.la"; then
10718 found_la="$dir/lib$name.la"
10719 fi
10720 fi
10721 fi
10722 ;;
10723 esac
10724 if test "X$found_dir" != "X"; then
10725 break
10726 fi
10727 done
10728 fi
10729 if test "X$found_dir" != "X"; then
10730 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10731 if test "X$found_so" != "X"; then
10732 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10733 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10734 else
10735 haveit=
10736 for x in $ltrpathdirs; do
10737 if test "X$x" = "X$found_dir"; then
10738 haveit=yes
10739 break
10740 fi
10741 done
10742 if test -z "$haveit"; then
10743 ltrpathdirs="$ltrpathdirs $found_dir"
10744 fi
10745 if test "$hardcode_direct" = yes; then
10746 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10747 else
10748 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10749 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10750 haveit=
10751 for x in $rpathdirs; do
10752 if test "X$x" = "X$found_dir"; then
10753 haveit=yes
10754 break
10755 fi
10756 done
10757 if test -z "$haveit"; then
10758 rpathdirs="$rpathdirs $found_dir"
10759 fi
10760 else
10761 haveit=
10762 for x in $LDFLAGS $LIBEXPAT; do
10763
10764 acl_save_prefix="$prefix"
10765 prefix="$acl_final_prefix"
10766 acl_save_exec_prefix="$exec_prefix"
10767 exec_prefix="$acl_final_exec_prefix"
10768 eval x=\"$x\"
10769 exec_prefix="$acl_save_exec_prefix"
10770 prefix="$acl_save_prefix"
10771
10772 if test "X$x" = "X-L$found_dir"; then
10773 haveit=yes
10774 break
10775 fi
10776 done
10777 if test -z "$haveit"; then
10778 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10779 fi
10780 if test "$hardcode_minus_L" != no; then
10781 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10782 else
10783 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10784 fi
10785 fi
10786 fi
10787 fi
10788 else
10789 if test "X$found_a" != "X"; then
10790 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10791 else
10792 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10793 fi
10794 fi
10795 additional_includedir=
10796 case "$found_dir" in
10797 */lib | */lib/)
10798 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10799 additional_includedir="$basedir/include"
10800 ;;
10801 esac
10802 if test "X$additional_includedir" != "X"; then
10803 if test "X$additional_includedir" != "X/usr/include"; then
10804 haveit=
10805 if test "X$additional_includedir" = "X/usr/local/include"; then
10806 if test -n "$GCC"; then
10807 case $host_os in
10808 linux*) haveit=yes;;
10809 esac
10810 fi
10811 fi
10812 if test -z "$haveit"; then
10813 for x in $CPPFLAGS $INCEXPAT; do
10814
10815 acl_save_prefix="$prefix"
10816 prefix="$acl_final_prefix"
10817 acl_save_exec_prefix="$exec_prefix"
10818 exec_prefix="$acl_final_exec_prefix"
10819 eval x=\"$x\"
10820 exec_prefix="$acl_save_exec_prefix"
10821 prefix="$acl_save_prefix"
10822
10823 if test "X$x" = "X-I$additional_includedir"; then
10824 haveit=yes
10825 break
10826 fi
10827 done
10828 if test -z "$haveit"; then
10829 if test -d "$additional_includedir"; then
10830 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10831 fi
10832 fi
10833 fi
10834 fi
10835 fi
10836 if test -n "$found_la"; then
10837 save_libdir="$libdir"
10838 case "$found_la" in
10839 */* | *\\*) . "$found_la" ;;
10840 *) . "./$found_la" ;;
10841 esac
10842 libdir="$save_libdir"
10843 for dep in $dependency_libs; do
10844 case "$dep" in
10845 -L*)
10846 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10847 if test "X$additional_libdir" != "X/usr/lib"; then
10848 haveit=
10849 if test "X$additional_libdir" = "X/usr/local/lib"; then
10850 if test -n "$GCC"; then
10851 case $host_os in
10852 linux*) haveit=yes;;
10853 esac
10854 fi
10855 fi
10856 if test -z "$haveit"; then
10857 haveit=
10858 for x in $LDFLAGS $LIBEXPAT; do
10859
10860 acl_save_prefix="$prefix"
10861 prefix="$acl_final_prefix"
10862 acl_save_exec_prefix="$exec_prefix"
10863 exec_prefix="$acl_final_exec_prefix"
10864 eval x=\"$x\"
10865 exec_prefix="$acl_save_exec_prefix"
10866 prefix="$acl_save_prefix"
10867
10868 if test "X$x" = "X-L$additional_libdir"; then
10869 haveit=yes
10870 break
10871 fi
10872 done
10873 if test -z "$haveit"; then
10874 if test -d "$additional_libdir"; then
10875 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10876 fi
10877 fi
10878 haveit=
10879 for x in $LDFLAGS $LTLIBEXPAT; do
10880
10881 acl_save_prefix="$prefix"
10882 prefix="$acl_final_prefix"
10883 acl_save_exec_prefix="$exec_prefix"
10884 exec_prefix="$acl_final_exec_prefix"
10885 eval x=\"$x\"
10886 exec_prefix="$acl_save_exec_prefix"
10887 prefix="$acl_save_prefix"
10888
10889 if test "X$x" = "X-L$additional_libdir"; then
10890 haveit=yes
10891 break
10892 fi
10893 done
10894 if test -z "$haveit"; then
10895 if test -d "$additional_libdir"; then
10896 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10897 fi
10898 fi
10899 fi
10900 fi
10901 ;;
10902 -R*)
10903 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10904 if test "$enable_rpath" != no; then
10905 haveit=
10906 for x in $rpathdirs; do
10907 if test "X$x" = "X$dir"; then
10908 haveit=yes
10909 break
10910 fi
10911 done
10912 if test -z "$haveit"; then
10913 rpathdirs="$rpathdirs $dir"
10914 fi
10915 haveit=
10916 for x in $ltrpathdirs; do
10917 if test "X$x" = "X$dir"; then
10918 haveit=yes
10919 break
10920 fi
10921 done
10922 if test -z "$haveit"; then
10923 ltrpathdirs="$ltrpathdirs $dir"
10924 fi
10925 fi
10926 ;;
10927 -l*)
10928 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10929 ;;
10930 *.la)
10931 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10932 ;;
10933 *)
10934 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10935 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10936 ;;
10937 esac
10938 done
10939 fi
10940 else
10941 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10942 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10943 fi
10944 fi
10945 fi
10946 done
10947 done
10948 if test "X$rpathdirs" != "X"; then
10949 if test -n "$hardcode_libdir_separator"; then
10950 alldirs=
10951 for found_dir in $rpathdirs; do
10952 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10953 done
10954 acl_save_libdir="$libdir"
10955 libdir="$alldirs"
10956 eval flag=\"$hardcode_libdir_flag_spec\"
10957 libdir="$acl_save_libdir"
10958 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10959 else
10960 for found_dir in $rpathdirs; do
10961 acl_save_libdir="$libdir"
10962 libdir="$found_dir"
10963 eval flag=\"$hardcode_libdir_flag_spec\"
10964 libdir="$acl_save_libdir"
10965 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10966 done
10967 fi
10968 fi
10969 if test "X$ltrpathdirs" != "X"; then
10970 for found_dir in $ltrpathdirs; do
10971 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10972 done
10973 fi
10974
10975
10976 ac_save_CPPFLAGS="$CPPFLAGS"
10977
10978 for element in $INCEXPAT; do
10979 haveit=
10980 for x in $CPPFLAGS; do
10981
10982 acl_save_prefix="$prefix"
10983 prefix="$acl_final_prefix"
10984 acl_save_exec_prefix="$exec_prefix"
10985 exec_prefix="$acl_final_exec_prefix"
10986 eval x=\"$x\"
10987 exec_prefix="$acl_save_exec_prefix"
10988 prefix="$acl_save_prefix"
10989
10990 if test "X$x" = "X$element"; then
10991 haveit=yes
10992 break
10993 fi
10994 done
10995 if test -z "$haveit"; then
10996 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10997 fi
10998 done
10999
11000
11001 echo "$as_me:$LINENO: checking for libexpat" >&5
11002echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11003if test "${ac_cv_libexpat+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005else
11006
11007 ac_save_LIBS="$LIBS"
11008 LIBS="$LIBS $LIBEXPAT"
11009 cat >conftest.$ac_ext <<_ACEOF
11010/* confdefs.h. */
11011_ACEOF
11012cat confdefs.h >>conftest.$ac_ext
11013cat >>conftest.$ac_ext <<_ACEOF
11014/* end confdefs.h. */
11015#include "expat.h"
11016int
11017main ()
11018{
11019XML_Parser p = XML_ParserCreate (0);
11020 ;
11021 return 0;
11022}
11023_ACEOF
11024rm -f conftest.$ac_objext conftest$ac_exeext
11025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>conftest.er1
11027 ac_status=$?
11028 grep -v '^ *+' conftest.er1 >conftest.err
11029 rm -f conftest.er1
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -z "$ac_c_werror_flag"
11034 || test ! -s conftest.err'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest$ac_exeext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 ac_cv_libexpat=yes
11047else
11048 echo "$as_me: failed program was:" >&5
11049sed 's/^/| /' conftest.$ac_ext >&5
11050
11051ac_cv_libexpat=no
11052fi
11053rm -f conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055 LIBS="$ac_save_LIBS"
11056
11057fi
11058echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11059echo "${ECHO_T}$ac_cv_libexpat" >&6
11060 if test "$ac_cv_libexpat" = yes; then
11061 HAVE_LIBEXPAT=yes
11062
11063cat >>confdefs.h <<\_ACEOF
11064#define HAVE_LIBEXPAT 1
11065_ACEOF
11066
11067 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11068echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11069 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11070echo "${ECHO_T}$LIBEXPAT" >&6
11071 else
11072 HAVE_LIBEXPAT=no
11073 CPPFLAGS="$ac_save_CPPFLAGS"
11074 LIBEXPAT=
11075 LTLIBEXPAT=
11076 fi
11077
11078
11079
11080
11081
11082
5c39566f
DJ
11083 if test "$HAVE_LIBEXPAT" != yes; then
11084 if test "$with_expat" = yes; then
11085 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11086echo "$as_me: error: expat is missing or unusable" >&2;}
11087 { (exit 1); exit 1; }; }
11088 else
11089 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11090echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11091 fi
11092 else
11093 save_LIBS=$LIBS
11094 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
11095
11096for ac_func in XML_StopParser
11097do
11098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099echo "$as_me:$LINENO: checking for $ac_func" >&5
11100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11101if eval "test \"\${$as_ac_var+set}\" = set"; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103else
11104 cat >conftest.$ac_ext <<_ACEOF
11105/* confdefs.h. */
11106_ACEOF
11107cat confdefs.h >>conftest.$ac_ext
11108cat >>conftest.$ac_ext <<_ACEOF
11109/* end confdefs.h. */
11110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11112#define $ac_func innocuous_$ac_func
11113
11114/* System header to define __stub macros and hopefully few prototypes,
11115 which can conflict with char $ac_func (); below.
11116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11117 <limits.h> exists even on freestanding compilers. */
11118
11119#ifdef __STDC__
11120# include <limits.h>
11121#else
11122# include <assert.h>
11123#endif
11124
11125#undef $ac_func
11126
11127/* Override any gcc2 internal prototype to avoid an error. */
11128#ifdef __cplusplus
11129extern "C"
11130{
11131#endif
11132/* We use char because int might match the return type of a gcc2
11133 builtin and then its argument prototype would still apply. */
11134char $ac_func ();
11135/* The GNU C library defines this for functions which it implements
11136 to always fail with ENOSYS. Some functions are actually named
11137 something starting with __ and the normal name is an alias. */
11138#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11139choke me
11140#else
11141char (*f) () = $ac_func;
11142#endif
11143#ifdef __cplusplus
11144}
11145#endif
11146
11147int
11148main ()
11149{
11150return f != $ac_func;
11151 ;
11152 return 0;
11153}
11154_ACEOF
11155rm -f conftest.$ac_objext conftest$ac_exeext
11156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11157 (eval $ac_link) 2>conftest.er1
11158 ac_status=$?
11159 grep -v '^ *+' conftest.er1 >conftest.err
11160 rm -f conftest.er1
11161 cat conftest.err >&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try='test -z "$ac_c_werror_flag"
11165 || test ! -s conftest.err'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; } &&
11171 { ac_try='test -s conftest$ac_exeext'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 eval "$as_ac_var=yes"
11178else
11179 echo "$as_me: failed program was:" >&5
11180sed 's/^/| /' conftest.$ac_ext >&5
11181
11182eval "$as_ac_var=no"
11183fi
11184rm -f conftest.err conftest.$ac_objext \
11185 conftest$ac_exeext conftest.$ac_ext
11186fi
11187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11188echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11189if test `eval echo '${'$as_ac_var'}'` = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11192_ACEOF
11193
11194fi
11195done
11196
5c39566f
DJ
11197 LIBS=$save_LIBS
11198 fi
3841debe
DJ
11199fi
11200
d57a3c85
TJB
11201
11202
11203
11204# Check whether --with-python or --without-python was given.
11205if test "${with_python+set}" = set; then
11206 withval="$with_python"
11207
11208else
11209 with_python=auto
11210fi;
11211echo "$as_me:$LINENO: checking whether to use python" >&5
11212echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11213echo "$as_me:$LINENO: result: $with_python" >&5
11214echo "${ECHO_T}$with_python" >&6
11215
11216if test "${with_python}" = no; then
11217 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11218echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11219 have_libpython=no
11220else
11221 case "${with_python}" in
11222 yes | auto)
11223 # Leave as empty, use defaults.
11224 python_includes=
11225 python_libs=
11226 ;;
11227 /*)
11228 python_includes="-I${with_python}/include"
11229 python_libs="-L${with_python}/lib"
11230 ;;
11231 *)
11232 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11233echo "$as_me: error: invalid value for --with-python" >&2;}
11234 { (exit 1); exit 1; }; }
11235 ;;
11236 esac
11237
11238 save_CPPFLAGS=$CPPFLAGS
11239 CPPFLAGS="$CPPFLAGS ${python_includes}"
11240 save_LIBS=$LIBS
11241 LIBS="$LIBS ${python_libs}"
11242 have_libpython=no
11243 if test "${have_libpython}" = no; then
11244
11245 version=python2.6
11246
11247
11248 HAVE_LIBPYTHON2_6=no
11249 echo "$as_me:$LINENO: checking for ${version}" >&5
11250echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11251 save_LIBS=$LIBS
11252 LIBS="$LIBS -l${version}"
11253 cat >conftest.$ac_ext <<_ACEOF
11254/* confdefs.h. */
11255_ACEOF
11256cat confdefs.h >>conftest.$ac_ext
11257cat >>conftest.$ac_ext <<_ACEOF
11258/* end confdefs.h. */
11259#include "${version}/Python.h"
11260int
11261main ()
11262{
11263Py_Initialize ();
11264 ;
11265 return 0;
11266}
11267_ACEOF
11268rm -f conftest.$ac_objext conftest$ac_exeext
11269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -z "$ac_c_werror_flag"
11278 || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest$ac_exeext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 HAVE_LIBPYTHON2_6=yes
11291 have_libpython=yes
11292else
11293 echo "$as_me: failed program was:" >&5
11294sed 's/^/| /' conftest.$ac_ext >&5
11295
11296LIBS=$save_LIBS
11297fi
11298rm -f conftest.err conftest.$ac_objext \
11299 conftest$ac_exeext conftest.$ac_ext
11300 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11301echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11302
11303 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11304
11305cat >>confdefs.h <<\_ACEOF
11306#define HAVE_LIBPYTHON2_6 1
11307_ACEOF
11308
11309 fi
11310 fi
11311 if test ${have_libpython} = no; then
11312
11313 version=python2.5
11314
11315
11316 HAVE_LIBPYTHON2_5=no
11317 echo "$as_me:$LINENO: checking for ${version}" >&5
11318echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11319 save_LIBS=$LIBS
11320 LIBS="$LIBS -l${version}"
11321 cat >conftest.$ac_ext <<_ACEOF
11322/* confdefs.h. */
11323_ACEOF
11324cat confdefs.h >>conftest.$ac_ext
11325cat >>conftest.$ac_ext <<_ACEOF
11326/* end confdefs.h. */
11327#include "${version}/Python.h"
11328int
11329main ()
11330{
11331Py_Initialize ();
11332 ;
11333 return 0;
11334}
11335_ACEOF
11336rm -f conftest.$ac_objext conftest$ac_exeext
11337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338 (eval $ac_link) 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } &&
11345 { ac_try='test -z "$ac_c_werror_flag"
11346 || test ! -s conftest.err'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; } &&
11352 { ac_try='test -s 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 HAVE_LIBPYTHON2_5=yes
11359 have_libpython=yes
11360else
11361 echo "$as_me: failed program was:" >&5
11362sed 's/^/| /' conftest.$ac_ext >&5
11363
11364LIBS=$save_LIBS
11365fi
11366rm -f conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11369echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11370
11371 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11372
11373cat >>confdefs.h <<\_ACEOF
11374#define HAVE_LIBPYTHON2_5 1
11375_ACEOF
11376
11377 fi
11378 fi
11379 if test ${have_libpython} = no; then
11380
11381 version=python2.4
11382
11383
11384 HAVE_LIBPYTHON2_4=no
11385 echo "$as_me:$LINENO: checking for ${version}" >&5
11386echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11387 save_LIBS=$LIBS
11388 LIBS="$LIBS -l${version}"
11389 cat >conftest.$ac_ext <<_ACEOF
11390/* confdefs.h. */
11391_ACEOF
11392cat confdefs.h >>conftest.$ac_ext
11393cat >>conftest.$ac_ext <<_ACEOF
11394/* end confdefs.h. */
11395#include "${version}/Python.h"
11396int
11397main ()
11398{
11399Py_Initialize ();
11400 ;
11401 return 0;
11402}
11403_ACEOF
11404rm -f conftest.$ac_objext conftest$ac_exeext
11405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406 (eval $ac_link) 2>conftest.er1
11407 ac_status=$?
11408 grep -v '^ *+' conftest.er1 >conftest.err
11409 rm -f conftest.er1
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
11413 { ac_try='test -z "$ac_c_werror_flag"
11414 || test ! -s conftest.err'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest$ac_exeext'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 HAVE_LIBPYTHON2_4=yes
11427 have_libpython=yes
11428else
11429 echo "$as_me: failed program was:" >&5
11430sed 's/^/| /' conftest.$ac_ext >&5
11431
11432LIBS=$save_LIBS
11433fi
11434rm -f conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11436 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11437echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11438
11439 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11440
11441cat >>confdefs.h <<\_ACEOF
11442#define HAVE_LIBPYTHON2_4 1
11443_ACEOF
11444
11445 fi
11446 fi
11447 if test ${have_libpython} = no; then
11448 case "${with_python}" in
11449 yes)
11450 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11451echo "$as_me: error: python is missing or unusable" >&2;}
11452 { (exit 1); exit 1; }; }
11453 ;;
11454 auto)
11455 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11456echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11457 ;;
11458 *)
11459 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11460echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11461 { (exit 1); exit 1; }; }
11462 ;;
11463 esac
11464 CPPFLAGS=$save_CPPFLAGS
11465 LIBS=$save_LIBS
11466 fi
11467fi
11468
11469if test "${have_libpython}" = yes; then
11470
11471cat >>confdefs.h <<\_ACEOF
11472#define HAVE_PYTHON 1
11473_ACEOF
11474
11475 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11476 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11477 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11478 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11479
11480 # Flags needed to compile Python code (taken from python-config --cflags).
11481 # We cannot call python-config directly because it will output whatever was
11482 # used when compiling the Python interpreter itself, including flags which
11483 # would make the python-related objects be compiled differently from the
11484 # rest of GDB (e.g., -O2 and -fPIC).
11485 if test "${GCC}" = yes; then
11486 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11487 fi
11488
11489 if test "x${tentative_python_cflags}" != x; then
11490 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11491echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11492 for flag in ${tentative_python_cflags}; do
11493 # Check that the compiler accepts it
11494 saved_CFLAGS="$CFLAGS"
11495 CFLAGS="$CFLAGS $flag"
11496 cat >conftest.$ac_ext <<_ACEOF
11497/* confdefs.h. */
11498_ACEOF
11499cat confdefs.h >>conftest.$ac_ext
11500cat >>conftest.$ac_ext <<_ACEOF
11501/* end confdefs.h. */
11502
11503int
11504main ()
11505{
11506
11507 ;
11508 return 0;
11509}
11510_ACEOF
11511rm -f conftest.$ac_objext
11512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag"
11521 || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11534else
11535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
11538fi
11539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11540 CFLAGS="$saved_CFLAGS"
11541 done
11542 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11543echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11544 fi
11545else
11546 # Even if Python support is not compiled in, we need to have this file
11547 # included in order to recognize the GDB command "python".
11548 CONFIG_OBS="$CONFIG_OBS python.o"
11549 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
11550fi
11551
11552
bec39cab
AC
11553# ------------------------- #
11554# Checks for header files. #
11555# ------------------------- #
8ee53726 11556
0e5d83e3 11557
bec39cab
AC
11558
11559
11560
11561
11562ac_header_dirent=no
11563for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11564 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
11565echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11566echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11567if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570 cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576#include <sys/types.h>
0e5d83e3 11577#include <$ac_hdr>
bec39cab
AC
11578
11579int
11580main ()
11581{
11582if ((DIR *) 0)
11583return 0;
11584 ;
11585 return 0;
11586}
11587_ACEOF
11588rm -f conftest.$ac_objext
11589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11590 (eval $ac_compile) 2>conftest.er1
11591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
b4e70030
JB
11597 { ac_try='test -z "$ac_c_werror_flag"
11598 || test ! -s conftest.err'
bec39cab
AC
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try='test -s conftest.$ac_objext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 eval "$as_ac_Header=yes"
11611else
11612 echo "$as_me: failed program was:" >&5
11613sed 's/^/| /' conftest.$ac_ext >&5
11614
b4e70030 11615eval "$as_ac_Header=no"
bec39cab
AC
11616fi
11617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11618fi
b4e70030
JB
11619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11621if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622 cat >>confdefs.h <<_ACEOF
11623#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11624_ACEOF
11625
11626ac_header_dirent=$ac_hdr; break
0e5d83e3 11627fi
0e5d83e3 11628
bec39cab
AC
11629done
11630# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11631if test $ac_header_dirent = dirent.h; then
b4e70030
JB
11632 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11633echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11634if test "${ac_cv_search_opendir+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636else
11637 ac_func_search_save_LIBS=$LIBS
b4e70030 11638ac_cv_search_opendir=no
bec39cab
AC
11639cat >conftest.$ac_ext <<_ACEOF
11640/* confdefs.h. */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h. */
0e5d83e3 11645
b4e70030 11646/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11647#ifdef __cplusplus
11648extern "C"
11649#endif
b4e70030
JB
11650/* We use char because int might match the return type of a gcc2
11651 builtin and then its argument prototype would still apply. */
bec39cab
AC
11652char opendir ();
11653int
11654main ()
11655{
b4e70030 11656opendir ();
bec39cab
AC
11657 ;
11658 return 0;
11659}
11660_ACEOF
b4e70030 11661rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663 (eval $ac_link) 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
b4e70030
JB
11670 { ac_try='test -z "$ac_c_werror_flag"
11671 || test ! -s conftest.err'
bec39cab
AC
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
b4e70030 11683 ac_cv_search_opendir="none required"
bec39cab
AC
11684else
11685 echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688fi
bec39cab 11689rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11690 conftest$ac_exeext conftest.$ac_ext
11691if test "$ac_cv_search_opendir" = no; then
11692 for ac_lib in dir; do
11693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11694 cat >conftest.$ac_ext <<_ACEOF
11695/* confdefs.h. */
11696_ACEOF
11697cat confdefs.h >>conftest.$ac_ext
11698cat >>conftest.$ac_ext <<_ACEOF
11699/* end confdefs.h. */
11700
11701/* Override any gcc2 internal prototype to avoid an error. */
11702#ifdef __cplusplus
11703extern "C"
11704#endif
11705/* We use char because int might match the return type of a gcc2
11706 builtin and then its argument prototype would still apply. */
11707char opendir ();
11708int
11709main ()
11710{
11711opendir ();
11712 ;
11713 return 0;
11714}
11715_ACEOF
11716rm -f conftest.$ac_objext conftest$ac_exeext
11717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718 (eval $ac_link) 2>conftest.er1
11719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
11725 { ac_try='test -z "$ac_c_werror_flag"
11726 || test ! -s conftest.err'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest$ac_exeext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_cv_search_opendir="-l$ac_lib"
11739break
4e8d927d 11740else
b4e70030
JB
11741 echo "$as_me: failed program was:" >&5
11742sed 's/^/| /' conftest.$ac_ext >&5
11743
11744fi
11745rm -f conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 done
0e5d83e3 11748fi
bec39cab 11749LIBS=$ac_func_search_save_LIBS
0e5d83e3 11750fi
b4e70030
JB
11751echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11752echo "${ECHO_T}$ac_cv_search_opendir" >&6
11753if test "$ac_cv_search_opendir" != no; then
11754 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 11755
0e5d83e3
JJ
11756fi
11757
d28f9cdf 11758else
b4e70030
JB
11759 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11760echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11761if test "${ac_cv_search_opendir+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764 ac_func_search_save_LIBS=$LIBS
b4e70030 11765ac_cv_search_opendir=no
bec39cab
AC
11766cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
d28f9cdf 11772
b4e70030 11773/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11774#ifdef __cplusplus
11775extern "C"
d28f9cdf 11776#endif
b4e70030
JB
11777/* We use char because int might match the return type of a gcc2
11778 builtin and then its argument prototype would still apply. */
bec39cab
AC
11779char opendir ();
11780int
11781main ()
11782{
b4e70030 11783opendir ();
bec39cab
AC
11784 ;
11785 return 0;
11786}
11787_ACEOF
b4e70030 11788rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790 (eval $ac_link) 2>conftest.er1
11791 ac_status=$?
11792 grep -v '^ *+' conftest.er1 >conftest.err
11793 rm -f conftest.er1
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
b4e70030
JB
11797 { ac_try='test -z "$ac_c_werror_flag"
11798 || test ! -s conftest.err'
bec39cab
AC
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try='test -s conftest$ac_exeext'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
b4e70030 11810 ac_cv_search_opendir="none required"
d28f9cdf 11811else
bec39cab
AC
11812 echo "$as_me: failed program was:" >&5
11813sed 's/^/| /' conftest.$ac_ext >&5
11814
d28f9cdf 11815fi
bec39cab 11816rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11817 conftest$ac_exeext conftest.$ac_ext
11818if test "$ac_cv_search_opendir" = no; then
11819 for ac_lib in x; do
11820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11821 cat >conftest.$ac_ext <<_ACEOF
11822/* confdefs.h. */
11823_ACEOF
11824cat confdefs.h >>conftest.$ac_ext
11825cat >>conftest.$ac_ext <<_ACEOF
11826/* end confdefs.h. */
11827
11828/* Override any gcc2 internal prototype to avoid an error. */
11829#ifdef __cplusplus
11830extern "C"
11831#endif
11832/* We use char because int might match the return type of a gcc2
11833 builtin and then its argument prototype would still apply. */
11834char opendir ();
11835int
11836main ()
11837{
11838opendir ();
11839 ;
11840 return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext conftest$ac_exeext
11844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11845 (eval $ac_link) 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -z "$ac_c_werror_flag"
11853 || test ! -s conftest.err'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest$ac_exeext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_cv_search_opendir="-l$ac_lib"
11866break
4e8d927d 11867else
b4e70030
JB
11868 echo "$as_me: failed program was:" >&5
11869sed 's/^/| /' conftest.$ac_ext >&5
11870
11871fi
11872rm -f conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext conftest.$ac_ext
11874 done
bec39cab
AC
11875fi
11876LIBS=$ac_func_search_save_LIBS
d28f9cdf 11877fi
b4e70030
JB
11878echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11879echo "${ECHO_T}$ac_cv_search_opendir" >&6
11880if test "$ac_cv_search_opendir" != no; then
11881 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 11882
d28f9cdf
DJ
11883fi
11884
bec39cab 11885fi
b0b1c2c0 11886
b4e70030
JB
11887echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11888echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
11889if test "${ac_cv_header_stat_broken+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 11891else
bec39cab
AC
11892 cat >conftest.$ac_ext <<_ACEOF
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898#include <sys/types.h>
11899#include <sys/stat.h>
b0b1c2c0 11900
b4e70030 11901#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
11902# if S_ISBLK (S_IFDIR)
11903You lose.
11904# endif
11905#endif
b0b1c2c0 11906
b4e70030 11907#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
11908# if S_ISBLK (S_IFCHR)
11909You lose.
11910# endif
11911#endif
d28f9cdf 11912
b4e70030 11913#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
11914# if S_ISLNK (S_IFREG)
11915You lose.
11916# endif
11917#endif
d28f9cdf 11918
b4e70030 11919#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
11920# if S_ISSOCK (S_IFREG)
11921You lose.
11922# endif
11923#endif
11924
11925_ACEOF
11926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11927 $EGREP "You lose" >/dev/null 2>&1; then
11928 ac_cv_header_stat_broken=yes
d28f9cdf 11929else
bec39cab 11930 ac_cv_header_stat_broken=no
d28f9cdf
DJ
11931fi
11932rm -f conftest*
d28f9cdf 11933
d28f9cdf 11934fi
b4e70030
JB
11935echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11936echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 11937if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 11938
bec39cab
AC
11939cat >>confdefs.h <<\_ACEOF
11940#define STAT_MACROS_BROKEN 1
11941_ACEOF
8bb2c122 11942
7a292a7a 11943fi
bec39cab 11944
b4e70030
JB
11945echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11946echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
11947if test "${ac_cv_header_stdc+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 11949else
bec39cab
AC
11950 cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h. */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h. */
11956#include <stdlib.h>
11957#include <stdarg.h>
11958#include <string.h>
11959#include <float.h>
7a292a7a 11960
bec39cab
AC
11961int
11962main ()
11963{
7a292a7a 11964
bec39cab
AC
11965 ;
11966 return 0;
11967}
11968_ACEOF
11969rm -f conftest.$ac_objext
11970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971 (eval $ac_compile) 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); } &&
b4e70030
JB
11978 { ac_try='test -z "$ac_c_werror_flag"
11979 || test ! -s conftest.err'
bec39cab
AC
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 ac_cv_header_stdc=yes
c906108c 11992else
bec39cab
AC
11993 echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
c906108c 11995
b4e70030 11996ac_cv_header_stdc=no
c906108c 11997fi
bec39cab 11998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11999
bec39cab
AC
12000if test $ac_cv_header_stdc = yes; then
12001 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12002 cat >conftest.$ac_ext <<_ACEOF
12003/* confdefs.h. */
12004_ACEOF
12005cat confdefs.h >>conftest.$ac_ext
12006cat >>conftest.$ac_ext <<_ACEOF
12007/* end confdefs.h. */
12008#include <string.h>
c906108c 12009
bec39cab
AC
12010_ACEOF
12011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12012 $EGREP "memchr" >/dev/null 2>&1; then
12013 :
8bb2c122 12014else
bec39cab 12015 ac_cv_header_stdc=no
8bb2c122 12016fi
bec39cab
AC
12017rm -f conftest*
12018
c906108c
SS
12019fi
12020
bec39cab
AC
12021if test $ac_cv_header_stdc = yes; then
12022 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12023 cat >conftest.$ac_ext <<_ACEOF
12024/* confdefs.h. */
12025_ACEOF
12026cat confdefs.h >>conftest.$ac_ext
12027cat >>conftest.$ac_ext <<_ACEOF
12028/* end confdefs.h. */
12029#include <stdlib.h>
12030
12031_ACEOF
12032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12033 $EGREP "free" >/dev/null 2>&1; then
12034 :
c906108c 12035else
bec39cab 12036 ac_cv_header_stdc=no
c906108c 12037fi
bec39cab
AC
12038rm -f conftest*
12039
c906108c
SS
12040fi
12041
bec39cab
AC
12042if test $ac_cv_header_stdc = yes; then
12043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12044 if test "$cross_compiling" = yes; then
12045 :
c906108c 12046else
bec39cab
AC
12047 cat >conftest.$ac_ext <<_ACEOF
12048/* confdefs.h. */
12049_ACEOF
12050cat confdefs.h >>conftest.$ac_ext
12051cat >>conftest.$ac_ext <<_ACEOF
12052/* end confdefs.h. */
12053#include <ctype.h>
12054#if ((' ' & 0x0FF) == 0x020)
12055# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12056# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12057#else
12058# define ISLOWER(c) \
12059 (('a' <= (c) && (c) <= 'i') \
12060 || ('j' <= (c) && (c) <= 'r') \
12061 || ('s' <= (c) && (c) <= 'z'))
12062# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12063#endif
12064
12065#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12066int
12067main ()
12068{
12069 int i;
12070 for (i = 0; i < 256; i++)
12071 if (XOR (islower (i), ISLOWER (i))
12072 || toupper (i) != TOUPPER (i))
b4e70030
JB
12073 exit(2);
12074 exit (0);
bec39cab
AC
12075}
12076_ACEOF
12077rm -f conftest$ac_exeext
12078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12079 (eval $ac_link) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 :
12089else
12090 echo "$as_me: program exited with status $ac_status" >&5
12091echo "$as_me: failed program was:" >&5
12092sed 's/^/| /' conftest.$ac_ext >&5
12093
12094( exit $ac_status )
12095ac_cv_header_stdc=no
c906108c 12096fi
b4e70030 12097rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 12098fi
c906108c 12099fi
bec39cab 12100fi
b4e70030
JB
12101echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12102echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 12103if test $ac_cv_header_stdc = yes; then
c906108c 12104
bec39cab
AC
12105cat >>confdefs.h <<\_ACEOF
12106#define STDC_HEADERS 1
12107_ACEOF
c906108c 12108
bec39cab 12109fi
8bb2c122 12110
bec39cab 12111
7cb9022a 12112for ac_header in nlist.h
bec39cab
AC
12113do
12114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12115if eval "test \"\${$as_ac_Header+set}\" = set"; then
12116 echo "$as_me:$LINENO: checking for $ac_header" >&5
12117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12118if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12120fi
b4e70030
JB
12121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12123else
12124 # Is the header compilable?
b4e70030
JB
12125echo "$as_me:$LINENO: checking $ac_header usability" >&5
12126echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12127cat >conftest.$ac_ext <<_ACEOF
12128/* confdefs.h. */
12129_ACEOF
12130cat confdefs.h >>conftest.$ac_ext
12131cat >>conftest.$ac_ext <<_ACEOF
12132/* end confdefs.h. */
12133$ac_includes_default
12134#include <$ac_header>
12135_ACEOF
12136rm -f conftest.$ac_objext
12137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138 (eval $ac_compile) 2>conftest.er1
12139 ac_status=$?
12140 grep -v '^ *+' conftest.er1 >conftest.err
12141 rm -f conftest.er1
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } &&
b4e70030
JB
12145 { ac_try='test -z "$ac_c_werror_flag"
12146 || test ! -s conftest.err'
bec39cab
AC
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; } &&
12152 { ac_try='test -s conftest.$ac_objext'
12153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154 (eval $ac_try) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 ac_header_compiler=yes
12159else
12160 echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
b4e70030 12163ac_header_compiler=no
bec39cab
AC
12164fi
12165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12166echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12167echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12168
12169# Is the header present?
b4e70030
JB
12170echo "$as_me:$LINENO: checking $ac_header presence" >&5
12171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12172cat >conftest.$ac_ext <<_ACEOF
12173/* confdefs.h. */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h. */
12178#include <$ac_header>
12179_ACEOF
12180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } >/dev/null; then
12188 if test -s conftest.err; then
12189 ac_cpp_err=$ac_c_preproc_warn_flag
12190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12191 else
12192 ac_cpp_err=
12193 fi
c906108c 12194else
bec39cab 12195 ac_cpp_err=yes
c906108c 12196fi
bec39cab
AC
12197if test -z "$ac_cpp_err"; then
12198 ac_header_preproc=yes
c906108c 12199else
bec39cab
AC
12200 echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 12202
bec39cab
AC
12203 ac_header_preproc=no
12204fi
12205rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12206echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12207echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 12208
bec39cab
AC
12209# So? What about this header?
12210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12211 yes:no: )
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12216 ac_header_preproc=yes
12217 ;;
12218 no:yes:* )
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12231 (
12232 cat <<\_ASBOX
12233## ------------------------------------------ ##
12234## Report this to the AC_PACKAGE_NAME lists. ##
12235## ------------------------------------------ ##
12236_ASBOX
12237 ) |
12238 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12239 ;;
12240esac
b4e70030
JB
12241echo "$as_me:$LINENO: checking for $ac_header" >&5
12242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12243if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12244 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 12245else
bec39cab 12246 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 12247fi
b4e70030
JB
12248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12250
95ca63c4 12251fi
bec39cab
AC
12252if test `eval echo '${'$as_ac_Header'}'` = yes; then
12253 cat >>confdefs.h <<_ACEOF
12254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12255_ACEOF
12256
95ca63c4
CF
12257fi
12258
bec39cab 12259done
95ca63c4
CF
12260
12261
7cb9022a 12262for ac_header in link.h
bec39cab
AC
12263do
12264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12265echo "$as_me:$LINENO: checking for $ac_header" >&5
12266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12267if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12268 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12269else
7cb9022a 12270 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12271/* confdefs.h. */
12272_ACEOF
12273cat confdefs.h >>conftest.$ac_ext
12274cat >>conftest.$ac_ext <<_ACEOF
12275/* end confdefs.h. */
7cb9022a
MK
12276#if HAVE_SYS_TYPES_H
12277# include <sys/types.h>
12278#endif
12279#if HAVE_NLIST_H
12280# include <nlist.h>
12281#endif
12282
12283
bec39cab
AC
12284#include <$ac_header>
12285_ACEOF
12286rm -f conftest.$ac_objext
12287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12288 (eval $ac_compile) 2>conftest.er1
12289 ac_status=$?
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
b4e70030
JB
12295 { ac_try='test -z "$ac_c_werror_flag"
12296 || test ! -s conftest.err'
bec39cab
AC
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest.$ac_objext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
7cb9022a 12308 eval "$as_ac_Header=yes"
bec39cab
AC
12309else
12310 echo "$as_me: failed program was:" >&5
12311sed 's/^/| /' conftest.$ac_ext >&5
12312
b4e70030 12313eval "$as_ac_Header=no"
bec39cab
AC
12314fi
12315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 12316fi
b4e70030
JB
12317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12319if test `eval echo '${'$as_ac_Header'}'` = yes; then
12320 cat >>confdefs.h <<_ACEOF
12321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12322_ACEOF
95ca63c4 12323
bec39cab 12324fi
95ca63c4 12325
bec39cab 12326done
95ca63c4 12327
c906108c 12328
7cb9022a 12329for ac_header in machine/reg.h
bec39cab
AC
12330do
12331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12332if eval "test \"\${$as_ac_Header+set}\" = set"; then
12333 echo "$as_me:$LINENO: checking for $ac_header" >&5
12334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12335if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337fi
b4e70030
JB
12338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12340else
12341 # Is the header compilable?
b4e70030
JB
12342echo "$as_me:$LINENO: checking $ac_header usability" >&5
12343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12344cat >conftest.$ac_ext <<_ACEOF
12345/* confdefs.h. */
12346_ACEOF
12347cat confdefs.h >>conftest.$ac_ext
12348cat >>conftest.$ac_ext <<_ACEOF
12349/* end confdefs.h. */
12350$ac_includes_default
12351#include <$ac_header>
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
b4e70030
JB
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
bec39cab
AC
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 ac_header_compiler=yes
12376else
12377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
b4e70030 12380ac_header_compiler=no
bec39cab
AC
12381fi
12382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12383echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12385
12386# Is the header present?
b4e70030
JB
12387echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12389cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395#include <$ac_header>
12396_ACEOF
12397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } >/dev/null; then
12405 if test -s conftest.err; then
12406 ac_cpp_err=$ac_c_preproc_warn_flag
12407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12408 else
12409 ac_cpp_err=
12410 fi
75c6e08a 12411else
bec39cab 12412 ac_cpp_err=yes
75c6e08a 12413fi
bec39cab
AC
12414if test -z "$ac_cpp_err"; then
12415 ac_header_preproc=yes
12416else
12417 echo "$as_me: failed program was:" >&5
12418sed 's/^/| /' conftest.$ac_ext >&5
12419
12420 ac_header_preproc=no
75c6e08a 12421fi
bec39cab 12422rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12423echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12424echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12425
12426# So? What about this header?
12427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12428 yes:no: )
12429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12432echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12433 ac_header_preproc=yes
12434 ;;
12435 no:yes:* )
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12439echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12441echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12443echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12447echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12448 (
12449 cat <<\_ASBOX
12450## ------------------------------------------ ##
12451## Report this to the AC_PACKAGE_NAME lists. ##
12452## ------------------------------------------ ##
12453_ASBOX
12454 ) |
12455 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12456 ;;
12457esac
b4e70030
JB
12458echo "$as_me:$LINENO: checking for $ac_header" >&5
12459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12460if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12461 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 12462else
bec39cab
AC
12463 eval "$as_ac_Header=\$ac_header_preproc"
12464fi
b4e70030
JB
12465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12467
75c6e08a 12468fi
bec39cab
AC
12469if test `eval echo '${'$as_ac_Header'}'` = yes; then
12470 cat >>confdefs.h <<_ACEOF
12471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12472_ACEOF
75c6e08a 12473
bec39cab 12474fi
75c6e08a 12475
bec39cab 12476done
75c6e08a
MK
12477
12478
9a156167 12479
bec39cab
AC
12480for ac_header in poll.h sys/poll.h
12481do
12482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12483if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484 echo "$as_me:$LINENO: checking for $ac_header" >&5
12485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12486if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488fi
b4e70030
JB
12489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12491else
12492 # Is the header compilable?
b4e70030
JB
12493echo "$as_me:$LINENO: checking $ac_header usability" >&5
12494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12495cat >conftest.$ac_ext <<_ACEOF
12496/* confdefs.h. */
12497_ACEOF
12498cat confdefs.h >>conftest.$ac_ext
12499cat >>conftest.$ac_ext <<_ACEOF
12500/* end confdefs.h. */
12501$ac_includes_default
12502#include <$ac_header>
12503_ACEOF
12504rm -f conftest.$ac_objext
12505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506 (eval $ac_compile) 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
b4e70030
JB
12513 { ac_try='test -z "$ac_c_werror_flag"
12514 || test ! -s conftest.err'
bec39cab
AC
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_header_compiler=yes
12527else
12528 echo "$as_me: failed program was:" >&5
12529sed 's/^/| /' conftest.$ac_ext >&5
12530
b4e70030 12531ac_header_compiler=no
bec39cab
AC
12532fi
12533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12535echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12536
12537# Is the header present?
b4e70030
JB
12538echo "$as_me:$LINENO: checking $ac_header presence" >&5
12539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12540cat >conftest.$ac_ext <<_ACEOF
12541/* confdefs.h. */
12542_ACEOF
12543cat confdefs.h >>conftest.$ac_ext
12544cat >>conftest.$ac_ext <<_ACEOF
12545/* end confdefs.h. */
12546#include <$ac_header>
12547_ACEOF
12548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } >/dev/null; then
12556 if test -s conftest.err; then
12557 ac_cpp_err=$ac_c_preproc_warn_flag
12558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12559 else
12560 ac_cpp_err=
12561 fi
9a156167 12562else
bec39cab 12563 ac_cpp_err=yes
9a156167 12564fi
bec39cab
AC
12565if test -z "$ac_cpp_err"; then
12566 ac_header_preproc=yes
12567else
12568 echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12570
bec39cab 12571 ac_header_preproc=no
9a156167 12572fi
bec39cab 12573rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12575echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12576
bec39cab
AC
12577# So? What about this header?
12578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12579 yes:no: )
12580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12583echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12584 ac_header_preproc=yes
12585 ;;
12586 no:yes:* )
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12590echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12592echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12594echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12598echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12599 (
12600 cat <<\_ASBOX
12601## ------------------------------------------ ##
12602## Report this to the AC_PACKAGE_NAME lists. ##
12603## ------------------------------------------ ##
12604_ASBOX
12605 ) |
12606 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12607 ;;
12608esac
b4e70030
JB
12609echo "$as_me:$LINENO: checking for $ac_header" >&5
12610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12611if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12612 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12613else
bec39cab 12614 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12615fi
b4e70030
JB
12616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 12618
bec39cab
AC
12619fi
12620if test `eval echo '${'$as_ac_Header'}'` = yes; then
12621 cat >>confdefs.h <<_ACEOF
12622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12623_ACEOF
9a156167 12624
bec39cab 12625fi
9a156167 12626
bec39cab 12627done
9a156167 12628
9a156167 12629
9a156167 12630
bec39cab
AC
12631
12632for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12633do
12634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12635if eval "test \"\${$as_ac_Header+set}\" = set"; then
12636 echo "$as_me:$LINENO: checking for $ac_header" >&5
12637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12638if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640fi
b4e70030
JB
12641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12643else
12644 # Is the header compilable?
b4e70030
JB
12645echo "$as_me:$LINENO: checking $ac_header usability" >&5
12646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12647cat >conftest.$ac_ext <<_ACEOF
12648/* confdefs.h. */
12649_ACEOF
12650cat confdefs.h >>conftest.$ac_ext
12651cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
12652/* end confdefs.h. */
12653$ac_includes_default
12654#include <$ac_header>
12655_ACEOF
12656rm -f conftest.$ac_objext
12657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag"
12666 || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_header_compiler=yes
12679else
12680 echo "$as_me: failed program was:" >&5
12681sed 's/^/| /' conftest.$ac_ext >&5
12682
12683ac_header_compiler=no
12684fi
12685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12687echo "${ECHO_T}$ac_header_compiler" >&6
12688
12689# Is the header present?
12690echo "$as_me:$LINENO: checking $ac_header presence" >&5
12691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12692cat >conftest.$ac_ext <<_ACEOF
12693/* confdefs.h. */
12694_ACEOF
12695cat confdefs.h >>conftest.$ac_ext
12696cat >>conftest.$ac_ext <<_ACEOF
12697/* end confdefs.h. */
12698#include <$ac_header>
12699_ACEOF
12700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } >/dev/null; then
12708 if test -s conftest.err; then
12709 ac_cpp_err=$ac_c_preproc_warn_flag
12710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12711 else
12712 ac_cpp_err=
12713 fi
12714else
12715 ac_cpp_err=yes
12716fi
12717if test -z "$ac_cpp_err"; then
12718 ac_header_preproc=yes
12719else
12720 echo "$as_me: failed program was:" >&5
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_header_preproc=no
12724fi
12725rm -f conftest.err conftest.$ac_ext
12726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12727echo "${ECHO_T}$ac_header_preproc" >&6
12728
12729# So? What about this header?
12730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12731 yes:no: )
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12735echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12736 ac_header_preproc=yes
12737 ;;
12738 no:yes:* )
12739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12742echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12744echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12746echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12750echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12751 (
12752 cat <<\_ASBOX
12753## ------------------------------------------ ##
12754## Report this to the AC_PACKAGE_NAME lists. ##
12755## ------------------------------------------ ##
12756_ASBOX
12757 ) |
12758 sed "s/^/$as_me: WARNING: /" >&2
12759 ;;
12760esac
12761echo "$as_me:$LINENO: checking for $ac_header" >&5
12762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12763if eval "test \"\${$as_ac_Header+set}\" = set"; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765else
12766 eval "$as_ac_Header=\$ac_header_preproc"
12767fi
12768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12770
12771fi
12772if test `eval echo '${'$as_ac_Header'}'` = yes; then
12773 cat >>confdefs.h <<_ACEOF
12774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12775_ACEOF
12776
12777fi
12778
12779done
12780
12781
12782for ac_header in signal.h
12783do
12784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12785if eval "test \"\${$as_ac_Header+set}\" = set"; then
12786 echo "$as_me:$LINENO: checking for $ac_header" >&5
12787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12788if eval "test \"\${$as_ac_Header+set}\" = set"; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790fi
12791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12793else
12794 # Is the header compilable?
12795echo "$as_me:$LINENO: checking $ac_header usability" >&5
12796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12797cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
12802/* end confdefs.h. */
12803$ac_includes_default
12804#include <$ac_header>
12805_ACEOF
12806rm -f conftest.$ac_objext
12807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
b4e70030
JB
12815 { ac_try='test -z "$ac_c_werror_flag"
12816 || test ! -s conftest.err'
bec39cab
AC
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } &&
12822 { ac_try='test -s conftest.$ac_objext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_header_compiler=yes
12829else
12830 echo "$as_me: failed program was:" >&5
12831sed 's/^/| /' conftest.$ac_ext >&5
12832
b4e70030 12833ac_header_compiler=no
bec39cab
AC
12834fi
12835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12837echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12838
12839# Is the header present?
b4e70030
JB
12840echo "$as_me:$LINENO: checking $ac_header presence" >&5
12841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12842cat >conftest.$ac_ext <<_ACEOF
12843/* confdefs.h. */
12844_ACEOF
12845cat confdefs.h >>conftest.$ac_ext
12846cat >>conftest.$ac_ext <<_ACEOF
12847/* end confdefs.h. */
12848#include <$ac_header>
12849_ACEOF
12850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } >/dev/null; then
12858 if test -s conftest.err; then
12859 ac_cpp_err=$ac_c_preproc_warn_flag
12860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12861 else
12862 ac_cpp_err=
12863 fi
9a156167 12864else
bec39cab 12865 ac_cpp_err=yes
9a156167 12866fi
bec39cab
AC
12867if test -z "$ac_cpp_err"; then
12868 ac_header_preproc=yes
12869else
12870 echo "$as_me: failed program was:" >&5
12871sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12872
bec39cab 12873 ac_header_preproc=no
9a156167 12874fi
bec39cab 12875rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12877echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12878
bec39cab
AC
12879# So? What about this header?
12880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12881 yes:no: )
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12885echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12886 ac_header_preproc=yes
12887 ;;
12888 no:yes:* )
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12892echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12894echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12896echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12900echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12901 (
12902 cat <<\_ASBOX
12903## ------------------------------------------ ##
12904## Report this to the AC_PACKAGE_NAME lists. ##
12905## ------------------------------------------ ##
12906_ASBOX
12907 ) |
12908 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12909 ;;
12910esac
b4e70030
JB
12911echo "$as_me:$LINENO: checking for $ac_header" >&5
12912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12913if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12914 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12915else
bec39cab 12916 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12917fi
b4e70030
JB
12918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
12920
12921fi
bec39cab
AC
12922if test `eval echo '${'$as_ac_Header'}'` = yes; then
12923 cat >>confdefs.h <<_ACEOF
12924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12925_ACEOF
9a156167 12926
bec39cab
AC
12927fi
12928
12929done
9a156167 12930
c890192f 12931
bec39cab
AC
12932for ac_header in stddef.h
12933do
12934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12935if eval "test \"\${$as_ac_Header+set}\" = set"; then
12936 echo "$as_me:$LINENO: checking for $ac_header" >&5
12937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12938if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12940fi
b4e70030
JB
12941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12943else
12944 # Is the header compilable?
b4e70030
JB
12945echo "$as_me:$LINENO: checking $ac_header usability" >&5
12946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12947cat >conftest.$ac_ext <<_ACEOF
12948/* confdefs.h. */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h. */
12953$ac_includes_default
12954#include <$ac_header>
12955_ACEOF
12956rm -f conftest.$ac_objext
12957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12958 (eval $ac_compile) 2>conftest.er1
12959 ac_status=$?
12960 grep -v '^ *+' conftest.er1 >conftest.err
12961 rm -f conftest.er1
12962 cat conftest.err >&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } &&
b4e70030
JB
12965 { ac_try='test -z "$ac_c_werror_flag"
12966 || test ! -s conftest.err'
bec39cab
AC
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; } &&
12972 { ac_try='test -s conftest.$ac_objext'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
12978 ac_header_compiler=yes
12979else
12980 echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
b4e70030 12983ac_header_compiler=no
bec39cab
AC
12984fi
12985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12987echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12988
12989# Is the header present?
b4e70030
JB
12990echo "$as_me:$LINENO: checking $ac_header presence" >&5
12991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12992cat >conftest.$ac_ext <<_ACEOF
12993/* confdefs.h. */
12994_ACEOF
12995cat confdefs.h >>conftest.$ac_ext
12996cat >>conftest.$ac_ext <<_ACEOF
12997/* end confdefs.h. */
12998#include <$ac_header>
12999_ACEOF
13000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13002 ac_status=$?
13003 grep -v '^ *+' conftest.er1 >conftest.err
13004 rm -f conftest.er1
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } >/dev/null; then
13008 if test -s conftest.err; then
13009 ac_cpp_err=$ac_c_preproc_warn_flag
13010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13011 else
13012 ac_cpp_err=
13013 fi
c890192f 13014else
bec39cab
AC
13015 ac_cpp_err=yes
13016fi
13017if test -z "$ac_cpp_err"; then
13018 ac_header_preproc=yes
c890192f 13019else
bec39cab
AC
13020 echo "$as_me: failed program was:" >&5
13021sed 's/^/| /' conftest.$ac_ext >&5
13022
13023 ac_header_preproc=no
c890192f 13024fi
bec39cab 13025rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13027echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13028
13029# So? What about this header?
13030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13031 yes:no: )
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13036 ac_header_preproc=yes
13037 ;;
13038 no:yes:* )
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13051 (
13052 cat <<\_ASBOX
13053## ------------------------------------------ ##
13054## Report this to the AC_PACKAGE_NAME lists. ##
13055## ------------------------------------------ ##
13056_ASBOX
13057 ) |
13058 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13059 ;;
13060esac
b4e70030
JB
13061echo "$as_me:$LINENO: checking for $ac_header" >&5
13062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13063if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13064 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 13065else
bec39cab 13066 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 13067fi
b4e70030
JB
13068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 13070
c890192f 13071fi
bec39cab
AC
13072if test `eval echo '${'$as_ac_Header'}'` = yes; then
13073 cat >>confdefs.h <<_ACEOF
13074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13075_ACEOF
c890192f 13076
c890192f
MK
13077fi
13078
bec39cab 13079done
9a156167 13080
bec39cab
AC
13081
13082for ac_header in stdlib.h
13083do
13084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13085if eval "test \"\${$as_ac_Header+set}\" = set"; then
13086 echo "$as_me:$LINENO: checking for $ac_header" >&5
13087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13088if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090fi
b4e70030
JB
13091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13093else
13094 # Is the header compilable?
b4e70030
JB
13095echo "$as_me:$LINENO: checking $ac_header usability" >&5
13096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13097cat >conftest.$ac_ext <<_ACEOF
13098/* confdefs.h. */
13099_ACEOF
13100cat confdefs.h >>conftest.$ac_ext
13101cat >>conftest.$ac_ext <<_ACEOF
13102/* end confdefs.h. */
13103$ac_includes_default
13104#include <$ac_header>
13105_ACEOF
13106rm -f conftest.$ac_objext
13107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108 (eval $ac_compile) 2>conftest.er1
13109 ac_status=$?
13110 grep -v '^ *+' conftest.er1 >conftest.err
13111 rm -f conftest.er1
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
b4e70030
JB
13115 { ac_try='test -z "$ac_c_werror_flag"
13116 || test ! -s conftest.err'
bec39cab
AC
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; } &&
13122 { ac_try='test -s conftest.$ac_objext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_header_compiler=yes
13129else
13130 echo "$as_me: failed program was:" >&5
13131sed 's/^/| /' conftest.$ac_ext >&5
13132
b4e70030 13133ac_header_compiler=no
bec39cab
AC
13134fi
13135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13136echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13137echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13138
13139# Is the header present?
b4e70030
JB
13140echo "$as_me:$LINENO: checking $ac_header presence" >&5
13141echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13142cat >conftest.$ac_ext <<_ACEOF
13143/* confdefs.h. */
13144_ACEOF
13145cat confdefs.h >>conftest.$ac_ext
13146cat >>conftest.$ac_ext <<_ACEOF
13147/* end confdefs.h. */
13148#include <$ac_header>
13149_ACEOF
13150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } >/dev/null; then
13158 if test -s conftest.err; then
13159 ac_cpp_err=$ac_c_preproc_warn_flag
13160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13161 else
13162 ac_cpp_err=
13163 fi
9a156167 13164else
bec39cab
AC
13165 ac_cpp_err=yes
13166fi
13167if test -z "$ac_cpp_err"; then
13168 ac_header_preproc=yes
9a156167 13169else
bec39cab
AC
13170 echo "$as_me: failed program was:" >&5
13171sed 's/^/| /' conftest.$ac_ext >&5
13172
13173 ac_header_preproc=no
9a156167 13174fi
bec39cab 13175rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13176echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13177echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13178
13179# So? What about this header?
13180case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13181 yes:no: )
13182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13183echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13185echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13186 ac_header_preproc=yes
13187 ;;
13188 no:yes:* )
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13190echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13192echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13194echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13196echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13198echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13200echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13201 (
13202 cat <<\_ASBOX
13203## ------------------------------------------ ##
13204## Report this to the AC_PACKAGE_NAME lists. ##
13205## ------------------------------------------ ##
13206_ASBOX
13207 ) |
13208 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13209 ;;
13210esac
b4e70030
JB
13211echo "$as_me:$LINENO: checking for $ac_header" >&5
13212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13213if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13214 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 13215else
bec39cab 13216 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 13217fi
b4e70030
JB
13218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 13220
9a156167 13221fi
bec39cab
AC
13222if test `eval echo '${'$as_ac_Header'}'` = yes; then
13223 cat >>confdefs.h <<_ACEOF
13224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13225_ACEOF
9a156167 13226
9a156167
MK
13227fi
13228
bec39cab
AC
13229done
13230
06825bd1 13231
06825bd1 13232
bec39cab
AC
13233
13234for ac_header in string.h memory.h strings.h
13235do
13236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13237if eval "test \"\${$as_ac_Header+set}\" = set"; then
13238 echo "$as_me:$LINENO: checking for $ac_header" >&5
13239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13240if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242fi
b4e70030
JB
13243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13245else
13246 # Is the header compilable?
b4e70030
JB
13247echo "$as_me:$LINENO: checking $ac_header usability" >&5
13248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13249cat >conftest.$ac_ext <<_ACEOF
13250/* confdefs.h. */
13251_ACEOF
13252cat confdefs.h >>conftest.$ac_ext
13253cat >>conftest.$ac_ext <<_ACEOF
13254/* end confdefs.h. */
13255$ac_includes_default
13256#include <$ac_header>
13257_ACEOF
13258rm -f conftest.$ac_objext
13259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
b4e70030
JB
13267 { ac_try='test -z "$ac_c_werror_flag"
13268 || test ! -s conftest.err'
bec39cab
AC
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_header_compiler=yes
13281else
13282 echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
b4e70030 13285ac_header_compiler=no
bec39cab
AC
13286fi
13287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13289echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13290
13291# Is the header present?
b4e70030
JB
13292echo "$as_me:$LINENO: checking $ac_header presence" >&5
13293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13294cat >conftest.$ac_ext <<_ACEOF
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
13300#include <$ac_header>
13301_ACEOF
13302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13304 ac_status=$?
13305 grep -v '^ *+' conftest.er1 >conftest.err
13306 rm -f conftest.er1
13307 cat conftest.err >&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } >/dev/null; then
13310 if test -s conftest.err; then
13311 ac_cpp_err=$ac_c_preproc_warn_flag
13312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13313 else
13314 ac_cpp_err=
13315 fi
06825bd1 13316else
bec39cab
AC
13317 ac_cpp_err=yes
13318fi
13319if test -z "$ac_cpp_err"; then
13320 ac_header_preproc=yes
06825bd1 13321else
bec39cab
AC
13322 echo "$as_me: failed program was:" >&5
13323sed 's/^/| /' conftest.$ac_ext >&5
13324
13325 ac_header_preproc=no
06825bd1 13326fi
bec39cab 13327rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13329echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13330
13331# So? What about this header?
13332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13333 yes:no: )
13334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13338 ac_header_preproc=yes
13339 ;;
13340 no:yes:* )
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13344echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13348echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13353 (
13354 cat <<\_ASBOX
13355## ------------------------------------------ ##
13356## Report this to the AC_PACKAGE_NAME lists. ##
13357## ------------------------------------------ ##
13358_ASBOX
13359 ) |
13360 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13361 ;;
13362esac
b4e70030
JB
13363echo "$as_me:$LINENO: checking for $ac_header" >&5
13364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13365if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367else
13368 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 13369fi
b4e70030
JB
13370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 13372
06825bd1 13373fi
bec39cab
AC
13374if test `eval echo '${'$as_ac_Header'}'` = yes; then
13375 cat >>confdefs.h <<_ACEOF
13376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13377_ACEOF
06825bd1 13378
06825bd1
MK
13379fi
13380
bec39cab 13381done
5ee754fc 13382
bec39cab
AC
13383
13384for ac_header in sys/fault.h
5ee754fc 13385do
bec39cab 13386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13387if eval "test \"\${$as_ac_Header+set}\" = set"; then
13388 echo "$as_me:$LINENO: checking for $ac_header" >&5
13389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13390if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392fi
b4e70030
JB
13393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13395else
13396 # Is the header compilable?
b4e70030
JB
13397echo "$as_me:$LINENO: checking $ac_header usability" >&5
13398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13399cat >conftest.$ac_ext <<_ACEOF
13400/* confdefs.h. */
13401_ACEOF
13402cat confdefs.h >>conftest.$ac_ext
13403cat >>conftest.$ac_ext <<_ACEOF
13404/* end confdefs.h. */
13405$ac_includes_default
13406#include <$ac_header>
13407_ACEOF
13408rm -f conftest.$ac_objext
13409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13410 (eval $ac_compile) 2>conftest.er1
13411 ac_status=$?
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
b4e70030
JB
13417 { ac_try='test -z "$ac_c_werror_flag"
13418 || test ! -s conftest.err'
bec39cab
AC
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest.$ac_objext'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_header_compiler=yes
13431else
13432 echo "$as_me: failed program was:" >&5
13433sed 's/^/| /' conftest.$ac_ext >&5
13434
b4e70030 13435ac_header_compiler=no
bec39cab
AC
13436fi
13437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13439echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13440
13441# Is the header present?
b4e70030
JB
13442echo "$as_me:$LINENO: checking $ac_header presence" >&5
13443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13444cat >conftest.$ac_ext <<_ACEOF
13445/* confdefs.h. */
13446_ACEOF
13447cat confdefs.h >>conftest.$ac_ext
13448cat >>conftest.$ac_ext <<_ACEOF
13449/* end confdefs.h. */
13450#include <$ac_header>
13451_ACEOF
13452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13454 ac_status=$?
13455 grep -v '^ *+' conftest.er1 >conftest.err
13456 rm -f conftest.er1
13457 cat conftest.err >&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } >/dev/null; then
13460 if test -s conftest.err; then
13461 ac_cpp_err=$ac_c_preproc_warn_flag
13462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13463 else
13464 ac_cpp_err=
13465 fi
5ee754fc 13466else
bec39cab 13467 ac_cpp_err=yes
5ee754fc 13468fi
bec39cab
AC
13469if test -z "$ac_cpp_err"; then
13470 ac_header_preproc=yes
13471else
13472 echo "$as_me: failed program was:" >&5
13473sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13474
bec39cab 13475 ac_header_preproc=no
5ee754fc 13476fi
bec39cab 13477rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13479echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13480
13481# So? What about this header?
13482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13483 yes:no: )
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13488 ac_header_preproc=yes
13489 ;;
13490 no:yes:* )
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13503 (
13504 cat <<\_ASBOX
13505## ------------------------------------------ ##
13506## Report this to the AC_PACKAGE_NAME lists. ##
13507## ------------------------------------------ ##
13508_ASBOX
13509 ) |
13510 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13511 ;;
13512esac
b4e70030
JB
13513echo "$as_me:$LINENO: checking for $ac_header" >&5
13514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13515if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13516 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13517else
bec39cab 13518 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 13519fi
b4e70030
JB
13520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 13522
5ee754fc 13523fi
bec39cab
AC
13524if test `eval echo '${'$as_ac_Header'}'` = yes; then
13525 cat >>confdefs.h <<_ACEOF
13526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13527_ACEOF
c906108c 13528
5ee754fc 13529fi
bec39cab
AC
13530
13531done
13532
13533
13534for ac_header in sys/file.h
13535do
13536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13537if eval "test \"\${$as_ac_Header+set}\" = set"; then
13538 echo "$as_me:$LINENO: checking for $ac_header" >&5
13539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13540if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542fi
b4e70030
JB
13543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13545else
13546 # Is the header compilable?
b4e70030
JB
13547echo "$as_me:$LINENO: checking $ac_header usability" >&5
13548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13549cat >conftest.$ac_ext <<_ACEOF
13550/* confdefs.h. */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h. */
13555$ac_includes_default
13556#include <$ac_header>
13557_ACEOF
13558rm -f conftest.$ac_objext
13559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560 (eval $ac_compile) 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
b4e70030
JB
13567 { ac_try='test -z "$ac_c_werror_flag"
13568 || test ! -s conftest.err'
bec39cab
AC
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest.$ac_objext'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_header_compiler=yes
13581else
13582 echo "$as_me: failed program was:" >&5
13583sed 's/^/| /' conftest.$ac_ext >&5
13584
b4e70030 13585ac_header_compiler=no
bec39cab
AC
13586fi
13587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13588echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13590
13591# Is the header present?
b4e70030
JB
13592echo "$as_me:$LINENO: checking $ac_header presence" >&5
13593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13594cat >conftest.$ac_ext <<_ACEOF
13595/* confdefs.h. */
13596_ACEOF
13597cat confdefs.h >>conftest.$ac_ext
13598cat >>conftest.$ac_ext <<_ACEOF
13599/* end confdefs.h. */
13600#include <$ac_header>
13601_ACEOF
13602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } >/dev/null; then
13610 if test -s conftest.err; then
13611 ac_cpp_err=$ac_c_preproc_warn_flag
13612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13613 else
13614 ac_cpp_err=
13615 fi
5ee754fc 13616else
bec39cab 13617 ac_cpp_err=yes
5ee754fc 13618fi
bec39cab
AC
13619if test -z "$ac_cpp_err"; then
13620 ac_header_preproc=yes
13621else
13622 echo "$as_me: failed program was:" >&5
13623sed 's/^/| /' conftest.$ac_ext >&5
c906108c 13624
bec39cab 13625 ac_header_preproc=no
5ee754fc 13626fi
bec39cab 13627rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13628echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13629echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 13630
bec39cab
AC
13631# So? What about this header?
13632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13633 yes:no: )
13634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13638 ac_header_preproc=yes
13639 ;;
13640 no:yes:* )
13641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13644echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13648echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13653 (
13654 cat <<\_ASBOX
13655## ------------------------------------------ ##
13656## Report this to the AC_PACKAGE_NAME lists. ##
13657## ------------------------------------------ ##
13658_ASBOX
13659 ) |
13660 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13661 ;;
13662esac
b4e70030
JB
13663echo "$as_me:$LINENO: checking for $ac_header" >&5
13664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13665if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13666 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13667else
bec39cab
AC
13668 eval "$as_ac_Header=\$ac_header_preproc"
13669fi
b4e70030
JB
13670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13672
bec39cab
AC
13673fi
13674if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675 cat >>confdefs.h <<_ACEOF
13676#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13677_ACEOF
5ee754fc 13678
bec39cab 13679fi
5ee754fc 13680
bec39cab 13681done
5ee754fc 13682
5ee754fc 13683
bec39cab
AC
13684for ac_header in sys/filio.h
13685do
13686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13687if eval "test \"\${$as_ac_Header+set}\" = set"; then
13688 echo "$as_me:$LINENO: checking for $ac_header" >&5
13689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13690if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13692fi
b4e70030
JB
13693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13695else
13696 # Is the header compilable?
b4e70030
JB
13697echo "$as_me:$LINENO: checking $ac_header usability" >&5
13698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13699cat >conftest.$ac_ext <<_ACEOF
13700/* confdefs.h. */
13701_ACEOF
13702cat confdefs.h >>conftest.$ac_ext
13703cat >>conftest.$ac_ext <<_ACEOF
13704/* end confdefs.h. */
13705$ac_includes_default
13706#include <$ac_header>
13707_ACEOF
13708rm -f conftest.$ac_objext
13709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710 (eval $ac_compile) 2>conftest.er1
13711 ac_status=$?
13712 grep -v '^ *+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
b4e70030
JB
13717 { ac_try='test -z "$ac_c_werror_flag"
13718 || test ! -s conftest.err'
bec39cab
AC
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_header_compiler=yes
13731else
13732 echo "$as_me: failed program was:" >&5
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
b4e70030 13735ac_header_compiler=no
bec39cab
AC
13736fi
13737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13739echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13740
13741# Is the header present?
b4e70030
JB
13742echo "$as_me:$LINENO: checking $ac_header presence" >&5
13743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13744cat >conftest.$ac_ext <<_ACEOF
13745/* confdefs.h. */
13746_ACEOF
13747cat confdefs.h >>conftest.$ac_ext
13748cat >>conftest.$ac_ext <<_ACEOF
13749/* end confdefs.h. */
13750#include <$ac_header>
13751_ACEOF
13752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } >/dev/null; then
13760 if test -s conftest.err; then
13761 ac_cpp_err=$ac_c_preproc_warn_flag
13762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13763 else
13764 ac_cpp_err=
13765 fi
5ee754fc 13766else
bec39cab 13767 ac_cpp_err=yes
5ee754fc 13768fi
bec39cab
AC
13769if test -z "$ac_cpp_err"; then
13770 ac_header_preproc=yes
13771else
13772 echo "$as_me: failed program was:" >&5
13773sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13774
bec39cab 13775 ac_header_preproc=no
5ee754fc 13776fi
bec39cab 13777rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13779echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13780
bec39cab
AC
13781# So? What about this header?
13782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13783 yes:no: )
13784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13788 ac_header_preproc=yes
13789 ;;
13790 no:yes:* )
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13803 (
13804 cat <<\_ASBOX
13805## ------------------------------------------ ##
13806## Report this to the AC_PACKAGE_NAME lists. ##
13807## ------------------------------------------ ##
13808_ASBOX
13809 ) |
13810 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13811 ;;
13812esac
b4e70030
JB
13813echo "$as_me:$LINENO: checking for $ac_header" >&5
13814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13815if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13816 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13817else
bec39cab 13818 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13819fi
b4e70030
JB
13820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13822
5ee754fc 13823fi
bec39cab
AC
13824if test `eval echo '${'$as_ac_Header'}'` = yes; then
13825 cat >>confdefs.h <<_ACEOF
13826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13827_ACEOF
5ee754fc
MK
13828
13829fi
13830
bec39cab
AC
13831done
13832
13833
13834for ac_header in sys/ioctl.h
13835do
13836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13837if eval "test \"\${$as_ac_Header+set}\" = set"; then
13838 echo "$as_me:$LINENO: checking for $ac_header" >&5
13839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13840if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13842fi
b4e70030
JB
13843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13845else
13846 # Is the header compilable?
b4e70030
JB
13847echo "$as_me:$LINENO: checking $ac_header usability" >&5
13848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13849cat >conftest.$ac_ext <<_ACEOF
13850/* confdefs.h. */
13851_ACEOF
13852cat confdefs.h >>conftest.$ac_ext
13853cat >>conftest.$ac_ext <<_ACEOF
13854/* end confdefs.h. */
13855$ac_includes_default
13856#include <$ac_header>
13857_ACEOF
13858rm -f conftest.$ac_objext
13859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860 (eval $ac_compile) 2>conftest.er1
13861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
b4e70030
JB
13867 { ac_try='test -z "$ac_c_werror_flag"
13868 || test ! -s conftest.err'
bec39cab
AC
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; } &&
13874 { ac_try='test -s conftest.$ac_objext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_header_compiler=yes
13881else
13882 echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
b4e70030 13885ac_header_compiler=no
bec39cab
AC
13886fi
13887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13888echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13889echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13890
13891# Is the header present?
b4e70030
JB
13892echo "$as_me:$LINENO: checking $ac_header presence" >&5
13893echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13894cat >conftest.$ac_ext <<_ACEOF
13895/* confdefs.h. */
13896_ACEOF
13897cat confdefs.h >>conftest.$ac_ext
13898cat >>conftest.$ac_ext <<_ACEOF
13899/* end confdefs.h. */
13900#include <$ac_header>
13901_ACEOF
13902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } >/dev/null; then
13910 if test -s conftest.err; then
13911 ac_cpp_err=$ac_c_preproc_warn_flag
13912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13913 else
13914 ac_cpp_err=
13915 fi
5ee754fc 13916else
bec39cab 13917 ac_cpp_err=yes
5ee754fc 13918fi
bec39cab
AC
13919if test -z "$ac_cpp_err"; then
13920 ac_header_preproc=yes
13921else
13922 echo "$as_me: failed program was:" >&5
13923sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13924
bec39cab 13925 ac_header_preproc=no
5ee754fc 13926fi
bec39cab 13927rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13928echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13929echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13930
bec39cab
AC
13931# So? What about this header?
13932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13933 yes:no: )
13934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13935echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13937echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13938 ac_header_preproc=yes
13939 ;;
13940 no:yes:* )
13941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13944echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13946echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13948echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13952echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13953 (
13954 cat <<\_ASBOX
13955## ------------------------------------------ ##
13956## Report this to the AC_PACKAGE_NAME lists. ##
13957## ------------------------------------------ ##
13958_ASBOX
13959 ) |
13960 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13961 ;;
13962esac
b4e70030
JB
13963echo "$as_me:$LINENO: checking for $ac_header" >&5
13964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13965if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13966 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13967else
bec39cab 13968 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13969fi
b4e70030
JB
13970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
13972
13973fi
bec39cab
AC
13974if test `eval echo '${'$as_ac_Header'}'` = yes; then
13975 cat >>confdefs.h <<_ACEOF
13976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13977_ACEOF
13978
5ee754fc
MK
13979fi
13980
bec39cab 13981done
5ee754fc 13982
5ee754fc 13983
bec39cab 13984for ac_header in sys/param.h
5ee754fc 13985do
bec39cab 13986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13987if eval "test \"\${$as_ac_Header+set}\" = set"; then
13988 echo "$as_me:$LINENO: checking for $ac_header" >&5
13989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13990if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13992fi
b4e70030
JB
13993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13995else
13996 # Is the header compilable?
b4e70030
JB
13997echo "$as_me:$LINENO: checking $ac_header usability" >&5
13998echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13999cat >conftest.$ac_ext <<_ACEOF
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h. */
14005$ac_includes_default
14006#include <$ac_header>
14007_ACEOF
14008rm -f conftest.$ac_objext
14009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>conftest.er1
14011 ac_status=$?
14012 grep -v '^ *+' conftest.er1 >conftest.err
14013 rm -f conftest.er1
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } &&
b4e70030
JB
14017 { ac_try='test -z "$ac_c_werror_flag"
14018 || test ! -s conftest.err'
bec39cab
AC
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; } &&
14024 { ac_try='test -s conftest.$ac_objext'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_header_compiler=yes
14031else
14032 echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
b4e70030 14035ac_header_compiler=no
bec39cab
AC
14036fi
14037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14038echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14039echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14040
14041# Is the header present?
b4e70030
JB
14042echo "$as_me:$LINENO: checking $ac_header presence" >&5
14043echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14044cat >conftest.$ac_ext <<_ACEOF
14045/* confdefs.h. */
14046_ACEOF
14047cat confdefs.h >>conftest.$ac_ext
14048cat >>conftest.$ac_ext <<_ACEOF
14049/* end confdefs.h. */
14050#include <$ac_header>
14051_ACEOF
14052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14054 ac_status=$?
14055 grep -v '^ *+' conftest.er1 >conftest.err
14056 rm -f conftest.er1
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } >/dev/null; then
14060 if test -s conftest.err; then
14061 ac_cpp_err=$ac_c_preproc_warn_flag
14062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14063 else
14064 ac_cpp_err=
14065 fi
5ee754fc 14066else
bec39cab 14067 ac_cpp_err=yes
5ee754fc 14068fi
bec39cab
AC
14069if test -z "$ac_cpp_err"; then
14070 ac_header_preproc=yes
14071else
14072 echo "$as_me: failed program was:" >&5
14073sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 14074
bec39cab 14075 ac_header_preproc=no
5ee754fc 14076fi
bec39cab 14077rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14078echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14079echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
14080
14081# So? What about this header?
14082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14083 yes:no: )
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14087echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14088 ac_header_preproc=yes
14089 ;;
14090 no:yes:* )
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14096echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14098echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14102echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14103 (
14104 cat <<\_ASBOX
14105## ------------------------------------------ ##
14106## Report this to the AC_PACKAGE_NAME lists. ##
14107## ------------------------------------------ ##
14108_ASBOX
14109 ) |
14110 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14111 ;;
14112esac
b4e70030
JB
14113echo "$as_me:$LINENO: checking for $ac_header" >&5
14114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14115if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14116 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 14117else
bec39cab 14118 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14119fi
b4e70030
JB
14120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 14122
5ee754fc 14123fi
bec39cab
AC
14124if test `eval echo '${'$as_ac_Header'}'` = yes; then
14125 cat >>confdefs.h <<_ACEOF
14126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14127_ACEOF
14128
5ee754fc 14129fi
bec39cab 14130
5ee754fc
MK
14131done
14132
bec39cab 14133
7eb368b3
NR
14134for ac_header in sys/resource.h
14135do
14136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14137if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo "$as_me:$LINENO: checking for $ac_header" >&5
14139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14140if eval "test \"\${$as_ac_Header+set}\" = set"; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142fi
14143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14144echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14145else
14146 # Is the header compilable?
14147echo "$as_me:$LINENO: checking $ac_header usability" >&5
14148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14149cat >conftest.$ac_ext <<_ACEOF
14150/* confdefs.h. */
14151_ACEOF
14152cat confdefs.h >>conftest.$ac_ext
14153cat >>conftest.$ac_ext <<_ACEOF
14154/* end confdefs.h. */
14155$ac_includes_default
14156#include <$ac_header>
14157_ACEOF
14158rm -f conftest.$ac_objext
14159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_header_compiler=yes
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185ac_header_compiler=no
14186fi
14187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14189echo "${ECHO_T}$ac_header_compiler" >&6
14190
14191# Is the header present?
14192echo "$as_me:$LINENO: checking $ac_header presence" >&5
14193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14194cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
14200#include <$ac_header>
14201_ACEOF
14202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } >/dev/null; then
14210 if test -s conftest.err; then
14211 ac_cpp_err=$ac_c_preproc_warn_flag
14212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14213 else
14214 ac_cpp_err=
14215 fi
14216else
14217 ac_cpp_err=yes
14218fi
14219if test -z "$ac_cpp_err"; then
14220 ac_header_preproc=yes
14221else
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 ac_header_preproc=no
14226fi
14227rm -f conftest.err conftest.$ac_ext
14228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229echo "${ECHO_T}$ac_header_preproc" >&6
14230
14231# So? What about this header?
14232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
14239 ;;
14240 no:yes:* )
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14253 (
14254 cat <<\_ASBOX
14255## ------------------------------------------ ##
14256## Report this to the AC_PACKAGE_NAME lists. ##
14257## ------------------------------------------ ##
14258_ASBOX
14259 ) |
14260 sed "s/^/$as_me: WARNING: /" >&2
14261 ;;
14262esac
14263echo "$as_me:$LINENO: checking for $ac_header" >&5
14264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14265if eval "test \"\${$as_ac_Header+set}\" = set"; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267else
14268 eval "$as_ac_Header=\$ac_header_preproc"
14269fi
14270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272
14273fi
14274if test `eval echo '${'$as_ac_Header'}'` = yes; then
14275 cat >>confdefs.h <<_ACEOF
14276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14277_ACEOF
14278
14279fi
14280
14281done
14282
14283
bec39cab 14284for ac_header in sys/proc.h
5ee754fc 14285do
bec39cab 14286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14287echo "$as_me:$LINENO: checking for $ac_header" >&5
14288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14289if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14290 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14291else
7cb9022a 14292 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14293/* confdefs.h. */
14294_ACEOF
14295cat confdefs.h >>conftest.$ac_ext
14296cat >>conftest.$ac_ext <<_ACEOF
14297/* end confdefs.h. */
7cb9022a
MK
14298#if HAVE_SYS_PARAM_H
14299# include <sys/param.h>
14300#endif
14301
14302
bec39cab
AC
14303#include <$ac_header>
14304_ACEOF
14305rm -f conftest.$ac_objext
14306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
b4e70030
JB
14314 { ac_try='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
bec39cab
AC
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
7cb9022a 14327 eval "$as_ac_Header=yes"
bec39cab
AC
14328else
14329 echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
b4e70030 14332eval "$as_ac_Header=no"
bec39cab
AC
14333fi
14334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 14335fi
b4e70030
JB
14336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14338if test `eval echo '${'$as_ac_Header'}'` = yes; then
14339 cat >>confdefs.h <<_ACEOF
14340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14341_ACEOF
14342
5ee754fc 14343fi
bec39cab 14344
5ee754fc
MK
14345done
14346
bec39cab
AC
14347
14348for ac_header in sys/procfs.h
5ee754fc 14349do
bec39cab 14350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14351if eval "test \"\${$as_ac_Header+set}\" = set"; then
14352 echo "$as_me:$LINENO: checking for $ac_header" >&5
14353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14354if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356fi
b4e70030
JB
14357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14359else
14360 # Is the header compilable?
b4e70030
JB
14361echo "$as_me:$LINENO: checking $ac_header usability" >&5
14362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14363cat >conftest.$ac_ext <<_ACEOF
14364/* confdefs.h. */
14365_ACEOF
14366cat confdefs.h >>conftest.$ac_ext
14367cat >>conftest.$ac_ext <<_ACEOF
14368/* end confdefs.h. */
14369$ac_includes_default
14370#include <$ac_header>
14371_ACEOF
14372rm -f conftest.$ac_objext
14373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374 (eval $ac_compile) 2>conftest.er1
14375 ac_status=$?
14376 grep -v '^ *+' conftest.er1 >conftest.err
14377 rm -f conftest.er1
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
b4e70030
JB
14381 { ac_try='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
bec39cab
AC
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 ac_header_compiler=yes
14395else
14396 echo "$as_me: failed program was:" >&5
14397sed 's/^/| /' conftest.$ac_ext >&5
14398
b4e70030 14399ac_header_compiler=no
bec39cab
AC
14400fi
14401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14402echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14403echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14404
14405# Is the header present?
b4e70030
JB
14406echo "$as_me:$LINENO: checking $ac_header presence" >&5
14407echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14408cat >conftest.$ac_ext <<_ACEOF
14409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
14413/* end confdefs.h. */
14414#include <$ac_header>
14415_ACEOF
14416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } >/dev/null; then
14424 if test -s conftest.err; then
14425 ac_cpp_err=$ac_c_preproc_warn_flag
14426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14427 else
14428 ac_cpp_err=
14429 fi
14430else
14431 ac_cpp_err=yes
5ee754fc 14432fi
bec39cab
AC
14433if test -z "$ac_cpp_err"; then
14434 ac_header_preproc=yes
5ee754fc 14435else
bec39cab
AC
14436 echo "$as_me: failed program was:" >&5
14437sed 's/^/| /' conftest.$ac_ext >&5
14438
14439 ac_header_preproc=no
5ee754fc 14440fi
bec39cab 14441rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14442echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14443echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14444
bec39cab
AC
14445# So? What about this header?
14446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14447 yes:no: )
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14452 ac_header_preproc=yes
14453 ;;
14454 no:yes:* )
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14462echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14467 (
14468 cat <<\_ASBOX
14469## ------------------------------------------ ##
14470## Report this to the AC_PACKAGE_NAME lists. ##
14471## ------------------------------------------ ##
14472_ASBOX
14473 ) |
14474 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14475 ;;
14476esac
b4e70030
JB
14477echo "$as_me:$LINENO: checking for $ac_header" >&5
14478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14479if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481else
14482 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14483fi
b4e70030
JB
14484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14486
5ee754fc 14487fi
bec39cab
AC
14488if test `eval echo '${'$as_ac_Header'}'` = yes; then
14489 cat >>confdefs.h <<_ACEOF
14490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14491_ACEOF
14492
5ee754fc 14493fi
bec39cab 14494
5ee754fc
MK
14495done
14496
bec39cab
AC
14497
14498
14499for ac_header in sys/ptrace.h ptrace.h
5ee754fc 14500do
bec39cab 14501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14502if eval "test \"\${$as_ac_Header+set}\" = set"; then
14503 echo "$as_me:$LINENO: checking for $ac_header" >&5
14504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14505if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14507fi
b4e70030
JB
14508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14510else
14511 # Is the header compilable?
b4e70030
JB
14512echo "$as_me:$LINENO: checking $ac_header usability" >&5
14513echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14514cat >conftest.$ac_ext <<_ACEOF
14515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
14519/* end confdefs.h. */
14520$ac_includes_default
14521#include <$ac_header>
14522_ACEOF
14523rm -f conftest.$ac_objext
14524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14525 (eval $ac_compile) 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
b4e70030
JB
14532 { ac_try='test -z "$ac_c_werror_flag"
14533 || test ! -s conftest.err'
bec39cab
AC
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest.$ac_objext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_header_compiler=yes
14546else
14547 echo "$as_me: failed program was:" >&5
14548sed 's/^/| /' conftest.$ac_ext >&5
14549
b4e70030 14550ac_header_compiler=no
bec39cab
AC
14551fi
14552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14553echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14554echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14555
14556# Is the header present?
b4e70030
JB
14557echo "$as_me:$LINENO: checking $ac_header presence" >&5
14558echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14559cat >conftest.$ac_ext <<_ACEOF
14560/* confdefs.h. */
14561_ACEOF
14562cat confdefs.h >>conftest.$ac_ext
14563cat >>conftest.$ac_ext <<_ACEOF
14564/* end confdefs.h. */
14565#include <$ac_header>
14566_ACEOF
14567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } >/dev/null; then
14575 if test -s conftest.err; then
14576 ac_cpp_err=$ac_c_preproc_warn_flag
14577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14578 else
14579 ac_cpp_err=
14580 fi
14581else
14582 ac_cpp_err=yes
5ee754fc 14583fi
bec39cab
AC
14584if test -z "$ac_cpp_err"; then
14585 ac_header_preproc=yes
5ee754fc 14586else
bec39cab
AC
14587 echo "$as_me: failed program was:" >&5
14588sed 's/^/| /' conftest.$ac_ext >&5
14589
14590 ac_header_preproc=no
5ee754fc 14591fi
bec39cab 14592rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14593echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14594echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14595
bec39cab
AC
14596# So? What about this header?
14597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14598 yes:no: )
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14603 ac_header_preproc=yes
14604 ;;
14605 no:yes:* )
14606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14613echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14618 (
14619 cat <<\_ASBOX
14620## ------------------------------------------ ##
14621## Report this to the AC_PACKAGE_NAME lists. ##
14622## ------------------------------------------ ##
14623_ASBOX
14624 ) |
14625 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14626 ;;
14627esac
b4e70030
JB
14628echo "$as_me:$LINENO: checking for $ac_header" >&5
14629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14630if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632else
14633 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14634fi
b4e70030
JB
14635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14637
5ee754fc 14638fi
bec39cab
AC
14639if test `eval echo '${'$as_ac_Header'}'` = yes; then
14640 cat >>confdefs.h <<_ACEOF
14641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14642_ACEOF
14643
5ee754fc 14644fi
bec39cab 14645
5ee754fc
MK
14646done
14647
bec39cab
AC
14648
14649
14650for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 14651do
bec39cab 14652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14653if eval "test \"\${$as_ac_Header+set}\" = set"; then
14654 echo "$as_me:$LINENO: checking for $ac_header" >&5
14655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14656if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14658fi
b4e70030
JB
14659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14661else
14662 # Is the header compilable?
b4e70030
JB
14663echo "$as_me:$LINENO: checking $ac_header usability" >&5
14664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14665cat >conftest.$ac_ext <<_ACEOF
14666/* confdefs.h. */
14667_ACEOF
14668cat confdefs.h >>conftest.$ac_ext
14669cat >>conftest.$ac_ext <<_ACEOF
14670/* end confdefs.h. */
14671$ac_includes_default
14672#include <$ac_header>
14673_ACEOF
14674rm -f conftest.$ac_objext
14675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14676 (eval $ac_compile) 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
b4e70030
JB
14683 { ac_try='test -z "$ac_c_werror_flag"
14684 || test ! -s conftest.err'
bec39cab
AC
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; } &&
14690 { ac_try='test -s conftest.$ac_objext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 ac_header_compiler=yes
14697else
14698 echo "$as_me: failed program was:" >&5
14699sed 's/^/| /' conftest.$ac_ext >&5
14700
b4e70030 14701ac_header_compiler=no
bec39cab
AC
14702fi
14703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14705echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14706
14707# Is the header present?
b4e70030
JB
14708echo "$as_me:$LINENO: checking $ac_header presence" >&5
14709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14710cat >conftest.$ac_ext <<_ACEOF
14711/* confdefs.h. */
14712_ACEOF
14713cat confdefs.h >>conftest.$ac_ext
14714cat >>conftest.$ac_ext <<_ACEOF
14715/* end confdefs.h. */
14716#include <$ac_header>
14717_ACEOF
14718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } >/dev/null; then
14726 if test -s conftest.err; then
14727 ac_cpp_err=$ac_c_preproc_warn_flag
14728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14729 else
14730 ac_cpp_err=
14731 fi
14732else
14733 ac_cpp_err=yes
5ee754fc 14734fi
bec39cab
AC
14735if test -z "$ac_cpp_err"; then
14736 ac_header_preproc=yes
5ee754fc 14737else
bec39cab
AC
14738 echo "$as_me: failed program was:" >&5
14739sed 's/^/| /' conftest.$ac_ext >&5
14740
14741 ac_header_preproc=no
5ee754fc 14742fi
bec39cab 14743rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14745echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14746
bec39cab
AC
14747# So? What about this header?
14748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14749 yes:no: )
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14754 ac_header_preproc=yes
14755 ;;
14756 no:yes:* )
14757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14760echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14764echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14769 (
14770 cat <<\_ASBOX
14771## ------------------------------------------ ##
14772## Report this to the AC_PACKAGE_NAME lists. ##
14773## ------------------------------------------ ##
14774_ASBOX
14775 ) |
14776 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14777 ;;
14778esac
b4e70030
JB
14779echo "$as_me:$LINENO: checking for $ac_header" >&5
14780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14781if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14783else
14784 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14785fi
b4e70030
JB
14786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14788
5ee754fc 14789fi
bec39cab
AC
14790if test `eval echo '${'$as_ac_Header'}'` = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14793_ACEOF
14794
5ee754fc 14795fi
bec39cab 14796
5ee754fc
MK
14797done
14798
bec39cab
AC
14799
14800for ac_header in sys/select.h
5ee754fc 14801do
bec39cab 14802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14803if eval "test \"\${$as_ac_Header+set}\" = set"; then
14804 echo "$as_me:$LINENO: checking for $ac_header" >&5
14805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14806if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808fi
b4e70030
JB
14809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14811else
14812 # Is the header compilable?
b4e70030
JB
14813echo "$as_me:$LINENO: checking $ac_header usability" >&5
14814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14815cat >conftest.$ac_ext <<_ACEOF
14816/* confdefs.h. */
14817_ACEOF
14818cat confdefs.h >>conftest.$ac_ext
14819cat >>conftest.$ac_ext <<_ACEOF
14820/* end confdefs.h. */
14821$ac_includes_default
14822#include <$ac_header>
14823_ACEOF
14824rm -f conftest.$ac_objext
14825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826 (eval $ac_compile) 2>conftest.er1
14827 ac_status=$?
14828 grep -v '^ *+' conftest.er1 >conftest.err
14829 rm -f conftest.er1
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
b4e70030
JB
14833 { ac_try='test -z "$ac_c_werror_flag"
14834 || test ! -s conftest.err'
bec39cab
AC
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_header_compiler=yes
14847else
14848 echo "$as_me: failed program was:" >&5
14849sed 's/^/| /' conftest.$ac_ext >&5
14850
b4e70030 14851ac_header_compiler=no
bec39cab
AC
14852fi
14853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14855echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14856
14857# Is the header present?
b4e70030
JB
14858echo "$as_me:$LINENO: checking $ac_header presence" >&5
14859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14860cat >conftest.$ac_ext <<_ACEOF
14861/* confdefs.h. */
14862_ACEOF
14863cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF
14865/* end confdefs.h. */
14866#include <$ac_header>
14867_ACEOF
14868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } >/dev/null; then
14876 if test -s conftest.err; then
14877 ac_cpp_err=$ac_c_preproc_warn_flag
14878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14879 else
14880 ac_cpp_err=
14881 fi
14882else
14883 ac_cpp_err=yes
5ee754fc 14884fi
bec39cab
AC
14885if test -z "$ac_cpp_err"; then
14886 ac_header_preproc=yes
5ee754fc 14887else
bec39cab
AC
14888 echo "$as_me: failed program was:" >&5
14889sed 's/^/| /' conftest.$ac_ext >&5
14890
14891 ac_header_preproc=no
5ee754fc 14892fi
bec39cab 14893rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14895echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14896
bec39cab
AC
14897# So? What about this header?
14898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14899 yes:no: )
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14904 ac_header_preproc=yes
14905 ;;
14906 no:yes:* )
14907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14910echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14914echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14919 (
14920 cat <<\_ASBOX
14921## ------------------------------------------ ##
14922## Report this to the AC_PACKAGE_NAME lists. ##
14923## ------------------------------------------ ##
14924_ASBOX
14925 ) |
14926 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14927 ;;
14928esac
b4e70030
JB
14929echo "$as_me:$LINENO: checking for $ac_header" >&5
14930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14931if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933else
14934 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14935fi
b4e70030
JB
14936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14938
5ee754fc 14939fi
bec39cab
AC
14940if test `eval echo '${'$as_ac_Header'}'` = yes; then
14941 cat >>confdefs.h <<_ACEOF
14942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14943_ACEOF
14944
5ee754fc 14945fi
bec39cab 14946
5ee754fc
MK
14947done
14948
bec39cab
AC
14949
14950for ac_header in sys/syscall.h
5ee754fc 14951do
bec39cab 14952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14953if eval "test \"\${$as_ac_Header+set}\" = set"; then
14954 echo "$as_me:$LINENO: checking for $ac_header" >&5
14955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14956if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14958fi
b4e70030
JB
14959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14961else
14962 # Is the header compilable?
b4e70030
JB
14963echo "$as_me:$LINENO: checking $ac_header usability" >&5
14964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14965cat >conftest.$ac_ext <<_ACEOF
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
14970/* end confdefs.h. */
14971$ac_includes_default
14972#include <$ac_header>
14973_ACEOF
14974rm -f conftest.$ac_objext
14975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14976 (eval $ac_compile) 2>conftest.er1
14977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } &&
b4e70030
JB
14983 { ac_try='test -z "$ac_c_werror_flag"
14984 || test ! -s conftest.err'
bec39cab
AC
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; } &&
14990 { ac_try='test -s conftest.$ac_objext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_header_compiler=yes
14997else
14998 echo "$as_me: failed program was:" >&5
14999sed 's/^/| /' conftest.$ac_ext >&5
15000
b4e70030 15001ac_header_compiler=no
bec39cab
AC
15002fi
15003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15005echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15006
15007# Is the header present?
b4e70030
JB
15008echo "$as_me:$LINENO: checking $ac_header presence" >&5
15009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15010cat >conftest.$ac_ext <<_ACEOF
15011/* confdefs.h. */
15012_ACEOF
15013cat confdefs.h >>conftest.$ac_ext
15014cat >>conftest.$ac_ext <<_ACEOF
15015/* end confdefs.h. */
15016#include <$ac_header>
15017_ACEOF
15018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } >/dev/null; then
15026 if test -s conftest.err; then
15027 ac_cpp_err=$ac_c_preproc_warn_flag
15028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15029 else
15030 ac_cpp_err=
15031 fi
15032else
15033 ac_cpp_err=yes
5ee754fc 15034fi
bec39cab
AC
15035if test -z "$ac_cpp_err"; then
15036 ac_header_preproc=yes
5ee754fc 15037else
bec39cab
AC
15038 echo "$as_me: failed program was:" >&5
15039sed 's/^/| /' conftest.$ac_ext >&5
15040
15041 ac_header_preproc=no
5ee754fc 15042fi
bec39cab 15043rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15045echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15046
bec39cab
AC
15047# So? What about this header?
15048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15049 yes:no: )
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15054 ac_header_preproc=yes
15055 ;;
15056 no:yes:* )
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15069 (
15070 cat <<\_ASBOX
15071## ------------------------------------------ ##
15072## Report this to the AC_PACKAGE_NAME lists. ##
15073## ------------------------------------------ ##
15074_ASBOX
15075 ) |
15076 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15077 ;;
15078esac
b4e70030
JB
15079echo "$as_me:$LINENO: checking for $ac_header" >&5
15080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15081if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15083else
15084 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 15085fi
b4e70030
JB
15086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15088
5ee754fc 15089fi
bec39cab
AC
15090if test `eval echo '${'$as_ac_Header'}'` = yes; then
15091 cat >>confdefs.h <<_ACEOF
15092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15093_ACEOF
15094
5ee754fc 15095fi
bec39cab 15096
5ee754fc
MK
15097done
15098
bec39cab
AC
15099
15100for ac_header in sys/types.h
5ee754fc 15101do
bec39cab 15102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15103if eval "test \"\${$as_ac_Header+set}\" = set"; then
15104 echo "$as_me:$LINENO: checking for $ac_header" >&5
15105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15106if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15108fi
b4e70030
JB
15109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15111else
15112 # Is the header compilable?
b4e70030
JB
15113echo "$as_me:$LINENO: checking $ac_header usability" >&5
15114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15115cat >conftest.$ac_ext <<_ACEOF
15116/* confdefs.h. */
15117_ACEOF
15118cat confdefs.h >>conftest.$ac_ext
15119cat >>conftest.$ac_ext <<_ACEOF
15120/* end confdefs.h. */
15121$ac_includes_default
15122#include <$ac_header>
15123_ACEOF
15124rm -f conftest.$ac_objext
15125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15126 (eval $ac_compile) 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
b4e70030
JB
15133 { ac_try='test -z "$ac_c_werror_flag"
15134 || test ! -s conftest.err'
bec39cab
AC
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; } &&
15140 { ac_try='test -s conftest.$ac_objext'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; }; then
15146 ac_header_compiler=yes
15147else
15148 echo "$as_me: failed program was:" >&5
15149sed 's/^/| /' conftest.$ac_ext >&5
15150
b4e70030 15151ac_header_compiler=no
bec39cab
AC
15152fi
15153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15154echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15155echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15156
15157# Is the header present?
b4e70030
JB
15158echo "$as_me:$LINENO: checking $ac_header presence" >&5
15159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15160cat >conftest.$ac_ext <<_ACEOF
15161/* confdefs.h. */
15162_ACEOF
15163cat confdefs.h >>conftest.$ac_ext
15164cat >>conftest.$ac_ext <<_ACEOF
15165/* end confdefs.h. */
15166#include <$ac_header>
15167_ACEOF
15168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15170 ac_status=$?
15171 grep -v '^ *+' conftest.er1 >conftest.err
15172 rm -f conftest.er1
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } >/dev/null; then
15176 if test -s conftest.err; then
15177 ac_cpp_err=$ac_c_preproc_warn_flag
15178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15179 else
15180 ac_cpp_err=
15181 fi
15182else
15183 ac_cpp_err=yes
5ee754fc 15184fi
bec39cab
AC
15185if test -z "$ac_cpp_err"; then
15186 ac_header_preproc=yes
5ee754fc 15187else
bec39cab
AC
15188 echo "$as_me: failed program was:" >&5
15189sed 's/^/| /' conftest.$ac_ext >&5
15190
15191 ac_header_preproc=no
5ee754fc 15192fi
bec39cab 15193rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15195echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15196
bec39cab
AC
15197# So? What about this header?
15198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15199 yes:no: )
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15204 ac_header_preproc=yes
15205 ;;
15206 no:yes:* )
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15214echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15219 (
15220 cat <<\_ASBOX
15221## ------------------------------------------ ##
15222## Report this to the AC_PACKAGE_NAME lists. ##
15223## ------------------------------------------ ##
15224_ASBOX
15225 ) |
15226 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15227 ;;
15228esac
b4e70030
JB
15229echo "$as_me:$LINENO: checking for $ac_header" >&5
15230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15231if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233else
15234 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 15235fi
b4e70030
JB
15236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15238
5ee754fc 15239fi
bec39cab
AC
15240if test `eval echo '${'$as_ac_Header'}'` = yes; then
15241 cat >>confdefs.h <<_ACEOF
15242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15243_ACEOF
15244
5ee754fc 15245fi
bec39cab 15246
5ee754fc
MK
15247done
15248
bec39cab
AC
15249
15250for ac_header in sys/user.h
5ee754fc 15251do
bec39cab 15252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15253echo "$as_me:$LINENO: checking for $ac_header" >&5
15254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15255if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15256 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15257else
7cb9022a 15258 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15259/* confdefs.h. */
15260_ACEOF
15261cat confdefs.h >>conftest.$ac_ext
15262cat >>conftest.$ac_ext <<_ACEOF
15263/* end confdefs.h. */
7cb9022a
MK
15264#if HAVE_SYS_PARAM_H
15265# include <sys/param.h>
15266#endif
15267
15268
bec39cab
AC
15269#include <$ac_header>
15270_ACEOF
15271rm -f conftest.$ac_objext
15272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15273 (eval $ac_compile) 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); } &&
b4e70030
JB
15280 { ac_try='test -z "$ac_c_werror_flag"
15281 || test ! -s conftest.err'
bec39cab
AC
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; } &&
15287 { ac_try='test -s conftest.$ac_objext'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
7cb9022a 15293 eval "$as_ac_Header=yes"
bec39cab
AC
15294else
15295 echo "$as_me: failed program was:" >&5
15296sed 's/^/| /' conftest.$ac_ext >&5
15297
b4e70030 15298eval "$as_ac_Header=no"
bec39cab
AC
15299fi
15300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 15301fi
b4e70030
JB
15302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15304if test `eval echo '${'$as_ac_Header'}'` = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15307_ACEOF
15308
5ee754fc 15309fi
bec39cab 15310
5ee754fc
MK
15311done
15312
bec39cab
AC
15313
15314
15315for ac_header in sys/wait.h wait.h
5ee754fc 15316do
bec39cab 15317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15318if eval "test \"\${$as_ac_Header+set}\" = set"; then
15319 echo "$as_me:$LINENO: checking for $ac_header" >&5
15320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15321if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15323fi
b4e70030
JB
15324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15326else
15327 # Is the header compilable?
b4e70030
JB
15328echo "$as_me:$LINENO: checking $ac_header usability" >&5
15329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15330cat >conftest.$ac_ext <<_ACEOF
15331/* confdefs.h. */
15332_ACEOF
15333cat confdefs.h >>conftest.$ac_ext
15334cat >>conftest.$ac_ext <<_ACEOF
15335/* end confdefs.h. */
15336$ac_includes_default
15337#include <$ac_header>
15338_ACEOF
15339rm -f conftest.$ac_objext
15340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15341 (eval $ac_compile) 2>conftest.er1
15342 ac_status=$?
15343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } &&
b4e70030
JB
15348 { ac_try='test -z "$ac_c_werror_flag"
15349 || test ! -s conftest.err'
bec39cab
AC
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try='test -s conftest.$ac_objext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_header_compiler=yes
15362else
15363 echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
b4e70030 15366ac_header_compiler=no
bec39cab
AC
15367fi
15368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15370echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15371
15372# Is the header present?
b4e70030
JB
15373echo "$as_me:$LINENO: checking $ac_header presence" >&5
15374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15375cat >conftest.$ac_ext <<_ACEOF
15376/* confdefs.h. */
15377_ACEOF
15378cat confdefs.h >>conftest.$ac_ext
15379cat >>conftest.$ac_ext <<_ACEOF
15380/* end confdefs.h. */
15381#include <$ac_header>
15382_ACEOF
15383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15385 ac_status=$?
15386 grep -v '^ *+' conftest.er1 >conftest.err
15387 rm -f conftest.er1
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } >/dev/null; then
15391 if test -s conftest.err; then
15392 ac_cpp_err=$ac_c_preproc_warn_flag
15393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15394 else
15395 ac_cpp_err=
15396 fi
15397else
15398 ac_cpp_err=yes
5ee754fc 15399fi
bec39cab
AC
15400if test -z "$ac_cpp_err"; then
15401 ac_header_preproc=yes
5ee754fc 15402else
bec39cab
AC
15403 echo "$as_me: failed program was:" >&5
15404sed 's/^/| /' conftest.$ac_ext >&5
15405
15406 ac_header_preproc=no
5ee754fc 15407fi
bec39cab 15408rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15410echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15411
bec39cab
AC
15412# So? What about this header?
15413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15414 yes:no: )
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15418echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15419 ac_header_preproc=yes
15420 ;;
15421 no:yes:* )
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15425echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15427echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15429echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15433echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15434 (
15435 cat <<\_ASBOX
15436## ------------------------------------------ ##
15437## Report this to the AC_PACKAGE_NAME lists. ##
15438## ------------------------------------------ ##
15439_ASBOX
15440 ) |
15441 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15442 ;;
15443esac
b4e70030
JB
15444echo "$as_me:$LINENO: checking for $ac_header" >&5
15445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15446if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15448else
15449 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15450fi
b4e70030
JB
15451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15453
9608ab8b 15454fi
bec39cab
AC
15455if test `eval echo '${'$as_ac_Header'}'` = yes; then
15456 cat >>confdefs.h <<_ACEOF
15457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15458_ACEOF
15459
9608ab8b 15460fi
bec39cab 15461
9608ab8b 15462done
5ee754fc 15463
bec39cab
AC
15464
15465
15466
15467for ac_header in termios.h termio.h sgtty.h
5ee754fc 15468do
bec39cab 15469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15470if eval "test \"\${$as_ac_Header+set}\" = set"; then
15471 echo "$as_me:$LINENO: checking for $ac_header" >&5
15472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15473if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475fi
b4e70030
JB
15476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15478else
15479 # Is the header compilable?
b4e70030
JB
15480echo "$as_me:$LINENO: checking $ac_header usability" >&5
15481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15482cat >conftest.$ac_ext <<_ACEOF
15483/* confdefs.h. */
15484_ACEOF
15485cat confdefs.h >>conftest.$ac_ext
15486cat >>conftest.$ac_ext <<_ACEOF
15487/* end confdefs.h. */
15488$ac_includes_default
15489#include <$ac_header>
15490_ACEOF
15491rm -f conftest.$ac_objext
15492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
b4e70030
JB
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
bec39cab
AC
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest.$ac_objext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_header_compiler=yes
15514else
15515 echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
b4e70030 15518ac_header_compiler=no
bec39cab
AC
15519fi
15520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15522echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15523
15524# Is the header present?
b4e70030
JB
15525echo "$as_me:$LINENO: checking $ac_header presence" >&5
15526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15527cat >conftest.$ac_ext <<_ACEOF
15528/* confdefs.h. */
15529_ACEOF
15530cat confdefs.h >>conftest.$ac_ext
15531cat >>conftest.$ac_ext <<_ACEOF
15532/* end confdefs.h. */
15533#include <$ac_header>
15534_ACEOF
15535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15537 ac_status=$?
15538 grep -v '^ *+' conftest.er1 >conftest.err
15539 rm -f conftest.er1
15540 cat conftest.err >&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } >/dev/null; then
15543 if test -s conftest.err; then
15544 ac_cpp_err=$ac_c_preproc_warn_flag
15545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15546 else
15547 ac_cpp_err=
15548 fi
15549else
15550 ac_cpp_err=yes
9608ab8b 15551fi
bec39cab
AC
15552if test -z "$ac_cpp_err"; then
15553 ac_header_preproc=yes
9608ab8b 15554else
bec39cab
AC
15555 echo "$as_me: failed program was:" >&5
15556sed 's/^/| /' conftest.$ac_ext >&5
15557
15558 ac_header_preproc=no
9608ab8b 15559fi
bec39cab 15560rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15562echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 15563
bec39cab
AC
15564# So? What about this header?
15565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15566 yes:no: )
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15571 ac_header_preproc=yes
15572 ;;
15573 no:yes:* )
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15577echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15581echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15586 (
15587 cat <<\_ASBOX
15588## ------------------------------------------ ##
15589## Report this to the AC_PACKAGE_NAME lists. ##
15590## ------------------------------------------ ##
15591_ASBOX
15592 ) |
15593 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15594 ;;
15595esac
b4e70030
JB
15596echo "$as_me:$LINENO: checking for $ac_header" >&5
15597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15598if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600else
15601 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15602fi
b4e70030
JB
15603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15605
9608ab8b 15606fi
bec39cab
AC
15607if test `eval echo '${'$as_ac_Header'}'` = yes; then
15608 cat >>confdefs.h <<_ACEOF
15609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15610_ACEOF
15611
9608ab8b 15612fi
bec39cab 15613
5ee754fc 15614done
9608ab8b 15615
bec39cab
AC
15616
15617for ac_header in unistd.h
78434e59 15618do
bec39cab 15619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15620if eval "test \"\${$as_ac_Header+set}\" = set"; then
15621 echo "$as_me:$LINENO: checking for $ac_header" >&5
15622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15623if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625fi
b4e70030
JB
15626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15628else
15629 # Is the header compilable?
b4e70030
JB
15630echo "$as_me:$LINENO: checking $ac_header usability" >&5
15631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15632cat >conftest.$ac_ext <<_ACEOF
15633/* confdefs.h. */
15634_ACEOF
15635cat confdefs.h >>conftest.$ac_ext
15636cat >>conftest.$ac_ext <<_ACEOF
15637/* end confdefs.h. */
15638$ac_includes_default
15639#include <$ac_header>
15640_ACEOF
15641rm -f conftest.$ac_objext
15642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15643 (eval $ac_compile) 2>conftest.er1
15644 ac_status=$?
15645 grep -v '^ *+' conftest.er1 >conftest.err
15646 rm -f conftest.er1
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
b4e70030
JB
15650 { ac_try='test -z "$ac_c_werror_flag"
15651 || test ! -s conftest.err'
bec39cab
AC
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest.$ac_objext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_header_compiler=yes
15664else
15665 echo "$as_me: failed program was:" >&5
15666sed 's/^/| /' conftest.$ac_ext >&5
15667
b4e70030 15668ac_header_compiler=no
bec39cab
AC
15669fi
15670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15672echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15673
15674# Is the header present?
b4e70030
JB
15675echo "$as_me:$LINENO: checking $ac_header presence" >&5
15676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15677cat >conftest.$ac_ext <<_ACEOF
15678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
15683#include <$ac_header>
15684_ACEOF
15685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } >/dev/null; then
15693 if test -s conftest.err; then
15694 ac_cpp_err=$ac_c_preproc_warn_flag
15695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15696 else
15697 ac_cpp_err=
15698 fi
15699else
15700 ac_cpp_err=yes
78434e59 15701fi
bec39cab
AC
15702if test -z "$ac_cpp_err"; then
15703 ac_header_preproc=yes
78434e59 15704else
bec39cab
AC
15705 echo "$as_me: failed program was:" >&5
15706sed 's/^/| /' conftest.$ac_ext >&5
15707
15708 ac_header_preproc=no
78434e59 15709fi
bec39cab 15710rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15712echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 15713
bec39cab
AC
15714# So? What about this header?
15715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15716 yes:no: )
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15721 ac_header_preproc=yes
15722 ;;
15723 no:yes:* )
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15727echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15731echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15736 (
15737 cat <<\_ASBOX
15738## ------------------------------------------ ##
15739## Report this to the AC_PACKAGE_NAME lists. ##
15740## ------------------------------------------ ##
15741_ASBOX
15742 ) |
15743 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15744 ;;
15745esac
b4e70030
JB
15746echo "$as_me:$LINENO: checking for $ac_header" >&5
15747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15748if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15750else
15751 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 15752fi
b4e70030
JB
15753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15755
086ec9eb 15756fi
bec39cab
AC
15757if test `eval echo '${'$as_ac_Header'}'` = yes; then
15758 cat >>confdefs.h <<_ACEOF
15759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15760_ACEOF
15761
086ec9eb 15762fi
bec39cab 15763
086ec9eb
MK
15764done
15765
9608ab8b 15766
b1d19a62 15767# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
15768# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15769# think that we don't have <curses.h> if we're using GCC.
15770case $host_os in
b1d19a62 15771 solaris2.[789])
5ee754fc 15772 if test "$GCC" = yes; then
bec39cab
AC
15773
15774cat >>confdefs.h <<\_ACEOF
5ee754fc 15775#define _MSE_INT_H 1
bec39cab 15776_ACEOF
5ee754fc
MK
15777
15778 fi ;;
15779esac
bec39cab
AC
15780
15781
15782
15783
15784for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 15785do
bec39cab 15786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15787if eval "test \"\${$as_ac_Header+set}\" = set"; then
15788 echo "$as_me:$LINENO: checking for $ac_header" >&5
15789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15790if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15792fi
b4e70030
JB
15793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15795else
15796 # Is the header compilable?
b4e70030
JB
15797echo "$as_me:$LINENO: checking $ac_header usability" >&5
15798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15799cat >conftest.$ac_ext <<_ACEOF
15800/* confdefs.h. */
15801_ACEOF
15802cat confdefs.h >>conftest.$ac_ext
15803cat >>conftest.$ac_ext <<_ACEOF
15804/* end confdefs.h. */
15805$ac_includes_default
15806#include <$ac_header>
15807_ACEOF
15808rm -f conftest.$ac_objext
15809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15810 (eval $ac_compile) 2>conftest.er1
15811 ac_status=$?
15812 grep -v '^ *+' conftest.er1 >conftest.err
15813 rm -f conftest.er1
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
b4e70030
JB
15817 { ac_try='test -z "$ac_c_werror_flag"
15818 || test ! -s conftest.err'
bec39cab
AC
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try='test -s conftest.$ac_objext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 ac_header_compiler=yes
15831else
15832 echo "$as_me: failed program was:" >&5
15833sed 's/^/| /' conftest.$ac_ext >&5
15834
b4e70030 15835ac_header_compiler=no
bec39cab
AC
15836fi
15837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15838echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15839echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15840
15841# Is the header present?
b4e70030
JB
15842echo "$as_me:$LINENO: checking $ac_header presence" >&5
15843echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15844cat >conftest.$ac_ext <<_ACEOF
15845/* confdefs.h. */
15846_ACEOF
15847cat confdefs.h >>conftest.$ac_ext
15848cat >>conftest.$ac_ext <<_ACEOF
15849/* end confdefs.h. */
15850#include <$ac_header>
15851_ACEOF
15852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15854 ac_status=$?
15855 grep -v '^ *+' conftest.er1 >conftest.err
15856 rm -f conftest.er1
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } >/dev/null; then
15860 if test -s conftest.err; then
15861 ac_cpp_err=$ac_c_preproc_warn_flag
15862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15863 else
15864 ac_cpp_err=
15865 fi
15866else
15867 ac_cpp_err=yes
c906108c 15868fi
bec39cab
AC
15869if test -z "$ac_cpp_err"; then
15870 ac_header_preproc=yes
15871else
15872 echo "$as_me: failed program was:" >&5
15873sed 's/^/| /' conftest.$ac_ext >&5
15874
15875 ac_header_preproc=no
c906108c 15876fi
bec39cab 15877rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15878echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15879echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15880
15881# So? What about this header?
15882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15883 yes:no: )
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15885echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15887echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15888 ac_header_preproc=yes
15889 ;;
15890 no:yes:* )
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15892echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15894echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15896echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15898echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15902echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15903 (
15904 cat <<\_ASBOX
15905## ------------------------------------------ ##
15906## Report this to the AC_PACKAGE_NAME lists. ##
15907## ------------------------------------------ ##
15908_ASBOX
15909 ) |
15910 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15911 ;;
15912esac
b4e70030
JB
15913echo "$as_me:$LINENO: checking for $ac_header" >&5
15914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15915if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15916 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 15917else
bec39cab 15918 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 15919fi
b4e70030
JB
15920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15922
15923fi
15924if test `eval echo '${'$as_ac_Header'}'` = yes; then
15925 cat >>confdefs.h <<_ACEOF
15926#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15927_ACEOF
15928
15929fi
15930
5ee754fc 15931done
c906108c 15932
bec39cab 15933
065a1afc 15934for ac_header in ncurses/term.h
3b78cdbb 15935do
bec39cab 15936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15937if eval "test \"\${$as_ac_Header+set}\" = set"; then
15938 echo "$as_me:$LINENO: checking for $ac_header" >&5
15939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15940if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15942fi
b4e70030
JB
15943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15945else
15946 # Is the header compilable?
b4e70030
JB
15947echo "$as_me:$LINENO: checking $ac_header usability" >&5
15948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15949cat >conftest.$ac_ext <<_ACEOF
15950/* confdefs.h. */
15951_ACEOF
15952cat confdefs.h >>conftest.$ac_ext
15953cat >>conftest.$ac_ext <<_ACEOF
15954/* end confdefs.h. */
15955$ac_includes_default
15956#include <$ac_header>
15957_ACEOF
15958rm -f conftest.$ac_objext
15959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15960 (eval $ac_compile) 2>conftest.er1
15961 ac_status=$?
15962 grep -v '^ *+' conftest.er1 >conftest.err
15963 rm -f conftest.er1
15964 cat conftest.err >&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } &&
b4e70030
JB
15967 { ac_try='test -z "$ac_c_werror_flag"
15968 || test ! -s conftest.err'
bec39cab
AC
15969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 (eval $ac_try) 2>&5
15971 ac_status=$?
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); }; } &&
15974 { ac_try='test -s conftest.$ac_objext'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_header_compiler=yes
15981else
15982 echo "$as_me: failed program was:" >&5
15983sed 's/^/| /' conftest.$ac_ext >&5
15984
b4e70030 15985ac_header_compiler=no
bec39cab
AC
15986fi
15987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15989echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15990
15991# Is the header present?
b4e70030
JB
15992echo "$as_me:$LINENO: checking $ac_header presence" >&5
15993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15994cat >conftest.$ac_ext <<_ACEOF
15995/* confdefs.h. */
15996_ACEOF
15997cat confdefs.h >>conftest.$ac_ext
15998cat >>conftest.$ac_ext <<_ACEOF
15999/* end confdefs.h. */
16000#include <$ac_header>
16001_ACEOF
16002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } >/dev/null; then
16010 if test -s conftest.err; then
16011 ac_cpp_err=$ac_c_preproc_warn_flag
16012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16013 else
16014 ac_cpp_err=
16015 fi
16016else
16017 ac_cpp_err=yes
3b78cdbb 16018fi
bec39cab
AC
16019if test -z "$ac_cpp_err"; then
16020 ac_header_preproc=yes
16021else
16022 echo "$as_me: failed program was:" >&5
16023sed 's/^/| /' conftest.$ac_ext >&5
16024
16025 ac_header_preproc=no
3b78cdbb 16026fi
bec39cab 16027rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16029echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
16030
16031# So? What about this header?
16032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16033 yes:no: )
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16037echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16038 ac_header_preproc=yes
16039 ;;
16040 no:yes:* )
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16044echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16046echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16048echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16052echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16053 (
16054 cat <<\_ASBOX
16055## ------------------------------------------ ##
16056## Report this to the AC_PACKAGE_NAME lists. ##
16057## ------------------------------------------ ##
16058_ASBOX
16059 ) |
16060 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16061 ;;
16062esac
b4e70030
JB
16063echo "$as_me:$LINENO: checking for $ac_header" >&5
16064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16065if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16066 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 16067else
bec39cab
AC
16068 eval "$as_ac_Header=\$ac_header_preproc"
16069fi
b4e70030
JB
16070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 16072
3b78cdbb 16073fi
bec39cab
AC
16074if test `eval echo '${'$as_ac_Header'}'` = yes; then
16075 cat >>confdefs.h <<_ACEOF
16076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16077_ACEOF
16078
16079fi
16080
3b78cdbb
DA
16081done
16082
c906108c 16083
065a1afc
JB
16084for ac_header in term.h
16085do
16086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16087echo "$as_me:$LINENO: checking for $ac_header" >&5
16088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16089if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16091else
16092 cat >conftest.$ac_ext <<_ACEOF
16093/* confdefs.h. */
16094_ACEOF
16095cat confdefs.h >>conftest.$ac_ext
16096cat >>conftest.$ac_ext <<_ACEOF
16097/* end confdefs.h. */
16098#if HAVE_CURSES_H
16099# include <curses.h>
16100#endif
16101
16102
16103#include <$ac_header>
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'
065a1afc
JB
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
16127 eval "$as_ac_Header=yes"
16128else
16129 echo "$as_me: failed program was:" >&5
16130sed 's/^/| /' conftest.$ac_ext >&5
16131
b4e70030 16132eval "$as_ac_Header=no"
065a1afc
JB
16133fi
16134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16135fi
b4e70030
JB
16136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
16138if test `eval echo '${'$as_ac_Header'}'` = yes; then
16139 cat >>confdefs.h <<_ACEOF
16140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16141_ACEOF
16142
16143fi
16144
16145done
16146
16147
d542061a
UW
16148# Check for HP/UX 64-bit shared library support
16149
16150for ac_header in elf_hp.h
16151do
16152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153if eval "test \"\${$as_ac_Header+set}\" = set"; then
16154 echo "$as_me:$LINENO: checking for $ac_header" >&5
16155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16156if eval "test \"\${$as_ac_Header+set}\" = set"; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158fi
16159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16161else
16162 # Is the header compilable?
16163echo "$as_me:$LINENO: checking $ac_header usability" >&5
16164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16165cat >conftest.$ac_ext <<_ACEOF
16166/* confdefs.h. */
16167_ACEOF
16168cat confdefs.h >>conftest.$ac_ext
16169cat >>conftest.$ac_ext <<_ACEOF
16170/* end confdefs.h. */
16171$ac_includes_default
16172#include <$ac_header>
16173_ACEOF
16174rm -f conftest.$ac_objext
16175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176 (eval $ac_compile) 2>conftest.er1
16177 ac_status=$?
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag"
16184 || test ! -s conftest.err'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; } &&
16190 { ac_try='test -s conftest.$ac_objext'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 ac_header_compiler=yes
16197else
16198 echo "$as_me: failed program was:" >&5
16199sed 's/^/| /' conftest.$ac_ext >&5
16200
16201ac_header_compiler=no
16202fi
16203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16204echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16205echo "${ECHO_T}$ac_header_compiler" >&6
16206
16207# Is the header present?
16208echo "$as_me:$LINENO: checking $ac_header presence" >&5
16209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16210cat >conftest.$ac_ext <<_ACEOF
16211/* confdefs.h. */
16212_ACEOF
16213cat confdefs.h >>conftest.$ac_ext
16214cat >>conftest.$ac_ext <<_ACEOF
16215/* end confdefs.h. */
16216#include <$ac_header>
16217_ACEOF
16218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16220 ac_status=$?
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } >/dev/null; then
16226 if test -s conftest.err; then
16227 ac_cpp_err=$ac_c_preproc_warn_flag
16228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16229 else
16230 ac_cpp_err=
16231 fi
16232else
16233 ac_cpp_err=yes
16234fi
16235if test -z "$ac_cpp_err"; then
16236 ac_header_preproc=yes
16237else
16238 echo "$as_me: failed program was:" >&5
16239sed 's/^/| /' conftest.$ac_ext >&5
16240
16241 ac_header_preproc=no
16242fi
16243rm -f conftest.err conftest.$ac_ext
16244echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16245echo "${ECHO_T}$ac_header_preproc" >&6
16246
16247# So? What about this header?
16248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16249 yes:no: )
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16254 ac_header_preproc=yes
16255 ;;
16256 no:yes:* )
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16269 (
16270 cat <<\_ASBOX
16271## ------------------------------------------ ##
16272## Report this to the AC_PACKAGE_NAME lists. ##
16273## ------------------------------------------ ##
16274_ASBOX
16275 ) |
16276 sed "s/^/$as_me: WARNING: /" >&2
16277 ;;
16278esac
16279echo "$as_me:$LINENO: checking for $ac_header" >&5
16280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16281if eval "test \"\${$as_ac_Header+set}\" = set"; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16283else
16284 eval "$as_ac_Header=\$ac_header_preproc"
16285fi
16286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16288
16289fi
16290if test `eval echo '${'$as_ac_Header'}'` = yes; then
16291 cat >>confdefs.h <<_ACEOF
16292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16293_ACEOF
16294
16295fi
16296
16297done
16298
16299
5ee754fc
MK
16300# FIXME: kettenis/20030102: In most cases we include these
16301# unconditionally, so what's the point in checking these?
bec39cab
AC
16302
16303
16304for ac_header in ctype.h time.h
c906108c 16305do
bec39cab 16306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16307if eval "test \"\${$as_ac_Header+set}\" = set"; then
16308 echo "$as_me:$LINENO: checking for $ac_header" >&5
16309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16310if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16312fi
b4e70030
JB
16313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16315else
16316 # Is the header compilable?
b4e70030
JB
16317echo "$as_me:$LINENO: checking $ac_header usability" >&5
16318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
16319cat >conftest.$ac_ext <<_ACEOF
16320/* confdefs.h. */
16321_ACEOF
16322cat confdefs.h >>conftest.$ac_ext
16323cat >>conftest.$ac_ext <<_ACEOF
16324/* end confdefs.h. */
16325$ac_includes_default
16326#include <$ac_header>
16327_ACEOF
16328rm -f conftest.$ac_objext
16329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16330 (eval $ac_compile) 2>conftest.er1
16331 ac_status=$?
16332 grep -v '^ *+' conftest.er1 >conftest.err
16333 rm -f conftest.er1
16334 cat conftest.err >&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } &&
b4e70030
JB
16337 { ac_try='test -z "$ac_c_werror_flag"
16338 || test ! -s conftest.err'
bec39cab
AC
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try='test -s conftest.$ac_objext'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 ac_header_compiler=yes
16351else
16352 echo "$as_me: failed program was:" >&5
16353sed 's/^/| /' conftest.$ac_ext >&5
16354
b4e70030 16355ac_header_compiler=no
bec39cab
AC
16356fi
16357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16359echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16360
16361# Is the header present?
b4e70030
JB
16362echo "$as_me:$LINENO: checking $ac_header presence" >&5
16363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16364cat >conftest.$ac_ext <<_ACEOF
16365/* confdefs.h. */
16366_ACEOF
16367cat confdefs.h >>conftest.$ac_ext
16368cat >>conftest.$ac_ext <<_ACEOF
16369/* end confdefs.h. */
16370#include <$ac_header>
16371_ACEOF
16372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16374 ac_status=$?
16375 grep -v '^ *+' conftest.er1 >conftest.err
16376 rm -f conftest.er1
16377 cat conftest.err >&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } >/dev/null; then
16380 if test -s conftest.err; then
16381 ac_cpp_err=$ac_c_preproc_warn_flag
16382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16383 else
16384 ac_cpp_err=
16385 fi
16386else
16387 ac_cpp_err=yes
c906108c 16388fi
bec39cab
AC
16389if test -z "$ac_cpp_err"; then
16390 ac_header_preproc=yes
16391else
16392 echo "$as_me: failed program was:" >&5
16393sed 's/^/| /' conftest.$ac_ext >&5
16394
16395 ac_header_preproc=no
c906108c 16396fi
bec39cab 16397rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16399echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
16400
16401# So? What about this header?
16402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16403 yes:no: )
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16408 ac_header_preproc=yes
16409 ;;
16410 no:yes:* )
16411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16418echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16423 (
16424 cat <<\_ASBOX
16425## ------------------------------------------ ##
16426## Report this to the AC_PACKAGE_NAME lists. ##
16427## ------------------------------------------ ##
16428_ASBOX
16429 ) |
16430 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16431 ;;
16432esac
b4e70030
JB
16433echo "$as_me:$LINENO: checking for $ac_header" >&5
16434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16435if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16436 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 16437else
bec39cab
AC
16438 eval "$as_ac_Header=\$ac_header_preproc"
16439fi
b4e70030
JB
16440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16442
16443fi
16444if test `eval echo '${'$as_ac_Header'}'` = yes; then
16445 cat >>confdefs.h <<_ACEOF
16446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16447_ACEOF
16448
c906108c 16449fi
bec39cab 16450
c906108c
SS
16451done
16452
5ee754fc 16453
d5af19ba
DJ
16454# ------------------------- #
16455# Checks for declarations. #
16456# ------------------------- #
4e8d927d 16457
d5af19ba
DJ
16458echo "$as_me:$LINENO: checking whether free is declared" >&5
16459echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16460if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 16461 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 16462else
bec39cab
AC
16463 cat >conftest.$ac_ext <<_ACEOF
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
d5af19ba 16469$ac_includes_default
bec39cab
AC
16470int
16471main ()
16472{
d5af19ba
DJ
16473#ifndef free
16474 char *p = (char *) free;
16475#endif
16476
4e8d927d 16477 ;
bec39cab
AC
16478 return 0;
16479}
16480_ACEOF
16481rm -f conftest.$ac_objext
16482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16483 (eval $ac_compile) 2>conftest.er1
16484 ac_status=$?
16485 grep -v '^ *+' conftest.er1 >conftest.err
16486 rm -f conftest.er1
16487 cat conftest.err >&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
b4e70030
JB
16490 { ac_try='test -z "$ac_c_werror_flag"
16491 || test ! -s conftest.err'
bec39cab
AC
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest.$ac_objext'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
d5af19ba 16503 ac_cv_have_decl_free=yes
40a7debc 16504else
bec39cab
AC
16505 echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
d5af19ba 16508ac_cv_have_decl_free=no
40a7debc 16509fi
bec39cab 16510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 16511fi
d5af19ba
DJ
16512echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16513echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16514if test $ac_cv_have_decl_free = yes; then
16515
16516cat >>confdefs.h <<_ACEOF
16517#define HAVE_DECL_FREE 1
16518_ACEOF
16519
16520
666ec76f 16521else
d5af19ba
DJ
16522 cat >>confdefs.h <<_ACEOF
16523#define HAVE_DECL_FREE 0
16524_ACEOF
16525
4e8d927d 16526
d5af19ba
DJ
16527fi
16528echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16529echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16530if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16532else
16533 cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h. */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h. */
d5af19ba 16539$ac_includes_default
666ec76f
MK
16540int
16541main ()
16542{
d5af19ba
DJ
16543#ifndef malloc
16544 char *p = (char *) malloc;
16545#endif
16546
666ec76f
MK
16547 ;
16548 return 0;
16549}
16550_ACEOF
16551rm -f conftest.$ac_objext
16552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16553 (eval $ac_compile) 2>conftest.er1
16554 ac_status=$?
16555 grep -v '^ *+' conftest.er1 >conftest.err
16556 rm -f conftest.er1
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
b4e70030
JB
16560 { ac_try='test -z "$ac_c_werror_flag"
16561 || test ! -s conftest.err'
666ec76f
MK
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; } &&
16567 { ac_try='test -s conftest.$ac_objext'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
d5af19ba 16573 ac_cv_have_decl_malloc=yes
666ec76f
MK
16574else
16575 echo "$as_me: failed program was:" >&5
16576sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16577
d5af19ba 16578ac_cv_have_decl_malloc=no
a3828db0
MK
16579fi
16580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16581fi
d5af19ba
DJ
16582echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16583echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16584if test $ac_cv_have_decl_malloc = yes; then
16585
16586cat >>confdefs.h <<_ACEOF
16587#define HAVE_DECL_MALLOC 1
16588_ACEOF
16589
16590
a3828db0 16591else
d5af19ba
DJ
16592 cat >>confdefs.h <<_ACEOF
16593#define HAVE_DECL_MALLOC 0
16594_ACEOF
16595
4e8d927d 16596
d5af19ba
DJ
16597fi
16598echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16599echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16600if test "${ac_cv_have_decl_realloc+set}" = set; then
a3828db0
MK
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16602else
16603 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
16604/* confdefs.h. */
16605_ACEOF
16606cat confdefs.h >>conftest.$ac_ext
16607cat >>conftest.$ac_ext <<_ACEOF
16608/* end confdefs.h. */
d5af19ba 16609$ac_includes_default
bec39cab
AC
16610int
16611main ()
16612{
d5af19ba
DJ
16613#ifndef realloc
16614 char *p = (char *) realloc;
16615#endif
16616
bec39cab
AC
16617 ;
16618 return 0;
16619}
16620_ACEOF
16621rm -f conftest.$ac_objext
16622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16623 (eval $ac_compile) 2>conftest.er1
16624 ac_status=$?
16625 grep -v '^ *+' conftest.er1 >conftest.err
16626 rm -f conftest.er1
16627 cat conftest.err >&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } &&
b4e70030
JB
16630 { ac_try='test -z "$ac_c_werror_flag"
16631 || test ! -s conftest.err'
bec39cab
AC
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16634 ac_status=$?
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; } &&
16637 { ac_try='test -s conftest.$ac_objext'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
d5af19ba 16643 ac_cv_have_decl_realloc=yes
b9362cc7 16644else
bec39cab
AC
16645 echo "$as_me: failed program was:" >&5
16646sed 's/^/| /' conftest.$ac_ext >&5
16647
d5af19ba 16648ac_cv_have_decl_realloc=no
4e8d927d 16649fi
4e8d927d
DJ
16650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16651fi
b4e70030
JB
16652echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16653echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
16654if test $ac_cv_have_decl_realloc = yes; then
16655
16656cat >>confdefs.h <<_ACEOF
16657#define HAVE_DECL_REALLOC 1
16658_ACEOF
16659
16660
16661else
16662 cat >>confdefs.h <<_ACEOF
16663#define HAVE_DECL_REALLOC 0
16664_ACEOF
16665
16666
16667fi
16668
16669
b4e70030
JB
16670echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16671echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
16672if test "${ac_cv_have_decl_strerror+set}" = set; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16674else
16675 cat >conftest.$ac_ext <<_ACEOF
16676/* confdefs.h. */
16677_ACEOF
16678cat confdefs.h >>conftest.$ac_ext
16679cat >>conftest.$ac_ext <<_ACEOF
16680/* end confdefs.h. */
16681$ac_includes_default
16682int
16683main ()
16684{
16685#ifndef strerror
16686 char *p = (char *) strerror;
4e8d927d
DJ
16687#endif
16688
16689 ;
16690 return 0;
16691}
16692_ACEOF
16693rm -f conftest.$ac_objext
16694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16695 (eval $ac_compile) 2>conftest.er1
16696 ac_status=$?
16697 grep -v '^ *+' conftest.er1 >conftest.err
16698 rm -f conftest.er1
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } &&
b4e70030
JB
16702 { ac_try='test -z "$ac_c_werror_flag"
16703 || test ! -s conftest.err'
4e8d927d
DJ
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest.$ac_objext'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16715 ac_cv_have_decl_strerror=yes
16716else
16717 echo "$as_me: failed program was:" >&5
16718sed 's/^/| /' conftest.$ac_ext >&5
16719
b4e70030 16720ac_cv_have_decl_strerror=no
4e8d927d 16721fi
4e8d927d
DJ
16722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16723fi
b4e70030
JB
16724echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16725echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
16726if test $ac_cv_have_decl_strerror = yes; then
16727
16728cat >>confdefs.h <<_ACEOF
16729#define HAVE_DECL_STRERROR 1
16730_ACEOF
16731
16732
16733else
16734 cat >>confdefs.h <<_ACEOF
16735#define HAVE_DECL_STRERROR 0
16736_ACEOF
16737
16738
16739fi
b4e70030
JB
16740echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16741echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
16742if test "${ac_cv_have_decl_strstr+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744else
16745 cat >conftest.$ac_ext <<_ACEOF
16746/* confdefs.h. */
16747_ACEOF
16748cat confdefs.h >>conftest.$ac_ext
16749cat >>conftest.$ac_ext <<_ACEOF
16750/* end confdefs.h. */
16751$ac_includes_default
16752int
16753main ()
16754{
16755#ifndef strstr
16756 char *p = (char *) strstr;
4e8d927d
DJ
16757#endif
16758
16759 ;
16760 return 0;
16761}
16762_ACEOF
16763rm -f conftest.$ac_objext
16764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765 (eval $ac_compile) 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
b4e70030
JB
16772 { ac_try='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
16779 { ac_try='test -s conftest.$ac_objext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_cv_have_decl_strstr=yes
16786else
16787 echo "$as_me: failed program was:" >&5
16788sed 's/^/| /' conftest.$ac_ext >&5
16789
b4e70030 16790ac_cv_have_decl_strstr=no
4e8d927d 16791fi
4e8d927d
DJ
16792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16793fi
b4e70030
JB
16794echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16795echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
16796if test $ac_cv_have_decl_strstr = yes; then
16797
16798cat >>confdefs.h <<_ACEOF
16799#define HAVE_DECL_STRSTR 1
16800_ACEOF
16801
16802
16803else
16804 cat >>confdefs.h <<_ACEOF
16805#define HAVE_DECL_STRSTR 0
16806_ACEOF
16807
16808
16809fi
16810
16811
b4e70030
JB
16812echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16813echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
16814if test "${ac_cv_have_decl_getopt+set}" = set; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16816else
16817 cat >conftest.$ac_ext <<_ACEOF
16818/* confdefs.h. */
16819_ACEOF
16820cat confdefs.h >>conftest.$ac_ext
16821cat >>conftest.$ac_ext <<_ACEOF
16822/* end confdefs.h. */
16823$ac_includes_default
16824int
16825main ()
16826{
16827#ifndef getopt
16828 char *p = (char *) getopt;
4e8d927d
DJ
16829#endif
16830
16831 ;
16832 return 0;
16833}
16834_ACEOF
16835rm -f conftest.$ac_objext
16836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16837 (eval $ac_compile) 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
b4e70030
JB
16844 { ac_try='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
4e8d927d
DJ
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_cv_have_decl_getopt=yes
16858else
16859 echo "$as_me: failed program was:" >&5
16860sed 's/^/| /' conftest.$ac_ext >&5
16861
b4e70030 16862ac_cv_have_decl_getopt=no
4e8d927d 16863fi
4e8d927d
DJ
16864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16865fi
b4e70030
JB
16866echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16867echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
16868if test $ac_cv_have_decl_getopt = yes; then
16869
16870cat >>confdefs.h <<_ACEOF
16871#define HAVE_DECL_GETOPT 1
16872_ACEOF
16873
16874
16875else
16876 cat >>confdefs.h <<_ACEOF
16877#define HAVE_DECL_GETOPT 0
16878_ACEOF
16879
16880
16881fi
b4e70030
JB
16882echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16883echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16884if test "${ac_cv_have_decl_snprintf+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16886else
16887 cat >conftest.$ac_ext <<_ACEOF
16888/* confdefs.h. */
16889_ACEOF
16890cat confdefs.h >>conftest.$ac_ext
16891cat >>conftest.$ac_ext <<_ACEOF
16892/* end confdefs.h. */
16893$ac_includes_default
16894int
16895main ()
16896{
16897#ifndef snprintf
16898 char *p = (char *) snprintf;
4e8d927d
DJ
16899#endif
16900
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
16906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16907 (eval $ac_compile) 2>conftest.er1
16908 ac_status=$?
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
b4e70030
JB
16914 { ac_try='test -z "$ac_c_werror_flag"
16915 || test ! -s conftest.err'
4e8d927d
DJ
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_have_decl_snprintf=yes
16928else
16929 echo "$as_me: failed program was:" >&5
16930sed 's/^/| /' conftest.$ac_ext >&5
16931
b4e70030 16932ac_cv_have_decl_snprintf=no
4e8d927d 16933fi
4e8d927d
DJ
16934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16935fi
b4e70030
JB
16936echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16937echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
16938if test $ac_cv_have_decl_snprintf = yes; then
16939
16940cat >>confdefs.h <<_ACEOF
16941#define HAVE_DECL_SNPRINTF 1
16942_ACEOF
16943
16944
16945else
16946 cat >>confdefs.h <<_ACEOF
16947#define HAVE_DECL_SNPRINTF 0
16948_ACEOF
16949
16950
16951fi
b4e70030
JB
16952echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16953echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16954if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956else
16957 cat >conftest.$ac_ext <<_ACEOF
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963$ac_includes_default
16964int
16965main ()
16966{
16967#ifndef vsnprintf
16968 char *p = (char *) vsnprintf;
4e8d927d
DJ
16969#endif
16970
16971 ;
16972 return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext
16976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16977 (eval $ac_compile) 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
b4e70030
JB
16984 { ac_try='test -z "$ac_c_werror_flag"
16985 || test ! -s conftest.err'
4e8d927d
DJ
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; } &&
16991 { ac_try='test -s conftest.$ac_objext'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 ac_cv_have_decl_vsnprintf=yes
16998else
16999 echo "$as_me: failed program was:" >&5
17000sed 's/^/| /' conftest.$ac_ext >&5
17001
b4e70030 17002ac_cv_have_decl_vsnprintf=no
4e8d927d 17003fi
4e8d927d
DJ
17004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17005fi
b4e70030
JB
17006echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17007echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
17008if test $ac_cv_have_decl_vsnprintf = yes; then
17009
17010cat >>confdefs.h <<_ACEOF
17011#define HAVE_DECL_VSNPRINTF 1
17012_ACEOF
17013
17014
17015else
17016 cat >>confdefs.h <<_ACEOF
17017#define HAVE_DECL_VSNPRINTF 0
17018_ACEOF
17019
17020
17021fi
17022
17023
17024
17025# ----------------------- #
17026# Checks for structures. #
17027# ----------------------- #
17028
b4e70030
JB
17029echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17030echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
17031if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 cat >conftest.$ac_ext <<_ACEOF
17035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
17040$ac_includes_default
17041int
17042main ()
17043{
17044static struct stat ac_aggr;
17045if (ac_aggr.st_blocks)
17046return 0;
17047 ;
17048 return 0;
17049}
17050_ACEOF
17051rm -f conftest.$ac_objext
17052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053 (eval $ac_compile) 2>conftest.er1
17054 ac_status=$?
17055 grep -v '^ *+' conftest.er1 >conftest.err
17056 rm -f conftest.er1
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
b4e70030
JB
17060 { ac_try='test -z "$ac_c_werror_flag"
17061 || test ! -s conftest.err'
4e8d927d
DJ
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try='test -s conftest.$ac_objext'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_cv_member_struct_stat_st_blocks=yes
17074else
17075 echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
b4e70030 17078cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17079/* confdefs.h. */
17080_ACEOF
17081cat confdefs.h >>conftest.$ac_ext
17082cat >>conftest.$ac_ext <<_ACEOF
17083/* end confdefs.h. */
17084$ac_includes_default
17085int
17086main ()
17087{
17088static struct stat ac_aggr;
17089if (sizeof ac_aggr.st_blocks)
17090return 0;
17091 ;
17092 return 0;
17093}
17094_ACEOF
17095rm -f conftest.$ac_objext
17096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17097 (eval $ac_compile) 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
b4e70030
JB
17104 { ac_try='test -z "$ac_c_werror_flag"
17105 || test ! -s conftest.err'
4e8d927d
DJ
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest.$ac_objext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_member_struct_stat_st_blocks=yes
17118else
17119 echo "$as_me: failed program was:" >&5
17120sed 's/^/| /' conftest.$ac_ext >&5
17121
b4e70030 17122ac_cv_member_struct_stat_st_blocks=no
4e8d927d 17123fi
4e8d927d
DJ
17124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17125fi
4e8d927d
DJ
17126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17127fi
b4e70030
JB
17128echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17129echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
17130if test $ac_cv_member_struct_stat_st_blocks = yes; then
17131
17132cat >>confdefs.h <<_ACEOF
17133#define HAVE_STRUCT_STAT_ST_BLOCKS 1
17134_ACEOF
17135
17136
17137fi
17138
b4e70030
JB
17139echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17140echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
17141if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17143else
17144 cat >conftest.$ac_ext <<_ACEOF
17145/* confdefs.h. */
17146_ACEOF
17147cat confdefs.h >>conftest.$ac_ext
17148cat >>conftest.$ac_ext <<_ACEOF
17149/* end confdefs.h. */
17150$ac_includes_default
17151int
17152main ()
17153{
17154static struct stat ac_aggr;
17155if (ac_aggr.st_blksize)
17156return 0;
17157 ;
17158 return 0;
17159}
17160_ACEOF
17161rm -f conftest.$ac_objext
17162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17163 (eval $ac_compile) 2>conftest.er1
17164 ac_status=$?
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
b4e70030
JB
17170 { ac_try='test -z "$ac_c_werror_flag"
17171 || test ! -s conftest.err'
4e8d927d
DJ
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; } &&
17177 { ac_try='test -s conftest.$ac_objext'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_cv_member_struct_stat_st_blksize=yes
17184else
17185 echo "$as_me: failed program was:" >&5
17186sed 's/^/| /' conftest.$ac_ext >&5
17187
b4e70030 17188cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17189/* confdefs.h. */
17190_ACEOF
17191cat confdefs.h >>conftest.$ac_ext
17192cat >>conftest.$ac_ext <<_ACEOF
17193/* end confdefs.h. */
17194$ac_includes_default
17195int
17196main ()
17197{
17198static struct stat ac_aggr;
17199if (sizeof ac_aggr.st_blksize)
17200return 0;
17201 ;
17202 return 0;
17203}
17204_ACEOF
17205rm -f conftest.$ac_objext
17206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17207 (eval $ac_compile) 2>conftest.er1
17208 ac_status=$?
17209 grep -v '^ *+' conftest.er1 >conftest.err
17210 rm -f conftest.er1
17211 cat conftest.err >&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
b4e70030
JB
17214 { ac_try='test -z "$ac_c_werror_flag"
17215 || test ! -s conftest.err'
4e8d927d
DJ
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; } &&
17221 { ac_try='test -s conftest.$ac_objext'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 ac_cv_member_struct_stat_st_blksize=yes
17228else
17229 echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
b4e70030 17232ac_cv_member_struct_stat_st_blksize=no
4e8d927d 17233fi
4e8d927d
DJ
17234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17235fi
4e8d927d
DJ
17236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17237fi
b4e70030
JB
17238echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17239echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
17240if test $ac_cv_member_struct_stat_st_blksize = yes; then
17241
17242cat >>confdefs.h <<_ACEOF
17243#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17244_ACEOF
17245
17246
17247fi
17248
17249
17250# ------------------ #
17251# Checks for types. #
17252# ------------------ #
17253
b4e70030
JB
17254echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17255echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
17256if test "${ac_cv_type_signal+set}" = set; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17258else
17259 cat >conftest.$ac_ext <<_ACEOF
17260/* confdefs.h. */
17261_ACEOF
17262cat confdefs.h >>conftest.$ac_ext
17263cat >>conftest.$ac_ext <<_ACEOF
17264/* end confdefs.h. */
17265#include <sys/types.h>
17266#include <signal.h>
b4e70030
JB
17267#ifdef signal
17268# undef signal
17269#endif
17270#ifdef __cplusplus
17271extern "C" void (*signal (int, void (*)(int)))(int);
17272#else
17273void (*signal ()) ();
17274#endif
4e8d927d
DJ
17275
17276int
17277main ()
17278{
b4e70030 17279int i;
4e8d927d
DJ
17280 ;
17281 return 0;
17282}
17283_ACEOF
17284rm -f conftest.$ac_objext
17285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17286 (eval $ac_compile) 2>conftest.er1
17287 ac_status=$?
17288 grep -v '^ *+' conftest.er1 >conftest.err
17289 rm -f conftest.er1
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
b4e70030
JB
17293 { ac_try='test -z "$ac_c_werror_flag"
17294 || test ! -s conftest.err'
4e8d927d
DJ
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; } &&
17300 { ac_try='test -s conftest.$ac_objext'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17303 ac_status=$?
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; }; then
b4e70030 17306 ac_cv_type_signal=void
4e8d927d
DJ
17307else
17308 echo "$as_me: failed program was:" >&5
17309sed 's/^/| /' conftest.$ac_ext >&5
17310
b4e70030 17311ac_cv_type_signal=int
4e8d927d 17312fi
4e8d927d
DJ
17313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17314fi
b4e70030
JB
17315echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17316echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
17317
17318cat >>confdefs.h <<_ACEOF
17319#define RETSIGTYPE $ac_cv_type_signal
17320_ACEOF
17321
17322
b4e70030
JB
17323echo "$as_me:$LINENO: checking for socklen_t" >&5
17324echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
17325if test "${ac_cv_type_socklen_t+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
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#include <sys/types.h>
17335#include <sys/socket.h>
17336
17337
4e8d927d
DJ
17338int
17339main ()
17340{
b4e70030 17341if ((socklen_t *) 0)
4e8d927d 17342 return 0;
b4e70030 17343if (sizeof (socklen_t))
4e8d927d
DJ
17344 return 0;
17345 ;
17346 return 0;
17347}
17348_ACEOF
17349rm -f conftest.$ac_objext
17350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17351 (eval $ac_compile) 2>conftest.er1
17352 ac_status=$?
17353 grep -v '^ *+' conftest.er1 >conftest.err
17354 rm -f conftest.er1
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } &&
b4e70030
JB
17358 { ac_try='test -z "$ac_c_werror_flag"
17359 || test ! -s conftest.err'
4e8d927d
DJ
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest.$ac_objext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ac_cv_type_socklen_t=yes
17372else
17373 echo "$as_me: failed program was:" >&5
17374sed 's/^/| /' conftest.$ac_ext >&5
17375
b4e70030 17376ac_cv_type_socklen_t=no
4e8d927d 17377fi
4e8d927d
DJ
17378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17379fi
b4e70030
JB
17380echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17381echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
17382if test $ac_cv_type_socklen_t = yes; then
17383
17384cat >>confdefs.h <<_ACEOF
17385#define HAVE_SOCKLEN_T 1
17386_ACEOF
17387
17388
4e8d927d
DJ
17389fi
17390
17391
17392# ------------------------------------- #
17393# Checks for compiler characteristics. #
17394# ------------------------------------- #
17395
b4e70030
JB
17396echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17397echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
17398if test "${ac_cv_c_const+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400else
17401 cat >conftest.$ac_ext <<_ACEOF
17402/* confdefs.h. */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h. */
17407
17408int
17409main ()
17410{
17411/* FIXME: Include the comments suggested by Paul. */
17412#ifndef __cplusplus
17413 /* Ultrix mips cc rejects this. */
17414 typedef int charset[2];
17415 const charset x;
17416 /* SunOS 4.1.1 cc rejects this. */
17417 char const *const *ccp;
17418 char **p;
17419 /* NEC SVR4.0.2 mips cc rejects this. */
17420 struct point {int x, y;};
17421 static struct point const zero = {0,0};
17422 /* AIX XL C 1.02.0.0 rejects this.
17423 It does not let you subtract one const X* pointer from another in
17424 an arm of an if-expression whose if-part is not a constant
17425 expression */
17426 const char *g = "string";
17427 ccp = &g + (g ? g-g : 0);
17428 /* HPUX 7.0 cc rejects these. */
17429 ++ccp;
17430 p = (char**) ccp;
17431 ccp = (char const *const *) p;
17432 { /* SCO 3.2v4 cc rejects this. */
17433 char *t;
17434 char const *s = 0 ? (char *) 0 : (char const *) 0;
17435
17436 *t++ = 0;
4e8d927d
DJ
17437 }
17438 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17439 int x[] = {25, 17};
17440 const int *foo = &x[0];
17441 ++foo;
17442 }
17443 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17444 typedef const int *iptr;
17445 iptr p = 0;
17446 ++p;
17447 }
17448 { /* AIX XL C 1.02.0.0 rejects this saying
17449 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17450 struct s { int j; const int *ap[3]; };
17451 struct s *b; b->j = 5;
17452 }
17453 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17454 const int foo = 10;
4e8d927d 17455 }
4e8d927d
DJ
17456#endif
17457
17458 ;
17459 return 0;
17460}
17461_ACEOF
17462rm -f conftest.$ac_objext
17463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17464 (eval $ac_compile) 2>conftest.er1
17465 ac_status=$?
17466 grep -v '^ *+' conftest.er1 >conftest.err
17467 rm -f conftest.er1
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
b4e70030
JB
17471 { ac_try='test -z "$ac_c_werror_flag"
17472 || test ! -s conftest.err'
4e8d927d
DJ
17473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474 (eval $ac_try) 2>&5
17475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; } &&
17478 { ac_try='test -s conftest.$ac_objext'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; }; then
17484 ac_cv_c_const=yes
17485else
17486 echo "$as_me: failed program was:" >&5
17487sed 's/^/| /' conftest.$ac_ext >&5
17488
b4e70030 17489ac_cv_c_const=no
4e8d927d 17490fi
4e8d927d
DJ
17491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17492fi
b4e70030
JB
17493echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17494echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
17495if test $ac_cv_c_const = no; then
17496
17497cat >>confdefs.h <<\_ACEOF
17498#define const
17499_ACEOF
17500
17501fi
17502
b4e70030
JB
17503echo "$as_me:$LINENO: checking for inline" >&5
17504echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
17505if test "${ac_cv_c_inline+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507else
17508 ac_cv_c_inline=no
17509for ac_kw in inline __inline__ __inline; do
17510 cat >conftest.$ac_ext <<_ACEOF
17511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
17516#ifndef __cplusplus
17517typedef int foo_t;
17518static $ac_kw foo_t static_foo () {return 0; }
17519$ac_kw foo_t foo () {return 0; }
17520#endif
17521
17522_ACEOF
17523rm -f conftest.$ac_objext
17524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>conftest.er1
17526 ac_status=$?
17527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
b4e70030
JB
17532 { ac_try='test -z "$ac_c_werror_flag"
17533 || test ! -s conftest.err'
4e8d927d
DJ
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest.$ac_objext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
b4e70030 17545 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
17546else
17547 echo "$as_me: failed program was:" >&5
17548sed 's/^/| /' conftest.$ac_ext >&5
17549
4e8d927d 17550fi
4e8d927d 17551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
17552done
17553
17554fi
b4e70030
JB
17555echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17556echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 17557
bec39cab 17558
a3828db0
MK
17559case $ac_cv_c_inline in
17560 inline | yes) ;;
17561 *)
17562 case $ac_cv_c_inline in
17563 no) ac_val=;;
17564 *) ac_val=$ac_cv_c_inline;;
17565 esac
17566 cat >>confdefs.h <<_ACEOF
17567#ifndef __cplusplus
17568#define inline $ac_val
17569#endif
17570_ACEOF
bec39cab
AC
17571 ;;
17572esac
bec39cab 17573
9b913628
TJB
17574echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17575echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17576if test "${ac_cv_c_bigendian+set}" = set; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17578else
17579 # See if sys/param.h defines the BYTE_ORDER macro.
17580cat >conftest.$ac_ext <<_ACEOF
17581/* confdefs.h. */
17582_ACEOF
17583cat confdefs.h >>conftest.$ac_ext
17584cat >>conftest.$ac_ext <<_ACEOF
17585/* end confdefs.h. */
17586#include <sys/types.h>
17587#include <sys/param.h>
17588
17589int
17590main ()
17591{
17592#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17593 bogus endian macros
17594#endif
17595
17596 ;
17597 return 0;
17598}
17599_ACEOF
17600rm -f conftest.$ac_objext
17601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17602 (eval $ac_compile) 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest.$ac_objext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 # It does; now see whether it defined to BIG_ENDIAN or not.
17623cat >conftest.$ac_ext <<_ACEOF
17624/* confdefs.h. */
17625_ACEOF
17626cat confdefs.h >>conftest.$ac_ext
17627cat >>conftest.$ac_ext <<_ACEOF
17628/* end confdefs.h. */
17629#include <sys/types.h>
17630#include <sys/param.h>
17631
17632int
17633main ()
17634{
17635#if BYTE_ORDER != BIG_ENDIAN
17636 not big endian
17637#endif
17638
17639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17645 (eval $ac_compile) 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest.$ac_objext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_c_bigendian=yes
17666else
17667 echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670ac_cv_c_bigendian=no
17671fi
17672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17673else
17674 echo "$as_me: failed program was:" >&5
17675sed 's/^/| /' conftest.$ac_ext >&5
17676
17677# It does not; compile a test program.
17678if test "$cross_compiling" = yes; then
17679 # try to guess the endianness by grepping values into an object file
17680 ac_cv_c_bigendian=unknown
17681 cat >conftest.$ac_ext <<_ACEOF
17682/* confdefs.h. */
17683_ACEOF
17684cat confdefs.h >>conftest.$ac_ext
17685cat >>conftest.$ac_ext <<_ACEOF
17686/* end confdefs.h. */
17687short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17688short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17689void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17690short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17691short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17692void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17693int
17694main ()
17695{
17696 _ascii (); _ebcdic ();
17697 ;
17698 return 0;
17699}
17700_ACEOF
17701rm -f conftest.$ac_objext
17702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17703 (eval $ac_compile) 2>conftest.er1
17704 ac_status=$?
17705 grep -v '^ *+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
17710 { ac_try='test -z "$ac_c_werror_flag"
17711 || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest.$ac_objext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17724 ac_cv_c_bigendian=yes
17725fi
17726if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17727 if test "$ac_cv_c_bigendian" = unknown; then
17728 ac_cv_c_bigendian=no
17729 else
17730 # finding both strings is unlikely to happen, but who knows?
17731 ac_cv_c_bigendian=unknown
17732 fi
17733fi
17734else
17735 echo "$as_me: failed program was:" >&5
17736sed 's/^/| /' conftest.$ac_ext >&5
17737
17738fi
17739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17740else
17741 cat >conftest.$ac_ext <<_ACEOF
17742/* confdefs.h. */
17743_ACEOF
17744cat confdefs.h >>conftest.$ac_ext
17745cat >>conftest.$ac_ext <<_ACEOF
17746/* end confdefs.h. */
17747int
17748main ()
17749{
17750 /* Are we little or big endian? From Harbison&Steele. */
17751 union
17752 {
17753 long l;
17754 char c[sizeof (long)];
17755 } u;
17756 u.l = 1;
17757 exit (u.c[sizeof (long) - 1] == 1);
17758}
17759_ACEOF
17760rm -f conftest$ac_exeext
17761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17762 (eval $ac_link) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_c_bigendian=no
17772else
17773 echo "$as_me: program exited with status $ac_status" >&5
17774echo "$as_me: failed program was:" >&5
17775sed 's/^/| /' conftest.$ac_ext >&5
17776
17777( exit $ac_status )
17778ac_cv_c_bigendian=yes
17779fi
17780rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17781fi
17782fi
17783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17784fi
17785echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17786echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17787case $ac_cv_c_bigendian in
17788 yes)
17789
17790cat >>confdefs.h <<\_ACEOF
17791#define WORDS_BIGENDIAN 1
17792_ACEOF
17793 ;;
17794 no)
17795 ;;
17796 *)
17797 { { echo "$as_me:$LINENO: error: unknown endianness
17798presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17799echo "$as_me: error: unknown endianness
17800presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17801 { (exit 1); exit 1; }; } ;;
17802esac
17803
74c1b268 17804
a3828db0
MK
17805# ------------------------------ #
17806# Checks for library functions. #
17807# ------------------------------ #
bec39cab 17808
a3828db0
MK
17809# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17810# for constant arguments. Useless!
b4e70030
JB
17811echo "$as_me:$LINENO: checking for working alloca.h" >&5
17812echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 17813if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816 cat >conftest.$ac_ext <<_ACEOF
17817/* confdefs.h. */
17818_ACEOF
17819cat confdefs.h >>conftest.$ac_ext
17820cat >>conftest.$ac_ext <<_ACEOF
17821/* end confdefs.h. */
a3828db0 17822#include <alloca.h>
bec39cab
AC
17823int
17824main ()
17825{
a3828db0 17826char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
17827 ;
17828 return 0;
17829}
17830_ACEOF
17831rm -f conftest.$ac_objext conftest$ac_exeext
17832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17833 (eval $ac_link) 2>conftest.er1
17834 ac_status=$?
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
b4e70030
JB
17840 { ac_try='test -z "$ac_c_werror_flag"
17841 || test ! -s conftest.err'
bec39cab
AC
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest$ac_exeext'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
a3828db0 17853 ac_cv_working_alloca_h=yes
bec39cab
AC
17854else
17855 echo "$as_me: failed program was:" >&5
17856sed 's/^/| /' conftest.$ac_ext >&5
17857
b4e70030 17858ac_cv_working_alloca_h=no
bec39cab
AC
17859fi
17860rm -f conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
17862fi
b4e70030
JB
17863echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17864echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
17865if test $ac_cv_working_alloca_h = yes; then
17866
17867cat >>confdefs.h <<\_ACEOF
17868#define HAVE_ALLOCA_H 1
bec39cab 17869_ACEOF
74c1b268 17870
74c1b268
AC
17871fi
17872
b4e70030
JB
17873echo "$as_me:$LINENO: checking for alloca" >&5
17874echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 17875if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 17876 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 17877else
bec39cab
AC
17878 cat >conftest.$ac_ext <<_ACEOF
17879/* confdefs.h. */
17880_ACEOF
17881cat confdefs.h >>conftest.$ac_ext
17882cat >>conftest.$ac_ext <<_ACEOF
17883/* end confdefs.h. */
a3828db0
MK
17884#ifdef __GNUC__
17885# define alloca __builtin_alloca
17886#else
17887# ifdef _MSC_VER
17888# include <malloc.h>
17889# define alloca _alloca
17890# else
17891# if HAVE_ALLOCA_H
17892# include <alloca.h>
17893# else
17894# ifdef _AIX
17895 #pragma alloca
17896# else
17897# ifndef alloca /* predefined by HP cc +Olibcalls */
17898char *alloca ();
17899# endif
17900# endif
17901# endif
97bf5e38 17902# endif
a3828db0 17903#endif
97bf5e38 17904
bec39cab
AC
17905int
17906main ()
17907{
a3828db0 17908char *p = (char *) alloca (1);
bec39cab
AC
17909 ;
17910 return 0;
17911}
17912_ACEOF
a3828db0
MK
17913rm -f conftest.$ac_objext conftest$ac_exeext
17914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17915 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17916 ac_status=$?
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
b4e70030
JB
17922 { ac_try='test -z "$ac_c_werror_flag"
17923 || test ! -s conftest.err'
bec39cab
AC
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; } &&
a3828db0 17929 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
a3828db0 17935 ac_cv_func_alloca_works=yes
0200359f 17936else
bec39cab
AC
17937 echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
0200359f 17939
b4e70030 17940ac_cv_func_alloca_works=no
0200359f 17941fi
a3828db0
MK
17942rm -f conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
72473524 17944fi
b4e70030
JB
17945echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17946echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 17947
a3828db0
MK
17948if test $ac_cv_func_alloca_works = yes; then
17949
17950cat >>confdefs.h <<\_ACEOF
17951#define HAVE_ALLOCA 1
bec39cab
AC
17952_ACEOF
17953
a3828db0
MK
17954else
17955 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17956# that cause trouble. Some versions do not even contain alloca or
17957# contain a buggy version. If you still want to use their alloca,
17958# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 17959
b4e70030 17960ALLOCA=alloca.$ac_objext
bec39cab 17961
a3828db0
MK
17962cat >>confdefs.h <<\_ACEOF
17963#define C_ALLOCA 1
17964_ACEOF
bec39cab 17965
a3828db0 17966
b4e70030
JB
17967echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17968echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 17969if test "${ac_cv_os_cray+set}" = set; then
bec39cab 17970 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 17971else
a3828db0 17972 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17973/* confdefs.h. */
17974_ACEOF
17975cat confdefs.h >>conftest.$ac_ext
17976cat >>conftest.$ac_ext <<_ACEOF
17977/* end confdefs.h. */
b4e70030 17978#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
17979webecray
17980#else
17981wenotbecray
17982#endif
17983
17984_ACEOF
17985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17986 $EGREP "webecray" >/dev/null 2>&1; then
17987 ac_cv_os_cray=yes
17988else
17989 ac_cv_os_cray=no
17990fi
17991rm -f conftest*
17992
17993fi
b4e70030
JB
17994echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17995echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
17996if test $ac_cv_os_cray = yes; then
17997 for ac_func in _getb67 GETB67 getb67; do
17998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17999echo "$as_me:$LINENO: checking for $ac_func" >&5
18000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18001if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18003else
18004 cat >conftest.$ac_ext <<_ACEOF
18005/* confdefs.h. */
18006_ACEOF
18007cat confdefs.h >>conftest.$ac_ext
18008cat >>conftest.$ac_ext <<_ACEOF
18009/* end confdefs.h. */
18010/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18012#define $ac_func innocuous_$ac_func
18013
18014/* System header to define __stub macros and hopefully few prototypes,
18015 which can conflict with char $ac_func (); below.
18016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18017 <limits.h> exists even on freestanding compilers. */
18018
18019#ifdef __STDC__
18020# include <limits.h>
18021#else
18022# include <assert.h>
18023#endif
18024
18025#undef $ac_func
18026
b4e70030 18027/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18028#ifdef __cplusplus
18029extern "C"
b4e70030 18030{
a3828db0 18031#endif
b4e70030
JB
18032/* We use char because int might match the return type of a gcc2
18033 builtin and then its argument prototype would still apply. */
a3828db0
MK
18034char $ac_func ();
18035/* The GNU C library defines this for functions which it implements
18036 to always fail with ENOSYS. Some functions are actually named
18037 something starting with __ and the normal name is an alias. */
b4e70030 18038#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18039choke me
b4e70030
JB
18040#else
18041char (*f) () = $ac_func;
18042#endif
18043#ifdef __cplusplus
18044}
a3828db0
MK
18045#endif
18046
18047int
18048main ()
18049{
b4e70030 18050return f != $ac_func;
a3828db0
MK
18051 ;
18052 return 0;
18053}
18054_ACEOF
18055rm -f conftest.$ac_objext conftest$ac_exeext
18056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18057 (eval $ac_link) 2>conftest.er1
18058 ac_status=$?
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } &&
b4e70030
JB
18064 { ac_try='test -z "$ac_c_werror_flag"
18065 || test ! -s conftest.err'
a3828db0
MK
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; } &&
18071 { ac_try='test -s conftest$ac_exeext'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 eval "$as_ac_var=yes"
18078else
18079 echo "$as_me: failed program was:" >&5
18080sed 's/^/| /' conftest.$ac_ext >&5
18081
b4e70030 18082eval "$as_ac_var=no"
a3828db0
MK
18083fi
18084rm -f conftest.err conftest.$ac_objext \
18085 conftest$ac_exeext conftest.$ac_ext
18086fi
b4e70030
JB
18087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18088echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18089if test `eval echo '${'$as_ac_var'}'` = yes; then
18090
18091cat >>confdefs.h <<_ACEOF
18092#define CRAY_STACKSEG_END $ac_func
18093_ACEOF
18094
18095 break
18096fi
18097
18098 done
18099fi
18100
b4e70030
JB
18101echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18102echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
18103if test "${ac_cv_c_stack_direction+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18105else
18106 if test "$cross_compiling" = yes; then
18107 ac_cv_c_stack_direction=0
18108else
18109 cat >conftest.$ac_ext <<_ACEOF
18110/* confdefs.h. */
18111_ACEOF
18112cat confdefs.h >>conftest.$ac_ext
18113cat >>conftest.$ac_ext <<_ACEOF
18114/* end confdefs.h. */
18115int
18116find_stack_direction ()
18117{
18118 static char *addr = 0;
18119 auto char dummy;
18120 if (addr == 0)
18121 {
18122 addr = &dummy;
18123 return find_stack_direction ();
18124 }
18125 else
18126 return (&dummy > addr) ? 1 : -1;
18127}
18128
18129int
18130main ()
18131{
b4e70030 18132 exit (find_stack_direction () < 0);
a3828db0
MK
18133}
18134_ACEOF
18135rm -f conftest$ac_exeext
18136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18137 (eval $ac_link) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; }; then
18146 ac_cv_c_stack_direction=1
18147else
18148 echo "$as_me: program exited with status $ac_status" >&5
18149echo "$as_me: failed program was:" >&5
18150sed 's/^/| /' conftest.$ac_ext >&5
18151
18152( exit $ac_status )
18153ac_cv_c_stack_direction=-1
18154fi
b4e70030 18155rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18156fi
18157fi
b4e70030
JB
18158echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18159echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
18160
18161cat >>confdefs.h <<_ACEOF
18162#define STACK_DIRECTION $ac_cv_c_stack_direction
18163_ACEOF
18164
18165
18166fi
18167
18168
18169
18170for ac_header in stdlib.h unistd.h
18171do
18172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
18173if eval "test \"\${$as_ac_Header+set}\" = set"; then
18174 echo "$as_me:$LINENO: checking for $ac_header" >&5
18175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18176if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178fi
b4e70030
JB
18179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18180echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
18181else
18182 # Is the header compilable?
b4e70030
JB
18183echo "$as_me:$LINENO: checking $ac_header usability" >&5
18184echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
18185cat >conftest.$ac_ext <<_ACEOF
18186/* confdefs.h. */
18187_ACEOF
18188cat confdefs.h >>conftest.$ac_ext
18189cat >>conftest.$ac_ext <<_ACEOF
18190/* end confdefs.h. */
18191$ac_includes_default
18192#include <$ac_header>
18193_ACEOF
18194rm -f conftest.$ac_objext
18195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18197 ac_status=$?
bec39cab
AC
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
b4e70030
JB
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
bec39cab
AC
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_header_compiler=yes
18217else
18218 echo "$as_me: failed program was:" >&5
18219sed 's/^/| /' conftest.$ac_ext >&5
18220
b4e70030 18221ac_header_compiler=no
bec39cab
AC
18222fi
18223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
18224echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18225echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
18226
18227# Is the header present?
b4e70030
JB
18228echo "$as_me:$LINENO: checking $ac_header presence" >&5
18229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
18230cat >conftest.$ac_ext <<_ACEOF
18231/* confdefs.h. */
18232_ACEOF
18233cat confdefs.h >>conftest.$ac_ext
18234cat >>conftest.$ac_ext <<_ACEOF
18235/* end confdefs.h. */
18236#include <$ac_header>
18237_ACEOF
18238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18240 ac_status=$?
18241 grep -v '^ *+' conftest.er1 >conftest.err
18242 rm -f conftest.er1
18243 cat conftest.err >&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } >/dev/null; then
18246 if test -s conftest.err; then
18247 ac_cpp_err=$ac_c_preproc_warn_flag
18248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18249 else
18250 ac_cpp_err=
18251 fi
18252else
18253 ac_cpp_err=yes
18254fi
18255if test -z "$ac_cpp_err"; then
18256 ac_header_preproc=yes
97bf5e38 18257else
bec39cab
AC
18258 echo "$as_me: failed program was:" >&5
18259sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 ac_header_preproc=no
72473524 18262fi
bec39cab 18263rm -f conftest.err conftest.$ac_ext
b4e70030
JB
18264echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18265echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 18266
bec39cab
AC
18267# So? What about this header?
18268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18269 yes:no: )
18270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18271echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18273echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18274 ac_header_preproc=yes
18275 ;;
18276 no:yes:* )
18277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18278echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18280echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18282echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18284echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18288echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
18289 (
18290 cat <<\_ASBOX
18291## ------------------------------------------ ##
18292## Report this to the AC_PACKAGE_NAME lists. ##
18293## ------------------------------------------ ##
18294_ASBOX
18295 ) |
18296 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
18297 ;;
18298esac
b4e70030
JB
18299echo "$as_me:$LINENO: checking for $ac_header" >&5
18300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18301if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 18302 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18303else
bec39cab
AC
18304 eval "$as_ac_Header=\$ac_header_preproc"
18305fi
b4e70030
JB
18306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
18308
18309fi
18310if test `eval echo '${'$as_ac_Header'}'` = yes; then
18311 cat >>confdefs.h <<_ACEOF
18312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18313_ACEOF
18314
18315fi
18316
18317done
18318
18319
a3828db0 18320for ac_func in getpagesize
bec39cab
AC
18321do
18322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18323echo "$as_me:$LINENO: checking for $ac_func" >&5
18324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18325if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18327else
18328 cat >conftest.$ac_ext <<_ACEOF
18329/* confdefs.h. */
18330_ACEOF
18331cat confdefs.h >>conftest.$ac_ext
18332cat >>conftest.$ac_ext <<_ACEOF
18333/* end confdefs.h. */
18334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18336#define $ac_func innocuous_$ac_func
18337
97bf5e38 18338/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18339 which can conflict with char $ac_func (); below.
18340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18341 <limits.h> exists even on freestanding compilers. */
2b2d558c 18342
bec39cab
AC
18343#ifdef __STDC__
18344# include <limits.h>
18345#else
18346# include <assert.h>
18347#endif
97bf5e38 18348
bec39cab
AC
18349#undef $ac_func
18350
b4e70030 18351/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18352#ifdef __cplusplus
18353extern "C"
b4e70030 18354{
bec39cab 18355#endif
b4e70030
JB
18356/* We use char because int might match the return type of a gcc2
18357 builtin and then its argument prototype would still apply. */
bec39cab 18358char $ac_func ();
97bf5e38
MK
18359/* The GNU C library defines this for functions which it implements
18360 to always fail with ENOSYS. Some functions are actually named
18361 something starting with __ and the normal name is an alias. */
b4e70030 18362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18363choke me
b4e70030
JB
18364#else
18365char (*f) () = $ac_func;
18366#endif
18367#ifdef __cplusplus
18368}
97bf5e38
MK
18369#endif
18370
bec39cab
AC
18371int
18372main ()
18373{
b4e70030 18374return f != $ac_func;
bec39cab
AC
18375 ;
18376 return 0;
18377}
18378_ACEOF
18379rm -f conftest.$ac_objext conftest$ac_exeext
18380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18381 (eval $ac_link) 2>conftest.er1
18382 ac_status=$?
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
b4e70030
JB
18388 { ac_try='test -z "$ac_c_werror_flag"
18389 || test ! -s conftest.err'
bec39cab
AC
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; } &&
18395 { ac_try='test -s conftest$ac_exeext'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
18401 eval "$as_ac_var=yes"
18402else
18403 echo "$as_me: failed program was:" >&5
18404sed 's/^/| /' conftest.$ac_ext >&5
18405
b4e70030 18406eval "$as_ac_var=no"
bec39cab
AC
18407fi
18408rm -f conftest.err conftest.$ac_objext \
18409 conftest$ac_exeext conftest.$ac_ext
18410fi
b4e70030
JB
18411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18413if test `eval echo '${'$as_ac_var'}'` = yes; then
18414 cat >>confdefs.h <<_ACEOF
18415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18416_ACEOF
18417
2b2d558c 18418fi
bec39cab 18419done
2b2d558c 18420
b4e70030
JB
18421echo "$as_me:$LINENO: checking for working mmap" >&5
18422echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 18423if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 18424 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18425else
bec39cab 18426 if test "$cross_compiling" = yes; then
a3828db0 18427 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
18428else
18429 cat >conftest.$ac_ext <<_ACEOF
a3828db0 18430/* confdefs.h. */
bec39cab
AC
18431_ACEOF
18432cat confdefs.h >>conftest.$ac_ext
18433cat >>conftest.$ac_ext <<_ACEOF
18434/* end confdefs.h. */
a3828db0
MK
18435$ac_includes_default
18436/* malloc might have been renamed as rpl_malloc. */
18437#undef malloc
bec39cab 18438
a3828db0
MK
18439/* Thanks to Mike Haertel and Jim Avera for this test.
18440 Here is a matrix of mmap possibilities:
18441 mmap private not fixed
18442 mmap private fixed at somewhere currently unmapped
18443 mmap private fixed at somewhere already mapped
18444 mmap shared not fixed
18445 mmap shared fixed at somewhere currently unmapped
18446 mmap shared fixed at somewhere already mapped
18447 For private mappings, we should verify that changes cannot be read()
18448 back from the file, nor mmap's back from the file at a different
18449 address. (There have been systems where private was not correctly
18450 implemented like the infamous i386 svr4.0, and systems where the
18451 VM page cache was not coherent with the file system buffer cache
18452 like early versions of FreeBSD and possibly contemporary NetBSD.)
18453 For shared mappings, we should conversely verify that changes get
18454 propagated back to all the places they're supposed to be.
7dfa765c 18455
a3828db0
MK
18456 Grep wants private fixed already mapped.
18457 The main things grep needs to know about mmap are:
18458 * does it exist and is it safe to write into the mmap'd area
18459 * how to use it (BSD variants) */
7dfa765c 18460
a3828db0
MK
18461#include <fcntl.h>
18462#include <sys/mman.h>
7dfa765c 18463
a3828db0
MK
18464#if !STDC_HEADERS && !HAVE_STDLIB_H
18465char *malloc ();
18466#endif
7dfa765c 18467
a3828db0
MK
18468/* This mess was copied from the GNU getpagesize.h. */
18469#if !HAVE_GETPAGESIZE
18470/* Assume that all systems that can run configure have sys/param.h. */
18471# if !HAVE_SYS_PARAM_H
18472# define HAVE_SYS_PARAM_H 1
18473# endif
64bb1671 18474
a3828db0
MK
18475# ifdef _SC_PAGESIZE
18476# define getpagesize() sysconf(_SC_PAGESIZE)
18477# else /* no _SC_PAGESIZE */
18478# if HAVE_SYS_PARAM_H
18479# include <sys/param.h>
18480# ifdef EXEC_PAGESIZE
18481# define getpagesize() EXEC_PAGESIZE
18482# else /* no EXEC_PAGESIZE */
18483# ifdef NBPG
18484# define getpagesize() NBPG * CLSIZE
18485# ifndef CLSIZE
18486# define CLSIZE 1
18487# endif /* no CLSIZE */
18488# else /* no NBPG */
18489# ifdef NBPC
18490# define getpagesize() NBPC
18491# else /* no NBPC */
18492# ifdef PAGESIZE
18493# define getpagesize() PAGESIZE
18494# endif /* PAGESIZE */
18495# endif /* no NBPC */
18496# endif /* no NBPG */
18497# endif /* no EXEC_PAGESIZE */
18498# else /* no HAVE_SYS_PARAM_H */
18499# define getpagesize() 8192 /* punt totally */
18500# endif /* no HAVE_SYS_PARAM_H */
18501# endif /* no _SC_PAGESIZE */
64bb1671 18502
a3828db0 18503#endif /* no HAVE_GETPAGESIZE */
64bb1671 18504
a3828db0
MK
18505int
18506main ()
18507{
18508 char *data, *data2, *data3;
18509 int i, pagesize;
18510 int fd;
97bf5e38 18511
a3828db0
MK
18512 pagesize = getpagesize ();
18513
18514 /* First, make a file with some known garbage in it. */
18515 data = (char *) malloc (pagesize);
18516 if (!data)
b4e70030 18517 exit (1);
a3828db0
MK
18518 for (i = 0; i < pagesize; ++i)
18519 *(data + i) = rand ();
18520 umask (0);
18521 fd = creat ("conftest.mmap", 0600);
18522 if (fd < 0)
b4e70030 18523 exit (1);
a3828db0 18524 if (write (fd, data, pagesize) != pagesize)
b4e70030 18525 exit (1);
a3828db0
MK
18526 close (fd);
18527
18528 /* Next, try to mmap the file at a fixed address which already has
18529 something else allocated at it. If we can, also make sure that
18530 we see the same garbage. */
18531 fd = open ("conftest.mmap", O_RDWR);
18532 if (fd < 0)
b4e70030 18533 exit (1);
a3828db0
MK
18534 data2 = (char *) malloc (2 * pagesize);
18535 if (!data2)
b4e70030
JB
18536 exit (1);
18537 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
18538 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18539 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 18540 exit (1);
a3828db0
MK
18541 for (i = 0; i < pagesize; ++i)
18542 if (*(data + i) != *(data2 + i))
b4e70030 18543 exit (1);
a3828db0
MK
18544
18545 /* Finally, make sure that changes to the mapped area do not
18546 percolate back to the file as seen by read(). (This is a bug on
18547 some variants of i386 svr4.0.) */
18548 for (i = 0; i < pagesize; ++i)
18549 *(data2 + i) = *(data2 + i) + 1;
18550 data3 = (char *) malloc (pagesize);
18551 if (!data3)
b4e70030 18552 exit (1);
a3828db0 18553 if (read (fd, data3, pagesize) != pagesize)
b4e70030 18554 exit (1);
a3828db0
MK
18555 for (i = 0; i < pagesize; ++i)
18556 if (*(data + i) != *(data3 + i))
b4e70030 18557 exit (1);
a3828db0 18558 close (fd);
b4e70030 18559 exit (0);
97bf5e38 18560}
bec39cab
AC
18561_ACEOF
18562rm -f conftest$ac_exeext
18563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18564 (eval $ac_link) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
a3828db0 18573 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 18574else
bec39cab
AC
18575 echo "$as_me: program exited with status $ac_status" >&5
18576echo "$as_me: failed program was:" >&5
18577sed 's/^/| /' conftest.$ac_ext >&5
18578
18579( exit $ac_status )
a3828db0 18580ac_cv_func_mmap_fixed_mapped=no
0afdd437 18581fi
b4e70030 18582rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 18583fi
a3828db0 18584fi
b4e70030
JB
18585echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18586echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 18587if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
18588
18589cat >>confdefs.h <<\_ACEOF
a3828db0 18590#define HAVE_MMAP 1
bec39cab 18591_ACEOF
0afdd437
MK
18592
18593fi
a3828db0 18594rm -f conftest.mmap
0afdd437 18595
b4e70030
JB
18596echo "$as_me:$LINENO: checking for pid_t" >&5
18597echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 18598if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18600else
18601 cat >conftest.$ac_ext <<_ACEOF
18602/* confdefs.h. */
18603_ACEOF
18604cat confdefs.h >>conftest.$ac_ext
18605cat >>conftest.$ac_ext <<_ACEOF
18606/* end confdefs.h. */
a3828db0 18607$ac_includes_default
bec39cab
AC
18608int
18609main ()
18610{
b4e70030 18611if ((pid_t *) 0)
a3828db0 18612 return 0;
b4e70030 18613if (sizeof (pid_t))
a3828db0 18614 return 0;
bec39cab
AC
18615 ;
18616 return 0;
18617}
18618_ACEOF
a3828db0
MK
18619rm -f conftest.$ac_objext
18620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18621 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18622 ac_status=$?
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
b4e70030
JB
18628 { ac_try='test -z "$ac_c_werror_flag"
18629 || test ! -s conftest.err'
bec39cab
AC
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
a3828db0 18635 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
a3828db0 18641 ac_cv_type_pid_t=yes
bec39cab
AC
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
b4e70030 18646ac_cv_type_pid_t=no
bec39cab 18647fi
a3828db0 18648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 18649fi
b4e70030
JB
18650echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18651echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
18652if test $ac_cv_type_pid_t = yes; then
18653 :
18654else
18655
18656cat >>confdefs.h <<_ACEOF
18657#define pid_t int
bec39cab 18658_ACEOF
7e89e357 18659
7e89e357
JT
18660fi
18661
bec39cab 18662
b4e70030
JB
18663
18664for ac_header in unistd.h vfork.h
7be570e7 18665do
a3828db0 18666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
18667if eval "test \"\${$as_ac_Header+set}\" = set"; then
18668 echo "$as_me:$LINENO: checking for $ac_header" >&5
18669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18670if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 18671 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 18672fi
b4e70030
JB
18673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 18675else
a3828db0 18676 # Is the header compilable?
b4e70030
JB
18677echo "$as_me:$LINENO: checking $ac_header usability" >&5
18678echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 18679cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18680/* confdefs.h. */
18681_ACEOF
18682cat confdefs.h >>conftest.$ac_ext
18683cat >>conftest.$ac_ext <<_ACEOF
18684/* end confdefs.h. */
a3828db0
MK
18685$ac_includes_default
18686#include <$ac_header>
bec39cab 18687_ACEOF
a3828db0
MK
18688rm -f conftest.$ac_objext
18689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18690 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
b4e70030
JB
18697 { ac_try='test -z "$ac_c_werror_flag"
18698 || test ! -s conftest.err'
bec39cab
AC
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
a3828db0 18704 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
a3828db0 18710 ac_header_compiler=yes
bec39cab
AC
18711else
18712 echo "$as_me: failed program was:" >&5
18713sed 's/^/| /' conftest.$ac_ext >&5
18714
b4e70030 18715ac_header_compiler=no
bec39cab 18716fi
a3828db0 18717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
18718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18719echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
18720
18721# Is the header present?
b4e70030
JB
18722echo "$as_me:$LINENO: checking $ac_header presence" >&5
18723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
18724cat >conftest.$ac_ext <<_ACEOF
18725/* confdefs.h. */
18726_ACEOF
18727cat confdefs.h >>conftest.$ac_ext
18728cat >>conftest.$ac_ext <<_ACEOF
18729/* end confdefs.h. */
18730#include <$ac_header>
18731_ACEOF
18732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18734 ac_status=$?
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } >/dev/null; then
18740 if test -s conftest.err; then
18741 ac_cpp_err=$ac_c_preproc_warn_flag
18742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18743 else
18744 ac_cpp_err=
18745 fi
18746else
18747 ac_cpp_err=yes
18748fi
18749if test -z "$ac_cpp_err"; then
18750 ac_header_preproc=yes
18751else
18752 echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755 ac_header_preproc=no
18756fi
18757rm -f conftest.err conftest.$ac_ext
b4e70030
JB
18758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18759echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
18760
18761# So? What about this header?
18762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18763 yes:no: )
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18768 ac_header_preproc=yes
18769 ;;
18770 no:yes:* )
18771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
18783 (
18784 cat <<\_ASBOX
18785## ------------------------------------------ ##
18786## Report this to the AC_PACKAGE_NAME lists. ##
18787## ------------------------------------------ ##
18788_ASBOX
18789 ) |
18790 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
18791 ;;
18792esac
b4e70030
JB
18793echo "$as_me:$LINENO: checking for $ac_header" >&5
18794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18795if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18797else
18798 eval "$as_ac_Header=\$ac_header_preproc"
18799fi
b4e70030
JB
18800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 18802
bec39cab 18803fi
a3828db0 18804if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 18805 cat >>confdefs.h <<_ACEOF
a3828db0 18806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 18807_ACEOF
14abd0fb 18808
14abd0fb 18809fi
a3828db0 18810
14abd0fb
MK
18811done
18812
bec39cab 18813
a3828db0
MK
18814
18815for ac_func in fork vfork
14abd0fb 18816do
bec39cab 18817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18818echo "$as_me:$LINENO: checking for $ac_func" >&5
18819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18820if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18822else
18823 cat >conftest.$ac_ext <<_ACEOF
18824/* confdefs.h. */
18825_ACEOF
18826cat confdefs.h >>conftest.$ac_ext
18827cat >>conftest.$ac_ext <<_ACEOF
18828/* end confdefs.h. */
18829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18831#define $ac_func innocuous_$ac_func
18832
14abd0fb 18833/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18834 which can conflict with char $ac_func (); below.
18835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18836 <limits.h> exists even on freestanding compilers. */
18837
18838#ifdef __STDC__
18839# include <limits.h>
18840#else
18841# include <assert.h>
18842#endif
14abd0fb 18843
bec39cab 18844#undef $ac_func
14abd0fb 18845
b4e70030 18846/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18847#ifdef __cplusplus
18848extern "C"
b4e70030 18849{
bec39cab 18850#endif
b4e70030
JB
18851/* We use char because int might match the return type of a gcc2
18852 builtin and then its argument prototype would still apply. */
bec39cab 18853char $ac_func ();
14abd0fb
MK
18854/* The GNU C library defines this for functions which it implements
18855 to always fail with ENOSYS. Some functions are actually named
18856 something starting with __ and the normal name is an alias. */
b4e70030 18857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 18858choke me
b4e70030
JB
18859#else
18860char (*f) () = $ac_func;
18861#endif
18862#ifdef __cplusplus
18863}
14abd0fb
MK
18864#endif
18865
bec39cab
AC
18866int
18867main ()
18868{
b4e70030 18869return f != $ac_func;
bec39cab
AC
18870 ;
18871 return 0;
18872}
18873_ACEOF
18874rm -f conftest.$ac_objext conftest$ac_exeext
18875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18876 (eval $ac_link) 2>conftest.er1
18877 ac_status=$?
18878 grep -v '^ *+' conftest.er1 >conftest.err
18879 rm -f conftest.er1
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } &&
b4e70030
JB
18883 { ac_try='test -z "$ac_c_werror_flag"
18884 || test ! -s conftest.err'
bec39cab
AC
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; } &&
18890 { ac_try='test -s conftest$ac_exeext'
18891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892 (eval $ac_try) 2>&5
18893 ac_status=$?
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; }; then
18896 eval "$as_ac_var=yes"
18897else
18898 echo "$as_me: failed program was:" >&5
18899sed 's/^/| /' conftest.$ac_ext >&5
18900
b4e70030 18901eval "$as_ac_var=no"
bec39cab
AC
18902fi
18903rm -f conftest.err conftest.$ac_objext \
18904 conftest$ac_exeext conftest.$ac_ext
18905fi
b4e70030
JB
18906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18908if test `eval echo '${'$as_ac_var'}'` = yes; then
18909 cat >>confdefs.h <<_ACEOF
18910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18911_ACEOF
7be570e7 18912
7be570e7
JM
18913fi
18914done
18915
a3828db0 18916if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
18917 echo "$as_me:$LINENO: checking for working fork" >&5
18918echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
18919if test "${ac_cv_func_fork_works+set}" = set; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
18921else
18922 if test "$cross_compiling" = yes; then
18923 ac_cv_func_fork_works=cross
18924else
18925 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
18926/* By Ruediger Kuhlmann. */
18927 #include <sys/types.h>
18928 #if HAVE_UNISTD_H
18929 # include <unistd.h>
18930 #endif
18931 /* Some systems only have a dummy stub for fork() */
18932 int main ()
18933 {
18934 if (fork() < 0)
18935 exit (1);
18936 exit (0);
18937 }
a3828db0
MK
18938_ACEOF
18939rm -f conftest$ac_exeext
18940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18941 (eval $ac_link) 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18950 ac_cv_func_fork_works=yes
18951else
18952 echo "$as_me: program exited with status $ac_status" >&5
18953echo "$as_me: failed program was:" >&5
18954sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 18955
a3828db0
MK
18956( exit $ac_status )
18957ac_cv_func_fork_works=no
18958fi
b4e70030 18959rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18960fi
18961fi
b4e70030
JB
18962echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18963echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
18964
18965else
18966 ac_cv_func_fork_works=$ac_cv_func_fork
18967fi
18968if test "x$ac_cv_func_fork_works" = xcross; then
18969 case $host in
18970 *-*-amigaos* | *-*-msdosdjgpp*)
18971 # Override, as these systems have only a dummy fork() stub
18972 ac_cv_func_fork_works=no
18973 ;;
18974 *)
18975 ac_cv_func_fork_works=yes
18976 ;;
18977 esac
18978 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18979echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18980fi
18981ac_cv_func_vfork_works=$ac_cv_func_vfork
18982if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
18983 echo "$as_me:$LINENO: checking for working vfork" >&5
18984echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 18985if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 18986 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18987else
18988 if test "$cross_compiling" = yes; then
18989 ac_cv_func_vfork_works=cross
bec39cab
AC
18990else
18991 cat >conftest.$ac_ext <<_ACEOF
18992/* confdefs.h. */
18993_ACEOF
18994cat confdefs.h >>conftest.$ac_ext
18995cat >>conftest.$ac_ext <<_ACEOF
18996/* end confdefs.h. */
a3828db0 18997/* Thanks to Paul Eggert for this test. */
b4e70030
JB
18998#include <stdio.h>
18999#include <stdlib.h>
19000#include <sys/types.h>
19001#include <sys/stat.h>
a3828db0 19002#include <sys/wait.h>
b4e70030
JB
19003#if HAVE_UNISTD_H
19004# include <unistd.h>
19005#endif
a3828db0
MK
19006#if HAVE_VFORK_H
19007# include <vfork.h>
bec39cab 19008#endif
a3828db0
MK
19009/* On some sparc systems, changes by the child to local and incoming
19010 argument registers are propagated back to the parent. The compiler
19011 is told about this with #include <vfork.h>, but some compilers
19012 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19013 static variable whose address is put into a register that is
19014 clobbered by the vfork. */
19015static void
bec39cab 19016#ifdef __cplusplus
a3828db0
MK
19017sparc_address_test (int arg)
19018# else
19019sparc_address_test (arg) int arg;
c906108c 19020#endif
a3828db0
MK
19021{
19022 static pid_t child;
19023 if (!child) {
19024 child = vfork ();
19025 if (child < 0) {
19026 perror ("vfork");
19027 _exit(2);
19028 }
19029 if (!child) {
19030 arg = getpid();
19031 write(-1, "", 0);
19032 _exit (arg);
19033 }
19034 }
19035}
97bf5e38 19036
bec39cab
AC
19037int
19038main ()
19039{
a3828db0
MK
19040 pid_t parent = getpid ();
19041 pid_t child;
19042
19043 sparc_address_test (0);
19044
19045 child = vfork ();
19046
19047 if (child == 0) {
19048 /* Here is another test for sparc vfork register problems. This
19049 test uses lots of local variables, at least as many local
19050 variables as main has allocated so far including compiler
19051 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19052 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19053 reuse the register of parent for one of the local variables,
19054 since it will think that parent can't possibly be used any more
19055 in this routine. Assigning to the local variable will thus
19056 munge parent in the parent process. */
19057 pid_t
19058 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19059 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19060 /* Convince the compiler that p..p7 are live; otherwise, it might
19061 use the same hardware register for all 8 local variables. */
19062 if (p != p1 || p != p2 || p != p3 || p != p4
19063 || p != p5 || p != p6 || p != p7)
19064 _exit(1);
19065
19066 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19067 from child file descriptors. If the child closes a descriptor
19068 before it execs or exits, this munges the parent's descriptor
19069 as well. Test for this by closing stdout in the child. */
19070 _exit(close(fileno(stdout)) != 0);
19071 } else {
19072 int status;
19073 struct stat st;
19074
19075 while (wait(&status) != child)
19076 ;
b4e70030 19077 exit(
a3828db0
MK
19078 /* Was there some problem with vforking? */
19079 child < 0
19080
19081 /* Did the child fail? (This shouldn't happen.) */
19082 || status
19083
19084 /* Did the vfork/compiler bug occur? */
19085 || parent != getpid()
19086
19087 /* Did the file descriptor bug occur? */
19088 || fstat(fileno(stdout), &st) != 0
19089 );
19090 }
bec39cab
AC
19091}
19092_ACEOF
a3828db0 19093rm -f conftest$ac_exeext
bec39cab 19094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 19095 (eval $ac_link) 2>&5
bec39cab
AC
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
19099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19101 ac_status=$?
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; }; then
a3828db0
MK
19104 ac_cv_func_vfork_works=yes
19105else
19106 echo "$as_me: program exited with status $ac_status" >&5
19107echo "$as_me: failed program was:" >&5
19108sed 's/^/| /' conftest.$ac_ext >&5
19109
19110( exit $ac_status )
19111ac_cv_func_vfork_works=no
19112fi
b4e70030 19113rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19114fi
19115fi
b4e70030
JB
19116echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19117echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
19118
19119fi;
19120if test "x$ac_cv_func_fork_works" = xcross; then
19121 ac_cv_func_vfork_works=$ac_cv_func_vfork
19122 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19123echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19124fi
19125
19126if test "x$ac_cv_func_vfork_works" = xyes; then
19127
19128cat >>confdefs.h <<\_ACEOF
19129#define HAVE_WORKING_VFORK 1
19130_ACEOF
19131
bec39cab 19132else
bec39cab 19133
a3828db0
MK
19134cat >>confdefs.h <<\_ACEOF
19135#define vfork fork
19136_ACEOF
19137
bec39cab 19138fi
a3828db0
MK
19139if test "x$ac_cv_func_fork_works" = xyes; then
19140
19141cat >>confdefs.h <<\_ACEOF
19142#define HAVE_WORKING_FORK 1
bec39cab 19143_ACEOF
c906108c 19144
c906108c
SS
19145fi
19146
bec39cab
AC
19147
19148
a3828db0 19149for ac_func in canonicalize_file_name realpath
97bf5e38 19150do
bec39cab 19151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 19152echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
19153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19154if eval "test \"\${$as_ac_var+set}\" = set"; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19156else
19157 cat >conftest.$ac_ext <<_ACEOF
19158/* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
19163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19165#define $ac_func innocuous_$ac_func
19166
19167/* System header to define __stub macros and hopefully few prototypes,
19168 which can conflict with char $ac_func (); below.
19169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19170 <limits.h> exists even on freestanding compilers. */
19171
19172#ifdef __STDC__
19173# include <limits.h>
19174#else
19175# include <assert.h>
19176#endif
19177
19178#undef $ac_func
19179
19180/* Override any gcc2 internal prototype to avoid an error. */
19181#ifdef __cplusplus
19182extern "C"
19183{
19184#endif
19185/* We use char because int might match the return type of a gcc2
19186 builtin and then its argument prototype would still apply. */
19187char $ac_func ();
19188/* The GNU C library defines this for functions which it implements
19189 to always fail with ENOSYS. Some functions are actually named
19190 something starting with __ and the normal name is an alias. */
19191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19192choke me
19193#else
19194char (*f) () = $ac_func;
19195#endif
19196#ifdef __cplusplus
19197}
19198#endif
19199
19200int
19201main ()
19202{
19203return f != $ac_func;
19204 ;
19205 return 0;
19206}
19207_ACEOF
19208rm -f conftest.$ac_objext conftest$ac_exeext
19209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210 (eval $ac_link) 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag"
19218 || test ! -s conftest.err'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest$ac_exeext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 eval "$as_ac_var=yes"
19231else
19232 echo "$as_me: failed program was:" >&5
19233sed 's/^/| /' conftest.$ac_ext >&5
19234
19235eval "$as_ac_var=no"
19236fi
19237rm -f conftest.err conftest.$ac_objext \
19238 conftest$ac_exeext conftest.$ac_ext
19239fi
19240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19241echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19242if test `eval echo '${'$as_ac_var'}'` = yes; then
19243 cat >>confdefs.h <<_ACEOF
19244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19245_ACEOF
19246
19247fi
19248done
19249
19250
19251for ac_func in getrusage
19252do
19253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19254echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
19255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19256if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19258else
19259 cat >conftest.$ac_ext <<_ACEOF
19260/* confdefs.h. */
19261_ACEOF
19262cat confdefs.h >>conftest.$ac_ext
19263cat >>conftest.$ac_ext <<_ACEOF
19264/* end confdefs.h. */
19265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19267#define $ac_func innocuous_$ac_func
19268
d3ea6809
MM
19269/* System header to define __stub macros and hopefully few prototypes,
19270 which can conflict with char $ac_func (); below.
19271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19272 <limits.h> exists even on freestanding compilers. */
19273
19274#ifdef __STDC__
19275# include <limits.h>
19276#else
19277# include <assert.h>
19278#endif
19279
19280#undef $ac_func
19281
b4e70030 19282/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
19283#ifdef __cplusplus
19284extern "C"
b4e70030 19285{
d3ea6809 19286#endif
b4e70030
JB
19287/* We use char because int might match the return type of a gcc2
19288 builtin and then its argument prototype would still apply. */
d3ea6809
MM
19289char $ac_func ();
19290/* The GNU C library defines this for functions which it implements
19291 to always fail with ENOSYS. Some functions are actually named
19292 something starting with __ and the normal name is an alias. */
b4e70030 19293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 19294choke me
b4e70030
JB
19295#else
19296char (*f) () = $ac_func;
19297#endif
19298#ifdef __cplusplus
19299}
d3ea6809
MM
19300#endif
19301
19302int
19303main ()
19304{
b4e70030 19305return f != $ac_func;
d3ea6809
MM
19306 ;
19307 return 0;
19308}
19309_ACEOF
19310rm -f conftest.$ac_objext conftest$ac_exeext
19311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312 (eval $ac_link) 2>conftest.er1
19313 ac_status=$?
19314 grep -v '^ *+' conftest.er1 >conftest.err
19315 rm -f conftest.er1
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
b4e70030
JB
19319 { ac_try='test -z "$ac_c_werror_flag"
19320 || test ! -s conftest.err'
d3ea6809
MM
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest$ac_exeext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 eval "$as_ac_var=yes"
19333else
19334 echo "$as_me: failed program was:" >&5
19335sed 's/^/| /' conftest.$ac_ext >&5
19336
b4e70030 19337eval "$as_ac_var=no"
d3ea6809
MM
19338fi
19339rm -f conftest.err conftest.$ac_objext \
19340 conftest$ac_exeext conftest.$ac_ext
19341fi
b4e70030
JB
19342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19343echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
19344if test `eval echo '${'$as_ac_var'}'` = yes; then
19345 cat >>confdefs.h <<_ACEOF
19346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19347_ACEOF
19348
19349fi
19350done
19351
19352
19353
19354for ac_func in getuid getgid
19355do
19356as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19357echo "$as_me:$LINENO: checking for $ac_func" >&5
19358echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19359if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361else
19362 cat >conftest.$ac_ext <<_ACEOF
19363/* confdefs.h. */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h. */
19368/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19370#define $ac_func innocuous_$ac_func
19371
97bf5e38 19372/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19373 which can conflict with char $ac_func (); below.
19374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19375 <limits.h> exists even on freestanding compilers. */
c906108c 19376
bec39cab
AC
19377#ifdef __STDC__
19378# include <limits.h>
19379#else
19380# include <assert.h>
19381#endif
97bf5e38 19382
bec39cab
AC
19383#undef $ac_func
19384
b4e70030 19385/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19386#ifdef __cplusplus
19387extern "C"
b4e70030 19388{
bec39cab 19389#endif
b4e70030
JB
19390/* We use char because int might match the return type of a gcc2
19391 builtin and then its argument prototype would still apply. */
bec39cab 19392char $ac_func ();
97bf5e38
MK
19393/* The GNU C library defines this for functions which it implements
19394 to always fail with ENOSYS. Some functions are actually named
19395 something starting with __ and the normal name is an alias. */
b4e70030 19396#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19397choke me
b4e70030
JB
19398#else
19399char (*f) () = $ac_func;
19400#endif
19401#ifdef __cplusplus
19402}
c906108c 19403#endif
97bf5e38 19404
bec39cab
AC
19405int
19406main ()
19407{
b4e70030 19408return f != $ac_func;
bec39cab
AC
19409 ;
19410 return 0;
19411}
19412_ACEOF
19413rm -f conftest.$ac_objext conftest$ac_exeext
19414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415 (eval $ac_link) 2>conftest.er1
19416 ac_status=$?
19417 grep -v '^ *+' conftest.er1 >conftest.err
19418 rm -f conftest.er1
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
b4e70030
JB
19422 { ac_try='test -z "$ac_c_werror_flag"
19423 || test ! -s conftest.err'
bec39cab
AC
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; } &&
19429 { ac_try='test -s conftest$ac_exeext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 eval "$as_ac_var=yes"
19436else
19437 echo "$as_me: failed program was:" >&5
19438sed 's/^/| /' conftest.$ac_ext >&5
19439
b4e70030 19440eval "$as_ac_var=no"
bec39cab
AC
19441fi
19442rm -f conftest.err conftest.$ac_objext \
19443 conftest$ac_exeext conftest.$ac_ext
19444fi
b4e70030
JB
19445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19446echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19447if test `eval echo '${'$as_ac_var'}'` = yes; then
19448 cat >>confdefs.h <<_ACEOF
19449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19450_ACEOF
c906108c 19451
c906108c 19452fi
97bf5e38 19453done
c906108c 19454
bec39cab 19455
a3828db0 19456for ac_func in poll
97bf5e38 19457do
bec39cab 19458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19459echo "$as_me:$LINENO: checking for $ac_func" >&5
19460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19461if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463else
19464 cat >conftest.$ac_ext <<_ACEOF
19465/* confdefs.h. */
19466_ACEOF
19467cat confdefs.h >>conftest.$ac_ext
19468cat >>conftest.$ac_ext <<_ACEOF
19469/* end confdefs.h. */
19470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19472#define $ac_func innocuous_$ac_func
19473
97bf5e38 19474/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19475 which can conflict with char $ac_func (); below.
19476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19477 <limits.h> exists even on freestanding compilers. */
19478
19479#ifdef __STDC__
19480# include <limits.h>
19481#else
19482# include <assert.h>
19483#endif
c906108c 19484
bec39cab 19485#undef $ac_func
97bf5e38 19486
b4e70030 19487/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19488#ifdef __cplusplus
19489extern "C"
b4e70030 19490{
bec39cab 19491#endif
b4e70030
JB
19492/* We use char because int might match the return type of a gcc2
19493 builtin and then its argument prototype would still apply. */
bec39cab 19494char $ac_func ();
97bf5e38
MK
19495/* The GNU C library defines this for functions which it implements
19496 to always fail with ENOSYS. Some functions are actually named
19497 something starting with __ and the normal name is an alias. */
b4e70030 19498#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19499choke me
b4e70030
JB
19500#else
19501char (*f) () = $ac_func;
19502#endif
19503#ifdef __cplusplus
19504}
c906108c 19505#endif
97bf5e38 19506
bec39cab
AC
19507int
19508main ()
19509{
b4e70030 19510return f != $ac_func;
bec39cab
AC
19511 ;
19512 return 0;
19513}
19514_ACEOF
19515rm -f conftest.$ac_objext conftest$ac_exeext
19516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19517 (eval $ac_link) 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
b4e70030
JB
19524 { ac_try='test -z "$ac_c_werror_flag"
19525 || test ! -s conftest.err'
bec39cab
AC
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest$ac_exeext'
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 eval "$as_ac_var=yes"
19538else
19539 echo "$as_me: failed program was:" >&5
19540sed 's/^/| /' conftest.$ac_ext >&5
19541
b4e70030 19542eval "$as_ac_var=no"
bec39cab
AC
19543fi
19544rm -f conftest.err conftest.$ac_objext \
19545 conftest$ac_exeext conftest.$ac_ext
19546fi
b4e70030
JB
19547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19548echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19549if test `eval echo '${'$as_ac_var'}'` = yes; then
19550 cat >>confdefs.h <<_ACEOF
19551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19552_ACEOF
c906108c 19553
c906108c 19554fi
97bf5e38 19555done
c906108c 19556
bec39cab 19557
a3828db0 19558for ac_func in pread64
97bf5e38 19559do
bec39cab 19560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19561echo "$as_me:$LINENO: checking for $ac_func" >&5
19562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19563if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19565else
19566 cat >conftest.$ac_ext <<_ACEOF
19567/* confdefs.h. */
19568_ACEOF
19569cat confdefs.h >>conftest.$ac_ext
19570cat >>conftest.$ac_ext <<_ACEOF
19571/* end confdefs.h. */
19572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19574#define $ac_func innocuous_$ac_func
19575
97bf5e38 19576/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19577 which can conflict with char $ac_func (); below.
19578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19579 <limits.h> exists even on freestanding compilers. */
19580
19581#ifdef __STDC__
19582# include <limits.h>
19583#else
19584# include <assert.h>
19585#endif
c906108c 19586
bec39cab 19587#undef $ac_func
97bf5e38 19588
b4e70030 19589/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19590#ifdef __cplusplus
19591extern "C"
b4e70030 19592{
bec39cab 19593#endif
b4e70030
JB
19594/* We use char because int might match the return type of a gcc2
19595 builtin and then its argument prototype would still apply. */
bec39cab 19596char $ac_func ();
97bf5e38
MK
19597/* The GNU C library defines this for functions which it implements
19598 to always fail with ENOSYS. Some functions are actually named
19599 something starting with __ and the normal name is an alias. */
b4e70030 19600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19601choke me
b4e70030
JB
19602#else
19603char (*f) () = $ac_func;
19604#endif
19605#ifdef __cplusplus
19606}
c906108c 19607#endif
97bf5e38 19608
bec39cab
AC
19609int
19610main ()
19611{
b4e70030 19612return f != $ac_func;
bec39cab
AC
19613 ;
19614 return 0;
19615}
19616_ACEOF
19617rm -f conftest.$ac_objext conftest$ac_exeext
19618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619 (eval $ac_link) 2>conftest.er1
19620 ac_status=$?
19621 grep -v '^ *+' conftest.er1 >conftest.err
19622 rm -f conftest.er1
19623 cat conftest.err >&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } &&
b4e70030
JB
19626 { ac_try='test -z "$ac_c_werror_flag"
19627 || test ! -s conftest.err'
bec39cab
AC
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest$ac_exeext'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 eval "$as_ac_var=yes"
19640else
19641 echo "$as_me: failed program was:" >&5
19642sed 's/^/| /' conftest.$ac_ext >&5
19643
b4e70030 19644eval "$as_ac_var=no"
bec39cab
AC
19645fi
19646rm -f conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19648fi
b4e70030
JB
19649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19651if test `eval echo '${'$as_ac_var'}'` = yes; then
19652 cat >>confdefs.h <<_ACEOF
19653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19654_ACEOF
c906108c 19655
c906108c 19656fi
97bf5e38 19657done
c906108c 19658
bec39cab 19659
a3828db0 19660for ac_func in sbrk
b757528f 19661do
bec39cab 19662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19663echo "$as_me:$LINENO: checking for $ac_func" >&5
19664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19665if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19667else
19668 cat >conftest.$ac_ext <<_ACEOF
19669/* confdefs.h. */
19670_ACEOF
19671cat confdefs.h >>conftest.$ac_ext
19672cat >>conftest.$ac_ext <<_ACEOF
19673/* end confdefs.h. */
19674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19676#define $ac_func innocuous_$ac_func
19677
b757528f 19678/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19679 which can conflict with char $ac_func (); below.
19680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19681 <limits.h> exists even on freestanding compilers. */
19682
19683#ifdef __STDC__
19684# include <limits.h>
19685#else
19686# include <assert.h>
19687#endif
b757528f 19688
bec39cab 19689#undef $ac_func
b757528f 19690
b4e70030 19691/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19692#ifdef __cplusplus
19693extern "C"
b4e70030 19694{
bec39cab 19695#endif
b4e70030
JB
19696/* We use char because int might match the return type of a gcc2
19697 builtin and then its argument prototype would still apply. */
bec39cab 19698char $ac_func ();
b757528f
JJ
19699/* The GNU C library defines this for functions which it implements
19700 to always fail with ENOSYS. Some functions are actually named
19701 something starting with __ and the normal name is an alias. */
b4e70030 19702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 19703choke me
b4e70030
JB
19704#else
19705char (*f) () = $ac_func;
19706#endif
19707#ifdef __cplusplus
19708}
b757528f
JJ
19709#endif
19710
bec39cab
AC
19711int
19712main ()
19713{
b4e70030 19714return f != $ac_func;
bec39cab
AC
19715 ;
19716 return 0;
19717}
19718_ACEOF
19719rm -f conftest.$ac_objext conftest$ac_exeext
19720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19721 (eval $ac_link) 2>conftest.er1
19722 ac_status=$?
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } &&
b4e70030
JB
19728 { ac_try='test -z "$ac_c_werror_flag"
19729 || test ! -s conftest.err'
bec39cab
AC
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; } &&
19735 { ac_try='test -s conftest$ac_exeext'
19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
19741 eval "$as_ac_var=yes"
19742else
19743 echo "$as_me: failed program was:" >&5
19744sed 's/^/| /' conftest.$ac_ext >&5
19745
b4e70030 19746eval "$as_ac_var=no"
bec39cab
AC
19747fi
19748rm -f conftest.err conftest.$ac_objext \
19749 conftest$ac_exeext conftest.$ac_ext
19750fi
b4e70030
JB
19751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19753if test `eval echo '${'$as_ac_var'}'` = yes; then
19754 cat >>confdefs.h <<_ACEOF
19755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19756_ACEOF
b757528f 19757
b757528f
JJ
19758fi
19759done
19760
bec39cab 19761
a3828db0 19762
83116857
TJB
19763
19764for ac_func in setpgid setpgrp setsid
bcb3dc3d 19765do
bec39cab 19766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19767echo "$as_me:$LINENO: checking for $ac_func" >&5
19768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19769if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19771else
19772 cat >conftest.$ac_ext <<_ACEOF
19773/* confdefs.h. */
19774_ACEOF
19775cat confdefs.h >>conftest.$ac_ext
19776cat >>conftest.$ac_ext <<_ACEOF
19777/* end confdefs.h. */
19778/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19780#define $ac_func innocuous_$ac_func
19781
bcb3dc3d 19782/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19783 which can conflict with char $ac_func (); below.
19784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19785 <limits.h> exists even on freestanding compilers. */
19786
19787#ifdef __STDC__
19788# include <limits.h>
19789#else
19790# include <assert.h>
19791#endif
bcb3dc3d 19792
bec39cab 19793#undef $ac_func
bcb3dc3d 19794
b4e70030 19795/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19796#ifdef __cplusplus
19797extern "C"
b4e70030 19798{
bec39cab 19799#endif
b4e70030
JB
19800/* We use char because int might match the return type of a gcc2
19801 builtin and then its argument prototype would still apply. */
bec39cab 19802char $ac_func ();
bcb3dc3d
MK
19803/* The GNU C library defines this for functions which it implements
19804 to always fail with ENOSYS. Some functions are actually named
19805 something starting with __ and the normal name is an alias. */
b4e70030 19806#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 19807choke me
b4e70030
JB
19808#else
19809char (*f) () = $ac_func;
19810#endif
19811#ifdef __cplusplus
19812}
bcb3dc3d
MK
19813#endif
19814
bec39cab
AC
19815int
19816main ()
19817{
b4e70030 19818return f != $ac_func;
bec39cab
AC
19819 ;
19820 return 0;
19821}
19822_ACEOF
19823rm -f conftest.$ac_objext conftest$ac_exeext
19824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19825 (eval $ac_link) 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
b4e70030
JB
19832 { ac_try='test -z "$ac_c_werror_flag"
19833 || test ! -s conftest.err'
bec39cab
AC
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } &&
19839 { ac_try='test -s conftest$ac_exeext'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 eval "$as_ac_var=yes"
19846else
19847 echo "$as_me: failed program was:" >&5
19848sed 's/^/| /' conftest.$ac_ext >&5
19849
b4e70030 19850eval "$as_ac_var=no"
bec39cab
AC
19851fi
19852rm -f conftest.err conftest.$ac_objext \
19853 conftest$ac_exeext conftest.$ac_ext
19854fi
b4e70030
JB
19855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19856echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19857if test `eval echo '${'$as_ac_var'}'` = yes; then
19858 cat >>confdefs.h <<_ACEOF
19859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19860_ACEOF
bcb3dc3d 19861
bcb3dc3d
MK
19862fi
19863done
19864
bec39cab 19865
a3828db0
MK
19866
19867
19868for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 19869do
bec39cab 19870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19871echo "$as_me:$LINENO: checking for $ac_func" >&5
19872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19873if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875else
19876 cat >conftest.$ac_ext <<_ACEOF
19877/* confdefs.h. */
19878_ACEOF
19879cat confdefs.h >>conftest.$ac_ext
19880cat >>conftest.$ac_ext <<_ACEOF
19881/* end confdefs.h. */
19882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19884#define $ac_func innocuous_$ac_func
19885
8b9cf735 19886/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19887 which can conflict with char $ac_func (); below.
19888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19889 <limits.h> exists even on freestanding compilers. */
19890
19891#ifdef __STDC__
19892# include <limits.h>
19893#else
19894# include <assert.h>
19895#endif
8b9cf735 19896
bec39cab 19897#undef $ac_func
8b9cf735 19898
b4e70030 19899/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19900#ifdef __cplusplus
19901extern "C"
b4e70030 19902{
a3828db0 19903#endif
b4e70030
JB
19904/* We use char because int might match the return type of a gcc2
19905 builtin and then its argument prototype would still apply. */
a3828db0
MK
19906char $ac_func ();
19907/* The GNU C library defines this for functions which it implements
19908 to always fail with ENOSYS. Some functions are actually named
19909 something starting with __ and the normal name is an alias. */
b4e70030 19910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19911choke me
b4e70030
JB
19912#else
19913char (*f) () = $ac_func;
19914#endif
19915#ifdef __cplusplus
19916}
a3828db0
MK
19917#endif
19918
bec39cab
AC
19919int
19920main ()
19921{
b4e70030 19922return f != $ac_func;
bec39cab
AC
19923 ;
19924 return 0;
19925}
19926_ACEOF
a3828db0
MK
19927rm -f conftest.$ac_objext conftest$ac_exeext
19928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19930 ac_status=$?
19931 grep -v '^ *+' conftest.er1 >conftest.err
19932 rm -f conftest.er1
19933 cat conftest.err >&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); } &&
b4e70030
JB
19936 { ac_try='test -z "$ac_c_werror_flag"
19937 || test ! -s conftest.err'
bec39cab
AC
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
a3828db0 19943 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19946 ac_status=$?
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
a3828db0 19949 eval "$as_ac_var=yes"
086ec9eb 19950else
bec39cab
AC
19951 echo "$as_me: failed program was:" >&5
19952sed 's/^/| /' conftest.$ac_ext >&5
19953
b4e70030 19954eval "$as_ac_var=no"
a3828db0
MK
19955fi
19956rm -f conftest.err conftest.$ac_objext \
19957 conftest$ac_exeext conftest.$ac_ext
19958fi
b4e70030
JB
19959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19961if test `eval echo '${'$as_ac_var'}'` = yes; then
19962 cat >>confdefs.h <<_ACEOF
19963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19964_ACEOF
19965
086ec9eb 19966fi
a3828db0
MK
19967done
19968
19969
19970for ac_func in socketpair
19971do
19972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19973echo "$as_me:$LINENO: checking for $ac_func" >&5
19974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19975if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19977else
19978 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19979/* confdefs.h. */
19980_ACEOF
19981cat confdefs.h >>conftest.$ac_ext
19982cat >>conftest.$ac_ext <<_ACEOF
19983/* end confdefs.h. */
a3828db0
MK
19984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19986#define $ac_func innocuous_$ac_func
19987
19988/* System header to define __stub macros and hopefully few prototypes,
19989 which can conflict with char $ac_func (); below.
19990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19991 <limits.h> exists even on freestanding compilers. */
19992
19993#ifdef __STDC__
19994# include <limits.h>
19995#else
19996# include <assert.h>
19997#endif
19998
19999#undef $ac_func
20000
b4e70030 20001/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20002#ifdef __cplusplus
20003extern "C"
b4e70030 20004{
a3828db0 20005#endif
b4e70030
JB
20006/* We use char because int might match the return type of a gcc2
20007 builtin and then its argument prototype would still apply. */
a3828db0
MK
20008char $ac_func ();
20009/* The GNU C library defines this for functions which it implements
20010 to always fail with ENOSYS. Some functions are actually named
20011 something starting with __ and the normal name is an alias. */
b4e70030 20012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20013choke me
b4e70030
JB
20014#else
20015char (*f) () = $ac_func;
20016#endif
20017#ifdef __cplusplus
20018}
a3828db0
MK
20019#endif
20020
bec39cab
AC
20021int
20022main ()
20023{
b4e70030 20024return f != $ac_func;
bec39cab
AC
20025 ;
20026 return 0;
20027}
20028_ACEOF
a3828db0
MK
20029rm -f conftest.$ac_objext conftest$ac_exeext
20030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20031 (eval $ac_link) 2>conftest.er1
bec39cab
AC
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
b4e70030
JB
20038 { ac_try='test -z "$ac_c_werror_flag"
20039 || test ! -s conftest.err'
bec39cab
AC
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
a3828db0 20045 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
a3828db0 20051 eval "$as_ac_var=yes"
086ec9eb 20052else
bec39cab
AC
20053 echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
b4e70030 20056eval "$as_ac_var=no"
086ec9eb 20057fi
a3828db0
MK
20058rm -f conftest.err conftest.$ac_objext \
20059 conftest$ac_exeext conftest.$ac_ext
086ec9eb 20060fi
b4e70030
JB
20061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20063if test `eval echo '${'$as_ac_var'}'` = yes; then
20064 cat >>confdefs.h <<_ACEOF
20065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20066_ACEOF
086ec9eb
MK
20067
20068fi
a3828db0 20069done
086ec9eb 20070
a3828db0
MK
20071
20072for ac_func in syscall
20073do
20074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20075echo "$as_me:$LINENO: checking for $ac_func" >&5
20076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20077if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 20078 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
20079else
20080 cat >conftest.$ac_ext <<_ACEOF
20081/* confdefs.h. */
20082_ACEOF
20083cat confdefs.h >>conftest.$ac_ext
20084cat >>conftest.$ac_ext <<_ACEOF
20085/* end confdefs.h. */
a3828db0
MK
20086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20088#define $ac_func innocuous_$ac_func
20089
20090/* System header to define __stub macros and hopefully few prototypes,
20091 which can conflict with char $ac_func (); below.
20092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20093 <limits.h> exists even on freestanding compilers. */
20094
20095#ifdef __STDC__
20096# include <limits.h>
20097#else
20098# include <assert.h>
20099#endif
20100
20101#undef $ac_func
20102
b4e70030 20103/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20104#ifdef __cplusplus
20105extern "C"
b4e70030 20106{
a3828db0 20107#endif
b4e70030
JB
20108/* We use char because int might match the return type of a gcc2
20109 builtin and then its argument prototype would still apply. */
a3828db0
MK
20110char $ac_func ();
20111/* The GNU C library defines this for functions which it implements
20112 to always fail with ENOSYS. Some functions are actually named
20113 something starting with __ and the normal name is an alias. */
b4e70030 20114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20115choke me
b4e70030
JB
20116#else
20117char (*f) () = $ac_func;
20118#endif
20119#ifdef __cplusplus
20120}
c906108c 20121#endif
97bf5e38 20122
bec39cab
AC
20123int
20124main ()
97bf5e38 20125{
b4e70030 20126return f != $ac_func;
bec39cab
AC
20127 ;
20128 return 0;
97bf5e38 20129}
bec39cab 20130_ACEOF
a3828db0 20131rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 20132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 20133 (eval $ac_link) 2>conftest.er1
bec39cab 20134 ac_status=$?
a3828db0
MK
20135 grep -v '^ *+' conftest.er1 >conftest.err
20136 rm -f conftest.er1
20137 cat conftest.err >&5
bec39cab 20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 20139 (exit $ac_status); } &&
b4e70030
JB
20140 { ac_try='test -z "$ac_c_werror_flag"
20141 || test ! -s conftest.err'
a3828db0
MK
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; } &&
20147 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
a3828db0 20153 eval "$as_ac_var=yes"
c906108c 20154else
a3828db0 20155 echo "$as_me: failed program was:" >&5
bec39cab
AC
20156sed 's/^/| /' conftest.$ac_ext >&5
20157
b4e70030 20158eval "$as_ac_var=no"
97bf5e38 20159fi
a3828db0
MK
20160rm -f conftest.err conftest.$ac_objext \
20161 conftest$ac_exeext conftest.$ac_ext
20162fi
b4e70030
JB
20163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20165if test `eval echo '${'$as_ac_var'}'` = yes; then
20166 cat >>confdefs.h <<_ACEOF
20167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20168_ACEOF
c906108c
SS
20169
20170fi
a3828db0 20171done
c906108c 20172
a3828db0
MK
20173
20174for ac_func in ttrace
20175do
20176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20177echo "$as_me:$LINENO: checking for $ac_func" >&5
20178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20179if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 20180 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 20181else
bec39cab
AC
20182 cat >conftest.$ac_ext <<_ACEOF
20183/* confdefs.h. */
20184_ACEOF
20185cat confdefs.h >>conftest.$ac_ext
20186cat >>conftest.$ac_ext <<_ACEOF
20187/* end confdefs.h. */
a3828db0
MK
20188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20190#define $ac_func innocuous_$ac_func
b83266a0 20191
a3828db0
MK
20192/* System header to define __stub macros and hopefully few prototypes,
20193 which can conflict with char $ac_func (); below.
20194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20195 <limits.h> exists even on freestanding compilers. */
20196
20197#ifdef __STDC__
20198# include <limits.h>
20199#else
20200# include <assert.h>
20201#endif
20202
20203#undef $ac_func
20204
b4e70030 20205/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20206#ifdef __cplusplus
20207extern "C"
b4e70030 20208{
a3828db0 20209#endif
b4e70030
JB
20210/* We use char because int might match the return type of a gcc2
20211 builtin and then its argument prototype would still apply. */
a3828db0
MK
20212char $ac_func ();
20213/* The GNU C library defines this for functions which it implements
20214 to always fail with ENOSYS. Some functions are actually named
20215 something starting with __ and the normal name is an alias. */
b4e70030 20216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20217choke me
b4e70030
JB
20218#else
20219char (*f) () = $ac_func;
20220#endif
20221#ifdef __cplusplus
20222}
a3828db0 20223#endif
97bf5e38 20224
bec39cab
AC
20225int
20226main ()
20227{
b4e70030 20228return f != $ac_func;
bec39cab
AC
20229 ;
20230 return 0;
20231}
20232_ACEOF
a3828db0
MK
20233rm -f conftest.$ac_objext conftest$ac_exeext
20234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20235 (eval $ac_link) 2>conftest.er1
bec39cab
AC
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
b4e70030
JB
20242 { ac_try='test -z "$ac_c_werror_flag"
20243 || test ! -s conftest.err'
bec39cab
AC
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
a3828db0 20249 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
a3828db0 20255 eval "$as_ac_var=yes"
b83266a0 20256else
bec39cab
AC
20257 echo "$as_me: failed program was:" >&5
20258sed 's/^/| /' conftest.$ac_ext >&5
20259
b4e70030 20260eval "$as_ac_var=no"
b83266a0 20261fi
a3828db0
MK
20262rm -f conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext conftest.$ac_ext
b83266a0 20264fi
b4e70030
JB
20265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20267if test `eval echo '${'$as_ac_var'}'` = yes; then
20268 cat >>confdefs.h <<_ACEOF
20269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20270_ACEOF
b83266a0 20271
97bf5e38 20272fi
a3828db0 20273done
b83266a0 20274
a3828db0
MK
20275
20276for ac_func in wborder
20277do
20278as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20279echo "$as_me:$LINENO: checking for $ac_func" >&5
20280echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20281if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283else
20284 cat >conftest.$ac_ext <<_ACEOF
20285/* confdefs.h. */
20286_ACEOF
20287cat confdefs.h >>conftest.$ac_ext
20288cat >>conftest.$ac_ext <<_ACEOF
20289/* end confdefs.h. */
a3828db0
MK
20290/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20292#define $ac_func innocuous_$ac_func
a4db0f07 20293
a3828db0
MK
20294/* System header to define __stub macros and hopefully few prototypes,
20295 which can conflict with char $ac_func (); below.
20296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20297 <limits.h> exists even on freestanding compilers. */
20298
20299#ifdef __STDC__
20300# include <limits.h>
20301#else
20302# include <assert.h>
20303#endif
20304
20305#undef $ac_func
20306
b4e70030 20307/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20308#ifdef __cplusplus
20309extern "C"
b4e70030 20310{
a3828db0 20311#endif
b4e70030
JB
20312/* We use char because int might match the return type of a gcc2
20313 builtin and then its argument prototype would still apply. */
a3828db0
MK
20314char $ac_func ();
20315/* The GNU C library defines this for functions which it implements
20316 to always fail with ENOSYS. Some functions are actually named
20317 something starting with __ and the normal name is an alias. */
b4e70030 20318#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20319choke me
b4e70030
JB
20320#else
20321char (*f) () = $ac_func;
20322#endif
20323#ifdef __cplusplus
20324}
a3828db0 20325#endif
97bf5e38 20326
bec39cab
AC
20327int
20328main ()
20329{
b4e70030 20330return f != $ac_func;
bec39cab
AC
20331 ;
20332 return 0;
20333}
20334_ACEOF
a3828db0
MK
20335rm -f conftest.$ac_objext conftest$ac_exeext
20336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337 (eval $ac_link) 2>conftest.er1
bec39cab
AC
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } &&
b4e70030
JB
20344 { ac_try='test -z "$ac_c_werror_flag"
20345 || test ! -s conftest.err'
bec39cab
AC
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } &&
a3828db0 20351 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
a3828db0 20357 eval "$as_ac_var=yes"
a4db0f07 20358else
bec39cab
AC
20359 echo "$as_me: failed program was:" >&5
20360sed 's/^/| /' conftest.$ac_ext >&5
20361
b4e70030 20362eval "$as_ac_var=no"
a4db0f07 20363fi
a3828db0
MK
20364rm -f conftest.err conftest.$ac_objext \
20365 conftest$ac_exeext conftest.$ac_ext
a4db0f07 20366fi
b4e70030
JB
20367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20368echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20369if test `eval echo '${'$as_ac_var'}'` = yes; then
20370 cat >>confdefs.h <<_ACEOF
20371#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20372_ACEOF
a4db0f07
RH
20373
20374fi
a3828db0 20375done
c906108c 20376
06825bd1 20377
a3828db0
MK
20378# Check the return and argument types of ptrace. No canned test for
20379# this, so roll our own.
20380gdb_ptrace_headers='
20381#if HAVE_SYS_TYPES_H
20382# include <sys/types.h>
20383#endif
20384#if HAVE_SYS_PTRACE_H
20385# include <sys/ptrace.h>
20386#endif
20387#if HAVE_UNISTD_H
20388# include <unistd.h>
20389#endif
20390'
20391# There is no point in checking if we don't have a prototype.
b4e70030
JB
20392echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20393echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 20394if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20396else
20397 cat >conftest.$ac_ext <<_ACEOF
20398/* confdefs.h. */
20399_ACEOF
20400cat confdefs.h >>conftest.$ac_ext
20401cat >>conftest.$ac_ext <<_ACEOF
20402/* end confdefs.h. */
a3828db0
MK
20403$gdb_ptrace_headers
20404
bec39cab
AC
20405int
20406main ()
20407{
a3828db0
MK
20408#ifndef ptrace
20409 char *p = (char *) ptrace;
06825bd1 20410#endif
a3828db0 20411
bec39cab
AC
20412 ;
20413 return 0;
20414}
20415_ACEOF
20416rm -f conftest.$ac_objext
20417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20418 (eval $ac_compile) 2>conftest.er1
20419 ac_status=$?
20420 grep -v '^ *+' conftest.er1 >conftest.err
20421 rm -f conftest.er1
20422 cat conftest.err >&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } &&
b4e70030
JB
20425 { ac_try='test -z "$ac_c_werror_flag"
20426 || test ! -s conftest.err'
bec39cab
AC
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; } &&
20432 { ac_try='test -s conftest.$ac_objext'
20433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434 (eval $ac_try) 2>&5
20435 ac_status=$?
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); }; }; then
a3828db0 20438 ac_cv_have_decl_ptrace=yes
06825bd1 20439else
bec39cab
AC
20440 echo "$as_me: failed program was:" >&5
20441sed 's/^/| /' conftest.$ac_ext >&5
20442
b4e70030 20443ac_cv_have_decl_ptrace=no
06825bd1 20444fi
bec39cab 20445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 20446fi
b4e70030
JB
20447echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20448echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 20449if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 20450
a3828db0
MK
20451cat >>confdefs.h <<_ACEOF
20452#define HAVE_DECL_PTRACE 1
20453_ACEOF
bec39cab 20454
bec39cab 20455
a3828db0
MK
20456else
20457 cat >>confdefs.h <<_ACEOF
20458#define HAVE_DECL_PTRACE 0
bec39cab 20459_ACEOF
06825bd1 20460
a3828db0
MK
20461
20462 : ${gdb_cv_func_ptrace_ret='int'}
20463 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20464
06825bd1
MK
20465fi
20466
a3828db0 20467
064ef605
DJ
20468# Check return type. Varargs (used on GNU/Linux) conflict with the
20469# empty argument list, so check for that explicitly.
b4e70030
JB
20470echo "$as_me:$LINENO: checking return type of ptrace" >&5
20471echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 20472if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20474else
20475 cat >conftest.$ac_ext <<_ACEOF
20476/* confdefs.h. */
20477_ACEOF
20478cat confdefs.h >>conftest.$ac_ext
20479cat >>conftest.$ac_ext <<_ACEOF
20480/* end confdefs.h. */
a3828db0 20481$gdb_ptrace_headers
bec39cab
AC
20482int
20483main ()
20484{
064ef605
DJ
20485extern long ptrace (enum __ptrace_request, ...);
20486 ;
20487 return 0;
20488}
20489_ACEOF
20490rm -f conftest.$ac_objext
20491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20492 (eval $ac_compile) 2>conftest.er1
20493 ac_status=$?
20494 grep -v '^ *+' conftest.er1 >conftest.err
20495 rm -f conftest.er1
20496 cat conftest.err >&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } &&
20499 { ac_try='test -z "$ac_c_werror_flag"
20500 || test ! -s conftest.err'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; } &&
20506 { ac_try='test -s conftest.$ac_objext'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; }; then
20512 gdb_cv_func_ptrace_ret='long'
20513else
20514 echo "$as_me: failed program was:" >&5
20515sed 's/^/| /' conftest.$ac_ext >&5
20516
20517cat >conftest.$ac_ext <<_ACEOF
20518/* confdefs.h. */
20519_ACEOF
20520cat confdefs.h >>conftest.$ac_ext
20521cat >>conftest.$ac_ext <<_ACEOF
20522/* end confdefs.h. */
20523$gdb_ptrace_headers
20524int
20525main ()
20526{
a3828db0 20527extern int ptrace ();
bec39cab
AC
20528 ;
20529 return 0;
20530}
20531_ACEOF
20532rm -f conftest.$ac_objext
20533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20534 (eval $ac_compile) 2>conftest.er1
20535 ac_status=$?
20536 grep -v '^ *+' conftest.er1 >conftest.err
20537 rm -f conftest.er1
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
b4e70030
JB
20541 { ac_try='test -z "$ac_c_werror_flag"
20542 || test ! -s conftest.err'
bec39cab
AC
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; } &&
20548 { ac_try='test -s conftest.$ac_objext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
a3828db0 20554 gdb_cv_func_ptrace_ret='int'
70f9f479 20555else
bec39cab
AC
20556 echo "$as_me: failed program was:" >&5
20557sed 's/^/| /' conftest.$ac_ext >&5
20558
b4e70030 20559gdb_cv_func_ptrace_ret='long'
70f9f479 20560fi
bec39cab 20561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 20562fi
064ef605
DJ
20563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20564fi
b4e70030
JB
20565echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20566echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 20567
a3828db0
MK
20568cat >>confdefs.h <<_ACEOF
20569#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 20570_ACEOF
70f9f479 20571
a3828db0 20572# Check argument types.
b4e70030
JB
20573echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20574echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 20575if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577else
a3828db0 20578
064ef605
DJ
20579 cat >conftest.$ac_ext <<_ACEOF
20580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
20585$gdb_ptrace_headers
20586int
20587main ()
20588{
20589extern long ptrace (enum __ptrace_request, ...);
20590 ;
20591 return 0;
20592}
20593_ACEOF
20594rm -f conftest.$ac_objext
20595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596 (eval $ac_compile) 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } &&
20603 { ac_try='test -z "$ac_c_werror_flag"
20604 || test ! -s conftest.err'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest.$ac_objext'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
20616 gdb_cv_func_ptrace_args='int,int,long,long'
20617else
20618 echo "$as_me: failed program was:" >&5
20619sed 's/^/| /' conftest.$ac_ext >&5
20620
20621
a3828db0
MK
20622for gdb_arg1 in 'int' 'long'; do
20623 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 20624 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0
MK
20625 for gdb_arg4 in 'int' 'long'; do
20626 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20627/* confdefs.h. */
20628_ACEOF
20629cat confdefs.h >>conftest.$ac_ext
20630cat >>conftest.$ac_ext <<_ACEOF
20631/* end confdefs.h. */
a3828db0 20632$gdb_ptrace_headers
bec39cab
AC
20633int
20634main ()
20635{
a3828db0
MK
20636
20637extern $gdb_cv_func_ptrace_ret
20638 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20639
bec39cab
AC
20640 ;
20641 return 0;
20642}
20643_ACEOF
20644rm -f conftest.$ac_objext
20645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646 (eval $ac_compile) 2>conftest.er1
20647 ac_status=$?
20648 grep -v '^ *+' conftest.er1 >conftest.err
20649 rm -f conftest.er1
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
b4e70030
JB
20653 { ac_try='test -z "$ac_c_werror_flag"
20654 || test ! -s conftest.err'
bec39cab
AC
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest.$ac_objext'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20663 ac_status=$?
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
a3828db0
MK
20666 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20667 break 4;
5c7f2947 20668else
bec39cab
AC
20669 echo "$as_me: failed program was:" >&5
20670sed 's/^/| /' conftest.$ac_ext >&5
20671
5c7f2947 20672fi
bec39cab 20673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20674 for gdb_arg5 in 'int *' 'int' 'long'; do
20675 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20676/* confdefs.h. */
20677_ACEOF
20678cat confdefs.h >>conftest.$ac_ext
20679cat >>conftest.$ac_ext <<_ACEOF
20680/* end confdefs.h. */
a3828db0 20681$gdb_ptrace_headers
bec39cab
AC
20682int
20683main ()
20684{
a3828db0
MK
20685
20686extern $gdb_cv_func_ptrace_ret
20687 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20688
bec39cab
AC
20689 ;
20690 return 0;
20691}
20692_ACEOF
20693rm -f conftest.$ac_objext
20694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20695 (eval $ac_compile) 2>conftest.er1
20696 ac_status=$?
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
b4e70030
JB
20702 { ac_try='test -z "$ac_c_werror_flag"
20703 || test ! -s conftest.err'
bec39cab
AC
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try='test -s conftest.$ac_objext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
a3828db0
MK
20715
20716gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20717 break 5;
78434e59 20718else
bec39cab
AC
20719 echo "$as_me: failed program was:" >&5
20720sed 's/^/| /' conftest.$ac_ext >&5
20721
78434e59 20722fi
bec39cab 20723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20724 done
20725 done
20726 done
20727 done
20728done
20729# Provide a safe default value.
20730: ${gdb_cv_func_ptrace_args='int,int,long,long'}
20731
064ef605
DJ
20732fi
20733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
78434e59 20734fi
b4e70030
JB
20735echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20736echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
20737ac_save_IFS=$IFS; IFS=','
20738set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20739IFS=$ac_save_IFS
20740shift
bec39cab 20741
a3828db0
MK
20742cat >>confdefs.h <<_ACEOF
20743#define PTRACE_TYPE_ARG3 $3
20744_ACEOF
20745
20746if test -n "$5"; then
20747
20748cat >>confdefs.h <<_ACEOF
20749#define PTRACE_TYPE_ARG5 $5
bec39cab 20750_ACEOF
78434e59
MK
20751
20752fi
20753
a3828db0 20754if test "$cross_compiling" = no; then
b4e70030
JB
20755 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20756echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 20757if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20758 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
20759else
20760 if test "$cross_compiling" = yes; then
20761 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20762echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20763 { (exit 1); exit 1; }; }
bec39cab
AC
20764else
20765 cat >conftest.$ac_ext <<_ACEOF
20766/* confdefs.h. */
20767_ACEOF
20768cat confdefs.h >>conftest.$ac_ext
20769cat >>conftest.$ac_ext <<_ACEOF
20770/* end confdefs.h. */
b4e70030
JB
20771#if HAVE_UNISTD_H
20772# include <unistd.h>
20773#endif
20774
bec39cab
AC
20775int
20776main ()
20777{
a3828db0
MK
20778/* If this system has a BSD-style setpgrp which takes arguments,
20779 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20780 exit successfully. */
b4e70030 20781 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
20782 ;
20783 return 0;
20784}
20785_ACEOF
a3828db0
MK
20786rm -f conftest$ac_exeext
20787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20788 (eval $ac_link) 2>&5
bec39cab
AC
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 20791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793 (eval $ac_try) 2>&5
20794 ac_status=$?
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
a3828db0 20797 ac_cv_func_setpgrp_void=no
c906108c 20798else
a3828db0
MK
20799 echo "$as_me: program exited with status $ac_status" >&5
20800echo "$as_me: failed program was:" >&5
bec39cab
AC
20801sed 's/^/| /' conftest.$ac_ext >&5
20802
a3828db0
MK
20803( exit $ac_status )
20804ac_cv_func_setpgrp_void=yes
c906108c 20805fi
b4e70030 20806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20807fi
a3828db0 20808fi
b4e70030
JB
20809echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20810echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
20811if test $ac_cv_func_setpgrp_void = yes; then
20812
20813cat >>confdefs.h <<\_ACEOF
20814#define SETPGRP_VOID 1
bec39cab 20815_ACEOF
97bf5e38
MK
20816
20817fi
a3828db0
MK
20818
20819else
b4e70030
JB
20820 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20821echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 20822if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20823 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20824else
bec39cab
AC
20825 cat >conftest.$ac_ext <<_ACEOF
20826/* confdefs.h. */
20827_ACEOF
20828cat confdefs.h >>conftest.$ac_ext
20829cat >>conftest.$ac_ext <<_ACEOF
20830/* end confdefs.h. */
a3828db0
MK
20831
20832#include <unistd.h>
20833
bec39cab
AC
20834int
20835main ()
20836{
a3828db0
MK
20837
20838 if (setpgrp(1,1) == -1)
20839 exit (0);
20840 else
20841 exit (1);
20842
bec39cab
AC
20843 ;
20844 return 0;
20845}
20846_ACEOF
20847rm -f conftest.$ac_objext
20848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20849 (eval $ac_compile) 2>conftest.er1
20850 ac_status=$?
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
b4e70030
JB
20856 { ac_try='test -z "$ac_c_werror_flag"
20857 || test ! -s conftest.err'
bec39cab
AC
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20860 ac_status=$?
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; } &&
20863 { ac_try='test -s conftest.$ac_objext'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20866 ac_status=$?
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
a3828db0 20869 ac_cv_func_setpgrp_void=no
c906108c 20870else
bec39cab
AC
20871 echo "$as_me: failed program was:" >&5
20872sed 's/^/| /' conftest.$ac_ext >&5
20873
b4e70030 20874ac_cv_func_setpgrp_void=yes
c906108c 20875fi
bec39cab 20876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20877fi
b4e70030
JB
20878echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20879echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 20880if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 20881 cat >>confdefs.h <<\_ACEOF
a3828db0 20882#define SETPGRP_VOID 1
bec39cab 20883_ACEOF
c3f6f71d 20884
a3828db0 20885fi
c906108c
SS
20886fi
20887
a3828db0
MK
20888# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20889# since sigsetjmp might only be defined as a macro.
b4e70030
JB
20890echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20891echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 20892if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20894else
20895 cat >conftest.$ac_ext <<_ACEOF
20896/* confdefs.h. */
20897_ACEOF
20898cat confdefs.h >>conftest.$ac_ext
20899cat >>conftest.$ac_ext <<_ACEOF
20900/* end confdefs.h. */
a3828db0
MK
20901
20902#include <setjmp.h>
20903
bec39cab
AC
20904int
20905main ()
20906{
a3828db0 20907sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
20908 ;
20909 return 0;
20910}
20911_ACEOF
20912rm -f conftest.$ac_objext
20913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20914 (eval $ac_compile) 2>conftest.er1
20915 ac_status=$?
20916 grep -v '^ *+' conftest.er1 >conftest.err
20917 rm -f conftest.er1
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } &&
b4e70030
JB
20921 { ac_try='test -z "$ac_c_werror_flag"
20922 || test ! -s conftest.err'
bec39cab
AC
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; } &&
20928 { ac_try='test -s conftest.$ac_objext'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; }; then
a3828db0 20934 gdb_cv_func_sigsetjmp=yes
c906108c 20935else
bec39cab
AC
20936 echo "$as_me: failed program was:" >&5
20937sed 's/^/| /' conftest.$ac_ext >&5
20938
b4e70030 20939gdb_cv_func_sigsetjmp=no
c906108c 20940fi
bec39cab 20941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20942fi
b4e70030
JB
20943echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20944echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 20945if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 20946
a3828db0
MK
20947cat >>confdefs.h <<\_ACEOF
20948#define HAVE_SIGSETJMP 1
bec39cab 20949_ACEOF
c906108c 20950
97bf5e38 20951fi
c906108c 20952
a3828db0
MK
20953# Assume we'll default to using the included libiberty regex.
20954gdb_use_included_regex=yes
20955
20956# However, if the system regex is GNU regex, then default to *not*
20957# using the included regex.
b4e70030
JB
20958echo "$as_me:$LINENO: checking for GNU regex" >&5
20959echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 20960if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962else
20963 cat >conftest.$ac_ext <<_ACEOF
20964/* confdefs.h. */
20965_ACEOF
20966cat confdefs.h >>conftest.$ac_ext
20967cat >>conftest.$ac_ext <<_ACEOF
20968/* end confdefs.h. */
a3828db0 20969#include <gnu-versions.h>
bec39cab
AC
20970int
20971main ()
20972{
a3828db0
MK
20973#define REGEX_INTERFACE_VERSION 1
20974#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20975# error "Version mismatch"
20976#endif
bec39cab
AC
20977 ;
20978 return 0;
20979}
20980_ACEOF
20981rm -f conftest.$ac_objext
20982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20983 (eval $ac_compile) 2>conftest.er1
20984 ac_status=$?
20985 grep -v '^ *+' conftest.er1 >conftest.err
20986 rm -f conftest.er1
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } &&
b4e70030
JB
20990 { ac_try='test -z "$ac_c_werror_flag"
20991 || test ! -s conftest.err'
bec39cab
AC
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; } &&
20997 { ac_try='test -s conftest.$ac_objext'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; }; then
a3828db0 21003 gdb_cv_have_gnu_regex=yes
c906108c 21004else
bec39cab
AC
21005 echo "$as_me: failed program was:" >&5
21006sed 's/^/| /' conftest.$ac_ext >&5
21007
b4e70030 21008gdb_cv_have_gnu_regex=no
c906108c 21009fi
bec39cab 21010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21011fi
b4e70030
JB
21012echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
21013echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
21014if test $gdb_cv_have_gnu_regex = yes; then
21015 gdb_use_included_regex=no
21016fi
c906108c 21017
a3828db0 21018
b4e70030 21019# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 21020if test "${with_included_regex+set}" = set; then
b4e70030
JB
21021 withval="$with_included_regex"
21022 gdb_with_regex=$withval
a3828db0
MK
21023else
21024 gdb_with_regex=$gdb_use_included_regex
b4e70030 21025fi;
a3828db0
MK
21026if test "$gdb_with_regex" = yes; then
21027
21028cat >>confdefs.h <<\_ACEOF
21029#define USE_INCLUDED_REGEX 1
bec39cab 21030_ACEOF
c906108c 21031
97bf5e38 21032fi
c906108c 21033
5c45e068 21034# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
21035echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
21036echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 21037if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039else
21040 cat >conftest.$ac_ext <<_ACEOF
21041/* confdefs.h. */
21042_ACEOF
21043cat confdefs.h >>conftest.$ac_ext
21044cat >>conftest.$ac_ext <<_ACEOF
21045/* end confdefs.h. */
a3828db0
MK
21046#include <sys/param.h>
21047#include <sys/proc.h>
5c45e068
MK
21048
21049
bec39cab
AC
21050int
21051main ()
21052{
5c45e068
MK
21053static struct thread ac_aggr;
21054if (ac_aggr.td_pcb)
21055return 0;
bec39cab
AC
21056 ;
21057 return 0;
21058}
21059_ACEOF
21060rm -f conftest.$ac_objext
21061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21062 (eval $ac_compile) 2>conftest.er1
21063 ac_status=$?
21064 grep -v '^ *+' conftest.er1 >conftest.err
21065 rm -f conftest.er1
21066 cat conftest.err >&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } &&
b4e70030
JB
21069 { ac_try='test -z "$ac_c_werror_flag"
21070 || test ! -s conftest.err'
bec39cab
AC
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; } &&
21076 { ac_try='test -s conftest.$ac_objext'
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; }; then
5c45e068 21082 ac_cv_member_struct_thread_td_pcb=yes
c906108c 21083else
bec39cab
AC
21084 echo "$as_me: failed program was:" >&5
21085sed 's/^/| /' conftest.$ac_ext >&5
21086
b4e70030 21087cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
21088/* confdefs.h. */
21089_ACEOF
21090cat confdefs.h >>conftest.$ac_ext
21091cat >>conftest.$ac_ext <<_ACEOF
21092/* end confdefs.h. */
21093#include <sys/param.h>
21094#include <sys/proc.h>
21095
21096
21097int
21098main ()
21099{
21100static struct thread ac_aggr;
21101if (sizeof ac_aggr.td_pcb)
21102return 0;
21103 ;
21104 return 0;
21105}
21106_ACEOF
21107rm -f conftest.$ac_objext
21108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21109 (eval $ac_compile) 2>conftest.er1
21110 ac_status=$?
21111 grep -v '^ *+' conftest.er1 >conftest.err
21112 rm -f conftest.er1
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } &&
b4e70030
JB
21116 { ac_try='test -z "$ac_c_werror_flag"
21117 || test ! -s conftest.err'
5c45e068
MK
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; } &&
21123 { ac_try='test -s conftest.$ac_objext'
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 ac_cv_member_struct_thread_td_pcb=yes
21130else
21131 echo "$as_me: failed program was:" >&5
21132sed 's/^/| /' conftest.$ac_ext >&5
21133
b4e70030 21134ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
21135fi
21136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21137fi
bec39cab 21138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21139fi
b4e70030
JB
21140echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
21141echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 21142if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 21143
5c45e068 21144cat >>confdefs.h <<_ACEOF
a3828db0 21145#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 21146_ACEOF
c906108c 21147
5c45e068 21148
97bf5e38 21149fi
c906108c 21150
5c45e068 21151
a3828db0 21152# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
21153echo "$as_me:$LINENO: checking for struct lwp" >&5
21154echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 21155if test "${gdb_cv_struct_lwp+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. */
a3828db0
MK
21164#include <sys/param.h>
21165#include <sys/lwp.h>
bec39cab
AC
21166int
21167main ()
21168{
a3828db0 21169struct lwp l;
bec39cab
AC
21170 ;
21171 return 0;
21172}
21173_ACEOF
21174rm -f conftest.$ac_objext
21175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176 (eval $ac_compile) 2>conftest.er1
21177 ac_status=$?
21178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
b4e70030
JB
21183 { ac_try='test -z "$ac_c_werror_flag"
21184 || test ! -s conftest.err'
bec39cab
AC
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21187 ac_status=$?
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; } &&
21190 { ac_try='test -s conftest.$ac_objext'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
a3828db0 21196 gdb_cv_struct_lwp=yes
c906108c 21197else
bec39cab
AC
21198 echo "$as_me: failed program was:" >&5
21199sed 's/^/| /' conftest.$ac_ext >&5
21200
b4e70030 21201gdb_cv_struct_lwp=no
c906108c 21202fi
bec39cab 21203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21204fi
b4e70030
JB
21205echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
21206echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 21207if test $gdb_cv_struct_lwp = yes; then
c906108c 21208
a3828db0
MK
21209cat >>confdefs.h <<\_ACEOF
21210#define HAVE_STRUCT_LWP 1
bec39cab 21211_ACEOF
c906108c 21212
97bf5e38 21213fi
c906108c 21214
a3828db0 21215# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
21216echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
21217echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 21218if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21220else
21221 cat >conftest.$ac_ext <<_ACEOF
21222/* confdefs.h. */
21223_ACEOF
21224cat confdefs.h >>conftest.$ac_ext
21225cat >>conftest.$ac_ext <<_ACEOF
21226/* end confdefs.h. */
a3828db0
MK
21227#include <sys/types.h>
21228#include <machine/reg.h>
bec39cab
AC
21229int
21230main ()
21231{
a3828db0 21232struct reg r;
bec39cab
AC
21233 ;
21234 return 0;
21235}
21236_ACEOF
21237rm -f conftest.$ac_objext
21238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21239 (eval $ac_compile) 2>conftest.er1
21240 ac_status=$?
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } &&
b4e70030
JB
21246 { ac_try='test -z "$ac_c_werror_flag"
21247 || test ! -s conftest.err'
bec39cab
AC
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; } &&
21253 { ac_try='test -s conftest.$ac_objext'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
a3828db0 21259 gdb_cv_struct_reg=yes
27ca5dad 21260else
bec39cab
AC
21261 echo "$as_me: failed program was:" >&5
21262sed 's/^/| /' conftest.$ac_ext >&5
21263
b4e70030 21264gdb_cv_struct_reg=no
27ca5dad 21265fi
bec39cab 21266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 21267fi
b4e70030
JB
21268echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
21269echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 21270if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
21271
21272cat >>confdefs.h <<\_ACEOF
a3828db0 21273#define HAVE_STRUCT_REG 1
bec39cab 21274_ACEOF
27ca5dad
MC
21275
21276fi
97bf5e38 21277
a3828db0
MK
21278# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
21279# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
21280echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
21281echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 21282if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 21283 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21284else
bec39cab
AC
21285 cat >conftest.$ac_ext <<_ACEOF
21286/* confdefs.h. */
21287_ACEOF
21288cat confdefs.h >>conftest.$ac_ext
21289cat >>conftest.$ac_ext <<_ACEOF
21290/* end confdefs.h. */
a3828db0 21291#include <machine/reg.h>
5c45e068
MK
21292
21293int
21294main ()
21295{
21296static struct reg ac_aggr;
21297if (ac_aggr.r_fs)
21298return 0;
21299 ;
21300 return 0;
21301}
21302_ACEOF
21303rm -f conftest.$ac_objext
21304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305 (eval $ac_compile) 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
b4e70030
JB
21312 { ac_try='test -z "$ac_c_werror_flag"
21313 || test ! -s conftest.err'
5c45e068
MK
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; } &&
21319 { ac_try='test -s conftest.$ac_objext'
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; }; then
21325 ac_cv_member_struct_reg_r_fs=yes
21326else
21327 echo "$as_me: failed program was:" >&5
21328sed 's/^/| /' conftest.$ac_ext >&5
21329
b4e70030 21330cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
21331/* confdefs.h. */
21332_ACEOF
21333cat confdefs.h >>conftest.$ac_ext
21334cat >>conftest.$ac_ext <<_ACEOF
21335/* end confdefs.h. */
21336#include <machine/reg.h>
21337
bec39cab
AC
21338int
21339main ()
21340{
5c45e068
MK
21341static struct reg ac_aggr;
21342if (sizeof ac_aggr.r_fs)
21343return 0;
bec39cab
AC
21344 ;
21345 return 0;
21346}
21347_ACEOF
21348rm -f conftest.$ac_objext
21349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21350 (eval $ac_compile) 2>conftest.er1
21351 ac_status=$?
21352 grep -v '^ *+' conftest.er1 >conftest.err
21353 rm -f conftest.er1
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } &&
b4e70030
JB
21357 { ac_try='test -z "$ac_c_werror_flag"
21358 || test ! -s conftest.err'
bec39cab
AC
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; } &&
21364 { ac_try='test -s conftest.$ac_objext'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
5c45e068 21370 ac_cv_member_struct_reg_r_fs=yes
3862412b 21371else
bec39cab
AC
21372 echo "$as_me: failed program was:" >&5
21373sed 's/^/| /' conftest.$ac_ext >&5
21374
b4e70030 21375ac_cv_member_struct_reg_r_fs=no
3862412b 21376fi
bec39cab 21377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 21378fi
5c45e068
MK
21379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21380fi
b4e70030
JB
21381echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21382echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
21383if test $ac_cv_member_struct_reg_r_fs = yes; then
21384
21385cat >>confdefs.h <<_ACEOF
a3828db0 21386#define HAVE_STRUCT_REG_R_FS 1
bec39cab 21387_ACEOF
3862412b 21388
5c45e068 21389
97bf5e38 21390fi
b4e70030
JB
21391echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21392echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 21393if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 21394 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21395else
bec39cab
AC
21396 cat >conftest.$ac_ext <<_ACEOF
21397/* confdefs.h. */
21398_ACEOF
21399cat confdefs.h >>conftest.$ac_ext
21400cat >>conftest.$ac_ext <<_ACEOF
21401/* end confdefs.h. */
a3828db0 21402#include <machine/reg.h>
5c45e068 21403
bec39cab
AC
21404int
21405main ()
21406{
5c45e068
MK
21407static struct reg ac_aggr;
21408if (ac_aggr.r_gs)
21409return 0;
bec39cab
AC
21410 ;
21411 return 0;
21412}
21413_ACEOF
21414rm -f conftest.$ac_objext
21415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21416 (eval $ac_compile) 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
b4e70030
JB
21423 { ac_try='test -z "$ac_c_werror_flag"
21424 || test ! -s conftest.err'
bec39cab
AC
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
5c45e068 21436 ac_cv_member_struct_reg_r_gs=yes
3862412b 21437else
bec39cab
AC
21438 echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
b4e70030 21441cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
21442/* confdefs.h. */
21443_ACEOF
21444cat confdefs.h >>conftest.$ac_ext
21445cat >>conftest.$ac_ext <<_ACEOF
21446/* end confdefs.h. */
21447#include <machine/reg.h>
21448
21449int
21450main ()
21451{
21452static struct reg ac_aggr;
21453if (sizeof ac_aggr.r_gs)
21454return 0;
21455 ;
21456 return 0;
21457}
21458_ACEOF
21459rm -f conftest.$ac_objext
21460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21461 (eval $ac_compile) 2>conftest.er1
21462 ac_status=$?
21463 grep -v '^ *+' conftest.er1 >conftest.err
21464 rm -f conftest.er1
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } &&
b4e70030
JB
21468 { ac_try='test -z "$ac_c_werror_flag"
21469 || test ! -s conftest.err'
5c45e068
MK
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; } &&
21475 { ac_try='test -s conftest.$ac_objext'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }; then
21481 ac_cv_member_struct_reg_r_gs=yes
21482else
21483 echo "$as_me: failed program was:" >&5
21484sed 's/^/| /' conftest.$ac_ext >&5
21485
b4e70030 21486ac_cv_member_struct_reg_r_gs=no
3862412b 21487fi
bec39cab 21488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 21489fi
5c45e068
MK
21490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21491fi
b4e70030
JB
21492echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21493echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
21494if test $ac_cv_member_struct_reg_r_gs = yes; then
21495
21496cat >>confdefs.h <<_ACEOF
a3828db0 21497#define HAVE_STRUCT_REG_R_GS 1
bec39cab 21498_ACEOF
3862412b 21499
5c45e068 21500
97bf5e38 21501fi
3862412b 21502
5c45e068 21503
a3828db0 21504# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
21505echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21506echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 21507if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 21508 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 21509else
bec39cab
AC
21510 cat >conftest.$ac_ext <<_ACEOF
21511/* confdefs.h. */
21512_ACEOF
21513cat confdefs.h >>conftest.$ac_ext
21514cat >>conftest.$ac_ext <<_ACEOF
21515/* end confdefs.h. */
a3828db0 21516#include <sys/ptrace.h>
bec39cab
AC
21517int
21518main ()
21519{
a3828db0 21520PTRACE_GETREGS;
bec39cab
AC
21521 ;
21522 return 0;
21523}
21524_ACEOF
21525rm -f conftest.$ac_objext
21526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21527 (eval $ac_compile) 2>conftest.er1
21528 ac_status=$?
21529 grep -v '^ *+' conftest.er1 >conftest.err
21530 rm -f conftest.er1
21531 cat conftest.err >&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } &&
b4e70030
JB
21534 { ac_try='test -z "$ac_c_werror_flag"
21535 || test ! -s conftest.err'
bec39cab
AC
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; } &&
21541 { ac_try='test -s conftest.$ac_objext'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; }; then
a3828db0 21547 gdb_cv_have_ptrace_getregs=yes
451928c5 21548else
bec39cab
AC
21549 echo "$as_me: failed program was:" >&5
21550sed 's/^/| /' conftest.$ac_ext >&5
21551
b4e70030 21552gdb_cv_have_ptrace_getregs=no
451928c5 21553fi
bec39cab 21554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
21555fi
21556
b4e70030
JB
21557echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21558echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 21559if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
21560
21561cat >>confdefs.h <<\_ACEOF
a3828db0 21562#define HAVE_PTRACE_GETREGS 1
bec39cab 21563_ACEOF
451928c5 21564
97bf5e38 21565fi
451928c5 21566
a3828db0 21567# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
21568echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21569echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 21570if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 21571 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 21572else
bec39cab
AC
21573 cat >conftest.$ac_ext <<_ACEOF
21574/* confdefs.h. */
21575_ACEOF
21576cat confdefs.h >>conftest.$ac_ext
21577cat >>conftest.$ac_ext <<_ACEOF
21578/* end confdefs.h. */
a3828db0 21579#include <sys/ptrace.h>
bec39cab
AC
21580int
21581main ()
21582{
a3828db0 21583PTRACE_GETFPXREGS;
bec39cab
AC
21584 ;
21585 return 0;
21586}
21587_ACEOF
21588rm -f conftest.$ac_objext
21589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21590 (eval $ac_compile) 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
b4e70030
JB
21597 { ac_try='test -z "$ac_c_werror_flag"
21598 || test ! -s conftest.err'
bec39cab
AC
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21601 ac_status=$?
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; } &&
21604 { ac_try='test -s conftest.$ac_objext'
21605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606 (eval $ac_try) 2>&5
21607 ac_status=$?
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; }; then
a3828db0 21610 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 21611else
bec39cab
AC
21612 echo "$as_me: failed program was:" >&5
21613sed 's/^/| /' conftest.$ac_ext >&5
21614
b4e70030 21615gdb_cv_have_ptrace_getfpxregs=no
451928c5 21616fi
bec39cab 21617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
21618fi
21619
b4e70030
JB
21620echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21621echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 21622if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
21623
21624cat >>confdefs.h <<\_ACEOF
a3828db0 21625#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 21626_ACEOF
451928c5 21627
97bf5e38 21628fi
451928c5 21629
a3828db0 21630# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
21631echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21632echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 21633if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 21634 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21635else
bec39cab
AC
21636 cat >conftest.$ac_ext <<_ACEOF
21637/* confdefs.h. */
21638_ACEOF
21639cat confdefs.h >>conftest.$ac_ext
21640cat >>conftest.$ac_ext <<_ACEOF
21641/* end confdefs.h. */
a3828db0
MK
21642#include <sys/types.h>
21643#include <sys/ptrace.h>
bec39cab
AC
21644int
21645main ()
21646{
a3828db0 21647PT_GETDBREGS;
bec39cab
AC
21648 ;
21649 return 0;
21650}
21651_ACEOF
21652rm -f conftest.$ac_objext
21653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654 (eval $ac_compile) 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
b4e70030
JB
21661 { ac_try='test -z "$ac_c_werror_flag"
21662 || test ! -s conftest.err'
bec39cab
AC
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
a3828db0 21674 gdb_cv_have_pt_getdbregs=yes
3862412b 21675else
bec39cab
AC
21676 echo "$as_me: failed program was:" >&5
21677sed 's/^/| /' conftest.$ac_ext >&5
21678
b4e70030 21679gdb_cv_have_pt_getdbregs=no
3862412b 21680fi
bec39cab 21681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
21682fi
21683
b4e70030
JB
21684echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21685echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 21686if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
21687
21688cat >>confdefs.h <<\_ACEOF
a3828db0 21689#define HAVE_PT_GETDBREGS 1
bec39cab 21690_ACEOF
3862412b 21691
97bf5e38 21692fi
3862412b 21693
a3828db0 21694# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
21695echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21696echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 21697if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 21698 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21699else
bec39cab
AC
21700 cat >conftest.$ac_ext <<_ACEOF
21701/* confdefs.h. */
21702_ACEOF
21703cat confdefs.h >>conftest.$ac_ext
21704cat >>conftest.$ac_ext <<_ACEOF
21705/* end confdefs.h. */
a3828db0
MK
21706#include <sys/types.h>
21707#include <sys/ptrace.h>
bec39cab
AC
21708int
21709main ()
21710{
a3828db0 21711PT_GETXMMREGS;
bec39cab
AC
21712 ;
21713 return 0;
21714}
21715_ACEOF
21716rm -f conftest.$ac_objext
21717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718 (eval $ac_compile) 2>conftest.er1
21719 ac_status=$?
21720 grep -v '^ *+' conftest.er1 >conftest.err
21721 rm -f conftest.er1
21722 cat conftest.err >&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } &&
b4e70030
JB
21725 { ac_try='test -z "$ac_c_werror_flag"
21726 || test ! -s conftest.err'
bec39cab
AC
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; } &&
21732 { ac_try='test -s conftest.$ac_objext'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
a3828db0 21738 gdb_cv_have_pt_getxmmregs=yes
3862412b 21739else
bec39cab
AC
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
b4e70030 21743gdb_cv_have_pt_getxmmregs=no
3862412b 21744fi
bec39cab 21745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
21746fi
21747
b4e70030
JB
21748echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21749echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 21750if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
21751
21752cat >>confdefs.h <<\_ACEOF
a3828db0 21753#define HAVE_PT_GETXMMREGS 1
bec39cab 21754_ACEOF
3862412b 21755
97bf5e38 21756fi
3862412b 21757
eb368090 21758# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
21759
21760if test "${target}" = "${host}"; then
21761 case "${host}" in
97bf5e38 21762 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
21763
21764cat >>confdefs.h <<\_ACEOF
97bf5e38 21765#define NEW_PROC_API 1
bec39cab 21766_ACEOF
97bf5e38
MK
21767
21768 ;;
c162e8c9 21769 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f
SE
21770
21771cat >>confdefs.h <<\_ACEOF
97bf5e38 21772#define NEW_PROC_API 1
bec39cab 21773_ACEOF
c960c18f
AC
21774
21775 ;;
21776 mips-sgi-irix5*)
21777 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
21778
21779cat >>confdefs.h <<\_ACEOF
c960c18f 21780#define _KMEMUSER 1
bec39cab 21781_ACEOF
97bf5e38
MK
21782
21783 ;;
21784 esac
21785fi
21786
21787if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
21788 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21789echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21790 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21792else
21793 cat >conftest.$ac_ext <<_ACEOF
21794/* confdefs.h. */
21795_ACEOF
21796cat confdefs.h >>conftest.$ac_ext
21797cat >>conftest.$ac_ext <<_ACEOF
21798/* end confdefs.h. */
596c9d4b
KB
21799
21800#define _SYSCALL32
21801#include <sys/procfs.h>
bec39cab
AC
21802int
21803main ()
21804{
97bf5e38 21805pstatus_t avar
bec39cab
AC
21806 ;
21807 return 0;
21808}
21809_ACEOF
21810rm -f conftest.$ac_objext
21811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21812 (eval $ac_compile) 2>conftest.er1
21813 ac_status=$?
21814 grep -v '^ *+' conftest.er1 >conftest.err
21815 rm -f conftest.er1
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } &&
b4e70030
JB
21819 { ac_try='test -z "$ac_c_werror_flag"
21820 || test ! -s conftest.err'
bec39cab
AC
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; } &&
21826 { ac_try='test -s conftest.$ac_objext'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
97bf5e38 21832 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 21833else
bec39cab
AC
21834 echo "$as_me: failed program was:" >&5
21835sed 's/^/| /' conftest.$ac_ext >&5
21836
b4e70030 21837bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 21838
596c9d4b 21839fi
bec39cab 21840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21841fi
21842
97bf5e38 21843 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
21844
21845cat >>confdefs.h <<\_ACEOF
97bf5e38 21846#define HAVE_PSTATUS_T 1
bec39cab 21847_ACEOF
596c9d4b
KB
21848
21849 fi
b4e70030
JB
21850 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21851echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 21852
b4e70030
JB
21853 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21854echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21855 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21857else
bec39cab
AC
21858 cat >conftest.$ac_ext <<_ACEOF
21859/* confdefs.h. */
21860_ACEOF
21861cat confdefs.h >>conftest.$ac_ext
21862cat >>conftest.$ac_ext <<_ACEOF
21863/* end confdefs.h. */
596c9d4b
KB
21864
21865#define _SYSCALL32
21866#include <sys/procfs.h>
bec39cab
AC
21867int
21868main ()
21869{
97bf5e38 21870prrun_t avar
bec39cab
AC
21871 ;
21872 return 0;
21873}
21874_ACEOF
21875rm -f conftest.$ac_objext
21876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21877 (eval $ac_compile) 2>conftest.er1
21878 ac_status=$?
21879 grep -v '^ *+' conftest.er1 >conftest.err
21880 rm -f conftest.er1
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
b4e70030
JB
21884 { ac_try='test -z "$ac_c_werror_flag"
21885 || test ! -s conftest.err'
bec39cab
AC
21886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21887 (eval $ac_try) 2>&5
21888 ac_status=$?
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); }; } &&
21891 { ac_try='test -s conftest.$ac_objext'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; }; then
97bf5e38 21897 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 21898else
bec39cab
AC
21899 echo "$as_me: failed program was:" >&5
21900sed 's/^/| /' conftest.$ac_ext >&5
21901
b4e70030 21902bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 21903
596c9d4b 21904fi
bec39cab 21905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21906fi
21907
97bf5e38 21908 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
21909
21910cat >>confdefs.h <<\_ACEOF
97bf5e38 21911#define HAVE_PRRUN_T 1
bec39cab 21912_ACEOF
596c9d4b
KB
21913
21914 fi
b4e70030
JB
21915 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21916echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 21917
b4e70030
JB
21918 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21919echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21920 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21922else
bec39cab
AC
21923 cat >conftest.$ac_ext <<_ACEOF
21924/* confdefs.h. */
21925_ACEOF
21926cat confdefs.h >>conftest.$ac_ext
21927cat >>conftest.$ac_ext <<_ACEOF
21928/* end confdefs.h. */
596c9d4b
KB
21929
21930#define _SYSCALL32
21931#include <sys/procfs.h>
bec39cab
AC
21932int
21933main ()
21934{
97bf5e38 21935gregset_t avar
bec39cab
AC
21936 ;
21937 return 0;
21938}
21939_ACEOF
21940rm -f conftest.$ac_objext
21941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21942 (eval $ac_compile) 2>conftest.er1
21943 ac_status=$?
21944 grep -v '^ *+' conftest.er1 >conftest.err
21945 rm -f conftest.er1
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } &&
b4e70030
JB
21949 { ac_try='test -z "$ac_c_werror_flag"
21950 || test ! -s conftest.err'
bec39cab
AC
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; } &&
21956 { ac_try='test -s conftest.$ac_objext'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21959 ac_status=$?
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; }; then
97bf5e38 21962 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 21963else
bec39cab
AC
21964 echo "$as_me: failed program was:" >&5
21965sed 's/^/| /' conftest.$ac_ext >&5
21966
b4e70030 21967bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 21968
596c9d4b 21969fi
bec39cab 21970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21971fi
21972
97bf5e38 21973 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
21974
21975cat >>confdefs.h <<\_ACEOF
97bf5e38 21976#define HAVE_GREGSET_T 1
bec39cab 21977_ACEOF
596c9d4b
KB
21978
21979 fi
b4e70030
JB
21980 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21981echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 21982
b4e70030
JB
21983 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21984echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21985 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 21987else
bec39cab
AC
21988 cat >conftest.$ac_ext <<_ACEOF
21989/* confdefs.h. */
21990_ACEOF
21991cat confdefs.h >>conftest.$ac_ext
21992cat >>conftest.$ac_ext <<_ACEOF
21993/* end confdefs.h. */
97bf5e38
MK
21994
21995#define _SYSCALL32
d84dd0c5 21996#include <sys/procfs.h>
bec39cab
AC
21997int
21998main ()
21999{
97bf5e38 22000fpregset_t avar
bec39cab
AC
22001 ;
22002 return 0;
22003}
22004_ACEOF
22005rm -f conftest.$ac_objext
22006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22007 (eval $ac_compile) 2>conftest.er1
22008 ac_status=$?
22009 grep -v '^ *+' conftest.er1 >conftest.err
22010 rm -f conftest.er1
22011 cat conftest.err >&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } &&
b4e70030
JB
22014 { ac_try='test -z "$ac_c_werror_flag"
22015 || test ! -s conftest.err'
bec39cab
AC
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; } &&
22021 { ac_try='test -s conftest.$ac_objext'
22022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22024 ac_status=$?
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; }; then
97bf5e38 22027 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 22028else
bec39cab
AC
22029 echo "$as_me: failed program was:" >&5
22030sed 's/^/| /' conftest.$ac_ext >&5
22031
b4e70030 22032bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 22033
d84dd0c5 22034fi
bec39cab 22035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
22036fi
22037
97bf5e38 22038 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
22039
22040cat >>confdefs.h <<\_ACEOF
97bf5e38 22041#define HAVE_FPREGSET_T 1
bec39cab 22042_ACEOF
d84dd0c5 22043
97bf5e38 22044 fi
b4e70030
JB
22045 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
22046echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 22047
b4e70030
JB
22048 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
22049echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22050 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22052else
bec39cab
AC
22053 cat >conftest.$ac_ext <<_ACEOF
22054/* confdefs.h. */
22055_ACEOF
22056cat confdefs.h >>conftest.$ac_ext
22057cat >>conftest.$ac_ext <<_ACEOF
22058/* end confdefs.h. */
c906108c 22059
97bf5e38
MK
22060#define _SYSCALL32
22061#include <sys/procfs.h>
bec39cab
AC
22062int
22063main ()
22064{
97bf5e38 22065prgregset_t avar
bec39cab
AC
22066 ;
22067 return 0;
22068}
22069_ACEOF
22070rm -f conftest.$ac_objext
22071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22072 (eval $ac_compile) 2>conftest.er1
22073 ac_status=$?
22074 grep -v '^ *+' conftest.er1 >conftest.err
22075 rm -f conftest.er1
22076 cat conftest.err >&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } &&
b4e70030
JB
22079 { ac_try='test -z "$ac_c_werror_flag"
22080 || test ! -s conftest.err'
bec39cab
AC
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22083 ac_status=$?
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; } &&
22086 { ac_try='test -s conftest.$ac_objext'
22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22089 ac_status=$?
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; }; then
97bf5e38 22092 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 22093else
bec39cab
AC
22094 echo "$as_me: failed program was:" >&5
22095sed 's/^/| /' conftest.$ac_ext >&5
22096
b4e70030 22097bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 22098
c906108c 22099fi
bec39cab 22100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22101fi
22102
97bf5e38 22103 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
22104
22105cat >>confdefs.h <<\_ACEOF
97bf5e38 22106#define HAVE_PRGREGSET_T 1
bec39cab 22107_ACEOF
c906108c 22108
97bf5e38 22109 fi
b4e70030
JB
22110 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
22111echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 22112
b4e70030
JB
22113 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
22114echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22115 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 22117else
bec39cab
AC
22118 cat >conftest.$ac_ext <<_ACEOF
22119/* confdefs.h. */
22120_ACEOF
22121cat confdefs.h >>conftest.$ac_ext
22122cat >>conftest.$ac_ext <<_ACEOF
22123/* end confdefs.h. */
97bf5e38
MK
22124
22125#define _SYSCALL32
22126#include <sys/procfs.h>
bec39cab
AC
22127int
22128main ()
22129{
97bf5e38 22130prfpregset_t avar
bec39cab
AC
22131 ;
22132 return 0;
22133}
22134_ACEOF
22135rm -f conftest.$ac_objext
22136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22137 (eval $ac_compile) 2>conftest.er1
22138 ac_status=$?
22139 grep -v '^ *+' conftest.er1 >conftest.err
22140 rm -f conftest.er1
22141 cat conftest.err >&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } &&
b4e70030
JB
22144 { ac_try='test -z "$ac_c_werror_flag"
22145 || test ! -s conftest.err'
bec39cab
AC
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22148 ac_status=$?
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; } &&
22151 { ac_try='test -s conftest.$ac_objext'
22152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22153 (eval $ac_try) 2>&5
22154 ac_status=$?
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); }; }; then
97bf5e38 22157 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 22158else
bec39cab
AC
22159 echo "$as_me: failed program was:" >&5
22160sed 's/^/| /' conftest.$ac_ext >&5
22161
b4e70030 22162bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 22163
d45fe813 22164fi
bec39cab 22165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
22166fi
22167
97bf5e38 22168 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
22169
22170cat >>confdefs.h <<\_ACEOF
97bf5e38 22171#define HAVE_PRFPREGSET_T 1
bec39cab 22172_ACEOF
d45fe813 22173
97bf5e38 22174 fi
b4e70030
JB
22175 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
22176echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 22177
b4e70030
JB
22178 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
22179echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22180 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
22181 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 22182else
bec39cab
AC
22183 cat >conftest.$ac_ext <<_ACEOF
22184/* confdefs.h. */
22185_ACEOF
22186cat confdefs.h >>conftest.$ac_ext
22187cat >>conftest.$ac_ext <<_ACEOF
22188/* end confdefs.h. */
97bf5e38
MK
22189
22190#define _SYSCALL32
22191#include <sys/procfs.h>
bec39cab
AC
22192int
22193main ()
22194{
97bf5e38 22195prgregset32_t avar
bec39cab
AC
22196 ;
22197 return 0;
22198}
22199_ACEOF
22200rm -f conftest.$ac_objext
22201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>conftest.er1
22203 ac_status=$?
22204 grep -v '^ *+' conftest.er1 >conftest.err
22205 rm -f conftest.er1
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
b4e70030
JB
22209 { ac_try='test -z "$ac_c_werror_flag"
22210 || test ! -s conftest.err'
bec39cab
AC
22211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212 (eval $ac_try) 2>&5
22213 ac_status=$?
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try='test -s conftest.$ac_objext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
97bf5e38 22222 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 22223else
bec39cab
AC
22224 echo "$as_me: failed program was:" >&5
22225sed 's/^/| /' conftest.$ac_ext >&5
22226
b4e70030 22227bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 22228
d45fe813 22229fi
bec39cab 22230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
22231fi
22232
97bf5e38 22233 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
22234
22235cat >>confdefs.h <<\_ACEOF
97bf5e38 22236#define HAVE_PRGREGSET32_T 1
bec39cab 22237_ACEOF
d45fe813 22238
97bf5e38 22239 fi
b4e70030
JB
22240 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
22241echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 22242
b4e70030
JB
22243 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
22244echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22245 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 22247else
bec39cab
AC
22248 cat >conftest.$ac_ext <<_ACEOF
22249/* confdefs.h. */
22250_ACEOF
22251cat confdefs.h >>conftest.$ac_ext
22252cat >>conftest.$ac_ext <<_ACEOF
22253/* end confdefs.h. */
97bf5e38
MK
22254
22255#define _SYSCALL32
22256#include <sys/procfs.h>
bec39cab
AC
22257int
22258main ()
22259{
97bf5e38 22260prfpregset32_t avar
bec39cab
AC
22261 ;
22262 return 0;
22263}
22264_ACEOF
22265rm -f conftest.$ac_objext
22266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22267 (eval $ac_compile) 2>conftest.er1
22268 ac_status=$?
22269 grep -v '^ *+' conftest.er1 >conftest.err
22270 rm -f conftest.er1
22271 cat conftest.err >&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); } &&
b4e70030
JB
22274 { ac_try='test -z "$ac_c_werror_flag"
22275 || test ! -s conftest.err'
bec39cab
AC
22276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277 (eval $ac_try) 2>&5
22278 ac_status=$?
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; } &&
22281 { ac_try='test -s conftest.$ac_objext'
22282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
22284 ac_status=$?
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; }; then
97bf5e38 22287 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 22288else
bec39cab
AC
22289 echo "$as_me: failed program was:" >&5
22290sed 's/^/| /' conftest.$ac_ext >&5
22291
b4e70030 22292bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 22293
d45fe813 22294fi
bec39cab 22295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
22296fi
22297
97bf5e38 22298 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
22299
22300cat >>confdefs.h <<\_ACEOF
97bf5e38 22301#define HAVE_PRFPREGSET32_T 1
bec39cab 22302_ACEOF
d45fe813 22303
97bf5e38 22304 fi
b4e70030
JB
22305 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
22306echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 22307
b4e70030
JB
22308 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
22309echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22310 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 22312else
bec39cab
AC
22313 cat >conftest.$ac_ext <<_ACEOF
22314/* confdefs.h. */
22315_ACEOF
22316cat confdefs.h >>conftest.$ac_ext
22317cat >>conftest.$ac_ext <<_ACEOF
22318/* end confdefs.h. */
97bf5e38 22319
d45fe813 22320#define _SYSCALL32
97bf5e38 22321#include <sys/procfs.h>
bec39cab
AC
22322int
22323main ()
22324{
97bf5e38 22325lwpid_t avar
bec39cab
AC
22326 ;
22327 return 0;
22328}
22329_ACEOF
22330rm -f conftest.$ac_objext
22331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22332 (eval $ac_compile) 2>conftest.er1
22333 ac_status=$?
22334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } &&
b4e70030
JB
22339 { ac_try='test -z "$ac_c_werror_flag"
22340 || test ! -s conftest.err'
bec39cab
AC
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22343 ac_status=$?
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; } &&
22346 { ac_try='test -s conftest.$ac_objext'
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
97bf5e38 22352 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 22353else
bec39cab
AC
22354 echo "$as_me: failed program was:" >&5
22355sed 's/^/| /' conftest.$ac_ext >&5
22356
b4e70030 22357bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 22358
d45fe813 22359fi
bec39cab 22360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
22361fi
22362
97bf5e38 22363 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
22364
22365cat >>confdefs.h <<\_ACEOF
97bf5e38 22366#define HAVE_LWPID_T 1
bec39cab 22367_ACEOF
d45fe813 22368
97bf5e38 22369 fi
b4e70030
JB
22370 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22371echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 22372
b4e70030
JB
22373 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22374echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22375 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22377else
bec39cab
AC
22378 cat >conftest.$ac_ext <<_ACEOF
22379/* confdefs.h. */
22380_ACEOF
22381cat confdefs.h >>conftest.$ac_ext
22382cat >>conftest.$ac_ext <<_ACEOF
22383/* end confdefs.h. */
c906108c 22384
97bf5e38
MK
22385#define _SYSCALL32
22386#include <sys/procfs.h>
bec39cab
AC
22387int
22388main ()
22389{
97bf5e38 22390psaddr_t avar
bec39cab
AC
22391 ;
22392 return 0;
22393}
22394_ACEOF
22395rm -f conftest.$ac_objext
22396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22397 (eval $ac_compile) 2>conftest.er1
22398 ac_status=$?
22399 grep -v '^ *+' conftest.er1 >conftest.err
22400 rm -f conftest.er1
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } &&
b4e70030
JB
22404 { ac_try='test -z "$ac_c_werror_flag"
22405 || test ! -s conftest.err'
bec39cab
AC
22406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22408 ac_status=$?
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }; } &&
22411 { ac_try='test -s conftest.$ac_objext'
22412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22413 (eval $ac_try) 2>&5
22414 ac_status=$?
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; }; then
97bf5e38 22417 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 22418else
bec39cab
AC
22419 echo "$as_me: failed program was:" >&5
22420sed 's/^/| /' conftest.$ac_ext >&5
22421
b4e70030 22422bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 22423
c906108c 22424fi
bec39cab 22425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22426fi
22427
97bf5e38 22428 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
22429
22430cat >>confdefs.h <<\_ACEOF
97bf5e38 22431#define HAVE_PSADDR_T 1
bec39cab 22432_ACEOF
c906108c 22433
97bf5e38 22434 fi
b4e70030
JB
22435 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22436echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 22437
b4e70030
JB
22438 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22439echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22440 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22442else
bec39cab
AC
22443 cat >conftest.$ac_ext <<_ACEOF
22444/* confdefs.h. */
22445_ACEOF
22446cat confdefs.h >>conftest.$ac_ext
22447cat >>conftest.$ac_ext <<_ACEOF
22448/* end confdefs.h. */
c906108c 22449
97bf5e38
MK
22450#define _SYSCALL32
22451#include <sys/procfs.h>
bec39cab
AC
22452int
22453main ()
22454{
97bf5e38 22455prsysent_t avar
bec39cab
AC
22456 ;
22457 return 0;
22458}
22459_ACEOF
22460rm -f conftest.$ac_objext
22461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22462 (eval $ac_compile) 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } &&
b4e70030
JB
22469 { ac_try='test -z "$ac_c_werror_flag"
22470 || test ! -s conftest.err'
bec39cab
AC
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; } &&
22476 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
97bf5e38 22482 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 22483else
bec39cab
AC
22484 echo "$as_me: failed program was:" >&5
22485sed 's/^/| /' conftest.$ac_ext >&5
22486
b4e70030 22487bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 22488
c906108c 22489fi
bec39cab 22490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22491fi
22492
97bf5e38 22493 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
22494
22495cat >>confdefs.h <<\_ACEOF
97bf5e38 22496#define HAVE_PRSYSENT_T 1
bec39cab 22497_ACEOF
c906108c 22498
97bf5e38 22499 fi
b4e70030
JB
22500 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22501echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 22502
b4e70030
JB
22503 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22504echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22505 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22507else
bec39cab
AC
22508 cat >conftest.$ac_ext <<_ACEOF
22509/* confdefs.h. */
22510_ACEOF
22511cat confdefs.h >>conftest.$ac_ext
22512cat >>conftest.$ac_ext <<_ACEOF
22513/* end confdefs.h. */
c906108c 22514
97bf5e38
MK
22515#define _SYSCALL32
22516#include <sys/procfs.h>
bec39cab
AC
22517int
22518main ()
22519{
97bf5e38 22520pr_sigset_t avar
bec39cab
AC
22521 ;
22522 return 0;
22523}
22524_ACEOF
22525rm -f conftest.$ac_objext
22526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22527 (eval $ac_compile) 2>conftest.er1
22528 ac_status=$?
22529 grep -v '^ *+' conftest.er1 >conftest.err
22530 rm -f conftest.er1
22531 cat conftest.err >&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); } &&
b4e70030
JB
22534 { ac_try='test -z "$ac_c_werror_flag"
22535 || test ! -s conftest.err'
bec39cab
AC
22536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22538 ac_status=$?
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; } &&
22541 { ac_try='test -s conftest.$ac_objext'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22544 ac_status=$?
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; }; then
97bf5e38 22547 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 22548else
bec39cab
AC
22549 echo "$as_me: failed program was:" >&5
22550sed 's/^/| /' conftest.$ac_ext >&5
22551
b4e70030 22552bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 22553
c906108c 22554fi
bec39cab 22555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22556fi
22557
97bf5e38 22558 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
22559
22560cat >>confdefs.h <<\_ACEOF
97bf5e38 22561#define HAVE_PR_SIGSET_T 1
bec39cab 22562_ACEOF
c906108c 22563
97bf5e38 22564 fi
b4e70030
JB
22565 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22566echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 22567
b4e70030
JB
22568 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22569echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22570 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22572else
bec39cab
AC
22573 cat >conftest.$ac_ext <<_ACEOF
22574/* confdefs.h. */
22575_ACEOF
22576cat confdefs.h >>conftest.$ac_ext
22577cat >>conftest.$ac_ext <<_ACEOF
22578/* end confdefs.h. */
c906108c 22579
97bf5e38
MK
22580#define _SYSCALL32
22581#include <sys/procfs.h>
bec39cab
AC
22582int
22583main ()
22584{
97bf5e38 22585pr_sigaction64_t avar
bec39cab
AC
22586 ;
22587 return 0;
22588}
22589_ACEOF
22590rm -f conftest.$ac_objext
22591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22592 (eval $ac_compile) 2>conftest.er1
22593 ac_status=$?
22594 grep -v '^ *+' conftest.er1 >conftest.err
22595 rm -f conftest.er1
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } &&
b4e70030
JB
22599 { ac_try='test -z "$ac_c_werror_flag"
22600 || test ! -s conftest.err'
bec39cab
AC
22601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602 (eval $ac_try) 2>&5
22603 ac_status=$?
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); }; } &&
22606 { ac_try='test -s conftest.$ac_objext'
22607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608 (eval $ac_try) 2>&5
22609 ac_status=$?
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); }; }; then
97bf5e38 22612 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 22613else
bec39cab
AC
22614 echo "$as_me: failed program was:" >&5
22615sed 's/^/| /' conftest.$ac_ext >&5
22616
b4e70030 22617bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 22618
c906108c 22619fi
bec39cab 22620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22621fi
22622
97bf5e38 22623 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
22624
22625cat >>confdefs.h <<\_ACEOF
97bf5e38 22626#define HAVE_PR_SIGACTION64_T 1
bec39cab 22627_ACEOF
c906108c 22628
97bf5e38 22629 fi
b4e70030
JB
22630 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22631echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 22632
b4e70030
JB
22633 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22634echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22635 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22636 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22637else
bec39cab
AC
22638 cat >conftest.$ac_ext <<_ACEOF
22639/* confdefs.h. */
22640_ACEOF
22641cat confdefs.h >>conftest.$ac_ext
22642cat >>conftest.$ac_ext <<_ACEOF
22643/* end confdefs.h. */
97bf5e38
MK
22644
22645#define _SYSCALL32
22646#include <sys/procfs.h>
bec39cab
AC
22647int
22648main ()
22649{
97bf5e38 22650pr_siginfo64_t avar
bec39cab
AC
22651 ;
22652 return 0;
22653}
22654_ACEOF
22655rm -f conftest.$ac_objext
22656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22657 (eval $ac_compile) 2>conftest.er1
22658 ac_status=$?
22659 grep -v '^ *+' conftest.er1 >conftest.err
22660 rm -f conftest.er1
22661 cat conftest.err >&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } &&
b4e70030
JB
22664 { ac_try='test -z "$ac_c_werror_flag"
22665 || test ! -s conftest.err'
bec39cab
AC
22666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667 (eval $ac_try) 2>&5
22668 ac_status=$?
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); }; } &&
22671 { ac_try='test -s conftest.$ac_objext'
22672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22674 ac_status=$?
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; }; then
97bf5e38
MK
22677 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22678else
bec39cab
AC
22679 echo "$as_me: failed program was:" >&5
22680sed 's/^/| /' conftest.$ac_ext >&5
22681
b4e70030 22682bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 22683
97bf5e38 22684fi
bec39cab 22685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22686fi
c906108c 22687
97bf5e38 22688 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
22689
22690cat >>confdefs.h <<\_ACEOF
97bf5e38 22691#define HAVE_PR_SIGINFO64_T 1
bec39cab 22692_ACEOF
c906108c 22693
97bf5e38 22694 fi
b4e70030
JB
22695 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22696echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
22697
22698
97bf5e38
MK
22699
22700
22701
97bf5e38 22702 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
22703 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22704echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
22705 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22707else
22708 if test "$cross_compiling" = yes; then
97bf5e38 22709 gdb_cv_prfpregset_t_broken=yes
c906108c 22710else
bec39cab
AC
22711 cat >conftest.$ac_ext <<_ACEOF
22712/* confdefs.h. */
22713_ACEOF
22714cat confdefs.h >>conftest.$ac_ext
22715cat >>conftest.$ac_ext <<_ACEOF
22716/* end confdefs.h. */
97bf5e38
MK
22717#include <sys/procfs.h>
22718 int main ()
22719 {
22720 if (sizeof (prfpregset_t) == sizeof (void *))
22721 return 1;
22722 return 0;
22723 }
bec39cab
AC
22724_ACEOF
22725rm -f conftest$ac_exeext
22726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727 (eval $ac_link) 2>&5
22728 ac_status=$?
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22732 (eval $ac_try) 2>&5
22733 ac_status=$?
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); }; }; then
97bf5e38 22736 gdb_cv_prfpregset_t_broken=no
c906108c 22737else
bec39cab
AC
22738 echo "$as_me: program exited with status $ac_status" >&5
22739echo "$as_me: failed program was:" >&5
22740sed 's/^/| /' conftest.$ac_ext >&5
22741
22742( exit $ac_status )
22743gdb_cv_prfpregset_t_broken=yes
c906108c 22744fi
b4e70030 22745rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 22746fi
c906108c
SS
22747fi
22748
b4e70030
JB
22749 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22750echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 22751 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
22752
22753cat >>confdefs.h <<\_ACEOF
97bf5e38 22754#define PRFPREGSET_T_BROKEN 1
bec39cab 22755_ACEOF
c906108c 22756
97bf5e38
MK
22757 fi
22758 fi
c906108c 22759
bec39cab 22760
b4e70030
JB
22761 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22762echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22763 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22765else
bec39cab
AC
22766 cat >conftest.$ac_ext <<_ACEOF
22767/* confdefs.h. */
22768_ACEOF
22769cat confdefs.h >>conftest.$ac_ext
22770cat >>conftest.$ac_ext <<_ACEOF
22771/* end confdefs.h. */
97bf5e38
MK
22772#include <unistd.h>
22773#include <sys/types.h>
22774#include <sys/procfs.h>
22775
bec39cab
AC
22776int
22777main ()
22778{
97bf5e38
MK
22779
22780 int dummy;;
22781 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
22782
22783 ;
22784 return 0;
22785}
22786_ACEOF
22787rm -f conftest.$ac_objext
22788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22789 (eval $ac_compile) 2>conftest.er1
22790 ac_status=$?
22791 grep -v '^ *+' conftest.er1 >conftest.err
22792 rm -f conftest.er1
22793 cat conftest.err >&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } &&
b4e70030
JB
22796 { ac_try='test -z "$ac_c_werror_flag"
22797 || test ! -s conftest.err'
bec39cab
AC
22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799 (eval $ac_try) 2>&5
22800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; } &&
22803 { ac_try='test -s conftest.$ac_objext'
22804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805 (eval $ac_try) 2>&5
22806 ac_status=$?
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); }; }; then
97bf5e38 22809 gdb_cv_have_procfs_piocset=yes
c906108c 22810else
bec39cab
AC
22811 echo "$as_me: failed program was:" >&5
22812sed 's/^/| /' conftest.$ac_ext >&5
22813
b4e70030 22814gdb_cv_have_procfs_piocset=no
c906108c 22815fi
bec39cab 22816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22817fi
97bf5e38 22818
b4e70030
JB
22819 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22820echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 22821 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
22822
22823cat >>confdefs.h <<\_ACEOF
97bf5e38 22824#define HAVE_PROCFS_PIOCSET 1
bec39cab 22825_ACEOF
97bf5e38
MK
22826
22827 fi
c906108c 22828fi
c906108c 22829
97bf5e38 22830if test ${host} = ${target} ; then
bec39cab 22831
b4e70030
JB
22832 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22833echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
22834 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22836else
22837 cat >conftest.$ac_ext <<_ACEOF
22838/* confdefs.h. */
22839_ACEOF
22840cat confdefs.h >>conftest.$ac_ext
22841cat >>conftest.$ac_ext <<_ACEOF
22842/* end confdefs.h. */
97bf5e38 22843#include <link.h>
bec39cab
AC
22844int
22845main ()
22846{
97bf5e38 22847struct link_map lm; (void) lm.l_addr;
bec39cab
AC
22848 ;
22849 return 0;
22850}
22851_ACEOF
22852rm -f conftest.$ac_objext
22853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22854 (eval $ac_compile) 2>conftest.er1
22855 ac_status=$?
22856 grep -v '^ *+' conftest.er1 >conftest.err
22857 rm -f conftest.er1
22858 cat conftest.err >&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); } &&
b4e70030
JB
22861 { ac_try='test -z "$ac_c_werror_flag"
22862 || test ! -s conftest.err'
bec39cab
AC
22863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864 (eval $ac_try) 2>&5
22865 ac_status=$?
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; } &&
22868 { ac_try='test -s conftest.$ac_objext'
22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 (eval $ac_try) 2>&5
22871 ac_status=$?
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); }; }; then
97bf5e38 22874 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 22875else
bec39cab
AC
22876 echo "$as_me: failed program was:" >&5
22877sed 's/^/| /' conftest.$ac_ext >&5
22878
b4e70030 22879gdb_cv_have_struct_link_map_with_l_members=no
c906108c 22880fi
bec39cab 22881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22882fi
22883
b4e70030
JB
22884 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22885echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 22886 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
22887
22888cat >>confdefs.h <<\_ACEOF
97bf5e38 22889#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 22890_ACEOF
97bf5e38
MK
22891
22892 fi
22893
bec39cab 22894
b4e70030
JB
22895 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22896echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
22897 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22899else
bec39cab
AC
22900 cat >conftest.$ac_ext <<_ACEOF
22901/* confdefs.h. */
22902_ACEOF
22903cat confdefs.h >>conftest.$ac_ext
22904cat >>conftest.$ac_ext <<_ACEOF
22905/* end confdefs.h. */
97bf5e38
MK
22906#include <sys/types.h>
22907#include <link.h>
bec39cab
AC
22908int
22909main ()
22910{
97bf5e38 22911struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
22912 ;
22913 return 0;
22914}
22915_ACEOF
22916rm -f conftest.$ac_objext
22917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22918 (eval $ac_compile) 2>conftest.er1
22919 ac_status=$?
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } &&
b4e70030
JB
22925 { ac_try='test -z "$ac_c_werror_flag"
22926 || test ! -s conftest.err'
bec39cab
AC
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; } &&
22932 { ac_try='test -s conftest.$ac_objext'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; }; then
97bf5e38
MK
22938 gdb_cv_have_struct_link_map_with_lm_members=yes
22939else
bec39cab
AC
22940 echo "$as_me: failed program was:" >&5
22941sed 's/^/| /' conftest.$ac_ext >&5
22942
b4e70030 22943gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 22944fi
bec39cab 22945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22946fi
c906108c 22947
b4e70030
JB
22948 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22949echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 22950 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
22951
22952cat >>confdefs.h <<\_ACEOF
97bf5e38 22953#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 22954_ACEOF
97bf5e38
MK
22955
22956 fi
22957
bec39cab 22958
b4e70030
JB
22959 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22960echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
22961 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22962 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22963else
bec39cab
AC
22964 cat >conftest.$ac_ext <<_ACEOF
22965/* confdefs.h. */
22966_ACEOF
22967cat confdefs.h >>conftest.$ac_ext
22968cat >>conftest.$ac_ext <<_ACEOF
22969/* end confdefs.h. */
97bf5e38
MK
22970#include <sys/types.h>
22971#ifdef HAVE_NLIST_H
22972#include <nlist.h>
22973#endif
22974#include <link.h>
bec39cab
AC
22975int
22976main ()
22977{
97bf5e38 22978struct so_map lm; (void) lm.som_addr;
bec39cab
AC
22979 ;
22980 return 0;
22981}
22982_ACEOF
22983rm -f conftest.$ac_objext
22984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22985 (eval $ac_compile) 2>conftest.er1
22986 ac_status=$?
22987 grep -v '^ *+' conftest.er1 >conftest.err
22988 rm -f conftest.er1
22989 cat conftest.err >&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } &&
b4e70030
JB
22992 { ac_try='test -z "$ac_c_werror_flag"
22993 || test ! -s conftest.err'
bec39cab
AC
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22996 ac_status=$?
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; } &&
22999 { ac_try='test -s conftest.$ac_objext'
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23002 ac_status=$?
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; }; then
97bf5e38
MK
23005 gdb_cv_have_struct_so_map_with_som_members=yes
23006else
bec39cab
AC
23007 echo "$as_me: failed program was:" >&5
23008sed 's/^/| /' conftest.$ac_ext >&5
23009
b4e70030 23010gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 23011fi
bec39cab 23012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 23013fi
c906108c 23014
b4e70030
JB
23015 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
23016echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 23017 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
23018
23019cat >>confdefs.h <<\_ACEOF
97bf5e38 23020#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 23021_ACEOF
c906108c 23022
97bf5e38 23023 fi
c906108c 23024
bec39cab 23025
b4e70030
JB
23026 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
23027echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
23028 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
23029 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 23030else
bec39cab
AC
23031 cat >conftest.$ac_ext <<_ACEOF
23032/* confdefs.h. */
23033_ACEOF
23034cat confdefs.h >>conftest.$ac_ext
23035cat >>conftest.$ac_ext <<_ACEOF
23036/* end confdefs.h. */
97bf5e38
MK
23037#define _SYSCALL32
23038#include <sys/link.h>
bec39cab
AC
23039int
23040main ()
23041{
97bf5e38 23042struct link_map32 l;
bec39cab
AC
23043 ;
23044 return 0;
23045}
23046_ACEOF
23047rm -f conftest.$ac_objext
23048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23049 (eval $ac_compile) 2>conftest.er1
23050 ac_status=$?
23051 grep -v '^ *+' conftest.er1 >conftest.err
23052 rm -f conftest.er1
23053 cat conftest.err >&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } &&
b4e70030
JB
23056 { ac_try='test -z "$ac_c_werror_flag"
23057 || test ! -s conftest.err'
bec39cab
AC
23058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23060 ac_status=$?
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; } &&
23063 { ac_try='test -s conftest.$ac_objext'
23064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065 (eval $ac_try) 2>&5
23066 ac_status=$?
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); }; }; then
97bf5e38
MK
23069 gdb_cv_have_struct_link_map32=yes
23070else
bec39cab
AC
23071 echo "$as_me: failed program was:" >&5
23072sed 's/^/| /' conftest.$ac_ext >&5
23073
b4e70030 23074gdb_cv_have_struct_link_map32=no
97bf5e38 23075fi
bec39cab 23076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 23077fi
c906108c 23078
b4e70030
JB
23079 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
23080echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 23081 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
23082
23083cat >>confdefs.h <<\_ACEOF
97bf5e38 23084#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 23085_ACEOF
c906108c 23086
60ca704f
SE
23087
23088cat >>confdefs.h <<\_ACEOF
97bf5e38 23089#define _SYSCALL32 1
bec39cab 23090_ACEOF
c906108c 23091
97bf5e38
MK
23092 fi
23093fi
c906108c 23094
bc8bcb4b 23095# Check if the compiler supports the `long long' type.
c906108c 23096
b4e70030
JB
23097echo "$as_me:$LINENO: checking for long long support in compiler" >&5
23098echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
23099if test "${gdb_cv_c_long_long+set}" = set; then
23100 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 23101else
bec39cab
AC
23102 cat >conftest.$ac_ext <<_ACEOF
23103/* confdefs.h. */
23104_ACEOF
23105cat confdefs.h >>conftest.$ac_ext
23106cat >>conftest.$ac_ext <<_ACEOF
23107/* end confdefs.h. */
bc8bcb4b 23108extern long long foo;
bec39cab
AC
23109int
23110main ()
23111{
bc8bcb4b 23112switch (foo & 2) { case 0: return 1; }
bec39cab
AC
23113 ;
23114 return 0;
23115}
23116_ACEOF
23117rm -f conftest.$ac_objext
23118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23119 (eval $ac_compile) 2>conftest.er1
23120 ac_status=$?
23121 grep -v '^ *+' conftest.er1 >conftest.err
23122 rm -f conftest.er1
23123 cat conftest.err >&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); } &&
b4e70030
JB
23126 { ac_try='test -z "$ac_c_werror_flag"
23127 || test ! -s conftest.err'
bec39cab
AC
23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; } &&
23133 { ac_try='test -s conftest.$ac_objext'
23134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23135 (eval $ac_try) 2>&5
23136 ac_status=$?
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); }; }; then
97bf5e38
MK
23139 gdb_cv_c_long_long=yes
23140else
bec39cab
AC
23141 echo "$as_me: failed program was:" >&5
23142sed 's/^/| /' conftest.$ac_ext >&5
23143
b4e70030 23144gdb_cv_c_long_long=no
97bf5e38 23145fi
bec39cab 23146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 23147fi
b4e70030
JB
23148echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
23149echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 23150if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
23151
23152cat >>confdefs.h <<\_ACEOF
97bf5e38 23153#define CC_HAS_LONG_LONG 1
bec39cab 23154_ACEOF
97bf5e38
MK
23155
23156fi
23157
bc8bcb4b 23158# Check if the compiler and runtime support printing long longs.
97bf5e38 23159
b4e70030
JB
23160echo "$as_me:$LINENO: checking for long long support in printf" >&5
23161echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
23162if test "${gdb_cv_printf_has_long_long+set}" = set; then
23163 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
23164else
23165 if test "$cross_compiling" = yes; then
23166 gdb_cv_printf_has_long_long=no
23167else
bec39cab
AC
23168 cat >conftest.$ac_ext <<_ACEOF
23169/* confdefs.h. */
23170_ACEOF
23171cat confdefs.h >>conftest.$ac_ext
23172cat >>conftest.$ac_ext <<_ACEOF
23173/* end confdefs.h. */
bc8bcb4b
MK
23174$ac_includes_default
23175int
23176main ()
23177{
23178char buf[32];
97bf5e38
MK
23179 long long l = 0;
23180 l = (l << 16) + 0x0123;
23181 l = (l << 16) + 0x4567;
23182 l = (l << 16) + 0x89ab;
23183 l = (l << 16) + 0xcdef;
23184 sprintf (buf, "0x%016llx", l);
23185 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
23186 ;
23187 return 0;
c906108c 23188}
bec39cab
AC
23189_ACEOF
23190rm -f conftest$ac_exeext
23191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23192 (eval $ac_link) 2>&5
23193 ac_status=$?
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
97bf5e38
MK
23201 gdb_cv_printf_has_long_long=yes
23202else
bec39cab
AC
23203 echo "$as_me: program exited with status $ac_status" >&5
23204echo "$as_me: failed program was:" >&5
23205sed 's/^/| /' conftest.$ac_ext >&5
23206
23207( exit $ac_status )
23208gdb_cv_printf_has_long_long=no
97bf5e38 23209fi
b4e70030 23210rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 23211fi
97bf5e38 23212fi
b4e70030
JB
23213echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
23214echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 23215if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
23216
23217cat >>confdefs.h <<\_ACEOF
97bf5e38 23218#define PRINTF_HAS_LONG_LONG 1
bec39cab 23219_ACEOF
97bf5e38
MK
23220
23221fi
97bf5e38 23222
1a619819
LM
23223# Check if the compiler and runtime support printing decfloats.
23224
23225echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
23226echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
23227if test "${gdb_cv_printf_has_decfloat+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23229else
23230 if test "$cross_compiling" = yes; then
23231 gdb_cv_printf_has_decfloat=no
23232else
23233 cat >conftest.$ac_ext <<_ACEOF
23234/* confdefs.h. */
23235_ACEOF
23236cat confdefs.h >>conftest.$ac_ext
23237cat >>conftest.$ac_ext <<_ACEOF
23238/* end confdefs.h. */
23239$ac_includes_default
23240int
23241main ()
23242{
23243char buf[64];
23244 _Decimal32 d32 = 1.2345df;
23245 _Decimal64 d64 = 1.2345dd;
23246 _Decimal128 d128 = 1.2345dl;
23247 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
23248 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
23249 ;
23250 return 0;
23251}
23252_ACEOF
23253rm -f conftest$ac_exeext
23254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23255 (eval $ac_link) 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260 (eval $ac_try) 2>&5
23261 ac_status=$?
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); }; }; then
23264 gdb_cv_printf_has_decfloat=yes
23265else
23266 echo "$as_me: program exited with status $ac_status" >&5
23267echo "$as_me: failed program was:" >&5
23268sed 's/^/| /' conftest.$ac_ext >&5
23269
23270( exit $ac_status )
23271gdb_cv_printf_has_decfloat=no
23272fi
23273rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23274fi
23275fi
23276echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
23277echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
23278if test $gdb_cv_printf_has_decfloat = yes; then
23279
23280cat >>confdefs.h <<\_ACEOF
23281#define PRINTF_HAS_DECFLOAT 1
23282_ACEOF
23283
23284fi
23285
bc8bcb4b
MK
23286# Check if the compiler supports the `long double' type. We can't use
23287# AC_C_LONG_DOUBLE because that one does additional checks on the
23288# constants defined in <float.h> that fail on some systems,
23289# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 23290
b4e70030
JB
23291echo "$as_me:$LINENO: checking for long double support in compiler" >&5
23292echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 23293if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 23294 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 23295else
bec39cab
AC
23296 cat >conftest.$ac_ext <<_ACEOF
23297/* confdefs.h. */
23298_ACEOF
23299cat confdefs.h >>conftest.$ac_ext
23300cat >>conftest.$ac_ext <<_ACEOF
23301/* end confdefs.h. */
97bf5e38 23302long double foo;
bec39cab
AC
23303_ACEOF
23304rm -f conftest.$ac_objext
23305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23306 (eval $ac_compile) 2>conftest.er1
23307 ac_status=$?
23308 grep -v '^ *+' conftest.er1 >conftest.err
23309 rm -f conftest.er1
23310 cat conftest.err >&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } &&
b4e70030
JB
23313 { ac_try='test -z "$ac_c_werror_flag"
23314 || test ! -s conftest.err'
bec39cab
AC
23315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316 (eval $ac_try) 2>&5
23317 ac_status=$?
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); }; } &&
23320 { ac_try='test -s conftest.$ac_objext'
23321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322 (eval $ac_try) 2>&5
23323 ac_status=$?
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); }; }; then
bc8bcb4b 23326 gdb_cv_c_long_double=yes
97bf5e38 23327else
bec39cab
AC
23328 echo "$as_me: failed program was:" >&5
23329sed 's/^/| /' conftest.$ac_ext >&5
23330
b4e70030 23331gdb_cv_c_long_double=no
97bf5e38 23332fi
bec39cab 23333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 23334fi
b4e70030
JB
23335echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
23336echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 23337if test $gdb_cv_c_long_double = yes; then
c906108c 23338
bc8bcb4b 23339cat >>confdefs.h <<\_ACEOF
97bf5e38 23340#define HAVE_LONG_DOUBLE 1
bec39cab 23341_ACEOF
97bf5e38
MK
23342
23343fi
23344
bc8bcb4b 23345# Check if the compiler and runtime support printing long doubles.
97bf5e38 23346
b4e70030
JB
23347echo "$as_me:$LINENO: checking for long double support in printf" >&5
23348echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
23349if test "${gdb_cv_printf_has_long_double+set}" = set; then
23350 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
23351else
23352 if test "$cross_compiling" = yes; then
23353 gdb_cv_printf_has_long_double=no
23354else
bec39cab
AC
23355 cat >conftest.$ac_ext <<_ACEOF
23356/* confdefs.h. */
23357_ACEOF
23358cat confdefs.h >>conftest.$ac_ext
23359cat >>conftest.$ac_ext <<_ACEOF
23360/* end confdefs.h. */
bc8bcb4b
MK
23361$ac_includes_default
23362int
23363main ()
23364{
23365char buf[16];
97bf5e38
MK
23366 long double f = 3.141592653;
23367 sprintf (buf, "%Lg", f);
23368 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
23369 ;
23370 return 0;
97bf5e38 23371}
bec39cab
AC
23372_ACEOF
23373rm -f conftest$ac_exeext
23374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23375 (eval $ac_link) 2>&5
23376 ac_status=$?
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; }; then
97bf5e38 23384 gdb_cv_printf_has_long_double=yes
c906108c 23385else
bec39cab
AC
23386 echo "$as_me: program exited with status $ac_status" >&5
23387echo "$as_me: failed program was:" >&5
23388sed 's/^/| /' conftest.$ac_ext >&5
23389
23390( exit $ac_status )
23391gdb_cv_printf_has_long_double=no
c906108c 23392fi
b4e70030 23393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 23394fi
c906108c 23395fi
b4e70030
JB
23396echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23397echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 23398if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
23399
23400cat >>confdefs.h <<\_ACEOF
97bf5e38 23401#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 23402_ACEOF
97bf5e38
MK
23403
23404fi
97bf5e38 23405
bc8bcb4b 23406# Check if the compiler and runtime support scanning long doubles.
97bf5e38 23407
b4e70030
JB
23408echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23409echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
23410if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23411 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
23412else
23413 if test "$cross_compiling" = yes; then
23414 gdb_cv_scanf_has_long_double=no
23415else
bec39cab
AC
23416 cat >conftest.$ac_ext <<_ACEOF
23417/* confdefs.h. */
23418_ACEOF
23419cat confdefs.h >>conftest.$ac_ext
23420cat >>conftest.$ac_ext <<_ACEOF
23421/* end confdefs.h. */
bc8bcb4b
MK
23422#include <stdio.h>
23423int
23424main ()
23425{
23426char *buf = "3.141592653";
97bf5e38
MK
23427 long double f = 0;
23428 sscanf (buf, "%Lg", &f);
23429 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
23430 ;
23431 return 0;
97bf5e38 23432}
bec39cab
AC
23433_ACEOF
23434rm -f conftest$ac_exeext
23435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23436 (eval $ac_link) 2>&5
23437 ac_status=$?
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23442 ac_status=$?
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; }; then
97bf5e38
MK
23445 gdb_cv_scanf_has_long_double=yes
23446else
bec39cab
AC
23447 echo "$as_me: program exited with status $ac_status" >&5
23448echo "$as_me: failed program was:" >&5
23449sed 's/^/| /' conftest.$ac_ext >&5
23450
23451( exit $ac_status )
23452gdb_cv_scanf_has_long_double=no
97bf5e38 23453fi
b4e70030 23454rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 23455fi
c906108c 23456fi
b4e70030
JB
23457echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23458echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 23459if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
23460
23461cat >>confdefs.h <<\_ACEOF
97bf5e38 23462#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 23463_ACEOF
97bf5e38
MK
23464
23465fi
c906108c 23466
438013df
AO
23467case ${host_os} in
23468aix*)
b4e70030
JB
23469 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23470echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
23471if test "${gdb_cv_bigtoc+set}" = set; then
23472 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 23473else
bec39cab 23474
438013df
AO
23475 SAVE_LDFLAGS=$LDFLAGS
23476
23477 case $GCC in
23478 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23479 *) gdb_cv_bigtoc=-bbigtoc ;;
23480 esac
23481
23482 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
23483 cat >conftest.$ac_ext <<_ACEOF
23484/* confdefs.h. */
23485_ACEOF
23486cat confdefs.h >>conftest.$ac_ext
23487cat >>conftest.$ac_ext <<_ACEOF
23488/* end confdefs.h. */
438013df 23489
bec39cab
AC
23490int
23491main ()
23492{
438013df 23493int i;
bec39cab
AC
23494 ;
23495 return 0;
23496}
23497_ACEOF
23498rm -f conftest.$ac_objext conftest$ac_exeext
23499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23500 (eval $ac_link) 2>conftest.er1
23501 ac_status=$?
23502 grep -v '^ *+' conftest.er1 >conftest.err
23503 rm -f conftest.er1
23504 cat conftest.err >&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } &&
b4e70030
JB
23507 { ac_try='test -z "$ac_c_werror_flag"
23508 || test ! -s conftest.err'
bec39cab
AC
23509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23510 (eval $ac_try) 2>&5
23511 ac_status=$?
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; } &&
23514 { ac_try='test -s conftest$ac_exeext'
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; }; then
438013df
AO
23520 :
23521else
bec39cab
AC
23522 echo "$as_me: failed program was:" >&5
23523sed 's/^/| /' conftest.$ac_ext >&5
23524
b4e70030 23525gdb_cv_bigtoc=
438013df 23526fi
bec39cab
AC
23527rm -f conftest.err conftest.$ac_objext \
23528 conftest$ac_exeext conftest.$ac_ext
ec76baa5 23529 LDFLAGS="${SAVE_LDFLAGS}"
438013df 23530
bec39cab 23531fi
b4e70030
JB
23532echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23533echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
23534 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23535 ;;
23536esac
23537
c906108c
SS
23538
23539
23540if test ${build} = ${host} -a ${host} = ${target} ; then
23541 case ${host_os} in
23542 hpux*)
b4e70030
JB
23543 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23544echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
23545 if test -f /usr/include/dce/cma_config.h ; then
23546 if test "$GCC" = "yes" ; then
b4e70030
JB
23547 echo "$as_me:$LINENO: result: yes" >&5
23548echo "${ECHO_T}yes" >&6
60ca704f
SE
23549
23550cat >>confdefs.h <<\_ACEOF
c906108c 23551#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 23552_ACEOF
c906108c 23553
3483b318 23554 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
23555 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23556 else
b4e70030
JB
23557 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23558echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
23559 fi
23560 else
b4e70030
JB
23561 echo "$as_me:$LINENO: result: no" >&5
23562echo "${ECHO_T}no" >&6
c906108c
SS
23563 fi
23564 ;;
23565 solaris*)
d92419e5
JB
23566 # See if thread_db library is around for Solaris thread debugging.
23567 # Note that we must explicitly test for version 1 of the library
23568 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23569 # the same API.
b4e70030
JB
23570 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23571echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 23572 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
23573 echo "$as_me:$LINENO: result: yes" >&5
23574echo "${ECHO_T}yes" >&6
60ca704f
SE
23575
23576cat >>confdefs.h <<\_ACEOF
c906108c 23577#define HAVE_THREAD_DB_LIB 1
bec39cab 23578_ACEOF
c906108c 23579
3483b318 23580 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 23581 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 23582
b4e70030
JB
23583echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23584echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
23585if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23587else
bec39cab 23588 ac_check_lib_save_LIBS=$LIBS
c906108c 23589LIBS="-ldl $LIBS"
bec39cab
AC
23590cat >conftest.$ac_ext <<_ACEOF
23591/* confdefs.h. */
23592_ACEOF
23593cat confdefs.h >>conftest.$ac_ext
23594cat >>conftest.$ac_ext <<_ACEOF
23595/* end confdefs.h. */
23596
b4e70030 23597/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
23598#ifdef __cplusplus
23599extern "C"
23600#endif
b4e70030
JB
23601/* We use char because int might match the return type of a gcc2
23602 builtin and then its argument prototype would still apply. */
bec39cab
AC
23603char dlopen ();
23604int
23605main ()
23606{
b4e70030 23607dlopen ();
bec39cab
AC
23608 ;
23609 return 0;
23610}
23611_ACEOF
23612rm -f conftest.$ac_objext conftest$ac_exeext
23613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23614 (eval $ac_link) 2>conftest.er1
23615 ac_status=$?
23616 grep -v '^ *+' conftest.er1 >conftest.err
23617 rm -f conftest.er1
23618 cat conftest.err >&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); } &&
b4e70030
JB
23621 { ac_try='test -z "$ac_c_werror_flag"
23622 || test ! -s conftest.err'
bec39cab
AC
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; } &&
23628 { ac_try='test -s conftest$ac_exeext'
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; }; then
23634 ac_cv_lib_dl_dlopen=yes
23635else
23636 echo "$as_me: failed program was:" >&5
23637sed 's/^/| /' conftest.$ac_ext >&5
23638
b4e70030 23639ac_cv_lib_dl_dlopen=no
bec39cab
AC
23640fi
23641rm -f conftest.err conftest.$ac_objext \
23642 conftest$ac_exeext conftest.$ac_ext
23643LIBS=$ac_check_lib_save_LIBS
23644fi
b4e70030
JB
23645echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23646echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
23647if test $ac_cv_lib_dl_dlopen = yes; then
23648 cat >>confdefs.h <<_ACEOF
23649#define HAVE_LIBDL 1
23650_ACEOF
c906108c
SS
23651
23652 LIBS="-ldl $LIBS"
23653
c906108c
SS
23654fi
23655
23656 if test "$GCC" = "yes" ; then
23657 # The GNU linker requires the -export-dynamic option to make
23658 # all symbols visible in the dynamic symbol table.
23659 hold_ldflags=$LDFLAGS
b4e70030
JB
23660 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23661echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 23662 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
23663 cat >conftest.$ac_ext <<_ACEOF
23664/* confdefs.h. */
23665_ACEOF
23666cat confdefs.h >>conftest.$ac_ext
23667cat >>conftest.$ac_ext <<_ACEOF
23668/* end confdefs.h. */
c906108c 23669
bec39cab
AC
23670int
23671main ()
23672{
c906108c 23673int i;
bec39cab
AC
23674 ;
23675 return 0;
23676}
23677_ACEOF
23678rm -f conftest.$ac_objext conftest$ac_exeext
23679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23680 (eval $ac_link) 2>conftest.er1
23681 ac_status=$?
23682 grep -v '^ *+' conftest.er1 >conftest.err
23683 rm -f conftest.er1
23684 cat conftest.err >&5
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); } &&
b4e70030
JB
23687 { ac_try='test -z "$ac_c_werror_flag"
23688 || test ! -s conftest.err'
bec39cab
AC
23689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690 (eval $ac_try) 2>&5
23691 ac_status=$?
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; } &&
23694 { ac_try='test -s conftest$ac_exeext'
23695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23696 (eval $ac_try) 2>&5
23697 ac_status=$?
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); }; }; then
c906108c
SS
23700 found=yes
23701else
bec39cab
AC
23702 echo "$as_me: failed program was:" >&5
23703sed 's/^/| /' conftest.$ac_ext >&5
23704
b4e70030 23705found=no
c906108c 23706fi
bec39cab
AC
23707rm -f conftest.err conftest.$ac_objext \
23708 conftest$ac_exeext conftest.$ac_ext
c906108c 23709 LDFLAGS=$hold_ldflags
b4e70030
JB
23710 echo "$as_me:$LINENO: result: $found" >&5
23711echo "${ECHO_T}$found" >&6
c906108c
SS
23712 if test $found = yes; then
23713 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23714 fi
23715 fi
23716 # Sun randomly tweaked the prototypes in <proc_service.h>
23717 # at one point.
b4e70030
JB
23718 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23719echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
23720 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23721 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23722else
bec39cab
AC
23723
23724 cat >conftest.$ac_ext <<_ACEOF
23725/* confdefs.h. */
23726_ACEOF
23727cat confdefs.h >>conftest.$ac_ext
23728cat >>conftest.$ac_ext <<_ACEOF
23729/* end confdefs.h. */
c906108c
SS
23730
23731 #include <proc_service.h>
23732 ps_err_e ps_pdwrite
23733 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 23734
bec39cab
AC
23735int
23736main ()
23737{
23738
23739 ;
23740 return 0;
23741}
23742_ACEOF
23743rm -f conftest.$ac_objext
23744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23745 (eval $ac_compile) 2>conftest.er1
23746 ac_status=$?
23747 grep -v '^ *+' conftest.er1 >conftest.err
23748 rm -f conftest.er1
23749 cat conftest.err >&5
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); } &&
b4e70030
JB
23752 { ac_try='test -z "$ac_c_werror_flag"
23753 || test ! -s conftest.err'
bec39cab
AC
23754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755 (eval $ac_try) 2>&5
23756 ac_status=$?
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; } &&
23759 { ac_try='test -s conftest.$ac_objext'
23760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23761 (eval $ac_try) 2>&5
23762 ac_status=$?
23763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); }; }; then
c906108c
SS
23765 gdb_cv_proc_service_is_old=no
23766else
bec39cab
AC
23767 echo "$as_me: failed program was:" >&5
23768sed 's/^/| /' conftest.$ac_ext >&5
23769
b4e70030 23770gdb_cv_proc_service_is_old=yes
c906108c 23771fi
bec39cab
AC
23772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23773
c906108c
SS
23774fi
23775
b4e70030
JB
23776 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23777echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 23778 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
23779
23780cat >>confdefs.h <<\_ACEOF
c906108c 23781#define PROC_SERVICE_IS_OLD 1
bec39cab 23782_ACEOF
c906108c
SS
23783
23784 fi
23785 else
b4e70030
JB
23786 echo "$as_me:$LINENO: result: no" >&5
23787echo "${ECHO_T}no" >&6
c906108c
SS
23788 fi
23789 ;;
d92419e5 23790 aix*)
b4e70030
JB
23791 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23792echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
23793 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23795else
23796 cat >conftest.$ac_ext <<_ACEOF
23797/* confdefs.h. */
23798_ACEOF
23799cat confdefs.h >>conftest.$ac_ext
23800cat >>conftest.$ac_ext <<_ACEOF
23801/* end confdefs.h. */
d92419e5 23802#include <sys/pthdebug.h>
bec39cab
AC
23803int
23804main ()
23805{
d92419e5
JB
23806#ifndef PTHDB_VERSION_3
23807 #error
23808 #endif
bec39cab
AC
23809 ;
23810 return 0;
23811}
23812_ACEOF
23813rm -f conftest.$ac_objext
23814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23815 (eval $ac_compile) 2>conftest.er1
23816 ac_status=$?
23817 grep -v '^ *+' conftest.er1 >conftest.err
23818 rm -f conftest.er1
23819 cat conftest.err >&5
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); } &&
b4e70030
JB
23822 { ac_try='test -z "$ac_c_werror_flag"
23823 || test ! -s conftest.err'
bec39cab
AC
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; } &&
23829 { ac_try='test -s conftest.$ac_objext'
23830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23831 (eval $ac_try) 2>&5
23832 ac_status=$?
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); }; }; then
d92419e5
JB
23835 gdb_cv_have_aix_thread_debug=yes
23836else
bec39cab
AC
23837 echo "$as_me: failed program was:" >&5
23838sed 's/^/| /' conftest.$ac_ext >&5
23839
b4e70030 23840gdb_cv_have_aix_thread_debug=no
d92419e5 23841fi
bec39cab 23842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
23843fi
23844
b4e70030
JB
23845 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23846echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
23847 if test $gdb_cv_have_aix_thread_debug = yes; then
23848 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 23849 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
23850 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23851 fi
23852 ;;
c906108c 23853 esac
bec39cab 23854
c906108c
SS
23855fi
23856
3f47be5c 23857if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
23858 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23859echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
23860if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23861 echo $ECHO_N "(cached) $ECHO_C" >&6
23862else
23863 cat >conftest.$ac_ext <<_ACEOF
23864/* confdefs.h. */
23865_ACEOF
23866cat confdefs.h >>conftest.$ac_ext
23867cat >>conftest.$ac_ext <<_ACEOF
23868/* end confdefs.h. */
3f47be5c 23869#include <thread_db.h>
bec39cab
AC
23870int
23871main ()
23872{
3f47be5c 23873int i = TD_NOTALLOC;
bec39cab
AC
23874 ;
23875 return 0;
23876}
23877_ACEOF
23878rm -f conftest.$ac_objext
23879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23880 (eval $ac_compile) 2>conftest.er1
23881 ac_status=$?
23882 grep -v '^ *+' conftest.er1 >conftest.err
23883 rm -f conftest.er1
23884 cat conftest.err >&5
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); } &&
b4e70030
JB
23887 { ac_try='test -z "$ac_c_werror_flag"
23888 || test ! -s conftest.err'
bec39cab
AC
23889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23890 (eval $ac_try) 2>&5
23891 ac_status=$?
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); }; } &&
23894 { ac_try='test -s conftest.$ac_objext'
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23897 ac_status=$?
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; }; then
3f47be5c
EZ
23900 gdb_cv_thread_db_h_has_td_notalloc=yes
23901else
bec39cab
AC
23902 echo "$as_me: failed program was:" >&5
23903sed 's/^/| /' conftest.$ac_ext >&5
23904
b4e70030 23905gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 23906
3f47be5c 23907fi
bec39cab 23908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 23909
bec39cab 23910fi
b4e70030
JB
23911echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23912echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
23913 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23914echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23915if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23916 echo $ECHO_N "(cached) $ECHO_C" >&6
23917else
23918 cat >conftest.$ac_ext <<_ACEOF
23919/* confdefs.h. */
23920_ACEOF
23921cat confdefs.h >>conftest.$ac_ext
23922cat >>conftest.$ac_ext <<_ACEOF
23923/* end confdefs.h. */
23924#include <thread_db.h>
23925int
23926main ()
23927{
23928int i = TD_VERSION;
23929 ;
23930 return 0;
23931}
23932_ACEOF
23933rm -f conftest.$ac_objext
23934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23935 (eval $ac_compile) 2>conftest.er1
23936 ac_status=$?
23937 grep -v '^ *+' conftest.er1 >conftest.err
23938 rm -f conftest.er1
23939 cat conftest.err >&5
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); } &&
23942 { ac_try='test -z "$ac_c_werror_flag"
23943 || test ! -s conftest.err'
23944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23945 (eval $ac_try) 2>&5
23946 ac_status=$?
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); }; } &&
23949 { ac_try='test -s conftest.$ac_objext'
23950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23951 (eval $ac_try) 2>&5
23952 ac_status=$?
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); }; }; then
23955 gdb_cv_thread_db_h_has_td_version=yes
23956else
23957 echo "$as_me: failed program was:" >&5
23958sed 's/^/| /' conftest.$ac_ext >&5
23959
23960gdb_cv_thread_db_h_has_td_version=no
23961
23962fi
23963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23964
23965fi
23966echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23967echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23968 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23969echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23970if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23971 echo $ECHO_N "(cached) $ECHO_C" >&6
23972else
23973 cat >conftest.$ac_ext <<_ACEOF
23974/* confdefs.h. */
23975_ACEOF
23976cat confdefs.h >>conftest.$ac_ext
23977cat >>conftest.$ac_ext <<_ACEOF
23978/* end confdefs.h. */
23979#include <thread_db.h>
23980int
23981main ()
23982{
23983int i = TD_NOTLS;
23984 ;
23985 return 0;
23986}
23987_ACEOF
23988rm -f conftest.$ac_objext
23989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23990 (eval $ac_compile) 2>conftest.er1
23991 ac_status=$?
23992 grep -v '^ *+' conftest.er1 >conftest.err
23993 rm -f conftest.er1
23994 cat conftest.err >&5
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); } &&
23997 { ac_try='test -z "$ac_c_werror_flag"
23998 || test ! -s conftest.err'
23999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000 (eval $ac_try) 2>&5
24001 ac_status=$?
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); }; } &&
24004 { ac_try='test -s conftest.$ac_objext'
24005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006 (eval $ac_try) 2>&5
24007 ac_status=$?
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); }; }; then
24010 gdb_cv_thread_db_h_has_td_notls=yes
24011else
24012 echo "$as_me: failed program was:" >&5
24013sed 's/^/| /' conftest.$ac_ext >&5
24014
24015gdb_cv_thread_db_h_has_td_notls=no
24016
24017fi
24018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24019
24020fi
24021echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
24022echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
24023fi
24024if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
24025
24026cat >>confdefs.h <<\_ACEOF
3f47be5c 24027#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 24028_ACEOF
3f47be5c 24029
59f80f10
DJ
24030fi
24031if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
24032
24033cat >>confdefs.h <<\_ACEOF
24034#define THREAD_DB_HAS_TD_VERSION 1
24035_ACEOF
24036
24037fi
24038if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
24039
24040cat >>confdefs.h <<\_ACEOF
24041#define THREAD_DB_HAS_TD_NOTLS 1
24042_ACEOF
24043
3f47be5c
EZ
24044fi
24045
b757528f 24046if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
24047 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
24048echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
24049if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
24050 echo $ECHO_N "(cached) $ECHO_C" >&6
24051else
24052 cat >conftest.$ac_ext <<_ACEOF
24053/* confdefs.h. */
24054_ACEOF
24055cat confdefs.h >>conftest.$ac_ext
24056cat >>conftest.$ac_ext <<_ACEOF
24057/* end confdefs.h. */
b757528f 24058#include <sys/syscall.h>
bec39cab
AC
24059int
24060main ()
24061{
b757528f 24062int i = __NR_tkill;
bec39cab
AC
24063 ;
24064 return 0;
24065}
24066_ACEOF
24067rm -f conftest.$ac_objext
24068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24069 (eval $ac_compile) 2>conftest.er1
24070 ac_status=$?
24071 grep -v '^ *+' conftest.er1 >conftest.err
24072 rm -f conftest.er1
24073 cat conftest.err >&5
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); } &&
b4e70030
JB
24076 { ac_try='test -z "$ac_c_werror_flag"
24077 || test ! -s conftest.err'
bec39cab
AC
24078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24079 (eval $ac_try) 2>&5
24080 ac_status=$?
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); }; } &&
24083 { ac_try='test -s conftest.$ac_objext'
24084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24085 (eval $ac_try) 2>&5
24086 ac_status=$?
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); }; }; then
b757528f
JJ
24089 gdb_cv_sys_syscall_h_has_tkill=yes
24090else
bec39cab
AC
24091 echo "$as_me: failed program was:" >&5
24092sed 's/^/| /' conftest.$ac_ext >&5
24093
b4e70030 24094gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 24095
b757528f 24096fi
bec39cab 24097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 24098
bec39cab 24099fi
b4e70030
JB
24100echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
24101echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
24102fi
24103if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
24104
24105cat >>confdefs.h <<\_ACEOF
b757528f 24106#define HAVE_TKILL_SYSCALL 1
bec39cab 24107_ACEOF
b757528f
JJ
24108
24109fi
24110
10568435
JK
24111echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
24112echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
24113if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
24114 echo $ECHO_N "(cached) $ECHO_C" >&6
24115else
24116 cat >conftest.$ac_ext <<_ACEOF
24117/* confdefs.h. */
24118_ACEOF
24119cat confdefs.h >>conftest.$ac_ext
24120cat >>conftest.$ac_ext <<_ACEOF
24121/* end confdefs.h. */
24122#include <sys/personality.h>
24123
24124int
24125main ()
24126{
24127#ifndef ADDR_NO_RANDOMIZE
24128 char *p = (char *) ADDR_NO_RANDOMIZE;
24129#endif
24130
24131 ;
24132 return 0;
24133}
24134_ACEOF
24135rm -f conftest.$ac_objext
24136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24137 (eval $ac_compile) 2>conftest.er1
24138 ac_status=$?
24139 grep -v '^ *+' conftest.er1 >conftest.err
24140 rm -f conftest.er1
24141 cat conftest.err >&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); } &&
24144 { ac_try='test -z "$ac_c_werror_flag"
24145 || test ! -s conftest.err'
24146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24147 (eval $ac_try) 2>&5
24148 ac_status=$?
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); }; } &&
24151 { ac_try='test -s conftest.$ac_objext'
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24154 ac_status=$?
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; }; then
24157 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
24158else
24159 echo "$as_me: failed program was:" >&5
24160sed 's/^/| /' conftest.$ac_ext >&5
24161
24162ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
24163fi
24164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24165fi
24166echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
24167echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
24168if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
24169
24170cat >>confdefs.h <<_ACEOF
24171#define HAVE_DECL_ADDR_NO_RANDOMIZE 1
24172_ACEOF
24173
24174
24175else
24176 cat >>confdefs.h <<_ACEOF
24177#define HAVE_DECL_ADDR_NO_RANDOMIZE 0
24178_ACEOF
24179
24180
24181fi
24182
24183
24184
24185if test "$cross_compiling" = yes; then
24186 cat >conftest.$ac_ext <<_ACEOF
24187/* confdefs.h. */
24188_ACEOF
24189cat confdefs.h >>conftest.$ac_ext
24190cat >>conftest.$ac_ext <<_ACEOF
24191/* end confdefs.h. */
24192#include <sys/personality.h>
24193int
24194main ()
24195{
24196
24197# if !HAVE_DECL_ADDR_NO_RANDOMIZE
24198# define ADDR_NO_RANDOMIZE 0x0040000
24199# endif
24200 /* Test the flag could be set and stays set. */
24201 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24202 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24203 return 1
24204 ;
24205 return 0;
24206}
24207_ACEOF
24208rm -f conftest.$ac_objext conftest$ac_exeext
24209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24210 (eval $ac_link) 2>conftest.er1
24211 ac_status=$?
24212 grep -v '^ *+' conftest.er1 >conftest.err
24213 rm -f conftest.er1
24214 cat conftest.err >&5
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); } &&
24217 { ac_try='test -z "$ac_c_werror_flag"
24218 || test ! -s conftest.err'
24219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24220 (eval $ac_try) 2>&5
24221 ac_status=$?
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); }; } &&
24224 { ac_try='test -s conftest$ac_exeext'
24225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24226 (eval $ac_try) 2>&5
24227 ac_status=$?
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); }; }; then
24230 have_personality=true
24231else
24232 echo "$as_me: failed program was:" >&5
24233sed 's/^/| /' conftest.$ac_ext >&5
24234
24235have_personality=false
24236fi
24237rm -f conftest.err conftest.$ac_objext \
24238 conftest$ac_exeext conftest.$ac_ext
24239else
24240 cat >conftest.$ac_ext <<_ACEOF
24241/* confdefs.h. */
24242_ACEOF
24243cat confdefs.h >>conftest.$ac_ext
24244cat >>conftest.$ac_ext <<_ACEOF
24245/* end confdefs.h. */
24246#include <sys/personality.h>
24247int
24248main ()
24249{
24250
24251# if !HAVE_DECL_ADDR_NO_RANDOMIZE
24252# define ADDR_NO_RANDOMIZE 0x0040000
24253# endif
24254 /* Test the flag could be set and stays set. */
24255 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24256 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24257 return 1
24258 ;
24259 return 0;
24260}
24261_ACEOF
24262rm -f conftest$ac_exeext
24263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24264 (eval $ac_link) 2>&5
24265 ac_status=$?
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269 (eval $ac_try) 2>&5
24270 ac_status=$?
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; }; then
24273 have_personality=true
24274else
24275 echo "$as_me: program exited with status $ac_status" >&5
24276echo "$as_me: failed program was:" >&5
24277sed 's/^/| /' conftest.$ac_ext >&5
24278
24279( exit $ac_status )
24280have_personality=false
24281fi
24282rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24283fi
24284if $have_personality
24285then
24286
24287cat >>confdefs.h <<\_ACEOF
24288#define HAVE_PERSONALITY 1
24289_ACEOF
24290
24291fi
24292
fb40c209 24293
bec39cab 24294
b4e70030 24295# Check whether --with-sysroot or --without-sysroot was given.
030292b7 24296if test "${with_sysroot+set}" = set; then
b4e70030
JB
24297 withval="$with_sysroot"
24298
030292b7 24299 case ${with_sysroot} in
715d1656 24300 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
24301 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
24302 esac
24303
24304 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
24305
07abfebf
RS
24306 if test "x$prefix" = xNONE; then
24307 test_prefix=/usr/local
24308 else
24309 test_prefix=$prefix
24310 fi
aa28a74e 24311 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 24312 test_exec_prefix=$test_prefix
030292b7 24313 else
07abfebf 24314 test_exec_prefix=$exec_prefix
030292b7
DJ
24315 fi
24316 case ${TARGET_SYSTEM_ROOT} in
715d1656 24317 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
24318 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
24319 '${prefix}'|'${prefix}/'*|\
715d1656 24320 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
24321 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
24322 TARGET_SYSTEM_ROOT_DEFINE="$t"
24323 ;;
24324 esac
24325
24326else
bec39cab 24327
030292b7
DJ
24328 TARGET_SYSTEM_ROOT=
24329 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
24330
b4e70030 24331fi;
030292b7
DJ
24332
24333
24334
b4e70030 24335# Check whether --enable-werror or --disable-werror was given.
094a342e 24336if test "${enable_werror+set}" = set; then
b4e70030
JB
24337 enableval="$enable_werror"
24338 case "${enableval}" in
094a342e
MK
24339 yes | y) ERROR_ON_WARNING="yes" ;;
24340 no | n) ERROR_ON_WARNING="no" ;;
24341 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
24342echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
24343 { (exit 1); exit 1; }; } ;;
24344 esac
b4e70030 24345fi;
094a342e
MK
24346
24347# Enable -Werror by default when using gcc
24348if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
24349 ERROR_ON_WARNING=yes
24350fi
24351
24352WERROR_CFLAGS=""
24353if test "${ERROR_ON_WARNING}" = yes ; then
24354 WERROR_CFLAGS="-Werror"
24355fi
24356
aa79a185
DJ
24357# The entries after -Wno-pointer-sign are disabled warnings which may
24358# be enabled in the future, which can not currently be used to build
24359# GDB.
24360# NOTE: If you change this list, remember to update
3b851bce 24361# gdb/doc/gdbint.texinfo.
aa79a185
DJ
24362build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24363-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 24364-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 24365
3526781e
DJ
24366# Enable -Wno-format by default when using gcc on mingw since many
24367# GCC versions complain about %I64.
24368case "${host}" in
24369 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24370esac
24371
b4e70030 24372# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 24373if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
24374 enableval="$enable_build_warnings"
24375 case "${enableval}" in
c906108c
SS
24376 yes) ;;
24377 no) build_warnings="-w";;
24378 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24379 build_warnings="${build_warnings} ${t}";;
24380 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24381 build_warnings="${t} ${build_warnings}";;
24382 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24383esac
d4f3574e 24384if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 24385 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 24386fi
b4e70030 24387fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 24388if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
24389 enableval="$enable_gdb_build_warnings"
24390 case "${enableval}" in
3b851bce
AC
24391 yes) ;;
24392 no) build_warnings="-w";;
24393 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24394 build_warnings="${build_warnings} ${t}";;
24395 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24396 build_warnings="${t} ${build_warnings}";;
24397 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24398esac
24399if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24400 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24401fi
b4e70030 24402fi; WARN_CFLAGS=""
c906108c
SS
24403if test "x${build_warnings}" != x -a "x$GCC" = xyes
24404then
b4e70030
JB
24405 echo "$as_me:$LINENO: checking compiler warning flags" >&5
24406echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
24407 # Separate out the -Werror flag as some files just cannot be
24408 # compiled with it enabled.
24409 for w in ${build_warnings}; do
24410 case $w in
24411 -Werr*) WERROR_CFLAGS=-Werror ;;
24412 *) # Check that GCC accepts it
4536bbc6
AC
24413 saved_CFLAGS="$CFLAGS"
24414 CFLAGS="$CFLAGS $w"
bec39cab
AC
24415 cat >conftest.$ac_ext <<_ACEOF
24416/* confdefs.h. */
24417_ACEOF
24418cat confdefs.h >>conftest.$ac_ext
24419cat >>conftest.$ac_ext <<_ACEOF
24420/* end confdefs.h. */
4536bbc6 24421
bec39cab
AC
24422int
24423main ()
24424{
4536bbc6 24425
bec39cab
AC
24426 ;
24427 return 0;
24428}
24429_ACEOF
24430rm -f conftest.$ac_objext
24431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24432 (eval $ac_compile) 2>conftest.er1
24433 ac_status=$?
24434 grep -v '^ *+' conftest.er1 >conftest.err
24435 rm -f conftest.er1
24436 cat conftest.err >&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); } &&
b4e70030
JB
24439 { ac_try='test -z "$ac_c_werror_flag"
24440 || test ! -s conftest.err'
bec39cab
AC
24441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442 (eval $ac_try) 2>&5
24443 ac_status=$?
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); }; } &&
24446 { ac_try='test -s conftest.$ac_objext'
24447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448 (eval $ac_try) 2>&5
24449 ac_status=$?
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); }; }; then
4536bbc6
AC
24452 WARN_CFLAGS="${WARN_CFLAGS} $w"
24453else
bec39cab
AC
24454 echo "$as_me: failed program was:" >&5
24455sed 's/^/| /' conftest.$ac_ext >&5
24456
4536bbc6 24457fi
bec39cab 24458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 24459 CFLAGS="$saved_CFLAGS"
746a987d
AC
24460 esac
24461 done
aa79a185
DJ
24462 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24463echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
24464fi
24465
24466
104c1213 24467
7a292a7a 24468# In the Cygwin environment, we need some additional flags.
b4e70030
JB
24469echo "$as_me:$LINENO: checking for cygwin" >&5
24470echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
24471if test "${gdb_cv_os_cygwin+set}" = set; then
24472 echo $ECHO_N "(cached) $ECHO_C" >&6
24473else
24474 cat >conftest.$ac_ext <<_ACEOF
24475/* confdefs.h. */
24476_ACEOF
24477cat confdefs.h >>conftest.$ac_ext
24478cat >>conftest.$ac_ext <<_ACEOF
24479/* end confdefs.h. */
7a292a7a
SS
24480
24481#if defined (__CYGWIN__) || defined (__CYGWIN32__)
24482lose
24483#endif
bec39cab 24484_ACEOF
7a292a7a 24485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 24486 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
24487 gdb_cv_os_cygwin=yes
24488else
7a292a7a
SS
24489 gdb_cv_os_cygwin=no
24490fi
24491rm -f conftest*
24492
24493fi
b4e70030
JB
24494echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24495echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 24496
aff38e61 24497
3eb25fda 24498SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 24499case ${host} in
95cbc983
AC
24500 *go32* ) SER_HARDWIRE=ser-go32.o ;;
24501 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 24502 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
24503esac
24504
24505
cd0fc7c3
SS
24506# libreadline needs libuser32.a in a cygwin environment
24507WIN32LIBS=
24508if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
24509 WIN32LIBS="-luser32"
24510 case "${target}" in
24511 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24512 ;;
24513 esac
cd0fc7c3 24514fi
c906108c 24515
b4505029
MM
24516# The ser-tcp.c module requires sockets.
24517case ${host} in
24518 *mingw32*)
24519
24520cat >>confdefs.h <<\_ACEOF
24521#define USE_WIN32API 1
24522_ACEOF
24523
24524 WIN32LIBS="$WIN32LIBS -lws2_32"
24525 ;;
24526esac
24527
7a292a7a 24528
31d99776
DJ
24529# Add ELF support to GDB, but only if BFD includes ELF support.
24530OLD_CFLAGS=$CFLAGS
24531OLD_LDFLAGS=$LDFLAGS
24532OLD_LIBS=$LIBS
cab58a69 24533CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 24534LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9 24535intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
0f72fb1c 24536LIBS="-lbfd -liberty $intl $LIBS"
31d99776
DJ
24537echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24538echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24539if test "${gdb_cv_var_elf+set}" = set; then
24540 echo $ECHO_N "(cached) $ECHO_C" >&6
24541else
24542 cat >conftest.$ac_ext <<_ACEOF
24543/* confdefs.h. */
24544_ACEOF
24545cat confdefs.h >>conftest.$ac_ext
24546cat >>conftest.$ac_ext <<_ACEOF
24547/* end confdefs.h. */
24548#include <stdlib.h>
24549#include "bfd.h"
24550#include "elf-bfd.h"
24551
24552int
24553main ()
24554{
24555bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24556 ;
24557 return 0;
24558}
24559_ACEOF
24560rm -f conftest.$ac_objext conftest$ac_exeext
24561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24562 (eval $ac_link) 2>conftest.er1
24563 ac_status=$?
24564 grep -v '^ *+' conftest.er1 >conftest.err
24565 rm -f conftest.er1
24566 cat conftest.err >&5
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); } &&
24569 { ac_try='test -z "$ac_c_werror_flag"
24570 || test ! -s conftest.err'
24571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); }; } &&
24576 { ac_try='test -s conftest$ac_exeext'
24577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24578 (eval $ac_try) 2>&5
24579 ac_status=$?
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); }; }; then
24582 gdb_cv_var_elf=yes
24583else
24584 echo "$as_me: failed program was:" >&5
24585sed 's/^/| /' conftest.$ac_ext >&5
24586
24587gdb_cv_var_elf=no
24588fi
24589rm -f conftest.err conftest.$ac_objext \
24590 conftest$ac_exeext conftest.$ac_ext
24591fi
24592echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24593echo "${ECHO_T}$gdb_cv_var_elf" >&6
24594if test $gdb_cv_var_elf = yes; then
24595 CONFIG_OBS="$CONFIG_OBS elfread.o"
24596
24597cat >>confdefs.h <<\_ACEOF
24598#define HAVE_ELF 1
24599_ACEOF
24600
24601fi
24602CFLAGS=$OLD_CFLAGS
24603LDFLAGS=$OLD_LDFLAGS
24604LIBS=$OLD_LIBS
24605
121ce6e5
DJ
24606# Add any host-specific objects to GDB.
24607CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24608
3fc11d3e
JM
24609LIBGUI="../libgui/src/libgui.a"
24610GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24611
24612
7a292a7a 24613
3fc11d3e
JM
24614WIN32LDAPP=
24615
24616
24617
d91670b9 24618case "${host}" in
686a5eed 24619*-*-cygwin* | *-*-mingw* )
d91670b9
CV
24620 configdir="win"
24621 ;;
24622*)
24623 configdir="unix"
24624 ;;
24625esac
3fc11d3e
JM
24626
24627GDBTKLIBS=
24628if test "${enable_gdbtk}" = "yes"; then
24629
d1c3b63a
KS
24630 # Gdbtk must have an absolute path to srcdir in order to run
24631 # properly when not installed.
24632 here=`pwd`
24633 cd ${srcdir}
24634 GDBTK_SRC_DIR=`pwd`
24635 cd $here
24636
bec39cab 24637
5062cc19
KS
24638 #
24639 # Ok, lets find the tcl configuration
24640 # First, look for one uninstalled.
24641 # the alternative search directory is invoked by --with-tcl
24642 #
3fc11d3e 24643
5062cc19
KS
24644 if test x"${no_tcl}" = x ; then
24645 # we reset no_tcl in case something fails here
24646 no_tcl=true
bec39cab 24647
5062cc19
KS
24648# Check whether --with-tcl or --without-tcl was given.
24649if test "${with_tcl+set}" = set; then
24650 withval="$with_tcl"
b4e70030
JB
24651 with_tclconfig=${withval}
24652fi;
5062cc19 24653 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
b4e70030 24654echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
5062cc19 24655 if test "${ac_cv_c_tclconfig+set}" = set; then
bec39cab 24656 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24657else
bec39cab 24658
3fc11d3e 24659
5062cc19
KS
24660 # First check to see if --with-tcl was specified.
24661 case "${host}" in
24662 *-*-cygwin*) platDir="win" ;;
24663 *) platDir="unix" ;;
24664 esac
24665 if test x"${with_tclconfig}" != x ; then
24666 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24667 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24668 else
24669 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
bec39cab
AC
24670echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24671 { (exit 1); exit 1; }; }
5062cc19
KS
24672 fi
24673 fi
24674
24675 # then check for a private Tcl installation
24676 if test x"${ac_cv_c_tclconfig}" = x ; then
24677 for i in \
24678 ../tcl \
24679 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24680 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
24681 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
24682 ../../tcl \
24683 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24684 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
24685 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
24686 ../../../tcl \
24687 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24688 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
24689 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
24690 if test -f "$i/$platDir/tclConfig.sh" ; then
24691 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24692 break
24693 fi
24694 done
24695 fi
24696
24697 # on Darwin, check in Framework installation locations
24698 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
24699 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24700 `ls -d /Library/Frameworks 2>/dev/null` \
24701 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24702 `ls -d /System/Library/Frameworks 2>/dev/null` \
24703 ; do
24704 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
24705 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
24706 break
24707 fi
24708 done
24709 fi
24710
24711 # check in a few common install locations
24712 if test x"${ac_cv_c_tclconfig}" = x ; then
24713 for i in `ls -d ${libdir} 2>/dev/null` \
24714 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24715 `ls -d ${prefix}/lib 2>/dev/null` \
24716 `ls -d /usr/local/lib 2>/dev/null` \
24717 `ls -d /usr/contrib/lib 2>/dev/null` \
24718 `ls -d /usr/lib 2>/dev/null` \
24719 ; do
24720 if test -f "$i/tclConfig.sh" ; then
24721 ac_cv_c_tclconfig=`(cd $i; pwd)`
24722 break
24723 fi
24724 done
24725 fi
3fc11d3e 24726
5062cc19
KS
24727 # check in a few other private locations
24728 if test x"${ac_cv_c_tclconfig}" = x ; then
24729 for i in \
24730 ${srcdir}/../tcl \
24731 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24732 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
24733 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
24734 if test -f "$i/$platDir/tclConfig.sh" ; then
24735 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24736 break
24737 fi
24738 done
24739 fi
bec39cab 24740
3fc11d3e
JM
24741fi
24742
5062cc19
KS
24743
24744 if test x"${ac_cv_c_tclconfig}" = x ; then
24745 TCL_BIN_DIR="# no Tcl configs found"
24746 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
bec39cab 24747echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
5062cc19
KS
24748 exit 0
24749 else
24750 no_tcl=
24751 TCL_BIN_DIR=${ac_cv_c_tclconfig}
24752 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
24753echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
24754 fi
24755 fi
3fc11d3e
JM
24756
24757 if test -z "${no_tcl}"; then
bec39cab 24758
5062cc19
KS
24759 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
24760echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
bec39cab 24761
5062cc19
KS
24762 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
24763 echo "$as_me:$LINENO: result: loading" >&5
24764echo "${ECHO_T}loading" >&6
24765 . ${TCL_BIN_DIR}/tclConfig.sh
24766 else
24767 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
24768echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
24769 fi
bec39cab 24770
5062cc19
KS
24771 # eval is required to do the TCL_DBGX substitution
24772 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
24773 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
24774
24775 # If the TCL_BIN_DIR is the build directory (not the install directory),
24776 # then set the common variable name to the value of the build variables.
24777 # For example, the variable TCL_LIB_SPEC will be set to the value
24778 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
24779 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
24780 # installed and uninstalled version of Tcl.
24781 if test -f ${TCL_BIN_DIR}/Makefile ; then
24782 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
24783 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
24784 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
24785 elif test "`uname -s`" = "Darwin"; then
24786 # If Tcl was built as a framework, attempt to use the libraries
24787 # from the framework at the given location so that linking works
24788 # against Tcl.framework installed in an arbitary location.
24789 case ${TCL_DEFS} in
24790 *TCL_FRAMEWORK*)
24791 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
24792 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
24793 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
24794 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
24795 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
24796 break
24797 fi
24798 done
24799 fi
24800 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
24801 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
24802 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
24803 fi
24804 ;;
24805 esac
24806 fi
bec39cab 24807
5062cc19
KS
24808 # eval is required to do the TCL_DBGX substitution
24809 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
24810 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
24811 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
24812 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
bec39cab
AC
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
3fc11d3e 24827
5062cc19
KS
24828 # Check for in-tree tcl
24829 here=`pwd`
24830 cd ${srcdir}/..
24831 topdir=`pwd`
24832 cd ${here}
bec39cab 24833
5062cc19
KS
24834 intree="no"
24835 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
24836 intree="yes"
24837 fi
bec39cab 24838
5062cc19
KS
24839 # Find Tcl private headers
24840 if test x"${intree}" = xno; then
3fc11d3e 24841
5062cc19
KS
24842 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
24843echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
24844 private_dir=""
24845 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
24846 if test -f ${dir}/tclInt.h ; then
24847 private_dir=${dir}
3fc11d3e
JM
24848 fi
24849
5062cc19
KS
24850 if test x"${private_dir}" = x; then
24851 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
24852echo "$as_me: error: could not find private Tcl headers" >&2;}
24853 { (exit 1); exit 1; }; }
3fc11d3e 24854 else
5062cc19
KS
24855 TCL_PRIVATE_INCLUDE="-I${private_dir}"
24856 echo "$as_me:$LINENO: result: ${private_dir}" >&5
24857echo "${ECHO_T}${private_dir}" >&6
3fc11d3e 24858 fi
3fc11d3e 24859
5062cc19
KS
24860 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
24861 TCL_LIBRARY="${TCL_LIB_SPEC}"
24862 TCL_DEPS=""
24863 else
24864 # If building tcl in the same src tree, private headers
24865 # are not needed, but we need to be sure to use the right
24866 # headers library
24867 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
24868 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
24869 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
24870 fi
3fc11d3e 24871
dd2504ab 24872
dd2504ab 24873
dd2504ab 24874
3fc11d3e
JM
24875 # If $no_tk is nonempty, then we can't do Tk, and there is no
24876 # point to doing Tcl.
24877 if test -z "${no_tk}"; then
bec39cab 24878
5062cc19
KS
24879 #
24880 # Ok, lets find the tk configuration
24881 # First, look for one uninstalled.
24882 # the alternative search directory is invoked by --with-tk
24883 #
3fc11d3e 24884
5062cc19
KS
24885 if test x"${no_tk}" = x ; then
24886 # we reset no_tk in case something fails here
24887 no_tk=true
bec39cab 24888
5062cc19
KS
24889# Check whether --with-tk or --without-tk was given.
24890if test "${with_tk+set}" = set; then
24891 withval="$with_tk"
24892 with_tkconfig=${withval}
b4e70030 24893fi;
5062cc19
KS
24894 echo "$as_me:$LINENO: checking for Tk configuration" >&5
24895echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
24896 if test "${ac_cv_c_tkconfig+set}" = set; then
bec39cab
AC
24897 echo $ECHO_N "(cached) $ECHO_C" >&6
24898else
3fc11d3e
JM
24899
24900
5062cc19
KS
24901 # First check to see if --with-tkconfig was specified.
24902 if test x"${with_tkconfig}" != x ; then
24903 if test -f "${with_tkconfig}/tkConfig.sh" ; then
24904 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
24905 else
24906 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
24907echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
bec39cab 24908 { (exit 1); exit 1; }; }
5062cc19
KS
24909 fi
24910 fi
3fc11d3e 24911
5062cc19
KS
24912 # then check for a private Tk library
24913 case "${host}" in
24914 *-*-cygwin*) platDir="win" ;;
24915 *) platDir="unix" ;;
24916 esac
24917 if test x"${ac_cv_c_tkconfig}" = x ; then
24918 for i in \
24919 ../tk \
24920 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24921 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
24922 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
24923 ../../tk \
24924 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24925 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
24926 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
24927 ../../../tk \
24928 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24929 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
24930 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
24931 if test -f "$i/$platDir/tkConfig.sh" ; then
24932 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
24933 break
24934 fi
24935 done
24936 fi
24937
24938 # on Darwin, check in Framework installation locations
24939 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
24940 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24941 `ls -d /Library/Frameworks 2>/dev/null` \
24942 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24943 `ls -d /System/Library/Frameworks 2>/dev/null` \
24944 ; do
24945 if test -f "$i/Tk.framework/tkConfig.sh" ; then
24946 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
24947 break
24948 fi
24949 done
24950 fi
24951
24952 # check in a few common install locations
24953 if test x"${ac_cv_c_tkconfig}" = x ; then
24954 for i in `ls -d ${libdir} 2>/dev/null` \
24955 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24956 `ls -d ${prefix}/lib 2>/dev/null` \
24957 `ls -d /usr/local/lib 2>/dev/null` \
24958 `ls -d /usr/contrib/lib 2>/dev/null` \
24959 `ls -d /usr/lib 2>/dev/null` \
24960 ; do
24961 if test -f "$i/tkConfig.sh" ; then
24962 ac_cv_c_tkconfig=`(cd $i; pwd)`
24963 break
24964 fi
24965 done
24966 fi
24967 # check in a few other private locations
24968 if test x"${ac_cv_c_tkconfig}" = x ; then
24969 for i in \
24970 ${srcdir}/../tk \
24971 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24972 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
24973 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
24974 if test -f "$i/$platDir/tkConfig.sh" ; then
24975 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
24976 break
24977 fi
24978 done
24979 fi
3fc11d3e 24980
3fc11d3e
JM
24981fi
24982
24983
5062cc19
KS
24984 if test x"${ac_cv_c_tkconfig}" = x ; then
24985 TK_BIN_DIR="# no Tk configs found"
24986 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
24987echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
24988 exit 0
24989 else
24990 no_tk=
24991 TK_BIN_DIR=${ac_cv_c_tkconfig}
24992 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
24993echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
24994 fi
3fc11d3e 24995 fi
dd2504ab 24996
dd2504ab 24997
5062cc19
KS
24998 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
24999echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
dd2504ab 25000
5062cc19
KS
25001 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
25002 echo "$as_me:$LINENO: result: loading" >&5
25003echo "${ECHO_T}loading" >&6
25004 . ${TK_BIN_DIR}/tkConfig.sh
3fc11d3e 25005 else
5062cc19
KS
25006 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
25007echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
3fc11d3e 25008 fi
bec39cab 25009
5062cc19
KS
25010 # eval is required to do the TK_DBGX substitution
25011 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
25012 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
25013
25014 # If the TK_BIN_DIR is the build directory (not the install directory),
25015 # then set the common variable name to the value of the build variables.
25016 # For example, the variable TK_LIB_SPEC will be set to the value
25017 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
25018 # instead of TK_BUILD_LIB_SPEC since it will work with both an
25019 # installed and uninstalled version of Tcl.
25020 if test -f ${TK_BIN_DIR}/Makefile ; then
25021 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
25022 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
25023 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
25024 elif test "`uname -s`" = "Darwin"; then
25025 # If Tk was built as a framework, attempt to use the libraries
25026 # from the framework at the given location so that linking works
25027 # against Tk.framework installed in an arbitary location.
25028 case ${TK_DEFS} in
25029 *TK_FRAMEWORK*)
25030 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
25031 for i in "`cd ${TK_BIN_DIR}; pwd`" \
25032 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
25033 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
25034 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
25035 break
25036 fi
25037 done
25038 fi
25039 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
25040 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
25041 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
25042 fi
25043 ;;
25044 esac
3fc11d3e
JM
25045 fi
25046
5062cc19
KS
25047 # eval is required to do the TK_DBGX substitution
25048 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
25049 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
25050 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
25051 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
3fc11d3e 25052
3fc11d3e
JM
25053
25054
bec39cab
AC
25055
25056
25057
25058
25059
25060
25061
3fc11d3e 25062
3fc11d3e 25063
bec39cab 25064
bec39cab 25065
5062cc19
KS
25066 # Check for in-tree Tk
25067 intree="no"
25068 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
25069 intree="yes"
25070 fi
3fc11d3e 25071
5062cc19
KS
25072 # Find Tk private headers
25073 if test x"${intree}" = xno; then
3fc11d3e 25074
5062cc19
KS
25075 echo "$as_me:$LINENO: checking for Tk private headers" >&5
25076echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
25077 private_dir=""
25078 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
25079 if test -f ${dir}/tkInt.h; then
25080 private_dir=${dir}
3fc11d3e 25081 fi
bec39cab 25082
5062cc19
KS
25083 if test x"${private_dir}" = x; then
25084 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
25085echo "$as_me: error: could not find Tk private headers" >&2;}
25086 { (exit 1); exit 1; }; }
3fc11d3e 25087 else
5062cc19
KS
25088 TK_PRIVATE_INCLUDE="-I${private_dir}"
25089 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25090echo "${ECHO_T}${private_dir}" >&6
3fc11d3e 25091 fi
3fc11d3e 25092
5062cc19
KS
25093 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
25094 TK_LIBRARY=${TK_LIB_SPEC}
25095 TK_DEPS=""
25096 else
25097 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
25098 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
25099 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
25100 fi
3fc11d3e
JM
25101
25102
3fc11d3e
JM
25103
25104
3fc11d3e 25105
4226a5a5 25106 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
25107
25108 # Include some libraries that Tcl and Tk want.
5062cc19 25109 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
25110 # Yes, the ordering seems wrong here. But it isn't.
25111 # TK_LIBS is the list of libraries that need to be linked
25112 # after Tcl/Tk. Note that this isn't put into LIBS. If it
25113 # were in LIBS then any link tests after this point would
25114 # try to include things like `$(LIBGUI)', which wouldn't work.
25115 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
25116
25117 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25118 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25119 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
25120 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25121 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25122 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25123 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
25124
25125 if test x$gdb_cv_os_cygwin = xyes; then
25126 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25127 WIN32LDAPP="-Wl,--subsystem,console"
25128 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25129 fi
25130 fi
25131 fi
ffc6a242 25132
b4e70030
JB
25133
25134
25135subdirs="$subdirs gdbtk"
3ace7edb 25136
3fc11d3e
JM
25137fi
25138
25139
25140
25141
25142
25143
25144
25145
b4e70030
JB
25146echo "$as_me:$LINENO: checking for X" >&5
25147echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 25148
c906108c 25149
b4e70030 25150# Check whether --with-x or --without-x was given.
c906108c 25151if test "${with_x+set}" = set; then
b4e70030 25152 withval="$with_x"
c906108c 25153
b4e70030 25154fi;
c906108c
SS
25155# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25156if test "x$with_x" = xno; then
25157 # The user explicitly disabled X.
25158 have_x=disabled
25159else
25160 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25161 # Both variables are already set.
25162 have_x=yes
25163 else
bec39cab
AC
25164 if test "${ac_cv_have_x+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
25166else
25167 # One or both of the vars are not set, and there is no cached value.
bec39cab 25168ac_x_includes=no ac_x_libraries=no
b4e70030 25169rm -fr conftest.dir
bec39cab
AC
25170if mkdir conftest.dir; then
25171 cd conftest.dir
c906108c 25172 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 25173 cat >Imakefile <<'_ACEOF'
c906108c
SS
25174acfindx:
25175 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 25176_ACEOF
b4e70030 25177 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
25178 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25179 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25180 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25181 for ac_extension in a so sl; do
25182 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
25183 test -f $ac_im_libdir/libX11.$ac_extension; then
25184 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
25185 fi
25186 done
25187 # Screen out bogus values from the imake configuration. They are
25188 # bogus both because they are the default anyway, and because
25189 # using them would break gcc on systems where it needs fixed includes.
bec39cab 25190 case $ac_im_incroot in
b4e70030 25191 /usr/include) ;;
bec39cab 25192 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 25193 esac
bec39cab 25194 case $ac_im_usrlibdir in
c906108c 25195 /usr/lib | /lib) ;;
bec39cab 25196 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
25197 esac
25198 fi
25199 cd ..
b4e70030 25200 rm -fr conftest.dir
c906108c
SS
25201fi
25202
bec39cab
AC
25203# Standard set of common directories for X headers.
25204# Check X11 before X11Rn because it is often a symlink to the current release.
25205ac_x_header_dirs='
25206/usr/X11/include
25207/usr/X11R6/include
25208/usr/X11R5/include
25209/usr/X11R4/include
25210
25211/usr/include/X11
25212/usr/include/X11R6
25213/usr/include/X11R5
25214/usr/include/X11R4
25215
25216/usr/local/X11/include
25217/usr/local/X11R6/include
25218/usr/local/X11R5/include
25219/usr/local/X11R4/include
25220
25221/usr/local/include/X11
25222/usr/local/include/X11R6
25223/usr/local/include/X11R5
25224/usr/local/include/X11R4
25225
25226/usr/X386/include
25227/usr/x386/include
25228/usr/XFree86/include/X11
25229
25230/usr/include
25231/usr/local/include
25232/usr/unsupported/include
25233/usr/athena/include
25234/usr/local/x11r5/include
25235/usr/lpp/Xamples/include
25236
25237/usr/openwin/include
25238/usr/openwin/share/include'
25239
25240if test "$ac_x_includes" = no; then
59f80f10 25241 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 25242 # First, try using that file with no special directory specified.
bec39cab
AC
25243 cat >conftest.$ac_ext <<_ACEOF
25244/* confdefs.h. */
25245_ACEOF
25246cat confdefs.h >>conftest.$ac_ext
25247cat >>conftest.$ac_ext <<_ACEOF
25248/* end confdefs.h. */
59f80f10 25249#include <X11/Intrinsic.h>
bec39cab
AC
25250_ACEOF
25251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25253 ac_status=$?
25254 grep -v '^ *+' conftest.er1 >conftest.err
25255 rm -f conftest.er1
25256 cat conftest.err >&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); } >/dev/null; then
25259 if test -s conftest.err; then
25260 ac_cpp_err=$ac_c_preproc_warn_flag
25261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25262 else
25263 ac_cpp_err=
25264 fi
25265else
25266 ac_cpp_err=yes
25267fi
25268if test -z "$ac_cpp_err"; then
c906108c
SS
25269 # We can compile using X headers with no special include directory.
25270ac_x_includes=
25271else
bec39cab
AC
25272 echo "$as_me: failed program was:" >&5
25273sed 's/^/| /' conftest.$ac_ext >&5
25274
25275 for ac_dir in $ac_x_header_dirs; do
59f80f10 25276 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
25277 ac_x_includes=$ac_dir
25278 break
25279 fi
25280done
c906108c 25281fi
bec39cab
AC
25282rm -f conftest.err conftest.$ac_ext
25283fi # $ac_x_includes = no
c906108c 25284
bec39cab 25285if test "$ac_x_libraries" = no; then
c906108c 25286 # Check for the libraries.
c906108c
SS
25287 # See if we find them without any special options.
25288 # Don't add to $LIBS permanently.
bec39cab 25289 ac_save_LIBS=$LIBS
4e8d927d 25290 LIBS="-lXt $LIBS"
bec39cab
AC
25291 cat >conftest.$ac_ext <<_ACEOF
25292/* confdefs.h. */
25293_ACEOF
25294cat confdefs.h >>conftest.$ac_ext
25295cat >>conftest.$ac_ext <<_ACEOF
25296/* end confdefs.h. */
59f80f10 25297#include <X11/Intrinsic.h>
bec39cab
AC
25298int
25299main ()
25300{
59f80f10 25301XtMalloc (0)
bec39cab
AC
25302 ;
25303 return 0;
25304}
25305_ACEOF
25306rm -f conftest.$ac_objext conftest$ac_exeext
25307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25308 (eval $ac_link) 2>conftest.er1
25309 ac_status=$?
25310 grep -v '^ *+' conftest.er1 >conftest.err
25311 rm -f conftest.er1
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } &&
b4e70030
JB
25315 { ac_try='test -z "$ac_c_werror_flag"
25316 || test ! -s conftest.err'
bec39cab
AC
25317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25318 (eval $ac_try) 2>&5
25319 ac_status=$?
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); }; } &&
25322 { ac_try='test -s conftest$ac_exeext'
25323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); }; }; then
25328 LIBS=$ac_save_LIBS
c906108c
SS
25329# We can link X programs with no special library path.
25330ac_x_libraries=
25331else
bec39cab
AC
25332 echo "$as_me: failed program was:" >&5
25333sed 's/^/| /' conftest.$ac_ext >&5
25334
b4e70030 25335LIBS=$ac_save_LIBS
bec39cab 25336for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 25337do
bec39cab 25338 # Don't even attempt the hair of trying to link an X program!
c906108c 25339 for ac_extension in a so sl; do
b4e70030 25340 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
25341 ac_x_libraries=$ac_dir
25342 break 2
25343 fi
25344 done
25345done
25346fi
bec39cab
AC
25347rm -f conftest.err conftest.$ac_objext \
25348 conftest$ac_exeext conftest.$ac_ext
25349fi # $ac_x_libraries = no
c906108c 25350
bec39cab 25351if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
25352 # Didn't find X anywhere. Cache the known absence of X.
25353 ac_cv_have_x="have_x=no"
25354else
25355 # Record where we found X for the cache.
25356 ac_cv_have_x="have_x=yes \
bec39cab 25357 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
25358fi
25359fi
bec39cab 25360
c906108c
SS
25361 fi
25362 eval "$ac_cv_have_x"
25363fi # $with_x != no
25364
25365if test "$have_x" != yes; then
b4e70030
JB
25366 echo "$as_me:$LINENO: result: $have_x" >&5
25367echo "${ECHO_T}$have_x" >&6
c906108c
SS
25368 no_x=yes
25369else
25370 # If each of the values was on the command line, it overrides each guess.
25371 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25372 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25373 # Update the cache value to reflect the command line values.
25374 ac_cv_have_x="have_x=yes \
25375 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
25376 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25377echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
25378fi
25379
25380
9cc52bde
MK
25381# Check whether we should enable the TUI, but only do so if we really
25382# can.
3ca64bd3 25383if test x"$enable_tui" != xno; then
9cc52bde
MK
25384 if test -d $srcdir/tui; then
25385 if test "$ac_cv_search_waddstr" != no; then
25386 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25387 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25388 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9cc52bde
MK
25389 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25390 CONFIG_ALL="${CONFIG_ALL} all-tui"
25391 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25392 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25393 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25394 else
3ca64bd3
JK
25395 if test x"$enable_tui" = xyes; then
25396 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
25397echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
25398 { (exit 1); exit 1; }; }
25399 else
25400 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
bec39cab 25401echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
3ca64bd3 25402 fi
9cc52bde
MK
25403 fi
25404 fi
25405fi
25406
bec39cab 25407# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 25408# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
25409# This code just checks for a few cases where we'd like to ignore those
25410# definitions, even when they're present in the '.mt' file. These cases
25411# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 25412# not part of the source tree.
7a292a7a 25413#
b4e70030 25414# Check whether --enable-sim or --disable-sim was given.
7a292a7a 25415if test "${enable_sim+set}" = set; then
b4e70030
JB
25416 enableval="$enable_sim"
25417 echo "enable_sim = $enable_sim";
7a292a7a
SS
25418 echo "enableval = ${enableval}";
25419 case "${enableval}" in
25420 yes) ignore_sim=false ;;
25421 no) ignore_sim=true ;;
25422 *) ignore_sim=false ;;
25423 esac
25424else
25425 ignore_sim=false
b4e70030 25426fi;
7a292a7a
SS
25427
25428if test ! -d "${srcdir}/../sim"; then
25429 ignore_sim=true
25430fi
25431
9b624dbe
UW
25432SIM=
25433SIM_OBS=
25434if test "${ignore_sim}" = "false"; then
25435 if test x"${gdb_sim}" != x ; then
25436 SIM="${gdb_sim}"
25437 SIM_OBS="remote-sim.o"
60ca704f
SE
25438
25439cat >>confdefs.h <<\_ACEOF
7a292a7a 25440#define WITH_SIM 1
bec39cab 25441_ACEOF
7a292a7a 25442
9b624dbe 25443 fi
7a292a7a
SS
25444fi
25445
25446
25447
c906108c
SS
25448
25449
25450
25451
25452
25453
dfcd3bfb 25454
e56ac5c3
AC
25455
25456
b3a90332
AC
25457
25458
c35f4ffc 25459# List of host floatformats.
bec39cab
AC
25460
25461cat >>confdefs.h <<_ACEOF
c35f4ffc 25462#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 25463_ACEOF
c35f4ffc 25464
bec39cab
AC
25465
25466cat >>confdefs.h <<_ACEOF
c35f4ffc 25467#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
25468_ACEOF
25469
c35f4ffc 25470
bec39cab 25471cat >>confdefs.h <<_ACEOF
c35f4ffc 25472#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 25473_ACEOF
c35f4ffc
AC
25474
25475
c906108c
SS
25476# target_subdir is used by the testsuite to find the target libraries.
25477target_subdir=
25478if test "${host}" != "${target}"; then
25479 target_subdir="${target_alias}/"
25480fi
25481
25482
25483frags=
771b4502 25484if test "${gdb_native}" = "yes"; then
0dad8a66
MK
25485 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25486 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
25487 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25488echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25489 { (exit 1); exit 1; }; }
0dad8a66
MK
25490 fi
25491 frags="$frags $host_makefile_frag"
25492else
25493 host_makefile_frag=/dev/null
c906108c 25494fi
c906108c 25495
c906108c
SS
25496
25497
25498
771b4502 25499if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
25500# We pick this up from the host configuration file (.mh) because we
25501# do not have a native configuration Makefile fragment.
c906108c
SS
25502nativefile=`sed -n '
25503s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25504' ${host_makefile_frag}`
c906108c
SS
25505fi
25506
25507
b00a8037 25508if test x"${gdb_osabi}" != x ; then
bec39cab
AC
25509
25510cat >>confdefs.h <<_ACEOF
b00a8037 25511#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 25512_ACEOF
b00a8037
DJ
25513
25514fi
25515
8dcde887 25516# Enable multi-ice-gdb-server.
b4e70030 25517# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 25518if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
25519 enableval="$enable_multi_ice"
25520 case $enableval in
8dcde887
MK
25521 yes | no)
25522 ;;
bec39cab
AC
25523 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25524echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25525 { (exit 1); exit 1; }; } ;;
8dcde887 25526 esac
b4e70030 25527fi;
4e8d927d 25528if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
25529
25530
25531subdirs="$subdirs multi-ice"
3ace7edb 25532
a85f51e7
DJ
25533fi
25534
a13e2c95
UW
25535# We only build gdbserver automatically in a native configuration.
25536if test "$gdb_native" = "yes"; then
b4e70030
JB
25537 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25538echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 25539 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
25540 echo "$as_me:$LINENO: result: yes" >&5
25541echo "${ECHO_T}yes" >&6
25542
25543
25544subdirs="$subdirs gdbserver"
3ace7edb 25545
8dcde887 25546 else
b4e70030
JB
25547 echo "$as_me:$LINENO: result: no" >&5
25548echo "${ECHO_T}no" >&6
8dcde887
MK
25549 fi
25550fi
25551
db985757 25552# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 25553# to an empty version.
c906108c
SS
25554
25555files=
25556links=
5a2402b8 25557
c906108c 25558rm -f nm.h
5a2402b8 25559nm_h=""
c906108c 25560if test "${nativefile}" != ""; then
5a2402b8 25561 nm_h=nm.h
0f475e27
AC
25562 case "${nativefile}" in
25563 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25564 * ) GDB_NM_FILE="${nativefile}"
25565 esac
5a2402b8
AC
25566 files="${files} ${GDB_NM_FILE}"
25567 links="${links} nm.h"
60ca704f
SE
25568
25569cat >>confdefs.h <<_ACEOF
b78960be 25570#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 25571_ACEOF
5a2402b8 25572
c906108c 25573fi
5a2402b8
AC
25574
25575
bec39cab
AC
25576ac_sources="$files"
25577ac_dests="$links"
25578while test -n "$ac_sources"; do
25579 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25580 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25581 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25582done
b4e70030 25583 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
25584
25585
c906108c
SS
25586
25587
c906108c 25588
c906108c 25589
bec39cab
AC
25590cat >>confdefs.h <<\_ACEOF
25591#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25592_ACEOF
c906108c 25593
234b45d4 25594
234b45d4
KB
25595
25596
25597
b4e70030 25598# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 25599if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
25600 withval="$with_libiconv_prefix"
25601
234b45d4
KB
25602 for dir in `echo "$withval" | tr : ' '`; do
25603 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25604 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25605 done
234b45d4 25606
b4e70030 25607fi;
234b45d4 25608
b4e70030
JB
25609 echo "$as_me:$LINENO: checking for iconv" >&5
25610echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
25611if test "${am_cv_func_iconv+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 25613else
bec39cab 25614
234b45d4
KB
25615 am_cv_func_iconv="no, consider installing GNU libiconv"
25616 am_cv_lib_iconv=no
bec39cab
AC
25617 cat >conftest.$ac_ext <<_ACEOF
25618/* confdefs.h. */
25619_ACEOF
25620cat confdefs.h >>conftest.$ac_ext
25621cat >>conftest.$ac_ext <<_ACEOF
25622/* end confdefs.h. */
234b45d4
KB
25623#include <stdlib.h>
25624#include <iconv.h>
bec39cab
AC
25625int
25626main ()
25627{
234b45d4
KB
25628iconv_t cd = iconv_open("","");
25629 iconv(cd,NULL,NULL,NULL,NULL);
25630 iconv_close(cd);
bec39cab
AC
25631 ;
25632 return 0;
25633}
25634_ACEOF
25635rm -f conftest.$ac_objext conftest$ac_exeext
25636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25637 (eval $ac_link) 2>conftest.er1
25638 ac_status=$?
25639 grep -v '^ *+' conftest.er1 >conftest.err
25640 rm -f conftest.er1
25641 cat conftest.err >&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); } &&
b4e70030
JB
25644 { ac_try='test -z "$ac_c_werror_flag"
25645 || test ! -s conftest.err'
bec39cab
AC
25646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647 (eval $ac_try) 2>&5
25648 ac_status=$?
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); }; } &&
25651 { ac_try='test -s conftest$ac_exeext'
25652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); }; }; then
234b45d4
KB
25657 am_cv_func_iconv=yes
25658else
bec39cab
AC
25659 echo "$as_me: failed program was:" >&5
25660sed 's/^/| /' conftest.$ac_ext >&5
25661
234b45d4 25662fi
bec39cab
AC
25663rm -f conftest.err conftest.$ac_objext \
25664 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25665 if test "$am_cv_func_iconv" != yes; then
25666 am_save_LIBS="$LIBS"
25667 LIBS="$LIBS -liconv"
bec39cab
AC
25668 cat >conftest.$ac_ext <<_ACEOF
25669/* confdefs.h. */
25670_ACEOF
25671cat confdefs.h >>conftest.$ac_ext
25672cat >>conftest.$ac_ext <<_ACEOF
25673/* end confdefs.h. */
234b45d4
KB
25674#include <stdlib.h>
25675#include <iconv.h>
bec39cab
AC
25676int
25677main ()
25678{
234b45d4
KB
25679iconv_t cd = iconv_open("","");
25680 iconv(cd,NULL,NULL,NULL,NULL);
25681 iconv_close(cd);
bec39cab
AC
25682 ;
25683 return 0;
25684}
25685_ACEOF
25686rm -f conftest.$ac_objext conftest$ac_exeext
25687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25688 (eval $ac_link) 2>conftest.er1
25689 ac_status=$?
25690 grep -v '^ *+' conftest.er1 >conftest.err
25691 rm -f conftest.er1
25692 cat conftest.err >&5
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } &&
b4e70030
JB
25695 { ac_try='test -z "$ac_c_werror_flag"
25696 || test ! -s conftest.err'
bec39cab
AC
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; } &&
25702 { ac_try='test -s conftest$ac_exeext'
25703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25704 (eval $ac_try) 2>&5
25705 ac_status=$?
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); }; }; then
234b45d4
KB
25708 am_cv_lib_iconv=yes
25709 am_cv_func_iconv=yes
25710else
bec39cab
AC
25711 echo "$as_me: failed program was:" >&5
25712sed 's/^/| /' conftest.$ac_ext >&5
25713
234b45d4 25714fi
bec39cab
AC
25715rm -f conftest.err conftest.$ac_objext \
25716 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25717 LIBS="$am_save_LIBS"
25718 fi
bec39cab
AC
25719
25720fi
b4e70030
JB
25721echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25722echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
25723 if test "$am_cv_func_iconv" = yes; then
25724
25725cat >>confdefs.h <<\_ACEOF
25726#define HAVE_ICONV 1
25727_ACEOF
25728
b4e70030
JB
25729 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25730echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
25731 if test "${am_cv_proto_iconv+set}" = set; then
25732 echo $ECHO_N "(cached) $ECHO_C" >&6
25733else
25734
25735 cat >conftest.$ac_ext <<_ACEOF
25736/* confdefs.h. */
25737_ACEOF
25738cat confdefs.h >>conftest.$ac_ext
25739cat >>conftest.$ac_ext <<_ACEOF
25740/* end confdefs.h. */
25741
25742#include <stdlib.h>
25743#include <iconv.h>
25744extern
25745#ifdef __cplusplus
25746"C"
25747#endif
25748#if defined(__STDC__) || defined(__cplusplus)
25749size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25750#else
25751size_t iconv();
25752#endif
25753
25754int
25755main ()
25756{
25757
25758 ;
25759 return 0;
25760}
25761_ACEOF
25762rm -f conftest.$ac_objext
25763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25764 (eval $ac_compile) 2>conftest.er1
25765 ac_status=$?
25766 grep -v '^ *+' conftest.er1 >conftest.err
25767 rm -f conftest.er1
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } &&
b4e70030
JB
25771 { ac_try='test -z "$ac_c_werror_flag"
25772 || test ! -s conftest.err'
bec39cab
AC
25773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774 (eval $ac_try) 2>&5
25775 ac_status=$?
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); }; } &&
25778 { ac_try='test -s conftest.$ac_objext'
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; }; then
25784 am_cv_proto_iconv_arg1=""
25785else
25786 echo "$as_me: failed program was:" >&5
25787sed 's/^/| /' conftest.$ac_ext >&5
25788
b4e70030 25789am_cv_proto_iconv_arg1="const"
bec39cab
AC
25790fi
25791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25792 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);"
25793fi
25794
25795 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 25796 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
25797 }$am_cv_proto_iconv" >&5
25798echo "${ECHO_T}${ac_t:-
b4e70030 25799 }$am_cv_proto_iconv" >&6
bec39cab
AC
25800
25801cat >>confdefs.h <<_ACEOF
25802#define ICONV_CONST $am_cv_proto_iconv_arg1
25803_ACEOF
25804
25805 fi
25806 LIBICONV=
25807 if test "$am_cv_lib_iconv" = yes; then
25808 LIBICONV="-liconv"
25809 fi
25810
25811
25812
e28b3332 25813 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
b4e70030 25814 ac_config_commands="$ac_config_commands default"
bec39cab
AC
25815cat >confcache <<\_ACEOF
25816# This file is a shell script that caches the results of configure
25817# tests run on this system so they can be shared between configure
25818# scripts and configure runs, see configure's option --config-cache.
25819# It is not useful on other systems. If it contains results you don't
25820# want to keep, you may remove or edit it.
25821#
25822# config.status only pays attention to the cache file if you give it
25823# the --recheck option to rerun configure.
25824#
25825# `ac_cv_env_foo' variables (set or unset) will be overridden when
25826# loading this file, other *unset* `ac_cv_foo' will be assigned the
25827# following values.
25828
25829_ACEOF
25830
25831# The following way of writing the cache mishandles newlines in values,
25832# but we know of no workaround that is simple, portable, and efficient.
b4e70030 25833# So, don't put newlines in cache variables' values.
bec39cab
AC
25834# Ultrix sh set writes to stderr and can't be redirected directly,
25835# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 25836{
bec39cab 25837 (set) 2>&1 |
b4e70030
JB
25838 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25839 *ac_space=\ *)
bec39cab
AC
25840 # `set' does not quote correctly, so add quotes (double-quote
25841 # substitution turns \\\\ into \\, and sed turns \\ into \).
25842 sed -n \
25843 "s/'/'\\\\''/g;
25844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 25845 ;;
bec39cab
AC
25846 *)
25847 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
25848 sed -n \
25849 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 25850 ;;
b4e70030
JB
25851 esac;
25852} |
bec39cab
AC
25853 sed '
25854 t clear
b4e70030 25855 : clear
bec39cab
AC
25856 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25857 t end
b4e70030
JB
25858 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25859 : end' >>confcache
bec39cab
AC
25860if diff $cache_file confcache >/dev/null 2>&1; then :; else
25861 if test -w $cache_file; then
b4e70030 25862 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
25863 cat confcache >$cache_file
25864 else
b4e70030 25865 echo "not updating unwritable cache $cache_file"
bec39cab
AC
25866 fi
25867fi
25868rm -f confcache
25869
25870test "x$prefix" = xNONE && prefix=$ac_default_prefix
25871# Let make expand exec_prefix.
25872test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25873
b4e70030
JB
25874# VPATH may cause trouble with some makes, so we remove $(srcdir),
25875# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25876# trailing colons and then remove the whole line if VPATH becomes empty
25877# (actually we leave an empty line to preserve line numbers).
25878if test "x$srcdir" = x.; then
25879 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25880s/:*\$(srcdir):*/:/;
25881s/:*\${srcdir}:*/:/;
25882s/:*@srcdir@:*/:/;
25883s/^\([^=]*=[ ]*\):*/\1/;
25884s/:*$//;
25885s/^[^=]*=[ ]*$//;
25886}'
25887fi
25888
bec39cab
AC
25889DEFS=-DHAVE_CONFIG_H
25890
25891ac_libobjs=
25892ac_ltlibobjs=
25893for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25894 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
25895 ac_i=`echo "$ac_i" |
25896 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25897 # 2. Add them.
25898 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25899 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
25900done
25901LIBOBJS=$ac_libobjs
25902
25903LTLIBOBJS=$ac_ltlibobjs
25904
25905
85981d60
AC
25906if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25907 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25908Usually this means the macro was only invoked conditionally." >&5
25909echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25910Usually this means the macro was only invoked conditionally." >&2;}
25911 { (exit 1); exit 1; }; }
25912fi
783e057b
DJ
25913if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25914 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
25915Usually this means the macro was only invoked conditionally." >&5
25916echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
25917Usually this means the macro was only invoked conditionally." >&2;}
25918 { (exit 1); exit 1; }; }
25919fi
25920
25921 gl_libobjs=
25922 gl_ltlibobjs=
25923 if test -n "$gl_LIBOBJS"; then
25924 # Remove the extension.
25925 sed_drop_objext='s/\.o$//;s/\.obj$//'
25926 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
25927 gl_libobjs="$gl_libobjs $i.$ac_objext"
25928 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25929 done
25930 fi
25931 gl_LIBOBJS=$gl_libobjs
25932
25933 gl_LTLIBOBJS=$gl_ltlibobjs
25934
25935
25936
25937 gltests_libobjs=
25938 gltests_ltlibobjs=
25939 if test -n "$gltests_LIBOBJS"; then
25940 # Remove the extension.
25941 sed_drop_objext='s/\.o$//;s/\.obj$//'
25942 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
25943 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25944 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25945 done
25946 fi
25947 gltests_LIBOBJS=$gltests_libobjs
25948
25949 gltests_LTLIBOBJS=$gltests_ltlibobjs
25950
25951
e28b3332
DJ
25952if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25953 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25954Usually this means the macro was only invoked conditionally." >&5
25955echo "$as_me: error: conditional \"AMDEP\" was never defined.
25956Usually this means the macro was only invoked conditionally." >&2;}
25957 { (exit 1); exit 1; }; }
25958fi
25959if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25960 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25961Usually this means the macro was only invoked conditionally." >&5
25962echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25963Usually this means the macro was only invoked conditionally." >&2;}
25964 { (exit 1); exit 1; }; }
25965fi
bec39cab
AC
25966
25967: ${CONFIG_STATUS=./config.status}
25968ac_clean_files_save=$ac_clean_files
25969ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25970{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25971echo "$as_me: creating $CONFIG_STATUS" >&6;}
25972cat >$CONFIG_STATUS <<_ACEOF
25973#! $SHELL
25974# Generated by $as_me.
25975# Run this file to recreate the current configuration.
25976# Compiler output produced by configure, useful for debugging
25977# configure, is in config.log if it exists.
25978
25979debug=false
25980ac_cs_recheck=false
25981ac_cs_silent=false
25982SHELL=\${CONFIG_SHELL-$SHELL}
25983_ACEOF
25984
25985cat >>$CONFIG_STATUS <<\_ACEOF
25986## --------------------- ##
25987## M4sh Initialization. ##
25988## --------------------- ##
25989
25990# Be Bourne compatible
25991if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25992 emulate sh
25993 NULLCMD=:
25994 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25995 # is contrary to our usage. Disable this feature.
25996 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
25997elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25998 set -o posix
bec39cab
AC
25999fi
26000DUALCASE=1; export DUALCASE # for MKS sh
26001
26002# Support unset when possible.
26003if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26004 as_unset=unset
26005else
26006 as_unset=false
26007fi
26008
26009
26010# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 26011$as_unset ENV MAIL MAILPATH
bec39cab
AC
26012PS1='$ '
26013PS2='> '
26014PS4='+ '
26015
26016# NLS nuisances.
26017for as_var in \
26018 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26019 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26020 LC_TELEPHONE LC_TIME
26021do
26022 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26023 eval $as_var=C; export $as_var
26024 else
b4e70030 26025 $as_unset $as_var
bec39cab
AC
26026 fi
26027done
26028
26029# Required to use basename.
b4e70030 26030if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
26031 as_expr=expr
26032else
26033 as_expr=false
26034fi
26035
b4e70030 26036if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
26037 as_basename=basename
26038else
26039 as_basename=false
26040fi
26041
26042
26043# Name of the executable.
b4e70030 26044as_me=`$as_basename "$0" ||
bec39cab
AC
26045$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26046 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
26047 X"$0" : 'X\(/\)$' \| \
26048 . : '\(.\)' 2>/dev/null ||
bec39cab 26049echo X/"$0" |
b4e70030
JB
26050 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26051 /^X\/\(\/\/\)$/{ s//\1/; q; }
26052 /^X\/\(\/\).*/{ s//\1/; q; }
26053 s/.*/./; q'`
bec39cab 26054
b4e70030
JB
26055
26056# PATH needs CR, and LINENO needs CR and PATH.
26057# Avoid depending upon Character Ranges.
26058as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26059as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26060as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26061as_cr_digits='0123456789'
26062as_cr_alnum=$as_cr_Letters$as_cr_digits
26063
26064# The user is always right.
26065if test "${PATH_SEPARATOR+set}" != set; then
26066 echo "#! /bin/sh" >conf$$.sh
26067 echo "exit 0" >>conf$$.sh
26068 chmod +x conf$$.sh
26069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26070 PATH_SEPARATOR=';'
26071 else
26072 PATH_SEPARATOR=:
26073 fi
26074 rm -f conf$$.sh
26075fi
bec39cab
AC
26076
26077
b4e70030
JB
26078 as_lineno_1=$LINENO
26079 as_lineno_2=$LINENO
26080 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26081 test "x$as_lineno_1" != "x$as_lineno_2" &&
26082 test "x$as_lineno_3" = "x$as_lineno_2" || {
26083 # Find who we are. Look in the path if we contain no path at all
26084 # relative or not.
26085 case $0 in
26086 *[\\/]* ) as_myself=$0 ;;
26087 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26088for as_dir in $PATH
26089do
26090 IFS=$as_save_IFS
26091 test -z "$as_dir" && as_dir=.
26092 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26093done
bec39cab 26094
b4e70030
JB
26095 ;;
26096 esac
26097 # We did not find ourselves, most probably we were run as `sh COMMAND'
26098 # in which case we are not to be found in the path.
26099 if test "x$as_myself" = x; then
26100 as_myself=$0
26101 fi
26102 if test ! -f "$as_myself"; then
26103 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26104echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26105 { (exit 1); exit 1; }; }
26106 fi
26107 case $CONFIG_SHELL in
26108 '')
26109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26110for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26111do
26112 IFS=$as_save_IFS
26113 test -z "$as_dir" && as_dir=.
26114 for as_base in sh bash ksh sh5; do
26115 case $as_dir in
26116 /*)
26117 if ("$as_dir/$as_base" -c '
bec39cab
AC
26118 as_lineno_1=$LINENO
26119 as_lineno_2=$LINENO
b4e70030 26120 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 26121 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
26122 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26123 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26124 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26125 CONFIG_SHELL=$as_dir/$as_base
26126 export CONFIG_SHELL
26127 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26128 fi;;
26129 esac
26130 done
26131done
26132;;
26133 esac
bec39cab
AC
26134
26135 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26136 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
26137 # line-number line before each line; the second 'sed' does the real
26138 # work. The second script uses 'N' to pair each line-number line
26139 # with the numbered line, and appends trailing '-' during
26140 # substitution so that $LINENO is not a special case at line end.
bec39cab 26141 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
26142 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26143 sed '=' <$as_myself |
bec39cab
AC
26144 sed '
26145 N
b4e70030
JB
26146 s,$,-,
26147 : loop
26148 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 26149 t loop
b4e70030
JB
26150 s,-$,,
26151 s,^['$as_cr_digits']*\n,,
bec39cab 26152 ' >$as_me.lineno &&
b4e70030
JB
26153 chmod +x $as_me.lineno ||
26154 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26155echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
26156 { (exit 1); exit 1; }; }
26157
26158 # Don't try to exec as it changes $[0], causing all sort of problems
26159 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
26160 # original and so on. Autoconf is especially sensible to this).
26161 . ./$as_me.lineno
bec39cab
AC
26162 # Exit status is that of the last command.
26163 exit
26164}
26165
26166
b4e70030
JB
26167case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26168 *c*,-n*) ECHO_N= ECHO_C='
26169' ECHO_T=' ' ;;
26170 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26171 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
26172esac
26173
b4e70030 26174if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
26175 as_expr=expr
26176else
26177 as_expr=false
26178fi
26179
26180rm -f conf$$ conf$$.exe conf$$.file
26181echo >conf$$.file
26182if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
26183 # We could just check for DJGPP; but this test a) works b) is more generic
26184 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26185 if test -f conf$$.exe; then
26186 # Don't use ln at all; we don't have any links
bec39cab 26187 as_ln_s='cp -p'
b4e70030
JB
26188 else
26189 as_ln_s='ln -s'
26190 fi
bec39cab
AC
26191elif ln conf$$.file conf$$ 2>/dev/null; then
26192 as_ln_s=ln
26193else
26194 as_ln_s='cp -p'
26195fi
b4e70030 26196rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
26197
26198if mkdir -p . 2>/dev/null; then
26199 as_mkdir_p=:
26200else
26201 test -d ./-p && rmdir ./-p
26202 as_mkdir_p=false
26203fi
26204
b4e70030 26205as_executable_p="test -f"
bec39cab
AC
26206
26207# Sed expression to map a string onto a valid CPP name.
26208as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26209
26210# Sed expression to map a string onto a valid variable name.
26211as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26212
26213
b4e70030
JB
26214# IFS
26215# We need space, tab and new line, in precisely that order.
26216as_nl='
26217'
26218IFS=" $as_nl"
26219
26220# CDPATH.
26221$as_unset CDPATH
26222
bec39cab
AC
26223exec 6>&1
26224
b4e70030 26225# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 26226# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
26227# values after options handling. Logging --version etc. is OK.
26228exec 5>>config.log
26229{
26230 echo
26231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26232## Running $as_me. ##
26233_ASBOX
26234} >&5
26235cat >&5 <<_CSEOF
26236
bec39cab 26237This file was extended by $as_me, which was
b4e70030 26238generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
26239
26240 CONFIG_FILES = $CONFIG_FILES
26241 CONFIG_HEADERS = $CONFIG_HEADERS
26242 CONFIG_LINKS = $CONFIG_LINKS
26243 CONFIG_COMMANDS = $CONFIG_COMMANDS
26244 $ $0 $@
26245
b4e70030
JB
26246_CSEOF
26247echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26248echo >&5
bec39cab
AC
26249_ACEOF
26250
26251# Files that config.status was made for.
b4e70030
JB
26252if test -n "$ac_config_files"; then
26253 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26254fi
234b45d4 26255
b4e70030
JB
26256if test -n "$ac_config_headers"; then
26257 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26258fi
26259
26260if test -n "$ac_config_links"; then
26261 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26262fi
26263
26264if test -n "$ac_config_commands"; then
26265 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26266fi
234b45d4 26267
bec39cab 26268cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 26269
bec39cab
AC
26270ac_cs_usage="\
26271\`$as_me' instantiates files from templates according to the
26272current configuration.
234b45d4 26273
bec39cab 26274Usage: $0 [OPTIONS] [FILE]...
234b45d4 26275
bec39cab
AC
26276 -h, --help print this help, then exit
26277 -V, --version print version number, then exit
26278 -q, --quiet do not print progress messages
26279 -d, --debug don't remove temporary files
26280 --recheck update $as_me by reconfiguring in the same conditions
26281 --file=FILE[:TEMPLATE]
26282 instantiate the configuration file FILE
26283 --header=FILE[:TEMPLATE]
26284 instantiate the configuration header FILE
234b45d4 26285
bec39cab
AC
26286Configuration files:
26287$config_files
234b45d4 26288
bec39cab
AC
26289Configuration headers:
26290$config_headers
234b45d4 26291
bec39cab
AC
26292Configuration links:
26293$config_links
234b45d4 26294
bec39cab
AC
26295Configuration commands:
26296$config_commands
26297
26298Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 26299_ACEOF
b4e70030 26300
bec39cab
AC
26301cat >>$CONFIG_STATUS <<_ACEOF
26302ac_cs_version="\\
26303config.status
b4e70030 26304configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
26305 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26306
b4e70030 26307Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
26308This config.status script is free software; the Free Software Foundation
26309gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
26310srcdir=$srcdir
26311INSTALL="$INSTALL"
bec39cab
AC
26312_ACEOF
26313
26314cat >>$CONFIG_STATUS <<\_ACEOF
26315# If no file are specified by the user, then we need to provide default
26316# value. By we need to know if files were specified by the user.
26317ac_need_defaults=:
26318while test $# != 0
26319do
26320 case $1 in
26321 --*=*)
b4e70030
JB
26322 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26323 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 26324 ac_shift=:
c906108c 26325 ;;
b4e70030 26326 -*)
bec39cab
AC
26327 ac_option=$1
26328 ac_optarg=$2
26329 ac_shift=shift
c906108c 26330 ;;
b4e70030
JB
26331 *) # This is not an option, so the user has probably given explicit
26332 # arguments.
26333 ac_option=$1
26334 ac_need_defaults=false;;
bec39cab 26335 esac
c906108c 26336
bec39cab
AC
26337 case $ac_option in
26338 # Handling of the options.
b4e70030
JB
26339_ACEOF
26340cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
26341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26342 ac_cs_recheck=: ;;
b4e70030
JB
26343 --version | --vers* | -V )
26344 echo "$ac_cs_version"; exit 0 ;;
26345 --he | --h)
26346 # Conflict between --help and --header
26347 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26348Try \`$0 --help' for more information." >&5
26349echo "$as_me: error: ambiguous option: $1
26350Try \`$0 --help' for more information." >&2;}
26351 { (exit 1); exit 1; }; };;
26352 --help | --hel | -h )
26353 echo "$ac_cs_usage"; exit 0 ;;
26354 --debug | --d* | -d )
bec39cab
AC
26355 debug=: ;;
26356 --file | --fil | --fi | --f )
26357 $ac_shift
26358 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26359 ac_need_defaults=false;;
26360 --header | --heade | --head | --hea )
26361 $ac_shift
26362 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26363 ac_need_defaults=false;;
26364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26365 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26366 ac_cs_silent=: ;;
c906108c 26367
bec39cab 26368 # This is an error.
b4e70030
JB
26369 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26370Try \`$0 --help' for more information." >&5
26371echo "$as_me: error: unrecognized option: $1
26372Try \`$0 --help' for more information." >&2;}
bec39cab 26373 { (exit 1); exit 1; }; } ;;
c906108c 26374
b4e70030 26375 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 26376
bec39cab
AC
26377 esac
26378 shift
26379done
c906108c 26380
bec39cab 26381ac_configure_extra_args=
c906108c 26382
bec39cab
AC
26383if $ac_cs_silent; then
26384 exec 6>/dev/null
26385 ac_configure_extra_args="$ac_configure_extra_args --silent"
26386fi
c906108c 26387
bec39cab
AC
26388_ACEOF
26389cat >>$CONFIG_STATUS <<_ACEOF
26390if \$ac_cs_recheck; then
b4e70030
JB
26391 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26392 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
26393fi
26394
26395_ACEOF
26396
26397cat >>$CONFIG_STATUS <<_ACEOF
c906108c 26398#
b4e70030 26399# INIT-COMMANDS section.
c906108c 26400#
c906108c 26401
e28b3332 26402AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 26403
bec39cab 26404gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
26405nativefile=$nativefile
26406
26407
26408_ACEOF
26409
4e8d927d 26410
b4e70030
JB
26411
26412cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 26413for ac_config_target in $ac_config_targets
c906108c 26414do
b4e70030
JB
26415 case "$ac_config_target" in
26416 # Handling of arguments.
26417 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26418 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
e28b3332 26419 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
b4e70030 26420 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
e28b3332 26421 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b4e70030
JB
26422 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26423 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
26424 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26425echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26426 { (exit 1); exit 1; }; };;
c906108c
SS
26427 esac
26428done
26429
bec39cab
AC
26430# If the user did not use the arguments to specify the items to instantiate,
26431# then the envvar interface is used. Set only those that are not.
26432# We use the long form for the default assignment because of an extremely
26433# bizarre bug on SunOS 4.1.3.
26434if $ac_need_defaults; then
26435 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26436 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26437 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26439fi
26440
b4e70030
JB
26441# Have a temporary directory for convenience. Make it in the build tree
26442# simply because there is no reason to put it here, and in addition,
26443# creating and moving files from /tmp can sometimes cause problems.
26444# Create a temporary directory, and hook for its removal unless debugging.
26445$debug ||
26446{
26447 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26448 trap '{ (exit 1); exit 1; }' 1 2 13 15
26449}
4e8d927d 26450
b4e70030 26451# Create a (secure) tmp directory for tmp files.
4e8d927d 26452
b4e70030
JB
26453{
26454 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26455 test -n "$tmp" && test -d "$tmp"
26456} ||
26457{
26458 tmp=./confstat$$-$RANDOM
26459 (umask 077 && mkdir $tmp)
26460} ||
26461{
26462 echo "$me: cannot create a temporary directory in ." >&2
26463 { (exit 1); exit 1; }
26464}
4e8d927d 26465
b4e70030 26466_ACEOF
4e8d927d 26467
b4e70030 26468cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 26469
b4e70030
JB
26470#
26471# CONFIG_FILES section.
26472#
4e8d927d 26473
b4e70030
JB
26474# No need to generate the scripts if there are no CONFIG_FILES.
26475# This happens for instance when ./config.status config.h
26476if test -n "\$CONFIG_FILES"; then
26477 # Protect against being on the right side of a sed subst in config.status.
26478 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26479 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26480s,@SHELL@,$SHELL,;t t
26481s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26482s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26483s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26484s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26485s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26486s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26487s,@exec_prefix@,$exec_prefix,;t t
26488s,@prefix@,$prefix,;t t
26489s,@program_transform_name@,$program_transform_name,;t t
26490s,@bindir@,$bindir,;t t
26491s,@sbindir@,$sbindir,;t t
26492s,@libexecdir@,$libexecdir,;t t
26493s,@datadir@,$datadir,;t t
26494s,@sysconfdir@,$sysconfdir,;t t
26495s,@sharedstatedir@,$sharedstatedir,;t t
26496s,@localstatedir@,$localstatedir,;t t
26497s,@libdir@,$libdir,;t t
26498s,@includedir@,$includedir,;t t
26499s,@oldincludedir@,$oldincludedir,;t t
26500s,@infodir@,$infodir,;t t
26501s,@mandir@,$mandir,;t t
26502s,@build_alias@,$build_alias,;t t
26503s,@host_alias@,$host_alias,;t t
26504s,@target_alias@,$target_alias,;t t
26505s,@DEFS@,$DEFS,;t t
26506s,@ECHO_C@,$ECHO_C,;t t
26507s,@ECHO_N@,$ECHO_N,;t t
26508s,@ECHO_T@,$ECHO_T,;t t
26509s,@LIBS@,$LIBS,;t t
26510s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26511s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26512s,@MAINT@,$MAINT,;t t
26513s,@CC@,$CC,;t t
26514s,@CFLAGS@,$CFLAGS,;t t
26515s,@LDFLAGS@,$LDFLAGS,;t t
26516s,@CPPFLAGS@,$CPPFLAGS,;t t
26517s,@ac_ct_CC@,$ac_ct_CC,;t t
26518s,@EXEEXT@,$EXEEXT,;t t
26519s,@OBJEXT@,$OBJEXT,;t t
26520s,@CPP@,$CPP,;t t
26521s,@EGREP@,$EGREP,;t t
783e057b
DJ
26522s,@RANLIB@,$RANLIB,;t t
26523s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
26524s,@build@,$build,;t t
26525s,@build_cpu@,$build_cpu,;t t
26526s,@build_vendor@,$build_vendor,;t t
26527s,@build_os@,$build_os,;t t
26528s,@host@,$host,;t t
26529s,@host_cpu@,$host_cpu,;t t
26530s,@host_vendor@,$host_vendor,;t t
26531s,@host_os@,$host_os,;t t
26532s,@target@,$target,;t t
26533s,@target_cpu@,$target_cpu,;t t
26534s,@target_vendor@,$target_vendor,;t t
26535s,@target_os@,$target_os,;t t
b4e70030 26536s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
26537s,@LIBINTL@,$LIBINTL,;t t
26538s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26539s,@INCINTL@,$INCINTL,;t t
b4e70030 26540s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
26541s,@GMSGFMT@,$GMSGFMT,;t t
26542s,@POSUB@,$POSUB,;t t
b4e70030 26543s,@CATALOGS@,$CATALOGS,;t t
b4e70030 26544s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 26545s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
26546s,@GENCAT@,$GENCAT,;t t
26547s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030 26548s,@localedir@,$localedir,;t t
783e057b
DJ
26549s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26550s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26551s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26552s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26553s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26554s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26555s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26556s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26557s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26558s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26559s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26560s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26561s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26562s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26563s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26564s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26565s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26566s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26567s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26568s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26569s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26570s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26571s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26572s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26573s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26574s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26575s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26576s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26577s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26578s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26579s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26580s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26581s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26582s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26583s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26584s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26585s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26586s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26587s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26588s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26589s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26590s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26591s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26592s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26593s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26594s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26595s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26596s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26597s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26598s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26599s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26600s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26601s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26602s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26603s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26604s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26605s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26606s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26607s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26608s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26609s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26610s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26611s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26612s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26613s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26614s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26615s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26616s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26617s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26618s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26619s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26620s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26621s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26622s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26623s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26624s,@STDINT_H@,$STDINT_H,;t t
26625s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26626s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26627s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26628s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26629s,@WCHAR_H@,$WCHAR_H,;t t
26630s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26631s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26632s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26633s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
d5af19ba 26634s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
b4e70030 26635s,@PACKAGE@,$PACKAGE,;t t
b4e70030
JB
26636s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26637s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26638s,@INSTALL_DATA@,$INSTALL_DATA,;t t
e28b3332 26639s,@CYGPATH_W@,$CYGPATH_W,;t t
d57a3c85 26640s,@PYTHON2_4@,$PYTHON2_4,;t t
e28b3332
DJ
26641s,@ACLOCAL@,$ACLOCAL,;t t
26642s,@AUTOCONF@,$AUTOCONF,;t t
26643s,@AUTOMAKE@,$AUTOMAKE,;t t
26644s,@AUTOHEADER@,$AUTOHEADER,;t t
26645s,@MAKEINFO@,$MAKEINFO,;t t
26646s,@install_sh@,$install_sh,;t t
26647s,@STRIP@,$STRIP,;t t
26648s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26649s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26650s,@mkdir_p@,$mkdir_p,;t t
26651s,@AWK@,$AWK,;t t
26652s,@SET_MAKE@,$SET_MAKE,;t t
26653s,@am__leading_dot@,$am__leading_dot,;t t
26654s,@AMTAR@,$AMTAR,;t t
26655s,@am__tar@,$am__tar,;t t
26656s,@am__untar@,$am__untar,;t t
26657s,@DEPDIR@,$DEPDIR,;t t
26658s,@am__include@,$am__include,;t t
26659s,@am__quote@,$am__quote,;t t
26660s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26661s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26662s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26663s,@CCDEPMODE@,$CCDEPMODE,;t t
26664s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26665s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26666s,@subdirs@,$subdirs,;t t
26667s,@TARGET_OBS@,$TARGET_OBS,;t t
c16158bc
JM
26668s,@PKGVERSION@,$PKGVERSION,;t t
26669s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26670s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
b4e70030
JB
26671s,@LN_S@,$LN_S,;t t
26672s,@YACC@,$YACC,;t t
26673s,@AR@,$AR,;t t
26674s,@ac_ct_AR@,$ac_ct_AR,;t t
26675s,@DLLTOOL@,$DLLTOOL,;t t
26676s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26677s,@WINDRES@,$WINDRES,;t t
26678s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26679s,@MIG@,$MIG,;t t
26680s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
26681s,@READLINE@,$READLINE,;t t
26682s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26683s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
26684s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26685s,@LIBEXPAT@,$LIBEXPAT,;t t
26686s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
d57a3c85 26687s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
20e95c23 26688s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
26689s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26690s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26691s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26692s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26693s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26694s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26695s,@WIN32LIBS@,$WIN32LIBS,;t t
26696s,@LIBGUI@,$LIBGUI,;t t
26697s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26698s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26699s,@TCL_VERSION@,$TCL_VERSION,;t t
5062cc19
KS
26700s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
26701s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
26702s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
26703s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
26704s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
b4e70030 26705s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
5062cc19
KS
26706s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
26707s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
26708s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
26709s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
26710s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
26711s,@TCL_DEPS@,$TCL_DEPS,;t t
b4e70030 26712s,@TK_VERSION@,$TK_VERSION,;t t
5062cc19
KS
26713s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
26714s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
26715s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
26716s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
b4e70030 26717s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
5062cc19
KS
26718s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
26719s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
26720s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
26721s,@TK_INCLUDE@,$TK_INCLUDE,;t t
26722s,@TK_LIBRARY@,$TK_LIBRARY,;t t
26723s,@TK_DEPS@,$TK_DEPS,;t t
26724s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
b4e70030
JB
26725s,@X_CFLAGS@,$X_CFLAGS,;t t
26726s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26727s,@X_LIBS@,$X_LIBS,;t t
b4e70030
JB
26728s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26729s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26730s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
26731s,@SIM@,$SIM,;t t
26732s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
26733s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26734s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26735s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26736s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26737s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26738s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26739s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26740s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26741s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26742s,@target_subdir@,$target_subdir,;t t
26743s,@frags@,$frags,;t t
b4e70030
JB
26744s,@nm_h@,$nm_h,;t t
26745s,@LIBICONV@,$LIBICONV,;t t
26746s,@LIBOBJS@,$LIBOBJS,;t t
26747s,@LTLIBOBJS@,$LTLIBOBJS,;t t
783e057b
DJ
26748s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26749s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26750s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26751s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
b4e70030
JB
26752/@host_makefile_frag@/r $host_makefile_frag
26753s,@host_makefile_frag@,,;t t
b4e70030
JB
26754CEOF
26755
26756_ACEOF
26757
26758 cat >>$CONFIG_STATUS <<\_ACEOF
26759 # Split the substitutions into bite-sized pieces for seds with
26760 # small command number limits, like on Digital OSF/1 and HP-UX.
26761 ac_max_sed_lines=48
26762 ac_sed_frag=1 # Number of current file.
26763 ac_beg=1 # First line for current file.
26764 ac_end=$ac_max_sed_lines # Line after last line for current file.
26765 ac_more_lines=:
26766 ac_sed_cmds=
26767 while $ac_more_lines; do
26768 if test $ac_beg -gt 1; then
26769 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26770 else
26771 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 26772 fi
b4e70030
JB
26773 if test ! -s $tmp/subs.frag; then
26774 ac_more_lines=false
26775 else
26776 # The purpose of the label and of the branching condition is to
26777 # speed up the sed processing (if there are no `@' at all, there
26778 # is no need to browse any of the substitutions).
26779 # These are the two extra sed commands mentioned above.
26780 (echo ':t
26781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26782 if test -z "$ac_sed_cmds"; then
26783 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26784 else
26785 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26786 fi
26787 ac_sed_frag=`expr $ac_sed_frag + 1`
26788 ac_beg=$ac_end
26789 ac_end=`expr $ac_end + $ac_max_sed_lines`
26790 fi
26791 done
26792 if test -z "$ac_sed_cmds"; then
26793 ac_sed_cmds=cat
26794 fi
26795fi # test -n "$CONFIG_FILES"
4e8d927d 26796
b4e70030
JB
26797_ACEOF
26798cat >>$CONFIG_STATUS <<\_ACEOF
26799for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26801 case $ac_file in
26802 - | *:- | *:-:* ) # input from stdin
26803 cat >$tmp/stdin
26804 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26806 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26808 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
26809 esac
26810
b4e70030
JB
26811 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26812 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
26813$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26814 X"$ac_file" : 'X\(//\)[^/]' \| \
26815 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
26816 X"$ac_file" : 'X\(/\)' \| \
26817 . : '\(.\)' 2>/dev/null ||
bec39cab 26818echo X"$ac_file" |
b4e70030
JB
26819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26821 /^X\(\/\/\)$/{ s//\1/; q; }
26822 /^X\(\/\).*/{ s//\1/; q; }
26823 s/.*/./; q'`
26824 { if $as_mkdir_p; then
26825 mkdir -p "$ac_dir"
26826 else
26827 as_dir="$ac_dir"
bec39cab 26828 as_dirs=
b4e70030
JB
26829 while test ! -d "$as_dir"; do
26830 as_dirs="$as_dir $as_dirs"
26831 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
26832$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26833 X"$as_dir" : 'X\(//\)[^/]' \| \
26834 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
26835 X"$as_dir" : 'X\(/\)' \| \
26836 . : '\(.\)' 2>/dev/null ||
bec39cab 26837echo X"$as_dir" |
b4e70030
JB
26838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26840 /^X\(\/\/\)$/{ s//\1/; q; }
26841 /^X\(\/\).*/{ s//\1/; q; }
26842 s/.*/./; q'`
bec39cab 26843 done
b4e70030
JB
26844 test ! -n "$as_dirs" || mkdir $as_dirs
26845 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26846echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 26847 { (exit 1); exit 1; }; }; }
b4e70030 26848
bec39cab
AC
26849 ac_builddir=.
26850
b4e70030 26851if test "$ac_dir" != .; then
bec39cab 26852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
26853 # A "../" for each directory in $ac_dir_suffix.
26854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26855else
26856 ac_dir_suffix= ac_top_builddir=
26857fi
bec39cab
AC
26858
26859case $srcdir in
b4e70030 26860 .) # No --srcdir option. We are building in place.
bec39cab 26861 ac_srcdir=.
b4e70030
JB
26862 if test -z "$ac_top_builddir"; then
26863 ac_top_srcdir=.
26864 else
26865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26866 fi ;;
26867 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 26868 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
26869 ac_top_srcdir=$srcdir ;;
26870 *) # Relative path.
26871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
26873esac
26874
b4e70030
JB
26875# Do not use `cd foo && pwd` to compute absolute paths, because
26876# the directories may not exist.
26877case `pwd` in
26878.) ac_abs_builddir="$ac_dir";;
26879*)
26880 case "$ac_dir" in
26881 .) ac_abs_builddir=`pwd`;;
26882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26884 esac;;
26885esac
26886case $ac_abs_builddir in
26887.) ac_abs_top_builddir=${ac_top_builddir}.;;
26888*)
26889 case ${ac_top_builddir}. in
26890 .) ac_abs_top_builddir=$ac_abs_builddir;;
26891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26893 esac;;
26894esac
26895case $ac_abs_builddir in
26896.) ac_abs_srcdir=$ac_srcdir;;
26897*)
26898 case $ac_srcdir in
26899 .) ac_abs_srcdir=$ac_abs_builddir;;
26900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26902 esac;;
26903esac
26904case $ac_abs_builddir in
26905.) ac_abs_top_srcdir=$ac_top_srcdir;;
26906*)
26907 case $ac_top_srcdir in
26908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26911 esac;;
26912esac
c906108c 26913
c906108c 26914
bec39cab
AC
26915 case $INSTALL in
26916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 26917 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 26918 esac
121ce6e5 26919
b4e70030
JB
26920 if test x"$ac_file" != x-; then
26921 { echo "$as_me:$LINENO: creating $ac_file" >&5
26922echo "$as_me: creating $ac_file" >&6;}
26923 rm -f "$ac_file"
26924 fi
26925 # Let's still pretend it is `configure' which instantiates (i.e., don't
26926 # use $as_me), people would be surprised to read:
26927 # /* config.h. Generated by config.status. */
26928 if test x"$ac_file" = x-; then
26929 configure_input=
26930 else
26931 configure_input="$ac_file. "
26932 fi
26933 configure_input=$configure_input"Generated from `echo $ac_file_in |
26934 sed 's,.*/,,'` by configure."
26935
26936 # First look for the input files in the build tree, otherwise in the
26937 # src tree.
26938 ac_file_inputs=`IFS=:
26939 for f in $ac_file_in; do
26940 case $f in
26941 -) echo $tmp/stdin ;;
26942 [\\/$]*)
26943 # Absolute (can't be DOS-style, as IFS=:)
26944 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26945echo "$as_me: error: cannot find input file: $f" >&2;}
26946 { (exit 1); exit 1; }; }
26947 echo "$f";;
26948 *) # Relative
26949 if test -f "$f"; then
26950 # Build tree
26951 echo "$f"
26952 elif test -f "$srcdir/$f"; then
26953 # Source tree
26954 echo "$srcdir/$f"
26955 else
26956 # /dev/null tree
26957 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26958echo "$as_me: error: cannot find input file: $f" >&2;}
26959 { (exit 1); exit 1; }; }
26960 fi;;
26961 esac
26962 done` || { (exit 1); exit 1; }
4e8d927d 26963_ACEOF
bec39cab
AC
26964cat >>$CONFIG_STATUS <<_ACEOF
26965 sed "$ac_vpsub
26966$extrasub
26967_ACEOF
26968cat >>$CONFIG_STATUS <<\_ACEOF
26969:t
26970/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
26971s,@configure_input@,$configure_input,;t t
26972s,@srcdir@,$ac_srcdir,;t t
26973s,@abs_srcdir@,$ac_abs_srcdir,;t t
26974s,@top_srcdir@,$ac_top_srcdir,;t t
26975s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26976s,@builddir@,$ac_builddir,;t t
26977s,@abs_builddir@,$ac_abs_builddir,;t t
26978s,@top_builddir@,$ac_top_builddir,;t t
26979s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26980s,@INSTALL@,$ac_INSTALL,;t t
26981" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26982 rm -f $tmp/stdin
26983 if test x"$ac_file" != x-; then
26984 mv $tmp/out $ac_file
26985 else
26986 cat $tmp/out
26987 rm -f $tmp/out
26988 fi
26989
26990done
26991_ACEOF
26992cat >>$CONFIG_STATUS <<\_ACEOF
26993
26994#
26995# CONFIG_HEADER section.
26996#
26997
26998# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26999# NAME is the cpp macro being defined and VALUE is the value it is being given.
27000#
27001# ac_d sets the value in "#define NAME VALUE" lines.
27002ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27003ac_dB='[ ].*$,\1#\2'
27004ac_dC=' '
27005ac_dD=',;t'
27006# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27007ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27008ac_uB='$,\1#\2define\3'
27009ac_uC=' '
27010ac_uD=',;t'
27011
27012for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 27014 case $ac_file in
b4e70030
JB
27015 - | *:- | *:-:* ) # input from stdin
27016 cat >$tmp/stdin
27017 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27019 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27020 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27021 * ) ac_file_in=$ac_file.in ;;
c906108c 27022 esac
b4e70030
JB
27023
27024 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27025echo "$as_me: creating $ac_file" >&6;}
27026
27027 # First look for the input files in the build tree, otherwise in the
27028 # src tree.
27029 ac_file_inputs=`IFS=:
27030 for f in $ac_file_in; do
27031 case $f in
27032 -) echo $tmp/stdin ;;
27033 [\\/$]*)
27034 # Absolute (can't be DOS-style, as IFS=:)
27035 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27036echo "$as_me: error: cannot find input file: $f" >&2;}
27037 { (exit 1); exit 1; }; }
27038 # Do quote $f, to prevent DOS paths from being IFS'd.
27039 echo "$f";;
27040 *) # Relative
27041 if test -f "$f"; then
27042 # Build tree
27043 echo "$f"
27044 elif test -f "$srcdir/$f"; then
27045 # Source tree
27046 echo "$srcdir/$f"
27047 else
27048 # /dev/null tree
27049 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27050echo "$as_me: error: cannot find input file: $f" >&2;}
27051 { (exit 1); exit 1; }; }
27052 fi;;
27053 esac
27054 done` || { (exit 1); exit 1; }
27055 # Remove the trailing spaces.
27056 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27057
27058_ACEOF
27059
27060# Transform confdefs.h into two sed scripts, `conftest.defines' and
27061# `conftest.undefs', that substitutes the proper values into
27062# config.h.in to produce config.h. The first handles `#define'
27063# templates, and the second `#undef' templates.
27064# And first: Protect against being on the right side of a sed subst in
27065# config.status. Protect against being in an unquoted here document
27066# in config.status.
27067rm -f conftest.defines conftest.undefs
27068# Using a here document instead of a string reduces the quoting nightmare.
27069# Putting comments in sed scripts is not portable.
27070#
27071# `end' is used to avoid that the second main sed command (meant for
27072# 0-ary CPP macros) applies to n-ary macro definitions.
27073# See the Autoconf documentation for `clear'.
27074cat >confdef2sed.sed <<\_ACEOF
27075s/[\\&,]/\\&/g
27076s,[\\$`],\\&,g
27077t clear
27078: clear
27079s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27080t end
27081s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27082: end
27083_ACEOF
27084# If some macros were called several times there might be several times
27085# the same #defines, which is useless. Nevertheless, we may not want to
27086# sort them, since we want the *last* AC-DEFINE to be honored.
27087uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27088sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27089rm -f confdef2sed.sed
27090
27091# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
27092# example, in the case of _POSIX_SOURCE, which is predefined and required
27093# on some systems where configure will not decide to define it.
b4e70030
JB
27094cat >>conftest.undefs <<\_ACEOF
27095s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27096_ACEOF
27097
27098# Break up conftest.defines because some shells have a limit on the size
27099# of here documents, and old seds have small limits too (100 cmds).
27100echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27101echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27102echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27103echo ' :' >>$CONFIG_STATUS
27104rm -f conftest.tail
27105while grep . conftest.defines >/dev/null
bec39cab 27106do
b4e70030
JB
27107 # Write a limited-size here document to $tmp/defines.sed.
27108 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27109 # Speed up: don't consider the non `#define' lines.
27110 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27111 # Work around the forget-to-reset-the-flag bug.
27112 echo 't clr' >>$CONFIG_STATUS
27113 echo ': clr' >>$CONFIG_STATUS
27114 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 27115 echo 'CEOF
b4e70030
JB
27116 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27117 rm -f $tmp/in
27118 mv $tmp/out $tmp/in
27119' >>$CONFIG_STATUS
27120 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
27121 rm -f conftest.defines
27122 mv conftest.tail conftest.defines
27123done
b4e70030
JB
27124rm -f conftest.defines
27125echo ' fi # grep' >>$CONFIG_STATUS
27126echo >>$CONFIG_STATUS
27127
27128# Break up conftest.undefs because some shells have a limit on the size
27129# of here documents, and old seds have small limits too (100 cmds).
27130echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27131rm -f conftest.tail
27132while grep . conftest.undefs >/dev/null
27133do
27134 # Write a limited-size here document to $tmp/undefs.sed.
27135 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27136 # Speed up: don't consider the non `#undef'
27137 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27138 # Work around the forget-to-reset-the-flag bug.
27139 echo 't clr' >>$CONFIG_STATUS
27140 echo ': clr' >>$CONFIG_STATUS
27141 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27142 echo 'CEOF
27143 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27144 rm -f $tmp/in
27145 mv $tmp/out $tmp/in
27146' >>$CONFIG_STATUS
27147 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27148 rm -f conftest.undefs
27149 mv conftest.tail conftest.undefs
27150done
27151rm -f conftest.undefs
bec39cab
AC
27152
27153cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
27154 # Let's still pretend it is `configure' which instantiates (i.e., don't
27155 # use $as_me), people would be surprised to read:
27156 # /* config.h. Generated by config.status. */
27157 if test x"$ac_file" = x-; then
27158 echo "/* Generated by configure. */" >$tmp/config.h
27159 else
27160 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27161 fi
27162 cat $tmp/in >>$tmp/config.h
27163 rm -f $tmp/in
bec39cab 27164 if test x"$ac_file" != x-; then
b4e70030 27165 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
27166 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27167echo "$as_me: $ac_file is unchanged" >&6;}
27168 else
b4e70030
JB
27169 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27170$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27171 X"$ac_file" : 'X\(//\)[^/]' \| \
27172 X"$ac_file" : 'X\(//\)$' \| \
27173 X"$ac_file" : 'X\(/\)' \| \
27174 . : '\(.\)' 2>/dev/null ||
27175echo X"$ac_file" |
27176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27178 /^X\(\/\/\)$/{ s//\1/; q; }
27179 /^X\(\/\).*/{ s//\1/; q; }
27180 s/.*/./; q'`
27181 { if $as_mkdir_p; then
27182 mkdir -p "$ac_dir"
27183 else
27184 as_dir="$ac_dir"
27185 as_dirs=
27186 while test ! -d "$as_dir"; do
27187 as_dirs="$as_dir $as_dirs"
27188 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27189$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27190 X"$as_dir" : 'X\(//\)[^/]' \| \
27191 X"$as_dir" : 'X\(//\)$' \| \
27192 X"$as_dir" : 'X\(/\)' \| \
27193 . : '\(.\)' 2>/dev/null ||
27194echo X"$as_dir" |
27195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27197 /^X\(\/\/\)$/{ s//\1/; q; }
27198 /^X\(\/\).*/{ s//\1/; q; }
27199 s/.*/./; q'`
27200 done
27201 test ! -n "$as_dirs" || mkdir $as_dirs
27202 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27203echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27204 { (exit 1); exit 1; }; }; }
27205
bec39cab 27206 rm -f $ac_file
b4e70030 27207 mv $tmp/config.h $ac_file
bec39cab
AC
27208 fi
27209 else
b4e70030
JB
27210 cat $tmp/config.h
27211 rm -f $tmp/config.h
bec39cab 27212 fi
e28b3332
DJ
27213# Compute $ac_file's index in $config_headers.
27214_am_stamp_count=1
27215for _am_header in $config_headers :; do
27216 case $_am_header in
27217 $ac_file | $ac_file:* )
27218 break ;;
27219 * )
27220 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27221 esac
27222done
27223echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27224$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27225 X$ac_file : 'X\(//\)[^/]' \| \
27226 X$ac_file : 'X\(//\)$' \| \
27227 X$ac_file : 'X\(/\)' \| \
27228 . : '\(.\)' 2>/dev/null ||
27229echo X$ac_file |
27230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27232 /^X\(\/\/\)$/{ s//\1/; q; }
27233 /^X\(\/\).*/{ s//\1/; q; }
27234 s/.*/./; q'`/stamp-h$_am_stamp_count
b4e70030
JB
27235done
27236_ACEOF
27237cat >>$CONFIG_STATUS <<\_ACEOF
27238
27239#
27240# CONFIG_LINKS section.
27241#
27242
27243for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27244 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27245 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 27246
b4e70030
JB
27247 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27248echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
27249
27250 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
27251 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27252echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27253 { (exit 1); exit 1; }; }
c906108c 27254 fi
b4e70030
JB
27255 rm -f $ac_dest
27256
27257 # Make relative symlinks.
27258 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27259$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27260 X"$ac_dest" : 'X\(//\)[^/]' \| \
27261 X"$ac_dest" : 'X\(//\)$' \| \
27262 X"$ac_dest" : 'X\(/\)' \| \
27263 . : '\(.\)' 2>/dev/null ||
27264echo X"$ac_dest" |
27265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27267 /^X\(\/\/\)$/{ s//\1/; q; }
27268 /^X\(\/\).*/{ s//\1/; q; }
27269 s/.*/./; q'`
27270 { if $as_mkdir_p; then
27271 mkdir -p "$ac_dest_dir"
27272 else
27273 as_dir="$ac_dest_dir"
27274 as_dirs=
27275 while test ! -d "$as_dir"; do
27276 as_dirs="$as_dir $as_dirs"
27277 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27278$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27279 X"$as_dir" : 'X\(//\)[^/]' \| \
27280 X"$as_dir" : 'X\(//\)$' \| \
27281 X"$as_dir" : 'X\(/\)' \| \
27282 . : '\(.\)' 2>/dev/null ||
27283echo X"$as_dir" |
27284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27286 /^X\(\/\/\)$/{ s//\1/; q; }
27287 /^X\(\/\).*/{ s//\1/; q; }
27288 s/.*/./; q'`
27289 done
27290 test ! -n "$as_dirs" || mkdir $as_dirs
27291 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27292echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27293 { (exit 1); exit 1; }; }; }
27294
27295 ac_builddir=.
27296
27297if test "$ac_dest_dir" != .; then
27298 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27299 # A "../" for each directory in $ac_dir_suffix.
27300 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27301else
27302 ac_dir_suffix= ac_top_builddir=
27303fi
27304
27305case $srcdir in
27306 .) # No --srcdir option. We are building in place.
27307 ac_srcdir=.
27308 if test -z "$ac_top_builddir"; then
27309 ac_top_srcdir=.
27310 else
27311 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27312 fi ;;
27313 [\\/]* | ?:[\\/]* ) # Absolute path.
27314 ac_srcdir=$srcdir$ac_dir_suffix;
27315 ac_top_srcdir=$srcdir ;;
27316 *) # Relative path.
27317 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27318 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27319esac
27320
27321# Do not use `cd foo && pwd` to compute absolute paths, because
27322# the directories may not exist.
27323case `pwd` in
27324.) ac_abs_builddir="$ac_dest_dir";;
27325*)
27326 case "$ac_dest_dir" in
27327 .) ac_abs_builddir=`pwd`;;
27328 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27329 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27330 esac;;
27331esac
27332case $ac_abs_builddir in
27333.) ac_abs_top_builddir=${ac_top_builddir}.;;
27334*)
27335 case ${ac_top_builddir}. in
27336 .) ac_abs_top_builddir=$ac_abs_builddir;;
27337 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27338 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27339 esac;;
27340esac
27341case $ac_abs_builddir in
27342.) ac_abs_srcdir=$ac_srcdir;;
27343*)
27344 case $ac_srcdir in
27345 .) ac_abs_srcdir=$ac_abs_builddir;;
27346 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27347 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27348 esac;;
27349esac
27350case $ac_abs_builddir in
27351.) ac_abs_top_srcdir=$ac_top_srcdir;;
27352*)
27353 case $ac_top_srcdir in
27354 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27355 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27356 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27357 esac;;
27358esac
27359
bec39cab
AC
27360
27361 case $srcdir in
27362 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 27363 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 27364 esac
b4e70030
JB
27365
27366 # Try a symlink, then a hard link, then a copy.
27367 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27368 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27369 cp -p $srcdir/$ac_source $ac_dest ||
27370 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27371echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 27372 { (exit 1); exit 1; }; }
b4e70030
JB
27373done
27374_ACEOF
27375cat >>$CONFIG_STATUS <<\_ACEOF
27376
27377#
27378# CONFIG_COMMANDS section.
27379#
27380for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27381 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27382 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27383 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27384$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27385 X"$ac_dest" : 'X\(//\)[^/]' \| \
27386 X"$ac_dest" : 'X\(//\)$' \| \
27387 X"$ac_dest" : 'X\(/\)' \| \
27388 . : '\(.\)' 2>/dev/null ||
27389echo X"$ac_dest" |
27390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27392 /^X\(\/\/\)$/{ s//\1/; q; }
27393 /^X\(\/\).*/{ s//\1/; q; }
27394 s/.*/./; q'`
27395 { if $as_mkdir_p; then
27396 mkdir -p "$ac_dir"
27397 else
27398 as_dir="$ac_dir"
27399 as_dirs=
27400 while test ! -d "$as_dir"; do
27401 as_dirs="$as_dir $as_dirs"
27402 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27403$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27404 X"$as_dir" : 'X\(//\)[^/]' \| \
27405 X"$as_dir" : 'X\(//\)$' \| \
27406 X"$as_dir" : 'X\(/\)' \| \
27407 . : '\(.\)' 2>/dev/null ||
27408echo X"$as_dir" |
27409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27410 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27411 /^X\(\/\/\)$/{ s//\1/; q; }
27412 /^X\(\/\).*/{ s//\1/; q; }
27413 s/.*/./; q'`
27414 done
27415 test ! -n "$as_dirs" || mkdir $as_dirs
27416 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27417echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27418 { (exit 1); exit 1; }; }; }
27419
27420 ac_builddir=.
27421
27422if test "$ac_dir" != .; then
27423 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27424 # A "../" for each directory in $ac_dir_suffix.
27425 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27426else
27427 ac_dir_suffix= ac_top_builddir=
27428fi
27429
27430case $srcdir in
27431 .) # No --srcdir option. We are building in place.
27432 ac_srcdir=.
27433 if test -z "$ac_top_builddir"; then
27434 ac_top_srcdir=.
27435 else
27436 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27437 fi ;;
27438 [\\/]* | ?:[\\/]* ) # Absolute path.
27439 ac_srcdir=$srcdir$ac_dir_suffix;
27440 ac_top_srcdir=$srcdir ;;
27441 *) # Relative path.
27442 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27443 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27444esac
27445
27446# Do not use `cd foo && pwd` to compute absolute paths, because
27447# the directories may not exist.
27448case `pwd` in
27449.) ac_abs_builddir="$ac_dir";;
27450*)
27451 case "$ac_dir" in
27452 .) ac_abs_builddir=`pwd`;;
27453 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27454 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27455 esac;;
27456esac
27457case $ac_abs_builddir in
27458.) ac_abs_top_builddir=${ac_top_builddir}.;;
27459*)
27460 case ${ac_top_builddir}. in
27461 .) ac_abs_top_builddir=$ac_abs_builddir;;
27462 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27463 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27464 esac;;
27465esac
27466case $ac_abs_builddir in
27467.) ac_abs_srcdir=$ac_srcdir;;
27468*)
27469 case $ac_srcdir in
27470 .) ac_abs_srcdir=$ac_abs_builddir;;
27471 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27472 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27473 esac;;
27474esac
27475case $ac_abs_builddir in
27476.) ac_abs_top_srcdir=$ac_top_srcdir;;
27477*)
27478 case $ac_top_srcdir in
27479 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27480 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27481 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27482 esac;;
27483esac
bec39cab 27484
bec39cab 27485
b4e70030
JB
27486 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27487echo "$as_me: executing $ac_dest commands" >&6;}
27488 case $ac_dest in
e28b3332
DJ
27489 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27490 # Strip MF so we end up with the name of the file.
27491 mf=`echo "$mf" | sed -e 's/:.*$//'`
27492 # Check whether this is an Automake generated Makefile or not.
27493 # We used to match only the files named `Makefile.in', but
27494 # some people rename them; so instead we look at the file content.
27495 # Grep'ing the first line is not enough: some people post-process
27496 # each Makefile.in and add a new line on top of each file to say so.
27497 # So let's grep whole file.
27498 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27499 dirpart=`(dirname "$mf") 2>/dev/null ||
27500$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27501 X"$mf" : 'X\(//\)[^/]' \| \
27502 X"$mf" : 'X\(//\)$' \| \
27503 X"$mf" : 'X\(/\)' \| \
27504 . : '\(.\)' 2>/dev/null ||
27505echo X"$mf" |
27506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27508 /^X\(\/\/\)$/{ s//\1/; q; }
27509 /^X\(\/\).*/{ s//\1/; q; }
27510 s/.*/./; q'`
27511 else
27512 continue
27513 fi
27514 # Extract the definition of DEPDIR, am__include, and am__quote
27515 # from the Makefile without running `make'.
27516 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27517 test -z "$DEPDIR" && continue
27518 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27519 test -z "am__include" && continue
27520 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27521 # When using ansi2knr, U may be empty or an underscore; expand it
27522 U=`sed -n 's/^U = //p' < "$mf"`
27523 # Find all dependency output files, they are included files with
27524 # $(DEPDIR) in their names. We invoke sed twice because it is the
27525 # simplest approach to changing $(DEPDIR) to its actual value in the
27526 # expansion.
27527 for file in `sed -n "
27528 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27529 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27530 # Make sure the directory exists.
27531 test -f "$dirpart/$file" && continue
27532 fdir=`(dirname "$file") 2>/dev/null ||
27533$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27534 X"$file" : 'X\(//\)[^/]' \| \
27535 X"$file" : 'X\(//\)$' \| \
27536 X"$file" : 'X\(/\)' \| \
27537 . : '\(.\)' 2>/dev/null ||
27538echo X"$file" |
27539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27541 /^X\(\/\/\)$/{ s//\1/; q; }
27542 /^X\(\/\).*/{ s//\1/; q; }
27543 s/.*/./; q'`
27544 { if $as_mkdir_p; then
27545 mkdir -p $dirpart/$fdir
27546 else
27547 as_dir=$dirpart/$fdir
27548 as_dirs=
27549 while test ! -d "$as_dir"; do
27550 as_dirs="$as_dir $as_dirs"
27551 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27553 X"$as_dir" : 'X\(//\)[^/]' \| \
27554 X"$as_dir" : 'X\(//\)$' \| \
27555 X"$as_dir" : 'X\(/\)' \| \
27556 . : '\(.\)' 2>/dev/null ||
27557echo X"$as_dir" |
27558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27560 /^X\(\/\/\)$/{ s//\1/; q; }
27561 /^X\(\/\).*/{ s//\1/; q; }
27562 s/.*/./; q'`
27563 done
27564 test ! -n "$as_dirs" || mkdir $as_dirs
27565 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27566echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27567 { (exit 1); exit 1; }; }; }
27568
27569 # echo "creating $dirpart/$file"
27570 echo '# dummy' > "$dirpart/$file"
27571 done
27572done
4e8d927d 27573 ;;
b4e70030 27574 default )
c906108c 27575
db985757 27576sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
27577mv -f Makefile.tmp Makefile
27578
2acceee2 27579
c906108c
SS
27580case x$CONFIG_HEADERS in
27581xconfig.h:config.in)
27582echo > stamp-h ;;
27583esac
bec39cab
AC
27584 ;;
27585 esac
b4e70030
JB
27586done
27587_ACEOF
c906108c 27588
b4e70030 27589cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
27590
27591{ (exit 0); exit 0; }
27592_ACEOF
c906108c 27593chmod +x $CONFIG_STATUS
bec39cab
AC
27594ac_clean_files=$ac_clean_files_save
27595
27596
27597# configure is writing to config.log, and then calls config.status.
27598# config.status does its own redirection, appending to config.log.
27599# Unfortunately, on DOS this fails, as config.log is still kept open
27600# by configure, so config.status won't be able to write to it; its
27601# output is simply discarded. So we exec the FD to /dev/null,
27602# effectively closing config.log, so it can be properly (re)opened and
27603# appended to by config.status. When coming back to configure, we
27604# need to make the FD available again.
27605if test "$no_create" != yes; then
27606 ac_cs_success=:
27607 ac_config_status_args=
27608 test "$silent" = yes &&
27609 ac_config_status_args="$ac_config_status_args --quiet"
27610 exec 5>/dev/null
27611 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27612 exec 5>>config.log
27613 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27614 # would make configure fail if this is the last instruction.
27615 $ac_cs_success || { (exit 1); exit 1; }
27616fi
c906108c 27617
bec39cab 27618#
fdc59709 27619# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
bec39cab 27620#
c906108c
SS
27621if test "$no_recursion" != yes; then
27622
27623 # Remove --cache-file and --srcdir arguments so they do not pile up.
27624 ac_sub_configure_args=
27625 ac_prev=
fdc59709
PB
27626 eval "set x $ac_configure_args"
27627 shift
27628 for ac_arg
27629 do
c906108c
SS
27630 if test -n "$ac_prev"; then
27631 ac_prev=
27632 continue
27633 fi
bec39cab 27634 case $ac_arg in
c906108c
SS
27635 -cache-file | --cache-file | --cache-fil | --cache-fi \
27636 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27637 ac_prev=cache_file ;;
27638 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
27639 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27640 | --c=*)
27641 ;;
27642 --config-cache | -C)
c906108c
SS
27643 ;;
27644 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27645 ac_prev=srcdir ;;
27646 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27647 ;;
bec39cab
AC
27648 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27649 ac_prev=prefix ;;
27650 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27651 ;;
fdc59709
PB
27652 *)
27653 case $ac_arg in
27654 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27655 esac
27656 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
c906108c
SS
27657 esac
27658 done
27659
bec39cab
AC
27660 # Always prepend --prefix to ensure using the same prefix
27661 # in subdir configurations.
fdc59709
PB
27662 ac_arg="--prefix=$prefix"
27663 case $ac_arg in
27664 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27665 esac
27666 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
bec39cab 27667
b4e70030 27668 ac_popdir=`pwd`
bec39cab 27669 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
27670
27671 # Do not complain, so a configure script can configure whichever
27672 # parts of a large source tree are present.
fdc59709 27673 test -d "$srcdir/$ac_dir" || continue
c906108c 27674
b4e70030
JB
27675 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27676echo "$as_me: configuring in $ac_dir" >&6;}
27677 { if $as_mkdir_p; then
27678 mkdir -p "$ac_dir"
27679 else
27680 as_dir="$ac_dir"
bec39cab 27681 as_dirs=
b4e70030
JB
27682 while test ! -d "$as_dir"; do
27683 as_dirs="$as_dir $as_dirs"
27684 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
27685$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27686 X"$as_dir" : 'X\(//\)[^/]' \| \
27687 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
27688 X"$as_dir" : 'X\(/\)' \| \
27689 . : '\(.\)' 2>/dev/null ||
bec39cab 27690echo X"$as_dir" |
b4e70030
JB
27691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27693 /^X\(\/\/\)$/{ s//\1/; q; }
27694 /^X\(\/\).*/{ s//\1/; q; }
27695 s/.*/./; q'`
bec39cab 27696 done
b4e70030
JB
27697 test ! -n "$as_dirs" || mkdir $as_dirs
27698 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27699echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 27700 { (exit 1); exit 1; }; }; }
b4e70030 27701
bec39cab
AC
27702 ac_builddir=.
27703
b4e70030 27704if test "$ac_dir" != .; then
bec39cab 27705 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
27706 # A "../" for each directory in $ac_dir_suffix.
27707 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27708else
27709 ac_dir_suffix= ac_top_builddir=
27710fi
bec39cab
AC
27711
27712case $srcdir in
b4e70030 27713 .) # No --srcdir option. We are building in place.
bec39cab 27714 ac_srcdir=.
b4e70030
JB
27715 if test -z "$ac_top_builddir"; then
27716 ac_top_srcdir=.
27717 else
27718 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27719 fi ;;
27720 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 27721 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
27722 ac_top_srcdir=$srcdir ;;
27723 *) # Relative path.
27724 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27725 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27726esac
27727
27728# Do not use `cd foo && pwd` to compute absolute paths, because
27729# the directories may not exist.
27730case `pwd` in
27731.) ac_abs_builddir="$ac_dir";;
27732*)
27733 case "$ac_dir" in
27734 .) ac_abs_builddir=`pwd`;;
27735 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27736 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27737 esac;;
27738esac
27739case $ac_abs_builddir in
27740.) ac_abs_top_builddir=${ac_top_builddir}.;;
27741*)
27742 case ${ac_top_builddir}. in
27743 .) ac_abs_top_builddir=$ac_abs_builddir;;
27744 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27745 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27746 esac;;
27747esac
27748case $ac_abs_builddir in
27749.) ac_abs_srcdir=$ac_srcdir;;
27750*)
27751 case $ac_srcdir in
27752 .) ac_abs_srcdir=$ac_abs_builddir;;
27753 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27754 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27755 esac;;
27756esac
27757case $ac_abs_builddir in
27758.) ac_abs_top_srcdir=$ac_top_srcdir;;
27759*)
27760 case $ac_top_srcdir in
27761 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27762 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27763 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27764 esac;;
bec39cab 27765esac
c906108c 27766
c906108c 27767
fdc59709 27768 cd "$ac_dir"
c906108c
SS
27769
27770 # Check for guested configure; otherwise get Cygnus style configure.
fdc59709
PB
27771 if test -f "$ac_srcdir/configure.gnu"; then
27772 ac_sub_configure=$ac_srcdir/configure.gnu
27773 elif test -f "$ac_srcdir/configure"; then
27774 ac_sub_configure=$ac_srcdir/configure
27775 elif test -f "$ac_srcdir/configure.in"; then
27776 # This should be Cygnus configure.
27777 ac_sub_configure=$ac_aux_dir/configure
c906108c 27778 else
bec39cab
AC
27779 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27780echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
27781 ac_sub_configure=
27782 fi
27783
27784 # The recursion is here.
27785 if test -n "$ac_sub_configure"; then
c906108c 27786 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
27787 case $cache_file in
27788 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
27789 *) # Relative path.
27790 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 27791 esac
c906108c 27792
fdc59709
PB
27793 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27794echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 27795 # The eval makes quoting arguments work.
fdc59709
PB
27796 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27797 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
bec39cab
AC
27798 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27799echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27800 { (exit 1); exit 1; }; }
c906108c
SS
27801 fi
27802
fdc59709 27803 cd "$ac_popdir"
c906108c
SS
27804 done
27805fi
27806
27807
27808exit 0
This page took 2.3057 seconds and 4 git commands to generate.