gdb/
[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"
d5af19ba 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 ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
a4ce5b0d 318ac_subst_files='host_makefile_frag'
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
bec39cab
AC
893 --without-included-regex don't use included regex; this is the default
894 on systems with version 2 of the GNU C library
895 (use with caution on other system)
896 --with-sysroot=DIR Search for usr/lib et al within DIR.
897 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
898 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
899 --with-tclinclude=DIR Directory where tcl private headers are
900 --with-tkinclude=DIR Directory where tk private headers are
901 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
902 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
903 --with-x use the X Window System
904 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
905
906Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
b4e70030
JB
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
bec39cab
AC
913 CPP C preprocessor
914
915Use these variables to override the choices made by `configure' or to help
916it to find libraries and programs with nonstandard names/locations.
917
918_ACEOF
919fi
920
921if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
b4e70030 923 ac_popdir=`pwd`
bec39cab
AC
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
926 ac_builddir=.
927
b4e70030 928if test "$ac_dir" != .; then
bec39cab 929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932else
933 ac_dir_suffix= ac_top_builddir=
934fi
bec39cab
AC
935
936case $srcdir in
b4e70030 937 .) # No --srcdir option. We are building in place.
bec39cab 938 ac_srcdir=.
b4e70030
JB
939 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir=.
941 else
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943 fi ;;
944 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 945 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
946 ac_top_srcdir=$srcdir ;;
947 *) # Relative path.
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
950esac
951
952# Do not use `cd foo && pwd` to compute absolute paths, because
953# the directories may not exist.
954case `pwd` in
955.) ac_abs_builddir="$ac_dir";;
956*)
957 case "$ac_dir" in
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
961 esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_builddir=${ac_top_builddir}.;;
965*)
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970 esac;;
971esac
972case $ac_abs_builddir in
973.) ac_abs_srcdir=$ac_srcdir;;
974*)
975 case $ac_srcdir in
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979 esac;;
980esac
981case $ac_abs_builddir in
982.) ac_abs_top_srcdir=$ac_top_srcdir;;
983*)
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 esac;;
bec39cab
AC
989esac
990
b4e70030
JB
991 cd $ac_dir
992 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 993 if test -f $ac_srcdir/configure.gnu; then
b4e70030 994 echo
bec39cab
AC
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
b4e70030 997 echo
bec39cab 998 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1001 echo
1002 $ac_configure --help
3ace7edb 1003 else
bec39cab 1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
1005 fi
1006 cd $ac_popdir
bec39cab
AC
1007 done
1008fi
1009
b4e70030 1010test -n "$ac_init_help" && exit 0
bec39cab
AC
1011if $ac_init_version; then
1012 cat <<\_ACEOF
1013
b4e70030 1014Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1015This configure script is free software; the Free Software Foundation
1016gives unlimited permission to copy, distribute and modify it.
1017_ACEOF
b4e70030 1018 exit 0
bec39cab 1019fi
b4e70030
JB
1020exec 5>config.log
1021cat >&5 <<_ACEOF
bec39cab
AC
1022This file contains any messages produced by compilers while
1023running configure, to aid debugging if configure makes a mistake.
1024
1025It was created by $as_me, which was
b4e70030 1026generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1027
1028 $ $0 $@
1029
1030_ACEOF
1031{
1032cat <<_ASUNAME
1033## --------- ##
1034## Platform. ##
1035## --------- ##
1036
1037hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042
1043/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045
1046/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1049hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1050/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053
1054_ASUNAME
1055
1056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057for as_dir in $PATH
1058do
1059 IFS=$as_save_IFS
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1062done
1063
1064} >&5
1065
1066cat >&5 <<_ACEOF
1067
1068
1069## ----------- ##
1070## Core tests. ##
1071## ----------- ##
1072
1073_ACEOF
1074
1075
1076# Keep a trace of the command line.
1077# Strip out --no-create and --no-recursion so they do not pile up.
1078# Strip out --silent because we don't want to record it for future runs.
1079# Also quote any args containing shell meta-characters.
1080# Make two passes to allow for proper duplicate-argument suppression.
1081ac_configure_args=
1082ac_configure_args0=
1083ac_configure_args1=
1084ac_sep=
1085ac_must_keep_next=false
1086for ac_pass in 1 2
1087do
1088 for ac_arg
1089 do
1090 case $ac_arg in
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 continue ;;
b4e70030 1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097 esac
1098 case $ac_pass in
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 2)
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1104 else
1105 case $ac_arg in
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112 esac
1113 ;;
1114 -* ) ac_must_keep_next=true ;;
1115 esac
1116 fi
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1119 ac_sep=" "
1120 ;;
1121 esac
1122 done
1123done
1124$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126
1127# When interrupted or exit'd, cleanup temporary files, and complete
1128# config.log. We remove comments because anyway the quotes in there
1129# would cause problems or look ugly.
b4e70030
JB
1130# WARNING: Be sure not to use single quotes in there, as some shells,
1131# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1132trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1134 {
1135 echo
1136
1137 cat <<\_ASBOX
1138## ---------------- ##
1139## Cache variables. ##
1140## ---------------- ##
1141_ASBOX
1142 echo
1143 # The following way of writing the cache mishandles newlines in values,
b4e70030 1144{
bec39cab 1145 (set) 2>&1 |
b4e70030
JB
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147 *ac_space=\ *)
bec39cab 1148 sed -n \
b4e70030
JB
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 ;;
bec39cab 1152 *)
b4e70030
JB
1153 sed -n \
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1155 ;;
b4e70030
JB
1156 esac;
1157}
bec39cab
AC
1158 echo
1159
1160 cat <<\_ASBOX
1161## ----------------- ##
1162## Output variables. ##
1163## ----------------- ##
1164_ASBOX
1165 echo
1166 for ac_var in $ac_subst_vars
1167 do
b4e70030
JB
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1170 done | sort
1171 echo
1172
1173 if test -n "$ac_subst_files"; then
1174 cat <<\_ASBOX
b4e70030
JB
1175## ------------- ##
1176## Output files. ##
1177## ------------- ##
bec39cab
AC
1178_ASBOX
1179 echo
1180 for ac_var in $ac_subst_files
1181 do
b4e70030
JB
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1184 done | sort
1185 echo
1186 fi
1187
1188 if test -s confdefs.h; then
1189 cat <<\_ASBOX
1190## ----------- ##
1191## confdefs.h. ##
1192## ----------- ##
1193_ASBOX
1194 echo
b4e70030 1195 sed "/^$/d" confdefs.h | sort
bec39cab 1196 echo
3ace7edb 1197 fi
bec39cab
AC
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1201 } >&5
b4e70030
JB
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1204 exit $exit_status
b4e70030 1205 ' 0
bec39cab
AC
1206for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208done
1209ac_signal=0
1210
1211# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1212rm -rf conftest* confdefs.h
1213# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214echo >confdefs.h
bec39cab
AC
1215
1216# Predefined preprocessor variables.
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_NAME "$PACKAGE_NAME"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225_ACEOF
1226
1227
1228cat >>confdefs.h <<_ACEOF
1229#define PACKAGE_VERSION "$PACKAGE_VERSION"
1230_ACEOF
1231
1232
1233cat >>confdefs.h <<_ACEOF
1234#define PACKAGE_STRING "$PACKAGE_STRING"
1235_ACEOF
1236
1237
1238cat >>confdefs.h <<_ACEOF
1239#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240_ACEOF
1241
1242
1243# Let the site file select an alternate cache file if it wants to.
1244# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1245if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 else
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1250 fi
c906108c 1251fi
b4e70030 1252for ac_site_file in $CONFIG_SITE; do
c906108c 1253 if test -r "$ac_site_file"; then
bec39cab
AC
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1257 . "$ac_site_file"
1258 fi
1259done
1260
1261if test -r "$cache_file"; then
bec39cab
AC
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266echo "$as_me: loading cache $cache_file" >&6;}
1267 case $cache_file in
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1270 esac
1271 fi
c906108c 1272else
bec39cab
AC
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274echo "$as_me: creating cache $cache_file" >&6;}
1275 >$cache_file
1276fi
1277
1278# Check that the precious variables saved in the cache have kept the same
1279# value.
1280ac_cache_corrupted=false
b4e70030
JB
1281for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1287 case $ac_old_set,$ac_new_set in
1288 set,)
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1292 ,set)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,);;
1297 *)
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
fdc59709
PB
1299 # differences in whitespace do not lead to failure.
1300 ac_old_val_w=`echo x $ac_old_val`
1301 ac_new_val_w=`echo x $ac_new_val`
1302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
bec39cab 1304echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
fdc59709
PB
1305 ac_cache_corrupted=:
1306 else
1307 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1308echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1309 eval $ac_var=\$ac_old_val
1310 fi
1311 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1312echo "$as_me: former value: \`$ac_old_val'" >&2;}
1313 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1314echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
1315 fi;;
1316 esac
1317 # Pass precious variables to config.status.
1318 if test "$ac_new_set" = set; then
1319 case $ac_new_val in
b4e70030
JB
1320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1322 *) ac_arg=$ac_var=$ac_new_val ;;
1323 esac
1324 case " $ac_configure_args " in
1325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1326 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327 esac
1328 fi
1329done
1330if $ac_cache_corrupted; then
d5af19ba
DJ
1331 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1332echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1333 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1334echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1335 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1336echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1337 { (exit 1); exit 1; }; }
c906108c
SS
1338fi
1339
b4e70030
JB
1340ac_ext=c
1341ac_cpp='$CPP $CPPFLAGS'
1342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1344ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1345
1346
783e057b
DJ
1347gl_header_list="$gl_header_list stdint.h"
1348gl_header_list="$gl_header_list wchar.h"
1349gl_header_list="$gl_header_list string.h"
bec39cab
AC
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
bec39cab 1366
d5af19ba
DJ
1367
1368
1369
b4e70030
JB
1370 ac_config_headers="$ac_config_headers config.h:config.in"
1371
1372echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1373echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1374 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1375if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1376 enableval="$enable_maintainer_mode"
1377 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1378else
1379 USE_MAINTAINER_MODE=no
b4e70030
JB
1380fi;
1381 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1382echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1383
413ccac7
AC
1384
1385if test $USE_MAINTAINER_MODE = yes; then
1386 MAINTAINER_MODE_TRUE=
1387 MAINTAINER_MODE_FALSE='#'
1388else
1389 MAINTAINER_MODE_TRUE='#'
1390 MAINTAINER_MODE_FALSE=
1391fi
85981d60 1392
413ccac7 1393 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1394
c906108c 1395
bec39cab
AC
1396
1397ac_ext=c
1398ac_cpp='$CPP $CPPFLAGS'
1399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1404set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1405echo "$as_me:$LINENO: checking for $ac_word" >&5
1406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1407if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412else
1413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414for as_dir in $PATH
1415do
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1423 fi
1424done
1425done
1426
1427fi
1428fi
1429CC=$ac_cv_prog_CC
1430if test -n "$CC"; then
b4e70030
JB
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432echo "${ECHO_T}$CC" >&6
bec39cab 1433else
b4e70030
JB
1434 echo "$as_me:$LINENO: result: no" >&5
1435echo "${ECHO_T}no" >&6
bec39cab
AC
1436fi
1437
1438fi
1439if test -z "$ac_cv_prog_CC"; then
1440 ac_ct_CC=$CC
1441 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1442set dummy gcc; ac_word=$2
b4e70030
JB
1443echo "$as_me:$LINENO: checking for $ac_word" >&5
1444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1445if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447else
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450else
1451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452for as_dir in $PATH
1453do
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1458 ac_cv_prog_ac_ct_CC="gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1461 fi
1462done
1463done
1464
1465fi
1466fi
1467ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468if test -n "$ac_ct_CC"; then
b4e70030
JB
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1471else
b4e70030
JB
1472 echo "$as_me:$LINENO: result: no" >&5
1473echo "${ECHO_T}no" >&6
bec39cab
AC
1474fi
1475
b4e70030 1476 CC=$ac_ct_CC
bec39cab
AC
1477else
1478 CC="$ac_cv_prog_CC"
1479fi
1480
1481if test -z "$CC"; then
b4e70030
JB
1482 if test -n "$ac_tool_prefix"; then
1483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1484set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1485echo "$as_me:$LINENO: checking for $ac_word" >&5
1486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1487if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1489else
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1492else
bec39cab
AC
1493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494for as_dir in $PATH
1495do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1500 ac_cv_prog_CC="${ac_tool_prefix}cc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 break 2
1503 fi
1504done
1505done
1506
c906108c
SS
1507fi
1508fi
bec39cab 1509CC=$ac_cv_prog_CC
c906108c 1510if test -n "$CC"; then
b4e70030
JB
1511 echo "$as_me:$LINENO: result: $CC" >&5
1512echo "${ECHO_T}$CC" >&6
c906108c 1513else
b4e70030
JB
1514 echo "$as_me:$LINENO: result: no" >&5
1515echo "${ECHO_T}no" >&6
c906108c
SS
1516fi
1517
b4e70030
JB
1518fi
1519if test -z "$ac_cv_prog_CC"; then
1520 ac_ct_CC=$CC
1521 # Extract the first word of "cc", so it can be a program name with args.
1522set dummy cc; ac_word=$2
1523echo "$as_me:$LINENO: checking for $ac_word" >&5
1524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527else
1528 if test -n "$ac_ct_CC"; then
1529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530else
1531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532for as_dir in $PATH
1533do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_ac_ct_CC="cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
4e8d927d 1541 fi
b4e70030
JB
1542done
1543done
1544
1545fi
1546fi
1547ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548if test -n "$ac_ct_CC"; then
1549 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1550echo "${ECHO_T}$ac_ct_CC" >&6
1551else
1552 echo "$as_me:$LINENO: result: no" >&5
1553echo "${ECHO_T}no" >&6
1554fi
1555
1556 CC=$ac_ct_CC
1557else
1558 CC="$ac_cv_prog_CC"
1559fi
1560
bec39cab 1561fi
c906108c
SS
1562if test -z "$CC"; then
1563 # Extract the first word of "cc", so it can be a program name with args.
1564set dummy cc; ac_word=$2
b4e70030
JB
1565echo "$as_me:$LINENO: checking for $ac_word" >&5
1566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1567if test "${ac_cv_prog_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1569else
1570 if test -n "$CC"; then
1571 ac_cv_prog_CC="$CC" # Let the user override the test.
1572else
c906108c 1573 ac_prog_rejected=no
bec39cab
AC
1574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575for as_dir in $PATH
1576do
1577 IFS=$as_save_IFS
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1582 ac_prog_rejected=yes
1583 continue
1584 fi
1585 ac_cv_prog_CC="cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1588 fi
1589done
1590done
1591
c906108c
SS
1592if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1595 shift
bec39cab 1596 if test $# != 0; then
c906108c
SS
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1600 shift
bec39cab 1601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1602 fi
1603fi
1604fi
1605fi
bec39cab 1606CC=$ac_cv_prog_CC
c906108c 1607if test -n "$CC"; then
b4e70030
JB
1608 echo "$as_me:$LINENO: result: $CC" >&5
1609echo "${ECHO_T}$CC" >&6
c906108c 1610else
b4e70030
JB
1611 echo "$as_me:$LINENO: result: no" >&5
1612echo "${ECHO_T}no" >&6
c906108c
SS
1613fi
1614
bec39cab
AC
1615fi
1616if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
b4e70030 1618 for ac_prog in cl
bec39cab
AC
1619 do
1620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1622echo "$as_me:$LINENO: checking for $ac_word" >&5
1623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1624if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1626else
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1629else
bec39cab
AC
1630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631for as_dir in $PATH
1632do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1640 fi
1641done
1642done
1643
c906108c
SS
1644fi
1645fi
bec39cab 1646CC=$ac_cv_prog_CC
c906108c 1647if test -n "$CC"; then
b4e70030
JB
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649echo "${ECHO_T}$CC" >&6
c906108c 1650else
b4e70030
JB
1651 echo "$as_me:$LINENO: result: no" >&5
1652echo "${ECHO_T}no" >&6
c906108c 1653fi
bec39cab
AC
1654
1655 test -n "$CC" && break
1656 done
1657fi
1658if test -z "$CC"; then
1659 ac_ct_CC=$CC
b4e70030 1660 for ac_prog in cl
bec39cab
AC
1661do
1662 # Extract the first word of "$ac_prog", so it can be a program name with args.
1663set dummy $ac_prog; ac_word=$2
b4e70030
JB
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1666if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669 if test -n "$ac_ct_CC"; then
1670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1679 ac_cv_prog_ac_ct_CC="$ac_prog"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
c906108c 1682 fi
bec39cab
AC
1683done
1684done
1685
1686fi
1687fi
1688ac_ct_CC=$ac_cv_prog_ac_ct_CC
1689if test -n "$ac_ct_CC"; then
b4e70030
JB
1690 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1691echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1692else
b4e70030
JB
1693 echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
c906108c
SS
1695fi
1696
bec39cab
AC
1697 test -n "$ac_ct_CC" && break
1698done
c906108c 1699
b4e70030 1700 CC=$ac_ct_CC
bec39cab
AC
1701fi
1702
1703fi
1704
1705
d5af19ba
DJ
1706test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1707echo "$as_me: error: in \`$ac_pwd':" >&2;}
1708{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bec39cab
AC
1709See \`config.log' for more details." >&5
1710echo "$as_me: error: no acceptable C compiler found in \$PATH
1711See \`config.log' for more details." >&2;}
d5af19ba 1712 { (exit 1); exit 1; }; }; }
bec39cab
AC
1713
1714# Provide some information about the compiler.
b4e70030
JB
1715echo "$as_me:$LINENO:" \
1716 "checking for C compiler version" >&5
bec39cab 1717ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1718{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1719 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1720 ac_status=$?
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }
b4e70030
JB
1723{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1724 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1725 ac_status=$?
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }
b4e70030
JB
1728{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1729 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }
1733
1734cat >conftest.$ac_ext <<_ACEOF
1735/* confdefs.h. */
1736_ACEOF
1737cat confdefs.h >>conftest.$ac_ext
1738cat >>conftest.$ac_ext <<_ACEOF
1739/* end confdefs.h. */
1740
1741int
1742main ()
1743{
1744
1745 ;
1746 return 0;
1747}
1748_ACEOF
1749ac_clean_files_save=$ac_clean_files
b4e70030 1750ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1751# Try to create an executable without -o first, disregard a.out.
1752# It will help us diagnose broken compilers, and finding out an intuition
1753# of exeext.
b4e70030
JB
1754echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1755echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1756ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1757if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1758 (eval $ac_link_default) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; then
b4e70030
JB
1762 # Find the output, starting from the most likely. This scheme is
1763# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1764# resort.
1765
1766# Be careful to initialize this variable, since it used to be cached.
1767# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1768ac_cv_exeext=
1769# b.out is created by i960 compilers.
1770for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1771do
1772 test -f "$ac_file" || continue
1773 case $ac_file in
b4e70030
JB
1774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1775 ;;
1776 conftest.$ac_ext )
1777 # This is the source file.
1778 ;;
1779 [ab].out )
1780 # We found the default executable, but exeext='' is most
1781 # certainly right.
1782 break;;
1783 *.* )
1784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1785 # FIXME: I believe we export ac_cv_exeext for Libtool,
1786 # but it would be cool to find out if it's true. Does anybody
1787 # maintain Libtool? --akim.
1788 export ac_cv_exeext
1789 break;;
1790 * )
1791 break;;
bec39cab
AC
1792 esac
1793done
1794else
1795 echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
d5af19ba
DJ
1798{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1800{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1801See \`config.log' for more details." >&5
1802echo "$as_me: error: C compiler cannot create executables
1803See \`config.log' for more details." >&2;}
d5af19ba 1804 { (exit 77); exit 77; }; }; }
bec39cab
AC
1805fi
1806
b4e70030
JB
1807ac_exeext=$ac_cv_exeext
1808echo "$as_me:$LINENO: result: $ac_file" >&5
1809echo "${ECHO_T}$ac_file" >&6
1810
1811# Check the compiler produces executables we can run. If not, either
bec39cab 1812# the compiler is broken, or we cross compile.
b4e70030
JB
1813echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1814echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1815# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1816# If not cross compiling, check that we can run a simple program.
1817if test "$cross_compiling" != yes; then
1818 if { ac_try='./$ac_file'
1819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1820 (eval $ac_try) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1824 cross_compiling=no
c906108c 1825 else
bec39cab
AC
1826 if test "$cross_compiling" = maybe; then
1827 cross_compiling=yes
1828 else
d5af19ba
DJ
1829 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1830echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
bec39cab
AC
1832If you meant to cross compile, use \`--host'.
1833See \`config.log' for more details." >&5
1834echo "$as_me: error: cannot run C compiled programs.
1835If you meant to cross compile, use \`--host'.
1836See \`config.log' for more details." >&2;}
d5af19ba 1837 { (exit 1); exit 1; }; }; }
bec39cab 1838 fi
c906108c 1839 fi
bec39cab 1840fi
b4e70030
JB
1841echo "$as_me:$LINENO: result: yes" >&5
1842echo "${ECHO_T}yes" >&6
bec39cab 1843
b4e70030
JB
1844rm -f a.out a.exe conftest$ac_cv_exeext b.out
1845ac_clean_files=$ac_clean_files_save
1846# Check the compiler produces executables we can run. If not, either
1847# the compiler is broken, or we cross compile.
1848echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1849echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1850echo "$as_me:$LINENO: result: $cross_compiling" >&5
1851echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1852
b4e70030
JB
1853echo "$as_me:$LINENO: checking for suffix of executables" >&5
1854echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1856 (eval $ac_link) 2>&5
1857 ac_status=$?
1858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859 (exit $ac_status); }; then
b4e70030
JB
1860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1861# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1862# work properly (i.e., refer to `conftest.exe'), while it won't with
1863# `rm'.
1864for ac_file in conftest.exe conftest conftest.*; do
1865 test -f "$ac_file" || continue
1866 case $ac_file in
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869 export ac_cv_exeext
1870 break;;
1871 * ) break;;
1872 esac
1873done
c906108c 1874else
d5af19ba
DJ
1875 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1876echo "$as_me: error: in \`$ac_pwd':" >&2;}
1877{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bec39cab
AC
1878See \`config.log' for more details." >&5
1879echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1880See \`config.log' for more details." >&2;}
d5af19ba 1881 { (exit 1); exit 1; }; }; }
c906108c 1882fi
c906108c 1883
b4e70030
JB
1884rm -f conftest$ac_cv_exeext
1885echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1886echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1887
b4e70030 1888rm -f conftest.$ac_ext
bec39cab
AC
1889EXEEXT=$ac_cv_exeext
1890ac_exeext=$EXEEXT
b4e70030
JB
1891echo "$as_me:$LINENO: checking for suffix of object files" >&5
1892echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1893if test "${ac_cv_objext+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895else
b4e70030
JB
1896 cat >conftest.$ac_ext <<_ACEOF
1897/* confdefs.h. */
1898_ACEOF
1899cat confdefs.h >>conftest.$ac_ext
1900cat >>conftest.$ac_ext <<_ACEOF
1901/* end confdefs.h. */
1902
1903int
1904main ()
1905{
1906
1907 ;
1908 return 0;
1909}
1910_ACEOF
1911rm -f conftest.o conftest.obj
bec39cab
AC
1912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
b4e70030 1917 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1918 case $ac_file in
b4e70030 1919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1921 break;;
1922 esac
1923done
c906108c 1924else
bec39cab
AC
1925 echo "$as_me: failed program was:" >&5
1926sed 's/^/| /' conftest.$ac_ext >&5
1927
d5af19ba
DJ
1928{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1929echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1930{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1931See \`config.log' for more details." >&5
1932echo "$as_me: error: cannot compute suffix of object files: cannot compile
1933See \`config.log' for more details." >&2;}
d5af19ba 1934 { (exit 1); exit 1; }; }; }
c906108c
SS
1935fi
1936
b4e70030 1937rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1938fi
b4e70030
JB
1939echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1941OBJEXT=$ac_cv_objext
1942ac_objext=$OBJEXT
b4e70030
JB
1943echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1945if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1947else
bec39cab
AC
1948 cat >conftest.$ac_ext <<_ACEOF
1949/* confdefs.h. */
1950_ACEOF
1951cat confdefs.h >>conftest.$ac_ext
1952cat >>conftest.$ac_ext <<_ACEOF
1953/* end confdefs.h. */
1954
1955int
1956main ()
1957{
1958#ifndef __GNUC__
1959 choke me
1960#endif
1961
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966rm -f conftest.$ac_objext
1967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>conftest.er1
1969 ac_status=$?
1970 grep -v '^ *+' conftest.er1 >conftest.err
1971 rm -f conftest.er1
1972 cat conftest.err >&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
b4e70030
JB
1975 { ac_try='test -z "$ac_c_werror_flag"
1976 || test ! -s conftest.err'
bec39cab
AC
1977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1978 (eval $ac_try) 2>&5
1979 ac_status=$?
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; } &&
1982 { ac_try='test -s conftest.$ac_objext'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984 (eval $ac_try) 2>&5
1985 ac_status=$?
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1988 ac_compiler_gnu=yes
1989else
1990 echo "$as_me: failed program was:" >&5
1991sed 's/^/| /' conftest.$ac_ext >&5
1992
b4e70030 1993ac_compiler_gnu=no
bec39cab
AC
1994fi
1995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1996ac_cv_c_compiler_gnu=$ac_compiler_gnu
1997
1998fi
b4e70030
JB
1999echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2000echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
2001GCC=`test $ac_compiler_gnu = yes && echo yes`
2002ac_test_CFLAGS=${CFLAGS+set}
2003ac_save_CFLAGS=$CFLAGS
b4e70030
JB
2004CFLAGS="-g"
2005echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2006echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
2007if test "${ac_cv_prog_cc_g+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
b4e70030 2010 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
2011/* confdefs.h. */
2012_ACEOF
2013cat confdefs.h >>conftest.$ac_ext
2014cat >>conftest.$ac_ext <<_ACEOF
2015/* end confdefs.h. */
2016
2017int
2018main ()
2019{
2020
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025rm -f conftest.$ac_objext
2026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>conftest.er1
2028 ac_status=$?
2029 grep -v '^ *+' conftest.er1 >conftest.err
2030 rm -f conftest.er1
2031 cat conftest.err >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); } &&
b4e70030
JB
2034 { ac_try='test -z "$ac_c_werror_flag"
2035 || test ! -s conftest.err'
bec39cab
AC
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
c906108c
SS
2047 ac_cv_prog_cc_g=yes
2048else
bec39cab
AC
2049 echo "$as_me: failed program was:" >&5
2050sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2051
b4e70030 2052ac_cv_prog_cc_g=no
4e8d927d 2053fi
bec39cab
AC
2054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055fi
b4e70030
JB
2056echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2058if test "$ac_test_CFLAGS" = set; then
bec39cab 2059 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2060elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2062 CFLAGS="-g -O2"
2063 else
2064 CFLAGS="-g"
2065 fi
2066else
2067 if test "$GCC" = yes; then
2068 CFLAGS="-O2"
2069 else
2070 CFLAGS=
2071 fi
2072fi
b4e70030
JB
2073echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
b4e70030 2078 ac_cv_prog_cc_stdc=no
bec39cab
AC
2079ac_save_CC=$CC
2080cat >conftest.$ac_ext <<_ACEOF
2081/* confdefs.h. */
2082_ACEOF
2083cat confdefs.h >>conftest.$ac_ext
2084cat >>conftest.$ac_ext <<_ACEOF
2085/* end confdefs.h. */
c906108c
SS
2086#include <stdarg.h>
2087#include <stdio.h>
2088#include <sys/types.h>
2089#include <sys/stat.h>
2090/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2091struct buf { int x; };
2092FILE * (*rcsopen) (struct buf *, struct stat *, int);
2093static char *e (p, i)
2094 char **p;
2095 int i;
2096{
2097 return p[i];
2098}
2099static char *f (char * (*g) (char **, int), char **p, ...)
2100{
2101 char *s;
2102 va_list v;
2103 va_start (v,p);
2104 s = g (p, va_arg (v,int));
2105 va_end (v);
2106 return s;
2107}
bec39cab
AC
2108
2109/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2110 function prototypes and stuff, but not '\xHH' hex character constants.
2111 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2112 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2114 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2115 that's true only with -std1. */
bec39cab
AC
2116int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2117
c906108c
SS
2118int test (int i, double x);
2119struct s1 {int (*f) (int a);};
2120struct s2 {int (*f) (double a);};
2121int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2122int argc;
2123char **argv;
bec39cab
AC
2124int
2125main ()
2126{
c906108c 2127return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2128 ;
2129 return 0;
2130}
2131_ACEOF
b4e70030
JB
2132# Don't try gcc -ansi; that turns off useful extensions and
2133# breaks some systems' header files.
2134# AIX -qlanglvl=ansi
2135# Ultrix and OSF/1 -std1
2136# HP-UX 10.20 and later -Ae
2137# HP-UX older versions -Aa -D_HPUX_SOURCE
2138# SVR4 -Xc -D__EXTENSIONS__
2139for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2140do
2141 CC="$ac_save_CC $ac_arg"
2142 rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
b4e70030
JB
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
bec39cab
AC
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
b4e70030
JB
2164 ac_cv_prog_cc_stdc=$ac_arg
2165break
c906108c 2166else
bec39cab
AC
2167 echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
c906108c 2170fi
bec39cab 2171rm -f conftest.err conftest.$ac_objext
c906108c 2172done
b4e70030 2173rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2174CC=$ac_save_CC
c906108c
SS
2175
2176fi
b4e70030
JB
2177
2178case "x$ac_cv_prog_cc_stdc" in
2179 x|xno)
2180 echo "$as_me:$LINENO: result: none needed" >&5
2181echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2182 *)
b4e70030
JB
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2184echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2185 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2186esac
2187
b4e70030
JB
2188# Some people use a C++ compiler to compile C. Since we use `exit',
2189# in C++ we need to declare it. In case someone uses the same compiler
2190# for both compiling C and C++ we need to have the C++ compiler decide
2191# the declaration of exit, since it's the most demanding environment.
2192cat >conftest.$ac_ext <<_ACEOF
2193#ifndef __cplusplus
2194 choke me
2195#endif
2196_ACEOF
2197rm -f conftest.$ac_objext
2198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>conftest.er1
2200 ac_status=$?
2201 grep -v '^ *+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } &&
2206 { ac_try='test -z "$ac_c_werror_flag"
2207 || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 for ac_declaration in \
2220 '' \
2221 'extern "C" void std::exit (int) throw (); using std::exit;' \
2222 'extern "C" void std::exit (int); using std::exit;' \
2223 'extern "C" void exit (int) throw ();' \
2224 'extern "C" void exit (int);' \
2225 'void exit (int);'
2226do
2227 cat >conftest.$ac_ext <<_ACEOF
2228/* confdefs.h. */
2229_ACEOF
2230cat confdefs.h >>conftest.$ac_ext
2231cat >>conftest.$ac_ext <<_ACEOF
2232/* end confdefs.h. */
2233$ac_declaration
2234#include <stdlib.h>
2235int
2236main ()
2237{
2238exit (42);
2239 ;
2240 return 0;
2241}
2242_ACEOF
2243rm -f conftest.$ac_objext
2244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2246 ac_status=$?
2247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag"
2253 || test ! -s conftest.err'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2265 :
2266else
2267 echo "$as_me: failed program was:" >&5
2268sed 's/^/| /' conftest.$ac_ext >&5
2269
2270continue
2271fi
2272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273 cat >conftest.$ac_ext <<_ACEOF
2274/* confdefs.h. */
2275_ACEOF
2276cat confdefs.h >>conftest.$ac_ext
2277cat >>conftest.$ac_ext <<_ACEOF
2278/* end confdefs.h. */
2279$ac_declaration
2280int
2281main ()
2282{
2283exit (42);
2284 ;
2285 return 0;
2286}
2287_ACEOF
2288rm -f conftest.$ac_objext
2289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>conftest.er1
2291 ac_status=$?
2292 grep -v '^ *+' conftest.er1 >conftest.err
2293 rm -f conftest.er1
2294 cat conftest.err >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -z "$ac_c_werror_flag"
2298 || test ! -s conftest.err'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2310 break
2311else
2312 echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315fi
2316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317done
2318rm -f conftest*
2319if test -n "$ac_declaration"; then
2320 echo '#ifdef __cplusplus' >>confdefs.h
2321 echo $ac_declaration >>confdefs.h
2322 echo '#endif' >>confdefs.h
2323fi
2324
2325else
2326 echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2328
b4e70030
JB
2329fi
2330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2331ac_ext=c
2332ac_cpp='$CPP $CPPFLAGS'
2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2336
60ca704f 2337
bec39cab
AC
2338cat >>confdefs.h <<\_ACEOF
2339#define _GNU_SOURCE 1
2340_ACEOF
c906108c
SS
2341
2342
8bb2c122 2343
bec39cab
AC
2344ac_ext=c
2345ac_cpp='$CPP $CPPFLAGS'
2346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2349echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2350echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2351# On Suns, sometimes $CPP names a directory.
2352if test -n "$CPP" && test -d "$CPP"; then
2353 CPP=
8bb2c122 2354fi
bec39cab
AC
2355if test -z "$CPP"; then
2356 if test "${ac_cv_prog_CPP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359 # Double quotes because CPP needs to be expanded
2360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2361 do
2362 ac_preproc_ok=false
2363for ac_c_preproc_warn_flag in '' yes
2364do
2365 # Use a header file that comes with gcc, so configuring glibc
2366 # with a fresh cross-compiler works.
2367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2368 # <limits.h> exists even on freestanding compilers.
2369 # On the NeXT, cc -E runs the code through the compiler's parser,
2370 # not just through cpp. "Syntax error" is here to catch this case.
2371 cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h. */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h. */
2377#ifdef __STDC__
2378# include <limits.h>
2379#else
2380# include <assert.h>
2381#endif
2382 Syntax error
2383_ACEOF
2384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } >/dev/null; then
2392 if test -s conftest.err; then
2393 ac_cpp_err=$ac_c_preproc_warn_flag
2394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2395 else
2396 ac_cpp_err=
2397 fi
8bb2c122 2398else
bec39cab 2399 ac_cpp_err=yes
8bb2c122 2400fi
bec39cab
AC
2401if test -z "$ac_cpp_err"; then
2402 :
8bb2c122 2403else
bec39cab
AC
2404 echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 # Broken: fails on valid input.
2408continue
2409fi
2410rm -f conftest.err conftest.$ac_ext
2411
b4e70030 2412 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2413 # can be detected and how.
2414 cat >conftest.$ac_ext <<_ACEOF
2415/* confdefs.h. */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h. */
2420#include <ac_nonexistent.h>
2421_ACEOF
2422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2424 ac_status=$?
2425 grep -v '^ *+' conftest.er1 >conftest.err
2426 rm -f conftest.er1
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } >/dev/null; then
2430 if test -s conftest.err; then
2431 ac_cpp_err=$ac_c_preproc_warn_flag
2432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2433 else
2434 ac_cpp_err=
2435 fi
8bb2c122 2436else
bec39cab 2437 ac_cpp_err=yes
8bb2c122 2438fi
bec39cab
AC
2439if test -z "$ac_cpp_err"; then
2440 # Broken: success on invalid input.
2441continue
8bb2c122 2442else
bec39cab
AC
2443 echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2445
bec39cab
AC
2446 # Passes both tests.
2447ac_preproc_ok=:
2448break
8bb2c122 2449fi
bec39cab 2450rm -f conftest.err conftest.$ac_ext
8bb2c122 2451
bec39cab
AC
2452done
2453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2454rm -f conftest.err conftest.$ac_ext
2455if $ac_preproc_ok; then
2456 break
2457fi
8bb2c122 2458
bec39cab
AC
2459 done
2460 ac_cv_prog_CPP=$CPP
ddc9cd0f 2461
c906108c 2462fi
bec39cab
AC
2463 CPP=$ac_cv_prog_CPP
2464else
2465 ac_cv_prog_CPP=$CPP
c906108c 2466fi
b4e70030
JB
2467echo "$as_me:$LINENO: result: $CPP" >&5
2468echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2469ac_preproc_ok=false
2470for ac_c_preproc_warn_flag in '' yes
2471do
2472 # Use a header file that comes with gcc, so configuring glibc
2473 # with a fresh cross-compiler works.
2474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 # <limits.h> exists even on freestanding compilers.
2476 # On the NeXT, cc -E runs the code through the compiler's parser,
2477 # not just through cpp. "Syntax error" is here to catch this case.
2478 cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h. */
2484#ifdef __STDC__
2485# include <limits.h>
2486#else
2487# include <assert.h>
2488#endif
2489 Syntax error
2490_ACEOF
2491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev/null; then
2499 if test -s conftest.err; then
2500 ac_cpp_err=$ac_c_preproc_warn_flag
2501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502 else
2503 ac_cpp_err=
2504 fi
c906108c 2505else
bec39cab 2506 ac_cpp_err=yes
c906108c 2507fi
bec39cab
AC
2508if test -z "$ac_cpp_err"; then
2509 :
c906108c 2510else
bec39cab
AC
2511 echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 # Broken: fails on valid input.
2515continue
2516fi
2517rm -f conftest.err conftest.$ac_ext
2518
b4e70030 2519 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2520 # can be detected and how.
2521 cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h. */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h. */
2527#include <ac_nonexistent.h>
2528_ACEOF
2529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2540 else
2541 ac_cpp_err=
2542 fi
c906108c 2543else
bec39cab 2544 ac_cpp_err=yes
c906108c 2545fi
bec39cab
AC
2546if test -z "$ac_cpp_err"; then
2547 # Broken: success on invalid input.
2548continue
c906108c 2549else
bec39cab
AC
2550 echo "$as_me: failed program was:" >&5
2551sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2552
bec39cab
AC
2553 # Passes both tests.
2554ac_preproc_ok=:
2555break
c906108c 2556fi
bec39cab 2557rm -f conftest.err conftest.$ac_ext
c906108c 2558
bec39cab
AC
2559done
2560# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561rm -f conftest.err conftest.$ac_ext
2562if $ac_preproc_ok; then
c906108c
SS
2563 :
2564else
d5af19ba
DJ
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
bec39cab
AC
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2570See \`config.log' for more details." >&2;}
d5af19ba 2571 { (exit 1); exit 1; }; }; }
c906108c 2572fi
c906108c 2573
bec39cab
AC
2574ac_ext=c
2575ac_cpp='$CPP $CPPFLAGS'
2576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579
2580
b4e70030
JB
2581echo "$as_me:$LINENO: checking for egrep" >&5
2582echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2583if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
b4e70030
JB
2586 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2587 then ac_cv_prog_egrep='grep -E'
2588 else ac_cv_prog_egrep='egrep'
bec39cab 2589 fi
4e8d927d 2590fi
b4e70030
JB
2591echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2592echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2593 EGREP=$ac_cv_prog_egrep
c906108c 2594
bec39cab
AC
2595
2596
b4e70030
JB
2597echo "$as_me:$LINENO: checking for AIX" >&5
2598echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2599cat >conftest.$ac_ext <<_ACEOF
2600/* confdefs.h. */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h. */
2605#ifdef _AIX
2606 yes
2607#endif
2608
2609_ACEOF
c906108c 2610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2611 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2612 echo "$as_me:$LINENO: result: yes" >&5
2613echo "${ECHO_T}yes" >&6
bec39cab
AC
2614cat >>confdefs.h <<\_ACEOF
2615#define _ALL_SOURCE 1
2616_ACEOF
2617
c906108c 2618else
b4e70030
JB
2619 echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6
c906108c
SS
2621fi
2622rm -f conftest*
2623
c906108c 2624
b4e70030
JB
2625echo "$as_me:$LINENO: checking for library containing strerror" >&5
2626echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2627if test "${ac_cv_search_strerror+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2629else
bec39cab 2630 ac_func_search_save_LIBS=$LIBS
b4e70030 2631ac_cv_search_strerror=no
bec39cab
AC
2632cat >conftest.$ac_ext <<_ACEOF
2633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
2637/* end confdefs.h. */
c906108c 2638
b4e70030 2639/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2640#ifdef __cplusplus
2641extern "C"
2642#endif
b4e70030
JB
2643/* We use char because int might match the return type of a gcc2
2644 builtin and then its argument prototype would still apply. */
bec39cab
AC
2645char strerror ();
2646int
2647main ()
2648{
b4e70030 2649strerror ();
bec39cab
AC
2650 ;
2651 return 0;
2652}
2653_ACEOF
b4e70030 2654rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2656 (eval $ac_link) 2>conftest.er1
2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
b4e70030
JB
2663 { ac_try='test -z "$ac_c_werror_flag"
2664 || test ! -s conftest.err'
bec39cab
AC
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 (eval $ac_try) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; } &&
2670 { ac_try='test -s conftest$ac_exeext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
b4e70030 2676 ac_cv_search_strerror="none required"
c906108c 2677else
bec39cab
AC
2678 echo "$as_me: failed program was:" >&5
2679sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2680
2681fi
bec39cab 2682rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2683 conftest$ac_exeext conftest.$ac_ext
2684if test "$ac_cv_search_strerror" = no; then
2685 for ac_lib in cposix; do
2686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2687 cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h. */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h. */
2693
2694/* Override any gcc2 internal prototype to avoid an error. */
2695#ifdef __cplusplus
2696extern "C"
2697#endif
2698/* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2700char strerror ();
2701int
2702main ()
2703{
2704strerror ();
2705 ;
2706 return 0;
2707}
2708_ACEOF
2709rm -f conftest.$ac_objext conftest$ac_exeext
2710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711 (eval $ac_link) 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest$ac_exeext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_cv_search_strerror="-l$ac_lib"
2732break
4e8d927d 2733else
b4e70030
JB
2734 echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737fi
2738rm -f conftest.err conftest.$ac_objext \
2739 conftest$ac_exeext conftest.$ac_ext
2740 done
c906108c 2741fi
bec39cab 2742LIBS=$ac_func_search_save_LIBS
c906108c 2743fi
b4e70030
JB
2744echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2745echo "${ECHO_T}$ac_cv_search_strerror" >&6
2746if test "$ac_cv_search_strerror" != no; then
2747 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2748
c906108c
SS
2749fi
2750
783e057b
DJ
2751if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2753set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2754echo "$as_me:$LINENO: checking for $ac_word" >&5
2755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756if test "${ac_cv_prog_RANLIB+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758else
2759 if test -n "$RANLIB"; then
2760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773done
2774done
c906108c 2775
783e057b
DJ
2776fi
2777fi
2778RANLIB=$ac_cv_prog_RANLIB
2779if test -n "$RANLIB"; then
2780 echo "$as_me:$LINENO: result: $RANLIB" >&5
2781echo "${ECHO_T}$RANLIB" >&6
2782else
2783 echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6
2785fi
bec39cab 2786
783e057b
DJ
2787fi
2788if test -z "$ac_cv_prog_RANLIB"; then
2789 ac_ct_RANLIB=$RANLIB
2790 # Extract the first word of "ranlib", so it can be a program name with args.
2791set dummy ranlib; ac_word=$2
2792echo "$as_me:$LINENO: checking for $ac_word" >&5
2793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
bec39cab 2795 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2796else
783e057b
DJ
2797 if test -n "$ac_ct_RANLIB"; then
2798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
bec39cab 2802do
783e057b
DJ
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_RANLIB="ranlib"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811done
2812done
2813
2814 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2815fi
2816fi
2817ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2818if test -n "$ac_ct_RANLIB"; then
2819 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2820echo "${ECHO_T}$ac_ct_RANLIB" >&6
2821else
2822 echo "$as_me:$LINENO: result: no" >&5
2823echo "${ECHO_T}no" >&6
2824fi
2825
2826 RANLIB=$ac_ct_RANLIB
2827else
2828 RANLIB="$ac_cv_prog_RANLIB"
2829fi
2830
2831echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2832echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2833if test "${ac_cv_header_stdc+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
bec39cab
AC
2836 cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h. */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h. */
783e057b 2842#include <stdlib.h>
bec39cab 2843#include <stdarg.h>
783e057b
DJ
2844#include <string.h>
2845#include <float.h>
c906108c 2846
bec39cab
AC
2847int
2848main ()
2849{
c906108c 2850
bec39cab
AC
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855rm -f conftest.$ac_objext
2856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>conftest.er1
2858 ac_status=$?
2859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
b4e70030
JB
2864 { ac_try='test -z "$ac_c_werror_flag"
2865 || test ! -s conftest.err'
bec39cab
AC
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try='test -s conftest.$ac_objext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
783e057b 2877 ac_cv_header_stdc=yes
c906108c 2878else
bec39cab
AC
2879 echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2881
783e057b 2882ac_cv_header_stdc=no
c906108c 2883fi
bec39cab 2884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2885
783e057b
DJ
2886if test $ac_cv_header_stdc = yes; then
2887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2888 cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
2894#include <string.h>
c906108c 2895
783e057b
DJ
2896_ACEOF
2897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 $EGREP "memchr" >/dev/null 2>&1; then
2899 :
c906108c 2900else
783e057b 2901 ac_cv_header_stdc=no
c906108c 2902fi
783e057b 2903rm -f conftest*
c906108c
SS
2904
2905fi
2906
783e057b
DJ
2907if test $ac_cv_header_stdc = yes; then
2908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915#include <stdlib.h>
bec39cab 2916
783e057b
DJ
2917_ACEOF
2918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 $EGREP "free" >/dev/null 2>&1; then
2920 :
bec39cab 2921else
783e057b 2922 ac_cv_header_stdc=no
bec39cab 2923fi
783e057b 2924rm -f conftest*
bec39cab
AC
2925
2926fi
bec39cab 2927
783e057b
DJ
2928if test $ac_cv_header_stdc = yes; then
2929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2930 if test "$cross_compiling" = yes; then
2931 :
bec39cab 2932else
783e057b
DJ
2933 cat >conftest.$ac_ext <<_ACEOF
2934/* confdefs.h. */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h. */
2939#include <ctype.h>
2940#if ((' ' & 0x0FF) == 0x020)
2941# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2942# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2943#else
2944# define ISLOWER(c) \
2945 (('a' <= (c) && (c) <= 'i') \
2946 || ('j' <= (c) && (c) <= 'r') \
2947 || ('s' <= (c) && (c) <= 'z'))
2948# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2949#endif
2950
2951#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2952int
2953main ()
2954{
2955 int i;
2956 for (i = 0; i < 256; i++)
2957 if (XOR (islower (i), ISLOWER (i))
2958 || toupper (i) != TOUPPER (i))
2959 exit(2);
2960 exit (0);
2961}
2962_ACEOF
2963rm -f conftest$ac_exeext
2964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965 (eval $ac_link) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 :
2975else
2976 echo "$as_me: program exited with status $ac_status" >&5
2977echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980( exit $ac_status )
2981ac_cv_header_stdc=no
2982fi
2983rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2984fi
2985fi
2986fi
2987echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2988echo "${ECHO_T}$ac_cv_header_stdc" >&6
2989if test $ac_cv_header_stdc = yes; then
2990
2991cat >>confdefs.h <<\_ACEOF
2992#define STDC_HEADERS 1
2993_ACEOF
2994
2995fi
2996
2997# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3008 inttypes.h stdint.h unistd.h
3009do
3010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3011echo "$as_me:$LINENO: checking for $ac_header" >&5
3012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3013if eval "test \"\${$as_ac_Header+set}\" = set"; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
3022$ac_includes_default
3023
3024#include <$ac_header>
3025_ACEOF
3026rm -f conftest.$ac_objext
3027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_c_werror_flag"
3036 || test ! -s conftest.err'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 eval "$as_ac_Header=yes"
3049else
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053eval "$as_ac_Header=no"
3054fi
3055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056fi
3057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3059if test `eval echo '${'$as_ac_Header'}'` = yes; then
3060 cat >>confdefs.h <<_ACEOF
3061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3062_ACEOF
3063
3064fi
3065
3066done
3067
3068
3069
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3072echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3073if test "${ac_cv_header_minix_config_h+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075fi
3076echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3077echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3078else
3079 # Is the header compilable?
3080echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3081echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3082cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h. */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h. */
3088$ac_includes_default
3089#include <minix/config.h>
3090_ACEOF
3091rm -f conftest.$ac_objext
3092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag"
3101 || test ! -s conftest.err'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_header_compiler=yes
3114else
3115 echo "$as_me: failed program was:" >&5
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
3118ac_header_compiler=no
3119fi
3120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3122echo "${ECHO_T}$ac_header_compiler" >&6
3123
3124# Is the header present?
3125echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3126echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3127cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h. */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h. */
3133#include <minix/config.h>
3134_ACEOF
3135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
3145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146 else
3147 ac_cpp_err=
3148 fi
3149else
3150 ac_cpp_err=yes
3151fi
3152if test -z "$ac_cpp_err"; then
3153 ac_header_preproc=yes
3154else
3155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 ac_header_preproc=no
3159fi
3160rm -f conftest.err conftest.$ac_ext
3161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3162echo "${ECHO_T}$ac_header_preproc" >&6
3163
3164# So? What about this header?
3165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3166 yes:no: )
3167 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3168echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3169 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3170echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3171 ac_header_preproc=yes
3172 ;;
3173 no:yes:* )
3174 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3175echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3177echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3179echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3181echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3183echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3185echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3186 (
3187 cat <<\_ASBOX
3188## ------------------------------------------ ##
3189## Report this to the AC_PACKAGE_NAME lists. ##
3190## ------------------------------------------ ##
3191_ASBOX
3192 ) |
3193 sed "s/^/$as_me: WARNING: /" >&2
3194 ;;
3195esac
3196echo "$as_me:$LINENO: checking for minix/config.h" >&5
3197echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3198if test "${ac_cv_header_minix_config_h+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200else
3201 ac_cv_header_minix_config_h=$ac_header_preproc
3202fi
3203echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3204echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3205
3206fi
3207if test $ac_cv_header_minix_config_h = yes; then
3208 MINIX=yes
3209else
3210 MINIX=
3211fi
3212
3213
3214 if test "$MINIX" = yes; then
3215
3216cat >>confdefs.h <<\_ACEOF
3217#define _POSIX_SOURCE 1
3218_ACEOF
3219
3220
3221cat >>confdefs.h <<\_ACEOF
3222#define _POSIX_1_SOURCE 2
3223_ACEOF
3224
3225
3226cat >>confdefs.h <<\_ACEOF
3227#define _MINIX 1
3228_ACEOF
3229
3230 fi
3231
3232
3233
3234 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3235echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3236if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239 cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
3245
3246# define __EXTENSIONS__ 1
3247 $ac_includes_default
3248int
3249main ()
3250{
3251
3252 ;
3253 return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext
3257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258 (eval $ac_compile) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -z "$ac_c_werror_flag"
3266 || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_cv_safe_to_define___extensions__=yes
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283ac_cv_safe_to_define___extensions__=no
3284fi
3285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286fi
3287echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3288echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3289 test $ac_cv_safe_to_define___extensions__ = yes &&
3290 cat >>confdefs.h <<\_ACEOF
3291#define __EXTENSIONS__ 1
3292_ACEOF
3293
3294 cat >>confdefs.h <<\_ACEOF
3295#define _ALL_SOURCE 1
3296_ACEOF
3297
3298 cat >>confdefs.h <<\_ACEOF
3299#define _GNU_SOURCE 1
3300_ACEOF
3301
3302 cat >>confdefs.h <<\_ACEOF
3303#define _POSIX_PTHREAD_SEMANTICS 1
3304_ACEOF
3305
3306 cat >>confdefs.h <<\_ACEOF
3307#define _TANDEM_SOURCE 1
3308_ACEOF
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3320echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3321if test "${am_cv_prog_cc_stdc+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324 am_cv_prog_cc_stdc=no
3325ac_save_CC="$CC"
3326# Don't try gcc -ansi; that turns off useful extensions and
3327# breaks some systems' header files.
3328# AIX -qlanglvl=ansi
3329# Ultrix and OSF/1 -std1
3330# HP-UX 10.20 and later -Ae
3331# HP-UX older versions -Aa -D_HPUX_SOURCE
3332# SVR4 -Xc -D__EXTENSIONS__
3333for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334do
3335 CC="$ac_save_CC $ac_arg"
3336 cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h. */
3342#include <stdarg.h>
3343#include <stdio.h>
3344#include <sys/types.h>
3345#include <sys/stat.h>
3346/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3347struct buf { int x; };
3348FILE * (*rcsopen) (struct buf *, struct stat *, int);
3349static char *e (p, i)
3350 char **p;
3351 int i;
3352{
3353 return p[i];
3354}
3355static char *f (char * (*g) (char **, int), char **p, ...)
3356{
3357 char *s;
3358 va_list v;
3359 va_start (v,p);
3360 s = g (p, va_arg (v,int));
3361 va_end (v);
3362 return s;
3363}
3364int test (int i, double x);
3365struct s1 {int (*f) (int a);};
3366struct s2 {int (*f) (double a);};
3367int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368int argc;
3369char **argv;
3370
3371int
3372main ()
3373{
3374
3375return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3376
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext
3382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 am_cv_prog_cc_stdc="$ac_arg"; break
3404else
3405 echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408fi
3409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410done
3411CC="$ac_save_CC"
3412
3413fi
3414
3415if test -z "$am_cv_prog_cc_stdc"; then
3416 echo "$as_me:$LINENO: result: none needed" >&5
3417echo "${ECHO_T}none needed" >&6
3418else
3419 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3420echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3421fi
3422case "x$am_cv_prog_cc_stdc" in
3423 x|xno) ;;
3424 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3425esac
3426
3427
3428ac_aux_dir=
3429for ac_dir in .. $srcdir/..; do
3430 if test -f $ac_dir/install-sh; then
3431 ac_aux_dir=$ac_dir
3432 ac_install_sh="$ac_aux_dir/install-sh -c"
3433 break
3434 elif test -f $ac_dir/install.sh; then
3435 ac_aux_dir=$ac_dir
3436 ac_install_sh="$ac_aux_dir/install.sh -c"
3437 break
3438 elif test -f $ac_dir/shtool; then
3439 ac_aux_dir=$ac_dir
3440 ac_install_sh="$ac_aux_dir/shtool install -c"
3441 break
3442 fi
3443done
3444if test -z "$ac_aux_dir"; then
3445 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3446echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3447 { (exit 1); exit 1; }; }
3448fi
3449ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3450ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3451ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3452
3453# Make sure we can run config.sub.
3454$ac_config_sub sun4 >/dev/null 2>&1 ||
3455 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3456echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3457 { (exit 1); exit 1; }; }
3458
3459echo "$as_me:$LINENO: checking build system type" >&5
3460echo $ECHO_N "checking build system type... $ECHO_C" >&6
3461if test "${ac_cv_build+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 ac_cv_build_alias=$build_alias
3465test -z "$ac_cv_build_alias" &&
3466 ac_cv_build_alias=`$ac_config_guess`
3467test -z "$ac_cv_build_alias" &&
3468 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3469echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3470 { (exit 1); exit 1; }; }
3471ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3473echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3474 { (exit 1); exit 1; }; }
3475
3476fi
3477echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3478echo "${ECHO_T}$ac_cv_build" >&6
3479build=$ac_cv_build
3480build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3481build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3482build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3483
3484
3485echo "$as_me:$LINENO: checking host system type" >&5
3486echo $ECHO_N "checking host system type... $ECHO_C" >&6
3487if test "${ac_cv_host+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490 ac_cv_host_alias=$host_alias
3491test -z "$ac_cv_host_alias" &&
3492 ac_cv_host_alias=$ac_cv_build_alias
3493ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3495echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3496 { (exit 1); exit 1; }; }
3497
3498fi
3499echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3500echo "${ECHO_T}$ac_cv_host" >&6
3501host=$ac_cv_host
3502host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3503host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3504host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3505
3506
3507echo "$as_me:$LINENO: checking target system type" >&5
3508echo $ECHO_N "checking target system type... $ECHO_C" >&6
3509if test "${ac_cv_target+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 ac_cv_target_alias=$target_alias
3513test "x$ac_cv_target_alias" = "x" &&
b4e70030
JB
3514 ac_cv_target_alias=$ac_cv_host_alias
3515ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3517echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
3518 { (exit 1); exit 1; }; }
3519
3520fi
783e057b
DJ
3521echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3522echo "${ECHO_T}$ac_cv_target" >&6
3523target=$ac_cv_target
3524target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3525target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3526target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3527
3528
3529# The aliases save the names the user supplied, while $host etc.
3530# will get canonicalized.
3531test -n "$target_alias" &&
3532 test "$program_prefix$program_suffix$program_transform_name" = \
3533 NONENONEs,x,x, &&
3534 program_prefix=${target_alias}-
3535
3536
3537CONFIG_OBS=
3538CONFIG_DEPS=
3539CONFIG_SRCS=
3540ENABLE_CFLAGS=
3541
3542CONFIG_ALL=
3543CONFIG_CLEAN=
3544CONFIG_INSTALL=
3545CONFIG_UNINSTALL=
3546
3547# If we haven't got the data from the intl directory,
3548# assume NLS is disabled.
3549USE_NLS=no
3550LIBINTL=
3551LIBINTL_DEP=
3552INCINTL=
3553XGETTEXT=
3554GMSGFMT=
3555POSUB=
3556
3557if test -f ../intl/config.intl; then
3558 . ../intl/config.intl
3559fi
3560echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3561echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3562if test x"$USE_NLS" != xyes; then
3563 echo "$as_me:$LINENO: result: no" >&5
3564echo "${ECHO_T}no" >&6
3565else
3566 echo "$as_me:$LINENO: result: yes" >&5
3567echo "${ECHO_T}yes" >&6
3568
3569cat >>confdefs.h <<\_ACEOF
3570#define ENABLE_NLS 1
3571_ACEOF
3572
3573
3574 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3575echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3576 # Look for .po and .gmo files in the source directory.
3577 CATALOGS=
3578 XLINGUAS=
3579 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3580 # If there aren't any .gmo files the shell will give us the
3581 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3582 # weeded out.
3583 case "$cat" in *\**)
3584 continue;;
3585 esac
3586 # The quadruple backslash is collapsed to a double backslash
3587 # by the backticks, then collapsed again by the double quotes,
3588 # leaving us with one backslash in the sed expression (right
3589 # before the dot that mustn't act as a wildcard).
3590 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3591 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3592 # The user is allowed to set LINGUAS to a list of languages to
3593 # install catalogs for. If it's empty that means "all of them."
3594 if test "x$LINGUAS" = x; then
3595 CATALOGS="$CATALOGS $cat"
3596 XLINGUAS="$XLINGUAS $lang"
3597 else
3598 case "$LINGUAS" in *$lang*)
3599 CATALOGS="$CATALOGS $cat"
3600 XLINGUAS="$XLINGUAS $lang"
3601 ;;
3602 esac
3603 fi
3604 done
3605 LINGUAS="$XLINGUAS"
3606 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3607echo "${ECHO_T}$LINGUAS" >&6
3608
3609
3610 DATADIRNAME=share
3611
3612 INSTOBJEXT=.mo
3613
3614 GENCAT=gencat
3615
3616 CATOBJEXT=.gmo
3617
3618fi
3619
3620localedir='${datadir}/locale'
3621
3622
3623if test x"$USE_NLS" = xyes; then
3624 CONFIG_ALL="$CONFIG_ALL all-po"
3625 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3626 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3627 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3628fi
3629
3630
3631 GNULIB_MEMMEM=0;
3632 GNULIB_MEMPCPY=0;
3633 GNULIB_MEMRCHR=0;
3634 GNULIB_STPCPY=0;
3635 GNULIB_STPNCPY=0;
3636 GNULIB_STRCHRNUL=0;
3637 GNULIB_STRDUP=0;
3638 GNULIB_STRNDUP=0;
3639 GNULIB_STRNLEN=0;
3640 GNULIB_STRPBRK=0;
3641 GNULIB_STRSEP=0;
3642 GNULIB_STRSTR=0;
3643 GNULIB_STRCASESTR=0;
3644 GNULIB_STRTOK_R=0;
3645 GNULIB_MBSLEN=0;
3646 GNULIB_MBSNLEN=0;
3647 GNULIB_MBSCHR=0;
3648 GNULIB_MBSRCHR=0;
3649 GNULIB_MBSSTR=0;
3650 GNULIB_MBSCASECMP=0;
3651 GNULIB_MBSNCASECMP=0;
3652 GNULIB_MBSPCASECMP=0;
3653 GNULIB_MBSCASESTR=0;
3654 GNULIB_MBSCSPN=0;
3655 GNULIB_MBSPBRK=0;
3656 GNULIB_MBSSPN=0;
3657 GNULIB_MBSSEP=0;
3658 GNULIB_MBSTOK_R=0;
3659 GNULIB_STRERROR=0;
3660 GNULIB_STRSIGNAL=0;
3661 HAVE_DECL_MEMMEM=1;
3662 HAVE_MEMPCPY=1;
3663 HAVE_DECL_MEMRCHR=1;
3664 HAVE_STPCPY=1;
3665 HAVE_STPNCPY=1;
3666 HAVE_STRCHRNUL=1;
3667 HAVE_DECL_STRDUP=1;
3668 HAVE_STRNDUP=1;
3669 HAVE_DECL_STRNDUP=1;
3670 HAVE_DECL_STRNLEN=1;
3671 HAVE_STRPBRK=1;
3672 HAVE_STRSEP=1;
3673 HAVE_STRCASESTR=1;
3674 HAVE_DECL_STRTOK_R=1;
3675 HAVE_DECL_STRERROR=1;
3676 HAVE_DECL_STRSIGNAL=1;
3677 REPLACE_STRERROR=0;
3678 REPLACE_STRSIGNAL=0;
3679 REPLACE_MEMMEM=0;
3680 REPLACE_STRCASESTR=0;
3681 REPLACE_STRSTR=0;
3682
3683
3684 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3685echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3686if test "${ac_cv_have_decl_memmem+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688else
3689 cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h. */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h. */
3695$ac_includes_default
3696int
3697main ()
3698{
3699#ifndef memmem
3700 char *p = (char *) memmem;
3701#endif
3702
3703 ;
3704 return 0;
3705}
3706_ACEOF
3707rm -f conftest.$ac_objext
3708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709 (eval $ac_compile) 2>conftest.er1
3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -z "$ac_c_werror_flag"
3717 || test ! -s conftest.err'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; } &&
3723 { ac_try='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 (eval $ac_try) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_cv_have_decl_memmem=yes
3730else
3731 echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734ac_cv_have_decl_memmem=no
3735fi
3736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737fi
3738echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3739echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3740if test $ac_cv_have_decl_memmem = yes; then
3741
3742cat >>confdefs.h <<_ACEOF
3743#define HAVE_DECL_MEMMEM 1
3744_ACEOF
3745
3746
3747else
3748 cat >>confdefs.h <<_ACEOF
3749#define HAVE_DECL_MEMMEM 0
3750_ACEOF
3751
3752
3753fi
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769for ac_func in memmem
3770do
3771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3772echo "$as_me:$LINENO: checking for $ac_func" >&5
3773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3774if eval "test \"\${$as_ac_var+set}\" = set"; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
3783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3785#define $ac_func innocuous_$ac_func
3786
3787/* System header to define __stub macros and hopefully few prototypes,
3788 which can conflict with char $ac_func (); below.
3789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 <limits.h> exists even on freestanding compilers. */
3791
3792#ifdef __STDC__
3793# include <limits.h>
3794#else
3795# include <assert.h>
3796#endif
3797
3798#undef $ac_func
3799
3800/* Override any gcc2 internal prototype to avoid an error. */
3801#ifdef __cplusplus
3802extern "C"
3803{
3804#endif
3805/* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3807char $ac_func ();
3808/* The GNU C library defines this for functions which it implements
3809 to always fail with ENOSYS. Some functions are actually named
3810 something starting with __ and the normal name is an alias. */
3811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3812choke me
3813#else
3814char (*f) () = $ac_func;
3815#endif
3816#ifdef __cplusplus
3817}
3818#endif
3819
3820int
3821main ()
3822{
3823return f != $ac_func;
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828rm -f conftest.$ac_objext conftest$ac_exeext
3829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830 (eval $ac_link) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest$ac_exeext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 eval "$as_ac_var=yes"
3851else
3852 echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855eval "$as_ac_var=no"
3856fi
3857rm -f conftest.err conftest.$ac_objext \
3858 conftest$ac_exeext conftest.$ac_ext
3859fi
3860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3862if test `eval echo '${'$as_ac_var'}'` = yes; then
3863 cat >>confdefs.h <<_ACEOF
3864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3865_ACEOF
3866
3867else
3868
3869 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3870
3871fi
3872done
3873
3874
3875
3876 :
3877
3878
3879
3880
3881
3882 if test $ac_cv_have_decl_memmem = no; then
3883 HAVE_DECL_MEMMEM=0
3884 fi
3885 :
3886
3887
3888 echo "$as_me:$LINENO: checking for long long int" >&5
3889echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3890if test "${ac_cv_type_long_long_int+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892else
3893 cat >conftest.$ac_ext <<_ACEOF
3894
3895 /* confdefs.h. */
3896_ACEOF
3897cat confdefs.h >>conftest.$ac_ext
3898cat >>conftest.$ac_ext <<_ACEOF
3899/* end confdefs.h. */
3900/* For now, do not test the preprocessor; as of 2007 there are too many
3901 implementations with broken preprocessors. Perhaps this can
3902 be revisited in 2012. In the meantime, code should not expect
3903 #if to work with literals wider than 32 bits. */
3904 /* Test literals. */
3905 long long int ll = 9223372036854775807ll;
3906 long long int nll = -9223372036854775807LL;
3907 unsigned long long int ull = 18446744073709551615ULL;
3908 /* Test constant expressions. */
3909 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3910 ? 1 : -1)];
3911 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3912 ? 1 : -1)];
3913 int i = 63;
3914int
3915main ()
3916{
3917/* Test availability of runtime routines for shift and division. */
3918 long long int llmax = 9223372036854775807ll;
3919 unsigned long long int ullmax = 18446744073709551615ull;
3920 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3921 | (llmax / ll) | (llmax % ll)
3922 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3923 | (ullmax / ull) | (ullmax % ull));
3924 ;
3925 return 0;
3926}
3927
3928_ACEOF
3929rm -f conftest.$ac_objext conftest$ac_exeext
3930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>conftest.er1
3932 ac_status=$?
3933 grep -v '^ *+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_c_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest$ac_exeext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 if test "$cross_compiling" = yes; then
3952 ac_cv_type_long_long_int=yes
3953else
3954 cat >conftest.$ac_ext <<_ACEOF
3955/* confdefs.h. */
3956_ACEOF
3957cat confdefs.h >>conftest.$ac_ext
3958cat >>conftest.$ac_ext <<_ACEOF
3959/* end confdefs.h. */
3960#include <limits.h>
3961 #ifndef LLONG_MAX
3962 # define HALF \
3963 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3964 # define LLONG_MAX (HALF - 1 + HALF)
3965 #endif
3966int
3967main ()
3968{
3969long long int n = 1;
3970 int i;
3971 for (i = 0; ; i++)
3972 {
3973 long long int m = n << i;
3974 if (m >> i != n)
3975 return 1;
3976 if (LLONG_MAX / 2 < m)
3977 break;
3978 }
3979 return 0;
3980 ;
3981 return 0;
3982}
3983_ACEOF
3984rm -f conftest$ac_exeext
3985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3986 (eval $ac_link) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_type_long_long_int=yes
3996else
3997 echo "$as_me: program exited with status $ac_status" >&5
3998echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
4000
4001( exit $ac_status )
4002ac_cv_type_long_long_int=no
4003fi
4004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4005fi
4006else
4007 echo "$as_me: failed program was:" >&5
4008sed 's/^/| /' conftest.$ac_ext >&5
4009
4010ac_cv_type_long_long_int=no
4011fi
4012rm -f conftest.err conftest.$ac_objext \
4013 conftest$ac_exeext conftest.$ac_ext
4014fi
4015echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4016echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4017 if test $ac_cv_type_long_long_int = yes; then
4018
4019cat >>confdefs.h <<\_ACEOF
4020#define HAVE_LONG_LONG_INT 1
4021_ACEOF
4022
4023 fi
4024
4025
4026 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4027echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4028if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
4031 cat >conftest.$ac_ext <<_ACEOF
4032
4033 /* confdefs.h. */
4034_ACEOF
4035cat confdefs.h >>conftest.$ac_ext
4036cat >>conftest.$ac_ext <<_ACEOF
4037/* end confdefs.h. */
4038/* For now, do not test the preprocessor; as of 2007 there are too many
4039 implementations with broken preprocessors. Perhaps this can
4040 be revisited in 2012. In the meantime, code should not expect
4041 #if to work with literals wider than 32 bits. */
4042 /* Test literals. */
4043 long long int ll = 9223372036854775807ll;
4044 long long int nll = -9223372036854775807LL;
4045 unsigned long long int ull = 18446744073709551615ULL;
4046 /* Test constant expressions. */
4047 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4048 ? 1 : -1)];
4049 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4050 ? 1 : -1)];
4051 int i = 63;
4052int
4053main ()
4054{
4055/* Test availability of runtime routines for shift and division. */
4056 long long int llmax = 9223372036854775807ll;
4057 unsigned long long int ullmax = 18446744073709551615ull;
4058 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4059 | (llmax / ll) | (llmax % ll)
4060 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4061 | (ullmax / ull) | (ullmax % ull));
4062 ;
4063 return 0;
4064}
4065
4066_ACEOF
4067rm -f conftest.$ac_objext conftest$ac_exeext
4068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4069 (eval $ac_link) 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_type_unsigned_long_long_int=yes
4090else
4091 echo "$as_me: failed program was:" >&5
4092sed 's/^/| /' conftest.$ac_ext >&5
4093
4094ac_cv_type_unsigned_long_long_int=no
4095fi
4096rm -f conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4098fi
4099echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4100echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4101 if test $ac_cv_type_unsigned_long_long_int = yes; then
4102
4103cat >>confdefs.h <<\_ACEOF
4104#define HAVE_UNSIGNED_LONG_LONG_INT 1
4105_ACEOF
4106
4107 fi
4108
4109
4110
4111 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4112echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4113if test "${gl_cv_have_include_next+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115else
4116 rm -rf conftestd1 conftestd2
4117 mkdir conftestd1 conftestd2
4118 cat <<EOF > conftestd1/conftest.h
4119#define DEFINED_IN_CONFTESTD1
4120#include_next <conftest.h>
4121#ifdef DEFINED_IN_CONFTESTD2
4122int foo;
4123#else
4124#error "include_next doesn't work"
4125#endif
4126EOF
4127 cat <<EOF > conftestd2/conftest.h
4128#ifndef DEFINED_IN_CONFTESTD1
4129#error "include_next test doesn't work"
4130#endif
4131#define DEFINED_IN_CONFTESTD2
4132EOF
4133 save_CPPFLAGS="$CPPFLAGS"
4134 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4135 cat >conftest.$ac_ext <<_ACEOF
4136#include <conftest.h>
4137_ACEOF
4138rm -f conftest.$ac_objext
4139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag"
4148 || test ! -s conftest.err'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 (eval $ac_try) 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 gl_cv_have_include_next=yes
4161else
4162 echo "$as_me: failed program was:" >&5
4163sed 's/^/| /' conftest.$ac_ext >&5
4164
4165gl_cv_have_include_next=no
4166fi
4167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 CPPFLAGS="$save_CPPFLAGS"
4169 rm -rf conftestd1 conftestd2
4170
4171fi
4172echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4173echo "${ECHO_T}$gl_cv_have_include_next" >&6
4174 if test $gl_cv_have_include_next = yes; then
4175
4176
4177cat >>confdefs.h <<\_ACEOF
4178#define HAVE_INCLUDE_NEXT 1
4179_ACEOF
4180
4181
4182 INCLUDE_NEXT=include_next
4183 else
4184 INCLUDE_NEXT=include
4185 fi
4186
4187
4188
4189
4190
4191
4192
4193for ac_header in $gl_header_list
4194do
4195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196if eval "test \"\${$as_ac_Header+set}\" = set"; then
4197 echo "$as_me:$LINENO: checking for $ac_header" >&5
4198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4199if eval "test \"\${$as_ac_Header+set}\" = set"; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201fi
4202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4204else
4205 # Is the header compilable?
4206echo "$as_me:$LINENO: checking $ac_header usability" >&5
4207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4208cat >conftest.$ac_ext <<_ACEOF
4209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
4214$ac_includes_default
4215#include <$ac_header>
4216_ACEOF
4217rm -f conftest.$ac_objext
4218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219 (eval $ac_compile) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_header_compiler=yes
4240else
4241 echo "$as_me: failed program was:" >&5
4242sed 's/^/| /' conftest.$ac_ext >&5
4243
4244ac_header_compiler=no
4245fi
4246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4247echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4248echo "${ECHO_T}$ac_header_compiler" >&6
4249
4250# Is the header present?
4251echo "$as_me:$LINENO: checking $ac_header presence" >&5
4252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4253cat >conftest.$ac_ext <<_ACEOF
4254/* confdefs.h. */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h. */
4259#include <$ac_header>
4260_ACEOF
4261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } >/dev/null; then
4269 if test -s conftest.err; then
4270 ac_cpp_err=$ac_c_preproc_warn_flag
4271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4272 else
4273 ac_cpp_err=
4274 fi
4275else
4276 ac_cpp_err=yes
4277fi
4278if test -z "$ac_cpp_err"; then
4279 ac_header_preproc=yes
4280else
4281 echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284 ac_header_preproc=no
4285fi
4286rm -f conftest.err conftest.$ac_ext
4287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4288echo "${ECHO_T}$ac_header_preproc" >&6
4289
4290# So? What about this header?
4291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4292 yes:no: )
4293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4296echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4297 ac_header_preproc=yes
4298 ;;
4299 no:yes:* )
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4303echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4305echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4307echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4311echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4312 (
4313 cat <<\_ASBOX
4314## ------------------------------------------ ##
4315## Report this to the AC_PACKAGE_NAME lists. ##
4316## ------------------------------------------ ##
4317_ASBOX
4318 ) |
4319 sed "s/^/$as_me: WARNING: /" >&2
4320 ;;
4321esac
4322echo "$as_me:$LINENO: checking for $ac_header" >&5
4323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4324if eval "test \"\${$as_ac_Header+set}\" = set"; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327 eval "$as_ac_Header=\$ac_header_preproc"
4328fi
4329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4331
4332fi
4333if test `eval echo '${'$as_ac_Header'}'` = yes; then
4334 cat >>confdefs.h <<_ACEOF
4335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4336_ACEOF
4337
4338fi
4339
4340done
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4354echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4355if test "${ac_cv_c_restrict+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357else
4358 ac_cv_c_restrict=no
4359 # The order here caters to the fact that C++ does not require restrict.
4360 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4361 cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h. */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h. */
4367typedef int * int_ptr;
4368 int foo (int_ptr $ac_kw ip) {
4369 return ip[0];
4370 }
4371int
4372main ()
4373{
4374int s[1];
4375 int * $ac_kw t = s;
4376 t[0] = 0;
4377 return foo(t)
4378 ;
4379 return 0;
4380}
4381_ACEOF
4382rm -f conftest.$ac_objext
4383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag"
4392 || test ! -s conftest.err'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 (eval $ac_try) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_c_restrict=$ac_kw
4405else
4406 echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409fi
4410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4411 test "$ac_cv_c_restrict" != no && break
4412 done
4413
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4416echo "${ECHO_T}$ac_cv_c_restrict" >&6
4417
4418
4419 case $ac_cv_c_restrict in
4420 restrict) ;;
4421 no) cat >>confdefs.h <<\_ACEOF
4422#define restrict
4423_ACEOF
4424 ;;
4425 *) cat >>confdefs.h <<_ACEOF
4426#define restrict $ac_cv_c_restrict
4427_ACEOF
4428 ;;
4429 esac
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443 :
4444
4445
4446
4447
4448
4449
4450
4451 if test $gl_cv_have_include_next = yes; then
4452 gl_cv_next_string_h='<'string.h'>'
4453 else
4454 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4455echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4456if test "${gl_cv_next_string_h+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459
4460 if test $ac_cv_header_string_h = yes; then
4461 cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h. */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h. */
4467#include <string.h>
4468
4469_ACEOF
4470 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 sed -n '\#/string.h#{
4472 s#.*"\(.*/string.h\)".*#\1#
4473 s#^/[^/]#//&#
4474 p
4475 q
4476 }'`'"'
4477 else
4478 gl_cv_next_string_h='<'string.h'>'
4479 fi
4480
4481fi
4482echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4483echo "${ECHO_T}$gl_cv_next_string_h" >&6
4484 fi
4485 NEXT_STRING_H=$gl_cv_next_string_h
4486
4487
4488
4489
4490
4491 GNULIB_WCWIDTH=0;
4492 HAVE_DECL_WCWIDTH=1;
4493 REPLACE_WCWIDTH=0;
4494 WCHAR_H=
4495
4496
4497
4498
4499
4500if false; then
4501 GL_COND_LIBTOOL_TRUE=
4502 GL_COND_LIBTOOL_FALSE='#'
4503else
4504 GL_COND_LIBTOOL_TRUE='#'
4505 GL_COND_LIBTOOL_FALSE=
4506fi
4507
4508 gl_cond_libtool=false
4509 gl_libdeps=
4510 gl_ltlibdeps=
4511
4512
4513
4514 gl_source_base='gnulib'
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524for ac_func in memchr
4525do
4526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4527echo "$as_me:$LINENO: checking for $ac_func" >&5
4528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4529if eval "test \"\${$as_ac_var+set}\" = set"; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h. */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h. */
4538/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4540#define $ac_func innocuous_$ac_func
4541
4542/* System header to define __stub macros and hopefully few prototypes,
4543 which can conflict with char $ac_func (); below.
4544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545 <limits.h> exists even on freestanding compilers. */
4546
4547#ifdef __STDC__
4548# include <limits.h>
4549#else
4550# include <assert.h>
4551#endif
4552
4553#undef $ac_func
4554
4555/* Override any gcc2 internal prototype to avoid an error. */
4556#ifdef __cplusplus
4557extern "C"
4558{
4559#endif
4560/* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4562char $ac_func ();
4563/* The GNU C library defines this for functions which it implements
4564 to always fail with ENOSYS. Some functions are actually named
4565 something starting with __ and the normal name is an alias. */
4566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4567choke me
4568#else
4569char (*f) () = $ac_func;
4570#endif
4571#ifdef __cplusplus
4572}
4573#endif
4574
4575int
4576main ()
4577{
4578return f != $ac_func;
4579 ;
4580 return 0;
4581}
4582_ACEOF
4583rm -f conftest.$ac_objext conftest$ac_exeext
4584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585 (eval $ac_link) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest$ac_exeext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 eval "$as_ac_var=yes"
4606else
4607 echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610eval "$as_ac_var=no"
4611fi
4612rm -f conftest.err conftest.$ac_objext \
4613 conftest$ac_exeext conftest.$ac_ext
4614fi
4615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4616echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4617if test `eval echo '${'$as_ac_var'}'` = yes; then
4618 cat >>confdefs.h <<_ACEOF
4619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4620_ACEOF
4621
4622else
4623
4624 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4625
4626fi
4627done
4628
4629
4630 if test $ac_cv_func_memchr = no; then
4631
4632
4633for ac_header in bp-sym.h
4634do
4635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636if eval "test \"\${$as_ac_Header+set}\" = set"; then
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641fi
4642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4644else
4645 # Is the header compilable?
4646echo "$as_me:$LINENO: checking $ac_header usability" >&5
4647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4648cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h. */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h. */
4654$ac_includes_default
4655#include <$ac_header>
4656_ACEOF
4657rm -f conftest.$ac_objext
4658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 ac_header_compiler=yes
4680else
4681 echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684ac_header_compiler=no
4685fi
4686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4688echo "${ECHO_T}$ac_header_compiler" >&6
4689
4690# Is the header present?
4691echo "$as_me:$LINENO: checking $ac_header presence" >&5
4692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4693cat >conftest.$ac_ext <<_ACEOF
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699#include <$ac_header>
4700_ACEOF
4701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } >/dev/null; then
4709 if test -s conftest.err; then
4710 ac_cpp_err=$ac_c_preproc_warn_flag
4711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4712 else
4713 ac_cpp_err=
4714 fi
4715else
4716 ac_cpp_err=yes
4717fi
4718if test -z "$ac_cpp_err"; then
4719 ac_header_preproc=yes
4720else
4721 echo "$as_me: failed program was:" >&5
4722sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 ac_header_preproc=no
4725fi
4726rm -f conftest.err conftest.$ac_ext
4727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4728echo "${ECHO_T}$ac_header_preproc" >&6
4729
4730# So? What about this header?
4731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4732 yes:no: )
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4737 ac_header_preproc=yes
4738 ;;
4739 no:yes:* )
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4752 (
4753 cat <<\_ASBOX
4754## ------------------------------------------ ##
4755## Report this to the AC_PACKAGE_NAME lists. ##
4756## ------------------------------------------ ##
4757_ASBOX
4758 ) |
4759 sed "s/^/$as_me: WARNING: /" >&2
4760 ;;
4761esac
4762echo "$as_me:$LINENO: checking for $ac_header" >&5
4763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4764if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 eval "$as_ac_Header=\$ac_header_preproc"
4768fi
4769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4771
4772fi
4773if test `eval echo '${'$as_ac_Header'}'` = yes; then
4774 cat >>confdefs.h <<_ACEOF
4775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776_ACEOF
4777
4778fi
4779
4780done
4781
4782
4783 fi
4784
4785
4786 echo "$as_me:$LINENO: checking for working memcmp" >&5
4787echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4788if test "${ac_cv_func_memcmp_working+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791 if test "$cross_compiling" = yes; then
4792 ac_cv_func_memcmp_working=no
4793else
4794 cat >conftest.$ac_ext <<_ACEOF
4795/* confdefs.h. */
4796_ACEOF
4797cat confdefs.h >>conftest.$ac_ext
4798cat >>conftest.$ac_ext <<_ACEOF
4799/* end confdefs.h. */
4800$ac_includes_default
4801int
4802main ()
4803{
4804
4805 /* Some versions of memcmp are not 8-bit clean. */
4806 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4807 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4808 exit (1);
4809
4810 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4811 or more and with at least one buffer not starting on a 4-byte boundary.
4812 William Lewis provided this test program. */
4813 {
4814 char foo[21];
4815 char bar[21];
4816 int i;
4817 for (i = 0; i < 4; i++)
4818 {
4819 char *a = foo + i;
4820 char *b = bar + i;
4821 strcpy (a, "--------01111111");
4822 strcpy (b, "--------10000000");
4823 if (memcmp (a, b, 16) >= 0)
4824 exit (1);
4825 }
4826 exit (0);
4827 }
4828
4829 ;
4830 return 0;
4831}
4832_ACEOF
4833rm -f conftest$ac_exeext
4834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4835 (eval $ac_link) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_func_memcmp_working=yes
4845else
4846 echo "$as_me: program exited with status $ac_status" >&5
4847echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
4850( exit $ac_status )
4851ac_cv_func_memcmp_working=no
4852fi
4853rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4854fi
4855fi
4856echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4857echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4858test $ac_cv_func_memcmp_working = no &&
4859
4860
4861
4862
4863
4864
4865 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4866
4867
4868 if test $ac_cv_func_memcmp_working = no; then
4869
4870cat >>confdefs.h <<\_ACEOF
4871#define memcmp rpl_memcmp
4872_ACEOF
4873
4874 :
4875 fi
4876
4877
4878
4879 if test $ac_cv_have_decl_memmem = yes; then
4880 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4881echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4882if test "${gl_cv_func_memmem_works+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884else
4885 if test "$cross_compiling" = yes; then
4886 gl_cv_func_memmem_works="guessing no"
4887else
4888 cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h. */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h. */
4894
4895#include <string.h> /* for memmem */
4896#include <stdlib.h> /* for malloc */
4897#include <unistd.h> /* for alarm */
4898
4899int
4900main ()
4901{
4902size_t m = 1000000;
4903 char *haystack = (char *) malloc (2 * m + 1);
4904 char *needle = (char *) malloc (m + 1);
4905 void *result = 0;
4906 /* Failure to compile this test due to missing alarm is okay,
4907 since all such platforms (mingw) also lack memmem. */
4908 alarm (5);
4909 /* Check for quadratic performance. */
4910 if (haystack && needle)
4911 {
4912 memset (haystack, 'A', 2 * m);
4913 haystack[2 * m] = 'B';
4914 memset (needle, 'A', m);
4915 needle[m] = 'B';
4916 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4917 }
4918 /* Check for empty needle behavior. */
4919 return !result || !memmem ("a", 1, 0, 0);
4920 ;
4921 return 0;
4922}
4923_ACEOF
4924rm -f conftest$ac_exeext
4925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4926 (eval $ac_link) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 gl_cv_func_memmem_works=yes
4936else
4937 echo "$as_me: program exited with status $ac_status" >&5
4938echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941( exit $ac_status )
4942gl_cv_func_memmem_works=no
4943fi
4944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4945fi
4946fi
4947echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4948echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4949 if test "$gl_cv_func_memmem_works" != yes; then
4950 REPLACE_MEMMEM=1
4951
4952
4953
4954
4955
4956
4957
4958 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4959
4960 fi
4961 fi
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975for ac_func in memmem
4976do
4977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4978echo "$as_me:$LINENO: checking for $ac_func" >&5
4979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4980if eval "test \"\${$as_ac_var+set}\" = set"; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982else
4983 cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h. */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h. */
4989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4991#define $ac_func innocuous_$ac_func
4992
4993/* System header to define __stub macros and hopefully few prototypes,
4994 which can conflict with char $ac_func (); below.
4995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996 <limits.h> exists even on freestanding compilers. */
4997
4998#ifdef __STDC__
4999# include <limits.h>
5000#else
5001# include <assert.h>
5002#endif
5003
5004#undef $ac_func
5005
5006/* Override any gcc2 internal prototype to avoid an error. */
5007#ifdef __cplusplus
5008extern "C"
5009{
5010#endif
5011/* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */
5013char $ac_func ();
5014/* The GNU C library defines this for functions which it implements
5015 to always fail with ENOSYS. Some functions are actually named
5016 something starting with __ and the normal name is an alias. */
5017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5018choke me
5019#else
5020char (*f) () = $ac_func;
5021#endif
5022#ifdef __cplusplus
5023}
5024#endif
5025
5026int
5027main ()
5028{
5029return f != $ac_func;
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034rm -f conftest.$ac_objext conftest$ac_exeext
5035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036 (eval $ac_link) 2>conftest.er1
5037 ac_status=$?
5038 grep -v '^ *+' conftest.er1 >conftest.err
5039 rm -f conftest.er1
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -z "$ac_c_werror_flag"
5044 || test ! -s conftest.err'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; } &&
5050 { ac_try='test -s conftest$ac_exeext'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 (eval $ac_try) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; }; then
5056 eval "$as_ac_var=yes"
5057else
5058 echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061eval "$as_ac_var=no"
5062fi
5063rm -f conftest.err conftest.$ac_objext \
5064 conftest$ac_exeext conftest.$ac_ext
5065fi
5066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5067echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5068if test `eval echo '${'$as_ac_var'}'` = yes; then
5069 cat >>confdefs.h <<_ACEOF
5070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5071_ACEOF
5072
5073else
5074
5075 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5076
5077fi
5078done
5079
5080
5081
5082 :
5083
5084
5085
5086
5087
5088 if test $ac_cv_have_decl_memmem = no; then
5089 HAVE_DECL_MEMMEM=0
5090 fi
5091 :
5092
5093
5094
5095 GNULIB_MEMMEM=1
5096
5097
5098
5099
5100 if test $ac_cv_type_long_long_int = yes; then
5101 HAVE_LONG_LONG_INT=1
5102 else
5103 HAVE_LONG_LONG_INT=0
5104 fi
5105
5106
5107 if test $ac_cv_type_unsigned_long_long_int = yes; then
5108 HAVE_UNSIGNED_LONG_LONG_INT=1
5109 else
5110 HAVE_UNSIGNED_LONG_LONG_INT=0
5111 fi
5112
5113
5114 if test $ac_cv_header_inttypes_h = yes; then
5115 HAVE_INTTYPES_H=1
5116 else
5117 HAVE_INTTYPES_H=0
5118 fi
5119
5120
5121 if test $ac_cv_header_sys_types_h = yes; then
5122 HAVE_SYS_TYPES_H=1
5123 else
5124 HAVE_SYS_TYPES_H=0
5125 fi
5126
5127
5128
5129
5130
5131 :
5132
5133
5134
5135
5136
5137
5138
5139 if test $gl_cv_have_include_next = yes; then
5140 gl_cv_next_stdint_h='<'stdint.h'>'
5141 else
5142 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5143echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5144if test "${gl_cv_next_stdint_h+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147
5148 if test $ac_cv_header_stdint_h = yes; then
5149 cat >conftest.$ac_ext <<_ACEOF
5150/* confdefs.h. */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h. */
5155#include <stdint.h>
5156
5157_ACEOF
5158 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 sed -n '\#/stdint.h#{
5160 s#.*"\(.*/stdint.h\)".*#\1#
5161 s#^/[^/]#//&#
5162 p
5163 q
5164 }'`'"'
5165 else
5166 gl_cv_next_stdint_h='<'stdint.h'>'
5167 fi
5168
5169fi
5170echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5171echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5172 fi
5173 NEXT_STDINT_H=$gl_cv_next_stdint_h
5174
5175
5176
5177 if test $ac_cv_header_stdint_h = yes; then
5178 HAVE_STDINT_H=1
5179 else
5180 HAVE_STDINT_H=0
5181 fi
5182
5183
5184 if test $ac_cv_header_stdint_h = yes; then
5185 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5186echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5187if test "${gl_cv_header_working_stdint_h+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190 gl_cv_header_working_stdint_h=no
5191 cat >conftest.$ac_ext <<_ACEOF
5192
5193 /* confdefs.h. */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h. */
5198
5199#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5200#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5201#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5202#include <stdint.h>
5203/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5204#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5205#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5206#endif
5207
5208
5209 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5210 included before <wchar.h>. */
5211 #include <stddef.h>
5212 #include <signal.h>
5213 #if HAVE_WCHAR_H
5214 # include <stdio.h>
5215 # include <time.h>
5216 # include <wchar.h>
5217 #endif
5218
5219
5220#ifdef INT8_MAX
5221int8_t a1 = INT8_MAX;
5222int8_t a1min = INT8_MIN;
5223#endif
5224#ifdef INT16_MAX
5225int16_t a2 = INT16_MAX;
5226int16_t a2min = INT16_MIN;
5227#endif
5228#ifdef INT32_MAX
5229int32_t a3 = INT32_MAX;
5230int32_t a3min = INT32_MIN;
5231#endif
5232#ifdef INT64_MAX
5233int64_t a4 = INT64_MAX;
5234int64_t a4min = INT64_MIN;
5235#endif
5236#ifdef UINT8_MAX
5237uint8_t b1 = UINT8_MAX;
5238#else
5239typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5240#endif
5241#ifdef UINT16_MAX
5242uint16_t b2 = UINT16_MAX;
5243#endif
5244#ifdef UINT32_MAX
5245uint32_t b3 = UINT32_MAX;
5246#endif
5247#ifdef UINT64_MAX
5248uint64_t b4 = UINT64_MAX;
5249#endif
5250int_least8_t c1 = INT8_C (0x7f);
5251int_least8_t c1max = INT_LEAST8_MAX;
5252int_least8_t c1min = INT_LEAST8_MIN;
5253int_least16_t c2 = INT16_C (0x7fff);
5254int_least16_t c2max = INT_LEAST16_MAX;
5255int_least16_t c2min = INT_LEAST16_MIN;
5256int_least32_t c3 = INT32_C (0x7fffffff);
5257int_least32_t c3max = INT_LEAST32_MAX;
5258int_least32_t c3min = INT_LEAST32_MIN;
5259int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5260int_least64_t c4max = INT_LEAST64_MAX;
5261int_least64_t c4min = INT_LEAST64_MIN;
5262uint_least8_t d1 = UINT8_C (0xff);
5263uint_least8_t d1max = UINT_LEAST8_MAX;
5264uint_least16_t d2 = UINT16_C (0xffff);
5265uint_least16_t d2max = UINT_LEAST16_MAX;
5266uint_least32_t d3 = UINT32_C (0xffffffff);
5267uint_least32_t d3max = UINT_LEAST32_MAX;
5268uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5269uint_least64_t d4max = UINT_LEAST64_MAX;
5270int_fast8_t e1 = INT_FAST8_MAX;
5271int_fast8_t e1min = INT_FAST8_MIN;
5272int_fast16_t e2 = INT_FAST16_MAX;
5273int_fast16_t e2min = INT_FAST16_MIN;
5274int_fast32_t e3 = INT_FAST32_MAX;
5275int_fast32_t e3min = INT_FAST32_MIN;
5276int_fast64_t e4 = INT_FAST64_MAX;
5277int_fast64_t e4min = INT_FAST64_MIN;
5278uint_fast8_t f1 = UINT_FAST8_MAX;
5279uint_fast16_t f2 = UINT_FAST16_MAX;
5280uint_fast32_t f3 = UINT_FAST32_MAX;
5281uint_fast64_t f4 = UINT_FAST64_MAX;
5282#ifdef INTPTR_MAX
5283intptr_t g = INTPTR_MAX;
5284intptr_t gmin = INTPTR_MIN;
5285#endif
5286#ifdef UINTPTR_MAX
5287uintptr_t h = UINTPTR_MAX;
5288#endif
5289intmax_t i = INTMAX_MAX;
5290uintmax_t j = UINTMAX_MAX;
5291
5292#include <limits.h> /* for CHAR_BIT */
5293#define TYPE_MINIMUM(t) \
5294 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5295#define TYPE_MAXIMUM(t) \
5296 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5297struct s {
5298 int check_PTRDIFF:
5299 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5300 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5301 ? 1 : -1;
5302 /* Detect bug in FreeBSD 6.0 / ia64. */
5303 int check_SIG_ATOMIC:
5304 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5305 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5306 ? 1 : -1;
5307 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5308 int check_WCHAR:
5309 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5310 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5311 ? 1 : -1;
5312 /* Detect bug in mingw. */
5313 int check_WINT:
5314 WINT_MIN == TYPE_MINIMUM (wint_t)
5315 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5316 ? 1 : -1;
5317
5318 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5319 int check_UINT8_C:
5320 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5321 int check_UINT16_C:
5322 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5323
5324 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5325#ifdef UINT8_MAX
5326 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5327#endif
5328#ifdef UINT16_MAX
5329 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5330#endif
5331#ifdef UINT32_MAX
5332 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5333#endif
5334#ifdef UINT64_MAX
5335 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5336#endif
5337 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5338 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5339 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5340 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5341 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5342 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5343 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5344 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5345 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5346 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5347 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5348};
5349
5350int
5351main ()
5352{
5353
5354 ;
5355 return 0;
5356}
5357_ACEOF
5358rm -f conftest.$ac_objext
5359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 (eval $ac_try) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try='test -s conftest.$ac_objext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 gl_cv_header_working_stdint_h=yes
5381else
5382 echo "$as_me: failed program was:" >&5
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
5385fi
5386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387fi
5388echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5389echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5390 fi
5391 if test "$gl_cv_header_working_stdint_h" = yes; then
5392 STDINT_H=
5393 else
5394
5395
5396for ac_header in sys/inttypes.h sys/bitypes.h
5397do
5398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5399if eval "test \"\${$as_ac_Header+set}\" = set"; then
5400 echo "$as_me:$LINENO: checking for $ac_header" >&5
5401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5402if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404fi
5405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5407else
5408 # Is the header compilable?
5409echo "$as_me:$LINENO: checking $ac_header usability" >&5
5410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5411cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
5417$ac_includes_default
5418#include <$ac_header>
5419_ACEOF
5420rm -f conftest.$ac_objext
5421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest.$ac_objext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_header_compiler=yes
5443else
5444 echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
5447ac_header_compiler=no
5448fi
5449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5451echo "${ECHO_T}$ac_header_compiler" >&6
5452
5453# Is the header present?
5454echo "$as_me:$LINENO: checking $ac_header presence" >&5
5455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5456cat >conftest.$ac_ext <<_ACEOF
5457/* confdefs.h. */
5458_ACEOF
5459cat confdefs.h >>conftest.$ac_ext
5460cat >>conftest.$ac_ext <<_ACEOF
5461/* end confdefs.h. */
5462#include <$ac_header>
5463_ACEOF
5464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5466 ac_status=$?
5467 grep -v '^ *+' conftest.er1 >conftest.err
5468 rm -f conftest.er1
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } >/dev/null; then
5472 if test -s conftest.err; then
5473 ac_cpp_err=$ac_c_preproc_warn_flag
5474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5475 else
5476 ac_cpp_err=
5477 fi
5478else
5479 ac_cpp_err=yes
5480fi
5481if test -z "$ac_cpp_err"; then
5482 ac_header_preproc=yes
5483else
5484 echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ac_header_preproc=no
5488fi
5489rm -f conftest.err conftest.$ac_ext
5490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5491echo "${ECHO_T}$ac_header_preproc" >&6
5492
5493# So? What about this header?
5494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5495 yes:no: )
5496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5500 ac_header_preproc=yes
5501 ;;
5502 no:yes:* )
5503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5510echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5515 (
5516 cat <<\_ASBOX
5517## ------------------------------------------ ##
5518## Report this to the AC_PACKAGE_NAME lists. ##
5519## ------------------------------------------ ##
5520_ASBOX
5521 ) |
5522 sed "s/^/$as_me: WARNING: /" >&2
5523 ;;
5524esac
5525echo "$as_me:$LINENO: checking for $ac_header" >&5
5526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5527if eval "test \"\${$as_ac_Header+set}\" = set"; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529else
5530 eval "$as_ac_Header=\$ac_header_preproc"
5531fi
5532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5534
5535fi
5536if test `eval echo '${'$as_ac_Header'}'` = yes; then
5537 cat >>confdefs.h <<_ACEOF
5538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5539_ACEOF
5540
5541fi
5542
5543done
5544
5545 if test $ac_cv_header_sys_inttypes_h = yes; then
5546 HAVE_SYS_INTTYPES_H=1
5547 else
5548 HAVE_SYS_INTTYPES_H=0
5549 fi
5550
5551 if test $ac_cv_header_sys_bitypes_h = yes; then
5552 HAVE_SYS_BITYPES_H=1
5553 else
5554 HAVE_SYS_BITYPES_H=0
5555 fi
5556
5557
5558
5559 :
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5575 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5576echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5577if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579else
5580 if test "$cross_compiling" = yes; then
5581 # Depending upon the size, compute the lo and hi bounds.
5582cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588
5589 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5590 included before <wchar.h>. */
5591 #include <stddef.h>
5592 #include <signal.h>
5593 #if HAVE_WCHAR_H
5594 # include <stdio.h>
5595 # include <time.h>
5596 # include <wchar.h>
5597 #endif
5598
5599#include <limits.h>
5600int
5601main ()
5602{
5603static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5604test_array [0] = 0
5605
5606 ;
5607 return 0;
5608}
5609_ACEOF
5610rm -f conftest.$ac_objext
5611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>conftest.er1
5613 ac_status=$?
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -z "$ac_c_werror_flag"
5620 || test ! -s conftest.err'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 (eval $ac_try) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_lo=0 ac_mid=0
5633 while :; do
5634 cat >conftest.$ac_ext <<_ACEOF
5635/* confdefs.h. */
5636_ACEOF
5637cat confdefs.h >>conftest.$ac_ext
5638cat >>conftest.$ac_ext <<_ACEOF
5639/* end confdefs.h. */
5640
5641 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5642 included before <wchar.h>. */
5643 #include <stddef.h>
5644 #include <signal.h>
5645 #if HAVE_WCHAR_H
5646 # include <stdio.h>
5647 # include <time.h>
5648 # include <wchar.h>
5649 #endif
5650
5651#include <limits.h>
5652int
5653main ()
5654{
5655static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5656test_array [0] = 0
5657
5658 ;
5659 return 0;
5660}
5661_ACEOF
5662rm -f conftest.$ac_objext
5663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_hi=$ac_mid; break
5685else
5686 echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689ac_lo=`expr $ac_mid + 1`
5690 if test $ac_lo -le $ac_mid; then
5691 ac_lo= ac_hi=
5692 break
5693 fi
5694 ac_mid=`expr 2 '*' $ac_mid + 1`
5695fi
5696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5697 done
5698else
5699 echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
5702cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h. */
5708
5709 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5710 included before <wchar.h>. */
5711 #include <stddef.h>
5712 #include <signal.h>
5713 #if HAVE_WCHAR_H
5714 # include <stdio.h>
5715 # include <time.h>
5716 # include <wchar.h>
5717 #endif
5718
5719#include <limits.h>
5720int
5721main ()
5722{
5723static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5724test_array [0] = 0
5725
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext
5731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag"
5740 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_hi=-1 ac_mid=-1
5753 while :; do
5754 cat >conftest.$ac_ext <<_ACEOF
5755/* confdefs.h. */
5756_ACEOF
5757cat confdefs.h >>conftest.$ac_ext
5758cat >>conftest.$ac_ext <<_ACEOF
5759/* end confdefs.h. */
5760
5761 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5762 included before <wchar.h>. */
5763 #include <stddef.h>
5764 #include <signal.h>
5765 #if HAVE_WCHAR_H
5766 # include <stdio.h>
5767 # include <time.h>
5768 # include <wchar.h>
5769 #endif
5770
5771#include <limits.h>
5772int
5773main ()
5774{
5775static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5776test_array [0] = 0
5777
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext
5783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_lo=$ac_mid; break
5805else
5806 echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809ac_hi=`expr '(' $ac_mid ')' - 1`
5810 if test $ac_mid -le $ac_hi; then
5811 ac_lo= ac_hi=
5812 break
5813 fi
5814 ac_mid=`expr 2 '*' $ac_mid`
5815fi
5816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5817 done
5818else
5819 echo "$as_me: failed program was:" >&5
5820sed 's/^/| /' conftest.$ac_ext >&5
5821
5822ac_lo= ac_hi=
5823fi
5824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5825fi
5826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827# Binary search between lo and hi bounds.
5828while test "x$ac_lo" != "x$ac_hi"; do
5829 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5830 cat >conftest.$ac_ext <<_ACEOF
5831/* confdefs.h. */
5832_ACEOF
5833cat confdefs.h >>conftest.$ac_ext
5834cat >>conftest.$ac_ext <<_ACEOF
5835/* end confdefs.h. */
5836
5837 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5838 included before <wchar.h>. */
5839 #include <stddef.h>
5840 #include <signal.h>
5841 #if HAVE_WCHAR_H
5842 # include <stdio.h>
5843 # include <time.h>
5844 # include <wchar.h>
5845 #endif
5846
5847#include <limits.h>
5848int
5849main ()
5850{
5851static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5852test_array [0] = 0
5853
5854 ;
5855 return 0;
5856}
5857_ACEOF
5858rm -f conftest.$ac_objext
5859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_hi=$ac_mid
5881else
5882 echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885ac_lo=`expr '(' $ac_mid ')' + 1`
5886fi
5887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888done
5889case $ac_lo in
5890?*) result=$ac_lo;;
5891'') result=unknown ;;
5892esac
5893else
5894 if test "$cross_compiling" = yes; then
d5af19ba
DJ
5895 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5896echo "$as_me: error: in \`$ac_pwd':" >&2;}
5897{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
783e057b
DJ
5898See \`config.log' for more details." >&5
5899echo "$as_me: error: cannot run test program while cross compiling
5900See \`config.log' for more details." >&2;}
d5af19ba 5901 { (exit 1); exit 1; }; }; }
783e057b
DJ
5902else
5903 cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h. */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h. */
5909
5910 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5911 included before <wchar.h>. */
5912 #include <stddef.h>
5913 #include <signal.h>
5914 #if HAVE_WCHAR_H
5915 # include <stdio.h>
5916 # include <time.h>
5917 # include <wchar.h>
5918 #endif
5919
5920#include <limits.h>
5921long longval () { return sizeof ($gltype) * CHAR_BIT; }
5922unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5923#include <stdio.h>
5924#include <stdlib.h>
5925int
5926main ()
5927{
5928
5929 FILE *f = fopen ("conftest.val", "w");
5930 if (! f)
5931 exit (1);
5932 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5933 {
5934 long i = longval ();
5935 if (i != (sizeof ($gltype) * CHAR_BIT))
5936 exit (1);
5937 fprintf (f, "%ld\n", i);
5938 }
5939 else
5940 {
5941 unsigned long i = ulongval ();
5942 if (i != (sizeof ($gltype) * CHAR_BIT))
5943 exit (1);
5944 fprintf (f, "%lu\n", i);
5945 }
5946 exit (ferror (f) || fclose (f) != 0);
5947
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest$ac_exeext
5953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 result=`cat conftest.val`
5964else
5965 echo "$as_me: program exited with status $ac_status" >&5
5966echo "$as_me: failed program was:" >&5
5967sed 's/^/| /' conftest.$ac_ext >&5
5968
5969( exit $ac_status )
5970result=unknown
5971fi
5972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5973fi
5974fi
5975rm -f conftest.val
5976 eval gl_cv_bitsizeof_${gltype}=\$result
c906108c 5977
783e057b
DJ
5978fi
5979echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5980echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5981 eval result=\$gl_cv_bitsizeof_${gltype}
5982 if test $result = unknown; then
5983 result=0
5984 fi
5985 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5986 cat >>confdefs.h <<_ACEOF
5987#define BITSIZEOF_${GLTYPE} $result
5988_ACEOF
c906108c 5989
783e057b
DJ
5990 eval BITSIZEOF_${GLTYPE}=\$result
5991 done
c906108c 5992
c906108c 5993
c906108c 5994
bec39cab 5995
3841debe 5996
783e057b
DJ
5997
5998
5999 for gltype in sig_atomic_t wchar_t wint_t ; do
6000 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6001echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6002if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005 cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h. */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
6010/* end confdefs.h. */
6011
6012 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6013 included before <wchar.h>. */
6014 #include <stddef.h>
6015 #include <signal.h>
6016 #if HAVE_WCHAR_H
6017 # include <stdio.h>
6018 # include <time.h>
6019 # include <wchar.h>
6020 #endif
6021
6022 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6023int
6024main ()
6025{
6026
6027 ;
6028 return 0;
6029}
6030_ACEOF
6031rm -f conftest.$ac_objext
6032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033 (eval $ac_compile) 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -z "$ac_c_werror_flag"
6041 || test ! -s conftest.err'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; } &&
6047 { ac_try='test -s conftest.$ac_objext'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 (eval $ac_try) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; }; then
6053 result=yes
6054else
6055 echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6057
6058result=no
20e95c23 6059fi
783e057b
DJ
6060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6061 eval gl_cv_type_${gltype}_signed=\$result
6062
6063fi
6064echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6065echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6066 eval result=\$gl_cv_type_${gltype}_signed
6067 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6068 if test "$result" = yes; then
6069 cat >>confdefs.h <<_ACEOF
6070#define HAVE_SIGNED_${GLTYPE} 1
6071_ACEOF
6072
6073 eval HAVE_SIGNED_${GLTYPE}=1
6074 else
6075 eval HAVE_SIGNED_${GLTYPE}=0
6076 fi
6077 done
6078
6079
6080 gl_cv_type_ptrdiff_t_signed=yes
6081 gl_cv_type_size_t_signed=no
6082
6083
6084
6085
6086
6087
6088
6089 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6090 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6091echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6092if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6094else
783e057b
DJ
6095 eval gl_cv_type_${gltype}_suffix=no
6096 eval result=\$gl_cv_type_${gltype}_signed
6097 if test "$result" = yes; then
6098 glsufu=
6099 else
6100 glsufu=u
6101 fi
6102 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6103 case $glsuf in
6104 '') gltype1='int';;
6105 l) gltype1='long int';;
6106 ll) gltype1='long long int';;
6107 i64) gltype1='__int64';;
6108 u) gltype1='unsigned int';;
6109 ul) gltype1='unsigned long int';;
6110 ull) gltype1='unsigned long long int';;
6111 ui64)gltype1='unsigned __int64';;
6112 esac
6113 cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h. */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h. */
6119
6120 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6121 included before <wchar.h>. */
6122 #include <stddef.h>
6123 #include <signal.h>
6124 #if HAVE_WCHAR_H
6125 # include <stdio.h>
6126 # include <time.h>
6127 # include <wchar.h>
6128 #endif
6129
6130 extern $gltype foo;
6131 extern $gltype1 foo;
6132int
6133main ()
6134{
6135
6136 ;
6137 return 0;
6138}
6139_ACEOF
6140rm -f conftest.$ac_objext
6141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142 (eval $ac_compile) 2>conftest.er1
6143 ac_status=$?
6144 grep -v '^ *+' conftest.er1 >conftest.err
6145 rm -f conftest.er1
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } &&
6149 { ac_try='test -z "$ac_c_werror_flag"
6150 || test ! -s conftest.err'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; } &&
6156 { ac_try='test -s conftest.$ac_objext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 eval gl_cv_type_${gltype}_suffix=\$glsuf
6163else
6164 echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167fi
6168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6169 eval result=\$gl_cv_type_${gltype}_suffix
6170 test "$result" != no && break
6171 done
6172fi
6173echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6174echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6175 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6176 eval result=\$gl_cv_type_${gltype}_suffix
6177 test "$result" = no && result=
6178 eval ${GLTYPE}_SUFFIX=\$result
6179 cat >>confdefs.h <<_ACEOF
6180#define ${GLTYPE}_SUFFIX $result
6181_ACEOF
6182
6183 done
6184
6185
6186
6187 STDINT_H=stdint.h
6188 fi
6189
6190
6191
6192
6193
6194
6195
6196 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6197echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6198if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201 cat >conftest.$ac_ext <<_ACEOF
6202#include <wchar.h>
6203wchar_t w;
6204_ACEOF
6205rm -f conftest.$ac_objext
6206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>conftest.er1
6208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest.$ac_objext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 (eval $ac_try) 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 gl_cv_header_wchar_h_standalone=yes
6228else
6229 echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232gl_cv_header_wchar_h_standalone=no
6233fi
6234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6235fi
6236echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6237echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6238 if test $gl_cv_header_wchar_h_standalone != yes; then
6239 WCHAR_H=wchar.h
6240 fi
6241
6242
6243 :
6244
6245
6246
6247
6248
6249 if test $ac_cv_header_wchar_h = yes; then
6250 HAVE_WCHAR_H=1
6251 else
6252 HAVE_WCHAR_H=0
6253 fi
6254
6255
6256
6257
6258 :
6259
6260
6261
6262
6263
6264
6265
6266 if test $gl_cv_have_include_next = yes; then
6267 gl_cv_next_wchar_h='<'wchar.h'>'
6268 else
6269 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6270echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6271if test "${gl_cv_next_wchar_h+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274
6275 if test $ac_cv_header_wchar_h = yes; then
6276 cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
6282#include <wchar.h>
6283
6284_ACEOF
6285 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 sed -n '\#/wchar.h#{
6287 s#.*"\(.*/wchar.h\)".*#\1#
6288 s#^/[^/]#//&#
6289 p
6290 q
6291 }'`'"'
6292 else
6293 gl_cv_next_wchar_h='<'wchar.h'>'
6294 fi
6295
6296fi
6297echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6298echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6299 fi
6300 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6301
c906108c 6302
c906108c 6303
c906108c 6304
c906108c 6305
c906108c 6306
c906108c 6307
c906108c 6308
783e057b
DJ
6309 gltests_libdeps=
6310 gltests_ltlibdeps=
20e95c23 6311
20e95c23 6312
20e95c23 6313
783e057b 6314 gl_source_base='tests'
c906108c 6315
bec39cab 6316
bec39cab 6317
783e057b
DJ
6318
6319 LIBGNU_LIBDEPS="$gl_libdeps"
6320
6321 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6322
6323
e28b3332 6324
d5af19ba
DJ
6325# For Makefile dependencies.
6326GNULIB_STDINT_H=
6327if test x"$STDINT_H" != x; then
6328 GNULIB_STDINT_H=gnulib/$STDINT_H
6329fi
6330
6331
bec39cab
AC
6332PACKAGE=gdb
6333
6334cat >>confdefs.h <<_ACEOF
6335#define PACKAGE "$PACKAGE"
6336_ACEOF
6337
6338
6339
e28b3332
DJ
6340# GDB does not use automake, but gnulib does. This line lets us
6341# generate its Makefile.in.
6342am__api_version="1.9"
6343# Find a good install program. We prefer a C program (faster),
6344# so one script is as good as another. But avoid the broken or
6345# incompatible versions:
6346# SysV /etc/install, /usr/sbin/install
6347# SunOS /usr/etc/install
6348# IRIX /sbin/install
6349# AIX /bin/install
6350# AmigaOS /C/install, which installs bootblocks on floppy discs
6351# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6352# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6353# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6354# OS/2's system install, which has a completely different semantic
6355# ./install, which can be erroneously created by make from ./install.sh.
6356echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6357echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6358if test -z "$INSTALL"; then
6359if test "${ac_cv_path_install+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 # Account for people who put trailing slashes in PATH elements.
6368case $as_dir/ in
6369 ./ | .// | /cC/* | \
6370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6372 /usr/ucb/* ) ;;
6373 *)
6374 # OSF1 and SCO ODT 3.0 have their own names for install.
6375 # Don't use installbsd from OSF since it installs stuff as root
6376 # by default.
6377 for ac_prog in ginstall scoinst install; do
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6380 if test $ac_prog = install &&
6381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6382 # AIX install. It has an incompatible calling convention.
6383 :
6384 elif test $ac_prog = install &&
6385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6386 # program-specific install script used by HP pwplus--don't use.
6387 :
6388 else
6389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6390 break 3
6391 fi
6392 fi
6393 done
6394 done
6395 ;;
6396esac
6397done
6398
6399
6400fi
6401 if test "${ac_cv_path_install+set}" = set; then
6402 INSTALL=$ac_cv_path_install
6403 else
6404 # As a last resort, use the slow shell script. We don't cache a
6405 # path for INSTALL within a source directory, because that will
6406 # break other packages using the cache if that directory is
6407 # removed, or if the path is relative.
6408 INSTALL=$ac_install_sh
6409 fi
6410fi
6411echo "$as_me:$LINENO: result: $INSTALL" >&5
6412echo "${ECHO_T}$INSTALL" >&6
6413
6414# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6415# It thinks the first close brace ends the variable substitution.
6416test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6417
6418test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6419
6420test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6421
6422echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6423echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6424# Just in case
6425sleep 1
6426echo timestamp > conftest.file
6427# Do `set' in a subshell so we don't clobber the current shell's
6428# arguments. Must try -L first in case configure is actually a
6429# symlink; some systems play weird games with the mod time of symlinks
6430# (eg FreeBSD returns the mod time of the symlink's containing
6431# directory).
6432if (
6433 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6434 if test "$*" = "X"; then
6435 # -L didn't work.
6436 set X `ls -t $srcdir/configure conftest.file`
6437 fi
6438 rm -f conftest.file
6439 if test "$*" != "X $srcdir/configure conftest.file" \
6440 && test "$*" != "X conftest.file $srcdir/configure"; then
6441
6442 # If neither matched, then we have a broken ls. This can happen
6443 # if, for instance, CONFIG_SHELL is bash and it inherits a
6444 # broken ls alias from the environment. This has actually
6445 # happened. Such a system could not be considered "sane".
6446 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6447alias in your environment" >&5
6448echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6449alias in your environment" >&2;}
6450 { (exit 1); exit 1; }; }
6451 fi
6452
6453 test "$2" = conftest.file
6454 )
6455then
6456 # Ok.
6457 :
6458else
6459 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6460Check your system clock" >&5
6461echo "$as_me: error: newly created file is older than distributed files!
6462Check your system clock" >&2;}
6463 { (exit 1); exit 1; }; }
6464fi
6465echo "$as_me:$LINENO: result: yes" >&5
6466echo "${ECHO_T}yes" >&6
6467test "$program_prefix" != NONE &&
6468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6469# Use a double $ so make ignores it.
6470test "$program_suffix" != NONE &&
6471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6472# Double any \ or $. echo might interpret backslashes.
6473# By default was `s,x,x', remove it if useless.
6474cat <<\_ACEOF >conftest.sed
6475s/[\\$]/&&/g;s/;s,x,x,$//
6476_ACEOF
6477program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6478rm conftest.sed
6479
6480# expand $ac_aux_dir to an absolute path
6481am_aux_dir=`cd $ac_aux_dir && pwd`
6482
6483test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6484# Use eval to expand $SHELL
6485if eval "$MISSING --run true"; then
6486 am_missing_run="$MISSING --run "
6487else
6488 am_missing_run=
6489 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6490echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6491fi
6492
6493if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6494 # We used to keeping the `.' as first argument, in order to
6495 # allow $(mkdir_p) to be used without argument. As in
6496 # $(mkdir_p) $(somedir)
6497 # where $(somedir) is conditionally defined. However this is wrong
6498 # for two reasons:
6499 # 1. if the package is installed by a user who cannot write `.'
6500 # make install will fail,
6501 # 2. the above comment should most certainly read
6502 # $(mkdir_p) $(DESTDIR)$(somedir)
6503 # so it does not work when $(somedir) is undefined and
6504 # $(DESTDIR) is not.
6505 # To support the latter case, we have to write
6506 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6507 # so the `.' trick is pointless.
6508 mkdir_p='mkdir -p --'
6509else
6510 # On NextStep and OpenStep, the `mkdir' command does not
6511 # recognize any option. It will interpret all options as
6512 # directories to create, and then abort because `.' already
6513 # exists.
6514 for d in ./-p ./--version;
6515 do
6516 test -d $d && rmdir $d
6517 done
6518 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6519 if test -f "$ac_aux_dir/mkinstalldirs"; then
6520 mkdir_p='$(mkinstalldirs)'
6521 else
6522 mkdir_p='$(install_sh) -d'
6523 fi
6524fi
6525
6526for ac_prog in gawk mawk nawk awk
6527do
6528 # Extract the first word of "$ac_prog", so it can be a program name with args.
6529set dummy $ac_prog; ac_word=$2
6530echo "$as_me:$LINENO: checking for $ac_word" >&5
6531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6532if test "${ac_cv_prog_AWK+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6534else
6535 if test -n "$AWK"; then
6536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_AWK="$ac_prog"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549done
6550done
6551
6552fi
6553fi
6554AWK=$ac_cv_prog_AWK
6555if test -n "$AWK"; then
6556 echo "$as_me:$LINENO: result: $AWK" >&5
6557echo "${ECHO_T}$AWK" >&6
6558else
6559 echo "$as_me:$LINENO: result: no" >&5
6560echo "${ECHO_T}no" >&6
6561fi
6562
6563 test -n "$AWK" && break
6564done
6565
6566echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6567echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6568set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6569if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572 cat >conftest.make <<\_ACEOF
6573all:
6574 @echo 'ac_maketemp="$(MAKE)"'
6575_ACEOF
6576# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6577eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6578if test -n "$ac_maketemp"; then
6579 eval ac_cv_prog_make_${ac_make}_set=yes
6580else
6581 eval ac_cv_prog_make_${ac_make}_set=no
6582fi
6583rm -f conftest.make
6584fi
6585if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6586 echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6
6588 SET_MAKE=
6589else
6590 echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6
6592 SET_MAKE="MAKE=${MAKE-make}"
6593fi
6594
6595rm -rf .tst 2>/dev/null
6596mkdir .tst 2>/dev/null
6597if test -d .tst; then
6598 am__leading_dot=.
6599else
6600 am__leading_dot=_
6601fi
6602rmdir .tst 2>/dev/null
6603
6604DEPDIR="${am__leading_dot}deps"
6605
6606 ac_config_commands="$ac_config_commands depfiles"
6607
6608
6609am_make=${MAKE-make}
6610cat > confinc << 'END'
6611am__doit:
6612 @echo done
6613.PHONY: am__doit
6614END
6615# If we don't find an include directive, just comment out the code.
6616echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6617echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6618am__include="#"
6619am__quote=
6620_am_result=none
6621# First try GNU make style include.
6622echo "include confinc" > confmf
6623# We grep out `Entering directory' and `Leaving directory'
6624# messages which can occur if `w' ends up in MAKEFLAGS.
6625# In particular we don't look at `^make:' because GNU make might
6626# be invoked under some other name (usually "gmake"), in which
6627# case it prints its new name instead of `make'.
6628if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6629 am__include=include
6630 am__quote=
6631 _am_result=GNU
6632fi
6633# Now try BSD make style include.
6634if test "$am__include" = "#"; then
6635 echo '.include "confinc"' > confmf
6636 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6637 am__include=.include
6638 am__quote="\""
6639 _am_result=BSD
6640 fi
6641fi
6642
6643
6644echo "$as_me:$LINENO: result: $_am_result" >&5
6645echo "${ECHO_T}$_am_result" >&6
6646rm -f confinc confmf
6647
6648# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6649if test "${enable_dependency_tracking+set}" = set; then
6650 enableval="$enable_dependency_tracking"
6651
6652fi;
6653if test "x$enable_dependency_tracking" != xno; then
6654 am_depcomp="$ac_aux_dir/depcomp"
6655 AMDEPBACKSLASH='\'
6656fi
6657
6658
6659if test "x$enable_dependency_tracking" != xno; then
6660 AMDEP_TRUE=
6661 AMDEP_FALSE='#'
6662else
6663 AMDEP_TRUE='#'
6664 AMDEP_FALSE=
6665fi
6666
6667
6668
6669# test to see if srcdir already configured
6670if test "`cd $srcdir && pwd`" != "`pwd`" &&
6671 test -f $srcdir/config.status; then
6672 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6673echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6674 { (exit 1); exit 1; }; }
6675fi
6676
6677# test whether we have cygpath
6678if test -z "$CYGPATH_W"; then
6679 if (cygpath --version) >/dev/null 2>/dev/null; then
6680 CYGPATH_W='cygpath -w'
6681 else
6682 CYGPATH_W=echo
6683 fi
6684fi
6685
6686
6687# Define the identity of the package.
6688 PACKAGE=gdb
6689 VERSION=UNUSED-VERSION
6690
6691
6692# Some tools Automake needs.
6693
6694ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6695
6696
6697AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6698
6699
6700AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6701
6702
6703AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6704
6705
6706MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6707
6708install_sh=${install_sh-"$am_aux_dir/install-sh"}
6709
6710# Installed binaries are usually stripped using `strip' when the user
6711# run `make install-strip'. However `strip' might not be the right
6712# tool to use in cross-compilation environments, therefore Automake
6713# will honor the `STRIP' environment variable to overrule this program.
6714if test "$cross_compiling" != no; then
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6717set dummy ${ac_tool_prefix}strip; ac_word=$2
6718echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6720if test "${ac_cv_prog_STRIP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723 if test -n "$STRIP"; then
6724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737done
6738done
6739
6740fi
6741fi
6742STRIP=$ac_cv_prog_STRIP
6743if test -n "$STRIP"; then
6744 echo "$as_me:$LINENO: result: $STRIP" >&5
6745echo "${ECHO_T}$STRIP" >&6
6746else
6747 echo "$as_me:$LINENO: result: no" >&5
6748echo "${ECHO_T}no" >&6
6749fi
6750
6751fi
6752if test -z "$ac_cv_prog_STRIP"; then
6753 ac_ct_STRIP=$STRIP
6754 # Extract the first word of "strip", so it can be a program name with args.
6755set dummy strip; ac_word=$2
6756echo "$as_me:$LINENO: checking for $ac_word" >&5
6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6758if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 if test -n "$ac_ct_STRIP"; then
6762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_ac_ct_STRIP="strip"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775done
6776done
6777
6778 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6779fi
6780fi
6781ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6782if test -n "$ac_ct_STRIP"; then
6783 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6784echo "${ECHO_T}$ac_ct_STRIP" >&6
6785else
6786 echo "$as_me:$LINENO: result: no" >&5
6787echo "${ECHO_T}no" >&6
6788fi
6789
6790 STRIP=$ac_ct_STRIP
6791else
6792 STRIP="$ac_cv_prog_STRIP"
6793fi
6794
6795fi
6796INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6797
6798# We need awk for the "check" target. The system "awk" is bad on
6799# some platforms.
6800# Always define AMTAR for backward compatibility.
6801
6802AMTAR=${AMTAR-"${am_missing_run}tar"}
6803
6804am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6805
6806
6807
6808
6809depcc="$CC" am_compiler_list=
6810
6811echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6812echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6813if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6817 # We make a subdir and do the tests there. Otherwise we can end up
6818 # making bogus files that we don't know about and never remove. For
6819 # instance it was reported that on HP-UX the gcc test will end up
6820 # making a dummy file named `D' -- because `-MD' means `put the output
6821 # in D'.
6822 mkdir conftest.dir
6823 # Copy depcomp to subdir because otherwise we won't find it if we're
6824 # using a relative directory.
6825 cp "$am_depcomp" conftest.dir
6826 cd conftest.dir
6827 # We will build objects and dependencies in a subdirectory because
6828 # it helps to detect inapplicable dependency modes. For instance
6829 # both Tru64's cc and ICC support -MD to output dependencies as a
6830 # side effect of compilation, but ICC will put the dependencies in
6831 # the current directory while Tru64 will put them in the object
6832 # directory.
6833 mkdir sub
6834
6835 am_cv_CC_dependencies_compiler_type=none
6836 if test "$am_compiler_list" = ""; then
6837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6838 fi
6839 for depmode in $am_compiler_list; do
6840 # Setup a source with many dependencies, because some compilers
6841 # like to wrap large dependency lists on column 80 (with \), and
6842 # we should not choose a depcomp mode which is confused by this.
6843 #
6844 # We need to recreate these files for each test, as the compiler may
6845 # overwrite some of them when testing with obscure command lines.
6846 # This happens at least with the AIX C compiler.
6847 : > sub/conftest.c
6848 for i in 1 2 3 4 5 6; do
6849 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6850 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6851 # Solaris 8's {/usr,}/bin/sh.
6852 touch sub/conftst$i.h
6853 done
6854 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6855
6856 case $depmode in
6857 nosideeffect)
6858 # after this tag, mechanisms are not by side-effect, so they'll
6859 # only be used when explicitly requested
6860 if test "x$enable_dependency_tracking" = xyes; then
6861 continue
6862 else
6863 break
6864 fi
6865 ;;
6866 none) break ;;
6867 esac
6868 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6869 # mode. It turns out that the SunPro C++ compiler does not properly
6870 # handle `-M -o', and we need to detect this.
6871 if depmode=$depmode \
6872 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6873 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6874 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6875 >/dev/null 2>conftest.err &&
6876 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6877 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6878 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6879 # icc doesn't choke on unknown options, it will just issue warnings
6880 # or remarks (even with -Werror). So we grep stderr for any message
6881 # that says an option was ignored or not supported.
6882 # When given -MP, icc 7.0 and 7.1 complain thusly:
6883 # icc: Command line warning: ignoring option '-M'; no argument required
6884 # The diagnosis changed in icc 8.0:
6885 # icc: Command line remark: option '-MP' not supported
6886 if (grep 'ignoring option' conftest.err ||
6887 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6888 am_cv_CC_dependencies_compiler_type=$depmode
6889 break
6890 fi
6891 fi
6892 done
6893
6894 cd ..
6895 rm -rf conftest.dir
6896else
6897 am_cv_CC_dependencies_compiler_type=none
6898fi
6899
6900fi
6901echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6902echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6903CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6904
6905
6906
6907if
6908 test "x$enable_dependency_tracking" != xno \
6909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6910 am__fastdepCC_TRUE=
6911 am__fastdepCC_FALSE='#'
6912else
6913 am__fastdepCC_TRUE='#'
6914 am__fastdepCC_FALSE=
6915fi
6916
6917
6918
6919
bec39cab
AC
6920debugdir=${libdir}/debug
6921
6922
b4e70030 6923# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 6924if test "${with_separate_debug_dir+set}" = set; then
783e057b
DJ
6925 withval="$with_separate_debug_dir"
6926 debugdir="${withval}"
6927fi;
20e95c23 6928
20e95c23 6929
783e057b
DJ
6930 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6932 ac_define_dir=`eval echo $debugdir`
6933 ac_define_dir=`eval echo $ac_define_dir`
20e95c23 6934
783e057b
DJ
6935cat >>confdefs.h <<_ACEOF
6936#define DEBUGDIR "$ac_define_dir"
20e95c23 6937_ACEOF
20e95c23 6938
20e95c23 6939
783e057b 6940#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
20e95c23 6941
783e057b
DJ
6942if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6943 if test "x$prefix" = xNONE; then
6944 test_prefix=/usr/local
6945 else
6946 test_prefix=$prefix
6947 fi
20e95c23 6948else
783e057b 6949 test_prefix=$exec_prefix
20e95c23 6950fi
783e057b
DJ
6951case ${debugdir} in
6952"${test_prefix}"|"${test_prefix}/"*|\
6953'${exec_prefix}'|'${exec_prefix}/'*)
20e95c23
DJ
6954
6955cat >>confdefs.h <<\_ACEOF
783e057b 6956#define DEBUGDIR_RELOCATABLE 1
20e95c23
DJ
6957_ACEOF
6958
783e057b
DJ
6959 ;;
6960esac
6961
20e95c23 6962
20e95c23 6963
783e057b 6964subdirs="$subdirs doc testsuite"
20e95c23
DJ
6965
6966
783e057b
DJ
6967# Check whether to support alternative target configurations
6968# Check whether --enable-targets or --disable-targets was given.
6969if test "${enable_targets+set}" = set; then
6970 enableval="$enable_targets"
6971 case "${enableval}" in
6972 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6973echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6974 { (exit 1); exit 1; }; }
6975 ;;
6976 no) enable_targets= ;;
6977 *) enable_targets=$enableval ;;
6978esac
6979fi;
20e95c23 6980
783e057b
DJ
6981# Check whether to enable 64-bit support on 32-bit hosts
6982# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6983if test "${enable_64_bit_bfd+set}" = set; then
6984 enableval="$enable_64_bit_bfd"
6985 case "${enableval}" in
6986 yes) want64=true ;;
6987 no) want64=false ;;
6988 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6989echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6990 { (exit 1); exit 1; }; } ;;
6991esac
6992else
6993 want64=false
6994fi;
6995# Provide defaults for some variables set by the per-host and per-target
6996# configuration.
6997gdb_host_obs=posix-hdep.o
20e95c23 6998
783e057b
DJ
6999if test "${target}" = "${host}"; then
7000 gdb_native=yes
7001else
7002 gdb_native=no
7003fi
20e95c23 7004
783e057b 7005. $srcdir/configure.host
20e95c23 7006
783e057b 7007# Accumulate some settings from configure.tgt over all enabled targets
20e95c23 7008
783e057b
DJ
7009TARGET_OBS=
7010all_targets=
20e95c23 7011
783e057b 7012for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
20e95c23 7013do
783e057b
DJ
7014 if test "$targ_alias" = "all"; then
7015 all_targets=true
7016 else
7017 # Canonicalize the secondary target names.
7018 result=`$ac_config_sub $targ_alias 2>/dev/null`
7019 if test -n "$result"; then
7020 targ=$result
7021 else
7022 targ=$targ_alias
7023 fi
20e95c23 7024
783e057b 7025 . ${srcdir}/configure.tgt
20e95c23 7026
783e057b
DJ
7027 # Target-specific object files
7028 for i in ${gdb_target_obs}; do
7029 case " $TARGET_OBS " in
7030 *" ${i} "*) ;;
7031 *)
7032 TARGET_OBS="$TARGET_OBS ${i}"
7033 ;;
7034 esac
7035 done
20e95c23 7036
783e057b
DJ
7037 # Check whether this target needs 64-bit CORE_ADDR
7038 if test x${want64} = xfalse; then
7039 . ${srcdir}/../bfd/config.bfd
7040 fi
7041 fi
20e95c23
DJ
7042done
7043
783e057b
DJ
7044if test x${all_targets} = xtrue; then
7045
7046 # We want all 64-bit targets if we either:
7047 # - run on a 64-bit host or
7048 # - already require 64-bit support for some other target or
7049 # - the --enable-64-bit-bfd option was supplied
7050 # Otherwise we only support all 32-bit targets.
7051 #
7052 # NOTE: This test must be in sync with the corresponding
7053 # tests in BFD!
20e95c23 7054
783e057b
DJ
7055 if test x${want64} = xfalse; then
7056 echo "$as_me:$LINENO: checking for long" >&5
c0993dbe
UW
7057echo $ECHO_N "checking for long... $ECHO_C" >&6
7058if test "${ac_cv_type_long+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060else
7061 cat >conftest.$ac_ext <<_ACEOF
7062/* confdefs.h. */
7063_ACEOF
7064cat confdefs.h >>conftest.$ac_ext
7065cat >>conftest.$ac_ext <<_ACEOF
7066/* end confdefs.h. */
7067$ac_includes_default
7068int
7069main ()
7070{
7071if ((long *) 0)
7072 return 0;
7073if (sizeof (long))
7074 return 0;
7075 ;
7076 return 0;
7077}
7078_ACEOF
7079rm -f conftest.$ac_objext
7080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7081 (eval $ac_compile) 2>conftest.er1
7082 ac_status=$?
7083 grep -v '^ *+' conftest.er1 >conftest.err
7084 rm -f conftest.er1
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } &&
7088 { ac_try='test -z "$ac_c_werror_flag"
7089 || test ! -s conftest.err'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7095 { ac_try='test -s conftest.$ac_objext'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7101 ac_cv_type_long=yes
7102else
7103 echo "$as_me: failed program was:" >&5
7104sed 's/^/| /' conftest.$ac_ext >&5
7105
7106ac_cv_type_long=no
7107fi
7108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7109fi
7110echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7111echo "${ECHO_T}$ac_cv_type_long" >&6
7112
7113echo "$as_me:$LINENO: checking size of long" >&5
7114echo $ECHO_N "checking size of long... $ECHO_C" >&6
7115if test "${ac_cv_sizeof_long+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118 if test "$ac_cv_type_long" = yes; then
7119 # The cast to unsigned long works around a bug in the HP C Compiler
7120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7122 # This bug is HP SR number 8606223364.
7123 if test "$cross_compiling" = yes; then
7124 # Depending upon the size, compute the lo and hi bounds.
7125cat >conftest.$ac_ext <<_ACEOF
7126/* confdefs.h. */
7127_ACEOF
7128cat confdefs.h >>conftest.$ac_ext
7129cat >>conftest.$ac_ext <<_ACEOF
7130/* end confdefs.h. */
7131$ac_includes_default
7132int
7133main ()
7134{
7135static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7136test_array [0] = 0
7137
7138 ;
7139 return 0;
7140}
7141_ACEOF
7142rm -f conftest.$ac_objext
7143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -z "$ac_c_werror_flag"
7152 || test ! -s conftest.err'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 (eval $ac_try) 2>&5
7155 ac_status=$?
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; } &&
7158 { ac_try='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_lo=0 ac_mid=0
7165 while :; do
7166 cat >conftest.$ac_ext <<_ACEOF
7167/* confdefs.h. */
7168_ACEOF
7169cat confdefs.h >>conftest.$ac_ext
7170cat >>conftest.$ac_ext <<_ACEOF
7171/* end confdefs.h. */
7172$ac_includes_default
7173int
7174main ()
7175{
7176static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7177test_array [0] = 0
7178
7179 ;
7180 return 0;
7181}
7182_ACEOF
7183rm -f conftest.$ac_objext
7184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag"
7193 || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest.$ac_objext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_hi=$ac_mid; break
7206else
7207 echo "$as_me: failed program was:" >&5
7208sed 's/^/| /' conftest.$ac_ext >&5
7209
7210ac_lo=`expr $ac_mid + 1`
7211 if test $ac_lo -le $ac_mid; then
7212 ac_lo= ac_hi=
7213 break
7214 fi
7215 ac_mid=`expr 2 '*' $ac_mid + 1`
7216fi
7217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218 done
7219else
7220 echo "$as_me: failed program was:" >&5
7221sed 's/^/| /' conftest.$ac_ext >&5
7222
7223cat >conftest.$ac_ext <<_ACEOF
7224/* confdefs.h. */
7225_ACEOF
7226cat confdefs.h >>conftest.$ac_ext
7227cat >>conftest.$ac_ext <<_ACEOF
7228/* end confdefs.h. */
7229$ac_includes_default
7230int
7231main ()
7232{
7233static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7234test_array [0] = 0
7235
7236 ;
7237 return 0;
7238}
7239_ACEOF
7240rm -f conftest.$ac_objext
7241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242 (eval $ac_compile) 2>conftest.er1
7243 ac_status=$?
7244 grep -v '^ *+' conftest.er1 >conftest.err
7245 rm -f conftest.er1
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try='test -z "$ac_c_werror_flag"
7250 || test ! -s conftest.err'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 (eval $ac_try) 2>&5
7253 ac_status=$?
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; } &&
7256 { ac_try='test -s conftest.$ac_objext'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 (eval $ac_try) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7262 ac_hi=-1 ac_mid=-1
7263 while :; do
7264 cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h. */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h. */
7270$ac_includes_default
7271int
7272main ()
7273{
7274static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7275test_array [0] = 0
7276
7277 ;
7278 return 0;
7279}
7280_ACEOF
7281rm -f conftest.$ac_objext
7282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_lo=$ac_mid; break
7304else
7305 echo "$as_me: failed program was:" >&5
7306sed 's/^/| /' conftest.$ac_ext >&5
7307
7308ac_hi=`expr '(' $ac_mid ')' - 1`
7309 if test $ac_mid -le $ac_hi; then
7310 ac_lo= ac_hi=
7311 break
7312 fi
7313 ac_mid=`expr 2 '*' $ac_mid`
7314fi
7315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7316 done
7317else
7318 echo "$as_me: failed program was:" >&5
7319sed 's/^/| /' conftest.$ac_ext >&5
7320
7321ac_lo= ac_hi=
7322fi
7323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7324fi
7325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7326# Binary search between lo and hi bounds.
7327while test "x$ac_lo" != "x$ac_hi"; do
7328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7329 cat >conftest.$ac_ext <<_ACEOF
7330/* confdefs.h. */
7331_ACEOF
7332cat confdefs.h >>conftest.$ac_ext
7333cat >>conftest.$ac_ext <<_ACEOF
7334/* end confdefs.h. */
7335$ac_includes_default
7336int
7337main ()
7338{
7339static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7340test_array [0] = 0
7341
7342 ;
7343 return 0;
7344}
7345_ACEOF
7346rm -f conftest.$ac_objext
7347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7349 ac_status=$?
7350 grep -v '^ *+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -z "$ac_c_werror_flag"
7356 || test ! -s conftest.err'
7357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 (eval $ac_try) 2>&5
7359 ac_status=$?
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); }; } &&
7362 { ac_try='test -s conftest.$ac_objext'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 (eval $ac_try) 2>&5
7365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 ac_hi=$ac_mid
7369else
7370 echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373ac_lo=`expr '(' $ac_mid ')' + 1`
7374fi
7375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376done
7377case $ac_lo in
7378?*) ac_cv_sizeof_long=$ac_lo;;
d5af19ba
DJ
7379'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7380echo "$as_me: error: in \`$ac_pwd':" >&2;}
7381{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
c0993dbe
UW
7382See \`config.log' for more details." >&5
7383echo "$as_me: error: cannot compute sizeof (long), 77
7384See \`config.log' for more details." >&2;}
d5af19ba 7385 { (exit 1); exit 1; }; }; } ;;
c0993dbe
UW
7386esac
7387else
7388 if test "$cross_compiling" = yes; then
d5af19ba
DJ
7389 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7390echo "$as_me: error: in \`$ac_pwd':" >&2;}
7391{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
c0993dbe
UW
7392See \`config.log' for more details." >&5
7393echo "$as_me: error: cannot run test program while cross compiling
7394See \`config.log' for more details." >&2;}
d5af19ba 7395 { (exit 1); exit 1; }; }; }
c0993dbe
UW
7396else
7397 cat >conftest.$ac_ext <<_ACEOF
7398/* confdefs.h. */
7399_ACEOF
7400cat confdefs.h >>conftest.$ac_ext
7401cat >>conftest.$ac_ext <<_ACEOF
7402/* end confdefs.h. */
7403$ac_includes_default
7404long longval () { return (long) (sizeof (long)); }
7405unsigned long ulongval () { return (long) (sizeof (long)); }
7406#include <stdio.h>
7407#include <stdlib.h>
7408int
7409main ()
7410{
7411
7412 FILE *f = fopen ("conftest.val", "w");
7413 if (! f)
7414 exit (1);
7415 if (((long) (sizeof (long))) < 0)
7416 {
7417 long i = longval ();
7418 if (i != ((long) (sizeof (long))))
7419 exit (1);
7420 fprintf (f, "%ld\n", i);
7421 }
7422 else
7423 {
7424 unsigned long i = ulongval ();
7425 if (i != ((long) (sizeof (long))))
7426 exit (1);
7427 fprintf (f, "%lu\n", i);
7428 }
7429 exit (ferror (f) || fclose (f) != 0);
7430
7431 ;
7432 return 0;
7433}
7434_ACEOF
7435rm -f conftest$ac_exeext
7436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 (eval $ac_try) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_cv_sizeof_long=`cat conftest.val`
7447else
7448 echo "$as_me: program exited with status $ac_status" >&5
7449echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452( exit $ac_status )
d5af19ba
DJ
7453{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7454echo "$as_me: error: in \`$ac_pwd':" >&2;}
c0993dbe
UW
7455{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7456See \`config.log' for more details." >&5
7457echo "$as_me: error: cannot compute sizeof (long), 77
7458See \`config.log' for more details." >&2;}
d5af19ba 7459 { (exit 1); exit 1; }; }; }
c0993dbe
UW
7460fi
7461rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7462fi
7463fi
7464rm -f conftest.val
7465else
7466 ac_cv_sizeof_long=0
7467fi
7468fi
7469echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7470echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7471cat >>confdefs.h <<_ACEOF
7472#define SIZEOF_LONG $ac_cv_sizeof_long
7473_ACEOF
7474
7475
7476 if test "x${ac_cv_sizeof_long}" = "x8"; then
7477 want64=true
7478 fi
7479 fi
7480 if test x${want64} = xtrue; then
7481 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7482 else
7483 TARGET_OBS='$(ALL_TARGET_OBS)'
7484 fi
7485fi
7486
7487
7488
7489# For other settings, only the main target counts.
7490gdb_sim=
7491gdb_osabi=
7492build_gdbserver=
7493targ=$target; . ${srcdir}/configure.tgt
7494
7495# Fetch the default architecture and default target vector from BFD.
7496targ=$target; . $srcdir/../bfd/config.bfd
7497
7498# We only want the first architecture, so strip off the others if
7499# there is more than one.
7500targ_archs=`echo $targ_archs | sed 's/ .*//'`
7501
7502if test "x$targ_archs" != x; then
7503
7504cat >>confdefs.h <<_ACEOF
7505#define DEFAULT_BFD_ARCH $targ_archs
7506_ACEOF
7507
7508fi
7509if test "x$targ_defvec" != x; then
7510
7511cat >>confdefs.h <<_ACEOF
7512#define DEFAULT_BFD_VEC $targ_defvec
7513_ACEOF
7514
7515fi
7516
c0993dbe
UW
7517# The CLI cannot be disabled yet, but may be in the future.
7518
7519# Enable CLI.
7520# Check whether --enable-gdbcli or --disable-gdbcli was given.
7521if test "${enable_gdbcli+set}" = set; then
7522 enableval="$enable_gdbcli"
7523 case $enableval in
7524 yes)
7525 ;;
7526 no)
7527 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7528echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7529 { (exit 1); exit 1; }; } ;;
7530 *)
7531 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7532echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7533 { (exit 1); exit 1; }; } ;;
7534 esac
7535else
7536 enable_gdbcli=yes
7537fi;
7538if test x"$enable_gdbcli" = xyes; then
7539 if test -d $srcdir/cli; then
7540 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7541 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7542 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7543 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7544 fi
7545fi
7546
7547# Enable MI.
7548# Check whether --enable-gdbmi or --disable-gdbmi was given.
7549if test "${enable_gdbmi+set}" = set; then
7550 enableval="$enable_gdbmi"
7551 case $enableval in
7552 yes | no)
7553 ;;
7554 *)
7555 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7556echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7557 { (exit 1); exit 1; }; } ;;
7558 esac
7559else
7560 enable_gdbmi=yes
7561fi;
7562if test x"$enable_gdbmi" = xyes; then
7563 if test -d $srcdir/mi; then
7564 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7565 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7566 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7567 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7568 fi
7569fi
7570
7571# Enable TUI.
7572# Check whether --enable-tui or --disable-tui was given.
7573if test "${enable_tui+set}" = set; then
7574 enableval="$enable_tui"
7575 case $enableval in
3ca64bd3 7576 yes | no | auto)
c0993dbe
UW
7577 ;;
7578 *)
7579 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7580echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7581 { (exit 1); exit 1; }; } ;;
7582 esac
7583else
3ca64bd3 7584 enable_tui=auto
c0993dbe
UW
7585fi;
7586
7587# Enable gdbtk.
7588# Check whether --enable-gdbtk or --disable-gdbtk was given.
7589if test "${enable_gdbtk+set}" = set; then
7590 enableval="$enable_gdbtk"
7591 case $enableval in
7592 yes | no)
7593 ;;
7594 *)
7595 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7596echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7597 { (exit 1); exit 1; }; } ;;
7598 esac
7599else
7600 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7601 enable_gdbtk=yes
7602 else
7603 enable_gdbtk=no
7604 fi
7605fi;
7606# We unconditionally disable gdbtk tests on selected platforms.
7607case $host_os in
7608 go32* | windows*)
7609 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7610echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7611 enable_gdbtk=no ;;
7612esac
7613
7614# Libunwind support.
bec39cab 7615
b4e70030 7616# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 7617if test "${with_libunwind+set}" = set; then
b4e70030
JB
7618 withval="$with_libunwind"
7619 case "${withval}" in
bec39cab
AC
7620 yes) enable_libunwind=yes ;;
7621 no) enable_libunwind=no ;;
7622 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7623echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7624 { (exit 1); exit 1; }; } ;;
7625esac
7626else
7627
7628
7629for ac_header in libunwind.h
7630do
7631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7632if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633 echo "$as_me:$LINENO: checking for $ac_header" >&5
7634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637fi
b4e70030
JB
7638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7640else
7641 # Is the header compilable?
b4e70030
JB
7642echo "$as_me:$LINENO: checking $ac_header usability" >&5
7643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7644cat >conftest.$ac_ext <<_ACEOF
7645/* confdefs.h. */
7646_ACEOF
7647cat confdefs.h >>conftest.$ac_ext
7648cat >>conftest.$ac_ext <<_ACEOF
7649/* end confdefs.h. */
7650$ac_includes_default
7651#include <$ac_header>
7652_ACEOF
7653rm -f conftest.$ac_objext
7654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
b4e70030
JB
7662 { ac_try='test -z "$ac_c_werror_flag"
7663 || test ! -s conftest.err'
bec39cab
AC
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try='test -s conftest.$ac_objext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_header_compiler=yes
7676else
7677 echo "$as_me: failed program was:" >&5
7678sed 's/^/| /' conftest.$ac_ext >&5
7679
b4e70030 7680ac_header_compiler=no
bec39cab
AC
7681fi
7682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7685
7686# Is the header present?
b4e70030
JB
7687echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7689cat >conftest.$ac_ext <<_ACEOF
7690/* confdefs.h. */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h. */
7695#include <$ac_header>
7696_ACEOF
7697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } >/dev/null; then
7705 if test -s conftest.err; then
7706 ac_cpp_err=$ac_c_preproc_warn_flag
7707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7708 else
7709 ac_cpp_err=
7710 fi
7711else
7712 ac_cpp_err=yes
7713fi
7714if test -z "$ac_cpp_err"; then
7715 ac_header_preproc=yes
7716else
7717 echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 ac_header_preproc=no
7721fi
7722rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7724echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7725
7726# So? What about this header?
7727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7728 yes:no: )
7729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7733 ac_header_preproc=yes
7734 ;;
7735 no:yes:* )
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7748 (
7749 cat <<\_ASBOX
7750## ------------------------------------------ ##
7751## Report this to the AC_PACKAGE_NAME lists. ##
7752## ------------------------------------------ ##
7753_ASBOX
7754 ) |
7755 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7756 ;;
7757esac
b4e70030
JB
7758echo "$as_me:$LINENO: checking for $ac_header" >&5
7759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763 eval "$as_ac_Header=\$ac_header_preproc"
7764fi
b4e70030
JB
7765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7767
7768fi
7769if test `eval echo '${'$as_ac_Header'}'` = yes; then
7770 cat >>confdefs.h <<_ACEOF
7771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772_ACEOF
7773
7774fi
7775
7776done
7777
7778
7779for ac_header in libunwind-ia64.h
7780do
7781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7782if eval "test \"\${$as_ac_Header+set}\" = set"; then
7783 echo "$as_me:$LINENO: checking for $ac_header" >&5
7784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7785if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787fi
b4e70030
JB
7788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7790else
7791 # Is the header compilable?
b4e70030
JB
7792echo "$as_me:$LINENO: checking $ac_header usability" >&5
7793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7794cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800$ac_includes_default
7801#include <$ac_header>
7802_ACEOF
7803rm -f conftest.$ac_objext
7804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7805 (eval $ac_compile) 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
b4e70030
JB
7812 { ac_try='test -z "$ac_c_werror_flag"
7813 || test ! -s conftest.err'
bec39cab
AC
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest.$ac_objext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_header_compiler=yes
7826else
7827 echo "$as_me: failed program was:" >&5
7828sed 's/^/| /' conftest.$ac_ext >&5
7829
b4e70030 7830ac_header_compiler=no
bec39cab
AC
7831fi
7832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7833echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7835
7836# Is the header present?
b4e70030
JB
7837echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7839cat >conftest.$ac_ext <<_ACEOF
7840/* confdefs.h. */
7841_ACEOF
7842cat confdefs.h >>conftest.$ac_ext
7843cat >>conftest.$ac_ext <<_ACEOF
7844/* end confdefs.h. */
7845#include <$ac_header>
7846_ACEOF
7847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } >/dev/null; then
7855 if test -s conftest.err; then
7856 ac_cpp_err=$ac_c_preproc_warn_flag
7857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7858 else
7859 ac_cpp_err=
7860 fi
7861else
7862 ac_cpp_err=yes
7863fi
7864if test -z "$ac_cpp_err"; then
7865 ac_header_preproc=yes
7866else
7867 echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 ac_header_preproc=no
7871fi
7872rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7875
7876# So? What about this header?
7877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7878 yes:no: )
7879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883 ac_header_preproc=yes
7884 ;;
7885 no:yes:* )
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7893echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7898 (
7899 cat <<\_ASBOX
7900## ------------------------------------------ ##
7901## Report this to the AC_PACKAGE_NAME lists. ##
7902## ------------------------------------------ ##
7903_ASBOX
7904 ) |
7905 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7906 ;;
7907esac
b4e70030
JB
7908echo "$as_me:$LINENO: checking for $ac_header" >&5
7909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913 eval "$as_ac_Header=\$ac_header_preproc"
7914fi
b4e70030
JB
7915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7917
7918fi
7919if test `eval echo '${'$as_ac_Header'}'` = yes; then
7920 cat >>confdefs.h <<_ACEOF
7921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7922_ACEOF
7923
7924fi
7925
7926done
7927
7928 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7929 enable_libunwind=yes;
7930 fi
7931
b4e70030 7932fi;
bec39cab
AC
7933
7934if test x"$enable_libunwind" = xyes; then
7935
7936for ac_header in libunwind.h
7937do
7938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7939if eval "test \"\${$as_ac_Header+set}\" = set"; then
7940 echo "$as_me:$LINENO: checking for $ac_header" >&5
7941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7942if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944fi
b4e70030
JB
7945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7947else
7948 # Is the header compilable?
b4e70030
JB
7949echo "$as_me:$LINENO: checking $ac_header usability" >&5
7950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7951cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
7957$ac_includes_default
7958#include <$ac_header>
7959_ACEOF
7960rm -f conftest.$ac_objext
7961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
b4e70030
JB
7969 { ac_try='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
bec39cab
AC
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest.$ac_objext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_header_compiler=yes
7983else
7984 echo "$as_me: failed program was:" >&5
7985sed 's/^/| /' conftest.$ac_ext >&5
7986
b4e70030 7987ac_header_compiler=no
bec39cab
AC
7988fi
7989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7991echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7992
7993# Is the header present?
b4e70030
JB
7994echo "$as_me:$LINENO: checking $ac_header presence" >&5
7995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7996cat >conftest.$ac_ext <<_ACEOF
7997/* confdefs.h. */
7998_ACEOF
7999cat confdefs.h >>conftest.$ac_ext
8000cat >>conftest.$ac_ext <<_ACEOF
8001/* end confdefs.h. */
8002#include <$ac_header>
8003_ACEOF
8004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } >/dev/null; then
8012 if test -s conftest.err; then
8013 ac_cpp_err=$ac_c_preproc_warn_flag
8014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8015 else
8016 ac_cpp_err=
8017 fi
8018else
8019 ac_cpp_err=yes
8020fi
8021if test -z "$ac_cpp_err"; then
8022 ac_header_preproc=yes
8023else
8024 echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
8027 ac_header_preproc=no
8028fi
8029rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8031echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8032
8033# So? What about this header?
8034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8035 yes:no: )
8036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8040 ac_header_preproc=yes
8041 ;;
8042 no:yes:* )
8043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8055 (
8056 cat <<\_ASBOX
8057## ------------------------------------------ ##
8058## Report this to the AC_PACKAGE_NAME lists. ##
8059## ------------------------------------------ ##
8060_ASBOX
8061 ) |
8062 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8063 ;;
8064esac
b4e70030
JB
8065echo "$as_me:$LINENO: checking for $ac_header" >&5
8066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8067if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8069else
8070 eval "$as_ac_Header=\$ac_header_preproc"
8071fi
b4e70030
JB
8072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8074
8075fi
8076if test `eval echo '${'$as_ac_Header'}'` = yes; then
8077 cat >>confdefs.h <<_ACEOF
8078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8079_ACEOF
8080
8081fi
8082
8083done
8084
8085
8086for ac_header in libunwind-ia64.h
8087do
8088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8089if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090 echo "$as_me:$LINENO: checking for $ac_header" >&5
8091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094fi
b4e70030
JB
8095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8097else
8098 # Is the header compilable?
b4e70030
JB
8099echo "$as_me:$LINENO: checking $ac_header usability" >&5
8100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8101cat >conftest.$ac_ext <<_ACEOF
8102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
8107$ac_includes_default
8108#include <$ac_header>
8109_ACEOF
8110rm -f conftest.$ac_objext
8111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112 (eval $ac_compile) 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
b4e70030
JB
8119 { ac_try='test -z "$ac_c_werror_flag"
8120 || test ! -s conftest.err'
bec39cab
AC
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 (eval $ac_try) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_header_compiler=yes
8133else
8134 echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
b4e70030 8137ac_header_compiler=no
bec39cab
AC
8138fi
8139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8141echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8142
8143# Is the header present?
b4e70030
JB
8144echo "$as_me:$LINENO: checking $ac_header presence" >&5
8145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8146cat >conftest.$ac_ext <<_ACEOF
8147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h. */
8152#include <$ac_header>
8153_ACEOF
8154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } >/dev/null; then
8162 if test -s conftest.err; then
8163 ac_cpp_err=$ac_c_preproc_warn_flag
8164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8165 else
8166 ac_cpp_err=
8167 fi
8168else
8169 ac_cpp_err=yes
8170fi
8171if test -z "$ac_cpp_err"; then
8172 ac_header_preproc=yes
8173else
8174 echo "$as_me: failed program was:" >&5
8175sed 's/^/| /' conftest.$ac_ext >&5
8176
8177 ac_header_preproc=no
8178fi
8179rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8181echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8182
8183# So? What about this header?
8184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8185 yes:no: )
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8190 ac_header_preproc=yes
8191 ;;
8192 no:yes:* )
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8196echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8200echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8205 (
8206 cat <<\_ASBOX
8207## ------------------------------------------ ##
8208## Report this to the AC_PACKAGE_NAME lists. ##
8209## ------------------------------------------ ##
8210_ASBOX
8211 ) |
8212 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8213 ;;
8214esac
b4e70030
JB
8215echo "$as_me:$LINENO: checking for $ac_header" >&5
8216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8217if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220 eval "$as_ac_Header=\$ac_header_preproc"
8221fi
b4e70030
JB
8222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8224
8225fi
8226if test `eval echo '${'$as_ac_Header'}'` = yes; then
8227 cat >>confdefs.h <<_ACEOF
8228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8229_ACEOF
8230
8231fi
8232
8233done
8234
60ca704f
SE
8235
8236cat >>confdefs.h <<\_ACEOF
bec39cab
AC
8237#define HAVE_LIBUNWIND 1
8238_ACEOF
8239
8240 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8241 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8242 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8243fi
8244
8245# Profiling support.
b4e70030 8246# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 8247if test "${enable_profiling+set}" = set; then
b4e70030
JB
8248 enableval="$enable_profiling"
8249 case $enableval in
bec39cab
AC
8250 yes | no)
8251 ;;
8252 *)
8253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8254echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8255 { (exit 1); exit 1; }; } ;;
8256 esac
8257else
8258 enable_profiling=no
b4e70030 8259fi;
bec39cab
AC
8260
8261
8262
8263for ac_func in monstartup _mcleanup
8264do
8265as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
8266echo "$as_me:$LINENO: checking for $ac_func" >&5
8267echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8268if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8270else
8271 cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */
8277/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8279#define $ac_func innocuous_$ac_func
8280
8281/* System header to define __stub macros and hopefully few prototypes,
8282 which can conflict with char $ac_func (); below.
8283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284 <limits.h> exists even on freestanding compilers. */
8285
8286#ifdef __STDC__
8287# include <limits.h>
8288#else
8289# include <assert.h>
8290#endif
8291
8292#undef $ac_func
8293
b4e70030 8294/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8295#ifdef __cplusplus
8296extern "C"
b4e70030 8297{
bec39cab 8298#endif
b4e70030
JB
8299/* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
bec39cab
AC
8301char $ac_func ();
8302/* The GNU C library defines this for functions which it implements
8303 to always fail with ENOSYS. Some functions are actually named
8304 something starting with __ and the normal name is an alias. */
b4e70030 8305#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 8306choke me
b4e70030
JB
8307#else
8308char (*f) () = $ac_func;
8309#endif
8310#ifdef __cplusplus
8311}
bec39cab
AC
8312#endif
8313
8314int
8315main ()
8316{
b4e70030 8317return f != $ac_func;
bec39cab
AC
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext conftest$ac_exeext
8323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
b4e70030
JB
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
bec39cab
AC
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 eval "$as_ac_var=yes"
8345else
8346 echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
b4e70030 8349eval "$as_ac_var=no"
bec39cab
AC
8350fi
8351rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353fi
b4e70030
JB
8354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8355echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
8356if test `eval echo '${'$as_ac_var'}'` = yes; then
8357 cat >>confdefs.h <<_ACEOF
8358#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8359_ACEOF
8360
8361fi
8362done
8363
b4e70030
JB
8364echo "$as_me:$LINENO: checking for _etext" >&5
8365echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
8366if test "${ac_cv_var__etext+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8368else
8369 cat >conftest.$ac_ext <<_ACEOF
8370/* confdefs.h. */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h. */
8375#include <stdlib.h>
8376extern char _etext;
8377
8378int
8379main ()
8380{
8381free (&_etext);
8382 ;
8383 return 0;
8384}
8385_ACEOF
8386rm -f conftest.$ac_objext conftest$ac_exeext
8387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
b4e70030
JB
8395 { ac_try='test -z "$ac_c_werror_flag"
8396 || test ! -s conftest.err'
bec39cab
AC
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_var__etext=yes
8409else
8410 echo "$as_me: failed program was:" >&5
8411sed 's/^/| /' conftest.$ac_ext >&5
8412
b4e70030 8413ac_cv_var__etext=no
bec39cab
AC
8414fi
8415rm -f conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417fi
b4e70030
JB
8418echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8419echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
8420if test $ac_cv_var__etext = yes; then
8421
8422cat >>confdefs.h <<\_ACEOF
8423#define HAVE__ETEXT 1
8424_ACEOF
8425
01fe12f6
JB
8426fi
8427echo "$as_me:$LINENO: checking for etext" >&5
8428echo $ECHO_N "checking for etext... $ECHO_C" >&6
8429if test "${ac_cv_var_etext+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8431else
8432 cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h. */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h. */
8438#include <stdlib.h>
8439extern char etext;
8440
8441int
8442main ()
8443{
8444free (&etext);
8445 ;
8446 return 0;
8447}
8448_ACEOF
8449rm -f conftest.$ac_objext conftest$ac_exeext
8450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451 (eval $ac_link) 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag"
8459 || test ! -s conftest.err'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest$ac_exeext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 ac_cv_var_etext=yes
8472else
8473 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476ac_cv_var_etext=no
8477fi
8478rm -f conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
8480fi
8481echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8482echo "${ECHO_T}$ac_cv_var_etext" >&6
8483if test $ac_cv_var_etext = yes; then
8484
8485cat >>confdefs.h <<\_ACEOF
8486#define HAVE_ETEXT 1
8487_ACEOF
8488
bec39cab
AC
8489fi
8490if test "$enable_profiling" = yes ; then
8491 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8492 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8493echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8494 { (exit 1); exit 1; }; }
8495 fi
8496 PROFILE_CFLAGS=-pg
8497 OLD_CFLAGS="$CFLAGS"
8498 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8499
b4e70030
JB
8500 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8501echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
8502if test "${ac_cv_cc_supports_pg+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8504else
bec39cab
AC
8505 cat >conftest.$ac_ext <<_ACEOF
8506/* confdefs.h. */
8507_ACEOF
8508cat confdefs.h >>conftest.$ac_ext
8509cat >>conftest.$ac_ext <<_ACEOF
8510/* end confdefs.h. */
8511
8512int
8513main ()
8514{
8515int x;
8516 ;
8517 return 0;
8518}
8519_ACEOF
8520rm -f conftest.$ac_objext
8521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
b4e70030
JB
8529 { ac_try='test -z "$ac_c_werror_flag"
8530 || test ! -s conftest.err'
bec39cab
AC
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest.$ac_objext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_cc_supports_pg=yes
8543else
8544 echo "$as_me: failed program was:" >&5
8545sed 's/^/| /' conftest.$ac_ext >&5
8546
b4e70030 8547ac_cv_cc_supports_pg=no
bec39cab
AC
8548fi
8549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8550fi
b4e70030
JB
8551echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8552echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
8553
8554 if test $ac_cv_cc_supports_pg = no; then
8555 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8556echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8557 { (exit 1); exit 1; }; }
8558 fi
8559
8560 CFLAGS="$OLD_CFLAGS"
8561fi
8562
c16158bc
JM
8563
8564
8565# Check whether --with-pkgversion or --without-pkgversion was given.
8566if test "${with_pkgversion+set}" = set; then
8567 withval="$with_pkgversion"
8568 case "$withval" in
8569 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8570echo "$as_me: error: package version not specified" >&2;}
8571 { (exit 1); exit 1; }; } ;;
8572 no) PKGVERSION= ;;
8573 *) PKGVERSION="($withval) " ;;
8574 esac
8575else
8576 PKGVERSION="(GDB) "
8577
8578fi;
8579
8580
8581
8582
8583# Check whether --with-bugurl or --without-bugurl was given.
8584if test "${with_bugurl+set}" = set; then
8585 withval="$with_bugurl"
8586 case "$withval" in
8587 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8588echo "$as_me: error: bug URL not specified" >&2;}
8589 { (exit 1); exit 1; }; } ;;
8590 no) BUGURL=
8591 ;;
8592 *) BUGURL="$withval"
8593 ;;
8594 esac
8595else
8596 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8597
8598fi;
8599 case ${BUGURL} in
8600 "")
8601 REPORT_BUGS_TO=
8602 REPORT_BUGS_TEXI=
8603 ;;
8604 *)
8605 REPORT_BUGS_TO="<$BUGURL>"
8606 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8607 ;;
8608 esac;
8609
8610
8611
8612
8613cat >>confdefs.h <<_ACEOF
8614#define PKGVERSION "$PKGVERSION"
8615_ACEOF
8616
8617
8618cat >>confdefs.h <<_ACEOF
8619#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8620_ACEOF
8621
8622
bec39cab
AC
8623# --------------------- #
8624# Checks for programs. #
8625# --------------------- #
8626
8627for ac_prog in gawk mawk nawk awk
8628do
8629 # Extract the first word of "$ac_prog", so it can be a program name with args.
8630set dummy $ac_prog; ac_word=$2
b4e70030
JB
8631echo "$as_me:$LINENO: checking for $ac_word" >&5
8632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8633if test "${ac_cv_prog_AWK+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635else
8636 if test -n "$AWK"; then
8637 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8638else
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8646 ac_cv_prog_AWK="$ac_prog"
8647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8649 fi
8650done
8651done
8652
8653fi
8654fi
8655AWK=$ac_cv_prog_AWK
8656if test -n "$AWK"; then
b4e70030
JB
8657 echo "$as_me:$LINENO: result: $AWK" >&5
8658echo "${ECHO_T}$AWK" >&6
bec39cab 8659else
b4e70030
JB
8660 echo "$as_me:$LINENO: result: no" >&5
8661echo "${ECHO_T}no" >&6
bec39cab
AC
8662fi
8663
8664 test -n "$AWK" && break
8665done
8666
8667# Find a good install program. We prefer a C program (faster),
8668# so one script is as good as another. But avoid the broken or
8669# incompatible versions:
8670# SysV /etc/install, /usr/sbin/install
8671# SunOS /usr/etc/install
8672# IRIX /sbin/install
8673# AIX /bin/install
8674# AmigaOS /C/install, which installs bootblocks on floppy discs
8675# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8676# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8677# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8678# OS/2's system install, which has a completely different semantic
8679# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
8680echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8681echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
8682if test -z "$INSTALL"; then
8683if test "${ac_cv_path_install+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687for as_dir in $PATH
8688do
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 # Account for people who put trailing slashes in PATH elements.
8692case $as_dir/ in
8693 ./ | .// | /cC/* | \
8694 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8695 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8696 /usr/ucb/* ) ;;
c906108c 8697 *)
bec39cab
AC
8698 # OSF1 and SCO ODT 3.0 have their own names for install.
8699 # Don't use installbsd from OSF since it installs stuff as root
8700 # by default.
8701 for ac_prog in ginstall scoinst install; do
8702 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8703 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
8704 if test $ac_prog = install &&
8705 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8706 # AIX install. It has an incompatible calling convention.
8707 :
8708 elif test $ac_prog = install &&
8709 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8710 # program-specific install script used by HP pwplus--don't use.
8711 :
8712 else
8713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8714 break 3
8715 fi
8716 fi
8717 done
8718 done
8719 ;;
c906108c 8720esac
bec39cab
AC
8721done
8722
8723
8724fi
8725 if test "${ac_cv_path_install+set}" = set; then
8726 INSTALL=$ac_cv_path_install
8727 else
b4e70030
JB
8728 # As a last resort, use the slow shell script. We don't cache a
8729 # path for INSTALL within a source directory, because that will
bec39cab 8730 # break other packages using the cache if that directory is
b4e70030 8731 # removed, or if the path is relative.
bec39cab
AC
8732 INSTALL=$ac_install_sh
8733 fi
8734fi
b4e70030
JB
8735echo "$as_me:$LINENO: result: $INSTALL" >&5
8736echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
8737
8738# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8739# It thinks the first close brace ends the variable substitution.
8740test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8741
8742test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8743
8744test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8745
b4e70030
JB
8746echo "$as_me:$LINENO: checking whether ln -s works" >&5
8747echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
8748LN_S=$as_ln_s
8749if test "$LN_S" = "ln -s"; then
b4e70030
JB
8750 echo "$as_me:$LINENO: result: yes" >&5
8751echo "${ECHO_T}yes" >&6
bec39cab 8752else
b4e70030
JB
8753 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8754echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
8755fi
8756
8757if test -n "$ac_tool_prefix"; then
8758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8759set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
8760echo "$as_me:$LINENO: checking for $ac_word" >&5
8761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8762if test "${ac_cv_prog_RANLIB+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764else
8765 if test -n "$RANLIB"; then
8766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8767else
8768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769for as_dir in $PATH
8770do
8771 IFS=$as_save_IFS
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8777 break 2
8778 fi
8779done
8780done
8781
8782fi
8783fi
8784RANLIB=$ac_cv_prog_RANLIB
8785if test -n "$RANLIB"; then
b4e70030
JB
8786 echo "$as_me:$LINENO: result: $RANLIB" >&5
8787echo "${ECHO_T}$RANLIB" >&6
bec39cab 8788else
b4e70030
JB
8789 echo "$as_me:$LINENO: result: no" >&5
8790echo "${ECHO_T}no" >&6
bec39cab
AC
8791fi
8792
8793fi
8794if test -z "$ac_cv_prog_RANLIB"; then
8795 ac_ct_RANLIB=$RANLIB
8796 # Extract the first word of "ranlib", so it can be a program name with args.
8797set dummy ranlib; ac_word=$2
b4e70030
JB
8798echo "$as_me:$LINENO: checking for $ac_word" >&5
8799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8800if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802else
8803 if test -n "$ac_ct_RANLIB"; then
8804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8805else
8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8813 ac_cv_prog_ac_ct_RANLIB="ranlib"
8814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8816 fi
8817done
8818done
8819
b4e70030 8820 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
8821fi
8822fi
8823ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8824if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
8825 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8826echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 8827else
b4e70030
JB
8828 echo "$as_me:$LINENO: result: no" >&5
8829echo "${ECHO_T}no" >&6
bec39cab
AC
8830fi
8831
b4e70030 8832 RANLIB=$ac_ct_RANLIB
bec39cab
AC
8833else
8834 RANLIB="$ac_cv_prog_RANLIB"
8835fi
8836
8837for ac_prog in 'bison -y' byacc
8838do
8839 # Extract the first word of "$ac_prog", so it can be a program name with args.
8840set dummy $ac_prog; ac_word=$2
b4e70030
JB
8841echo "$as_me:$LINENO: checking for $ac_word" >&5
8842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8843if test "${ac_cv_prog_YACC+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845else
8846 if test -n "$YACC"; then
8847 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8848else
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8856 ac_cv_prog_YACC="$ac_prog"
8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860done
8861done
8862
8863fi
8864fi
8865YACC=$ac_cv_prog_YACC
8866if test -n "$YACC"; then
b4e70030
JB
8867 echo "$as_me:$LINENO: result: $YACC" >&5
8868echo "${ECHO_T}$YACC" >&6
bec39cab 8869else
b4e70030
JB
8870 echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6
bec39cab
AC
8872fi
8873
8874 test -n "$YACC" && break
8875done
8876test -n "$YACC" || YACC="yacc"
8877
8878
8879if test -n "$ac_tool_prefix"; then
8880 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8881set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
8882echo "$as_me:$LINENO: checking for $ac_word" >&5
8883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8884if test "${ac_cv_prog_AR+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886else
8887 if test -n "$AR"; then
8888 ac_cv_prog_AR="$AR" # Let the user override the test.
8889else
8890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891for as_dir in $PATH
8892do
8893 IFS=$as_save_IFS
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8897 ac_cv_prog_AR="${ac_tool_prefix}ar"
8898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8899 break 2
8900 fi
8901done
8902done
8903
8904fi
8905fi
8906AR=$ac_cv_prog_AR
8907if test -n "$AR"; then
b4e70030
JB
8908 echo "$as_me:$LINENO: result: $AR" >&5
8909echo "${ECHO_T}$AR" >&6
bec39cab 8910else
b4e70030
JB
8911 echo "$as_me:$LINENO: result: no" >&5
8912echo "${ECHO_T}no" >&6
bec39cab
AC
8913fi
8914
8915fi
8916if test -z "$ac_cv_prog_AR"; then
8917 ac_ct_AR=$AR
8918 # Extract the first word of "ar", so it can be a program name with args.
8919set dummy ar; ac_word=$2
b4e70030
JB
8920echo "$as_me:$LINENO: checking for $ac_word" >&5
8921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8922if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924else
8925 if test -n "$ac_ct_AR"; then
8926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8927else
8928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $PATH
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8935 ac_cv_prog_ac_ct_AR="ar"
8936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939done
8940done
8941
8942fi
8943fi
8944ac_ct_AR=$ac_cv_prog_ac_ct_AR
8945if test -n "$ac_ct_AR"; then
b4e70030
JB
8946 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8947echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 8948else
b4e70030
JB
8949 echo "$as_me:$LINENO: result: no" >&5
8950echo "${ECHO_T}no" >&6
bec39cab
AC
8951fi
8952
b4e70030 8953 AR=$ac_ct_AR
bec39cab
AC
8954else
8955 AR="$ac_cv_prog_AR"
8956fi
8957
8958if test -n "$ac_tool_prefix"; then
8959 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8960set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
8961echo "$as_me:$LINENO: checking for $ac_word" >&5
8962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8963if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966 if test -n "$DLLTOOL"; then
8967 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8968else
8969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970for as_dir in $PATH
8971do
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8976 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 break 2
8979 fi
8980done
8981done
8982
8983fi
8984fi
8985DLLTOOL=$ac_cv_prog_DLLTOOL
8986if test -n "$DLLTOOL"; then
b4e70030
JB
8987 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8988echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 8989else
b4e70030
JB
8990 echo "$as_me:$LINENO: result: no" >&5
8991echo "${ECHO_T}no" >&6
bec39cab
AC
8992fi
8993
8994fi
8995if test -z "$ac_cv_prog_DLLTOOL"; then
8996 ac_ct_DLLTOOL=$DLLTOOL
8997 # Extract the first word of "dlltool", so it can be a program name with args.
8998set dummy dlltool; ac_word=$2
b4e70030
JB
8999echo "$as_me:$LINENO: checking for $ac_word" >&5
9000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9001if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004 if test -n "$ac_ct_DLLTOOL"; then
9005 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9006else
9007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008for as_dir in $PATH
9009do
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9014 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018done
9019done
9020
9021fi
9022fi
9023ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9024if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
9025 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9026echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 9027else
b4e70030
JB
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
bec39cab
AC
9030fi
9031
b4e70030 9032 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
9033else
9034 DLLTOOL="$ac_cv_prog_DLLTOOL"
9035fi
9036
9037if test -n "$ac_tool_prefix"; then
9038 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9039set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
9040echo "$as_me:$LINENO: checking for $ac_word" >&5
9041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9042if test "${ac_cv_prog_WINDRES+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045 if test -n "$WINDRES"; then
9046 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9047else
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9055 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059done
9060done
9061
9062fi
9063fi
9064WINDRES=$ac_cv_prog_WINDRES
9065if test -n "$WINDRES"; then
b4e70030
JB
9066 echo "$as_me:$LINENO: result: $WINDRES" >&5
9067echo "${ECHO_T}$WINDRES" >&6
bec39cab 9068else
b4e70030
JB
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
bec39cab
AC
9071fi
9072
9073fi
9074if test -z "$ac_cv_prog_WINDRES"; then
9075 ac_ct_WINDRES=$WINDRES
9076 # Extract the first word of "windres", so it can be a program name with args.
9077set dummy windres; ac_word=$2
b4e70030
JB
9078echo "$as_me:$LINENO: checking for $ac_word" >&5
9079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9080if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082else
9083 if test -n "$ac_ct_WINDRES"; then
9084 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9093 ac_cv_prog_ac_ct_WINDRES="windres"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097done
9098done
9099
9100fi
9101fi
9102ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9103if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
9104 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9105echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 9106else
b4e70030
JB
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
c906108c 9109fi
bec39cab 9110
b4e70030 9111 WINDRES=$ac_ct_WINDRES
c906108c 9112else
bec39cab 9113 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
9114fi
9115
bec39cab
AC
9116
9117# Needed for GNU/Hurd.
9118if test -n "$ac_tool_prefix"; then
9119 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9120set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
9121echo "$as_me:$LINENO: checking for $ac_word" >&5
9122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9123if test "${ac_cv_prog_MIG+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 9125else
bec39cab
AC
9126 if test -n "$MIG"; then
9127 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9128else
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9136 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140done
9141done
9142
c906108c 9143fi
bec39cab
AC
9144fi
9145MIG=$ac_cv_prog_MIG
9146if test -n "$MIG"; then
b4e70030
JB
9147 echo "$as_me:$LINENO: result: $MIG" >&5
9148echo "${ECHO_T}$MIG" >&6
c906108c 9149else
b4e70030
JB
9150 echo "$as_me:$LINENO: result: no" >&5
9151echo "${ECHO_T}no" >&6
c906108c
SS
9152fi
9153
bec39cab
AC
9154fi
9155if test -z "$ac_cv_prog_MIG"; then
9156 ac_ct_MIG=$MIG
9157 # Extract the first word of "mig", so it can be a program name with args.
9158set dummy mig; ac_word=$2
b4e70030
JB
9159echo "$as_me:$LINENO: checking for $ac_word" >&5
9160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9161if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163else
9164 if test -n "$ac_ct_MIG"; then
9165 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9166else
9167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168for as_dir in $PATH
9169do
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9174 ac_cv_prog_ac_ct_MIG="mig"
9175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9177 fi
9178done
9179done
c906108c 9180
bec39cab
AC
9181fi
9182fi
9183ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9184if test -n "$ac_ct_MIG"; then
b4e70030
JB
9185 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9186echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 9187else
b4e70030
JB
9188 echo "$as_me:$LINENO: result: no" >&5
9189echo "${ECHO_T}no" >&6
bec39cab 9190fi
c906108c 9191
b4e70030 9192 MIG=$ac_ct_MIG
bec39cab
AC
9193else
9194 MIG="$ac_cv_prog_MIG"
9195fi
c906108c 9196
c906108c 9197
bec39cab
AC
9198# ---------------------- #
9199# Checks for libraries. #
9200# ---------------------- #
c906108c 9201
bec39cab 9202# We might need to link with -lm; most simulators need it.
c906108c 9203
b4e70030
JB
9204echo "$as_me:$LINENO: checking for main in -lm" >&5
9205echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
9206if test "${ac_cv_lib_m_main+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209 ac_check_lib_save_LIBS=$LIBS
9210LIBS="-lm $LIBS"
9211cat >conftest.$ac_ext <<_ACEOF
9212/* confdefs.h. */
9213_ACEOF
9214cat confdefs.h >>conftest.$ac_ext
9215cat >>conftest.$ac_ext <<_ACEOF
9216/* end confdefs.h. */
c906108c 9217
c906108c 9218
bec39cab
AC
9219int
9220main ()
9221{
b4e70030 9222main ();
bec39cab
AC
9223 ;
9224 return 0;
9225}
9226_ACEOF
9227rm -f conftest.$ac_objext conftest$ac_exeext
9228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229 (eval $ac_link) 2>conftest.er1
9230 ac_status=$?
9231 grep -v '^ *+' conftest.er1 >conftest.err
9232 rm -f conftest.er1
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
b4e70030
JB
9236 { ac_try='test -z "$ac_c_werror_flag"
9237 || test ! -s conftest.err'
bec39cab
AC
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest$ac_exeext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_cv_lib_m_main=yes
9250else
9251 echo "$as_me: failed program was:" >&5
9252sed 's/^/| /' conftest.$ac_ext >&5
9253
b4e70030 9254ac_cv_lib_m_main=no
bec39cab
AC
9255fi
9256rm -f conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258LIBS=$ac_check_lib_save_LIBS
9259fi
b4e70030
JB
9260echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9261echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
9262if test $ac_cv_lib_m_main = yes; then
9263 cat >>confdefs.h <<_ACEOF
9264#define HAVE_LIBM 1
9265_ACEOF
9266
9267 LIBS="-lm $LIBS"
c906108c 9268
c906108c 9269fi
bec39cab
AC
9270
9271
9272# We need to link with -lw to get `wctype' on Solaris before Solaris
9273# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9274# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9275# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
9276echo "$as_me:$LINENO: checking for wctype" >&5
9277echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
9278if test "${ac_cv_func_wctype+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280else
9281 cat >conftest.$ac_ext <<_ACEOF
9282/* confdefs.h. */
9283_ACEOF
9284cat confdefs.h >>conftest.$ac_ext
9285cat >>conftest.$ac_ext <<_ACEOF
9286/* end confdefs.h. */
9287/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9289#define wctype innocuous_wctype
9290
9291/* System header to define __stub macros and hopefully few prototypes,
9292 which can conflict with char wctype (); below.
9293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9294 <limits.h> exists even on freestanding compilers. */
9295
9296#ifdef __STDC__
9297# include <limits.h>
9298#else
9299# include <assert.h>
9300#endif
9301
9302#undef wctype
9303
b4e70030 9304/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9305#ifdef __cplusplus
9306extern "C"
b4e70030 9307{
bec39cab 9308#endif
b4e70030
JB
9309/* We use char because int might match the return type of a gcc2
9310 builtin and then its argument prototype would still apply. */
bec39cab
AC
9311char wctype ();
9312/* The GNU C library defines this for functions which it implements
9313 to always fail with ENOSYS. Some functions are actually named
9314 something starting with __ and the normal name is an alias. */
b4e70030 9315#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 9316choke me
b4e70030
JB
9317#else
9318char (*f) () = wctype;
9319#endif
9320#ifdef __cplusplus
9321}
bec39cab
AC
9322#endif
9323
9324int
9325main ()
9326{
b4e70030 9327return f != wctype;
bec39cab
AC
9328 ;
9329 return 0;
9330}
9331_ACEOF
9332rm -f conftest.$ac_objext conftest$ac_exeext
9333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334 (eval $ac_link) 2>conftest.er1
9335 ac_status=$?
9336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
b4e70030
JB
9341 { ac_try='test -z "$ac_c_werror_flag"
9342 || test ! -s conftest.err'
bec39cab
AC
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } &&
9348 { ac_try='test -s conftest$ac_exeext'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_func_wctype=yes
9355else
9356 echo "$as_me: failed program was:" >&5
9357sed 's/^/| /' conftest.$ac_ext >&5
9358
b4e70030 9359ac_cv_func_wctype=no
bec39cab
AC
9360fi
9361rm -f conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9363fi
b4e70030
JB
9364echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9365echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
9366if test $ac_cv_func_wctype = yes; then
9367 :
c906108c 9368else
c906108c 9369
b4e70030
JB
9370echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9371echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
9372if test "${ac_cv_lib_w_wctype+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374else
9375 ac_check_lib_save_LIBS=$LIBS
9376LIBS="-lw $LIBS"
9377cat >conftest.$ac_ext <<_ACEOF
9378/* confdefs.h. */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h. */
c906108c 9383
b4e70030 9384/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9385#ifdef __cplusplus
9386extern "C"
9387#endif
b4e70030
JB
9388/* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
bec39cab
AC
9390char wctype ();
9391int
9392main ()
9393{
b4e70030 9394wctype ();
bec39cab
AC
9395 ;
9396 return 0;
9397}
9398_ACEOF
9399rm -f conftest.$ac_objext conftest$ac_exeext
9400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401 (eval $ac_link) 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
b4e70030
JB
9408 { ac_try='test -z "$ac_c_werror_flag"
9409 || test ! -s conftest.err'
bec39cab
AC
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 (eval $ac_try) 2>&5
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; } &&
9415 { ac_try='test -s conftest$ac_exeext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9421 ac_cv_lib_w_wctype=yes
9422else
9423 echo "$as_me: failed program was:" >&5
9424sed 's/^/| /' conftest.$ac_ext >&5
9425
b4e70030 9426ac_cv_lib_w_wctype=no
bec39cab
AC
9427fi
9428rm -f conftest.err conftest.$ac_objext \
9429 conftest$ac_exeext conftest.$ac_ext
9430LIBS=$ac_check_lib_save_LIBS
9431fi
b4e70030
JB
9432echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9433echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
9434if test $ac_cv_lib_w_wctype = yes; then
9435 cat >>confdefs.h <<_ACEOF
9436#define HAVE_LIBW 1
9437_ACEOF
c906108c 9438
bec39cab 9439 LIBS="-lw $LIBS"
c906108c 9440
bec39cab 9441fi
c906108c 9442
bec39cab 9443fi
c906108c 9444
ddc9cd0f 9445
bec39cab 9446# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
9447echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9448echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
9449if test "${ac_cv_search_gethostbyname+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451else
9452 ac_func_search_save_LIBS=$LIBS
b4e70030 9453ac_cv_search_gethostbyname=no
bec39cab
AC
9454cat >conftest.$ac_ext <<_ACEOF
9455/* confdefs.h. */
9456_ACEOF
9457cat confdefs.h >>conftest.$ac_ext
9458cat >>conftest.$ac_ext <<_ACEOF
9459/* end confdefs.h. */
ddc9cd0f 9460
b4e70030 9461/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9462#ifdef __cplusplus
9463extern "C"
9464#endif
b4e70030
JB
9465/* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
bec39cab
AC
9467char gethostbyname ();
9468int
9469main ()
9470{
b4e70030 9471gethostbyname ();
bec39cab
AC
9472 ;
9473 return 0;
9474}
9475_ACEOF
b4e70030 9476rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
b4e70030
JB
9485 { ac_try='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
bec39cab
AC
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try='test -s conftest$ac_exeext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
b4e70030 9498 ac_cv_search_gethostbyname="none required"
bec39cab
AC
9499else
9500 echo "$as_me: failed program was:" >&5
9501sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 9502
bec39cab
AC
9503fi
9504rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9505 conftest$ac_exeext conftest.$ac_ext
9506if test "$ac_cv_search_gethostbyname" = no; then
9507 for ac_lib in nsl; do
9508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9509 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
ddc9cd0f 9515
b4e70030 9516/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9517#ifdef __cplusplus
9518extern "C"
9519#endif
b4e70030
JB
9520/* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9522char gethostbyname ();
bec39cab
AC
9523int
9524main ()
9525{
b4e70030 9526gethostbyname ();
bec39cab
AC
9527 ;
9528 return 0;
9529}
9530_ACEOF
b4e70030 9531rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9533 (eval $ac_link) 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
b4e70030
JB
9540 { ac_try='test -z "$ac_c_werror_flag"
9541 || test ! -s conftest.err'
bec39cab
AC
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 (eval $ac_try) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; } &&
9547 { ac_try='test -s conftest$ac_exeext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
b4e70030
JB
9553 ac_cv_search_gethostbyname="-l$ac_lib"
9554break
bec39cab
AC
9555else
9556 echo "$as_me: failed program was:" >&5
9557sed 's/^/| /' conftest.$ac_ext >&5
9558
9559fi
9560rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9561 conftest$ac_exeext conftest.$ac_ext
9562 done
bec39cab
AC
9563fi
9564LIBS=$ac_func_search_save_LIBS
9565fi
b4e70030
JB
9566echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9567echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9568if test "$ac_cv_search_gethostbyname" != no; then
9569 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 9570
bec39cab 9571fi
96baa820 9572
c906108c 9573
b4e70030
JB
9574# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9575echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9576echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9577if test "${ac_cv_search_socketpair+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580 ac_func_search_save_LIBS=$LIBS
9581ac_cv_search_socketpair=no
9582cat >conftest.$ac_ext <<_ACEOF
9583/* confdefs.h. */
9584_ACEOF
9585cat confdefs.h >>conftest.$ac_ext
9586cat >>conftest.$ac_ext <<_ACEOF
9587/* end confdefs.h. */
9588
9589/* Override any gcc2 internal prototype to avoid an error. */
9590#ifdef __cplusplus
9591extern "C"
9592#endif
9593/* We use char because int might match the return type of a gcc2
9594 builtin and then its argument prototype would still apply. */
9595char socketpair ();
9596int
9597main ()
9598{
9599socketpair ();
9600 ;
9601 return 0;
9602}
9603_ACEOF
9604rm -f conftest.$ac_objext conftest$ac_exeext
9605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>conftest.er1
9607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_cv_search_socketpair="none required"
9627else
9628 echo "$as_me: failed program was:" >&5
9629sed 's/^/| /' conftest.$ac_ext >&5
9630
9631fi
9632rm -f conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634if test "$ac_cv_search_socketpair" = no; then
9635 for ac_lib in socket; do
9636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9637 cat >conftest.$ac_ext <<_ACEOF
9638/* confdefs.h. */
9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h. */
9643
9644/* Override any gcc2 internal prototype to avoid an error. */
9645#ifdef __cplusplus
9646extern "C"
9647#endif
9648/* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9650char socketpair ();
9651int
9652main ()
9653{
9654socketpair ();
9655 ;
9656 return 0;
9657}
9658_ACEOF
9659rm -f conftest.$ac_objext conftest$ac_exeext
9660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try='test -s conftest$ac_exeext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_search_socketpair="-l$ac_lib"
9682break
9683else
9684 echo "$as_me: failed program was:" >&5
9685sed 's/^/| /' conftest.$ac_ext >&5
9686
9687fi
9688rm -f conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 done
9691fi
9692LIBS=$ac_func_search_save_LIBS
9693fi
9694echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9695echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9696if test "$ac_cv_search_socketpair" != no; then
9697 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9698
9699fi
9700
9701
233a11ab
CS
9702# Link in zlib if we can. This allows us to read compressed debug sections.
9703echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9704echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9705if test "${ac_cv_search_zlibVersion+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707else
9708 ac_func_search_save_LIBS=$LIBS
9709ac_cv_search_zlibVersion=no
9710cat >conftest.$ac_ext <<_ACEOF
9711/* confdefs.h. */
9712_ACEOF
9713cat confdefs.h >>conftest.$ac_ext
9714cat >>conftest.$ac_ext <<_ACEOF
9715/* end confdefs.h. */
9716
9717/* Override any gcc2 internal prototype to avoid an error. */
9718#ifdef __cplusplus
9719extern "C"
9720#endif
9721/* We use char because int might match the return type of a gcc2
9722 builtin and then its argument prototype would still apply. */
9723char zlibVersion ();
9724int
9725main ()
9726{
9727zlibVersion ();
9728 ;
9729 return 0;
9730}
9731_ACEOF
9732rm -f conftest.$ac_objext conftest$ac_exeext
9733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_search_zlibVersion="none required"
9755else
9756 echo "$as_me: failed program was:" >&5
9757sed 's/^/| /' conftest.$ac_ext >&5
9758
9759fi
9760rm -f conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762if test "$ac_cv_search_zlibVersion" = no; then
9763 for ac_lib in z; do
9764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9765 cat >conftest.$ac_ext <<_ACEOF
9766/* confdefs.h. */
9767_ACEOF
9768cat confdefs.h >>conftest.$ac_ext
9769cat >>conftest.$ac_ext <<_ACEOF
9770/* end confdefs.h. */
9771
9772/* Override any gcc2 internal prototype to avoid an error. */
9773#ifdef __cplusplus
9774extern "C"
9775#endif
9776/* We use char because int might match the return type of a gcc2
9777 builtin and then its argument prototype would still apply. */
9778char zlibVersion ();
9779int
9780main ()
9781{
9782zlibVersion ();
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext conftest$ac_exeext
9788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_search_zlibVersion="-l$ac_lib"
9810break
9811else
9812 echo "$as_me: failed program was:" >&5
9813sed 's/^/| /' conftest.$ac_ext >&5
9814
9815fi
9816rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 done
9819fi
9820LIBS=$ac_func_search_save_LIBS
9821fi
9822echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9823echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9824if test "$ac_cv_search_zlibVersion" != no; then
9825 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9826
9827for ac_header in zlib.h
9828do
9829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9830if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831 echo "$as_me:$LINENO: checking for $ac_header" >&5
9832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9833if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835fi
9836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9838else
9839 # Is the header compilable?
9840echo "$as_me:$LINENO: checking $ac_header usability" >&5
9841echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9842cat >conftest.$ac_ext <<_ACEOF
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
9847/* end confdefs.h. */
9848$ac_includes_default
9849#include <$ac_header>
9850_ACEOF
9851rm -f conftest.$ac_objext
9852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_header_compiler=yes
9874else
9875 echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
9877
9878ac_header_compiler=no
9879fi
9880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9882echo "${ECHO_T}$ac_header_compiler" >&6
9883
9884# Is the header present?
9885echo "$as_me:$LINENO: checking $ac_header presence" >&5
9886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9887cat >conftest.$ac_ext <<_ACEOF
9888/* confdefs.h. */
9889_ACEOF
9890cat confdefs.h >>conftest.$ac_ext
9891cat >>conftest.$ac_ext <<_ACEOF
9892/* end confdefs.h. */
9893#include <$ac_header>
9894_ACEOF
9895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } >/dev/null; then
9903 if test -s conftest.err; then
9904 ac_cpp_err=$ac_c_preproc_warn_flag
9905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9906 else
9907 ac_cpp_err=
9908 fi
9909else
9910 ac_cpp_err=yes
9911fi
9912if test -z "$ac_cpp_err"; then
9913 ac_header_preproc=yes
9914else
9915 echo "$as_me: failed program was:" >&5
9916sed 's/^/| /' conftest.$ac_ext >&5
9917
9918 ac_header_preproc=no
9919fi
9920rm -f conftest.err conftest.$ac_ext
9921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9922echo "${ECHO_T}$ac_header_preproc" >&6
9923
9924# So? What about this header?
9925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9926 yes:no: )
9927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9930echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9931 ac_header_preproc=yes
9932 ;;
9933 no:yes:* )
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9939echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9941echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9943echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9945echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9946 (
9947 cat <<\_ASBOX
9948## ------------------------------------------ ##
9949## Report this to the AC_PACKAGE_NAME lists. ##
9950## ------------------------------------------ ##
9951_ASBOX
9952 ) |
9953 sed "s/^/$as_me: WARNING: /" >&2
9954 ;;
9955esac
9956echo "$as_me:$LINENO: checking for $ac_header" >&5
9957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9958if eval "test \"\${$as_ac_Header+set}\" = set"; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960else
9961 eval "$as_ac_Header=\$ac_header_preproc"
9962fi
9963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9965
9966fi
9967if test `eval echo '${'$as_ac_Header'}'` = yes; then
9968 cat >>confdefs.h <<_ACEOF
9969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9970_ACEOF
9971
9972fi
9973
9974done
9975
9976fi
9977
9978
b4e70030 9979# For the TUI, we need enhanced curses functionality.
bec39cab
AC
9980#
9981# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9982# curses library because the latter might not provide all the
9983# functionality we need. However, this leads to problems on systems
9984# where the linker searches /usr/local/lib, but the compiler doesn't
9985# search /usr/local/include, if ncurses is installed in /usr/local. A
9986# default installation of ncurses on alpha*-dec-osf* will lead to such
9987# a situation.
b4e70030
JB
9988echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9989echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
9990if test "${ac_cv_search_waddstr+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992else
9993 ac_func_search_save_LIBS=$LIBS
b4e70030 9994ac_cv_search_waddstr=no
bec39cab
AC
9995cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h. */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h. */
c906108c 10001
b4e70030 10002/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10003#ifdef __cplusplus
10004extern "C"
10005#endif
b4e70030
JB
10006/* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
bec39cab
AC
10008char waddstr ();
10009int
10010main ()
10011{
b4e70030 10012waddstr ();
bec39cab
AC
10013 ;
10014 return 0;
10015}
10016_ACEOF
b4e70030 10017rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
b4e70030
JB
10026 { ac_try='test -z "$ac_c_werror_flag"
10027 || test ! -s conftest.err'
bec39cab
AC
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
b4e70030 10039 ac_cv_search_waddstr="none required"
bec39cab
AC
10040else
10041 echo "$as_me: failed program was:" >&5
10042sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
10043
10044fi
bec39cab 10045rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10046 conftest$ac_exeext conftest.$ac_ext
10047if test "$ac_cv_search_waddstr" = no; then
10048 for ac_lib in ncurses cursesX curses; do
10049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10050 cat >conftest.$ac_ext <<_ACEOF
10051/* confdefs.h. */
10052_ACEOF
10053cat confdefs.h >>conftest.$ac_ext
10054cat >>conftest.$ac_ext <<_ACEOF
10055/* end confdefs.h. */
10056
10057/* Override any gcc2 internal prototype to avoid an error. */
10058#ifdef __cplusplus
10059extern "C"
10060#endif
10061/* We use char because int might match the return type of a gcc2
10062 builtin and then its argument prototype would still apply. */
10063char waddstr ();
10064int
10065main ()
10066{
10067waddstr ();
10068 ;
10069 return 0;
10070}
10071_ACEOF
10072rm -f conftest.$ac_objext conftest$ac_exeext
10073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074 (eval $ac_link) 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag"
10082 || test ! -s conftest.err'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try='test -s conftest$ac_exeext'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }; then
10094 ac_cv_search_waddstr="-l$ac_lib"
10095break
4e8d927d 10096else
b4e70030
JB
10097 echo "$as_me: failed program was:" >&5
10098sed 's/^/| /' conftest.$ac_ext >&5
10099
10100fi
10101rm -f conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103 done
1ba607ad 10104fi
bec39cab
AC
10105LIBS=$ac_func_search_save_LIBS
10106fi
b4e70030
JB
10107echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10108echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10109if test "$ac_cv_search_waddstr" != no; then
10110 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 10111
8bb2c122 10112fi
8bb2c122 10113
8bb2c122 10114
d542061a
UW
10115# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10116echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10117echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10118if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120else
10121 ac_func_search_save_LIBS=$LIBS
10122ac_cv_search_dlgetmodinfo=no
10123cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h. */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h. */
10129
10130/* Override any gcc2 internal prototype to avoid an error. */
10131#ifdef __cplusplus
10132extern "C"
10133#endif
10134/* We use char because int might match the return type of a gcc2
10135 builtin and then its argument prototype would still apply. */
10136char dlgetmodinfo ();
10137int
10138main ()
10139{
10140dlgetmodinfo ();
10141 ;
10142 return 0;
10143}
10144_ACEOF
10145rm -f conftest.$ac_objext conftest$ac_exeext
10146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_search_dlgetmodinfo="none required"
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172fi
10173rm -f conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175if test "$ac_cv_search_dlgetmodinfo" = no; then
10176 for ac_lib in dl xpdl; do
10177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10178 cat >conftest.$ac_ext <<_ACEOF
10179/* confdefs.h. */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h. */
10184
10185/* Override any gcc2 internal prototype to avoid an error. */
10186#ifdef __cplusplus
10187extern "C"
10188#endif
10189/* We use char because int might match the return type of a gcc2
10190 builtin and then its argument prototype would still apply. */
10191char dlgetmodinfo ();
10192int
10193main ()
10194{
10195dlgetmodinfo ();
10196 ;
10197 return 0;
10198}
10199_ACEOF
10200rm -f conftest.$ac_objext conftest$ac_exeext
10201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest$ac_exeext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10223break
10224else
10225 echo "$as_me: failed program was:" >&5
10226sed 's/^/| /' conftest.$ac_ext >&5
10227
10228fi
10229rm -f conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 done
10232fi
10233LIBS=$ac_func_search_save_LIBS
10234fi
10235echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10236echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10237if test "$ac_cv_search_dlgetmodinfo" != no; then
10238 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10239
10240fi
10241
10242
bec39cab
AC
10243# Since GDB uses Readline, we need termcap functionality. In many
10244# cases this will be provided by the curses library, but some systems
10245# have a seperate termcap library, or no curses library at all.
8bb2c122 10246
bec39cab
AC
10247case $host_os in
10248 cygwin*)
10249 if test -d $srcdir/libtermcap; then
10250 LIBS="../libtermcap/libtermcap.a $LIBS"
10251 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10252 fi ;;
10253 go32* | *djgpp*)
10254 ac_cv_search_tgetent="none required"
10255 ;;
7ef34f2c
MM
10256 *mingw32*)
10257 ac_cv_search_tgetent="none required"
10258 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10259 ;;
bec39cab 10260esac
627af7ea 10261
bec39cab 10262# These are the libraries checked by Readline.
b4e70030
JB
10263echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10264echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
10265if test "${ac_cv_search_tgetent+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
10268 ac_func_search_save_LIBS=$LIBS
b4e70030 10269ac_cv_search_tgetent=no
bec39cab
AC
10270cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h. */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h. */
10276
b4e70030 10277/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10278#ifdef __cplusplus
10279extern "C"
10280#endif
b4e70030
JB
10281/* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
bec39cab
AC
10283char tgetent ();
10284int
10285main ()
10286{
b4e70030 10287tgetent ();
bec39cab
AC
10288 ;
10289 return 0;
10290}
10291_ACEOF
b4e70030 10292rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
b4e70030
JB
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
bec39cab
AC
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
b4e70030 10314 ac_cv_search_tgetent="none required"
627af7ea 10315else
bec39cab
AC
10316 echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 10318
627af7ea 10319fi
bec39cab 10320rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10321 conftest$ac_exeext conftest.$ac_ext
10322if test "$ac_cv_search_tgetent" = no; then
10323 for ac_lib in termcap tinfo curses ncurses; do
10324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10325 cat >conftest.$ac_ext <<_ACEOF
10326/* confdefs.h. */
10327_ACEOF
10328cat confdefs.h >>conftest.$ac_ext
10329cat >>conftest.$ac_ext <<_ACEOF
10330/* end confdefs.h. */
10331
10332/* Override any gcc2 internal prototype to avoid an error. */
10333#ifdef __cplusplus
10334extern "C"
10335#endif
10336/* We use char because int might match the return type of a gcc2
10337 builtin and then its argument prototype would still apply. */
10338char tgetent ();
10339int
10340main ()
10341{
10342tgetent ();
10343 ;
10344 return 0;
10345}
10346_ACEOF
10347rm -f conftest.$ac_objext conftest$ac_exeext
10348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>conftest.er1
10350 ac_status=$?
10351 grep -v '^ *+' conftest.er1 >conftest.err
10352 rm -f conftest.er1
10353 cat conftest.err >&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } &&
10356 { ac_try='test -z "$ac_c_werror_flag"
10357 || test ! -s conftest.err'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest$ac_exeext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_search_tgetent="-l$ac_lib"
10370break
4e8d927d 10371else
b4e70030
JB
10372 echo "$as_me: failed program was:" >&5
10373sed 's/^/| /' conftest.$ac_ext >&5
10374
10375fi
10376rm -f conftest.err conftest.$ac_objext \
10377 conftest$ac_exeext conftest.$ac_ext
10378 done
bec39cab
AC
10379fi
10380LIBS=$ac_func_search_save_LIBS
10381fi
b4e70030
JB
10382echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10383echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10384if test "$ac_cv_search_tgetent" != no; then
10385 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 10386
06825bd1
MK
10387fi
10388
06825bd1 10389
bec39cab
AC
10390if test "$ac_cv_search_tgetent" = no; then
10391 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10392echo "$as_me: error: no termcap library found" >&2;}
10393 { (exit 1); exit 1; }; }
8ee53726
MK
10394fi
10395
3841debe 10396
6a30b0a5
AS
10397# Check whether --with-system-readline or --without-system-readline was given.
10398if test "${with_system_readline+set}" = set; then
10399 withval="$with_system_readline"
10400
10401fi;
10402
10403if test "$with_system_readline" = yes; then
10404 READLINE=-lreadline
10405 READLINE_DEPS=
10406 READLINE_CFLAGS=
10407else
10408 READLINE='$(READLINE_DIR)/libreadline.a'
10409 READLINE_DEPS='$(READLINE)'
10410 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10411fi
10412
10413
10414
10415
10416
5c39566f
DJ
10417# Check whether --with-expat or --without-expat was given.
10418if test "${with_expat+set}" = set; then
10419 withval="$with_expat"
10420
10421else
10422 with_expat=auto
10423fi;
10424echo "$as_me:$LINENO: checking whether to use expat" >&5
10425echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10426echo "$as_me:$LINENO: result: $with_expat" >&5
10427echo "${ECHO_T}$with_expat" >&6
10428
10429if test "${with_expat}" = no; then
10430 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10431echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10432 HAVE_LIBEXPAT=no
10433else
10434
3841debe
DJ
10435 if test "X$prefix" = "XNONE"; then
10436 acl_final_prefix="$ac_default_prefix"
10437 else
10438 acl_final_prefix="$prefix"
10439 fi
10440 if test "X$exec_prefix" = "XNONE"; then
10441 acl_final_exec_prefix='${prefix}'
10442 else
10443 acl_final_exec_prefix="$exec_prefix"
10444 fi
10445 acl_save_prefix="$prefix"
10446 prefix="$acl_final_prefix"
10447 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10448 prefix="$acl_save_prefix"
10449
10450
10451# Check whether --with-gnu-ld or --without-gnu-ld was given.
10452if test "${with_gnu_ld+set}" = set; then
10453 withval="$with_gnu_ld"
10454 test "$withval" = no || with_gnu_ld=yes
10455else
10456 with_gnu_ld=no
10457fi;
10458# Prepare PATH_SEPARATOR.
10459# The user is always right.
10460if test "${PATH_SEPARATOR+set}" != set; then
10461 echo "#! /bin/sh" >conf$$.sh
10462 echo "exit 0" >>conf$$.sh
10463 chmod +x conf$$.sh
10464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10465 PATH_SEPARATOR=';'
10466 else
10467 PATH_SEPARATOR=:
10468 fi
10469 rm -f conf$$.sh
10470fi
10471ac_prog=ld
10472if test "$GCC" = yes; then
10473 # Check if gcc -print-prog-name=ld gives a path.
10474 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10475echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10476 case $host in
10477 *-*-mingw*)
10478 # gcc leaves a trailing carriage return which upsets mingw
10479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10480 *)
10481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10482 esac
10483 case $ac_prog in
10484 # Accept absolute paths.
10485 [\\/]* | [A-Za-z]:[\\/]*)
10486 re_direlt='/[^/][^/]*/\.\./'
10487 # Canonicalize the path of ld
10488 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10490 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10491 done
10492 test -z "$LD" && LD="$ac_prog"
10493 ;;
10494 "")
10495 # If it fails, then pretend we aren't using GCC.
10496 ac_prog=ld
10497 ;;
10498 *)
10499 # If it is relative, then search for the first ld in PATH.
10500 with_gnu_ld=unknown
10501 ;;
10502 esac
10503elif test "$with_gnu_ld" = yes; then
10504 echo "$as_me:$LINENO: checking for GNU ld" >&5
10505echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10506else
10507 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10508echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10509fi
10510if test "${acl_cv_path_LD+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512else
10513 if test -z "$LD"; then
10514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10515 for ac_dir in $PATH; do
10516 test -z "$ac_dir" && ac_dir=.
10517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10518 acl_cv_path_LD="$ac_dir/$ac_prog"
10519 # Check to see if the program is GNU ld. I'd rather use --version,
10520 # but apparently some GNU ld's only accept -v.
10521 # Break only if it was the GNU/non-GNU ld that we prefer.
10522 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10523 test "$with_gnu_ld" != no && break
10524 else
10525 test "$with_gnu_ld" != yes && break
10526 fi
10527 fi
10528 done
10529 IFS="$ac_save_ifs"
10530else
10531 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10532fi
10533fi
10534
10535LD="$acl_cv_path_LD"
10536if test -n "$LD"; then
10537 echo "$as_me:$LINENO: result: $LD" >&5
10538echo "${ECHO_T}$LD" >&6
10539else
10540 echo "$as_me:$LINENO: result: no" >&5
10541echo "${ECHO_T}no" >&6
10542fi
10543test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10544echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10545 { (exit 1); exit 1; }; }
10546echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10547echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10548if test "${acl_cv_prog_gnu_ld+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10550else
10551 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10552if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10553 acl_cv_prog_gnu_ld=yes
10554else
10555 acl_cv_prog_gnu_ld=no
10556fi
10557fi
10558echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10559echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10560with_gnu_ld=$acl_cv_prog_gnu_ld
10561
10562
10563
10564 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10565echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10566if test "${acl_cv_rpath+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568else
10569
10570 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10571 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10572 . ./conftest.sh
10573 rm -f ./conftest.sh
10574 acl_cv_rpath=done
10575
10576fi
10577echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10578echo "${ECHO_T}$acl_cv_rpath" >&6
10579 wl="$acl_cv_wl"
10580 libext="$acl_cv_libext"
10581 shlibext="$acl_cv_shlibext"
10582 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10583 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10584 hardcode_direct="$acl_cv_hardcode_direct"
10585 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10586 # Check whether --enable-rpath or --disable-rpath was given.
10587if test "${enable_rpath+set}" = set; then
10588 enableval="$enable_rpath"
10589 :
10590else
10591 enable_rpath=yes
10592fi;
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602 use_additional=yes
10603
10604 acl_save_prefix="$prefix"
10605 prefix="$acl_final_prefix"
10606 acl_save_exec_prefix="$exec_prefix"
10607 exec_prefix="$acl_final_exec_prefix"
10608
10609 eval additional_includedir=\"$includedir\"
10610 eval additional_libdir=\"$libdir\"
10611
10612 exec_prefix="$acl_save_exec_prefix"
10613 prefix="$acl_save_prefix"
10614
10615
10616# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10617if test "${with_libexpat_prefix+set}" = set; then
10618 withval="$with_libexpat_prefix"
10619
10620 if test "X$withval" = "Xno"; then
10621 use_additional=no
10622 else
10623 if test "X$withval" = "X"; then
10624
10625 acl_save_prefix="$prefix"
10626 prefix="$acl_final_prefix"
10627 acl_save_exec_prefix="$exec_prefix"
10628 exec_prefix="$acl_final_exec_prefix"
10629
10630 eval additional_includedir=\"$includedir\"
10631 eval additional_libdir=\"$libdir\"
10632
10633 exec_prefix="$acl_save_exec_prefix"
10634 prefix="$acl_save_prefix"
10635
10636 else
10637 additional_includedir="$withval/include"
10638 additional_libdir="$withval/lib"
10639 fi
10640 fi
10641
10642fi;
10643 LIBEXPAT=
10644 LTLIBEXPAT=
10645 INCEXPAT=
10646 rpathdirs=
10647 ltrpathdirs=
10648 names_already_handled=
10649 names_next_round='expat '
10650 while test -n "$names_next_round"; do
10651 names_this_round="$names_next_round"
10652 names_next_round=
10653 for name in $names_this_round; do
10654 already_handled=
10655 for n in $names_already_handled; do
10656 if test "$n" = "$name"; then
10657 already_handled=yes
10658 break
10659 fi
10660 done
10661 if test -z "$already_handled"; then
10662 names_already_handled="$names_already_handled $name"
10663 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10664 eval value=\"\$HAVE_LIB$uppername\"
10665 if test -n "$value"; then
10666 if test "$value" = yes; then
10667 eval value=\"\$LIB$uppername\"
10668 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10669 eval value=\"\$LTLIB$uppername\"
10670 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10671 else
10672 :
10673 fi
10674 else
10675 found_dir=
10676 found_la=
10677 found_so=
10678 found_a=
10679 if test $use_additional = yes; then
10680 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10681 found_dir="$additional_libdir"
10682 found_so="$additional_libdir/lib$name.$shlibext"
10683 if test -f "$additional_libdir/lib$name.la"; then
10684 found_la="$additional_libdir/lib$name.la"
10685 fi
10686 else
10687 if test -f "$additional_libdir/lib$name.$libext"; then
10688 found_dir="$additional_libdir"
10689 found_a="$additional_libdir/lib$name.$libext"
10690 if test -f "$additional_libdir/lib$name.la"; then
10691 found_la="$additional_libdir/lib$name.la"
10692 fi
10693 fi
10694 fi
10695 fi
10696 if test "X$found_dir" = "X"; then
10697 for x in $LDFLAGS $LTLIBEXPAT; do
10698
10699 acl_save_prefix="$prefix"
10700 prefix="$acl_final_prefix"
10701 acl_save_exec_prefix="$exec_prefix"
10702 exec_prefix="$acl_final_exec_prefix"
10703 eval x=\"$x\"
10704 exec_prefix="$acl_save_exec_prefix"
10705 prefix="$acl_save_prefix"
10706
10707 case "$x" in
10708 -L*)
10709 dir=`echo "X$x" | sed -e 's/^X-L//'`
10710 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10711 found_dir="$dir"
10712 found_so="$dir/lib$name.$shlibext"
10713 if test -f "$dir/lib$name.la"; then
10714 found_la="$dir/lib$name.la"
10715 fi
10716 else
10717 if test -f "$dir/lib$name.$libext"; then
10718 found_dir="$dir"
10719 found_a="$dir/lib$name.$libext"
10720 if test -f "$dir/lib$name.la"; then
10721 found_la="$dir/lib$name.la"
10722 fi
10723 fi
10724 fi
10725 ;;
10726 esac
10727 if test "X$found_dir" != "X"; then
10728 break
10729 fi
10730 done
10731 fi
10732 if test "X$found_dir" != "X"; then
10733 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10734 if test "X$found_so" != "X"; then
10735 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10736 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10737 else
10738 haveit=
10739 for x in $ltrpathdirs; do
10740 if test "X$x" = "X$found_dir"; then
10741 haveit=yes
10742 break
10743 fi
10744 done
10745 if test -z "$haveit"; then
10746 ltrpathdirs="$ltrpathdirs $found_dir"
10747 fi
10748 if test "$hardcode_direct" = yes; then
10749 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10750 else
10751 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10752 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10753 haveit=
10754 for x in $rpathdirs; do
10755 if test "X$x" = "X$found_dir"; then
10756 haveit=yes
10757 break
10758 fi
10759 done
10760 if test -z "$haveit"; then
10761 rpathdirs="$rpathdirs $found_dir"
10762 fi
10763 else
10764 haveit=
10765 for x in $LDFLAGS $LIBEXPAT; do
10766
10767 acl_save_prefix="$prefix"
10768 prefix="$acl_final_prefix"
10769 acl_save_exec_prefix="$exec_prefix"
10770 exec_prefix="$acl_final_exec_prefix"
10771 eval x=\"$x\"
10772 exec_prefix="$acl_save_exec_prefix"
10773 prefix="$acl_save_prefix"
10774
10775 if test "X$x" = "X-L$found_dir"; then
10776 haveit=yes
10777 break
10778 fi
10779 done
10780 if test -z "$haveit"; then
10781 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10782 fi
10783 if test "$hardcode_minus_L" != no; then
10784 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10785 else
10786 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10787 fi
10788 fi
10789 fi
10790 fi
10791 else
10792 if test "X$found_a" != "X"; then
10793 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10794 else
10795 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10796 fi
10797 fi
10798 additional_includedir=
10799 case "$found_dir" in
10800 */lib | */lib/)
10801 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10802 additional_includedir="$basedir/include"
10803 ;;
10804 esac
10805 if test "X$additional_includedir" != "X"; then
10806 if test "X$additional_includedir" != "X/usr/include"; then
10807 haveit=
10808 if test "X$additional_includedir" = "X/usr/local/include"; then
10809 if test -n "$GCC"; then
10810 case $host_os in
10811 linux*) haveit=yes;;
10812 esac
10813 fi
10814 fi
10815 if test -z "$haveit"; then
10816 for x in $CPPFLAGS $INCEXPAT; do
10817
10818 acl_save_prefix="$prefix"
10819 prefix="$acl_final_prefix"
10820 acl_save_exec_prefix="$exec_prefix"
10821 exec_prefix="$acl_final_exec_prefix"
10822 eval x=\"$x\"
10823 exec_prefix="$acl_save_exec_prefix"
10824 prefix="$acl_save_prefix"
10825
10826 if test "X$x" = "X-I$additional_includedir"; then
10827 haveit=yes
10828 break
10829 fi
10830 done
10831 if test -z "$haveit"; then
10832 if test -d "$additional_includedir"; then
10833 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10834 fi
10835 fi
10836 fi
10837 fi
10838 fi
10839 if test -n "$found_la"; then
10840 save_libdir="$libdir"
10841 case "$found_la" in
10842 */* | *\\*) . "$found_la" ;;
10843 *) . "./$found_la" ;;
10844 esac
10845 libdir="$save_libdir"
10846 for dep in $dependency_libs; do
10847 case "$dep" in
10848 -L*)
10849 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10850 if test "X$additional_libdir" != "X/usr/lib"; then
10851 haveit=
10852 if test "X$additional_libdir" = "X/usr/local/lib"; then
10853 if test -n "$GCC"; then
10854 case $host_os in
10855 linux*) haveit=yes;;
10856 esac
10857 fi
10858 fi
10859 if test -z "$haveit"; then
10860 haveit=
10861 for x in $LDFLAGS $LIBEXPAT; do
10862
10863 acl_save_prefix="$prefix"
10864 prefix="$acl_final_prefix"
10865 acl_save_exec_prefix="$exec_prefix"
10866 exec_prefix="$acl_final_exec_prefix"
10867 eval x=\"$x\"
10868 exec_prefix="$acl_save_exec_prefix"
10869 prefix="$acl_save_prefix"
10870
10871 if test "X$x" = "X-L$additional_libdir"; then
10872 haveit=yes
10873 break
10874 fi
10875 done
10876 if test -z "$haveit"; then
10877 if test -d "$additional_libdir"; then
10878 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10879 fi
10880 fi
10881 haveit=
10882 for x in $LDFLAGS $LTLIBEXPAT; do
10883
10884 acl_save_prefix="$prefix"
10885 prefix="$acl_final_prefix"
10886 acl_save_exec_prefix="$exec_prefix"
10887 exec_prefix="$acl_final_exec_prefix"
10888 eval x=\"$x\"
10889 exec_prefix="$acl_save_exec_prefix"
10890 prefix="$acl_save_prefix"
10891
10892 if test "X$x" = "X-L$additional_libdir"; then
10893 haveit=yes
10894 break
10895 fi
10896 done
10897 if test -z "$haveit"; then
10898 if test -d "$additional_libdir"; then
10899 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10900 fi
10901 fi
10902 fi
10903 fi
10904 ;;
10905 -R*)
10906 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10907 if test "$enable_rpath" != no; then
10908 haveit=
10909 for x in $rpathdirs; do
10910 if test "X$x" = "X$dir"; then
10911 haveit=yes
10912 break
10913 fi
10914 done
10915 if test -z "$haveit"; then
10916 rpathdirs="$rpathdirs $dir"
10917 fi
10918 haveit=
10919 for x in $ltrpathdirs; do
10920 if test "X$x" = "X$dir"; then
10921 haveit=yes
10922 break
10923 fi
10924 done
10925 if test -z "$haveit"; then
10926 ltrpathdirs="$ltrpathdirs $dir"
10927 fi
10928 fi
10929 ;;
10930 -l*)
10931 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10932 ;;
10933 *.la)
10934 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10935 ;;
10936 *)
10937 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10938 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10939 ;;
10940 esac
10941 done
10942 fi
10943 else
10944 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10945 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10946 fi
10947 fi
10948 fi
10949 done
10950 done
10951 if test "X$rpathdirs" != "X"; then
10952 if test -n "$hardcode_libdir_separator"; then
10953 alldirs=
10954 for found_dir in $rpathdirs; do
10955 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10956 done
10957 acl_save_libdir="$libdir"
10958 libdir="$alldirs"
10959 eval flag=\"$hardcode_libdir_flag_spec\"
10960 libdir="$acl_save_libdir"
10961 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10962 else
10963 for found_dir in $rpathdirs; do
10964 acl_save_libdir="$libdir"
10965 libdir="$found_dir"
10966 eval flag=\"$hardcode_libdir_flag_spec\"
10967 libdir="$acl_save_libdir"
10968 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10969 done
10970 fi
10971 fi
10972 if test "X$ltrpathdirs" != "X"; then
10973 for found_dir in $ltrpathdirs; do
10974 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10975 done
10976 fi
10977
10978
10979 ac_save_CPPFLAGS="$CPPFLAGS"
10980
10981 for element in $INCEXPAT; do
10982 haveit=
10983 for x in $CPPFLAGS; do
10984
10985 acl_save_prefix="$prefix"
10986 prefix="$acl_final_prefix"
10987 acl_save_exec_prefix="$exec_prefix"
10988 exec_prefix="$acl_final_exec_prefix"
10989 eval x=\"$x\"
10990 exec_prefix="$acl_save_exec_prefix"
10991 prefix="$acl_save_prefix"
10992
10993 if test "X$x" = "X$element"; then
10994 haveit=yes
10995 break
10996 fi
10997 done
10998 if test -z "$haveit"; then
10999 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11000 fi
11001 done
11002
11003
11004 echo "$as_me:$LINENO: checking for libexpat" >&5
11005echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11006if test "${ac_cv_libexpat+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009
11010 ac_save_LIBS="$LIBS"
11011 LIBS="$LIBS $LIBEXPAT"
11012 cat >conftest.$ac_ext <<_ACEOF
11013/* confdefs.h. */
11014_ACEOF
11015cat confdefs.h >>conftest.$ac_ext
11016cat >>conftest.$ac_ext <<_ACEOF
11017/* end confdefs.h. */
11018#include "expat.h"
11019int
11020main ()
11021{
11022XML_Parser p = XML_ParserCreate (0);
11023 ;
11024 return 0;
11025}
11026_ACEOF
11027rm -f conftest.$ac_objext conftest$ac_exeext
11028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_libexpat=yes
11050else
11051 echo "$as_me: failed program was:" >&5
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
11054ac_cv_libexpat=no
11055fi
11056rm -f conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS="$ac_save_LIBS"
11059
11060fi
11061echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11062echo "${ECHO_T}$ac_cv_libexpat" >&6
11063 if test "$ac_cv_libexpat" = yes; then
11064 HAVE_LIBEXPAT=yes
11065
11066cat >>confdefs.h <<\_ACEOF
11067#define HAVE_LIBEXPAT 1
11068_ACEOF
11069
11070 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11071echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11072 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11073echo "${ECHO_T}$LIBEXPAT" >&6
11074 else
11075 HAVE_LIBEXPAT=no
11076 CPPFLAGS="$ac_save_CPPFLAGS"
11077 LIBEXPAT=
11078 LTLIBEXPAT=
11079 fi
11080
11081
11082
11083
11084
11085
5c39566f
DJ
11086 if test "$HAVE_LIBEXPAT" != yes; then
11087 if test "$with_expat" = yes; then
11088 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11089echo "$as_me: error: expat is missing or unusable" >&2;}
11090 { (exit 1); exit 1; }; }
11091 else
11092 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11093echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11094 fi
11095 else
11096 save_LIBS=$LIBS
11097 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
11098
11099for ac_func in XML_StopParser
11100do
11101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11102echo "$as_me:$LINENO: checking for $ac_func" >&5
11103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11104if eval "test \"\${$as_ac_var+set}\" = set"; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106else
11107 cat >conftest.$ac_ext <<_ACEOF
11108/* confdefs.h. */
11109_ACEOF
11110cat confdefs.h >>conftest.$ac_ext
11111cat >>conftest.$ac_ext <<_ACEOF
11112/* end confdefs.h. */
11113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11115#define $ac_func innocuous_$ac_func
11116
11117/* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char $ac_func (); below.
11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120 <limits.h> exists even on freestanding compilers. */
11121
11122#ifdef __STDC__
11123# include <limits.h>
11124#else
11125# include <assert.h>
11126#endif
11127
11128#undef $ac_func
11129
11130/* Override any gcc2 internal prototype to avoid an error. */
11131#ifdef __cplusplus
11132extern "C"
11133{
11134#endif
11135/* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137char $ac_func ();
11138/* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11142choke me
11143#else
11144char (*f) () = $ac_func;
11145#endif
11146#ifdef __cplusplus
11147}
11148#endif
11149
11150int
11151main ()
11152{
11153return f != $ac_func;
11154 ;
11155 return 0;
11156}
11157_ACEOF
11158rm -f conftest.$ac_objext conftest$ac_exeext
11159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -z "$ac_c_werror_flag"
11168 || test ! -s conftest.err'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; } &&
11174 { ac_try='test -s conftest$ac_exeext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 eval "$as_ac_var=yes"
11181else
11182 echo "$as_me: failed program was:" >&5
11183sed 's/^/| /' conftest.$ac_ext >&5
11184
11185eval "$as_ac_var=no"
11186fi
11187rm -f conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11189fi
11190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11192if test `eval echo '${'$as_ac_var'}'` = yes; then
11193 cat >>confdefs.h <<_ACEOF
11194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11195_ACEOF
11196
11197fi
11198done
11199
5c39566f
DJ
11200 LIBS=$save_LIBS
11201 fi
3841debe
DJ
11202fi
11203
bec39cab
AC
11204# ------------------------- #
11205# Checks for header files. #
11206# ------------------------- #
8ee53726 11207
0e5d83e3 11208
bec39cab
AC
11209
11210
11211
11212
11213ac_header_dirent=no
11214for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11215 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
11216echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11217echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11218if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220else
11221 cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227#include <sys/types.h>
0e5d83e3 11228#include <$ac_hdr>
bec39cab
AC
11229
11230int
11231main ()
11232{
11233if ((DIR *) 0)
11234return 0;
11235 ;
11236 return 0;
11237}
11238_ACEOF
11239rm -f conftest.$ac_objext
11240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
b4e70030
JB
11248 { ac_try='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
bec39cab
AC
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest.$ac_objext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 eval "$as_ac_Header=yes"
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
b4e70030 11266eval "$as_ac_Header=no"
bec39cab
AC
11267fi
11268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11269fi
b4e70030
JB
11270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11272if test `eval echo '${'$as_ac_Header'}'` = yes; then
11273 cat >>confdefs.h <<_ACEOF
11274#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11275_ACEOF
11276
11277ac_header_dirent=$ac_hdr; break
0e5d83e3 11278fi
0e5d83e3 11279
bec39cab
AC
11280done
11281# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11282if test $ac_header_dirent = dirent.h; then
b4e70030
JB
11283 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11284echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11285if test "${ac_cv_search_opendir+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287else
11288 ac_func_search_save_LIBS=$LIBS
b4e70030 11289ac_cv_search_opendir=no
bec39cab
AC
11290cat >conftest.$ac_ext <<_ACEOF
11291/* confdefs.h. */
11292_ACEOF
11293cat confdefs.h >>conftest.$ac_ext
11294cat >>conftest.$ac_ext <<_ACEOF
11295/* end confdefs.h. */
0e5d83e3 11296
b4e70030 11297/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11298#ifdef __cplusplus
11299extern "C"
11300#endif
b4e70030
JB
11301/* We use char because int might match the return type of a gcc2
11302 builtin and then its argument prototype would still apply. */
bec39cab
AC
11303char opendir ();
11304int
11305main ()
11306{
b4e70030 11307opendir ();
bec39cab
AC
11308 ;
11309 return 0;
11310}
11311_ACEOF
b4e70030 11312rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314 (eval $ac_link) 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
b4e70030
JB
11321 { ac_try='test -z "$ac_c_werror_flag"
11322 || test ! -s conftest.err'
bec39cab
AC
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest$ac_exeext'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
b4e70030 11334 ac_cv_search_opendir="none required"
bec39cab
AC
11335else
11336 echo "$as_me: failed program was:" >&5
11337sed 's/^/| /' conftest.$ac_ext >&5
11338
11339fi
bec39cab 11340rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11341 conftest$ac_exeext conftest.$ac_ext
11342if test "$ac_cv_search_opendir" = no; then
11343 for ac_lib in dir; do
11344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11345 cat >conftest.$ac_ext <<_ACEOF
11346/* confdefs.h. */
11347_ACEOF
11348cat confdefs.h >>conftest.$ac_ext
11349cat >>conftest.$ac_ext <<_ACEOF
11350/* end confdefs.h. */
11351
11352/* Override any gcc2 internal prototype to avoid an error. */
11353#ifdef __cplusplus
11354extern "C"
11355#endif
11356/* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11358char opendir ();
11359int
11360main ()
11361{
11362opendir ();
11363 ;
11364 return 0;
11365}
11366_ACEOF
11367rm -f conftest.$ac_objext conftest$ac_exeext
11368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369 (eval $ac_link) 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest$ac_exeext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_cv_search_opendir="-l$ac_lib"
11390break
4e8d927d 11391else
b4e70030
JB
11392 echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395fi
11396rm -f conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398 done
0e5d83e3 11399fi
bec39cab 11400LIBS=$ac_func_search_save_LIBS
0e5d83e3 11401fi
b4e70030
JB
11402echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11403echo "${ECHO_T}$ac_cv_search_opendir" >&6
11404if test "$ac_cv_search_opendir" != no; then
11405 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 11406
0e5d83e3
JJ
11407fi
11408
d28f9cdf 11409else
b4e70030
JB
11410 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11411echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11412if test "${ac_cv_search_opendir+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414else
11415 ac_func_search_save_LIBS=$LIBS
b4e70030 11416ac_cv_search_opendir=no
bec39cab
AC
11417cat >conftest.$ac_ext <<_ACEOF
11418/* confdefs.h. */
11419_ACEOF
11420cat confdefs.h >>conftest.$ac_ext
11421cat >>conftest.$ac_ext <<_ACEOF
11422/* end confdefs.h. */
d28f9cdf 11423
b4e70030 11424/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11425#ifdef __cplusplus
11426extern "C"
d28f9cdf 11427#endif
b4e70030
JB
11428/* We use char because int might match the return type of a gcc2
11429 builtin and then its argument prototype would still apply. */
bec39cab
AC
11430char opendir ();
11431int
11432main ()
11433{
b4e70030 11434opendir ();
bec39cab
AC
11435 ;
11436 return 0;
11437}
11438_ACEOF
b4e70030 11439rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441 (eval $ac_link) 2>conftest.er1
11442 ac_status=$?
11443 grep -v '^ *+' conftest.er1 >conftest.err
11444 rm -f conftest.er1
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
b4e70030
JB
11448 { ac_try='test -z "$ac_c_werror_flag"
11449 || test ! -s conftest.err'
bec39cab
AC
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; } &&
11455 { ac_try='test -s conftest$ac_exeext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
b4e70030 11461 ac_cv_search_opendir="none required"
d28f9cdf 11462else
bec39cab
AC
11463 echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
d28f9cdf 11466fi
bec39cab 11467rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11468 conftest$ac_exeext conftest.$ac_ext
11469if test "$ac_cv_search_opendir" = no; then
11470 for ac_lib in x; do
11471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11472 cat >conftest.$ac_ext <<_ACEOF
11473/* confdefs.h. */
11474_ACEOF
11475cat confdefs.h >>conftest.$ac_ext
11476cat >>conftest.$ac_ext <<_ACEOF
11477/* end confdefs.h. */
11478
11479/* Override any gcc2 internal prototype to avoid an error. */
11480#ifdef __cplusplus
11481extern "C"
11482#endif
11483/* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485char opendir ();
11486int
11487main ()
11488{
11489opendir ();
11490 ;
11491 return 0;
11492}
11493_ACEOF
11494rm -f conftest.$ac_objext conftest$ac_exeext
11495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_search_opendir="-l$ac_lib"
11517break
4e8d927d 11518else
b4e70030
JB
11519 echo "$as_me: failed program was:" >&5
11520sed 's/^/| /' conftest.$ac_ext >&5
11521
11522fi
11523rm -f conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 done
bec39cab
AC
11526fi
11527LIBS=$ac_func_search_save_LIBS
d28f9cdf 11528fi
b4e70030
JB
11529echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11530echo "${ECHO_T}$ac_cv_search_opendir" >&6
11531if test "$ac_cv_search_opendir" != no; then
11532 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 11533
d28f9cdf
DJ
11534fi
11535
bec39cab 11536fi
b0b1c2c0 11537
b4e70030
JB
11538echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11539echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
11540if test "${ac_cv_header_stat_broken+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 11542else
bec39cab
AC
11543 cat >conftest.$ac_ext <<_ACEOF
11544/* confdefs.h. */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h. */
11549#include <sys/types.h>
11550#include <sys/stat.h>
b0b1c2c0 11551
b4e70030 11552#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
11553# if S_ISBLK (S_IFDIR)
11554You lose.
11555# endif
11556#endif
b0b1c2c0 11557
b4e70030 11558#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
11559# if S_ISBLK (S_IFCHR)
11560You lose.
11561# endif
11562#endif
d28f9cdf 11563
b4e70030 11564#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
11565# if S_ISLNK (S_IFREG)
11566You lose.
11567# endif
11568#endif
d28f9cdf 11569
b4e70030 11570#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
11571# if S_ISSOCK (S_IFREG)
11572You lose.
11573# endif
11574#endif
11575
11576_ACEOF
11577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11578 $EGREP "You lose" >/dev/null 2>&1; then
11579 ac_cv_header_stat_broken=yes
d28f9cdf 11580else
bec39cab 11581 ac_cv_header_stat_broken=no
d28f9cdf
DJ
11582fi
11583rm -f conftest*
d28f9cdf 11584
d28f9cdf 11585fi
b4e70030
JB
11586echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11587echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 11588if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 11589
bec39cab
AC
11590cat >>confdefs.h <<\_ACEOF
11591#define STAT_MACROS_BROKEN 1
11592_ACEOF
8bb2c122 11593
7a292a7a 11594fi
bec39cab 11595
b4e70030
JB
11596echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11597echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
11598if test "${ac_cv_header_stdc+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 11600else
bec39cab
AC
11601 cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
11607#include <stdlib.h>
11608#include <stdarg.h>
11609#include <string.h>
11610#include <float.h>
7a292a7a 11611
bec39cab
AC
11612int
11613main ()
11614{
7a292a7a 11615
bec39cab
AC
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext
11621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11622 (eval $ac_compile) 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
b4e70030
JB
11629 { ac_try='test -z "$ac_c_werror_flag"
11630 || test ! -s conftest.err'
bec39cab
AC
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest.$ac_objext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_cv_header_stdc=yes
c906108c 11643else
bec39cab
AC
11644 echo "$as_me: failed program was:" >&5
11645sed 's/^/| /' conftest.$ac_ext >&5
c906108c 11646
b4e70030 11647ac_cv_header_stdc=no
c906108c 11648fi
bec39cab 11649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11650
bec39cab
AC
11651if test $ac_cv_header_stdc = yes; then
11652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11653 cat >conftest.$ac_ext <<_ACEOF
11654/* confdefs.h. */
11655_ACEOF
11656cat confdefs.h >>conftest.$ac_ext
11657cat >>conftest.$ac_ext <<_ACEOF
11658/* end confdefs.h. */
11659#include <string.h>
c906108c 11660
bec39cab
AC
11661_ACEOF
11662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11663 $EGREP "memchr" >/dev/null 2>&1; then
11664 :
8bb2c122 11665else
bec39cab 11666 ac_cv_header_stdc=no
8bb2c122 11667fi
bec39cab
AC
11668rm -f conftest*
11669
c906108c
SS
11670fi
11671
bec39cab
AC
11672if test $ac_cv_header_stdc = yes; then
11673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11674 cat >conftest.$ac_ext <<_ACEOF
11675/* confdefs.h. */
11676_ACEOF
11677cat confdefs.h >>conftest.$ac_ext
11678cat >>conftest.$ac_ext <<_ACEOF
11679/* end confdefs.h. */
11680#include <stdlib.h>
11681
11682_ACEOF
11683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11684 $EGREP "free" >/dev/null 2>&1; then
11685 :
c906108c 11686else
bec39cab 11687 ac_cv_header_stdc=no
c906108c 11688fi
bec39cab
AC
11689rm -f conftest*
11690
c906108c
SS
11691fi
11692
bec39cab
AC
11693if test $ac_cv_header_stdc = yes; then
11694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11695 if test "$cross_compiling" = yes; then
11696 :
c906108c 11697else
bec39cab
AC
11698 cat >conftest.$ac_ext <<_ACEOF
11699/* confdefs.h. */
11700_ACEOF
11701cat confdefs.h >>conftest.$ac_ext
11702cat >>conftest.$ac_ext <<_ACEOF
11703/* end confdefs.h. */
11704#include <ctype.h>
11705#if ((' ' & 0x0FF) == 0x020)
11706# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11707# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11708#else
11709# define ISLOWER(c) \
11710 (('a' <= (c) && (c) <= 'i') \
11711 || ('j' <= (c) && (c) <= 'r') \
11712 || ('s' <= (c) && (c) <= 'z'))
11713# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11714#endif
11715
11716#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11717int
11718main ()
11719{
11720 int i;
11721 for (i = 0; i < 256; i++)
11722 if (XOR (islower (i), ISLOWER (i))
11723 || toupper (i) != TOUPPER (i))
b4e70030
JB
11724 exit(2);
11725 exit (0);
bec39cab
AC
11726}
11727_ACEOF
11728rm -f conftest$ac_exeext
11729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11730 (eval $ac_link) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 :
11740else
11741 echo "$as_me: program exited with status $ac_status" >&5
11742echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745( exit $ac_status )
11746ac_cv_header_stdc=no
c906108c 11747fi
b4e70030 11748rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 11749fi
c906108c 11750fi
bec39cab 11751fi
b4e70030
JB
11752echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11753echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 11754if test $ac_cv_header_stdc = yes; then
c906108c 11755
bec39cab
AC
11756cat >>confdefs.h <<\_ACEOF
11757#define STDC_HEADERS 1
11758_ACEOF
c906108c 11759
bec39cab 11760fi
8bb2c122 11761
bec39cab 11762
7cb9022a 11763for ac_header in nlist.h
bec39cab
AC
11764do
11765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11766if eval "test \"\${$as_ac_Header+set}\" = set"; then
11767 echo "$as_me:$LINENO: checking for $ac_header" >&5
11768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11769if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771fi
b4e70030
JB
11772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11774else
11775 # Is the header compilable?
b4e70030
JB
11776echo "$as_me:$LINENO: checking $ac_header usability" >&5
11777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11778cat >conftest.$ac_ext <<_ACEOF
11779/* confdefs.h. */
11780_ACEOF
11781cat confdefs.h >>conftest.$ac_ext
11782cat >>conftest.$ac_ext <<_ACEOF
11783/* end confdefs.h. */
11784$ac_includes_default
11785#include <$ac_header>
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
b4e70030
JB
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
bec39cab
AC
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_header_compiler=yes
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
b4e70030 11814ac_header_compiler=no
bec39cab
AC
11815fi
11816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11817echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11818echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11819
11820# Is the header present?
b4e70030
JB
11821echo "$as_me:$LINENO: checking $ac_header presence" >&5
11822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11823cat >conftest.$ac_ext <<_ACEOF
11824/* confdefs.h. */
11825_ACEOF
11826cat confdefs.h >>conftest.$ac_ext
11827cat >>conftest.$ac_ext <<_ACEOF
11828/* end confdefs.h. */
11829#include <$ac_header>
11830_ACEOF
11831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } >/dev/null; then
11839 if test -s conftest.err; then
11840 ac_cpp_err=$ac_c_preproc_warn_flag
11841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11842 else
11843 ac_cpp_err=
11844 fi
c906108c 11845else
bec39cab 11846 ac_cpp_err=yes
c906108c 11847fi
bec39cab
AC
11848if test -z "$ac_cpp_err"; then
11849 ac_header_preproc=yes
c906108c 11850else
bec39cab
AC
11851 echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 11853
bec39cab
AC
11854 ac_header_preproc=no
11855fi
11856rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11857echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11858echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 11859
bec39cab
AC
11860# So? What about this header?
11861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11862 yes:no: )
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11864echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11866echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11867 ac_header_preproc=yes
11868 ;;
11869 no:yes:* )
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11871echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11873echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11875echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11877echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11881echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11882 (
11883 cat <<\_ASBOX
11884## ------------------------------------------ ##
11885## Report this to the AC_PACKAGE_NAME lists. ##
11886## ------------------------------------------ ##
11887_ASBOX
11888 ) |
11889 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11890 ;;
11891esac
b4e70030
JB
11892echo "$as_me:$LINENO: checking for $ac_header" >&5
11893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11894if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11895 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 11896else
bec39cab 11897 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 11898fi
b4e70030
JB
11899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11901
95ca63c4 11902fi
bec39cab
AC
11903if test `eval echo '${'$as_ac_Header'}'` = yes; then
11904 cat >>confdefs.h <<_ACEOF
11905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11906_ACEOF
11907
95ca63c4
CF
11908fi
11909
bec39cab 11910done
95ca63c4
CF
11911
11912
7cb9022a 11913for ac_header in link.h
bec39cab
AC
11914do
11915as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11916echo "$as_me:$LINENO: checking for $ac_header" >&5
11917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11918if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11919 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11920else
7cb9022a 11921 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
7cb9022a
MK
11927#if HAVE_SYS_TYPES_H
11928# include <sys/types.h>
11929#endif
11930#if HAVE_NLIST_H
11931# include <nlist.h>
11932#endif
11933
11934
bec39cab
AC
11935#include <$ac_header>
11936_ACEOF
11937rm -f conftest.$ac_objext
11938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11939 (eval $ac_compile) 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
b4e70030
JB
11946 { ac_try='test -z "$ac_c_werror_flag"
11947 || test ! -s conftest.err'
bec39cab
AC
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
7cb9022a 11959 eval "$as_ac_Header=yes"
bec39cab
AC
11960else
11961 echo "$as_me: failed program was:" >&5
11962sed 's/^/| /' conftest.$ac_ext >&5
11963
b4e70030 11964eval "$as_ac_Header=no"
bec39cab
AC
11965fi
11966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 11967fi
b4e70030
JB
11968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11970if test `eval echo '${'$as_ac_Header'}'` = yes; then
11971 cat >>confdefs.h <<_ACEOF
11972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11973_ACEOF
95ca63c4 11974
bec39cab 11975fi
95ca63c4 11976
bec39cab 11977done
95ca63c4 11978
c906108c 11979
7cb9022a 11980for ac_header in machine/reg.h
bec39cab
AC
11981do
11982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11983if eval "test \"\${$as_ac_Header+set}\" = set"; then
11984 echo "$as_me:$LINENO: checking for $ac_header" >&5
11985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11986if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11988fi
b4e70030
JB
11989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11991else
11992 # Is the header compilable?
b4e70030
JB
11993echo "$as_me:$LINENO: checking $ac_header usability" >&5
11994echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11995cat >conftest.$ac_ext <<_ACEOF
11996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
12001$ac_includes_default
12002#include <$ac_header>
12003_ACEOF
12004rm -f conftest.$ac_objext
12005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12006 (eval $ac_compile) 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
b4e70030
JB
12013 { ac_try='test -z "$ac_c_werror_flag"
12014 || test ! -s conftest.err'
bec39cab
AC
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_header_compiler=yes
12027else
12028 echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
b4e70030 12031ac_header_compiler=no
bec39cab
AC
12032fi
12033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12035echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12036
12037# Is the header present?
b4e70030
JB
12038echo "$as_me:$LINENO: checking $ac_header presence" >&5
12039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12040cat >conftest.$ac_ext <<_ACEOF
12041/* confdefs.h. */
12042_ACEOF
12043cat confdefs.h >>conftest.$ac_ext
12044cat >>conftest.$ac_ext <<_ACEOF
12045/* end confdefs.h. */
12046#include <$ac_header>
12047_ACEOF
12048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } >/dev/null; then
12056 if test -s conftest.err; then
12057 ac_cpp_err=$ac_c_preproc_warn_flag
12058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12059 else
12060 ac_cpp_err=
12061 fi
75c6e08a 12062else
bec39cab 12063 ac_cpp_err=yes
75c6e08a 12064fi
bec39cab
AC
12065if test -z "$ac_cpp_err"; then
12066 ac_header_preproc=yes
12067else
12068 echo "$as_me: failed program was:" >&5
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 ac_header_preproc=no
75c6e08a 12072fi
bec39cab 12073rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12076
12077# So? What about this header?
12078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12079 yes:no: )
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084 ac_header_preproc=yes
12085 ;;
12086 no:yes:* )
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12090echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12094echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12099 (
12100 cat <<\_ASBOX
12101## ------------------------------------------ ##
12102## Report this to the AC_PACKAGE_NAME lists. ##
12103## ------------------------------------------ ##
12104_ASBOX
12105 ) |
12106 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12107 ;;
12108esac
b4e70030
JB
12109echo "$as_me:$LINENO: checking for $ac_header" >&5
12110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12111if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12112 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 12113else
bec39cab
AC
12114 eval "$as_ac_Header=\$ac_header_preproc"
12115fi
b4e70030
JB
12116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12118
75c6e08a 12119fi
bec39cab
AC
12120if test `eval echo '${'$as_ac_Header'}'` = yes; then
12121 cat >>confdefs.h <<_ACEOF
12122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12123_ACEOF
75c6e08a 12124
bec39cab 12125fi
75c6e08a 12126
bec39cab 12127done
75c6e08a
MK
12128
12129
9a156167 12130
bec39cab
AC
12131for ac_header in poll.h sys/poll.h
12132do
12133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12134if eval "test \"\${$as_ac_Header+set}\" = set"; then
12135 echo "$as_me:$LINENO: checking for $ac_header" >&5
12136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12137if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139fi
b4e70030
JB
12140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12142else
12143 # Is the header compilable?
b4e70030
JB
12144echo "$as_me:$LINENO: checking $ac_header usability" >&5
12145echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12146cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152$ac_includes_default
12153#include <$ac_header>
12154_ACEOF
12155rm -f conftest.$ac_objext
12156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157 (eval $ac_compile) 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
b4e70030
JB
12164 { ac_try='test -z "$ac_c_werror_flag"
12165 || test ! -s conftest.err'
bec39cab
AC
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try='test -s conftest.$ac_objext'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 ac_header_compiler=yes
12178else
12179 echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
b4e70030 12182ac_header_compiler=no
bec39cab
AC
12183fi
12184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12186echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12187
12188# Is the header present?
b4e70030
JB
12189echo "$as_me:$LINENO: checking $ac_header presence" >&5
12190echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12191cat >conftest.$ac_ext <<_ACEOF
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197#include <$ac_header>
12198_ACEOF
12199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } >/dev/null; then
12207 if test -s conftest.err; then
12208 ac_cpp_err=$ac_c_preproc_warn_flag
12209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12210 else
12211 ac_cpp_err=
12212 fi
9a156167 12213else
bec39cab 12214 ac_cpp_err=yes
9a156167 12215fi
bec39cab
AC
12216if test -z "$ac_cpp_err"; then
12217 ac_header_preproc=yes
12218else
12219 echo "$as_me: failed program was:" >&5
12220sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12221
bec39cab 12222 ac_header_preproc=no
9a156167 12223fi
bec39cab 12224rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12226echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12227
bec39cab
AC
12228# So? What about this header?
12229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12230 yes:no: )
12231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12232echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12234echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12235 ac_header_preproc=yes
12236 ;;
12237 no:yes:* )
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12239echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12241echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12243echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12245echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12247echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12249echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12250 (
12251 cat <<\_ASBOX
12252## ------------------------------------------ ##
12253## Report this to the AC_PACKAGE_NAME lists. ##
12254## ------------------------------------------ ##
12255_ASBOX
12256 ) |
12257 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12258 ;;
12259esac
b4e70030
JB
12260echo "$as_me:$LINENO: checking for $ac_header" >&5
12261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12262if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12263 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12264else
bec39cab 12265 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12266fi
b4e70030
JB
12267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 12269
bec39cab
AC
12270fi
12271if test `eval echo '${'$as_ac_Header'}'` = yes; then
12272 cat >>confdefs.h <<_ACEOF
12273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12274_ACEOF
9a156167 12275
bec39cab 12276fi
9a156167 12277
bec39cab 12278done
9a156167 12279
9a156167 12280
9a156167 12281
bec39cab
AC
12282
12283for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12284do
12285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12286if eval "test \"\${$as_ac_Header+set}\" = set"; then
12287 echo "$as_me:$LINENO: checking for $ac_header" >&5
12288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12289if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12291fi
b4e70030
JB
12292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12294else
12295 # Is the header compilable?
b4e70030
JB
12296echo "$as_me:$LINENO: checking $ac_header usability" >&5
12297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12298cat >conftest.$ac_ext <<_ACEOF
12299/* confdefs.h. */
12300_ACEOF
12301cat confdefs.h >>conftest.$ac_ext
12302cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
12303/* end confdefs.h. */
12304$ac_includes_default
12305#include <$ac_header>
12306_ACEOF
12307rm -f conftest.$ac_objext
12308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309 (eval $ac_compile) 2>conftest.er1
12310 ac_status=$?
12311 grep -v '^ *+' conftest.er1 >conftest.err
12312 rm -f conftest.er1
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } &&
12316 { ac_try='test -z "$ac_c_werror_flag"
12317 || test ! -s conftest.err'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; } &&
12323 { ac_try='test -s conftest.$ac_objext'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 ac_header_compiler=yes
12330else
12331 echo "$as_me: failed program was:" >&5
12332sed 's/^/| /' conftest.$ac_ext >&5
12333
12334ac_header_compiler=no
12335fi
12336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12338echo "${ECHO_T}$ac_header_compiler" >&6
12339
12340# Is the header present?
12341echo "$as_me:$LINENO: checking $ac_header presence" >&5
12342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12343cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349#include <$ac_header>
12350_ACEOF
12351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } >/dev/null; then
12359 if test -s conftest.err; then
12360 ac_cpp_err=$ac_c_preproc_warn_flag
12361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12362 else
12363 ac_cpp_err=
12364 fi
12365else
12366 ac_cpp_err=yes
12367fi
12368if test -z "$ac_cpp_err"; then
12369 ac_header_preproc=yes
12370else
12371 echo "$as_me: failed program was:" >&5
12372sed 's/^/| /' conftest.$ac_ext >&5
12373
12374 ac_header_preproc=no
12375fi
12376rm -f conftest.err conftest.$ac_ext
12377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12378echo "${ECHO_T}$ac_header_preproc" >&6
12379
12380# So? What about this header?
12381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12382 yes:no: )
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12387 ac_header_preproc=yes
12388 ;;
12389 no:yes:* )
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12402 (
12403 cat <<\_ASBOX
12404## ------------------------------------------ ##
12405## Report this to the AC_PACKAGE_NAME lists. ##
12406## ------------------------------------------ ##
12407_ASBOX
12408 ) |
12409 sed "s/^/$as_me: WARNING: /" >&2
12410 ;;
12411esac
12412echo "$as_me:$LINENO: checking for $ac_header" >&5
12413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12414if eval "test \"\${$as_ac_Header+set}\" = set"; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416else
12417 eval "$as_ac_Header=\$ac_header_preproc"
12418fi
12419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12421
12422fi
12423if test `eval echo '${'$as_ac_Header'}'` = yes; then
12424 cat >>confdefs.h <<_ACEOF
12425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12426_ACEOF
12427
12428fi
12429
12430done
12431
12432
12433for ac_header in signal.h
12434do
12435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12436if eval "test \"\${$as_ac_Header+set}\" = set"; then
12437 echo "$as_me:$LINENO: checking for $ac_header" >&5
12438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12439if eval "test \"\${$as_ac_Header+set}\" = set"; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441fi
12442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12444else
12445 # Is the header compilable?
12446echo "$as_me:$LINENO: checking $ac_header usability" >&5
12447echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12448cat >conftest.$ac_ext <<_ACEOF
12449/* confdefs.h. */
12450_ACEOF
12451cat confdefs.h >>conftest.$ac_ext
12452cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
12453/* end confdefs.h. */
12454$ac_includes_default
12455#include <$ac_header>
12456_ACEOF
12457rm -f conftest.$ac_objext
12458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
b4e70030
JB
12466 { ac_try='test -z "$ac_c_werror_flag"
12467 || test ! -s conftest.err'
bec39cab
AC
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest.$ac_objext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_header_compiler=yes
12480else
12481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
b4e70030 12484ac_header_compiler=no
bec39cab
AC
12485fi
12486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12487echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12488echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12489
12490# Is the header present?
b4e70030
JB
12491echo "$as_me:$LINENO: checking $ac_header presence" >&5
12492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12493cat >conftest.$ac_ext <<_ACEOF
12494/* confdefs.h. */
12495_ACEOF
12496cat confdefs.h >>conftest.$ac_ext
12497cat >>conftest.$ac_ext <<_ACEOF
12498/* end confdefs.h. */
12499#include <$ac_header>
12500_ACEOF
12501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } >/dev/null; then
12509 if test -s conftest.err; then
12510 ac_cpp_err=$ac_c_preproc_warn_flag
12511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12512 else
12513 ac_cpp_err=
12514 fi
9a156167 12515else
bec39cab 12516 ac_cpp_err=yes
9a156167 12517fi
bec39cab
AC
12518if test -z "$ac_cpp_err"; then
12519 ac_header_preproc=yes
12520else
12521 echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12523
bec39cab 12524 ac_header_preproc=no
9a156167 12525fi
bec39cab 12526rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12527echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12528echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12529
bec39cab
AC
12530# So? What about this header?
12531case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12532 yes:no: )
12533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12534echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12536echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12537 ac_header_preproc=yes
12538 ;;
12539 no:yes:* )
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12541echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12543echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12545echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12547echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12549echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12551echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12552 (
12553 cat <<\_ASBOX
12554## ------------------------------------------ ##
12555## Report this to the AC_PACKAGE_NAME lists. ##
12556## ------------------------------------------ ##
12557_ASBOX
12558 ) |
12559 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12560 ;;
12561esac
b4e70030
JB
12562echo "$as_me:$LINENO: checking for $ac_header" >&5
12563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12564if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12565 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12566else
bec39cab 12567 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12568fi
b4e70030
JB
12569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
12571
12572fi
bec39cab
AC
12573if test `eval echo '${'$as_ac_Header'}'` = yes; then
12574 cat >>confdefs.h <<_ACEOF
12575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12576_ACEOF
9a156167 12577
bec39cab
AC
12578fi
12579
12580done
9a156167 12581
c890192f 12582
bec39cab
AC
12583for ac_header in stddef.h
12584do
12585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12586if eval "test \"\${$as_ac_Header+set}\" = set"; then
12587 echo "$as_me:$LINENO: checking for $ac_header" >&5
12588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12589if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12591fi
b4e70030
JB
12592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12594else
12595 # Is the header compilable?
b4e70030
JB
12596echo "$as_me:$LINENO: checking $ac_header usability" >&5
12597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12598cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h. */
12604$ac_includes_default
12605#include <$ac_header>
12606_ACEOF
12607rm -f conftest.$ac_objext
12608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12609 (eval $ac_compile) 2>conftest.er1
12610 ac_status=$?
12611 grep -v '^ *+' conftest.er1 >conftest.err
12612 rm -f conftest.er1
12613 cat conftest.err >&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
b4e70030
JB
12616 { ac_try='test -z "$ac_c_werror_flag"
12617 || test ! -s conftest.err'
bec39cab
AC
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; } &&
12623 { ac_try='test -s conftest.$ac_objext'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 ac_header_compiler=yes
12630else
12631 echo "$as_me: failed program was:" >&5
12632sed 's/^/| /' conftest.$ac_ext >&5
12633
b4e70030 12634ac_header_compiler=no
bec39cab
AC
12635fi
12636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12638echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12639
12640# Is the header present?
b4e70030
JB
12641echo "$as_me:$LINENO: checking $ac_header presence" >&5
12642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12643cat >conftest.$ac_ext <<_ACEOF
12644/* confdefs.h. */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
12649#include <$ac_header>
12650_ACEOF
12651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } >/dev/null; then
12659 if test -s conftest.err; then
12660 ac_cpp_err=$ac_c_preproc_warn_flag
12661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12662 else
12663 ac_cpp_err=
12664 fi
c890192f 12665else
bec39cab
AC
12666 ac_cpp_err=yes
12667fi
12668if test -z "$ac_cpp_err"; then
12669 ac_header_preproc=yes
c890192f 12670else
bec39cab
AC
12671 echo "$as_me: failed program was:" >&5
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
12674 ac_header_preproc=no
c890192f 12675fi
bec39cab 12676rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12678echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12679
12680# So? What about this header?
12681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12682 yes:no: )
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12687 ac_header_preproc=yes
12688 ;;
12689 no:yes:* )
12690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12697echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12702 (
12703 cat <<\_ASBOX
12704## ------------------------------------------ ##
12705## Report this to the AC_PACKAGE_NAME lists. ##
12706## ------------------------------------------ ##
12707_ASBOX
12708 ) |
12709 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12710 ;;
12711esac
b4e70030
JB
12712echo "$as_me:$LINENO: checking for $ac_header" >&5
12713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12714if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12715 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 12716else
bec39cab 12717 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 12718fi
b4e70030
JB
12719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12721
c890192f 12722fi
bec39cab
AC
12723if test `eval echo '${'$as_ac_Header'}'` = yes; then
12724 cat >>confdefs.h <<_ACEOF
12725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12726_ACEOF
c890192f 12727
c890192f
MK
12728fi
12729
bec39cab 12730done
9a156167 12731
bec39cab
AC
12732
12733for ac_header in stdlib.h
12734do
12735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12736if eval "test \"\${$as_ac_Header+set}\" = set"; then
12737 echo "$as_me:$LINENO: checking for $ac_header" >&5
12738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12739if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12741fi
b4e70030
JB
12742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12744else
12745 # Is the header compilable?
b4e70030
JB
12746echo "$as_me:$LINENO: checking $ac_header usability" >&5
12747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12748cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h. */
12754$ac_includes_default
12755#include <$ac_header>
12756_ACEOF
12757rm -f conftest.$ac_objext
12758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>conftest.er1
12760 ac_status=$?
12761 grep -v '^ *+' conftest.er1 >conftest.err
12762 rm -f conftest.er1
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
b4e70030
JB
12766 { ac_try='test -z "$ac_c_werror_flag"
12767 || test ! -s conftest.err'
bec39cab
AC
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest.$ac_objext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 ac_header_compiler=yes
12780else
12781 echo "$as_me: failed program was:" >&5
12782sed 's/^/| /' conftest.$ac_ext >&5
12783
b4e70030 12784ac_header_compiler=no
bec39cab
AC
12785fi
12786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12788echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12789
12790# Is the header present?
b4e70030
JB
12791echo "$as_me:$LINENO: checking $ac_header presence" >&5
12792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12793cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */
12799#include <$ac_header>
12800_ACEOF
12801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } >/dev/null; then
12809 if test -s conftest.err; then
12810 ac_cpp_err=$ac_c_preproc_warn_flag
12811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12812 else
12813 ac_cpp_err=
12814 fi
9a156167 12815else
bec39cab
AC
12816 ac_cpp_err=yes
12817fi
12818if test -z "$ac_cpp_err"; then
12819 ac_header_preproc=yes
9a156167 12820else
bec39cab
AC
12821 echo "$as_me: failed program was:" >&5
12822sed 's/^/| /' conftest.$ac_ext >&5
12823
12824 ac_header_preproc=no
9a156167 12825fi
bec39cab 12826rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12828echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12829
12830# So? What about this header?
12831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12832 yes:no: )
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12837 ac_header_preproc=yes
12838 ;;
12839 no:yes:* )
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12852 (
12853 cat <<\_ASBOX
12854## ------------------------------------------ ##
12855## Report this to the AC_PACKAGE_NAME lists. ##
12856## ------------------------------------------ ##
12857_ASBOX
12858 ) |
12859 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12860 ;;
12861esac
b4e70030
JB
12862echo "$as_me:$LINENO: checking for $ac_header" >&5
12863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12864if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12865 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12866else
bec39cab 12867 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12868fi
b4e70030
JB
12869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12871
9a156167 12872fi
bec39cab
AC
12873if test `eval echo '${'$as_ac_Header'}'` = yes; then
12874 cat >>confdefs.h <<_ACEOF
12875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12876_ACEOF
9a156167 12877
9a156167
MK
12878fi
12879
bec39cab
AC
12880done
12881
06825bd1 12882
06825bd1 12883
bec39cab
AC
12884
12885for ac_header in string.h memory.h strings.h
12886do
12887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12888if eval "test \"\${$as_ac_Header+set}\" = set"; then
12889 echo "$as_me:$LINENO: checking for $ac_header" >&5
12890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12891if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893fi
b4e70030
JB
12894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12896else
12897 # Is the header compilable?
b4e70030
JB
12898echo "$as_me:$LINENO: checking $ac_header usability" >&5
12899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12900cat >conftest.$ac_ext <<_ACEOF
12901/* confdefs.h. */
12902_ACEOF
12903cat confdefs.h >>conftest.$ac_ext
12904cat >>conftest.$ac_ext <<_ACEOF
12905/* end confdefs.h. */
12906$ac_includes_default
12907#include <$ac_header>
12908_ACEOF
12909rm -f conftest.$ac_objext
12910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911 (eval $ac_compile) 2>conftest.er1
12912 ac_status=$?
12913 grep -v '^ *+' conftest.er1 >conftest.err
12914 rm -f conftest.er1
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
b4e70030
JB
12918 { ac_try='test -z "$ac_c_werror_flag"
12919 || test ! -s conftest.err'
bec39cab
AC
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; } &&
12925 { ac_try='test -s conftest.$ac_objext'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12931 ac_header_compiler=yes
12932else
12933 echo "$as_me: failed program was:" >&5
12934sed 's/^/| /' conftest.$ac_ext >&5
12935
b4e70030 12936ac_header_compiler=no
bec39cab
AC
12937fi
12938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12940echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12941
12942# Is the header present?
b4e70030
JB
12943echo "$as_me:$LINENO: checking $ac_header presence" >&5
12944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12945cat >conftest.$ac_ext <<_ACEOF
12946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
12950/* end confdefs.h. */
12951#include <$ac_header>
12952_ACEOF
12953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } >/dev/null; then
12961 if test -s conftest.err; then
12962 ac_cpp_err=$ac_c_preproc_warn_flag
12963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12964 else
12965 ac_cpp_err=
12966 fi
06825bd1 12967else
bec39cab
AC
12968 ac_cpp_err=yes
12969fi
12970if test -z "$ac_cpp_err"; then
12971 ac_header_preproc=yes
06825bd1 12972else
bec39cab
AC
12973 echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
12975
12976 ac_header_preproc=no
06825bd1 12977fi
bec39cab 12978rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12980echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12981
12982# So? What about this header?
12983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12984 yes:no: )
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12989 ac_header_preproc=yes
12990 ;;
12991 no:yes:* )
12992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13004 (
13005 cat <<\_ASBOX
13006## ------------------------------------------ ##
13007## Report this to the AC_PACKAGE_NAME lists. ##
13008## ------------------------------------------ ##
13009_ASBOX
13010 ) |
13011 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13012 ;;
13013esac
b4e70030
JB
13014echo "$as_me:$LINENO: checking for $ac_header" >&5
13015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13016if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018else
13019 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 13020fi
b4e70030
JB
13021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 13023
06825bd1 13024fi
bec39cab
AC
13025if test `eval echo '${'$as_ac_Header'}'` = yes; then
13026 cat >>confdefs.h <<_ACEOF
13027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13028_ACEOF
06825bd1 13029
06825bd1
MK
13030fi
13031
bec39cab 13032done
5ee754fc 13033
bec39cab
AC
13034
13035for ac_header in sys/fault.h
5ee754fc 13036do
bec39cab 13037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13038if eval "test \"\${$as_ac_Header+set}\" = set"; then
13039 echo "$as_me:$LINENO: checking for $ac_header" >&5
13040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13041if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043fi
b4e70030
JB
13044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13046else
13047 # Is the header compilable?
b4e70030
JB
13048echo "$as_me:$LINENO: checking $ac_header usability" >&5
13049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13050cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
13056$ac_includes_default
13057#include <$ac_header>
13058_ACEOF
13059rm -f conftest.$ac_objext
13060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13061 (eval $ac_compile) 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
b4e70030
JB
13068 { ac_try='test -z "$ac_c_werror_flag"
13069 || test ! -s conftest.err'
bec39cab
AC
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; } &&
13075 { ac_try='test -s conftest.$ac_objext'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13078 ac_status=$?
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; }; then
13081 ac_header_compiler=yes
13082else
13083 echo "$as_me: failed program was:" >&5
13084sed 's/^/| /' conftest.$ac_ext >&5
13085
b4e70030 13086ac_header_compiler=no
bec39cab
AC
13087fi
13088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13089echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13090echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13091
13092# Is the header present?
b4e70030
JB
13093echo "$as_me:$LINENO: checking $ac_header presence" >&5
13094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13095cat >conftest.$ac_ext <<_ACEOF
13096/* confdefs.h. */
13097_ACEOF
13098cat confdefs.h >>conftest.$ac_ext
13099cat >>conftest.$ac_ext <<_ACEOF
13100/* end confdefs.h. */
13101#include <$ac_header>
13102_ACEOF
13103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } >/dev/null; then
13111 if test -s conftest.err; then
13112 ac_cpp_err=$ac_c_preproc_warn_flag
13113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13114 else
13115 ac_cpp_err=
13116 fi
5ee754fc 13117else
bec39cab 13118 ac_cpp_err=yes
5ee754fc 13119fi
bec39cab
AC
13120if test -z "$ac_cpp_err"; then
13121 ac_header_preproc=yes
13122else
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13125
bec39cab 13126 ac_header_preproc=no
5ee754fc 13127fi
bec39cab 13128rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13129echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13130echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13131
13132# So? What about this header?
13133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13134 yes:no: )
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13139 ac_header_preproc=yes
13140 ;;
13141 no:yes:* )
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13154 (
13155 cat <<\_ASBOX
13156## ------------------------------------------ ##
13157## Report this to the AC_PACKAGE_NAME lists. ##
13158## ------------------------------------------ ##
13159_ASBOX
13160 ) |
13161 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13162 ;;
13163esac
b4e70030
JB
13164echo "$as_me:$LINENO: checking for $ac_header" >&5
13165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13166if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13167 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13168else
bec39cab 13169 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 13170fi
b4e70030
JB
13171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 13173
5ee754fc 13174fi
bec39cab
AC
13175if test `eval echo '${'$as_ac_Header'}'` = yes; then
13176 cat >>confdefs.h <<_ACEOF
13177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13178_ACEOF
c906108c 13179
5ee754fc 13180fi
bec39cab
AC
13181
13182done
13183
13184
13185for ac_header in sys/file.h
13186do
13187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13188if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo "$as_me:$LINENO: checking for $ac_header" >&5
13190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13191if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193fi
b4e70030
JB
13194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13196else
13197 # Is the header compilable?
b4e70030
JB
13198echo "$as_me:$LINENO: checking $ac_header usability" >&5
13199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13200cat >conftest.$ac_ext <<_ACEOF
13201/* confdefs.h. */
13202_ACEOF
13203cat confdefs.h >>conftest.$ac_ext
13204cat >>conftest.$ac_ext <<_ACEOF
13205/* end confdefs.h. */
13206$ac_includes_default
13207#include <$ac_header>
13208_ACEOF
13209rm -f conftest.$ac_objext
13210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13211 (eval $ac_compile) 2>conftest.er1
13212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
b4e70030
JB
13218 { ac_try='test -z "$ac_c_werror_flag"
13219 || test ! -s conftest.err'
bec39cab
AC
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; } &&
13225 { ac_try='test -s conftest.$ac_objext'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_header_compiler=yes
13232else
13233 echo "$as_me: failed program was:" >&5
13234sed 's/^/| /' conftest.$ac_ext >&5
13235
b4e70030 13236ac_header_compiler=no
bec39cab
AC
13237fi
13238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13239echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13240echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13241
13242# Is the header present?
b4e70030
JB
13243echo "$as_me:$LINENO: checking $ac_header presence" >&5
13244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13245cat >conftest.$ac_ext <<_ACEOF
13246/* confdefs.h. */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
13250/* end confdefs.h. */
13251#include <$ac_header>
13252_ACEOF
13253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } >/dev/null; then
13261 if test -s conftest.err; then
13262 ac_cpp_err=$ac_c_preproc_warn_flag
13263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13264 else
13265 ac_cpp_err=
13266 fi
5ee754fc 13267else
bec39cab 13268 ac_cpp_err=yes
5ee754fc 13269fi
bec39cab
AC
13270if test -z "$ac_cpp_err"; then
13271 ac_header_preproc=yes
13272else
13273 echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
c906108c 13275
bec39cab 13276 ac_header_preproc=no
5ee754fc 13277fi
bec39cab 13278rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13279echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13280echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 13281
bec39cab
AC
13282# So? What about this header?
13283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13284 yes:no: )
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13289 ac_header_preproc=yes
13290 ;;
13291 no:yes:* )
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13299echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13304 (
13305 cat <<\_ASBOX
13306## ------------------------------------------ ##
13307## Report this to the AC_PACKAGE_NAME lists. ##
13308## ------------------------------------------ ##
13309_ASBOX
13310 ) |
13311 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13312 ;;
13313esac
b4e70030
JB
13314echo "$as_me:$LINENO: checking for $ac_header" >&5
13315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13316if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13317 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13318else
bec39cab
AC
13319 eval "$as_ac_Header=\$ac_header_preproc"
13320fi
b4e70030
JB
13321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13323
bec39cab
AC
13324fi
13325if test `eval echo '${'$as_ac_Header'}'` = yes; then
13326 cat >>confdefs.h <<_ACEOF
13327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13328_ACEOF
5ee754fc 13329
bec39cab 13330fi
5ee754fc 13331
bec39cab 13332done
5ee754fc 13333
5ee754fc 13334
bec39cab
AC
13335for ac_header in sys/filio.h
13336do
13337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13338if eval "test \"\${$as_ac_Header+set}\" = set"; then
13339 echo "$as_me:$LINENO: checking for $ac_header" >&5
13340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13341if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343fi
b4e70030
JB
13344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13346else
13347 # Is the header compilable?
b4e70030
JB
13348echo "$as_me:$LINENO: checking $ac_header usability" >&5
13349echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13350cat >conftest.$ac_ext <<_ACEOF
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
13356$ac_includes_default
13357#include <$ac_header>
13358_ACEOF
13359rm -f conftest.$ac_objext
13360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13361 (eval $ac_compile) 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
b4e70030
JB
13368 { ac_try='test -z "$ac_c_werror_flag"
13369 || test ! -s conftest.err'
bec39cab
AC
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_header_compiler=yes
13382else
13383 echo "$as_me: failed program was:" >&5
13384sed 's/^/| /' conftest.$ac_ext >&5
13385
b4e70030 13386ac_header_compiler=no
bec39cab
AC
13387fi
13388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13389echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13390echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13391
13392# Is the header present?
b4e70030
JB
13393echo "$as_me:$LINENO: checking $ac_header presence" >&5
13394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13395cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401#include <$ac_header>
13402_ACEOF
13403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13405 ac_status=$?
13406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } >/dev/null; then
13411 if test -s conftest.err; then
13412 ac_cpp_err=$ac_c_preproc_warn_flag
13413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13414 else
13415 ac_cpp_err=
13416 fi
5ee754fc 13417else
bec39cab 13418 ac_cpp_err=yes
5ee754fc 13419fi
bec39cab
AC
13420if test -z "$ac_cpp_err"; then
13421 ac_header_preproc=yes
13422else
13423 echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13425
bec39cab 13426 ac_header_preproc=no
5ee754fc 13427fi
bec39cab 13428rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13431
bec39cab
AC
13432# So? What about this header?
13433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13434 yes:no: )
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13439 ac_header_preproc=yes
13440 ;;
13441 no:yes:* )
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13454 (
13455 cat <<\_ASBOX
13456## ------------------------------------------ ##
13457## Report this to the AC_PACKAGE_NAME lists. ##
13458## ------------------------------------------ ##
13459_ASBOX
13460 ) |
13461 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13462 ;;
13463esac
b4e70030
JB
13464echo "$as_me:$LINENO: checking for $ac_header" >&5
13465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13466if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13467 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13468else
bec39cab 13469 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13470fi
b4e70030
JB
13471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13473
5ee754fc 13474fi
bec39cab
AC
13475if test `eval echo '${'$as_ac_Header'}'` = yes; then
13476 cat >>confdefs.h <<_ACEOF
13477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13478_ACEOF
5ee754fc
MK
13479
13480fi
13481
bec39cab
AC
13482done
13483
13484
13485for ac_header in sys/ioctl.h
13486do
13487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13488if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489 echo "$as_me:$LINENO: checking for $ac_header" >&5
13490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13491if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493fi
b4e70030
JB
13494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13496else
13497 # Is the header compilable?
b4e70030
JB
13498echo "$as_me:$LINENO: checking $ac_header usability" >&5
13499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13500cat >conftest.$ac_ext <<_ACEOF
13501/* confdefs.h. */
13502_ACEOF
13503cat confdefs.h >>conftest.$ac_ext
13504cat >>conftest.$ac_ext <<_ACEOF
13505/* end confdefs.h. */
13506$ac_includes_default
13507#include <$ac_header>
13508_ACEOF
13509rm -f conftest.$ac_objext
13510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
b4e70030
JB
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
bec39cab
AC
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_header_compiler=yes
13532else
13533 echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
b4e70030 13536ac_header_compiler=no
bec39cab
AC
13537fi
13538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13540echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13541
13542# Is the header present?
b4e70030
JB
13543echo "$as_me:$LINENO: checking $ac_header presence" >&5
13544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13545cat >conftest.$ac_ext <<_ACEOF
13546/* confdefs.h. */
13547_ACEOF
13548cat confdefs.h >>conftest.$ac_ext
13549cat >>conftest.$ac_ext <<_ACEOF
13550/* end confdefs.h. */
13551#include <$ac_header>
13552_ACEOF
13553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } >/dev/null; then
13561 if test -s conftest.err; then
13562 ac_cpp_err=$ac_c_preproc_warn_flag
13563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13564 else
13565 ac_cpp_err=
13566 fi
5ee754fc 13567else
bec39cab 13568 ac_cpp_err=yes
5ee754fc 13569fi
bec39cab
AC
13570if test -z "$ac_cpp_err"; then
13571 ac_header_preproc=yes
13572else
13573 echo "$as_me: failed program was:" >&5
13574sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13575
bec39cab 13576 ac_header_preproc=no
5ee754fc 13577fi
bec39cab 13578rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13581
bec39cab
AC
13582# So? What about this header?
13583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13584 yes:no: )
13585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13589 ac_header_preproc=yes
13590 ;;
13591 no:yes:* )
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13604 (
13605 cat <<\_ASBOX
13606## ------------------------------------------ ##
13607## Report this to the AC_PACKAGE_NAME lists. ##
13608## ------------------------------------------ ##
13609_ASBOX
13610 ) |
13611 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13612 ;;
13613esac
b4e70030
JB
13614echo "$as_me:$LINENO: checking for $ac_header" >&5
13615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13616if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13617 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13618else
bec39cab 13619 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13620fi
b4e70030
JB
13621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
13623
13624fi
bec39cab
AC
13625if test `eval echo '${'$as_ac_Header'}'` = yes; then
13626 cat >>confdefs.h <<_ACEOF
13627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13628_ACEOF
13629
5ee754fc
MK
13630fi
13631
bec39cab 13632done
5ee754fc 13633
5ee754fc 13634
bec39cab 13635for ac_header in sys/param.h
5ee754fc 13636do
bec39cab 13637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13638if eval "test \"\${$as_ac_Header+set}\" = set"; then
13639 echo "$as_me:$LINENO: checking for $ac_header" >&5
13640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13641if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643fi
b4e70030
JB
13644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13646else
13647 # Is the header compilable?
b4e70030
JB
13648echo "$as_me:$LINENO: checking $ac_header usability" >&5
13649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13650cat >conftest.$ac_ext <<_ACEOF
13651/* confdefs.h. */
13652_ACEOF
13653cat confdefs.h >>conftest.$ac_ext
13654cat >>conftest.$ac_ext <<_ACEOF
13655/* end confdefs.h. */
13656$ac_includes_default
13657#include <$ac_header>
13658_ACEOF
13659rm -f conftest.$ac_objext
13660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661 (eval $ac_compile) 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
b4e70030
JB
13668 { ac_try='test -z "$ac_c_werror_flag"
13669 || test ! -s conftest.err'
bec39cab
AC
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest.$ac_objext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_header_compiler=yes
13682else
13683 echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
b4e70030 13686ac_header_compiler=no
bec39cab
AC
13687fi
13688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13690echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13691
13692# Is the header present?
b4e70030
JB
13693echo "$as_me:$LINENO: checking $ac_header presence" >&5
13694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13695cat >conftest.$ac_ext <<_ACEOF
13696/* confdefs.h. */
13697_ACEOF
13698cat confdefs.h >>conftest.$ac_ext
13699cat >>conftest.$ac_ext <<_ACEOF
13700/* end confdefs.h. */
13701#include <$ac_header>
13702_ACEOF
13703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13705 ac_status=$?
13706 grep -v '^ *+' conftest.er1 >conftest.err
13707 rm -f conftest.er1
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } >/dev/null; then
13711 if test -s conftest.err; then
13712 ac_cpp_err=$ac_c_preproc_warn_flag
13713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13714 else
13715 ac_cpp_err=
13716 fi
5ee754fc 13717else
bec39cab 13718 ac_cpp_err=yes
5ee754fc 13719fi
bec39cab
AC
13720if test -z "$ac_cpp_err"; then
13721 ac_header_preproc=yes
13722else
13723 echo "$as_me: failed program was:" >&5
13724sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13725
bec39cab 13726 ac_header_preproc=no
5ee754fc 13727fi
bec39cab 13728rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13730echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13731
13732# So? What about this header?
13733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13734 yes:no: )
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13739 ac_header_preproc=yes
13740 ;;
13741 no:yes:* )
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13754 (
13755 cat <<\_ASBOX
13756## ------------------------------------------ ##
13757## Report this to the AC_PACKAGE_NAME lists. ##
13758## ------------------------------------------ ##
13759_ASBOX
13760 ) |
13761 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13762 ;;
13763esac
b4e70030
JB
13764echo "$as_me:$LINENO: checking for $ac_header" >&5
13765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13766if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13767 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13768else
bec39cab 13769 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13770fi
b4e70030
JB
13771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13773
5ee754fc 13774fi
bec39cab
AC
13775if test `eval echo '${'$as_ac_Header'}'` = yes; then
13776 cat >>confdefs.h <<_ACEOF
13777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13778_ACEOF
13779
5ee754fc 13780fi
bec39cab 13781
5ee754fc
MK
13782done
13783
bec39cab 13784
7eb368b3
NR
13785for ac_header in sys/resource.h
13786do
13787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13788if eval "test \"\${$as_ac_Header+set}\" = set"; then
13789 echo "$as_me:$LINENO: checking for $ac_header" >&5
13790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13791if eval "test \"\${$as_ac_Header+set}\" = set"; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793fi
13794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13796else
13797 # Is the header compilable?
13798echo "$as_me:$LINENO: checking $ac_header usability" >&5
13799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13800cat >conftest.$ac_ext <<_ACEOF
13801/* confdefs.h. */
13802_ACEOF
13803cat confdefs.h >>conftest.$ac_ext
13804cat >>conftest.$ac_ext <<_ACEOF
13805/* end confdefs.h. */
13806$ac_includes_default
13807#include <$ac_header>
13808_ACEOF
13809rm -f conftest.$ac_objext
13810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13811 (eval $ac_compile) 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag"
13819 || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest.$ac_objext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_header_compiler=yes
13832else
13833 echo "$as_me: failed program was:" >&5
13834sed 's/^/| /' conftest.$ac_ext >&5
13835
13836ac_header_compiler=no
13837fi
13838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13840echo "${ECHO_T}$ac_header_compiler" >&6
13841
13842# Is the header present?
13843echo "$as_me:$LINENO: checking $ac_header presence" >&5
13844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13845cat >conftest.$ac_ext <<_ACEOF
13846/* confdefs.h. */
13847_ACEOF
13848cat confdefs.h >>conftest.$ac_ext
13849cat >>conftest.$ac_ext <<_ACEOF
13850/* end confdefs.h. */
13851#include <$ac_header>
13852_ACEOF
13853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13855 ac_status=$?
13856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } >/dev/null; then
13861 if test -s conftest.err; then
13862 ac_cpp_err=$ac_c_preproc_warn_flag
13863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13864 else
13865 ac_cpp_err=
13866 fi
13867else
13868 ac_cpp_err=yes
13869fi
13870if test -z "$ac_cpp_err"; then
13871 ac_header_preproc=yes
13872else
13873 echo "$as_me: failed program was:" >&5
13874sed 's/^/| /' conftest.$ac_ext >&5
13875
13876 ac_header_preproc=no
13877fi
13878rm -f conftest.err conftest.$ac_ext
13879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13880echo "${ECHO_T}$ac_header_preproc" >&6
13881
13882# So? What about this header?
13883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13884 yes:no: )
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13889 ac_header_preproc=yes
13890 ;;
13891 no:yes:* )
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13904 (
13905 cat <<\_ASBOX
13906## ------------------------------------------ ##
13907## Report this to the AC_PACKAGE_NAME lists. ##
13908## ------------------------------------------ ##
13909_ASBOX
13910 ) |
13911 sed "s/^/$as_me: WARNING: /" >&2
13912 ;;
13913esac
13914echo "$as_me:$LINENO: checking for $ac_header" >&5
13915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13916if eval "test \"\${$as_ac_Header+set}\" = set"; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
13919 eval "$as_ac_Header=\$ac_header_preproc"
13920fi
13921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13923
13924fi
13925if test `eval echo '${'$as_ac_Header'}'` = yes; then
13926 cat >>confdefs.h <<_ACEOF
13927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13928_ACEOF
13929
13930fi
13931
13932done
13933
13934
bec39cab 13935for ac_header in sys/proc.h
5ee754fc 13936do
bec39cab 13937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13938echo "$as_me:$LINENO: checking for $ac_header" >&5
13939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13940if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13941 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13942else
7cb9022a 13943 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13944/* confdefs.h. */
13945_ACEOF
13946cat confdefs.h >>conftest.$ac_ext
13947cat >>conftest.$ac_ext <<_ACEOF
13948/* end confdefs.h. */
7cb9022a
MK
13949#if HAVE_SYS_PARAM_H
13950# include <sys/param.h>
13951#endif
13952
13953
bec39cab
AC
13954#include <$ac_header>
13955_ACEOF
13956rm -f conftest.$ac_objext
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
b4e70030
JB
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
bec39cab
AC
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
7cb9022a 13978 eval "$as_ac_Header=yes"
bec39cab
AC
13979else
13980 echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
b4e70030 13983eval "$as_ac_Header=no"
bec39cab
AC
13984fi
13985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 13986fi
b4e70030
JB
13987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13989if test `eval echo '${'$as_ac_Header'}'` = yes; then
13990 cat >>confdefs.h <<_ACEOF
13991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13992_ACEOF
13993
5ee754fc 13994fi
bec39cab 13995
5ee754fc
MK
13996done
13997
bec39cab
AC
13998
13999for ac_header in sys/procfs.h
5ee754fc 14000do
bec39cab 14001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14002if eval "test \"\${$as_ac_Header+set}\" = set"; then
14003 echo "$as_me:$LINENO: checking for $ac_header" >&5
14004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14005if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007fi
b4e70030
JB
14008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14010else
14011 # Is the header compilable?
b4e70030
JB
14012echo "$as_me:$LINENO: checking $ac_header usability" >&5
14013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14014cat >conftest.$ac_ext <<_ACEOF
14015/* confdefs.h. */
14016_ACEOF
14017cat confdefs.h >>conftest.$ac_ext
14018cat >>conftest.$ac_ext <<_ACEOF
14019/* end confdefs.h. */
14020$ac_includes_default
14021#include <$ac_header>
14022_ACEOF
14023rm -f conftest.$ac_objext
14024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
b4e70030
JB
14032 { ac_try='test -z "$ac_c_werror_flag"
14033 || test ! -s conftest.err'
bec39cab
AC
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_header_compiler=yes
14046else
14047 echo "$as_me: failed program was:" >&5
14048sed 's/^/| /' conftest.$ac_ext >&5
14049
b4e70030 14050ac_header_compiler=no
bec39cab
AC
14051fi
14052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14054echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14055
14056# Is the header present?
b4e70030
JB
14057echo "$as_me:$LINENO: checking $ac_header presence" >&5
14058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14059cat >conftest.$ac_ext <<_ACEOF
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
14064/* end confdefs.h. */
14065#include <$ac_header>
14066_ACEOF
14067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } >/dev/null; then
14075 if test -s conftest.err; then
14076 ac_cpp_err=$ac_c_preproc_warn_flag
14077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14078 else
14079 ac_cpp_err=
14080 fi
14081else
14082 ac_cpp_err=yes
5ee754fc 14083fi
bec39cab
AC
14084if test -z "$ac_cpp_err"; then
14085 ac_header_preproc=yes
5ee754fc 14086else
bec39cab
AC
14087 echo "$as_me: failed program was:" >&5
14088sed 's/^/| /' conftest.$ac_ext >&5
14089
14090 ac_header_preproc=no
5ee754fc 14091fi
bec39cab 14092rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14094echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14095
bec39cab
AC
14096# So? What about this header?
14097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14098 yes:no: )
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14103 ac_header_preproc=yes
14104 ;;
14105 no:yes:* )
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14118 (
14119 cat <<\_ASBOX
14120## ------------------------------------------ ##
14121## Report this to the AC_PACKAGE_NAME lists. ##
14122## ------------------------------------------ ##
14123_ASBOX
14124 ) |
14125 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14126 ;;
14127esac
b4e70030
JB
14128echo "$as_me:$LINENO: checking for $ac_header" >&5
14129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14130if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132else
14133 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14134fi
b4e70030
JB
14135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14137
5ee754fc 14138fi
bec39cab
AC
14139if test `eval echo '${'$as_ac_Header'}'` = yes; then
14140 cat >>confdefs.h <<_ACEOF
14141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14142_ACEOF
14143
5ee754fc 14144fi
bec39cab 14145
5ee754fc
MK
14146done
14147
bec39cab
AC
14148
14149
14150for ac_header in sys/ptrace.h ptrace.h
5ee754fc 14151do
bec39cab 14152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14153if eval "test \"\${$as_ac_Header+set}\" = set"; then
14154 echo "$as_me:$LINENO: checking for $ac_header" >&5
14155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14156if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158fi
b4e70030
JB
14159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14161else
14162 # Is the header compilable?
b4e70030
JB
14163echo "$as_me:$LINENO: checking $ac_header usability" >&5
14164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14165cat >conftest.$ac_ext <<_ACEOF
14166/* confdefs.h. */
14167_ACEOF
14168cat confdefs.h >>conftest.$ac_ext
14169cat >>conftest.$ac_ext <<_ACEOF
14170/* end confdefs.h. */
14171$ac_includes_default
14172#include <$ac_header>
14173_ACEOF
14174rm -f conftest.$ac_objext
14175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>conftest.er1
14177 ac_status=$?
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
b4e70030
JB
14183 { ac_try='test -z "$ac_c_werror_flag"
14184 || test ! -s conftest.err'
bec39cab
AC
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_header_compiler=yes
14197else
14198 echo "$as_me: failed program was:" >&5
14199sed 's/^/| /' conftest.$ac_ext >&5
14200
b4e70030 14201ac_header_compiler=no
bec39cab
AC
14202fi
14203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14204echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14205echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14206
14207# Is the header present?
b4e70030
JB
14208echo "$as_me:$LINENO: checking $ac_header presence" >&5
14209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14210cat >conftest.$ac_ext <<_ACEOF
14211/* confdefs.h. */
14212_ACEOF
14213cat confdefs.h >>conftest.$ac_ext
14214cat >>conftest.$ac_ext <<_ACEOF
14215/* end confdefs.h. */
14216#include <$ac_header>
14217_ACEOF
14218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } >/dev/null; then
14226 if test -s conftest.err; then
14227 ac_cpp_err=$ac_c_preproc_warn_flag
14228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14229 else
14230 ac_cpp_err=
14231 fi
14232else
14233 ac_cpp_err=yes
5ee754fc 14234fi
bec39cab
AC
14235if test -z "$ac_cpp_err"; then
14236 ac_header_preproc=yes
5ee754fc 14237else
bec39cab
AC
14238 echo "$as_me: failed program was:" >&5
14239sed 's/^/| /' conftest.$ac_ext >&5
14240
14241 ac_header_preproc=no
5ee754fc 14242fi
bec39cab 14243rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14244echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14245echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14246
bec39cab
AC
14247# So? What about this header?
14248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14249 yes:no: )
14250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14254 ac_header_preproc=yes
14255 ;;
14256 no:yes:* )
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14269 (
14270 cat <<\_ASBOX
14271## ------------------------------------------ ##
14272## Report this to the AC_PACKAGE_NAME lists. ##
14273## ------------------------------------------ ##
14274_ASBOX
14275 ) |
14276 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14277 ;;
14278esac
b4e70030
JB
14279echo "$as_me:$LINENO: checking for $ac_header" >&5
14280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14281if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14283else
14284 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14285fi
b4e70030
JB
14286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14288
5ee754fc 14289fi
bec39cab
AC
14290if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291 cat >>confdefs.h <<_ACEOF
14292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14293_ACEOF
14294
5ee754fc 14295fi
bec39cab 14296
5ee754fc
MK
14297done
14298
bec39cab
AC
14299
14300
14301for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 14302do
bec39cab 14303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14304if eval "test \"\${$as_ac_Header+set}\" = set"; then
14305 echo "$as_me:$LINENO: checking for $ac_header" >&5
14306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14307if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309fi
b4e70030
JB
14310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14312else
14313 # Is the header compilable?
b4e70030
JB
14314echo "$as_me:$LINENO: checking $ac_header usability" >&5
14315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14316cat >conftest.$ac_ext <<_ACEOF
14317/* confdefs.h. */
14318_ACEOF
14319cat confdefs.h >>conftest.$ac_ext
14320cat >>conftest.$ac_ext <<_ACEOF
14321/* end confdefs.h. */
14322$ac_includes_default
14323#include <$ac_header>
14324_ACEOF
14325rm -f conftest.$ac_objext
14326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14327 (eval $ac_compile) 2>conftest.er1
14328 ac_status=$?
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
b4e70030
JB
14334 { ac_try='test -z "$ac_c_werror_flag"
14335 || test ! -s conftest.err'
bec39cab
AC
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; } &&
14341 { ac_try='test -s conftest.$ac_objext'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
14347 ac_header_compiler=yes
14348else
14349 echo "$as_me: failed program was:" >&5
14350sed 's/^/| /' conftest.$ac_ext >&5
14351
b4e70030 14352ac_header_compiler=no
bec39cab
AC
14353fi
14354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14356echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14357
14358# Is the header present?
b4e70030
JB
14359echo "$as_me:$LINENO: checking $ac_header presence" >&5
14360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14361cat >conftest.$ac_ext <<_ACEOF
14362/* confdefs.h. */
14363_ACEOF
14364cat confdefs.h >>conftest.$ac_ext
14365cat >>conftest.$ac_ext <<_ACEOF
14366/* end confdefs.h. */
14367#include <$ac_header>
14368_ACEOF
14369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } >/dev/null; then
14377 if test -s conftest.err; then
14378 ac_cpp_err=$ac_c_preproc_warn_flag
14379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14380 else
14381 ac_cpp_err=
14382 fi
14383else
14384 ac_cpp_err=yes
5ee754fc 14385fi
bec39cab
AC
14386if test -z "$ac_cpp_err"; then
14387 ac_header_preproc=yes
5ee754fc 14388else
bec39cab
AC
14389 echo "$as_me: failed program was:" >&5
14390sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 ac_header_preproc=no
5ee754fc 14393fi
bec39cab 14394rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14396echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14397
bec39cab
AC
14398# So? What about this header?
14399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14400 yes:no: )
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14405 ac_header_preproc=yes
14406 ;;
14407 no:yes:* )
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14415echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14420 (
14421 cat <<\_ASBOX
14422## ------------------------------------------ ##
14423## Report this to the AC_PACKAGE_NAME lists. ##
14424## ------------------------------------------ ##
14425_ASBOX
14426 ) |
14427 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14428 ;;
14429esac
b4e70030
JB
14430echo "$as_me:$LINENO: checking for $ac_header" >&5
14431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14432if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434else
14435 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14436fi
b4e70030
JB
14437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14439
5ee754fc 14440fi
bec39cab
AC
14441if test `eval echo '${'$as_ac_Header'}'` = yes; then
14442 cat >>confdefs.h <<_ACEOF
14443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14444_ACEOF
14445
5ee754fc 14446fi
bec39cab 14447
5ee754fc
MK
14448done
14449
bec39cab
AC
14450
14451for ac_header in sys/select.h
5ee754fc 14452do
bec39cab 14453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14454if eval "test \"\${$as_ac_Header+set}\" = set"; then
14455 echo "$as_me:$LINENO: checking for $ac_header" >&5
14456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14457if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459fi
b4e70030
JB
14460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14462else
14463 # Is the header compilable?
b4e70030
JB
14464echo "$as_me:$LINENO: checking $ac_header usability" >&5
14465echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14466cat >conftest.$ac_ext <<_ACEOF
14467/* confdefs.h. */
14468_ACEOF
14469cat confdefs.h >>conftest.$ac_ext
14470cat >>conftest.$ac_ext <<_ACEOF
14471/* end confdefs.h. */
14472$ac_includes_default
14473#include <$ac_header>
14474_ACEOF
14475rm -f conftest.$ac_objext
14476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>conftest.er1
14478 ac_status=$?
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
b4e70030
JB
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
bec39cab
AC
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_header_compiler=yes
14498else
14499 echo "$as_me: failed program was:" >&5
14500sed 's/^/| /' conftest.$ac_ext >&5
14501
b4e70030 14502ac_header_compiler=no
bec39cab
AC
14503fi
14504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14505echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14506echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14507
14508# Is the header present?
b4e70030
JB
14509echo "$as_me:$LINENO: checking $ac_header presence" >&5
14510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14511cat >conftest.$ac_ext <<_ACEOF
14512/* confdefs.h. */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
14516/* end confdefs.h. */
14517#include <$ac_header>
14518_ACEOF
14519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14521 ac_status=$?
14522 grep -v '^ *+' conftest.er1 >conftest.err
14523 rm -f conftest.er1
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } >/dev/null; then
14527 if test -s conftest.err; then
14528 ac_cpp_err=$ac_c_preproc_warn_flag
14529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14530 else
14531 ac_cpp_err=
14532 fi
14533else
14534 ac_cpp_err=yes
5ee754fc 14535fi
bec39cab
AC
14536if test -z "$ac_cpp_err"; then
14537 ac_header_preproc=yes
5ee754fc 14538else
bec39cab
AC
14539 echo "$as_me: failed program was:" >&5
14540sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_header_preproc=no
5ee754fc 14543fi
bec39cab 14544rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14546echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14547
bec39cab
AC
14548# So? What about this header?
14549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14550 yes:no: )
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14555 ac_header_preproc=yes
14556 ;;
14557 no:yes:* )
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14561echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14565echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14570 (
14571 cat <<\_ASBOX
14572## ------------------------------------------ ##
14573## Report this to the AC_PACKAGE_NAME lists. ##
14574## ------------------------------------------ ##
14575_ASBOX
14576 ) |
14577 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14578 ;;
14579esac
b4e70030
JB
14580echo "$as_me:$LINENO: checking for $ac_header" >&5
14581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14582if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14584else
14585 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14586fi
b4e70030
JB
14587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14589
5ee754fc 14590fi
bec39cab
AC
14591if test `eval echo '${'$as_ac_Header'}'` = yes; then
14592 cat >>confdefs.h <<_ACEOF
14593#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14594_ACEOF
14595
5ee754fc 14596fi
bec39cab 14597
5ee754fc
MK
14598done
14599
bec39cab
AC
14600
14601for ac_header in sys/syscall.h
5ee754fc 14602do
bec39cab 14603as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14604if eval "test \"\${$as_ac_Header+set}\" = set"; then
14605 echo "$as_me:$LINENO: checking for $ac_header" >&5
14606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14607if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14609fi
b4e70030
JB
14610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14612else
14613 # Is the header compilable?
b4e70030
JB
14614echo "$as_me:$LINENO: checking $ac_header usability" >&5
14615echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14616cat >conftest.$ac_ext <<_ACEOF
14617/* confdefs.h. */
14618_ACEOF
14619cat confdefs.h >>conftest.$ac_ext
14620cat >>conftest.$ac_ext <<_ACEOF
14621/* end confdefs.h. */
14622$ac_includes_default
14623#include <$ac_header>
14624_ACEOF
14625rm -f conftest.$ac_objext
14626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14627 (eval $ac_compile) 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
b4e70030
JB
14634 { ac_try='test -z "$ac_c_werror_flag"
14635 || test ! -s conftest.err'
bec39cab
AC
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; } &&
14641 { ac_try='test -s conftest.$ac_objext'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_header_compiler=yes
14648else
14649 echo "$as_me: failed program was:" >&5
14650sed 's/^/| /' conftest.$ac_ext >&5
14651
b4e70030 14652ac_header_compiler=no
bec39cab
AC
14653fi
14654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14655echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14656echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14657
14658# Is the header present?
b4e70030
JB
14659echo "$as_me:$LINENO: checking $ac_header presence" >&5
14660echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14661cat >conftest.$ac_ext <<_ACEOF
14662/* confdefs.h. */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h. */
14667#include <$ac_header>
14668_ACEOF
14669if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14671 ac_status=$?
14672 grep -v '^ *+' conftest.er1 >conftest.err
14673 rm -f conftest.er1
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } >/dev/null; then
14677 if test -s conftest.err; then
14678 ac_cpp_err=$ac_c_preproc_warn_flag
14679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14680 else
14681 ac_cpp_err=
14682 fi
14683else
14684 ac_cpp_err=yes
5ee754fc 14685fi
bec39cab
AC
14686if test -z "$ac_cpp_err"; then
14687 ac_header_preproc=yes
5ee754fc 14688else
bec39cab
AC
14689 echo "$as_me: failed program was:" >&5
14690sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ac_header_preproc=no
5ee754fc 14693fi
bec39cab 14694rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14695echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14696echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14697
bec39cab
AC
14698# So? What about this header?
14699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14700 yes:no: )
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14702echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14704echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14705 ac_header_preproc=yes
14706 ;;
14707 no:yes:* )
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14709echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14711echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14713echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14715echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14717echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14719echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14720 (
14721 cat <<\_ASBOX
14722## ------------------------------------------ ##
14723## Report this to the AC_PACKAGE_NAME lists. ##
14724## ------------------------------------------ ##
14725_ASBOX
14726 ) |
14727 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14728 ;;
14729esac
b4e70030
JB
14730echo "$as_me:$LINENO: checking for $ac_header" >&5
14731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14732if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734else
14735 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14736fi
b4e70030
JB
14737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14739
5ee754fc 14740fi
bec39cab
AC
14741if test `eval echo '${'$as_ac_Header'}'` = yes; then
14742 cat >>confdefs.h <<_ACEOF
14743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14744_ACEOF
14745
5ee754fc 14746fi
bec39cab 14747
5ee754fc
MK
14748done
14749
bec39cab
AC
14750
14751for ac_header in sys/types.h
5ee754fc 14752do
bec39cab 14753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14754if eval "test \"\${$as_ac_Header+set}\" = set"; then
14755 echo "$as_me:$LINENO: checking for $ac_header" >&5
14756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14757if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759fi
b4e70030
JB
14760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14762else
14763 # Is the header compilable?
b4e70030
JB
14764echo "$as_me:$LINENO: checking $ac_header usability" >&5
14765echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14766cat >conftest.$ac_ext <<_ACEOF
14767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772$ac_includes_default
14773#include <$ac_header>
14774_ACEOF
14775rm -f conftest.$ac_objext
14776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777 (eval $ac_compile) 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
b4e70030
JB
14784 { ac_try='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
bec39cab
AC
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_header_compiler=yes
14798else
14799 echo "$as_me: failed program was:" >&5
14800sed 's/^/| /' conftest.$ac_ext >&5
14801
b4e70030 14802ac_header_compiler=no
bec39cab
AC
14803fi
14804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14805echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14806echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14807
14808# Is the header present?
b4e70030
JB
14809echo "$as_me:$LINENO: checking $ac_header presence" >&5
14810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14811cat >conftest.$ac_ext <<_ACEOF
14812/* confdefs.h. */
14813_ACEOF
14814cat confdefs.h >>conftest.$ac_ext
14815cat >>conftest.$ac_ext <<_ACEOF
14816/* end confdefs.h. */
14817#include <$ac_header>
14818_ACEOF
14819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } >/dev/null; then
14827 if test -s conftest.err; then
14828 ac_cpp_err=$ac_c_preproc_warn_flag
14829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14830 else
14831 ac_cpp_err=
14832 fi
14833else
14834 ac_cpp_err=yes
5ee754fc 14835fi
bec39cab
AC
14836if test -z "$ac_cpp_err"; then
14837 ac_header_preproc=yes
5ee754fc 14838else
bec39cab
AC
14839 echo "$as_me: failed program was:" >&5
14840sed 's/^/| /' conftest.$ac_ext >&5
14841
14842 ac_header_preproc=no
5ee754fc 14843fi
bec39cab 14844rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14845echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14846echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14847
bec39cab
AC
14848# So? What about this header?
14849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14850 yes:no: )
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14855 ac_header_preproc=yes
14856 ;;
14857 no:yes:* )
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14870 (
14871 cat <<\_ASBOX
14872## ------------------------------------------ ##
14873## Report this to the AC_PACKAGE_NAME lists. ##
14874## ------------------------------------------ ##
14875_ASBOX
14876 ) |
14877 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14878 ;;
14879esac
b4e70030
JB
14880echo "$as_me:$LINENO: checking for $ac_header" >&5
14881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14882if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14884else
14885 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14886fi
b4e70030
JB
14887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14889
5ee754fc 14890fi
bec39cab
AC
14891if test `eval echo '${'$as_ac_Header'}'` = yes; then
14892 cat >>confdefs.h <<_ACEOF
14893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14894_ACEOF
14895
5ee754fc 14896fi
bec39cab 14897
5ee754fc
MK
14898done
14899
bec39cab
AC
14900
14901for ac_header in sys/user.h
5ee754fc 14902do
bec39cab 14903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14904echo "$as_me:$LINENO: checking for $ac_header" >&5
14905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14906if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14907 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14908else
7cb9022a 14909 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14910/* confdefs.h. */
14911_ACEOF
14912cat confdefs.h >>conftest.$ac_ext
14913cat >>conftest.$ac_ext <<_ACEOF
14914/* end confdefs.h. */
7cb9022a
MK
14915#if HAVE_SYS_PARAM_H
14916# include <sys/param.h>
14917#endif
14918
14919
bec39cab
AC
14920#include <$ac_header>
14921_ACEOF
14922rm -f conftest.$ac_objext
14923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924 (eval $ac_compile) 2>conftest.er1
14925 ac_status=$?
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
b4e70030
JB
14931 { ac_try='test -z "$ac_c_werror_flag"
14932 || test ! -s conftest.err'
bec39cab
AC
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try='test -s conftest.$ac_objext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
7cb9022a 14944 eval "$as_ac_Header=yes"
bec39cab
AC
14945else
14946 echo "$as_me: failed program was:" >&5
14947sed 's/^/| /' conftest.$ac_ext >&5
14948
b4e70030 14949eval "$as_ac_Header=no"
bec39cab
AC
14950fi
14951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 14952fi
b4e70030
JB
14953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14955if test `eval echo '${'$as_ac_Header'}'` = yes; then
14956 cat >>confdefs.h <<_ACEOF
14957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14958_ACEOF
14959
5ee754fc 14960fi
bec39cab 14961
5ee754fc
MK
14962done
14963
bec39cab
AC
14964
14965
14966for ac_header in sys/wait.h wait.h
5ee754fc 14967do
bec39cab 14968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14969if eval "test \"\${$as_ac_Header+set}\" = set"; then
14970 echo "$as_me:$LINENO: checking for $ac_header" >&5
14971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14972if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974fi
b4e70030
JB
14975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14977else
14978 # Is the header compilable?
b4e70030
JB
14979echo "$as_me:$LINENO: checking $ac_header usability" >&5
14980echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14981cat >conftest.$ac_ext <<_ACEOF
14982/* confdefs.h. */
14983_ACEOF
14984cat confdefs.h >>conftest.$ac_ext
14985cat >>conftest.$ac_ext <<_ACEOF
14986/* end confdefs.h. */
14987$ac_includes_default
14988#include <$ac_header>
14989_ACEOF
14990rm -f conftest.$ac_objext
14991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14992 (eval $ac_compile) 2>conftest.er1
14993 ac_status=$?
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
b4e70030
JB
14999 { ac_try='test -z "$ac_c_werror_flag"
15000 || test ! -s conftest.err'
bec39cab
AC
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest.$ac_objext'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 ac_header_compiler=yes
15013else
15014 echo "$as_me: failed program was:" >&5
15015sed 's/^/| /' conftest.$ac_ext >&5
15016
b4e70030 15017ac_header_compiler=no
bec39cab
AC
15018fi
15019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15020echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15021echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15022
15023# Is the header present?
b4e70030
JB
15024echo "$as_me:$LINENO: checking $ac_header presence" >&5
15025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15026cat >conftest.$ac_ext <<_ACEOF
15027/* confdefs.h. */
15028_ACEOF
15029cat confdefs.h >>conftest.$ac_ext
15030cat >>conftest.$ac_ext <<_ACEOF
15031/* end confdefs.h. */
15032#include <$ac_header>
15033_ACEOF
15034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15036 ac_status=$?
15037 grep -v '^ *+' conftest.er1 >conftest.err
15038 rm -f conftest.er1
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } >/dev/null; then
15042 if test -s conftest.err; then
15043 ac_cpp_err=$ac_c_preproc_warn_flag
15044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15045 else
15046 ac_cpp_err=
15047 fi
15048else
15049 ac_cpp_err=yes
5ee754fc 15050fi
bec39cab
AC
15051if test -z "$ac_cpp_err"; then
15052 ac_header_preproc=yes
5ee754fc 15053else
bec39cab
AC
15054 echo "$as_me: failed program was:" >&5
15055sed 's/^/| /' conftest.$ac_ext >&5
15056
15057 ac_header_preproc=no
5ee754fc 15058fi
bec39cab 15059rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15060echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15061echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15062
bec39cab
AC
15063# So? What about this header?
15064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15065 yes:no: )
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15067echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15069echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15070 ac_header_preproc=yes
15071 ;;
15072 no:yes:* )
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15078echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15080echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15084echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15085 (
15086 cat <<\_ASBOX
15087## ------------------------------------------ ##
15088## Report this to the AC_PACKAGE_NAME lists. ##
15089## ------------------------------------------ ##
15090_ASBOX
15091 ) |
15092 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15093 ;;
15094esac
b4e70030
JB
15095echo "$as_me:$LINENO: checking for $ac_header" >&5
15096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15097if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15099else
15100 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15101fi
b4e70030
JB
15102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15104
9608ab8b 15105fi
bec39cab
AC
15106if test `eval echo '${'$as_ac_Header'}'` = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15109_ACEOF
15110
9608ab8b 15111fi
bec39cab 15112
9608ab8b 15113done
5ee754fc 15114
bec39cab
AC
15115
15116
15117
15118for ac_header in termios.h termio.h sgtty.h
5ee754fc 15119do
bec39cab 15120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15121if eval "test \"\${$as_ac_Header+set}\" = set"; then
15122 echo "$as_me:$LINENO: checking for $ac_header" >&5
15123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15124if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15126fi
b4e70030
JB
15127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15129else
15130 # Is the header compilable?
b4e70030
JB
15131echo "$as_me:$LINENO: checking $ac_header usability" >&5
15132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15133cat >conftest.$ac_ext <<_ACEOF
15134/* confdefs.h. */
15135_ACEOF
15136cat confdefs.h >>conftest.$ac_ext
15137cat >>conftest.$ac_ext <<_ACEOF
15138/* end confdefs.h. */
15139$ac_includes_default
15140#include <$ac_header>
15141_ACEOF
15142rm -f conftest.$ac_objext
15143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
b4e70030
JB
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
bec39cab
AC
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_header_compiler=yes
15165else
15166 echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
b4e70030 15169ac_header_compiler=no
bec39cab
AC
15170fi
15171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15173echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15174
15175# Is the header present?
b4e70030
JB
15176echo "$as_me:$LINENO: checking $ac_header presence" >&5
15177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15178cat >conftest.$ac_ext <<_ACEOF
15179/* confdefs.h. */
15180_ACEOF
15181cat confdefs.h >>conftest.$ac_ext
15182cat >>conftest.$ac_ext <<_ACEOF
15183/* end confdefs.h. */
15184#include <$ac_header>
15185_ACEOF
15186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15188 ac_status=$?
15189 grep -v '^ *+' conftest.er1 >conftest.err
15190 rm -f conftest.er1
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } >/dev/null; then
15194 if test -s conftest.err; then
15195 ac_cpp_err=$ac_c_preproc_warn_flag
15196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15197 else
15198 ac_cpp_err=
15199 fi
15200else
15201 ac_cpp_err=yes
9608ab8b 15202fi
bec39cab
AC
15203if test -z "$ac_cpp_err"; then
15204 ac_header_preproc=yes
9608ab8b 15205else
bec39cab
AC
15206 echo "$as_me: failed program was:" >&5
15207sed 's/^/| /' conftest.$ac_ext >&5
15208
15209 ac_header_preproc=no
9608ab8b 15210fi
bec39cab 15211rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15213echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 15214
bec39cab
AC
15215# So? What about this header?
15216case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15217 yes:no: )
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15221echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15222 ac_header_preproc=yes
15223 ;;
15224 no:yes:* )
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15226echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15228echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15230echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15232echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15234echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15236echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15237 (
15238 cat <<\_ASBOX
15239## ------------------------------------------ ##
15240## Report this to the AC_PACKAGE_NAME lists. ##
15241## ------------------------------------------ ##
15242_ASBOX
15243 ) |
15244 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15245 ;;
15246esac
b4e70030
JB
15247echo "$as_me:$LINENO: checking for $ac_header" >&5
15248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15249if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251else
15252 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15253fi
b4e70030
JB
15254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15256
9608ab8b 15257fi
bec39cab
AC
15258if test `eval echo '${'$as_ac_Header'}'` = yes; then
15259 cat >>confdefs.h <<_ACEOF
15260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15261_ACEOF
15262
9608ab8b 15263fi
bec39cab 15264
5ee754fc 15265done
9608ab8b 15266
bec39cab
AC
15267
15268for ac_header in unistd.h
78434e59 15269do
bec39cab 15270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15271if eval "test \"\${$as_ac_Header+set}\" = set"; then
15272 echo "$as_me:$LINENO: checking for $ac_header" >&5
15273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15274if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276fi
b4e70030
JB
15277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15279else
15280 # Is the header compilable?
b4e70030
JB
15281echo "$as_me:$LINENO: checking $ac_header usability" >&5
15282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15283cat >conftest.$ac_ext <<_ACEOF
15284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
15288/* end confdefs.h. */
15289$ac_includes_default
15290#include <$ac_header>
15291_ACEOF
15292rm -f conftest.$ac_objext
15293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15294 (eval $ac_compile) 2>conftest.er1
15295 ac_status=$?
15296 grep -v '^ *+' conftest.er1 >conftest.err
15297 rm -f conftest.er1
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
b4e70030
JB
15301 { ac_try='test -z "$ac_c_werror_flag"
15302 || test ! -s conftest.err'
bec39cab
AC
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } &&
15308 { ac_try='test -s conftest.$ac_objext'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 ac_header_compiler=yes
15315else
15316 echo "$as_me: failed program was:" >&5
15317sed 's/^/| /' conftest.$ac_ext >&5
15318
b4e70030 15319ac_header_compiler=no
bec39cab
AC
15320fi
15321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15322echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15323echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15324
15325# Is the header present?
b4e70030
JB
15326echo "$as_me:$LINENO: checking $ac_header presence" >&5
15327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15328cat >conftest.$ac_ext <<_ACEOF
15329/* confdefs.h. */
15330_ACEOF
15331cat confdefs.h >>conftest.$ac_ext
15332cat >>conftest.$ac_ext <<_ACEOF
15333/* end confdefs.h. */
15334#include <$ac_header>
15335_ACEOF
15336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } >/dev/null; then
15344 if test -s conftest.err; then
15345 ac_cpp_err=$ac_c_preproc_warn_flag
15346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15347 else
15348 ac_cpp_err=
15349 fi
15350else
15351 ac_cpp_err=yes
78434e59 15352fi
bec39cab
AC
15353if test -z "$ac_cpp_err"; then
15354 ac_header_preproc=yes
78434e59 15355else
bec39cab
AC
15356 echo "$as_me: failed program was:" >&5
15357sed 's/^/| /' conftest.$ac_ext >&5
15358
15359 ac_header_preproc=no
78434e59 15360fi
bec39cab 15361rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15362echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15363echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 15364
bec39cab
AC
15365# So? What about this header?
15366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15367 yes:no: )
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15369echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15371echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15372 ac_header_preproc=yes
15373 ;;
15374 no:yes:* )
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15376echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15378echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15380echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15382echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15384echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15386echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15387 (
15388 cat <<\_ASBOX
15389## ------------------------------------------ ##
15390## Report this to the AC_PACKAGE_NAME lists. ##
15391## ------------------------------------------ ##
15392_ASBOX
15393 ) |
15394 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15395 ;;
15396esac
b4e70030
JB
15397echo "$as_me:$LINENO: checking for $ac_header" >&5
15398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15399if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401else
15402 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 15403fi
b4e70030
JB
15404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15406
086ec9eb 15407fi
bec39cab
AC
15408if test `eval echo '${'$as_ac_Header'}'` = yes; then
15409 cat >>confdefs.h <<_ACEOF
15410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15411_ACEOF
15412
086ec9eb 15413fi
bec39cab 15414
086ec9eb
MK
15415done
15416
9608ab8b 15417
b1d19a62 15418# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
15419# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15420# think that we don't have <curses.h> if we're using GCC.
15421case $host_os in
b1d19a62 15422 solaris2.[789])
5ee754fc 15423 if test "$GCC" = yes; then
bec39cab
AC
15424
15425cat >>confdefs.h <<\_ACEOF
5ee754fc 15426#define _MSE_INT_H 1
bec39cab 15427_ACEOF
5ee754fc
MK
15428
15429 fi ;;
15430esac
bec39cab
AC
15431
15432
15433
15434
15435for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 15436do
bec39cab 15437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15438if eval "test \"\${$as_ac_Header+set}\" = set"; then
15439 echo "$as_me:$LINENO: checking for $ac_header" >&5
15440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15441if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15443fi
b4e70030
JB
15444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15446else
15447 # Is the header compilable?
b4e70030
JB
15448echo "$as_me:$LINENO: checking $ac_header usability" >&5
15449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15450cat >conftest.$ac_ext <<_ACEOF
15451/* confdefs.h. */
15452_ACEOF
15453cat confdefs.h >>conftest.$ac_ext
15454cat >>conftest.$ac_ext <<_ACEOF
15455/* end confdefs.h. */
15456$ac_includes_default
15457#include <$ac_header>
15458_ACEOF
15459rm -f conftest.$ac_objext
15460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461 (eval $ac_compile) 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
b4e70030
JB
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
bec39cab
AC
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest.$ac_objext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_header_compiler=yes
15482else
15483 echo "$as_me: failed program was:" >&5
15484sed 's/^/| /' conftest.$ac_ext >&5
15485
b4e70030 15486ac_header_compiler=no
bec39cab
AC
15487fi
15488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15489echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15490echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15491
15492# Is the header present?
b4e70030
JB
15493echo "$as_me:$LINENO: checking $ac_header presence" >&5
15494echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15495cat >conftest.$ac_ext <<_ACEOF
15496/* confdefs.h. */
15497_ACEOF
15498cat confdefs.h >>conftest.$ac_ext
15499cat >>conftest.$ac_ext <<_ACEOF
15500/* end confdefs.h. */
15501#include <$ac_header>
15502_ACEOF
15503if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15505 ac_status=$?
15506 grep -v '^ *+' conftest.er1 >conftest.err
15507 rm -f conftest.er1
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } >/dev/null; then
15511 if test -s conftest.err; then
15512 ac_cpp_err=$ac_c_preproc_warn_flag
15513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15514 else
15515 ac_cpp_err=
15516 fi
15517else
15518 ac_cpp_err=yes
c906108c 15519fi
bec39cab
AC
15520if test -z "$ac_cpp_err"; then
15521 ac_header_preproc=yes
15522else
15523 echo "$as_me: failed program was:" >&5
15524sed 's/^/| /' conftest.$ac_ext >&5
15525
15526 ac_header_preproc=no
c906108c 15527fi
bec39cab 15528rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15529echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15530echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15531
15532# So? What about this header?
15533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15534 yes:no: )
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15536echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15538echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15539 ac_header_preproc=yes
15540 ;;
15541 no:yes:* )
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15543echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15545echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15547echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15549echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15553echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15554 (
15555 cat <<\_ASBOX
15556## ------------------------------------------ ##
15557## Report this to the AC_PACKAGE_NAME lists. ##
15558## ------------------------------------------ ##
15559_ASBOX
15560 ) |
15561 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15562 ;;
15563esac
b4e70030
JB
15564echo "$as_me:$LINENO: checking for $ac_header" >&5
15565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15566if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15567 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 15568else
bec39cab 15569 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 15570fi
b4e70030
JB
15571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15573
15574fi
15575if test `eval echo '${'$as_ac_Header'}'` = yes; then
15576 cat >>confdefs.h <<_ACEOF
15577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15578_ACEOF
15579
15580fi
15581
5ee754fc 15582done
c906108c 15583
bec39cab 15584
065a1afc 15585for ac_header in ncurses/term.h
3b78cdbb 15586do
bec39cab 15587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15588if eval "test \"\${$as_ac_Header+set}\" = set"; then
15589 echo "$as_me:$LINENO: checking for $ac_header" >&5
15590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15591if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15593fi
b4e70030
JB
15594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15596else
15597 # Is the header compilable?
b4e70030
JB
15598echo "$as_me:$LINENO: checking $ac_header usability" >&5
15599echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15600cat >conftest.$ac_ext <<_ACEOF
15601/* confdefs.h. */
15602_ACEOF
15603cat confdefs.h >>conftest.$ac_ext
15604cat >>conftest.$ac_ext <<_ACEOF
15605/* end confdefs.h. */
15606$ac_includes_default
15607#include <$ac_header>
15608_ACEOF
15609rm -f conftest.$ac_objext
15610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15611 (eval $ac_compile) 2>conftest.er1
15612 ac_status=$?
15613 grep -v '^ *+' conftest.er1 >conftest.err
15614 rm -f conftest.er1
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
b4e70030
JB
15618 { ac_try='test -z "$ac_c_werror_flag"
15619 || test ! -s conftest.err'
bec39cab
AC
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; } &&
15625 { ac_try='test -s conftest.$ac_objext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 ac_header_compiler=yes
15632else
15633 echo "$as_me: failed program was:" >&5
15634sed 's/^/| /' conftest.$ac_ext >&5
15635
b4e70030 15636ac_header_compiler=no
bec39cab
AC
15637fi
15638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15640echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15641
15642# Is the header present?
b4e70030
JB
15643echo "$as_me:$LINENO: checking $ac_header presence" >&5
15644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15645cat >conftest.$ac_ext <<_ACEOF
15646/* confdefs.h. */
15647_ACEOF
15648cat confdefs.h >>conftest.$ac_ext
15649cat >>conftest.$ac_ext <<_ACEOF
15650/* end confdefs.h. */
15651#include <$ac_header>
15652_ACEOF
15653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev/null; then
15661 if test -s conftest.err; then
15662 ac_cpp_err=$ac_c_preproc_warn_flag
15663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15664 else
15665 ac_cpp_err=
15666 fi
15667else
15668 ac_cpp_err=yes
3b78cdbb 15669fi
bec39cab
AC
15670if test -z "$ac_cpp_err"; then
15671 ac_header_preproc=yes
15672else
15673 echo "$as_me: failed program was:" >&5
15674sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 ac_header_preproc=no
3b78cdbb 15677fi
bec39cab 15678rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15680echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15681
15682# So? What about this header?
15683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15684 yes:no: )
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15689 ac_header_preproc=yes
15690 ;;
15691 no:yes:* )
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15704 (
15705 cat <<\_ASBOX
15706## ------------------------------------------ ##
15707## Report this to the AC_PACKAGE_NAME lists. ##
15708## ------------------------------------------ ##
15709_ASBOX
15710 ) |
15711 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15712 ;;
15713esac
b4e70030
JB
15714echo "$as_me:$LINENO: checking for $ac_header" >&5
15715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15716if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15717 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 15718else
bec39cab
AC
15719 eval "$as_ac_Header=\$ac_header_preproc"
15720fi
b4e70030
JB
15721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15723
3b78cdbb 15724fi
bec39cab
AC
15725if test `eval echo '${'$as_ac_Header'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15728_ACEOF
15729
15730fi
15731
3b78cdbb
DA
15732done
15733
c906108c 15734
065a1afc
JB
15735for ac_header in term.h
15736do
15737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15738echo "$as_me:$LINENO: checking for $ac_header" >&5
15739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15740if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742else
15743 cat >conftest.$ac_ext <<_ACEOF
15744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
15749#if HAVE_CURSES_H
15750# include <curses.h>
15751#endif
15752
15753
15754#include <$ac_header>
15755_ACEOF
15756rm -f conftest.$ac_objext
15757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>conftest.er1
15759 ac_status=$?
15760 grep -v '^ *+' conftest.er1 >conftest.err
15761 rm -f conftest.er1
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
b4e70030
JB
15765 { ac_try='test -z "$ac_c_werror_flag"
15766 || test ! -s conftest.err'
065a1afc
JB
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 eval "$as_ac_Header=yes"
15779else
15780 echo "$as_me: failed program was:" >&5
15781sed 's/^/| /' conftest.$ac_ext >&5
15782
b4e70030 15783eval "$as_ac_Header=no"
065a1afc
JB
15784fi
15785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15786fi
b4e70030
JB
15787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
15789if test `eval echo '${'$as_ac_Header'}'` = yes; then
15790 cat >>confdefs.h <<_ACEOF
15791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15792_ACEOF
15793
15794fi
15795
15796done
15797
15798
d542061a
UW
15799# Check for HP/UX 64-bit shared library support
15800
15801for ac_header in elf_hp.h
15802do
15803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15804if eval "test \"\${$as_ac_Header+set}\" = set"; then
15805 echo "$as_me:$LINENO: checking for $ac_header" >&5
15806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15807if eval "test \"\${$as_ac_Header+set}\" = set"; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15809fi
15810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15812else
15813 # Is the header compilable?
15814echo "$as_me:$LINENO: checking $ac_header usability" >&5
15815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15816cat >conftest.$ac_ext <<_ACEOF
15817/* confdefs.h. */
15818_ACEOF
15819cat confdefs.h >>conftest.$ac_ext
15820cat >>conftest.$ac_ext <<_ACEOF
15821/* end confdefs.h. */
15822$ac_includes_default
15823#include <$ac_header>
15824_ACEOF
15825rm -f conftest.$ac_objext
15826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827 (eval $ac_compile) 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
15834 { ac_try='test -z "$ac_c_werror_flag"
15835 || test ! -s conftest.err'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest.$ac_objext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_header_compiler=yes
15848else
15849 echo "$as_me: failed program was:" >&5
15850sed 's/^/| /' conftest.$ac_ext >&5
15851
15852ac_header_compiler=no
15853fi
15854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15856echo "${ECHO_T}$ac_header_compiler" >&6
15857
15858# Is the header present?
15859echo "$as_me:$LINENO: checking $ac_header presence" >&5
15860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15861cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h. */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
15867#include <$ac_header>
15868_ACEOF
15869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15871 ac_status=$?
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } >/dev/null; then
15877 if test -s conftest.err; then
15878 ac_cpp_err=$ac_c_preproc_warn_flag
15879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15880 else
15881 ac_cpp_err=
15882 fi
15883else
15884 ac_cpp_err=yes
15885fi
15886if test -z "$ac_cpp_err"; then
15887 ac_header_preproc=yes
15888else
15889 echo "$as_me: failed program was:" >&5
15890sed 's/^/| /' conftest.$ac_ext >&5
15891
15892 ac_header_preproc=no
15893fi
15894rm -f conftest.err conftest.$ac_ext
15895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15896echo "${ECHO_T}$ac_header_preproc" >&6
15897
15898# So? What about this header?
15899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15900 yes:no: )
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15905 ac_header_preproc=yes
15906 ;;
15907 no:yes:* )
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15915echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15920 (
15921 cat <<\_ASBOX
15922## ------------------------------------------ ##
15923## Report this to the AC_PACKAGE_NAME lists. ##
15924## ------------------------------------------ ##
15925_ASBOX
15926 ) |
15927 sed "s/^/$as_me: WARNING: /" >&2
15928 ;;
15929esac
15930echo "$as_me:$LINENO: checking for $ac_header" >&5
15931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15932if eval "test \"\${$as_ac_Header+set}\" = set"; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15934else
15935 eval "$as_ac_Header=\$ac_header_preproc"
15936fi
15937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15939
15940fi
15941if test `eval echo '${'$as_ac_Header'}'` = yes; then
15942 cat >>confdefs.h <<_ACEOF
15943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15944_ACEOF
15945
15946fi
15947
15948done
15949
15950
5ee754fc
MK
15951# FIXME: kettenis/20030102: In most cases we include these
15952# unconditionally, so what's the point in checking these?
bec39cab
AC
15953
15954
15955for ac_header in ctype.h time.h
c906108c 15956do
bec39cab 15957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15958if eval "test \"\${$as_ac_Header+set}\" = set"; then
15959 echo "$as_me:$LINENO: checking for $ac_header" >&5
15960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15961if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15963fi
b4e70030
JB
15964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15966else
15967 # Is the header compilable?
b4e70030
JB
15968echo "$as_me:$LINENO: checking $ac_header usability" >&5
15969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15970cat >conftest.$ac_ext <<_ACEOF
15971/* confdefs.h. */
15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h. */
15976$ac_includes_default
15977#include <$ac_header>
15978_ACEOF
15979rm -f conftest.$ac_objext
15980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981 (eval $ac_compile) 2>conftest.er1
15982 ac_status=$?
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
b4e70030
JB
15988 { ac_try='test -z "$ac_c_werror_flag"
15989 || test ! -s conftest.err'
bec39cab
AC
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_header_compiler=yes
16002else
16003 echo "$as_me: failed program was:" >&5
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
b4e70030 16006ac_header_compiler=no
bec39cab
AC
16007fi
16008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16010echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16011
16012# Is the header present?
b4e70030
JB
16013echo "$as_me:$LINENO: checking $ac_header presence" >&5
16014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16015cat >conftest.$ac_ext <<_ACEOF
16016/* confdefs.h. */
16017_ACEOF
16018cat confdefs.h >>conftest.$ac_ext
16019cat >>conftest.$ac_ext <<_ACEOF
16020/* end confdefs.h. */
16021#include <$ac_header>
16022_ACEOF
16023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16025 ac_status=$?
16026 grep -v '^ *+' conftest.er1 >conftest.err
16027 rm -f conftest.er1
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } >/dev/null; then
16031 if test -s conftest.err; then
16032 ac_cpp_err=$ac_c_preproc_warn_flag
16033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16034 else
16035 ac_cpp_err=
16036 fi
16037else
16038 ac_cpp_err=yes
c906108c 16039fi
bec39cab
AC
16040if test -z "$ac_cpp_err"; then
16041 ac_header_preproc=yes
16042else
16043 echo "$as_me: failed program was:" >&5
16044sed 's/^/| /' conftest.$ac_ext >&5
16045
16046 ac_header_preproc=no
c906108c 16047fi
bec39cab 16048rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16050echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
16051
16052# So? What about this header?
16053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16054 yes:no: )
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16059 ac_header_preproc=yes
16060 ;;
16061 no:yes:* )
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16074 (
16075 cat <<\_ASBOX
16076## ------------------------------------------ ##
16077## Report this to the AC_PACKAGE_NAME lists. ##
16078## ------------------------------------------ ##
16079_ASBOX
16080 ) |
16081 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16082 ;;
16083esac
b4e70030
JB
16084echo "$as_me:$LINENO: checking for $ac_header" >&5
16085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16086if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16087 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 16088else
bec39cab
AC
16089 eval "$as_ac_Header=\$ac_header_preproc"
16090fi
b4e70030
JB
16091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16093
16094fi
16095if test `eval echo '${'$as_ac_Header'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16098_ACEOF
16099
c906108c 16100fi
bec39cab 16101
c906108c
SS
16102done
16103
5ee754fc 16104
d5af19ba
DJ
16105# ------------------------- #
16106# Checks for declarations. #
16107# ------------------------- #
4e8d927d 16108
d5af19ba
DJ
16109echo "$as_me:$LINENO: checking whether free is declared" >&5
16110echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16111if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 16112 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 16113else
bec39cab
AC
16114 cat >conftest.$ac_ext <<_ACEOF
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
d5af19ba 16120$ac_includes_default
bec39cab
AC
16121int
16122main ()
16123{
d5af19ba
DJ
16124#ifndef free
16125 char *p = (char *) free;
16126#endif
16127
4e8d927d 16128 ;
bec39cab
AC
16129 return 0;
16130}
16131_ACEOF
16132rm -f conftest.$ac_objext
16133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
b4e70030
JB
16141 { ac_try='test -z "$ac_c_werror_flag"
16142 || test ! -s conftest.err'
bec39cab
AC
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
d5af19ba 16154 ac_cv_have_decl_free=yes
40a7debc 16155else
bec39cab
AC
16156 echo "$as_me: failed program was:" >&5
16157sed 's/^/| /' conftest.$ac_ext >&5
16158
d5af19ba 16159ac_cv_have_decl_free=no
40a7debc 16160fi
bec39cab 16161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 16162fi
d5af19ba
DJ
16163echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16164echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16165if test $ac_cv_have_decl_free = yes; then
16166
16167cat >>confdefs.h <<_ACEOF
16168#define HAVE_DECL_FREE 1
16169_ACEOF
16170
16171
666ec76f 16172else
d5af19ba
DJ
16173 cat >>confdefs.h <<_ACEOF
16174#define HAVE_DECL_FREE 0
16175_ACEOF
16176
4e8d927d 16177
d5af19ba
DJ
16178fi
16179echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16180echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16181if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16183else
16184 cat >conftest.$ac_ext <<_ACEOF
16185/* confdefs.h. */
16186_ACEOF
16187cat confdefs.h >>conftest.$ac_ext
16188cat >>conftest.$ac_ext <<_ACEOF
16189/* end confdefs.h. */
d5af19ba 16190$ac_includes_default
666ec76f
MK
16191int
16192main ()
16193{
d5af19ba
DJ
16194#ifndef malloc
16195 char *p = (char *) malloc;
16196#endif
16197
666ec76f
MK
16198 ;
16199 return 0;
16200}
16201_ACEOF
16202rm -f conftest.$ac_objext
16203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
b4e70030
JB
16211 { ac_try='test -z "$ac_c_werror_flag"
16212 || test ! -s conftest.err'
666ec76f
MK
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest.$ac_objext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
d5af19ba 16224 ac_cv_have_decl_malloc=yes
666ec76f
MK
16225else
16226 echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16228
d5af19ba 16229ac_cv_have_decl_malloc=no
a3828db0
MK
16230fi
16231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16232fi
d5af19ba
DJ
16233echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16234echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16235if test $ac_cv_have_decl_malloc = yes; then
16236
16237cat >>confdefs.h <<_ACEOF
16238#define HAVE_DECL_MALLOC 1
16239_ACEOF
16240
16241
a3828db0 16242else
d5af19ba
DJ
16243 cat >>confdefs.h <<_ACEOF
16244#define HAVE_DECL_MALLOC 0
16245_ACEOF
16246
4e8d927d 16247
d5af19ba
DJ
16248fi
16249echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16250echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16251if test "${ac_cv_have_decl_realloc+set}" = set; then
a3828db0
MK
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16253else
16254 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
16255/* confdefs.h. */
16256_ACEOF
16257cat confdefs.h >>conftest.$ac_ext
16258cat >>conftest.$ac_ext <<_ACEOF
16259/* end confdefs.h. */
d5af19ba 16260$ac_includes_default
bec39cab
AC
16261int
16262main ()
16263{
d5af19ba
DJ
16264#ifndef realloc
16265 char *p = (char *) realloc;
16266#endif
16267
bec39cab
AC
16268 ;
16269 return 0;
16270}
16271_ACEOF
16272rm -f conftest.$ac_objext
16273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>conftest.er1
16275 ac_status=$?
16276 grep -v '^ *+' conftest.er1 >conftest.err
16277 rm -f conftest.er1
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
b4e70030
JB
16281 { ac_try='test -z "$ac_c_werror_flag"
16282 || test ! -s conftest.err'
bec39cab
AC
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest.$ac_objext'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
d5af19ba 16294 ac_cv_have_decl_realloc=yes
b9362cc7 16295else
bec39cab
AC
16296 echo "$as_me: failed program was:" >&5
16297sed 's/^/| /' conftest.$ac_ext >&5
16298
d5af19ba 16299ac_cv_have_decl_realloc=no
4e8d927d 16300fi
4e8d927d
DJ
16301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16302fi
b4e70030
JB
16303echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16304echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
16305if test $ac_cv_have_decl_realloc = yes; then
16306
16307cat >>confdefs.h <<_ACEOF
16308#define HAVE_DECL_REALLOC 1
16309_ACEOF
16310
16311
16312else
16313 cat >>confdefs.h <<_ACEOF
16314#define HAVE_DECL_REALLOC 0
16315_ACEOF
16316
16317
16318fi
16319
16320
b4e70030
JB
16321echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16322echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
16323if test "${ac_cv_have_decl_strerror+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16325else
16326 cat >conftest.$ac_ext <<_ACEOF
16327/* confdefs.h. */
16328_ACEOF
16329cat confdefs.h >>conftest.$ac_ext
16330cat >>conftest.$ac_ext <<_ACEOF
16331/* end confdefs.h. */
16332$ac_includes_default
16333int
16334main ()
16335{
16336#ifndef strerror
16337 char *p = (char *) strerror;
4e8d927d
DJ
16338#endif
16339
16340 ;
16341 return 0;
16342}
16343_ACEOF
16344rm -f conftest.$ac_objext
16345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346 (eval $ac_compile) 2>conftest.er1
16347 ac_status=$?
16348 grep -v '^ *+' conftest.er1 >conftest.err
16349 rm -f conftest.er1
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
b4e70030
JB
16353 { ac_try='test -z "$ac_c_werror_flag"
16354 || test ! -s conftest.err'
4e8d927d
DJ
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_cv_have_decl_strerror=yes
16367else
16368 echo "$as_me: failed program was:" >&5
16369sed 's/^/| /' conftest.$ac_ext >&5
16370
b4e70030 16371ac_cv_have_decl_strerror=no
4e8d927d 16372fi
4e8d927d
DJ
16373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16374fi
b4e70030
JB
16375echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16376echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
16377if test $ac_cv_have_decl_strerror = yes; then
16378
16379cat >>confdefs.h <<_ACEOF
16380#define HAVE_DECL_STRERROR 1
16381_ACEOF
16382
16383
16384else
16385 cat >>confdefs.h <<_ACEOF
16386#define HAVE_DECL_STRERROR 0
16387_ACEOF
16388
16389
16390fi
b4e70030
JB
16391echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16392echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
16393if test "${ac_cv_have_decl_strstr+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16395else
16396 cat >conftest.$ac_ext <<_ACEOF
16397/* confdefs.h. */
16398_ACEOF
16399cat confdefs.h >>conftest.$ac_ext
16400cat >>conftest.$ac_ext <<_ACEOF
16401/* end confdefs.h. */
16402$ac_includes_default
16403int
16404main ()
16405{
16406#ifndef strstr
16407 char *p = (char *) strstr;
4e8d927d
DJ
16408#endif
16409
16410 ;
16411 return 0;
16412}
16413_ACEOF
16414rm -f conftest.$ac_objext
16415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>conftest.er1
16417 ac_status=$?
16418 grep -v '^ *+' conftest.er1 >conftest.err
16419 rm -f conftest.er1
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
b4e70030
JB
16423 { ac_try='test -z "$ac_c_werror_flag"
16424 || test ! -s conftest.err'
4e8d927d
DJ
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_have_decl_strstr=yes
16437else
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
b4e70030 16441ac_cv_have_decl_strstr=no
4e8d927d 16442fi
4e8d927d
DJ
16443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16444fi
b4e70030
JB
16445echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16446echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
16447if test $ac_cv_have_decl_strstr = yes; then
16448
16449cat >>confdefs.h <<_ACEOF
16450#define HAVE_DECL_STRSTR 1
16451_ACEOF
16452
16453
16454else
16455 cat >>confdefs.h <<_ACEOF
16456#define HAVE_DECL_STRSTR 0
16457_ACEOF
16458
16459
16460fi
16461
16462
b4e70030
JB
16463echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16464echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
16465if test "${ac_cv_have_decl_getopt+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467else
16468 cat >conftest.$ac_ext <<_ACEOF
16469/* confdefs.h. */
16470_ACEOF
16471cat confdefs.h >>conftest.$ac_ext
16472cat >>conftest.$ac_ext <<_ACEOF
16473/* end confdefs.h. */
16474$ac_includes_default
16475int
16476main ()
16477{
16478#ifndef getopt
16479 char *p = (char *) getopt;
4e8d927d
DJ
16480#endif
16481
16482 ;
16483 return 0;
16484}
16485_ACEOF
16486rm -f conftest.$ac_objext
16487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16489 ac_status=$?
16490 grep -v '^ *+' conftest.er1 >conftest.err
16491 rm -f conftest.er1
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
b4e70030
JB
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
4e8d927d
DJ
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_cv_have_decl_getopt=yes
16509else
16510 echo "$as_me: failed program was:" >&5
16511sed 's/^/| /' conftest.$ac_ext >&5
16512
b4e70030 16513ac_cv_have_decl_getopt=no
4e8d927d 16514fi
4e8d927d
DJ
16515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16516fi
b4e70030
JB
16517echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16518echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
16519if test $ac_cv_have_decl_getopt = yes; then
16520
16521cat >>confdefs.h <<_ACEOF
16522#define HAVE_DECL_GETOPT 1
16523_ACEOF
16524
16525
16526else
16527 cat >>confdefs.h <<_ACEOF
16528#define HAVE_DECL_GETOPT 0
16529_ACEOF
16530
16531
16532fi
b4e70030
JB
16533echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16534echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16535if test "${ac_cv_have_decl_snprintf+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537else
16538 cat >conftest.$ac_ext <<_ACEOF
16539/* confdefs.h. */
16540_ACEOF
16541cat confdefs.h >>conftest.$ac_ext
16542cat >>conftest.$ac_ext <<_ACEOF
16543/* end confdefs.h. */
16544$ac_includes_default
16545int
16546main ()
16547{
16548#ifndef snprintf
16549 char *p = (char *) snprintf;
4e8d927d
DJ
16550#endif
16551
16552 ;
16553 return 0;
16554}
16555_ACEOF
16556rm -f conftest.$ac_objext
16557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16558 (eval $ac_compile) 2>conftest.er1
16559 ac_status=$?
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
b4e70030
JB
16565 { ac_try='test -z "$ac_c_werror_flag"
16566 || test ! -s conftest.err'
4e8d927d
DJ
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest.$ac_objext'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_cv_have_decl_snprintf=yes
16579else
16580 echo "$as_me: failed program was:" >&5
16581sed 's/^/| /' conftest.$ac_ext >&5
16582
b4e70030 16583ac_cv_have_decl_snprintf=no
4e8d927d 16584fi
4e8d927d
DJ
16585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16586fi
b4e70030
JB
16587echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16588echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
16589if test $ac_cv_have_decl_snprintf = yes; then
16590
16591cat >>confdefs.h <<_ACEOF
16592#define HAVE_DECL_SNPRINTF 1
16593_ACEOF
16594
16595
16596else
16597 cat >>confdefs.h <<_ACEOF
16598#define HAVE_DECL_SNPRINTF 0
16599_ACEOF
16600
16601
16602fi
b4e70030
JB
16603echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16604echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16605if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607else
16608 cat >conftest.$ac_ext <<_ACEOF
16609/* confdefs.h. */
16610_ACEOF
16611cat confdefs.h >>conftest.$ac_ext
16612cat >>conftest.$ac_ext <<_ACEOF
16613/* end confdefs.h. */
16614$ac_includes_default
16615int
16616main ()
16617{
16618#ifndef vsnprintf
16619 char *p = (char *) vsnprintf;
4e8d927d
DJ
16620#endif
16621
16622 ;
16623 return 0;
16624}
16625_ACEOF
16626rm -f conftest.$ac_objext
16627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>conftest.er1
16629 ac_status=$?
16630 grep -v '^ *+' conftest.er1 >conftest.err
16631 rm -f conftest.er1
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
b4e70030
JB
16635 { ac_try='test -z "$ac_c_werror_flag"
16636 || test ! -s conftest.err'
4e8d927d
DJ
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_cv_have_decl_vsnprintf=yes
16649else
16650 echo "$as_me: failed program was:" >&5
16651sed 's/^/| /' conftest.$ac_ext >&5
16652
b4e70030 16653ac_cv_have_decl_vsnprintf=no
4e8d927d 16654fi
4e8d927d
DJ
16655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16656fi
b4e70030
JB
16657echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16658echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
16659if test $ac_cv_have_decl_vsnprintf = yes; then
16660
16661cat >>confdefs.h <<_ACEOF
16662#define HAVE_DECL_VSNPRINTF 1
16663_ACEOF
16664
16665
16666else
16667 cat >>confdefs.h <<_ACEOF
16668#define HAVE_DECL_VSNPRINTF 0
16669_ACEOF
16670
16671
16672fi
16673
16674
16675
16676# ----------------------- #
16677# Checks for structures. #
16678# ----------------------- #
16679
b4e70030
JB
16680echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16681echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
16682if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684else
16685 cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
16691$ac_includes_default
16692int
16693main ()
16694{
16695static struct stat ac_aggr;
16696if (ac_aggr.st_blocks)
16697return 0;
16698 ;
16699 return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext
16703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704 (eval $ac_compile) 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
b4e70030
JB
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
4e8d927d
DJ
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_member_struct_stat_st_blocks=yes
16725else
16726 echo "$as_me: failed program was:" >&5
16727sed 's/^/| /' conftest.$ac_ext >&5
16728
b4e70030 16729cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
16730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
16735$ac_includes_default
16736int
16737main ()
16738{
16739static struct stat ac_aggr;
16740if (sizeof ac_aggr.st_blocks)
16741return 0;
16742 ;
16743 return 0;
16744}
16745_ACEOF
16746rm -f conftest.$ac_objext
16747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748 (eval $ac_compile) 2>conftest.er1
16749 ac_status=$?
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
b4e70030
JB
16755 { ac_try='test -z "$ac_c_werror_flag"
16756 || test ! -s conftest.err'
4e8d927d
DJ
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest.$ac_objext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_cv_member_struct_stat_st_blocks=yes
16769else
16770 echo "$as_me: failed program was:" >&5
16771sed 's/^/| /' conftest.$ac_ext >&5
16772
b4e70030 16773ac_cv_member_struct_stat_st_blocks=no
4e8d927d 16774fi
4e8d927d
DJ
16775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16776fi
4e8d927d
DJ
16777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16778fi
b4e70030
JB
16779echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16780echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
16781if test $ac_cv_member_struct_stat_st_blocks = yes; then
16782
16783cat >>confdefs.h <<_ACEOF
16784#define HAVE_STRUCT_STAT_ST_BLOCKS 1
16785_ACEOF
16786
16787
16788fi
16789
b4e70030
JB
16790echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16791echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
16792if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16794else
16795 cat >conftest.$ac_ext <<_ACEOF
16796/* confdefs.h. */
16797_ACEOF
16798cat confdefs.h >>conftest.$ac_ext
16799cat >>conftest.$ac_ext <<_ACEOF
16800/* end confdefs.h. */
16801$ac_includes_default
16802int
16803main ()
16804{
16805static struct stat ac_aggr;
16806if (ac_aggr.st_blksize)
16807return 0;
16808 ;
16809 return 0;
16810}
16811_ACEOF
16812rm -f conftest.$ac_objext
16813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
b4e70030
JB
16821 { ac_try='test -z "$ac_c_werror_flag"
16822 || test ! -s conftest.err'
4e8d927d
DJ
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; } &&
16828 { ac_try='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_member_struct_stat_st_blksize=yes
16835else
16836 echo "$as_me: failed program was:" >&5
16837sed 's/^/| /' conftest.$ac_ext >&5
16838
b4e70030 16839cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
16840/* confdefs.h. */
16841_ACEOF
16842cat confdefs.h >>conftest.$ac_ext
16843cat >>conftest.$ac_ext <<_ACEOF
16844/* end confdefs.h. */
16845$ac_includes_default
16846int
16847main ()
16848{
16849static struct stat ac_aggr;
16850if (sizeof ac_aggr.st_blksize)
16851return 0;
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext
16857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
b4e70030
JB
16865 { ac_try='test -z "$ac_c_werror_flag"
16866 || test ! -s conftest.err'
4e8d927d
DJ
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_cv_member_struct_stat_st_blksize=yes
16879else
16880 echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
b4e70030 16883ac_cv_member_struct_stat_st_blksize=no
4e8d927d 16884fi
4e8d927d
DJ
16885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16886fi
4e8d927d
DJ
16887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16888fi
b4e70030
JB
16889echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16890echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
16891if test $ac_cv_member_struct_stat_st_blksize = yes; then
16892
16893cat >>confdefs.h <<_ACEOF
16894#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16895_ACEOF
16896
16897
16898fi
16899
16900
16901# ------------------ #
16902# Checks for types. #
16903# ------------------ #
16904
b4e70030
JB
16905echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16906echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
16907if test "${ac_cv_type_signal+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909else
16910 cat >conftest.$ac_ext <<_ACEOF
16911/* confdefs.h. */
16912_ACEOF
16913cat confdefs.h >>conftest.$ac_ext
16914cat >>conftest.$ac_ext <<_ACEOF
16915/* end confdefs.h. */
16916#include <sys/types.h>
16917#include <signal.h>
b4e70030
JB
16918#ifdef signal
16919# undef signal
16920#endif
16921#ifdef __cplusplus
16922extern "C" void (*signal (int, void (*)(int)))(int);
16923#else
16924void (*signal ()) ();
16925#endif
4e8d927d
DJ
16926
16927int
16928main ()
16929{
b4e70030 16930int i;
4e8d927d
DJ
16931 ;
16932 return 0;
16933}
16934_ACEOF
16935rm -f conftest.$ac_objext
16936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16937 (eval $ac_compile) 2>conftest.er1
16938 ac_status=$?
16939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
b4e70030
JB
16944 { ac_try='test -z "$ac_c_werror_flag"
16945 || test ! -s conftest.err'
4e8d927d
DJ
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
b4e70030 16957 ac_cv_type_signal=void
4e8d927d
DJ
16958else
16959 echo "$as_me: failed program was:" >&5
16960sed 's/^/| /' conftest.$ac_ext >&5
16961
b4e70030 16962ac_cv_type_signal=int
4e8d927d 16963fi
4e8d927d
DJ
16964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16965fi
b4e70030
JB
16966echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16967echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
16968
16969cat >>confdefs.h <<_ACEOF
16970#define RETSIGTYPE $ac_cv_type_signal
16971_ACEOF
16972
16973
b4e70030
JB
16974echo "$as_me:$LINENO: checking for socklen_t" >&5
16975echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
16976if test "${ac_cv_type_socklen_t+set}" = set; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16978else
16979 cat >conftest.$ac_ext <<_ACEOF
16980/* confdefs.h. */
16981_ACEOF
16982cat confdefs.h >>conftest.$ac_ext
16983cat >>conftest.$ac_ext <<_ACEOF
16984/* end confdefs.h. */
16985#include <sys/types.h>
16986#include <sys/socket.h>
16987
16988
4e8d927d
DJ
16989int
16990main ()
16991{
b4e70030 16992if ((socklen_t *) 0)
4e8d927d 16993 return 0;
b4e70030 16994if (sizeof (socklen_t))
4e8d927d
DJ
16995 return 0;
16996 ;
16997 return 0;
16998}
16999_ACEOF
17000rm -f conftest.$ac_objext
17001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17002 (eval $ac_compile) 2>conftest.er1
17003 ac_status=$?
17004 grep -v '^ *+' conftest.er1 >conftest.err
17005 rm -f conftest.er1
17006 cat conftest.err >&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); } &&
b4e70030
JB
17009 { ac_try='test -z "$ac_c_werror_flag"
17010 || test ! -s conftest.err'
4e8d927d
DJ
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; } &&
17016 { ac_try='test -s conftest.$ac_objext'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_type_socklen_t=yes
17023else
17024 echo "$as_me: failed program was:" >&5
17025sed 's/^/| /' conftest.$ac_ext >&5
17026
b4e70030 17027ac_cv_type_socklen_t=no
4e8d927d 17028fi
4e8d927d
DJ
17029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17030fi
b4e70030
JB
17031echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17032echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
17033if test $ac_cv_type_socklen_t = yes; then
17034
17035cat >>confdefs.h <<_ACEOF
17036#define HAVE_SOCKLEN_T 1
17037_ACEOF
17038
17039
4e8d927d
DJ
17040fi
17041
17042
17043# ------------------------------------- #
17044# Checks for compiler characteristics. #
17045# ------------------------------------- #
17046
b4e70030
JB
17047echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17048echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
17049if test "${ac_cv_c_const+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052 cat >conftest.$ac_ext <<_ACEOF
17053/* confdefs.h. */
17054_ACEOF
17055cat confdefs.h >>conftest.$ac_ext
17056cat >>conftest.$ac_ext <<_ACEOF
17057/* end confdefs.h. */
17058
17059int
17060main ()
17061{
17062/* FIXME: Include the comments suggested by Paul. */
17063#ifndef __cplusplus
17064 /* Ultrix mips cc rejects this. */
17065 typedef int charset[2];
17066 const charset x;
17067 /* SunOS 4.1.1 cc rejects this. */
17068 char const *const *ccp;
17069 char **p;
17070 /* NEC SVR4.0.2 mips cc rejects this. */
17071 struct point {int x, y;};
17072 static struct point const zero = {0,0};
17073 /* AIX XL C 1.02.0.0 rejects this.
17074 It does not let you subtract one const X* pointer from another in
17075 an arm of an if-expression whose if-part is not a constant
17076 expression */
17077 const char *g = "string";
17078 ccp = &g + (g ? g-g : 0);
17079 /* HPUX 7.0 cc rejects these. */
17080 ++ccp;
17081 p = (char**) ccp;
17082 ccp = (char const *const *) p;
17083 { /* SCO 3.2v4 cc rejects this. */
17084 char *t;
17085 char const *s = 0 ? (char *) 0 : (char const *) 0;
17086
17087 *t++ = 0;
4e8d927d
DJ
17088 }
17089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17090 int x[] = {25, 17};
17091 const int *foo = &x[0];
17092 ++foo;
17093 }
17094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17095 typedef const int *iptr;
17096 iptr p = 0;
17097 ++p;
17098 }
17099 { /* AIX XL C 1.02.0.0 rejects this saying
17100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17101 struct s { int j; const int *ap[3]; };
17102 struct s *b; b->j = 5;
17103 }
17104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17105 const int foo = 10;
4e8d927d 17106 }
4e8d927d
DJ
17107#endif
17108
17109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext
17114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115 (eval $ac_compile) 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
b4e70030
JB
17122 { ac_try='test -z "$ac_c_werror_flag"
17123 || test ! -s conftest.err'
4e8d927d
DJ
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest.$ac_objext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_c_const=yes
17136else
17137 echo "$as_me: failed program was:" >&5
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
b4e70030 17140ac_cv_c_const=no
4e8d927d 17141fi
4e8d927d
DJ
17142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17143fi
b4e70030
JB
17144echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17145echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
17146if test $ac_cv_c_const = no; then
17147
17148cat >>confdefs.h <<\_ACEOF
17149#define const
17150_ACEOF
17151
17152fi
17153
b4e70030
JB
17154echo "$as_me:$LINENO: checking for inline" >&5
17155echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
17156if test "${ac_cv_c_inline+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17158else
17159 ac_cv_c_inline=no
17160for ac_kw in inline __inline__ __inline; do
17161 cat >conftest.$ac_ext <<_ACEOF
17162/* confdefs.h. */
17163_ACEOF
17164cat confdefs.h >>conftest.$ac_ext
17165cat >>conftest.$ac_ext <<_ACEOF
17166/* end confdefs.h. */
17167#ifndef __cplusplus
17168typedef int foo_t;
17169static $ac_kw foo_t static_foo () {return 0; }
17170$ac_kw foo_t foo () {return 0; }
17171#endif
17172
17173_ACEOF
17174rm -f conftest.$ac_objext
17175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17176 (eval $ac_compile) 2>conftest.er1
17177 ac_status=$?
17178 grep -v '^ *+' conftest.er1 >conftest.err
17179 rm -f conftest.er1
17180 cat conftest.err >&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } &&
b4e70030
JB
17183 { ac_try='test -z "$ac_c_werror_flag"
17184 || test ! -s conftest.err'
4e8d927d
DJ
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest.$ac_objext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
b4e70030 17196 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
17197else
17198 echo "$as_me: failed program was:" >&5
17199sed 's/^/| /' conftest.$ac_ext >&5
17200
4e8d927d 17201fi
4e8d927d 17202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
17203done
17204
17205fi
b4e70030
JB
17206echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17207echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 17208
bec39cab 17209
a3828db0
MK
17210case $ac_cv_c_inline in
17211 inline | yes) ;;
17212 *)
17213 case $ac_cv_c_inline in
17214 no) ac_val=;;
17215 *) ac_val=$ac_cv_c_inline;;
17216 esac
17217 cat >>confdefs.h <<_ACEOF
17218#ifndef __cplusplus
17219#define inline $ac_val
17220#endif
17221_ACEOF
bec39cab
AC
17222 ;;
17223esac
bec39cab 17224
9b913628
TJB
17225echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17226echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17227if test "${ac_cv_c_bigendian+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229else
17230 # See if sys/param.h defines the BYTE_ORDER macro.
17231cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
17237#include <sys/types.h>
17238#include <sys/param.h>
17239
17240int
17241main ()
17242{
17243#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17244 bogus endian macros
17245#endif
17246
17247 ;
17248 return 0;
17249}
17250_ACEOF
17251rm -f conftest.$ac_objext
17252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17253 (eval $ac_compile) 2>conftest.er1
17254 ac_status=$?
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -z "$ac_c_werror_flag"
17261 || test ! -s conftest.err'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest.$ac_objext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 # It does; now see whether it defined to BIG_ENDIAN or not.
17274cat >conftest.$ac_ext <<_ACEOF
17275/* confdefs.h. */
17276_ACEOF
17277cat confdefs.h >>conftest.$ac_ext
17278cat >>conftest.$ac_ext <<_ACEOF
17279/* end confdefs.h. */
17280#include <sys/types.h>
17281#include <sys/param.h>
17282
17283int
17284main ()
17285{
17286#if BYTE_ORDER != BIG_ENDIAN
17287 not big endian
17288#endif
17289
17290 ;
17291 return 0;
17292}
17293_ACEOF
17294rm -f conftest.$ac_objext
17295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296 (eval $ac_compile) 2>conftest.er1
17297 ac_status=$?
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
17303 { ac_try='test -z "$ac_c_werror_flag"
17304 || test ! -s conftest.err'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest.$ac_objext'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
17316 ac_cv_c_bigendian=yes
17317else
17318 echo "$as_me: failed program was:" >&5
17319sed 's/^/| /' conftest.$ac_ext >&5
17320
17321ac_cv_c_bigendian=no
17322fi
17323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17324else
17325 echo "$as_me: failed program was:" >&5
17326sed 's/^/| /' conftest.$ac_ext >&5
17327
17328# It does not; compile a test program.
17329if test "$cross_compiling" = yes; then
17330 # try to guess the endianness by grepping values into an object file
17331 ac_cv_c_bigendian=unknown
17332 cat >conftest.$ac_ext <<_ACEOF
17333/* confdefs.h. */
17334_ACEOF
17335cat confdefs.h >>conftest.$ac_ext
17336cat >>conftest.$ac_ext <<_ACEOF
17337/* end confdefs.h. */
17338short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17339short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17340void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17341short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17342short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17343void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17344int
17345main ()
17346{
17347 _ascii (); _ebcdic ();
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext
17353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354 (eval $ac_compile) 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag"
17362 || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest.$ac_objext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17375 ac_cv_c_bigendian=yes
17376fi
17377if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17378 if test "$ac_cv_c_bigendian" = unknown; then
17379 ac_cv_c_bigendian=no
17380 else
17381 # finding both strings is unlikely to happen, but who knows?
17382 ac_cv_c_bigendian=unknown
17383 fi
17384fi
17385else
17386 echo "$as_me: failed program was:" >&5
17387sed 's/^/| /' conftest.$ac_ext >&5
17388
17389fi
17390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17391else
17392 cat >conftest.$ac_ext <<_ACEOF
17393/* confdefs.h. */
17394_ACEOF
17395cat confdefs.h >>conftest.$ac_ext
17396cat >>conftest.$ac_ext <<_ACEOF
17397/* end confdefs.h. */
17398int
17399main ()
17400{
17401 /* Are we little or big endian? From Harbison&Steele. */
17402 union
17403 {
17404 long l;
17405 char c[sizeof (long)];
17406 } u;
17407 u.l = 1;
17408 exit (u.c[sizeof (long) - 1] == 1);
17409}
17410_ACEOF
17411rm -f conftest$ac_exeext
17412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17413 (eval $ac_link) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_c_bigendian=no
17423else
17424 echo "$as_me: program exited with status $ac_status" >&5
17425echo "$as_me: failed program was:" >&5
17426sed 's/^/| /' conftest.$ac_ext >&5
17427
17428( exit $ac_status )
17429ac_cv_c_bigendian=yes
17430fi
17431rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17432fi
17433fi
17434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17435fi
17436echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17437echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17438case $ac_cv_c_bigendian in
17439 yes)
17440
17441cat >>confdefs.h <<\_ACEOF
17442#define WORDS_BIGENDIAN 1
17443_ACEOF
17444 ;;
17445 no)
17446 ;;
17447 *)
17448 { { echo "$as_me:$LINENO: error: unknown endianness
17449presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17450echo "$as_me: error: unknown endianness
17451presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17452 { (exit 1); exit 1; }; } ;;
17453esac
17454
74c1b268 17455
a3828db0
MK
17456# ------------------------------ #
17457# Checks for library functions. #
17458# ------------------------------ #
bec39cab 17459
a3828db0
MK
17460# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17461# for constant arguments. Useless!
b4e70030
JB
17462echo "$as_me:$LINENO: checking for working alloca.h" >&5
17463echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 17464if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466else
17467 cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
a3828db0 17473#include <alloca.h>
bec39cab
AC
17474int
17475main ()
17476{
a3828db0 17477char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext conftest$ac_exeext
17483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>conftest.er1
17485 ac_status=$?
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
b4e70030
JB
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
bec39cab
AC
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
a3828db0 17504 ac_cv_working_alloca_h=yes
bec39cab
AC
17505else
17506 echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
b4e70030 17509ac_cv_working_alloca_h=no
bec39cab
AC
17510fi
17511rm -f conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513fi
b4e70030
JB
17514echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17515echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
17516if test $ac_cv_working_alloca_h = yes; then
17517
17518cat >>confdefs.h <<\_ACEOF
17519#define HAVE_ALLOCA_H 1
bec39cab 17520_ACEOF
74c1b268 17521
74c1b268
AC
17522fi
17523
b4e70030
JB
17524echo "$as_me:$LINENO: checking for alloca" >&5
17525echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 17526if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 17527 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 17528else
bec39cab
AC
17529 cat >conftest.$ac_ext <<_ACEOF
17530/* confdefs.h. */
17531_ACEOF
17532cat confdefs.h >>conftest.$ac_ext
17533cat >>conftest.$ac_ext <<_ACEOF
17534/* end confdefs.h. */
a3828db0
MK
17535#ifdef __GNUC__
17536# define alloca __builtin_alloca
17537#else
17538# ifdef _MSC_VER
17539# include <malloc.h>
17540# define alloca _alloca
17541# else
17542# if HAVE_ALLOCA_H
17543# include <alloca.h>
17544# else
17545# ifdef _AIX
17546 #pragma alloca
17547# else
17548# ifndef alloca /* predefined by HP cc +Olibcalls */
17549char *alloca ();
17550# endif
17551# endif
17552# endif
97bf5e38 17553# endif
a3828db0 17554#endif
97bf5e38 17555
bec39cab
AC
17556int
17557main ()
17558{
a3828db0 17559char *p = (char *) alloca (1);
bec39cab
AC
17560 ;
17561 return 0;
17562}
17563_ACEOF
a3828db0
MK
17564rm -f conftest.$ac_objext conftest$ac_exeext
17565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
b4e70030
JB
17573 { ac_try='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
bec39cab
AC
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
a3828db0 17580 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
a3828db0 17586 ac_cv_func_alloca_works=yes
0200359f 17587else
bec39cab
AC
17588 echo "$as_me: failed program was:" >&5
17589sed 's/^/| /' conftest.$ac_ext >&5
0200359f 17590
b4e70030 17591ac_cv_func_alloca_works=no
0200359f 17592fi
a3828db0
MK
17593rm -f conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
72473524 17595fi
b4e70030
JB
17596echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17597echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 17598
a3828db0
MK
17599if test $ac_cv_func_alloca_works = yes; then
17600
17601cat >>confdefs.h <<\_ACEOF
17602#define HAVE_ALLOCA 1
bec39cab
AC
17603_ACEOF
17604
a3828db0
MK
17605else
17606 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17607# that cause trouble. Some versions do not even contain alloca or
17608# contain a buggy version. If you still want to use their alloca,
17609# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 17610
b4e70030 17611ALLOCA=alloca.$ac_objext
bec39cab 17612
a3828db0
MK
17613cat >>confdefs.h <<\_ACEOF
17614#define C_ALLOCA 1
17615_ACEOF
bec39cab 17616
a3828db0 17617
b4e70030
JB
17618echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17619echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 17620if test "${ac_cv_os_cray+set}" = set; then
bec39cab 17621 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 17622else
a3828db0 17623 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17624/* confdefs.h. */
17625_ACEOF
17626cat confdefs.h >>conftest.$ac_ext
17627cat >>conftest.$ac_ext <<_ACEOF
17628/* end confdefs.h. */
b4e70030 17629#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
17630webecray
17631#else
17632wenotbecray
17633#endif
17634
17635_ACEOF
17636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17637 $EGREP "webecray" >/dev/null 2>&1; then
17638 ac_cv_os_cray=yes
17639else
17640 ac_cv_os_cray=no
17641fi
17642rm -f conftest*
17643
17644fi
b4e70030
JB
17645echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17646echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
17647if test $ac_cv_os_cray = yes; then
17648 for ac_func in _getb67 GETB67 getb67; do
17649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17650echo "$as_me:$LINENO: checking for $ac_func" >&5
17651echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17652if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17654else
17655 cat >conftest.$ac_ext <<_ACEOF
17656/* confdefs.h. */
17657_ACEOF
17658cat confdefs.h >>conftest.$ac_ext
17659cat >>conftest.$ac_ext <<_ACEOF
17660/* end confdefs.h. */
17661/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17663#define $ac_func innocuous_$ac_func
17664
17665/* System header to define __stub macros and hopefully few prototypes,
17666 which can conflict with char $ac_func (); below.
17667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17668 <limits.h> exists even on freestanding compilers. */
17669
17670#ifdef __STDC__
17671# include <limits.h>
17672#else
17673# include <assert.h>
17674#endif
17675
17676#undef $ac_func
17677
b4e70030 17678/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17679#ifdef __cplusplus
17680extern "C"
b4e70030 17681{
a3828db0 17682#endif
b4e70030
JB
17683/* We use char because int might match the return type of a gcc2
17684 builtin and then its argument prototype would still apply. */
a3828db0
MK
17685char $ac_func ();
17686/* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
b4e70030 17689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17690choke me
b4e70030
JB
17691#else
17692char (*f) () = $ac_func;
17693#endif
17694#ifdef __cplusplus
17695}
a3828db0
MK
17696#endif
17697
17698int
17699main ()
17700{
b4e70030 17701return f != $ac_func;
a3828db0
MK
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706rm -f conftest.$ac_objext conftest$ac_exeext
17707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708 (eval $ac_link) 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
b4e70030
JB
17715 { ac_try='test -z "$ac_c_werror_flag"
17716 || test ! -s conftest.err'
a3828db0
MK
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 eval "$as_ac_var=yes"
17729else
17730 echo "$as_me: failed program was:" >&5
17731sed 's/^/| /' conftest.$ac_ext >&5
17732
b4e70030 17733eval "$as_ac_var=no"
a3828db0
MK
17734fi
17735rm -f conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
17737fi
b4e70030
JB
17738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17739echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17740if test `eval echo '${'$as_ac_var'}'` = yes; then
17741
17742cat >>confdefs.h <<_ACEOF
17743#define CRAY_STACKSEG_END $ac_func
17744_ACEOF
17745
17746 break
17747fi
17748
17749 done
17750fi
17751
b4e70030
JB
17752echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17753echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
17754if test "${ac_cv_c_stack_direction+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17756else
17757 if test "$cross_compiling" = yes; then
17758 ac_cv_c_stack_direction=0
17759else
17760 cat >conftest.$ac_ext <<_ACEOF
17761/* confdefs.h. */
17762_ACEOF
17763cat confdefs.h >>conftest.$ac_ext
17764cat >>conftest.$ac_ext <<_ACEOF
17765/* end confdefs.h. */
17766int
17767find_stack_direction ()
17768{
17769 static char *addr = 0;
17770 auto char dummy;
17771 if (addr == 0)
17772 {
17773 addr = &dummy;
17774 return find_stack_direction ();
17775 }
17776 else
17777 return (&dummy > addr) ? 1 : -1;
17778}
17779
17780int
17781main ()
17782{
b4e70030 17783 exit (find_stack_direction () < 0);
a3828db0
MK
17784}
17785_ACEOF
17786rm -f conftest$ac_exeext
17787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788 (eval $ac_link) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 ac_cv_c_stack_direction=1
17798else
17799 echo "$as_me: program exited with status $ac_status" >&5
17800echo "$as_me: failed program was:" >&5
17801sed 's/^/| /' conftest.$ac_ext >&5
17802
17803( exit $ac_status )
17804ac_cv_c_stack_direction=-1
17805fi
b4e70030 17806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17807fi
17808fi
b4e70030
JB
17809echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17810echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
17811
17812cat >>confdefs.h <<_ACEOF
17813#define STACK_DIRECTION $ac_cv_c_stack_direction
17814_ACEOF
17815
17816
17817fi
17818
17819
17820
17821for ac_header in stdlib.h unistd.h
17822do
17823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
17824if eval "test \"\${$as_ac_Header+set}\" = set"; then
17825 echo "$as_me:$LINENO: checking for $ac_header" >&5
17826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17827if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17829fi
b4e70030
JB
17830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
17832else
17833 # Is the header compilable?
b4e70030
JB
17834echo "$as_me:$LINENO: checking $ac_header usability" >&5
17835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
17836cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h. */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h. */
17842$ac_includes_default
17843#include <$ac_header>
17844_ACEOF
17845rm -f conftest.$ac_objext
17846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847 (eval $ac_compile) 2>conftest.er1
17848 ac_status=$?
bec39cab
AC
17849 grep -v '^ *+' conftest.er1 >conftest.err
17850 rm -f conftest.er1
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
b4e70030
JB
17854 { ac_try='test -z "$ac_c_werror_flag"
17855 || test ! -s conftest.err'
bec39cab
AC
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest.$ac_objext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 ac_header_compiler=yes
17868else
17869 echo "$as_me: failed program was:" >&5
17870sed 's/^/| /' conftest.$ac_ext >&5
17871
b4e70030 17872ac_header_compiler=no
bec39cab
AC
17873fi
17874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
17875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17876echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
17877
17878# Is the header present?
b4e70030
JB
17879echo "$as_me:$LINENO: checking $ac_header presence" >&5
17880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
17881cat >conftest.$ac_ext <<_ACEOF
17882/* confdefs.h. */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h. */
17887#include <$ac_header>
17888_ACEOF
17889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17891 ac_status=$?
17892 grep -v '^ *+' conftest.er1 >conftest.err
17893 rm -f conftest.er1
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } >/dev/null; then
17897 if test -s conftest.err; then
17898 ac_cpp_err=$ac_c_preproc_warn_flag
17899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17900 else
17901 ac_cpp_err=
17902 fi
17903else
17904 ac_cpp_err=yes
17905fi
17906if test -z "$ac_cpp_err"; then
17907 ac_header_preproc=yes
97bf5e38 17908else
bec39cab
AC
17909 echo "$as_me: failed program was:" >&5
17910sed 's/^/| /' conftest.$ac_ext >&5
17911
17912 ac_header_preproc=no
72473524 17913fi
bec39cab 17914rm -f conftest.err conftest.$ac_ext
b4e70030
JB
17915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17916echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 17917
bec39cab
AC
17918# So? What about this header?
17919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17920 yes:no: )
17921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17925 ac_header_preproc=yes
17926 ;;
17927 no:yes:* )
17928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
17940 (
17941 cat <<\_ASBOX
17942## ------------------------------------------ ##
17943## Report this to the AC_PACKAGE_NAME lists. ##
17944## ------------------------------------------ ##
17945_ASBOX
17946 ) |
17947 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
17948 ;;
17949esac
b4e70030
JB
17950echo "$as_me:$LINENO: checking for $ac_header" >&5
17951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17952if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 17953 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17954else
bec39cab
AC
17955 eval "$as_ac_Header=\$ac_header_preproc"
17956fi
b4e70030
JB
17957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
17959
17960fi
17961if test `eval echo '${'$as_ac_Header'}'` = yes; then
17962 cat >>confdefs.h <<_ACEOF
17963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17964_ACEOF
17965
17966fi
17967
17968done
17969
17970
a3828db0 17971for ac_func in getpagesize
bec39cab
AC
17972do
17973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17974echo "$as_me:$LINENO: checking for $ac_func" >&5
17975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17976if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17978else
17979 cat >conftest.$ac_ext <<_ACEOF
17980/* confdefs.h. */
17981_ACEOF
17982cat confdefs.h >>conftest.$ac_ext
17983cat >>conftest.$ac_ext <<_ACEOF
17984/* end confdefs.h. */
17985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17987#define $ac_func innocuous_$ac_func
17988
97bf5e38 17989/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17990 which can conflict with char $ac_func (); below.
17991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992 <limits.h> exists even on freestanding compilers. */
2b2d558c 17993
bec39cab
AC
17994#ifdef __STDC__
17995# include <limits.h>
17996#else
17997# include <assert.h>
17998#endif
97bf5e38 17999
bec39cab
AC
18000#undef $ac_func
18001
b4e70030 18002/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18003#ifdef __cplusplus
18004extern "C"
b4e70030 18005{
bec39cab 18006#endif
b4e70030
JB
18007/* We use char because int might match the return type of a gcc2
18008 builtin and then its argument prototype would still apply. */
bec39cab 18009char $ac_func ();
97bf5e38
MK
18010/* The GNU C library defines this for functions which it implements
18011 to always fail with ENOSYS. Some functions are actually named
18012 something starting with __ and the normal name is an alias. */
b4e70030 18013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18014choke me
b4e70030
JB
18015#else
18016char (*f) () = $ac_func;
18017#endif
18018#ifdef __cplusplus
18019}
97bf5e38
MK
18020#endif
18021
bec39cab
AC
18022int
18023main ()
18024{
b4e70030 18025return f != $ac_func;
bec39cab
AC
18026 ;
18027 return 0;
18028}
18029_ACEOF
18030rm -f conftest.$ac_objext conftest$ac_exeext
18031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032 (eval $ac_link) 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
b4e70030
JB
18039 { ac_try='test -z "$ac_c_werror_flag"
18040 || test ! -s conftest.err'
bec39cab
AC
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try='test -s conftest$ac_exeext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 eval "$as_ac_var=yes"
18053else
18054 echo "$as_me: failed program was:" >&5
18055sed 's/^/| /' conftest.$ac_ext >&5
18056
b4e70030 18057eval "$as_ac_var=no"
bec39cab
AC
18058fi
18059rm -f conftest.err conftest.$ac_objext \
18060 conftest$ac_exeext conftest.$ac_ext
18061fi
b4e70030
JB
18062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18064if test `eval echo '${'$as_ac_var'}'` = yes; then
18065 cat >>confdefs.h <<_ACEOF
18066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18067_ACEOF
18068
2b2d558c 18069fi
bec39cab 18070done
2b2d558c 18071
b4e70030
JB
18072echo "$as_me:$LINENO: checking for working mmap" >&5
18073echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 18074if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 18075 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18076else
bec39cab 18077 if test "$cross_compiling" = yes; then
a3828db0 18078 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
18079else
18080 cat >conftest.$ac_ext <<_ACEOF
a3828db0 18081/* confdefs.h. */
bec39cab
AC
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
a3828db0
MK
18086$ac_includes_default
18087/* malloc might have been renamed as rpl_malloc. */
18088#undef malloc
bec39cab 18089
a3828db0
MK
18090/* Thanks to Mike Haertel and Jim Avera for this test.
18091 Here is a matrix of mmap possibilities:
18092 mmap private not fixed
18093 mmap private fixed at somewhere currently unmapped
18094 mmap private fixed at somewhere already mapped
18095 mmap shared not fixed
18096 mmap shared fixed at somewhere currently unmapped
18097 mmap shared fixed at somewhere already mapped
18098 For private mappings, we should verify that changes cannot be read()
18099 back from the file, nor mmap's back from the file at a different
18100 address. (There have been systems where private was not correctly
18101 implemented like the infamous i386 svr4.0, and systems where the
18102 VM page cache was not coherent with the file system buffer cache
18103 like early versions of FreeBSD and possibly contemporary NetBSD.)
18104 For shared mappings, we should conversely verify that changes get
18105 propagated back to all the places they're supposed to be.
7dfa765c 18106
a3828db0
MK
18107 Grep wants private fixed already mapped.
18108 The main things grep needs to know about mmap are:
18109 * does it exist and is it safe to write into the mmap'd area
18110 * how to use it (BSD variants) */
7dfa765c 18111
a3828db0
MK
18112#include <fcntl.h>
18113#include <sys/mman.h>
7dfa765c 18114
a3828db0
MK
18115#if !STDC_HEADERS && !HAVE_STDLIB_H
18116char *malloc ();
18117#endif
7dfa765c 18118
a3828db0
MK
18119/* This mess was copied from the GNU getpagesize.h. */
18120#if !HAVE_GETPAGESIZE
18121/* Assume that all systems that can run configure have sys/param.h. */
18122# if !HAVE_SYS_PARAM_H
18123# define HAVE_SYS_PARAM_H 1
18124# endif
64bb1671 18125
a3828db0
MK
18126# ifdef _SC_PAGESIZE
18127# define getpagesize() sysconf(_SC_PAGESIZE)
18128# else /* no _SC_PAGESIZE */
18129# if HAVE_SYS_PARAM_H
18130# include <sys/param.h>
18131# ifdef EXEC_PAGESIZE
18132# define getpagesize() EXEC_PAGESIZE
18133# else /* no EXEC_PAGESIZE */
18134# ifdef NBPG
18135# define getpagesize() NBPG * CLSIZE
18136# ifndef CLSIZE
18137# define CLSIZE 1
18138# endif /* no CLSIZE */
18139# else /* no NBPG */
18140# ifdef NBPC
18141# define getpagesize() NBPC
18142# else /* no NBPC */
18143# ifdef PAGESIZE
18144# define getpagesize() PAGESIZE
18145# endif /* PAGESIZE */
18146# endif /* no NBPC */
18147# endif /* no NBPG */
18148# endif /* no EXEC_PAGESIZE */
18149# else /* no HAVE_SYS_PARAM_H */
18150# define getpagesize() 8192 /* punt totally */
18151# endif /* no HAVE_SYS_PARAM_H */
18152# endif /* no _SC_PAGESIZE */
64bb1671 18153
a3828db0 18154#endif /* no HAVE_GETPAGESIZE */
64bb1671 18155
a3828db0
MK
18156int
18157main ()
18158{
18159 char *data, *data2, *data3;
18160 int i, pagesize;
18161 int fd;
97bf5e38 18162
a3828db0
MK
18163 pagesize = getpagesize ();
18164
18165 /* First, make a file with some known garbage in it. */
18166 data = (char *) malloc (pagesize);
18167 if (!data)
b4e70030 18168 exit (1);
a3828db0
MK
18169 for (i = 0; i < pagesize; ++i)
18170 *(data + i) = rand ();
18171 umask (0);
18172 fd = creat ("conftest.mmap", 0600);
18173 if (fd < 0)
b4e70030 18174 exit (1);
a3828db0 18175 if (write (fd, data, pagesize) != pagesize)
b4e70030 18176 exit (1);
a3828db0
MK
18177 close (fd);
18178
18179 /* Next, try to mmap the file at a fixed address which already has
18180 something else allocated at it. If we can, also make sure that
18181 we see the same garbage. */
18182 fd = open ("conftest.mmap", O_RDWR);
18183 if (fd < 0)
b4e70030 18184 exit (1);
a3828db0
MK
18185 data2 = (char *) malloc (2 * pagesize);
18186 if (!data2)
b4e70030
JB
18187 exit (1);
18188 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
18189 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18190 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 18191 exit (1);
a3828db0
MK
18192 for (i = 0; i < pagesize; ++i)
18193 if (*(data + i) != *(data2 + i))
b4e70030 18194 exit (1);
a3828db0
MK
18195
18196 /* Finally, make sure that changes to the mapped area do not
18197 percolate back to the file as seen by read(). (This is a bug on
18198 some variants of i386 svr4.0.) */
18199 for (i = 0; i < pagesize; ++i)
18200 *(data2 + i) = *(data2 + i) + 1;
18201 data3 = (char *) malloc (pagesize);
18202 if (!data3)
b4e70030 18203 exit (1);
a3828db0 18204 if (read (fd, data3, pagesize) != pagesize)
b4e70030 18205 exit (1);
a3828db0
MK
18206 for (i = 0; i < pagesize; ++i)
18207 if (*(data + i) != *(data3 + i))
b4e70030 18208 exit (1);
a3828db0 18209 close (fd);
b4e70030 18210 exit (0);
97bf5e38 18211}
bec39cab
AC
18212_ACEOF
18213rm -f conftest$ac_exeext
18214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18215 (eval $ac_link) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
a3828db0 18224 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 18225else
bec39cab
AC
18226 echo "$as_me: program exited with status $ac_status" >&5
18227echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230( exit $ac_status )
a3828db0 18231ac_cv_func_mmap_fixed_mapped=no
0afdd437 18232fi
b4e70030 18233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 18234fi
a3828db0 18235fi
b4e70030
JB
18236echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18237echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 18238if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
18239
18240cat >>confdefs.h <<\_ACEOF
a3828db0 18241#define HAVE_MMAP 1
bec39cab 18242_ACEOF
0afdd437
MK
18243
18244fi
a3828db0 18245rm -f conftest.mmap
0afdd437 18246
b4e70030
JB
18247echo "$as_me:$LINENO: checking for pid_t" >&5
18248echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 18249if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251else
18252 cat >conftest.$ac_ext <<_ACEOF
18253/* confdefs.h. */
18254_ACEOF
18255cat confdefs.h >>conftest.$ac_ext
18256cat >>conftest.$ac_ext <<_ACEOF
18257/* end confdefs.h. */
a3828db0 18258$ac_includes_default
bec39cab
AC
18259int
18260main ()
18261{
b4e70030 18262if ((pid_t *) 0)
a3828db0 18263 return 0;
b4e70030 18264if (sizeof (pid_t))
a3828db0 18265 return 0;
bec39cab
AC
18266 ;
18267 return 0;
18268}
18269_ACEOF
a3828db0
MK
18270rm -f conftest.$ac_objext
18271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18272 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
b4e70030
JB
18279 { ac_try='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
bec39cab
AC
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
a3828db0 18286 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
a3828db0 18292 ac_cv_type_pid_t=yes
bec39cab
AC
18293else
18294 echo "$as_me: failed program was:" >&5
18295sed 's/^/| /' conftest.$ac_ext >&5
18296
b4e70030 18297ac_cv_type_pid_t=no
bec39cab 18298fi
a3828db0 18299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 18300fi
b4e70030
JB
18301echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18302echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
18303if test $ac_cv_type_pid_t = yes; then
18304 :
18305else
18306
18307cat >>confdefs.h <<_ACEOF
18308#define pid_t int
bec39cab 18309_ACEOF
7e89e357 18310
7e89e357
JT
18311fi
18312
bec39cab 18313
b4e70030
JB
18314
18315for ac_header in unistd.h vfork.h
7be570e7 18316do
a3828db0 18317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
18318if eval "test \"\${$as_ac_Header+set}\" = set"; then
18319 echo "$as_me:$LINENO: checking for $ac_header" >&5
18320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18321if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 18322 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 18323fi
b4e70030
JB
18324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 18326else
a3828db0 18327 # Is the header compilable?
b4e70030
JB
18328echo "$as_me:$LINENO: checking $ac_header usability" >&5
18329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 18330cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18331/* confdefs.h. */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h. */
a3828db0
MK
18336$ac_includes_default
18337#include <$ac_header>
bec39cab 18338_ACEOF
a3828db0
MK
18339rm -f conftest.$ac_objext
18340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18341 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
18342 ac_status=$?
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
b4e70030
JB
18348 { ac_try='test -z "$ac_c_werror_flag"
18349 || test ! -s conftest.err'
bec39cab
AC
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } &&
a3828db0 18355 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
a3828db0 18361 ac_header_compiler=yes
bec39cab
AC
18362else
18363 echo "$as_me: failed program was:" >&5
18364sed 's/^/| /' conftest.$ac_ext >&5
18365
b4e70030 18366ac_header_compiler=no
bec39cab 18367fi
a3828db0 18368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
18369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18370echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
18371
18372# Is the header present?
b4e70030
JB
18373echo "$as_me:$LINENO: checking $ac_header presence" >&5
18374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
18375cat >conftest.$ac_ext <<_ACEOF
18376/* confdefs.h. */
18377_ACEOF
18378cat confdefs.h >>conftest.$ac_ext
18379cat >>conftest.$ac_ext <<_ACEOF
18380/* end confdefs.h. */
18381#include <$ac_header>
18382_ACEOF
18383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18385 ac_status=$?
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } >/dev/null; then
18391 if test -s conftest.err; then
18392 ac_cpp_err=$ac_c_preproc_warn_flag
18393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18394 else
18395 ac_cpp_err=
18396 fi
18397else
18398 ac_cpp_err=yes
18399fi
18400if test -z "$ac_cpp_err"; then
18401 ac_header_preproc=yes
18402else
18403 echo "$as_me: failed program was:" >&5
18404sed 's/^/| /' conftest.$ac_ext >&5
18405
18406 ac_header_preproc=no
18407fi
18408rm -f conftest.err conftest.$ac_ext
b4e70030
JB
18409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18410echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
18411
18412# So? What about this header?
18413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18414 yes:no: )
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18418echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18419 ac_header_preproc=yes
18420 ;;
18421 no:yes:* )
18422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18425echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18427echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18429echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18433echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
18434 (
18435 cat <<\_ASBOX
18436## ------------------------------------------ ##
18437## Report this to the AC_PACKAGE_NAME lists. ##
18438## ------------------------------------------ ##
18439_ASBOX
18440 ) |
18441 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
18442 ;;
18443esac
b4e70030
JB
18444echo "$as_me:$LINENO: checking for $ac_header" >&5
18445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18446if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18448else
18449 eval "$as_ac_Header=\$ac_header_preproc"
18450fi
b4e70030
JB
18451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 18453
bec39cab 18454fi
a3828db0 18455if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 18456 cat >>confdefs.h <<_ACEOF
a3828db0 18457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 18458_ACEOF
14abd0fb 18459
14abd0fb 18460fi
a3828db0 18461
14abd0fb
MK
18462done
18463
bec39cab 18464
a3828db0
MK
18465
18466for ac_func in fork vfork
14abd0fb 18467do
bec39cab 18468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18469echo "$as_me:$LINENO: checking for $ac_func" >&5
18470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18471if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18473else
18474 cat >conftest.$ac_ext <<_ACEOF
18475/* confdefs.h. */
18476_ACEOF
18477cat confdefs.h >>conftest.$ac_ext
18478cat >>conftest.$ac_ext <<_ACEOF
18479/* end confdefs.h. */
18480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18482#define $ac_func innocuous_$ac_func
18483
14abd0fb 18484/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18485 which can conflict with char $ac_func (); below.
18486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18487 <limits.h> exists even on freestanding compilers. */
18488
18489#ifdef __STDC__
18490# include <limits.h>
18491#else
18492# include <assert.h>
18493#endif
14abd0fb 18494
bec39cab 18495#undef $ac_func
14abd0fb 18496
b4e70030 18497/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18498#ifdef __cplusplus
18499extern "C"
b4e70030 18500{
bec39cab 18501#endif
b4e70030
JB
18502/* We use char because int might match the return type of a gcc2
18503 builtin and then its argument prototype would still apply. */
bec39cab 18504char $ac_func ();
14abd0fb
MK
18505/* The GNU C library defines this for functions which it implements
18506 to always fail with ENOSYS. Some functions are actually named
18507 something starting with __ and the normal name is an alias. */
b4e70030 18508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 18509choke me
b4e70030
JB
18510#else
18511char (*f) () = $ac_func;
18512#endif
18513#ifdef __cplusplus
18514}
14abd0fb
MK
18515#endif
18516
bec39cab
AC
18517int
18518main ()
18519{
b4e70030 18520return f != $ac_func;
bec39cab
AC
18521 ;
18522 return 0;
18523}
18524_ACEOF
18525rm -f conftest.$ac_objext conftest$ac_exeext
18526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18527 (eval $ac_link) 2>conftest.er1
18528 ac_status=$?
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
b4e70030
JB
18534 { ac_try='test -z "$ac_c_werror_flag"
18535 || test ! -s conftest.err'
bec39cab
AC
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; } &&
18541 { ac_try='test -s conftest$ac_exeext'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 eval "$as_ac_var=yes"
18548else
18549 echo "$as_me: failed program was:" >&5
18550sed 's/^/| /' conftest.$ac_ext >&5
18551
b4e70030 18552eval "$as_ac_var=no"
bec39cab
AC
18553fi
18554rm -f conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556fi
b4e70030
JB
18557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18559if test `eval echo '${'$as_ac_var'}'` = yes; then
18560 cat >>confdefs.h <<_ACEOF
18561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18562_ACEOF
7be570e7 18563
7be570e7
JM
18564fi
18565done
18566
a3828db0 18567if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
18568 echo "$as_me:$LINENO: checking for working fork" >&5
18569echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
18570if test "${ac_cv_func_fork_works+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572else
18573 if test "$cross_compiling" = yes; then
18574 ac_cv_func_fork_works=cross
18575else
18576 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
18577/* By Ruediger Kuhlmann. */
18578 #include <sys/types.h>
18579 #if HAVE_UNISTD_H
18580 # include <unistd.h>
18581 #endif
18582 /* Some systems only have a dummy stub for fork() */
18583 int main ()
18584 {
18585 if (fork() < 0)
18586 exit (1);
18587 exit (0);
18588 }
a3828db0
MK
18589_ACEOF
18590rm -f conftest$ac_exeext
18591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592 (eval $ac_link) 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_func_fork_works=yes
18602else
18603 echo "$as_me: program exited with status $ac_status" >&5
18604echo "$as_me: failed program was:" >&5
18605sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 18606
a3828db0
MK
18607( exit $ac_status )
18608ac_cv_func_fork_works=no
18609fi
b4e70030 18610rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18611fi
18612fi
b4e70030
JB
18613echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18614echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
18615
18616else
18617 ac_cv_func_fork_works=$ac_cv_func_fork
18618fi
18619if test "x$ac_cv_func_fork_works" = xcross; then
18620 case $host in
18621 *-*-amigaos* | *-*-msdosdjgpp*)
18622 # Override, as these systems have only a dummy fork() stub
18623 ac_cv_func_fork_works=no
18624 ;;
18625 *)
18626 ac_cv_func_fork_works=yes
18627 ;;
18628 esac
18629 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18630echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18631fi
18632ac_cv_func_vfork_works=$ac_cv_func_vfork
18633if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
18634 echo "$as_me:$LINENO: checking for working vfork" >&5
18635echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 18636if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 18637 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18638else
18639 if test "$cross_compiling" = yes; then
18640 ac_cv_func_vfork_works=cross
bec39cab
AC
18641else
18642 cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
a3828db0 18648/* Thanks to Paul Eggert for this test. */
b4e70030
JB
18649#include <stdio.h>
18650#include <stdlib.h>
18651#include <sys/types.h>
18652#include <sys/stat.h>
a3828db0 18653#include <sys/wait.h>
b4e70030
JB
18654#if HAVE_UNISTD_H
18655# include <unistd.h>
18656#endif
a3828db0
MK
18657#if HAVE_VFORK_H
18658# include <vfork.h>
bec39cab 18659#endif
a3828db0
MK
18660/* On some sparc systems, changes by the child to local and incoming
18661 argument registers are propagated back to the parent. The compiler
18662 is told about this with #include <vfork.h>, but some compilers
18663 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18664 static variable whose address is put into a register that is
18665 clobbered by the vfork. */
18666static void
bec39cab 18667#ifdef __cplusplus
a3828db0
MK
18668sparc_address_test (int arg)
18669# else
18670sparc_address_test (arg) int arg;
c906108c 18671#endif
a3828db0
MK
18672{
18673 static pid_t child;
18674 if (!child) {
18675 child = vfork ();
18676 if (child < 0) {
18677 perror ("vfork");
18678 _exit(2);
18679 }
18680 if (!child) {
18681 arg = getpid();
18682 write(-1, "", 0);
18683 _exit (arg);
18684 }
18685 }
18686}
97bf5e38 18687
bec39cab
AC
18688int
18689main ()
18690{
a3828db0
MK
18691 pid_t parent = getpid ();
18692 pid_t child;
18693
18694 sparc_address_test (0);
18695
18696 child = vfork ();
18697
18698 if (child == 0) {
18699 /* Here is another test for sparc vfork register problems. This
18700 test uses lots of local variables, at least as many local
18701 variables as main has allocated so far including compiler
18702 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18703 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18704 reuse the register of parent for one of the local variables,
18705 since it will think that parent can't possibly be used any more
18706 in this routine. Assigning to the local variable will thus
18707 munge parent in the parent process. */
18708 pid_t
18709 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18710 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18711 /* Convince the compiler that p..p7 are live; otherwise, it might
18712 use the same hardware register for all 8 local variables. */
18713 if (p != p1 || p != p2 || p != p3 || p != p4
18714 || p != p5 || p != p6 || p != p7)
18715 _exit(1);
18716
18717 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18718 from child file descriptors. If the child closes a descriptor
18719 before it execs or exits, this munges the parent's descriptor
18720 as well. Test for this by closing stdout in the child. */
18721 _exit(close(fileno(stdout)) != 0);
18722 } else {
18723 int status;
18724 struct stat st;
18725
18726 while (wait(&status) != child)
18727 ;
b4e70030 18728 exit(
a3828db0
MK
18729 /* Was there some problem with vforking? */
18730 child < 0
18731
18732 /* Did the child fail? (This shouldn't happen.) */
18733 || status
18734
18735 /* Did the vfork/compiler bug occur? */
18736 || parent != getpid()
18737
18738 /* Did the file descriptor bug occur? */
18739 || fstat(fileno(stdout), &st) != 0
18740 );
18741 }
bec39cab
AC
18742}
18743_ACEOF
a3828db0 18744rm -f conftest$ac_exeext
bec39cab 18745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 18746 (eval $ac_link) 2>&5
bec39cab
AC
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; }; then
a3828db0
MK
18755 ac_cv_func_vfork_works=yes
18756else
18757 echo "$as_me: program exited with status $ac_status" >&5
18758echo "$as_me: failed program was:" >&5
18759sed 's/^/| /' conftest.$ac_ext >&5
18760
18761( exit $ac_status )
18762ac_cv_func_vfork_works=no
18763fi
b4e70030 18764rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18765fi
18766fi
b4e70030
JB
18767echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18768echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
18769
18770fi;
18771if test "x$ac_cv_func_fork_works" = xcross; then
18772 ac_cv_func_vfork_works=$ac_cv_func_vfork
18773 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18774echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18775fi
18776
18777if test "x$ac_cv_func_vfork_works" = xyes; then
18778
18779cat >>confdefs.h <<\_ACEOF
18780#define HAVE_WORKING_VFORK 1
18781_ACEOF
18782
bec39cab 18783else
bec39cab 18784
a3828db0
MK
18785cat >>confdefs.h <<\_ACEOF
18786#define vfork fork
18787_ACEOF
18788
bec39cab 18789fi
a3828db0
MK
18790if test "x$ac_cv_func_fork_works" = xyes; then
18791
18792cat >>confdefs.h <<\_ACEOF
18793#define HAVE_WORKING_FORK 1
bec39cab 18794_ACEOF
c906108c 18795
c906108c
SS
18796fi
18797
bec39cab
AC
18798
18799
a3828db0 18800for ac_func in canonicalize_file_name realpath
97bf5e38 18801do
bec39cab 18802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 18803echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
18804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18805if eval "test \"\${$as_ac_var+set}\" = set"; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807else
18808 cat >conftest.$ac_ext <<_ACEOF
18809/* confdefs.h. */
18810_ACEOF
18811cat confdefs.h >>conftest.$ac_ext
18812cat >>conftest.$ac_ext <<_ACEOF
18813/* end confdefs.h. */
18814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18816#define $ac_func innocuous_$ac_func
18817
18818/* System header to define __stub macros and hopefully few prototypes,
18819 which can conflict with char $ac_func (); below.
18820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18821 <limits.h> exists even on freestanding compilers. */
18822
18823#ifdef __STDC__
18824# include <limits.h>
18825#else
18826# include <assert.h>
18827#endif
18828
18829#undef $ac_func
18830
18831/* Override any gcc2 internal prototype to avoid an error. */
18832#ifdef __cplusplus
18833extern "C"
18834{
18835#endif
18836/* We use char because int might match the return type of a gcc2
18837 builtin and then its argument prototype would still apply. */
18838char $ac_func ();
18839/* The GNU C library defines this for functions which it implements
18840 to always fail with ENOSYS. Some functions are actually named
18841 something starting with __ and the normal name is an alias. */
18842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18843choke me
18844#else
18845char (*f) () = $ac_func;
18846#endif
18847#ifdef __cplusplus
18848}
18849#endif
18850
18851int
18852main ()
18853{
18854return f != $ac_func;
18855 ;
18856 return 0;
18857}
18858_ACEOF
18859rm -f conftest.$ac_objext conftest$ac_exeext
18860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18861 (eval $ac_link) 2>conftest.er1
18862 ac_status=$?
18863 grep -v '^ *+' conftest.er1 >conftest.err
18864 rm -f conftest.er1
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_c_werror_flag"
18869 || test ! -s conftest.err'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest$ac_exeext'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 eval "$as_ac_var=yes"
18882else
18883 echo "$as_me: failed program was:" >&5
18884sed 's/^/| /' conftest.$ac_ext >&5
18885
18886eval "$as_ac_var=no"
18887fi
18888rm -f conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18890fi
18891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18892echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18893if test `eval echo '${'$as_ac_var'}'` = yes; then
18894 cat >>confdefs.h <<_ACEOF
18895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18896_ACEOF
18897
18898fi
18899done
18900
18901
18902for ac_func in getrusage
18903do
18904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18905echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
18906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18907if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18909else
18910 cat >conftest.$ac_ext <<_ACEOF
18911/* confdefs.h. */
18912_ACEOF
18913cat confdefs.h >>conftest.$ac_ext
18914cat >>conftest.$ac_ext <<_ACEOF
18915/* end confdefs.h. */
18916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18918#define $ac_func innocuous_$ac_func
18919
d3ea6809
MM
18920/* System header to define __stub macros and hopefully few prototypes,
18921 which can conflict with char $ac_func (); below.
18922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18923 <limits.h> exists even on freestanding compilers. */
18924
18925#ifdef __STDC__
18926# include <limits.h>
18927#else
18928# include <assert.h>
18929#endif
18930
18931#undef $ac_func
18932
b4e70030 18933/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
18934#ifdef __cplusplus
18935extern "C"
b4e70030 18936{
d3ea6809 18937#endif
b4e70030
JB
18938/* We use char because int might match the return type of a gcc2
18939 builtin and then its argument prototype would still apply. */
d3ea6809
MM
18940char $ac_func ();
18941/* The GNU C library defines this for functions which it implements
18942 to always fail with ENOSYS. Some functions are actually named
18943 something starting with __ and the normal name is an alias. */
b4e70030 18944#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 18945choke me
b4e70030
JB
18946#else
18947char (*f) () = $ac_func;
18948#endif
18949#ifdef __cplusplus
18950}
d3ea6809
MM
18951#endif
18952
18953int
18954main ()
18955{
b4e70030 18956return f != $ac_func;
d3ea6809
MM
18957 ;
18958 return 0;
18959}
18960_ACEOF
18961rm -f conftest.$ac_objext conftest$ac_exeext
18962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18963 (eval $ac_link) 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
b4e70030
JB
18970 { ac_try='test -z "$ac_c_werror_flag"
18971 || test ! -s conftest.err'
d3ea6809
MM
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest$ac_exeext'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 eval "$as_ac_var=yes"
18984else
18985 echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
b4e70030 18988eval "$as_ac_var=no"
d3ea6809
MM
18989fi
18990rm -f conftest.err conftest.$ac_objext \
18991 conftest$ac_exeext conftest.$ac_ext
18992fi
b4e70030
JB
18993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
18995if test `eval echo '${'$as_ac_var'}'` = yes; then
18996 cat >>confdefs.h <<_ACEOF
18997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18998_ACEOF
18999
19000fi
19001done
19002
19003
19004
19005for ac_func in getuid getgid
19006do
19007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19008echo "$as_me:$LINENO: checking for $ac_func" >&5
19009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19010if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012else
19013 cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19021#define $ac_func innocuous_$ac_func
19022
97bf5e38 19023/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19024 which can conflict with char $ac_func (); below.
19025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19026 <limits.h> exists even on freestanding compilers. */
c906108c 19027
bec39cab
AC
19028#ifdef __STDC__
19029# include <limits.h>
19030#else
19031# include <assert.h>
19032#endif
97bf5e38 19033
bec39cab
AC
19034#undef $ac_func
19035
b4e70030 19036/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19037#ifdef __cplusplus
19038extern "C"
b4e70030 19039{
bec39cab 19040#endif
b4e70030
JB
19041/* We use char because int might match the return type of a gcc2
19042 builtin and then its argument prototype would still apply. */
bec39cab 19043char $ac_func ();
97bf5e38
MK
19044/* The GNU C library defines this for functions which it implements
19045 to always fail with ENOSYS. Some functions are actually named
19046 something starting with __ and the normal name is an alias. */
b4e70030 19047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19048choke me
b4e70030
JB
19049#else
19050char (*f) () = $ac_func;
19051#endif
19052#ifdef __cplusplus
19053}
c906108c 19054#endif
97bf5e38 19055
bec39cab
AC
19056int
19057main ()
19058{
b4e70030 19059return f != $ac_func;
bec39cab
AC
19060 ;
19061 return 0;
19062}
19063_ACEOF
19064rm -f conftest.$ac_objext conftest$ac_exeext
19065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066 (eval $ac_link) 2>conftest.er1
19067 ac_status=$?
19068 grep -v '^ *+' conftest.er1 >conftest.err
19069 rm -f conftest.er1
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
b4e70030
JB
19073 { ac_try='test -z "$ac_c_werror_flag"
19074 || test ! -s conftest.err'
bec39cab
AC
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; } &&
19080 { ac_try='test -s conftest$ac_exeext'
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; }; then
19086 eval "$as_ac_var=yes"
19087else
19088 echo "$as_me: failed program was:" >&5
19089sed 's/^/| /' conftest.$ac_ext >&5
19090
b4e70030 19091eval "$as_ac_var=no"
bec39cab
AC
19092fi
19093rm -f conftest.err conftest.$ac_objext \
19094 conftest$ac_exeext conftest.$ac_ext
19095fi
b4e70030
JB
19096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19098if test `eval echo '${'$as_ac_var'}'` = yes; then
19099 cat >>confdefs.h <<_ACEOF
19100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19101_ACEOF
c906108c 19102
c906108c 19103fi
97bf5e38 19104done
c906108c 19105
bec39cab 19106
a3828db0 19107for ac_func in poll
97bf5e38 19108do
bec39cab 19109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19110echo "$as_me:$LINENO: checking for $ac_func" >&5
19111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19112if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19114else
19115 cat >conftest.$ac_ext <<_ACEOF
19116/* confdefs.h. */
19117_ACEOF
19118cat confdefs.h >>conftest.$ac_ext
19119cat >>conftest.$ac_ext <<_ACEOF
19120/* end confdefs.h. */
19121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19123#define $ac_func innocuous_$ac_func
19124
97bf5e38 19125/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19126 which can conflict with char $ac_func (); below.
19127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19128 <limits.h> exists even on freestanding compilers. */
19129
19130#ifdef __STDC__
19131# include <limits.h>
19132#else
19133# include <assert.h>
19134#endif
c906108c 19135
bec39cab 19136#undef $ac_func
97bf5e38 19137
b4e70030 19138/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19139#ifdef __cplusplus
19140extern "C"
b4e70030 19141{
bec39cab 19142#endif
b4e70030
JB
19143/* We use char because int might match the return type of a gcc2
19144 builtin and then its argument prototype would still apply. */
bec39cab 19145char $ac_func ();
97bf5e38
MK
19146/* The GNU C library defines this for functions which it implements
19147 to always fail with ENOSYS. Some functions are actually named
19148 something starting with __ and the normal name is an alias. */
b4e70030 19149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19150choke me
b4e70030
JB
19151#else
19152char (*f) () = $ac_func;
19153#endif
19154#ifdef __cplusplus
19155}
c906108c 19156#endif
97bf5e38 19157
bec39cab
AC
19158int
19159main ()
19160{
b4e70030 19161return f != $ac_func;
bec39cab
AC
19162 ;
19163 return 0;
19164}
19165_ACEOF
19166rm -f conftest.$ac_objext conftest$ac_exeext
19167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19168 (eval $ac_link) 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
b4e70030
JB
19175 { ac_try='test -z "$ac_c_werror_flag"
19176 || test ! -s conftest.err'
bec39cab
AC
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 eval "$as_ac_var=yes"
19189else
19190 echo "$as_me: failed program was:" >&5
19191sed 's/^/| /' conftest.$ac_ext >&5
19192
b4e70030 19193eval "$as_ac_var=no"
bec39cab
AC
19194fi
19195rm -f conftest.err conftest.$ac_objext \
19196 conftest$ac_exeext conftest.$ac_ext
19197fi
b4e70030
JB
19198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19200if test `eval echo '${'$as_ac_var'}'` = yes; then
19201 cat >>confdefs.h <<_ACEOF
19202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19203_ACEOF
c906108c 19204
c906108c 19205fi
97bf5e38 19206done
c906108c 19207
bec39cab 19208
a3828db0 19209for ac_func in pread64
97bf5e38 19210do
bec39cab 19211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19212echo "$as_me:$LINENO: checking for $ac_func" >&5
19213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19214if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19216else
19217 cat >conftest.$ac_ext <<_ACEOF
19218/* confdefs.h. */
19219_ACEOF
19220cat confdefs.h >>conftest.$ac_ext
19221cat >>conftest.$ac_ext <<_ACEOF
19222/* end confdefs.h. */
19223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19225#define $ac_func innocuous_$ac_func
19226
97bf5e38 19227/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19228 which can conflict with char $ac_func (); below.
19229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19230 <limits.h> exists even on freestanding compilers. */
19231
19232#ifdef __STDC__
19233# include <limits.h>
19234#else
19235# include <assert.h>
19236#endif
c906108c 19237
bec39cab 19238#undef $ac_func
97bf5e38 19239
b4e70030 19240/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19241#ifdef __cplusplus
19242extern "C"
b4e70030 19243{
bec39cab 19244#endif
b4e70030
JB
19245/* We use char because int might match the return type of a gcc2
19246 builtin and then its argument prototype would still apply. */
bec39cab 19247char $ac_func ();
97bf5e38
MK
19248/* The GNU C library defines this for functions which it implements
19249 to always fail with ENOSYS. Some functions are actually named
19250 something starting with __ and the normal name is an alias. */
b4e70030 19251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 19252choke me
b4e70030
JB
19253#else
19254char (*f) () = $ac_func;
19255#endif
19256#ifdef __cplusplus
19257}
c906108c 19258#endif
97bf5e38 19259
bec39cab
AC
19260int
19261main ()
19262{
b4e70030 19263return f != $ac_func;
bec39cab
AC
19264 ;
19265 return 0;
19266}
19267_ACEOF
19268rm -f conftest.$ac_objext conftest$ac_exeext
19269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19270 (eval $ac_link) 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
b4e70030
JB
19277 { ac_try='test -z "$ac_c_werror_flag"
19278 || test ! -s conftest.err'
bec39cab
AC
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest$ac_exeext'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 eval "$as_ac_var=yes"
19291else
19292 echo "$as_me: failed program was:" >&5
19293sed 's/^/| /' conftest.$ac_ext >&5
19294
b4e70030 19295eval "$as_ac_var=no"
bec39cab
AC
19296fi
19297rm -f conftest.err conftest.$ac_objext \
19298 conftest$ac_exeext conftest.$ac_ext
19299fi
b4e70030
JB
19300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19301echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19302if test `eval echo '${'$as_ac_var'}'` = yes; then
19303 cat >>confdefs.h <<_ACEOF
19304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19305_ACEOF
c906108c 19306
c906108c 19307fi
97bf5e38 19308done
c906108c 19309
bec39cab 19310
a3828db0 19311for ac_func in sbrk
b757528f 19312do
bec39cab 19313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19314echo "$as_me:$LINENO: checking for $ac_func" >&5
19315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19316if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19318else
19319 cat >conftest.$ac_ext <<_ACEOF
19320/* confdefs.h. */
19321_ACEOF
19322cat confdefs.h >>conftest.$ac_ext
19323cat >>conftest.$ac_ext <<_ACEOF
19324/* end confdefs.h. */
19325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19327#define $ac_func innocuous_$ac_func
19328
b757528f 19329/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19330 which can conflict with char $ac_func (); below.
19331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19332 <limits.h> exists even on freestanding compilers. */
19333
19334#ifdef __STDC__
19335# include <limits.h>
19336#else
19337# include <assert.h>
19338#endif
b757528f 19339
bec39cab 19340#undef $ac_func
b757528f 19341
b4e70030 19342/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19343#ifdef __cplusplus
19344extern "C"
b4e70030 19345{
bec39cab 19346#endif
b4e70030
JB
19347/* We use char because int might match the return type of a gcc2
19348 builtin and then its argument prototype would still apply. */
bec39cab 19349char $ac_func ();
b757528f
JJ
19350/* The GNU C library defines this for functions which it implements
19351 to always fail with ENOSYS. Some functions are actually named
19352 something starting with __ and the normal name is an alias. */
b4e70030 19353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 19354choke me
b4e70030
JB
19355#else
19356char (*f) () = $ac_func;
19357#endif
19358#ifdef __cplusplus
19359}
b757528f
JJ
19360#endif
19361
bec39cab
AC
19362int
19363main ()
19364{
b4e70030 19365return f != $ac_func;
bec39cab
AC
19366 ;
19367 return 0;
19368}
19369_ACEOF
19370rm -f conftest.$ac_objext conftest$ac_exeext
19371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19372 (eval $ac_link) 2>conftest.er1
19373 ac_status=$?
19374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
b4e70030
JB
19379 { ac_try='test -z "$ac_c_werror_flag"
19380 || test ! -s conftest.err'
bec39cab
AC
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest$ac_exeext'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 eval "$as_ac_var=yes"
19393else
19394 echo "$as_me: failed program was:" >&5
19395sed 's/^/| /' conftest.$ac_ext >&5
19396
b4e70030 19397eval "$as_ac_var=no"
bec39cab
AC
19398fi
19399rm -f conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
19401fi
b4e70030
JB
19402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19403echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19404if test `eval echo '${'$as_ac_var'}'` = yes; then
19405 cat >>confdefs.h <<_ACEOF
19406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19407_ACEOF
b757528f 19408
b757528f
JJ
19409fi
19410done
19411
bec39cab 19412
a3828db0 19413
83116857
TJB
19414
19415for ac_func in setpgid setpgrp setsid
bcb3dc3d 19416do
bec39cab 19417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19418echo "$as_me:$LINENO: checking for $ac_func" >&5
19419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19420if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19422else
19423 cat >conftest.$ac_ext <<_ACEOF
19424/* confdefs.h. */
19425_ACEOF
19426cat confdefs.h >>conftest.$ac_ext
19427cat >>conftest.$ac_ext <<_ACEOF
19428/* end confdefs.h. */
19429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19431#define $ac_func innocuous_$ac_func
19432
bcb3dc3d 19433/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19434 which can conflict with char $ac_func (); below.
19435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19436 <limits.h> exists even on freestanding compilers. */
19437
19438#ifdef __STDC__
19439# include <limits.h>
19440#else
19441# include <assert.h>
19442#endif
bcb3dc3d 19443
bec39cab 19444#undef $ac_func
bcb3dc3d 19445
b4e70030 19446/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19447#ifdef __cplusplus
19448extern "C"
b4e70030 19449{
bec39cab 19450#endif
b4e70030
JB
19451/* We use char because int might match the return type of a gcc2
19452 builtin and then its argument prototype would still apply. */
bec39cab 19453char $ac_func ();
bcb3dc3d
MK
19454/* The GNU C library defines this for functions which it implements
19455 to always fail with ENOSYS. Some functions are actually named
19456 something starting with __ and the normal name is an alias. */
b4e70030 19457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 19458choke me
b4e70030
JB
19459#else
19460char (*f) () = $ac_func;
19461#endif
19462#ifdef __cplusplus
19463}
bcb3dc3d
MK
19464#endif
19465
bec39cab
AC
19466int
19467main ()
19468{
b4e70030 19469return f != $ac_func;
bec39cab
AC
19470 ;
19471 return 0;
19472}
19473_ACEOF
19474rm -f conftest.$ac_objext conftest$ac_exeext
19475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476 (eval $ac_link) 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
b4e70030
JB
19483 { ac_try='test -z "$ac_c_werror_flag"
19484 || test ! -s conftest.err'
bec39cab
AC
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest$ac_exeext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 eval "$as_ac_var=yes"
19497else
19498 echo "$as_me: failed program was:" >&5
19499sed 's/^/| /' conftest.$ac_ext >&5
19500
b4e70030 19501eval "$as_ac_var=no"
bec39cab
AC
19502fi
19503rm -f conftest.err conftest.$ac_objext \
19504 conftest$ac_exeext conftest.$ac_ext
19505fi
b4e70030
JB
19506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
19508if test `eval echo '${'$as_ac_var'}'` = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19511_ACEOF
bcb3dc3d 19512
bcb3dc3d
MK
19513fi
19514done
19515
bec39cab 19516
a3828db0
MK
19517
19518
19519for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 19520do
bec39cab 19521as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19522echo "$as_me:$LINENO: checking for $ac_func" >&5
19523echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19524if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19526else
19527 cat >conftest.$ac_ext <<_ACEOF
19528/* confdefs.h. */
19529_ACEOF
19530cat confdefs.h >>conftest.$ac_ext
19531cat >>conftest.$ac_ext <<_ACEOF
19532/* end confdefs.h. */
19533/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19535#define $ac_func innocuous_$ac_func
19536
8b9cf735 19537/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
19538 which can conflict with char $ac_func (); below.
19539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19540 <limits.h> exists even on freestanding compilers. */
19541
19542#ifdef __STDC__
19543# include <limits.h>
19544#else
19545# include <assert.h>
19546#endif
8b9cf735 19547
bec39cab 19548#undef $ac_func
8b9cf735 19549
b4e70030 19550/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19551#ifdef __cplusplus
19552extern "C"
b4e70030 19553{
a3828db0 19554#endif
b4e70030
JB
19555/* We use char because int might match the return type of a gcc2
19556 builtin and then its argument prototype would still apply. */
a3828db0
MK
19557char $ac_func ();
19558/* The GNU C library defines this for functions which it implements
19559 to always fail with ENOSYS. Some functions are actually named
19560 something starting with __ and the normal name is an alias. */
b4e70030 19561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19562choke me
b4e70030
JB
19563#else
19564char (*f) () = $ac_func;
19565#endif
19566#ifdef __cplusplus
19567}
a3828db0
MK
19568#endif
19569
bec39cab
AC
19570int
19571main ()
19572{
b4e70030 19573return f != $ac_func;
bec39cab
AC
19574 ;
19575 return 0;
19576}
19577_ACEOF
a3828db0
MK
19578rm -f conftest.$ac_objext conftest$ac_exeext
19579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19581 ac_status=$?
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
b4e70030
JB
19587 { ac_try='test -z "$ac_c_werror_flag"
19588 || test ! -s conftest.err'
bec39cab
AC
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
a3828db0 19594 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
a3828db0 19600 eval "$as_ac_var=yes"
086ec9eb 19601else
bec39cab
AC
19602 echo "$as_me: failed program was:" >&5
19603sed 's/^/| /' conftest.$ac_ext >&5
19604
b4e70030 19605eval "$as_ac_var=no"
a3828db0
MK
19606fi
19607rm -f conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19609fi
b4e70030
JB
19610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19611echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19612if test `eval echo '${'$as_ac_var'}'` = yes; then
19613 cat >>confdefs.h <<_ACEOF
19614#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19615_ACEOF
19616
086ec9eb 19617fi
a3828db0
MK
19618done
19619
19620
19621for ac_func in socketpair
19622do
19623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19624echo "$as_me:$LINENO: checking for $ac_func" >&5
19625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19626if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628else
19629 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19630/* confdefs.h. */
19631_ACEOF
19632cat confdefs.h >>conftest.$ac_ext
19633cat >>conftest.$ac_ext <<_ACEOF
19634/* end confdefs.h. */
a3828db0
MK
19635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19637#define $ac_func innocuous_$ac_func
19638
19639/* System header to define __stub macros and hopefully few prototypes,
19640 which can conflict with char $ac_func (); below.
19641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19642 <limits.h> exists even on freestanding compilers. */
19643
19644#ifdef __STDC__
19645# include <limits.h>
19646#else
19647# include <assert.h>
19648#endif
19649
19650#undef $ac_func
19651
b4e70030 19652/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19653#ifdef __cplusplus
19654extern "C"
b4e70030 19655{
a3828db0 19656#endif
b4e70030
JB
19657/* We use char because int might match the return type of a gcc2
19658 builtin and then its argument prototype would still apply. */
a3828db0
MK
19659char $ac_func ();
19660/* The GNU C library defines this for functions which it implements
19661 to always fail with ENOSYS. Some functions are actually named
19662 something starting with __ and the normal name is an alias. */
b4e70030 19663#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19664choke me
b4e70030
JB
19665#else
19666char (*f) () = $ac_func;
19667#endif
19668#ifdef __cplusplus
19669}
a3828db0
MK
19670#endif
19671
bec39cab
AC
19672int
19673main ()
19674{
b4e70030 19675return f != $ac_func;
bec39cab
AC
19676 ;
19677 return 0;
19678}
19679_ACEOF
a3828db0
MK
19680rm -f conftest.$ac_objext conftest$ac_exeext
19681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
b4e70030
JB
19689 { ac_try='test -z "$ac_c_werror_flag"
19690 || test ! -s conftest.err'
bec39cab
AC
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; } &&
a3828db0 19696 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
a3828db0 19702 eval "$as_ac_var=yes"
086ec9eb 19703else
bec39cab
AC
19704 echo "$as_me: failed program was:" >&5
19705sed 's/^/| /' conftest.$ac_ext >&5
19706
b4e70030 19707eval "$as_ac_var=no"
086ec9eb 19708fi
a3828db0
MK
19709rm -f conftest.err conftest.$ac_objext \
19710 conftest$ac_exeext conftest.$ac_ext
086ec9eb 19711fi
b4e70030
JB
19712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19713echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19714if test `eval echo '${'$as_ac_var'}'` = yes; then
19715 cat >>confdefs.h <<_ACEOF
19716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19717_ACEOF
086ec9eb
MK
19718
19719fi
a3828db0 19720done
086ec9eb 19721
a3828db0
MK
19722
19723for ac_func in syscall
19724do
19725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19726echo "$as_me:$LINENO: checking for $ac_func" >&5
19727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19728if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 19729 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
19730else
19731 cat >conftest.$ac_ext <<_ACEOF
19732/* confdefs.h. */
19733_ACEOF
19734cat confdefs.h >>conftest.$ac_ext
19735cat >>conftest.$ac_ext <<_ACEOF
19736/* end confdefs.h. */
a3828db0
MK
19737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19739#define $ac_func innocuous_$ac_func
19740
19741/* System header to define __stub macros and hopefully few prototypes,
19742 which can conflict with char $ac_func (); below.
19743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19744 <limits.h> exists even on freestanding compilers. */
19745
19746#ifdef __STDC__
19747# include <limits.h>
19748#else
19749# include <assert.h>
19750#endif
19751
19752#undef $ac_func
19753
b4e70030 19754/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19755#ifdef __cplusplus
19756extern "C"
b4e70030 19757{
a3828db0 19758#endif
b4e70030
JB
19759/* We use char because int might match the return type of a gcc2
19760 builtin and then its argument prototype would still apply. */
a3828db0
MK
19761char $ac_func ();
19762/* The GNU C library defines this for functions which it implements
19763 to always fail with ENOSYS. Some functions are actually named
19764 something starting with __ and the normal name is an alias. */
b4e70030 19765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19766choke me
b4e70030
JB
19767#else
19768char (*f) () = $ac_func;
19769#endif
19770#ifdef __cplusplus
19771}
c906108c 19772#endif
97bf5e38 19773
bec39cab
AC
19774int
19775main ()
97bf5e38 19776{
b4e70030 19777return f != $ac_func;
bec39cab
AC
19778 ;
19779 return 0;
97bf5e38 19780}
bec39cab 19781_ACEOF
a3828db0 19782rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 19783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 19784 (eval $ac_link) 2>conftest.er1
bec39cab 19785 ac_status=$?
a3828db0
MK
19786 grep -v '^ *+' conftest.er1 >conftest.err
19787 rm -f conftest.er1
19788 cat conftest.err >&5
bec39cab 19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19790 (exit $ac_status); } &&
b4e70030
JB
19791 { ac_try='test -z "$ac_c_werror_flag"
19792 || test ! -s conftest.err'
a3828db0
MK
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
a3828db0 19804 eval "$as_ac_var=yes"
c906108c 19805else
a3828db0 19806 echo "$as_me: failed program was:" >&5
bec39cab
AC
19807sed 's/^/| /' conftest.$ac_ext >&5
19808
b4e70030 19809eval "$as_ac_var=no"
97bf5e38 19810fi
a3828db0
MK
19811rm -f conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
19813fi
b4e70030
JB
19814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19815echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19816if test `eval echo '${'$as_ac_var'}'` = yes; then
19817 cat >>confdefs.h <<_ACEOF
19818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19819_ACEOF
c906108c
SS
19820
19821fi
a3828db0 19822done
c906108c 19823
a3828db0
MK
19824
19825for ac_func in ttrace
19826do
19827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19828echo "$as_me:$LINENO: checking for $ac_func" >&5
19829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19830if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 19831 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 19832else
bec39cab
AC
19833 cat >conftest.$ac_ext <<_ACEOF
19834/* confdefs.h. */
19835_ACEOF
19836cat confdefs.h >>conftest.$ac_ext
19837cat >>conftest.$ac_ext <<_ACEOF
19838/* end confdefs.h. */
a3828db0
MK
19839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19841#define $ac_func innocuous_$ac_func
b83266a0 19842
a3828db0
MK
19843/* System header to define __stub macros and hopefully few prototypes,
19844 which can conflict with char $ac_func (); below.
19845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19846 <limits.h> exists even on freestanding compilers. */
19847
19848#ifdef __STDC__
19849# include <limits.h>
19850#else
19851# include <assert.h>
19852#endif
19853
19854#undef $ac_func
19855
b4e70030 19856/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19857#ifdef __cplusplus
19858extern "C"
b4e70030 19859{
a3828db0 19860#endif
b4e70030
JB
19861/* We use char because int might match the return type of a gcc2
19862 builtin and then its argument prototype would still apply. */
a3828db0
MK
19863char $ac_func ();
19864/* The GNU C library defines this for functions which it implements
19865 to always fail with ENOSYS. Some functions are actually named
19866 something starting with __ and the normal name is an alias. */
b4e70030 19867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19868choke me
b4e70030
JB
19869#else
19870char (*f) () = $ac_func;
19871#endif
19872#ifdef __cplusplus
19873}
a3828db0 19874#endif
97bf5e38 19875
bec39cab
AC
19876int
19877main ()
19878{
b4e70030 19879return f != $ac_func;
bec39cab
AC
19880 ;
19881 return 0;
19882}
19883_ACEOF
a3828db0
MK
19884rm -f conftest.$ac_objext conftest$ac_exeext
19885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19886 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19887 ac_status=$?
19888 grep -v '^ *+' conftest.er1 >conftest.err
19889 rm -f conftest.er1
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
b4e70030
JB
19893 { ac_try='test -z "$ac_c_werror_flag"
19894 || test ! -s conftest.err'
bec39cab
AC
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; } &&
a3828db0 19900 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
a3828db0 19906 eval "$as_ac_var=yes"
b83266a0 19907else
bec39cab
AC
19908 echo "$as_me: failed program was:" >&5
19909sed 's/^/| /' conftest.$ac_ext >&5
19910
b4e70030 19911eval "$as_ac_var=no"
b83266a0 19912fi
a3828db0
MK
19913rm -f conftest.err conftest.$ac_objext \
19914 conftest$ac_exeext conftest.$ac_ext
b83266a0 19915fi
b4e70030
JB
19916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19917echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19918if test `eval echo '${'$as_ac_var'}'` = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19921_ACEOF
b83266a0 19922
97bf5e38 19923fi
a3828db0 19924done
b83266a0 19925
a3828db0
MK
19926
19927for ac_func in wborder
19928do
19929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19930echo "$as_me:$LINENO: checking for $ac_func" >&5
19931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19932if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934else
19935 cat >conftest.$ac_ext <<_ACEOF
19936/* confdefs.h. */
19937_ACEOF
19938cat confdefs.h >>conftest.$ac_ext
19939cat >>conftest.$ac_ext <<_ACEOF
19940/* end confdefs.h. */
a3828db0
MK
19941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19943#define $ac_func innocuous_$ac_func
a4db0f07 19944
a3828db0
MK
19945/* System header to define __stub macros and hopefully few prototypes,
19946 which can conflict with char $ac_func (); below.
19947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19948 <limits.h> exists even on freestanding compilers. */
19949
19950#ifdef __STDC__
19951# include <limits.h>
19952#else
19953# include <assert.h>
19954#endif
19955
19956#undef $ac_func
19957
b4e70030 19958/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19959#ifdef __cplusplus
19960extern "C"
b4e70030 19961{
a3828db0 19962#endif
b4e70030
JB
19963/* We use char because int might match the return type of a gcc2
19964 builtin and then its argument prototype would still apply. */
a3828db0
MK
19965char $ac_func ();
19966/* The GNU C library defines this for functions which it implements
19967 to always fail with ENOSYS. Some functions are actually named
19968 something starting with __ and the normal name is an alias. */
b4e70030 19969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19970choke me
b4e70030
JB
19971#else
19972char (*f) () = $ac_func;
19973#endif
19974#ifdef __cplusplus
19975}
a3828db0 19976#endif
97bf5e38 19977
bec39cab
AC
19978int
19979main ()
19980{
b4e70030 19981return f != $ac_func;
bec39cab
AC
19982 ;
19983 return 0;
19984}
19985_ACEOF
a3828db0
MK
19986rm -f conftest.$ac_objext conftest$ac_exeext
19987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19988 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
b4e70030
JB
19995 { ac_try='test -z "$ac_c_werror_flag"
19996 || test ! -s conftest.err'
bec39cab
AC
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; } &&
a3828db0 20002 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
a3828db0 20008 eval "$as_ac_var=yes"
a4db0f07 20009else
bec39cab
AC
20010 echo "$as_me: failed program was:" >&5
20011sed 's/^/| /' conftest.$ac_ext >&5
20012
b4e70030 20013eval "$as_ac_var=no"
a4db0f07 20014fi
a3828db0
MK
20015rm -f conftest.err conftest.$ac_objext \
20016 conftest$ac_exeext conftest.$ac_ext
a4db0f07 20017fi
b4e70030
JB
20018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20020if test `eval echo '${'$as_ac_var'}'` = yes; then
20021 cat >>confdefs.h <<_ACEOF
20022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 20023_ACEOF
a4db0f07
RH
20024
20025fi
a3828db0 20026done
c906108c 20027
06825bd1 20028
a3828db0
MK
20029# Check the return and argument types of ptrace. No canned test for
20030# this, so roll our own.
20031gdb_ptrace_headers='
20032#if HAVE_SYS_TYPES_H
20033# include <sys/types.h>
20034#endif
20035#if HAVE_SYS_PTRACE_H
20036# include <sys/ptrace.h>
20037#endif
20038#if HAVE_UNISTD_H
20039# include <unistd.h>
20040#endif
20041'
20042# There is no point in checking if we don't have a prototype.
b4e70030
JB
20043echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20044echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 20045if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20047else
20048 cat >conftest.$ac_ext <<_ACEOF
20049/* confdefs.h. */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
20053/* end confdefs.h. */
a3828db0
MK
20054$gdb_ptrace_headers
20055
bec39cab
AC
20056int
20057main ()
20058{
a3828db0
MK
20059#ifndef ptrace
20060 char *p = (char *) ptrace;
06825bd1 20061#endif
a3828db0 20062
bec39cab
AC
20063 ;
20064 return 0;
20065}
20066_ACEOF
20067rm -f conftest.$ac_objext
20068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20069 (eval $ac_compile) 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
b4e70030
JB
20076 { ac_try='test -z "$ac_c_werror_flag"
20077 || test ! -s conftest.err'
bec39cab
AC
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try='test -s conftest.$ac_objext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
a3828db0 20089 ac_cv_have_decl_ptrace=yes
06825bd1 20090else
bec39cab
AC
20091 echo "$as_me: failed program was:" >&5
20092sed 's/^/| /' conftest.$ac_ext >&5
20093
b4e70030 20094ac_cv_have_decl_ptrace=no
06825bd1 20095fi
bec39cab 20096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 20097fi
b4e70030
JB
20098echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20099echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 20100if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 20101
a3828db0
MK
20102cat >>confdefs.h <<_ACEOF
20103#define HAVE_DECL_PTRACE 1
20104_ACEOF
bec39cab 20105
bec39cab 20106
a3828db0
MK
20107else
20108 cat >>confdefs.h <<_ACEOF
20109#define HAVE_DECL_PTRACE 0
bec39cab 20110_ACEOF
06825bd1 20111
a3828db0
MK
20112
20113 : ${gdb_cv_func_ptrace_ret='int'}
20114 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20115
06825bd1
MK
20116fi
20117
a3828db0
MK
20118
20119# Check return type.
b4e70030
JB
20120echo "$as_me:$LINENO: checking return type of ptrace" >&5
20121echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 20122if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20124else
20125 cat >conftest.$ac_ext <<_ACEOF
20126/* confdefs.h. */
20127_ACEOF
20128cat confdefs.h >>conftest.$ac_ext
20129cat >>conftest.$ac_ext <<_ACEOF
20130/* end confdefs.h. */
a3828db0 20131$gdb_ptrace_headers
bec39cab
AC
20132int
20133main ()
20134{
a3828db0 20135extern int ptrace ();
bec39cab
AC
20136 ;
20137 return 0;
20138}
20139_ACEOF
20140rm -f conftest.$ac_objext
20141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142 (eval $ac_compile) 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
b4e70030
JB
20149 { ac_try='test -z "$ac_c_werror_flag"
20150 || test ! -s conftest.err'
bec39cab
AC
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } &&
20156 { ac_try='test -s conftest.$ac_objext'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
a3828db0 20162 gdb_cv_func_ptrace_ret='int'
70f9f479 20163else
bec39cab
AC
20164 echo "$as_me: failed program was:" >&5
20165sed 's/^/| /' conftest.$ac_ext >&5
20166
b4e70030 20167gdb_cv_func_ptrace_ret='long'
70f9f479 20168fi
bec39cab 20169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 20170fi
b4e70030
JB
20171echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20172echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 20173
a3828db0
MK
20174cat >>confdefs.h <<_ACEOF
20175#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 20176_ACEOF
70f9f479 20177
a3828db0 20178# Check argument types.
b4e70030
JB
20179echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20180echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 20181if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20183else
a3828db0
MK
20184
20185for gdb_arg1 in 'int' 'long'; do
20186 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 20187 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0
MK
20188 for gdb_arg4 in 'int' 'long'; do
20189 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20190/* confdefs.h. */
20191_ACEOF
20192cat confdefs.h >>conftest.$ac_ext
20193cat >>conftest.$ac_ext <<_ACEOF
20194/* end confdefs.h. */
a3828db0 20195$gdb_ptrace_headers
bec39cab
AC
20196int
20197main ()
20198{
a3828db0
MK
20199
20200extern $gdb_cv_func_ptrace_ret
20201 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20202
bec39cab
AC
20203 ;
20204 return 0;
20205}
20206_ACEOF
20207rm -f conftest.$ac_objext
20208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209 (eval $ac_compile) 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
b4e70030
JB
20216 { ac_try='test -z "$ac_c_werror_flag"
20217 || test ! -s conftest.err'
bec39cab
AC
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20220 ac_status=$?
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; } &&
20223 { ac_try='test -s conftest.$ac_objext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
a3828db0
MK
20229 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20230 break 4;
5c7f2947 20231else
bec39cab
AC
20232 echo "$as_me: failed program was:" >&5
20233sed 's/^/| /' conftest.$ac_ext >&5
20234
5c7f2947 20235fi
bec39cab 20236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20237 for gdb_arg5 in 'int *' 'int' 'long'; do
20238 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20239/* confdefs.h. */
20240_ACEOF
20241cat confdefs.h >>conftest.$ac_ext
20242cat >>conftest.$ac_ext <<_ACEOF
20243/* end confdefs.h. */
a3828db0 20244$gdb_ptrace_headers
bec39cab
AC
20245int
20246main ()
20247{
a3828db0
MK
20248
20249extern $gdb_cv_func_ptrace_ret
20250 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20251
bec39cab
AC
20252 ;
20253 return 0;
20254}
20255_ACEOF
20256rm -f conftest.$ac_objext
20257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20258 (eval $ac_compile) 2>conftest.er1
20259 ac_status=$?
20260 grep -v '^ *+' conftest.er1 >conftest.err
20261 rm -f conftest.er1
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } &&
b4e70030
JB
20265 { ac_try='test -z "$ac_c_werror_flag"
20266 || test ! -s conftest.err'
bec39cab
AC
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest.$ac_objext'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20275 ac_status=$?
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
a3828db0
MK
20278
20279gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20280 break 5;
78434e59 20281else
bec39cab
AC
20282 echo "$as_me: failed program was:" >&5
20283sed 's/^/| /' conftest.$ac_ext >&5
20284
78434e59 20285fi
bec39cab 20286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20287 done
20288 done
20289 done
20290 done
20291done
20292# Provide a safe default value.
20293: ${gdb_cv_func_ptrace_args='int,int,long,long'}
20294
78434e59 20295fi
b4e70030
JB
20296echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20297echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
20298ac_save_IFS=$IFS; IFS=','
20299set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20300IFS=$ac_save_IFS
20301shift
bec39cab 20302
a3828db0
MK
20303cat >>confdefs.h <<_ACEOF
20304#define PTRACE_TYPE_ARG3 $3
20305_ACEOF
20306
20307if test -n "$5"; then
20308
20309cat >>confdefs.h <<_ACEOF
20310#define PTRACE_TYPE_ARG5 $5
bec39cab 20311_ACEOF
78434e59
MK
20312
20313fi
20314
a3828db0 20315if test "$cross_compiling" = no; then
b4e70030
JB
20316 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20317echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 20318if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20319 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
20320else
20321 if test "$cross_compiling" = yes; then
20322 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20323echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20324 { (exit 1); exit 1; }; }
bec39cab
AC
20325else
20326 cat >conftest.$ac_ext <<_ACEOF
20327/* confdefs.h. */
20328_ACEOF
20329cat confdefs.h >>conftest.$ac_ext
20330cat >>conftest.$ac_ext <<_ACEOF
20331/* end confdefs.h. */
b4e70030
JB
20332#if HAVE_UNISTD_H
20333# include <unistd.h>
20334#endif
20335
bec39cab
AC
20336int
20337main ()
20338{
a3828db0
MK
20339/* If this system has a BSD-style setpgrp which takes arguments,
20340 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20341 exit successfully. */
b4e70030 20342 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
20343 ;
20344 return 0;
20345}
20346_ACEOF
a3828db0
MK
20347rm -f conftest$ac_exeext
20348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349 (eval $ac_link) 2>&5
bec39cab
AC
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 20352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; }; then
a3828db0 20358 ac_cv_func_setpgrp_void=no
c906108c 20359else
a3828db0
MK
20360 echo "$as_me: program exited with status $ac_status" >&5
20361echo "$as_me: failed program was:" >&5
bec39cab
AC
20362sed 's/^/| /' conftest.$ac_ext >&5
20363
a3828db0
MK
20364( exit $ac_status )
20365ac_cv_func_setpgrp_void=yes
c906108c 20366fi
b4e70030 20367rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20368fi
a3828db0 20369fi
b4e70030
JB
20370echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20371echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
20372if test $ac_cv_func_setpgrp_void = yes; then
20373
20374cat >>confdefs.h <<\_ACEOF
20375#define SETPGRP_VOID 1
bec39cab 20376_ACEOF
97bf5e38
MK
20377
20378fi
a3828db0
MK
20379
20380else
b4e70030
JB
20381 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20382echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 20383if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 20384 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20385else
bec39cab
AC
20386 cat >conftest.$ac_ext <<_ACEOF
20387/* confdefs.h. */
20388_ACEOF
20389cat confdefs.h >>conftest.$ac_ext
20390cat >>conftest.$ac_ext <<_ACEOF
20391/* end confdefs.h. */
a3828db0
MK
20392
20393#include <unistd.h>
20394
bec39cab
AC
20395int
20396main ()
20397{
a3828db0
MK
20398
20399 if (setpgrp(1,1) == -1)
20400 exit (0);
20401 else
20402 exit (1);
20403
bec39cab
AC
20404 ;
20405 return 0;
20406}
20407_ACEOF
20408rm -f conftest.$ac_objext
20409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20410 (eval $ac_compile) 2>conftest.er1
20411 ac_status=$?
20412 grep -v '^ *+' conftest.er1 >conftest.err
20413 rm -f conftest.er1
20414 cat conftest.err >&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); } &&
b4e70030
JB
20417 { ac_try='test -z "$ac_c_werror_flag"
20418 || test ! -s conftest.err'
bec39cab
AC
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; } &&
20424 { ac_try='test -s conftest.$ac_objext'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
a3828db0 20430 ac_cv_func_setpgrp_void=no
c906108c 20431else
bec39cab
AC
20432 echo "$as_me: failed program was:" >&5
20433sed 's/^/| /' conftest.$ac_ext >&5
20434
b4e70030 20435ac_cv_func_setpgrp_void=yes
c906108c 20436fi
bec39cab 20437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20438fi
b4e70030
JB
20439echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20440echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 20441if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 20442 cat >>confdefs.h <<\_ACEOF
a3828db0 20443#define SETPGRP_VOID 1
bec39cab 20444_ACEOF
c3f6f71d 20445
a3828db0 20446fi
c906108c
SS
20447fi
20448
a3828db0
MK
20449# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20450# since sigsetjmp might only be defined as a macro.
b4e70030
JB
20451echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20452echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 20453if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20455else
20456 cat >conftest.$ac_ext <<_ACEOF
20457/* confdefs.h. */
20458_ACEOF
20459cat confdefs.h >>conftest.$ac_ext
20460cat >>conftest.$ac_ext <<_ACEOF
20461/* end confdefs.h. */
a3828db0
MK
20462
20463#include <setjmp.h>
20464
bec39cab
AC
20465int
20466main ()
20467{
a3828db0 20468sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
20469 ;
20470 return 0;
20471}
20472_ACEOF
20473rm -f conftest.$ac_objext
20474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475 (eval $ac_compile) 2>conftest.er1
20476 ac_status=$?
20477 grep -v '^ *+' conftest.er1 >conftest.err
20478 rm -f conftest.er1
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
b4e70030
JB
20482 { ac_try='test -z "$ac_c_werror_flag"
20483 || test ! -s conftest.err'
bec39cab
AC
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest.$ac_objext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
a3828db0 20495 gdb_cv_func_sigsetjmp=yes
c906108c 20496else
bec39cab
AC
20497 echo "$as_me: failed program was:" >&5
20498sed 's/^/| /' conftest.$ac_ext >&5
20499
b4e70030 20500gdb_cv_func_sigsetjmp=no
c906108c 20501fi
bec39cab 20502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20503fi
b4e70030
JB
20504echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20505echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 20506if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 20507
a3828db0
MK
20508cat >>confdefs.h <<\_ACEOF
20509#define HAVE_SIGSETJMP 1
bec39cab 20510_ACEOF
c906108c 20511
97bf5e38 20512fi
c906108c 20513
a3828db0
MK
20514# Assume we'll default to using the included libiberty regex.
20515gdb_use_included_regex=yes
20516
20517# However, if the system regex is GNU regex, then default to *not*
20518# using the included regex.
b4e70030
JB
20519echo "$as_me:$LINENO: checking for GNU regex" >&5
20520echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 20521if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20523else
20524 cat >conftest.$ac_ext <<_ACEOF
20525/* confdefs.h. */
20526_ACEOF
20527cat confdefs.h >>conftest.$ac_ext
20528cat >>conftest.$ac_ext <<_ACEOF
20529/* end confdefs.h. */
a3828db0 20530#include <gnu-versions.h>
bec39cab
AC
20531int
20532main ()
20533{
a3828db0
MK
20534#define REGEX_INTERFACE_VERSION 1
20535#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20536# error "Version mismatch"
20537#endif
bec39cab
AC
20538 ;
20539 return 0;
20540}
20541_ACEOF
20542rm -f conftest.$ac_objext
20543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544 (eval $ac_compile) 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
b4e70030
JB
20551 { ac_try='test -z "$ac_c_werror_flag"
20552 || test ! -s conftest.err'
bec39cab
AC
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; } &&
20558 { ac_try='test -s conftest.$ac_objext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
a3828db0 20564 gdb_cv_have_gnu_regex=yes
c906108c 20565else
bec39cab
AC
20566 echo "$as_me: failed program was:" >&5
20567sed 's/^/| /' conftest.$ac_ext >&5
20568
b4e70030 20569gdb_cv_have_gnu_regex=no
c906108c 20570fi
bec39cab 20571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20572fi
b4e70030
JB
20573echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20574echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
20575if test $gdb_cv_have_gnu_regex = yes; then
20576 gdb_use_included_regex=no
20577fi
c906108c 20578
a3828db0 20579
b4e70030 20580# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 20581if test "${with_included_regex+set}" = set; then
b4e70030
JB
20582 withval="$with_included_regex"
20583 gdb_with_regex=$withval
a3828db0
MK
20584else
20585 gdb_with_regex=$gdb_use_included_regex
b4e70030 20586fi;
a3828db0
MK
20587if test "$gdb_with_regex" = yes; then
20588
20589cat >>confdefs.h <<\_ACEOF
20590#define USE_INCLUDED_REGEX 1
bec39cab 20591_ACEOF
c906108c 20592
97bf5e38 20593fi
c906108c 20594
5c45e068 20595# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
20596echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20597echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 20598if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20600else
20601 cat >conftest.$ac_ext <<_ACEOF
20602/* confdefs.h. */
20603_ACEOF
20604cat confdefs.h >>conftest.$ac_ext
20605cat >>conftest.$ac_ext <<_ACEOF
20606/* end confdefs.h. */
a3828db0
MK
20607#include <sys/param.h>
20608#include <sys/proc.h>
5c45e068
MK
20609
20610
bec39cab
AC
20611int
20612main ()
20613{
5c45e068
MK
20614static struct thread ac_aggr;
20615if (ac_aggr.td_pcb)
20616return 0;
bec39cab
AC
20617 ;
20618 return 0;
20619}
20620_ACEOF
20621rm -f conftest.$ac_objext
20622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20623 (eval $ac_compile) 2>conftest.er1
20624 ac_status=$?
20625 grep -v '^ *+' conftest.er1 >conftest.err
20626 rm -f conftest.er1
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } &&
b4e70030
JB
20630 { ac_try='test -z "$ac_c_werror_flag"
20631 || test ! -s conftest.err'
bec39cab
AC
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; } &&
20637 { ac_try='test -s conftest.$ac_objext'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
5c45e068 20643 ac_cv_member_struct_thread_td_pcb=yes
c906108c 20644else
bec39cab
AC
20645 echo "$as_me: failed program was:" >&5
20646sed 's/^/| /' conftest.$ac_ext >&5
20647
b4e70030 20648cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20649/* confdefs.h. */
20650_ACEOF
20651cat confdefs.h >>conftest.$ac_ext
20652cat >>conftest.$ac_ext <<_ACEOF
20653/* end confdefs.h. */
20654#include <sys/param.h>
20655#include <sys/proc.h>
20656
20657
20658int
20659main ()
20660{
20661static struct thread ac_aggr;
20662if (sizeof ac_aggr.td_pcb)
20663return 0;
20664 ;
20665 return 0;
20666}
20667_ACEOF
20668rm -f conftest.$ac_objext
20669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20670 (eval $ac_compile) 2>conftest.er1
20671 ac_status=$?
20672 grep -v '^ *+' conftest.er1 >conftest.err
20673 rm -f conftest.er1
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
b4e70030
JB
20677 { ac_try='test -z "$ac_c_werror_flag"
20678 || test ! -s conftest.err'
5c45e068
MK
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20681 ac_status=$?
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest.$ac_objext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_cv_member_struct_thread_td_pcb=yes
20691else
20692 echo "$as_me: failed program was:" >&5
20693sed 's/^/| /' conftest.$ac_ext >&5
20694
b4e70030 20695ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
20696fi
20697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20698fi
bec39cab 20699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20700fi
b4e70030
JB
20701echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20702echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 20703if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 20704
5c45e068 20705cat >>confdefs.h <<_ACEOF
a3828db0 20706#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 20707_ACEOF
c906108c 20708
5c45e068 20709
97bf5e38 20710fi
c906108c 20711
5c45e068 20712
a3828db0 20713# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
20714echo "$as_me:$LINENO: checking for struct lwp" >&5
20715echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 20716if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20718else
20719 cat >conftest.$ac_ext <<_ACEOF
20720/* confdefs.h. */
20721_ACEOF
20722cat confdefs.h >>conftest.$ac_ext
20723cat >>conftest.$ac_ext <<_ACEOF
20724/* end confdefs.h. */
a3828db0
MK
20725#include <sys/param.h>
20726#include <sys/lwp.h>
bec39cab
AC
20727int
20728main ()
20729{
a3828db0 20730struct lwp l;
bec39cab
AC
20731 ;
20732 return 0;
20733}
20734_ACEOF
20735rm -f conftest.$ac_objext
20736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20737 (eval $ac_compile) 2>conftest.er1
20738 ac_status=$?
20739 grep -v '^ *+' conftest.er1 >conftest.err
20740 rm -f conftest.er1
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
b4e70030
JB
20744 { ac_try='test -z "$ac_c_werror_flag"
20745 || test ! -s conftest.err'
bec39cab
AC
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; } &&
20751 { ac_try='test -s conftest.$ac_objext'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; }; then
a3828db0 20757 gdb_cv_struct_lwp=yes
c906108c 20758else
bec39cab
AC
20759 echo "$as_me: failed program was:" >&5
20760sed 's/^/| /' conftest.$ac_ext >&5
20761
b4e70030 20762gdb_cv_struct_lwp=no
c906108c 20763fi
bec39cab 20764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20765fi
b4e70030
JB
20766echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20767echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 20768if test $gdb_cv_struct_lwp = yes; then
c906108c 20769
a3828db0
MK
20770cat >>confdefs.h <<\_ACEOF
20771#define HAVE_STRUCT_LWP 1
bec39cab 20772_ACEOF
c906108c 20773
97bf5e38 20774fi
c906108c 20775
a3828db0 20776# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
20777echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20778echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 20779if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20781else
20782 cat >conftest.$ac_ext <<_ACEOF
20783/* confdefs.h. */
20784_ACEOF
20785cat confdefs.h >>conftest.$ac_ext
20786cat >>conftest.$ac_ext <<_ACEOF
20787/* end confdefs.h. */
a3828db0
MK
20788#include <sys/types.h>
20789#include <machine/reg.h>
bec39cab
AC
20790int
20791main ()
20792{
a3828db0 20793struct reg r;
bec39cab
AC
20794 ;
20795 return 0;
20796}
20797_ACEOF
20798rm -f conftest.$ac_objext
20799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20800 (eval $ac_compile) 2>conftest.er1
20801 ac_status=$?
20802 grep -v '^ *+' conftest.er1 >conftest.err
20803 rm -f conftest.er1
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
b4e70030
JB
20807 { ac_try='test -z "$ac_c_werror_flag"
20808 || test ! -s conftest.err'
bec39cab
AC
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try='test -s conftest.$ac_objext'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
a3828db0 20820 gdb_cv_struct_reg=yes
27ca5dad 20821else
bec39cab
AC
20822 echo "$as_me: failed program was:" >&5
20823sed 's/^/| /' conftest.$ac_ext >&5
20824
b4e70030 20825gdb_cv_struct_reg=no
27ca5dad 20826fi
bec39cab 20827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 20828fi
b4e70030
JB
20829echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20830echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 20831if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
20832
20833cat >>confdefs.h <<\_ACEOF
a3828db0 20834#define HAVE_STRUCT_REG 1
bec39cab 20835_ACEOF
27ca5dad
MC
20836
20837fi
97bf5e38 20838
a3828db0
MK
20839# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20840# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
20841echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20842echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 20843if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 20844 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20845else
bec39cab
AC
20846 cat >conftest.$ac_ext <<_ACEOF
20847/* confdefs.h. */
20848_ACEOF
20849cat confdefs.h >>conftest.$ac_ext
20850cat >>conftest.$ac_ext <<_ACEOF
20851/* end confdefs.h. */
a3828db0 20852#include <machine/reg.h>
5c45e068
MK
20853
20854int
20855main ()
20856{
20857static struct reg ac_aggr;
20858if (ac_aggr.r_fs)
20859return 0;
20860 ;
20861 return 0;
20862}
20863_ACEOF
20864rm -f conftest.$ac_objext
20865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20866 (eval $ac_compile) 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
b4e70030
JB
20873 { ac_try='test -z "$ac_c_werror_flag"
20874 || test ! -s conftest.err'
5c45e068
MK
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; } &&
20880 { ac_try='test -s conftest.$ac_objext'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
20886 ac_cv_member_struct_reg_r_fs=yes
20887else
20888 echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
20890
b4e70030 20891cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20892/* confdefs.h. */
20893_ACEOF
20894cat confdefs.h >>conftest.$ac_ext
20895cat >>conftest.$ac_ext <<_ACEOF
20896/* end confdefs.h. */
20897#include <machine/reg.h>
20898
bec39cab
AC
20899int
20900main ()
20901{
5c45e068
MK
20902static struct reg ac_aggr;
20903if (sizeof ac_aggr.r_fs)
20904return 0;
bec39cab
AC
20905 ;
20906 return 0;
20907}
20908_ACEOF
20909rm -f conftest.$ac_objext
20910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20911 (eval $ac_compile) 2>conftest.er1
20912 ac_status=$?
20913 grep -v '^ *+' conftest.er1 >conftest.err
20914 rm -f conftest.er1
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
b4e70030
JB
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
bec39cab
AC
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest.$ac_objext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
5c45e068 20931 ac_cv_member_struct_reg_r_fs=yes
3862412b 20932else
bec39cab
AC
20933 echo "$as_me: failed program was:" >&5
20934sed 's/^/| /' conftest.$ac_ext >&5
20935
b4e70030 20936ac_cv_member_struct_reg_r_fs=no
3862412b 20937fi
bec39cab 20938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 20939fi
5c45e068
MK
20940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20941fi
b4e70030
JB
20942echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20943echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
20944if test $ac_cv_member_struct_reg_r_fs = yes; then
20945
20946cat >>confdefs.h <<_ACEOF
a3828db0 20947#define HAVE_STRUCT_REG_R_FS 1
bec39cab 20948_ACEOF
3862412b 20949
5c45e068 20950
97bf5e38 20951fi
b4e70030
JB
20952echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20953echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 20954if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 20955 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20956else
bec39cab
AC
20957 cat >conftest.$ac_ext <<_ACEOF
20958/* confdefs.h. */
20959_ACEOF
20960cat confdefs.h >>conftest.$ac_ext
20961cat >>conftest.$ac_ext <<_ACEOF
20962/* end confdefs.h. */
a3828db0 20963#include <machine/reg.h>
5c45e068 20964
bec39cab
AC
20965int
20966main ()
20967{
5c45e068
MK
20968static struct reg ac_aggr;
20969if (ac_aggr.r_gs)
20970return 0;
bec39cab
AC
20971 ;
20972 return 0;
20973}
20974_ACEOF
20975rm -f conftest.$ac_objext
20976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977 (eval $ac_compile) 2>conftest.er1
20978 ac_status=$?
20979 grep -v '^ *+' conftest.er1 >conftest.err
20980 rm -f conftest.er1
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
b4e70030
JB
20984 { ac_try='test -z "$ac_c_werror_flag"
20985 || test ! -s conftest.err'
bec39cab
AC
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; } &&
20991 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5c45e068 20997 ac_cv_member_struct_reg_r_gs=yes
3862412b 20998else
bec39cab
AC
20999 echo "$as_me: failed program was:" >&5
21000sed 's/^/| /' conftest.$ac_ext >&5
21001
b4e70030 21002cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
21003/* confdefs.h. */
21004_ACEOF
21005cat confdefs.h >>conftest.$ac_ext
21006cat >>conftest.$ac_ext <<_ACEOF
21007/* end confdefs.h. */
21008#include <machine/reg.h>
21009
21010int
21011main ()
21012{
21013static struct reg ac_aggr;
21014if (sizeof ac_aggr.r_gs)
21015return 0;
21016 ;
21017 return 0;
21018}
21019_ACEOF
21020rm -f conftest.$ac_objext
21021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022 (eval $ac_compile) 2>conftest.er1
21023 ac_status=$?
21024 grep -v '^ *+' conftest.er1 >conftest.err
21025 rm -f conftest.er1
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
b4e70030
JB
21029 { ac_try='test -z "$ac_c_werror_flag"
21030 || test ! -s conftest.err'
5c45e068
MK
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_cv_member_struct_reg_r_gs=yes
21043else
21044 echo "$as_me: failed program was:" >&5
21045sed 's/^/| /' conftest.$ac_ext >&5
21046
b4e70030 21047ac_cv_member_struct_reg_r_gs=no
3862412b 21048fi
bec39cab 21049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 21050fi
5c45e068
MK
21051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21052fi
b4e70030
JB
21053echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21054echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
21055if test $ac_cv_member_struct_reg_r_gs = yes; then
21056
21057cat >>confdefs.h <<_ACEOF
a3828db0 21058#define HAVE_STRUCT_REG_R_GS 1
bec39cab 21059_ACEOF
3862412b 21060
5c45e068 21061
97bf5e38 21062fi
3862412b 21063
5c45e068 21064
a3828db0 21065# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
21066echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21067echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 21068if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 21069 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 21070else
bec39cab
AC
21071 cat >conftest.$ac_ext <<_ACEOF
21072/* confdefs.h. */
21073_ACEOF
21074cat confdefs.h >>conftest.$ac_ext
21075cat >>conftest.$ac_ext <<_ACEOF
21076/* end confdefs.h. */
a3828db0 21077#include <sys/ptrace.h>
bec39cab
AC
21078int
21079main ()
21080{
a3828db0 21081PTRACE_GETREGS;
bec39cab
AC
21082 ;
21083 return 0;
21084}
21085_ACEOF
21086rm -f conftest.$ac_objext
21087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088 (eval $ac_compile) 2>conftest.er1
21089 ac_status=$?
21090 grep -v '^ *+' conftest.er1 >conftest.err
21091 rm -f conftest.er1
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } &&
b4e70030
JB
21095 { ac_try='test -z "$ac_c_werror_flag"
21096 || test ! -s conftest.err'
bec39cab
AC
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21099 ac_status=$?
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; } &&
21102 { ac_try='test -s conftest.$ac_objext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
a3828db0 21108 gdb_cv_have_ptrace_getregs=yes
451928c5 21109else
bec39cab
AC
21110 echo "$as_me: failed program was:" >&5
21111sed 's/^/| /' conftest.$ac_ext >&5
21112
b4e70030 21113gdb_cv_have_ptrace_getregs=no
451928c5 21114fi
bec39cab 21115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
21116fi
21117
b4e70030
JB
21118echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21119echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 21120if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
21121
21122cat >>confdefs.h <<\_ACEOF
a3828db0 21123#define HAVE_PTRACE_GETREGS 1
bec39cab 21124_ACEOF
451928c5 21125
97bf5e38 21126fi
451928c5 21127
a3828db0 21128# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
21129echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21130echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 21131if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 21132 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 21133else
bec39cab
AC
21134 cat >conftest.$ac_ext <<_ACEOF
21135/* confdefs.h. */
21136_ACEOF
21137cat confdefs.h >>conftest.$ac_ext
21138cat >>conftest.$ac_ext <<_ACEOF
21139/* end confdefs.h. */
a3828db0 21140#include <sys/ptrace.h>
bec39cab
AC
21141int
21142main ()
21143{
a3828db0 21144PTRACE_GETFPXREGS;
bec39cab
AC
21145 ;
21146 return 0;
21147}
21148_ACEOF
21149rm -f conftest.$ac_objext
21150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21151 (eval $ac_compile) 2>conftest.er1
21152 ac_status=$?
21153 grep -v '^ *+' conftest.er1 >conftest.err
21154 rm -f conftest.er1
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
b4e70030
JB
21158 { ac_try='test -z "$ac_c_werror_flag"
21159 || test ! -s conftest.err'
bec39cab
AC
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21162 ac_status=$?
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; } &&
21165 { ac_try='test -s conftest.$ac_objext'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21168 ac_status=$?
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
a3828db0 21171 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 21172else
bec39cab
AC
21173 echo "$as_me: failed program was:" >&5
21174sed 's/^/| /' conftest.$ac_ext >&5
21175
b4e70030 21176gdb_cv_have_ptrace_getfpxregs=no
451928c5 21177fi
bec39cab 21178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
21179fi
21180
b4e70030
JB
21181echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21182echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 21183if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
21184
21185cat >>confdefs.h <<\_ACEOF
a3828db0 21186#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 21187_ACEOF
451928c5 21188
97bf5e38 21189fi
451928c5 21190
a3828db0 21191# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
21192echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21193echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 21194if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 21195 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21196else
bec39cab
AC
21197 cat >conftest.$ac_ext <<_ACEOF
21198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
a3828db0
MK
21203#include <sys/types.h>
21204#include <sys/ptrace.h>
bec39cab
AC
21205int
21206main ()
21207{
a3828db0 21208PT_GETDBREGS;
bec39cab
AC
21209 ;
21210 return 0;
21211}
21212_ACEOF
21213rm -f conftest.$ac_objext
21214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21215 (eval $ac_compile) 2>conftest.er1
21216 ac_status=$?
21217 grep -v '^ *+' conftest.er1 >conftest.err
21218 rm -f conftest.er1
21219 cat conftest.err >&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
b4e70030
JB
21222 { ac_try='test -z "$ac_c_werror_flag"
21223 || test ! -s conftest.err'
bec39cab
AC
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; } &&
21229 { ac_try='test -s conftest.$ac_objext'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
a3828db0 21235 gdb_cv_have_pt_getdbregs=yes
3862412b 21236else
bec39cab
AC
21237 echo "$as_me: failed program was:" >&5
21238sed 's/^/| /' conftest.$ac_ext >&5
21239
b4e70030 21240gdb_cv_have_pt_getdbregs=no
3862412b 21241fi
bec39cab 21242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
21243fi
21244
b4e70030
JB
21245echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21246echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 21247if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
21248
21249cat >>confdefs.h <<\_ACEOF
a3828db0 21250#define HAVE_PT_GETDBREGS 1
bec39cab 21251_ACEOF
3862412b 21252
97bf5e38 21253fi
3862412b 21254
a3828db0 21255# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
21256echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21257echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 21258if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 21259 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 21260else
bec39cab
AC
21261 cat >conftest.$ac_ext <<_ACEOF
21262/* confdefs.h. */
21263_ACEOF
21264cat confdefs.h >>conftest.$ac_ext
21265cat >>conftest.$ac_ext <<_ACEOF
21266/* end confdefs.h. */
a3828db0
MK
21267#include <sys/types.h>
21268#include <sys/ptrace.h>
bec39cab
AC
21269int
21270main ()
21271{
a3828db0 21272PT_GETXMMREGS;
bec39cab
AC
21273 ;
21274 return 0;
21275}
21276_ACEOF
21277rm -f conftest.$ac_objext
21278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21279 (eval $ac_compile) 2>conftest.er1
21280 ac_status=$?
21281 grep -v '^ *+' conftest.er1 >conftest.err
21282 rm -f conftest.er1
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } &&
b4e70030
JB
21286 { ac_try='test -z "$ac_c_werror_flag"
21287 || test ! -s conftest.err'
bec39cab
AC
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; } &&
21293 { ac_try='test -s conftest.$ac_objext'
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; }; then
a3828db0 21299 gdb_cv_have_pt_getxmmregs=yes
3862412b 21300else
bec39cab
AC
21301 echo "$as_me: failed program was:" >&5
21302sed 's/^/| /' conftest.$ac_ext >&5
21303
b4e70030 21304gdb_cv_have_pt_getxmmregs=no
3862412b 21305fi
bec39cab 21306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
21307fi
21308
b4e70030
JB
21309echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21310echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 21311if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
21312
21313cat >>confdefs.h <<\_ACEOF
a3828db0 21314#define HAVE_PT_GETXMMREGS 1
bec39cab 21315_ACEOF
3862412b 21316
97bf5e38 21317fi
3862412b 21318
eb368090 21319# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
21320
21321if test "${target}" = "${host}"; then
21322 case "${host}" in
97bf5e38 21323 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
21324
21325cat >>confdefs.h <<\_ACEOF
97bf5e38 21326#define NEW_PROC_API 1
bec39cab 21327_ACEOF
97bf5e38
MK
21328
21329 ;;
c162e8c9 21330 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f
SE
21331
21332cat >>confdefs.h <<\_ACEOF
97bf5e38 21333#define NEW_PROC_API 1
bec39cab 21334_ACEOF
c960c18f
AC
21335
21336 ;;
21337 mips-sgi-irix5*)
21338 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
21339
21340cat >>confdefs.h <<\_ACEOF
c960c18f 21341#define _KMEMUSER 1
bec39cab 21342_ACEOF
97bf5e38
MK
21343
21344 ;;
21345 esac
21346fi
21347
21348if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
21349 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21350echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21351 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21353else
21354 cat >conftest.$ac_ext <<_ACEOF
21355/* confdefs.h. */
21356_ACEOF
21357cat confdefs.h >>conftest.$ac_ext
21358cat >>conftest.$ac_ext <<_ACEOF
21359/* end confdefs.h. */
596c9d4b
KB
21360
21361#define _SYSCALL32
21362#include <sys/procfs.h>
bec39cab
AC
21363int
21364main ()
21365{
97bf5e38 21366pstatus_t avar
bec39cab
AC
21367 ;
21368 return 0;
21369}
21370_ACEOF
21371rm -f conftest.$ac_objext
21372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21373 (eval $ac_compile) 2>conftest.er1
21374 ac_status=$?
21375 grep -v '^ *+' conftest.er1 >conftest.err
21376 rm -f conftest.er1
21377 cat conftest.err >&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } &&
b4e70030
JB
21380 { ac_try='test -z "$ac_c_werror_flag"
21381 || test ! -s conftest.err'
bec39cab
AC
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; } &&
21387 { ac_try='test -s conftest.$ac_objext'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21390 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; }; then
97bf5e38 21393 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 21394else
bec39cab
AC
21395 echo "$as_me: failed program was:" >&5
21396sed 's/^/| /' conftest.$ac_ext >&5
21397
b4e70030 21398bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 21399
596c9d4b 21400fi
bec39cab 21401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21402fi
21403
97bf5e38 21404 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
21405
21406cat >>confdefs.h <<\_ACEOF
97bf5e38 21407#define HAVE_PSTATUS_T 1
bec39cab 21408_ACEOF
596c9d4b
KB
21409
21410 fi
b4e70030
JB
21411 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21412echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 21413
b4e70030
JB
21414 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21415echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21416 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21418else
bec39cab
AC
21419 cat >conftest.$ac_ext <<_ACEOF
21420/* confdefs.h. */
21421_ACEOF
21422cat confdefs.h >>conftest.$ac_ext
21423cat >>conftest.$ac_ext <<_ACEOF
21424/* end confdefs.h. */
596c9d4b
KB
21425
21426#define _SYSCALL32
21427#include <sys/procfs.h>
bec39cab
AC
21428int
21429main ()
21430{
97bf5e38 21431prrun_t avar
bec39cab
AC
21432 ;
21433 return 0;
21434}
21435_ACEOF
21436rm -f conftest.$ac_objext
21437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21438 (eval $ac_compile) 2>conftest.er1
21439 ac_status=$?
21440 grep -v '^ *+' conftest.er1 >conftest.err
21441 rm -f conftest.er1
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } &&
b4e70030
JB
21445 { ac_try='test -z "$ac_c_werror_flag"
21446 || test ! -s conftest.err'
bec39cab
AC
21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21448 (eval $ac_try) 2>&5
21449 ac_status=$?
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); }; } &&
21452 { ac_try='test -s conftest.$ac_objext'
21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454 (eval $ac_try) 2>&5
21455 ac_status=$?
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; }; then
97bf5e38 21458 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 21459else
bec39cab
AC
21460 echo "$as_me: failed program was:" >&5
21461sed 's/^/| /' conftest.$ac_ext >&5
21462
b4e70030 21463bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 21464
596c9d4b 21465fi
bec39cab 21466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21467fi
21468
97bf5e38 21469 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
21470
21471cat >>confdefs.h <<\_ACEOF
97bf5e38 21472#define HAVE_PRRUN_T 1
bec39cab 21473_ACEOF
596c9d4b
KB
21474
21475 fi
b4e70030
JB
21476 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21477echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 21478
b4e70030
JB
21479 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21480echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21481 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 21483else
bec39cab
AC
21484 cat >conftest.$ac_ext <<_ACEOF
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
596c9d4b
KB
21490
21491#define _SYSCALL32
21492#include <sys/procfs.h>
bec39cab
AC
21493int
21494main ()
21495{
97bf5e38 21496gregset_t avar
bec39cab
AC
21497 ;
21498 return 0;
21499}
21500_ACEOF
21501rm -f conftest.$ac_objext
21502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503 (eval $ac_compile) 2>conftest.er1
21504 ac_status=$?
21505 grep -v '^ *+' conftest.er1 >conftest.err
21506 rm -f conftest.er1
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
b4e70030
JB
21510 { ac_try='test -z "$ac_c_werror_flag"
21511 || test ! -s conftest.err'
bec39cab
AC
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try='test -s conftest.$ac_objext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
97bf5e38 21523 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 21524else
bec39cab
AC
21525 echo "$as_me: failed program was:" >&5
21526sed 's/^/| /' conftest.$ac_ext >&5
21527
b4e70030 21528bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 21529
596c9d4b 21530fi
bec39cab 21531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
21532fi
21533
97bf5e38 21534 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
21535
21536cat >>confdefs.h <<\_ACEOF
97bf5e38 21537#define HAVE_GREGSET_T 1
bec39cab 21538_ACEOF
596c9d4b
KB
21539
21540 fi
b4e70030
JB
21541 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21542echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 21543
b4e70030
JB
21544 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21545echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21546 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 21548else
bec39cab
AC
21549 cat >conftest.$ac_ext <<_ACEOF
21550/* confdefs.h. */
21551_ACEOF
21552cat confdefs.h >>conftest.$ac_ext
21553cat >>conftest.$ac_ext <<_ACEOF
21554/* end confdefs.h. */
97bf5e38
MK
21555
21556#define _SYSCALL32
d84dd0c5 21557#include <sys/procfs.h>
bec39cab
AC
21558int
21559main ()
21560{
97bf5e38 21561fpregset_t avar
bec39cab
AC
21562 ;
21563 return 0;
21564}
21565_ACEOF
21566rm -f conftest.$ac_objext
21567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21568 (eval $ac_compile) 2>conftest.er1
21569 ac_status=$?
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
b4e70030
JB
21575 { ac_try='test -z "$ac_c_werror_flag"
21576 || test ! -s conftest.err'
bec39cab
AC
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; } &&
21582 { ac_try='test -s conftest.$ac_objext'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
97bf5e38 21588 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 21589else
bec39cab
AC
21590 echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
b4e70030 21593bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 21594
d84dd0c5 21595fi
bec39cab 21596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
21597fi
21598
97bf5e38 21599 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
21600
21601cat >>confdefs.h <<\_ACEOF
97bf5e38 21602#define HAVE_FPREGSET_T 1
bec39cab 21603_ACEOF
d84dd0c5 21604
97bf5e38 21605 fi
b4e70030
JB
21606 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21607echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 21608
b4e70030
JB
21609 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21610echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21611 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21613else
bec39cab
AC
21614 cat >conftest.$ac_ext <<_ACEOF
21615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
c906108c 21620
97bf5e38
MK
21621#define _SYSCALL32
21622#include <sys/procfs.h>
bec39cab
AC
21623int
21624main ()
21625{
97bf5e38 21626prgregset_t avar
bec39cab
AC
21627 ;
21628 return 0;
21629}
21630_ACEOF
21631rm -f conftest.$ac_objext
21632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21633 (eval $ac_compile) 2>conftest.er1
21634 ac_status=$?
21635 grep -v '^ *+' conftest.er1 >conftest.err
21636 rm -f conftest.er1
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } &&
b4e70030
JB
21640 { ac_try='test -z "$ac_c_werror_flag"
21641 || test ! -s conftest.err'
bec39cab
AC
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; } &&
21647 { ac_try='test -s conftest.$ac_objext'
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; }; then
97bf5e38 21653 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 21654else
bec39cab
AC
21655 echo "$as_me: failed program was:" >&5
21656sed 's/^/| /' conftest.$ac_ext >&5
21657
b4e70030 21658bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 21659
c906108c 21660fi
bec39cab 21661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21662fi
21663
97bf5e38 21664 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
21665
21666cat >>confdefs.h <<\_ACEOF
97bf5e38 21667#define HAVE_PRGREGSET_T 1
bec39cab 21668_ACEOF
c906108c 21669
97bf5e38 21670 fi
b4e70030
JB
21671 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21672echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 21673
b4e70030
JB
21674 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21675echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21676 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21678else
bec39cab
AC
21679 cat >conftest.$ac_ext <<_ACEOF
21680/* confdefs.h. */
21681_ACEOF
21682cat confdefs.h >>conftest.$ac_ext
21683cat >>conftest.$ac_ext <<_ACEOF
21684/* end confdefs.h. */
97bf5e38
MK
21685
21686#define _SYSCALL32
21687#include <sys/procfs.h>
bec39cab
AC
21688int
21689main ()
21690{
97bf5e38 21691prfpregset_t avar
bec39cab
AC
21692 ;
21693 return 0;
21694}
21695_ACEOF
21696rm -f conftest.$ac_objext
21697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21698 (eval $ac_compile) 2>conftest.er1
21699 ac_status=$?
21700 grep -v '^ *+' conftest.er1 >conftest.err
21701 rm -f conftest.er1
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } &&
b4e70030
JB
21705 { ac_try='test -z "$ac_c_werror_flag"
21706 || test ! -s conftest.err'
bec39cab
AC
21707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708 (eval $ac_try) 2>&5
21709 ac_status=$?
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; } &&
21712 { ac_try='test -s conftest.$ac_objext'
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21715 ac_status=$?
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; }; then
97bf5e38 21718 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 21719else
bec39cab
AC
21720 echo "$as_me: failed program was:" >&5
21721sed 's/^/| /' conftest.$ac_ext >&5
21722
b4e70030 21723bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 21724
d45fe813 21725fi
bec39cab 21726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21727fi
21728
97bf5e38 21729 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
21730
21731cat >>confdefs.h <<\_ACEOF
97bf5e38 21732#define HAVE_PRFPREGSET_T 1
bec39cab 21733_ACEOF
d45fe813 21734
97bf5e38 21735 fi
b4e70030
JB
21736 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21737echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 21738
b4e70030
JB
21739 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21740echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21741 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21743else
bec39cab
AC
21744 cat >conftest.$ac_ext <<_ACEOF
21745/* confdefs.h. */
21746_ACEOF
21747cat confdefs.h >>conftest.$ac_ext
21748cat >>conftest.$ac_ext <<_ACEOF
21749/* end confdefs.h. */
97bf5e38
MK
21750
21751#define _SYSCALL32
21752#include <sys/procfs.h>
bec39cab
AC
21753int
21754main ()
21755{
97bf5e38 21756prgregset32_t avar
bec39cab
AC
21757 ;
21758 return 0;
21759}
21760_ACEOF
21761rm -f conftest.$ac_objext
21762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21763 (eval $ac_compile) 2>conftest.er1
21764 ac_status=$?
21765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
b4e70030
JB
21770 { ac_try='test -z "$ac_c_werror_flag"
21771 || test ! -s conftest.err'
bec39cab
AC
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21774 ac_status=$?
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; } &&
21777 { ac_try='test -s conftest.$ac_objext'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
97bf5e38 21783 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 21784else
bec39cab
AC
21785 echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
b4e70030 21788bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 21789
d45fe813 21790fi
bec39cab 21791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21792fi
21793
97bf5e38 21794 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
21795
21796cat >>confdefs.h <<\_ACEOF
97bf5e38 21797#define HAVE_PRGREGSET32_T 1
bec39cab 21798_ACEOF
d45fe813 21799
97bf5e38 21800 fi
b4e70030
JB
21801 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21802echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 21803
b4e70030
JB
21804 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21805echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21806 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21808else
bec39cab
AC
21809 cat >conftest.$ac_ext <<_ACEOF
21810/* confdefs.h. */
21811_ACEOF
21812cat confdefs.h >>conftest.$ac_ext
21813cat >>conftest.$ac_ext <<_ACEOF
21814/* end confdefs.h. */
97bf5e38
MK
21815
21816#define _SYSCALL32
21817#include <sys/procfs.h>
bec39cab
AC
21818int
21819main ()
21820{
97bf5e38 21821prfpregset32_t avar
bec39cab
AC
21822 ;
21823 return 0;
21824}
21825_ACEOF
21826rm -f conftest.$ac_objext
21827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21828 (eval $ac_compile) 2>conftest.er1
21829 ac_status=$?
21830 grep -v '^ *+' conftest.er1 >conftest.err
21831 rm -f conftest.er1
21832 cat conftest.err >&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); } &&
b4e70030
JB
21835 { ac_try='test -z "$ac_c_werror_flag"
21836 || test ! -s conftest.err'
bec39cab
AC
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21839 ac_status=$?
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; } &&
21842 { ac_try='test -s conftest.$ac_objext'
21843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844 (eval $ac_try) 2>&5
21845 ac_status=$?
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); }; }; then
97bf5e38 21848 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 21849else
bec39cab
AC
21850 echo "$as_me: failed program was:" >&5
21851sed 's/^/| /' conftest.$ac_ext >&5
21852
b4e70030 21853bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 21854
d45fe813 21855fi
bec39cab 21856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21857fi
21858
97bf5e38 21859 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
21860
21861cat >>confdefs.h <<\_ACEOF
97bf5e38 21862#define HAVE_PRFPREGSET32_T 1
bec39cab 21863_ACEOF
d45fe813 21864
97bf5e38 21865 fi
b4e70030
JB
21866 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21867echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 21868
b4e70030
JB
21869 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21870echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21871 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21873else
bec39cab
AC
21874 cat >conftest.$ac_ext <<_ACEOF
21875/* confdefs.h. */
21876_ACEOF
21877cat confdefs.h >>conftest.$ac_ext
21878cat >>conftest.$ac_ext <<_ACEOF
21879/* end confdefs.h. */
97bf5e38 21880
d45fe813 21881#define _SYSCALL32
97bf5e38 21882#include <sys/procfs.h>
bec39cab
AC
21883int
21884main ()
21885{
97bf5e38 21886lwpid_t avar
bec39cab
AC
21887 ;
21888 return 0;
21889}
21890_ACEOF
21891rm -f conftest.$ac_objext
21892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21893 (eval $ac_compile) 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } &&
b4e70030
JB
21900 { ac_try='test -z "$ac_c_werror_flag"
21901 || test ! -s conftest.err'
bec39cab
AC
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; } &&
21907 { ac_try='test -s conftest.$ac_objext'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
97bf5e38 21913 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 21914else
bec39cab
AC
21915 echo "$as_me: failed program was:" >&5
21916sed 's/^/| /' conftest.$ac_ext >&5
21917
b4e70030 21918bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 21919
d45fe813 21920fi
bec39cab 21921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21922fi
21923
97bf5e38 21924 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
21925
21926cat >>confdefs.h <<\_ACEOF
97bf5e38 21927#define HAVE_LWPID_T 1
bec39cab 21928_ACEOF
d45fe813 21929
97bf5e38 21930 fi
b4e70030
JB
21931 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21932echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 21933
b4e70030
JB
21934 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21935echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21936 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21938else
bec39cab
AC
21939 cat >conftest.$ac_ext <<_ACEOF
21940/* confdefs.h. */
21941_ACEOF
21942cat confdefs.h >>conftest.$ac_ext
21943cat >>conftest.$ac_ext <<_ACEOF
21944/* end confdefs.h. */
c906108c 21945
97bf5e38
MK
21946#define _SYSCALL32
21947#include <sys/procfs.h>
bec39cab
AC
21948int
21949main ()
21950{
97bf5e38 21951psaddr_t avar
bec39cab
AC
21952 ;
21953 return 0;
21954}
21955_ACEOF
21956rm -f conftest.$ac_objext
21957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21958 (eval $ac_compile) 2>conftest.er1
21959 ac_status=$?
21960 grep -v '^ *+' conftest.er1 >conftest.err
21961 rm -f conftest.er1
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } &&
b4e70030
JB
21965 { ac_try='test -z "$ac_c_werror_flag"
21966 || test ! -s conftest.err'
bec39cab
AC
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21969 ac_status=$?
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; } &&
21972 { ac_try='test -s conftest.$ac_objext'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21975 ac_status=$?
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; }; then
97bf5e38 21978 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 21979else
bec39cab
AC
21980 echo "$as_me: failed program was:" >&5
21981sed 's/^/| /' conftest.$ac_ext >&5
21982
b4e70030 21983bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 21984
c906108c 21985fi
bec39cab 21986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21987fi
21988
97bf5e38 21989 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
21990
21991cat >>confdefs.h <<\_ACEOF
97bf5e38 21992#define HAVE_PSADDR_T 1
bec39cab 21993_ACEOF
c906108c 21994
97bf5e38 21995 fi
b4e70030
JB
21996 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21997echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 21998
b4e70030
JB
21999 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22000echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22001 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22003else
bec39cab
AC
22004 cat >conftest.$ac_ext <<_ACEOF
22005/* confdefs.h. */
22006_ACEOF
22007cat confdefs.h >>conftest.$ac_ext
22008cat >>conftest.$ac_ext <<_ACEOF
22009/* end confdefs.h. */
c906108c 22010
97bf5e38
MK
22011#define _SYSCALL32
22012#include <sys/procfs.h>
bec39cab
AC
22013int
22014main ()
22015{
97bf5e38 22016prsysent_t avar
bec39cab
AC
22017 ;
22018 return 0;
22019}
22020_ACEOF
22021rm -f conftest.$ac_objext
22022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22023 (eval $ac_compile) 2>conftest.er1
22024 ac_status=$?
22025 grep -v '^ *+' conftest.er1 >conftest.err
22026 rm -f conftest.er1
22027 cat conftest.err >&5
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); } &&
b4e70030
JB
22030 { ac_try='test -z "$ac_c_werror_flag"
22031 || test ! -s conftest.err'
bec39cab
AC
22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22034 ac_status=$?
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; } &&
22037 { ac_try='test -s conftest.$ac_objext'
22038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039 (eval $ac_try) 2>&5
22040 ac_status=$?
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; }; then
97bf5e38 22043 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 22044else
bec39cab
AC
22045 echo "$as_me: failed program was:" >&5
22046sed 's/^/| /' conftest.$ac_ext >&5
22047
b4e70030 22048bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 22049
c906108c 22050fi
bec39cab 22051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22052fi
22053
97bf5e38 22054 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
22055
22056cat >>confdefs.h <<\_ACEOF
97bf5e38 22057#define HAVE_PRSYSENT_T 1
bec39cab 22058_ACEOF
c906108c 22059
97bf5e38 22060 fi
b4e70030
JB
22061 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22062echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 22063
b4e70030
JB
22064 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22065echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22066 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22067 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22068else
bec39cab
AC
22069 cat >conftest.$ac_ext <<_ACEOF
22070/* confdefs.h. */
22071_ACEOF
22072cat confdefs.h >>conftest.$ac_ext
22073cat >>conftest.$ac_ext <<_ACEOF
22074/* end confdefs.h. */
c906108c 22075
97bf5e38
MK
22076#define _SYSCALL32
22077#include <sys/procfs.h>
bec39cab
AC
22078int
22079main ()
22080{
97bf5e38 22081pr_sigset_t avar
bec39cab
AC
22082 ;
22083 return 0;
22084}
22085_ACEOF
22086rm -f conftest.$ac_objext
22087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22088 (eval $ac_compile) 2>conftest.er1
22089 ac_status=$?
22090 grep -v '^ *+' conftest.er1 >conftest.err
22091 rm -f conftest.er1
22092 cat conftest.err >&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } &&
b4e70030
JB
22095 { ac_try='test -z "$ac_c_werror_flag"
22096 || test ! -s conftest.err'
bec39cab
AC
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22099 ac_status=$?
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; } &&
22102 { ac_try='test -s conftest.$ac_objext'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
97bf5e38 22108 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 22109else
bec39cab
AC
22110 echo "$as_me: failed program was:" >&5
22111sed 's/^/| /' conftest.$ac_ext >&5
22112
b4e70030 22113bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 22114
c906108c 22115fi
bec39cab 22116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22117fi
22118
97bf5e38 22119 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
22120
22121cat >>confdefs.h <<\_ACEOF
97bf5e38 22122#define HAVE_PR_SIGSET_T 1
bec39cab 22123_ACEOF
c906108c 22124
97bf5e38 22125 fi
b4e70030
JB
22126 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22127echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 22128
b4e70030
JB
22129 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22130echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22131 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22133else
bec39cab
AC
22134 cat >conftest.$ac_ext <<_ACEOF
22135/* confdefs.h. */
22136_ACEOF
22137cat confdefs.h >>conftest.$ac_ext
22138cat >>conftest.$ac_ext <<_ACEOF
22139/* end confdefs.h. */
c906108c 22140
97bf5e38
MK
22141#define _SYSCALL32
22142#include <sys/procfs.h>
bec39cab
AC
22143int
22144main ()
22145{
97bf5e38 22146pr_sigaction64_t avar
bec39cab
AC
22147 ;
22148 return 0;
22149}
22150_ACEOF
22151rm -f conftest.$ac_objext
22152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22153 (eval $ac_compile) 2>conftest.er1
22154 ac_status=$?
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
b4e70030
JB
22160 { ac_try='test -z "$ac_c_werror_flag"
22161 || test ! -s conftest.err'
bec39cab
AC
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22164 ac_status=$?
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; } &&
22167 { ac_try='test -s conftest.$ac_objext'
22168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22170 ac_status=$?
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
97bf5e38 22173 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 22174else
bec39cab
AC
22175 echo "$as_me: failed program was:" >&5
22176sed 's/^/| /' conftest.$ac_ext >&5
22177
b4e70030 22178bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 22179
c906108c 22180fi
bec39cab 22181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22182fi
22183
97bf5e38 22184 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
22185
22186cat >>confdefs.h <<\_ACEOF
97bf5e38 22187#define HAVE_PR_SIGACTION64_T 1
bec39cab 22188_ACEOF
c906108c 22189
97bf5e38 22190 fi
b4e70030
JB
22191 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22192echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 22193
b4e70030
JB
22194 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22195echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22196 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22198else
bec39cab
AC
22199 cat >conftest.$ac_ext <<_ACEOF
22200/* confdefs.h. */
22201_ACEOF
22202cat confdefs.h >>conftest.$ac_ext
22203cat >>conftest.$ac_ext <<_ACEOF
22204/* end confdefs.h. */
97bf5e38
MK
22205
22206#define _SYSCALL32
22207#include <sys/procfs.h>
bec39cab
AC
22208int
22209main ()
22210{
97bf5e38 22211pr_siginfo64_t avar
bec39cab
AC
22212 ;
22213 return 0;
22214}
22215_ACEOF
22216rm -f conftest.$ac_objext
22217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22218 (eval $ac_compile) 2>conftest.er1
22219 ac_status=$?
22220 grep -v '^ *+' conftest.er1 >conftest.err
22221 rm -f conftest.er1
22222 cat conftest.err >&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } &&
b4e70030
JB
22225 { ac_try='test -z "$ac_c_werror_flag"
22226 || test ! -s conftest.err'
bec39cab
AC
22227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22229 ac_status=$?
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); }; } &&
22232 { ac_try='test -s conftest.$ac_objext'
22233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234 (eval $ac_try) 2>&5
22235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; }; then
97bf5e38
MK
22238 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22239else
bec39cab
AC
22240 echo "$as_me: failed program was:" >&5
22241sed 's/^/| /' conftest.$ac_ext >&5
22242
b4e70030 22243bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 22244
97bf5e38 22245fi
bec39cab 22246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22247fi
c906108c 22248
97bf5e38 22249 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
22250
22251cat >>confdefs.h <<\_ACEOF
97bf5e38 22252#define HAVE_PR_SIGINFO64_T 1
bec39cab 22253_ACEOF
c906108c 22254
97bf5e38 22255 fi
b4e70030
JB
22256 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22257echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
22258
22259
97bf5e38
MK
22260
22261
22262
97bf5e38 22263 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
22264 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22265echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
22266 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22268else
22269 if test "$cross_compiling" = yes; then
97bf5e38 22270 gdb_cv_prfpregset_t_broken=yes
c906108c 22271else
bec39cab
AC
22272 cat >conftest.$ac_ext <<_ACEOF
22273/* confdefs.h. */
22274_ACEOF
22275cat confdefs.h >>conftest.$ac_ext
22276cat >>conftest.$ac_ext <<_ACEOF
22277/* end confdefs.h. */
97bf5e38
MK
22278#include <sys/procfs.h>
22279 int main ()
22280 {
22281 if (sizeof (prfpregset_t) == sizeof (void *))
22282 return 1;
22283 return 0;
22284 }
bec39cab
AC
22285_ACEOF
22286rm -f conftest$ac_exeext
22287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22288 (eval $ac_link) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; }; then
97bf5e38 22297 gdb_cv_prfpregset_t_broken=no
c906108c 22298else
bec39cab
AC
22299 echo "$as_me: program exited with status $ac_status" >&5
22300echo "$as_me: failed program was:" >&5
22301sed 's/^/| /' conftest.$ac_ext >&5
22302
22303( exit $ac_status )
22304gdb_cv_prfpregset_t_broken=yes
c906108c 22305fi
b4e70030 22306rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 22307fi
c906108c
SS
22308fi
22309
b4e70030
JB
22310 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22311echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 22312 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
22313
22314cat >>confdefs.h <<\_ACEOF
97bf5e38 22315#define PRFPREGSET_T_BROKEN 1
bec39cab 22316_ACEOF
c906108c 22317
97bf5e38
MK
22318 fi
22319 fi
c906108c 22320
bec39cab 22321
b4e70030
JB
22322 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22323echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
22324 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22325 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22326else
bec39cab
AC
22327 cat >conftest.$ac_ext <<_ACEOF
22328/* confdefs.h. */
22329_ACEOF
22330cat confdefs.h >>conftest.$ac_ext
22331cat >>conftest.$ac_ext <<_ACEOF
22332/* end confdefs.h. */
97bf5e38
MK
22333#include <unistd.h>
22334#include <sys/types.h>
22335#include <sys/procfs.h>
22336
bec39cab
AC
22337int
22338main ()
22339{
97bf5e38
MK
22340
22341 int dummy;;
22342 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
22343
22344 ;
22345 return 0;
22346}
22347_ACEOF
22348rm -f conftest.$ac_objext
22349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22350 (eval $ac_compile) 2>conftest.er1
22351 ac_status=$?
22352 grep -v '^ *+' conftest.er1 >conftest.err
22353 rm -f conftest.er1
22354 cat conftest.err >&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); } &&
b4e70030
JB
22357 { ac_try='test -z "$ac_c_werror_flag"
22358 || test ! -s conftest.err'
bec39cab
AC
22359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360 (eval $ac_try) 2>&5
22361 ac_status=$?
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); }; } &&
22364 { ac_try='test -s conftest.$ac_objext'
22365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366 (eval $ac_try) 2>&5
22367 ac_status=$?
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
97bf5e38 22370 gdb_cv_have_procfs_piocset=yes
c906108c 22371else
bec39cab
AC
22372 echo "$as_me: failed program was:" >&5
22373sed 's/^/| /' conftest.$ac_ext >&5
22374
b4e70030 22375gdb_cv_have_procfs_piocset=no
c906108c 22376fi
bec39cab 22377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22378fi
97bf5e38 22379
b4e70030
JB
22380 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22381echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 22382 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
22383
22384cat >>confdefs.h <<\_ACEOF
97bf5e38 22385#define HAVE_PROCFS_PIOCSET 1
bec39cab 22386_ACEOF
97bf5e38
MK
22387
22388 fi
c906108c 22389fi
c906108c 22390
97bf5e38 22391if test ${host} = ${target} ; then
bec39cab 22392
b4e70030
JB
22393 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22394echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
22395 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22397else
22398 cat >conftest.$ac_ext <<_ACEOF
22399/* confdefs.h. */
22400_ACEOF
22401cat confdefs.h >>conftest.$ac_ext
22402cat >>conftest.$ac_ext <<_ACEOF
22403/* end confdefs.h. */
97bf5e38 22404#include <link.h>
bec39cab
AC
22405int
22406main ()
22407{
97bf5e38 22408struct link_map lm; (void) lm.l_addr;
bec39cab
AC
22409 ;
22410 return 0;
22411}
22412_ACEOF
22413rm -f conftest.$ac_objext
22414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22415 (eval $ac_compile) 2>conftest.er1
22416 ac_status=$?
22417 grep -v '^ *+' conftest.er1 >conftest.err
22418 rm -f conftest.er1
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } &&
b4e70030
JB
22422 { ac_try='test -z "$ac_c_werror_flag"
22423 || test ! -s conftest.err'
bec39cab
AC
22424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425 (eval $ac_try) 2>&5
22426 ac_status=$?
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); }; } &&
22429 { ac_try='test -s conftest.$ac_objext'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
97bf5e38 22435 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 22436else
bec39cab
AC
22437 echo "$as_me: failed program was:" >&5
22438sed 's/^/| /' conftest.$ac_ext >&5
22439
b4e70030 22440gdb_cv_have_struct_link_map_with_l_members=no
c906108c 22441fi
bec39cab 22442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
22443fi
22444
b4e70030
JB
22445 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22446echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 22447 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
22448
22449cat >>confdefs.h <<\_ACEOF
97bf5e38 22450#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 22451_ACEOF
97bf5e38
MK
22452
22453 fi
22454
bec39cab 22455
b4e70030
JB
22456 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22457echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
22458 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22460else
bec39cab
AC
22461 cat >conftest.$ac_ext <<_ACEOF
22462/* confdefs.h. */
22463_ACEOF
22464cat confdefs.h >>conftest.$ac_ext
22465cat >>conftest.$ac_ext <<_ACEOF
22466/* end confdefs.h. */
97bf5e38
MK
22467#include <sys/types.h>
22468#include <link.h>
bec39cab
AC
22469int
22470main ()
22471{
97bf5e38 22472struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
22473 ;
22474 return 0;
22475}
22476_ACEOF
22477rm -f conftest.$ac_objext
22478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22479 (eval $ac_compile) 2>conftest.er1
22480 ac_status=$?
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } &&
b4e70030
JB
22486 { ac_try='test -z "$ac_c_werror_flag"
22487 || test ! -s conftest.err'
bec39cab
AC
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22490 ac_status=$?
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; } &&
22493 { ac_try='test -s conftest.$ac_objext'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
97bf5e38
MK
22499 gdb_cv_have_struct_link_map_with_lm_members=yes
22500else
bec39cab
AC
22501 echo "$as_me: failed program was:" >&5
22502sed 's/^/| /' conftest.$ac_ext >&5
22503
b4e70030 22504gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 22505fi
bec39cab 22506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 22507fi
c906108c 22508
b4e70030
JB
22509 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22510echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 22511 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
22512
22513cat >>confdefs.h <<\_ACEOF
97bf5e38 22514#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 22515_ACEOF
97bf5e38
MK
22516
22517 fi
22518
bec39cab 22519
b4e70030
JB
22520 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22521echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
22522 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22524else
bec39cab
AC
22525 cat >conftest.$ac_ext <<_ACEOF
22526/* confdefs.h. */
22527_ACEOF
22528cat confdefs.h >>conftest.$ac_ext
22529cat >>conftest.$ac_ext <<_ACEOF
22530/* end confdefs.h. */
97bf5e38
MK
22531#include <sys/types.h>
22532#ifdef HAVE_NLIST_H
22533#include <nlist.h>
22534#endif
22535#include <link.h>
bec39cab
AC
22536int
22537main ()
22538{
97bf5e38 22539struct so_map lm; (void) lm.som_addr;
bec39cab
AC
22540 ;
22541 return 0;
22542}
22543_ACEOF
22544rm -f conftest.$ac_objext
22545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22546 (eval $ac_compile) 2>conftest.er1
22547 ac_status=$?
22548 grep -v '^ *+' conftest.er1 >conftest.err
22549 rm -f conftest.er1
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } &&
b4e70030
JB
22553 { ac_try='test -z "$ac_c_werror_flag"
22554 || test ! -s conftest.err'
bec39cab
AC
22555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556 (eval $ac_try) 2>&5
22557 ac_status=$?
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; } &&
22560 { ac_try='test -s conftest.$ac_objext'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; }; then
97bf5e38
MK
22566 gdb_cv_have_struct_so_map_with_som_members=yes
22567else
bec39cab
AC
22568 echo "$as_me: failed program was:" >&5
22569sed 's/^/| /' conftest.$ac_ext >&5
22570
b4e70030 22571gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 22572fi
bec39cab 22573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22574fi
c906108c 22575
b4e70030
JB
22576 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22577echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 22578 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
22579
22580cat >>confdefs.h <<\_ACEOF
97bf5e38 22581#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 22582_ACEOF
c906108c 22583
97bf5e38 22584 fi
c906108c 22585
bec39cab 22586
b4e70030
JB
22587 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22588echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
22589 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22591else
bec39cab
AC
22592 cat >conftest.$ac_ext <<_ACEOF
22593/* confdefs.h. */
22594_ACEOF
22595cat confdefs.h >>conftest.$ac_ext
22596cat >>conftest.$ac_ext <<_ACEOF
22597/* end confdefs.h. */
97bf5e38
MK
22598#define _SYSCALL32
22599#include <sys/link.h>
bec39cab
AC
22600int
22601main ()
22602{
97bf5e38 22603struct link_map32 l;
bec39cab
AC
22604 ;
22605 return 0;
22606}
22607_ACEOF
22608rm -f conftest.$ac_objext
22609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610 (eval $ac_compile) 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
b4e70030
JB
22617 { ac_try='test -z "$ac_c_werror_flag"
22618 || test ! -s conftest.err'
bec39cab
AC
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22621 ac_status=$?
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; } &&
22624 { ac_try='test -s conftest.$ac_objext'
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
97bf5e38
MK
22630 gdb_cv_have_struct_link_map32=yes
22631else
bec39cab
AC
22632 echo "$as_me: failed program was:" >&5
22633sed 's/^/| /' conftest.$ac_ext >&5
22634
b4e70030 22635gdb_cv_have_struct_link_map32=no
97bf5e38 22636fi
bec39cab 22637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22638fi
c906108c 22639
b4e70030
JB
22640 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22641echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 22642 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
22643
22644cat >>confdefs.h <<\_ACEOF
97bf5e38 22645#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 22646_ACEOF
c906108c 22647
60ca704f
SE
22648
22649cat >>confdefs.h <<\_ACEOF
97bf5e38 22650#define _SYSCALL32 1
bec39cab 22651_ACEOF
c906108c 22652
97bf5e38
MK
22653 fi
22654fi
c906108c 22655
bc8bcb4b 22656# Check if the compiler supports the `long long' type.
c906108c 22657
b4e70030
JB
22658echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22659echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
22660if test "${gdb_cv_c_long_long+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22662else
bec39cab
AC
22663 cat >conftest.$ac_ext <<_ACEOF
22664/* confdefs.h. */
22665_ACEOF
22666cat confdefs.h >>conftest.$ac_ext
22667cat >>conftest.$ac_ext <<_ACEOF
22668/* end confdefs.h. */
bc8bcb4b 22669extern long long foo;
bec39cab
AC
22670int
22671main ()
22672{
bc8bcb4b 22673switch (foo & 2) { case 0: return 1; }
bec39cab
AC
22674 ;
22675 return 0;
22676}
22677_ACEOF
22678rm -f conftest.$ac_objext
22679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22680 (eval $ac_compile) 2>conftest.er1
22681 ac_status=$?
22682 grep -v '^ *+' conftest.er1 >conftest.err
22683 rm -f conftest.er1
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } &&
b4e70030
JB
22687 { ac_try='test -z "$ac_c_werror_flag"
22688 || test ! -s conftest.err'
bec39cab
AC
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22691 ac_status=$?
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; } &&
22694 { ac_try='test -s conftest.$ac_objext'
22695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22696 (eval $ac_try) 2>&5
22697 ac_status=$?
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); }; }; then
97bf5e38
MK
22700 gdb_cv_c_long_long=yes
22701else
bec39cab
AC
22702 echo "$as_me: failed program was:" >&5
22703sed 's/^/| /' conftest.$ac_ext >&5
22704
b4e70030 22705gdb_cv_c_long_long=no
97bf5e38 22706fi
bec39cab 22707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22708fi
b4e70030
JB
22709echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22710echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 22711if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
22712
22713cat >>confdefs.h <<\_ACEOF
97bf5e38 22714#define CC_HAS_LONG_LONG 1
bec39cab 22715_ACEOF
97bf5e38
MK
22716
22717fi
22718
bc8bcb4b 22719# Check if the compiler and runtime support printing long longs.
97bf5e38 22720
b4e70030
JB
22721echo "$as_me:$LINENO: checking for long long support in printf" >&5
22722echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
22723if test "${gdb_cv_printf_has_long_long+set}" = set; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22725else
22726 if test "$cross_compiling" = yes; then
22727 gdb_cv_printf_has_long_long=no
22728else
bec39cab
AC
22729 cat >conftest.$ac_ext <<_ACEOF
22730/* confdefs.h. */
22731_ACEOF
22732cat confdefs.h >>conftest.$ac_ext
22733cat >>conftest.$ac_ext <<_ACEOF
22734/* end confdefs.h. */
bc8bcb4b
MK
22735$ac_includes_default
22736int
22737main ()
22738{
22739char buf[32];
97bf5e38
MK
22740 long long l = 0;
22741 l = (l << 16) + 0x0123;
22742 l = (l << 16) + 0x4567;
22743 l = (l << 16) + 0x89ab;
22744 l = (l << 16) + 0xcdef;
22745 sprintf (buf, "0x%016llx", l);
22746 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
22747 ;
22748 return 0;
c906108c 22749}
bec39cab
AC
22750_ACEOF
22751rm -f conftest$ac_exeext
22752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22753 (eval $ac_link) 2>&5
22754 ac_status=$?
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758 (eval $ac_try) 2>&5
22759 ac_status=$?
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); }; }; then
97bf5e38
MK
22762 gdb_cv_printf_has_long_long=yes
22763else
bec39cab
AC
22764 echo "$as_me: program exited with status $ac_status" >&5
22765echo "$as_me: failed program was:" >&5
22766sed 's/^/| /' conftest.$ac_ext >&5
22767
22768( exit $ac_status )
22769gdb_cv_printf_has_long_long=no
97bf5e38 22770fi
b4e70030 22771rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 22772fi
97bf5e38 22773fi
b4e70030
JB
22774echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22775echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 22776if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
22777
22778cat >>confdefs.h <<\_ACEOF
97bf5e38 22779#define PRINTF_HAS_LONG_LONG 1
bec39cab 22780_ACEOF
97bf5e38
MK
22781
22782fi
97bf5e38 22783
1a619819
LM
22784# Check if the compiler and runtime support printing decfloats.
22785
22786echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
22787echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
22788if test "${gdb_cv_printf_has_decfloat+set}" = set; then
22789 echo $ECHO_N "(cached) $ECHO_C" >&6
22790else
22791 if test "$cross_compiling" = yes; then
22792 gdb_cv_printf_has_decfloat=no
22793else
22794 cat >conftest.$ac_ext <<_ACEOF
22795/* confdefs.h. */
22796_ACEOF
22797cat confdefs.h >>conftest.$ac_ext
22798cat >>conftest.$ac_ext <<_ACEOF
22799/* end confdefs.h. */
22800$ac_includes_default
22801int
22802main ()
22803{
22804char buf[64];
22805 _Decimal32 d32 = 1.2345df;
22806 _Decimal64 d64 = 1.2345dd;
22807 _Decimal128 d128 = 1.2345dl;
22808 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
22809 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
22810 ;
22811 return 0;
22812}
22813_ACEOF
22814rm -f conftest$ac_exeext
22815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22816 (eval $ac_link) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821 (eval $ac_try) 2>&5
22822 ac_status=$?
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); }; }; then
22825 gdb_cv_printf_has_decfloat=yes
22826else
22827 echo "$as_me: program exited with status $ac_status" >&5
22828echo "$as_me: failed program was:" >&5
22829sed 's/^/| /' conftest.$ac_ext >&5
22830
22831( exit $ac_status )
22832gdb_cv_printf_has_decfloat=no
22833fi
22834rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22835fi
22836fi
22837echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
22838echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
22839if test $gdb_cv_printf_has_decfloat = yes; then
22840
22841cat >>confdefs.h <<\_ACEOF
22842#define PRINTF_HAS_DECFLOAT 1
22843_ACEOF
22844
22845fi
22846
bc8bcb4b
MK
22847# Check if the compiler supports the `long double' type. We can't use
22848# AC_C_LONG_DOUBLE because that one does additional checks on the
22849# constants defined in <float.h> that fail on some systems,
22850# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 22851
b4e70030
JB
22852echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22853echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 22854if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 22855 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22856else
bec39cab
AC
22857 cat >conftest.$ac_ext <<_ACEOF
22858/* confdefs.h. */
22859_ACEOF
22860cat confdefs.h >>conftest.$ac_ext
22861cat >>conftest.$ac_ext <<_ACEOF
22862/* end confdefs.h. */
97bf5e38 22863long double foo;
bec39cab
AC
22864_ACEOF
22865rm -f conftest.$ac_objext
22866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22867 (eval $ac_compile) 2>conftest.er1
22868 ac_status=$?
22869 grep -v '^ *+' conftest.er1 >conftest.err
22870 rm -f conftest.er1
22871 cat conftest.err >&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } &&
b4e70030
JB
22874 { ac_try='test -z "$ac_c_werror_flag"
22875 || test ! -s conftest.err'
bec39cab
AC
22876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877 (eval $ac_try) 2>&5
22878 ac_status=$?
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); }; } &&
22881 { ac_try='test -s conftest.$ac_objext'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22884 ac_status=$?
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
bc8bcb4b 22887 gdb_cv_c_long_double=yes
97bf5e38 22888else
bec39cab
AC
22889 echo "$as_me: failed program was:" >&5
22890sed 's/^/| /' conftest.$ac_ext >&5
22891
b4e70030 22892gdb_cv_c_long_double=no
97bf5e38 22893fi
bec39cab 22894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22895fi
b4e70030
JB
22896echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22897echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 22898if test $gdb_cv_c_long_double = yes; then
c906108c 22899
bc8bcb4b 22900cat >>confdefs.h <<\_ACEOF
97bf5e38 22901#define HAVE_LONG_DOUBLE 1
bec39cab 22902_ACEOF
97bf5e38
MK
22903
22904fi
22905
bc8bcb4b 22906# Check if the compiler and runtime support printing long doubles.
97bf5e38 22907
b4e70030
JB
22908echo "$as_me:$LINENO: checking for long double support in printf" >&5
22909echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
22910if test "${gdb_cv_printf_has_long_double+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22912else
22913 if test "$cross_compiling" = yes; then
22914 gdb_cv_printf_has_long_double=no
22915else
bec39cab
AC
22916 cat >conftest.$ac_ext <<_ACEOF
22917/* confdefs.h. */
22918_ACEOF
22919cat confdefs.h >>conftest.$ac_ext
22920cat >>conftest.$ac_ext <<_ACEOF
22921/* end confdefs.h. */
bc8bcb4b
MK
22922$ac_includes_default
22923int
22924main ()
22925{
22926char buf[16];
97bf5e38
MK
22927 long double f = 3.141592653;
22928 sprintf (buf, "%Lg", f);
22929 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
22930 ;
22931 return 0;
97bf5e38 22932}
bec39cab
AC
22933_ACEOF
22934rm -f conftest$ac_exeext
22935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936 (eval $ac_link) 2>&5
22937 ac_status=$?
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
97bf5e38 22945 gdb_cv_printf_has_long_double=yes
c906108c 22946else
bec39cab
AC
22947 echo "$as_me: program exited with status $ac_status" >&5
22948echo "$as_me: failed program was:" >&5
22949sed 's/^/| /' conftest.$ac_ext >&5
22950
22951( exit $ac_status )
22952gdb_cv_printf_has_long_double=no
c906108c 22953fi
b4e70030 22954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 22955fi
c906108c 22956fi
b4e70030
JB
22957echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22958echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 22959if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
22960
22961cat >>confdefs.h <<\_ACEOF
97bf5e38 22962#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 22963_ACEOF
97bf5e38
MK
22964
22965fi
97bf5e38 22966
bc8bcb4b 22967# Check if the compiler and runtime support scanning long doubles.
97bf5e38 22968
b4e70030
JB
22969echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22970echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
22971if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22973else
22974 if test "$cross_compiling" = yes; then
22975 gdb_cv_scanf_has_long_double=no
22976else
bec39cab
AC
22977 cat >conftest.$ac_ext <<_ACEOF
22978/* confdefs.h. */
22979_ACEOF
22980cat confdefs.h >>conftest.$ac_ext
22981cat >>conftest.$ac_ext <<_ACEOF
22982/* end confdefs.h. */
bc8bcb4b
MK
22983#include <stdio.h>
22984int
22985main ()
22986{
22987char *buf = "3.141592653";
97bf5e38
MK
22988 long double f = 0;
22989 sscanf (buf, "%Lg", &f);
22990 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
22991 ;
22992 return 0;
97bf5e38 22993}
bec39cab
AC
22994_ACEOF
22995rm -f conftest$ac_exeext
22996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22997 (eval $ac_link) 2>&5
22998 ac_status=$?
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002 (eval $ac_try) 2>&5
23003 ac_status=$?
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); }; }; then
97bf5e38
MK
23006 gdb_cv_scanf_has_long_double=yes
23007else
bec39cab
AC
23008 echo "$as_me: program exited with status $ac_status" >&5
23009echo "$as_me: failed program was:" >&5
23010sed 's/^/| /' conftest.$ac_ext >&5
23011
23012( exit $ac_status )
23013gdb_cv_scanf_has_long_double=no
97bf5e38 23014fi
b4e70030 23015rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 23016fi
c906108c 23017fi
b4e70030
JB
23018echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23019echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 23020if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
23021
23022cat >>confdefs.h <<\_ACEOF
97bf5e38 23023#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 23024_ACEOF
97bf5e38
MK
23025
23026fi
c906108c 23027
438013df
AO
23028case ${host_os} in
23029aix*)
b4e70030
JB
23030 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23031echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
23032if test "${gdb_cv_bigtoc+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 23034else
bec39cab 23035
438013df
AO
23036 SAVE_LDFLAGS=$LDFLAGS
23037
23038 case $GCC in
23039 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23040 *) gdb_cv_bigtoc=-bbigtoc ;;
23041 esac
23042
23043 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
23044 cat >conftest.$ac_ext <<_ACEOF
23045/* confdefs.h. */
23046_ACEOF
23047cat confdefs.h >>conftest.$ac_ext
23048cat >>conftest.$ac_ext <<_ACEOF
23049/* end confdefs.h. */
438013df 23050
bec39cab
AC
23051int
23052main ()
23053{
438013df 23054int i;
bec39cab
AC
23055 ;
23056 return 0;
23057}
23058_ACEOF
23059rm -f conftest.$ac_objext conftest$ac_exeext
23060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23061 (eval $ac_link) 2>conftest.er1
23062 ac_status=$?
23063 grep -v '^ *+' conftest.er1 >conftest.err
23064 rm -f conftest.er1
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } &&
b4e70030
JB
23068 { ac_try='test -z "$ac_c_werror_flag"
23069 || test ! -s conftest.err'
bec39cab
AC
23070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071 (eval $ac_try) 2>&5
23072 ac_status=$?
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); }; } &&
23075 { ac_try='test -s conftest$ac_exeext'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23078 ac_status=$?
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
438013df
AO
23081 :
23082else
bec39cab
AC
23083 echo "$as_me: failed program was:" >&5
23084sed 's/^/| /' conftest.$ac_ext >&5
23085
b4e70030 23086gdb_cv_bigtoc=
438013df 23087fi
bec39cab
AC
23088rm -f conftest.err conftest.$ac_objext \
23089 conftest$ac_exeext conftest.$ac_ext
ec76baa5 23090 LDFLAGS="${SAVE_LDFLAGS}"
438013df 23091
bec39cab 23092fi
b4e70030
JB
23093echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23094echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
23095 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23096 ;;
23097esac
23098
c906108c
SS
23099
23100
23101if test ${build} = ${host} -a ${host} = ${target} ; then
23102 case ${host_os} in
23103 hpux*)
b4e70030
JB
23104 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23105echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
23106 if test -f /usr/include/dce/cma_config.h ; then
23107 if test "$GCC" = "yes" ; then
b4e70030
JB
23108 echo "$as_me:$LINENO: result: yes" >&5
23109echo "${ECHO_T}yes" >&6
60ca704f
SE
23110
23111cat >>confdefs.h <<\_ACEOF
c906108c 23112#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 23113_ACEOF
c906108c 23114
3483b318 23115 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
23116 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23117 else
b4e70030
JB
23118 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23119echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
23120 fi
23121 else
b4e70030
JB
23122 echo "$as_me:$LINENO: result: no" >&5
23123echo "${ECHO_T}no" >&6
c906108c
SS
23124 fi
23125 ;;
23126 solaris*)
d92419e5
JB
23127 # See if thread_db library is around for Solaris thread debugging.
23128 # Note that we must explicitly test for version 1 of the library
23129 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23130 # the same API.
b4e70030
JB
23131 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23132echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 23133 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
23134 echo "$as_me:$LINENO: result: yes" >&5
23135echo "${ECHO_T}yes" >&6
60ca704f
SE
23136
23137cat >>confdefs.h <<\_ACEOF
c906108c 23138#define HAVE_THREAD_DB_LIB 1
bec39cab 23139_ACEOF
c906108c 23140
3483b318 23141 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 23142 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 23143
b4e70030
JB
23144echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23145echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
23146if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23147 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23148else
bec39cab 23149 ac_check_lib_save_LIBS=$LIBS
c906108c 23150LIBS="-ldl $LIBS"
bec39cab
AC
23151cat >conftest.$ac_ext <<_ACEOF
23152/* confdefs.h. */
23153_ACEOF
23154cat confdefs.h >>conftest.$ac_ext
23155cat >>conftest.$ac_ext <<_ACEOF
23156/* end confdefs.h. */
23157
b4e70030 23158/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
23159#ifdef __cplusplus
23160extern "C"
23161#endif
b4e70030
JB
23162/* We use char because int might match the return type of a gcc2
23163 builtin and then its argument prototype would still apply. */
bec39cab
AC
23164char dlopen ();
23165int
23166main ()
23167{
b4e70030 23168dlopen ();
bec39cab
AC
23169 ;
23170 return 0;
23171}
23172_ACEOF
23173rm -f conftest.$ac_objext conftest$ac_exeext
23174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23175 (eval $ac_link) 2>conftest.er1
23176 ac_status=$?
23177 grep -v '^ *+' conftest.er1 >conftest.err
23178 rm -f conftest.er1
23179 cat conftest.err >&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); } &&
b4e70030
JB
23182 { ac_try='test -z "$ac_c_werror_flag"
23183 || test ! -s conftest.err'
bec39cab
AC
23184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185 (eval $ac_try) 2>&5
23186 ac_status=$?
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); }; } &&
23189 { ac_try='test -s conftest$ac_exeext'
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; }; then
23195 ac_cv_lib_dl_dlopen=yes
23196else
23197 echo "$as_me: failed program was:" >&5
23198sed 's/^/| /' conftest.$ac_ext >&5
23199
b4e70030 23200ac_cv_lib_dl_dlopen=no
bec39cab
AC
23201fi
23202rm -f conftest.err conftest.$ac_objext \
23203 conftest$ac_exeext conftest.$ac_ext
23204LIBS=$ac_check_lib_save_LIBS
23205fi
b4e70030
JB
23206echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23207echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
23208if test $ac_cv_lib_dl_dlopen = yes; then
23209 cat >>confdefs.h <<_ACEOF
23210#define HAVE_LIBDL 1
23211_ACEOF
c906108c
SS
23212
23213 LIBS="-ldl $LIBS"
23214
c906108c
SS
23215fi
23216
23217 if test "$GCC" = "yes" ; then
23218 # The GNU linker requires the -export-dynamic option to make
23219 # all symbols visible in the dynamic symbol table.
23220 hold_ldflags=$LDFLAGS
b4e70030
JB
23221 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23222echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 23223 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
23224 cat >conftest.$ac_ext <<_ACEOF
23225/* confdefs.h. */
23226_ACEOF
23227cat confdefs.h >>conftest.$ac_ext
23228cat >>conftest.$ac_ext <<_ACEOF
23229/* end confdefs.h. */
c906108c 23230
bec39cab
AC
23231int
23232main ()
23233{
c906108c 23234int i;
bec39cab
AC
23235 ;
23236 return 0;
23237}
23238_ACEOF
23239rm -f conftest.$ac_objext conftest$ac_exeext
23240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23241 (eval $ac_link) 2>conftest.er1
23242 ac_status=$?
23243 grep -v '^ *+' conftest.er1 >conftest.err
23244 rm -f conftest.er1
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } &&
b4e70030
JB
23248 { ac_try='test -z "$ac_c_werror_flag"
23249 || test ! -s conftest.err'
bec39cab
AC
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23252 ac_status=$?
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; } &&
23255 { ac_try='test -s conftest$ac_exeext'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23258 ac_status=$?
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
c906108c
SS
23261 found=yes
23262else
bec39cab
AC
23263 echo "$as_me: failed program was:" >&5
23264sed 's/^/| /' conftest.$ac_ext >&5
23265
b4e70030 23266found=no
c906108c 23267fi
bec39cab
AC
23268rm -f conftest.err conftest.$ac_objext \
23269 conftest$ac_exeext conftest.$ac_ext
c906108c 23270 LDFLAGS=$hold_ldflags
b4e70030
JB
23271 echo "$as_me:$LINENO: result: $found" >&5
23272echo "${ECHO_T}$found" >&6
c906108c
SS
23273 if test $found = yes; then
23274 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23275 fi
23276 fi
23277 # Sun randomly tweaked the prototypes in <proc_service.h>
23278 # at one point.
b4e70030
JB
23279 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23280echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
23281 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 23283else
bec39cab
AC
23284
23285 cat >conftest.$ac_ext <<_ACEOF
23286/* confdefs.h. */
23287_ACEOF
23288cat confdefs.h >>conftest.$ac_ext
23289cat >>conftest.$ac_ext <<_ACEOF
23290/* end confdefs.h. */
c906108c
SS
23291
23292 #include <proc_service.h>
23293 ps_err_e ps_pdwrite
23294 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 23295
bec39cab
AC
23296int
23297main ()
23298{
23299
23300 ;
23301 return 0;
23302}
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
c906108c
SS
23326 gdb_cv_proc_service_is_old=no
23327else
bec39cab
AC
23328 echo "$as_me: failed program was:" >&5
23329sed 's/^/| /' conftest.$ac_ext >&5
23330
b4e70030 23331gdb_cv_proc_service_is_old=yes
c906108c 23332fi
bec39cab
AC
23333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23334
c906108c
SS
23335fi
23336
b4e70030
JB
23337 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23338echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 23339 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
23340
23341cat >>confdefs.h <<\_ACEOF
c906108c 23342#define PROC_SERVICE_IS_OLD 1
bec39cab 23343_ACEOF
c906108c
SS
23344
23345 fi
23346 else
b4e70030
JB
23347 echo "$as_me:$LINENO: result: no" >&5
23348echo "${ECHO_T}no" >&6
c906108c
SS
23349 fi
23350 ;;
d92419e5 23351 aix*)
b4e70030
JB
23352 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23353echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
23354 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23355 echo $ECHO_N "(cached) $ECHO_C" >&6
23356else
23357 cat >conftest.$ac_ext <<_ACEOF
23358/* confdefs.h. */
23359_ACEOF
23360cat confdefs.h >>conftest.$ac_ext
23361cat >>conftest.$ac_ext <<_ACEOF
23362/* end confdefs.h. */
d92419e5 23363#include <sys/pthdebug.h>
bec39cab
AC
23364int
23365main ()
23366{
d92419e5
JB
23367#ifndef PTHDB_VERSION_3
23368 #error
23369 #endif
bec39cab
AC
23370 ;
23371 return 0;
23372}
23373_ACEOF
23374rm -f conftest.$ac_objext
23375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23376 (eval $ac_compile) 2>conftest.er1
23377 ac_status=$?
23378 grep -v '^ *+' conftest.er1 >conftest.err
23379 rm -f conftest.er1
23380 cat conftest.err >&5
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } &&
b4e70030
JB
23383 { ac_try='test -z "$ac_c_werror_flag"
23384 || test ! -s conftest.err'
bec39cab
AC
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; } &&
23390 { ac_try='test -s conftest.$ac_objext'
23391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23393 ac_status=$?
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); }; }; then
d92419e5
JB
23396 gdb_cv_have_aix_thread_debug=yes
23397else
bec39cab
AC
23398 echo "$as_me: failed program was:" >&5
23399sed 's/^/| /' conftest.$ac_ext >&5
23400
b4e70030 23401gdb_cv_have_aix_thread_debug=no
d92419e5 23402fi
bec39cab 23403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
23404fi
23405
b4e70030
JB
23406 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23407echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
23408 if test $gdb_cv_have_aix_thread_debug = yes; then
23409 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 23410 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
23411 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23412 fi
23413 ;;
c906108c 23414 esac
bec39cab 23415
c906108c
SS
23416fi
23417
3f47be5c 23418if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
23419 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23420echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
23421if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23423else
23424 cat >conftest.$ac_ext <<_ACEOF
23425/* confdefs.h. */
23426_ACEOF
23427cat confdefs.h >>conftest.$ac_ext
23428cat >>conftest.$ac_ext <<_ACEOF
23429/* end confdefs.h. */
3f47be5c 23430#include <thread_db.h>
bec39cab
AC
23431int
23432main ()
23433{
3f47be5c 23434int i = TD_NOTALLOC;
bec39cab
AC
23435 ;
23436 return 0;
23437}
23438_ACEOF
23439rm -f conftest.$ac_objext
23440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23441 (eval $ac_compile) 2>conftest.er1
23442 ac_status=$?
23443 grep -v '^ *+' conftest.er1 >conftest.err
23444 rm -f conftest.er1
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
b4e70030
JB
23448 { ac_try='test -z "$ac_c_werror_flag"
23449 || test ! -s conftest.err'
bec39cab
AC
23450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451 (eval $ac_try) 2>&5
23452 ac_status=$?
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); }; } &&
23455 { ac_try='test -s conftest.$ac_objext'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; }; then
3f47be5c
EZ
23461 gdb_cv_thread_db_h_has_td_notalloc=yes
23462else
bec39cab
AC
23463 echo "$as_me: failed program was:" >&5
23464sed 's/^/| /' conftest.$ac_ext >&5
23465
b4e70030 23466gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 23467
3f47be5c 23468fi
bec39cab 23469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 23470
bec39cab 23471fi
b4e70030
JB
23472echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23473echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
23474 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23475echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23476if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23477 echo $ECHO_N "(cached) $ECHO_C" >&6
23478else
23479 cat >conftest.$ac_ext <<_ACEOF
23480/* confdefs.h. */
23481_ACEOF
23482cat confdefs.h >>conftest.$ac_ext
23483cat >>conftest.$ac_ext <<_ACEOF
23484/* end confdefs.h. */
23485#include <thread_db.h>
23486int
23487main ()
23488{
23489int i = TD_VERSION;
23490 ;
23491 return 0;
23492}
23493_ACEOF
23494rm -f conftest.$ac_objext
23495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23496 (eval $ac_compile) 2>conftest.er1
23497 ac_status=$?
23498 grep -v '^ *+' conftest.er1 >conftest.err
23499 rm -f conftest.er1
23500 cat conftest.err >&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } &&
23503 { ac_try='test -z "$ac_c_werror_flag"
23504 || test ! -s conftest.err'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; } &&
23510 { ac_try='test -s conftest.$ac_objext'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23513 ac_status=$?
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 gdb_cv_thread_db_h_has_td_version=yes
23517else
23518 echo "$as_me: failed program was:" >&5
23519sed 's/^/| /' conftest.$ac_ext >&5
23520
23521gdb_cv_thread_db_h_has_td_version=no
23522
23523fi
23524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23525
23526fi
23527echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23528echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23529 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23530echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23531if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533else
23534 cat >conftest.$ac_ext <<_ACEOF
23535/* confdefs.h. */
23536_ACEOF
23537cat confdefs.h >>conftest.$ac_ext
23538cat >>conftest.$ac_ext <<_ACEOF
23539/* end confdefs.h. */
23540#include <thread_db.h>
23541int
23542main ()
23543{
23544int i = TD_NOTLS;
23545 ;
23546 return 0;
23547}
23548_ACEOF
23549rm -f conftest.$ac_objext
23550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23551 (eval $ac_compile) 2>conftest.er1
23552 ac_status=$?
23553 grep -v '^ *+' conftest.er1 >conftest.err
23554 rm -f conftest.er1
23555 cat conftest.err >&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } &&
23558 { ac_try='test -z "$ac_c_werror_flag"
23559 || test ! -s conftest.err'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23562 ac_status=$?
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; } &&
23565 { ac_try='test -s conftest.$ac_objext'
23566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23567 (eval $ac_try) 2>&5
23568 ac_status=$?
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); }; }; then
23571 gdb_cv_thread_db_h_has_td_notls=yes
23572else
23573 echo "$as_me: failed program was:" >&5
23574sed 's/^/| /' conftest.$ac_ext >&5
23575
23576gdb_cv_thread_db_h_has_td_notls=no
23577
23578fi
23579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23580
23581fi
23582echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
23583echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
23584fi
23585if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
23586
23587cat >>confdefs.h <<\_ACEOF
3f47be5c 23588#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 23589_ACEOF
3f47be5c 23590
59f80f10
DJ
23591fi
23592if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
23593
23594cat >>confdefs.h <<\_ACEOF
23595#define THREAD_DB_HAS_TD_VERSION 1
23596_ACEOF
23597
23598fi
23599if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
23600
23601cat >>confdefs.h <<\_ACEOF
23602#define THREAD_DB_HAS_TD_NOTLS 1
23603_ACEOF
23604
3f47be5c
EZ
23605fi
23606
b757528f 23607if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
23608 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23609echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
23610if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23612else
23613 cat >conftest.$ac_ext <<_ACEOF
23614/* confdefs.h. */
23615_ACEOF
23616cat confdefs.h >>conftest.$ac_ext
23617cat >>conftest.$ac_ext <<_ACEOF
23618/* end confdefs.h. */
b757528f 23619#include <sys/syscall.h>
bec39cab
AC
23620int
23621main ()
23622{
b757528f 23623int i = __NR_tkill;
bec39cab
AC
23624 ;
23625 return 0;
23626}
23627_ACEOF
23628rm -f conftest.$ac_objext
23629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23630 (eval $ac_compile) 2>conftest.er1
23631 ac_status=$?
23632 grep -v '^ *+' conftest.er1 >conftest.err
23633 rm -f conftest.er1
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
b4e70030
JB
23637 { ac_try='test -z "$ac_c_werror_flag"
23638 || test ! -s conftest.err'
bec39cab
AC
23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640 (eval $ac_try) 2>&5
23641 ac_status=$?
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); }; } &&
23644 { ac_try='test -s conftest.$ac_objext'
23645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646 (eval $ac_try) 2>&5
23647 ac_status=$?
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); }; }; then
b757528f
JJ
23650 gdb_cv_sys_syscall_h_has_tkill=yes
23651else
bec39cab
AC
23652 echo "$as_me: failed program was:" >&5
23653sed 's/^/| /' conftest.$ac_ext >&5
23654
b4e70030 23655gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 23656
b757528f 23657fi
bec39cab 23658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 23659
bec39cab 23660fi
b4e70030
JB
23661echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23662echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
23663fi
23664if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
23665
23666cat >>confdefs.h <<\_ACEOF
b757528f 23667#define HAVE_TKILL_SYSCALL 1
bec39cab 23668_ACEOF
b757528f
JJ
23669
23670fi
23671
10568435
JK
23672echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
23673echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
23674if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6
23676else
23677 cat >conftest.$ac_ext <<_ACEOF
23678/* confdefs.h. */
23679_ACEOF
23680cat confdefs.h >>conftest.$ac_ext
23681cat >>conftest.$ac_ext <<_ACEOF
23682/* end confdefs.h. */
23683#include <sys/personality.h>
23684
23685int
23686main ()
23687{
23688#ifndef ADDR_NO_RANDOMIZE
23689 char *p = (char *) ADDR_NO_RANDOMIZE;
23690#endif
23691
23692 ;
23693 return 0;
23694}
23695_ACEOF
23696rm -f conftest.$ac_objext
23697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23698 (eval $ac_compile) 2>conftest.er1
23699 ac_status=$?
23700 grep -v '^ *+' conftest.er1 >conftest.err
23701 rm -f conftest.er1
23702 cat conftest.err >&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } &&
23705 { ac_try='test -z "$ac_c_werror_flag"
23706 || test ! -s conftest.err'
23707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23708 (eval $ac_try) 2>&5
23709 ac_status=$?
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); }; } &&
23712 { ac_try='test -s conftest.$ac_objext'
23713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23714 (eval $ac_try) 2>&5
23715 ac_status=$?
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); }; }; then
23718 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
23719else
23720 echo "$as_me: failed program was:" >&5
23721sed 's/^/| /' conftest.$ac_ext >&5
23722
23723ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
23724fi
23725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23726fi
23727echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
23728echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
23729if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
23730
23731cat >>confdefs.h <<_ACEOF
23732#define HAVE_DECL_ADDR_NO_RANDOMIZE 1
23733_ACEOF
23734
23735
23736else
23737 cat >>confdefs.h <<_ACEOF
23738#define HAVE_DECL_ADDR_NO_RANDOMIZE 0
23739_ACEOF
23740
23741
23742fi
23743
23744
23745
23746if test "$cross_compiling" = yes; then
23747 cat >conftest.$ac_ext <<_ACEOF
23748/* confdefs.h. */
23749_ACEOF
23750cat confdefs.h >>conftest.$ac_ext
23751cat >>conftest.$ac_ext <<_ACEOF
23752/* end confdefs.h. */
23753#include <sys/personality.h>
23754int
23755main ()
23756{
23757
23758# if !HAVE_DECL_ADDR_NO_RANDOMIZE
23759# define ADDR_NO_RANDOMIZE 0x0040000
23760# endif
23761 /* Test the flag could be set and stays set. */
23762 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23763 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23764 return 1
23765 ;
23766 return 0;
23767}
23768_ACEOF
23769rm -f conftest.$ac_objext conftest$ac_exeext
23770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23771 (eval $ac_link) 2>conftest.er1
23772 ac_status=$?
23773 grep -v '^ *+' conftest.er1 >conftest.err
23774 rm -f conftest.er1
23775 cat conftest.err >&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } &&
23778 { ac_try='test -z "$ac_c_werror_flag"
23779 || test ! -s conftest.err'
23780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23781 (eval $ac_try) 2>&5
23782 ac_status=$?
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); }; } &&
23785 { ac_try='test -s conftest$ac_exeext'
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 have_personality=true
23792else
23793 echo "$as_me: failed program was:" >&5
23794sed 's/^/| /' conftest.$ac_ext >&5
23795
23796have_personality=false
23797fi
23798rm -f conftest.err conftest.$ac_objext \
23799 conftest$ac_exeext conftest.$ac_ext
23800else
23801 cat >conftest.$ac_ext <<_ACEOF
23802/* confdefs.h. */
23803_ACEOF
23804cat confdefs.h >>conftest.$ac_ext
23805cat >>conftest.$ac_ext <<_ACEOF
23806/* end confdefs.h. */
23807#include <sys/personality.h>
23808int
23809main ()
23810{
23811
23812# if !HAVE_DECL_ADDR_NO_RANDOMIZE
23813# define ADDR_NO_RANDOMIZE 0x0040000
23814# endif
23815 /* Test the flag could be set and stays set. */
23816 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23817 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23818 return 1
23819 ;
23820 return 0;
23821}
23822_ACEOF
23823rm -f conftest$ac_exeext
23824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23825 (eval $ac_link) 2>&5
23826 ac_status=$?
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23830 (eval $ac_try) 2>&5
23831 ac_status=$?
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); }; }; then
23834 have_personality=true
23835else
23836 echo "$as_me: program exited with status $ac_status" >&5
23837echo "$as_me: failed program was:" >&5
23838sed 's/^/| /' conftest.$ac_ext >&5
23839
23840( exit $ac_status )
23841have_personality=false
23842fi
23843rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23844fi
23845if $have_personality
23846then
23847
23848cat >>confdefs.h <<\_ACEOF
23849#define HAVE_PERSONALITY 1
23850_ACEOF
23851
23852fi
23853
fb40c209 23854
bec39cab 23855
b4e70030 23856# Check whether --with-sysroot or --without-sysroot was given.
030292b7 23857if test "${with_sysroot+set}" = set; then
b4e70030
JB
23858 withval="$with_sysroot"
23859
030292b7 23860 case ${with_sysroot} in
715d1656 23861 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
23862 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23863 esac
23864
23865 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23866
07abfebf
RS
23867 if test "x$prefix" = xNONE; then
23868 test_prefix=/usr/local
23869 else
23870 test_prefix=$prefix
23871 fi
aa28a74e 23872 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 23873 test_exec_prefix=$test_prefix
030292b7 23874 else
07abfebf 23875 test_exec_prefix=$exec_prefix
030292b7
DJ
23876 fi
23877 case ${TARGET_SYSTEM_ROOT} in
715d1656 23878 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
23879 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
23880 '${prefix}'|'${prefix}/'*|\
715d1656 23881 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
23882 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23883 TARGET_SYSTEM_ROOT_DEFINE="$t"
23884 ;;
23885 esac
23886
23887else
bec39cab 23888
030292b7
DJ
23889 TARGET_SYSTEM_ROOT=
23890 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23891
b4e70030 23892fi;
030292b7
DJ
23893
23894
23895
b4e70030 23896# Check whether --enable-werror or --disable-werror was given.
094a342e 23897if test "${enable_werror+set}" = set; then
b4e70030
JB
23898 enableval="$enable_werror"
23899 case "${enableval}" in
094a342e
MK
23900 yes | y) ERROR_ON_WARNING="yes" ;;
23901 no | n) ERROR_ON_WARNING="no" ;;
23902 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23903echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23904 { (exit 1); exit 1; }; } ;;
23905 esac
b4e70030 23906fi;
094a342e
MK
23907
23908# Enable -Werror by default when using gcc
23909if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23910 ERROR_ON_WARNING=yes
23911fi
23912
23913WERROR_CFLAGS=""
23914if test "${ERROR_ON_WARNING}" = yes ; then
23915 WERROR_CFLAGS="-Werror"
23916fi
23917
aa79a185
DJ
23918# The entries after -Wno-pointer-sign are disabled warnings which may
23919# be enabled in the future, which can not currently be used to build
23920# GDB.
23921# NOTE: If you change this list, remember to update
3b851bce 23922# gdb/doc/gdbint.texinfo.
aa79a185
DJ
23923build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
23924-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 23925-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 23926
3526781e
DJ
23927# Enable -Wno-format by default when using gcc on mingw since many
23928# GCC versions complain about %I64.
23929case "${host}" in
23930 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
23931esac
23932
b4e70030 23933# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 23934if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
23935 enableval="$enable_build_warnings"
23936 case "${enableval}" in
c906108c
SS
23937 yes) ;;
23938 no) build_warnings="-w";;
23939 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23940 build_warnings="${build_warnings} ${t}";;
23941 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23942 build_warnings="${t} ${build_warnings}";;
23943 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23944esac
d4f3574e 23945if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 23946 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 23947fi
b4e70030 23948fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 23949if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
23950 enableval="$enable_gdb_build_warnings"
23951 case "${enableval}" in
3b851bce
AC
23952 yes) ;;
23953 no) build_warnings="-w";;
23954 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23955 build_warnings="${build_warnings} ${t}";;
23956 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23957 build_warnings="${t} ${build_warnings}";;
23958 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23959esac
23960if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23961 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
23962fi
b4e70030 23963fi; WARN_CFLAGS=""
c906108c
SS
23964if test "x${build_warnings}" != x -a "x$GCC" = xyes
23965then
b4e70030
JB
23966 echo "$as_me:$LINENO: checking compiler warning flags" >&5
23967echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
23968 # Separate out the -Werror flag as some files just cannot be
23969 # compiled with it enabled.
23970 for w in ${build_warnings}; do
23971 case $w in
23972 -Werr*) WERROR_CFLAGS=-Werror ;;
23973 *) # Check that GCC accepts it
4536bbc6
AC
23974 saved_CFLAGS="$CFLAGS"
23975 CFLAGS="$CFLAGS $w"
bec39cab
AC
23976 cat >conftest.$ac_ext <<_ACEOF
23977/* confdefs.h. */
23978_ACEOF
23979cat confdefs.h >>conftest.$ac_ext
23980cat >>conftest.$ac_ext <<_ACEOF
23981/* end confdefs.h. */
4536bbc6 23982
bec39cab
AC
23983int
23984main ()
23985{
4536bbc6 23986
bec39cab
AC
23987 ;
23988 return 0;
23989}
23990_ACEOF
23991rm -f conftest.$ac_objext
23992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23993 (eval $ac_compile) 2>conftest.er1
23994 ac_status=$?
23995 grep -v '^ *+' conftest.er1 >conftest.err
23996 rm -f conftest.er1
23997 cat conftest.err >&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } &&
b4e70030
JB
24000 { ac_try='test -z "$ac_c_werror_flag"
24001 || test ! -s conftest.err'
bec39cab
AC
24002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003 (eval $ac_try) 2>&5
24004 ac_status=$?
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); }; } &&
24007 { ac_try='test -s conftest.$ac_objext'
24008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24009 (eval $ac_try) 2>&5
24010 ac_status=$?
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); }; }; then
4536bbc6
AC
24013 WARN_CFLAGS="${WARN_CFLAGS} $w"
24014else
bec39cab
AC
24015 echo "$as_me: failed program was:" >&5
24016sed 's/^/| /' conftest.$ac_ext >&5
24017
4536bbc6 24018fi
bec39cab 24019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 24020 CFLAGS="$saved_CFLAGS"
746a987d
AC
24021 esac
24022 done
aa79a185
DJ
24023 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24024echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
24025fi
24026
24027
104c1213 24028
7a292a7a 24029# In the Cygwin environment, we need some additional flags.
b4e70030
JB
24030echo "$as_me:$LINENO: checking for cygwin" >&5
24031echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
24032if test "${gdb_cv_os_cygwin+set}" = set; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24034else
24035 cat >conftest.$ac_ext <<_ACEOF
24036/* confdefs.h. */
24037_ACEOF
24038cat confdefs.h >>conftest.$ac_ext
24039cat >>conftest.$ac_ext <<_ACEOF
24040/* end confdefs.h. */
7a292a7a
SS
24041
24042#if defined (__CYGWIN__) || defined (__CYGWIN32__)
24043lose
24044#endif
bec39cab 24045_ACEOF
7a292a7a 24046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 24047 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
24048 gdb_cv_os_cygwin=yes
24049else
7a292a7a
SS
24050 gdb_cv_os_cygwin=no
24051fi
24052rm -f conftest*
24053
24054fi
b4e70030
JB
24055echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24056echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 24057
aff38e61 24058
3eb25fda 24059SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 24060case ${host} in
95cbc983
AC
24061 *go32* ) SER_HARDWIRE=ser-go32.o ;;
24062 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 24063 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
24064esac
24065
24066
cd0fc7c3
SS
24067# libreadline needs libuser32.a in a cygwin environment
24068WIN32LIBS=
24069if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
24070 WIN32LIBS="-luser32"
24071 case "${target}" in
24072 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24073 ;;
24074 esac
cd0fc7c3 24075fi
c906108c 24076
b4505029
MM
24077# The ser-tcp.c module requires sockets.
24078case ${host} in
24079 *mingw32*)
24080
24081cat >>confdefs.h <<\_ACEOF
24082#define USE_WIN32API 1
24083_ACEOF
24084
24085 WIN32LIBS="$WIN32LIBS -lws2_32"
24086 ;;
24087esac
24088
7a292a7a 24089
31d99776
DJ
24090# Add ELF support to GDB, but only if BFD includes ELF support.
24091OLD_CFLAGS=$CFLAGS
24092OLD_LDFLAGS=$LDFLAGS
24093OLD_LIBS=$LIBS
cab58a69 24094CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 24095LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9
DJ
24096intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
24097LIBS="$LIBS -lbfd -liberty $intl"
31d99776
DJ
24098echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24099echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24100if test "${gdb_cv_var_elf+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24102else
24103 cat >conftest.$ac_ext <<_ACEOF
24104/* confdefs.h. */
24105_ACEOF
24106cat confdefs.h >>conftest.$ac_ext
24107cat >>conftest.$ac_ext <<_ACEOF
24108/* end confdefs.h. */
24109#include <stdlib.h>
24110#include "bfd.h"
24111#include "elf-bfd.h"
24112
24113int
24114main ()
24115{
24116bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24117 ;
24118 return 0;
24119}
24120_ACEOF
24121rm -f conftest.$ac_objext conftest$ac_exeext
24122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24123 (eval $ac_link) 2>conftest.er1
24124 ac_status=$?
24125 grep -v '^ *+' conftest.er1 >conftest.err
24126 rm -f conftest.er1
24127 cat conftest.err >&5
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); } &&
24130 { ac_try='test -z "$ac_c_werror_flag"
24131 || test ! -s conftest.err'
24132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133 (eval $ac_try) 2>&5
24134 ac_status=$?
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); }; } &&
24137 { ac_try='test -s conftest$ac_exeext'
24138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24139 (eval $ac_try) 2>&5
24140 ac_status=$?
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); }; }; then
24143 gdb_cv_var_elf=yes
24144else
24145 echo "$as_me: failed program was:" >&5
24146sed 's/^/| /' conftest.$ac_ext >&5
24147
24148gdb_cv_var_elf=no
24149fi
24150rm -f conftest.err conftest.$ac_objext \
24151 conftest$ac_exeext conftest.$ac_ext
24152fi
24153echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24154echo "${ECHO_T}$gdb_cv_var_elf" >&6
24155if test $gdb_cv_var_elf = yes; then
24156 CONFIG_OBS="$CONFIG_OBS elfread.o"
24157
24158cat >>confdefs.h <<\_ACEOF
24159#define HAVE_ELF 1
24160_ACEOF
24161
24162fi
24163CFLAGS=$OLD_CFLAGS
24164LDFLAGS=$OLD_LDFLAGS
24165LIBS=$OLD_LIBS
24166
121ce6e5
DJ
24167# Add any host-specific objects to GDB.
24168CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24169
3fc11d3e
JM
24170LIBGUI="../libgui/src/libgui.a"
24171GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24172
24173
7a292a7a 24174
3fc11d3e
JM
24175WIN32LDAPP=
24176
24177
24178
d91670b9 24179case "${host}" in
686a5eed 24180*-*-cygwin* | *-*-mingw* )
d91670b9
CV
24181 configdir="win"
24182 ;;
24183*)
24184 configdir="unix"
24185 ;;
24186esac
3fc11d3e
JM
24187
24188GDBTKLIBS=
24189if test "${enable_gdbtk}" = "yes"; then
24190
d1c3b63a
KS
24191 # Gdbtk must have an absolute path to srcdir in order to run
24192 # properly when not installed.
24193 here=`pwd`
24194 cd ${srcdir}
24195 GDBTK_SRC_DIR=`pwd`
24196 cd $here
24197
bec39cab 24198
3fc11d3e
JM
24199#
24200# Ok, lets find the tcl configuration
bec39cab 24201# First, look for one uninstalled.
3fc11d3e
JM
24202# the alternative search directory is invoked by --with-tclconfig
24203#
24204
24205if test x"${no_tcl}" = x ; then
24206 # we reset no_tcl in case something fails here
24207 no_tcl=true
bec39cab 24208
b4e70030 24209# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 24210if test "${with_tclconfig+set}" = set; then
b4e70030
JB
24211 withval="$with_tclconfig"
24212 with_tclconfig=${withval}
24213fi;
24214 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24215echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
24216 if test "${ac_cv_c_tclconfig+set}" = set; then
24217 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24218else
bec39cab 24219
3fc11d3e
JM
24220
24221 # First check to see if --with-tclconfig was specified.
24222 if test x"${with_tclconfig}" != x ; then
24223 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24224 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24225 else
bec39cab
AC
24226 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24227echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24228 { (exit 1); exit 1; }; }
3fc11d3e
JM
24229 fi
24230 fi
24231
24232 # then check for a private Tcl installation
24233 if test x"${ac_cv_c_tclconfig}" = x ; then
24234 for i in \
24235 ../tcl \
24236 `ls -dr ../tcl[7-9]* 2>/dev/null` \
24237 ../../tcl \
24238 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
24239 ../../../tcl \
24240 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
24241 if test -f "$i/${configdir}/tclConfig.sh" ; then
24242 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24243 break
24244 fi
24245 done
24246 fi
24247 # check in a few common install locations
24248 if test x"${ac_cv_c_tclconfig}" = x ; then
24249 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24250 if test -f "$i/tclConfig.sh" ; then
24251 ac_cv_c_tclconfig=`(cd $i; pwd)`
24252 break
24253 fi
24254 done
24255 fi
24256 # check in a few other private locations
24257 if test x"${ac_cv_c_tclconfig}" = x ; then
24258 for i in \
24259 ${srcdir}/../tcl \
24260 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
24261 if test -f "$i/${configdir}/tclConfig.sh" ; then
24262 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24263 break
24264 fi
24265 done
24266 fi
bec39cab 24267
3fc11d3e
JM
24268fi
24269
24270 if test x"${ac_cv_c_tclconfig}" = x ; then
24271 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
24272 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24273echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
24274 else
24275 no_tcl=
24276 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
24277 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
24278echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
24279 fi
24280fi
24281
24282 if test -z "${no_tcl}"; then
bec39cab 24283
3fc11d3e
JM
24284 . $TCLCONFIG
24285
3fc11d3e
JM
24286
24287
24288
24289
3fc11d3e
JM
24290
24291
24292
bec39cab
AC
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
3fc11d3e
JM
24312#
24313# Ok, lets find the tk configuration
bec39cab 24314# First, look for one uninstalled.
3fc11d3e
JM
24315# the alternative search directory is invoked by --with-tkconfig
24316#
24317
24318if test x"${no_tk}" = x ; then
24319 # we reset no_tk in case something fails here
24320 no_tk=true
bec39cab 24321
b4e70030 24322# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 24323if test "${with_tkconfig+set}" = set; then
b4e70030
JB
24324 withval="$with_tkconfig"
24325 with_tkconfig=${withval}
24326fi;
24327 echo "$as_me:$LINENO: checking for Tk configuration" >&5
24328echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
24329 if test "${ac_cv_c_tkconfig+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24331else
bec39cab 24332
3fc11d3e
JM
24333
24334 # First check to see if --with-tkconfig was specified.
24335 if test x"${with_tkconfig}" != x ; then
24336 if test -f "${with_tkconfig}/tkConfig.sh" ; then
24337 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
24338 else
bec39cab
AC
24339 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
24340echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
24341 { (exit 1); exit 1; }; }
3fc11d3e
JM
24342 fi
24343 fi
24344
24345 # then check for a private Tk library
24346 if test x"${ac_cv_c_tkconfig}" = x ; then
24347 for i in \
24348 ../tk \
24349 `ls -dr ../tk[4-9]* 2>/dev/null` \
24350 ../../tk \
24351 `ls -dr ../../tk[4-9]* 2>/dev/null` \
24352 ../../../tk \
24353 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
24354 if test -f "$i/${configdir}/tkConfig.sh" ; then
24355 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24356 break
24357 fi
24358 done
24359 fi
24360 # check in a few common install locations
24361 if test x"${ac_cv_c_tkconfig}" = x ; then
24362 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24363 if test -f "$i/tkConfig.sh" ; then
24364 ac_cv_c_tkconfig=`(cd $i; pwd)`
24365 break
24366 fi
24367 done
24368 fi
24369 # check in a few other private locations
24370 if test x"${ac_cv_c_tkconfig}" = x ; then
24371 for i in \
24372 ${srcdir}/../tk \
24373 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
24374 if test -f "$i/${configdir}/tkConfig.sh" ; then
24375 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24376 break
24377 fi
24378 done
24379 fi
bec39cab 24380
3fc11d3e
JM
24381fi
24382
24383 if test x"${ac_cv_c_tkconfig}" = x ; then
24384 TKCONFIG="# no Tk configs found"
bec39cab
AC
24385 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
24386echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
24387 else
24388 no_tk=
24389 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
24390 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
24391echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
24392 fi
24393fi
24394
24395
24396
dd2504ab
JM
24397 # now look for Tcl library stuff
24398
d91670b9 24399 tcldir="../tcl/${configdir}/"
dd2504ab
JM
24400
24401 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
24402
3fc11d3e
JM
24403 # If $no_tk is nonempty, then we can't do Tk, and there is no
24404 # point to doing Tcl.
24405 if test -z "${no_tk}"; then
bec39cab 24406
3fc11d3e
JM
24407 if test -f "$TKCONFIG" ; then
24408 . $TKCONFIG
24409 fi
24410
3fc11d3e 24411
3fc11d3e
JM
24412
24413
3fc11d3e 24414
bec39cab
AC
24415
24416
24417
24418
24419
24420
24421
24422
24423
3fc11d3e
JM
24424#
24425# Ok, lets find the tcl source trees so we can use the headers
24426# Warning: transition of version 9 to 10 will break this algorithm
24427# because 10 sorts before 9. We also look for just tcl. We have to
24428# be careful that we don't match stuff like tclX by accident.
24429# the alternative search directory is involked by --with-tclinclude
24430#
24431
24432no_tcl=true
b4e70030
JB
24433echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
24434echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 24435
b4e70030 24436# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 24437if test "${with_tclinclude+set}" = set; then
b4e70030
JB
24438 withval="$with_tclinclude"
24439 with_tclinclude=${withval}
24440fi;
bec39cab
AC
24441if test "${ac_cv_c_tclh+set}" = set; then
24442 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24443else
bec39cab 24444
3fc11d3e
JM
24445# first check to see if --with-tclinclude was specified
24446if test x"${with_tclinclude}" != x ; then
24447 if test -f ${with_tclinclude}/tclInt.h ; then
24448 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
24449 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
24450 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
24451 else
bec39cab
AC
24452 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
24453echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
24454 { (exit 1); exit 1; }; }
3fc11d3e
JM
24455 fi
24456fi
24457
24458# next check if it came with Tcl configuration file
24459if test x"${ac_cv_c_tclconfig}" = x ; then
24460 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
24461 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
24462 fi
24463fi
24464
24465# next check in private source directory
24466#
24467# since ls returns lowest version numbers first, reverse its output
24468if test x"${ac_cv_c_tclh}" = x ; then
24469 for i in \
24470 ${srcdir}/../tcl \
24471 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
24472 ${srcdir}/../../tcl \
24473 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
24474 ${srcdir}/../../../tcl \
24475 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
24476 if test -f $i/generic/tclInt.h ; then
24477 ac_cv_c_tclh=`(cd $i/generic; pwd)`
24478 break
24479 fi
24480 done
24481fi
24482# finally check in a few common install locations
24483#
24484# since ls returns lowest version numbers first, reverse its output
24485if test x"${ac_cv_c_tclh}" = x ; then
24486 for i in \
24487 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
24488 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
24489 /usr/local/src/tcl \
24490 /usr/local/lib/tcl \
24491 ${prefix}/include ; do
24492 if test -f $i/generic/tclInt.h ; then
24493 ac_cv_c_tclh=`(cd $i/generic; pwd)`
24494 break
24495 fi
24496 done
24497fi
24498# see if one is installed
24499if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 24500 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
24501 echo "$as_me:$LINENO: checking for tclInt.h" >&5
24502echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
24503if test "${ac_cv_header_tclInt_h+set}" = set; then
24504 echo $ECHO_N "(cached) $ECHO_C" >&6
24505fi
b4e70030
JB
24506echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24507echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
24508else
24509 # Is the header compilable?
b4e70030
JB
24510echo "$as_me:$LINENO: checking tclInt.h usability" >&5
24511echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
24512cat >conftest.$ac_ext <<_ACEOF
24513/* confdefs.h. */
24514_ACEOF
24515cat confdefs.h >>conftest.$ac_ext
24516cat >>conftest.$ac_ext <<_ACEOF
24517/* end confdefs.h. */
24518$ac_includes_default
24519#include <tclInt.h>
24520_ACEOF
24521rm -f conftest.$ac_objext
24522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24523 (eval $ac_compile) 2>conftest.er1
24524 ac_status=$?
24525 grep -v '^ *+' conftest.er1 >conftest.err
24526 rm -f conftest.er1
24527 cat conftest.err >&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } &&
b4e70030
JB
24530 { ac_try='test -z "$ac_c_werror_flag"
24531 || test ! -s conftest.err'
bec39cab
AC
24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533 (eval $ac_try) 2>&5
24534 ac_status=$?
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; } &&
24537 { ac_try='test -s conftest.$ac_objext'
24538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539 (eval $ac_try) 2>&5
24540 ac_status=$?
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; }; then
24543 ac_header_compiler=yes
24544else
24545 echo "$as_me: failed program was:" >&5
24546sed 's/^/| /' conftest.$ac_ext >&5
24547
b4e70030 24548ac_header_compiler=no
bec39cab
AC
24549fi
24550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
24551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24552echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
24553
24554# Is the header present?
b4e70030
JB
24555echo "$as_me:$LINENO: checking tclInt.h presence" >&5
24556echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
24557cat >conftest.$ac_ext <<_ACEOF
24558/* confdefs.h. */
24559_ACEOF
24560cat confdefs.h >>conftest.$ac_ext
24561cat >>conftest.$ac_ext <<_ACEOF
24562/* end confdefs.h. */
3fc11d3e 24563#include <tclInt.h>
bec39cab
AC
24564_ACEOF
24565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24567 ac_status=$?
24568 grep -v '^ *+' conftest.er1 >conftest.err
24569 rm -f conftest.er1
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } >/dev/null; then
24573 if test -s conftest.err; then
24574 ac_cpp_err=$ac_c_preproc_warn_flag
24575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24576 else
24577 ac_cpp_err=
24578 fi
24579else
24580 ac_cpp_err=yes
3fc11d3e 24581fi
bec39cab
AC
24582if test -z "$ac_cpp_err"; then
24583 ac_header_preproc=yes
24584else
24585 echo "$as_me: failed program was:" >&5
24586sed 's/^/| /' conftest.$ac_ext >&5
24587
24588 ac_header_preproc=no
3fc11d3e 24589fi
bec39cab 24590rm -f conftest.err conftest.$ac_ext
b4e70030
JB
24591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24592echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
24593
24594# So? What about this header?
24595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24596 yes:no: )
24597 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24598echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24599 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
24600echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
24601 ac_header_preproc=yes
24602 ;;
24603 no:yes:* )
24604 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
24605echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
24606 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
24607echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
24608 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
24609echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
24610 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
24611echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24612 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
24613echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
24614 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
24615echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
24616 (
24617 cat <<\_ASBOX
24618## ------------------------------------------ ##
24619## Report this to the AC_PACKAGE_NAME lists. ##
24620## ------------------------------------------ ##
24621_ASBOX
24622 ) |
24623 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
24624 ;;
24625esac
b4e70030
JB
24626echo "$as_me:$LINENO: checking for tclInt.h" >&5
24627echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
24628if test "${ac_cv_header_tclInt_h+set}" = set; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24630else
24631 ac_cv_header_tclInt_h=$ac_header_preproc
24632fi
b4e70030
JB
24633echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24634echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
24635
24636fi
24637if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
24638 ac_cv_c_tclh=installed
24639else
bec39cab 24640 ac_cv_c_tclh=""
3fc11d3e
JM
24641fi
24642
bec39cab 24643
3fc11d3e
JM
24644fi
24645
24646fi
24647
24648if test x"${ac_cv_c_tclh}" = x ; then
24649 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
24650 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
24651echo "$as_me: error: Can't find Tcl private headers" >&2;}
24652 { (exit 1); exit 1; }; }
3fc11d3e
JM
24653fi
24654if test x"${ac_cv_c_tclh}" != x ; then
24655 no_tcl=""
24656 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
24657 echo "$as_me:$LINENO: result: is installed" >&5
24658echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
24659 TCLHDIR=""
24660 else
b4e70030
JB
24661 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
24662echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
24663 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
24664 TCLHDIR="-I${ac_cv_c_tclh}"
24665 fi
24666fi
24667
24668
24669
bec39cab 24670
3fc11d3e
JM
24671#
24672# Ok, lets find the tk source trees so we can use the headers
24673# If the directory (presumably symlink) named "tk" exists, use that one
24674# in preference to any others. Same logic is used when choosing library
24675# and again with Tcl. The search order is the best place to look first, then in
24676# decreasing significance. The loop breaks if the trigger file is found.
24677# Note the gross little conversion here of srcdir by cd'ing to the found
24678# directory. This converts the path from a relative to an absolute, so
24679# recursive cache variables for the path will work right. We check all
24680# the possible paths in one loop rather than many seperate loops to speed
24681# things up.
24682# the alternative search directory is involked by --with-tkinclude
24683#
24684no_tk=true
b4e70030
JB
24685echo "$as_me:$LINENO: checking for Tk private headers" >&5
24686echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 24687
b4e70030 24688# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 24689if test "${with_tkinclude+set}" = set; then
b4e70030
JB
24690 withval="$with_tkinclude"
24691 with_tkinclude=${withval}
24692fi;
bec39cab
AC
24693if test "${ac_cv_c_tkh+set}" = set; then
24694 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24695else
bec39cab 24696
3fc11d3e
JM
24697# first check to see if --with-tkinclude was specified
24698if test x"${with_tkinclude}" != x ; then
24699 if test -f ${with_tkinclude}/tk.h ; then
24700 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
24701 elif test -f ${with_tkinclude}/generic/tk.h ; then
24702 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
24703 else
bec39cab
AC
24704 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
24705echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
24706 { (exit 1); exit 1; }; }
3fc11d3e
JM
24707 fi
24708fi
24709
24710# next check if it came with Tk configuration file
24711if test x"${ac_cv_c_tkconfig}" = x ; then
24712 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
24713 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
24714 fi
24715fi
24716
24717# next check in private source directory
24718#
24719# since ls returns lowest version numbers first, reverse its output
24720if test x"${ac_cv_c_tkh}" = x ; then
24721 for i in \
24722 ${srcdir}/../tk \
24723 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
24724 ${srcdir}/../../tk \
24725 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
24726 ${srcdir}/../../../tk \
24727 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
24728 if test -f $i/generic/tk.h ; then
24729 ac_cv_c_tkh=`(cd $i/generic; pwd)`
24730 break
24731 fi
24732 done
24733fi
24734# finally check in a few common install locations
24735#
24736# since ls returns lowest version numbers first, reverse its output
24737if test x"${ac_cv_c_tkh}" = x ; then
24738 for i in \
24739 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
24740 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
24741 /usr/local/src/tk \
24742 /usr/local/lib/tk \
24743 ${prefix}/include ; do
24744 if test -f $i/generic/tk.h ; then
24745 ac_cv_c_tkh=`(cd $i/generic; pwd)`
24746 break
24747 fi
24748 done
24749fi
24750# see if one is installed
24751if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 24752 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
24753 echo "$as_me:$LINENO: checking for tk.h" >&5
24754echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
24755if test "${ac_cv_header_tk_h+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24757fi
b4e70030
JB
24758echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24759echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
24760else
24761 # Is the header compilable?
b4e70030
JB
24762echo "$as_me:$LINENO: checking tk.h usability" >&5
24763echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
24764cat >conftest.$ac_ext <<_ACEOF
24765/* confdefs.h. */
24766_ACEOF
24767cat confdefs.h >>conftest.$ac_ext
24768cat >>conftest.$ac_ext <<_ACEOF
24769/* end confdefs.h. */
24770$ac_includes_default
3fc11d3e 24771#include <tk.h>
bec39cab
AC
24772_ACEOF
24773rm -f conftest.$ac_objext
24774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24775 (eval $ac_compile) 2>conftest.er1
24776 ac_status=$?
24777 grep -v '^ *+' conftest.er1 >conftest.err
24778 rm -f conftest.er1
24779 cat conftest.err >&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); } &&
b4e70030
JB
24782 { ac_try='test -z "$ac_c_werror_flag"
24783 || test ! -s conftest.err'
bec39cab
AC
24784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24785 (eval $ac_try) 2>&5
24786 ac_status=$?
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; } &&
24789 { ac_try='test -s conftest.$ac_objext'
24790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; }; then
24795 ac_header_compiler=yes
24796else
24797 echo "$as_me: failed program was:" >&5
24798sed 's/^/| /' conftest.$ac_ext >&5
24799
b4e70030 24800ac_header_compiler=no
bec39cab
AC
24801fi
24802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
24803echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24804echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
24805
24806# Is the header present?
b4e70030
JB
24807echo "$as_me:$LINENO: checking tk.h presence" >&5
24808echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
24809cat >conftest.$ac_ext <<_ACEOF
24810/* confdefs.h. */
24811_ACEOF
24812cat confdefs.h >>conftest.$ac_ext
24813cat >>conftest.$ac_ext <<_ACEOF
24814/* end confdefs.h. */
24815#include <tk.h>
24816_ACEOF
24817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24819 ac_status=$?
24820 grep -v '^ *+' conftest.er1 >conftest.err
24821 rm -f conftest.er1
24822 cat conftest.err >&5
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); } >/dev/null; then
24825 if test -s conftest.err; then
24826 ac_cpp_err=$ac_c_preproc_warn_flag
24827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24828 else
24829 ac_cpp_err=
24830 fi
24831else
24832 ac_cpp_err=yes
3fc11d3e 24833fi
bec39cab
AC
24834if test -z "$ac_cpp_err"; then
24835 ac_header_preproc=yes
24836else
24837 echo "$as_me: failed program was:" >&5
24838sed 's/^/| /' conftest.$ac_ext >&5
24839
24840 ac_header_preproc=no
24841fi
24842rm -f conftest.err conftest.$ac_ext
b4e70030
JB
24843echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24844echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
24845
24846# So? What about this header?
24847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24848 yes:no: )
24849 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24850echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24851 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24852echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24853 ac_header_preproc=yes
24854 ;;
24855 no:yes:* )
24856 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24857echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24858 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
24859echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
24860 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24861echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24862 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
24863echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
24864 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24865echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24866 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24867echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
24868 (
24869 cat <<\_ASBOX
24870## ------------------------------------------ ##
24871## Report this to the AC_PACKAGE_NAME lists. ##
24872## ------------------------------------------ ##
24873_ASBOX
24874 ) |
24875 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
24876 ;;
24877esac
b4e70030
JB
24878echo "$as_me:$LINENO: checking for tk.h" >&5
24879echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
24880if test "${ac_cv_header_tk_h+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24882else
24883 ac_cv_header_tk_h=$ac_header_preproc
24884fi
b4e70030
JB
24885echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24886echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 24887
3fc11d3e 24888fi
bec39cab 24889if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
24890 ac_cv_c_tkh=installed
24891else
bec39cab 24892 ac_cv_c_tkh=""
3fc11d3e
JM
24893fi
24894
bec39cab 24895
3fc11d3e
JM
24896fi
24897
24898fi
24899
24900if test x"${ac_cv_c_tkh}" != x ; then
24901 no_tk=""
24902 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
24903 echo "$as_me:$LINENO: result: is installed" >&5
24904echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
24905 TKHDIR=""
24906 else
b4e70030
JB
24907 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24908echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
24909 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
24910 TKHDIR="-I${ac_cv_c_tkh}"
24911 fi
24912else
24913 TKHDIR="# no Tk directory found"
bec39cab
AC
24914 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
24915echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
24916 no_tk=true
24917fi
24918
24919
24920
bec39cab 24921
b4e70030
JB
24922echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
24923echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
24924if test x"${ac_cv_c_itclh}" = x ; then
24925 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
24926 if test -f $i/generic/itcl.h ; then
24927 ac_cv_c_itclh=`(cd $i/generic; pwd)`
24928 break
24929 fi
24930 done
24931fi
24932if test x"${ac_cv_c_itclh}" = x ; then
24933 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
24934 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
24935echo "$as_me: error: Can't find Itcl private headers" >&2;}
24936 { (exit 1); exit 1; }; }
3fc11d3e
JM
24937fi
24938if test x"${ac_cv_c_itclh}" != x ; then
24939 ITCLHDIR="-I${ac_cv_c_itclh}"
24940fi
24941# should always be here
24942# ITCLLIB="../itcl/itcl/unix/libitcl.a"
24943
24944#AC_SUBST(ITCLLIB)
24945
bec39cab 24946
b4e70030
JB
24947echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
24948echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
24949if test x"${ac_cv_c_itkh}" = x ; then
24950 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
24951 if test -f $i/generic/itk.h ; then
24952 ac_cv_c_itkh=`(cd $i/generic; pwd)`
24953 break
24954 fi
24955 done
24956fi
24957if test x"${ac_cv_c_itkh}" = x ; then
24958 ITKHDIR="# no Itk private headers found"
bec39cab
AC
24959 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
24960echo "$as_me: error: Can't find Itk private headers" >&2;}
24961 { (exit 1); exit 1; }; }
3fc11d3e
JM
24962fi
24963if test x"${ac_cv_c_itkh}" != x ; then
24964 ITKHDIR="-I${ac_cv_c_itkh}"
24965fi
24966# should always be here
24967# ITKLIB="../itcl/itk/unix/libitk.a"
24968
24969#AC_SUBST(ITKLIB)
24970
3fc11d3e 24971
dd2504ab
JM
24972
24973 # now look for Tk library stuff
24974
d91670b9 24975 tkdir="../tk/${configdir}/"
dd2504ab
JM
24976
24977 TK_DEPS="${tkdir}${TK_LIB_FILE}"
24978
3fc11d3e
JM
24979 # now look for Itcl library stuff
24980
bec39cab 24981
3fc11d3e
JM
24982#
24983# Ok, lets find the itcl configuration
bec39cab 24984# First, look for one uninstalled.
3fc11d3e
JM
24985# the alternative search directory is invoked by --with-itclconfig
24986#
24987
24988if test x"${no_itcl}" = x ; then
24989 # we reset no_itcl in case something fails here
24990 no_itcl=true
bec39cab 24991
b4e70030 24992# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 24993if test "${with_itclconfig+set}" = set; then
b4e70030
JB
24994 withval="$with_itclconfig"
24995 with_itclconfig=${withval}
24996fi;
24997 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
24998echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
24999 if test "${ac_cv_c_itclconfig+set}" = set; then
25000 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 25001else
bec39cab 25002
3fc11d3e
JM
25003
25004 # First check to see if --with-itclconfig was specified.
25005 if test x"${with_itclconfig}" != x ; then
25006 if test -f "${with_itclconfig}/itclConfig.sh" ; then
25007 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
25008 else
bec39cab
AC
25009 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
25010echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
25011 { (exit 1); exit 1; }; }
3fc11d3e
JM
25012 fi
25013 fi
25014
25015 # then check for a private Itcl library
25016 if test x"${ac_cv_c_itclconfig}" = x ; then
25017 for i in \
25018 ../itcl/itcl \
25019 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
25020 ../../itcl \
25021 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
25022 ../../../itcl \
25023 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
25024 if test -f "$i/itclConfig.sh" ; then
25025 ac_cv_c_itclconfig=`(cd $i; pwd)`
25026 break
25027 fi
25028 done
25029 fi
25030 # check in a few common install locations
25031 if test x"${ac_cv_c_itclconfig}" = x ; then
25032 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
25033 if test -f "$i/itclConfig.sh" ; then
25034 ac_cv_c_itclconfig=`(cd $i; pwd)`
25035 break
25036 fi
25037 done
25038 fi
25039 # check in a few other private locations
25040 if test x"${ac_cv_c_itclconfig}" = x ; then
25041 for i in \
25042 ${srcdir}/../itcl/itcl \
25043 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
25044 if test -f "$i/itclConfig.sh" ; then
25045 ac_cv_c_itclconfig=`(cd $i; pwd)`
25046 break
25047 fi
25048 done
25049 fi
bec39cab 25050
3fc11d3e
JM
25051fi
25052
25053 if test x"${ac_cv_c_itclconfig}" = x ; then
25054 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
25055 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
25056echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
25057 else
25058 no_itcl=
25059 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
25060 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
25061echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
25062 fi
25063fi
25064
25065 if test -z "${no_itcl}"; then
bec39cab 25066
3fc11d3e
JM
25067 if test -f "$ITCLCONFIG" ; then
25068 . $ITCLCONFIG
25069 fi
25070
3fc11d3e 25071
3fc11d3e
JM
25072
25073
bec39cab
AC
25074
25075
25076
25077
25078
25079
25080
3fc11d3e
JM
25081
25082 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 25083 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
25084 fi
25085
bec39cab 25086
3fc11d3e 25087 # now look for Itk library stuff
bec39cab 25088
3fc11d3e
JM
25089#
25090# Ok, lets find the itk configuration
bec39cab 25091# First, look for one uninstalled.
3fc11d3e
JM
25092# the alternative search directory is invoked by --with-itkconfig
25093#
25094
25095if test x"${no_itk}" = x ; then
25096 # we reset no_itk in case something fails here
25097 no_itk=true
bec39cab 25098
b4e70030 25099# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 25100if test "${with_itkconfig+set}" = set; then
b4e70030
JB
25101 withval="$with_itkconfig"
25102 with_itkconfig=${withval}
25103fi;
25104 echo "$as_me:$LINENO: checking for Itk configuration" >&5
25105echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
25106 if test "${ac_cv_c_itkconfig+set}" = set; then
25107 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 25108else
bec39cab 25109
3fc11d3e
JM
25110
25111 # First check to see if --with-itkconfig was specified.
25112 if test x"${with_itkconfig}" != x ; then
25113 if test -f "${with_itkconfig}/itkConfig.sh" ; then
25114 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
25115 else
bec39cab
AC
25116 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
25117echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
25118 { (exit 1); exit 1; }; }
3fc11d3e
JM
25119 fi
25120 fi
25121
25122 # then check for a private Itk library
25123 if test x"${ac_cv_c_itkconfig}" = x ; then
25124 for i in \
25125 ../itcl/itk \
25126 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
25127 ../../itk \
25128 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
25129 ../../../itk \
25130 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
25131 if test -f "$i/itkConfig.sh" ; then
25132 ac_cv_c_itkconfig=`(cd $i; pwd)`
25133 break
25134 fi
25135 done
25136 fi
25137 # check in a few common install locations
25138 if test x"${ac_cv_c_itkconfig}" = x ; then
25139 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
25140 if test -f "$i/itkConfig.sh" ; then
25141 ac_cv_c_itkconfig=`(cd $i; pwd)`
25142 break
25143 fi
25144 done
25145 fi
25146 # check in a few other private locations
25147 if test x"${ac_cv_c_itkconfig}" = x ; then
25148 for i in \
25149 ${srcdir}/../itcl/itk \
25150 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
25151 if test -f "$i/itkConfig.sh" ; then
25152 ac_cv_c_itkconfig=`(cd $i; pwd)`
25153 break
25154 fi
25155 done
25156 fi
bec39cab 25157
3fc11d3e
JM
25158fi
25159
25160 if test x"${ac_cv_c_itkconfig}" = x ; then
25161 ITKCONFIG="# no Itk configs found"
bec39cab
AC
25162 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
25163echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
25164 else
25165 no_itk=
25166 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
25167 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
25168echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
25169 fi
25170fi
25171
25172
bec39cab
AC
25173 if test -z "${no_itcl}"; then
25174
25175 if test -f "$ITKCONFIG" ; then
25176 . $ITKCONFIG
25177 fi
25178
25179
25180
25181
25182
25183
3fc11d3e 25184
3fc11d3e 25185
3fc11d3e
JM
25186
25187
3fc11d3e
JM
25188
25189
3fc11d3e 25190 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 25191 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
25192 fi
25193
4226a5a5 25194 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
25195
25196 # Include some libraries that Tcl and Tk want.
b2a1bd4f 25197 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
25198 # Yes, the ordering seems wrong here. But it isn't.
25199 # TK_LIBS is the list of libraries that need to be linked
25200 # after Tcl/Tk. Note that this isn't put into LIBS. If it
25201 # were in LIBS then any link tests after this point would
25202 # try to include things like `$(LIBGUI)', which wouldn't work.
25203 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
25204
25205 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25206 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25207 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
25208 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25209 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25210 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25211 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
25212
25213 if test x$gdb_cv_os_cygwin = xyes; then
25214 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25215 WIN32LDAPP="-Wl,--subsystem,console"
25216 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25217 fi
25218 fi
25219 fi
ffc6a242 25220
b4e70030
JB
25221
25222
25223subdirs="$subdirs gdbtk"
3ace7edb 25224
3fc11d3e
JM
25225fi
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
dd2504ab 25239
b4e70030
JB
25240echo "$as_me:$LINENO: checking for X" >&5
25241echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 25242
c906108c 25243
b4e70030 25244# Check whether --with-x or --without-x was given.
c906108c 25245if test "${with_x+set}" = set; then
b4e70030 25246 withval="$with_x"
c906108c 25247
b4e70030 25248fi;
c906108c
SS
25249# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25250if test "x$with_x" = xno; then
25251 # The user explicitly disabled X.
25252 have_x=disabled
25253else
25254 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25255 # Both variables are already set.
25256 have_x=yes
25257 else
bec39cab
AC
25258 if test "${ac_cv_have_x+set}" = set; then
25259 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
25260else
25261 # One or both of the vars are not set, and there is no cached value.
bec39cab 25262ac_x_includes=no ac_x_libraries=no
b4e70030 25263rm -fr conftest.dir
bec39cab
AC
25264if mkdir conftest.dir; then
25265 cd conftest.dir
c906108c 25266 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 25267 cat >Imakefile <<'_ACEOF'
c906108c
SS
25268acfindx:
25269 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 25270_ACEOF
b4e70030 25271 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
25272 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25273 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25274 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25275 for ac_extension in a so sl; do
25276 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
25277 test -f $ac_im_libdir/libX11.$ac_extension; then
25278 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
25279 fi
25280 done
25281 # Screen out bogus values from the imake configuration. They are
25282 # bogus both because they are the default anyway, and because
25283 # using them would break gcc on systems where it needs fixed includes.
bec39cab 25284 case $ac_im_incroot in
b4e70030 25285 /usr/include) ;;
bec39cab 25286 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 25287 esac
bec39cab 25288 case $ac_im_usrlibdir in
c906108c 25289 /usr/lib | /lib) ;;
bec39cab 25290 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
25291 esac
25292 fi
25293 cd ..
b4e70030 25294 rm -fr conftest.dir
c906108c
SS
25295fi
25296
bec39cab
AC
25297# Standard set of common directories for X headers.
25298# Check X11 before X11Rn because it is often a symlink to the current release.
25299ac_x_header_dirs='
25300/usr/X11/include
25301/usr/X11R6/include
25302/usr/X11R5/include
25303/usr/X11R4/include
25304
25305/usr/include/X11
25306/usr/include/X11R6
25307/usr/include/X11R5
25308/usr/include/X11R4
25309
25310/usr/local/X11/include
25311/usr/local/X11R6/include
25312/usr/local/X11R5/include
25313/usr/local/X11R4/include
25314
25315/usr/local/include/X11
25316/usr/local/include/X11R6
25317/usr/local/include/X11R5
25318/usr/local/include/X11R4
25319
25320/usr/X386/include
25321/usr/x386/include
25322/usr/XFree86/include/X11
25323
25324/usr/include
25325/usr/local/include
25326/usr/unsupported/include
25327/usr/athena/include
25328/usr/local/x11r5/include
25329/usr/lpp/Xamples/include
25330
25331/usr/openwin/include
25332/usr/openwin/share/include'
25333
25334if test "$ac_x_includes" = no; then
59f80f10 25335 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 25336 # First, try using that file with no special directory specified.
bec39cab
AC
25337 cat >conftest.$ac_ext <<_ACEOF
25338/* confdefs.h. */
25339_ACEOF
25340cat confdefs.h >>conftest.$ac_ext
25341cat >>conftest.$ac_ext <<_ACEOF
25342/* end confdefs.h. */
59f80f10 25343#include <X11/Intrinsic.h>
bec39cab
AC
25344_ACEOF
25345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25347 ac_status=$?
25348 grep -v '^ *+' conftest.er1 >conftest.err
25349 rm -f conftest.er1
25350 cat conftest.err >&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } >/dev/null; then
25353 if test -s conftest.err; then
25354 ac_cpp_err=$ac_c_preproc_warn_flag
25355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25356 else
25357 ac_cpp_err=
25358 fi
25359else
25360 ac_cpp_err=yes
25361fi
25362if test -z "$ac_cpp_err"; then
c906108c
SS
25363 # We can compile using X headers with no special include directory.
25364ac_x_includes=
25365else
bec39cab
AC
25366 echo "$as_me: failed program was:" >&5
25367sed 's/^/| /' conftest.$ac_ext >&5
25368
25369 for ac_dir in $ac_x_header_dirs; do
59f80f10 25370 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
25371 ac_x_includes=$ac_dir
25372 break
25373 fi
25374done
c906108c 25375fi
bec39cab
AC
25376rm -f conftest.err conftest.$ac_ext
25377fi # $ac_x_includes = no
c906108c 25378
bec39cab 25379if test "$ac_x_libraries" = no; then
c906108c 25380 # Check for the libraries.
c906108c
SS
25381 # See if we find them without any special options.
25382 # Don't add to $LIBS permanently.
bec39cab 25383 ac_save_LIBS=$LIBS
4e8d927d 25384 LIBS="-lXt $LIBS"
bec39cab
AC
25385 cat >conftest.$ac_ext <<_ACEOF
25386/* confdefs.h. */
25387_ACEOF
25388cat confdefs.h >>conftest.$ac_ext
25389cat >>conftest.$ac_ext <<_ACEOF
25390/* end confdefs.h. */
59f80f10 25391#include <X11/Intrinsic.h>
bec39cab
AC
25392int
25393main ()
25394{
59f80f10 25395XtMalloc (0)
bec39cab
AC
25396 ;
25397 return 0;
25398}
25399_ACEOF
25400rm -f conftest.$ac_objext conftest$ac_exeext
25401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25402 (eval $ac_link) 2>conftest.er1
25403 ac_status=$?
25404 grep -v '^ *+' conftest.er1 >conftest.err
25405 rm -f conftest.er1
25406 cat conftest.err >&5
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); } &&
b4e70030
JB
25409 { ac_try='test -z "$ac_c_werror_flag"
25410 || test ! -s conftest.err'
bec39cab
AC
25411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25412 (eval $ac_try) 2>&5
25413 ac_status=$?
25414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); }; } &&
25416 { ac_try='test -s conftest$ac_exeext'
25417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418 (eval $ac_try) 2>&5
25419 ac_status=$?
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); }; }; then
25422 LIBS=$ac_save_LIBS
c906108c
SS
25423# We can link X programs with no special library path.
25424ac_x_libraries=
25425else
bec39cab
AC
25426 echo "$as_me: failed program was:" >&5
25427sed 's/^/| /' conftest.$ac_ext >&5
25428
b4e70030 25429LIBS=$ac_save_LIBS
bec39cab 25430for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 25431do
bec39cab 25432 # Don't even attempt the hair of trying to link an X program!
c906108c 25433 for ac_extension in a so sl; do
b4e70030 25434 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
25435 ac_x_libraries=$ac_dir
25436 break 2
25437 fi
25438 done
25439done
25440fi
bec39cab
AC
25441rm -f conftest.err conftest.$ac_objext \
25442 conftest$ac_exeext conftest.$ac_ext
25443fi # $ac_x_libraries = no
c906108c 25444
bec39cab 25445if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
25446 # Didn't find X anywhere. Cache the known absence of X.
25447 ac_cv_have_x="have_x=no"
25448else
25449 # Record where we found X for the cache.
25450 ac_cv_have_x="have_x=yes \
bec39cab 25451 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
25452fi
25453fi
bec39cab 25454
c906108c
SS
25455 fi
25456 eval "$ac_cv_have_x"
25457fi # $with_x != no
25458
25459if test "$have_x" != yes; then
b4e70030
JB
25460 echo "$as_me:$LINENO: result: $have_x" >&5
25461echo "${ECHO_T}$have_x" >&6
c906108c
SS
25462 no_x=yes
25463else
25464 # If each of the values was on the command line, it overrides each guess.
25465 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25466 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25467 # Update the cache value to reflect the command line values.
25468 ac_cv_have_x="have_x=yes \
25469 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
25470 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25471echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
25472fi
25473
25474
9cc52bde
MK
25475# Check whether we should enable the TUI, but only do so if we really
25476# can.
3ca64bd3 25477if test x"$enable_tui" != xno; then
9cc52bde
MK
25478 if test -d $srcdir/tui; then
25479 if test "$ac_cv_search_waddstr" != no; then
25480 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25481 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25482 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
25483 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
25484 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25485 CONFIG_ALL="${CONFIG_ALL} all-tui"
25486 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25487 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25488 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25489 else
3ca64bd3
JK
25490 if test x"$enable_tui" = xyes; then
25491 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
25492echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
25493 { (exit 1); exit 1; }; }
25494 else
25495 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
bec39cab 25496echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
3ca64bd3 25497 fi
9cc52bde
MK
25498 fi
25499 fi
25500fi
25501
bec39cab 25502# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 25503# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
25504# This code just checks for a few cases where we'd like to ignore those
25505# definitions, even when they're present in the '.mt' file. These cases
25506# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 25507# not part of the source tree.
7a292a7a 25508#
b4e70030 25509# Check whether --enable-sim or --disable-sim was given.
7a292a7a 25510if test "${enable_sim+set}" = set; then
b4e70030
JB
25511 enableval="$enable_sim"
25512 echo "enable_sim = $enable_sim";
7a292a7a
SS
25513 echo "enableval = ${enableval}";
25514 case "${enableval}" in
25515 yes) ignore_sim=false ;;
25516 no) ignore_sim=true ;;
25517 *) ignore_sim=false ;;
25518 esac
25519else
25520 ignore_sim=false
b4e70030 25521fi;
7a292a7a
SS
25522
25523if test ! -d "${srcdir}/../sim"; then
25524 ignore_sim=true
25525fi
25526
9b624dbe
UW
25527SIM=
25528SIM_OBS=
25529if test "${ignore_sim}" = "false"; then
25530 if test x"${gdb_sim}" != x ; then
25531 SIM="${gdb_sim}"
25532 SIM_OBS="remote-sim.o"
60ca704f
SE
25533
25534cat >>confdefs.h <<\_ACEOF
7a292a7a 25535#define WITH_SIM 1
bec39cab 25536_ACEOF
7a292a7a 25537
9b624dbe 25538 fi
7a292a7a
SS
25539fi
25540
25541
25542
c906108c
SS
25543
25544
25545
25546
25547
25548
dfcd3bfb 25549
e56ac5c3
AC
25550
25551
b3a90332
AC
25552
25553
c35f4ffc 25554# List of host floatformats.
bec39cab
AC
25555
25556cat >>confdefs.h <<_ACEOF
c35f4ffc 25557#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 25558_ACEOF
c35f4ffc 25559
bec39cab
AC
25560
25561cat >>confdefs.h <<_ACEOF
c35f4ffc 25562#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
25563_ACEOF
25564
c35f4ffc 25565
bec39cab 25566cat >>confdefs.h <<_ACEOF
c35f4ffc 25567#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 25568_ACEOF
c35f4ffc
AC
25569
25570
c906108c
SS
25571# target_subdir is used by the testsuite to find the target libraries.
25572target_subdir=
25573if test "${host}" != "${target}"; then
25574 target_subdir="${target_alias}/"
25575fi
25576
25577
25578frags=
771b4502 25579if test "${gdb_native}" = "yes"; then
0dad8a66
MK
25580 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25581 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
25582 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25583echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25584 { (exit 1); exit 1; }; }
0dad8a66
MK
25585 fi
25586 frags="$frags $host_makefile_frag"
25587else
25588 host_makefile_frag=/dev/null
c906108c 25589fi
c906108c 25590
c906108c
SS
25591
25592
25593
771b4502 25594if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
25595# We pick this up from the host configuration file (.mh) because we
25596# do not have a native configuration Makefile fragment.
c906108c
SS
25597nativefile=`sed -n '
25598s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25599' ${host_makefile_frag}`
c906108c
SS
25600fi
25601
25602
b00a8037 25603if test x"${gdb_osabi}" != x ; then
bec39cab
AC
25604
25605cat >>confdefs.h <<_ACEOF
b00a8037 25606#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 25607_ACEOF
b00a8037
DJ
25608
25609fi
25610
8dcde887 25611# Enable multi-ice-gdb-server.
b4e70030 25612# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 25613if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
25614 enableval="$enable_multi_ice"
25615 case $enableval in
8dcde887
MK
25616 yes | no)
25617 ;;
bec39cab
AC
25618 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25619echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25620 { (exit 1); exit 1; }; } ;;
8dcde887 25621 esac
b4e70030 25622fi;
4e8d927d 25623if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
25624
25625
25626subdirs="$subdirs multi-ice"
3ace7edb 25627
a85f51e7
DJ
25628fi
25629
a13e2c95
UW
25630# We only build gdbserver automatically in a native configuration.
25631if test "$gdb_native" = "yes"; then
b4e70030
JB
25632 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25633echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 25634 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
25635 echo "$as_me:$LINENO: result: yes" >&5
25636echo "${ECHO_T}yes" >&6
25637
25638
25639subdirs="$subdirs gdbserver"
3ace7edb 25640
8dcde887 25641 else
b4e70030
JB
25642 echo "$as_me:$LINENO: result: no" >&5
25643echo "${ECHO_T}no" >&6
8dcde887
MK
25644 fi
25645fi
25646
db985757 25647# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 25648# to an empty version.
c906108c
SS
25649
25650files=
25651links=
5a2402b8 25652
c906108c 25653rm -f nm.h
5a2402b8 25654nm_h=""
c906108c 25655if test "${nativefile}" != ""; then
5a2402b8 25656 nm_h=nm.h
0f475e27
AC
25657 case "${nativefile}" in
25658 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25659 * ) GDB_NM_FILE="${nativefile}"
25660 esac
5a2402b8
AC
25661 files="${files} ${GDB_NM_FILE}"
25662 links="${links} nm.h"
60ca704f
SE
25663
25664cat >>confdefs.h <<_ACEOF
b78960be 25665#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 25666_ACEOF
5a2402b8 25667
c906108c 25668fi
5a2402b8
AC
25669
25670
bec39cab
AC
25671ac_sources="$files"
25672ac_dests="$links"
25673while test -n "$ac_sources"; do
25674 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25675 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25676 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25677done
b4e70030 25678 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
25679
25680
c906108c
SS
25681
25682
c906108c 25683
c906108c 25684
bec39cab
AC
25685cat >>confdefs.h <<\_ACEOF
25686#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25687_ACEOF
c906108c 25688
234b45d4 25689
234b45d4
KB
25690
25691
25692
b4e70030 25693# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 25694if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
25695 withval="$with_libiconv_prefix"
25696
234b45d4
KB
25697 for dir in `echo "$withval" | tr : ' '`; do
25698 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25699 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25700 done
234b45d4 25701
b4e70030 25702fi;
234b45d4 25703
b4e70030
JB
25704 echo "$as_me:$LINENO: checking for iconv" >&5
25705echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
25706if test "${am_cv_func_iconv+set}" = set; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 25708else
bec39cab 25709
234b45d4
KB
25710 am_cv_func_iconv="no, consider installing GNU libiconv"
25711 am_cv_lib_iconv=no
bec39cab
AC
25712 cat >conftest.$ac_ext <<_ACEOF
25713/* confdefs.h. */
25714_ACEOF
25715cat confdefs.h >>conftest.$ac_ext
25716cat >>conftest.$ac_ext <<_ACEOF
25717/* end confdefs.h. */
234b45d4
KB
25718#include <stdlib.h>
25719#include <iconv.h>
bec39cab
AC
25720int
25721main ()
25722{
234b45d4
KB
25723iconv_t cd = iconv_open("","");
25724 iconv(cd,NULL,NULL,NULL,NULL);
25725 iconv_close(cd);
bec39cab
AC
25726 ;
25727 return 0;
25728}
25729_ACEOF
25730rm -f conftest.$ac_objext conftest$ac_exeext
25731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25732 (eval $ac_link) 2>conftest.er1
25733 ac_status=$?
25734 grep -v '^ *+' conftest.er1 >conftest.err
25735 rm -f conftest.er1
25736 cat conftest.err >&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } &&
b4e70030
JB
25739 { ac_try='test -z "$ac_c_werror_flag"
25740 || test ! -s conftest.err'
bec39cab
AC
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25743 ac_status=$?
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; } &&
25746 { ac_try='test -s conftest$ac_exeext'
25747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748 (eval $ac_try) 2>&5
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; }; then
234b45d4
KB
25752 am_cv_func_iconv=yes
25753else
bec39cab
AC
25754 echo "$as_me: failed program was:" >&5
25755sed 's/^/| /' conftest.$ac_ext >&5
25756
234b45d4 25757fi
bec39cab
AC
25758rm -f conftest.err conftest.$ac_objext \
25759 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25760 if test "$am_cv_func_iconv" != yes; then
25761 am_save_LIBS="$LIBS"
25762 LIBS="$LIBS -liconv"
bec39cab
AC
25763 cat >conftest.$ac_ext <<_ACEOF
25764/* confdefs.h. */
25765_ACEOF
25766cat confdefs.h >>conftest.$ac_ext
25767cat >>conftest.$ac_ext <<_ACEOF
25768/* end confdefs.h. */
234b45d4
KB
25769#include <stdlib.h>
25770#include <iconv.h>
bec39cab
AC
25771int
25772main ()
25773{
234b45d4
KB
25774iconv_t cd = iconv_open("","");
25775 iconv(cd,NULL,NULL,NULL,NULL);
25776 iconv_close(cd);
bec39cab
AC
25777 ;
25778 return 0;
25779}
25780_ACEOF
25781rm -f conftest.$ac_objext conftest$ac_exeext
25782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25783 (eval $ac_link) 2>conftest.er1
25784 ac_status=$?
25785 grep -v '^ *+' conftest.er1 >conftest.err
25786 rm -f conftest.er1
25787 cat conftest.err >&5
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); } &&
b4e70030
JB
25790 { ac_try='test -z "$ac_c_werror_flag"
25791 || test ! -s conftest.err'
bec39cab
AC
25792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793 (eval $ac_try) 2>&5
25794 ac_status=$?
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); }; } &&
25797 { ac_try='test -s conftest$ac_exeext'
25798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25799 (eval $ac_try) 2>&5
25800 ac_status=$?
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); }; }; then
234b45d4
KB
25803 am_cv_lib_iconv=yes
25804 am_cv_func_iconv=yes
25805else
bec39cab
AC
25806 echo "$as_me: failed program was:" >&5
25807sed 's/^/| /' conftest.$ac_ext >&5
25808
234b45d4 25809fi
bec39cab
AC
25810rm -f conftest.err conftest.$ac_objext \
25811 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
25812 LIBS="$am_save_LIBS"
25813 fi
bec39cab
AC
25814
25815fi
b4e70030
JB
25816echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25817echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
25818 if test "$am_cv_func_iconv" = yes; then
25819
25820cat >>confdefs.h <<\_ACEOF
25821#define HAVE_ICONV 1
25822_ACEOF
25823
b4e70030
JB
25824 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25825echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
25826 if test "${am_cv_proto_iconv+set}" = set; then
25827 echo $ECHO_N "(cached) $ECHO_C" >&6
25828else
25829
25830 cat >conftest.$ac_ext <<_ACEOF
25831/* confdefs.h. */
25832_ACEOF
25833cat confdefs.h >>conftest.$ac_ext
25834cat >>conftest.$ac_ext <<_ACEOF
25835/* end confdefs.h. */
25836
25837#include <stdlib.h>
25838#include <iconv.h>
25839extern
25840#ifdef __cplusplus
25841"C"
25842#endif
25843#if defined(__STDC__) || defined(__cplusplus)
25844size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25845#else
25846size_t iconv();
25847#endif
25848
25849int
25850main ()
25851{
25852
25853 ;
25854 return 0;
25855}
25856_ACEOF
25857rm -f conftest.$ac_objext
25858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25859 (eval $ac_compile) 2>conftest.er1
25860 ac_status=$?
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
b4e70030
JB
25866 { ac_try='test -z "$ac_c_werror_flag"
25867 || test ! -s conftest.err'
bec39cab
AC
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; } &&
25873 { ac_try='test -s conftest.$ac_objext'
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25876 ac_status=$?
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 am_cv_proto_iconv_arg1=""
25880else
25881 echo "$as_me: failed program was:" >&5
25882sed 's/^/| /' conftest.$ac_ext >&5
25883
b4e70030 25884am_cv_proto_iconv_arg1="const"
bec39cab
AC
25885fi
25886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25887 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);"
25888fi
25889
25890 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 25891 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
25892 }$am_cv_proto_iconv" >&5
25893echo "${ECHO_T}${ac_t:-
b4e70030 25894 }$am_cv_proto_iconv" >&6
bec39cab
AC
25895
25896cat >>confdefs.h <<_ACEOF
25897#define ICONV_CONST $am_cv_proto_iconv_arg1
25898_ACEOF
25899
25900 fi
25901 LIBICONV=
25902 if test "$am_cv_lib_iconv" = yes; then
25903 LIBICONV="-liconv"
25904 fi
25905
25906
25907
e28b3332 25908 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
b4e70030 25909 ac_config_commands="$ac_config_commands default"
bec39cab
AC
25910cat >confcache <<\_ACEOF
25911# This file is a shell script that caches the results of configure
25912# tests run on this system so they can be shared between configure
25913# scripts and configure runs, see configure's option --config-cache.
25914# It is not useful on other systems. If it contains results you don't
25915# want to keep, you may remove or edit it.
25916#
25917# config.status only pays attention to the cache file if you give it
25918# the --recheck option to rerun configure.
25919#
25920# `ac_cv_env_foo' variables (set or unset) will be overridden when
25921# loading this file, other *unset* `ac_cv_foo' will be assigned the
25922# following values.
25923
25924_ACEOF
25925
25926# The following way of writing the cache mishandles newlines in values,
25927# but we know of no workaround that is simple, portable, and efficient.
b4e70030 25928# So, don't put newlines in cache variables' values.
bec39cab
AC
25929# Ultrix sh set writes to stderr and can't be redirected directly,
25930# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 25931{
bec39cab 25932 (set) 2>&1 |
b4e70030
JB
25933 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25934 *ac_space=\ *)
bec39cab
AC
25935 # `set' does not quote correctly, so add quotes (double-quote
25936 # substitution turns \\\\ into \\, and sed turns \\ into \).
25937 sed -n \
25938 "s/'/'\\\\''/g;
25939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 25940 ;;
bec39cab
AC
25941 *)
25942 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
25943 sed -n \
25944 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 25945 ;;
b4e70030
JB
25946 esac;
25947} |
bec39cab
AC
25948 sed '
25949 t clear
b4e70030 25950 : clear
bec39cab
AC
25951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25952 t end
b4e70030
JB
25953 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25954 : end' >>confcache
bec39cab
AC
25955if diff $cache_file confcache >/dev/null 2>&1; then :; else
25956 if test -w $cache_file; then
b4e70030 25957 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
25958 cat confcache >$cache_file
25959 else
b4e70030 25960 echo "not updating unwritable cache $cache_file"
bec39cab
AC
25961 fi
25962fi
25963rm -f confcache
25964
25965test "x$prefix" = xNONE && prefix=$ac_default_prefix
25966# Let make expand exec_prefix.
25967test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25968
b4e70030
JB
25969# VPATH may cause trouble with some makes, so we remove $(srcdir),
25970# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25971# trailing colons and then remove the whole line if VPATH becomes empty
25972# (actually we leave an empty line to preserve line numbers).
25973if test "x$srcdir" = x.; then
25974 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25975s/:*\$(srcdir):*/:/;
25976s/:*\${srcdir}:*/:/;
25977s/:*@srcdir@:*/:/;
25978s/^\([^=]*=[ ]*\):*/\1/;
25979s/:*$//;
25980s/^[^=]*=[ ]*$//;
25981}'
25982fi
25983
bec39cab
AC
25984DEFS=-DHAVE_CONFIG_H
25985
25986ac_libobjs=
25987ac_ltlibobjs=
25988for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25989 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
25990 ac_i=`echo "$ac_i" |
25991 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25992 # 2. Add them.
25993 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25994 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
25995done
25996LIBOBJS=$ac_libobjs
25997
25998LTLIBOBJS=$ac_ltlibobjs
25999
26000
85981d60
AC
26001if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26002 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26003Usually this means the macro was only invoked conditionally." >&5
26004echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26005Usually this means the macro was only invoked conditionally." >&2;}
26006 { (exit 1); exit 1; }; }
26007fi
783e057b
DJ
26008if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26009 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26010Usually this means the macro was only invoked conditionally." >&5
26011echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26012Usually this means the macro was only invoked conditionally." >&2;}
26013 { (exit 1); exit 1; }; }
26014fi
26015
26016 gl_libobjs=
26017 gl_ltlibobjs=
26018 if test -n "$gl_LIBOBJS"; then
26019 # Remove the extension.
26020 sed_drop_objext='s/\.o$//;s/\.obj$//'
26021 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26022 gl_libobjs="$gl_libobjs $i.$ac_objext"
26023 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26024 done
26025 fi
26026 gl_LIBOBJS=$gl_libobjs
26027
26028 gl_LTLIBOBJS=$gl_ltlibobjs
26029
26030
26031
26032 gltests_libobjs=
26033 gltests_ltlibobjs=
26034 if test -n "$gltests_LIBOBJS"; then
26035 # Remove the extension.
26036 sed_drop_objext='s/\.o$//;s/\.obj$//'
26037 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26038 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26039 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26040 done
26041 fi
26042 gltests_LIBOBJS=$gltests_libobjs
26043
26044 gltests_LTLIBOBJS=$gltests_ltlibobjs
26045
26046
e28b3332
DJ
26047if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26048 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26049Usually this means the macro was only invoked conditionally." >&5
26050echo "$as_me: error: conditional \"AMDEP\" was never defined.
26051Usually this means the macro was only invoked conditionally." >&2;}
26052 { (exit 1); exit 1; }; }
26053fi
26054if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26055 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26056Usually this means the macro was only invoked conditionally." >&5
26057echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26058Usually this means the macro was only invoked conditionally." >&2;}
26059 { (exit 1); exit 1; }; }
26060fi
bec39cab
AC
26061
26062: ${CONFIG_STATUS=./config.status}
26063ac_clean_files_save=$ac_clean_files
26064ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26065{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26066echo "$as_me: creating $CONFIG_STATUS" >&6;}
26067cat >$CONFIG_STATUS <<_ACEOF
26068#! $SHELL
26069# Generated by $as_me.
26070# Run this file to recreate the current configuration.
26071# Compiler output produced by configure, useful for debugging
26072# configure, is in config.log if it exists.
26073
26074debug=false
26075ac_cs_recheck=false
26076ac_cs_silent=false
26077SHELL=\${CONFIG_SHELL-$SHELL}
26078_ACEOF
26079
26080cat >>$CONFIG_STATUS <<\_ACEOF
26081## --------------------- ##
26082## M4sh Initialization. ##
26083## --------------------- ##
26084
26085# Be Bourne compatible
26086if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26087 emulate sh
26088 NULLCMD=:
26089 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26090 # is contrary to our usage. Disable this feature.
26091 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
26092elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26093 set -o posix
bec39cab
AC
26094fi
26095DUALCASE=1; export DUALCASE # for MKS sh
26096
26097# Support unset when possible.
26098if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26099 as_unset=unset
26100else
26101 as_unset=false
26102fi
26103
26104
26105# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 26106$as_unset ENV MAIL MAILPATH
bec39cab
AC
26107PS1='$ '
26108PS2='> '
26109PS4='+ '
26110
26111# NLS nuisances.
26112for as_var in \
26113 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26114 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26115 LC_TELEPHONE LC_TIME
26116do
26117 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26118 eval $as_var=C; export $as_var
26119 else
b4e70030 26120 $as_unset $as_var
bec39cab
AC
26121 fi
26122done
26123
26124# Required to use basename.
b4e70030 26125if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
26126 as_expr=expr
26127else
26128 as_expr=false
26129fi
26130
b4e70030 26131if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
26132 as_basename=basename
26133else
26134 as_basename=false
26135fi
26136
26137
26138# Name of the executable.
b4e70030 26139as_me=`$as_basename "$0" ||
bec39cab
AC
26140$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26141 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
26142 X"$0" : 'X\(/\)$' \| \
26143 . : '\(.\)' 2>/dev/null ||
bec39cab 26144echo X/"$0" |
b4e70030
JB
26145 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26146 /^X\/\(\/\/\)$/{ s//\1/; q; }
26147 /^X\/\(\/\).*/{ s//\1/; q; }
26148 s/.*/./; q'`
bec39cab 26149
b4e70030
JB
26150
26151# PATH needs CR, and LINENO needs CR and PATH.
26152# Avoid depending upon Character Ranges.
26153as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26154as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26155as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26156as_cr_digits='0123456789'
26157as_cr_alnum=$as_cr_Letters$as_cr_digits
26158
26159# The user is always right.
26160if test "${PATH_SEPARATOR+set}" != set; then
26161 echo "#! /bin/sh" >conf$$.sh
26162 echo "exit 0" >>conf$$.sh
26163 chmod +x conf$$.sh
26164 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26165 PATH_SEPARATOR=';'
26166 else
26167 PATH_SEPARATOR=:
26168 fi
26169 rm -f conf$$.sh
26170fi
bec39cab
AC
26171
26172
b4e70030
JB
26173 as_lineno_1=$LINENO
26174 as_lineno_2=$LINENO
26175 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26176 test "x$as_lineno_1" != "x$as_lineno_2" &&
26177 test "x$as_lineno_3" = "x$as_lineno_2" || {
26178 # Find who we are. Look in the path if we contain no path at all
26179 # relative or not.
26180 case $0 in
26181 *[\\/]* ) as_myself=$0 ;;
26182 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26183for as_dir in $PATH
26184do
26185 IFS=$as_save_IFS
26186 test -z "$as_dir" && as_dir=.
26187 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26188done
bec39cab 26189
b4e70030
JB
26190 ;;
26191 esac
26192 # We did not find ourselves, most probably we were run as `sh COMMAND'
26193 # in which case we are not to be found in the path.
26194 if test "x$as_myself" = x; then
26195 as_myself=$0
26196 fi
26197 if test ! -f "$as_myself"; then
26198 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26199echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26200 { (exit 1); exit 1; }; }
26201 fi
26202 case $CONFIG_SHELL in
26203 '')
26204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26205for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26206do
26207 IFS=$as_save_IFS
26208 test -z "$as_dir" && as_dir=.
26209 for as_base in sh bash ksh sh5; do
26210 case $as_dir in
26211 /*)
26212 if ("$as_dir/$as_base" -c '
bec39cab
AC
26213 as_lineno_1=$LINENO
26214 as_lineno_2=$LINENO
b4e70030 26215 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 26216 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
26217 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26218 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26219 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26220 CONFIG_SHELL=$as_dir/$as_base
26221 export CONFIG_SHELL
26222 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26223 fi;;
26224 esac
26225 done
26226done
26227;;
26228 esac
bec39cab
AC
26229
26230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26231 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
26232 # line-number line before each line; the second 'sed' does the real
26233 # work. The second script uses 'N' to pair each line-number line
26234 # with the numbered line, and appends trailing '-' during
26235 # substitution so that $LINENO is not a special case at line end.
bec39cab 26236 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
26237 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26238 sed '=' <$as_myself |
bec39cab
AC
26239 sed '
26240 N
b4e70030
JB
26241 s,$,-,
26242 : loop
26243 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 26244 t loop
b4e70030
JB
26245 s,-$,,
26246 s,^['$as_cr_digits']*\n,,
bec39cab 26247 ' >$as_me.lineno &&
b4e70030
JB
26248 chmod +x $as_me.lineno ||
26249 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26250echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
26251 { (exit 1); exit 1; }; }
26252
26253 # Don't try to exec as it changes $[0], causing all sort of problems
26254 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
26255 # original and so on. Autoconf is especially sensible to this).
26256 . ./$as_me.lineno
bec39cab
AC
26257 # Exit status is that of the last command.
26258 exit
26259}
26260
26261
b4e70030
JB
26262case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26263 *c*,-n*) ECHO_N= ECHO_C='
26264' ECHO_T=' ' ;;
26265 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26266 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
26267esac
26268
b4e70030 26269if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
26270 as_expr=expr
26271else
26272 as_expr=false
26273fi
26274
26275rm -f conf$$ conf$$.exe conf$$.file
26276echo >conf$$.file
26277if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
26278 # We could just check for DJGPP; but this test a) works b) is more generic
26279 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26280 if test -f conf$$.exe; then
26281 # Don't use ln at all; we don't have any links
bec39cab 26282 as_ln_s='cp -p'
b4e70030
JB
26283 else
26284 as_ln_s='ln -s'
26285 fi
bec39cab
AC
26286elif ln conf$$.file conf$$ 2>/dev/null; then
26287 as_ln_s=ln
26288else
26289 as_ln_s='cp -p'
26290fi
b4e70030 26291rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
26292
26293if mkdir -p . 2>/dev/null; then
26294 as_mkdir_p=:
26295else
26296 test -d ./-p && rmdir ./-p
26297 as_mkdir_p=false
26298fi
26299
b4e70030 26300as_executable_p="test -f"
bec39cab
AC
26301
26302# Sed expression to map a string onto a valid CPP name.
26303as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26304
26305# Sed expression to map a string onto a valid variable name.
26306as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26307
26308
b4e70030
JB
26309# IFS
26310# We need space, tab and new line, in precisely that order.
26311as_nl='
26312'
26313IFS=" $as_nl"
26314
26315# CDPATH.
26316$as_unset CDPATH
26317
bec39cab
AC
26318exec 6>&1
26319
b4e70030 26320# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 26321# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
26322# values after options handling. Logging --version etc. is OK.
26323exec 5>>config.log
26324{
26325 echo
26326 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26327## Running $as_me. ##
26328_ASBOX
26329} >&5
26330cat >&5 <<_CSEOF
26331
bec39cab 26332This file was extended by $as_me, which was
b4e70030 26333generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
26334
26335 CONFIG_FILES = $CONFIG_FILES
26336 CONFIG_HEADERS = $CONFIG_HEADERS
26337 CONFIG_LINKS = $CONFIG_LINKS
26338 CONFIG_COMMANDS = $CONFIG_COMMANDS
26339 $ $0 $@
26340
b4e70030
JB
26341_CSEOF
26342echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26343echo >&5
bec39cab
AC
26344_ACEOF
26345
26346# Files that config.status was made for.
b4e70030
JB
26347if test -n "$ac_config_files"; then
26348 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26349fi
234b45d4 26350
b4e70030
JB
26351if test -n "$ac_config_headers"; then
26352 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26353fi
26354
26355if test -n "$ac_config_links"; then
26356 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26357fi
26358
26359if test -n "$ac_config_commands"; then
26360 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26361fi
234b45d4 26362
bec39cab 26363cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 26364
bec39cab
AC
26365ac_cs_usage="\
26366\`$as_me' instantiates files from templates according to the
26367current configuration.
234b45d4 26368
bec39cab 26369Usage: $0 [OPTIONS] [FILE]...
234b45d4 26370
bec39cab
AC
26371 -h, --help print this help, then exit
26372 -V, --version print version number, then exit
26373 -q, --quiet do not print progress messages
26374 -d, --debug don't remove temporary files
26375 --recheck update $as_me by reconfiguring in the same conditions
26376 --file=FILE[:TEMPLATE]
26377 instantiate the configuration file FILE
26378 --header=FILE[:TEMPLATE]
26379 instantiate the configuration header FILE
234b45d4 26380
bec39cab
AC
26381Configuration files:
26382$config_files
234b45d4 26383
bec39cab
AC
26384Configuration headers:
26385$config_headers
234b45d4 26386
bec39cab
AC
26387Configuration links:
26388$config_links
234b45d4 26389
bec39cab
AC
26390Configuration commands:
26391$config_commands
26392
26393Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 26394_ACEOF
b4e70030 26395
bec39cab
AC
26396cat >>$CONFIG_STATUS <<_ACEOF
26397ac_cs_version="\\
26398config.status
b4e70030 26399configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
26400 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26401
b4e70030 26402Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
26403This config.status script is free software; the Free Software Foundation
26404gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
26405srcdir=$srcdir
26406INSTALL="$INSTALL"
bec39cab
AC
26407_ACEOF
26408
26409cat >>$CONFIG_STATUS <<\_ACEOF
26410# If no file are specified by the user, then we need to provide default
26411# value. By we need to know if files were specified by the user.
26412ac_need_defaults=:
26413while test $# != 0
26414do
26415 case $1 in
26416 --*=*)
b4e70030
JB
26417 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26418 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 26419 ac_shift=:
c906108c 26420 ;;
b4e70030 26421 -*)
bec39cab
AC
26422 ac_option=$1
26423 ac_optarg=$2
26424 ac_shift=shift
c906108c 26425 ;;
b4e70030
JB
26426 *) # This is not an option, so the user has probably given explicit
26427 # arguments.
26428 ac_option=$1
26429 ac_need_defaults=false;;
bec39cab 26430 esac
c906108c 26431
bec39cab
AC
26432 case $ac_option in
26433 # Handling of the options.
b4e70030
JB
26434_ACEOF
26435cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
26436 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26437 ac_cs_recheck=: ;;
b4e70030
JB
26438 --version | --vers* | -V )
26439 echo "$ac_cs_version"; exit 0 ;;
26440 --he | --h)
26441 # Conflict between --help and --header
26442 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26443Try \`$0 --help' for more information." >&5
26444echo "$as_me: error: ambiguous option: $1
26445Try \`$0 --help' for more information." >&2;}
26446 { (exit 1); exit 1; }; };;
26447 --help | --hel | -h )
26448 echo "$ac_cs_usage"; exit 0 ;;
26449 --debug | --d* | -d )
bec39cab
AC
26450 debug=: ;;
26451 --file | --fil | --fi | --f )
26452 $ac_shift
26453 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26454 ac_need_defaults=false;;
26455 --header | --heade | --head | --hea )
26456 $ac_shift
26457 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26458 ac_need_defaults=false;;
26459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26460 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26461 ac_cs_silent=: ;;
c906108c 26462
bec39cab 26463 # This is an error.
b4e70030
JB
26464 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26465Try \`$0 --help' for more information." >&5
26466echo "$as_me: error: unrecognized option: $1
26467Try \`$0 --help' for more information." >&2;}
bec39cab 26468 { (exit 1); exit 1; }; } ;;
c906108c 26469
b4e70030 26470 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 26471
bec39cab
AC
26472 esac
26473 shift
26474done
c906108c 26475
bec39cab 26476ac_configure_extra_args=
c906108c 26477
bec39cab
AC
26478if $ac_cs_silent; then
26479 exec 6>/dev/null
26480 ac_configure_extra_args="$ac_configure_extra_args --silent"
26481fi
c906108c 26482
bec39cab
AC
26483_ACEOF
26484cat >>$CONFIG_STATUS <<_ACEOF
26485if \$ac_cs_recheck; then
b4e70030
JB
26486 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26487 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
26488fi
26489
26490_ACEOF
26491
26492cat >>$CONFIG_STATUS <<_ACEOF
c906108c 26493#
b4e70030 26494# INIT-COMMANDS section.
c906108c 26495#
c906108c 26496
e28b3332 26497AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 26498
bec39cab 26499gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
26500nativefile=$nativefile
26501
26502
26503_ACEOF
26504
4e8d927d 26505
b4e70030
JB
26506
26507cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 26508for ac_config_target in $ac_config_targets
c906108c 26509do
b4e70030
JB
26510 case "$ac_config_target" in
26511 # Handling of arguments.
26512 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26513 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
e28b3332 26514 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
b4e70030 26515 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
e28b3332 26516 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b4e70030
JB
26517 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26518 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
26519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26520echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26521 { (exit 1); exit 1; }; };;
c906108c
SS
26522 esac
26523done
26524
bec39cab
AC
26525# If the user did not use the arguments to specify the items to instantiate,
26526# then the envvar interface is used. Set only those that are not.
26527# We use the long form for the default assignment because of an extremely
26528# bizarre bug on SunOS 4.1.3.
26529if $ac_need_defaults; then
26530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26532 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26534fi
26535
b4e70030
JB
26536# Have a temporary directory for convenience. Make it in the build tree
26537# simply because there is no reason to put it here, and in addition,
26538# creating and moving files from /tmp can sometimes cause problems.
26539# Create a temporary directory, and hook for its removal unless debugging.
26540$debug ||
26541{
26542 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26543 trap '{ (exit 1); exit 1; }' 1 2 13 15
26544}
4e8d927d 26545
b4e70030 26546# Create a (secure) tmp directory for tmp files.
4e8d927d 26547
b4e70030
JB
26548{
26549 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26550 test -n "$tmp" && test -d "$tmp"
26551} ||
26552{
26553 tmp=./confstat$$-$RANDOM
26554 (umask 077 && mkdir $tmp)
26555} ||
26556{
26557 echo "$me: cannot create a temporary directory in ." >&2
26558 { (exit 1); exit 1; }
26559}
4e8d927d 26560
b4e70030 26561_ACEOF
4e8d927d 26562
b4e70030 26563cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 26564
b4e70030
JB
26565#
26566# CONFIG_FILES section.
26567#
4e8d927d 26568
b4e70030
JB
26569# No need to generate the scripts if there are no CONFIG_FILES.
26570# This happens for instance when ./config.status config.h
26571if test -n "\$CONFIG_FILES"; then
26572 # Protect against being on the right side of a sed subst in config.status.
26573 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26574 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26575s,@SHELL@,$SHELL,;t t
26576s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26577s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26578s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26579s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26580s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26581s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26582s,@exec_prefix@,$exec_prefix,;t t
26583s,@prefix@,$prefix,;t t
26584s,@program_transform_name@,$program_transform_name,;t t
26585s,@bindir@,$bindir,;t t
26586s,@sbindir@,$sbindir,;t t
26587s,@libexecdir@,$libexecdir,;t t
26588s,@datadir@,$datadir,;t t
26589s,@sysconfdir@,$sysconfdir,;t t
26590s,@sharedstatedir@,$sharedstatedir,;t t
26591s,@localstatedir@,$localstatedir,;t t
26592s,@libdir@,$libdir,;t t
26593s,@includedir@,$includedir,;t t
26594s,@oldincludedir@,$oldincludedir,;t t
26595s,@infodir@,$infodir,;t t
26596s,@mandir@,$mandir,;t t
26597s,@build_alias@,$build_alias,;t t
26598s,@host_alias@,$host_alias,;t t
26599s,@target_alias@,$target_alias,;t t
26600s,@DEFS@,$DEFS,;t t
26601s,@ECHO_C@,$ECHO_C,;t t
26602s,@ECHO_N@,$ECHO_N,;t t
26603s,@ECHO_T@,$ECHO_T,;t t
26604s,@LIBS@,$LIBS,;t t
26605s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26606s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26607s,@MAINT@,$MAINT,;t t
26608s,@CC@,$CC,;t t
26609s,@CFLAGS@,$CFLAGS,;t t
26610s,@LDFLAGS@,$LDFLAGS,;t t
26611s,@CPPFLAGS@,$CPPFLAGS,;t t
26612s,@ac_ct_CC@,$ac_ct_CC,;t t
26613s,@EXEEXT@,$EXEEXT,;t t
26614s,@OBJEXT@,$OBJEXT,;t t
26615s,@CPP@,$CPP,;t t
26616s,@EGREP@,$EGREP,;t t
783e057b
DJ
26617s,@RANLIB@,$RANLIB,;t t
26618s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
26619s,@build@,$build,;t t
26620s,@build_cpu@,$build_cpu,;t t
26621s,@build_vendor@,$build_vendor,;t t
26622s,@build_os@,$build_os,;t t
26623s,@host@,$host,;t t
26624s,@host_cpu@,$host_cpu,;t t
26625s,@host_vendor@,$host_vendor,;t t
26626s,@host_os@,$host_os,;t t
26627s,@target@,$target,;t t
26628s,@target_cpu@,$target_cpu,;t t
26629s,@target_vendor@,$target_vendor,;t t
26630s,@target_os@,$target_os,;t t
b4e70030 26631s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
26632s,@LIBINTL@,$LIBINTL,;t t
26633s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26634s,@INCINTL@,$INCINTL,;t t
b4e70030 26635s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
26636s,@GMSGFMT@,$GMSGFMT,;t t
26637s,@POSUB@,$POSUB,;t t
b4e70030 26638s,@CATALOGS@,$CATALOGS,;t t
b4e70030 26639s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 26640s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
26641s,@GENCAT@,$GENCAT,;t t
26642s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030 26643s,@localedir@,$localedir,;t t
783e057b
DJ
26644s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26645s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26646s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26647s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26648s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26649s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26650s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26651s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26652s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26653s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26654s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26655s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26656s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26657s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26658s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26659s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26660s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26661s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26662s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26663s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26664s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26665s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26666s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26667s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26668s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26669s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26670s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26671s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26672s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26673s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26674s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26675s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26676s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26677s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26678s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26679s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26680s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26681s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26682s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26683s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26684s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26685s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26686s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26687s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26688s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26689s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26690s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26691s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26692s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26693s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26694s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26695s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26696s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26697s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26698s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26699s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26700s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26701s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26702s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26703s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26704s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26705s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26706s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26707s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26708s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26709s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26710s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26711s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26712s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26713s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26714s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26715s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26716s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26717s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26718s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26719s,@STDINT_H@,$STDINT_H,;t t
26720s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26721s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26722s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26723s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26724s,@WCHAR_H@,$WCHAR_H,;t t
26725s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26726s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26727s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26728s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
d5af19ba 26729s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
b4e70030 26730s,@PACKAGE@,$PACKAGE,;t t
b4e70030
JB
26731s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26732s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26733s,@INSTALL_DATA@,$INSTALL_DATA,;t t
e28b3332
DJ
26734s,@CYGPATH_W@,$CYGPATH_W,;t t
26735s,@VERSION@,$VERSION,;t t
26736s,@ACLOCAL@,$ACLOCAL,;t t
26737s,@AUTOCONF@,$AUTOCONF,;t t
26738s,@AUTOMAKE@,$AUTOMAKE,;t t
26739s,@AUTOHEADER@,$AUTOHEADER,;t t
26740s,@MAKEINFO@,$MAKEINFO,;t t
26741s,@install_sh@,$install_sh,;t t
26742s,@STRIP@,$STRIP,;t t
26743s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26744s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26745s,@mkdir_p@,$mkdir_p,;t t
26746s,@AWK@,$AWK,;t t
26747s,@SET_MAKE@,$SET_MAKE,;t t
26748s,@am__leading_dot@,$am__leading_dot,;t t
26749s,@AMTAR@,$AMTAR,;t t
26750s,@am__tar@,$am__tar,;t t
26751s,@am__untar@,$am__untar,;t t
26752s,@DEPDIR@,$DEPDIR,;t t
26753s,@am__include@,$am__include,;t t
26754s,@am__quote@,$am__quote,;t t
26755s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26756s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26757s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26758s,@CCDEPMODE@,$CCDEPMODE,;t t
26759s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26760s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26761s,@subdirs@,$subdirs,;t t
26762s,@TARGET_OBS@,$TARGET_OBS,;t t
c16158bc
JM
26763s,@PKGVERSION@,$PKGVERSION,;t t
26764s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26765s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
b4e70030
JB
26766s,@LN_S@,$LN_S,;t t
26767s,@YACC@,$YACC,;t t
26768s,@AR@,$AR,;t t
26769s,@ac_ct_AR@,$ac_ct_AR,;t t
26770s,@DLLTOOL@,$DLLTOOL,;t t
26771s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26772s,@WINDRES@,$WINDRES,;t t
26773s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26774s,@MIG@,$MIG,;t t
26775s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
26776s,@READLINE@,$READLINE,;t t
26777s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26778s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
26779s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26780s,@LIBEXPAT@,$LIBEXPAT,;t t
26781s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 26782s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
26783s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26784s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26785s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26786s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26787s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26788s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26789s,@WIN32LIBS@,$WIN32LIBS,;t t
26790s,@LIBGUI@,$LIBGUI,;t t
26791s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26792s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26793s,@TCL_VERSION@,$TCL_VERSION,;t t
26794s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
26795s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
26796s,@TCL_CC@,$TCL_CC,;t t
26797s,@TCL_DEFS@,$TCL_DEFS,;t t
26798s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
26799s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
26800s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
26801s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
26802s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
26803s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
26804s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
26805s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
26806s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
26807s,@TCL_RANLIB@,$TCL_RANLIB,;t t
26808s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
26809s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26810s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
26811s,@TK_VERSION@,$TK_VERSION,;t t
26812s,@TK_DEFS@,$TK_DEFS,;t t
26813s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
26814s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26815s,@TK_XLIBSW@,$TK_XLIBSW,;t t
26816s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
26817s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26818s,@TCLHDIR@,$TCLHDIR,;t t
26819s,@TKHDIR@,$TKHDIR,;t t
26820s,@ITCLHDIR@,$ITCLHDIR,;t t
26821s,@ITKHDIR@,$ITKHDIR,;t t
26822s,@ITCL_VERSION@,$ITCL_VERSION,;t t
26823s,@ITCL_DEFS@,$ITCL_DEFS,;t t
26824s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
26825s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
26826s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
26827s,@ITK_VERSION@,$ITK_VERSION,;t t
26828s,@ITK_DEFS@,$ITK_DEFS,;t t
26829s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
26830s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
26831s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
26832s,@X_CFLAGS@,$X_CFLAGS,;t t
26833s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26834s,@X_LIBS@,$X_LIBS,;t t
26835s,@TCL_DEPS@,$TCL_DEPS,;t t
26836s,@TK_DEPS@,$TK_DEPS,;t t
26837s,@ITCLLIB@,$ITCLLIB,;t t
26838s,@ITCL_DEPS@,$ITCL_DEPS,;t t
26839s,@ITKLIB@,$ITKLIB,;t t
26840s,@ITK_DEPS@,$ITK_DEPS,;t t
26841s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26842s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26843s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
26844s,@SIM@,$SIM,;t t
26845s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
26846s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26847s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26848s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26849s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26850s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26851s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26852s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26853s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26854s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26855s,@target_subdir@,$target_subdir,;t t
26856s,@frags@,$frags,;t t
b4e70030
JB
26857s,@nm_h@,$nm_h,;t t
26858s,@LIBICONV@,$LIBICONV,;t t
26859s,@LIBOBJS@,$LIBOBJS,;t t
26860s,@LTLIBOBJS@,$LTLIBOBJS,;t t
783e057b
DJ
26861s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26862s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26863s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26864s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
b4e70030
JB
26865/@host_makefile_frag@/r $host_makefile_frag
26866s,@host_makefile_frag@,,;t t
b4e70030
JB
26867CEOF
26868
26869_ACEOF
26870
26871 cat >>$CONFIG_STATUS <<\_ACEOF
26872 # Split the substitutions into bite-sized pieces for seds with
26873 # small command number limits, like on Digital OSF/1 and HP-UX.
26874 ac_max_sed_lines=48
26875 ac_sed_frag=1 # Number of current file.
26876 ac_beg=1 # First line for current file.
26877 ac_end=$ac_max_sed_lines # Line after last line for current file.
26878 ac_more_lines=:
26879 ac_sed_cmds=
26880 while $ac_more_lines; do
26881 if test $ac_beg -gt 1; then
26882 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26883 else
26884 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 26885 fi
b4e70030
JB
26886 if test ! -s $tmp/subs.frag; then
26887 ac_more_lines=false
26888 else
26889 # The purpose of the label and of the branching condition is to
26890 # speed up the sed processing (if there are no `@' at all, there
26891 # is no need to browse any of the substitutions).
26892 # These are the two extra sed commands mentioned above.
26893 (echo ':t
26894 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26895 if test -z "$ac_sed_cmds"; then
26896 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26897 else
26898 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26899 fi
26900 ac_sed_frag=`expr $ac_sed_frag + 1`
26901 ac_beg=$ac_end
26902 ac_end=`expr $ac_end + $ac_max_sed_lines`
26903 fi
26904 done
26905 if test -z "$ac_sed_cmds"; then
26906 ac_sed_cmds=cat
26907 fi
26908fi # test -n "$CONFIG_FILES"
4e8d927d 26909
b4e70030
JB
26910_ACEOF
26911cat >>$CONFIG_STATUS <<\_ACEOF
26912for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26914 case $ac_file in
26915 - | *:- | *:-:* ) # input from stdin
26916 cat >$tmp/stdin
26917 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26919 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26920 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26921 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
26922 esac
26923
b4e70030
JB
26924 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26925 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
26926$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26927 X"$ac_file" : 'X\(//\)[^/]' \| \
26928 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
26929 X"$ac_file" : 'X\(/\)' \| \
26930 . : '\(.\)' 2>/dev/null ||
bec39cab 26931echo X"$ac_file" |
b4e70030
JB
26932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26934 /^X\(\/\/\)$/{ s//\1/; q; }
26935 /^X\(\/\).*/{ s//\1/; q; }
26936 s/.*/./; q'`
26937 { if $as_mkdir_p; then
26938 mkdir -p "$ac_dir"
26939 else
26940 as_dir="$ac_dir"
bec39cab 26941 as_dirs=
b4e70030
JB
26942 while test ! -d "$as_dir"; do
26943 as_dirs="$as_dir $as_dirs"
26944 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
26945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26946 X"$as_dir" : 'X\(//\)[^/]' \| \
26947 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
26948 X"$as_dir" : 'X\(/\)' \| \
26949 . : '\(.\)' 2>/dev/null ||
bec39cab 26950echo X"$as_dir" |
b4e70030
JB
26951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26953 /^X\(\/\/\)$/{ s//\1/; q; }
26954 /^X\(\/\).*/{ s//\1/; q; }
26955 s/.*/./; q'`
bec39cab 26956 done
b4e70030
JB
26957 test ! -n "$as_dirs" || mkdir $as_dirs
26958 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26959echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 26960 { (exit 1); exit 1; }; }; }
b4e70030 26961
bec39cab
AC
26962 ac_builddir=.
26963
b4e70030 26964if test "$ac_dir" != .; then
bec39cab 26965 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
26966 # A "../" for each directory in $ac_dir_suffix.
26967 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26968else
26969 ac_dir_suffix= ac_top_builddir=
26970fi
bec39cab
AC
26971
26972case $srcdir in
b4e70030 26973 .) # No --srcdir option. We are building in place.
bec39cab 26974 ac_srcdir=.
b4e70030
JB
26975 if test -z "$ac_top_builddir"; then
26976 ac_top_srcdir=.
26977 else
26978 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26979 fi ;;
26980 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 26981 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
26982 ac_top_srcdir=$srcdir ;;
26983 *) # Relative path.
26984 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26985 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
26986esac
26987
b4e70030
JB
26988# Do not use `cd foo && pwd` to compute absolute paths, because
26989# the directories may not exist.
26990case `pwd` in
26991.) ac_abs_builddir="$ac_dir";;
26992*)
26993 case "$ac_dir" in
26994 .) ac_abs_builddir=`pwd`;;
26995 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26996 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26997 esac;;
26998esac
26999case $ac_abs_builddir in
27000.) ac_abs_top_builddir=${ac_top_builddir}.;;
27001*)
27002 case ${ac_top_builddir}. in
27003 .) ac_abs_top_builddir=$ac_abs_builddir;;
27004 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27005 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27006 esac;;
27007esac
27008case $ac_abs_builddir in
27009.) ac_abs_srcdir=$ac_srcdir;;
27010*)
27011 case $ac_srcdir in
27012 .) ac_abs_srcdir=$ac_abs_builddir;;
27013 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27014 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27015 esac;;
27016esac
27017case $ac_abs_builddir in
27018.) ac_abs_top_srcdir=$ac_top_srcdir;;
27019*)
27020 case $ac_top_srcdir in
27021 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27022 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27023 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27024 esac;;
27025esac
c906108c 27026
c906108c 27027
bec39cab
AC
27028 case $INSTALL in
27029 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 27030 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 27031 esac
121ce6e5 27032
b4e70030
JB
27033 if test x"$ac_file" != x-; then
27034 { echo "$as_me:$LINENO: creating $ac_file" >&5
27035echo "$as_me: creating $ac_file" >&6;}
27036 rm -f "$ac_file"
27037 fi
27038 # Let's still pretend it is `configure' which instantiates (i.e., don't
27039 # use $as_me), people would be surprised to read:
27040 # /* config.h. Generated by config.status. */
27041 if test x"$ac_file" = x-; then
27042 configure_input=
27043 else
27044 configure_input="$ac_file. "
27045 fi
27046 configure_input=$configure_input"Generated from `echo $ac_file_in |
27047 sed 's,.*/,,'` by configure."
27048
27049 # First look for the input files in the build tree, otherwise in the
27050 # src tree.
27051 ac_file_inputs=`IFS=:
27052 for f in $ac_file_in; do
27053 case $f in
27054 -) echo $tmp/stdin ;;
27055 [\\/$]*)
27056 # Absolute (can't be DOS-style, as IFS=:)
27057 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27058echo "$as_me: error: cannot find input file: $f" >&2;}
27059 { (exit 1); exit 1; }; }
27060 echo "$f";;
27061 *) # Relative
27062 if test -f "$f"; then
27063 # Build tree
27064 echo "$f"
27065 elif test -f "$srcdir/$f"; then
27066 # Source tree
27067 echo "$srcdir/$f"
27068 else
27069 # /dev/null tree
27070 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27071echo "$as_me: error: cannot find input file: $f" >&2;}
27072 { (exit 1); exit 1; }; }
27073 fi;;
27074 esac
27075 done` || { (exit 1); exit 1; }
4e8d927d 27076_ACEOF
bec39cab
AC
27077cat >>$CONFIG_STATUS <<_ACEOF
27078 sed "$ac_vpsub
27079$extrasub
27080_ACEOF
27081cat >>$CONFIG_STATUS <<\_ACEOF
27082:t
27083/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
27084s,@configure_input@,$configure_input,;t t
27085s,@srcdir@,$ac_srcdir,;t t
27086s,@abs_srcdir@,$ac_abs_srcdir,;t t
27087s,@top_srcdir@,$ac_top_srcdir,;t t
27088s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27089s,@builddir@,$ac_builddir,;t t
27090s,@abs_builddir@,$ac_abs_builddir,;t t
27091s,@top_builddir@,$ac_top_builddir,;t t
27092s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27093s,@INSTALL@,$ac_INSTALL,;t t
27094" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27095 rm -f $tmp/stdin
27096 if test x"$ac_file" != x-; then
27097 mv $tmp/out $ac_file
27098 else
27099 cat $tmp/out
27100 rm -f $tmp/out
27101 fi
27102
27103done
27104_ACEOF
27105cat >>$CONFIG_STATUS <<\_ACEOF
27106
27107#
27108# CONFIG_HEADER section.
27109#
27110
27111# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27112# NAME is the cpp macro being defined and VALUE is the value it is being given.
27113#
27114# ac_d sets the value in "#define NAME VALUE" lines.
27115ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27116ac_dB='[ ].*$,\1#\2'
27117ac_dC=' '
27118ac_dD=',;t'
27119# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27120ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27121ac_uB='$,\1#\2define\3'
27122ac_uC=' '
27123ac_uD=',;t'
27124
27125for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 27127 case $ac_file in
b4e70030
JB
27128 - | *:- | *:-:* ) # input from stdin
27129 cat >$tmp/stdin
27130 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27132 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27133 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27134 * ) ac_file_in=$ac_file.in ;;
c906108c 27135 esac
b4e70030
JB
27136
27137 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27138echo "$as_me: creating $ac_file" >&6;}
27139
27140 # First look for the input files in the build tree, otherwise in the
27141 # src tree.
27142 ac_file_inputs=`IFS=:
27143 for f in $ac_file_in; do
27144 case $f in
27145 -) echo $tmp/stdin ;;
27146 [\\/$]*)
27147 # Absolute (can't be DOS-style, as IFS=:)
27148 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27149echo "$as_me: error: cannot find input file: $f" >&2;}
27150 { (exit 1); exit 1; }; }
27151 # Do quote $f, to prevent DOS paths from being IFS'd.
27152 echo "$f";;
27153 *) # Relative
27154 if test -f "$f"; then
27155 # Build tree
27156 echo "$f"
27157 elif test -f "$srcdir/$f"; then
27158 # Source tree
27159 echo "$srcdir/$f"
27160 else
27161 # /dev/null tree
27162 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27163echo "$as_me: error: cannot find input file: $f" >&2;}
27164 { (exit 1); exit 1; }; }
27165 fi;;
27166 esac
27167 done` || { (exit 1); exit 1; }
27168 # Remove the trailing spaces.
27169 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27170
27171_ACEOF
27172
27173# Transform confdefs.h into two sed scripts, `conftest.defines' and
27174# `conftest.undefs', that substitutes the proper values into
27175# config.h.in to produce config.h. The first handles `#define'
27176# templates, and the second `#undef' templates.
27177# And first: Protect against being on the right side of a sed subst in
27178# config.status. Protect against being in an unquoted here document
27179# in config.status.
27180rm -f conftest.defines conftest.undefs
27181# Using a here document instead of a string reduces the quoting nightmare.
27182# Putting comments in sed scripts is not portable.
27183#
27184# `end' is used to avoid that the second main sed command (meant for
27185# 0-ary CPP macros) applies to n-ary macro definitions.
27186# See the Autoconf documentation for `clear'.
27187cat >confdef2sed.sed <<\_ACEOF
27188s/[\\&,]/\\&/g
27189s,[\\$`],\\&,g
27190t clear
27191: clear
27192s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27193t end
27194s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27195: end
27196_ACEOF
27197# If some macros were called several times there might be several times
27198# the same #defines, which is useless. Nevertheless, we may not want to
27199# sort them, since we want the *last* AC-DEFINE to be honored.
27200uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27201sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27202rm -f confdef2sed.sed
27203
27204# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
27205# example, in the case of _POSIX_SOURCE, which is predefined and required
27206# on some systems where configure will not decide to define it.
b4e70030
JB
27207cat >>conftest.undefs <<\_ACEOF
27208s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27209_ACEOF
27210
27211# Break up conftest.defines because some shells have a limit on the size
27212# of here documents, and old seds have small limits too (100 cmds).
27213echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27214echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27215echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27216echo ' :' >>$CONFIG_STATUS
27217rm -f conftest.tail
27218while grep . conftest.defines >/dev/null
bec39cab 27219do
b4e70030
JB
27220 # Write a limited-size here document to $tmp/defines.sed.
27221 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27222 # Speed up: don't consider the non `#define' lines.
27223 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27224 # Work around the forget-to-reset-the-flag bug.
27225 echo 't clr' >>$CONFIG_STATUS
27226 echo ': clr' >>$CONFIG_STATUS
27227 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 27228 echo 'CEOF
b4e70030
JB
27229 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27230 rm -f $tmp/in
27231 mv $tmp/out $tmp/in
27232' >>$CONFIG_STATUS
27233 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
27234 rm -f conftest.defines
27235 mv conftest.tail conftest.defines
27236done
b4e70030
JB
27237rm -f conftest.defines
27238echo ' fi # grep' >>$CONFIG_STATUS
27239echo >>$CONFIG_STATUS
27240
27241# Break up conftest.undefs because some shells have a limit on the size
27242# of here documents, and old seds have small limits too (100 cmds).
27243echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27244rm -f conftest.tail
27245while grep . conftest.undefs >/dev/null
27246do
27247 # Write a limited-size here document to $tmp/undefs.sed.
27248 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27249 # Speed up: don't consider the non `#undef'
27250 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27251 # Work around the forget-to-reset-the-flag bug.
27252 echo 't clr' >>$CONFIG_STATUS
27253 echo ': clr' >>$CONFIG_STATUS
27254 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27255 echo 'CEOF
27256 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27257 rm -f $tmp/in
27258 mv $tmp/out $tmp/in
27259' >>$CONFIG_STATUS
27260 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27261 rm -f conftest.undefs
27262 mv conftest.tail conftest.undefs
27263done
27264rm -f conftest.undefs
bec39cab
AC
27265
27266cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
27267 # Let's still pretend it is `configure' which instantiates (i.e., don't
27268 # use $as_me), people would be surprised to read:
27269 # /* config.h. Generated by config.status. */
27270 if test x"$ac_file" = x-; then
27271 echo "/* Generated by configure. */" >$tmp/config.h
27272 else
27273 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27274 fi
27275 cat $tmp/in >>$tmp/config.h
27276 rm -f $tmp/in
bec39cab 27277 if test x"$ac_file" != x-; then
b4e70030 27278 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
27279 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27280echo "$as_me: $ac_file is unchanged" >&6;}
27281 else
b4e70030
JB
27282 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27283$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27284 X"$ac_file" : 'X\(//\)[^/]' \| \
27285 X"$ac_file" : 'X\(//\)$' \| \
27286 X"$ac_file" : 'X\(/\)' \| \
27287 . : '\(.\)' 2>/dev/null ||
27288echo X"$ac_file" |
27289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27291 /^X\(\/\/\)$/{ s//\1/; q; }
27292 /^X\(\/\).*/{ s//\1/; q; }
27293 s/.*/./; q'`
27294 { if $as_mkdir_p; then
27295 mkdir -p "$ac_dir"
27296 else
27297 as_dir="$ac_dir"
27298 as_dirs=
27299 while test ! -d "$as_dir"; do
27300 as_dirs="$as_dir $as_dirs"
27301 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27303 X"$as_dir" : 'X\(//\)[^/]' \| \
27304 X"$as_dir" : 'X\(//\)$' \| \
27305 X"$as_dir" : 'X\(/\)' \| \
27306 . : '\(.\)' 2>/dev/null ||
27307echo X"$as_dir" |
27308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27310 /^X\(\/\/\)$/{ s//\1/; q; }
27311 /^X\(\/\).*/{ s//\1/; q; }
27312 s/.*/./; q'`
27313 done
27314 test ! -n "$as_dirs" || mkdir $as_dirs
27315 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27316echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27317 { (exit 1); exit 1; }; }; }
27318
bec39cab 27319 rm -f $ac_file
b4e70030 27320 mv $tmp/config.h $ac_file
bec39cab
AC
27321 fi
27322 else
b4e70030
JB
27323 cat $tmp/config.h
27324 rm -f $tmp/config.h
bec39cab 27325 fi
e28b3332
DJ
27326# Compute $ac_file's index in $config_headers.
27327_am_stamp_count=1
27328for _am_header in $config_headers :; do
27329 case $_am_header in
27330 $ac_file | $ac_file:* )
27331 break ;;
27332 * )
27333 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27334 esac
27335done
27336echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27337$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27338 X$ac_file : 'X\(//\)[^/]' \| \
27339 X$ac_file : 'X\(//\)$' \| \
27340 X$ac_file : 'X\(/\)' \| \
27341 . : '\(.\)' 2>/dev/null ||
27342echo X$ac_file |
27343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27345 /^X\(\/\/\)$/{ s//\1/; q; }
27346 /^X\(\/\).*/{ s//\1/; q; }
27347 s/.*/./; q'`/stamp-h$_am_stamp_count
b4e70030
JB
27348done
27349_ACEOF
27350cat >>$CONFIG_STATUS <<\_ACEOF
27351
27352#
27353# CONFIG_LINKS section.
27354#
27355
27356for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27357 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27358 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 27359
b4e70030
JB
27360 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27361echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
27362
27363 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
27364 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27365echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27366 { (exit 1); exit 1; }; }
c906108c 27367 fi
b4e70030
JB
27368 rm -f $ac_dest
27369
27370 # Make relative symlinks.
27371 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27372$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27373 X"$ac_dest" : 'X\(//\)[^/]' \| \
27374 X"$ac_dest" : 'X\(//\)$' \| \
27375 X"$ac_dest" : 'X\(/\)' \| \
27376 . : '\(.\)' 2>/dev/null ||
27377echo X"$ac_dest" |
27378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27380 /^X\(\/\/\)$/{ s//\1/; q; }
27381 /^X\(\/\).*/{ s//\1/; q; }
27382 s/.*/./; q'`
27383 { if $as_mkdir_p; then
27384 mkdir -p "$ac_dest_dir"
27385 else
27386 as_dir="$ac_dest_dir"
27387 as_dirs=
27388 while test ! -d "$as_dir"; do
27389 as_dirs="$as_dir $as_dirs"
27390 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27392 X"$as_dir" : 'X\(//\)[^/]' \| \
27393 X"$as_dir" : 'X\(//\)$' \| \
27394 X"$as_dir" : 'X\(/\)' \| \
27395 . : '\(.\)' 2>/dev/null ||
27396echo X"$as_dir" |
27397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27399 /^X\(\/\/\)$/{ s//\1/; q; }
27400 /^X\(\/\).*/{ s//\1/; q; }
27401 s/.*/./; q'`
27402 done
27403 test ! -n "$as_dirs" || mkdir $as_dirs
27404 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27405echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27406 { (exit 1); exit 1; }; }; }
27407
27408 ac_builddir=.
27409
27410if test "$ac_dest_dir" != .; then
27411 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27412 # A "../" for each directory in $ac_dir_suffix.
27413 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27414else
27415 ac_dir_suffix= ac_top_builddir=
27416fi
27417
27418case $srcdir in
27419 .) # No --srcdir option. We are building in place.
27420 ac_srcdir=.
27421 if test -z "$ac_top_builddir"; then
27422 ac_top_srcdir=.
27423 else
27424 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27425 fi ;;
27426 [\\/]* | ?:[\\/]* ) # Absolute path.
27427 ac_srcdir=$srcdir$ac_dir_suffix;
27428 ac_top_srcdir=$srcdir ;;
27429 *) # Relative path.
27430 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27431 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27432esac
27433
27434# Do not use `cd foo && pwd` to compute absolute paths, because
27435# the directories may not exist.
27436case `pwd` in
27437.) ac_abs_builddir="$ac_dest_dir";;
27438*)
27439 case "$ac_dest_dir" in
27440 .) ac_abs_builddir=`pwd`;;
27441 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27442 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27443 esac;;
27444esac
27445case $ac_abs_builddir in
27446.) ac_abs_top_builddir=${ac_top_builddir}.;;
27447*)
27448 case ${ac_top_builddir}. in
27449 .) ac_abs_top_builddir=$ac_abs_builddir;;
27450 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27451 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27452 esac;;
27453esac
27454case $ac_abs_builddir in
27455.) ac_abs_srcdir=$ac_srcdir;;
27456*)
27457 case $ac_srcdir in
27458 .) ac_abs_srcdir=$ac_abs_builddir;;
27459 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27460 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27461 esac;;
27462esac
27463case $ac_abs_builddir in
27464.) ac_abs_top_srcdir=$ac_top_srcdir;;
27465*)
27466 case $ac_top_srcdir in
27467 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27468 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27469 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27470 esac;;
27471esac
27472
bec39cab
AC
27473
27474 case $srcdir in
27475 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 27476 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 27477 esac
b4e70030
JB
27478
27479 # Try a symlink, then a hard link, then a copy.
27480 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27481 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27482 cp -p $srcdir/$ac_source $ac_dest ||
27483 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27484echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 27485 { (exit 1); exit 1; }; }
b4e70030
JB
27486done
27487_ACEOF
27488cat >>$CONFIG_STATUS <<\_ACEOF
27489
27490#
27491# CONFIG_COMMANDS section.
27492#
27493for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27494 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27495 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27496 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27497$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27498 X"$ac_dest" : 'X\(//\)[^/]' \| \
27499 X"$ac_dest" : 'X\(//\)$' \| \
27500 X"$ac_dest" : 'X\(/\)' \| \
27501 . : '\(.\)' 2>/dev/null ||
27502echo X"$ac_dest" |
27503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27505 /^X\(\/\/\)$/{ s//\1/; q; }
27506 /^X\(\/\).*/{ s//\1/; q; }
27507 s/.*/./; q'`
27508 { if $as_mkdir_p; then
27509 mkdir -p "$ac_dir"
27510 else
27511 as_dir="$ac_dir"
27512 as_dirs=
27513 while test ! -d "$as_dir"; do
27514 as_dirs="$as_dir $as_dirs"
27515 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27516$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27517 X"$as_dir" : 'X\(//\)[^/]' \| \
27518 X"$as_dir" : 'X\(//\)$' \| \
27519 X"$as_dir" : 'X\(/\)' \| \
27520 . : '\(.\)' 2>/dev/null ||
27521echo X"$as_dir" |
27522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27524 /^X\(\/\/\)$/{ s//\1/; q; }
27525 /^X\(\/\).*/{ s//\1/; q; }
27526 s/.*/./; q'`
27527 done
27528 test ! -n "$as_dirs" || mkdir $as_dirs
27529 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27530echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27531 { (exit 1); exit 1; }; }; }
27532
27533 ac_builddir=.
27534
27535if test "$ac_dir" != .; then
27536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27537 # A "../" for each directory in $ac_dir_suffix.
27538 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27539else
27540 ac_dir_suffix= ac_top_builddir=
27541fi
27542
27543case $srcdir in
27544 .) # No --srcdir option. We are building in place.
27545 ac_srcdir=.
27546 if test -z "$ac_top_builddir"; then
27547 ac_top_srcdir=.
27548 else
27549 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27550 fi ;;
27551 [\\/]* | ?:[\\/]* ) # Absolute path.
27552 ac_srcdir=$srcdir$ac_dir_suffix;
27553 ac_top_srcdir=$srcdir ;;
27554 *) # Relative path.
27555 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27556 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27557esac
27558
27559# Do not use `cd foo && pwd` to compute absolute paths, because
27560# the directories may not exist.
27561case `pwd` in
27562.) ac_abs_builddir="$ac_dir";;
27563*)
27564 case "$ac_dir" in
27565 .) ac_abs_builddir=`pwd`;;
27566 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27567 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27568 esac;;
27569esac
27570case $ac_abs_builddir in
27571.) ac_abs_top_builddir=${ac_top_builddir}.;;
27572*)
27573 case ${ac_top_builddir}. in
27574 .) ac_abs_top_builddir=$ac_abs_builddir;;
27575 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27576 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27577 esac;;
27578esac
27579case $ac_abs_builddir in
27580.) ac_abs_srcdir=$ac_srcdir;;
27581*)
27582 case $ac_srcdir in
27583 .) ac_abs_srcdir=$ac_abs_builddir;;
27584 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27585 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27586 esac;;
27587esac
27588case $ac_abs_builddir in
27589.) ac_abs_top_srcdir=$ac_top_srcdir;;
27590*)
27591 case $ac_top_srcdir in
27592 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27593 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27594 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27595 esac;;
27596esac
bec39cab 27597
bec39cab 27598
b4e70030
JB
27599 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27600echo "$as_me: executing $ac_dest commands" >&6;}
27601 case $ac_dest in
e28b3332
DJ
27602 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27603 # Strip MF so we end up with the name of the file.
27604 mf=`echo "$mf" | sed -e 's/:.*$//'`
27605 # Check whether this is an Automake generated Makefile or not.
27606 # We used to match only the files named `Makefile.in', but
27607 # some people rename them; so instead we look at the file content.
27608 # Grep'ing the first line is not enough: some people post-process
27609 # each Makefile.in and add a new line on top of each file to say so.
27610 # So let's grep whole file.
27611 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27612 dirpart=`(dirname "$mf") 2>/dev/null ||
27613$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27614 X"$mf" : 'X\(//\)[^/]' \| \
27615 X"$mf" : 'X\(//\)$' \| \
27616 X"$mf" : 'X\(/\)' \| \
27617 . : '\(.\)' 2>/dev/null ||
27618echo X"$mf" |
27619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27621 /^X\(\/\/\)$/{ s//\1/; q; }
27622 /^X\(\/\).*/{ s//\1/; q; }
27623 s/.*/./; q'`
27624 else
27625 continue
27626 fi
27627 # Extract the definition of DEPDIR, am__include, and am__quote
27628 # from the Makefile without running `make'.
27629 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27630 test -z "$DEPDIR" && continue
27631 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27632 test -z "am__include" && continue
27633 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27634 # When using ansi2knr, U may be empty or an underscore; expand it
27635 U=`sed -n 's/^U = //p' < "$mf"`
27636 # Find all dependency output files, they are included files with
27637 # $(DEPDIR) in their names. We invoke sed twice because it is the
27638 # simplest approach to changing $(DEPDIR) to its actual value in the
27639 # expansion.
27640 for file in `sed -n "
27641 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27642 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27643 # Make sure the directory exists.
27644 test -f "$dirpart/$file" && continue
27645 fdir=`(dirname "$file") 2>/dev/null ||
27646$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27647 X"$file" : 'X\(//\)[^/]' \| \
27648 X"$file" : 'X\(//\)$' \| \
27649 X"$file" : 'X\(/\)' \| \
27650 . : '\(.\)' 2>/dev/null ||
27651echo X"$file" |
27652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27654 /^X\(\/\/\)$/{ s//\1/; q; }
27655 /^X\(\/\).*/{ s//\1/; q; }
27656 s/.*/./; q'`
27657 { if $as_mkdir_p; then
27658 mkdir -p $dirpart/$fdir
27659 else
27660 as_dir=$dirpart/$fdir
27661 as_dirs=
27662 while test ! -d "$as_dir"; do
27663 as_dirs="$as_dir $as_dirs"
27664 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27665$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27666 X"$as_dir" : 'X\(//\)[^/]' \| \
27667 X"$as_dir" : 'X\(//\)$' \| \
27668 X"$as_dir" : 'X\(/\)' \| \
27669 . : '\(.\)' 2>/dev/null ||
27670echo X"$as_dir" |
27671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27673 /^X\(\/\/\)$/{ s//\1/; q; }
27674 /^X\(\/\).*/{ s//\1/; q; }
27675 s/.*/./; q'`
27676 done
27677 test ! -n "$as_dirs" || mkdir $as_dirs
27678 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27679echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27680 { (exit 1); exit 1; }; }; }
27681
27682 # echo "creating $dirpart/$file"
27683 echo '# dummy' > "$dirpart/$file"
27684 done
27685done
4e8d927d 27686 ;;
b4e70030 27687 default )
c906108c 27688
db985757 27689sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
27690mv -f Makefile.tmp Makefile
27691
2acceee2 27692
c906108c
SS
27693case x$CONFIG_HEADERS in
27694xconfig.h:config.in)
27695echo > stamp-h ;;
27696esac
bec39cab
AC
27697 ;;
27698 esac
b4e70030
JB
27699done
27700_ACEOF
c906108c 27701
b4e70030 27702cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
27703
27704{ (exit 0); exit 0; }
27705_ACEOF
c906108c 27706chmod +x $CONFIG_STATUS
bec39cab
AC
27707ac_clean_files=$ac_clean_files_save
27708
27709
27710# configure is writing to config.log, and then calls config.status.
27711# config.status does its own redirection, appending to config.log.
27712# Unfortunately, on DOS this fails, as config.log is still kept open
27713# by configure, so config.status won't be able to write to it; its
27714# output is simply discarded. So we exec the FD to /dev/null,
27715# effectively closing config.log, so it can be properly (re)opened and
27716# appended to by config.status. When coming back to configure, we
27717# need to make the FD available again.
27718if test "$no_create" != yes; then
27719 ac_cs_success=:
27720 ac_config_status_args=
27721 test "$silent" = yes &&
27722 ac_config_status_args="$ac_config_status_args --quiet"
27723 exec 5>/dev/null
27724 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27725 exec 5>>config.log
27726 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27727 # would make configure fail if this is the last instruction.
27728 $ac_cs_success || { (exit 1); exit 1; }
27729fi
c906108c 27730
bec39cab 27731#
fdc59709 27732# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
bec39cab 27733#
c906108c
SS
27734if test "$no_recursion" != yes; then
27735
27736 # Remove --cache-file and --srcdir arguments so they do not pile up.
27737 ac_sub_configure_args=
27738 ac_prev=
fdc59709
PB
27739 eval "set x $ac_configure_args"
27740 shift
27741 for ac_arg
27742 do
c906108c
SS
27743 if test -n "$ac_prev"; then
27744 ac_prev=
27745 continue
27746 fi
bec39cab 27747 case $ac_arg in
c906108c
SS
27748 -cache-file | --cache-file | --cache-fil | --cache-fi \
27749 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27750 ac_prev=cache_file ;;
27751 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
27752 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27753 | --c=*)
27754 ;;
27755 --config-cache | -C)
c906108c
SS
27756 ;;
27757 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27758 ac_prev=srcdir ;;
27759 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27760 ;;
bec39cab
AC
27761 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27762 ac_prev=prefix ;;
27763 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27764 ;;
fdc59709
PB
27765 *)
27766 case $ac_arg in
27767 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27768 esac
27769 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
c906108c
SS
27770 esac
27771 done
27772
bec39cab
AC
27773 # Always prepend --prefix to ensure using the same prefix
27774 # in subdir configurations.
fdc59709
PB
27775 ac_arg="--prefix=$prefix"
27776 case $ac_arg in
27777 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27778 esac
27779 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
bec39cab 27780
b4e70030 27781 ac_popdir=`pwd`
bec39cab 27782 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
27783
27784 # Do not complain, so a configure script can configure whichever
27785 # parts of a large source tree are present.
fdc59709 27786 test -d "$srcdir/$ac_dir" || continue
c906108c 27787
b4e70030
JB
27788 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27789echo "$as_me: configuring in $ac_dir" >&6;}
27790 { if $as_mkdir_p; then
27791 mkdir -p "$ac_dir"
27792 else
27793 as_dir="$ac_dir"
bec39cab 27794 as_dirs=
b4e70030
JB
27795 while test ! -d "$as_dir"; do
27796 as_dirs="$as_dir $as_dirs"
27797 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
27798$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27799 X"$as_dir" : 'X\(//\)[^/]' \| \
27800 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
27801 X"$as_dir" : 'X\(/\)' \| \
27802 . : '\(.\)' 2>/dev/null ||
bec39cab 27803echo X"$as_dir" |
b4e70030
JB
27804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27806 /^X\(\/\/\)$/{ s//\1/; q; }
27807 /^X\(\/\).*/{ s//\1/; q; }
27808 s/.*/./; q'`
bec39cab 27809 done
b4e70030
JB
27810 test ! -n "$as_dirs" || mkdir $as_dirs
27811 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27812echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 27813 { (exit 1); exit 1; }; }; }
b4e70030 27814
bec39cab
AC
27815 ac_builddir=.
27816
b4e70030 27817if test "$ac_dir" != .; then
bec39cab 27818 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
27819 # A "../" for each directory in $ac_dir_suffix.
27820 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27821else
27822 ac_dir_suffix= ac_top_builddir=
27823fi
bec39cab
AC
27824
27825case $srcdir in
b4e70030 27826 .) # No --srcdir option. We are building in place.
bec39cab 27827 ac_srcdir=.
b4e70030
JB
27828 if test -z "$ac_top_builddir"; then
27829 ac_top_srcdir=.
27830 else
27831 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27832 fi ;;
27833 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 27834 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
27835 ac_top_srcdir=$srcdir ;;
27836 *) # Relative path.
27837 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27838 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27839esac
27840
27841# Do not use `cd foo && pwd` to compute absolute paths, because
27842# the directories may not exist.
27843case `pwd` in
27844.) ac_abs_builddir="$ac_dir";;
27845*)
27846 case "$ac_dir" in
27847 .) ac_abs_builddir=`pwd`;;
27848 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27849 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27850 esac;;
27851esac
27852case $ac_abs_builddir in
27853.) ac_abs_top_builddir=${ac_top_builddir}.;;
27854*)
27855 case ${ac_top_builddir}. in
27856 .) ac_abs_top_builddir=$ac_abs_builddir;;
27857 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27858 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27859 esac;;
27860esac
27861case $ac_abs_builddir in
27862.) ac_abs_srcdir=$ac_srcdir;;
27863*)
27864 case $ac_srcdir in
27865 .) ac_abs_srcdir=$ac_abs_builddir;;
27866 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27867 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27868 esac;;
27869esac
27870case $ac_abs_builddir in
27871.) ac_abs_top_srcdir=$ac_top_srcdir;;
27872*)
27873 case $ac_top_srcdir in
27874 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27875 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27876 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27877 esac;;
bec39cab 27878esac
c906108c 27879
c906108c 27880
fdc59709 27881 cd "$ac_dir"
c906108c
SS
27882
27883 # Check for guested configure; otherwise get Cygnus style configure.
fdc59709
PB
27884 if test -f "$ac_srcdir/configure.gnu"; then
27885 ac_sub_configure=$ac_srcdir/configure.gnu
27886 elif test -f "$ac_srcdir/configure"; then
27887 ac_sub_configure=$ac_srcdir/configure
27888 elif test -f "$ac_srcdir/configure.in"; then
27889 # This should be Cygnus configure.
27890 ac_sub_configure=$ac_aux_dir/configure
c906108c 27891 else
bec39cab
AC
27892 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27893echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
27894 ac_sub_configure=
27895 fi
27896
27897 # The recursion is here.
27898 if test -n "$ac_sub_configure"; then
c906108c 27899 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
27900 case $cache_file in
27901 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
27902 *) # Relative path.
27903 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 27904 esac
c906108c 27905
fdc59709
PB
27906 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27907echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 27908 # The eval makes quoting arguments work.
fdc59709
PB
27909 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27910 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
bec39cab
AC
27911 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27912echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27913 { (exit 1); exit 1; }; }
c906108c
SS
27914 fi
27915
fdc59709 27916 cd "$ac_popdir"
c906108c
SS
27917 done
27918fi
27919
27920
27921exit 0
This page took 4.272425 seconds and 4 git commands to generate.