* ser-tcp.c: Tewak comment.
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
bec39cab 3# Generated by GNU Autoconf 2.59.
c906108c 4#
bec39cab 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
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.
33$as_unset ENV MAIL MAILPATH
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
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
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
85
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
97fi
98
99
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
116
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 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
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
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
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.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
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
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
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
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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
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
225as_executable_p="test -f"
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
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
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
249exec 6>&1
250
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
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
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>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subdirs_all="$ac_subdirs_all doc testsuite"
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
065a1afc
JB
316ac_subdirs_all="$ac_subdirs_all rdi-share"
317ac_subdirs_all="$ac_subdirs_all nlm"
c21a4eee 318ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
bec39cab 319ac_subst_files='host_makefile_frag target_makefile_frag'
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'
349datadir='${prefix}/share'
350sysconfdir='${prefix}/etc'
351sharedstatedir='${prefix}/com'
352localstatedir='${prefix}/var'
353libdir='${exec_prefix}/lib'
354includedir='${prefix}/include'
355oldincludedir='/usr/include'
356infodir='${prefix}/info'
357mandir='${prefix}/man'
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
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
bec39cab 369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
bec39cab 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
SS
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
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'`
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'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
419 *) ac_optarg=yes ;;
420 esac
bec39cab 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 \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
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'`
bec39cab
AC
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
601 *) ac_optarg=yes ;;
602 esac
bec39cab 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'`
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; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
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
bec39cab
AC
664# Be sure to have absolute paths.
665for ac_var in exec_prefix prefix
666do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
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
c906108c 674
bec39cab
AC
675# Be sure to have absolute paths.
676for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 678do
bec39cab
AC
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
714 # Try the directory containing this script, then its parent.
bec39cab
AC
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721echo X"$0" |
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
SS
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731else
732 ac_srcdir_defaulted=no
733fi
734if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
bec39cab
AC
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
c906108c 738 else
bec39cab
AC
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
c906108c
SS
741 fi
742fi
bec39cab
AC
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
745 { (exit 1); exit 1; }; }
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
807_ACEOF
808
809 cat <<_ACEOF
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]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
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]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
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
bec39cab
AC
865 --disable-nls do not use Native Language Support
866 --disable-gdbcli disable command-line interface (CLI)
867 --disable-gdbmi disable machine-interface (MI)
868 --enable-tui enable full-screen terminal user interface (TUI)
869 --enable-gdbtk enable gdbtk graphical user interface (GUI)
870 --enable-profiling enable profiling of GDB
871 --enable-build-warnings Enable build-time compiler warnings if gcc is used
872 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
873 --enable-sim Link gdb with simulator
874 --enable-multi-ice build the multi-ice-gdb-server
875
876Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-included-gettext use the GNU gettext library included here
880 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
881 --with-libunwind Use libunwind frame unwinding support
882 --without-included-regex don't use included regex; this is the default
883 on systems with version 2 of the GNU C library
884 (use with caution on other system)
885 --with-sysroot=DIR Search for usr/lib et al within DIR.
886 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
887 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
888 --with-tclinclude=DIR Directory where tcl private headers are
889 --with-tkinclude=DIR Directory where tk private headers are
890 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
891 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
892 --with-x use the X Window System
893 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894
895Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
902 CPP C preprocessor
903
904Use these variables to override the choices made by `configure' or to help
905it to find libraries and programs with nonstandard names/locations.
906
907_ACEOF
908fi
909
910if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
916
917if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921else
922 ac_dir_suffix= ac_top_builddir=
923fi
924
925case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939esac
940
941# Do not use `cd foo && pwd` to compute absolute paths, because
942# the directories may not exist.
943case `pwd` in
944.) ac_abs_builddir="$ac_dir";;
945*)
946 case "$ac_dir" in
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_builddir=${ac_top_builddir}.;;
954*)
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_srcdir=$ac_srcdir;;
963*)
964 case $ac_srcdir in
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 esac;;
969esac
970case $ac_abs_builddir in
971.) ac_abs_top_srcdir=$ac_top_srcdir;;
972*)
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 esac;;
978esac
979
980 cd $ac_dir
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
983 echo
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
986 echo
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
990 echo
991 $ac_configure --help
3ace7edb 992 else
bec39cab
AC
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994 fi
995 cd $ac_popdir
996 done
997fi
998
999test -n "$ac_init_help" && exit 0
1000if $ac_init_version; then
1001 cat <<\_ACEOF
1002
1003Copyright (C) 2003 Free Software Foundation, Inc.
1004This configure script is free software; the Free Software Foundation
1005gives unlimited permission to copy, distribute and modify it.
1006_ACEOF
1007 exit 0
1008fi
1009exec 5>config.log
1010cat >&5 <<_ACEOF
1011This file contains any messages produced by compilers while
1012running configure, to aid debugging if configure makes a mistake.
1013
1014It was created by $as_me, which was
1015generated by GNU Autoconf 2.59. Invocation command line was
1016
1017 $ $0 $@
1018
1019_ACEOF
1020{
1021cat <<_ASUNAME
1022## --------- ##
1023## Platform. ##
1024## --------- ##
1025
1026hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034
1035/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042
1043_ASUNAME
1044
1045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046for as_dir in $PATH
1047do
1048 IFS=$as_save_IFS
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1051done
1052
1053} >&5
1054
1055cat >&5 <<_ACEOF
1056
1057
1058## ----------- ##
1059## Core tests. ##
1060## ----------- ##
1061
1062_ACEOF
1063
1064
1065# Keep a trace of the command line.
1066# Strip out --no-create and --no-recursion so they do not pile up.
1067# Strip out --silent because we don't want to record it for future runs.
1068# Also quote any args containing shell meta-characters.
1069# Make two passes to allow for proper duplicate-argument suppression.
1070ac_configure_args=
1071ac_configure_args0=
1072ac_configure_args1=
1073ac_sep=
1074ac_must_keep_next=false
1075for ac_pass in 1 2
1076do
1077 for ac_arg
1078 do
1079 case $ac_arg in
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 continue ;;
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 esac
1087 case $ac_pass in
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 2)
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1093 else
1094 case $ac_arg in
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 esac
1102 ;;
1103 -* ) ac_must_keep_next=true ;;
1104 esac
1105 fi
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1108 ac_sep=" "
1109 ;;
1110 esac
1111 done
1112done
1113$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116# When interrupted or exit'd, cleanup temporary files, and complete
1117# config.log. We remove comments because anyway the quotes in there
1118# would cause problems or look ugly.
1119# WARNING: Be sure not to use single quotes in there, as some shells,
1120# such as our DU 5.0 friend, will then `close' the trap.
1121trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1123 {
1124 echo
1125
1126 cat <<\_ASBOX
1127## ---------------- ##
1128## Cache variables. ##
1129## ---------------- ##
1130_ASBOX
1131 echo
1132 # The following way of writing the cache mishandles newlines in values,
1133{
1134 (set) 2>&1 |
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 *ac_space=\ *)
1137 sed -n \
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140 ;;
1141 *)
1142 sed -n \
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ;;
1145 esac;
1146}
1147 echo
1148
1149 cat <<\_ASBOX
1150## ----------------- ##
1151## Output variables. ##
1152## ----------------- ##
1153_ASBOX
1154 echo
1155 for ac_var in $ac_subst_vars
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161
1162 if test -n "$ac_subst_files"; then
1163 cat <<\_ASBOX
1164## ------------- ##
1165## Output files. ##
1166## ------------- ##
1167_ASBOX
1168 echo
1169 for ac_var in $ac_subst_files
1170 do
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1175 fi
1176
1177 if test -s confdefs.h; then
1178 cat <<\_ASBOX
1179## ----------- ##
1180## confdefs.h. ##
1181## ----------- ##
1182_ASBOX
1183 echo
1184 sed "/^$/d" confdefs.h | sort
1185 echo
3ace7edb 1186 fi
bec39cab
AC
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1190 } >&5
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 exit $exit_status
1194 ' 0
1195for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197done
1198ac_signal=0
1199
1200# confdefs.h avoids OS command line length limits that DEFS can exceed.
1201rm -rf conftest* confdefs.h
1202# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203echo >confdefs.h
1204
1205# Predefined preprocessor variables.
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_NAME "$PACKAGE_NAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_VERSION "$PACKAGE_VERSION"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_STRING "$PACKAGE_STRING"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229_ACEOF
1230
1231
1232# Let the site file select an alternate cache file if it wants to.
1233# Prefer explicitly selected file to automatically selected ones.
1234if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 else
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
c906108c
SS
1239 fi
1240fi
1241for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
bec39cab
AC
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1246 . "$ac_site_file"
1247 fi
1248done
1249
1250if test -r "$cache_file"; then
bec39cab
AC
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255echo "$as_me: loading cache $cache_file" >&6;}
1256 case $cache_file in
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1259 esac
1260 fi
c906108c 1261else
bec39cab
AC
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263echo "$as_me: creating cache $cache_file" >&6;}
1264 >$cache_file
1265fi
1266
1267# Check that the precious variables saved in the cache have kept the same
1268# value.
1269ac_cache_corrupted=false
1270for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1277 set,)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,set)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,);;
1286 *)
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1295 fi;;
1296 esac
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1299 case $ac_new_val in
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1303 esac
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307 esac
1308 fi
1309done
1310if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
c906108c
SS
1316fi
1317
1318ac_ext=c
c906108c 1319ac_cpp='$CPP $CPPFLAGS'
bec39cab
AC
1320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1323
1324
1325
bec39cab
AC
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342 ac_config_headers="$ac_config_headers config.h:config.in"
1343
1344echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1345echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
413ccac7
AC
1346 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1347if test "${enable_maintainer_mode+set}" = set; then
1348 enableval="$enable_maintainer_mode"
1349 USE_MAINTAINER_MODE=$enableval
1350else
1351 USE_MAINTAINER_MODE=no
bec39cab
AC
1352fi;
1353 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1354echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1355
413ccac7
AC
1356
1357if test $USE_MAINTAINER_MODE = yes; then
1358 MAINTAINER_MODE_TRUE=
1359 MAINTAINER_MODE_FALSE='#'
1360else
1361 MAINTAINER_MODE_TRUE='#'
1362 MAINTAINER_MODE_FALSE=
1363fi
85981d60 1364
413ccac7 1365 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1366
c906108c 1367
bec39cab
AC
1368
1369ac_ext=c
1370ac_cpp='$CPP $CPPFLAGS'
1371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374if test -n "$ac_tool_prefix"; then
1375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1376set dummy ${ac_tool_prefix}gcc; ac_word=$2
1377echo "$as_me:$LINENO: checking for $ac_word" >&5
1378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379if test "${ac_cv_prog_CC+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381else
1382 if test -n "$CC"; then
1383 ac_cv_prog_CC="$CC" # Let the user override the test.
1384else
1385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386for as_dir in $PATH
1387do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 for ac_exec_ext in '' $ac_executable_extensions; do
1391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394 break 2
1395 fi
1396done
1397done
1398
1399fi
1400fi
1401CC=$ac_cv_prog_CC
1402if test -n "$CC"; then
1403 echo "$as_me:$LINENO: result: $CC" >&5
1404echo "${ECHO_T}$CC" >&6
1405else
1406 echo "$as_me:$LINENO: result: no" >&5
1407echo "${ECHO_T}no" >&6
1408fi
1409
1410fi
1411if test -z "$ac_cv_prog_CC"; then
1412 ac_ct_CC=$CC
1413 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1414set dummy gcc; ac_word=$2
bec39cab
AC
1415echo "$as_me:$LINENO: checking for $ac_word" >&5
1416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420 if test -n "$ac_ct_CC"; then
1421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1422else
1423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424for as_dir in $PATH
1425do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_ac_ct_CC="gcc"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 break 2
1433 fi
1434done
1435done
1436
1437fi
1438fi
1439ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440if test -n "$ac_ct_CC"; then
1441 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1442echo "${ECHO_T}$ac_ct_CC" >&6
1443else
1444 echo "$as_me:$LINENO: result: no" >&5
1445echo "${ECHO_T}no" >&6
1446fi
1447
1448 CC=$ac_ct_CC
1449else
1450 CC="$ac_cv_prog_CC"
1451fi
1452
1453if test -z "$CC"; then
1454 if test -n "$ac_tool_prefix"; then
1455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1456set dummy ${ac_tool_prefix}cc; ac_word=$2
1457echo "$as_me:$LINENO: checking for $ac_word" >&5
1458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459if test "${ac_cv_prog_CC+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1461else
1462 if test -n "$CC"; then
1463 ac_cv_prog_CC="$CC" # Let the user override the test.
1464else
bec39cab
AC
1465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466for as_dir in $PATH
1467do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_CC="${ac_tool_prefix}cc"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474 break 2
1475 fi
1476done
1477done
1478
c906108c
SS
1479fi
1480fi
bec39cab 1481CC=$ac_cv_prog_CC
c906108c 1482if test -n "$CC"; then
bec39cab
AC
1483 echo "$as_me:$LINENO: result: $CC" >&5
1484echo "${ECHO_T}$CC" >&6
1485else
1486 echo "$as_me:$LINENO: result: no" >&5
1487echo "${ECHO_T}no" >&6
1488fi
1489
1490fi
1491if test -z "$ac_cv_prog_CC"; then
1492 ac_ct_CC=$CC
1493 # Extract the first word of "cc", so it can be a program name with args.
1494set dummy cc; ac_word=$2
1495echo "$as_me:$LINENO: checking for $ac_word" >&5
1496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499else
1500 if test -n "$ac_ct_CC"; then
1501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502else
1503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504for as_dir in $PATH
1505do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_CC="cc"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514done
1515done
1516
1517fi
1518fi
1519ac_ct_CC=$ac_cv_prog_ac_ct_CC
1520if test -n "$ac_ct_CC"; then
1521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1522echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 1523else
bec39cab
AC
1524 echo "$as_me:$LINENO: result: no" >&5
1525echo "${ECHO_T}no" >&6
c906108c
SS
1526fi
1527
bec39cab
AC
1528 CC=$ac_ct_CC
1529else
1530 CC="$ac_cv_prog_CC"
1531fi
1532
1533fi
c906108c
SS
1534if test -z "$CC"; then
1535 # Extract the first word of "cc", so it can be a program name with args.
1536set dummy cc; ac_word=$2
bec39cab
AC
1537echo "$as_me:$LINENO: checking for $ac_word" >&5
1538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539if test "${ac_cv_prog_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1541else
1542 if test -n "$CC"; then
1543 ac_cv_prog_CC="$CC" # Let the user override the test.
1544else
c906108c 1545 ac_prog_rejected=no
bec39cab
AC
1546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547for as_dir in $PATH
1548do
1549 IFS=$as_save_IFS
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1554 ac_prog_rejected=yes
1555 continue
1556 fi
1557 ac_cv_prog_CC="cc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1560 fi
1561done
1562done
1563
c906108c
SS
1564if test $ac_prog_rejected = yes; then
1565 # We found a bogon in the path, so make sure we never use it.
1566 set dummy $ac_cv_prog_CC
1567 shift
bec39cab 1568 if test $# != 0; then
c906108c
SS
1569 # We chose a different compiler from the bogus one.
1570 # However, it has the same basename, so the bogon will be chosen
1571 # first if we set CC to just the basename; use the full file name.
1572 shift
bec39cab 1573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1574 fi
1575fi
1576fi
1577fi
bec39cab 1578CC=$ac_cv_prog_CC
c906108c 1579if test -n "$CC"; then
bec39cab
AC
1580 echo "$as_me:$LINENO: result: $CC" >&5
1581echo "${ECHO_T}$CC" >&6
c906108c 1582else
bec39cab
AC
1583 echo "$as_me:$LINENO: result: no" >&5
1584echo "${ECHO_T}no" >&6
c906108c
SS
1585fi
1586
bec39cab
AC
1587fi
1588if test -z "$CC"; then
1589 if test -n "$ac_tool_prefix"; then
1590 for ac_prog in cl
1591 do
1592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1594echo "$as_me:$LINENO: checking for $ac_word" >&5
1595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1598else
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1601else
bec39cab
AC
1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603for as_dir in $PATH
1604do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 break 2
1612 fi
1613done
1614done
1615
c906108c
SS
1616fi
1617fi
bec39cab 1618CC=$ac_cv_prog_CC
c906108c 1619if test -n "$CC"; then
bec39cab
AC
1620 echo "$as_me:$LINENO: result: $CC" >&5
1621echo "${ECHO_T}$CC" >&6
c906108c 1622else
bec39cab
AC
1623 echo "$as_me:$LINENO: result: no" >&5
1624echo "${ECHO_T}no" >&6
c906108c 1625fi
bec39cab
AC
1626
1627 test -n "$CC" && break
1628 done
1629fi
1630if test -z "$CC"; then
1631 ac_ct_CC=$CC
1632 for ac_prog in cl
1633do
1634 # Extract the first word of "$ac_prog", so it can be a program name with args.
1635set dummy $ac_prog; ac_word=$2
1636echo "$as_me:$LINENO: checking for $ac_word" >&5
1637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643else
1644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="$ac_prog"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
c906108c 1654 fi
bec39cab
AC
1655done
1656done
1657
1658fi
1659fi
1660ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663echo "${ECHO_T}$ac_ct_CC" >&6
1664else
1665 echo "$as_me:$LINENO: result: no" >&5
1666echo "${ECHO_T}no" >&6
c906108c
SS
1667fi
1668
bec39cab
AC
1669 test -n "$ac_ct_CC" && break
1670done
c906108c 1671
bec39cab
AC
1672 CC=$ac_ct_CC
1673fi
1674
1675fi
1676
1677
1678test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1679See \`config.log' for more details." >&5
1680echo "$as_me: error: no acceptable C compiler found in \$PATH
1681See \`config.log' for more details." >&2;}
1682 { (exit 1); exit 1; }; }
1683
1684# Provide some information about the compiler.
1685echo "$as_me:$LINENO:" \
1686 "checking for C compiler version" >&5
1687ac_compiler=`set X $ac_compile; echo $2`
1688{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1689 (eval $ac_compiler --version </dev/null >&5) 2>&5
1690 ac_status=$?
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1694 (eval $ac_compiler -v </dev/null >&5) 2>&5
1695 ac_status=$?
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1698{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1699 (eval $ac_compiler -V </dev/null >&5) 2>&5
1700 ac_status=$?
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1703
1704cat >conftest.$ac_ext <<_ACEOF
1705/* confdefs.h. */
1706_ACEOF
1707cat confdefs.h >>conftest.$ac_ext
1708cat >>conftest.$ac_ext <<_ACEOF
1709/* end confdefs.h. */
1710
1711int
1712main ()
1713{
1714
1715 ;
1716 return 0;
1717}
1718_ACEOF
1719ac_clean_files_save=$ac_clean_files
1720ac_clean_files="$ac_clean_files a.out a.exe b.out"
1721# Try to create an executable without -o first, disregard a.out.
1722# It will help us diagnose broken compilers, and finding out an intuition
1723# of exeext.
1724echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1725echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1726ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1727if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1728 (eval $ac_link_default) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; then
1732 # Find the output, starting from the most likely. This scheme is
1733# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1734# resort.
1735
1736# Be careful to initialize this variable, since it used to be cached.
1737# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1738ac_cv_exeext=
1739# b.out is created by i960 compilers.
1740for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1741do
1742 test -f "$ac_file" || continue
1743 case $ac_file in
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1745 ;;
1746 conftest.$ac_ext )
1747 # This is the source file.
1748 ;;
1749 [ab].out )
1750 # We found the default executable, but exeext='' is most
1751 # certainly right.
1752 break;;
1753 *.* )
1754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 # FIXME: I believe we export ac_cv_exeext for Libtool,
1756 # but it would be cool to find out if it's true. Does anybody
1757 # maintain Libtool? --akim.
1758 export ac_cv_exeext
1759 break;;
1760 * )
1761 break;;
1762 esac
1763done
1764else
1765 echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1769See \`config.log' for more details." >&5
1770echo "$as_me: error: C compiler cannot create executables
1771See \`config.log' for more details." >&2;}
1772 { (exit 77); exit 77; }; }
1773fi
1774
1775ac_exeext=$ac_cv_exeext
1776echo "$as_me:$LINENO: result: $ac_file" >&5
1777echo "${ECHO_T}$ac_file" >&6
1778
1779# Check the compiler produces executables we can run. If not, either
1780# the compiler is broken, or we cross compile.
1781echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1782echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784# If not cross compiling, check that we can run a simple program.
1785if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 (eval $ac_try) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1792 cross_compiling=no
c906108c 1793 else
bec39cab
AC
1794 if test "$cross_compiling" = maybe; then
1795 cross_compiling=yes
1796 else
1797 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1798If you meant to cross compile, use \`--host'.
1799See \`config.log' for more details." >&5
1800echo "$as_me: error: cannot run C compiled programs.
1801If you meant to cross compile, use \`--host'.
1802See \`config.log' for more details." >&2;}
1803 { (exit 1); exit 1; }; }
1804 fi
c906108c 1805 fi
bec39cab
AC
1806fi
1807echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
1809
1810rm -f a.out a.exe conftest$ac_cv_exeext b.out
1811ac_clean_files=$ac_clean_files_save
1812# Check the compiler produces executables we can run. If not, either
1813# the compiler is broken, or we cross compile.
1814echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1815echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816echo "$as_me:$LINENO: result: $cross_compiling" >&5
1817echo "${ECHO_T}$cross_compiling" >&6
1818
1819echo "$as_me:$LINENO: checking for suffix of executables" >&5
1820echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1823 ac_status=$?
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828# work properly (i.e., refer to `conftest.exe'), while it won't with
1829# `rm'.
1830for ac_file in conftest.exe conftest conftest.*; do
1831 test -f "$ac_file" || continue
1832 case $ac_file in
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835 export ac_cv_exeext
1836 break;;
1837 * ) break;;
1838 esac
1839done
c906108c 1840else
bec39cab
AC
1841 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1842See \`config.log' for more details." >&5
1843echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1844See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
c906108c 1846fi
c906108c 1847
bec39cab
AC
1848rm -f conftest$ac_cv_exeext
1849echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1850echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1851
bec39cab
AC
1852rm -f conftest.$ac_ext
1853EXEEXT=$ac_cv_exeext
1854ac_exeext=$EXEEXT
1855echo "$as_me:$LINENO: checking for suffix of object files" >&5
1856echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1857if test "${ac_cv_objext+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860 cat >conftest.$ac_ext <<_ACEOF
1861/* confdefs.h. */
1862_ACEOF
1863cat confdefs.h >>conftest.$ac_ext
1864cat >>conftest.$ac_ext <<_ACEOF
1865/* end confdefs.h. */
c906108c 1866
bec39cab
AC
1867int
1868main ()
1869{
c906108c 1870
bec39cab
AC
1871 ;
1872 return 0;
1873}
1874_ACEOF
1875rm -f conftest.o conftest.obj
1876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877 (eval $ac_compile) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1882 case $ac_file in
1883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1885 break;;
1886 esac
1887done
c906108c 1888else
bec39cab
AC
1889 echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1893See \`config.log' for more details." >&5
1894echo "$as_me: error: cannot compute suffix of object files: cannot compile
1895See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
c906108c
SS
1897fi
1898
bec39cab
AC
1899rm -f conftest.$ac_cv_objext conftest.$ac_ext
1900fi
1901echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1902echo "${ECHO_T}$ac_cv_objext" >&6
1903OBJEXT=$ac_cv_objext
1904ac_objext=$OBJEXT
1905echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1906echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1907if test "${ac_cv_c_compiler_gnu+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1909else
bec39cab
AC
1910 cat >conftest.$ac_ext <<_ACEOF
1911/* confdefs.h. */
1912_ACEOF
1913cat confdefs.h >>conftest.$ac_ext
1914cat >>conftest.$ac_ext <<_ACEOF
1915/* end confdefs.h. */
1916
1917int
1918main ()
1919{
1920#ifndef __GNUC__
1921 choke me
1922#endif
1923
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928rm -f conftest.$ac_objext
1929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>conftest.er1
1931 ac_status=$?
1932 grep -v '^ *+' conftest.er1 >conftest.err
1933 rm -f conftest.er1
1934 cat conftest.err >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); } &&
1937 { ac_try='test -z "$ac_c_werror_flag"
1938 || test ! -s conftest.err'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 (eval $ac_try) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 (eval $ac_try) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1950 ac_compiler_gnu=yes
1951else
1952 echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955ac_compiler_gnu=no
1956fi
1957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1958ac_cv_c_compiler_gnu=$ac_compiler_gnu
1959
1960fi
1961echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1962echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1963GCC=`test $ac_compiler_gnu = yes && echo yes`
1964ac_test_CFLAGS=${CFLAGS+set}
1965ac_save_CFLAGS=$CFLAGS
1966CFLAGS="-g"
1967echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1968echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1969if test "${ac_cv_prog_cc_g+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972 cat >conftest.$ac_ext <<_ACEOF
1973/* confdefs.h. */
1974_ACEOF
1975cat confdefs.h >>conftest.$ac_ext
1976cat >>conftest.$ac_ext <<_ACEOF
1977/* end confdefs.h. */
1978
1979int
1980main ()
1981{
1982
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987rm -f conftest.$ac_objext
1988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
c906108c
SS
2009 ac_cv_prog_cc_g=yes
2010else
bec39cab
AC
2011 echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2013
bec39cab 2014ac_cv_prog_cc_g=no
c906108c 2015fi
bec39cab
AC
2016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017fi
2018echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2019echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2020if test "$ac_test_CFLAGS" = set; then
bec39cab 2021 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2022elif test $ac_cv_prog_cc_g = yes; then
2023 if test "$GCC" = yes; then
2024 CFLAGS="-g -O2"
2025 else
2026 CFLAGS="-g"
2027 fi
2028else
2029 if test "$GCC" = yes; then
2030 CFLAGS="-O2"
2031 else
2032 CFLAGS=
2033 fi
2034fi
bec39cab
AC
2035echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2036echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2037if test "${ac_cv_prog_cc_stdc+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040 ac_cv_prog_cc_stdc=no
2041ac_save_CC=$CC
2042cat >conftest.$ac_ext <<_ACEOF
2043/* confdefs.h. */
2044_ACEOF
2045cat confdefs.h >>conftest.$ac_ext
2046cat >>conftest.$ac_ext <<_ACEOF
2047/* end confdefs.h. */
c906108c
SS
2048#include <stdarg.h>
2049#include <stdio.h>
2050#include <sys/types.h>
2051#include <sys/stat.h>
2052/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2053struct buf { int x; };
2054FILE * (*rcsopen) (struct buf *, struct stat *, int);
2055static char *e (p, i)
2056 char **p;
2057 int i;
2058{
2059 return p[i];
2060}
2061static char *f (char * (*g) (char **, int), char **p, ...)
2062{
2063 char *s;
2064 va_list v;
2065 va_start (v,p);
2066 s = g (p, va_arg (v,int));
2067 va_end (v);
2068 return s;
2069}
bec39cab
AC
2070
2071/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2072 function prototypes and stuff, but not '\xHH' hex character constants.
2073 These don't provoke an error unfortunately, instead are silently treated
2074 as 'x'. The following induces an error, until -std1 is added to get
2075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2076 array size at least. It's necessary to write '\x00'==0 to get something
2077 that's true only with -std1. */
2078int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2079
c906108c
SS
2080int test (int i, double x);
2081struct s1 {int (*f) (int a);};
2082struct s2 {int (*f) (double a);};
2083int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2084int argc;
2085char **argv;
bec39cab
AC
2086int
2087main ()
2088{
c906108c 2089return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094# Don't try gcc -ansi; that turns off useful extensions and
2095# breaks some systems' header files.
2096# AIX -qlanglvl=ansi
2097# Ultrix and OSF/1 -std1
2098# HP-UX 10.20 and later -Ae
2099# HP-UX older versions -Aa -D_HPUX_SOURCE
2100# SVR4 -Xc -D__EXTENSIONS__
2101for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102do
2103 CC="$ac_save_CC $ac_arg"
2104 rm -f conftest.$ac_objext
2105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2107 ac_status=$?
2108 grep -v '^ *+' conftest.er1 >conftest.err
2109 rm -f conftest.er1
2110 cat conftest.err >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -z "$ac_c_werror_flag"
2114 || test ! -s conftest.err'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 ac_cv_prog_cc_stdc=$ac_arg
2127break
c906108c 2128else
bec39cab
AC
2129 echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
c906108c 2132fi
bec39cab 2133rm -f conftest.err conftest.$ac_objext
c906108c 2134done
bec39cab
AC
2135rm -f conftest.$ac_ext conftest.$ac_objext
2136CC=$ac_save_CC
c906108c
SS
2137
2138fi
2139
bec39cab
AC
2140case "x$ac_cv_prog_cc_stdc" in
2141 x|xno)
2142 echo "$as_me:$LINENO: result: none needed" >&5
2143echo "${ECHO_T}none needed" >&6 ;;
2144 *)
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2146echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2147 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2148esac
2149
bec39cab
AC
2150# Some people use a C++ compiler to compile C. Since we use `exit',
2151# in C++ we need to declare it. In case someone uses the same compiler
2152# for both compiling C and C++ we need to have the C++ compiler decide
2153# the declaration of exit, since it's the most demanding environment.
2154cat >conftest.$ac_ext <<_ACEOF
2155#ifndef __cplusplus
2156 choke me
2157#endif
2158_ACEOF
2159rm -f conftest.$ac_objext
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2162 ac_status=$?
2163 grep -v '^ *+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 for ac_declaration in \
2182 '' \
2183 'extern "C" void std::exit (int) throw (); using std::exit;' \
2184 'extern "C" void std::exit (int); using std::exit;' \
2185 'extern "C" void exit (int) throw ();' \
2186 'extern "C" void exit (int);' \
2187 'void exit (int);'
2188do
2189 cat >conftest.$ac_ext <<_ACEOF
2190/* confdefs.h. */
2191_ACEOF
2192cat confdefs.h >>conftest.$ac_ext
2193cat >>conftest.$ac_ext <<_ACEOF
2194/* end confdefs.h. */
2195$ac_declaration
2196#include <stdlib.h>
2197int
2198main ()
2199{
2200exit (42);
2201 ;
2202 return 0;
2203}
2204_ACEOF
2205rm -f conftest.$ac_objext
2206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag"
2215 || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 :
2228else
2229 echo "$as_me: failed program was:" >&5
2230sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2231
bec39cab 2232continue
c906108c 2233fi
bec39cab
AC
2234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235 cat >conftest.$ac_ext <<_ACEOF
2236/* confdefs.h. */
2237_ACEOF
2238cat confdefs.h >>conftest.$ac_ext
2239cat >>conftest.$ac_ext <<_ACEOF
2240/* end confdefs.h. */
2241$ac_declaration
2242int
2243main ()
2244{
2245exit (42);
2246 ;
2247 return 0;
2248}
2249_ACEOF
2250rm -f conftest.$ac_objext
2251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 break
2273else
2274 echo "$as_me: failed program was:" >&5
2275sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2276
bec39cab
AC
2277fi
2278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279done
2280rm -f conftest*
2281if test -n "$ac_declaration"; then
2282 echo '#ifdef __cplusplus' >>confdefs.h
2283 echo $ac_declaration >>confdefs.h
2284 echo '#endif' >>confdefs.h
c906108c
SS
2285fi
2286
bec39cab
AC
2287else
2288 echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2290
bec39cab
AC
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293ac_ext=c
2294ac_cpp='$CPP $CPPFLAGS'
2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2298
bec39cab
AC
2299cat >>confdefs.h <<\_ACEOF
2300#define _GNU_SOURCE 1
2301_ACEOF
c906108c
SS
2302
2303
8bb2c122 2304
bec39cab
AC
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2311echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312# On Suns, sometimes $CPP names a directory.
2313if test -n "$CPP" && test -d "$CPP"; then
2314 CPP=
8bb2c122 2315fi
bec39cab
AC
2316if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320 # Double quotes because CPP needs to be expanded
2321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2322 do
2323 ac_preproc_ok=false
2324for ac_c_preproc_warn_flag in '' yes
2325do
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 # <limits.h> exists even on freestanding compilers.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h. */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h. */
2338#ifdef __STDC__
2339# include <limits.h>
2340#else
2341# include <assert.h>
2342#endif
2343 Syntax error
2344_ACEOF
2345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } >/dev/null; then
2353 if test -s conftest.err; then
2354 ac_cpp_err=$ac_c_preproc_warn_flag
2355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 else
2357 ac_cpp_err=
2358 fi
8bb2c122 2359else
bec39cab 2360 ac_cpp_err=yes
8bb2c122 2361fi
bec39cab
AC
2362if test -z "$ac_cpp_err"; then
2363 :
8bb2c122 2364else
bec39cab
AC
2365 echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 # Broken: fails on valid input.
2369continue
2370fi
2371rm -f conftest.err conftest.$ac_ext
2372
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
2381#include <ac_nonexistent.h>
2382_ACEOF
2383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 else
2395 ac_cpp_err=
2396 fi
8bb2c122 2397else
bec39cab 2398 ac_cpp_err=yes
8bb2c122 2399fi
bec39cab
AC
2400if test -z "$ac_cpp_err"; then
2401 # Broken: success on invalid input.
2402continue
8bb2c122 2403else
bec39cab
AC
2404 echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2406
bec39cab
AC
2407 # Passes both tests.
2408ac_preproc_ok=:
2409break
8bb2c122 2410fi
bec39cab 2411rm -f conftest.err conftest.$ac_ext
8bb2c122 2412
bec39cab
AC
2413done
2414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415rm -f conftest.err conftest.$ac_ext
2416if $ac_preproc_ok; then
2417 break
2418fi
8bb2c122 2419
bec39cab
AC
2420 done
2421 ac_cv_prog_CPP=$CPP
ddc9cd0f 2422
c906108c 2423fi
bec39cab
AC
2424 CPP=$ac_cv_prog_CPP
2425else
2426 ac_cv_prog_CPP=$CPP
c906108c 2427fi
bec39cab
AC
2428echo "$as_me:$LINENO: result: $CPP" >&5
2429echo "${ECHO_T}$CPP" >&6
2430ac_preproc_ok=false
2431for ac_c_preproc_warn_flag in '' yes
2432do
2433 # Use a header file that comes with gcc, so configuring glibc
2434 # with a fresh cross-compiler works.
2435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2436 # <limits.h> exists even on freestanding compilers.
2437 # On the NeXT, cc -E runs the code through the compiler's parser,
2438 # not just through cpp. "Syntax error" is here to catch this case.
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445#ifdef __STDC__
2446# include <limits.h>
2447#else
2448# include <assert.h>
2449#endif
2450 Syntax error
2451_ACEOF
2452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463 else
2464 ac_cpp_err=
2465 fi
c906108c 2466else
bec39cab 2467 ac_cpp_err=yes
c906108c 2468fi
bec39cab
AC
2469if test -z "$ac_cpp_err"; then
2470 :
c906108c 2471else
bec39cab
AC
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 # Broken: fails on valid input.
2476continue
2477fi
2478rm -f conftest.err conftest.$ac_ext
2479
2480 # OK, works on sane cases. Now check whether non-existent headers
2481 # can be detected and how.
2482 cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
2488#include <ac_nonexistent.h>
2489_ACEOF
2490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev/null; then
2498 if test -s conftest.err; then
2499 ac_cpp_err=$ac_c_preproc_warn_flag
2500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501 else
2502 ac_cpp_err=
2503 fi
c906108c 2504else
bec39cab 2505 ac_cpp_err=yes
c906108c 2506fi
bec39cab
AC
2507if test -z "$ac_cpp_err"; then
2508 # Broken: success on invalid input.
2509continue
c906108c 2510else
bec39cab
AC
2511 echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2513
bec39cab
AC
2514 # Passes both tests.
2515ac_preproc_ok=:
2516break
c906108c 2517fi
bec39cab 2518rm -f conftest.err conftest.$ac_ext
c906108c 2519
bec39cab
AC
2520done
2521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522rm -f conftest.err conftest.$ac_ext
2523if $ac_preproc_ok; then
c906108c
SS
2524 :
2525else
bec39cab
AC
2526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2529See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
c906108c 2531fi
c906108c 2532
bec39cab
AC
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540echo "$as_me:$LINENO: checking for egrep" >&5
2541echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2542if test "${ac_cv_prog_egrep+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2546 then ac_cv_prog_egrep='grep -E'
2547 else ac_cv_prog_egrep='egrep'
2548 fi
c906108c 2549fi
bec39cab
AC
2550echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2551echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2552 EGREP=$ac_cv_prog_egrep
c906108c 2553
bec39cab
AC
2554
2555
2556echo "$as_me:$LINENO: checking for AIX" >&5
2557echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2558cat >conftest.$ac_ext <<_ACEOF
2559/* confdefs.h. */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h. */
2564#ifdef _AIX
2565 yes
2566#endif
2567
2568_ACEOF
c906108c 2569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab
AC
2570 $EGREP "yes" >/dev/null 2>&1; then
2571 echo "$as_me:$LINENO: result: yes" >&5
2572echo "${ECHO_T}yes" >&6
2573cat >>confdefs.h <<\_ACEOF
2574#define _ALL_SOURCE 1
2575_ACEOF
2576
c906108c 2577else
bec39cab
AC
2578 echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6
c906108c
SS
2580fi
2581rm -f conftest*
2582
c906108c 2583
bec39cab
AC
2584echo "$as_me:$LINENO: checking for library containing strerror" >&5
2585echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2586if test "${ac_cv_search_strerror+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2588else
bec39cab
AC
2589 ac_func_search_save_LIBS=$LIBS
2590ac_cv_search_strerror=no
2591cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h. */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h. */
c906108c 2597
bec39cab
AC
2598/* Override any gcc2 internal prototype to avoid an error. */
2599#ifdef __cplusplus
2600extern "C"
2601#endif
2602/* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2604char strerror ();
2605int
2606main ()
2607{
2608strerror ();
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext conftest$ac_exeext
2614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest$ac_exeext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_cv_search_strerror="none required"
2636else
2637 echo "$as_me: failed program was:" >&5
2638sed 's/^/| /' conftest.$ac_ext >&5
2639
2640fi
2641rm -f conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2643if test "$ac_cv_search_strerror" = no; then
2644 for ac_lib in cposix; do
2645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2646 cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h. */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h. */
2652
2653/* Override any gcc2 internal prototype to avoid an error. */
2654#ifdef __cplusplus
2655extern "C"
2656#endif
2657/* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659char strerror ();
2660int
2661main ()
2662{
2663strerror ();
2664 ;
2665 return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext conftest$ac_exeext
2669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670 (eval $ac_link) 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_search_strerror="-l$ac_lib"
2691break
c906108c 2692else
bec39cab
AC
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2695
2696fi
bec39cab
AC
2697rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2699 done
c906108c 2700fi
bec39cab 2701LIBS=$ac_func_search_save_LIBS
c906108c 2702fi
bec39cab
AC
2703echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705if test "$ac_cv_search_strerror" != no; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2707
c906108c
SS
2708fi
2709
c906108c 2710
c906108c 2711
bec39cab
AC
2712
2713echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2714echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2715if test "${am_cv_prog_cc_stdc+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2717else
bec39cab
AC
2718 am_cv_prog_cc_stdc=no
2719ac_save_CC="$CC"
2720# Don't try gcc -ansi; that turns off useful extensions and
2721# breaks some systems' header files.
2722# AIX -qlanglvl=ansi
2723# Ultrix and OSF/1 -std1
2724# HP-UX 10.20 and later -Ae
2725# HP-UX older versions -Aa -D_HPUX_SOURCE
2726# SVR4 -Xc -D__EXTENSIONS__
2727for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728do
2729 CC="$ac_save_CC $ac_arg"
2730 cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
2736#include <stdarg.h>
2737#include <stdio.h>
2738#include <sys/types.h>
2739#include <sys/stat.h>
2740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741struct buf { int x; };
2742FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743static char *e (p, i)
2744 char **p;
2745 int i;
2746{
2747 return p[i];
2748}
2749static char *f (char * (*g) (char **, int), char **p, ...)
2750{
2751 char *s;
2752 va_list v;
2753 va_start (v,p);
2754 s = g (p, va_arg (v,int));
2755 va_end (v);
2756 return s;
2757}
2758int test (int i, double x);
2759struct s1 {int (*f) (int a);};
2760struct s2 {int (*f) (double a);};
2761int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762int argc;
2763char **argv;
c906108c 2764
bec39cab
AC
2765int
2766main ()
2767{
c906108c 2768
bec39cab 2769return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2770
bec39cab
AC
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext
2776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2798else
bec39cab
AC
2799 echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2801
2802fi
bec39cab
AC
2803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804done
2805CC="$ac_save_CC"
c906108c
SS
2806
2807fi
2808
bec39cab
AC
2809if test -z "$am_cv_prog_cc_stdc"; then
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811echo "${ECHO_T}none needed" >&6
c906108c 2812else
bec39cab
AC
2813 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2814echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2815fi
bec39cab
AC
2816case "x$am_cv_prog_cc_stdc" in
2817 x|xno) ;;
2818 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2819esac
c906108c 2820
c906108c 2821
bec39cab
AC
2822ac_aux_dir=
2823for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2824 if test -f $ac_dir/install-sh; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/install-sh -c"
2827 break
2828 elif test -f $ac_dir/install.sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install.sh -c"
2831 break
2832 elif test -f $ac_dir/shtool; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/shtool install -c"
2835 break
2836 fi
2837done
2838if test -z "$ac_aux_dir"; then
2839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2840echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2841 { (exit 1); exit 1; }; }
c906108c 2842fi
bec39cab
AC
2843ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2844ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2845ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2846
bec39cab
AC
2847# Make sure we can run config.sub.
2848$ac_config_sub sun4 >/dev/null 2>&1 ||
2849 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2850echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2851 { (exit 1); exit 1; }; }
2852
2853echo "$as_me:$LINENO: checking build system type" >&5
2854echo $ECHO_N "checking build system type... $ECHO_C" >&6
2855if test "${ac_cv_build+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 ac_cv_build_alias=$build_alias
2859test -z "$ac_cv_build_alias" &&
2860 ac_cv_build_alias=`$ac_config_guess`
2861test -z "$ac_cv_build_alias" &&
2862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2863echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2864 { (exit 1); exit 1; }; }
2865ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2866 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2867echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2868 { (exit 1); exit 1; }; }
2869
2870fi
2871echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2872echo "${ECHO_T}$ac_cv_build" >&6
2873build=$ac_cv_build
2874build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2875build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2876build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2877
2878
2879echo "$as_me:$LINENO: checking host system type" >&5
2880echo $ECHO_N "checking host system type... $ECHO_C" >&6
2881if test "${ac_cv_host+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884 ac_cv_host_alias=$host_alias
2885test -z "$ac_cv_host_alias" &&
2886 ac_cv_host_alias=$ac_cv_build_alias
2887ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2889echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2890 { (exit 1); exit 1; }; }
2891
2892fi
2893echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2894echo "${ECHO_T}$ac_cv_host" >&6
2895host=$ac_cv_host
2896host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2897host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2898host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2899
2900
2901echo "$as_me:$LINENO: checking target system type" >&5
2902echo $ECHO_N "checking target system type... $ECHO_C" >&6
2903if test "${ac_cv_target+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905else
2906 ac_cv_target_alias=$target_alias
2907test "x$ac_cv_target_alias" = "x" &&
2908 ac_cv_target_alias=$ac_cv_host_alias
2909ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2911echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2912 { (exit 1); exit 1; }; }
2913
2914fi
2915echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2916echo "${ECHO_T}$ac_cv_target" >&6
2917target=$ac_cv_target
2918target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2921
c906108c 2922
bec39cab
AC
2923# The aliases save the names the user supplied, while $host etc.
2924# will get canonicalized.
2925test -n "$target_alias" &&
2926 test "$program_prefix$program_suffix$program_transform_name" = \
2927 NONENONEs,x,x, &&
2928 program_prefix=${target_alias}-
c906108c 2929
c906108c 2930
bec39cab
AC
2931CONFIG_OBS=
2932CONFIG_DEPS=
2933CONFIG_SRCS=
2934ENABLE_CFLAGS=
c906108c 2935
bec39cab
AC
2936CONFIG_ALL=
2937CONFIG_CLEAN=
2938CONFIG_INSTALL=
2939CONFIG_UNINSTALL=
2940
2941
2942echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2944set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2945if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947else
2948 cat >conftest.make <<\_ACEOF
2949all:
2950 @echo 'ac_maketemp="$(MAKE)"'
2951_ACEOF
2952# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2953eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2954if test -n "$ac_maketemp"; then
2955 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 2956else
bec39cab 2957 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 2958fi
bec39cab
AC
2959rm -f conftest.make
2960fi
2961if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2962 echo "$as_me:$LINENO: result: yes" >&5
2963echo "${ECHO_T}yes" >&6
2964 SET_MAKE=
2965else
2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
2968 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
2969fi
2970
bec39cab
AC
2971if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2973set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2974echo "$as_me:$LINENO: checking for $ac_word" >&5
2975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976if test "${ac_cv_prog_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979 if test -n "$RANLIB"; then
2980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993done
2994done
c906108c 2995
bec39cab
AC
2996fi
2997fi
2998RANLIB=$ac_cv_prog_RANLIB
2999if test -n "$RANLIB"; then
3000 echo "$as_me:$LINENO: result: $RANLIB" >&5
3001echo "${ECHO_T}$RANLIB" >&6
c906108c 3002else
bec39cab
AC
3003 echo "$as_me:$LINENO: result: no" >&5
3004echo "${ECHO_T}no" >&6
c906108c
SS
3005fi
3006
bec39cab
AC
3007fi
3008if test -z "$ac_cv_prog_RANLIB"; then
3009 ac_ct_RANLIB=$RANLIB
3010 # Extract the first word of "ranlib", so it can be a program name with args.
3011set dummy ranlib; ac_word=$2
3012echo "$as_me:$LINENO: checking for $ac_word" >&5
3013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017 if test -n "$ac_ct_RANLIB"; then
3018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_ac_ct_RANLIB="ranlib"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031done
c906108c 3032done
bec39cab
AC
3033
3034 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3035fi
3036fi
3037ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3038if test -n "$ac_ct_RANLIB"; then
3039 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3040echo "${ECHO_T}$ac_ct_RANLIB" >&6
3041else
3042 echo "$as_me:$LINENO: result: no" >&5
3043echo "${ECHO_T}no" >&6
c906108c
SS
3044fi
3045
bec39cab 3046 RANLIB=$ac_ct_RANLIB
c906108c 3047else
bec39cab
AC
3048 RANLIB="$ac_cv_prog_RANLIB"
3049fi
3050
3051echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3052echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3053if test "${ac_cv_header_stdc+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3055else
bec39cab
AC
3056 cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
3062#include <stdlib.h>
3063#include <stdarg.h>
3064#include <string.h>
3065#include <float.h>
3066
3067int
c906108c
SS
3068main ()
3069{
bec39cab
AC
3070
3071 ;
3072 return 0;
c906108c 3073}
bec39cab
AC
3074_ACEOF
3075rm -f conftest.$ac_objext
3076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_header_stdc=yes
c906108c 3098else
bec39cab
AC
3099 echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3101
bec39cab 3102ac_cv_header_stdc=no
c906108c 3103fi
bec39cab 3104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3105
bec39cab
AC
3106if test $ac_cv_header_stdc = yes; then
3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
3113/* end confdefs.h. */
3114#include <string.h>
c906108c 3115
bec39cab
AC
3116_ACEOF
3117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118 $EGREP "memchr" >/dev/null 2>&1; then
3119 :
c906108c 3120else
bec39cab 3121 ac_cv_header_stdc=no
c906108c 3122fi
bec39cab 3123rm -f conftest*
c906108c 3124
bec39cab 3125fi
c906108c 3126
bec39cab
AC
3127if test $ac_cv_header_stdc = yes; then
3128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3129 cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h. */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h. */
3135#include <stdlib.h>
c906108c 3136
bec39cab
AC
3137_ACEOF
3138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "free" >/dev/null 2>&1; then
3140 :
c906108c 3141else
bec39cab 3142 ac_cv_header_stdc=no
c906108c
SS
3143fi
3144rm -f conftest*
c906108c 3145
c906108c 3146fi
c906108c 3147
bec39cab
AC
3148if test $ac_cv_header_stdc = yes; then
3149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3150 if test "$cross_compiling" = yes; then
bec39cab 3151 :
c906108c 3152else
bec39cab
AC
3153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
3159#include <ctype.h>
3160#if ((' ' & 0x0FF) == 0x020)
3161# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3163#else
3164# define ISLOWER(c) \
3165 (('a' <= (c) && (c) <= 'i') \
3166 || ('j' <= (c) && (c) <= 'r') \
3167 || ('s' <= (c) && (c) <= 'z'))
3168# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3169#endif
c906108c 3170
bec39cab
AC
3171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3172int
3173main ()
3174{
3175 int i;
3176 for (i = 0; i < 256; i++)
3177 if (XOR (islower (i), ISLOWER (i))
3178 || toupper (i) != TOUPPER (i))
3179 exit(2);
3180 exit (0);
3181}
3182_ACEOF
3183rm -f conftest$ac_exeext
3184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 :
3195else
3196 echo "$as_me: program exited with status $ac_status" >&5
3197echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3199
bec39cab
AC
3200( exit $ac_status )
3201ac_cv_header_stdc=no
3202fi
3203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3204fi
3205fi
3206fi
3207echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208echo "${ECHO_T}$ac_cv_header_stdc" >&6
3209if test $ac_cv_header_stdc = yes; then
c906108c 3210
bec39cab
AC
3211cat >>confdefs.h <<\_ACEOF
3212#define STDC_HEADERS 1
3213_ACEOF
c906108c 3214
bec39cab 3215fi
c906108c 3216
bec39cab
AC
3217echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219if test "${ac_cv_c_const+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222 cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
c906108c 3228
bec39cab
AC
3229int
3230main ()
3231{
3232/* FIXME: Include the comments suggested by Paul. */
3233#ifndef __cplusplus
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3236 const charset x;
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3239 char **p;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3246 expression */
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3250 ++ccp;
3251 p = (char**) ccp;
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3254 char *t;
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3256
3257 *t++ = 0;
3258 }
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3260 int x[] = {25, 17};
3261 const int *foo = &x[0];
3262 ++foo;
3263 }
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3266 iptr p = 0;
3267 ++p;
3268 }
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3273 }
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275 const int foo = 10;
3276 }
3277#endif
c906108c 3278
bec39cab
AC
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283rm -f conftest.$ac_objext
3284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_c_const=yes
c906108c 3306else
bec39cab
AC
3307 echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3309
bec39cab
AC
3310ac_cv_c_const=no
3311fi
3312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3313fi
bec39cab
AC
3314echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315echo "${ECHO_T}$ac_cv_c_const" >&6
3316if test $ac_cv_c_const = no; then
c906108c 3317
bec39cab
AC
3318cat >>confdefs.h <<\_ACEOF
3319#define const
3320_ACEOF
c906108c
SS
3321
3322fi
3323
bec39cab
AC
3324echo "$as_me:$LINENO: checking for inline" >&5
3325echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326if test "${ac_cv_c_inline+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3328else
bec39cab
AC
3329 ac_cv_c_inline=no
3330for ac_kw in inline __inline__ __inline; do
3331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337#ifndef __cplusplus
3338typedef int foo_t;
3339static $ac_kw foo_t static_foo () {return 0; }
3340$ac_kw foo_t foo () {return 0; }
c906108c
SS
3341#endif
3342
bec39cab
AC
3343_ACEOF
3344rm -f conftest.$ac_objext
3345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag"
3354 || test ! -s conftest.err'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 (eval $ac_try) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 ac_cv_c_inline=$ac_kw; break
c906108c 3367else
bec39cab
AC
3368 echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3370
c906108c 3371fi
bec39cab 3372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3373done
3374
bec39cab
AC
3375fi
3376echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3378
c906108c 3379
bec39cab
AC
3380case $ac_cv_c_inline in
3381 inline | yes) ;;
3382 *)
3383 case $ac_cv_c_inline in
3384 no) ac_val=;;
3385 *) ac_val=$ac_cv_c_inline;;
3386 esac
3387 cat >>confdefs.h <<_ACEOF
3388#ifndef __cplusplus
3389#define inline $ac_val
c906108c 3390#endif
bec39cab
AC
3391_ACEOF
3392 ;;
3393esac
c906108c 3394
bec39cab 3395# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3396
c906108c 3397
c906108c 3398
c906108c 3399
c906108c 3400
c906108c 3401
c906108c 3402
c906108c 3403
c906108c 3404
bec39cab
AC
3405for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3407do
3408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409echo "$as_me:$LINENO: checking for $ac_header" >&5
3410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420$ac_includes_default
3421
3422#include <$ac_header>
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3447else
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451eval "$as_ac_Header=no"
3452fi
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454fi
3455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460_ACEOF
c906108c 3461
c906108c
SS
3462fi
3463
bec39cab 3464done
c906108c 3465
c906108c 3466
bec39cab
AC
3467echo "$as_me:$LINENO: checking for off_t" >&5
3468echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3469if test "${ac_cv_type_off_t+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3471else
bec39cab
AC
3472 cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h. */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h. */
3478$ac_includes_default
3479int
3480main ()
3481{
3482if ((off_t *) 0)
3483 return 0;
3484if (sizeof (off_t))
3485 return 0;
3486 ;
3487 return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 ac_cv_type_off_t=yes
3513else
3514 echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517ac_cv_type_off_t=no
c906108c 3518fi
bec39cab 3519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3520fi
bec39cab
AC
3521echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3522echo "${ECHO_T}$ac_cv_type_off_t" >&6
3523if test $ac_cv_type_off_t = yes; then
3524 :
c906108c 3525else
bec39cab
AC
3526
3527cat >>confdefs.h <<_ACEOF
3528#define off_t long
3529_ACEOF
3530
3531fi
3532
3533echo "$as_me:$LINENO: checking for size_t" >&5
3534echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3535if test "${ac_cv_type_size_t+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
3538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
3544$ac_includes_default
3545int
3546main ()
3547{
3548if ((size_t *) 0)
3549 return 0;
3550if (sizeof (size_t))
3551 return 0;
3552 ;
3553 return 0;
3554}
3555_ACEOF
3556rm -f conftest.$ac_objext
3557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_type_size_t=yes
c906108c 3579else
bec39cab
AC
3580 echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583ac_cv_type_size_t=no
c906108c 3584fi
bec39cab 3585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3586fi
bec39cab
AC
3587echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3588echo "${ECHO_T}$ac_cv_type_size_t" >&6
3589if test $ac_cv_type_size_t = yes; then
3590 :
3591else
c906108c 3592
bec39cab
AC
3593cat >>confdefs.h <<_ACEOF
3594#define size_t unsigned
3595_ACEOF
c906108c 3596
c906108c 3597fi
bec39cab
AC
3598
3599# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3600# for constant arguments. Useless!
3601echo "$as_me:$LINENO: checking for working alloca.h" >&5
3602echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3603if test "${ac_cv_working_alloca_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612#include <alloca.h>
3613int
3614main ()
3615{
3616char *p = (char *) alloca (2 * sizeof (int));
3617 ;
3618 return 0;
3619}
3620_ACEOF
3621rm -f conftest.$ac_objext conftest$ac_exeext
3622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -z "$ac_c_werror_flag"
3631 || test ! -s conftest.err'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; } &&
3637 { ac_try='test -s conftest$ac_exeext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_working_alloca_h=yes
3644else
3645 echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
3648ac_cv_working_alloca_h=no
3649fi
3650rm -f conftest.err conftest.$ac_objext \
3651 conftest$ac_exeext conftest.$ac_ext
3652fi
3653echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3654echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3655if test $ac_cv_working_alloca_h = yes; then
3656
3657cat >>confdefs.h <<\_ACEOF
3658#define HAVE_ALLOCA_H 1
3659_ACEOF
c906108c
SS
3660
3661fi
bec39cab
AC
3662
3663echo "$as_me:$LINENO: checking for alloca" >&5
3664echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3665if test "${ac_cv_func_alloca_works+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3667else
bec39cab
AC
3668 cat >conftest.$ac_ext <<_ACEOF
3669/* confdefs.h. */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h. */
3674#ifdef __GNUC__
3675# define alloca __builtin_alloca
3676#else
3677# ifdef _MSC_VER
3678# include <malloc.h>
3679# define alloca _alloca
3680# else
3681# if HAVE_ALLOCA_H
3682# include <alloca.h>
3683# else
3684# ifdef _AIX
3685 #pragma alloca
3686# else
3687# ifndef alloca /* predefined by HP cc +Olibcalls */
3688char *alloca ();
3689# endif
3690# endif
3691# endif
3692# endif
3693#endif
c906108c 3694
bec39cab
AC
3695int
3696main ()
3697{
3698char *p = (char *) alloca (1);
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703rm -f conftest.$ac_objext conftest$ac_exeext
3704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_func_alloca_works=yes
c906108c 3726else
bec39cab
AC
3727 echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730ac_cv_func_alloca_works=no
c906108c 3731fi
bec39cab
AC
3732rm -f conftest.err conftest.$ac_objext \
3733 conftest$ac_exeext conftest.$ac_ext
c906108c 3734fi
bec39cab
AC
3735echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3736echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3737
3738if test $ac_cv_func_alloca_works = yes; then
3739
3740cat >>confdefs.h <<\_ACEOF
3741#define HAVE_ALLOCA 1
3742_ACEOF
c906108c 3743
c906108c 3744else
bec39cab
AC
3745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3746# that cause trouble. Some versions do not even contain alloca or
3747# contain a buggy version. If you still want to use their alloca,
3748# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3749
bec39cab 3750ALLOCA=alloca.$ac_objext
c906108c 3751
bec39cab
AC
3752cat >>confdefs.h <<\_ACEOF
3753#define C_ALLOCA 1
3754_ACEOF
c906108c 3755
bec39cab
AC
3756
3757echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3758echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3759if test "${ac_cv_os_cray+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3761else
bec39cab
AC
3762 cat >conftest.$ac_ext <<_ACEOF
3763/* confdefs.h. */
3764_ACEOF
3765cat confdefs.h >>conftest.$ac_ext
3766cat >>conftest.$ac_ext <<_ACEOF
3767/* end confdefs.h. */
3768#if defined(CRAY) && ! defined(CRAY2)
3769webecray
3770#else
3771wenotbecray
3772#endif
3773
3774_ACEOF
3775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 $EGREP "webecray" >/dev/null 2>&1; then
3777 ac_cv_os_cray=yes
c906108c 3778else
bec39cab 3779 ac_cv_os_cray=no
c906108c 3780fi
bec39cab
AC
3781rm -f conftest*
3782
3783fi
3784echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3785echo "${ECHO_T}$ac_cv_os_cray" >&6
3786if test $ac_cv_os_cray = yes; then
3787 for ac_func in _getb67 GETB67 getb67; do
3788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3789echo "$as_me:$LINENO: checking for $ac_func" >&5
3790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3791if eval "test \"\${$as_ac_var+set}\" = set"; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h. */
3800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3802#define $ac_func innocuous_$ac_func
3803
c906108c 3804/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3805 which can conflict with char $ac_func (); below.
3806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 <limits.h> exists even on freestanding compilers. */
3808
3809#ifdef __STDC__
3810# include <limits.h>
3811#else
3812# include <assert.h>
3813#endif
c906108c 3814
bec39cab 3815#undef $ac_func
c906108c 3816
bec39cab
AC
3817/* Override any gcc2 internal prototype to avoid an error. */
3818#ifdef __cplusplus
3819extern "C"
3820{
3821#endif
3822/* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3824char $ac_func ();
c906108c
SS
3825/* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829choke me
3830#else
bec39cab
AC
3831char (*f) () = $ac_func;
3832#endif
3833#ifdef __cplusplus
3834}
c906108c
SS
3835#endif
3836
bec39cab
AC
3837int
3838main ()
3839{
3840return f != $ac_func;
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext conftest$ac_exeext
3846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 eval "$as_ac_var=yes"
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872eval "$as_ac_var=no"
3873fi
3874rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3876fi
3877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3879if test `eval echo '${'$as_ac_var'}'` = yes; then
3880
3881cat >>confdefs.h <<_ACEOF
3882#define CRAY_STACKSEG_END $ac_func
3883_ACEOF
c906108c 3884
bec39cab 3885 break
c906108c 3886fi
c906108c 3887
c906108c 3888 done
c906108c 3889fi
bec39cab
AC
3890
3891echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3892echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3893if test "${ac_cv_c_stack_direction+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3895else
bec39cab
AC
3896 if test "$cross_compiling" = yes; then
3897 ac_cv_c_stack_direction=0
3898else
3899 cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
3904/* end confdefs.h. */
3905int
3906find_stack_direction ()
3907{
3908 static char *addr = 0;
3909 auto char dummy;
3910 if (addr == 0)
3911 {
3912 addr = &dummy;
3913 return find_stack_direction ();
3914 }
3915 else
3916 return (&dummy > addr) ? 1 : -1;
3917}
c906108c 3918
bec39cab
AC
3919int
3920main ()
3921{
3922 exit (find_stack_direction () < 0);
3923}
3924_ACEOF
3925rm -f conftest$ac_exeext
3926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_c_stack_direction=1
c906108c 3937else
bec39cab
AC
3938 echo "$as_me: program exited with status $ac_status" >&5
3939echo "$as_me: failed program was:" >&5
3940sed 's/^/| /' conftest.$ac_ext >&5
3941
3942( exit $ac_status )
3943ac_cv_c_stack_direction=-1
3944fi
3945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3946fi
c906108c 3947fi
bec39cab
AC
3948echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3949echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3950
3951cat >>confdefs.h <<_ACEOF
3952#define STACK_DIRECTION $ac_cv_c_stack_direction
3953_ACEOF
c906108c 3954
c906108c 3955
c906108c
SS
3956fi
3957
3958
c906108c 3959
bec39cab
AC
3960for ac_header in stdlib.h unistd.h
3961do
3962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3963if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo "$as_me:$LINENO: checking for $ac_header" >&5
3965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968fi
3969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3971else
3972 # Is the header compilable?
3973echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3975cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h. */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h. */
3981$ac_includes_default
3982#include <$ac_header>
3983_ACEOF
3984rm -f conftest.$ac_objext
3985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_header_compiler=yes
4007else
4008 echo "$as_me: failed program was:" >&5
4009sed 's/^/| /' conftest.$ac_ext >&5
4010
4011ac_header_compiler=no
4012fi
4013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015echo "${ECHO_T}$ac_header_compiler" >&6
4016
4017# Is the header present?
4018echo "$as_me:$LINENO: checking $ac_header presence" >&5
4019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4020cat >conftest.$ac_ext <<_ACEOF
4021/* confdefs.h. */
4022_ACEOF
4023cat confdefs.h >>conftest.$ac_ext
4024cat >>conftest.$ac_ext <<_ACEOF
4025/* end confdefs.h. */
4026#include <$ac_header>
4027_ACEOF
4028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null; then
4036 if test -s conftest.err; then
4037 ac_cpp_err=$ac_c_preproc_warn_flag
4038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039 else
4040 ac_cpp_err=
4041 fi
c906108c 4042else
bec39cab 4043 ac_cpp_err=yes
c906108c 4044fi
bec39cab
AC
4045if test -z "$ac_cpp_err"; then
4046 ac_header_preproc=yes
c906108c 4047else
bec39cab
AC
4048 echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 ac_header_preproc=no
c906108c 4052fi
bec39cab
AC
4053rm -f conftest.err conftest.$ac_ext
4054echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4055echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4056
bec39cab
AC
4057# So? What about this header?
4058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4059 yes:no: )
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4061echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4063echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4064 ac_header_preproc=yes
4065 ;;
4066 no:yes:* )
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4068echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4070echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4072echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4074echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4076echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4078echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4079 (
4080 cat <<\_ASBOX
4081## ------------------------------------------ ##
4082## Report this to the AC_PACKAGE_NAME lists. ##
4083## ------------------------------------------ ##
4084_ASBOX
4085 ) |
4086 sed "s/^/$as_me: WARNING: /" >&2
4087 ;;
4088esac
4089echo "$as_me:$LINENO: checking for $ac_header" >&5
4090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4091if eval "test \"\${$as_ac_Header+set}\" = set"; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094 eval "$as_ac_Header=\$ac_header_preproc"
4095fi
4096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4098
4099fi
4100if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103_ACEOF
4104
4105fi
4106
4107done
4108
4109
4110for ac_func in getpagesize
4111do
4112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113echo "$as_me:$LINENO: checking for $ac_func" >&5
4114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4115if eval "test \"\${$as_ac_var+set}\" = set"; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117else
4118 cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h. */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h. */
4124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126#define $ac_func innocuous_$ac_func
4127
4128/* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char $ac_func (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4132
4133#ifdef __STDC__
4134# include <limits.h>
4135#else
4136# include <assert.h>
4137#endif
4138
4139#undef $ac_func
4140
4141/* Override any gcc2 internal prototype to avoid an error. */
4142#ifdef __cplusplus
4143extern "C"
4144{
4145#endif
4146/* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148char $ac_func ();
4149/* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4153choke me
4154#else
4155char (*f) () = $ac_func;
4156#endif
4157#ifdef __cplusplus
4158}
4159#endif
4160
4161int
4162main ()
4163{
4164return f != $ac_func;
4165 ;
4166 return 0;
4167}
4168_ACEOF
4169rm -f conftest.$ac_objext conftest$ac_exeext
4170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 eval "$as_ac_var=yes"
4192else
4193 echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196eval "$as_ac_var=no"
4197fi
4198rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
4200fi
4201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4203if test `eval echo '${'$as_ac_var'}'` = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4206_ACEOF
4207
4208fi
4209done
4210
4211echo "$as_me:$LINENO: checking for working mmap" >&5
4212echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4213if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216 if test "$cross_compiling" = yes; then
4217 ac_cv_func_mmap_fixed_mapped=no
4218else
4219 cat >conftest.$ac_ext <<_ACEOF
4220/* confdefs.h. */
4221_ACEOF
4222cat confdefs.h >>conftest.$ac_ext
4223cat >>conftest.$ac_ext <<_ACEOF
4224/* end confdefs.h. */
4225$ac_includes_default
4226/* malloc might have been renamed as rpl_malloc. */
4227#undef malloc
4228
4229/* Thanks to Mike Haertel and Jim Avera for this test.
4230 Here is a matrix of mmap possibilities:
4231 mmap private not fixed
4232 mmap private fixed at somewhere currently unmapped
4233 mmap private fixed at somewhere already mapped
4234 mmap shared not fixed
4235 mmap shared fixed at somewhere currently unmapped
4236 mmap shared fixed at somewhere already mapped
4237 For private mappings, we should verify that changes cannot be read()
4238 back from the file, nor mmap's back from the file at a different
4239 address. (There have been systems where private was not correctly
4240 implemented like the infamous i386 svr4.0, and systems where the
4241 VM page cache was not coherent with the file system buffer cache
4242 like early versions of FreeBSD and possibly contemporary NetBSD.)
4243 For shared mappings, we should conversely verify that changes get
4244 propagated back to all the places they're supposed to be.
4245
4246 Grep wants private fixed already mapped.
4247 The main things grep needs to know about mmap are:
4248 * does it exist and is it safe to write into the mmap'd area
4249 * how to use it (BSD variants) */
4250
4251#include <fcntl.h>
4252#include <sys/mman.h>
4253
4254#if !STDC_HEADERS && !HAVE_STDLIB_H
4255char *malloc ();
4256#endif
4257
4258/* This mess was copied from the GNU getpagesize.h. */
4259#if !HAVE_GETPAGESIZE
4260/* Assume that all systems that can run configure have sys/param.h. */
4261# if !HAVE_SYS_PARAM_H
4262# define HAVE_SYS_PARAM_H 1
4263# endif
4264
4265# ifdef _SC_PAGESIZE
4266# define getpagesize() sysconf(_SC_PAGESIZE)
4267# else /* no _SC_PAGESIZE */
4268# if HAVE_SYS_PARAM_H
4269# include <sys/param.h>
4270# ifdef EXEC_PAGESIZE
4271# define getpagesize() EXEC_PAGESIZE
4272# else /* no EXEC_PAGESIZE */
4273# ifdef NBPG
4274# define getpagesize() NBPG * CLSIZE
4275# ifndef CLSIZE
4276# define CLSIZE 1
4277# endif /* no CLSIZE */
4278# else /* no NBPG */
4279# ifdef NBPC
4280# define getpagesize() NBPC
4281# else /* no NBPC */
4282# ifdef PAGESIZE
4283# define getpagesize() PAGESIZE
4284# endif /* PAGESIZE */
4285# endif /* no NBPC */
4286# endif /* no NBPG */
4287# endif /* no EXEC_PAGESIZE */
4288# else /* no HAVE_SYS_PARAM_H */
4289# define getpagesize() 8192 /* punt totally */
4290# endif /* no HAVE_SYS_PARAM_H */
4291# endif /* no _SC_PAGESIZE */
4292
4293#endif /* no HAVE_GETPAGESIZE */
4294
4295int
4296main ()
4297{
4298 char *data, *data2, *data3;
4299 int i, pagesize;
4300 int fd;
4301
4302 pagesize = getpagesize ();
4303
4304 /* First, make a file with some known garbage in it. */
4305 data = (char *) malloc (pagesize);
4306 if (!data)
4307 exit (1);
4308 for (i = 0; i < pagesize; ++i)
4309 *(data + i) = rand ();
4310 umask (0);
4311 fd = creat ("conftest.mmap", 0600);
4312 if (fd < 0)
4313 exit (1);
4314 if (write (fd, data, pagesize) != pagesize)
4315 exit (1);
4316 close (fd);
4317
4318 /* Next, try to mmap the file at a fixed address which already has
4319 something else allocated at it. If we can, also make sure that
4320 we see the same garbage. */
4321 fd = open ("conftest.mmap", O_RDWR);
4322 if (fd < 0)
4323 exit (1);
4324 data2 = (char *) malloc (2 * pagesize);
4325 if (!data2)
4326 exit (1);
4327 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4328 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4330 exit (1);
4331 for (i = 0; i < pagesize; ++i)
4332 if (*(data + i) != *(data2 + i))
4333 exit (1);
4334
4335 /* Finally, make sure that changes to the mapped area do not
4336 percolate back to the file as seen by read(). (This is a bug on
4337 some variants of i386 svr4.0.) */
4338 for (i = 0; i < pagesize; ++i)
4339 *(data2 + i) = *(data2 + i) + 1;
4340 data3 = (char *) malloc (pagesize);
4341 if (!data3)
4342 exit (1);
4343 if (read (fd, data3, pagesize) != pagesize)
4344 exit (1);
4345 for (i = 0; i < pagesize; ++i)
4346 if (*(data + i) != *(data3 + i))
4347 exit (1);
4348 close (fd);
4349 exit (0);
4350}
4351_ACEOF
4352rm -f conftest$ac_exeext
4353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 (eval $ac_link) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_mmap_fixed_mapped=yes
4364else
4365 echo "$as_me: program exited with status $ac_status" >&5
4366echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369( exit $ac_status )
4370ac_cv_func_mmap_fixed_mapped=no
4371fi
4372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4373fi
4374fi
4375echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4376echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4377if test $ac_cv_func_mmap_fixed_mapped = yes; then
4378
4379cat >>confdefs.h <<\_ACEOF
4380#define HAVE_MMAP 1
4381_ACEOF
4382
4383fi
4384rm -f conftest.mmap
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4397unistd.h values.h sys/param.h
4398do
4399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405fi
4406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408else
4409 # Is the header compilable?
4410echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
4418$ac_includes_default
4419#include <$ac_header>
4420_ACEOF
4421rm -f conftest.$ac_objext
4422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_header_compiler=yes
4444else
4445 echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448ac_header_compiler=no
4449fi
4450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452echo "${ECHO_T}$ac_header_compiler" >&6
4453
4454# Is the header present?
4455echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4457cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h. */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h. */
4463#include <$ac_header>
4464_ACEOF
4465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null; then
4473 if test -s conftest.err; then
4474 ac_cpp_err=$ac_c_preproc_warn_flag
4475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476 else
4477 ac_cpp_err=
4478 fi
4479else
4480 ac_cpp_err=yes
4481fi
4482if test -z "$ac_cpp_err"; then
4483 ac_header_preproc=yes
4484else
4485 echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ac_header_preproc=no
4489fi
4490rm -f conftest.err conftest.$ac_ext
4491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492echo "${ECHO_T}$ac_header_preproc" >&6
4493
4494# So? What about this header?
4495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496 yes:no: )
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501 ac_header_preproc=yes
4502 ;;
4503 no:yes:* )
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4516 (
4517 cat <<\_ASBOX
4518## ------------------------------------------ ##
4519## Report this to the AC_PACKAGE_NAME lists. ##
4520## ------------------------------------------ ##
4521_ASBOX
4522 ) |
4523 sed "s/^/$as_me: WARNING: /" >&2
4524 ;;
4525esac
4526echo "$as_me:$LINENO: checking for $ac_header" >&5
4527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531 eval "$as_ac_Header=\$ac_header_preproc"
4532fi
4533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4535
4536fi
4537if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538 cat >>confdefs.h <<_ACEOF
4539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4540_ACEOF
4541
4542fi
4543
4544done
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4557__argz_count __argz_stringify __argz_next
4558do
4559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4560echo "$as_me:$LINENO: checking for $ac_func" >&5
4561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562if eval "test \"\${$as_ac_var+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565 cat >conftest.$ac_ext <<_ACEOF
4566/* confdefs.h. */
4567_ACEOF
4568cat confdefs.h >>conftest.$ac_ext
4569cat >>conftest.$ac_ext <<_ACEOF
4570/* end confdefs.h. */
4571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4573#define $ac_func innocuous_$ac_func
4574
4575/* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below.
4577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 <limits.h> exists even on freestanding compilers. */
4579
4580#ifdef __STDC__
4581# include <limits.h>
4582#else
4583# include <assert.h>
4584#endif
4585
4586#undef $ac_func
4587
4588/* Override any gcc2 internal prototype to avoid an error. */
4589#ifdef __cplusplus
4590extern "C"
4591{
4592#endif
4593/* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4595char $ac_func ();
4596/* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600choke me
4601#else
4602char (*f) () = $ac_func;
4603#endif
4604#ifdef __cplusplus
4605}
4606#endif
4607
4608int
4609main ()
4610{
4611return f != $ac_func;
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext conftest$ac_exeext
4617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 eval "$as_ac_var=yes"
4639else
4640 echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
4643eval "$as_ac_var=no"
4644fi
4645rm -f conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext conftest.$ac_ext
4647fi
4648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650if test `eval echo '${'$as_ac_var'}'` = yes; then
4651 cat >>confdefs.h <<_ACEOF
4652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4653_ACEOF
4654
4655fi
4656done
4657
4658
4659 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4660
4661for ac_func in stpcpy
4662do
4663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4664echo "$as_me:$LINENO: checking for $ac_func" >&5
4665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4666if eval "test \"\${$as_ac_var+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669 cat >conftest.$ac_ext <<_ACEOF
4670/* confdefs.h. */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h. */
4675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4677#define $ac_func innocuous_$ac_func
4678
4679/* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func (); below.
4681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 <limits.h> exists even on freestanding compilers. */
4683
4684#ifdef __STDC__
4685# include <limits.h>
4686#else
4687# include <assert.h>
4688#endif
4689
4690#undef $ac_func
4691
4692/* Override any gcc2 internal prototype to avoid an error. */
4693#ifdef __cplusplus
4694extern "C"
4695{
4696#endif
4697/* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4699char $ac_func ();
4700/* The GNU C library defines this for functions which it implements
4701 to always fail with ENOSYS. Some functions are actually named
4702 something starting with __ and the normal name is an alias. */
4703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4704choke me
4705#else
4706char (*f) () = $ac_func;
4707#endif
4708#ifdef __cplusplus
4709}
4710#endif
4711
4712int
4713main ()
4714{
4715return f != $ac_func;
4716 ;
4717 return 0;
4718}
4719_ACEOF
4720rm -f conftest.$ac_objext conftest$ac_exeext
4721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 eval "$as_ac_var=yes"
4743else
4744 echo "$as_me: failed program was:" >&5
4745sed 's/^/| /' conftest.$ac_ext >&5
4746
4747eval "$as_ac_var=no"
4748fi
4749rm -f conftest.err conftest.$ac_objext \
4750 conftest$ac_exeext conftest.$ac_ext
4751fi
4752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4754if test `eval echo '${'$as_ac_var'}'` = yes; then
4755 cat >>confdefs.h <<_ACEOF
4756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4757_ACEOF
4758
4759fi
4760done
4761
4762 fi
4763 if test "${ac_cv_func_stpcpy}" = "yes"; then
4764
4765cat >>confdefs.h <<\_ACEOF
4766#define HAVE_STPCPY 1
4767_ACEOF
4768
4769 fi
4770
4771 if test $ac_cv_header_locale_h = yes; then
4772 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4773echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4774if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
4777 cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h. */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h. */
4783#include <locale.h>
4784int
4785main ()
4786{
4787return LC_MESSAGES
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792rm -f conftest.$ac_objext conftest$ac_exeext
4793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 am_cv_val_LC_MESSAGES=yes
4815else
4816 echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819am_cv_val_LC_MESSAGES=no
4820fi
4821rm -f conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823fi
4824echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4825echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4826 if test $am_cv_val_LC_MESSAGES = yes; then
4827
4828cat >>confdefs.h <<\_ACEOF
4829#define HAVE_LC_MESSAGES 1
4830_ACEOF
4831
4832 fi
4833 fi
4834 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4835echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4836 # Check whether --enable-nls or --disable-nls was given.
4837if test "${enable_nls+set}" = set; then
4838 enableval="$enable_nls"
4839 USE_NLS=$enableval
4840else
4841 USE_NLS=yes
4842fi;
4843 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4844echo "${ECHO_T}$USE_NLS" >&6
4845
4846
4847 USE_INCLUDED_LIBINTL=no
4848
4849 if test "$USE_NLS" = "yes"; then
bec39cab
AC
4850 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4851echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4852
4853# Check whether --with-included-gettext or --without-included-gettext was given.
4854if test "${with_included_gettext+set}" = set; then
4855 withval="$with_included_gettext"
4856 nls_cv_force_use_gnu_gettext=$withval
4857else
4858 nls_cv_force_use_gnu_gettext=no
4859fi;
4860 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4861echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4862
4863 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4864 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4865 nls_cv_header_intl=
4866 nls_cv_header_libgt=
a53bf506 4867 CATOBJEXT=
bec39cab
AC
4868
4869 if test "${ac_cv_header_libintl_h+set}" = set; then
4870 echo "$as_me:$LINENO: checking for libintl.h" >&5
4871echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4872if test "${ac_cv_header_libintl_h+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874fi
4875echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4876echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4877else
4878 # Is the header compilable?
4879echo "$as_me:$LINENO: checking libintl.h usability" >&5
4880echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4881cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h. */
4887$ac_includes_default
4888#include <libintl.h>
4889_ACEOF
4890rm -f conftest.$ac_objext
4891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -z "$ac_c_werror_flag"
4900 || test ! -s conftest.err'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; } &&
4906 { ac_try='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_header_compiler=yes
4913else
4914 echo "$as_me: failed program was:" >&5
4915sed 's/^/| /' conftest.$ac_ext >&5
4916
4917ac_header_compiler=no
4918fi
4919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4921echo "${ECHO_T}$ac_header_compiler" >&6
4922
4923# Is the header present?
4924echo "$as_me:$LINENO: checking libintl.h presence" >&5
4925echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4926cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h. */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h. */
4932#include <libintl.h>
4933_ACEOF
4934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null; then
4942 if test -s conftest.err; then
4943 ac_cpp_err=$ac_c_preproc_warn_flag
4944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4945 else
4946 ac_cpp_err=
4947 fi
4948else
4949 ac_cpp_err=yes
4950fi
4951if test -z "$ac_cpp_err"; then
4952 ac_header_preproc=yes
4953else
4954 echo "$as_me: failed program was:" >&5
4955sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 ac_header_preproc=no
4958fi
4959rm -f conftest.err conftest.$ac_ext
4960echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4961echo "${ECHO_T}$ac_header_preproc" >&6
4962
4963# So? What about this header?
4964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4965 yes:no: )
4966 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4967echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4968 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4969echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4970 ac_header_preproc=yes
4971 ;;
4972 no:yes:* )
4973 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4974echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4975 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4976echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4978echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4979 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4980echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4982echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4983 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4984echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4985 (
4986 cat <<\_ASBOX
4987## ------------------------------------------ ##
4988## Report this to the AC_PACKAGE_NAME lists. ##
4989## ------------------------------------------ ##
4990_ASBOX
4991 ) |
4992 sed "s/^/$as_me: WARNING: /" >&2
4993 ;;
4994esac
4995echo "$as_me:$LINENO: checking for libintl.h" >&5
4996echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4997if test "${ac_cv_header_libintl_h+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000 ac_cv_header_libintl_h=$ac_header_preproc
5001fi
5002echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5003echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5004
5005fi
5006if test $ac_cv_header_libintl_h = yes; then
5007 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5008echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5009if test "${gt_cv_func_gettext_libc+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
5018#include <libintl.h>
5019int
5020main ()
5021{
5022return (int) gettext ("")
5023 ;
5024 return 0;
5025}
5026_ACEOF
5027rm -f conftest.$ac_objext conftest$ac_exeext
5028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 gt_cv_func_gettext_libc=yes
5050else
5051 echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054gt_cv_func_gettext_libc=no
5055fi
5056rm -f conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5058fi
5059echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5060echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5061
5062 if test "$gt_cv_func_gettext_libc" != "yes"; then
5063 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5064echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5065if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068 ac_check_lib_save_LIBS=$LIBS
5069LIBS="-lintl $LIBS"
5070cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h. */
5076
5077/* Override any gcc2 internal prototype to avoid an error. */
5078#ifdef __cplusplus
5079extern "C"
5080#endif
5081/* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5083char bindtextdomain ();
5084int
5085main ()
5086{
5087bindtextdomain ();
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092rm -f conftest.$ac_objext conftest$ac_exeext
5093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag"
5102 || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_lib_intl_bindtextdomain=yes
5115else
5116 echo "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
5119ac_cv_lib_intl_bindtextdomain=no
5120fi
5121rm -f conftest.err conftest.$ac_objext \
5122 conftest$ac_exeext conftest.$ac_ext
5123LIBS=$ac_check_lib_save_LIBS
5124fi
5125echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5126echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5127if test $ac_cv_lib_intl_bindtextdomain = yes; then
5128 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5129echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5130if test "${gt_cv_func_gettext_libintl+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133 cat >conftest.$ac_ext <<_ACEOF
5134/* confdefs.h. */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h. */
5139
5140int
5141main ()
5142{
5143return (int) gettext ("")
5144 ;
5145 return 0;
5146}
5147_ACEOF
5148rm -f conftest.$ac_objext conftest$ac_exeext
5149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try='test -s conftest$ac_exeext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 gt_cv_func_gettext_libintl=yes
5171else
5172 echo "$as_me: failed program was:" >&5
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
5175gt_cv_func_gettext_libintl=no
5176fi
5177rm -f conftest.err conftest.$ac_objext \
5178 conftest$ac_exeext conftest.$ac_ext
5179fi
5180echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5181echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5182fi
5183
5184 fi
5185
5186 if test "$gt_cv_func_gettext_libc" = "yes" \
5187 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5188
5189cat >>confdefs.h <<\_ACEOF
5190#define HAVE_GETTEXT 1
5191_ACEOF
5192
5193 # Extract the first word of "msgfmt", so it can be a program name with args.
5194set dummy msgfmt; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_path_MSGFMT+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200 case "$MSGFMT" in
5201 /*)
5202 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5203 ;;
5204 *)
5205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5206 for ac_dir in $PATH; do
5207 test -z "$ac_dir" && ac_dir=.
5208 if test -f $ac_dir/$ac_word; then
5209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5210 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5211 break
5212 fi
5213 fi
5214 done
5215 IFS="$ac_save_ifs"
5216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5217 ;;
5218esac
5219fi
5220MSGFMT="$ac_cv_path_MSGFMT"
5221if test -n "$MSGFMT"; then
5222 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5223echo "${ECHO_T}$MSGFMT" >&6
5224else
5225 echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
5227fi
5228 if test "$MSGFMT" != "no"; then
5229
5230for ac_func in dcgettext
5231do
5232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5233echo "$as_me:$LINENO: checking for $ac_func" >&5
5234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5235if eval "test \"\${$as_ac_var+set}\" = set"; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
5244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5246#define $ac_func innocuous_$ac_func
5247
5248/* System header to define __stub macros and hopefully few prototypes,
5249 which can conflict with char $ac_func (); below.
5250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5251 <limits.h> exists even on freestanding compilers. */
5252
5253#ifdef __STDC__
5254# include <limits.h>
5255#else
5256# include <assert.h>
5257#endif
5258
5259#undef $ac_func
5260
5261/* Override any gcc2 internal prototype to avoid an error. */
5262#ifdef __cplusplus
5263extern "C"
5264{
5265#endif
5266/* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5268char $ac_func ();
5269/* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
5272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5273choke me
5274#else
5275char (*f) () = $ac_func;
5276#endif
5277#ifdef __cplusplus
5278}
5279#endif
5280
5281int
5282main ()
5283{
5284return f != $ac_func;
5285 ;
5286 return 0;
5287}
5288_ACEOF
5289rm -f conftest.$ac_objext conftest$ac_exeext
5290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest$ac_exeext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 eval "$as_ac_var=yes"
5312else
5313 echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316eval "$as_ac_var=no"
5317fi
5318rm -f conftest.err conftest.$ac_objext \
5319 conftest$ac_exeext conftest.$ac_ext
5320fi
5321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5323if test `eval echo '${'$as_ac_var'}'` = yes; then
5324 cat >>confdefs.h <<_ACEOF
5325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5326_ACEOF
5327
5328fi
5329done
5330
5331 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5332set dummy gmsgfmt; ac_word=$2
5333echo "$as_me:$LINENO: checking for $ac_word" >&5
5334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5335if test "${ac_cv_path_GMSGFMT+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338 case $GMSGFMT in
5339 [\\/]* | ?:[\\/]*)
5340 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5341 ;;
5342 *)
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354done
5355done
5356
5357 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5358 ;;
5359esac
5360fi
5361GMSGFMT=$ac_cv_path_GMSGFMT
5362
5363if test -n "$GMSGFMT"; then
5364 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5365echo "${ECHO_T}$GMSGFMT" >&6
5366else
5367 echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6
5369fi
5370
5371 # Extract the first word of "xgettext", so it can be a program name with args.
5372set dummy xgettext; ac_word=$2
5373echo "$as_me:$LINENO: checking for $ac_word" >&5
5374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375if test "${ac_cv_path_XGETTEXT+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378 case "$XGETTEXT" in
5379 /*)
5380 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5381 ;;
5382 *)
5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5384 for ac_dir in $PATH; do
5385 test -z "$ac_dir" && ac_dir=.
5386 if test -f $ac_dir/$ac_word; then
5387 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5388 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5389 break
5390 fi
5391 fi
5392 done
5393 IFS="$ac_save_ifs"
5394 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5395 ;;
5396esac
5397fi
5398XGETTEXT="$ac_cv_path_XGETTEXT"
5399if test -n "$XGETTEXT"; then
5400 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5401echo "${ECHO_T}$XGETTEXT" >&6
5402else
5403 echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6
5405fi
5406
5407 cat >conftest.$ac_ext <<_ACEOF
5408/* confdefs.h. */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
5413
5414int
5415main ()
5416{
5417extern int _nl_msg_cat_cntr;
5418 return _nl_msg_cat_cntr
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423rm -f conftest.$ac_objext conftest$ac_exeext
5424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 CATOBJEXT=.gmo
5446 DATADIRNAME=share
5447else
5448 echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
5451CATOBJEXT=.mo
5452 DATADIRNAME=lib
5453fi
5454rm -f conftest.err conftest.$ac_objext \
5455 conftest$ac_exeext conftest.$ac_ext
5456 INSTOBJEXT=.mo
5457 fi
5458 fi
5459
5460fi
5461
5462
5463
5464
a53bf506 5465 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
5466 # Neither gettext nor catgets in included in the C library.
5467 # Fall back on GNU gettext library (assuming it is present).
5468 nls_cv_use_gnu_gettext=yes
bec39cab
AC
5469 fi
5470 fi
5471
5472 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5473 INTLOBJS="\$(GETTOBJS)"
5474 # Extract the first word of "msgfmt", so it can be a program name with args.
5475set dummy msgfmt; ac_word=$2
5476echo "$as_me:$LINENO: checking for $ac_word" >&5
5477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478if test "${ac_cv_path_MSGFMT+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481 case "$MSGFMT" in
5482 /*)
5483 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5484 ;;
5485 *)
5486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5487 for ac_dir in $PATH; do
5488 test -z "$ac_dir" && ac_dir=.
5489 if test -f $ac_dir/$ac_word; then
5490 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5491 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5492 break
5493 fi
5494 fi
5495 done
5496 IFS="$ac_save_ifs"
5497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5498 ;;
5499esac
5500fi
5501MSGFMT="$ac_cv_path_MSGFMT"
5502if test -n "$MSGFMT"; then
5503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504echo "${ECHO_T}$MSGFMT" >&6
5505else
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508fi
5509
5510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5511set dummy gmsgfmt; ac_word=$2
bec39cab
AC
5512echo "$as_me:$LINENO: checking for $ac_word" >&5
5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514if test "${ac_cv_path_GMSGFMT+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517 case $GMSGFMT in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535
5536 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5537 ;;
5538esac
5539fi
5540GMSGFMT=$ac_cv_path_GMSGFMT
5541
5542if test -n "$GMSGFMT"; then
5543 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544echo "${ECHO_T}$GMSGFMT" >&6
5545else
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548fi
5549
5550 # Extract the first word of "xgettext", so it can be a program name with args.
5551set dummy xgettext; ac_word=$2
5552echo "$as_me:$LINENO: checking for $ac_word" >&5
5553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554if test "${ac_cv_path_XGETTEXT+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557 case "$XGETTEXT" in
5558 /*)
5559 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5560 ;;
5561 *)
5562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5563 for ac_dir in $PATH; do
5564 test -z "$ac_dir" && ac_dir=.
5565 if test -f $ac_dir/$ac_word; then
5566 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5567 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5568 break
5569 fi
5570 fi
5571 done
5572 IFS="$ac_save_ifs"
5573 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5574 ;;
5575esac
5576fi
5577XGETTEXT="$ac_cv_path_XGETTEXT"
5578if test -n "$XGETTEXT"; then
5579 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5580echo "${ECHO_T}$XGETTEXT" >&6
5581else
5582 echo "$as_me:$LINENO: result: no" >&5
5583echo "${ECHO_T}no" >&6
5584fi
5585
5586
5587 USE_INCLUDED_LIBINTL=yes
5588 CATOBJEXT=.gmo
5589 INSTOBJEXT=.mo
5590 DATADIRNAME=share
5591 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5592 INTLLIBS=$INTLDEPS
5593 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5594 nls_cv_header_intl=libintl.h
5595 nls_cv_header_libgt=libgettext.h
5596 fi
5597
5598 if test "$XGETTEXT" != ":"; then
5599 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5600 : ;
5601 else
5602 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5603echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5604 XGETTEXT=":"
5605 fi
5606 fi
5607
5608 # We need to process the po/ directory.
5609 POSUB=po
5610 else
5611 DATADIRNAME=share
5612 nls_cv_header_intl=libintl.h
5613 nls_cv_header_libgt=libgettext.h
5614 fi
5615
5616 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5617 # because some of the sources are only built for this goal.
5618 if test "$PACKAGE" = gettext; then
5619 USE_NLS=yes
5620 USE_INCLUDED_LIBINTL=yes
5621 fi
5622
5623 for lang in $ALL_LINGUAS; do
5624 GMOFILES="$GMOFILES $lang.gmo"
5625 POFILES="$POFILES $lang.po"
5626 done
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
c46f8c51
AC
5639 if test "x$CATOBJEXT" != "x"; then
5640
5641cat >>confdefs.h <<\_ACEOF
5642#define ENABLE_NLS 1
5643_ACEOF
5644
5645 fi
bec39cab
AC
5646
5647
5648 if test "x$CATOBJEXT" != "x"; then
5649 if test "x$ALL_LINGUAS" = "x"; then
5650 LINGUAS=
5651 else
5652 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5653echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5654 NEW_LINGUAS=
5655 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5656 case "$ALL_LINGUAS" in
5657 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5658 esac
5659 done
5660 LINGUAS=$NEW_LINGUAS
5661 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5662echo "${ECHO_T}$LINGUAS" >&6
5663 fi
5664
5665 if test -n "$LINGUAS"; then
5666 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5667 fi
5668 fi
5669
5670 if test $ac_cv_header_locale_h = yes; then
5671 INCLUDE_LOCALE_H="#include <locale.h>"
5672 else
5673 INCLUDE_LOCALE_H="\
5674/* The system does not provide the header <locale.h>. Take care yourself. */"
5675 fi
5676
5677
5678 if test -f $srcdir/po2tbl.sed.in; then
5679 if test "$CATOBJEXT" = ".cat"; then
5680 if test "${ac_cv_header_linux_version_h+set}" = set; then
5681 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5682echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5683if test "${ac_cv_header_linux_version_h+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685fi
5686echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5687echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5688else
5689 # Is the header compilable?
5690echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5691echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5692cat >conftest.$ac_ext <<_ACEOF
5693/* confdefs.h. */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h. */
5698$ac_includes_default
5699#include <linux/version.h>
5700_ACEOF
5701rm -f conftest.$ac_objext
5702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_header_compiler=yes
5724else
5725 echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728ac_header_compiler=no
5729fi
5730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5732echo "${ECHO_T}$ac_header_compiler" >&6
5733
5734# Is the header present?
5735echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5736echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5737cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h. */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h. */
5743#include <linux/version.h>
5744_ACEOF
5745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } >/dev/null; then
5753 if test -s conftest.err; then
5754 ac_cpp_err=$ac_c_preproc_warn_flag
5755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5756 else
5757 ac_cpp_err=
5758 fi
5759else
5760 ac_cpp_err=yes
5761fi
5762if test -z "$ac_cpp_err"; then
5763 ac_header_preproc=yes
5764else
5765 echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_header_preproc=no
5769fi
5770rm -f conftest.err conftest.$ac_ext
5771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5772echo "${ECHO_T}$ac_header_preproc" >&6
5773
5774# So? What about this header?
5775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5776 yes:no: )
5777 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5778echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5780echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5781 ac_header_preproc=yes
5782 ;;
5783 no:yes:* )
5784 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5785echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5787echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5789echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5791echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5793echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5794 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5795echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5796 (
5797 cat <<\_ASBOX
5798## ------------------------------------------ ##
5799## Report this to the AC_PACKAGE_NAME lists. ##
5800## ------------------------------------------ ##
5801_ASBOX
5802 ) |
5803 sed "s/^/$as_me: WARNING: /" >&2
5804 ;;
5805esac
5806echo "$as_me:$LINENO: checking for linux/version.h" >&5
5807echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5808if test "${ac_cv_header_linux_version_h+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 ac_cv_header_linux_version_h=$ac_header_preproc
5812fi
5813echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5814echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5815
5816fi
5817if test $ac_cv_header_linux_version_h = yes; then
5818 msgformat=linux
5819else
5820 msgformat=xopen
5821fi
5822
5823
5824
5825 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5826 fi
5827 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5828 $srcdir/po2tbl.sed.in > po2tbl.sed
5829 fi
5830
5831 if test "$PACKAGE" = "gettext"; then
5832 GT_NO="#NO#"
5833 GT_YES=
5834 else
5835 GT_NO=
5836 GT_YES="#YES#"
5837 fi
5838
5839
5840
5841 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5842
5843
5844 l=
5845
5846
5847 if test -f $srcdir/po/POTFILES.in; then
5848 test -d po || mkdir po
5849 if test "x$srcdir" != "x."; then
5850 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5851 posrcprefix="$srcdir/"
5852 else
5853 posrcprefix="../$srcdir/"
5854 fi
5855 else
5856 posrcprefix="../"
5857 fi
5858 rm -f po/POTFILES
5859 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5860 < $srcdir/po/POTFILES.in > po/POTFILES
5861 fi
5862
5863
5864localedir='${datadir}/locale'
5865
5866
5867if test "x$POSUB" != x; then
5868
5869 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5870echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5871 # Look for .po and .gmo files in the source directory.
5872 CATALOGS=
5873 XLINGUAS=
5874 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5875 # If there aren't any .gmo files the shell will give us the
5876 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5877 # weeded out.
5878 case "$cat" in *\**)
5879 continue;;
5880 esac
5881 # The quadruple backslash is collapsed to a double backslash
5882 # by the backticks, then collapsed again by the double quotes,
5883 # leaving us with one backslash in the sed expression (right
5884 # before the dot that mustn't act as a wildcard).
5885 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5886 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5887 # The user is allowed to set LINGUAS to a list of languages to
5888 # install catalogs for. If it's empty that means "all of them."
5889 if test "x$LINGUAS" = x; then
5890 CATALOGS="$CATALOGS $cat"
5891 XLINGUAS="$XLINGUAS $lang"
5892 else
5893 case "$LINGUAS" in *$lang*)
5894 CATALOGS="$CATALOGS $cat"
5895 XLINGUAS="$XLINGUAS $lang"
5896 ;;
5897 esac
5898 fi
5899 done
5900 LINGUAS="$XLINGUAS"
5901 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5902echo "${ECHO_T}$LINGUAS" >&6
5903
5904 CONFIG_ALL="$CONFIG_ALL all-po"
5905 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5906 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5907 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5908fi
5909
5910PACKAGE=gdb
5911
5912cat >>confdefs.h <<_ACEOF
5913#define PACKAGE "$PACKAGE"
5914_ACEOF
5915
5916
5917
5918debugdir=${libdir}/debug
5919
5920
5921# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5922if test "${with_separate_debug_dir+set}" = set; then
5923 withval="$with_separate_debug_dir"
5924 debugdir="${withval}"
5925fi;
5926
5927
5928 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5930 ac_define_dir=`eval echo $debugdir`
5931 ac_define_dir=`eval echo $ac_define_dir`
5932
5933cat >>confdefs.h <<_ACEOF
5934#define DEBUGDIR "$ac_define_dir"
5935_ACEOF
5936
5937
5938#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5939
5940
5941
5942subdirs="$subdirs doc testsuite"
5943
5944
5945. $srcdir/configure.host
5946
5947. $srcdir/configure.tgt
5948
5949# Fetch the default architecture and default target vector from BFD.
5950targ=$target; . $srcdir/../bfd/config.bfd
5951
5952# We only want the first architecture, so strip off the others if
5953# there is more than one.
5954targ_archs=`echo $targ_archs | sed 's/ .*//'`
5955
5956if test "x$targ_archs" != x; then
5957
5958cat >>confdefs.h <<_ACEOF
5959#define DEFAULT_BFD_ARCH $targ_archs
5960_ACEOF
5961
5962fi
5963if test "x$targ_defvec" != x; then
5964
5965cat >>confdefs.h <<_ACEOF
5966#define DEFAULT_BFD_VEC $targ_defvec
5967_ACEOF
5968
5969fi
5970
5971test "$program_prefix" != NONE &&
5972 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5973# Use a double $ so make ignores it.
5974test "$program_suffix" != NONE &&
5975 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5976# Double any \ or $. echo might interpret backslashes.
5977# By default was `s,x,x', remove it if useless.
5978cat <<\_ACEOF >conftest.sed
5979s/[\\$]/&&/g;s/;s,x,x,$//
5980_ACEOF
5981program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5982rm conftest.sed
5983
5984
5985# The CLI cannot be disabled yet, but may be in the future.
5986
5987# Enable CLI.
5988# Check whether --enable-gdbcli or --disable-gdbcli was given.
5989if test "${enable_gdbcli+set}" = set; then
5990 enableval="$enable_gdbcli"
5991 case $enableval in
5992 yes)
5993 ;;
5994 no)
5995 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5996echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5997 { (exit 1); exit 1; }; } ;;
5998 *)
5999 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6000echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6001 { (exit 1); exit 1; }; } ;;
6002 esac
6003else
6004 enable_gdbcli=yes
6005fi;
6006if test x"$enable_gdbcli" = xyes; then
6007 if test -d $srcdir/cli; then
6008 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6009 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6010 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6011 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6012 fi
6013fi
6014
6015# Enable MI.
6016# Check whether --enable-gdbmi or --disable-gdbmi was given.
6017if test "${enable_gdbmi+set}" = set; then
6018 enableval="$enable_gdbmi"
6019 case $enableval in
6020 yes | no)
6021 ;;
6022 *)
6023 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6024echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6025 { (exit 1); exit 1; }; } ;;
6026 esac
6027else
6028 enable_gdbmi=yes
6029fi;
6030if test x"$enable_gdbmi" = xyes; then
6031 if test -d $srcdir/mi; then
6032 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6033 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6034 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6035 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6036 fi
6037fi
6038
6039# Enable TUI.
6040# Check whether --enable-tui or --disable-tui was given.
6041if test "${enable_tui+set}" = set; then
6042 enableval="$enable_tui"
6043 case $enableval in
6044 yes | no)
6045 ;;
6046 *)
6047 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6048echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6049 { (exit 1); exit 1; }; } ;;
6050 esac
6051else
6052 enable_tui=yes
6053fi;
6054
6055# Enable gdbtk.
6056# Check whether --enable-gdbtk or --disable-gdbtk was given.
6057if test "${enable_gdbtk+set}" = set; then
6058 enableval="$enable_gdbtk"
6059 case $enableval in
6060 yes | no)
6061 ;;
6062 *)
6063 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6064echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6065 { (exit 1); exit 1; }; } ;;
6066 esac
6067else
04ac69aa 6068 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
6069 enable_gdbtk=yes
6070 else
6071 enable_gdbtk=no
6072 fi
6073fi;
6074# We unconditionally disable gdbtk tests on selected platforms.
6075case $host_os in
6076 go32* | windows*)
6077 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6078echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6079 enable_gdbtk=no ;;
6080esac
6081
6082# Libunwind support.
6083
6084# Check whether --with-libunwind or --without-libunwind was given.
6085if test "${with_libunwind+set}" = set; then
6086 withval="$with_libunwind"
6087 case "${withval}" in
6088 yes) enable_libunwind=yes ;;
6089 no) enable_libunwind=no ;;
6090 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6091echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6092 { (exit 1); exit 1; }; } ;;
6093esac
6094else
6095
6096
6097for ac_header in libunwind.h
6098do
6099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100if eval "test \"\${$as_ac_Header+set}\" = set"; then
6101 echo "$as_me:$LINENO: checking for $ac_header" >&5
6102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6103if eval "test \"\${$as_ac_Header+set}\" = set"; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105fi
6106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6108else
6109 # Is the header compilable?
6110echo "$as_me:$LINENO: checking $ac_header usability" >&5
6111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6112cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h. */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h. */
6118$ac_includes_default
6119#include <$ac_header>
6120_ACEOF
6121rm -f conftest.$ac_objext
6122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -z "$ac_c_werror_flag"
6131 || test ! -s conftest.err'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; } &&
6137 { ac_try='test -s conftest.$ac_objext'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 ac_header_compiler=yes
6144else
6145 echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148ac_header_compiler=no
6149fi
6150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6152echo "${ECHO_T}$ac_header_compiler" >&6
6153
6154# Is the header present?
6155echo "$as_me:$LINENO: checking $ac_header presence" >&5
6156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6157cat >conftest.$ac_ext <<_ACEOF
6158/* confdefs.h. */
6159_ACEOF
6160cat confdefs.h >>conftest.$ac_ext
6161cat >>conftest.$ac_ext <<_ACEOF
6162/* end confdefs.h. */
6163#include <$ac_header>
6164_ACEOF
6165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } >/dev/null; then
6173 if test -s conftest.err; then
6174 ac_cpp_err=$ac_c_preproc_warn_flag
6175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6176 else
6177 ac_cpp_err=
6178 fi
6179else
6180 ac_cpp_err=yes
6181fi
6182if test -z "$ac_cpp_err"; then
6183 ac_header_preproc=yes
6184else
6185 echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188 ac_header_preproc=no
6189fi
6190rm -f conftest.err conftest.$ac_ext
6191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6192echo "${ECHO_T}$ac_header_preproc" >&6
6193
6194# So? What about this header?
6195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6196 yes:no: )
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6201 ac_header_preproc=yes
6202 ;;
6203 no:yes:* )
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6216 (
6217 cat <<\_ASBOX
6218## ------------------------------------------ ##
6219## Report this to the AC_PACKAGE_NAME lists. ##
6220## ------------------------------------------ ##
6221_ASBOX
6222 ) |
6223 sed "s/^/$as_me: WARNING: /" >&2
6224 ;;
6225esac
6226echo "$as_me:$LINENO: checking for $ac_header" >&5
6227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6228if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230else
6231 eval "$as_ac_Header=\$ac_header_preproc"
6232fi
6233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6235
6236fi
6237if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6240_ACEOF
6241
6242fi
6243
6244done
6245
6246
6247for ac_header in libunwind-ia64.h
6248do
6249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6250if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251 echo "$as_me:$LINENO: checking for $ac_header" >&5
6252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6253if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255fi
6256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6258else
6259 # Is the header compilable?
6260echo "$as_me:$LINENO: checking $ac_header usability" >&5
6261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6262cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h. */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h. */
6268$ac_includes_default
6269#include <$ac_header>
6270_ACEOF
6271rm -f conftest.$ac_objext
6272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_header_compiler=yes
6294else
6295 echo "$as_me: failed program was:" >&5
6296sed 's/^/| /' conftest.$ac_ext >&5
6297
6298ac_header_compiler=no
6299fi
6300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6302echo "${ECHO_T}$ac_header_compiler" >&6
6303
6304# Is the header present?
6305echo "$as_me:$LINENO: checking $ac_header presence" >&5
6306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6307cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h. */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h. */
6313#include <$ac_header>
6314_ACEOF
6315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } >/dev/null; then
6323 if test -s conftest.err; then
6324 ac_cpp_err=$ac_c_preproc_warn_flag
6325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6326 else
6327 ac_cpp_err=
6328 fi
6329else
6330 ac_cpp_err=yes
6331fi
6332if test -z "$ac_cpp_err"; then
6333 ac_header_preproc=yes
6334else
6335 echo "$as_me: failed program was:" >&5
6336sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 ac_header_preproc=no
6339fi
6340rm -f conftest.err conftest.$ac_ext
6341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6342echo "${ECHO_T}$ac_header_preproc" >&6
6343
6344# So? What about this header?
6345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6346 yes:no: )
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6351 ac_header_preproc=yes
6352 ;;
6353 no:yes:* )
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6366 (
6367 cat <<\_ASBOX
6368## ------------------------------------------ ##
6369## Report this to the AC_PACKAGE_NAME lists. ##
6370## ------------------------------------------ ##
6371_ASBOX
6372 ) |
6373 sed "s/^/$as_me: WARNING: /" >&2
6374 ;;
6375esac
6376echo "$as_me:$LINENO: checking for $ac_header" >&5
6377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6378if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381 eval "$as_ac_Header=\$ac_header_preproc"
6382fi
6383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6385
6386fi
6387if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390_ACEOF
6391
6392fi
6393
6394done
6395
6396 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6397 enable_libunwind=yes;
6398 fi
6399
6400fi;
6401
6402if test x"$enable_libunwind" = xyes; then
6403
6404for ac_header in libunwind.h
6405do
6406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo "$as_me:$LINENO: checking for $ac_header" >&5
6409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412fi
6413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6415else
6416 # Is the header compilable?
6417echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419cat >conftest.$ac_ext <<_ACEOF
6420/* confdefs.h. */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
6424/* end confdefs.h. */
6425$ac_includes_default
6426#include <$ac_header>
6427_ACEOF
6428rm -f conftest.$ac_objext
6429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_header_compiler=yes
6451else
6452 echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
6455ac_header_compiler=no
6456fi
6457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459echo "${ECHO_T}$ac_header_compiler" >&6
6460
6461# Is the header present?
6462echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464cat >conftest.$ac_ext <<_ACEOF
6465/* confdefs.h. */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
6469/* end confdefs.h. */
6470#include <$ac_header>
6471_ACEOF
6472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev/null; then
6480 if test -s conftest.err; then
6481 ac_cpp_err=$ac_c_preproc_warn_flag
6482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6483 else
6484 ac_cpp_err=
6485 fi
6486else
6487 ac_cpp_err=yes
6488fi
6489if test -z "$ac_cpp_err"; then
6490 ac_header_preproc=yes
6491else
6492 echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 ac_header_preproc=no
6496fi
6497rm -f conftest.err conftest.$ac_ext
6498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499echo "${ECHO_T}$ac_header_preproc" >&6
6500
6501# So? What about this header?
6502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6503 yes:no: )
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6508 ac_header_preproc=yes
6509 ;;
6510 no:yes:* )
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6523 (
6524 cat <<\_ASBOX
6525## ------------------------------------------ ##
6526## Report this to the AC_PACKAGE_NAME lists. ##
6527## ------------------------------------------ ##
6528_ASBOX
6529 ) |
6530 sed "s/^/$as_me: WARNING: /" >&2
6531 ;;
6532esac
6533echo "$as_me:$LINENO: checking for $ac_header" >&5
6534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538 eval "$as_ac_Header=\$ac_header_preproc"
6539fi
6540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542
6543fi
6544if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h <<_ACEOF
6546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547_ACEOF
6548
6549fi
6550
6551done
6552
6553
6554for ac_header in libunwind-ia64.h
6555do
6556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6557if eval "test \"\${$as_ac_Header+set}\" = set"; then
6558 echo "$as_me:$LINENO: checking for $ac_header" >&5
6559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6560if eval "test \"\${$as_ac_Header+set}\" = set"; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562fi
6563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6565else
6566 # Is the header compilable?
6567echo "$as_me:$LINENO: checking $ac_header usability" >&5
6568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6569cat >conftest.$ac_ext <<_ACEOF
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
6575$ac_includes_default
6576#include <$ac_header>
6577_ACEOF
6578rm -f conftest.$ac_objext
6579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_header_compiler=yes
6601else
6602 echo "$as_me: failed program was:" >&5
6603sed 's/^/| /' conftest.$ac_ext >&5
6604
6605ac_header_compiler=no
6606fi
6607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6609echo "${ECHO_T}$ac_header_compiler" >&6
6610
6611# Is the header present?
6612echo "$as_me:$LINENO: checking $ac_header presence" >&5
6613echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6614cat >conftest.$ac_ext <<_ACEOF
6615/* confdefs.h. */
6616_ACEOF
6617cat confdefs.h >>conftest.$ac_ext
6618cat >>conftest.$ac_ext <<_ACEOF
6619/* end confdefs.h. */
6620#include <$ac_header>
6621_ACEOF
6622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6624 ac_status=$?
6625 grep -v '^ *+' conftest.er1 >conftest.err
6626 rm -f conftest.er1
6627 cat conftest.err >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } >/dev/null; then
6630 if test -s conftest.err; then
6631 ac_cpp_err=$ac_c_preproc_warn_flag
6632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6633 else
6634 ac_cpp_err=
6635 fi
6636else
6637 ac_cpp_err=yes
6638fi
6639if test -z "$ac_cpp_err"; then
6640 ac_header_preproc=yes
6641else
6642 echo "$as_me: failed program was:" >&5
6643sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 ac_header_preproc=no
6646fi
6647rm -f conftest.err conftest.$ac_ext
6648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6649echo "${ECHO_T}$ac_header_preproc" >&6
6650
6651# So? What about this header?
6652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6653 yes:no: )
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6658 ac_header_preproc=yes
6659 ;;
6660 no:yes:* )
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6673 (
6674 cat <<\_ASBOX
6675## ------------------------------------------ ##
6676## Report this to the AC_PACKAGE_NAME lists. ##
6677## ------------------------------------------ ##
6678_ASBOX
6679 ) |
6680 sed "s/^/$as_me: WARNING: /" >&2
6681 ;;
6682esac
6683echo "$as_me:$LINENO: checking for $ac_header" >&5
6684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6685if eval "test \"\${$as_ac_Header+set}\" = set"; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688 eval "$as_ac_Header=\$ac_header_preproc"
6689fi
6690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6692
6693fi
6694if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695 cat >>confdefs.h <<_ACEOF
6696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697_ACEOF
6698
6699fi
6700
6701done
6702
6703 cat >>confdefs.h <<\_ACEOF
6704#define HAVE_LIBUNWIND 1
6705_ACEOF
6706
6707 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6708 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6709 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6710fi
6711
6712# Profiling support.
6713# Check whether --enable-profiling or --disable-profiling was given.
6714if test "${enable_profiling+set}" = set; then
6715 enableval="$enable_profiling"
6716 case $enableval in
6717 yes | no)
6718 ;;
6719 *)
6720 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6721echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6722 { (exit 1); exit 1; }; } ;;
6723 esac
6724else
6725 enable_profiling=no
6726fi;
6727
6728
6729
6730for ac_func in monstartup _mcleanup
6731do
6732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6733echo "$as_me:$LINENO: checking for $ac_func" >&5
6734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6735if eval "test \"\${$as_ac_var+set}\" = set"; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
6738 cat >conftest.$ac_ext <<_ACEOF
6739/* confdefs.h. */
6740_ACEOF
6741cat confdefs.h >>conftest.$ac_ext
6742cat >>conftest.$ac_ext <<_ACEOF
6743/* end confdefs.h. */
6744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6746#define $ac_func innocuous_$ac_func
6747
6748/* System header to define __stub macros and hopefully few prototypes,
6749 which can conflict with char $ac_func (); below.
6750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6751 <limits.h> exists even on freestanding compilers. */
6752
6753#ifdef __STDC__
6754# include <limits.h>
6755#else
6756# include <assert.h>
6757#endif
6758
6759#undef $ac_func
6760
6761/* Override any gcc2 internal prototype to avoid an error. */
6762#ifdef __cplusplus
6763extern "C"
6764{
6765#endif
6766/* We use char because int might match the return type of a gcc2
6767 builtin and then its argument prototype would still apply. */
6768char $ac_func ();
6769/* The GNU C library defines this for functions which it implements
6770 to always fail with ENOSYS. Some functions are actually named
6771 something starting with __ and the normal name is an alias. */
6772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6773choke me
6774#else
6775char (*f) () = $ac_func;
6776#endif
6777#ifdef __cplusplus
6778}
6779#endif
6780
6781int
6782main ()
6783{
6784return f != $ac_func;
6785 ;
6786 return 0;
6787}
6788_ACEOF
6789rm -f conftest.$ac_objext conftest$ac_exeext
6790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791 (eval $ac_link) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try='test -s conftest$ac_exeext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 eval "$as_ac_var=yes"
6812else
6813 echo "$as_me: failed program was:" >&5
6814sed 's/^/| /' conftest.$ac_ext >&5
6815
6816eval "$as_ac_var=no"
6817fi
6818rm -f conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
6820fi
6821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6823if test `eval echo '${'$as_ac_var'}'` = yes; then
6824 cat >>confdefs.h <<_ACEOF
6825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6826_ACEOF
6827
6828fi
6829done
6830
6831echo "$as_me:$LINENO: checking for _etext" >&5
6832echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6833if test "${ac_cv_var__etext+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835else
6836 cat >conftest.$ac_ext <<_ACEOF
6837/* confdefs.h. */
6838_ACEOF
6839cat confdefs.h >>conftest.$ac_ext
6840cat >>conftest.$ac_ext <<_ACEOF
6841/* end confdefs.h. */
6842#include <stdlib.h>
6843extern char _etext;
6844
6845int
6846main ()
6847{
6848free (&_etext);
6849 ;
6850 return 0;
6851}
6852_ACEOF
6853rm -f conftest.$ac_objext conftest$ac_exeext
6854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6855 (eval $ac_link) 2>conftest.er1
6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try='test -z "$ac_c_werror_flag"
6863 || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try='test -s conftest$ac_exeext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_cv_var__etext=yes
6876else
6877 echo "$as_me: failed program was:" >&5
6878sed 's/^/| /' conftest.$ac_ext >&5
6879
6880ac_cv_var__etext=no
6881fi
6882rm -f conftest.err conftest.$ac_objext \
6883 conftest$ac_exeext conftest.$ac_ext
6884fi
6885echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6886echo "${ECHO_T}$ac_cv_var__etext" >&6
6887if test $ac_cv_var__etext = yes; then
6888
6889cat >>confdefs.h <<\_ACEOF
6890#define HAVE__ETEXT 1
6891_ACEOF
6892
6893fi
6894if test "$enable_profiling" = yes ; then
6895 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6896 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6897echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6898 { (exit 1); exit 1; }; }
6899 fi
6900 PROFILE_CFLAGS=-pg
6901 OLD_CFLAGS="$CFLAGS"
6902 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6903
6904 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6905echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6906if test "${ac_cv_cc_supports_pg+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6908else
bec39cab
AC
6909 cat >conftest.$ac_ext <<_ACEOF
6910/* confdefs.h. */
6911_ACEOF
6912cat confdefs.h >>conftest.$ac_ext
6913cat >>conftest.$ac_ext <<_ACEOF
6914/* end confdefs.h. */
6915
6916int
6917main ()
6918{
6919int x;
6920 ;
6921 return 0;
6922}
6923_ACEOF
6924rm -f conftest.$ac_objext
6925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926 (eval $ac_compile) 2>conftest.er1
6927 ac_status=$?
6928 grep -v '^ *+' conftest.er1 >conftest.err
6929 rm -f conftest.er1
6930 cat conftest.err >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } &&
6933 { ac_try='test -z "$ac_c_werror_flag"
6934 || test ! -s conftest.err'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 (eval $ac_try) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; } &&
6940 { ac_try='test -s conftest.$ac_objext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 (eval $ac_try) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 ac_cv_cc_supports_pg=yes
6947else
6948 echo "$as_me: failed program was:" >&5
6949sed 's/^/| /' conftest.$ac_ext >&5
6950
6951ac_cv_cc_supports_pg=no
6952fi
6953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6954fi
6955echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6956echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6957
6958 if test $ac_cv_cc_supports_pg = no; then
6959 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6960echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6961 { (exit 1); exit 1; }; }
6962 fi
6963
6964 CFLAGS="$OLD_CFLAGS"
6965fi
6966
6967# --------------------- #
6968# Checks for programs. #
6969# --------------------- #
6970
6971for ac_prog in gawk mawk nawk awk
6972do
6973 # Extract the first word of "$ac_prog", so it can be a program name with args.
6974set dummy $ac_prog; ac_word=$2
6975echo "$as_me:$LINENO: checking for $ac_word" >&5
6976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6977if test "${ac_cv_prog_AWK+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979else
6980 if test -n "$AWK"; then
6981 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6982else
6983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_AWK="$ac_prog"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994done
6995done
6996
6997fi
6998fi
6999AWK=$ac_cv_prog_AWK
7000if test -n "$AWK"; then
7001 echo "$as_me:$LINENO: result: $AWK" >&5
7002echo "${ECHO_T}$AWK" >&6
7003else
7004 echo "$as_me:$LINENO: result: no" >&5
7005echo "${ECHO_T}no" >&6
7006fi
7007
7008 test -n "$AWK" && break
7009done
7010
7011# Find a good install program. We prefer a C program (faster),
7012# so one script is as good as another. But avoid the broken or
7013# incompatible versions:
7014# SysV /etc/install, /usr/sbin/install
7015# SunOS /usr/etc/install
7016# IRIX /sbin/install
7017# AIX /bin/install
7018# AmigaOS /C/install, which installs bootblocks on floppy discs
7019# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7020# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7021# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7022# OS/2's system install, which has a completely different semantic
7023# ./install, which can be erroneously created by make from ./install.sh.
7024echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7025echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7026if test -z "$INSTALL"; then
7027if test "${ac_cv_path_install+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 # Account for people who put trailing slashes in PATH elements.
7036case $as_dir/ in
7037 ./ | .// | /cC/* | \
7038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7039 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7040 /usr/ucb/* ) ;;
c906108c 7041 *)
bec39cab
AC
7042 # OSF1 and SCO ODT 3.0 have their own names for install.
7043 # Don't use installbsd from OSF since it installs stuff as root
7044 # by default.
7045 for ac_prog in ginstall scoinst install; do
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7048 if test $ac_prog = install &&
7049 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7050 # AIX install. It has an incompatible calling convention.
7051 :
7052 elif test $ac_prog = install &&
7053 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7054 # program-specific install script used by HP pwplus--don't use.
7055 :
7056 else
7057 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7058 break 3
7059 fi
7060 fi
7061 done
7062 done
7063 ;;
c906108c 7064esac
bec39cab
AC
7065done
7066
7067
7068fi
7069 if test "${ac_cv_path_install+set}" = set; then
7070 INSTALL=$ac_cv_path_install
7071 else
7072 # As a last resort, use the slow shell script. We don't cache a
7073 # path for INSTALL within a source directory, because that will
7074 # break other packages using the cache if that directory is
7075 # removed, or if the path is relative.
7076 INSTALL=$ac_install_sh
7077 fi
7078fi
7079echo "$as_me:$LINENO: result: $INSTALL" >&5
7080echo "${ECHO_T}$INSTALL" >&6
7081
7082# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7083# It thinks the first close brace ends the variable substitution.
7084test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7085
7086test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7087
7088test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7089
7090echo "$as_me:$LINENO: checking whether ln -s works" >&5
7091echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7092LN_S=$as_ln_s
7093if test "$LN_S" = "ln -s"; then
7094 echo "$as_me:$LINENO: result: yes" >&5
7095echo "${ECHO_T}yes" >&6
7096else
7097 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7098echo "${ECHO_T}no, using $LN_S" >&6
7099fi
7100
7101if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7103set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7104echo "$as_me:$LINENO: checking for $ac_word" >&5
7105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7106if test "${ac_cv_prog_RANLIB+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108else
7109 if test -n "$RANLIB"; then
7110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7111else
7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7122 fi
7123done
7124done
7125
7126fi
7127fi
7128RANLIB=$ac_cv_prog_RANLIB
7129if test -n "$RANLIB"; then
7130 echo "$as_me:$LINENO: result: $RANLIB" >&5
7131echo "${ECHO_T}$RANLIB" >&6
7132else
7133 echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6
7135fi
7136
7137fi
7138if test -z "$ac_cv_prog_RANLIB"; then
7139 ac_ct_RANLIB=$RANLIB
7140 # Extract the first word of "ranlib", so it can be a program name with args.
7141set dummy ranlib; ac_word=$2
7142echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7144if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 if test -n "$ac_ct_RANLIB"; then
7148 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7149else
7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_ac_ct_RANLIB="ranlib"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161done
7162done
7163
7164 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7165fi
7166fi
7167ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7168if test -n "$ac_ct_RANLIB"; then
7169 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7170echo "${ECHO_T}$ac_ct_RANLIB" >&6
7171else
7172 echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6
7174fi
7175
7176 RANLIB=$ac_ct_RANLIB
7177else
7178 RANLIB="$ac_cv_prog_RANLIB"
7179fi
7180
7181for ac_prog in 'bison -y' byacc
7182do
7183 # Extract the first word of "$ac_prog", so it can be a program name with args.
7184set dummy $ac_prog; ac_word=$2
7185echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187if test "${ac_cv_prog_YACC+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190 if test -n "$YACC"; then
7191 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_YACC="$ac_prog"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205done
7206
7207fi
7208fi
7209YACC=$ac_cv_prog_YACC
7210if test -n "$YACC"; then
7211 echo "$as_me:$LINENO: result: $YACC" >&5
7212echo "${ECHO_T}$YACC" >&6
7213else
7214 echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
7216fi
7217
7218 test -n "$YACC" && break
7219done
7220test -n "$YACC" || YACC="yacc"
7221
7222
7223if test -n "$ac_tool_prefix"; then
7224 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7225set dummy ${ac_tool_prefix}ar; ac_word=$2
7226echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228if test "${ac_cv_prog_AR+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231 if test -n "$AR"; then
7232 ac_cv_prog_AR="$AR" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_AR="${ac_tool_prefix}ar"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245done
7246done
7247
7248fi
7249fi
7250AR=$ac_cv_prog_AR
7251if test -n "$AR"; then
7252 echo "$as_me:$LINENO: result: $AR" >&5
7253echo "${ECHO_T}$AR" >&6
7254else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257fi
7258
7259fi
7260if test -z "$ac_cv_prog_AR"; then
7261 ac_ct_AR=$AR
7262 # Extract the first word of "ar", so it can be a program name with args.
7263set dummy ar; ac_word=$2
7264echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7266if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269 if test -n "$ac_ct_AR"; then
7270 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7271else
7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_ac_ct_AR="ar"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283done
7284done
7285
7286fi
7287fi
7288ac_ct_AR=$ac_cv_prog_ac_ct_AR
7289if test -n "$ac_ct_AR"; then
7290 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7291echo "${ECHO_T}$ac_ct_AR" >&6
7292else
7293 echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6
7295fi
7296
7297 AR=$ac_ct_AR
7298else
7299 AR="$ac_cv_prog_AR"
7300fi
7301
7302if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7304set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7305echo "$as_me:$LINENO: checking for $ac_word" >&5
7306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7307if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309else
7310 if test -n "$DLLTOOL"; then
7311 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7312else
7313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7323 fi
7324done
7325done
7326
7327fi
7328fi
7329DLLTOOL=$ac_cv_prog_DLLTOOL
7330if test -n "$DLLTOOL"; then
7331 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7332echo "${ECHO_T}$DLLTOOL" >&6
7333else
7334 echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6
7336fi
7337
7338fi
7339if test -z "$ac_cv_prog_DLLTOOL"; then
7340 ac_ct_DLLTOOL=$DLLTOOL
7341 # Extract the first word of "dlltool", so it can be a program name with args.
7342set dummy dlltool; ac_word=$2
7343echo "$as_me:$LINENO: checking for $ac_word" >&5
7344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7345if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347else
7348 if test -n "$ac_ct_DLLTOOL"; then
7349 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7350else
7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362done
7363done
7364
7365fi
7366fi
7367ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7368if test -n "$ac_ct_DLLTOOL"; then
7369 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7370echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7371else
7372 echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6
7374fi
7375
7376 DLLTOOL=$ac_ct_DLLTOOL
7377else
7378 DLLTOOL="$ac_cv_prog_DLLTOOL"
7379fi
7380
7381if test -n "$ac_tool_prefix"; then
7382 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7383set dummy ${ac_tool_prefix}windres; ac_word=$2
7384echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386if test "${ac_cv_prog_WINDRES+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389 if test -n "$WINDRES"; then
7390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7391else
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403done
7404done
7405
7406fi
7407fi
7408WINDRES=$ac_cv_prog_WINDRES
7409if test -n "$WINDRES"; then
7410 echo "$as_me:$LINENO: result: $WINDRES" >&5
7411echo "${ECHO_T}$WINDRES" >&6
7412else
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415fi
7416
7417fi
7418if test -z "$ac_cv_prog_WINDRES"; then
7419 ac_ct_WINDRES=$WINDRES
7420 # Extract the first word of "windres", so it can be a program name with args.
7421set dummy windres; ac_word=$2
7422echo "$as_me:$LINENO: checking for $ac_word" >&5
7423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427 if test -n "$ac_ct_WINDRES"; then
7428 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_ac_ct_WINDRES="windres"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441done
7442done
7443
7444fi
7445fi
7446ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7447if test -n "$ac_ct_WINDRES"; then
7448 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7449echo "${ECHO_T}$ac_ct_WINDRES" >&6
7450else
7451 echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6
c906108c 7453fi
bec39cab
AC
7454
7455 WINDRES=$ac_ct_WINDRES
c906108c 7456else
bec39cab 7457 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7458fi
7459
bec39cab
AC
7460
7461# Needed for GNU/Hurd.
7462if test -n "$ac_tool_prefix"; then
7463 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7464set dummy ${ac_tool_prefix}mig; ac_word=$2
7465echo "$as_me:$LINENO: checking for $ac_word" >&5
7466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7467if test "${ac_cv_prog_MIG+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7469else
bec39cab
AC
7470 if test -n "$MIG"; then
7471 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7472else
7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474for as_dir in $PATH
7475do
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7483 fi
7484done
7485done
7486
c906108c 7487fi
bec39cab
AC
7488fi
7489MIG=$ac_cv_prog_MIG
7490if test -n "$MIG"; then
7491 echo "$as_me:$LINENO: result: $MIG" >&5
7492echo "${ECHO_T}$MIG" >&6
c906108c 7493else
bec39cab
AC
7494 echo "$as_me:$LINENO: result: no" >&5
7495echo "${ECHO_T}no" >&6
c906108c
SS
7496fi
7497
bec39cab
AC
7498fi
7499if test -z "$ac_cv_prog_MIG"; then
7500 ac_ct_MIG=$MIG
7501 # Extract the first word of "mig", so it can be a program name with args.
7502set dummy mig; ac_word=$2
7503echo "$as_me:$LINENO: checking for $ac_word" >&5
7504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7505if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507else
7508 if test -n "$ac_ct_MIG"; then
7509 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7510else
7511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_ac_ct_MIG="mig"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522done
7523done
c906108c 7524
bec39cab
AC
7525fi
7526fi
7527ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7528if test -n "$ac_ct_MIG"; then
7529 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7530echo "${ECHO_T}$ac_ct_MIG" >&6
7531else
7532 echo "$as_me:$LINENO: result: no" >&5
7533echo "${ECHO_T}no" >&6
7534fi
c906108c 7535
bec39cab
AC
7536 MIG=$ac_ct_MIG
7537else
7538 MIG="$ac_cv_prog_MIG"
7539fi
c906108c 7540
c906108c 7541
bec39cab
AC
7542# ---------------------- #
7543# Checks for libraries. #
7544# ---------------------- #
c906108c 7545
bec39cab 7546# We might need to link with -lm; most simulators need it.
c906108c 7547
bec39cab
AC
7548echo "$as_me:$LINENO: checking for main in -lm" >&5
7549echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7550if test "${ac_cv_lib_m_main+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552else
7553 ac_check_lib_save_LIBS=$LIBS
7554LIBS="-lm $LIBS"
7555cat >conftest.$ac_ext <<_ACEOF
7556/* confdefs.h. */
7557_ACEOF
7558cat confdefs.h >>conftest.$ac_ext
7559cat >>conftest.$ac_ext <<_ACEOF
7560/* end confdefs.h. */
c906108c 7561
c906108c 7562
bec39cab
AC
7563int
7564main ()
7565{
7566main ();
7567 ;
7568 return 0;
7569}
7570_ACEOF
7571rm -f conftest.$ac_objext conftest$ac_exeext
7572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573 (eval $ac_link) 2>conftest.er1
7574 ac_status=$?
7575 grep -v '^ *+' conftest.er1 >conftest.err
7576 rm -f conftest.er1
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try='test -z "$ac_c_werror_flag"
7581 || test ! -s conftest.err'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 (eval $ac_try) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; } &&
7587 { ac_try='test -s conftest$ac_exeext'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 (eval $ac_try) 2>&5
7590 ac_status=$?
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; }; then
7593 ac_cv_lib_m_main=yes
7594else
7595 echo "$as_me: failed program was:" >&5
7596sed 's/^/| /' conftest.$ac_ext >&5
7597
7598ac_cv_lib_m_main=no
7599fi
7600rm -f conftest.err conftest.$ac_objext \
7601 conftest$ac_exeext conftest.$ac_ext
7602LIBS=$ac_check_lib_save_LIBS
7603fi
7604echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7605echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7606if test $ac_cv_lib_m_main = yes; then
7607 cat >>confdefs.h <<_ACEOF
7608#define HAVE_LIBM 1
7609_ACEOF
7610
7611 LIBS="-lm $LIBS"
c906108c 7612
c906108c 7613fi
bec39cab
AC
7614
7615
7616# We need to link with -lw to get `wctype' on Solaris before Solaris
7617# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7618# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7619# is known to have this problem). Therefore we avoid libw if we can.
7620echo "$as_me:$LINENO: checking for wctype" >&5
7621echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7622if test "${ac_cv_func_wctype+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625 cat >conftest.$ac_ext <<_ACEOF
7626/* confdefs.h. */
7627_ACEOF
7628cat confdefs.h >>conftest.$ac_ext
7629cat >>conftest.$ac_ext <<_ACEOF
7630/* end confdefs.h. */
7631/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7633#define wctype innocuous_wctype
7634
7635/* System header to define __stub macros and hopefully few prototypes,
7636 which can conflict with char wctype (); below.
7637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7638 <limits.h> exists even on freestanding compilers. */
7639
7640#ifdef __STDC__
7641# include <limits.h>
7642#else
7643# include <assert.h>
7644#endif
7645
7646#undef wctype
7647
7648/* Override any gcc2 internal prototype to avoid an error. */
7649#ifdef __cplusplus
7650extern "C"
7651{
7652#endif
7653/* We use char because int might match the return type of a gcc2
7654 builtin and then its argument prototype would still apply. */
7655char wctype ();
7656/* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7659#if defined (__stub_wctype) || defined (__stub___wctype)
7660choke me
7661#else
7662char (*f) () = wctype;
7663#endif
7664#ifdef __cplusplus
7665}
7666#endif
7667
7668int
7669main ()
7670{
7671return f != wctype;
7672 ;
7673 return 0;
7674}
7675_ACEOF
7676rm -f conftest.$ac_objext conftest$ac_exeext
7677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7678 (eval $ac_link) 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -z "$ac_c_werror_flag"
7686 || test ! -s conftest.err'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; } &&
7692 { ac_try='test -s conftest$ac_exeext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7698 ac_cv_func_wctype=yes
7699else
7700 echo "$as_me: failed program was:" >&5
7701sed 's/^/| /' conftest.$ac_ext >&5
7702
7703ac_cv_func_wctype=no
7704fi
7705rm -f conftest.err conftest.$ac_objext \
7706 conftest$ac_exeext conftest.$ac_ext
7707fi
7708echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7709echo "${ECHO_T}$ac_cv_func_wctype" >&6
7710if test $ac_cv_func_wctype = yes; then
7711 :
c906108c 7712else
c906108c 7713
bec39cab
AC
7714echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7715echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7716if test "${ac_cv_lib_w_wctype+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719 ac_check_lib_save_LIBS=$LIBS
7720LIBS="-lw $LIBS"
7721cat >conftest.$ac_ext <<_ACEOF
7722/* confdefs.h. */
7723_ACEOF
7724cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h. */
c906108c 7727
bec39cab
AC
7728/* Override any gcc2 internal prototype to avoid an error. */
7729#ifdef __cplusplus
7730extern "C"
7731#endif
7732/* We use char because int might match the return type of a gcc2
7733 builtin and then its argument prototype would still apply. */
7734char wctype ();
7735int
7736main ()
7737{
7738wctype ();
7739 ;
7740 return 0;
7741}
7742_ACEOF
7743rm -f conftest.$ac_objext conftest$ac_exeext
7744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>conftest.er1
7746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -z "$ac_c_werror_flag"
7753 || test ! -s conftest.err'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 (eval $ac_try) 2>&5
7756 ac_status=$?
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; } &&
7759 { ac_try='test -s conftest$ac_exeext'
7760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 (eval $ac_try) 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 ac_cv_lib_w_wctype=yes
7766else
7767 echo "$as_me: failed program was:" >&5
7768sed 's/^/| /' conftest.$ac_ext >&5
7769
7770ac_cv_lib_w_wctype=no
7771fi
7772rm -f conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774LIBS=$ac_check_lib_save_LIBS
7775fi
7776echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7777echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7778if test $ac_cv_lib_w_wctype = yes; then
7779 cat >>confdefs.h <<_ACEOF
7780#define HAVE_LIBW 1
7781_ACEOF
c906108c 7782
bec39cab 7783 LIBS="-lw $LIBS"
c906108c 7784
bec39cab 7785fi
c906108c 7786
bec39cab 7787fi
c906108c 7788
ddc9cd0f 7789
bec39cab
AC
7790# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7791echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7792echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7793if test "${ac_cv_search_gethostbyname+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796 ac_func_search_save_LIBS=$LIBS
7797ac_cv_search_gethostbyname=no
7798cat >conftest.$ac_ext <<_ACEOF
7799/* confdefs.h. */
7800_ACEOF
7801cat confdefs.h >>conftest.$ac_ext
7802cat >>conftest.$ac_ext <<_ACEOF
7803/* end confdefs.h. */
ddc9cd0f 7804
bec39cab
AC
7805/* Override any gcc2 internal prototype to avoid an error. */
7806#ifdef __cplusplus
7807extern "C"
7808#endif
7809/* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7811char gethostbyname ();
7812int
7813main ()
7814{
7815gethostbyname ();
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820rm -f conftest.$ac_objext conftest$ac_exeext
7821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>conftest.er1
7823 ac_status=$?
7824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag"
7830 || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try='test -s conftest$ac_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_search_gethostbyname="none required"
7843else
7844 echo "$as_me: failed program was:" >&5
7845sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7846
bec39cab
AC
7847fi
7848rm -f conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7850if test "$ac_cv_search_gethostbyname" = no; then
7851 for ac_lib in nsl; do
7852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7853 cat >conftest.$ac_ext <<_ACEOF
7854/* confdefs.h. */
7855_ACEOF
7856cat confdefs.h >>conftest.$ac_ext
7857cat >>conftest.$ac_ext <<_ACEOF
7858/* end confdefs.h. */
ddc9cd0f 7859
bec39cab
AC
7860/* Override any gcc2 internal prototype to avoid an error. */
7861#ifdef __cplusplus
7862extern "C"
7863#endif
7864/* We use char because int might match the return type of a gcc2
7865 builtin and then its argument prototype would still apply. */
7866char gethostbyname ();
7867int
7868main ()
7869{
7870gethostbyname ();
7871 ;
7872 return 0;
7873}
7874_ACEOF
7875rm -f conftest.$ac_objext conftest$ac_exeext
7876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7877 (eval $ac_link) 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -z "$ac_c_werror_flag"
7885 || test ! -s conftest.err'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 (eval $ac_try) 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest$ac_exeext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_cv_search_gethostbyname="-l$ac_lib"
7898break
7899else
7900 echo "$as_me: failed program was:" >&5
7901sed 's/^/| /' conftest.$ac_ext >&5
7902
7903fi
7904rm -f conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
ddc9cd0f 7906 done
bec39cab
AC
7907fi
7908LIBS=$ac_func_search_save_LIBS
7909fi
7910echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7911echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7912if test "$ac_cv_search_gethostbyname" != no; then
7913 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
ddc9cd0f 7914
ddc9cd0f
AC
7915fi
7916
0fbb3da7 7917
bec39cab
AC
7918# Some systems (e.g. Solaris) have `socketpair' in libsocket.
7919echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7920echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7921if test "${ac_cv_search_socketpair+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924 ac_func_search_save_LIBS=$LIBS
7925ac_cv_search_socketpair=no
7926cat >conftest.$ac_ext <<_ACEOF
7927/* confdefs.h. */
7928_ACEOF
7929cat confdefs.h >>conftest.$ac_ext
7930cat >>conftest.$ac_ext <<_ACEOF
7931/* end confdefs.h. */
0fbb3da7 7932
bec39cab
AC
7933/* Override any gcc2 internal prototype to avoid an error. */
7934#ifdef __cplusplus
7935extern "C"
7936#endif
7937/* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939char socketpair ();
7940int
7941main ()
7942{
7943socketpair ();
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948rm -f conftest.$ac_objext conftest$ac_exeext
7949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag"
7958 || test ! -s conftest.err'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 (eval $ac_try) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_search_socketpair="none required"
7971else
7972 echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7974
5b5d99cf 7975fi
bec39cab
AC
7976rm -f conftest.err conftest.$ac_objext \
7977 conftest$ac_exeext conftest.$ac_ext
7978if test "$ac_cv_search_socketpair" = no; then
7979 for ac_lib in socket; do
7980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7981 cat >conftest.$ac_ext <<_ACEOF
7982/* confdefs.h. */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h. */
5b5d99cf 7987
bec39cab
AC
7988/* Override any gcc2 internal prototype to avoid an error. */
7989#ifdef __cplusplus
7990extern "C"
7991#endif
7992/* We use char because int might match the return type of a gcc2
7993 builtin and then its argument prototype would still apply. */
7994char socketpair ();
7995int
7996main ()
7997{
7998socketpair ();
7999 ;
8000 return 0;
8001}
8002_ACEOF
8003rm -f conftest.$ac_objext conftest$ac_exeext
8004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005 (eval $ac_link) 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); } &&
8012 { ac_try='test -z "$ac_c_werror_flag"
8013 || test ! -s conftest.err'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; } &&
8019 { ac_try='test -s conftest$ac_exeext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 ac_cv_search_socketpair="-l$ac_lib"
8026break
8027else
8028 echo "$as_me: failed program was:" >&5
8029sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8030
bec39cab
AC
8031fi
8032rm -f conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034 done
8035fi
8036LIBS=$ac_func_search_save_LIBS
8037fi
8038echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8039echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8040if test "$ac_cv_search_socketpair" != no; then
8041 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
96baa820 8042
bec39cab 8043fi
96baa820 8044
c906108c 8045
bec39cab
AC
8046# For the TUI, we need enhanced curses functionality.
8047#
8048# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8049# curses library because the latter might not provide all the
8050# functionality we need. However, this leads to problems on systems
8051# where the linker searches /usr/local/lib, but the compiler doesn't
8052# search /usr/local/include, if ncurses is installed in /usr/local. A
8053# default installation of ncurses on alpha*-dec-osf* will lead to such
8054# a situation.
8055echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8056echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8057if test "${ac_cv_search_waddstr+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059else
8060 ac_func_search_save_LIBS=$LIBS
8061ac_cv_search_waddstr=no
8062cat >conftest.$ac_ext <<_ACEOF
8063/* confdefs.h. */
8064_ACEOF
8065cat confdefs.h >>conftest.$ac_ext
8066cat >>conftest.$ac_ext <<_ACEOF
8067/* end confdefs.h. */
c906108c 8068
bec39cab
AC
8069/* Override any gcc2 internal prototype to avoid an error. */
8070#ifdef __cplusplus
8071extern "C"
8072#endif
8073/* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */
8075char waddstr ();
8076int
8077main ()
8078{
8079waddstr ();
8080 ;
8081 return 0;
8082}
8083_ACEOF
8084rm -f conftest.$ac_objext conftest$ac_exeext
8085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8086 (eval $ac_link) 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag"
8094 || test ! -s conftest.err'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; } &&
8100 { ac_try='test -s conftest$ac_exeext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 ac_cv_search_waddstr="none required"
8107else
8108 echo "$as_me: failed program was:" >&5
8109sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8110
bec39cab
AC
8111fi
8112rm -f conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114if test "$ac_cv_search_waddstr" = no; then
8115 for ac_lib in ncurses cursesX curses; do
8116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8117 cat >conftest.$ac_ext <<_ACEOF
8118/* confdefs.h. */
8119_ACEOF
8120cat confdefs.h >>conftest.$ac_ext
8121cat >>conftest.$ac_ext <<_ACEOF
8122/* end confdefs.h. */
1ba607ad 8123
bec39cab
AC
8124/* Override any gcc2 internal prototype to avoid an error. */
8125#ifdef __cplusplus
8126extern "C"
8127#endif
8128/* We use char because int might match the return type of a gcc2
8129 builtin and then its argument prototype would still apply. */
8130char waddstr ();
8131int
8132main ()
8133{
8134waddstr ();
8135 ;
8136 return 0;
8137}
8138_ACEOF
8139rm -f conftest.$ac_objext conftest$ac_exeext
8140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141 (eval $ac_link) 2>conftest.er1
8142 ac_status=$?
8143 grep -v '^ *+' conftest.er1 >conftest.err
8144 rm -f conftest.er1
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -z "$ac_c_werror_flag"
8149 || test ! -s conftest.err'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; } &&
8155 { ac_try='test -s conftest$ac_exeext'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 (eval $ac_try) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 ac_cv_search_waddstr="-l$ac_lib"
8162break
8163else
8164 echo "$as_me: failed program was:" >&5
8165sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8166
8167fi
bec39cab
AC
8168rm -f conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8170 done
1ba607ad 8171fi
bec39cab
AC
8172LIBS=$ac_func_search_save_LIBS
8173fi
8174echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8175echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8176if test "$ac_cv_search_waddstr" != no; then
8177 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8178
8bb2c122 8179fi
8bb2c122 8180
8bb2c122 8181
bec39cab
AC
8182# Since GDB uses Readline, we need termcap functionality. In many
8183# cases this will be provided by the curses library, but some systems
8184# have a seperate termcap library, or no curses library at all.
8bb2c122 8185
bec39cab
AC
8186case $host_os in
8187 cygwin*)
8188 if test -d $srcdir/libtermcap; then
8189 LIBS="../libtermcap/libtermcap.a $LIBS"
8190 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8191 fi ;;
8192 go32* | *djgpp*)
8193 ac_cv_search_tgetent="none required"
8194 ;;
8195esac
627af7ea 8196
bec39cab
AC
8197# These are the libraries checked by Readline.
8198echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8199echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8200if test "${ac_cv_search_tgetent+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203 ac_func_search_save_LIBS=$LIBS
8204ac_cv_search_tgetent=no
8205cat >conftest.$ac_ext <<_ACEOF
8206/* confdefs.h. */
8207_ACEOF
8208cat confdefs.h >>conftest.$ac_ext
8209cat >>conftest.$ac_ext <<_ACEOF
8210/* end confdefs.h. */
8211
8212/* Override any gcc2 internal prototype to avoid an error. */
8213#ifdef __cplusplus
8214extern "C"
8215#endif
8216/* We use char because int might match the return type of a gcc2
8217 builtin and then its argument prototype would still apply. */
8218char tgetent ();
8219int
8220main ()
8221{
8222tgetent ();
8223 ;
8224 return 0;
8225}
8226_ACEOF
8227rm -f conftest.$ac_objext conftest$ac_exeext
8228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229 (eval $ac_link) 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
8236 { ac_try='test -z "$ac_c_werror_flag"
8237 || test ! -s conftest.err'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; } &&
8243 { ac_try='test -s conftest$ac_exeext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_cv_search_tgetent="none required"
627af7ea 8250else
bec39cab
AC
8251 echo "$as_me: failed program was:" >&5
8252sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8253
627af7ea 8254fi
bec39cab
AC
8255rm -f conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
8257if test "$ac_cv_search_tgetent" = no; then
8258 for ac_lib in termcap tinfo curses ncurses; do
8259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8260 cat >conftest.$ac_ext <<_ACEOF
8261/* confdefs.h. */
8262_ACEOF
8263cat confdefs.h >>conftest.$ac_ext
8264cat >>conftest.$ac_ext <<_ACEOF
8265/* end confdefs.h. */
627af7ea 8266
bec39cab
AC
8267/* Override any gcc2 internal prototype to avoid an error. */
8268#ifdef __cplusplus
8269extern "C"
8270#endif
8271/* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8273char tgetent ();
8274int
8275main ()
8276{
8277tgetent ();
8278 ;
8279 return 0;
8280}
8281_ACEOF
8282rm -f conftest.$ac_objext conftest$ac_exeext
8283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest$ac_exeext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 ac_cv_search_tgetent="-l$ac_lib"
8305break
627af7ea 8306else
bec39cab
AC
8307 echo "$as_me: failed program was:" >&5
8308sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8309
627af7ea 8310fi
bec39cab
AC
8311rm -f conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8313 done
8314fi
8315LIBS=$ac_func_search_save_LIBS
8316fi
8317echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8318echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8319if test "$ac_cv_search_tgetent" != no; then
8320 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8321
06825bd1
MK
8322fi
8323
06825bd1 8324
bec39cab
AC
8325if test "$ac_cv_search_tgetent" = no; then
8326 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8327echo "$as_me: error: no termcap library found" >&2;}
8328 { (exit 1); exit 1; }; }
8ee53726
MK
8329fi
8330
bec39cab
AC
8331# ------------------------- #
8332# Checks for header files. #
8333# ------------------------- #
8ee53726 8334
0e5d83e3 8335
bec39cab
AC
8336
8337
8338
8339
8340ac_header_dirent=no
8341for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8342 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8343echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8344echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8345if eval "test \"\${$as_ac_Header+set}\" = set"; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347else
8348 cat >conftest.$ac_ext <<_ACEOF
8349/* confdefs.h. */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h. */
8354#include <sys/types.h>
0e5d83e3 8355#include <$ac_hdr>
bec39cab
AC
8356
8357int
8358main ()
8359{
8360if ((DIR *) 0)
8361return 0;
8362 ;
8363 return 0;
8364}
8365_ACEOF
8366rm -f conftest.$ac_objext
8367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8368 (eval $ac_compile) 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 eval "$as_ac_Header=yes"
8389else
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393eval "$as_ac_Header=no"
8394fi
8395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8396fi
8397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8399if test `eval echo '${'$as_ac_Header'}'` = yes; then
8400 cat >>confdefs.h <<_ACEOF
8401#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8402_ACEOF
8403
8404ac_header_dirent=$ac_hdr; break
0e5d83e3 8405fi
0e5d83e3 8406
bec39cab
AC
8407done
8408# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8409if test $ac_header_dirent = dirent.h; then
8410 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8411echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8412if test "${ac_cv_search_opendir+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 ac_func_search_save_LIBS=$LIBS
8416ac_cv_search_opendir=no
8417cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
0e5d83e3 8423
bec39cab
AC
8424/* Override any gcc2 internal prototype to avoid an error. */
8425#ifdef __cplusplus
8426extern "C"
8427#endif
8428/* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8430char opendir ();
8431int
8432main ()
8433{
8434opendir ();
8435 ;
8436 return 0;
8437}
8438_ACEOF
8439rm -f conftest.$ac_objext conftest$ac_exeext
8440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441 (eval $ac_link) 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag"
8449 || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_search_opendir="none required"
8462else
8463 echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
8465
8466fi
8467rm -f conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469if test "$ac_cv_search_opendir" = no; then
8470 for ac_lib in dir; do
8471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8472 cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
0e5d83e3 8478
bec39cab
AC
8479/* Override any gcc2 internal prototype to avoid an error. */
8480#ifdef __cplusplus
8481extern "C"
8482#endif
8483/* We use char because int might match the return type of a gcc2
8484 builtin and then its argument prototype would still apply. */
8485char opendir ();
8486int
8487main ()
8488{
8489opendir ();
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext conftest$ac_exeext
8495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>conftest.er1
8497 ac_status=$?
8498 grep -v '^ *+' conftest.er1 >conftest.err
8499 rm -f conftest.er1
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -z "$ac_c_werror_flag"
8504 || test ! -s conftest.err'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest$ac_exeext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 (eval $ac_try) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_search_opendir="-l$ac_lib"
8517break
0e5d83e3 8518else
bec39cab
AC
8519 echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
0e5d83e3 8521
0e5d83e3 8522fi
bec39cab
AC
8523rm -f conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525 done
0e5d83e3 8526fi
bec39cab 8527LIBS=$ac_func_search_save_LIBS
0e5d83e3 8528fi
bec39cab
AC
8529echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8530echo "${ECHO_T}$ac_cv_search_opendir" >&6
8531if test "$ac_cv_search_opendir" != no; then
8532 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8533
0e5d83e3
JJ
8534fi
8535
d28f9cdf 8536else
bec39cab
AC
8537 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8538echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8539if test "${ac_cv_search_opendir+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542 ac_func_search_save_LIBS=$LIBS
8543ac_cv_search_opendir=no
8544cat >conftest.$ac_ext <<_ACEOF
8545/* confdefs.h. */
8546_ACEOF
8547cat confdefs.h >>conftest.$ac_ext
8548cat >>conftest.$ac_ext <<_ACEOF
8549/* end confdefs.h. */
d28f9cdf 8550
d28f9cdf 8551/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8552#ifdef __cplusplus
8553extern "C"
8554#endif
d28f9cdf 8555/* We use char because int might match the return type of a gcc2
bec39cab
AC
8556 builtin and then its argument prototype would still apply. */
8557char opendir ();
8558int
8559main ()
8560{
8561opendir ();
8562 ;
8563 return 0;
8564}
8565_ACEOF
8566rm -f conftest.$ac_objext conftest$ac_exeext
8567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568 (eval $ac_link) 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -z "$ac_c_werror_flag"
8576 || test ! -s conftest.err'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest$ac_exeext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_cv_search_opendir="none required"
8589else
8590 echo "$as_me: failed program was:" >&5
8591sed 's/^/| /' conftest.$ac_ext >&5
8592
8593fi
8594rm -f conftest.err conftest.$ac_objext \
8595 conftest$ac_exeext conftest.$ac_ext
8596if test "$ac_cv_search_opendir" = no; then
8597 for ac_lib in x; do
8598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8599 cat >conftest.$ac_ext <<_ACEOF
8600/* confdefs.h. */
8601_ACEOF
8602cat confdefs.h >>conftest.$ac_ext
8603cat >>conftest.$ac_ext <<_ACEOF
8604/* end confdefs.h. */
d28f9cdf 8605
bec39cab
AC
8606/* Override any gcc2 internal prototype to avoid an error. */
8607#ifdef __cplusplus
8608extern "C"
d28f9cdf 8609#endif
bec39cab
AC
8610/* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8612char opendir ();
8613int
8614main ()
8615{
8616opendir ();
8617 ;
8618 return 0;
8619}
8620_ACEOF
8621rm -f conftest.$ac_objext conftest$ac_exeext
8622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623 (eval $ac_link) 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag"
8631 || test ! -s conftest.err'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 (eval $ac_try) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest$ac_exeext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 (eval $ac_try) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
8643 ac_cv_search_opendir="-l$ac_lib"
8644break
d28f9cdf 8645else
bec39cab
AC
8646 echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
d28f9cdf 8649fi
bec39cab
AC
8650rm -f conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8652 done
8653fi
8654LIBS=$ac_func_search_save_LIBS
d28f9cdf 8655fi
bec39cab
AC
8656echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8657echo "${ECHO_T}$ac_cv_search_opendir" >&6
8658if test "$ac_cv_search_opendir" != no; then
8659 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8660
d28f9cdf
DJ
8661fi
8662
bec39cab 8663fi
b0b1c2c0 8664
bec39cab
AC
8665echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8666echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8667if test "${ac_cv_header_stat_broken+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8669else
bec39cab
AC
8670 cat >conftest.$ac_ext <<_ACEOF
8671/* confdefs.h. */
8672_ACEOF
8673cat confdefs.h >>conftest.$ac_ext
8674cat >>conftest.$ac_ext <<_ACEOF
8675/* end confdefs.h. */
8676#include <sys/types.h>
8677#include <sys/stat.h>
b0b1c2c0 8678
bec39cab
AC
8679#if defined(S_ISBLK) && defined(S_IFDIR)
8680# if S_ISBLK (S_IFDIR)
8681You lose.
8682# endif
8683#endif
b0b1c2c0 8684
bec39cab
AC
8685#if defined(S_ISBLK) && defined(S_IFCHR)
8686# if S_ISBLK (S_IFCHR)
8687You lose.
8688# endif
8689#endif
d28f9cdf 8690
bec39cab
AC
8691#if defined(S_ISLNK) && defined(S_IFREG)
8692# if S_ISLNK (S_IFREG)
8693You lose.
8694# endif
8695#endif
d28f9cdf 8696
bec39cab
AC
8697#if defined(S_ISSOCK) && defined(S_IFREG)
8698# if S_ISSOCK (S_IFREG)
8699You lose.
8700# endif
8701#endif
8702
8703_ACEOF
8704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8705 $EGREP "You lose" >/dev/null 2>&1; then
8706 ac_cv_header_stat_broken=yes
d28f9cdf 8707else
bec39cab 8708 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8709fi
8710rm -f conftest*
d28f9cdf 8711
d28f9cdf 8712fi
bec39cab
AC
8713echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8714echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8715if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8716
bec39cab
AC
8717cat >>confdefs.h <<\_ACEOF
8718#define STAT_MACROS_BROKEN 1
8719_ACEOF
8bb2c122 8720
7a292a7a 8721fi
bec39cab
AC
8722
8723echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8724echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8725if test "${ac_cv_header_stdc+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8727else
bec39cab
AC
8728 cat >conftest.$ac_ext <<_ACEOF
8729/* confdefs.h. */
8730_ACEOF
8731cat confdefs.h >>conftest.$ac_ext
8732cat >>conftest.$ac_ext <<_ACEOF
8733/* end confdefs.h. */
8734#include <stdlib.h>
8735#include <stdarg.h>
8736#include <string.h>
8737#include <float.h>
7a292a7a 8738
bec39cab
AC
8739int
8740main ()
8741{
7a292a7a 8742
bec39cab
AC
8743 ;
8744 return 0;
8745}
8746_ACEOF
8747rm -f conftest.$ac_objext
8748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>conftest.er1
8750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag"
8757 || test ! -s conftest.err'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest.$ac_objext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_header_stdc=yes
c906108c 8770else
bec39cab
AC
8771 echo "$as_me: failed program was:" >&5
8772sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8773
bec39cab 8774ac_cv_header_stdc=no
c906108c 8775fi
bec39cab 8776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8777
bec39cab
AC
8778if test $ac_cv_header_stdc = yes; then
8779 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8780 cat >conftest.$ac_ext <<_ACEOF
8781/* confdefs.h. */
8782_ACEOF
8783cat confdefs.h >>conftest.$ac_ext
8784cat >>conftest.$ac_ext <<_ACEOF
8785/* end confdefs.h. */
8786#include <string.h>
c906108c 8787
bec39cab
AC
8788_ACEOF
8789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8790 $EGREP "memchr" >/dev/null 2>&1; then
8791 :
8bb2c122 8792else
bec39cab 8793 ac_cv_header_stdc=no
8bb2c122 8794fi
bec39cab
AC
8795rm -f conftest*
8796
c906108c
SS
8797fi
8798
bec39cab
AC
8799if test $ac_cv_header_stdc = yes; then
8800 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8801 cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h. */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h. */
8807#include <stdlib.h>
8808
8809_ACEOF
8810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8811 $EGREP "free" >/dev/null 2>&1; then
8812 :
c906108c 8813else
bec39cab 8814 ac_cv_header_stdc=no
c906108c 8815fi
bec39cab
AC
8816rm -f conftest*
8817
c906108c
SS
8818fi
8819
bec39cab
AC
8820if test $ac_cv_header_stdc = yes; then
8821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8822 if test "$cross_compiling" = yes; then
8823 :
c906108c 8824else
bec39cab
AC
8825 cat >conftest.$ac_ext <<_ACEOF
8826/* confdefs.h. */
8827_ACEOF
8828cat confdefs.h >>conftest.$ac_ext
8829cat >>conftest.$ac_ext <<_ACEOF
8830/* end confdefs.h. */
8831#include <ctype.h>
8832#if ((' ' & 0x0FF) == 0x020)
8833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8835#else
8836# define ISLOWER(c) \
8837 (('a' <= (c) && (c) <= 'i') \
8838 || ('j' <= (c) && (c) <= 'r') \
8839 || ('s' <= (c) && (c) <= 'z'))
8840# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8841#endif
8842
8843#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8844int
8845main ()
8846{
8847 int i;
8848 for (i = 0; i < 256; i++)
8849 if (XOR (islower (i), ISLOWER (i))
8850 || toupper (i) != TOUPPER (i))
8851 exit(2);
8852 exit (0);
8853}
8854_ACEOF
8855rm -f conftest$ac_exeext
8856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8857 (eval $ac_link) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
8866 :
8867else
8868 echo "$as_me: program exited with status $ac_status" >&5
8869echo "$as_me: failed program was:" >&5
8870sed 's/^/| /' conftest.$ac_ext >&5
8871
8872( exit $ac_status )
8873ac_cv_header_stdc=no
c906108c 8874fi
bec39cab 8875rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8876fi
c906108c 8877fi
bec39cab
AC
8878fi
8879echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8880echo "${ECHO_T}$ac_cv_header_stdc" >&6
8881if test $ac_cv_header_stdc = yes; then
c906108c 8882
bec39cab
AC
8883cat >>confdefs.h <<\_ACEOF
8884#define STDC_HEADERS 1
8885_ACEOF
c906108c 8886
bec39cab 8887fi
8bb2c122 8888
bec39cab 8889
7cb9022a 8890for ac_header in nlist.h
bec39cab
AC
8891do
8892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8893if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894 echo "$as_me:$LINENO: checking for $ac_header" >&5
8895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8896if eval "test \"\${$as_ac_Header+set}\" = set"; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898fi
8899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8901else
8902 # Is the header compilable?
8903echo "$as_me:$LINENO: checking $ac_header usability" >&5
8904echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8905cat >conftest.$ac_ext <<_ACEOF
8906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h. */
8911$ac_includes_default
8912#include <$ac_header>
8913_ACEOF
8914rm -f conftest.$ac_objext
8915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8916 (eval $ac_compile) 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest.$ac_objext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_header_compiler=yes
8937else
8938 echo "$as_me: failed program was:" >&5
8939sed 's/^/| /' conftest.$ac_ext >&5
8940
8941ac_header_compiler=no
8942fi
8943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8944echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8945echo "${ECHO_T}$ac_header_compiler" >&6
8946
8947# Is the header present?
8948echo "$as_me:$LINENO: checking $ac_header presence" >&5
8949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8950cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956#include <$ac_header>
8957_ACEOF
8958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8960 ac_status=$?
8961 grep -v '^ *+' conftest.er1 >conftest.err
8962 rm -f conftest.er1
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } >/dev/null; then
8966 if test -s conftest.err; then
8967 ac_cpp_err=$ac_c_preproc_warn_flag
8968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8969 else
8970 ac_cpp_err=
8971 fi
c906108c 8972else
bec39cab 8973 ac_cpp_err=yes
c906108c 8974fi
bec39cab
AC
8975if test -z "$ac_cpp_err"; then
8976 ac_header_preproc=yes
c906108c 8977else
bec39cab
AC
8978 echo "$as_me: failed program was:" >&5
8979sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 8980
bec39cab
AC
8981 ac_header_preproc=no
8982fi
8983rm -f conftest.err conftest.$ac_ext
8984echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8986
bec39cab
AC
8987# So? What about this header?
8988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8989 yes:no: )
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8991echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8993echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8994 ac_header_preproc=yes
8995 ;;
8996 no:yes:* )
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8998echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9000echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9002echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9004echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9006echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9008echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9009 (
9010 cat <<\_ASBOX
9011## ------------------------------------------ ##
9012## Report this to the AC_PACKAGE_NAME lists. ##
9013## ------------------------------------------ ##
9014_ASBOX
9015 ) |
9016 sed "s/^/$as_me: WARNING: /" >&2
9017 ;;
9018esac
9019echo "$as_me:$LINENO: checking for $ac_header" >&5
9020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9021if eval "test \"\${$as_ac_Header+set}\" = set"; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 9023else
bec39cab 9024 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 9025fi
bec39cab
AC
9026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9028
95ca63c4 9029fi
bec39cab
AC
9030if test `eval echo '${'$as_ac_Header'}'` = yes; then
9031 cat >>confdefs.h <<_ACEOF
9032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9033_ACEOF
9034
95ca63c4
CF
9035fi
9036
bec39cab 9037done
95ca63c4
CF
9038
9039
7cb9022a 9040for ac_header in link.h
bec39cab
AC
9041do
9042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 9043echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
9044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9047else
7cb9022a 9048 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9049/* confdefs.h. */
9050_ACEOF
9051cat confdefs.h >>conftest.$ac_ext
9052cat >>conftest.$ac_ext <<_ACEOF
9053/* end confdefs.h. */
7cb9022a
MK
9054#if HAVE_SYS_TYPES_H
9055# include <sys/types.h>
9056#endif
9057#if HAVE_NLIST_H
9058# include <nlist.h>
9059#endif
9060
9061
bec39cab
AC
9062#include <$ac_header>
9063_ACEOF
9064rm -f conftest.$ac_objext
9065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
7cb9022a 9086 eval "$as_ac_Header=yes"
bec39cab
AC
9087else
9088 echo "$as_me: failed program was:" >&5
9089sed 's/^/| /' conftest.$ac_ext >&5
9090
7cb9022a 9091eval "$as_ac_Header=no"
bec39cab
AC
9092fi
9093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
9094fi
9095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9097if test `eval echo '${'$as_ac_Header'}'` = yes; then
9098 cat >>confdefs.h <<_ACEOF
9099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9100_ACEOF
95ca63c4 9101
bec39cab 9102fi
95ca63c4 9103
bec39cab 9104done
95ca63c4 9105
c906108c 9106
7cb9022a 9107for ac_header in machine/reg.h
bec39cab
AC
9108do
9109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9110if eval "test \"\${$as_ac_Header+set}\" = set"; then
9111 echo "$as_me:$LINENO: checking for $ac_header" >&5
9112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9113if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115fi
9116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9118else
9119 # Is the header compilable?
9120echo "$as_me:$LINENO: checking $ac_header usability" >&5
9121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9122cat >conftest.$ac_ext <<_ACEOF
9123/* confdefs.h. */
9124_ACEOF
9125cat confdefs.h >>conftest.$ac_ext
9126cat >>conftest.$ac_ext <<_ACEOF
9127/* end confdefs.h. */
9128$ac_includes_default
9129#include <$ac_header>
9130_ACEOF
9131rm -f conftest.$ac_objext
9132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133 (eval $ac_compile) 2>conftest.er1
9134 ac_status=$?
9135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -z "$ac_c_werror_flag"
9141 || test ! -s conftest.err'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 (eval $ac_try) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; } &&
9147 { ac_try='test -s conftest.$ac_objext'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 ac_header_compiler=yes
9154else
9155 echo "$as_me: failed program was:" >&5
9156sed 's/^/| /' conftest.$ac_ext >&5
9157
9158ac_header_compiler=no
9159fi
9160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9161echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9162echo "${ECHO_T}$ac_header_compiler" >&6
9163
9164# Is the header present?
9165echo "$as_me:$LINENO: checking $ac_header presence" >&5
9166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9167cat >conftest.$ac_ext <<_ACEOF
9168/* confdefs.h. */
9169_ACEOF
9170cat confdefs.h >>conftest.$ac_ext
9171cat >>conftest.$ac_ext <<_ACEOF
9172/* end confdefs.h. */
9173#include <$ac_header>
9174_ACEOF
9175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9177 ac_status=$?
9178 grep -v '^ *+' conftest.er1 >conftest.err
9179 rm -f conftest.er1
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } >/dev/null; then
9183 if test -s conftest.err; then
9184 ac_cpp_err=$ac_c_preproc_warn_flag
9185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9186 else
9187 ac_cpp_err=
9188 fi
75c6e08a 9189else
bec39cab 9190 ac_cpp_err=yes
75c6e08a 9191fi
bec39cab
AC
9192if test -z "$ac_cpp_err"; then
9193 ac_header_preproc=yes
9194else
9195 echo "$as_me: failed program was:" >&5
9196sed 's/^/| /' conftest.$ac_ext >&5
9197
9198 ac_header_preproc=no
75c6e08a 9199fi
bec39cab
AC
9200rm -f conftest.err conftest.$ac_ext
9201echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9202echo "${ECHO_T}$ac_header_preproc" >&6
9203
9204# So? What about this header?
9205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9206 yes:no: )
9207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9208echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9210echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9211 ac_header_preproc=yes
9212 ;;
9213 no:yes:* )
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9217echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9219echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9221echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9223echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9225echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9226 (
9227 cat <<\_ASBOX
9228## ------------------------------------------ ##
9229## Report this to the AC_PACKAGE_NAME lists. ##
9230## ------------------------------------------ ##
9231_ASBOX
9232 ) |
9233 sed "s/^/$as_me: WARNING: /" >&2
9234 ;;
9235esac
9236echo "$as_me:$LINENO: checking for $ac_header" >&5
9237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9238if eval "test \"\${$as_ac_Header+set}\" = set"; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9240else
bec39cab
AC
9241 eval "$as_ac_Header=\$ac_header_preproc"
9242fi
9243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9245
75c6e08a 9246fi
bec39cab
AC
9247if test `eval echo '${'$as_ac_Header'}'` = yes; then
9248 cat >>confdefs.h <<_ACEOF
9249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9250_ACEOF
75c6e08a 9251
bec39cab 9252fi
75c6e08a 9253
bec39cab 9254done
75c6e08a
MK
9255
9256
9a156167 9257
bec39cab
AC
9258for ac_header in poll.h sys/poll.h
9259do
9260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9261if eval "test \"\${$as_ac_Header+set}\" = set"; then
9262 echo "$as_me:$LINENO: checking for $ac_header" >&5
9263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9264if eval "test \"\${$as_ac_Header+set}\" = set"; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266fi
9267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9269else
9270 # Is the header compilable?
9271echo "$as_me:$LINENO: checking $ac_header usability" >&5
9272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9273cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h. */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
9278/* end confdefs.h. */
9279$ac_includes_default
9280#include <$ac_header>
9281_ACEOF
9282rm -f conftest.$ac_objext
9283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284 (eval $ac_compile) 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -z "$ac_c_werror_flag"
9292 || test ! -s conftest.err'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; } &&
9298 { ac_try='test -s conftest.$ac_objext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_header_compiler=yes
9305else
9306 echo "$as_me: failed program was:" >&5
9307sed 's/^/| /' conftest.$ac_ext >&5
9308
9309ac_header_compiler=no
9310fi
9311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9313echo "${ECHO_T}$ac_header_compiler" >&6
9314
9315# Is the header present?
9316echo "$as_me:$LINENO: checking $ac_header presence" >&5
9317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9318cat >conftest.$ac_ext <<_ACEOF
9319/* confdefs.h. */
9320_ACEOF
9321cat confdefs.h >>conftest.$ac_ext
9322cat >>conftest.$ac_ext <<_ACEOF
9323/* end confdefs.h. */
9324#include <$ac_header>
9325_ACEOF
9326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } >/dev/null; then
9334 if test -s conftest.err; then
9335 ac_cpp_err=$ac_c_preproc_warn_flag
9336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9337 else
9338 ac_cpp_err=
9339 fi
9a156167 9340else
bec39cab 9341 ac_cpp_err=yes
9a156167 9342fi
bec39cab
AC
9343if test -z "$ac_cpp_err"; then
9344 ac_header_preproc=yes
9345else
9346 echo "$as_me: failed program was:" >&5
9347sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9348
bec39cab 9349 ac_header_preproc=no
9a156167 9350fi
bec39cab
AC
9351rm -f conftest.err conftest.$ac_ext
9352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9353echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9354
bec39cab
AC
9355# So? What about this header?
9356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9357 yes:no: )
9358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9359echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9361echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9362 ac_header_preproc=yes
9363 ;;
9364 no:yes:* )
9365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9366echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9368echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9370echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9372echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9374echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9376echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9377 (
9378 cat <<\_ASBOX
9379## ------------------------------------------ ##
9380## Report this to the AC_PACKAGE_NAME lists. ##
9381## ------------------------------------------ ##
9382_ASBOX
9383 ) |
9384 sed "s/^/$as_me: WARNING: /" >&2
9385 ;;
9386esac
9387echo "$as_me:$LINENO: checking for $ac_header" >&5
9388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9389if eval "test \"\${$as_ac_Header+set}\" = set"; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9391else
bec39cab 9392 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9393fi
bec39cab
AC
9394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9396
bec39cab
AC
9397fi
9398if test `eval echo '${'$as_ac_Header'}'` = yes; then
9399 cat >>confdefs.h <<_ACEOF
9400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9401_ACEOF
9a156167 9402
bec39cab 9403fi
9a156167 9404
bec39cab 9405done
9a156167 9406
9a156167 9407
9a156167 9408
bec39cab
AC
9409
9410for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9411do
9412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9413if eval "test \"\${$as_ac_Header+set}\" = set"; then
9414 echo "$as_me:$LINENO: checking for $ac_header" >&5
9415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418fi
9419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9421else
9422 # Is the header compilable?
9423echo "$as_me:$LINENO: checking $ac_header usability" >&5
9424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9425cat >conftest.$ac_ext <<_ACEOF
9426/* confdefs.h. */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h. */
9431$ac_includes_default
9432#include <$ac_header>
9433_ACEOF
9434rm -f conftest.$ac_objext
9435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436 (eval $ac_compile) 2>conftest.er1
9437 ac_status=$?
9438 grep -v '^ *+' conftest.er1 >conftest.err
9439 rm -f conftest.er1
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try='test -z "$ac_c_werror_flag"
9444 || test ! -s conftest.err'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } &&
9450 { ac_try='test -s conftest.$ac_objext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 ac_header_compiler=yes
9457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461ac_header_compiler=no
9462fi
9463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9465echo "${ECHO_T}$ac_header_compiler" >&6
9466
9467# Is the header present?
9468echo "$as_me:$LINENO: checking $ac_header presence" >&5
9469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9470cat >conftest.$ac_ext <<_ACEOF
9471/* confdefs.h. */
9472_ACEOF
9473cat confdefs.h >>conftest.$ac_ext
9474cat >>conftest.$ac_ext <<_ACEOF
9475/* end confdefs.h. */
9476#include <$ac_header>
9477_ACEOF
9478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } >/dev/null; then
9486 if test -s conftest.err; then
9487 ac_cpp_err=$ac_c_preproc_warn_flag
9488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9489 else
9490 ac_cpp_err=
9491 fi
9a156167 9492else
bec39cab 9493 ac_cpp_err=yes
9a156167 9494fi
bec39cab
AC
9495if test -z "$ac_cpp_err"; then
9496 ac_header_preproc=yes
9497else
9498 echo "$as_me: failed program was:" >&5
9499sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9500
bec39cab 9501 ac_header_preproc=no
9a156167 9502fi
bec39cab
AC
9503rm -f conftest.err conftest.$ac_ext
9504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9505echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9506
bec39cab
AC
9507# So? What about this header?
9508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9509 yes:no: )
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9514 ac_header_preproc=yes
9515 ;;
9516 no:yes:* )
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9529 (
9530 cat <<\_ASBOX
9531## ------------------------------------------ ##
9532## Report this to the AC_PACKAGE_NAME lists. ##
9533## ------------------------------------------ ##
9534_ASBOX
9535 ) |
9536 sed "s/^/$as_me: WARNING: /" >&2
9537 ;;
9538esac
9539echo "$as_me:$LINENO: checking for $ac_header" >&5
9540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9541if eval "test \"\${$as_ac_Header+set}\" = set"; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9543else
bec39cab 9544 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9545fi
bec39cab
AC
9546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9548
9549fi
bec39cab
AC
9550if test `eval echo '${'$as_ac_Header'}'` = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9553_ACEOF
9a156167 9554
bec39cab
AC
9555fi
9556
9557done
9a156167 9558
c890192f 9559
bec39cab
AC
9560for ac_header in stddef.h
9561do
9562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9563if eval "test \"\${$as_ac_Header+set}\" = set"; then
9564 echo "$as_me:$LINENO: checking for $ac_header" >&5
9565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9566if eval "test \"\${$as_ac_Header+set}\" = set"; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568fi
9569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9571else
9572 # Is the header compilable?
9573echo "$as_me:$LINENO: checking $ac_header usability" >&5
9574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9575cat >conftest.$ac_ext <<_ACEOF
9576/* confdefs.h. */
9577_ACEOF
9578cat confdefs.h >>conftest.$ac_ext
9579cat >>conftest.$ac_ext <<_ACEOF
9580/* end confdefs.h. */
9581$ac_includes_default
9582#include <$ac_header>
9583_ACEOF
9584rm -f conftest.$ac_objext
9585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag"
9594 || test ! -s conftest.err'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9606 ac_header_compiler=yes
9607else
9608 echo "$as_me: failed program was:" >&5
9609sed 's/^/| /' conftest.$ac_ext >&5
9610
9611ac_header_compiler=no
9612fi
9613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9615echo "${ECHO_T}$ac_header_compiler" >&6
9616
9617# Is the header present?
9618echo "$as_me:$LINENO: checking $ac_header presence" >&5
9619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9620cat >conftest.$ac_ext <<_ACEOF
9621/* confdefs.h. */
9622_ACEOF
9623cat confdefs.h >>conftest.$ac_ext
9624cat >>conftest.$ac_ext <<_ACEOF
9625/* end confdefs.h. */
9626#include <$ac_header>
9627_ACEOF
9628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } >/dev/null; then
9636 if test -s conftest.err; then
9637 ac_cpp_err=$ac_c_preproc_warn_flag
9638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9639 else
9640 ac_cpp_err=
9641 fi
c890192f 9642else
bec39cab
AC
9643 ac_cpp_err=yes
9644fi
9645if test -z "$ac_cpp_err"; then
9646 ac_header_preproc=yes
c890192f 9647else
bec39cab
AC
9648 echo "$as_me: failed program was:" >&5
9649sed 's/^/| /' conftest.$ac_ext >&5
9650
9651 ac_header_preproc=no
c890192f 9652fi
bec39cab
AC
9653rm -f conftest.err conftest.$ac_ext
9654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9655echo "${ECHO_T}$ac_header_preproc" >&6
9656
9657# So? What about this header?
9658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9659 yes:no: )
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9664 ac_header_preproc=yes
9665 ;;
9666 no:yes:* )
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9679 (
9680 cat <<\_ASBOX
9681## ------------------------------------------ ##
9682## Report this to the AC_PACKAGE_NAME lists. ##
9683## ------------------------------------------ ##
9684_ASBOX
9685 ) |
9686 sed "s/^/$as_me: WARNING: /" >&2
9687 ;;
9688esac
9689echo "$as_me:$LINENO: checking for $ac_header" >&5
9690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9691if eval "test \"\${$as_ac_Header+set}\" = set"; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9693else
bec39cab 9694 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9695fi
bec39cab
AC
9696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9698
c890192f 9699fi
bec39cab
AC
9700if test `eval echo '${'$as_ac_Header'}'` = yes; then
9701 cat >>confdefs.h <<_ACEOF
9702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9703_ACEOF
c890192f 9704
c890192f
MK
9705fi
9706
bec39cab 9707done
9a156167 9708
bec39cab
AC
9709
9710for ac_header in stdlib.h
9711do
9712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9713if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714 echo "$as_me:$LINENO: checking for $ac_header" >&5
9715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718fi
9719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9721else
9722 # Is the header compilable?
9723echo "$as_me:$LINENO: checking $ac_header usability" >&5
9724echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9725cat >conftest.$ac_ext <<_ACEOF
9726/* confdefs.h. */
9727_ACEOF
9728cat confdefs.h >>conftest.$ac_ext
9729cat >>conftest.$ac_ext <<_ACEOF
9730/* end confdefs.h. */
9731$ac_includes_default
9732#include <$ac_header>
9733_ACEOF
9734rm -f conftest.$ac_objext
9735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736 (eval $ac_compile) 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag"
9744 || test ! -s conftest.err'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest.$ac_objext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 (eval $ac_try) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_header_compiler=yes
9757else
9758 echo "$as_me: failed program was:" >&5
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
9761ac_header_compiler=no
9762fi
9763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9765echo "${ECHO_T}$ac_header_compiler" >&6
9766
9767# Is the header present?
9768echo "$as_me:$LINENO: checking $ac_header presence" >&5
9769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9770cat >conftest.$ac_ext <<_ACEOF
9771/* confdefs.h. */
9772_ACEOF
9773cat confdefs.h >>conftest.$ac_ext
9774cat >>conftest.$ac_ext <<_ACEOF
9775/* end confdefs.h. */
9776#include <$ac_header>
9777_ACEOF
9778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } >/dev/null; then
9786 if test -s conftest.err; then
9787 ac_cpp_err=$ac_c_preproc_warn_flag
9788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9789 else
9790 ac_cpp_err=
9791 fi
9a156167 9792else
bec39cab
AC
9793 ac_cpp_err=yes
9794fi
9795if test -z "$ac_cpp_err"; then
9796 ac_header_preproc=yes
9a156167 9797else
bec39cab
AC
9798 echo "$as_me: failed program was:" >&5
9799sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 ac_header_preproc=no
9a156167 9802fi
bec39cab
AC
9803rm -f conftest.err conftest.$ac_ext
9804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9805echo "${ECHO_T}$ac_header_preproc" >&6
9806
9807# So? What about this header?
9808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9809 yes:no: )
9810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9814 ac_header_preproc=yes
9815 ;;
9816 no:yes:* )
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9824echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9829 (
9830 cat <<\_ASBOX
9831## ------------------------------------------ ##
9832## Report this to the AC_PACKAGE_NAME lists. ##
9833## ------------------------------------------ ##
9834_ASBOX
9835 ) |
9836 sed "s/^/$as_me: WARNING: /" >&2
9837 ;;
9838esac
9839echo "$as_me:$LINENO: checking for $ac_header" >&5
9840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9841if eval "test \"\${$as_ac_Header+set}\" = set"; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9843else
bec39cab 9844 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9845fi
bec39cab
AC
9846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9848
9a156167 9849fi
bec39cab
AC
9850if test `eval echo '${'$as_ac_Header'}'` = yes; then
9851 cat >>confdefs.h <<_ACEOF
9852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9853_ACEOF
9a156167 9854
9a156167
MK
9855fi
9856
bec39cab
AC
9857done
9858
06825bd1 9859
bec39cab
AC
9860for ac_header in stdint.h
9861do
9862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9863if eval "test \"\${$as_ac_Header+set}\" = set"; then
9864 echo "$as_me:$LINENO: checking for $ac_header" >&5
9865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9866if eval "test \"\${$as_ac_Header+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868fi
9869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9871else
9872 # Is the header compilable?
9873echo "$as_me:$LINENO: checking $ac_header usability" >&5
9874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9875cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
9881$ac_includes_default
9882#include <$ac_header>
9883_ACEOF
9884rm -f conftest.$ac_objext
9885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886 (eval $ac_compile) 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -z "$ac_c_werror_flag"
9894 || test ! -s conftest.err'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 (eval $ac_try) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest.$ac_objext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_header_compiler=yes
9907else
9908 echo "$as_me: failed program was:" >&5
9909sed 's/^/| /' conftest.$ac_ext >&5
9910
9911ac_header_compiler=no
9912fi
9913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9914echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9915echo "${ECHO_T}$ac_header_compiler" >&6
9916
9917# Is the header present?
9918echo "$as_me:$LINENO: checking $ac_header presence" >&5
9919echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9920cat >conftest.$ac_ext <<_ACEOF
9921/* confdefs.h. */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
9925/* end confdefs.h. */
9926#include <$ac_header>
9927_ACEOF
9928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } >/dev/null; then
9936 if test -s conftest.err; then
9937 ac_cpp_err=$ac_c_preproc_warn_flag
9938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9939 else
9940 ac_cpp_err=
9941 fi
06825bd1 9942else
bec39cab
AC
9943 ac_cpp_err=yes
9944fi
9945if test -z "$ac_cpp_err"; then
9946 ac_header_preproc=yes
06825bd1 9947else
bec39cab
AC
9948 echo "$as_me: failed program was:" >&5
9949sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 ac_header_preproc=no
06825bd1 9952fi
bec39cab
AC
9953rm -f conftest.err conftest.$ac_ext
9954echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9955echo "${ECHO_T}$ac_header_preproc" >&6
9956
9957# So? What about this header?
9958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9959 yes:no: )
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9964 ac_header_preproc=yes
9965 ;;
9966 no:yes:* )
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9974echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9979 (
9980 cat <<\_ASBOX
9981## ------------------------------------------ ##
9982## Report this to the AC_PACKAGE_NAME lists. ##
9983## ------------------------------------------ ##
9984_ASBOX
9985 ) |
9986 sed "s/^/$as_me: WARNING: /" >&2
9987 ;;
9988esac
9989echo "$as_me:$LINENO: checking for $ac_header" >&5
9990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9991if eval "test \"\${$as_ac_Header+set}\" = set"; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 9993else
bec39cab 9994 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 9995fi
bec39cab
AC
9996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9998
06825bd1 9999fi
bec39cab
AC
10000if test `eval echo '${'$as_ac_Header'}'` = yes; then
10001 cat >>confdefs.h <<_ACEOF
10002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10003_ACEOF
06825bd1 10004
06825bd1 10005fi
4f0be353 10006
bec39cab 10007done
4f0be353 10008
06825bd1 10009
06825bd1 10010
bec39cab
AC
10011
10012for ac_header in string.h memory.h strings.h
10013do
10014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10015if eval "test \"\${$as_ac_Header+set}\" = set"; then
10016 echo "$as_me:$LINENO: checking for $ac_header" >&5
10017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10018if eval "test \"\${$as_ac_Header+set}\" = set"; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020fi
10021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10023else
10024 # Is the header compilable?
10025echo "$as_me:$LINENO: checking $ac_header usability" >&5
10026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10027cat >conftest.$ac_ext <<_ACEOF
10028/* confdefs.h. */
10029_ACEOF
10030cat confdefs.h >>conftest.$ac_ext
10031cat >>conftest.$ac_ext <<_ACEOF
10032/* end confdefs.h. */
10033$ac_includes_default
10034#include <$ac_header>
10035_ACEOF
10036rm -f conftest.$ac_objext
10037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038 (eval $ac_compile) 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag"
10046 || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest.$ac_objext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 ac_header_compiler=yes
10059else
10060 echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
10063ac_header_compiler=no
10064fi
10065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10066echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10067echo "${ECHO_T}$ac_header_compiler" >&6
10068
10069# Is the header present?
10070echo "$as_me:$LINENO: checking $ac_header presence" >&5
10071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10072cat >conftest.$ac_ext <<_ACEOF
10073/* confdefs.h. */
10074_ACEOF
10075cat confdefs.h >>conftest.$ac_ext
10076cat >>conftest.$ac_ext <<_ACEOF
10077/* end confdefs.h. */
10078#include <$ac_header>
10079_ACEOF
10080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } >/dev/null; then
10088 if test -s conftest.err; then
10089 ac_cpp_err=$ac_c_preproc_warn_flag
10090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10091 else
10092 ac_cpp_err=
10093 fi
06825bd1 10094else
bec39cab
AC
10095 ac_cpp_err=yes
10096fi
10097if test -z "$ac_cpp_err"; then
10098 ac_header_preproc=yes
06825bd1 10099else
bec39cab
AC
10100 echo "$as_me: failed program was:" >&5
10101sed 's/^/| /' conftest.$ac_ext >&5
10102
10103 ac_header_preproc=no
06825bd1 10104fi
bec39cab
AC
10105rm -f conftest.err conftest.$ac_ext
10106echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10107echo "${ECHO_T}$ac_header_preproc" >&6
10108
10109# So? What about this header?
10110case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10111 yes:no: )
10112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10113echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10115echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10116 ac_header_preproc=yes
10117 ;;
10118 no:yes:* )
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10120echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10122echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10124echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10126echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10128echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10130echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10131 (
10132 cat <<\_ASBOX
10133## ------------------------------------------ ##
10134## Report this to the AC_PACKAGE_NAME lists. ##
10135## ------------------------------------------ ##
10136_ASBOX
10137 ) |
10138 sed "s/^/$as_me: WARNING: /" >&2
10139 ;;
10140esac
10141echo "$as_me:$LINENO: checking for $ac_header" >&5
10142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10143if eval "test \"\${$as_ac_Header+set}\" = set"; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145else
10146 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10147fi
bec39cab
AC
10148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10150
06825bd1 10151fi
bec39cab
AC
10152if test `eval echo '${'$as_ac_Header'}'` = yes; then
10153 cat >>confdefs.h <<_ACEOF
10154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10155_ACEOF
06825bd1 10156
06825bd1
MK
10157fi
10158
bec39cab 10159done
5ee754fc 10160
bec39cab
AC
10161
10162for ac_header in sys/fault.h
5ee754fc 10163do
bec39cab
AC
10164as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10165if eval "test \"\${$as_ac_Header+set}\" = set"; then
10166 echo "$as_me:$LINENO: checking for $ac_header" >&5
10167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10168if eval "test \"\${$as_ac_Header+set}\" = set"; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170fi
10171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10173else
10174 # Is the header compilable?
10175echo "$as_me:$LINENO: checking $ac_header usability" >&5
10176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10177cat >conftest.$ac_ext <<_ACEOF
10178/* confdefs.h. */
10179_ACEOF
10180cat confdefs.h >>conftest.$ac_ext
10181cat >>conftest.$ac_ext <<_ACEOF
10182/* end confdefs.h. */
10183$ac_includes_default
10184#include <$ac_header>
10185_ACEOF
10186rm -f conftest.$ac_objext
10187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188 (eval $ac_compile) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest.$ac_objext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_header_compiler=yes
10209else
10210 echo "$as_me: failed program was:" >&5
10211sed 's/^/| /' conftest.$ac_ext >&5
10212
10213ac_header_compiler=no
10214fi
10215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10216echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10217echo "${ECHO_T}$ac_header_compiler" >&6
10218
10219# Is the header present?
10220echo "$as_me:$LINENO: checking $ac_header presence" >&5
10221echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10222cat >conftest.$ac_ext <<_ACEOF
10223/* confdefs.h. */
10224_ACEOF
10225cat confdefs.h >>conftest.$ac_ext
10226cat >>conftest.$ac_ext <<_ACEOF
10227/* end confdefs.h. */
10228#include <$ac_header>
10229_ACEOF
10230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } >/dev/null; then
10238 if test -s conftest.err; then
10239 ac_cpp_err=$ac_c_preproc_warn_flag
10240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10241 else
10242 ac_cpp_err=
10243 fi
5ee754fc 10244else
bec39cab 10245 ac_cpp_err=yes
5ee754fc 10246fi
bec39cab
AC
10247if test -z "$ac_cpp_err"; then
10248 ac_header_preproc=yes
10249else
10250 echo "$as_me: failed program was:" >&5
10251sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10252
bec39cab 10253 ac_header_preproc=no
5ee754fc 10254fi
bec39cab
AC
10255rm -f conftest.err conftest.$ac_ext
10256echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10257echo "${ECHO_T}$ac_header_preproc" >&6
10258
10259# So? What about this header?
10260case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10261 yes:no: )
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10263echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10265echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10266 ac_header_preproc=yes
10267 ;;
10268 no:yes:* )
10269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10270echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10272echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10274echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10276echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10278echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10280echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10281 (
10282 cat <<\_ASBOX
10283## ------------------------------------------ ##
10284## Report this to the AC_PACKAGE_NAME lists. ##
10285## ------------------------------------------ ##
10286_ASBOX
10287 ) |
10288 sed "s/^/$as_me: WARNING: /" >&2
10289 ;;
10290esac
10291echo "$as_me:$LINENO: checking for $ac_header" >&5
10292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10293if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10295else
bec39cab 10296 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10297fi
bec39cab
AC
10298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10299echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10300
5ee754fc 10301fi
bec39cab
AC
10302if test `eval echo '${'$as_ac_Header'}'` = yes; then
10303 cat >>confdefs.h <<_ACEOF
10304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10305_ACEOF
c906108c 10306
5ee754fc 10307fi
bec39cab
AC
10308
10309done
10310
10311
10312for ac_header in sys/file.h
10313do
10314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10315if eval "test \"\${$as_ac_Header+set}\" = set"; then
10316 echo "$as_me:$LINENO: checking for $ac_header" >&5
10317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10318if eval "test \"\${$as_ac_Header+set}\" = set"; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320fi
10321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10323else
10324 # Is the header compilable?
10325echo "$as_me:$LINENO: checking $ac_header usability" >&5
10326echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10327cat >conftest.$ac_ext <<_ACEOF
10328/* confdefs.h. */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h. */
10333$ac_includes_default
10334#include <$ac_header>
10335_ACEOF
10336rm -f conftest.$ac_objext
10337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338 (eval $ac_compile) 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -z "$ac_c_werror_flag"
10346 || test ! -s conftest.err'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest.$ac_objext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_header_compiler=yes
10359else
10360 echo "$as_me: failed program was:" >&5
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
10363ac_header_compiler=no
10364fi
10365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10367echo "${ECHO_T}$ac_header_compiler" >&6
10368
10369# Is the header present?
10370echo "$as_me:$LINENO: checking $ac_header presence" >&5
10371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10372cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378#include <$ac_header>
10379_ACEOF
10380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10382 ac_status=$?
10383 grep -v '^ *+' conftest.er1 >conftest.err
10384 rm -f conftest.er1
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } >/dev/null; then
10388 if test -s conftest.err; then
10389 ac_cpp_err=$ac_c_preproc_warn_flag
10390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10391 else
10392 ac_cpp_err=
10393 fi
5ee754fc 10394else
bec39cab 10395 ac_cpp_err=yes
5ee754fc 10396fi
bec39cab
AC
10397if test -z "$ac_cpp_err"; then
10398 ac_header_preproc=yes
10399else
10400 echo "$as_me: failed program was:" >&5
10401sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10402
bec39cab 10403 ac_header_preproc=no
5ee754fc 10404fi
bec39cab
AC
10405rm -f conftest.err conftest.$ac_ext
10406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10407echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10408
bec39cab
AC
10409# So? What about this header?
10410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10411 yes:no: )
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10416 ac_header_preproc=yes
10417 ;;
10418 no:yes:* )
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10431 (
10432 cat <<\_ASBOX
10433## ------------------------------------------ ##
10434## Report this to the AC_PACKAGE_NAME lists. ##
10435## ------------------------------------------ ##
10436_ASBOX
10437 ) |
10438 sed "s/^/$as_me: WARNING: /" >&2
10439 ;;
10440esac
10441echo "$as_me:$LINENO: checking for $ac_header" >&5
10442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10443if eval "test \"\${$as_ac_Header+set}\" = set"; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10445else
bec39cab
AC
10446 eval "$as_ac_Header=\$ac_header_preproc"
10447fi
10448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10450
bec39cab
AC
10451fi
10452if test `eval echo '${'$as_ac_Header'}'` = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10455_ACEOF
5ee754fc 10456
bec39cab 10457fi
5ee754fc 10458
bec39cab 10459done
5ee754fc 10460
5ee754fc 10461
bec39cab
AC
10462for ac_header in sys/filio.h
10463do
10464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10465if eval "test \"\${$as_ac_Header+set}\" = set"; then
10466 echo "$as_me:$LINENO: checking for $ac_header" >&5
10467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10468if eval "test \"\${$as_ac_Header+set}\" = set"; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470fi
10471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10473else
10474 # Is the header compilable?
10475echo "$as_me:$LINENO: checking $ac_header usability" >&5
10476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10477cat >conftest.$ac_ext <<_ACEOF
10478/* confdefs.h. */
10479_ACEOF
10480cat confdefs.h >>conftest.$ac_ext
10481cat >>conftest.$ac_ext <<_ACEOF
10482/* end confdefs.h. */
10483$ac_includes_default
10484#include <$ac_header>
10485_ACEOF
10486rm -f conftest.$ac_objext
10487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488 (eval $ac_compile) 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } &&
10495 { ac_try='test -z "$ac_c_werror_flag"
10496 || test ! -s conftest.err'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; } &&
10502 { ac_try='test -s conftest.$ac_objext'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 ac_header_compiler=yes
10509else
10510 echo "$as_me: failed program was:" >&5
10511sed 's/^/| /' conftest.$ac_ext >&5
10512
10513ac_header_compiler=no
10514fi
10515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10517echo "${ECHO_T}$ac_header_compiler" >&6
10518
10519# Is the header present?
10520echo "$as_me:$LINENO: checking $ac_header presence" >&5
10521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10522cat >conftest.$ac_ext <<_ACEOF
10523/* confdefs.h. */
10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h. */
10528#include <$ac_header>
10529_ACEOF
10530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } >/dev/null; then
10538 if test -s conftest.err; then
10539 ac_cpp_err=$ac_c_preproc_warn_flag
10540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10541 else
10542 ac_cpp_err=
10543 fi
5ee754fc 10544else
bec39cab 10545 ac_cpp_err=yes
5ee754fc 10546fi
bec39cab
AC
10547if test -z "$ac_cpp_err"; then
10548 ac_header_preproc=yes
10549else
10550 echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10552
bec39cab 10553 ac_header_preproc=no
5ee754fc 10554fi
bec39cab
AC
10555rm -f conftest.err conftest.$ac_ext
10556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10557echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10558
bec39cab
AC
10559# So? What about this header?
10560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10561 yes:no: )
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10566 ac_header_preproc=yes
10567 ;;
10568 no:yes:* )
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10581 (
10582 cat <<\_ASBOX
10583## ------------------------------------------ ##
10584## Report this to the AC_PACKAGE_NAME lists. ##
10585## ------------------------------------------ ##
10586_ASBOX
10587 ) |
10588 sed "s/^/$as_me: WARNING: /" >&2
10589 ;;
10590esac
10591echo "$as_me:$LINENO: checking for $ac_header" >&5
10592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10593if eval "test \"\${$as_ac_Header+set}\" = set"; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10595else
bec39cab 10596 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10597fi
bec39cab
AC
10598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10600
5ee754fc 10601fi
bec39cab
AC
10602if test `eval echo '${'$as_ac_Header'}'` = yes; then
10603 cat >>confdefs.h <<_ACEOF
10604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10605_ACEOF
5ee754fc
MK
10606
10607fi
10608
bec39cab
AC
10609done
10610
10611
10612for ac_header in sys/ioctl.h
10613do
10614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10615if eval "test \"\${$as_ac_Header+set}\" = set"; then
10616 echo "$as_me:$LINENO: checking for $ac_header" >&5
10617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10618if eval "test \"\${$as_ac_Header+set}\" = set"; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10620fi
10621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10623else
10624 # Is the header compilable?
10625echo "$as_me:$LINENO: checking $ac_header usability" >&5
10626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10627cat >conftest.$ac_ext <<_ACEOF
10628/* confdefs.h. */
10629_ACEOF
10630cat confdefs.h >>conftest.$ac_ext
10631cat >>conftest.$ac_ext <<_ACEOF
10632/* end confdefs.h. */
10633$ac_includes_default
10634#include <$ac_header>
10635_ACEOF
10636rm -f conftest.$ac_objext
10637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10638 (eval $ac_compile) 2>conftest.er1
10639 ac_status=$?
10640 grep -v '^ *+' conftest.er1 >conftest.err
10641 rm -f conftest.er1
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try='test -z "$ac_c_werror_flag"
10646 || test ! -s conftest.err'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest.$ac_objext'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_header_compiler=yes
10659else
10660 echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663ac_header_compiler=no
10664fi
10665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10667echo "${ECHO_T}$ac_header_compiler" >&6
10668
10669# Is the header present?
10670echo "$as_me:$LINENO: checking $ac_header presence" >&5
10671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10672cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h. */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h. */
10678#include <$ac_header>
10679_ACEOF
10680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } >/dev/null; then
10688 if test -s conftest.err; then
10689 ac_cpp_err=$ac_c_preproc_warn_flag
10690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10691 else
10692 ac_cpp_err=
10693 fi
5ee754fc 10694else
bec39cab 10695 ac_cpp_err=yes
5ee754fc 10696fi
bec39cab
AC
10697if test -z "$ac_cpp_err"; then
10698 ac_header_preproc=yes
10699else
10700 echo "$as_me: failed program was:" >&5
10701sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10702
bec39cab 10703 ac_header_preproc=no
5ee754fc 10704fi
bec39cab
AC
10705rm -f conftest.err conftest.$ac_ext
10706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10707echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10708
bec39cab
AC
10709# So? What about this header?
10710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10711 yes:no: )
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10716 ac_header_preproc=yes
10717 ;;
10718 no:yes:* )
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10731 (
10732 cat <<\_ASBOX
10733## ------------------------------------------ ##
10734## Report this to the AC_PACKAGE_NAME lists. ##
10735## ------------------------------------------ ##
10736_ASBOX
10737 ) |
10738 sed "s/^/$as_me: WARNING: /" >&2
10739 ;;
10740esac
10741echo "$as_me:$LINENO: checking for $ac_header" >&5
10742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10743if eval "test \"\${$as_ac_Header+set}\" = set"; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10745else
bec39cab 10746 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10747fi
bec39cab
AC
10748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10750
10751fi
bec39cab
AC
10752if test `eval echo '${'$as_ac_Header'}'` = yes; then
10753 cat >>confdefs.h <<_ACEOF
10754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10755_ACEOF
10756
5ee754fc
MK
10757fi
10758
bec39cab 10759done
5ee754fc 10760
5ee754fc 10761
bec39cab 10762for ac_header in sys/param.h
5ee754fc 10763do
bec39cab
AC
10764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10765if eval "test \"\${$as_ac_Header+set}\" = set"; then
10766 echo "$as_me:$LINENO: checking for $ac_header" >&5
10767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10768if eval "test \"\${$as_ac_Header+set}\" = set"; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770fi
10771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10773else
10774 # Is the header compilable?
10775echo "$as_me:$LINENO: checking $ac_header usability" >&5
10776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10777cat >conftest.$ac_ext <<_ACEOF
10778/* confdefs.h. */
10779_ACEOF
10780cat confdefs.h >>conftest.$ac_ext
10781cat >>conftest.$ac_ext <<_ACEOF
10782/* end confdefs.h. */
10783$ac_includes_default
10784#include <$ac_header>
10785_ACEOF
10786rm -f conftest.$ac_objext
10787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10788 (eval $ac_compile) 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_c_werror_flag"
10796 || test ! -s conftest.err'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10799 ac_status=$?
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; } &&
10802 { ac_try='test -s conftest.$ac_objext'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_header_compiler=yes
10809else
10810 echo "$as_me: failed program was:" >&5
10811sed 's/^/| /' conftest.$ac_ext >&5
10812
10813ac_header_compiler=no
10814fi
10815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10817echo "${ECHO_T}$ac_header_compiler" >&6
10818
10819# Is the header present?
10820echo "$as_me:$LINENO: checking $ac_header presence" >&5
10821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10822cat >conftest.$ac_ext <<_ACEOF
10823/* confdefs.h. */
10824_ACEOF
10825cat confdefs.h >>conftest.$ac_ext
10826cat >>conftest.$ac_ext <<_ACEOF
10827/* end confdefs.h. */
10828#include <$ac_header>
10829_ACEOF
10830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } >/dev/null; then
10838 if test -s conftest.err; then
10839 ac_cpp_err=$ac_c_preproc_warn_flag
10840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10841 else
10842 ac_cpp_err=
10843 fi
5ee754fc 10844else
bec39cab 10845 ac_cpp_err=yes
5ee754fc 10846fi
bec39cab
AC
10847if test -z "$ac_cpp_err"; then
10848 ac_header_preproc=yes
10849else
10850 echo "$as_me: failed program was:" >&5
10851sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10852
bec39cab 10853 ac_header_preproc=no
5ee754fc 10854fi
bec39cab
AC
10855rm -f conftest.err conftest.$ac_ext
10856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10857echo "${ECHO_T}$ac_header_preproc" >&6
10858
10859# So? What about this header?
10860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10861 yes:no: )
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10866 ac_header_preproc=yes
10867 ;;
10868 no:yes:* )
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10881 (
10882 cat <<\_ASBOX
10883## ------------------------------------------ ##
10884## Report this to the AC_PACKAGE_NAME lists. ##
10885## ------------------------------------------ ##
10886_ASBOX
10887 ) |
10888 sed "s/^/$as_me: WARNING: /" >&2
10889 ;;
10890esac
10891echo "$as_me:$LINENO: checking for $ac_header" >&5
10892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10893if eval "test \"\${$as_ac_Header+set}\" = set"; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10895else
bec39cab 10896 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10897fi
bec39cab
AC
10898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10900
5ee754fc 10901fi
bec39cab
AC
10902if test `eval echo '${'$as_ac_Header'}'` = yes; then
10903 cat >>confdefs.h <<_ACEOF
10904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10905_ACEOF
10906
5ee754fc 10907fi
bec39cab 10908
5ee754fc
MK
10909done
10910
bec39cab
AC
10911
10912for ac_header in sys/proc.h
5ee754fc 10913do
bec39cab 10914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 10915echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
10916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10917if eval "test \"\${$as_ac_Header+set}\" = set"; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10919else
7cb9022a 10920 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10921/* confdefs.h. */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
10925/* end confdefs.h. */
7cb9022a
MK
10926#if HAVE_SYS_PARAM_H
10927# include <sys/param.h>
10928#endif
10929
10930
bec39cab
AC
10931#include <$ac_header>
10932_ACEOF
10933rm -f conftest.$ac_objext
10934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10935 (eval $ac_compile) 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_c_werror_flag"
10943 || test ! -s conftest.err'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest.$ac_objext'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; }; then
7cb9022a 10955 eval "$as_ac_Header=yes"
bec39cab
AC
10956else
10957 echo "$as_me: failed program was:" >&5
10958sed 's/^/| /' conftest.$ac_ext >&5
10959
7cb9022a 10960eval "$as_ac_Header=no"
bec39cab
AC
10961fi
10962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10963fi
bec39cab
AC
10964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10966if test `eval echo '${'$as_ac_Header'}'` = yes; then
10967 cat >>confdefs.h <<_ACEOF
10968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10969_ACEOF
10970
5ee754fc 10971fi
bec39cab 10972
5ee754fc
MK
10973done
10974
bec39cab
AC
10975
10976for ac_header in sys/procfs.h
5ee754fc 10977do
bec39cab
AC
10978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980 echo "$as_me:$LINENO: checking for $ac_header" >&5
10981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10982if eval "test \"\${$as_ac_Header+set}\" = set"; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984fi
10985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10986echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10987else
10988 # Is the header compilable?
10989echo "$as_me:$LINENO: checking $ac_header usability" >&5
10990echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10991cat >conftest.$ac_ext <<_ACEOF
10992/* confdefs.h. */
10993_ACEOF
10994cat confdefs.h >>conftest.$ac_ext
10995cat >>conftest.$ac_ext <<_ACEOF
10996/* end confdefs.h. */
10997$ac_includes_default
10998#include <$ac_header>
10999_ACEOF
11000rm -f conftest.$ac_objext
11001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11002 (eval $ac_compile) 2>conftest.er1
11003 ac_status=$?
11004 grep -v '^ *+' conftest.er1 >conftest.err
11005 rm -f conftest.er1
11006 cat conftest.err >&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } &&
11009 { ac_try='test -z "$ac_c_werror_flag"
11010 || test ! -s conftest.err'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; } &&
11016 { ac_try='test -s conftest.$ac_objext'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
11022 ac_header_compiler=yes
11023else
11024 echo "$as_me: failed program was:" >&5
11025sed 's/^/| /' conftest.$ac_ext >&5
11026
11027ac_header_compiler=no
11028fi
11029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11030echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11031echo "${ECHO_T}$ac_header_compiler" >&6
11032
11033# Is the header present?
11034echo "$as_me:$LINENO: checking $ac_header presence" >&5
11035echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11036cat >conftest.$ac_ext <<_ACEOF
11037/* confdefs.h. */
11038_ACEOF
11039cat confdefs.h >>conftest.$ac_ext
11040cat >>conftest.$ac_ext <<_ACEOF
11041/* end confdefs.h. */
11042#include <$ac_header>
11043_ACEOF
11044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } >/dev/null; then
11052 if test -s conftest.err; then
11053 ac_cpp_err=$ac_c_preproc_warn_flag
11054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11055 else
11056 ac_cpp_err=
11057 fi
11058else
11059 ac_cpp_err=yes
5ee754fc 11060fi
bec39cab
AC
11061if test -z "$ac_cpp_err"; then
11062 ac_header_preproc=yes
5ee754fc 11063else
bec39cab
AC
11064 echo "$as_me: failed program was:" >&5
11065sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 ac_header_preproc=no
5ee754fc 11068fi
bec39cab
AC
11069rm -f conftest.err conftest.$ac_ext
11070echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11071echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11072
bec39cab
AC
11073# So? What about this header?
11074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11075 yes:no: )
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11077echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11079echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11080 ac_header_preproc=yes
11081 ;;
11082 no:yes:* )
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11086echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11088echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11090echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11092echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11094echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11095 (
11096 cat <<\_ASBOX
11097## ------------------------------------------ ##
11098## Report this to the AC_PACKAGE_NAME lists. ##
11099## ------------------------------------------ ##
11100_ASBOX
11101 ) |
11102 sed "s/^/$as_me: WARNING: /" >&2
11103 ;;
11104esac
11105echo "$as_me:$LINENO: checking for $ac_header" >&5
11106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11107if eval "test \"\${$as_ac_Header+set}\" = set"; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109else
11110 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11111fi
bec39cab
AC
11112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11114
5ee754fc 11115fi
bec39cab
AC
11116if test `eval echo '${'$as_ac_Header'}'` = yes; then
11117 cat >>confdefs.h <<_ACEOF
11118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11119_ACEOF
11120
5ee754fc 11121fi
bec39cab 11122
5ee754fc
MK
11123done
11124
bec39cab
AC
11125
11126
11127for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11128do
bec39cab
AC
11129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11130if eval "test \"\${$as_ac_Header+set}\" = set"; then
11131 echo "$as_me:$LINENO: checking for $ac_header" >&5
11132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11133if eval "test \"\${$as_ac_Header+set}\" = set"; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135fi
11136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11138else
11139 # Is the header compilable?
11140echo "$as_me:$LINENO: checking $ac_header usability" >&5
11141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11142cat >conftest.$ac_ext <<_ACEOF
11143/* confdefs.h. */
11144_ACEOF
11145cat confdefs.h >>conftest.$ac_ext
11146cat >>conftest.$ac_ext <<_ACEOF
11147/* end confdefs.h. */
11148$ac_includes_default
11149#include <$ac_header>
11150_ACEOF
11151rm -f conftest.$ac_objext
11152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153 (eval $ac_compile) 2>conftest.er1
11154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag"
11161 || test ! -s conftest.err'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest.$ac_objext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_header_compiler=yes
11174else
11175 echo "$as_me: failed program was:" >&5
11176sed 's/^/| /' conftest.$ac_ext >&5
11177
11178ac_header_compiler=no
11179fi
11180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11182echo "${ECHO_T}$ac_header_compiler" >&6
11183
11184# Is the header present?
11185echo "$as_me:$LINENO: checking $ac_header presence" >&5
11186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11187cat >conftest.$ac_ext <<_ACEOF
11188/* confdefs.h. */
11189_ACEOF
11190cat confdefs.h >>conftest.$ac_ext
11191cat >>conftest.$ac_ext <<_ACEOF
11192/* end confdefs.h. */
11193#include <$ac_header>
11194_ACEOF
11195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } >/dev/null; then
11203 if test -s conftest.err; then
11204 ac_cpp_err=$ac_c_preproc_warn_flag
11205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11206 else
11207 ac_cpp_err=
11208 fi
11209else
11210 ac_cpp_err=yes
5ee754fc 11211fi
bec39cab
AC
11212if test -z "$ac_cpp_err"; then
11213 ac_header_preproc=yes
5ee754fc 11214else
bec39cab
AC
11215 echo "$as_me: failed program was:" >&5
11216sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 ac_header_preproc=no
5ee754fc 11219fi
bec39cab
AC
11220rm -f conftest.err conftest.$ac_ext
11221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11222echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11223
bec39cab
AC
11224# So? What about this header?
11225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11226 yes:no: )
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11231 ac_header_preproc=yes
11232 ;;
11233 no:yes:* )
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11246 (
11247 cat <<\_ASBOX
11248## ------------------------------------------ ##
11249## Report this to the AC_PACKAGE_NAME lists. ##
11250## ------------------------------------------ ##
11251_ASBOX
11252 ) |
11253 sed "s/^/$as_me: WARNING: /" >&2
11254 ;;
11255esac
11256echo "$as_me:$LINENO: checking for $ac_header" >&5
11257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11258if eval "test \"\${$as_ac_Header+set}\" = set"; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260else
11261 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11262fi
bec39cab
AC
11263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11265
5ee754fc 11266fi
bec39cab
AC
11267if test `eval echo '${'$as_ac_Header'}'` = yes; then
11268 cat >>confdefs.h <<_ACEOF
11269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11270_ACEOF
11271
5ee754fc 11272fi
bec39cab 11273
5ee754fc
MK
11274done
11275
bec39cab
AC
11276
11277
11278for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11279do
bec39cab
AC
11280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11281if eval "test \"\${$as_ac_Header+set}\" = set"; then
11282 echo "$as_me:$LINENO: checking for $ac_header" >&5
11283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11284if eval "test \"\${$as_ac_Header+set}\" = set"; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286fi
11287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11289else
11290 # Is the header compilable?
11291echo "$as_me:$LINENO: checking $ac_header usability" >&5
11292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11293cat >conftest.$ac_ext <<_ACEOF
11294/* confdefs.h. */
11295_ACEOF
11296cat confdefs.h >>conftest.$ac_ext
11297cat >>conftest.$ac_ext <<_ACEOF
11298/* end confdefs.h. */
11299$ac_includes_default
11300#include <$ac_header>
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304 (eval $ac_compile) 2>conftest.er1
11305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try='test -z "$ac_c_werror_flag"
11312 || test ! -s conftest.err'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest.$ac_objext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_header_compiler=yes
11325else
11326 echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
11329ac_header_compiler=no
11330fi
11331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11332echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11333echo "${ECHO_T}$ac_header_compiler" >&6
11334
11335# Is the header present?
11336echo "$as_me:$LINENO: checking $ac_header presence" >&5
11337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11338cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344#include <$ac_header>
11345_ACEOF
11346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } >/dev/null; then
11354 if test -s conftest.err; then
11355 ac_cpp_err=$ac_c_preproc_warn_flag
11356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11357 else
11358 ac_cpp_err=
11359 fi
11360else
11361 ac_cpp_err=yes
5ee754fc 11362fi
bec39cab
AC
11363if test -z "$ac_cpp_err"; then
11364 ac_header_preproc=yes
5ee754fc 11365else
bec39cab
AC
11366 echo "$as_me: failed program was:" >&5
11367sed 's/^/| /' conftest.$ac_ext >&5
11368
11369 ac_header_preproc=no
5ee754fc 11370fi
bec39cab
AC
11371rm -f conftest.err conftest.$ac_ext
11372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11373echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11374
bec39cab
AC
11375# So? What about this header?
11376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11377 yes:no: )
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11382 ac_header_preproc=yes
11383 ;;
11384 no:yes:* )
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11397 (
11398 cat <<\_ASBOX
11399## ------------------------------------------ ##
11400## Report this to the AC_PACKAGE_NAME lists. ##
11401## ------------------------------------------ ##
11402_ASBOX
11403 ) |
11404 sed "s/^/$as_me: WARNING: /" >&2
11405 ;;
11406esac
11407echo "$as_me:$LINENO: checking for $ac_header" >&5
11408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11409if eval "test \"\${$as_ac_Header+set}\" = set"; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11413fi
bec39cab
AC
11414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11416
5ee754fc 11417fi
bec39cab
AC
11418if test `eval echo '${'$as_ac_Header'}'` = yes; then
11419 cat >>confdefs.h <<_ACEOF
11420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11421_ACEOF
11422
5ee754fc 11423fi
bec39cab 11424
5ee754fc
MK
11425done
11426
bec39cab
AC
11427
11428for ac_header in sys/select.h
5ee754fc 11429do
bec39cab
AC
11430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11431if eval "test \"\${$as_ac_Header+set}\" = set"; then
11432 echo "$as_me:$LINENO: checking for $ac_header" >&5
11433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436fi
11437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11439else
11440 # Is the header compilable?
11441echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11443cat >conftest.$ac_ext <<_ACEOF
11444/* confdefs.h. */
11445_ACEOF
11446cat confdefs.h >>conftest.$ac_ext
11447cat >>conftest.$ac_ext <<_ACEOF
11448/* end confdefs.h. */
11449$ac_includes_default
11450#include <$ac_header>
11451_ACEOF
11452rm -f conftest.$ac_objext
11453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11454 (eval $ac_compile) 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } &&
11461 { ac_try='test -z "$ac_c_werror_flag"
11462 || test ! -s conftest.err'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; } &&
11468 { ac_try='test -s conftest.$ac_objext'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 ac_header_compiler=yes
11475else
11476 echo "$as_me: failed program was:" >&5
11477sed 's/^/| /' conftest.$ac_ext >&5
11478
11479ac_header_compiler=no
11480fi
11481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11483echo "${ECHO_T}$ac_header_compiler" >&6
11484
11485# Is the header present?
11486echo "$as_me:$LINENO: checking $ac_header presence" >&5
11487echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11488cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h. */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h. */
11494#include <$ac_header>
11495_ACEOF
11496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } >/dev/null; then
11504 if test -s conftest.err; then
11505 ac_cpp_err=$ac_c_preproc_warn_flag
11506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11507 else
11508 ac_cpp_err=
11509 fi
11510else
11511 ac_cpp_err=yes
5ee754fc 11512fi
bec39cab
AC
11513if test -z "$ac_cpp_err"; then
11514 ac_header_preproc=yes
5ee754fc 11515else
bec39cab
AC
11516 echo "$as_me: failed program was:" >&5
11517sed 's/^/| /' conftest.$ac_ext >&5
11518
11519 ac_header_preproc=no
5ee754fc 11520fi
bec39cab
AC
11521rm -f conftest.err conftest.$ac_ext
11522echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11523echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11524
bec39cab
AC
11525# So? What about this header?
11526case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11527 yes:no: )
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11529echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11531echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11532 ac_header_preproc=yes
11533 ;;
11534 no:yes:* )
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11536echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11538echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11540echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11542echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11544echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11546echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11547 (
11548 cat <<\_ASBOX
11549## ------------------------------------------ ##
11550## Report this to the AC_PACKAGE_NAME lists. ##
11551## ------------------------------------------ ##
11552_ASBOX
11553 ) |
11554 sed "s/^/$as_me: WARNING: /" >&2
11555 ;;
11556esac
11557echo "$as_me:$LINENO: checking for $ac_header" >&5
11558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11559if eval "test \"\${$as_ac_Header+set}\" = set"; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561else
11562 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11563fi
bec39cab
AC
11564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11566
5ee754fc 11567fi
bec39cab
AC
11568if test `eval echo '${'$as_ac_Header'}'` = yes; then
11569 cat >>confdefs.h <<_ACEOF
11570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11571_ACEOF
11572
5ee754fc 11573fi
bec39cab 11574
5ee754fc
MK
11575done
11576
bec39cab
AC
11577
11578for ac_header in sys/syscall.h
5ee754fc 11579do
bec39cab
AC
11580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11581if eval "test \"\${$as_ac_Header+set}\" = set"; then
11582 echo "$as_me:$LINENO: checking for $ac_header" >&5
11583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11584if eval "test \"\${$as_ac_Header+set}\" = set"; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586fi
11587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11589else
11590 # Is the header compilable?
11591echo "$as_me:$LINENO: checking $ac_header usability" >&5
11592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11593cat >conftest.$ac_ext <<_ACEOF
11594/* confdefs.h. */
11595_ACEOF
11596cat confdefs.h >>conftest.$ac_ext
11597cat >>conftest.$ac_ext <<_ACEOF
11598/* end confdefs.h. */
11599$ac_includes_default
11600#include <$ac_header>
11601_ACEOF
11602rm -f conftest.$ac_objext
11603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11604 (eval $ac_compile) 2>conftest.er1
11605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag"
11612 || test ! -s conftest.err'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest.$ac_objext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_header_compiler=yes
11625else
11626 echo "$as_me: failed program was:" >&5
11627sed 's/^/| /' conftest.$ac_ext >&5
11628
11629ac_header_compiler=no
11630fi
11631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633echo "${ECHO_T}$ac_header_compiler" >&6
11634
11635# Is the header present?
11636echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11638cat >conftest.$ac_ext <<_ACEOF
11639/* confdefs.h. */
11640_ACEOF
11641cat confdefs.h >>conftest.$ac_ext
11642cat >>conftest.$ac_ext <<_ACEOF
11643/* end confdefs.h. */
11644#include <$ac_header>
11645_ACEOF
11646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } >/dev/null; then
11654 if test -s conftest.err; then
11655 ac_cpp_err=$ac_c_preproc_warn_flag
11656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11657 else
11658 ac_cpp_err=
11659 fi
11660else
11661 ac_cpp_err=yes
5ee754fc 11662fi
bec39cab
AC
11663if test -z "$ac_cpp_err"; then
11664 ac_header_preproc=yes
5ee754fc 11665else
bec39cab
AC
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669 ac_header_preproc=no
5ee754fc 11670fi
bec39cab
AC
11671rm -f conftest.err conftest.$ac_ext
11672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11673echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11674
bec39cab
AC
11675# So? What about this header?
11676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11677 yes:no: )
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11682 ac_header_preproc=yes
11683 ;;
11684 no:yes:* )
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11697 (
11698 cat <<\_ASBOX
11699## ------------------------------------------ ##
11700## Report this to the AC_PACKAGE_NAME lists. ##
11701## ------------------------------------------ ##
11702_ASBOX
11703 ) |
11704 sed "s/^/$as_me: WARNING: /" >&2
11705 ;;
11706esac
11707echo "$as_me:$LINENO: checking for $ac_header" >&5
11708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11709if eval "test \"\${$as_ac_Header+set}\" = set"; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711else
11712 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11713fi
bec39cab
AC
11714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11716
5ee754fc 11717fi
bec39cab
AC
11718if test `eval echo '${'$as_ac_Header'}'` = yes; then
11719 cat >>confdefs.h <<_ACEOF
11720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11721_ACEOF
11722
5ee754fc 11723fi
bec39cab 11724
5ee754fc
MK
11725done
11726
bec39cab
AC
11727
11728for ac_header in sys/types.h
5ee754fc 11729do
bec39cab
AC
11730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11731if eval "test \"\${$as_ac_Header+set}\" = set"; then
11732 echo "$as_me:$LINENO: checking for $ac_header" >&5
11733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11734if eval "test \"\${$as_ac_Header+set}\" = set"; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736fi
11737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11739else
11740 # Is the header compilable?
11741echo "$as_me:$LINENO: checking $ac_header usability" >&5
11742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11743cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
11749$ac_includes_default
11750#include <$ac_header>
11751_ACEOF
11752rm -f conftest.$ac_objext
11753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754 (eval $ac_compile) 2>conftest.er1
11755 ac_status=$?
11756 grep -v '^ *+' conftest.er1 >conftest.err
11757 rm -f conftest.er1
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag"
11762 || test ! -s conftest.err'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest.$ac_objext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11771 ac_status=$?
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 ac_header_compiler=yes
11775else
11776 echo "$as_me: failed program was:" >&5
11777sed 's/^/| /' conftest.$ac_ext >&5
11778
11779ac_header_compiler=no
11780fi
11781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11782echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11783echo "${ECHO_T}$ac_header_compiler" >&6
11784
11785# Is the header present?
11786echo "$as_me:$LINENO: checking $ac_header presence" >&5
11787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11788cat >conftest.$ac_ext <<_ACEOF
11789/* confdefs.h. */
11790_ACEOF
11791cat confdefs.h >>conftest.$ac_ext
11792cat >>conftest.$ac_ext <<_ACEOF
11793/* end confdefs.h. */
11794#include <$ac_header>
11795_ACEOF
11796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } >/dev/null; then
11804 if test -s conftest.err; then
11805 ac_cpp_err=$ac_c_preproc_warn_flag
11806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11807 else
11808 ac_cpp_err=
11809 fi
11810else
11811 ac_cpp_err=yes
5ee754fc 11812fi
bec39cab
AC
11813if test -z "$ac_cpp_err"; then
11814 ac_header_preproc=yes
5ee754fc 11815else
bec39cab
AC
11816 echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
11819 ac_header_preproc=no
5ee754fc 11820fi
bec39cab
AC
11821rm -f conftest.err conftest.$ac_ext
11822echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11823echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11824
bec39cab
AC
11825# So? What about this header?
11826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11827 yes:no: )
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11832 ac_header_preproc=yes
11833 ;;
11834 no:yes:* )
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11847 (
11848 cat <<\_ASBOX
11849## ------------------------------------------ ##
11850## Report this to the AC_PACKAGE_NAME lists. ##
11851## ------------------------------------------ ##
11852_ASBOX
11853 ) |
11854 sed "s/^/$as_me: WARNING: /" >&2
11855 ;;
11856esac
11857echo "$as_me:$LINENO: checking for $ac_header" >&5
11858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11859if eval "test \"\${$as_ac_Header+set}\" = set"; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861else
11862 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11863fi
bec39cab
AC
11864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11866
5ee754fc 11867fi
bec39cab
AC
11868if test `eval echo '${'$as_ac_Header'}'` = yes; then
11869 cat >>confdefs.h <<_ACEOF
11870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11871_ACEOF
11872
5ee754fc 11873fi
bec39cab 11874
5ee754fc
MK
11875done
11876
bec39cab
AC
11877
11878for ac_header in sys/user.h
5ee754fc 11879do
bec39cab 11880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11881echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11883if eval "test \"\${$as_ac_Header+set}\" = set"; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11885else
7cb9022a 11886 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11887/* confdefs.h. */
11888_ACEOF
11889cat confdefs.h >>conftest.$ac_ext
11890cat >>conftest.$ac_ext <<_ACEOF
11891/* end confdefs.h. */
7cb9022a
MK
11892#if HAVE_SYS_PARAM_H
11893# include <sys/param.h>
11894#endif
11895
11896
bec39cab
AC
11897#include <$ac_header>
11898_ACEOF
11899rm -f conftest.$ac_objext
11900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag"
11909 || test ! -s conftest.err'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
7cb9022a 11921 eval "$as_ac_Header=yes"
bec39cab
AC
11922else
11923 echo "$as_me: failed program was:" >&5
11924sed 's/^/| /' conftest.$ac_ext >&5
11925
7cb9022a 11926eval "$as_ac_Header=no"
bec39cab
AC
11927fi
11928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11929fi
bec39cab
AC
11930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11932if test `eval echo '${'$as_ac_Header'}'` = yes; then
11933 cat >>confdefs.h <<_ACEOF
11934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11935_ACEOF
11936
5ee754fc 11937fi
bec39cab 11938
5ee754fc
MK
11939done
11940
bec39cab
AC
11941
11942
11943for ac_header in sys/wait.h wait.h
5ee754fc 11944do
bec39cab
AC
11945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11946if eval "test \"\${$as_ac_Header+set}\" = set"; then
11947 echo "$as_me:$LINENO: checking for $ac_header" >&5
11948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11949if eval "test \"\${$as_ac_Header+set}\" = set"; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951fi
11952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11954else
11955 # Is the header compilable?
11956echo "$as_me:$LINENO: checking $ac_header usability" >&5
11957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11958cat >conftest.$ac_ext <<_ACEOF
11959/* confdefs.h. */
11960_ACEOF
11961cat confdefs.h >>conftest.$ac_ext
11962cat >>conftest.$ac_ext <<_ACEOF
11963/* end confdefs.h. */
11964$ac_includes_default
11965#include <$ac_header>
11966_ACEOF
11967rm -f conftest.$ac_objext
11968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969 (eval $ac_compile) 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try='test -z "$ac_c_werror_flag"
11977 || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest.$ac_objext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_header_compiler=yes
11990else
11991 echo "$as_me: failed program was:" >&5
11992sed 's/^/| /' conftest.$ac_ext >&5
11993
11994ac_header_compiler=no
11995fi
11996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11998echo "${ECHO_T}$ac_header_compiler" >&6
11999
12000# Is the header present?
12001echo "$as_me:$LINENO: checking $ac_header presence" >&5
12002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12003cat >conftest.$ac_ext <<_ACEOF
12004/* confdefs.h. */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */
12009#include <$ac_header>
12010_ACEOF
12011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } >/dev/null; then
12019 if test -s conftest.err; then
12020 ac_cpp_err=$ac_c_preproc_warn_flag
12021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12022 else
12023 ac_cpp_err=
12024 fi
12025else
12026 ac_cpp_err=yes
5ee754fc 12027fi
bec39cab
AC
12028if test -z "$ac_cpp_err"; then
12029 ac_header_preproc=yes
5ee754fc 12030else
bec39cab
AC
12031 echo "$as_me: failed program was:" >&5
12032sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 ac_header_preproc=no
5ee754fc 12035fi
bec39cab
AC
12036rm -f conftest.err conftest.$ac_ext
12037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12038echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 12039
bec39cab
AC
12040# So? What about this header?
12041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12042 yes:no: )
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12047 ac_header_preproc=yes
12048 ;;
12049 no:yes:* )
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12062 (
12063 cat <<\_ASBOX
12064## ------------------------------------------ ##
12065## Report this to the AC_PACKAGE_NAME lists. ##
12066## ------------------------------------------ ##
12067_ASBOX
12068 ) |
12069 sed "s/^/$as_me: WARNING: /" >&2
12070 ;;
12071esac
12072echo "$as_me:$LINENO: checking for $ac_header" >&5
12073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12074if eval "test \"\${$as_ac_Header+set}\" = set"; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076else
12077 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12078fi
bec39cab
AC
12079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12081
9608ab8b 12082fi
bec39cab
AC
12083if test `eval echo '${'$as_ac_Header'}'` = yes; then
12084 cat >>confdefs.h <<_ACEOF
12085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12086_ACEOF
12087
9608ab8b 12088fi
bec39cab 12089
9608ab8b 12090done
5ee754fc 12091
bec39cab
AC
12092
12093
12094
12095for ac_header in termios.h termio.h sgtty.h
5ee754fc 12096do
bec39cab
AC
12097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12098if eval "test \"\${$as_ac_Header+set}\" = set"; then
12099 echo "$as_me:$LINENO: checking for $ac_header" >&5
12100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12101if eval "test \"\${$as_ac_Header+set}\" = set"; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103fi
12104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12106else
12107 # Is the header compilable?
12108echo "$as_me:$LINENO: checking $ac_header usability" >&5
12109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12110cat >conftest.$ac_ext <<_ACEOF
12111/* confdefs.h. */
12112_ACEOF
12113cat confdefs.h >>conftest.$ac_ext
12114cat >>conftest.$ac_ext <<_ACEOF
12115/* end confdefs.h. */
12116$ac_includes_default
12117#include <$ac_header>
12118_ACEOF
12119rm -f conftest.$ac_objext
12120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12121 (eval $ac_compile) 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_c_werror_flag"
12129 || test ! -s conftest.err'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest.$ac_objext'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 ac_header_compiler=yes
12142else
12143 echo "$as_me: failed program was:" >&5
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146ac_header_compiler=no
12147fi
12148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12150echo "${ECHO_T}$ac_header_compiler" >&6
12151
12152# Is the header present?
12153echo "$as_me:$LINENO: checking $ac_header presence" >&5
12154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12155cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h. */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h. */
12161#include <$ac_header>
12162_ACEOF
12163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12165 ac_status=$?
12166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } >/dev/null; then
12171 if test -s conftest.err; then
12172 ac_cpp_err=$ac_c_preproc_warn_flag
12173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12174 else
12175 ac_cpp_err=
12176 fi
12177else
12178 ac_cpp_err=yes
9608ab8b 12179fi
bec39cab
AC
12180if test -z "$ac_cpp_err"; then
12181 ac_header_preproc=yes
9608ab8b 12182else
bec39cab
AC
12183 echo "$as_me: failed program was:" >&5
12184sed 's/^/| /' conftest.$ac_ext >&5
12185
12186 ac_header_preproc=no
9608ab8b 12187fi
bec39cab
AC
12188rm -f conftest.err conftest.$ac_ext
12189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12190echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12191
bec39cab
AC
12192# So? What about this header?
12193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12194 yes:no: )
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12199 ac_header_preproc=yes
12200 ;;
12201 no:yes:* )
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12214 (
12215 cat <<\_ASBOX
12216## ------------------------------------------ ##
12217## Report this to the AC_PACKAGE_NAME lists. ##
12218## ------------------------------------------ ##
12219_ASBOX
12220 ) |
12221 sed "s/^/$as_me: WARNING: /" >&2
12222 ;;
12223esac
12224echo "$as_me:$LINENO: checking for $ac_header" >&5
12225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12226if eval "test \"\${$as_ac_Header+set}\" = set"; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12230fi
bec39cab
AC
12231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12233
9608ab8b 12234fi
bec39cab
AC
12235if test `eval echo '${'$as_ac_Header'}'` = yes; then
12236 cat >>confdefs.h <<_ACEOF
12237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12238_ACEOF
12239
9608ab8b 12240fi
bec39cab 12241
5ee754fc 12242done
9608ab8b 12243
bec39cab
AC
12244
12245for ac_header in unistd.h
78434e59 12246do
bec39cab
AC
12247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12248if eval "test \"\${$as_ac_Header+set}\" = set"; then
12249 echo "$as_me:$LINENO: checking for $ac_header" >&5
12250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12251if eval "test \"\${$as_ac_Header+set}\" = set"; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253fi
12254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12256else
12257 # Is the header compilable?
12258echo "$as_me:$LINENO: checking $ac_header usability" >&5
12259echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12260cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266$ac_includes_default
12267#include <$ac_header>
12268_ACEOF
12269rm -f conftest.$ac_objext
12270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12271 (eval $ac_compile) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -z "$ac_c_werror_flag"
12279 || test ! -s conftest.err'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest.$ac_objext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 ac_header_compiler=yes
12292else
12293 echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
12296ac_header_compiler=no
12297fi
12298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12300echo "${ECHO_T}$ac_header_compiler" >&6
12301
12302# Is the header present?
12303echo "$as_me:$LINENO: checking $ac_header presence" >&5
12304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12305cat >conftest.$ac_ext <<_ACEOF
12306/* confdefs.h. */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h. */
12311#include <$ac_header>
12312_ACEOF
12313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } >/dev/null; then
12321 if test -s conftest.err; then
12322 ac_cpp_err=$ac_c_preproc_warn_flag
12323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12324 else
12325 ac_cpp_err=
12326 fi
12327else
12328 ac_cpp_err=yes
78434e59 12329fi
bec39cab
AC
12330if test -z "$ac_cpp_err"; then
12331 ac_header_preproc=yes
78434e59 12332else
bec39cab
AC
12333 echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ac_header_preproc=no
78434e59 12337fi
bec39cab
AC
12338rm -f conftest.err conftest.$ac_ext
12339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12340echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12341
bec39cab
AC
12342# So? What about this header?
12343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12344 yes:no: )
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12349 ac_header_preproc=yes
12350 ;;
12351 no:yes:* )
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12364 (
12365 cat <<\_ASBOX
12366## ------------------------------------------ ##
12367## Report this to the AC_PACKAGE_NAME lists. ##
12368## ------------------------------------------ ##
12369_ASBOX
12370 ) |
12371 sed "s/^/$as_me: WARNING: /" >&2
12372 ;;
12373esac
12374echo "$as_me:$LINENO: checking for $ac_header" >&5
12375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12376if eval "test \"\${$as_ac_Header+set}\" = set"; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378else
12379 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12380fi
bec39cab
AC
12381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12383
086ec9eb 12384fi
bec39cab
AC
12385if test `eval echo '${'$as_ac_Header'}'` = yes; then
12386 cat >>confdefs.h <<_ACEOF
12387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12388_ACEOF
12389
086ec9eb 12390fi
bec39cab 12391
086ec9eb
MK
12392done
12393
9608ab8b 12394
b1d19a62 12395# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12396# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12397# think that we don't have <curses.h> if we're using GCC.
12398case $host_os in
b1d19a62 12399 solaris2.[789])
5ee754fc 12400 if test "$GCC" = yes; then
bec39cab
AC
12401
12402cat >>confdefs.h <<\_ACEOF
5ee754fc 12403#define _MSE_INT_H 1
bec39cab 12404_ACEOF
5ee754fc
MK
12405
12406 fi ;;
12407esac
bec39cab
AC
12408
12409
12410
12411
12412for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12413do
bec39cab
AC
12414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12415if eval "test \"\${$as_ac_Header+set}\" = set"; then
12416 echo "$as_me:$LINENO: checking for $ac_header" >&5
12417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12418if eval "test \"\${$as_ac_Header+set}\" = set"; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420fi
12421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12423else
12424 # Is the header compilable?
12425echo "$as_me:$LINENO: checking $ac_header usability" >&5
12426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12427cat >conftest.$ac_ext <<_ACEOF
12428/* confdefs.h. */
12429_ACEOF
12430cat confdefs.h >>conftest.$ac_ext
12431cat >>conftest.$ac_ext <<_ACEOF
12432/* end confdefs.h. */
12433$ac_includes_default
12434#include <$ac_header>
12435_ACEOF
12436rm -f conftest.$ac_objext
12437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12438 (eval $ac_compile) 2>conftest.er1
12439 ac_status=$?
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try='test -z "$ac_c_werror_flag"
12446 || test ! -s conftest.err'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest.$ac_objext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_header_compiler=yes
12459else
12460 echo "$as_me: failed program was:" >&5
12461sed 's/^/| /' conftest.$ac_ext >&5
12462
12463ac_header_compiler=no
12464fi
12465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12467echo "${ECHO_T}$ac_header_compiler" >&6
12468
12469# Is the header present?
12470echo "$as_me:$LINENO: checking $ac_header presence" >&5
12471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12472cat >conftest.$ac_ext <<_ACEOF
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
12477/* end confdefs.h. */
12478#include <$ac_header>
12479_ACEOF
12480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12482 ac_status=$?
12483 grep -v '^ *+' conftest.er1 >conftest.err
12484 rm -f conftest.er1
12485 cat conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } >/dev/null; then
12488 if test -s conftest.err; then
12489 ac_cpp_err=$ac_c_preproc_warn_flag
12490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12491 else
12492 ac_cpp_err=
12493 fi
12494else
12495 ac_cpp_err=yes
c906108c 12496fi
bec39cab
AC
12497if test -z "$ac_cpp_err"; then
12498 ac_header_preproc=yes
12499else
12500 echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
12503 ac_header_preproc=no
c906108c 12504fi
bec39cab
AC
12505rm -f conftest.err conftest.$ac_ext
12506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12507echo "${ECHO_T}$ac_header_preproc" >&6
12508
12509# So? What about this header?
12510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12511 yes:no: )
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12516 ac_header_preproc=yes
12517 ;;
12518 no:yes:* )
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12531 (
12532 cat <<\_ASBOX
12533## ------------------------------------------ ##
12534## Report this to the AC_PACKAGE_NAME lists. ##
12535## ------------------------------------------ ##
12536_ASBOX
12537 ) |
12538 sed "s/^/$as_me: WARNING: /" >&2
12539 ;;
12540esac
12541echo "$as_me:$LINENO: checking for $ac_header" >&5
12542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12543if eval "test \"\${$as_ac_Header+set}\" = set"; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12545else
bec39cab 12546 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12547fi
bec39cab
AC
12548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12550
12551fi
12552if test `eval echo '${'$as_ac_Header'}'` = yes; then
12553 cat >>confdefs.h <<_ACEOF
12554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12555_ACEOF
12556
12557fi
12558
5ee754fc 12559done
c906108c 12560
bec39cab 12561
065a1afc 12562for ac_header in ncurses/term.h
3b78cdbb 12563do
bec39cab
AC
12564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12565if eval "test \"\${$as_ac_Header+set}\" = set"; then
12566 echo "$as_me:$LINENO: checking for $ac_header" >&5
12567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12568if eval "test \"\${$as_ac_Header+set}\" = set"; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570fi
12571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12573else
12574 # Is the header compilable?
12575echo "$as_me:$LINENO: checking $ac_header usability" >&5
12576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12577cat >conftest.$ac_ext <<_ACEOF
12578/* confdefs.h. */
12579_ACEOF
12580cat confdefs.h >>conftest.$ac_ext
12581cat >>conftest.$ac_ext <<_ACEOF
12582/* end confdefs.h. */
12583$ac_includes_default
12584#include <$ac_header>
12585_ACEOF
12586rm -f conftest.$ac_objext
12587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588 (eval $ac_compile) 2>conftest.er1
12589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -z "$ac_c_werror_flag"
12596 || test ! -s conftest.err'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12599 ac_status=$?
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; } &&
12602 { ac_try='test -s conftest.$ac_objext'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; }; then
12608 ac_header_compiler=yes
12609else
12610 echo "$as_me: failed program was:" >&5
12611sed 's/^/| /' conftest.$ac_ext >&5
12612
12613ac_header_compiler=no
12614fi
12615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12616echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12617echo "${ECHO_T}$ac_header_compiler" >&6
12618
12619# Is the header present?
12620echo "$as_me:$LINENO: checking $ac_header presence" >&5
12621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12622cat >conftest.$ac_ext <<_ACEOF
12623/* confdefs.h. */
12624_ACEOF
12625cat confdefs.h >>conftest.$ac_ext
12626cat >>conftest.$ac_ext <<_ACEOF
12627/* end confdefs.h. */
12628#include <$ac_header>
12629_ACEOF
12630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } >/dev/null; then
12638 if test -s conftest.err; then
12639 ac_cpp_err=$ac_c_preproc_warn_flag
12640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12641 else
12642 ac_cpp_err=
12643 fi
12644else
12645 ac_cpp_err=yes
3b78cdbb 12646fi
bec39cab
AC
12647if test -z "$ac_cpp_err"; then
12648 ac_header_preproc=yes
12649else
12650 echo "$as_me: failed program was:" >&5
12651sed 's/^/| /' conftest.$ac_ext >&5
12652
12653 ac_header_preproc=no
3b78cdbb 12654fi
bec39cab
AC
12655rm -f conftest.err conftest.$ac_ext
12656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12657echo "${ECHO_T}$ac_header_preproc" >&6
12658
12659# So? What about this header?
12660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12661 yes:no: )
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12666 ac_header_preproc=yes
12667 ;;
12668 no:yes:* )
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12681 (
12682 cat <<\_ASBOX
12683## ------------------------------------------ ##
12684## Report this to the AC_PACKAGE_NAME lists. ##
12685## ------------------------------------------ ##
12686_ASBOX
12687 ) |
12688 sed "s/^/$as_me: WARNING: /" >&2
12689 ;;
12690esac
12691echo "$as_me:$LINENO: checking for $ac_header" >&5
12692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12693if eval "test \"\${$as_ac_Header+set}\" = set"; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12695else
bec39cab
AC
12696 eval "$as_ac_Header=\$ac_header_preproc"
12697fi
12698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12700
3b78cdbb 12701fi
bec39cab
AC
12702if test `eval echo '${'$as_ac_Header'}'` = yes; then
12703 cat >>confdefs.h <<_ACEOF
12704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12705_ACEOF
12706
12707fi
12708
3b78cdbb
DA
12709done
12710
c906108c 12711
065a1afc
JB
12712for ac_header in term.h
12713do
12714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12715echo "$as_me:$LINENO: checking for $ac_header" >&5
12716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12717if eval "test \"\${$as_ac_Header+set}\" = set"; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12719else
12720 cat >conftest.$ac_ext <<_ACEOF
12721/* confdefs.h. */
12722_ACEOF
12723cat confdefs.h >>conftest.$ac_ext
12724cat >>conftest.$ac_ext <<_ACEOF
12725/* end confdefs.h. */
12726#if HAVE_CURSES_H
12727# include <curses.h>
12728#endif
12729
12730
12731#include <$ac_header>
12732_ACEOF
12733rm -f conftest.$ac_objext
12734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735 (eval $ac_compile) 2>conftest.er1
12736 ac_status=$?
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } &&
12742 { ac_try='test -z "$ac_c_werror_flag"
12743 || test ! -s conftest.err'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest.$ac_objext'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 eval "$as_ac_Header=yes"
12756else
12757 echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760eval "$as_ac_Header=no"
12761fi
12762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12763fi
12764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12766if test `eval echo '${'$as_ac_Header'}'` = yes; then
12767 cat >>confdefs.h <<_ACEOF
12768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12769_ACEOF
12770
12771fi
12772
12773done
12774
12775
5ee754fc
MK
12776# FIXME: kettenis/20030102: In most cases we include these
12777# unconditionally, so what's the point in checking these?
bec39cab
AC
12778
12779
12780for ac_header in ctype.h time.h
c906108c 12781do
bec39cab
AC
12782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12783if eval "test \"\${$as_ac_Header+set}\" = set"; then
12784 echo "$as_me:$LINENO: checking for $ac_header" >&5
12785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12786if eval "test \"\${$as_ac_Header+set}\" = set"; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788fi
12789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12791else
12792 # Is the header compilable?
12793echo "$as_me:$LINENO: checking $ac_header usability" >&5
12794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12795cat >conftest.$ac_ext <<_ACEOF
12796/* confdefs.h. */
12797_ACEOF
12798cat confdefs.h >>conftest.$ac_ext
12799cat >>conftest.$ac_ext <<_ACEOF
12800/* end confdefs.h. */
12801$ac_includes_default
12802#include <$ac_header>
12803_ACEOF
12804rm -f conftest.$ac_objext
12805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12806 (eval $ac_compile) 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } &&
12813 { ac_try='test -z "$ac_c_werror_flag"
12814 || test ! -s conftest.err'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; } &&
12820 { ac_try='test -s conftest.$ac_objext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_header_compiler=yes
12827else
12828 echo "$as_me: failed program was:" >&5
12829sed 's/^/| /' conftest.$ac_ext >&5
12830
12831ac_header_compiler=no
12832fi
12833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12835echo "${ECHO_T}$ac_header_compiler" >&6
12836
12837# Is the header present?
12838echo "$as_me:$LINENO: checking $ac_header presence" >&5
12839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12840cat >conftest.$ac_ext <<_ACEOF
12841/* confdefs.h. */
12842_ACEOF
12843cat confdefs.h >>conftest.$ac_ext
12844cat >>conftest.$ac_ext <<_ACEOF
12845/* end confdefs.h. */
12846#include <$ac_header>
12847_ACEOF
12848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } >/dev/null; then
12856 if test -s conftest.err; then
12857 ac_cpp_err=$ac_c_preproc_warn_flag
12858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12859 else
12860 ac_cpp_err=
12861 fi
12862else
12863 ac_cpp_err=yes
c906108c 12864fi
bec39cab
AC
12865if test -z "$ac_cpp_err"; then
12866 ac_header_preproc=yes
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 ac_header_preproc=no
c906108c 12872fi
bec39cab
AC
12873rm -f conftest.err conftest.$ac_ext
12874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12875echo "${ECHO_T}$ac_header_preproc" >&6
12876
12877# So? What about this header?
12878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12879 yes:no: )
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12884 ac_header_preproc=yes
12885 ;;
12886 no:yes:* )
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12899 (
12900 cat <<\_ASBOX
12901## ------------------------------------------ ##
12902## Report this to the AC_PACKAGE_NAME lists. ##
12903## ------------------------------------------ ##
12904_ASBOX
12905 ) |
12906 sed "s/^/$as_me: WARNING: /" >&2
12907 ;;
12908esac
12909echo "$as_me:$LINENO: checking for $ac_header" >&5
12910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12911if eval "test \"\${$as_ac_Header+set}\" = set"; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12913else
bec39cab
AC
12914 eval "$as_ac_Header=\$ac_header_preproc"
12915fi
12916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12918
12919fi
12920if test `eval echo '${'$as_ac_Header'}'` = yes; then
12921 cat >>confdefs.h <<_ACEOF
12922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12923_ACEOF
12924
c906108c 12925fi
bec39cab 12926
c906108c
SS
12927done
12928
5ee754fc 12929
666ec76f
MK
12930# ------------------------- #
12931# Checks for declarations. #
12932# ------------------------- #
12933
a3828db0
MK
12934echo "$as_me:$LINENO: checking whether free is declared" >&5
12935echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12936if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 12937 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12938else
bec39cab
AC
12939 cat >conftest.$ac_ext <<_ACEOF
12940/* confdefs.h. */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h. */
a3828db0 12945$ac_includes_default
bec39cab
AC
12946int
12947main ()
12948{
a3828db0
MK
12949#ifndef free
12950 char *p = (char *) free;
666ec76f 12951#endif
a3828db0 12952
bec39cab
AC
12953 ;
12954 return 0;
12955}
12956_ACEOF
12957rm -f conftest.$ac_objext
12958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959 (eval $ac_compile) 2>conftest.er1
12960 ac_status=$?
12961 grep -v '^ *+' conftest.er1 >conftest.err
12962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } &&
12966 { ac_try='test -z "$ac_c_werror_flag"
12967 || test ! -s conftest.err'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest.$ac_objext'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
a3828db0 12979 ac_cv_have_decl_free=yes
40a7debc 12980else
bec39cab
AC
12981 echo "$as_me: failed program was:" >&5
12982sed 's/^/| /' conftest.$ac_ext >&5
12983
a3828db0 12984ac_cv_have_decl_free=no
40a7debc 12985fi
bec39cab 12986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 12987fi
a3828db0
MK
12988echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12989echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12990if test $ac_cv_have_decl_free = yes; then
40a7debc 12991
a3828db0
MK
12992cat >>confdefs.h <<_ACEOF
12993#define HAVE_DECL_FREE 1
666ec76f
MK
12994_ACEOF
12995
a3828db0 12996
666ec76f 12997else
a3828db0
MK
12998 cat >>confdefs.h <<_ACEOF
12999#define HAVE_DECL_FREE 0
bec39cab 13000_ACEOF
40a7debc 13001
b9362cc7 13002
666ec76f 13003fi
a3828db0
MK
13004echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13005echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13006if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008else
13009 cat >conftest.$ac_ext <<_ACEOF
13010/* confdefs.h. */
13011_ACEOF
13012cat confdefs.h >>conftest.$ac_ext
13013cat >>conftest.$ac_ext <<_ACEOF
13014/* end confdefs.h. */
666ec76f
MK
13015$ac_includes_default
13016int
13017main ()
13018{
a3828db0
MK
13019#ifndef malloc
13020 char *p = (char *) malloc;
13021#endif
13022
666ec76f
MK
13023 ;
13024 return 0;
13025}
13026_ACEOF
13027rm -f conftest.$ac_objext
13028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029 (eval $ac_compile) 2>conftest.er1
13030 ac_status=$?
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try='test -z "$ac_c_werror_flag"
13037 || test ! -s conftest.err'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; } &&
13043 { ac_try='test -s conftest.$ac_objext'
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; }; then
a3828db0 13049 ac_cv_have_decl_malloc=yes
666ec76f
MK
13050else
13051 echo "$as_me: failed program was:" >&5
13052sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 13053
a3828db0
MK
13054ac_cv_have_decl_malloc=no
13055fi
13056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13057fi
13058echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13059echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13060if test $ac_cv_have_decl_malloc = yes; then
13061
13062cat >>confdefs.h <<_ACEOF
13063#define HAVE_DECL_MALLOC 1
13064_ACEOF
13065
13066
13067else
13068 cat >>confdefs.h <<_ACEOF
13069#define HAVE_DECL_MALLOC 0
13070_ACEOF
13071
13072
13073fi
13074echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13075echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13076if test "${ac_cv_have_decl_realloc+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078else
13079 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
13080/* confdefs.h. */
13081_ACEOF
13082cat confdefs.h >>conftest.$ac_ext
13083cat >>conftest.$ac_ext <<_ACEOF
13084/* end confdefs.h. */
13085$ac_includes_default
bec39cab
AC
13086int
13087main ()
13088{
a3828db0
MK
13089#ifndef realloc
13090 char *p = (char *) realloc;
13091#endif
13092
bec39cab
AC
13093 ;
13094 return 0;
13095}
13096_ACEOF
13097rm -f conftest.$ac_objext
13098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
a3828db0 13119 ac_cv_have_decl_realloc=yes
b9362cc7 13120else
bec39cab
AC
13121 echo "$as_me: failed program was:" >&5
13122sed 's/^/| /' conftest.$ac_ext >&5
13123
a3828db0 13124ac_cv_have_decl_realloc=no
b9362cc7 13125fi
bec39cab 13126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13127fi
a3828db0
MK
13128echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13129echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13130if test $ac_cv_have_decl_realloc = yes; then
b9362cc7 13131
666ec76f 13132cat >>confdefs.h <<_ACEOF
a3828db0 13133#define HAVE_DECL_REALLOC 1
bec39cab
AC
13134_ACEOF
13135
bec39cab 13136
a3828db0
MK
13137else
13138 cat >>confdefs.h <<_ACEOF
13139#define HAVE_DECL_REALLOC 0
13140_ACEOF
b9362cc7
AC
13141
13142
a3828db0 13143fi
5ee754fc 13144
a3828db0
MK
13145
13146echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13147echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13148if test "${ac_cv_have_decl_strerror+set}" = set; then
bec39cab
AC
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150else
13151 cat >conftest.$ac_ext <<_ACEOF
13152/* confdefs.h. */
13153_ACEOF
13154cat confdefs.h >>conftest.$ac_ext
13155cat >>conftest.$ac_ext <<_ACEOF
13156/* end confdefs.h. */
a3828db0 13157$ac_includes_default
bec39cab
AC
13158int
13159main ()
13160{
a3828db0
MK
13161#ifndef strerror
13162 char *p = (char *) strerror;
13163#endif
13164
bec39cab
AC
13165 ;
13166 return 0;
13167}
13168_ACEOF
13169rm -f conftest.$ac_objext
13170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13171 (eval $ac_compile) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_c_werror_flag"
13179 || test ! -s conftest.err'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; } &&
13185 { ac_try='test -s conftest.$ac_objext'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
a3828db0 13191 ac_cv_have_decl_strerror=yes
c906108c 13192else
bec39cab
AC
13193 echo "$as_me: failed program was:" >&5
13194sed 's/^/| /' conftest.$ac_ext >&5
13195
a3828db0 13196ac_cv_have_decl_strerror=no
c906108c 13197fi
bec39cab 13198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13199fi
a3828db0
MK
13200echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13201echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13202if test $ac_cv_have_decl_strerror = yes; then
c906108c 13203
bec39cab 13204cat >>confdefs.h <<_ACEOF
a3828db0 13205#define HAVE_DECL_STRERROR 1
bec39cab 13206_ACEOF
c906108c 13207
c906108c 13208
a3828db0
MK
13209else
13210 cat >>confdefs.h <<_ACEOF
13211#define HAVE_DECL_STRERROR 0
13212_ACEOF
c906108c 13213
5ee754fc 13214
a3828db0
MK
13215fi
13216echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13217echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13218if test "${ac_cv_have_decl_strstr+set}" = set; then
bec39cab
AC
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13220else
13221 cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h. */
a3828db0 13227$ac_includes_default
bec39cab
AC
13228int
13229main ()
13230{
a3828db0
MK
13231#ifndef strstr
13232 char *p = (char *) strstr;
bec39cab
AC
13233#endif
13234
13235 ;
13236 return 0;
13237}
13238_ACEOF
13239rm -f conftest.$ac_objext
13240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13241 (eval $ac_compile) 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag"
13249 || test ! -s conftest.err'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest.$ac_objext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
a3828db0 13261 ac_cv_have_decl_strstr=yes
c906108c 13262else
bec39cab
AC
13263 echo "$as_me: failed program was:" >&5
13264sed 's/^/| /' conftest.$ac_ext >&5
13265
a3828db0 13266ac_cv_have_decl_strstr=no
c906108c 13267fi
bec39cab 13268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13269fi
a3828db0
MK
13270echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13271echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13272if test $ac_cv_have_decl_strstr = yes; then
bec39cab 13273
a3828db0
MK
13274cat >>confdefs.h <<_ACEOF
13275#define HAVE_DECL_STRSTR 1
13276_ACEOF
13277
13278
13279else
13280 cat >>confdefs.h <<_ACEOF
13281#define HAVE_DECL_STRSTR 0
bec39cab 13282_ACEOF
c906108c 13283
a3828db0 13284
c906108c
SS
13285fi
13286
a3828db0
MK
13287
13288echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13289echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13290if test "${ac_cv_have_decl_getopt+set}" = set; then
bec39cab 13291 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 13292else
bec39cab
AC
13293 cat >conftest.$ac_ext <<_ACEOF
13294/* confdefs.h. */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
13298/* end confdefs.h. */
a3828db0
MK
13299$ac_includes_default
13300int
13301main ()
13302{
13303#ifndef getopt
13304 char *p = (char *) getopt;
bec39cab
AC
13305#endif
13306
a3828db0
MK
13307 ;
13308 return 0;
13309}
bec39cab
AC
13310_ACEOF
13311rm -f conftest.$ac_objext
13312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313 (eval $ac_compile) 2>conftest.er1
13314 ac_status=$?
13315 grep -v '^ *+' conftest.er1 >conftest.err
13316 rm -f conftest.er1
13317 cat conftest.err >&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -z "$ac_c_werror_flag"
13321 || test ! -s conftest.err'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; } &&
13327 { ac_try='test -s conftest.$ac_objext'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
a3828db0 13333 ac_cv_have_decl_getopt=yes
bce58c09 13334else
bec39cab
AC
13335 echo "$as_me: failed program was:" >&5
13336sed 's/^/| /' conftest.$ac_ext >&5
13337
a3828db0 13338ac_cv_have_decl_getopt=no
bce58c09 13339fi
bec39cab 13340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 13341fi
a3828db0
MK
13342echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13343echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13344if test $ac_cv_have_decl_getopt = yes; then
bec39cab 13345
a3828db0
MK
13346cat >>confdefs.h <<_ACEOF
13347#define HAVE_DECL_GETOPT 1
13348_ACEOF
bce58c09 13349
a3828db0
MK
13350
13351else
13352 cat >>confdefs.h <<_ACEOF
13353#define HAVE_DECL_GETOPT 0
bec39cab 13354_ACEOF
bce58c09 13355
c906108c 13356
e5a7de23
EZ
13357fi
13358echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13359echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13360if test "${ac_cv_have_decl_snprintf+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13362else
13363 cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h. */
13369$ac_includes_default
13370int
13371main ()
13372{
13373#ifndef snprintf
13374 char *p = (char *) snprintf;
13375#endif
13376
13377 ;
13378 return 0;
13379}
13380_ACEOF
13381rm -f conftest.$ac_objext
13382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13383 (eval $ac_compile) 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -z "$ac_c_werror_flag"
13391 || test ! -s conftest.err'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_have_decl_snprintf=yes
13404else
13405 echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
13408ac_cv_have_decl_snprintf=no
13409fi
13410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13411fi
13412echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13413echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13414if test $ac_cv_have_decl_snprintf = yes; then
13415
13416cat >>confdefs.h <<_ACEOF
13417#define HAVE_DECL_SNPRINTF 1
13418_ACEOF
13419
13420
13421else
13422 cat >>confdefs.h <<_ACEOF
13423#define HAVE_DECL_SNPRINTF 0
13424_ACEOF
13425
13426
13427fi
13428echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13429echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13430if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432else
13433 cat >conftest.$ac_ext <<_ACEOF
13434/* confdefs.h. */
13435_ACEOF
13436cat confdefs.h >>conftest.$ac_ext
13437cat >>conftest.$ac_ext <<_ACEOF
13438/* end confdefs.h. */
13439$ac_includes_default
13440int
13441main ()
13442{
13443#ifndef vsnprintf
13444 char *p = (char *) vsnprintf;
13445#endif
13446
13447 ;
13448 return 0;
13449}
13450_ACEOF
13451rm -f conftest.$ac_objext
13452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13453 (eval $ac_compile) 2>conftest.er1
13454 ac_status=$?
13455 grep -v '^ *+' conftest.er1 >conftest.err
13456 rm -f conftest.er1
13457 cat conftest.err >&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } &&
13460 { ac_try='test -z "$ac_c_werror_flag"
13461 || test ! -s conftest.err'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; } &&
13467 { ac_try='test -s conftest.$ac_objext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 ac_cv_have_decl_vsnprintf=yes
13474else
13475 echo "$as_me: failed program was:" >&5
13476sed 's/^/| /' conftest.$ac_ext >&5
13477
13478ac_cv_have_decl_vsnprintf=no
13479fi
13480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13481fi
13482echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13483echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13484if test $ac_cv_have_decl_vsnprintf = yes; then
13485
13486cat >>confdefs.h <<_ACEOF
13487#define HAVE_DECL_VSNPRINTF 1
13488_ACEOF
13489
13490
13491else
13492 cat >>confdefs.h <<_ACEOF
13493#define HAVE_DECL_VSNPRINTF 0
13494_ACEOF
13495
13496
a3828db0 13497fi
5ee754fc 13498
a3828db0
MK
13499
13500
13501# ----------------------- #
13502# Checks for structures. #
13503# ----------------------- #
13504
13505echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13506echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13507if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
bec39cab
AC
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509else
13510 cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
a3828db0 13516$ac_includes_default
bec39cab
AC
13517int
13518main ()
13519{
a3828db0
MK
13520static struct stat ac_aggr;
13521if (ac_aggr.st_blocks)
13522return 0;
bec39cab
AC
13523 ;
13524 return 0;
13525}
13526_ACEOF
a3828db0
MK
13527rm -f conftest.$ac_objext
13528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
a3828db0 13543 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
a3828db0 13549 ac_cv_member_struct_stat_st_blocks=yes
bec39cab
AC
13550else
13551 echo "$as_me: failed program was:" >&5
13552sed 's/^/| /' conftest.$ac_ext >&5
13553
a3828db0
MK
13554cat >conftest.$ac_ext <<_ACEOF
13555/* confdefs.h. */
bec39cab
AC
13556_ACEOF
13557cat confdefs.h >>conftest.$ac_ext
13558cat >>conftest.$ac_ext <<_ACEOF
13559/* end confdefs.h. */
a3828db0 13560$ac_includes_default
bec39cab
AC
13561int
13562main ()
13563{
a3828db0
MK
13564static struct stat ac_aggr;
13565if (sizeof ac_aggr.st_blocks)
13566return 0;
bec39cab
AC
13567 ;
13568 return 0;
13569}
13570_ACEOF
a3828db0
MK
13571rm -f conftest.$ac_objext
13572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13573 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13574 ac_status=$?
13575 grep -v '^ *+' conftest.er1 >conftest.err
13576 rm -f conftest.er1
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag"
13581 || test ! -s conftest.err'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; } &&
a3828db0 13587 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
a3828db0 13593 ac_cv_member_struct_stat_st_blocks=yes
46711df8 13594else
bec39cab
AC
13595 echo "$as_me: failed program was:" >&5
13596sed 's/^/| /' conftest.$ac_ext >&5
13597
a3828db0 13598ac_cv_member_struct_stat_st_blocks=no
46711df8 13599fi
a3828db0 13600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13601fi
a3828db0
MK
13602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13603fi
13604echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13605echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13606if test $ac_cv_member_struct_stat_st_blocks = yes; then
46711df8 13607
a3828db0
MK
13608cat >>confdefs.h <<_ACEOF
13609#define HAVE_STRUCT_STAT_ST_BLOCKS 1
bec39cab 13610_ACEOF
46711df8 13611
46711df8 13612
d3ea6809
MM
13613fi
13614
13615echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13616echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13617if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619else
13620 cat >conftest.$ac_ext <<_ACEOF
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
13625/* end confdefs.h. */
13626$ac_includes_default
13627int
13628main ()
13629{
13630static struct stat ac_aggr;
13631if (ac_aggr.st_blksize)
13632return 0;
13633 ;
13634 return 0;
13635}
13636_ACEOF
13637rm -f conftest.$ac_objext
13638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13639 (eval $ac_compile) 2>conftest.er1
13640 ac_status=$?
13641 grep -v '^ *+' conftest.er1 >conftest.err
13642 rm -f conftest.er1
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } &&
13646 { ac_try='test -z "$ac_c_werror_flag"
13647 || test ! -s conftest.err'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; } &&
13653 { ac_try='test -s conftest.$ac_objext'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; }; then
13659 ac_cv_member_struct_stat_st_blksize=yes
13660else
13661 echo "$as_me: failed program was:" >&5
13662sed 's/^/| /' conftest.$ac_ext >&5
13663
13664cat >conftest.$ac_ext <<_ACEOF
13665/* confdefs.h. */
13666_ACEOF
13667cat confdefs.h >>conftest.$ac_ext
13668cat >>conftest.$ac_ext <<_ACEOF
13669/* end confdefs.h. */
13670$ac_includes_default
13671int
13672main ()
13673{
13674static struct stat ac_aggr;
13675if (sizeof ac_aggr.st_blksize)
13676return 0;
13677 ;
13678 return 0;
13679}
13680_ACEOF
13681rm -f conftest.$ac_objext
13682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>conftest.er1
13684 ac_status=$?
13685 grep -v '^ *+' conftest.er1 >conftest.err
13686 rm -f conftest.er1
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_cv_member_struct_stat_st_blksize=yes
13704else
13705 echo "$as_me: failed program was:" >&5
13706sed 's/^/| /' conftest.$ac_ext >&5
13707
13708ac_cv_member_struct_stat_st_blksize=no
13709fi
13710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711fi
13712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13713fi
13714echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13715echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13716if test $ac_cv_member_struct_stat_st_blksize = yes; then
13717
13718cat >>confdefs.h <<_ACEOF
13719#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13720_ACEOF
13721
13722
a3828db0 13723fi
46711df8 13724
46711df8 13725
a3828db0
MK
13726# ------------------ #
13727# Checks for types. #
13728# ------------------ #
46711df8 13729
a3828db0
MK
13730echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13731echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13732if test "${ac_cv_type_signal+set}" = set; then
bec39cab
AC
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13734else
13735 cat >conftest.$ac_ext <<_ACEOF
13736/* confdefs.h. */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
13740/* end confdefs.h. */
a3828db0
MK
13741#include <sys/types.h>
13742#include <signal.h>
13743#ifdef signal
13744# undef signal
bec39cab 13745#endif
bec39cab 13746#ifdef __cplusplus
a3828db0 13747extern "C" void (*signal (int, void (*)(int)))(int);
46711df8 13748#else
a3828db0 13749void (*signal ()) ();
46711df8
MK
13750#endif
13751
bec39cab
AC
13752int
13753main ()
13754{
a3828db0 13755int i;
bec39cab
AC
13756 ;
13757 return 0;
13758}
13759_ACEOF
a3828db0
MK
13760rm -f conftest.$ac_objext
13761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13763 ac_status=$?
13764 grep -v '^ *+' conftest.er1 >conftest.err
13765 rm -f conftest.er1
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } &&
13769 { ac_try='test -z "$ac_c_werror_flag"
13770 || test ! -s conftest.err'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
a3828db0 13776 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
a3828db0 13782 ac_cv_type_signal=void
bec39cab
AC
13783else
13784 echo "$as_me: failed program was:" >&5
13785sed 's/^/| /' conftest.$ac_ext >&5
13786
a3828db0 13787ac_cv_type_signal=int
bec39cab 13788fi
a3828db0 13789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 13790fi
a3828db0
MK
13791echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13792echo "${ECHO_T}$ac_cv_type_signal" >&6
bec39cab
AC
13793
13794cat >>confdefs.h <<_ACEOF
a3828db0 13795#define RETSIGTYPE $ac_cv_type_signal
bec39cab 13796_ACEOF
46711df8 13797
46711df8 13798
f9f87d2c
MK
13799echo "$as_me:$LINENO: checking for socklen_t" >&5
13800echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13801if test "${ac_cv_type_socklen_t+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803else
13804 cat >conftest.$ac_ext <<_ACEOF
13805/* confdefs.h. */
13806_ACEOF
13807cat confdefs.h >>conftest.$ac_ext
13808cat >>conftest.$ac_ext <<_ACEOF
13809/* end confdefs.h. */
13810#include <sys/types.h>
13811#include <sys/socket.h>
13812
13813
13814int
13815main ()
13816{
13817if ((socklen_t *) 0)
13818 return 0;
13819if (sizeof (socklen_t))
13820 return 0;
13821 ;
13822 return 0;
13823}
13824_ACEOF
13825rm -f conftest.$ac_objext
13826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13827 (eval $ac_compile) 2>conftest.er1
13828 ac_status=$?
13829 grep -v '^ *+' conftest.er1 >conftest.err
13830 rm -f conftest.er1
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -z "$ac_c_werror_flag"
13835 || test ! -s conftest.err'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; } &&
13841 { ac_try='test -s conftest.$ac_objext'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; }; then
13847 ac_cv_type_socklen_t=yes
13848else
13849 echo "$as_me: failed program was:" >&5
13850sed 's/^/| /' conftest.$ac_ext >&5
13851
13852ac_cv_type_socklen_t=no
13853fi
13854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13855fi
13856echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13857echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13858if test $ac_cv_type_socklen_t = yes; then
13859
13860cat >>confdefs.h <<_ACEOF
13861#define HAVE_SOCKLEN_T 1
13862_ACEOF
13863
13864
13865fi
13866
46711df8 13867
a3828db0
MK
13868# ------------------------------------- #
13869# Checks for compiler characteristics. #
13870# ------------------------------------- #
13871
13872echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13873echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13874if test "${ac_cv_c_const+set}" = set; then
bec39cab 13875 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13876else
bec39cab
AC
13877 cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
bec39cab
AC
13883
13884int
46711df8
MK
13885main ()
13886{
a3828db0
MK
13887/* FIXME: Include the comments suggested by Paul. */
13888#ifndef __cplusplus
13889 /* Ultrix mips cc rejects this. */
13890 typedef int charset[2];
13891 const charset x;
13892 /* SunOS 4.1.1 cc rejects this. */
13893 char const *const *ccp;
13894 char **p;
13895 /* NEC SVR4.0.2 mips cc rejects this. */
13896 struct point {int x, y;};
13897 static struct point const zero = {0,0};
13898 /* AIX XL C 1.02.0.0 rejects this.
13899 It does not let you subtract one const X* pointer from another in
13900 an arm of an if-expression whose if-part is not a constant
13901 expression */
13902 const char *g = "string";
13903 ccp = &g + (g ? g-g : 0);
13904 /* HPUX 7.0 cc rejects these. */
13905 ++ccp;
13906 p = (char**) ccp;
13907 ccp = (char const *const *) p;
13908 { /* SCO 3.2v4 cc rejects this. */
13909 char *t;
13910 char const *s = 0 ? (char *) 0 : (char const *) 0;
13911
13912 *t++ = 0;
13913 }
13914 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13915 int x[] = {25, 17};
13916 const int *foo = &x[0];
13917 ++foo;
13918 }
13919 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13920 typedef const int *iptr;
13921 iptr p = 0;
13922 ++p;
13923 }
13924 { /* AIX XL C 1.02.0.0 rejects this saying
13925 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13926 struct s { int j; const int *ap[3]; };
13927 struct s *b; b->j = 5;
13928 }
13929 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13930 const int foo = 10;
13931 }
13932#endif
13933
13934 ;
13935 return 0;
46711df8 13936}
bec39cab 13937_ACEOF
a3828db0
MK
13938rm -f conftest.$ac_objext
13939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13940 (eval $ac_compile) 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
bec39cab
AC
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
a3828db0 13960 ac_cv_c_const=yes
46711df8 13961else
a3828db0 13962 echo "$as_me: failed program was:" >&5
bec39cab
AC
13963sed 's/^/| /' conftest.$ac_ext >&5
13964
a3828db0 13965ac_cv_c_const=no
46711df8 13966fi
a3828db0 13967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13968fi
a3828db0
MK
13969echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13970echo "${ECHO_T}$ac_cv_c_const" >&6
13971if test $ac_cv_c_const = no; then
46711df8 13972
a3828db0
MK
13973cat >>confdefs.h <<\_ACEOF
13974#define const
bec39cab
AC
13975_ACEOF
13976
46711df8
MK
13977fi
13978
a3828db0
MK
13979echo "$as_me:$LINENO: checking for inline" >&5
13980echo $ECHO_N "checking for inline... $ECHO_C" >&6
13981if test "${ac_cv_c_inline+set}" = set; then
bec39cab 13982 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13983else
a3828db0
MK
13984 ac_cv_c_inline=no
13985for ac_kw in inline __inline__ __inline; do
13986 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13987/* confdefs.h. */
13988_ACEOF
13989cat confdefs.h >>conftest.$ac_ext
13990cat >>conftest.$ac_ext <<_ACEOF
13991/* end confdefs.h. */
a3828db0
MK
13992#ifndef __cplusplus
13993typedef int foo_t;
13994static $ac_kw foo_t static_foo () {return 0; }
13995$ac_kw foo_t foo () {return 0; }
13996#endif
13997
bec39cab
AC
13998_ACEOF
13999rm -f conftest.$ac_objext
14000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14001 (eval $ac_compile) 2>conftest.er1
14002 ac_status=$?
14003 grep -v '^ *+' conftest.er1 >conftest.err
14004 rm -f conftest.er1
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -z "$ac_c_werror_flag"
14009 || test ! -s conftest.err'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; } &&
14015 { ac_try='test -s conftest.$ac_objext'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
a3828db0 14021 ac_cv_c_inline=$ac_kw; break
bec39cab
AC
14022else
14023 echo "$as_me: failed program was:" >&5
14024sed 's/^/| /' conftest.$ac_ext >&5
14025
bec39cab
AC
14026fi
14027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0 14028done
bec39cab 14029
74c1b268 14030fi
a3828db0
MK
14031echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14032echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 14033
bec39cab 14034
a3828db0
MK
14035case $ac_cv_c_inline in
14036 inline | yes) ;;
14037 *)
14038 case $ac_cv_c_inline in
14039 no) ac_val=;;
14040 *) ac_val=$ac_cv_c_inline;;
14041 esac
14042 cat >>confdefs.h <<_ACEOF
14043#ifndef __cplusplus
14044#define inline $ac_val
14045#endif
14046_ACEOF
bec39cab
AC
14047 ;;
14048esac
bec39cab 14049
74c1b268 14050
a3828db0
MK
14051# ------------------------------ #
14052# Checks for library functions. #
14053# ------------------------------ #
bec39cab 14054
a3828db0
MK
14055# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14056# for constant arguments. Useless!
14057echo "$as_me:$LINENO: checking for working alloca.h" >&5
14058echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14059if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061else
14062 cat >conftest.$ac_ext <<_ACEOF
14063/* confdefs.h. */
14064_ACEOF
14065cat confdefs.h >>conftest.$ac_ext
14066cat >>conftest.$ac_ext <<_ACEOF
14067/* end confdefs.h. */
a3828db0 14068#include <alloca.h>
bec39cab
AC
14069int
14070main ()
14071{
a3828db0 14072char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
14073 ;
14074 return 0;
14075}
14076_ACEOF
14077rm -f conftest.$ac_objext conftest$ac_exeext
14078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14079 (eval $ac_link) 2>conftest.er1
14080 ac_status=$?
14081 grep -v '^ *+' conftest.er1 >conftest.err
14082 rm -f conftest.er1
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } &&
14086 { ac_try='test -z "$ac_c_werror_flag"
14087 || test ! -s conftest.err'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest$ac_exeext'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; }; then
a3828db0 14099 ac_cv_working_alloca_h=yes
bec39cab
AC
14100else
14101 echo "$as_me: failed program was:" >&5
14102sed 's/^/| /' conftest.$ac_ext >&5
14103
a3828db0 14104ac_cv_working_alloca_h=no
bec39cab
AC
14105fi
14106rm -f conftest.err conftest.$ac_objext \
14107 conftest$ac_exeext conftest.$ac_ext
14108fi
a3828db0
MK
14109echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14110echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14111if test $ac_cv_working_alloca_h = yes; then
14112
14113cat >>confdefs.h <<\_ACEOF
14114#define HAVE_ALLOCA_H 1
bec39cab 14115_ACEOF
74c1b268 14116
74c1b268
AC
14117fi
14118
a3828db0
MK
14119echo "$as_me:$LINENO: checking for alloca" >&5
14120echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14121if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 14122 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 14123else
bec39cab
AC
14124 cat >conftest.$ac_ext <<_ACEOF
14125/* confdefs.h. */
14126_ACEOF
14127cat confdefs.h >>conftest.$ac_ext
14128cat >>conftest.$ac_ext <<_ACEOF
14129/* end confdefs.h. */
a3828db0
MK
14130#ifdef __GNUC__
14131# define alloca __builtin_alloca
14132#else
14133# ifdef _MSC_VER
14134# include <malloc.h>
14135# define alloca _alloca
14136# else
14137# if HAVE_ALLOCA_H
14138# include <alloca.h>
14139# else
14140# ifdef _AIX
14141 #pragma alloca
14142# else
14143# ifndef alloca /* predefined by HP cc +Olibcalls */
14144char *alloca ();
14145# endif
14146# endif
14147# endif
97bf5e38 14148# endif
a3828db0 14149#endif
97bf5e38 14150
bec39cab
AC
14151int
14152main ()
14153{
a3828db0 14154char *p = (char *) alloca (1);
bec39cab
AC
14155 ;
14156 return 0;
14157}
14158_ACEOF
a3828db0
MK
14159rm -f conftest.$ac_objext conftest$ac_exeext
14160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14161 (eval $ac_link) 2>conftest.er1
bec39cab
AC
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try='test -z "$ac_c_werror_flag"
14169 || test ! -s conftest.err'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
a3828db0 14175 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
a3828db0 14181 ac_cv_func_alloca_works=yes
0200359f 14182else
bec39cab
AC
14183 echo "$as_me: failed program was:" >&5
14184sed 's/^/| /' conftest.$ac_ext >&5
0200359f 14185
a3828db0 14186ac_cv_func_alloca_works=no
0200359f 14187fi
a3828db0
MK
14188rm -f conftest.err conftest.$ac_objext \
14189 conftest$ac_exeext conftest.$ac_ext
72473524 14190fi
a3828db0
MK
14191echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14192echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 14193
a3828db0
MK
14194if test $ac_cv_func_alloca_works = yes; then
14195
14196cat >>confdefs.h <<\_ACEOF
14197#define HAVE_ALLOCA 1
bec39cab
AC
14198_ACEOF
14199
a3828db0
MK
14200else
14201 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14202# that cause trouble. Some versions do not even contain alloca or
14203# contain a buggy version. If you still want to use their alloca,
14204# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 14205
a3828db0 14206ALLOCA=alloca.$ac_objext
bec39cab 14207
a3828db0
MK
14208cat >>confdefs.h <<\_ACEOF
14209#define C_ALLOCA 1
14210_ACEOF
bec39cab 14211
a3828db0
MK
14212
14213echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14214echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14215if test "${ac_cv_os_cray+set}" = set; then
bec39cab 14216 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14217else
a3828db0 14218 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14219/* confdefs.h. */
14220_ACEOF
14221cat confdefs.h >>conftest.$ac_ext
14222cat >>conftest.$ac_ext <<_ACEOF
14223/* end confdefs.h. */
a3828db0
MK
14224#if defined(CRAY) && ! defined(CRAY2)
14225webecray
14226#else
14227wenotbecray
14228#endif
14229
14230_ACEOF
14231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14232 $EGREP "webecray" >/dev/null 2>&1; then
14233 ac_cv_os_cray=yes
14234else
14235 ac_cv_os_cray=no
14236fi
14237rm -f conftest*
14238
14239fi
14240echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14241echo "${ECHO_T}$ac_cv_os_cray" >&6
14242if test $ac_cv_os_cray = yes; then
14243 for ac_func in _getb67 GETB67 getb67; do
14244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14245echo "$as_me:$LINENO: checking for $ac_func" >&5
14246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14247if eval "test \"\${$as_ac_var+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249else
14250 cat >conftest.$ac_ext <<_ACEOF
14251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h. */
14256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14258#define $ac_func innocuous_$ac_func
14259
14260/* System header to define __stub macros and hopefully few prototypes,
14261 which can conflict with char $ac_func (); below.
14262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14263 <limits.h> exists even on freestanding compilers. */
14264
14265#ifdef __STDC__
14266# include <limits.h>
14267#else
14268# include <assert.h>
14269#endif
14270
14271#undef $ac_func
14272
14273/* Override any gcc2 internal prototype to avoid an error. */
14274#ifdef __cplusplus
14275extern "C"
14276{
14277#endif
14278/* We use char because int might match the return type of a gcc2
14279 builtin and then its argument prototype would still apply. */
14280char $ac_func ();
14281/* The GNU C library defines this for functions which it implements
14282 to always fail with ENOSYS. Some functions are actually named
14283 something starting with __ and the normal name is an alias. */
14284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14285choke me
14286#else
14287char (*f) () = $ac_func;
14288#endif
14289#ifdef __cplusplus
14290}
14291#endif
14292
14293int
14294main ()
14295{
14296return f != $ac_func;
14297 ;
14298 return 0;
14299}
14300_ACEOF
14301rm -f conftest.$ac_objext conftest$ac_exeext
14302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14303 (eval $ac_link) 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag"
14311 || test ! -s conftest.err'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest$ac_exeext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 eval "$as_ac_var=yes"
14324else
14325 echo "$as_me: failed program was:" >&5
14326sed 's/^/| /' conftest.$ac_ext >&5
14327
14328eval "$as_ac_var=no"
14329fi
14330rm -f conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14332fi
14333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14334echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14335if test `eval echo '${'$as_ac_var'}'` = yes; then
14336
14337cat >>confdefs.h <<_ACEOF
14338#define CRAY_STACKSEG_END $ac_func
14339_ACEOF
14340
14341 break
14342fi
14343
14344 done
14345fi
14346
14347echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14348echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14349if test "${ac_cv_c_stack_direction+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351else
14352 if test "$cross_compiling" = yes; then
14353 ac_cv_c_stack_direction=0
14354else
14355 cat >conftest.$ac_ext <<_ACEOF
14356/* confdefs.h. */
14357_ACEOF
14358cat confdefs.h >>conftest.$ac_ext
14359cat >>conftest.$ac_ext <<_ACEOF
14360/* end confdefs.h. */
14361int
14362find_stack_direction ()
14363{
14364 static char *addr = 0;
14365 auto char dummy;
14366 if (addr == 0)
14367 {
14368 addr = &dummy;
14369 return find_stack_direction ();
14370 }
14371 else
14372 return (&dummy > addr) ? 1 : -1;
14373}
14374
14375int
14376main ()
14377{
14378 exit (find_stack_direction () < 0);
14379}
14380_ACEOF
14381rm -f conftest$ac_exeext
14382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383 (eval $ac_link) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_cv_c_stack_direction=1
14393else
14394 echo "$as_me: program exited with status $ac_status" >&5
14395echo "$as_me: failed program was:" >&5
14396sed 's/^/| /' conftest.$ac_ext >&5
14397
14398( exit $ac_status )
14399ac_cv_c_stack_direction=-1
14400fi
14401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14402fi
14403fi
14404echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14405echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14406
14407cat >>confdefs.h <<_ACEOF
14408#define STACK_DIRECTION $ac_cv_c_stack_direction
14409_ACEOF
14410
14411
14412fi
14413
14414
14415
14416for ac_header in stdlib.h unistd.h
14417do
14418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14419if eval "test \"\${$as_ac_Header+set}\" = set"; then
14420 echo "$as_me:$LINENO: checking for $ac_header" >&5
14421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14422if eval "test \"\${$as_ac_Header+set}\" = set"; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14424fi
14425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14427else
14428 # Is the header compilable?
14429echo "$as_me:$LINENO: checking $ac_header usability" >&5
14430echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14431cat >conftest.$ac_ext <<_ACEOF
14432/* confdefs.h. */
14433_ACEOF
14434cat confdefs.h >>conftest.$ac_ext
14435cat >>conftest.$ac_ext <<_ACEOF
14436/* end confdefs.h. */
14437$ac_includes_default
14438#include <$ac_header>
14439_ACEOF
14440rm -f conftest.$ac_objext
14441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442 (eval $ac_compile) 2>conftest.er1
14443 ac_status=$?
bec39cab
AC
14444 grep -v '^ *+' conftest.er1 >conftest.err
14445 rm -f conftest.er1
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -z "$ac_c_werror_flag"
14450 || test ! -s conftest.err'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest.$ac_objext'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; }; then
14462 ac_header_compiler=yes
14463else
14464 echo "$as_me: failed program was:" >&5
14465sed 's/^/| /' conftest.$ac_ext >&5
14466
14467ac_header_compiler=no
14468fi
14469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14471echo "${ECHO_T}$ac_header_compiler" >&6
14472
14473# Is the header present?
14474echo "$as_me:$LINENO: checking $ac_header presence" >&5
14475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14476cat >conftest.$ac_ext <<_ACEOF
14477/* confdefs.h. */
14478_ACEOF
14479cat confdefs.h >>conftest.$ac_ext
14480cat >>conftest.$ac_ext <<_ACEOF
14481/* end confdefs.h. */
14482#include <$ac_header>
14483_ACEOF
14484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14486 ac_status=$?
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } >/dev/null; then
14492 if test -s conftest.err; then
14493 ac_cpp_err=$ac_c_preproc_warn_flag
14494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14495 else
14496 ac_cpp_err=
14497 fi
14498else
14499 ac_cpp_err=yes
14500fi
14501if test -z "$ac_cpp_err"; then
14502 ac_header_preproc=yes
97bf5e38 14503else
bec39cab
AC
14504 echo "$as_me: failed program was:" >&5
14505sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 ac_header_preproc=no
72473524 14508fi
bec39cab
AC
14509rm -f conftest.err conftest.$ac_ext
14510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14511echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 14512
bec39cab
AC
14513# So? What about this header?
14514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14515 yes:no: )
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14520 ac_header_preproc=yes
14521 ;;
14522 no:yes:* )
14523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14535 (
14536 cat <<\_ASBOX
14537## ------------------------------------------ ##
14538## Report this to the AC_PACKAGE_NAME lists. ##
14539## ------------------------------------------ ##
14540_ASBOX
14541 ) |
14542 sed "s/^/$as_me: WARNING: /" >&2
14543 ;;
14544esac
14545echo "$as_me:$LINENO: checking for $ac_header" >&5
14546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14547if eval "test \"\${$as_ac_Header+set}\" = set"; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14549else
bec39cab
AC
14550 eval "$as_ac_Header=\$ac_header_preproc"
14551fi
14552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14554
14555fi
14556if test `eval echo '${'$as_ac_Header'}'` = yes; then
14557 cat >>confdefs.h <<_ACEOF
14558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14559_ACEOF
14560
14561fi
14562
14563done
14564
14565
a3828db0 14566for ac_func in getpagesize
bec39cab
AC
14567do
14568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14569echo "$as_me:$LINENO: checking for $ac_func" >&5
14570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14571if eval "test \"\${$as_ac_var+set}\" = set"; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573else
14574 cat >conftest.$ac_ext <<_ACEOF
14575/* confdefs.h. */
14576_ACEOF
14577cat confdefs.h >>conftest.$ac_ext
14578cat >>conftest.$ac_ext <<_ACEOF
14579/* end confdefs.h. */
14580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14582#define $ac_func innocuous_$ac_func
14583
97bf5e38 14584/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14585 which can conflict with char $ac_func (); below.
14586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14587 <limits.h> exists even on freestanding compilers. */
2b2d558c 14588
bec39cab
AC
14589#ifdef __STDC__
14590# include <limits.h>
14591#else
14592# include <assert.h>
14593#endif
97bf5e38 14594
bec39cab
AC
14595#undef $ac_func
14596
14597/* Override any gcc2 internal prototype to avoid an error. */
14598#ifdef __cplusplus
14599extern "C"
14600{
14601#endif
14602/* We use char because int might match the return type of a gcc2
14603 builtin and then its argument prototype would still apply. */
14604char $ac_func ();
97bf5e38
MK
14605/* The GNU C library defines this for functions which it implements
14606 to always fail with ENOSYS. Some functions are actually named
14607 something starting with __ and the normal name is an alias. */
bec39cab 14608#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38
MK
14609choke me
14610#else
bec39cab
AC
14611char (*f) () = $ac_func;
14612#endif
14613#ifdef __cplusplus
14614}
97bf5e38
MK
14615#endif
14616
bec39cab
AC
14617int
14618main ()
14619{
14620return f != $ac_func;
14621 ;
14622 return 0;
14623}
14624_ACEOF
14625rm -f conftest.$ac_objext conftest$ac_exeext
14626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14627 (eval $ac_link) 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); } &&
14634 { ac_try='test -z "$ac_c_werror_flag"
14635 || test ! -s conftest.err'
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_exeext'
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 eval "$as_ac_var=yes"
14648else
14649 echo "$as_me: failed program was:" >&5
14650sed 's/^/| /' conftest.$ac_ext >&5
14651
14652eval "$as_ac_var=no"
14653fi
14654rm -f conftest.err conftest.$ac_objext \
14655 conftest$ac_exeext conftest.$ac_ext
14656fi
14657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14658echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14659if test `eval echo '${'$as_ac_var'}'` = yes; then
14660 cat >>confdefs.h <<_ACEOF
14661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14662_ACEOF
14663
2b2d558c 14664fi
bec39cab 14665done
2b2d558c 14666
a3828db0
MK
14667echo "$as_me:$LINENO: checking for working mmap" >&5
14668echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14669if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 14670 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14671else
bec39cab 14672 if test "$cross_compiling" = yes; then
a3828db0 14673 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
14674else
14675 cat >conftest.$ac_ext <<_ACEOF
a3828db0 14676/* confdefs.h. */
bec39cab
AC
14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
14680/* end confdefs.h. */
a3828db0
MK
14681$ac_includes_default
14682/* malloc might have been renamed as rpl_malloc. */
14683#undef malloc
bec39cab 14684
a3828db0
MK
14685/* Thanks to Mike Haertel and Jim Avera for this test.
14686 Here is a matrix of mmap possibilities:
14687 mmap private not fixed
14688 mmap private fixed at somewhere currently unmapped
14689 mmap private fixed at somewhere already mapped
14690 mmap shared not fixed
14691 mmap shared fixed at somewhere currently unmapped
14692 mmap shared fixed at somewhere already mapped
14693 For private mappings, we should verify that changes cannot be read()
14694 back from the file, nor mmap's back from the file at a different
14695 address. (There have been systems where private was not correctly
14696 implemented like the infamous i386 svr4.0, and systems where the
14697 VM page cache was not coherent with the file system buffer cache
14698 like early versions of FreeBSD and possibly contemporary NetBSD.)
14699 For shared mappings, we should conversely verify that changes get
14700 propagated back to all the places they're supposed to be.
7dfa765c 14701
a3828db0
MK
14702 Grep wants private fixed already mapped.
14703 The main things grep needs to know about mmap are:
14704 * does it exist and is it safe to write into the mmap'd area
14705 * how to use it (BSD variants) */
7dfa765c 14706
a3828db0
MK
14707#include <fcntl.h>
14708#include <sys/mman.h>
7dfa765c 14709
a3828db0
MK
14710#if !STDC_HEADERS && !HAVE_STDLIB_H
14711char *malloc ();
14712#endif
7dfa765c 14713
a3828db0
MK
14714/* This mess was copied from the GNU getpagesize.h. */
14715#if !HAVE_GETPAGESIZE
14716/* Assume that all systems that can run configure have sys/param.h. */
14717# if !HAVE_SYS_PARAM_H
14718# define HAVE_SYS_PARAM_H 1
14719# endif
64bb1671 14720
a3828db0
MK
14721# ifdef _SC_PAGESIZE
14722# define getpagesize() sysconf(_SC_PAGESIZE)
14723# else /* no _SC_PAGESIZE */
14724# if HAVE_SYS_PARAM_H
14725# include <sys/param.h>
14726# ifdef EXEC_PAGESIZE
14727# define getpagesize() EXEC_PAGESIZE
14728# else /* no EXEC_PAGESIZE */
14729# ifdef NBPG
14730# define getpagesize() NBPG * CLSIZE
14731# ifndef CLSIZE
14732# define CLSIZE 1
14733# endif /* no CLSIZE */
14734# else /* no NBPG */
14735# ifdef NBPC
14736# define getpagesize() NBPC
14737# else /* no NBPC */
14738# ifdef PAGESIZE
14739# define getpagesize() PAGESIZE
14740# endif /* PAGESIZE */
14741# endif /* no NBPC */
14742# endif /* no NBPG */
14743# endif /* no EXEC_PAGESIZE */
14744# else /* no HAVE_SYS_PARAM_H */
14745# define getpagesize() 8192 /* punt totally */
14746# endif /* no HAVE_SYS_PARAM_H */
14747# endif /* no _SC_PAGESIZE */
64bb1671 14748
a3828db0 14749#endif /* no HAVE_GETPAGESIZE */
64bb1671 14750
a3828db0
MK
14751int
14752main ()
14753{
14754 char *data, *data2, *data3;
14755 int i, pagesize;
14756 int fd;
97bf5e38 14757
a3828db0
MK
14758 pagesize = getpagesize ();
14759
14760 /* First, make a file with some known garbage in it. */
14761 data = (char *) malloc (pagesize);
14762 if (!data)
14763 exit (1);
14764 for (i = 0; i < pagesize; ++i)
14765 *(data + i) = rand ();
14766 umask (0);
14767 fd = creat ("conftest.mmap", 0600);
14768 if (fd < 0)
14769 exit (1);
14770 if (write (fd, data, pagesize) != pagesize)
14771 exit (1);
14772 close (fd);
14773
14774 /* Next, try to mmap the file at a fixed address which already has
14775 something else allocated at it. If we can, also make sure that
14776 we see the same garbage. */
14777 fd = open ("conftest.mmap", O_RDWR);
14778 if (fd < 0)
14779 exit (1);
14780 data2 = (char *) malloc (2 * pagesize);
14781 if (!data2)
14782 exit (1);
14783 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14784 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14785 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14786 exit (1);
14787 for (i = 0; i < pagesize; ++i)
14788 if (*(data + i) != *(data2 + i))
14789 exit (1);
14790
14791 /* Finally, make sure that changes to the mapped area do not
14792 percolate back to the file as seen by read(). (This is a bug on
14793 some variants of i386 svr4.0.) */
14794 for (i = 0; i < pagesize; ++i)
14795 *(data2 + i) = *(data2 + i) + 1;
14796 data3 = (char *) malloc (pagesize);
14797 if (!data3)
14798 exit (1);
14799 if (read (fd, data3, pagesize) != pagesize)
14800 exit (1);
14801 for (i = 0; i < pagesize; ++i)
14802 if (*(data + i) != *(data3 + i))
14803 exit (1);
14804 close (fd);
14805 exit (0);
97bf5e38 14806}
bec39cab
AC
14807_ACEOF
14808rm -f conftest$ac_exeext
14809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14810 (eval $ac_link) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
a3828db0 14819 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 14820else
bec39cab
AC
14821 echo "$as_me: program exited with status $ac_status" >&5
14822echo "$as_me: failed program was:" >&5
14823sed 's/^/| /' conftest.$ac_ext >&5
14824
14825( exit $ac_status )
a3828db0 14826ac_cv_func_mmap_fixed_mapped=no
0afdd437 14827fi
a3828db0 14828rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 14829fi
a3828db0
MK
14830fi
14831echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14832echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14833if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
14834
14835cat >>confdefs.h <<\_ACEOF
a3828db0 14836#define HAVE_MMAP 1
bec39cab 14837_ACEOF
0afdd437
MK
14838
14839fi
a3828db0 14840rm -f conftest.mmap
0afdd437 14841
a3828db0
MK
14842echo "$as_me:$LINENO: checking for pid_t" >&5
14843echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14844if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846else
14847 cat >conftest.$ac_ext <<_ACEOF
14848/* confdefs.h. */
14849_ACEOF
14850cat confdefs.h >>conftest.$ac_ext
14851cat >>conftest.$ac_ext <<_ACEOF
14852/* end confdefs.h. */
a3828db0 14853$ac_includes_default
bec39cab
AC
14854int
14855main ()
14856{
a3828db0
MK
14857if ((pid_t *) 0)
14858 return 0;
14859if (sizeof (pid_t))
14860 return 0;
bec39cab
AC
14861 ;
14862 return 0;
14863}
14864_ACEOF
a3828db0
MK
14865rm -f conftest.$ac_objext
14866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag"
14875 || test ! -s conftest.err'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
a3828db0 14881 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
a3828db0 14887 ac_cv_type_pid_t=yes
bec39cab
AC
14888else
14889 echo "$as_me: failed program was:" >&5
14890sed 's/^/| /' conftest.$ac_ext >&5
14891
a3828db0 14892ac_cv_type_pid_t=no
bec39cab 14893fi
a3828db0 14894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 14895fi
a3828db0
MK
14896echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14897echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14898if test $ac_cv_type_pid_t = yes; then
14899 :
14900else
14901
14902cat >>confdefs.h <<_ACEOF
14903#define pid_t int
bec39cab 14904_ACEOF
7e89e357 14905
7e89e357
JT
14906fi
14907
bec39cab 14908
a3828db0
MK
14909
14910for ac_header in unistd.h vfork.h
7be570e7 14911do
a3828db0
MK
14912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14913if eval "test \"\${$as_ac_Header+set}\" = set"; then
14914 echo "$as_me:$LINENO: checking for $ac_header" >&5
14915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14916if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14917 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
14918fi
14919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14921else
a3828db0
MK
14922 # Is the header compilable?
14923echo "$as_me:$LINENO: checking $ac_header usability" >&5
14924echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14925cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14926/* confdefs.h. */
14927_ACEOF
14928cat confdefs.h >>conftest.$ac_ext
14929cat >>conftest.$ac_ext <<_ACEOF
14930/* end confdefs.h. */
a3828db0
MK
14931$ac_includes_default
14932#include <$ac_header>
bec39cab 14933_ACEOF
a3828db0
MK
14934rm -f conftest.$ac_objext
14935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14936 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14937 ac_status=$?
14938 grep -v '^ *+' conftest.er1 >conftest.err
14939 rm -f conftest.er1
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -z "$ac_c_werror_flag"
14944 || test ! -s conftest.err'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
a3828db0 14950 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
a3828db0 14956 ac_header_compiler=yes
bec39cab
AC
14957else
14958 echo "$as_me: failed program was:" >&5
14959sed 's/^/| /' conftest.$ac_ext >&5
14960
a3828db0 14961ac_header_compiler=no
bec39cab 14962fi
a3828db0
MK
14963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14965echo "${ECHO_T}$ac_header_compiler" >&6
14966
14967# Is the header present?
14968echo "$as_me:$LINENO: checking $ac_header presence" >&5
14969echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14970cat >conftest.$ac_ext <<_ACEOF
14971/* confdefs.h. */
14972_ACEOF
14973cat confdefs.h >>conftest.$ac_ext
14974cat >>conftest.$ac_ext <<_ACEOF
14975/* end confdefs.h. */
14976#include <$ac_header>
14977_ACEOF
14978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } >/dev/null; then
14986 if test -s conftest.err; then
14987 ac_cpp_err=$ac_c_preproc_warn_flag
14988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14989 else
14990 ac_cpp_err=
14991 fi
14992else
14993 ac_cpp_err=yes
14994fi
14995if test -z "$ac_cpp_err"; then
14996 ac_header_preproc=yes
14997else
14998 echo "$as_me: failed program was:" >&5
14999sed 's/^/| /' conftest.$ac_ext >&5
15000
15001 ac_header_preproc=no
15002fi
15003rm -f conftest.err conftest.$ac_ext
15004echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15005echo "${ECHO_T}$ac_header_preproc" >&6
15006
15007# So? What about this header?
15008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15009 yes:no: )
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15011echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15013echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15014 ac_header_preproc=yes
15015 ;;
15016 no:yes:* )
15017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15018echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15020echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15022echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15024echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15026echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15028echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15029 (
15030 cat <<\_ASBOX
15031## ------------------------------------------ ##
15032## Report this to the AC_PACKAGE_NAME lists. ##
15033## ------------------------------------------ ##
15034_ASBOX
15035 ) |
15036 sed "s/^/$as_me: WARNING: /" >&2
15037 ;;
15038esac
15039echo "$as_me:$LINENO: checking for $ac_header" >&5
15040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15041if eval "test \"\${$as_ac_Header+set}\" = set"; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15043else
15044 eval "$as_ac_Header=\$ac_header_preproc"
15045fi
15046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15048
bec39cab 15049fi
a3828db0 15050if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 15051 cat >>confdefs.h <<_ACEOF
a3828db0 15052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 15053_ACEOF
14abd0fb 15054
14abd0fb 15055fi
a3828db0 15056
14abd0fb
MK
15057done
15058
bec39cab 15059
a3828db0
MK
15060
15061for ac_func in fork vfork
14abd0fb 15062do
bec39cab
AC
15063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15064echo "$as_me:$LINENO: checking for $ac_func" >&5
15065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15066if eval "test \"\${$as_ac_var+set}\" = set"; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15068else
15069 cat >conftest.$ac_ext <<_ACEOF
15070/* confdefs.h. */
15071_ACEOF
15072cat confdefs.h >>conftest.$ac_ext
15073cat >>conftest.$ac_ext <<_ACEOF
15074/* end confdefs.h. */
15075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15077#define $ac_func innocuous_$ac_func
15078
14abd0fb 15079/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15080 which can conflict with char $ac_func (); below.
15081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15082 <limits.h> exists even on freestanding compilers. */
15083
15084#ifdef __STDC__
15085# include <limits.h>
15086#else
15087# include <assert.h>
15088#endif
14abd0fb 15089
bec39cab 15090#undef $ac_func
14abd0fb 15091
bec39cab
AC
15092/* Override any gcc2 internal prototype to avoid an error. */
15093#ifdef __cplusplus
15094extern "C"
15095{
15096#endif
15097/* We use char because int might match the return type of a gcc2
15098 builtin and then its argument prototype would still apply. */
15099char $ac_func ();
14abd0fb
MK
15100/* The GNU C library defines this for functions which it implements
15101 to always fail with ENOSYS. Some functions are actually named
15102 something starting with __ and the normal name is an alias. */
15103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15104choke me
15105#else
bec39cab
AC
15106char (*f) () = $ac_func;
15107#endif
15108#ifdef __cplusplus
15109}
14abd0fb
MK
15110#endif
15111
bec39cab
AC
15112int
15113main ()
15114{
15115return f != $ac_func;
15116 ;
15117 return 0;
15118}
15119_ACEOF
15120rm -f conftest.$ac_objext conftest$ac_exeext
15121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15122 (eval $ac_link) 2>conftest.er1
15123 ac_status=$?
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
15129 { ac_try='test -z "$ac_c_werror_flag"
15130 || test ! -s conftest.err'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; } &&
15136 { ac_try='test -s conftest$ac_exeext'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15142 eval "$as_ac_var=yes"
15143else
15144 echo "$as_me: failed program was:" >&5
15145sed 's/^/| /' conftest.$ac_ext >&5
15146
15147eval "$as_ac_var=no"
15148fi
15149rm -f conftest.err conftest.$ac_objext \
15150 conftest$ac_exeext conftest.$ac_ext
15151fi
15152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15154if test `eval echo '${'$as_ac_var'}'` = yes; then
15155 cat >>confdefs.h <<_ACEOF
15156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15157_ACEOF
7be570e7 15158
7be570e7
JM
15159fi
15160done
15161
a3828db0
MK
15162if test "x$ac_cv_func_fork" = xyes; then
15163 echo "$as_me:$LINENO: checking for working fork" >&5
15164echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15165if test "${ac_cv_func_fork_works+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167else
15168 if test "$cross_compiling" = yes; then
15169 ac_cv_func_fork_works=cross
15170else
15171 cat >conftest.$ac_ext <<_ACEOF
15172/* By Ruediger Kuhlmann. */
15173 #include <sys/types.h>
15174 #if HAVE_UNISTD_H
15175 # include <unistd.h>
15176 #endif
15177 /* Some systems only have a dummy stub for fork() */
15178 int main ()
15179 {
15180 if (fork() < 0)
15181 exit (1);
15182 exit (0);
15183 }
15184_ACEOF
15185rm -f conftest$ac_exeext
15186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15187 (eval $ac_link) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15196 ac_cv_func_fork_works=yes
15197else
15198 echo "$as_me: program exited with status $ac_status" >&5
15199echo "$as_me: failed program was:" >&5
15200sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 15201
a3828db0
MK
15202( exit $ac_status )
15203ac_cv_func_fork_works=no
15204fi
15205rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15206fi
15207fi
15208echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15209echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15210
15211else
15212 ac_cv_func_fork_works=$ac_cv_func_fork
15213fi
15214if test "x$ac_cv_func_fork_works" = xcross; then
15215 case $host in
15216 *-*-amigaos* | *-*-msdosdjgpp*)
15217 # Override, as these systems have only a dummy fork() stub
15218 ac_cv_func_fork_works=no
15219 ;;
15220 *)
15221 ac_cv_func_fork_works=yes
15222 ;;
15223 esac
15224 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15225echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15226fi
15227ac_cv_func_vfork_works=$ac_cv_func_vfork
15228if test "x$ac_cv_func_vfork" = xyes; then
15229 echo "$as_me:$LINENO: checking for working vfork" >&5
15230echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15231if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 15232 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
15233else
15234 if test "$cross_compiling" = yes; then
15235 ac_cv_func_vfork_works=cross
bec39cab
AC
15236else
15237 cat >conftest.$ac_ext <<_ACEOF
15238/* confdefs.h. */
15239_ACEOF
15240cat confdefs.h >>conftest.$ac_ext
15241cat >>conftest.$ac_ext <<_ACEOF
15242/* end confdefs.h. */
a3828db0
MK
15243/* Thanks to Paul Eggert for this test. */
15244#include <stdio.h>
15245#include <stdlib.h>
15246#include <sys/types.h>
15247#include <sys/stat.h>
15248#include <sys/wait.h>
15249#if HAVE_UNISTD_H
15250# include <unistd.h>
bec39cab 15251#endif
a3828db0
MK
15252#if HAVE_VFORK_H
15253# include <vfork.h>
bec39cab 15254#endif
a3828db0
MK
15255/* On some sparc systems, changes by the child to local and incoming
15256 argument registers are propagated back to the parent. The compiler
15257 is told about this with #include <vfork.h>, but some compilers
15258 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15259 static variable whose address is put into a register that is
15260 clobbered by the vfork. */
15261static void
bec39cab 15262#ifdef __cplusplus
a3828db0
MK
15263sparc_address_test (int arg)
15264# else
15265sparc_address_test (arg) int arg;
c906108c 15266#endif
a3828db0
MK
15267{
15268 static pid_t child;
15269 if (!child) {
15270 child = vfork ();
15271 if (child < 0) {
15272 perror ("vfork");
15273 _exit(2);
15274 }
15275 if (!child) {
15276 arg = getpid();
15277 write(-1, "", 0);
15278 _exit (arg);
15279 }
15280 }
15281}
97bf5e38 15282
bec39cab
AC
15283int
15284main ()
15285{
a3828db0
MK
15286 pid_t parent = getpid ();
15287 pid_t child;
15288
15289 sparc_address_test (0);
15290
15291 child = vfork ();
15292
15293 if (child == 0) {
15294 /* Here is another test for sparc vfork register problems. This
15295 test uses lots of local variables, at least as many local
15296 variables as main has allocated so far including compiler
15297 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15298 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15299 reuse the register of parent for one of the local variables,
15300 since it will think that parent can't possibly be used any more
15301 in this routine. Assigning to the local variable will thus
15302 munge parent in the parent process. */
15303 pid_t
15304 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15305 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15306 /* Convince the compiler that p..p7 are live; otherwise, it might
15307 use the same hardware register for all 8 local variables. */
15308 if (p != p1 || p != p2 || p != p3 || p != p4
15309 || p != p5 || p != p6 || p != p7)
15310 _exit(1);
15311
15312 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15313 from child file descriptors. If the child closes a descriptor
15314 before it execs or exits, this munges the parent's descriptor
15315 as well. Test for this by closing stdout in the child. */
15316 _exit(close(fileno(stdout)) != 0);
15317 } else {
15318 int status;
15319 struct stat st;
15320
15321 while (wait(&status) != child)
15322 ;
15323 exit(
15324 /* Was there some problem with vforking? */
15325 child < 0
15326
15327 /* Did the child fail? (This shouldn't happen.) */
15328 || status
15329
15330 /* Did the vfork/compiler bug occur? */
15331 || parent != getpid()
15332
15333 /* Did the file descriptor bug occur? */
15334 || fstat(fileno(stdout), &st) != 0
15335 );
15336 }
bec39cab
AC
15337}
15338_ACEOF
a3828db0 15339rm -f conftest$ac_exeext
bec39cab 15340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 15341 (eval $ac_link) 2>&5
bec39cab
AC
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 15344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
a3828db0
MK
15350 ac_cv_func_vfork_works=yes
15351else
15352 echo "$as_me: program exited with status $ac_status" >&5
15353echo "$as_me: failed program was:" >&5
15354sed 's/^/| /' conftest.$ac_ext >&5
15355
15356( exit $ac_status )
15357ac_cv_func_vfork_works=no
15358fi
15359rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15360fi
15361fi
15362echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15363echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15364
15365fi;
15366if test "x$ac_cv_func_fork_works" = xcross; then
15367 ac_cv_func_vfork_works=$ac_cv_func_vfork
15368 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15369echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15370fi
15371
15372if test "x$ac_cv_func_vfork_works" = xyes; then
15373
15374cat >>confdefs.h <<\_ACEOF
15375#define HAVE_WORKING_VFORK 1
15376_ACEOF
15377
bec39cab 15378else
bec39cab 15379
a3828db0
MK
15380cat >>confdefs.h <<\_ACEOF
15381#define vfork fork
15382_ACEOF
15383
bec39cab 15384fi
a3828db0
MK
15385if test "x$ac_cv_func_fork_works" = xyes; then
15386
15387cat >>confdefs.h <<\_ACEOF
15388#define HAVE_WORKING_FORK 1
bec39cab 15389_ACEOF
c906108c 15390
c906108c
SS
15391fi
15392
bec39cab
AC
15393
15394
a3828db0 15395for ac_func in canonicalize_file_name realpath
97bf5e38 15396do
bec39cab
AC
15397as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15398echo "$as_me:$LINENO: checking for $ac_func" >&5
15399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15400if eval "test \"\${$as_ac_var+set}\" = set"; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15402else
15403 cat >conftest.$ac_ext <<_ACEOF
15404/* confdefs.h. */
15405_ACEOF
15406cat confdefs.h >>conftest.$ac_ext
15407cat >>conftest.$ac_ext <<_ACEOF
15408/* end confdefs.h. */
15409/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15411#define $ac_func innocuous_$ac_func
15412
d3ea6809
MM
15413/* System header to define __stub macros and hopefully few prototypes,
15414 which can conflict with char $ac_func (); below.
15415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15416 <limits.h> exists even on freestanding compilers. */
15417
15418#ifdef __STDC__
15419# include <limits.h>
15420#else
15421# include <assert.h>
15422#endif
15423
15424#undef $ac_func
15425
15426/* Override any gcc2 internal prototype to avoid an error. */
15427#ifdef __cplusplus
15428extern "C"
15429{
15430#endif
15431/* We use char because int might match the return type of a gcc2
15432 builtin and then its argument prototype would still apply. */
15433char $ac_func ();
15434/* The GNU C library defines this for functions which it implements
15435 to always fail with ENOSYS. Some functions are actually named
15436 something starting with __ and the normal name is an alias. */
15437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15438choke me
15439#else
15440char (*f) () = $ac_func;
15441#endif
15442#ifdef __cplusplus
15443}
15444#endif
15445
15446int
15447main ()
15448{
15449return f != $ac_func;
15450 ;
15451 return 0;
15452}
15453_ACEOF
15454rm -f conftest.$ac_objext conftest$ac_exeext
15455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag"
15464 || test ! -s conftest.err'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try='test -s conftest$ac_exeext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 eval "$as_ac_var=yes"
15477else
15478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
15481eval "$as_ac_var=no"
15482fi
15483rm -f conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15485fi
15486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15487echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15488if test `eval echo '${'$as_ac_var'}'` = yes; then
15489 cat >>confdefs.h <<_ACEOF
15490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15491_ACEOF
15492
15493fi
15494done
15495
15496
15497
15498for ac_func in getuid getgid
15499do
15500as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15501echo "$as_me:$LINENO: checking for $ac_func" >&5
15502echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15503if eval "test \"\${$as_ac_var+set}\" = set"; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15505else
15506 cat >conftest.$ac_ext <<_ACEOF
15507/* confdefs.h. */
15508_ACEOF
15509cat confdefs.h >>conftest.$ac_ext
15510cat >>conftest.$ac_ext <<_ACEOF
15511/* end confdefs.h. */
15512/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15514#define $ac_func innocuous_$ac_func
15515
97bf5e38 15516/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15517 which can conflict with char $ac_func (); below.
15518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15519 <limits.h> exists even on freestanding compilers. */
c906108c 15520
bec39cab
AC
15521#ifdef __STDC__
15522# include <limits.h>
15523#else
15524# include <assert.h>
15525#endif
97bf5e38 15526
bec39cab
AC
15527#undef $ac_func
15528
15529/* Override any gcc2 internal prototype to avoid an error. */
15530#ifdef __cplusplus
15531extern "C"
15532{
15533#endif
15534/* We use char because int might match the return type of a gcc2
15535 builtin and then its argument prototype would still apply. */
15536char $ac_func ();
97bf5e38
MK
15537/* The GNU C library defines this for functions which it implements
15538 to always fail with ENOSYS. Some functions are actually named
15539 something starting with __ and the normal name is an alias. */
15540#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15541choke me
c906108c 15542#else
bec39cab
AC
15543char (*f) () = $ac_func;
15544#endif
15545#ifdef __cplusplus
15546}
c906108c 15547#endif
97bf5e38 15548
bec39cab
AC
15549int
15550main ()
15551{
15552return f != $ac_func;
15553 ;
15554 return 0;
15555}
15556_ACEOF
15557rm -f conftest.$ac_objext conftest$ac_exeext
15558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15559 (eval $ac_link) 2>conftest.er1
15560 ac_status=$?
15561 grep -v '^ *+' conftest.er1 >conftest.err
15562 rm -f conftest.er1
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
15566 { ac_try='test -z "$ac_c_werror_flag"
15567 || test ! -s conftest.err'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; } &&
15573 { ac_try='test -s conftest$ac_exeext'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; }; then
15579 eval "$as_ac_var=yes"
15580else
15581 echo "$as_me: failed program was:" >&5
15582sed 's/^/| /' conftest.$ac_ext >&5
15583
15584eval "$as_ac_var=no"
15585fi
15586rm -f conftest.err conftest.$ac_objext \
15587 conftest$ac_exeext conftest.$ac_ext
15588fi
15589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15590echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15591if test `eval echo '${'$as_ac_var'}'` = yes; then
15592 cat >>confdefs.h <<_ACEOF
15593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15594_ACEOF
c906108c 15595
c906108c 15596fi
97bf5e38 15597done
c906108c 15598
bec39cab 15599
a3828db0 15600for ac_func in poll
97bf5e38 15601do
bec39cab
AC
15602as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15603echo "$as_me:$LINENO: checking for $ac_func" >&5
15604echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15605if eval "test \"\${$as_ac_var+set}\" = set"; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607else
15608 cat >conftest.$ac_ext <<_ACEOF
15609/* confdefs.h. */
15610_ACEOF
15611cat confdefs.h >>conftest.$ac_ext
15612cat >>conftest.$ac_ext <<_ACEOF
15613/* end confdefs.h. */
15614/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15616#define $ac_func innocuous_$ac_func
15617
97bf5e38 15618/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15619 which can conflict with char $ac_func (); below.
15620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15621 <limits.h> exists even on freestanding compilers. */
15622
15623#ifdef __STDC__
15624# include <limits.h>
15625#else
15626# include <assert.h>
15627#endif
c906108c 15628
bec39cab 15629#undef $ac_func
97bf5e38 15630
bec39cab
AC
15631/* Override any gcc2 internal prototype to avoid an error. */
15632#ifdef __cplusplus
15633extern "C"
15634{
15635#endif
15636/* We use char because int might match the return type of a gcc2
15637 builtin and then its argument prototype would still apply. */
15638char $ac_func ();
97bf5e38
MK
15639/* The GNU C library defines this for functions which it implements
15640 to always fail with ENOSYS. Some functions are actually named
15641 something starting with __ and the normal name is an alias. */
15642#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15643choke me
c906108c 15644#else
bec39cab
AC
15645char (*f) () = $ac_func;
15646#endif
15647#ifdef __cplusplus
15648}
c906108c 15649#endif
97bf5e38 15650
bec39cab
AC
15651int
15652main ()
15653{
15654return f != $ac_func;
15655 ;
15656 return 0;
15657}
15658_ACEOF
15659rm -f conftest.$ac_objext conftest$ac_exeext
15660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15661 (eval $ac_link) 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } &&
15668 { ac_try='test -z "$ac_c_werror_flag"
15669 || test ! -s conftest.err'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; } &&
15675 { ac_try='test -s conftest$ac_exeext'
15676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677 (eval $ac_try) 2>&5
15678 ac_status=$?
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); }; }; then
15681 eval "$as_ac_var=yes"
15682else
15683 echo "$as_me: failed program was:" >&5
15684sed 's/^/| /' conftest.$ac_ext >&5
15685
15686eval "$as_ac_var=no"
15687fi
15688rm -f conftest.err conftest.$ac_objext \
15689 conftest$ac_exeext conftest.$ac_ext
15690fi
15691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15692echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15693if test `eval echo '${'$as_ac_var'}'` = yes; then
15694 cat >>confdefs.h <<_ACEOF
15695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15696_ACEOF
c906108c 15697
c906108c 15698fi
97bf5e38 15699done
c906108c 15700
bec39cab 15701
a3828db0 15702for ac_func in pread64
97bf5e38 15703do
bec39cab
AC
15704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15705echo "$as_me:$LINENO: checking for $ac_func" >&5
15706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15707if eval "test \"\${$as_ac_var+set}\" = set"; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15709else
15710 cat >conftest.$ac_ext <<_ACEOF
15711/* confdefs.h. */
15712_ACEOF
15713cat confdefs.h >>conftest.$ac_ext
15714cat >>conftest.$ac_ext <<_ACEOF
15715/* end confdefs.h. */
15716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15718#define $ac_func innocuous_$ac_func
15719
97bf5e38 15720/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15721 which can conflict with char $ac_func (); below.
15722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15723 <limits.h> exists even on freestanding compilers. */
15724
15725#ifdef __STDC__
15726# include <limits.h>
15727#else
15728# include <assert.h>
15729#endif
c906108c 15730
bec39cab 15731#undef $ac_func
97bf5e38 15732
bec39cab
AC
15733/* Override any gcc2 internal prototype to avoid an error. */
15734#ifdef __cplusplus
15735extern "C"
15736{
15737#endif
15738/* We use char because int might match the return type of a gcc2
15739 builtin and then its argument prototype would still apply. */
15740char $ac_func ();
97bf5e38
MK
15741/* The GNU C library defines this for functions which it implements
15742 to always fail with ENOSYS. Some functions are actually named
15743 something starting with __ and the normal name is an alias. */
15744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15745choke me
c906108c 15746#else
bec39cab
AC
15747char (*f) () = $ac_func;
15748#endif
15749#ifdef __cplusplus
15750}
c906108c 15751#endif
97bf5e38 15752
bec39cab
AC
15753int
15754main ()
15755{
15756return f != $ac_func;
15757 ;
15758 return 0;
15759}
15760_ACEOF
15761rm -f conftest.$ac_objext conftest$ac_exeext
15762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15763 (eval $ac_link) 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag"
15771 || test ! -s conftest.err'
15772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773 (eval $ac_try) 2>&5
15774 ac_status=$?
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; } &&
15777 { ac_try='test -s conftest$ac_exeext'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; }; then
15783 eval "$as_ac_var=yes"
15784else
15785 echo "$as_me: failed program was:" >&5
15786sed 's/^/| /' conftest.$ac_ext >&5
15787
15788eval "$as_ac_var=no"
15789fi
15790rm -f conftest.err conftest.$ac_objext \
15791 conftest$ac_exeext conftest.$ac_ext
15792fi
15793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15794echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15795if test `eval echo '${'$as_ac_var'}'` = yes; then
15796 cat >>confdefs.h <<_ACEOF
15797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15798_ACEOF
c906108c 15799
c906108c 15800fi
97bf5e38 15801done
c906108c 15802
bec39cab 15803
a3828db0 15804for ac_func in sbrk
b757528f 15805do
bec39cab
AC
15806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15807echo "$as_me:$LINENO: checking for $ac_func" >&5
15808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15809if eval "test \"\${$as_ac_var+set}\" = set"; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15811else
15812 cat >conftest.$ac_ext <<_ACEOF
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15820#define $ac_func innocuous_$ac_func
15821
b757528f 15822/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15823 which can conflict with char $ac_func (); below.
15824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15825 <limits.h> exists even on freestanding compilers. */
15826
15827#ifdef __STDC__
15828# include <limits.h>
15829#else
15830# include <assert.h>
15831#endif
b757528f 15832
bec39cab 15833#undef $ac_func
b757528f 15834
bec39cab
AC
15835/* Override any gcc2 internal prototype to avoid an error. */
15836#ifdef __cplusplus
15837extern "C"
15838{
15839#endif
15840/* We use char because int might match the return type of a gcc2
15841 builtin and then its argument prototype would still apply. */
15842char $ac_func ();
b757528f
JJ
15843/* The GNU C library defines this for functions which it implements
15844 to always fail with ENOSYS. Some functions are actually named
15845 something starting with __ and the normal name is an alias. */
15846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15847choke me
15848#else
bec39cab
AC
15849char (*f) () = $ac_func;
15850#endif
15851#ifdef __cplusplus
15852}
b757528f
JJ
15853#endif
15854
bec39cab
AC
15855int
15856main ()
15857{
15858return f != $ac_func;
15859 ;
15860 return 0;
15861}
15862_ACEOF
15863rm -f conftest.$ac_objext conftest$ac_exeext
15864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15865 (eval $ac_link) 2>conftest.er1
15866 ac_status=$?
15867 grep -v '^ *+' conftest.er1 >conftest.err
15868 rm -f conftest.er1
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } &&
15872 { ac_try='test -z "$ac_c_werror_flag"
15873 || test ! -s conftest.err'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; } &&
15879 { ac_try='test -s conftest$ac_exeext'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15885 eval "$as_ac_var=yes"
15886else
15887 echo "$as_me: failed program was:" >&5
15888sed 's/^/| /' conftest.$ac_ext >&5
15889
15890eval "$as_ac_var=no"
15891fi
15892rm -f conftest.err conftest.$ac_objext \
15893 conftest$ac_exeext conftest.$ac_ext
15894fi
15895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15896echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15897if test `eval echo '${'$as_ac_var'}'` = yes; then
15898 cat >>confdefs.h <<_ACEOF
15899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15900_ACEOF
b757528f 15901
b757528f
JJ
15902fi
15903done
15904
bec39cab 15905
a3828db0
MK
15906
15907for ac_func in setpgid setpgrp
bcb3dc3d 15908do
bec39cab
AC
15909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15910echo "$as_me:$LINENO: checking for $ac_func" >&5
15911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15912if eval "test \"\${$as_ac_var+set}\" = set"; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15914else
15915 cat >conftest.$ac_ext <<_ACEOF
15916/* confdefs.h. */
15917_ACEOF
15918cat confdefs.h >>conftest.$ac_ext
15919cat >>conftest.$ac_ext <<_ACEOF
15920/* end confdefs.h. */
15921/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15923#define $ac_func innocuous_$ac_func
15924
bcb3dc3d 15925/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15926 which can conflict with char $ac_func (); below.
15927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15928 <limits.h> exists even on freestanding compilers. */
15929
15930#ifdef __STDC__
15931# include <limits.h>
15932#else
15933# include <assert.h>
15934#endif
bcb3dc3d 15935
bec39cab 15936#undef $ac_func
bcb3dc3d 15937
bec39cab
AC
15938/* Override any gcc2 internal prototype to avoid an error. */
15939#ifdef __cplusplus
15940extern "C"
15941{
15942#endif
15943/* We use char because int might match the return type of a gcc2
15944 builtin and then its argument prototype would still apply. */
15945char $ac_func ();
bcb3dc3d
MK
15946/* The GNU C library defines this for functions which it implements
15947 to always fail with ENOSYS. Some functions are actually named
15948 something starting with __ and the normal name is an alias. */
15949#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15950choke me
15951#else
bec39cab
AC
15952char (*f) () = $ac_func;
15953#endif
15954#ifdef __cplusplus
15955}
bcb3dc3d
MK
15956#endif
15957
bec39cab
AC
15958int
15959main ()
15960{
15961return f != $ac_func;
15962 ;
15963 return 0;
15964}
15965_ACEOF
15966rm -f conftest.$ac_objext conftest$ac_exeext
15967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15968 (eval $ac_link) 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -z "$ac_c_werror_flag"
15976 || test ! -s conftest.err'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; } &&
15982 { ac_try='test -s conftest$ac_exeext'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 eval "$as_ac_var=yes"
15989else
15990 echo "$as_me: failed program was:" >&5
15991sed 's/^/| /' conftest.$ac_ext >&5
15992
15993eval "$as_ac_var=no"
15994fi
15995rm -f conftest.err conftest.$ac_objext \
15996 conftest$ac_exeext conftest.$ac_ext
15997fi
15998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15999echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16000if test `eval echo '${'$as_ac_var'}'` = yes; then
16001 cat >>confdefs.h <<_ACEOF
16002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16003_ACEOF
bcb3dc3d 16004
bcb3dc3d
MK
16005fi
16006done
16007
bec39cab 16008
a3828db0
MK
16009
16010
16011for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 16012do
bec39cab
AC
16013as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16014echo "$as_me:$LINENO: checking for $ac_func" >&5
16015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16016if eval "test \"\${$as_ac_var+set}\" = set"; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16018else
16019 cat >conftest.$ac_ext <<_ACEOF
16020/* confdefs.h. */
16021_ACEOF
16022cat confdefs.h >>conftest.$ac_ext
16023cat >>conftest.$ac_ext <<_ACEOF
16024/* end confdefs.h. */
16025/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16027#define $ac_func innocuous_$ac_func
16028
8b9cf735 16029/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16030 which can conflict with char $ac_func (); below.
16031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16032 <limits.h> exists even on freestanding compilers. */
16033
16034#ifdef __STDC__
16035# include <limits.h>
16036#else
16037# include <assert.h>
16038#endif
8b9cf735 16039
bec39cab 16040#undef $ac_func
8b9cf735 16041
a3828db0
MK
16042/* Override any gcc2 internal prototype to avoid an error. */
16043#ifdef __cplusplus
16044extern "C"
16045{
16046#endif
16047/* We use char because int might match the return type of a gcc2
16048 builtin and then its argument prototype would still apply. */
16049char $ac_func ();
16050/* The GNU C library defines this for functions which it implements
16051 to always fail with ENOSYS. Some functions are actually named
16052 something starting with __ and the normal name is an alias. */
16053#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16054choke me
16055#else
16056char (*f) () = $ac_func;
16057#endif
16058#ifdef __cplusplus
16059}
16060#endif
16061
bec39cab
AC
16062int
16063main ()
16064{
a3828db0 16065return f != $ac_func;
bec39cab
AC
16066 ;
16067 return 0;
16068}
16069_ACEOF
a3828db0
MK
16070rm -f conftest.$ac_objext conftest$ac_exeext
16071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16072 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16073 ac_status=$?
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
a3828db0 16086 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
a3828db0 16092 eval "$as_ac_var=yes"
086ec9eb 16093else
bec39cab
AC
16094 echo "$as_me: failed program was:" >&5
16095sed 's/^/| /' conftest.$ac_ext >&5
16096
a3828db0
MK
16097eval "$as_ac_var=no"
16098fi
16099rm -f conftest.err conftest.$ac_objext \
16100 conftest$ac_exeext conftest.$ac_ext
16101fi
16102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16103echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16104if test `eval echo '${'$as_ac_var'}'` = yes; then
16105 cat >>confdefs.h <<_ACEOF
16106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16107_ACEOF
16108
086ec9eb 16109fi
a3828db0
MK
16110done
16111
16112
16113for ac_func in socketpair
16114do
16115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16116echo "$as_me:$LINENO: checking for $ac_func" >&5
16117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16118if eval "test \"\${$as_ac_var+set}\" = set"; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16120else
16121 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16122/* confdefs.h. */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
16126/* end confdefs.h. */
a3828db0
MK
16127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16129#define $ac_func innocuous_$ac_func
16130
16131/* System header to define __stub macros and hopefully few prototypes,
16132 which can conflict with char $ac_func (); below.
16133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16134 <limits.h> exists even on freestanding compilers. */
16135
16136#ifdef __STDC__
16137# include <limits.h>
16138#else
16139# include <assert.h>
16140#endif
16141
16142#undef $ac_func
16143
16144/* Override any gcc2 internal prototype to avoid an error. */
16145#ifdef __cplusplus
16146extern "C"
16147{
16148#endif
16149/* We use char because int might match the return type of a gcc2
16150 builtin and then its argument prototype would still apply. */
16151char $ac_func ();
16152/* The GNU C library defines this for functions which it implements
16153 to always fail with ENOSYS. Some functions are actually named
16154 something starting with __ and the normal name is an alias. */
16155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16156choke me
16157#else
16158char (*f) () = $ac_func;
16159#endif
16160#ifdef __cplusplus
16161}
16162#endif
16163
bec39cab
AC
16164int
16165main ()
16166{
a3828db0 16167return f != $ac_func;
bec39cab
AC
16168 ;
16169 return 0;
16170}
16171_ACEOF
a3828db0
MK
16172rm -f conftest.$ac_objext conftest$ac_exeext
16173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16174 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16175 ac_status=$?
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -z "$ac_c_werror_flag"
16182 || test ! -s conftest.err'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
a3828db0 16188 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
a3828db0 16194 eval "$as_ac_var=yes"
086ec9eb 16195else
bec39cab
AC
16196 echo "$as_me: failed program was:" >&5
16197sed 's/^/| /' conftest.$ac_ext >&5
16198
a3828db0 16199eval "$as_ac_var=no"
086ec9eb 16200fi
a3828db0
MK
16201rm -f conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
086ec9eb 16203fi
a3828db0
MK
16204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16206if test `eval echo '${'$as_ac_var'}'` = yes; then
16207 cat >>confdefs.h <<_ACEOF
16208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16209_ACEOF
086ec9eb
MK
16210
16211fi
a3828db0 16212done
086ec9eb 16213
a3828db0
MK
16214
16215for ac_func in syscall
16216do
16217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16218echo "$as_me:$LINENO: checking for $ac_func" >&5
16219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16220if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16221 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
16222else
16223 cat >conftest.$ac_ext <<_ACEOF
16224/* confdefs.h. */
16225_ACEOF
16226cat confdefs.h >>conftest.$ac_ext
16227cat >>conftest.$ac_ext <<_ACEOF
16228/* end confdefs.h. */
a3828db0
MK
16229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16231#define $ac_func innocuous_$ac_func
16232
16233/* System header to define __stub macros and hopefully few prototypes,
16234 which can conflict with char $ac_func (); below.
16235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16236 <limits.h> exists even on freestanding compilers. */
16237
16238#ifdef __STDC__
16239# include <limits.h>
16240#else
16241# include <assert.h>
16242#endif
16243
16244#undef $ac_func
16245
16246/* Override any gcc2 internal prototype to avoid an error. */
16247#ifdef __cplusplus
16248extern "C"
16249{
16250#endif
16251/* We use char because int might match the return type of a gcc2
16252 builtin and then its argument prototype would still apply. */
16253char $ac_func ();
16254/* The GNU C library defines this for functions which it implements
16255 to always fail with ENOSYS. Some functions are actually named
16256 something starting with __ and the normal name is an alias. */
16257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16258choke me
16259#else
16260char (*f) () = $ac_func;
16261#endif
16262#ifdef __cplusplus
16263}
c906108c 16264#endif
97bf5e38 16265
bec39cab
AC
16266int
16267main ()
97bf5e38 16268{
a3828db0 16269return f != $ac_func;
bec39cab
AC
16270 ;
16271 return 0;
97bf5e38 16272}
bec39cab 16273_ACEOF
a3828db0 16274rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 16275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16276 (eval $ac_link) 2>conftest.er1
bec39cab 16277 ac_status=$?
a3828db0
MK
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
bec39cab 16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
16282 (exit $ac_status); } &&
16283 { ac_try='test -z "$ac_c_werror_flag"
16284 || test ! -s conftest.err'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; } &&
16290 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
a3828db0 16296 eval "$as_ac_var=yes"
c906108c 16297else
a3828db0 16298 echo "$as_me: failed program was:" >&5
bec39cab
AC
16299sed 's/^/| /' conftest.$ac_ext >&5
16300
a3828db0 16301eval "$as_ac_var=no"
97bf5e38 16302fi
a3828db0
MK
16303rm -f conftest.err conftest.$ac_objext \
16304 conftest$ac_exeext conftest.$ac_ext
16305fi
16306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16307echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16308if test `eval echo '${'$as_ac_var'}'` = yes; then
16309 cat >>confdefs.h <<_ACEOF
16310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16311_ACEOF
c906108c
SS
16312
16313fi
a3828db0 16314done
c906108c 16315
a3828db0
MK
16316
16317for ac_func in ttrace
16318do
16319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16320echo "$as_me:$LINENO: checking for $ac_func" >&5
16321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16322if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16323 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 16324else
bec39cab
AC
16325 cat >conftest.$ac_ext <<_ACEOF
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
a3828db0
MK
16331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16333#define $ac_func innocuous_$ac_func
b83266a0 16334
a3828db0
MK
16335/* System header to define __stub macros and hopefully few prototypes,
16336 which can conflict with char $ac_func (); below.
16337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16338 <limits.h> exists even on freestanding compilers. */
16339
16340#ifdef __STDC__
16341# include <limits.h>
16342#else
16343# include <assert.h>
16344#endif
16345
16346#undef $ac_func
16347
16348/* Override any gcc2 internal prototype to avoid an error. */
16349#ifdef __cplusplus
16350extern "C"
16351{
16352#endif
16353/* We use char because int might match the return type of a gcc2
16354 builtin and then its argument prototype would still apply. */
16355char $ac_func ();
16356/* The GNU C library defines this for functions which it implements
16357 to always fail with ENOSYS. Some functions are actually named
16358 something starting with __ and the normal name is an alias. */
16359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16360choke me
16361#else
16362char (*f) () = $ac_func;
16363#endif
16364#ifdef __cplusplus
16365}
16366#endif
97bf5e38 16367
bec39cab
AC
16368int
16369main ()
16370{
a3828db0 16371return f != $ac_func;
bec39cab
AC
16372 ;
16373 return 0;
16374}
16375_ACEOF
a3828db0
MK
16376rm -f conftest.$ac_objext conftest$ac_exeext
16377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16378 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16379 ac_status=$?
16380 grep -v '^ *+' conftest.er1 >conftest.err
16381 rm -f conftest.er1
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
16385 { ac_try='test -z "$ac_c_werror_flag"
16386 || test ! -s conftest.err'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
a3828db0 16392 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
a3828db0 16398 eval "$as_ac_var=yes"
b83266a0 16399else
bec39cab
AC
16400 echo "$as_me: failed program was:" >&5
16401sed 's/^/| /' conftest.$ac_ext >&5
16402
a3828db0 16403eval "$as_ac_var=no"
b83266a0 16404fi
a3828db0
MK
16405rm -f conftest.err conftest.$ac_objext \
16406 conftest$ac_exeext conftest.$ac_ext
b83266a0 16407fi
a3828db0
MK
16408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16409echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16410if test `eval echo '${'$as_ac_var'}'` = yes; then
16411 cat >>confdefs.h <<_ACEOF
16412#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16413_ACEOF
b83266a0 16414
97bf5e38 16415fi
a3828db0 16416done
b83266a0 16417
a3828db0
MK
16418
16419for ac_func in wborder
16420do
16421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16422echo "$as_me:$LINENO: checking for $ac_func" >&5
16423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16424if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16426else
16427 cat >conftest.$ac_ext <<_ACEOF
16428/* confdefs.h. */
16429_ACEOF
16430cat confdefs.h >>conftest.$ac_ext
16431cat >>conftest.$ac_ext <<_ACEOF
16432/* end confdefs.h. */
a3828db0
MK
16433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16435#define $ac_func innocuous_$ac_func
a4db0f07 16436
a3828db0
MK
16437/* System header to define __stub macros and hopefully few prototypes,
16438 which can conflict with char $ac_func (); below.
16439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16440 <limits.h> exists even on freestanding compilers. */
16441
16442#ifdef __STDC__
16443# include <limits.h>
16444#else
16445# include <assert.h>
16446#endif
16447
16448#undef $ac_func
16449
16450/* Override any gcc2 internal prototype to avoid an error. */
16451#ifdef __cplusplus
16452extern "C"
16453{
16454#endif
16455/* We use char because int might match the return type of a gcc2
16456 builtin and then its argument prototype would still apply. */
16457char $ac_func ();
16458/* The GNU C library defines this for functions which it implements
16459 to always fail with ENOSYS. Some functions are actually named
16460 something starting with __ and the normal name is an alias. */
16461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16462choke me
16463#else
16464char (*f) () = $ac_func;
16465#endif
16466#ifdef __cplusplus
16467}
16468#endif
97bf5e38 16469
bec39cab
AC
16470int
16471main ()
16472{
a3828db0 16473return f != $ac_func;
bec39cab
AC
16474 ;
16475 return 0;
16476}
16477_ACEOF
a3828db0
MK
16478rm -f conftest.$ac_objext conftest$ac_exeext
16479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16480 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -z "$ac_c_werror_flag"
16488 || test ! -s conftest.err'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; } &&
a3828db0 16494 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
a3828db0 16500 eval "$as_ac_var=yes"
a4db0f07 16501else
bec39cab
AC
16502 echo "$as_me: failed program was:" >&5
16503sed 's/^/| /' conftest.$ac_ext >&5
16504
a3828db0 16505eval "$as_ac_var=no"
a4db0f07 16506fi
a3828db0
MK
16507rm -f conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
a4db0f07 16509fi
a3828db0
MK
16510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16511echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16512if test `eval echo '${'$as_ac_var'}'` = yes; then
16513 cat >>confdefs.h <<_ACEOF
16514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16515_ACEOF
a4db0f07
RH
16516
16517fi
a3828db0 16518done
c906108c 16519
06825bd1 16520
a3828db0
MK
16521# Check the return and argument types of ptrace. No canned test for
16522# this, so roll our own.
16523gdb_ptrace_headers='
16524#if HAVE_SYS_TYPES_H
16525# include <sys/types.h>
16526#endif
16527#if HAVE_SYS_PTRACE_H
16528# include <sys/ptrace.h>
16529#endif
16530#if HAVE_UNISTD_H
16531# include <unistd.h>
16532#endif
16533'
16534# There is no point in checking if we don't have a prototype.
16535echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16536echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16537if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16539else
16540 cat >conftest.$ac_ext <<_ACEOF
16541/* confdefs.h. */
16542_ACEOF
16543cat confdefs.h >>conftest.$ac_ext
16544cat >>conftest.$ac_ext <<_ACEOF
16545/* end confdefs.h. */
a3828db0
MK
16546$gdb_ptrace_headers
16547
bec39cab
AC
16548int
16549main ()
16550{
a3828db0
MK
16551#ifndef ptrace
16552 char *p = (char *) ptrace;
06825bd1 16553#endif
a3828db0 16554
bec39cab
AC
16555 ;
16556 return 0;
16557}
16558_ACEOF
16559rm -f conftest.$ac_objext
16560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16561 (eval $ac_compile) 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try='test -z "$ac_c_werror_flag"
16569 || test ! -s conftest.err'
16570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; } &&
16575 { ac_try='test -s conftest.$ac_objext'
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
a3828db0 16581 ac_cv_have_decl_ptrace=yes
06825bd1 16582else
bec39cab
AC
16583 echo "$as_me: failed program was:" >&5
16584sed 's/^/| /' conftest.$ac_ext >&5
16585
a3828db0 16586ac_cv_have_decl_ptrace=no
06825bd1 16587fi
bec39cab 16588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 16589fi
a3828db0
MK
16590echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16591echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16592if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 16593
a3828db0
MK
16594cat >>confdefs.h <<_ACEOF
16595#define HAVE_DECL_PTRACE 1
16596_ACEOF
bec39cab 16597
bec39cab 16598
a3828db0
MK
16599else
16600 cat >>confdefs.h <<_ACEOF
16601#define HAVE_DECL_PTRACE 0
bec39cab 16602_ACEOF
06825bd1 16603
a3828db0
MK
16604
16605 : ${gdb_cv_func_ptrace_ret='int'}
16606 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16607
06825bd1
MK
16608fi
16609
a3828db0
MK
16610
16611# Check return type.
16612echo "$as_me:$LINENO: checking return type of ptrace" >&5
16613echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16614if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16616else
16617 cat >conftest.$ac_ext <<_ACEOF
16618/* confdefs.h. */
16619_ACEOF
16620cat confdefs.h >>conftest.$ac_ext
16621cat >>conftest.$ac_ext <<_ACEOF
16622/* end confdefs.h. */
a3828db0 16623$gdb_ptrace_headers
bec39cab
AC
16624int
16625main ()
16626{
a3828db0 16627extern int ptrace ();
bec39cab
AC
16628 ;
16629 return 0;
16630}
16631_ACEOF
16632rm -f conftest.$ac_objext
16633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16634 (eval $ac_compile) 2>conftest.er1
16635 ac_status=$?
16636 grep -v '^ *+' conftest.er1 >conftest.err
16637 rm -f conftest.er1
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } &&
16641 { ac_try='test -z "$ac_c_werror_flag"
16642 || test ! -s conftest.err'
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); }; } &&
16648 { ac_try='test -s conftest.$ac_objext'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
a3828db0 16654 gdb_cv_func_ptrace_ret='int'
70f9f479 16655else
bec39cab
AC
16656 echo "$as_me: failed program was:" >&5
16657sed 's/^/| /' conftest.$ac_ext >&5
16658
a3828db0 16659gdb_cv_func_ptrace_ret='long'
70f9f479 16660fi
bec39cab 16661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 16662fi
a3828db0
MK
16663echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16664echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 16665
a3828db0
MK
16666cat >>confdefs.h <<_ACEOF
16667#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 16668_ACEOF
70f9f479 16669
a3828db0
MK
16670# Check argument types.
16671echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16672echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16673if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675else
a3828db0
MK
16676
16677for gdb_arg1 in 'int' 'long'; do
16678 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16679 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16680 for gdb_arg4 in 'int' 'long'; do
16681 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16682/* confdefs.h. */
16683_ACEOF
16684cat confdefs.h >>conftest.$ac_ext
16685cat >>conftest.$ac_ext <<_ACEOF
16686/* end confdefs.h. */
a3828db0 16687$gdb_ptrace_headers
bec39cab
AC
16688int
16689main ()
16690{
a3828db0
MK
16691
16692extern $gdb_cv_func_ptrace_ret
16693 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16694
bec39cab
AC
16695 ;
16696 return 0;
16697}
16698_ACEOF
16699rm -f conftest.$ac_objext
16700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16701 (eval $ac_compile) 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag"
16709 || test ! -s conftest.err'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest.$ac_objext'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
a3828db0
MK
16721 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16722 break 4;
5c7f2947 16723else
bec39cab
AC
16724 echo "$as_me: failed program was:" >&5
16725sed 's/^/| /' conftest.$ac_ext >&5
16726
5c7f2947 16727fi
bec39cab 16728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16729 for gdb_arg5 in 'int *' 'int' 'long'; do
16730 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16731/* confdefs.h. */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h. */
a3828db0 16736$gdb_ptrace_headers
bec39cab
AC
16737int
16738main ()
16739{
a3828db0
MK
16740
16741extern $gdb_cv_func_ptrace_ret
16742 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16743
bec39cab
AC
16744 ;
16745 return 0;
16746}
16747_ACEOF
16748rm -f conftest.$ac_objext
16749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16750 (eval $ac_compile) 2>conftest.er1
16751 ac_status=$?
16752 grep -v '^ *+' conftest.er1 >conftest.err
16753 rm -f conftest.er1
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -z "$ac_c_werror_flag"
16758 || test ! -s conftest.err'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest.$ac_objext'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
a3828db0
MK
16770
16771gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16772 break 5;
78434e59 16773else
bec39cab
AC
16774 echo "$as_me: failed program was:" >&5
16775sed 's/^/| /' conftest.$ac_ext >&5
16776
78434e59 16777fi
bec39cab 16778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16779 done
16780 done
16781 done
16782 done
16783done
16784# Provide a safe default value.
16785: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16786
78434e59 16787fi
a3828db0
MK
16788echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16789echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16790ac_save_IFS=$IFS; IFS=','
16791set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16792IFS=$ac_save_IFS
16793shift
bec39cab 16794
a3828db0
MK
16795cat >>confdefs.h <<_ACEOF
16796#define PTRACE_TYPE_ARG3 $3
16797_ACEOF
16798
16799if test -n "$5"; then
16800
16801cat >>confdefs.h <<_ACEOF
16802#define PTRACE_TYPE_ARG5 $5
bec39cab 16803_ACEOF
78434e59
MK
16804
16805fi
16806
a3828db0
MK
16807if test "$cross_compiling" = no; then
16808 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16809echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16810if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16811 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16812else
16813 if test "$cross_compiling" = yes; then
16814 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16815echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16816 { (exit 1); exit 1; }; }
bec39cab
AC
16817else
16818 cat >conftest.$ac_ext <<_ACEOF
16819/* confdefs.h. */
16820_ACEOF
16821cat confdefs.h >>conftest.$ac_ext
16822cat >>conftest.$ac_ext <<_ACEOF
16823/* end confdefs.h. */
a3828db0
MK
16824#if HAVE_UNISTD_H
16825# include <unistd.h>
16826#endif
16827
bec39cab
AC
16828int
16829main ()
16830{
a3828db0
MK
16831/* If this system has a BSD-style setpgrp which takes arguments,
16832 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16833 exit successfully. */
16834 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
16835 ;
16836 return 0;
16837}
16838_ACEOF
a3828db0
MK
16839rm -f conftest$ac_exeext
16840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16841 (eval $ac_link) 2>&5
bec39cab
AC
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
a3828db0 16850 ac_cv_func_setpgrp_void=no
c906108c 16851else
a3828db0
MK
16852 echo "$as_me: program exited with status $ac_status" >&5
16853echo "$as_me: failed program was:" >&5
bec39cab
AC
16854sed 's/^/| /' conftest.$ac_ext >&5
16855
a3828db0
MK
16856( exit $ac_status )
16857ac_cv_func_setpgrp_void=yes
c906108c 16858fi
a3828db0 16859rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 16860fi
a3828db0
MK
16861fi
16862echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16863echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16864if test $ac_cv_func_setpgrp_void = yes; then
16865
16866cat >>confdefs.h <<\_ACEOF
16867#define SETPGRP_VOID 1
bec39cab 16868_ACEOF
97bf5e38
MK
16869
16870fi
a3828db0
MK
16871
16872else
16873 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16874echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16875if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16876 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16877else
bec39cab
AC
16878 cat >conftest.$ac_ext <<_ACEOF
16879/* confdefs.h. */
16880_ACEOF
16881cat confdefs.h >>conftest.$ac_ext
16882cat >>conftest.$ac_ext <<_ACEOF
16883/* end confdefs.h. */
a3828db0
MK
16884
16885#include <unistd.h>
16886
bec39cab
AC
16887int
16888main ()
16889{
a3828db0
MK
16890
16891 if (setpgrp(1,1) == -1)
16892 exit (0);
16893 else
16894 exit (1);
16895
bec39cab
AC
16896 ;
16897 return 0;
16898}
16899_ACEOF
16900rm -f conftest.$ac_objext
16901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16902 (eval $ac_compile) 2>conftest.er1
16903 ac_status=$?
16904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
16909 { ac_try='test -z "$ac_c_werror_flag"
16910 || test ! -s conftest.err'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest.$ac_objext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
a3828db0 16922 ac_cv_func_setpgrp_void=no
c906108c 16923else
bec39cab
AC
16924 echo "$as_me: failed program was:" >&5
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
a3828db0 16927ac_cv_func_setpgrp_void=yes
c906108c 16928fi
bec39cab 16929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16930fi
a3828db0
MK
16931echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16932echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16933if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 16934 cat >>confdefs.h <<\_ACEOF
a3828db0 16935#define SETPGRP_VOID 1
bec39cab 16936_ACEOF
c3f6f71d 16937
a3828db0 16938fi
c906108c
SS
16939fi
16940
a3828db0
MK
16941# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16942# since sigsetjmp might only be defined as a macro.
16943echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16944echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16945if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947else
16948 cat >conftest.$ac_ext <<_ACEOF
16949/* confdefs.h. */
16950_ACEOF
16951cat confdefs.h >>conftest.$ac_ext
16952cat >>conftest.$ac_ext <<_ACEOF
16953/* end confdefs.h. */
a3828db0
MK
16954
16955#include <setjmp.h>
16956
bec39cab
AC
16957int
16958main ()
16959{
a3828db0 16960sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
16961 ;
16962 return 0;
16963}
16964_ACEOF
16965rm -f conftest.$ac_objext
16966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16967 (eval $ac_compile) 2>conftest.er1
16968 ac_status=$?
16969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } &&
16974 { ac_try='test -z "$ac_c_werror_flag"
16975 || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
a3828db0 16987 gdb_cv_func_sigsetjmp=yes
c906108c 16988else
bec39cab
AC
16989 echo "$as_me: failed program was:" >&5
16990sed 's/^/| /' conftest.$ac_ext >&5
16991
a3828db0 16992gdb_cv_func_sigsetjmp=no
c906108c 16993fi
bec39cab 16994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16995fi
a3828db0
MK
16996echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16997echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16998if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 16999
a3828db0
MK
17000cat >>confdefs.h <<\_ACEOF
17001#define HAVE_SIGSETJMP 1
bec39cab 17002_ACEOF
c906108c 17003
97bf5e38 17004fi
c906108c 17005
a3828db0
MK
17006# Assume we'll default to using the included libiberty regex.
17007gdb_use_included_regex=yes
17008
17009# However, if the system regex is GNU regex, then default to *not*
17010# using the included regex.
17011echo "$as_me:$LINENO: checking for GNU regex" >&5
17012echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
17013if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015else
17016 cat >conftest.$ac_ext <<_ACEOF
17017/* confdefs.h. */
17018_ACEOF
17019cat confdefs.h >>conftest.$ac_ext
17020cat >>conftest.$ac_ext <<_ACEOF
17021/* end confdefs.h. */
a3828db0 17022#include <gnu-versions.h>
bec39cab
AC
17023int
17024main ()
17025{
a3828db0
MK
17026#define REGEX_INTERFACE_VERSION 1
17027#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17028# error "Version mismatch"
17029#endif
bec39cab
AC
17030 ;
17031 return 0;
17032}
17033_ACEOF
17034rm -f conftest.$ac_objext
17035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17036 (eval $ac_compile) 2>conftest.er1
17037 ac_status=$?
17038 grep -v '^ *+' conftest.er1 >conftest.err
17039 rm -f conftest.er1
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try='test -z "$ac_c_werror_flag"
17044 || test ! -s conftest.err'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest.$ac_objext'
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
a3828db0 17056 gdb_cv_have_gnu_regex=yes
c906108c 17057else
bec39cab
AC
17058 echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
a3828db0 17061gdb_cv_have_gnu_regex=no
c906108c 17062fi
bec39cab 17063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17064fi
a3828db0
MK
17065echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17066echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17067if test $gdb_cv_have_gnu_regex = yes; then
17068 gdb_use_included_regex=no
17069fi
c906108c 17070
a3828db0
MK
17071
17072# Check whether --with-included-regex or --without-included-regex was given.
17073if test "${with_included_regex+set}" = set; then
17074 withval="$with_included_regex"
17075 gdb_with_regex=$withval
17076else
17077 gdb_with_regex=$gdb_use_included_regex
17078fi;
17079if test "$gdb_with_regex" = yes; then
17080
17081cat >>confdefs.h <<\_ACEOF
17082#define USE_INCLUDED_REGEX 1
bec39cab 17083_ACEOF
c906108c 17084
97bf5e38 17085fi
c906108c 17086
5c45e068
MK
17087# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17088echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17089echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17090if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17092else
17093 cat >conftest.$ac_ext <<_ACEOF
17094/* confdefs.h. */
17095_ACEOF
17096cat confdefs.h >>conftest.$ac_ext
17097cat >>conftest.$ac_ext <<_ACEOF
17098/* end confdefs.h. */
a3828db0
MK
17099#include <sys/param.h>
17100#include <sys/proc.h>
5c45e068
MK
17101
17102
bec39cab
AC
17103int
17104main ()
17105{
5c45e068
MK
17106static struct thread ac_aggr;
17107if (ac_aggr.td_pcb)
17108return 0;
bec39cab
AC
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); } &&
17122 { ac_try='test -z "$ac_c_werror_flag"
17123 || test ! -s conftest.err'
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
5c45e068 17135 ac_cv_member_struct_thread_td_pcb=yes
c906108c 17136else
bec39cab
AC
17137 echo "$as_me: failed program was:" >&5
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
5c45e068
MK
17140cat >conftest.$ac_ext <<_ACEOF
17141/* confdefs.h. */
17142_ACEOF
17143cat confdefs.h >>conftest.$ac_ext
17144cat >>conftest.$ac_ext <<_ACEOF
17145/* end confdefs.h. */
17146#include <sys/param.h>
17147#include <sys/proc.h>
17148
17149
17150int
17151main ()
17152{
17153static struct thread ac_aggr;
17154if (sizeof ac_aggr.td_pcb)
17155return 0;
17156 ;
17157 return 0;
17158}
17159_ACEOF
17160rm -f conftest.$ac_objext
17161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17162 (eval $ac_compile) 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try='test -z "$ac_c_werror_flag"
17170 || test ! -s conftest.err'
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest.$ac_objext'
17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178 (eval $ac_try) 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17182 ac_cv_member_struct_thread_td_pcb=yes
17183else
17184 echo "$as_me: failed program was:" >&5
17185sed 's/^/| /' conftest.$ac_ext >&5
17186
17187ac_cv_member_struct_thread_td_pcb=no
17188fi
17189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17190fi
bec39cab 17191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17192fi
5c45e068
MK
17193echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17194echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17195if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 17196
5c45e068 17197cat >>confdefs.h <<_ACEOF
a3828db0 17198#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 17199_ACEOF
c906108c 17200
5c45e068 17201
97bf5e38 17202fi
c906108c 17203
5c45e068 17204
a3828db0
MK
17205# See if <sys/lwp.h> defines `struct lwp`.
17206echo "$as_me:$LINENO: checking for struct lwp" >&5
17207echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17208if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210else
17211 cat >conftest.$ac_ext <<_ACEOF
17212/* confdefs.h. */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h. */
a3828db0
MK
17217#include <sys/param.h>
17218#include <sys/lwp.h>
bec39cab
AC
17219int
17220main ()
17221{
a3828db0 17222struct lwp l;
bec39cab
AC
17223 ;
17224 return 0;
17225}
17226_ACEOF
17227rm -f conftest.$ac_objext
17228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17229 (eval $ac_compile) 2>conftest.er1
17230 ac_status=$?
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
17236 { ac_try='test -z "$ac_c_werror_flag"
17237 || test ! -s conftest.err'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try='test -s conftest.$ac_objext'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
a3828db0 17249 gdb_cv_struct_lwp=yes
c906108c 17250else
bec39cab
AC
17251 echo "$as_me: failed program was:" >&5
17252sed 's/^/| /' conftest.$ac_ext >&5
17253
a3828db0 17254gdb_cv_struct_lwp=no
c906108c 17255fi
bec39cab 17256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17257fi
a3828db0
MK
17258echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17259echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17260if test $gdb_cv_struct_lwp = yes; then
c906108c 17261
a3828db0
MK
17262cat >>confdefs.h <<\_ACEOF
17263#define HAVE_STRUCT_LWP 1
bec39cab 17264_ACEOF
c906108c 17265
97bf5e38 17266fi
c906108c 17267
a3828db0
MK
17268# See if <machine/reg.h> degines `struct reg'.
17269echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17270echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17271if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273else
17274 cat >conftest.$ac_ext <<_ACEOF
17275/* confdefs.h. */
17276_ACEOF
17277cat confdefs.h >>conftest.$ac_ext
17278cat >>conftest.$ac_ext <<_ACEOF
17279/* end confdefs.h. */
a3828db0
MK
17280#include <sys/types.h>
17281#include <machine/reg.h>
bec39cab
AC
17282int
17283main ()
17284{
a3828db0 17285struct reg r;
bec39cab
AC
17286 ;
17287 return 0;
17288}
17289_ACEOF
17290rm -f conftest.$ac_objext
17291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17292 (eval $ac_compile) 2>conftest.er1
17293 ac_status=$?
17294 grep -v '^ *+' conftest.er1 >conftest.err
17295 rm -f conftest.er1
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -z "$ac_c_werror_flag"
17300 || test ! -s conftest.err'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17303 ac_status=$?
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; } &&
17306 { ac_try='test -s conftest.$ac_objext'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
a3828db0 17312 gdb_cv_struct_reg=yes
27ca5dad 17313else
bec39cab
AC
17314 echo "$as_me: failed program was:" >&5
17315sed 's/^/| /' conftest.$ac_ext >&5
17316
a3828db0 17317gdb_cv_struct_reg=no
27ca5dad 17318fi
bec39cab 17319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 17320fi
a3828db0
MK
17321echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17322echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17323if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
17324
17325cat >>confdefs.h <<\_ACEOF
a3828db0 17326#define HAVE_STRUCT_REG 1
bec39cab 17327_ACEOF
27ca5dad
MC
17328
17329fi
97bf5e38 17330
a3828db0
MK
17331# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17332# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
5c45e068
MK
17333echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17334echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17335if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 17336 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17337else
bec39cab
AC
17338 cat >conftest.$ac_ext <<_ACEOF
17339/* confdefs.h. */
17340_ACEOF
17341cat confdefs.h >>conftest.$ac_ext
17342cat >>conftest.$ac_ext <<_ACEOF
17343/* end confdefs.h. */
a3828db0 17344#include <machine/reg.h>
5c45e068
MK
17345
17346int
17347main ()
17348{
17349static struct reg ac_aggr;
17350if (ac_aggr.r_fs)
17351return 0;
17352 ;
17353 return 0;
17354}
17355_ACEOF
17356rm -f conftest.$ac_objext
17357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358 (eval $ac_compile) 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag"
17366 || test ! -s conftest.err'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; } &&
17372 { ac_try='test -s conftest.$ac_objext'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 ac_cv_member_struct_reg_r_fs=yes
17379else
17380 echo "$as_me: failed program was:" >&5
17381sed 's/^/| /' conftest.$ac_ext >&5
17382
17383cat >conftest.$ac_ext <<_ACEOF
17384/* confdefs.h. */
17385_ACEOF
17386cat confdefs.h >>conftest.$ac_ext
17387cat >>conftest.$ac_ext <<_ACEOF
17388/* end confdefs.h. */
17389#include <machine/reg.h>
17390
bec39cab
AC
17391int
17392main ()
17393{
5c45e068
MK
17394static struct reg ac_aggr;
17395if (sizeof ac_aggr.r_fs)
17396return 0;
bec39cab
AC
17397 ;
17398 return 0;
17399}
17400_ACEOF
17401rm -f conftest.$ac_objext
17402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17403 (eval $ac_compile) 2>conftest.er1
17404 ac_status=$?
17405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -f conftest.er1
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
17410 { ac_try='test -z "$ac_c_werror_flag"
17411 || test ! -s conftest.err'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest.$ac_objext'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
5c45e068 17423 ac_cv_member_struct_reg_r_fs=yes
3862412b 17424else
bec39cab
AC
17425 echo "$as_me: failed program was:" >&5
17426sed 's/^/| /' conftest.$ac_ext >&5
17427
5c45e068 17428ac_cv_member_struct_reg_r_fs=no
3862412b 17429fi
bec39cab 17430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17431fi
5c45e068
MK
17432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17433fi
17434echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17435echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17436if test $ac_cv_member_struct_reg_r_fs = yes; then
17437
17438cat >>confdefs.h <<_ACEOF
a3828db0 17439#define HAVE_STRUCT_REG_R_FS 1
bec39cab 17440_ACEOF
3862412b 17441
5c45e068 17442
97bf5e38 17443fi
5c45e068
MK
17444echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17445echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17446if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 17447 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17448else
bec39cab
AC
17449 cat >conftest.$ac_ext <<_ACEOF
17450/* confdefs.h. */
17451_ACEOF
17452cat confdefs.h >>conftest.$ac_ext
17453cat >>conftest.$ac_ext <<_ACEOF
17454/* end confdefs.h. */
a3828db0 17455#include <machine/reg.h>
5c45e068 17456
bec39cab
AC
17457int
17458main ()
17459{
5c45e068
MK
17460static struct reg ac_aggr;
17461if (ac_aggr.r_gs)
17462return 0;
bec39cab
AC
17463 ;
17464 return 0;
17465}
17466_ACEOF
17467rm -f conftest.$ac_objext
17468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469 (eval $ac_compile) 2>conftest.er1
17470 ac_status=$?
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try='test -z "$ac_c_werror_flag"
17477 || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest.$ac_objext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
5c45e068 17489 ac_cv_member_struct_reg_r_gs=yes
3862412b 17490else
bec39cab
AC
17491 echo "$as_me: failed program was:" >&5
17492sed 's/^/| /' conftest.$ac_ext >&5
17493
5c45e068
MK
17494cat >conftest.$ac_ext <<_ACEOF
17495/* confdefs.h. */
17496_ACEOF
17497cat confdefs.h >>conftest.$ac_ext
17498cat >>conftest.$ac_ext <<_ACEOF
17499/* end confdefs.h. */
17500#include <machine/reg.h>
17501
17502int
17503main ()
17504{
17505static struct reg ac_aggr;
17506if (sizeof ac_aggr.r_gs)
17507return 0;
17508 ;
17509 return 0;
17510}
17511_ACEOF
17512rm -f conftest.$ac_objext
17513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17514 (eval $ac_compile) 2>conftest.er1
17515 ac_status=$?
17516 grep -v '^ *+' conftest.er1 >conftest.err
17517 rm -f conftest.er1
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } &&
17521 { ac_try='test -z "$ac_c_werror_flag"
17522 || test ! -s conftest.err'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest.$ac_objext'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_cv_member_struct_reg_r_gs=yes
17535else
17536 echo "$as_me: failed program was:" >&5
17537sed 's/^/| /' conftest.$ac_ext >&5
17538
17539ac_cv_member_struct_reg_r_gs=no
3862412b 17540fi
bec39cab 17541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17542fi
5c45e068
MK
17543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17544fi
17545echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17546echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17547if test $ac_cv_member_struct_reg_r_gs = yes; then
17548
17549cat >>confdefs.h <<_ACEOF
a3828db0 17550#define HAVE_STRUCT_REG_R_GS 1
bec39cab 17551_ACEOF
3862412b 17552
5c45e068 17553
97bf5e38 17554fi
3862412b 17555
5c45e068 17556
a3828db0
MK
17557# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17558echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17559echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17560if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 17561 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17562else
bec39cab
AC
17563 cat >conftest.$ac_ext <<_ACEOF
17564/* confdefs.h. */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h. */
a3828db0 17569#include <sys/ptrace.h>
bec39cab
AC
17570int
17571main ()
17572{
a3828db0 17573PTRACE_GETREGS;
bec39cab
AC
17574 ;
17575 return 0;
17576}
17577_ACEOF
17578rm -f conftest.$ac_objext
17579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17580 (eval $ac_compile) 2>conftest.er1
17581 ac_status=$?
17582 grep -v '^ *+' conftest.er1 >conftest.err
17583 rm -f conftest.er1
17584 cat conftest.err >&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try='test -z "$ac_c_werror_flag"
17588 || test ! -s conftest.err'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try='test -s conftest.$ac_objext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
a3828db0 17600 gdb_cv_have_ptrace_getregs=yes
451928c5 17601else
bec39cab
AC
17602 echo "$as_me: failed program was:" >&5
17603sed 's/^/| /' conftest.$ac_ext >&5
17604
a3828db0 17605gdb_cv_have_ptrace_getregs=no
451928c5 17606fi
bec39cab 17607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17608fi
17609
a3828db0
MK
17610echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17611echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17612if test $gdb_cv_have_ptrace_getregs = yes; then
17613 cat >>confdefs.h <<\_ACEOF
17614#define HAVE_PTRACE_GETREGS 1
bec39cab 17615_ACEOF
451928c5 17616
97bf5e38 17617fi
451928c5 17618
a3828db0
MK
17619# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17620echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17621echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17622if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 17623 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17624else
bec39cab
AC
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
a3828db0 17631#include <sys/ptrace.h>
bec39cab
AC
17632int
17633main ()
17634{
a3828db0 17635PTRACE_GETFPXREGS;
bec39cab
AC
17636 ;
17637 return 0;
17638}
17639_ACEOF
17640rm -f conftest.$ac_objext
17641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -z "$ac_c_werror_flag"
17650 || test ! -s conftest.err'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
a3828db0 17662 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 17663else
bec39cab
AC
17664 echo "$as_me: failed program was:" >&5
17665sed 's/^/| /' conftest.$ac_ext >&5
17666
a3828db0 17667gdb_cv_have_ptrace_getfpxregs=no
451928c5 17668fi
bec39cab 17669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17670fi
17671
a3828db0
MK
17672echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17673echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17674if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17675 cat >>confdefs.h <<\_ACEOF
17676#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 17677_ACEOF
451928c5 17678
97bf5e38 17679fi
451928c5 17680
a3828db0
MK
17681# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17682echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17683echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17684if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 17685 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17686else
bec39cab
AC
17687 cat >conftest.$ac_ext <<_ACEOF
17688/* confdefs.h. */
17689_ACEOF
17690cat confdefs.h >>conftest.$ac_ext
17691cat >>conftest.$ac_ext <<_ACEOF
17692/* end confdefs.h. */
a3828db0
MK
17693#include <sys/types.h>
17694#include <sys/ptrace.h>
bec39cab
AC
17695int
17696main ()
17697{
a3828db0 17698PT_GETDBREGS;
bec39cab
AC
17699 ;
17700 return 0;
17701}
17702_ACEOF
17703rm -f conftest.$ac_objext
17704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17705 (eval $ac_compile) 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag"
17713 || test ! -s conftest.err'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
a3828db0 17725 gdb_cv_have_pt_getdbregs=yes
3862412b 17726else
bec39cab
AC
17727 echo "$as_me: failed program was:" >&5
17728sed 's/^/| /' conftest.$ac_ext >&5
17729
a3828db0 17730gdb_cv_have_pt_getdbregs=no
3862412b 17731fi
bec39cab 17732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17733fi
17734
a3828db0
MK
17735echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17736echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17737if test $gdb_cv_have_pt_getdbregs = yes; then
17738 cat >>confdefs.h <<\_ACEOF
17739#define HAVE_PT_GETDBREGS 1
bec39cab 17740_ACEOF
3862412b 17741
97bf5e38 17742fi
3862412b 17743
a3828db0
MK
17744# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17745echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17746echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17747if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 17748 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17749else
bec39cab
AC
17750 cat >conftest.$ac_ext <<_ACEOF
17751/* confdefs.h. */
17752_ACEOF
17753cat confdefs.h >>conftest.$ac_ext
17754cat >>conftest.$ac_ext <<_ACEOF
17755/* end confdefs.h. */
a3828db0
MK
17756#include <sys/types.h>
17757#include <sys/ptrace.h>
bec39cab
AC
17758int
17759main ()
17760{
a3828db0 17761PT_GETXMMREGS;
bec39cab
AC
17762 ;
17763 return 0;
17764}
17765_ACEOF
17766rm -f conftest.$ac_objext
17767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17768 (eval $ac_compile) 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try='test -z "$ac_c_werror_flag"
17776 || test ! -s conftest.err'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try='test -s conftest.$ac_objext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
a3828db0 17788 gdb_cv_have_pt_getxmmregs=yes
3862412b 17789else
bec39cab
AC
17790 echo "$as_me: failed program was:" >&5
17791sed 's/^/| /' conftest.$ac_ext >&5
17792
a3828db0 17793gdb_cv_have_pt_getxmmregs=no
3862412b 17794fi
bec39cab 17795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17796fi
17797
a3828db0
MK
17798echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17799echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17800if test $gdb_cv_have_pt_getxmmregs = yes; then
17801 cat >>confdefs.h <<\_ACEOF
17802#define HAVE_PT_GETXMMREGS 1
bec39cab 17803_ACEOF
3862412b 17804
97bf5e38 17805fi
3862412b 17806
a3828db0
MK
17807# See if stdint.h provides the uintptr_t type.
17808# Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
17809echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
17810echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
17811if test "${gdb_cv_have_uintptr_t+set}" = set; then
bec39cab 17812 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17813else
bec39cab
AC
17814 cat >conftest.$ac_ext <<_ACEOF
17815/* confdefs.h. */
17816_ACEOF
17817cat confdefs.h >>conftest.$ac_ext
17818cat >>conftest.$ac_ext <<_ACEOF
17819/* end confdefs.h. */
a3828db0 17820#include <stdint.h>
bec39cab
AC
17821int
17822main ()
17823{
a3828db0 17824uintptr_t foo = 0;
bec39cab
AC
17825 ;
17826 return 0;
17827}
17828_ACEOF
17829rm -f conftest.$ac_objext
17830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831 (eval $ac_compile) 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -z "$ac_c_werror_flag"
17839 || test ! -s conftest.err'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest.$ac_objext'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
a3828db0 17851 gdb_cv_have_uintptr_t=yes
596c9d4b 17852else
bec39cab
AC
17853 echo "$as_me: failed program was:" >&5
17854sed 's/^/| /' conftest.$ac_ext >&5
17855
a3828db0 17856gdb_cv_have_uintptr_t=no
596c9d4b 17857fi
bec39cab 17858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b 17859fi
a3828db0
MK
17860echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
17861echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
17862if test $gdb_cv_have_uintptr_t = yes; then
bec39cab
AC
17863
17864cat >>confdefs.h <<\_ACEOF
a3828db0 17865#define HAVE_UINTPTR_T 1
bec39cab 17866_ACEOF
596c9d4b 17867
97bf5e38 17868fi
596c9d4b 17869
97bf5e38
MK
17870# If we are configured native on GNU/Linux, work around problems with
17871# sys/procfs.h
17872# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17873
17874if test "${target}" = "${host}"; then
17875 case "${host}" in
17876 i[3456]86-*-linux*)
bec39cab 17877 cat >>confdefs.h <<\_ACEOF
97bf5e38 17878#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 17879_ACEOF
97bf5e38 17880
bec39cab 17881 cat >>confdefs.h <<\_ACEOF
97bf5e38 17882#define sys_quotactl 1
bec39cab 17883_ACEOF
97bf5e38
MK
17884
17885 ;;
97bf5e38 17886 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
bec39cab 17887 cat >>confdefs.h <<\_ACEOF
97bf5e38 17888#define NEW_PROC_API 1
bec39cab 17889_ACEOF
97bf5e38
MK
17890
17891 ;;
0bbc026e 17892 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
bec39cab 17893 cat >>confdefs.h <<\_ACEOF
97bf5e38 17894#define NEW_PROC_API 1
bec39cab 17895_ACEOF
c960c18f
AC
17896
17897 ;;
17898 mips-sgi-irix5*)
17899 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
bec39cab 17900 cat >>confdefs.h <<\_ACEOF
c960c18f 17901#define _KMEMUSER 1
bec39cab 17902_ACEOF
97bf5e38
MK
17903
17904 ;;
17905 esac
17906fi
17907
17908if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
17909 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17910echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17911 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913else
17914 cat >conftest.$ac_ext <<_ACEOF
17915/* confdefs.h. */
17916_ACEOF
17917cat confdefs.h >>conftest.$ac_ext
17918cat >>conftest.$ac_ext <<_ACEOF
17919/* end confdefs.h. */
596c9d4b
KB
17920
17921#define _SYSCALL32
17922#include <sys/procfs.h>
bec39cab
AC
17923int
17924main ()
17925{
97bf5e38 17926pstatus_t avar
bec39cab
AC
17927 ;
17928 return 0;
17929}
17930_ACEOF
17931rm -f conftest.$ac_objext
17932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17933 (eval $ac_compile) 2>conftest.er1
17934 ac_status=$?
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_c_werror_flag"
17941 || test ! -s conftest.err'
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; } &&
17947 { ac_try='test -s conftest.$ac_objext'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
97bf5e38 17953 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 17954else
bec39cab
AC
17955 echo "$as_me: failed program was:" >&5
17956sed 's/^/| /' conftest.$ac_ext >&5
17957
17958bfd_cv_have_sys_procfs_type_pstatus_t=no
17959
596c9d4b 17960fi
bec39cab 17961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17962fi
17963
97bf5e38 17964 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
17965
17966cat >>confdefs.h <<\_ACEOF
97bf5e38 17967#define HAVE_PSTATUS_T 1
bec39cab 17968_ACEOF
596c9d4b
KB
17969
17970 fi
bec39cab
AC
17971 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17972echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 17973
bec39cab
AC
17974 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17975echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17976 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17978else
bec39cab
AC
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. */
596c9d4b
KB
17985
17986#define _SYSCALL32
17987#include <sys/procfs.h>
bec39cab
AC
17988int
17989main ()
17990{
97bf5e38 17991prrun_t avar
bec39cab
AC
17992 ;
17993 return 0;
17994}
17995_ACEOF
17996rm -f conftest.$ac_objext
17997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17998 (eval $ac_compile) 2>conftest.er1
17999 ac_status=$?
18000 grep -v '^ *+' conftest.er1 >conftest.err
18001 rm -f conftest.er1
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -z "$ac_c_werror_flag"
18006 || test ! -s conftest.err'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } &&
18012 { ac_try='test -s conftest.$ac_objext'
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
97bf5e38 18018 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 18019else
bec39cab
AC
18020 echo "$as_me: failed program was:" >&5
18021sed 's/^/| /' conftest.$ac_ext >&5
18022
18023bfd_cv_have_sys_procfs_type_prrun_t=no
18024
596c9d4b 18025fi
bec39cab 18026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18027fi
18028
97bf5e38 18029 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
18030
18031cat >>confdefs.h <<\_ACEOF
97bf5e38 18032#define HAVE_PRRUN_T 1
bec39cab 18033_ACEOF
596c9d4b
KB
18034
18035 fi
bec39cab
AC
18036 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18037echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 18038
bec39cab
AC
18039 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18040echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
18041 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 18043else
bec39cab
AC
18044 cat >conftest.$ac_ext <<_ACEOF
18045/* confdefs.h. */
18046_ACEOF
18047cat confdefs.h >>conftest.$ac_ext
18048cat >>conftest.$ac_ext <<_ACEOF
18049/* end confdefs.h. */
596c9d4b
KB
18050
18051#define _SYSCALL32
18052#include <sys/procfs.h>
bec39cab
AC
18053int
18054main ()
18055{
97bf5e38 18056gregset_t avar
bec39cab
AC
18057 ;
18058 return 0;
18059}
18060_ACEOF
18061rm -f conftest.$ac_objext
18062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18063 (eval $ac_compile) 2>conftest.er1
18064 ac_status=$?
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try='test -z "$ac_c_werror_flag"
18071 || test ! -s conftest.err'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; } &&
18077 { ac_try='test -s conftest.$ac_objext'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
97bf5e38 18083 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 18084else
bec39cab
AC
18085 echo "$as_me: failed program was:" >&5
18086sed 's/^/| /' conftest.$ac_ext >&5
18087
18088bfd_cv_have_sys_procfs_type_gregset_t=no
18089
596c9d4b 18090fi
bec39cab 18091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18092fi
18093
97bf5e38 18094 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
18095
18096cat >>confdefs.h <<\_ACEOF
97bf5e38 18097#define HAVE_GREGSET_T 1
bec39cab 18098_ACEOF
596c9d4b
KB
18099
18100 fi
bec39cab
AC
18101 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18102echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 18103
bec39cab
AC
18104 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18105echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18106 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 18108else
bec39cab
AC
18109 cat >conftest.$ac_ext <<_ACEOF
18110/* confdefs.h. */
18111_ACEOF
18112cat confdefs.h >>conftest.$ac_ext
18113cat >>conftest.$ac_ext <<_ACEOF
18114/* end confdefs.h. */
97bf5e38
MK
18115
18116#define _SYSCALL32
d84dd0c5 18117#include <sys/procfs.h>
bec39cab
AC
18118int
18119main ()
18120{
97bf5e38 18121fpregset_t avar
bec39cab
AC
18122 ;
18123 return 0;
18124}
18125_ACEOF
18126rm -f conftest.$ac_objext
18127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18128 (eval $ac_compile) 2>conftest.er1
18129 ac_status=$?
18130 grep -v '^ *+' conftest.er1 >conftest.err
18131 rm -f conftest.er1
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
18135 { ac_try='test -z "$ac_c_werror_flag"
18136 || test ! -s conftest.err'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; } &&
18142 { ac_try='test -s conftest.$ac_objext'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
97bf5e38 18148 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 18149else
bec39cab
AC
18150 echo "$as_me: failed program was:" >&5
18151sed 's/^/| /' conftest.$ac_ext >&5
18152
18153bfd_cv_have_sys_procfs_type_fpregset_t=no
18154
d84dd0c5 18155fi
bec39cab 18156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
18157fi
18158
97bf5e38 18159 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
18160
18161cat >>confdefs.h <<\_ACEOF
97bf5e38 18162#define HAVE_FPREGSET_T 1
bec39cab 18163_ACEOF
d84dd0c5 18164
97bf5e38 18165 fi
bec39cab
AC
18166 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18167echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 18168
bec39cab
AC
18169 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18170echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18171 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18173else
bec39cab
AC
18174 cat >conftest.$ac_ext <<_ACEOF
18175/* confdefs.h. */
18176_ACEOF
18177cat confdefs.h >>conftest.$ac_ext
18178cat >>conftest.$ac_ext <<_ACEOF
18179/* end confdefs.h. */
c906108c 18180
97bf5e38
MK
18181#define _SYSCALL32
18182#include <sys/procfs.h>
bec39cab
AC
18183int
18184main ()
18185{
97bf5e38 18186prgregset_t avar
bec39cab
AC
18187 ;
18188 return 0;
18189}
18190_ACEOF
18191rm -f conftest.$ac_objext
18192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18193 (eval $ac_compile) 2>conftest.er1
18194 ac_status=$?
18195 grep -v '^ *+' conftest.er1 >conftest.err
18196 rm -f conftest.er1
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } &&
18200 { ac_try='test -z "$ac_c_werror_flag"
18201 || test ! -s conftest.err'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; } &&
18207 { ac_try='test -s conftest.$ac_objext'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
97bf5e38 18213 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 18214else
bec39cab
AC
18215 echo "$as_me: failed program was:" >&5
18216sed 's/^/| /' conftest.$ac_ext >&5
18217
18218bfd_cv_have_sys_procfs_type_prgregset_t=no
18219
c906108c 18220fi
bec39cab 18221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18222fi
18223
97bf5e38 18224 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
18225
18226cat >>confdefs.h <<\_ACEOF
97bf5e38 18227#define HAVE_PRGREGSET_T 1
bec39cab 18228_ACEOF
c906108c 18229
97bf5e38 18230 fi
bec39cab
AC
18231 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18232echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 18233
bec39cab
AC
18234 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18235echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18236 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18238else
bec39cab
AC
18239 cat >conftest.$ac_ext <<_ACEOF
18240/* confdefs.h. */
18241_ACEOF
18242cat confdefs.h >>conftest.$ac_ext
18243cat >>conftest.$ac_ext <<_ACEOF
18244/* end confdefs.h. */
97bf5e38
MK
18245
18246#define _SYSCALL32
18247#include <sys/procfs.h>
bec39cab
AC
18248int
18249main ()
18250{
97bf5e38 18251prfpregset_t avar
bec39cab
AC
18252 ;
18253 return 0;
18254}
18255_ACEOF
18256rm -f conftest.$ac_objext
18257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18258 (eval $ac_compile) 2>conftest.er1
18259 ac_status=$?
18260 grep -v '^ *+' conftest.er1 >conftest.err
18261 rm -f conftest.er1
18262 cat conftest.err >&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } &&
18265 { ac_try='test -z "$ac_c_werror_flag"
18266 || test ! -s conftest.err'
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; } &&
18272 { ac_try='test -s conftest.$ac_objext'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
97bf5e38 18278 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 18279else
bec39cab
AC
18280 echo "$as_me: failed program was:" >&5
18281sed 's/^/| /' conftest.$ac_ext >&5
18282
18283bfd_cv_have_sys_procfs_type_prfpregset_t=no
18284
d45fe813 18285fi
bec39cab 18286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18287fi
18288
97bf5e38 18289 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18290
18291cat >>confdefs.h <<\_ACEOF
97bf5e38 18292#define HAVE_PRFPREGSET_T 1
bec39cab 18293_ACEOF
d45fe813 18294
97bf5e38 18295 fi
bec39cab
AC
18296 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18297echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 18298
bec39cab
AC
18299 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18300echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18301 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18303else
bec39cab
AC
18304 cat >conftest.$ac_ext <<_ACEOF
18305/* confdefs.h. */
18306_ACEOF
18307cat confdefs.h >>conftest.$ac_ext
18308cat >>conftest.$ac_ext <<_ACEOF
18309/* end confdefs.h. */
97bf5e38
MK
18310
18311#define _SYSCALL32
18312#include <sys/procfs.h>
bec39cab
AC
18313int
18314main ()
18315{
97bf5e38 18316prgregset32_t avar
bec39cab
AC
18317 ;
18318 return 0;
18319}
18320_ACEOF
18321rm -f conftest.$ac_objext
18322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18323 (eval $ac_compile) 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag"
18331 || test ! -s conftest.err'
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest.$ac_objext'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
97bf5e38 18343 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 18344else
bec39cab
AC
18345 echo "$as_me: failed program was:" >&5
18346sed 's/^/| /' conftest.$ac_ext >&5
18347
18348bfd_cv_have_sys_procfs_type_prgregset32_t=no
18349
d45fe813 18350fi
bec39cab 18351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18352fi
18353
97bf5e38 18354 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
18355
18356cat >>confdefs.h <<\_ACEOF
97bf5e38 18357#define HAVE_PRGREGSET32_T 1
bec39cab 18358_ACEOF
d45fe813 18359
97bf5e38 18360 fi
bec39cab
AC
18361 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18362echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 18363
bec39cab
AC
18364 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18365echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18366 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18368else
bec39cab
AC
18369 cat >conftest.$ac_ext <<_ACEOF
18370/* confdefs.h. */
18371_ACEOF
18372cat confdefs.h >>conftest.$ac_ext
18373cat >>conftest.$ac_ext <<_ACEOF
18374/* end confdefs.h. */
97bf5e38
MK
18375
18376#define _SYSCALL32
18377#include <sys/procfs.h>
bec39cab
AC
18378int
18379main ()
18380{
97bf5e38 18381prfpregset32_t avar
bec39cab
AC
18382 ;
18383 return 0;
18384}
18385_ACEOF
18386rm -f conftest.$ac_objext
18387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388 (eval $ac_compile) 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest.$ac_objext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
97bf5e38 18408 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 18409else
bec39cab
AC
18410 echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18414
d45fe813 18415fi
bec39cab 18416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18417fi
18418
97bf5e38 18419 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
18420
18421cat >>confdefs.h <<\_ACEOF
97bf5e38 18422#define HAVE_PRFPREGSET32_T 1
bec39cab 18423_ACEOF
d45fe813 18424
97bf5e38 18425 fi
bec39cab
AC
18426 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18427echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 18428
bec39cab
AC
18429 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18430echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18431 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18433else
bec39cab
AC
18434 cat >conftest.$ac_ext <<_ACEOF
18435/* confdefs.h. */
18436_ACEOF
18437cat confdefs.h >>conftest.$ac_ext
18438cat >>conftest.$ac_ext <<_ACEOF
18439/* end confdefs.h. */
97bf5e38 18440
d45fe813 18441#define _SYSCALL32
97bf5e38 18442#include <sys/procfs.h>
bec39cab
AC
18443int
18444main ()
18445{
97bf5e38 18446lwpid_t avar
bec39cab
AC
18447 ;
18448 return 0;
18449}
18450_ACEOF
18451rm -f conftest.$ac_objext
18452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest.$ac_objext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
97bf5e38 18473 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 18474else
bec39cab
AC
18475 echo "$as_me: failed program was:" >&5
18476sed 's/^/| /' conftest.$ac_ext >&5
18477
18478bfd_cv_have_sys_procfs_type_lwpid_t=no
18479
d45fe813 18480fi
bec39cab 18481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18482fi
18483
97bf5e38 18484 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
18485
18486cat >>confdefs.h <<\_ACEOF
97bf5e38 18487#define HAVE_LWPID_T 1
bec39cab 18488_ACEOF
d45fe813 18489
97bf5e38 18490 fi
bec39cab
AC
18491 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18492echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 18493
bec39cab
AC
18494 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18495echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18496 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18498else
bec39cab
AC
18499 cat >conftest.$ac_ext <<_ACEOF
18500/* confdefs.h. */
18501_ACEOF
18502cat confdefs.h >>conftest.$ac_ext
18503cat >>conftest.$ac_ext <<_ACEOF
18504/* end confdefs.h. */
c906108c 18505
97bf5e38
MK
18506#define _SYSCALL32
18507#include <sys/procfs.h>
bec39cab
AC
18508int
18509main ()
18510{
97bf5e38 18511psaddr_t avar
bec39cab
AC
18512 ;
18513 return 0;
18514}
18515_ACEOF
18516rm -f conftest.$ac_objext
18517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18518 (eval $ac_compile) 2>conftest.er1
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag"
18526 || test ! -s conftest.err'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
97bf5e38 18538 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 18539else
bec39cab
AC
18540 echo "$as_me: failed program was:" >&5
18541sed 's/^/| /' conftest.$ac_ext >&5
18542
18543bfd_cv_have_sys_procfs_type_psaddr_t=no
18544
c906108c 18545fi
bec39cab 18546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18547fi
18548
97bf5e38 18549 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
18550
18551cat >>confdefs.h <<\_ACEOF
97bf5e38 18552#define HAVE_PSADDR_T 1
bec39cab 18553_ACEOF
c906108c 18554
97bf5e38 18555 fi
bec39cab
AC
18556 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18557echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 18558
bec39cab
AC
18559 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18560echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18561 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18563else
bec39cab
AC
18564 cat >conftest.$ac_ext <<_ACEOF
18565/* confdefs.h. */
18566_ACEOF
18567cat confdefs.h >>conftest.$ac_ext
18568cat >>conftest.$ac_ext <<_ACEOF
18569/* end confdefs.h. */
c906108c 18570
97bf5e38
MK
18571#define _SYSCALL32
18572#include <sys/procfs.h>
bec39cab
AC
18573int
18574main ()
18575{
97bf5e38 18576prsysent_t avar
bec39cab
AC
18577 ;
18578 return 0;
18579}
18580_ACEOF
18581rm -f conftest.$ac_objext
18582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18583 (eval $ac_compile) 2>conftest.er1
18584 ac_status=$?
18585 grep -v '^ *+' conftest.er1 >conftest.err
18586 rm -f conftest.er1
18587 cat conftest.err >&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } &&
18590 { ac_try='test -z "$ac_c_werror_flag"
18591 || test ! -s conftest.err'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18594 ac_status=$?
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; } &&
18597 { ac_try='test -s conftest.$ac_objext'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
97bf5e38 18603 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 18604else
bec39cab
AC
18605 echo "$as_me: failed program was:" >&5
18606sed 's/^/| /' conftest.$ac_ext >&5
18607
18608bfd_cv_have_sys_procfs_type_prsysent_t=no
18609
c906108c 18610fi
bec39cab 18611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18612fi
18613
97bf5e38 18614 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
18615
18616cat >>confdefs.h <<\_ACEOF
97bf5e38 18617#define HAVE_PRSYSENT_T 1
bec39cab 18618_ACEOF
c906108c 18619
97bf5e38 18620 fi
bec39cab
AC
18621 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18622echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 18623
bec39cab
AC
18624 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18625echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18626 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18628else
bec39cab
AC
18629 cat >conftest.$ac_ext <<_ACEOF
18630/* confdefs.h. */
18631_ACEOF
18632cat confdefs.h >>conftest.$ac_ext
18633cat >>conftest.$ac_ext <<_ACEOF
18634/* end confdefs.h. */
c906108c 18635
97bf5e38
MK
18636#define _SYSCALL32
18637#include <sys/procfs.h>
bec39cab
AC
18638int
18639main ()
18640{
97bf5e38 18641pr_sigset_t avar
bec39cab
AC
18642 ;
18643 return 0;
18644}
18645_ACEOF
18646rm -f conftest.$ac_objext
18647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648 (eval $ac_compile) 2>conftest.er1
18649 ac_status=$?
18650 grep -v '^ *+' conftest.er1 >conftest.err
18651 rm -f conftest.er1
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
97bf5e38 18668 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 18669else
bec39cab
AC
18670 echo "$as_me: failed program was:" >&5
18671sed 's/^/| /' conftest.$ac_ext >&5
18672
18673bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18674
c906108c 18675fi
bec39cab 18676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18677fi
18678
97bf5e38 18679 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
18680
18681cat >>confdefs.h <<\_ACEOF
97bf5e38 18682#define HAVE_PR_SIGSET_T 1
bec39cab 18683_ACEOF
c906108c 18684
97bf5e38 18685 fi
bec39cab
AC
18686 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18687echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 18688
bec39cab
AC
18689 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18690echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18691 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18693else
bec39cab
AC
18694 cat >conftest.$ac_ext <<_ACEOF
18695/* confdefs.h. */
18696_ACEOF
18697cat confdefs.h >>conftest.$ac_ext
18698cat >>conftest.$ac_ext <<_ACEOF
18699/* end confdefs.h. */
c906108c 18700
97bf5e38
MK
18701#define _SYSCALL32
18702#include <sys/procfs.h>
bec39cab
AC
18703int
18704main ()
18705{
97bf5e38 18706pr_sigaction64_t avar
bec39cab
AC
18707 ;
18708 return 0;
18709}
18710_ACEOF
18711rm -f conftest.$ac_objext
18712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18713 (eval $ac_compile) 2>conftest.er1
18714 ac_status=$?
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -z "$ac_c_werror_flag"
18721 || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest.$ac_objext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
97bf5e38 18733 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 18734else
bec39cab
AC
18735 echo "$as_me: failed program was:" >&5
18736sed 's/^/| /' conftest.$ac_ext >&5
18737
18738bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18739
c906108c 18740fi
bec39cab 18741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18742fi
18743
97bf5e38 18744 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
18745
18746cat >>confdefs.h <<\_ACEOF
97bf5e38 18747#define HAVE_PR_SIGACTION64_T 1
bec39cab 18748_ACEOF
c906108c 18749
97bf5e38 18750 fi
bec39cab
AC
18751 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18752echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 18753
bec39cab
AC
18754 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18755echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18756 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18758else
bec39cab
AC
18759 cat >conftest.$ac_ext <<_ACEOF
18760/* confdefs.h. */
18761_ACEOF
18762cat confdefs.h >>conftest.$ac_ext
18763cat >>conftest.$ac_ext <<_ACEOF
18764/* end confdefs.h. */
97bf5e38
MK
18765
18766#define _SYSCALL32
18767#include <sys/procfs.h>
bec39cab
AC
18768int
18769main ()
18770{
97bf5e38 18771pr_siginfo64_t avar
bec39cab
AC
18772 ;
18773 return 0;
18774}
18775_ACEOF
18776rm -f conftest.$ac_objext
18777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18778 (eval $ac_compile) 2>conftest.er1
18779 ac_status=$?
18780 grep -v '^ *+' conftest.er1 >conftest.err
18781 rm -f conftest.er1
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -z "$ac_c_werror_flag"
18786 || test ! -s conftest.err'
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest.$ac_objext'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
97bf5e38
MK
18798 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18799else
bec39cab
AC
18800 echo "$as_me: failed program was:" >&5
18801sed 's/^/| /' conftest.$ac_ext >&5
18802
18803bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18804
97bf5e38 18805fi
bec39cab 18806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18807fi
c906108c 18808
97bf5e38 18809 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
18810
18811cat >>confdefs.h <<\_ACEOF
97bf5e38 18812#define HAVE_PR_SIGINFO64_T 1
bec39cab 18813_ACEOF
c906108c 18814
97bf5e38 18815 fi
bec39cab
AC
18816 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18817echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18818
18819
97bf5e38
MK
18820
18821
18822
97bf5e38 18823 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18824 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18825echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18826 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
18828else
18829 if test "$cross_compiling" = yes; then
97bf5e38 18830 gdb_cv_prfpregset_t_broken=yes
c906108c 18831else
bec39cab
AC
18832 cat >conftest.$ac_ext <<_ACEOF
18833/* confdefs.h. */
18834_ACEOF
18835cat confdefs.h >>conftest.$ac_ext
18836cat >>conftest.$ac_ext <<_ACEOF
18837/* end confdefs.h. */
97bf5e38
MK
18838#include <sys/procfs.h>
18839 int main ()
18840 {
18841 if (sizeof (prfpregset_t) == sizeof (void *))
18842 return 1;
18843 return 0;
18844 }
bec39cab
AC
18845_ACEOF
18846rm -f conftest$ac_exeext
18847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18848 (eval $ac_link) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
97bf5e38 18857 gdb_cv_prfpregset_t_broken=no
c906108c 18858else
bec39cab
AC
18859 echo "$as_me: program exited with status $ac_status" >&5
18860echo "$as_me: failed program was:" >&5
18861sed 's/^/| /' conftest.$ac_ext >&5
18862
18863( exit $ac_status )
18864gdb_cv_prfpregset_t_broken=yes
c906108c 18865fi
bec39cab 18866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 18867fi
c906108c
SS
18868fi
18869
bec39cab
AC
18870 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18871echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 18872 if test $gdb_cv_prfpregset_t_broken = yes; then
bec39cab 18873 cat >>confdefs.h <<\_ACEOF
97bf5e38 18874#define PRFPREGSET_T_BROKEN 1
bec39cab 18875_ACEOF
c906108c 18876
97bf5e38
MK
18877 fi
18878 fi
c906108c 18879
bec39cab
AC
18880
18881 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18882echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18883 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18885else
bec39cab
AC
18886 cat >conftest.$ac_ext <<_ACEOF
18887/* confdefs.h. */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h. */
97bf5e38
MK
18892#include <unistd.h>
18893#include <sys/types.h>
18894#include <sys/procfs.h>
18895
bec39cab
AC
18896int
18897main ()
18898{
97bf5e38
MK
18899
18900 int dummy;;
18901 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
18902
18903 ;
18904 return 0;
18905}
18906_ACEOF
18907rm -f conftest.$ac_objext
18908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18909 (eval $ac_compile) 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_c_werror_flag"
18917 || test ! -s conftest.err'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest.$ac_objext'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
97bf5e38 18929 gdb_cv_have_procfs_piocset=yes
c906108c 18930else
bec39cab
AC
18931 echo "$as_me: failed program was:" >&5
18932sed 's/^/| /' conftest.$ac_ext >&5
18933
18934gdb_cv_have_procfs_piocset=no
c906108c 18935fi
bec39cab 18936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18937fi
97bf5e38 18938
bec39cab
AC
18939 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18940echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 18941 if test $gdb_cv_have_procfs_piocset = yes; then
bec39cab 18942 cat >>confdefs.h <<\_ACEOF
97bf5e38 18943#define HAVE_PROCFS_PIOCSET 1
bec39cab 18944_ACEOF
97bf5e38
MK
18945
18946 fi
c906108c 18947fi
c906108c 18948
97bf5e38 18949if test ${host} = ${target} ; then
bec39cab
AC
18950
18951 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18952echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18953 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18955else
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
97bf5e38 18962#include <link.h>
bec39cab
AC
18963int
18964main ()
18965{
97bf5e38 18966struct link_map lm; (void) lm.l_addr;
bec39cab
AC
18967 ;
18968 return 0;
18969}
18970_ACEOF
18971rm -f conftest.$ac_objext
18972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18973 (eval $ac_compile) 2>conftest.er1
18974 ac_status=$?
18975 grep -v '^ *+' conftest.er1 >conftest.err
18976 rm -f conftest.er1
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -z "$ac_c_werror_flag"
18981 || test ! -s conftest.err'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest.$ac_objext'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
97bf5e38 18993 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 18994else
bec39cab
AC
18995 echo "$as_me: failed program was:" >&5
18996sed 's/^/| /' conftest.$ac_ext >&5
18997
18998gdb_cv_have_struct_link_map_with_l_members=no
c906108c 18999fi
bec39cab 19000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19001fi
19002
bec39cab
AC
19003 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19004echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 19005 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
bec39cab 19006 cat >>confdefs.h <<\_ACEOF
97bf5e38 19007#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 19008_ACEOF
97bf5e38
MK
19009
19010 fi
19011
bec39cab
AC
19012
19013 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19014echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
19015 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19017else
bec39cab
AC
19018 cat >conftest.$ac_ext <<_ACEOF
19019/* confdefs.h. */
19020_ACEOF
19021cat confdefs.h >>conftest.$ac_ext
19022cat >>conftest.$ac_ext <<_ACEOF
19023/* end confdefs.h. */
97bf5e38
MK
19024#include <sys/types.h>
19025#include <link.h>
bec39cab
AC
19026int
19027main ()
19028{
97bf5e38 19029struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
19030 ;
19031 return 0;
19032}
19033_ACEOF
19034rm -f conftest.$ac_objext
19035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19036 (eval $ac_compile) 2>conftest.er1
19037 ac_status=$?
19038 grep -v '^ *+' conftest.er1 >conftest.err
19039 rm -f conftest.er1
19040 cat conftest.err >&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); } &&
19043 { ac_try='test -z "$ac_c_werror_flag"
19044 || test ! -s conftest.err'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; } &&
19050 { ac_try='test -s conftest.$ac_objext'
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
97bf5e38
MK
19056 gdb_cv_have_struct_link_map_with_lm_members=yes
19057else
bec39cab
AC
19058 echo "$as_me: failed program was:" >&5
19059sed 's/^/| /' conftest.$ac_ext >&5
19060
19061gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 19062fi
bec39cab 19063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19064fi
c906108c 19065
bec39cab
AC
19066 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19067echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 19068 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
bec39cab 19069 cat >>confdefs.h <<\_ACEOF
97bf5e38 19070#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 19071_ACEOF
97bf5e38
MK
19072
19073 fi
19074
bec39cab
AC
19075
19076 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19077echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
19078 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19080else
bec39cab
AC
19081 cat >conftest.$ac_ext <<_ACEOF
19082/* confdefs.h. */
19083_ACEOF
19084cat confdefs.h >>conftest.$ac_ext
19085cat >>conftest.$ac_ext <<_ACEOF
19086/* end confdefs.h. */
97bf5e38
MK
19087#include <sys/types.h>
19088#ifdef HAVE_NLIST_H
19089#include <nlist.h>
19090#endif
19091#include <link.h>
bec39cab
AC
19092int
19093main ()
19094{
97bf5e38 19095struct so_map lm; (void) lm.som_addr;
bec39cab
AC
19096 ;
19097 return 0;
19098}
19099_ACEOF
19100rm -f conftest.$ac_objext
19101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19102 (eval $ac_compile) 2>conftest.er1
19103 ac_status=$?
19104 grep -v '^ *+' conftest.er1 >conftest.err
19105 rm -f conftest.er1
19106 cat conftest.err >&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -z "$ac_c_werror_flag"
19110 || test ! -s conftest.err'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
97bf5e38
MK
19122 gdb_cv_have_struct_so_map_with_som_members=yes
19123else
bec39cab
AC
19124 echo "$as_me: failed program was:" >&5
19125sed 's/^/| /' conftest.$ac_ext >&5
19126
19127gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 19128fi
bec39cab 19129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19130fi
c906108c 19131
bec39cab
AC
19132 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19133echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 19134 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
bec39cab 19135 cat >>confdefs.h <<\_ACEOF
97bf5e38 19136#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 19137_ACEOF
c906108c 19138
97bf5e38 19139 fi
c906108c 19140
bec39cab
AC
19141
19142 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19143echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19144 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19146else
bec39cab
AC
19147 cat >conftest.$ac_ext <<_ACEOF
19148/* confdefs.h. */
19149_ACEOF
19150cat confdefs.h >>conftest.$ac_ext
19151cat >>conftest.$ac_ext <<_ACEOF
19152/* end confdefs.h. */
97bf5e38
MK
19153#define _SYSCALL32
19154#include <sys/link.h>
bec39cab
AC
19155int
19156main ()
19157{
97bf5e38 19158struct link_map32 l;
bec39cab
AC
19159 ;
19160 return 0;
19161}
19162_ACEOF
19163rm -f conftest.$ac_objext
19164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19165 (eval $ac_compile) 2>conftest.er1
19166 ac_status=$?
19167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } &&
19172 { ac_try='test -z "$ac_c_werror_flag"
19173 || test ! -s conftest.err'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; } &&
19179 { ac_try='test -s conftest.$ac_objext'
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
97bf5e38
MK
19185 gdb_cv_have_struct_link_map32=yes
19186else
bec39cab
AC
19187 echo "$as_me: failed program was:" >&5
19188sed 's/^/| /' conftest.$ac_ext >&5
19189
19190gdb_cv_have_struct_link_map32=no
97bf5e38 19191fi
bec39cab 19192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19193fi
c906108c 19194
bec39cab
AC
19195 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19196echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 19197 if test $gdb_cv_have_struct_link_map32 = yes; then
bec39cab 19198 cat >>confdefs.h <<\_ACEOF
97bf5e38 19199#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 19200_ACEOF
c906108c 19201
bec39cab 19202 cat >>confdefs.h <<\_ACEOF
97bf5e38 19203#define _SYSCALL32 1
bec39cab 19204_ACEOF
c906108c 19205
97bf5e38
MK
19206 fi
19207fi
c906108c 19208
bc8bcb4b 19209# Check if the compiler supports the `long long' type.
c906108c 19210
bec39cab
AC
19211echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19212echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19213if test "${gdb_cv_c_long_long+set}" = set; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19215else
bec39cab
AC
19216 cat >conftest.$ac_ext <<_ACEOF
19217/* confdefs.h. */
19218_ACEOF
19219cat confdefs.h >>conftest.$ac_ext
19220cat >>conftest.$ac_ext <<_ACEOF
19221/* end confdefs.h. */
bc8bcb4b 19222extern long long foo;
bec39cab
AC
19223int
19224main ()
19225{
bc8bcb4b 19226switch (foo & 2) { case 0: return 1; }
bec39cab
AC
19227 ;
19228 return 0;
19229}
19230_ACEOF
19231rm -f conftest.$ac_objext
19232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19233 (eval $ac_compile) 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -z "$ac_c_werror_flag"
19241 || test ! -s conftest.err'
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest.$ac_objext'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
97bf5e38
MK
19253 gdb_cv_c_long_long=yes
19254else
bec39cab
AC
19255 echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
19258gdb_cv_c_long_long=no
97bf5e38 19259fi
bec39cab 19260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19261fi
bec39cab
AC
19262echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19263echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 19264if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
19265
19266cat >>confdefs.h <<\_ACEOF
97bf5e38 19267#define CC_HAS_LONG_LONG 1
bec39cab 19268_ACEOF
97bf5e38
MK
19269
19270fi
19271
bc8bcb4b 19272# Check if the compiler and runtime support printing long longs.
97bf5e38 19273
bec39cab
AC
19274echo "$as_me:$LINENO: checking for long long support in printf" >&5
19275echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19276if test "${gdb_cv_printf_has_long_long+set}" = set; then
19277 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19278else
19279 if test "$cross_compiling" = yes; then
19280 gdb_cv_printf_has_long_long=no
19281else
bec39cab
AC
19282 cat >conftest.$ac_ext <<_ACEOF
19283/* confdefs.h. */
19284_ACEOF
19285cat confdefs.h >>conftest.$ac_ext
19286cat >>conftest.$ac_ext <<_ACEOF
19287/* end confdefs.h. */
bc8bcb4b
MK
19288$ac_includes_default
19289int
19290main ()
19291{
19292char buf[32];
97bf5e38
MK
19293 long long l = 0;
19294 l = (l << 16) + 0x0123;
19295 l = (l << 16) + 0x4567;
19296 l = (l << 16) + 0x89ab;
19297 l = (l << 16) + 0xcdef;
19298 sprintf (buf, "0x%016llx", l);
19299 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
19300 ;
19301 return 0;
c906108c 19302}
bec39cab
AC
19303_ACEOF
19304rm -f conftest$ac_exeext
19305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306 (eval $ac_link) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
97bf5e38
MK
19315 gdb_cv_printf_has_long_long=yes
19316else
bec39cab
AC
19317 echo "$as_me: program exited with status $ac_status" >&5
19318echo "$as_me: failed program was:" >&5
19319sed 's/^/| /' conftest.$ac_ext >&5
19320
19321( exit $ac_status )
19322gdb_cv_printf_has_long_long=no
97bf5e38 19323fi
bec39cab 19324rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19325fi
97bf5e38 19326fi
bc8bcb4b
MK
19327echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19328echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 19329if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
19330
19331cat >>confdefs.h <<\_ACEOF
97bf5e38 19332#define PRINTF_HAS_LONG_LONG 1
bec39cab 19333_ACEOF
97bf5e38
MK
19334
19335fi
97bf5e38 19336
bc8bcb4b
MK
19337# Check if the compiler supports the `long double' type. We can't use
19338# AC_C_LONG_DOUBLE because that one does additional checks on the
19339# constants defined in <float.h> that fail on some systems,
19340# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 19341
bec39cab
AC
19342echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19343echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 19344if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 19345 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19346else
bec39cab
AC
19347 cat >conftest.$ac_ext <<_ACEOF
19348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h. */
97bf5e38 19353long double foo;
bec39cab
AC
19354_ACEOF
19355rm -f conftest.$ac_objext
19356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19357 (eval $ac_compile) 2>conftest.er1
19358 ac_status=$?
19359 grep -v '^ *+' conftest.er1 >conftest.err
19360 rm -f conftest.er1
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
19364 { ac_try='test -z "$ac_c_werror_flag"
19365 || test ! -s conftest.err'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest.$ac_objext'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
bc8bcb4b 19377 gdb_cv_c_long_double=yes
97bf5e38 19378else
bec39cab
AC
19379 echo "$as_me: failed program was:" >&5
19380sed 's/^/| /' conftest.$ac_ext >&5
19381
bc8bcb4b 19382gdb_cv_c_long_double=no
97bf5e38 19383fi
bec39cab 19384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19385fi
bc8bcb4b
MK
19386echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19387echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19388if test $gdb_cv_c_long_double = yes; then
c906108c 19389
bc8bcb4b 19390cat >>confdefs.h <<\_ACEOF
97bf5e38 19391#define HAVE_LONG_DOUBLE 1
bec39cab 19392_ACEOF
97bf5e38
MK
19393
19394fi
19395
bc8bcb4b 19396# Check if the compiler and runtime support printing long doubles.
97bf5e38 19397
bec39cab
AC
19398echo "$as_me:$LINENO: checking for long double support in printf" >&5
19399echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19400if test "${gdb_cv_printf_has_long_double+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19402else
19403 if test "$cross_compiling" = yes; then
19404 gdb_cv_printf_has_long_double=no
19405else
bec39cab
AC
19406 cat >conftest.$ac_ext <<_ACEOF
19407/* confdefs.h. */
19408_ACEOF
19409cat confdefs.h >>conftest.$ac_ext
19410cat >>conftest.$ac_ext <<_ACEOF
19411/* end confdefs.h. */
bc8bcb4b
MK
19412$ac_includes_default
19413int
19414main ()
19415{
19416char buf[16];
97bf5e38
MK
19417 long double f = 3.141592653;
19418 sprintf (buf, "%Lg", f);
19419 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
19420 ;
19421 return 0;
97bf5e38 19422}
bec39cab
AC
19423_ACEOF
19424rm -f conftest$ac_exeext
19425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19426 (eval $ac_link) 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
97bf5e38 19435 gdb_cv_printf_has_long_double=yes
c906108c 19436else
bec39cab
AC
19437 echo "$as_me: program exited with status $ac_status" >&5
19438echo "$as_me: failed program was:" >&5
19439sed 's/^/| /' conftest.$ac_ext >&5
19440
19441( exit $ac_status )
19442gdb_cv_printf_has_long_double=no
c906108c 19443fi
bec39cab 19444rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19445fi
c906108c 19446fi
bc8bcb4b
MK
19447echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19448echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 19449if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
19450
19451cat >>confdefs.h <<\_ACEOF
97bf5e38 19452#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 19453_ACEOF
97bf5e38
MK
19454
19455fi
97bf5e38 19456
bc8bcb4b 19457# Check if the compiler and runtime support scanning long doubles.
97bf5e38 19458
bec39cab
AC
19459echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19460echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19461if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19463else
19464 if test "$cross_compiling" = yes; then
19465 gdb_cv_scanf_has_long_double=no
19466else
bec39cab
AC
19467 cat >conftest.$ac_ext <<_ACEOF
19468/* confdefs.h. */
19469_ACEOF
19470cat confdefs.h >>conftest.$ac_ext
19471cat >>conftest.$ac_ext <<_ACEOF
19472/* end confdefs.h. */
bc8bcb4b
MK
19473#include <stdio.h>
19474int
19475main ()
19476{
19477char *buf = "3.141592653";
97bf5e38
MK
19478 long double f = 0;
19479 sscanf (buf, "%Lg", &f);
19480 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
19481 ;
19482 return 0;
97bf5e38 19483}
bec39cab
AC
19484_ACEOF
19485rm -f conftest$ac_exeext
19486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19487 (eval $ac_link) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && { ac_try='./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
97bf5e38
MK
19496 gdb_cv_scanf_has_long_double=yes
19497else
bec39cab
AC
19498 echo "$as_me: program exited with status $ac_status" >&5
19499echo "$as_me: failed program was:" >&5
19500sed 's/^/| /' conftest.$ac_ext >&5
19501
19502( exit $ac_status )
19503gdb_cv_scanf_has_long_double=no
97bf5e38 19504fi
bec39cab 19505rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19506fi
c906108c 19507fi
bc8bcb4b
MK
19508echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19509echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 19510if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
19511
19512cat >>confdefs.h <<\_ACEOF
97bf5e38 19513#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 19514_ACEOF
97bf5e38
MK
19515
19516fi
c906108c 19517
438013df
AO
19518case ${host_os} in
19519aix*)
bec39cab
AC
19520 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19521echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19522if test "${gdb_cv_bigtoc+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 19524else
bec39cab 19525
438013df
AO
19526 SAVE_LDFLAGS=$LDFLAGS
19527
19528 case $GCC in
19529 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19530 *) gdb_cv_bigtoc=-bbigtoc ;;
19531 esac
19532
19533 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
19534 cat >conftest.$ac_ext <<_ACEOF
19535/* confdefs.h. */
19536_ACEOF
19537cat confdefs.h >>conftest.$ac_ext
19538cat >>conftest.$ac_ext <<_ACEOF
19539/* end confdefs.h. */
438013df 19540
bec39cab
AC
19541int
19542main ()
19543{
438013df 19544int i;
bec39cab
AC
19545 ;
19546 return 0;
19547}
19548_ACEOF
19549rm -f conftest.$ac_objext conftest$ac_exeext
19550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19551 (eval $ac_link) 2>conftest.er1
19552 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag"
19559 || test ! -s conftest.err'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest$ac_exeext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
438013df
AO
19571 :
19572else
bec39cab
AC
19573 echo "$as_me: failed program was:" >&5
19574sed 's/^/| /' conftest.$ac_ext >&5
19575
19576gdb_cv_bigtoc=
438013df 19577fi
bec39cab
AC
19578rm -f conftest.err conftest.$ac_objext \
19579 conftest$ac_exeext conftest.$ac_ext
ec76baa5 19580 LDFLAGS="${SAVE_LDFLAGS}"
438013df 19581
bec39cab
AC
19582fi
19583echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19584echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
19585 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19586 ;;
19587esac
19588
c906108c
SS
19589
19590
19591if test ${build} = ${host} -a ${host} = ${target} ; then
19592 case ${host_os} in
19593 hpux*)
bec39cab
AC
19594 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19595echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
19596 if test -f /usr/include/dce/cma_config.h ; then
19597 if test "$GCC" = "yes" ; then
bec39cab
AC
19598 echo "$as_me:$LINENO: result: yes" >&5
19599echo "${ECHO_T}yes" >&6
19600 cat >>confdefs.h <<\_ACEOF
c906108c 19601#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 19602_ACEOF
c906108c 19603
3483b318 19604 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
19605 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19606 else
bec39cab
AC
19607 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19608echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
19609 fi
19610 else
bec39cab
AC
19611 echo "$as_me:$LINENO: result: no" >&5
19612echo "${ECHO_T}no" >&6
c906108c
SS
19613 fi
19614 ;;
19615 solaris*)
d92419e5
JB
19616 # See if thread_db library is around for Solaris thread debugging.
19617 # Note that we must explicitly test for version 1 of the library
19618 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19619 # the same API.
bec39cab
AC
19620 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19621echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 19622 if test -f /usr/lib/libthread_db.so.1 ; then
bec39cab
AC
19623 echo "$as_me:$LINENO: result: yes" >&5
19624echo "${ECHO_T}yes" >&6
19625 cat >>confdefs.h <<\_ACEOF
c906108c 19626#define HAVE_THREAD_DB_LIB 1
bec39cab 19627_ACEOF
c906108c 19628
3483b318 19629 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 19630 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab
AC
19631
19632echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19633echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19634if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19636else
bec39cab 19637 ac_check_lib_save_LIBS=$LIBS
c906108c 19638LIBS="-ldl $LIBS"
bec39cab
AC
19639cat >conftest.$ac_ext <<_ACEOF
19640/* confdefs.h. */
19641_ACEOF
19642cat confdefs.h >>conftest.$ac_ext
19643cat >>conftest.$ac_ext <<_ACEOF
19644/* end confdefs.h. */
19645
c906108c 19646/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19647#ifdef __cplusplus
19648extern "C"
19649#endif
c906108c 19650/* We use char because int might match the return type of a gcc2
bec39cab
AC
19651 builtin and then its argument prototype would still apply. */
19652char dlopen ();
19653int
19654main ()
19655{
19656dlopen ();
19657 ;
19658 return 0;
19659}
19660_ACEOF
19661rm -f conftest.$ac_objext conftest$ac_exeext
19662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663 (eval $ac_link) 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_c_werror_flag"
19671 || test ! -s conftest.err'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; } &&
19677 { ac_try='test -s conftest$ac_exeext'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_cv_lib_dl_dlopen=yes
19684else
19685 echo "$as_me: failed program was:" >&5
19686sed 's/^/| /' conftest.$ac_ext >&5
19687
19688ac_cv_lib_dl_dlopen=no
19689fi
19690rm -f conftest.err conftest.$ac_objext \
19691 conftest$ac_exeext conftest.$ac_ext
19692LIBS=$ac_check_lib_save_LIBS
19693fi
19694echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19695echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19696if test $ac_cv_lib_dl_dlopen = yes; then
19697 cat >>confdefs.h <<_ACEOF
19698#define HAVE_LIBDL 1
19699_ACEOF
c906108c
SS
19700
19701 LIBS="-ldl $LIBS"
19702
c906108c
SS
19703fi
19704
19705 if test "$GCC" = "yes" ; then
19706 # The GNU linker requires the -export-dynamic option to make
19707 # all symbols visible in the dynamic symbol table.
19708 hold_ldflags=$LDFLAGS
bec39cab
AC
19709 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19710echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 19711 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
19712 cat >conftest.$ac_ext <<_ACEOF
19713/* confdefs.h. */
19714_ACEOF
19715cat confdefs.h >>conftest.$ac_ext
19716cat >>conftest.$ac_ext <<_ACEOF
19717/* end confdefs.h. */
c906108c 19718
bec39cab
AC
19719int
19720main ()
19721{
c906108c 19722int i;
bec39cab
AC
19723 ;
19724 return 0;
19725}
19726_ACEOF
19727rm -f conftest.$ac_objext conftest$ac_exeext
19728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729 (eval $ac_link) 2>conftest.er1
19730 ac_status=$?
19731 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1
19733 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
19736 { ac_try='test -z "$ac_c_werror_flag"
19737 || test ! -s conftest.err'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } &&
19743 { ac_try='test -s conftest$ac_exeext'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
c906108c
SS
19749 found=yes
19750else
bec39cab
AC
19751 echo "$as_me: failed program was:" >&5
19752sed 's/^/| /' conftest.$ac_ext >&5
19753
19754found=no
c906108c 19755fi
bec39cab
AC
19756rm -f conftest.err conftest.$ac_objext \
19757 conftest$ac_exeext conftest.$ac_ext
c906108c 19758 LDFLAGS=$hold_ldflags
bec39cab
AC
19759 echo "$as_me:$LINENO: result: $found" >&5
19760echo "${ECHO_T}$found" >&6
c906108c
SS
19761 if test $found = yes; then
19762 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19763 fi
19764 fi
19765 # Sun randomly tweaked the prototypes in <proc_service.h>
19766 # at one point.
bec39cab
AC
19767 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19768echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19769 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19771else
bec39cab
AC
19772
19773 cat >conftest.$ac_ext <<_ACEOF
19774/* confdefs.h. */
19775_ACEOF
19776cat confdefs.h >>conftest.$ac_ext
19777cat >>conftest.$ac_ext <<_ACEOF
19778/* end confdefs.h. */
c906108c
SS
19779
19780 #include <proc_service.h>
19781 ps_err_e ps_pdwrite
19782 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 19783
bec39cab
AC
19784int
19785main ()
19786{
19787
19788 ;
19789 return 0;
19790}
19791_ACEOF
19792rm -f conftest.$ac_objext
19793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19794 (eval $ac_compile) 2>conftest.er1
19795 ac_status=$?
19796 grep -v '^ *+' conftest.er1 >conftest.err
19797 rm -f conftest.er1
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } &&
19801 { ac_try='test -z "$ac_c_werror_flag"
19802 || test ! -s conftest.err'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest.$ac_objext'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
c906108c
SS
19814 gdb_cv_proc_service_is_old=no
19815else
bec39cab
AC
19816 echo "$as_me: failed program was:" >&5
19817sed 's/^/| /' conftest.$ac_ext >&5
19818
19819gdb_cv_proc_service_is_old=yes
c906108c 19820fi
bec39cab
AC
19821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19822
c906108c
SS
19823fi
19824
bec39cab
AC
19825 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19826echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 19827 if test $gdb_cv_proc_service_is_old = yes; then
bec39cab 19828 cat >>confdefs.h <<\_ACEOF
c906108c 19829#define PROC_SERVICE_IS_OLD 1
bec39cab 19830_ACEOF
c906108c
SS
19831
19832 fi
19833 else
bec39cab
AC
19834 echo "$as_me:$LINENO: result: no" >&5
19835echo "${ECHO_T}no" >&6
c906108c
SS
19836 fi
19837 ;;
d92419e5 19838 aix*)
bec39cab
AC
19839 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19840echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19841 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19843else
19844 cat >conftest.$ac_ext <<_ACEOF
19845/* confdefs.h. */
19846_ACEOF
19847cat confdefs.h >>conftest.$ac_ext
19848cat >>conftest.$ac_ext <<_ACEOF
19849/* end confdefs.h. */
d92419e5 19850#include <sys/pthdebug.h>
bec39cab
AC
19851int
19852main ()
19853{
d92419e5
JB
19854#ifndef PTHDB_VERSION_3
19855 #error
19856 #endif
bec39cab
AC
19857 ;
19858 return 0;
19859}
19860_ACEOF
19861rm -f conftest.$ac_objext
19862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19863 (eval $ac_compile) 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -z "$ac_c_werror_flag"
19871 || test ! -s conftest.err'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
d92419e5
JB
19883 gdb_cv_have_aix_thread_debug=yes
19884else
bec39cab
AC
19885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888gdb_cv_have_aix_thread_debug=no
d92419e5 19889fi
bec39cab 19890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
19891fi
19892
bec39cab
AC
19893 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19894echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
19895 if test $gdb_cv_have_aix_thread_debug = yes; then
19896 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 19897 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
19898 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19899 fi
19900 ;;
c906108c 19901 esac
bec39cab 19902
c906108c
SS
19903fi
19904
3f47be5c 19905if test "x$ac_cv_header_thread_db_h" = "xyes"; then
bec39cab
AC
19906 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19907echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19908if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910else
19911 cat >conftest.$ac_ext <<_ACEOF
19912/* confdefs.h. */
19913_ACEOF
19914cat confdefs.h >>conftest.$ac_ext
19915cat >>conftest.$ac_ext <<_ACEOF
19916/* end confdefs.h. */
3f47be5c 19917#include <thread_db.h>
bec39cab
AC
19918int
19919main ()
19920{
3f47be5c 19921int i = TD_NOTALLOC;
bec39cab
AC
19922 ;
19923 return 0;
19924}
19925_ACEOF
19926rm -f conftest.$ac_objext
19927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19928 (eval $ac_compile) 2>conftest.er1
19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try='test -z "$ac_c_werror_flag"
19936 || test ! -s conftest.err'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19939 ac_status=$?
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try='test -s conftest.$ac_objext'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
3f47be5c
EZ
19948 gdb_cv_thread_db_h_has_td_notalloc=yes
19949else
bec39cab
AC
19950 echo "$as_me: failed program was:" >&5
19951sed 's/^/| /' conftest.$ac_ext >&5
19952
19953gdb_cv_thread_db_h_has_td_notalloc=no
19954
3f47be5c 19955fi
bec39cab 19956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 19957
bec39cab
AC
19958fi
19959echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19960echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
19961fi
19962if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
19963
19964cat >>confdefs.h <<\_ACEOF
3f47be5c 19965#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 19966_ACEOF
3f47be5c
EZ
19967
19968fi
19969
b757528f 19970if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
bec39cab
AC
19971 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19972echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19973if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975else
19976 cat >conftest.$ac_ext <<_ACEOF
19977/* confdefs.h. */
19978_ACEOF
19979cat confdefs.h >>conftest.$ac_ext
19980cat >>conftest.$ac_ext <<_ACEOF
19981/* end confdefs.h. */
b757528f 19982#include <sys/syscall.h>
bec39cab
AC
19983int
19984main ()
19985{
b757528f 19986int i = __NR_tkill;
bec39cab
AC
19987 ;
19988 return 0;
19989}
19990_ACEOF
19991rm -f conftest.$ac_objext
19992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag"
20001 || test ! -s conftest.err'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
b757528f
JJ
20013 gdb_cv_sys_syscall_h_has_tkill=yes
20014else
bec39cab
AC
20015 echo "$as_me: failed program was:" >&5
20016sed 's/^/| /' conftest.$ac_ext >&5
20017
20018gdb_cv_sys_syscall_h_has_tkill=no
20019
b757528f 20020fi
bec39cab 20021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 20022
bec39cab
AC
20023fi
20024echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
20025echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
20026fi
20027if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
20028
20029cat >>confdefs.h <<\_ACEOF
b757528f 20030#define HAVE_TKILL_SYSCALL 1
bec39cab 20031_ACEOF
b757528f
JJ
20032
20033fi
20034
fb40c209 20035
bec39cab 20036
030292b7
DJ
20037# Check whether --with-sysroot or --without-sysroot was given.
20038if test "${with_sysroot+set}" = set; then
20039 withval="$with_sysroot"
bec39cab 20040
030292b7 20041 case ${with_sysroot} in
715d1656 20042 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
20043 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
20044 esac
20045
20046 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
20047
20048 if test "x$exec_prefix" = xNONE; then
20049 if test "x$prefix" = xNONE; then
20050 test_prefix=/usr/local
20051 else
20052 test_prefix=$prefix
20053 fi
20054 else
20055 test_prefix=$exec_prefix
20056 fi
20057 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
20058 "${test_prefix}"|"${test_prefix}/"*|\
20059 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
20060 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
20061 TARGET_SYSTEM_ROOT_DEFINE="$t"
20062 ;;
20063 esac
20064
20065else
bec39cab 20066
030292b7
DJ
20067 TARGET_SYSTEM_ROOT=
20068 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
20069
bec39cab 20070fi;
030292b7
DJ
20071
20072
20073
3b851bce
AC
20074# NOTE: Don't add -Wall or -Wunused, they both include
20075# -Wunused-parameter which reports bogus warnings.
20076# NOTE: If you add to this list, remember to update
20077# gdb/doc/gdbint.texinfo.
1decb323 20078build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
a3b362c4 20079-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
4566dfcf 20080-Wunused-label -Wunused-function"
a3b362c4
JB
20081
20082# GCC supports -Wuninitialized only with -O or -On, n != 0.
ca231fcc 20083if test x${CFLAGS+set} = xset; then
a3b362c4
JB
20084 case "${CFLAGS}" in
20085 *"-O0"* ) ;;
20086 *"-O"* )
20087 build_warnings="${build_warnings} -Wuninitialized"
20088 ;;
20089 esac
20090else
20091 build_warnings="${build_warnings} -Wuninitialized"
20092fi
20093
d8038014 20094# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 20095# -Wunused-function -Wunused-variable -Wunused-value
93d56215 20096# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
20097# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
20098# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
20099# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
20100# Check whether --enable-build-warnings or --disable-build-warnings was given.
20101if test "${enable_build_warnings+set}" = set; then
20102 enableval="$enable_build_warnings"
1decb323 20103 case "${enableval}" in
c906108c
SS
20104 yes) ;;
20105 no) build_warnings="-w";;
20106 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20107 build_warnings="${build_warnings} ${t}";;
20108 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20109 build_warnings="${t} ${build_warnings}";;
20110 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20111esac
d4f3574e 20112if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 20113 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 20114fi
bec39cab 20115fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce
AC
20116if test "${enable_gdb_build_warnings+set}" = set; then
20117 enableval="$enable_gdb_build_warnings"
20118 case "${enableval}" in
20119 yes) ;;
20120 no) build_warnings="-w";;
20121 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20122 build_warnings="${build_warnings} ${t}";;
20123 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20124 build_warnings="${t} ${build_warnings}";;
20125 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20126esac
20127if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20128 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20129fi
bec39cab 20130fi; WARN_CFLAGS=""
104c1213 20131WERROR_CFLAGS=""
c906108c
SS
20132if test "x${build_warnings}" != x -a "x$GCC" = xyes
20133then
bec39cab
AC
20134 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20135echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
20136 # Separate out the -Werror flag as some files just cannot be
20137 # compiled with it enabled.
20138 for w in ${build_warnings}; do
20139 case $w in
20140 -Werr*) WERROR_CFLAGS=-Werror ;;
20141 *) # Check that GCC accepts it
4536bbc6
AC
20142 saved_CFLAGS="$CFLAGS"
20143 CFLAGS="$CFLAGS $w"
bec39cab
AC
20144 cat >conftest.$ac_ext <<_ACEOF
20145/* confdefs.h. */
20146_ACEOF
20147cat confdefs.h >>conftest.$ac_ext
20148cat >>conftest.$ac_ext <<_ACEOF
20149/* end confdefs.h. */
4536bbc6 20150
bec39cab
AC
20151int
20152main ()
20153{
4536bbc6 20154
bec39cab
AC
20155 ;
20156 return 0;
20157}
20158_ACEOF
20159rm -f conftest.$ac_objext
20160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20161 (eval $ac_compile) 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
20168 { ac_try='test -z "$ac_c_werror_flag"
20169 || test ! -s conftest.err'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; } &&
20175 { ac_try='test -s conftest.$ac_objext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
4536bbc6
AC
20181 WARN_CFLAGS="${WARN_CFLAGS} $w"
20182else
bec39cab
AC
20183 echo "$as_me: failed program was:" >&5
20184sed 's/^/| /' conftest.$ac_ext >&5
20185
4536bbc6 20186fi
bec39cab 20187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 20188 CFLAGS="$saved_CFLAGS"
746a987d
AC
20189 esac
20190 done
bec39cab
AC
20191 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20192echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
20193fi
20194
20195
104c1213 20196
7a292a7a 20197# In the Cygwin environment, we need some additional flags.
bec39cab
AC
20198echo "$as_me:$LINENO: checking for cygwin" >&5
20199echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20200if test "${gdb_cv_os_cygwin+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202else
20203 cat >conftest.$ac_ext <<_ACEOF
20204/* confdefs.h. */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
20208/* end confdefs.h. */
7a292a7a
SS
20209
20210#if defined (__CYGWIN__) || defined (__CYGWIN32__)
20211lose
20212#endif
bec39cab 20213_ACEOF
7a292a7a 20214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 20215 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
20216 gdb_cv_os_cygwin=yes
20217else
7a292a7a
SS
20218 gdb_cv_os_cygwin=no
20219fi
20220rm -f conftest*
20221
20222fi
bec39cab
AC
20223echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20224echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 20225
aff38e61 20226
3eb25fda 20227SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 20228case ${host} in
95cbc983
AC
20229 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20230 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
3eb25fda 20231 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o" ;;
aff38e61
AC
20232esac
20233
20234
cd0fc7c3
SS
20235# libreadline needs libuser32.a in a cygwin environment
20236WIN32LIBS=
20237if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
20238 WIN32LIBS="-luser32"
20239 case "${target}" in
20240 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20241 ;;
20242 esac
cd0fc7c3 20243fi
c906108c 20244
b4505029
MM
20245# The ser-tcp.c module requires sockets.
20246case ${host} in
20247 *mingw32*)
20248
20249cat >>confdefs.h <<\_ACEOF
20250#define USE_WIN32API 1
20251_ACEOF
20252
20253 WIN32LIBS="$WIN32LIBS -lws2_32"
20254 ;;
20255esac
20256
7a292a7a 20257
3fc11d3e
JM
20258LIBGUI="../libgui/src/libgui.a"
20259GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20260
20261
7a292a7a 20262
3fc11d3e
JM
20263WIN32LDAPP=
20264
20265
20266
d91670b9
CV
20267case "${host}" in
20268*-*-cygwin*)
20269 configdir="win"
20270 ;;
20271*)
20272 configdir="unix"
20273 ;;
20274esac
3fc11d3e
JM
20275
20276GDBTKLIBS=
20277if test "${enable_gdbtk}" = "yes"; then
20278
d1c3b63a
KS
20279 # Gdbtk must have an absolute path to srcdir in order to run
20280 # properly when not installed.
20281 here=`pwd`
20282 cd ${srcdir}
20283 GDBTK_SRC_DIR=`pwd`
20284 cd $here
20285
bec39cab 20286
3fc11d3e
JM
20287#
20288# Ok, lets find the tcl configuration
bec39cab 20289# First, look for one uninstalled.
3fc11d3e
JM
20290# the alternative search directory is invoked by --with-tclconfig
20291#
20292
20293if test x"${no_tcl}" = x ; then
20294 # we reset no_tcl in case something fails here
20295 no_tcl=true
bec39cab
AC
20296
20297# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e
JM
20298if test "${with_tclconfig+set}" = set; then
20299 withval="$with_tclconfig"
20300 with_tclconfig=${withval}
bec39cab
AC
20301fi;
20302 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20303echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20304 if test "${ac_cv_c_tclconfig+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20306else
bec39cab 20307
3fc11d3e
JM
20308
20309 # First check to see if --with-tclconfig was specified.
20310 if test x"${with_tclconfig}" != x ; then
20311 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20312 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20313 else
bec39cab
AC
20314 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20315echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20316 { (exit 1); exit 1; }; }
3fc11d3e
JM
20317 fi
20318 fi
20319
20320 # then check for a private Tcl installation
20321 if test x"${ac_cv_c_tclconfig}" = x ; then
20322 for i in \
20323 ../tcl \
20324 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20325 ../../tcl \
20326 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20327 ../../../tcl \
20328 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20329 if test -f "$i/${configdir}/tclConfig.sh" ; then
20330 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20331 break
20332 fi
20333 done
20334 fi
20335 # check in a few common install locations
20336 if test x"${ac_cv_c_tclconfig}" = x ; then
20337 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20338 if test -f "$i/tclConfig.sh" ; then
20339 ac_cv_c_tclconfig=`(cd $i; pwd)`
20340 break
20341 fi
20342 done
20343 fi
20344 # check in a few other private locations
20345 if test x"${ac_cv_c_tclconfig}" = x ; then
20346 for i in \
20347 ${srcdir}/../tcl \
20348 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20349 if test -f "$i/${configdir}/tclConfig.sh" ; then
20350 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20351 break
20352 fi
20353 done
20354 fi
bec39cab 20355
3fc11d3e
JM
20356fi
20357
20358 if test x"${ac_cv_c_tclconfig}" = x ; then
20359 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
20360 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20361echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
20362 else
20363 no_tcl=
20364 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
bec39cab
AC
20365 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20366echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
20367 fi
20368fi
20369
20370 if test -z "${no_tcl}"; then
bec39cab 20371
3fc11d3e
JM
20372 . $TCLCONFIG
20373
3fc11d3e
JM
20374
20375
20376
20377
3fc11d3e
JM
20378
20379
20380
bec39cab
AC
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
3fc11d3e
JM
20400#
20401# Ok, lets find the tk configuration
bec39cab 20402# First, look for one uninstalled.
3fc11d3e
JM
20403# the alternative search directory is invoked by --with-tkconfig
20404#
20405
20406if test x"${no_tk}" = x ; then
20407 # we reset no_tk in case something fails here
20408 no_tk=true
bec39cab
AC
20409
20410# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e
JM
20411if test "${with_tkconfig+set}" = set; then
20412 withval="$with_tkconfig"
20413 with_tkconfig=${withval}
bec39cab
AC
20414fi;
20415 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20416echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20417 if test "${ac_cv_c_tkconfig+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20419else
bec39cab 20420
3fc11d3e
JM
20421
20422 # First check to see if --with-tkconfig was specified.
20423 if test x"${with_tkconfig}" != x ; then
20424 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20425 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20426 else
bec39cab
AC
20427 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20428echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20429 { (exit 1); exit 1; }; }
3fc11d3e
JM
20430 fi
20431 fi
20432
20433 # then check for a private Tk library
20434 if test x"${ac_cv_c_tkconfig}" = x ; then
20435 for i in \
20436 ../tk \
20437 `ls -dr ../tk[4-9]* 2>/dev/null` \
20438 ../../tk \
20439 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20440 ../../../tk \
20441 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20442 if test -f "$i/${configdir}/tkConfig.sh" ; then
20443 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20444 break
20445 fi
20446 done
20447 fi
20448 # check in a few common install locations
20449 if test x"${ac_cv_c_tkconfig}" = x ; then
20450 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20451 if test -f "$i/tkConfig.sh" ; then
20452 ac_cv_c_tkconfig=`(cd $i; pwd)`
20453 break
20454 fi
20455 done
20456 fi
20457 # check in a few other private locations
20458 if test x"${ac_cv_c_tkconfig}" = x ; then
20459 for i in \
20460 ${srcdir}/../tk \
20461 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20462 if test -f "$i/${configdir}/tkConfig.sh" ; then
20463 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20464 break
20465 fi
20466 done
20467 fi
bec39cab 20468
3fc11d3e
JM
20469fi
20470
20471 if test x"${ac_cv_c_tkconfig}" = x ; then
20472 TKCONFIG="# no Tk configs found"
bec39cab
AC
20473 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20474echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
20475 else
20476 no_tk=
20477 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
bec39cab
AC
20478 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20479echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
20480 fi
20481fi
20482
20483
20484
dd2504ab
JM
20485 # now look for Tcl library stuff
20486
d91670b9 20487 tcldir="../tcl/${configdir}/"
dd2504ab
JM
20488
20489 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20490
3fc11d3e
JM
20491 # If $no_tk is nonempty, then we can't do Tk, and there is no
20492 # point to doing Tcl.
20493 if test -z "${no_tk}"; then
bec39cab 20494
3fc11d3e
JM
20495 if test -f "$TKCONFIG" ; then
20496 . $TKCONFIG
20497 fi
20498
3fc11d3e 20499
3fc11d3e
JM
20500
20501
3fc11d3e 20502
bec39cab
AC
20503
20504
20505
20506
20507
20508
20509
20510
20511
3fc11d3e
JM
20512#
20513# Ok, lets find the tcl source trees so we can use the headers
20514# Warning: transition of version 9 to 10 will break this algorithm
20515# because 10 sorts before 9. We also look for just tcl. We have to
20516# be careful that we don't match stuff like tclX by accident.
20517# the alternative search directory is involked by --with-tclinclude
20518#
20519
20520no_tcl=true
bec39cab
AC
20521echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20522echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20523
3fc11d3e
JM
20524# Check whether --with-tclinclude or --without-tclinclude was given.
20525if test "${with_tclinclude+set}" = set; then
20526 withval="$with_tclinclude"
20527 with_tclinclude=${withval}
bec39cab
AC
20528fi;
20529if test "${ac_cv_c_tclh+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20531else
bec39cab 20532
3fc11d3e
JM
20533# first check to see if --with-tclinclude was specified
20534if test x"${with_tclinclude}" != x ; then
20535 if test -f ${with_tclinclude}/tclInt.h ; then
20536 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20537 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20538 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20539 else
bec39cab
AC
20540 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20541echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20542 { (exit 1); exit 1; }; }
3fc11d3e
JM
20543 fi
20544fi
20545
20546# next check if it came with Tcl configuration file
20547if test x"${ac_cv_c_tclconfig}" = x ; then
20548 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20549 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20550 fi
20551fi
20552
20553# next check in private source directory
20554#
20555# since ls returns lowest version numbers first, reverse its output
20556if test x"${ac_cv_c_tclh}" = x ; then
20557 for i in \
20558 ${srcdir}/../tcl \
20559 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20560 ${srcdir}/../../tcl \
20561 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20562 ${srcdir}/../../../tcl \
20563 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20564 if test -f $i/generic/tclInt.h ; then
20565 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20566 break
20567 fi
20568 done
20569fi
20570# finally check in a few common install locations
20571#
20572# since ls returns lowest version numbers first, reverse its output
20573if test x"${ac_cv_c_tclh}" = x ; then
20574 for i in \
20575 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20576 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20577 /usr/local/src/tcl \
20578 /usr/local/lib/tcl \
20579 ${prefix}/include ; do
20580 if test -f $i/generic/tclInt.h ; then
20581 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20582 break
20583 fi
20584 done
20585fi
20586# see if one is installed
20587if test x"${ac_cv_c_tclh}" = x ; then
bec39cab
AC
20588 if test "${ac_cv_header_tclInt_h+set}" = set; then
20589 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20590echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20591if test "${ac_cv_header_tclInt_h+set}" = set; then
20592 echo $ECHO_N "(cached) $ECHO_C" >&6
20593fi
20594echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20595echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20596else
20597 # Is the header compilable?
20598echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20599echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20600cat >conftest.$ac_ext <<_ACEOF
20601/* confdefs.h. */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
20605/* end confdefs.h. */
20606$ac_includes_default
20607#include <tclInt.h>
20608_ACEOF
20609rm -f conftest.$ac_objext
20610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20611 (eval $ac_compile) 2>conftest.er1
20612 ac_status=$?
20613 grep -v '^ *+' conftest.er1 >conftest.err
20614 rm -f conftest.er1
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } &&
20618 { ac_try='test -z "$ac_c_werror_flag"
20619 || test ! -s conftest.err'
20620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621 (eval $ac_try) 2>&5
20622 ac_status=$?
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; } &&
20625 { ac_try='test -s conftest.$ac_objext'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 ac_header_compiler=yes
20632else
20633 echo "$as_me: failed program was:" >&5
20634sed 's/^/| /' conftest.$ac_ext >&5
20635
20636ac_header_compiler=no
20637fi
20638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20640echo "${ECHO_T}$ac_header_compiler" >&6
20641
20642# Is the header present?
20643echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20644echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20645cat >conftest.$ac_ext <<_ACEOF
20646/* confdefs.h. */
20647_ACEOF
20648cat confdefs.h >>conftest.$ac_ext
20649cat >>conftest.$ac_ext <<_ACEOF
20650/* end confdefs.h. */
3fc11d3e 20651#include <tclInt.h>
bec39cab
AC
20652_ACEOF
20653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20655 ac_status=$?
20656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } >/dev/null; then
20661 if test -s conftest.err; then
20662 ac_cpp_err=$ac_c_preproc_warn_flag
20663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20664 else
20665 ac_cpp_err=
20666 fi
20667else
20668 ac_cpp_err=yes
3fc11d3e 20669fi
bec39cab
AC
20670if test -z "$ac_cpp_err"; then
20671 ac_header_preproc=yes
20672else
20673 echo "$as_me: failed program was:" >&5
20674sed 's/^/| /' conftest.$ac_ext >&5
20675
20676 ac_header_preproc=no
3fc11d3e 20677fi
bec39cab
AC
20678rm -f conftest.err conftest.$ac_ext
20679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20680echo "${ECHO_T}$ac_header_preproc" >&6
20681
20682# So? What about this header?
20683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20684 yes:no: )
20685 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20686echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20687 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20688echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20689 ac_header_preproc=yes
20690 ;;
20691 no:yes:* )
20692 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20693echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20694 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20695echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20697echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20698 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20699echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20700 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20701echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20703echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20704 (
20705 cat <<\_ASBOX
20706## ------------------------------------------ ##
20707## Report this to the AC_PACKAGE_NAME lists. ##
20708## ------------------------------------------ ##
20709_ASBOX
20710 ) |
20711 sed "s/^/$as_me: WARNING: /" >&2
20712 ;;
20713esac
20714echo "$as_me:$LINENO: checking for tclInt.h" >&5
20715echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20716if test "${ac_cv_header_tclInt_h+set}" = set; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20718else
20719 ac_cv_header_tclInt_h=$ac_header_preproc
20720fi
20721echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20722echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20723
20724fi
20725if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
20726 ac_cv_c_tclh=installed
20727else
bec39cab 20728 ac_cv_c_tclh=""
3fc11d3e
JM
20729fi
20730
bec39cab 20731
3fc11d3e
JM
20732fi
20733
20734fi
20735
20736if test x"${ac_cv_c_tclh}" = x ; then
20737 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
20738 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20739echo "$as_me: error: Can't find Tcl private headers" >&2;}
20740 { (exit 1); exit 1; }; }
3fc11d3e
JM
20741fi
20742if test x"${ac_cv_c_tclh}" != x ; then
20743 no_tcl=""
20744 if test x"${ac_cv_c_tclh}" = x"installed" ; then
bec39cab
AC
20745 echo "$as_me:$LINENO: result: is installed" >&5
20746echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20747 TCLHDIR=""
20748 else
bec39cab
AC
20749 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20750echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
20751 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20752 TCLHDIR="-I${ac_cv_c_tclh}"
20753 fi
20754fi
20755
20756
20757
bec39cab 20758
3fc11d3e
JM
20759#
20760# Ok, lets find the tk source trees so we can use the headers
20761# If the directory (presumably symlink) named "tk" exists, use that one
20762# in preference to any others. Same logic is used when choosing library
20763# and again with Tcl. The search order is the best place to look first, then in
20764# decreasing significance. The loop breaks if the trigger file is found.
20765# Note the gross little conversion here of srcdir by cd'ing to the found
20766# directory. This converts the path from a relative to an absolute, so
20767# recursive cache variables for the path will work right. We check all
20768# the possible paths in one loop rather than many seperate loops to speed
20769# things up.
20770# the alternative search directory is involked by --with-tkinclude
20771#
20772no_tk=true
bec39cab
AC
20773echo "$as_me:$LINENO: checking for Tk private headers" >&5
20774echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20775
3fc11d3e
JM
20776# Check whether --with-tkinclude or --without-tkinclude was given.
20777if test "${with_tkinclude+set}" = set; then
20778 withval="$with_tkinclude"
20779 with_tkinclude=${withval}
bec39cab
AC
20780fi;
20781if test "${ac_cv_c_tkh+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20783else
bec39cab 20784
3fc11d3e
JM
20785# first check to see if --with-tkinclude was specified
20786if test x"${with_tkinclude}" != x ; then
20787 if test -f ${with_tkinclude}/tk.h ; then
20788 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20789 elif test -f ${with_tkinclude}/generic/tk.h ; then
20790 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20791 else
bec39cab
AC
20792 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20793echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20794 { (exit 1); exit 1; }; }
3fc11d3e
JM
20795 fi
20796fi
20797
20798# next check if it came with Tk configuration file
20799if test x"${ac_cv_c_tkconfig}" = x ; then
20800 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20801 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20802 fi
20803fi
20804
20805# next check in private source directory
20806#
20807# since ls returns lowest version numbers first, reverse its output
20808if test x"${ac_cv_c_tkh}" = x ; then
20809 for i in \
20810 ${srcdir}/../tk \
20811 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20812 ${srcdir}/../../tk \
20813 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20814 ${srcdir}/../../../tk \
20815 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20816 if test -f $i/generic/tk.h ; then
20817 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20818 break
20819 fi
20820 done
20821fi
20822# finally check in a few common install locations
20823#
20824# since ls returns lowest version numbers first, reverse its output
20825if test x"${ac_cv_c_tkh}" = x ; then
20826 for i in \
20827 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20828 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20829 /usr/local/src/tk \
20830 /usr/local/lib/tk \
20831 ${prefix}/include ; do
20832 if test -f $i/generic/tk.h ; then
20833 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20834 break
20835 fi
20836 done
20837fi
20838# see if one is installed
20839if test x"${ac_cv_c_tkh}" = x ; then
bec39cab
AC
20840 if test "${ac_cv_header_tk_h+set}" = set; then
20841 echo "$as_me:$LINENO: checking for tk.h" >&5
20842echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20843if test "${ac_cv_header_tk_h+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20845fi
20846echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20847echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20848else
20849 # Is the header compilable?
20850echo "$as_me:$LINENO: checking tk.h usability" >&5
20851echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20852cat >conftest.$ac_ext <<_ACEOF
20853/* confdefs.h. */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
20857/* end confdefs.h. */
20858$ac_includes_default
3fc11d3e 20859#include <tk.h>
bec39cab
AC
20860_ACEOF
20861rm -f conftest.$ac_objext
20862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20863 (eval $ac_compile) 2>conftest.er1
20864 ac_status=$?
20865 grep -v '^ *+' conftest.er1 >conftest.err
20866 rm -f conftest.er1
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } &&
20870 { ac_try='test -z "$ac_c_werror_flag"
20871 || test ! -s conftest.err'
20872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; } &&
20877 { ac_try='test -s conftest.$ac_objext'
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; }; then
20883 ac_header_compiler=yes
20884else
20885 echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
20888ac_header_compiler=no
20889fi
20890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20892echo "${ECHO_T}$ac_header_compiler" >&6
20893
20894# Is the header present?
20895echo "$as_me:$LINENO: checking tk.h presence" >&5
20896echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20897cat >conftest.$ac_ext <<_ACEOF
20898/* confdefs.h. */
20899_ACEOF
20900cat confdefs.h >>conftest.$ac_ext
20901cat >>conftest.$ac_ext <<_ACEOF
20902/* end confdefs.h. */
20903#include <tk.h>
20904_ACEOF
20905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20907 ac_status=$?
20908 grep -v '^ *+' conftest.er1 >conftest.err
20909 rm -f conftest.er1
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } >/dev/null; then
20913 if test -s conftest.err; then
20914 ac_cpp_err=$ac_c_preproc_warn_flag
20915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20916 else
20917 ac_cpp_err=
20918 fi
20919else
20920 ac_cpp_err=yes
3fc11d3e 20921fi
bec39cab
AC
20922if test -z "$ac_cpp_err"; then
20923 ac_header_preproc=yes
20924else
20925 echo "$as_me: failed program was:" >&5
20926sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 ac_header_preproc=no
20929fi
20930rm -f conftest.err conftest.$ac_ext
20931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20932echo "${ECHO_T}$ac_header_preproc" >&6
20933
20934# So? What about this header?
20935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20936 yes:no: )
20937 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20938echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20940echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20941 ac_header_preproc=yes
20942 ;;
20943 no:yes:* )
20944 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20945echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20947echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20948 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20949echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20950 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20951echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20952 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20953echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20955echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20956 (
20957 cat <<\_ASBOX
20958## ------------------------------------------ ##
20959## Report this to the AC_PACKAGE_NAME lists. ##
20960## ------------------------------------------ ##
20961_ASBOX
20962 ) |
20963 sed "s/^/$as_me: WARNING: /" >&2
20964 ;;
20965esac
20966echo "$as_me:$LINENO: checking for tk.h" >&5
20967echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20968if test "${ac_cv_header_tk_h+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20970else
20971 ac_cv_header_tk_h=$ac_header_preproc
20972fi
20973echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20974echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20975
3fc11d3e 20976fi
bec39cab 20977if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
20978 ac_cv_c_tkh=installed
20979else
bec39cab 20980 ac_cv_c_tkh=""
3fc11d3e
JM
20981fi
20982
bec39cab 20983
3fc11d3e
JM
20984fi
20985
20986fi
20987
20988if test x"${ac_cv_c_tkh}" != x ; then
20989 no_tk=""
20990 if test x"${ac_cv_c_tkh}" = x"installed" ; then
bec39cab
AC
20991 echo "$as_me:$LINENO: result: is installed" >&5
20992echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20993 TKHDIR=""
20994 else
bec39cab
AC
20995 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20996echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
20997 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20998 TKHDIR="-I${ac_cv_c_tkh}"
20999 fi
21000else
21001 TKHDIR="# no Tk directory found"
bec39cab
AC
21002 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
21003echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
21004 no_tk=true
21005fi
21006
21007
21008
bec39cab
AC
21009
21010echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
21011echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21012if test x"${ac_cv_c_itclh}" = x ; then
21013 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
21014 if test -f $i/generic/itcl.h ; then
21015 ac_cv_c_itclh=`(cd $i/generic; pwd)`
21016 break
21017 fi
21018 done
21019fi
21020if test x"${ac_cv_c_itclh}" = x ; then
21021 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
21022 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
21023echo "$as_me: error: Can't find Itcl private headers" >&2;}
21024 { (exit 1); exit 1; }; }
3fc11d3e
JM
21025fi
21026if test x"${ac_cv_c_itclh}" != x ; then
21027 ITCLHDIR="-I${ac_cv_c_itclh}"
21028fi
21029# should always be here
21030# ITCLLIB="../itcl/itcl/unix/libitcl.a"
21031
21032#AC_SUBST(ITCLLIB)
21033
bec39cab
AC
21034
21035echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
21036echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21037if test x"${ac_cv_c_itkh}" = x ; then
21038 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
21039 if test -f $i/generic/itk.h ; then
21040 ac_cv_c_itkh=`(cd $i/generic; pwd)`
21041 break
21042 fi
21043 done
21044fi
21045if test x"${ac_cv_c_itkh}" = x ; then
21046 ITKHDIR="# no Itk private headers found"
bec39cab
AC
21047 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
21048echo "$as_me: error: Can't find Itk private headers" >&2;}
21049 { (exit 1); exit 1; }; }
3fc11d3e
JM
21050fi
21051if test x"${ac_cv_c_itkh}" != x ; then
21052 ITKHDIR="-I${ac_cv_c_itkh}"
21053fi
21054# should always be here
21055# ITKLIB="../itcl/itk/unix/libitk.a"
21056
21057#AC_SUBST(ITKLIB)
21058
3fc11d3e 21059
dd2504ab
JM
21060
21061 # now look for Tk library stuff
21062
d91670b9 21063 tkdir="../tk/${configdir}/"
dd2504ab
JM
21064
21065 TK_DEPS="${tkdir}${TK_LIB_FILE}"
21066
3fc11d3e
JM
21067 # now look for Itcl library stuff
21068
bec39cab 21069
3fc11d3e
JM
21070#
21071# Ok, lets find the itcl configuration
bec39cab 21072# First, look for one uninstalled.
3fc11d3e
JM
21073# the alternative search directory is invoked by --with-itclconfig
21074#
21075
21076if test x"${no_itcl}" = x ; then
21077 # we reset no_itcl in case something fails here
21078 no_itcl=true
bec39cab
AC
21079
21080# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e
JM
21081if test "${with_itclconfig+set}" = set; then
21082 withval="$with_itclconfig"
21083 with_itclconfig=${withval}
bec39cab
AC
21084fi;
21085 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
21086echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
21087 if test "${ac_cv_c_itclconfig+set}" = set; then
21088 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21089else
bec39cab 21090
3fc11d3e
JM
21091
21092 # First check to see if --with-itclconfig was specified.
21093 if test x"${with_itclconfig}" != x ; then
21094 if test -f "${with_itclconfig}/itclConfig.sh" ; then
21095 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
21096 else
bec39cab
AC
21097 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
21098echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
21099 { (exit 1); exit 1; }; }
3fc11d3e
JM
21100 fi
21101 fi
21102
21103 # then check for a private Itcl library
21104 if test x"${ac_cv_c_itclconfig}" = x ; then
21105 for i in \
21106 ../itcl/itcl \
21107 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21108 ../../itcl \
21109 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21110 ../../../itcl \
21111 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21112 if test -f "$i/itclConfig.sh" ; then
21113 ac_cv_c_itclconfig=`(cd $i; pwd)`
21114 break
21115 fi
21116 done
21117 fi
21118 # check in a few common install locations
21119 if test x"${ac_cv_c_itclconfig}" = x ; then
21120 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21121 if test -f "$i/itclConfig.sh" ; then
21122 ac_cv_c_itclconfig=`(cd $i; pwd)`
21123 break
21124 fi
21125 done
21126 fi
21127 # check in a few other private locations
21128 if test x"${ac_cv_c_itclconfig}" = x ; then
21129 for i in \
21130 ${srcdir}/../itcl/itcl \
21131 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21132 if test -f "$i/itclConfig.sh" ; then
21133 ac_cv_c_itclconfig=`(cd $i; pwd)`
21134 break
21135 fi
21136 done
21137 fi
bec39cab 21138
3fc11d3e
JM
21139fi
21140
21141 if test x"${ac_cv_c_itclconfig}" = x ; then
21142 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
21143 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21144echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
21145 else
21146 no_itcl=
21147 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
bec39cab
AC
21148 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21149echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
21150 fi
21151fi
21152
21153 if test -z "${no_itcl}"; then
bec39cab 21154
3fc11d3e
JM
21155 if test -f "$ITCLCONFIG" ; then
21156 . $ITCLCONFIG
21157 fi
21158
3fc11d3e 21159
3fc11d3e
JM
21160
21161
bec39cab
AC
21162
21163
21164
21165
21166
21167
21168
3fc11d3e
JM
21169
21170 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 21171 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
21172 fi
21173
bec39cab 21174
3fc11d3e 21175 # now look for Itk library stuff
bec39cab 21176
3fc11d3e
JM
21177#
21178# Ok, lets find the itk configuration
bec39cab 21179# First, look for one uninstalled.
3fc11d3e
JM
21180# the alternative search directory is invoked by --with-itkconfig
21181#
21182
21183if test x"${no_itk}" = x ; then
21184 # we reset no_itk in case something fails here
21185 no_itk=true
bec39cab
AC
21186
21187# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e
JM
21188if test "${with_itkconfig+set}" = set; then
21189 withval="$with_itkconfig"
21190 with_itkconfig=${withval}
bec39cab
AC
21191fi;
21192 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21193echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21194 if test "${ac_cv_c_itkconfig+set}" = set; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21196else
bec39cab 21197
3fc11d3e
JM
21198
21199 # First check to see if --with-itkconfig was specified.
21200 if test x"${with_itkconfig}" != x ; then
21201 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21202 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21203 else
bec39cab
AC
21204 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21205echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21206 { (exit 1); exit 1; }; }
3fc11d3e
JM
21207 fi
21208 fi
21209
21210 # then check for a private Itk library
21211 if test x"${ac_cv_c_itkconfig}" = x ; then
21212 for i in \
21213 ../itcl/itk \
21214 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21215 ../../itk \
21216 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21217 ../../../itk \
21218 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21219 if test -f "$i/itkConfig.sh" ; then
21220 ac_cv_c_itkconfig=`(cd $i; pwd)`
21221 break
21222 fi
21223 done
21224 fi
21225 # check in a few common install locations
21226 if test x"${ac_cv_c_itkconfig}" = x ; then
21227 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21228 if test -f "$i/itkConfig.sh" ; then
21229 ac_cv_c_itkconfig=`(cd $i; pwd)`
21230 break
21231 fi
21232 done
21233 fi
21234 # check in a few other private locations
21235 if test x"${ac_cv_c_itkconfig}" = x ; then
21236 for i in \
21237 ${srcdir}/../itcl/itk \
21238 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21239 if test -f "$i/itkConfig.sh" ; then
21240 ac_cv_c_itkconfig=`(cd $i; pwd)`
21241 break
21242 fi
21243 done
21244 fi
bec39cab 21245
3fc11d3e
JM
21246fi
21247
21248 if test x"${ac_cv_c_itkconfig}" = x ; then
21249 ITKCONFIG="# no Itk configs found"
bec39cab
AC
21250 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21251echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
21252 else
21253 no_itk=
21254 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
bec39cab
AC
21255 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21256echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
21257 fi
21258fi
21259
21260
bec39cab
AC
21261 if test -z "${no_itcl}"; then
21262
21263 if test -f "$ITKCONFIG" ; then
21264 . $ITKCONFIG
21265 fi
21266
21267
21268
21269
21270
21271
3fc11d3e 21272
3fc11d3e 21273
3fc11d3e
JM
21274
21275
3fc11d3e
JM
21276
21277
3fc11d3e 21278 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 21279 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
21280 fi
21281
4226a5a5 21282 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
21283
21284 # Include some libraries that Tcl and Tk want.
b2a1bd4f 21285 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
21286 # Yes, the ordering seems wrong here. But it isn't.
21287 # TK_LIBS is the list of libraries that need to be linked
21288 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21289 # were in LIBS then any link tests after this point would
21290 # try to include things like `$(LIBGUI)', which wouldn't work.
21291 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
21292
21293 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21294 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21295 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
21296 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21297 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21298 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21299 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
21300
21301 if test x$gdb_cv_os_cygwin = xyes; then
21302 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21303 WIN32LDAPP="-Wl,--subsystem,console"
21304 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21305 fi
21306 fi
21307 fi
ffc6a242 21308
bec39cab
AC
21309
21310
21311subdirs="$subdirs gdbtk"
3ace7edb 21312
3fc11d3e
JM
21313fi
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
dd2504ab 21327
bec39cab
AC
21328echo "$as_me:$LINENO: checking for X" >&5
21329echo $ECHO_N "checking for X... $ECHO_C" >&6
21330
c906108c
SS
21331
21332# Check whether --with-x or --without-x was given.
21333if test "${with_x+set}" = set; then
21334 withval="$with_x"
c906108c 21335
bec39cab 21336fi;
c906108c
SS
21337# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21338if test "x$with_x" = xno; then
21339 # The user explicitly disabled X.
21340 have_x=disabled
21341else
21342 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21343 # Both variables are already set.
21344 have_x=yes
21345 else
bec39cab
AC
21346 if test "${ac_cv_have_x+set}" = set; then
21347 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21348else
21349 # One or both of the vars are not set, and there is no cached value.
bec39cab
AC
21350ac_x_includes=no ac_x_libraries=no
21351rm -fr conftest.dir
21352if mkdir conftest.dir; then
21353 cd conftest.dir
c906108c 21354 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 21355 cat >Imakefile <<'_ACEOF'
c906108c
SS
21356acfindx:
21357 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 21358_ACEOF
c906108c
SS
21359 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21360 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21361 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21362 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21363 for ac_extension in a so sl; do
21364 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
21365 test -f $ac_im_libdir/libX11.$ac_extension; then
21366 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
21367 fi
21368 done
21369 # Screen out bogus values from the imake configuration. They are
21370 # bogus both because they are the default anyway, and because
21371 # using them would break gcc on systems where it needs fixed includes.
bec39cab 21372 case $ac_im_incroot in
c906108c 21373 /usr/include) ;;
bec39cab 21374 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 21375 esac
bec39cab 21376 case $ac_im_usrlibdir in
c906108c 21377 /usr/lib | /lib) ;;
bec39cab 21378 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
21379 esac
21380 fi
21381 cd ..
bec39cab 21382 rm -fr conftest.dir
c906108c
SS
21383fi
21384
bec39cab
AC
21385# Standard set of common directories for X headers.
21386# Check X11 before X11Rn because it is often a symlink to the current release.
21387ac_x_header_dirs='
21388/usr/X11/include
21389/usr/X11R6/include
21390/usr/X11R5/include
21391/usr/X11R4/include
21392
21393/usr/include/X11
21394/usr/include/X11R6
21395/usr/include/X11R5
21396/usr/include/X11R4
21397
21398/usr/local/X11/include
21399/usr/local/X11R6/include
21400/usr/local/X11R5/include
21401/usr/local/X11R4/include
21402
21403/usr/local/include/X11
21404/usr/local/include/X11R6
21405/usr/local/include/X11R5
21406/usr/local/include/X11R4
21407
21408/usr/X386/include
21409/usr/x386/include
21410/usr/XFree86/include/X11
21411
21412/usr/include
21413/usr/local/include
21414/usr/unsupported/include
21415/usr/athena/include
21416/usr/local/x11r5/include
21417/usr/lpp/Xamples/include
21418
21419/usr/openwin/include
21420/usr/openwin/share/include'
21421
21422if test "$ac_x_includes" = no; then
21423 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 21424 # First, try using that file with no special directory specified.
bec39cab
AC
21425 cat >conftest.$ac_ext <<_ACEOF
21426/* confdefs.h. */
21427_ACEOF
21428cat confdefs.h >>conftest.$ac_ext
21429cat >>conftest.$ac_ext <<_ACEOF
21430/* end confdefs.h. */
21431#include <X11/Intrinsic.h>
21432_ACEOF
21433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21435 ac_status=$?
21436 grep -v '^ *+' conftest.er1 >conftest.err
21437 rm -f conftest.er1
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } >/dev/null; then
21441 if test -s conftest.err; then
21442 ac_cpp_err=$ac_c_preproc_warn_flag
21443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21444 else
21445 ac_cpp_err=
21446 fi
21447else
21448 ac_cpp_err=yes
21449fi
21450if test -z "$ac_cpp_err"; then
c906108c
SS
21451 # We can compile using X headers with no special include directory.
21452ac_x_includes=
21453else
bec39cab
AC
21454 echo "$as_me: failed program was:" >&5
21455sed 's/^/| /' conftest.$ac_ext >&5
21456
21457 for ac_dir in $ac_x_header_dirs; do
21458 if test -r "$ac_dir/X11/Intrinsic.h"; then
21459 ac_x_includes=$ac_dir
21460 break
21461 fi
21462done
c906108c 21463fi
bec39cab
AC
21464rm -f conftest.err conftest.$ac_ext
21465fi # $ac_x_includes = no
c906108c 21466
bec39cab 21467if test "$ac_x_libraries" = no; then
c906108c 21468 # Check for the libraries.
c906108c
SS
21469 # See if we find them without any special options.
21470 # Don't add to $LIBS permanently.
bec39cab
AC
21471 ac_save_LIBS=$LIBS
21472 LIBS="-lXt $LIBS"
21473 cat >conftest.$ac_ext <<_ACEOF
21474/* confdefs.h. */
21475_ACEOF
21476cat confdefs.h >>conftest.$ac_ext
21477cat >>conftest.$ac_ext <<_ACEOF
21478/* end confdefs.h. */
21479#include <X11/Intrinsic.h>
21480int
21481main ()
21482{
21483XtMalloc (0)
21484 ;
21485 return 0;
21486}
21487_ACEOF
21488rm -f conftest.$ac_objext conftest$ac_exeext
21489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21490 (eval $ac_link) 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } &&
21497 { ac_try='test -z "$ac_c_werror_flag"
21498 || test ! -s conftest.err'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; } &&
21504 { ac_try='test -s conftest$ac_exeext'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }; then
21510 LIBS=$ac_save_LIBS
c906108c
SS
21511# We can link X programs with no special library path.
21512ac_x_libraries=
21513else
bec39cab
AC
21514 echo "$as_me: failed program was:" >&5
21515sed 's/^/| /' conftest.$ac_ext >&5
21516
21517LIBS=$ac_save_LIBS
21518for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 21519do
bec39cab 21520 # Don't even attempt the hair of trying to link an X program!
c906108c 21521 for ac_extension in a so sl; do
bec39cab 21522 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
21523 ac_x_libraries=$ac_dir
21524 break 2
21525 fi
21526 done
21527done
21528fi
bec39cab
AC
21529rm -f conftest.err conftest.$ac_objext \
21530 conftest$ac_exeext conftest.$ac_ext
21531fi # $ac_x_libraries = no
c906108c 21532
bec39cab 21533if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
21534 # Didn't find X anywhere. Cache the known absence of X.
21535 ac_cv_have_x="have_x=no"
21536else
21537 # Record where we found X for the cache.
21538 ac_cv_have_x="have_x=yes \
bec39cab 21539 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
21540fi
21541fi
bec39cab 21542
c906108c
SS
21543 fi
21544 eval "$ac_cv_have_x"
21545fi # $with_x != no
21546
21547if test "$have_x" != yes; then
bec39cab
AC
21548 echo "$as_me:$LINENO: result: $have_x" >&5
21549echo "${ECHO_T}$have_x" >&6
c906108c
SS
21550 no_x=yes
21551else
21552 # If each of the values was on the command line, it overrides each guess.
21553 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21554 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21555 # Update the cache value to reflect the command line values.
21556 ac_cv_have_x="have_x=yes \
21557 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bec39cab
AC
21558 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21559echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
21560fi
21561
21562
9cc52bde
MK
21563# Check whether we should enable the TUI, but only do so if we really
21564# can.
21565if test x"$enable_tui" = xyes; then
21566 if test -d $srcdir/tui; then
21567 if test "$ac_cv_search_waddstr" != no; then
21568 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21569 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21570 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21571 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21572 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21573 CONFIG_ALL="${CONFIG_ALL} all-tui"
21574 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21575 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21576 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21577 else
bec39cab
AC
21578 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21579echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
21580 fi
21581 fi
21582fi
21583
bec39cab
AC
21584# Unlike the sim directory, whether a simulator is linked is controlled by
21585# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
21586# This code just checks for a few cases where we'd like to ignore those
21587# definitions, even when they're present in the '.mt' file. These cases
21588# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 21589# not part of the source tree.
7a292a7a
SS
21590#
21591# Check whether --enable-sim or --disable-sim was given.
21592if test "${enable_sim+set}" = set; then
21593 enableval="$enable_sim"
21594 echo "enable_sim = $enable_sim";
21595 echo "enableval = ${enableval}";
21596 case "${enableval}" in
21597 yes) ignore_sim=false ;;
21598 no) ignore_sim=true ;;
21599 *) ignore_sim=false ;;
21600 esac
21601else
21602 ignore_sim=false
bec39cab 21603fi;
7a292a7a
SS
21604
21605if test ! -d "${srcdir}/../sim"; then
21606 ignore_sim=true
21607fi
21608
21609if test "${ignore_sim}" = "true"; then
21610 IGNORE_SIM="SIM="
21611 IGNORE_SIM_OBS="SIM_OBS="
21612else
21613 IGNORE_SIM=""
21614 IGNORE_SIM_OBS=""
bec39cab 21615 cat >>confdefs.h <<\_ACEOF
7a292a7a 21616#define WITH_SIM 1
bec39cab 21617_ACEOF
7a292a7a
SS
21618
21619fi
21620
21621
21622
c906108c
SS
21623
21624
21625
21626
21627
21628
dfcd3bfb 21629
e56ac5c3
AC
21630
21631
b3a90332
AC
21632
21633
c35f4ffc 21634# List of host floatformats.
bec39cab
AC
21635
21636cat >>confdefs.h <<_ACEOF
c35f4ffc 21637#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 21638_ACEOF
c35f4ffc 21639
bec39cab
AC
21640
21641cat >>confdefs.h <<_ACEOF
c35f4ffc 21642#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
21643_ACEOF
21644
c35f4ffc 21645
bec39cab 21646cat >>confdefs.h <<_ACEOF
c35f4ffc 21647#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 21648_ACEOF
c35f4ffc
AC
21649
21650
c906108c
SS
21651# target_subdir is used by the testsuite to find the target libraries.
21652target_subdir=
21653if test "${host}" != "${target}"; then
21654 target_subdir="${target_alias}/"
21655fi
21656
21657
21658frags=
0dad8a66
MK
21659if test "${target}" = "${host}"; then
21660 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21661 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
21662 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21663echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21664 { (exit 1); exit 1; }; }
0dad8a66
MK
21665 fi
21666 frags="$frags $host_makefile_frag"
21667else
21668 host_makefile_frag=/dev/null
c906108c 21669fi
c906108c
SS
21670
21671target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21672if test ! -f ${target_makefile_frag}; then
bec39cab
AC
21673 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21674echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21675 { (exit 1); exit 1; }; }
c906108c
SS
21676fi
21677frags="$frags $target_makefile_frag"
21678
21679
21680
21681
21682
21683hostfile=`sed -n '
21684s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21685' ${host_makefile_frag}`
21686
21687targetfile=`sed -n '
2c0fc042 21688s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
21689' ${target_makefile_frag}`
21690
c906108c 21691if test "${target}" = "${host}"; then
a85f51e7
DJ
21692# We pick this up from the host configuration file (.mh) because we
21693# do not have a native configuration Makefile fragment.
c906108c
SS
21694nativefile=`sed -n '
21695s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21696' ${host_makefile_frag}`
c906108c
SS
21697fi
21698
21699
b00a8037 21700if test x"${gdb_osabi}" != x ; then
bec39cab
AC
21701
21702cat >>confdefs.h <<_ACEOF
b00a8037 21703#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 21704_ACEOF
b00a8037
DJ
21705
21706fi
21707
8dcde887
MK
21708# Enable multi-ice-gdb-server.
21709# Check whether --enable-multi-ice or --disable-multi-ice was given.
21710if test "${enable_multi_ice+set}" = set; then
21711 enableval="$enable_multi_ice"
21712 case $enableval in
21713 yes | no)
21714 ;;
bec39cab
AC
21715 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21716echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21717 { (exit 1); exit 1; }; } ;;
8dcde887 21718 esac
bec39cab 21719fi;
8dcde887 21720if test "x$enable_multi_ice" = xyes; then
bec39cab
AC
21721
21722
21723subdirs="$subdirs multi-ice"
3ace7edb 21724
a85f51e7
DJ
21725fi
21726
8dcde887
MK
21727# We only build gdbserver automatically if host and target are the same.
21728if test "x$target" = "x$host"; then
bec39cab
AC
21729 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21730echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 21731 if test "x$build_gdbserver" = xyes; then
bec39cab
AC
21732 echo "$as_me:$LINENO: result: yes" >&5
21733echo "${ECHO_T}yes" >&6
21734
21735
21736subdirs="$subdirs gdbserver"
3ace7edb 21737
8dcde887 21738 else
bec39cab
AC
21739 echo "$as_me:$LINENO: result: no" >&5
21740echo "${ECHO_T}no" >&6
8dcde887
MK
21741 fi
21742fi
21743
065a1afc
JB
21744# We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21745if test "x$build_rdi_share" = xyes; then
21746
21747
21748subdirs="$subdirs rdi-share"
21749
21750fi
21751
21752# We configure the nlm subdirectory on netware targets, as instructed
21753# by configure.tgt.
21754if test "x$build_nlm" = xyes; then
21755
21756
21757subdirs="$subdirs nlm"
21758
21759fi
21760
2c0fc042
AC
21761# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21762# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21763# to an empty version.
c906108c
SS
21764
21765files=
21766links=
5a2402b8 21767
c906108c 21768rm -f xm.h
5a2402b8 21769xm_h=""
c906108c 21770if test "${hostfile}" != ""; then
5a2402b8 21771 xm_h=xm.h
0f475e27
AC
21772 case "${hostfile}" in
21773 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21774 * ) GDB_XM_FILE="${hostfile}"
21775 esac
5a2402b8
AC
21776 files="${files} ${GDB_XM_FILE}"
21777 links="${links} xm.h"
bec39cab 21778 cat >>confdefs.h <<_ACEOF
b78960be 21779#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 21780_ACEOF
5a2402b8 21781
c906108c 21782fi
5a2402b8
AC
21783
21784
c906108c 21785rm -f tm.h
5a2402b8 21786tm_h=""
c906108c 21787if test "${targetfile}" != ""; then
5a2402b8 21788 tm_h=tm.h
0f475e27 21789 case "${targetfile}" in
b8c4aece 21790 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
21791 * ) GDB_TM_FILE="${targetfile}"
21792 esac
5a2402b8
AC
21793 files="${files} ${GDB_TM_FILE}"
21794 links="${links} tm.h"
bec39cab 21795 cat >>confdefs.h <<_ACEOF
b78960be 21796#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 21797_ACEOF
5a2402b8 21798
c906108c 21799fi
5a2402b8
AC
21800
21801
c906108c 21802rm -f nm.h
5a2402b8 21803nm_h=""
c906108c 21804if test "${nativefile}" != ""; then
5a2402b8 21805 nm_h=nm.h
0f475e27
AC
21806 case "${nativefile}" in
21807 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21808 * ) GDB_NM_FILE="${nativefile}"
21809 esac
5a2402b8
AC
21810 files="${files} ${GDB_NM_FILE}"
21811 links="${links} nm.h"
bec39cab 21812 cat >>confdefs.h <<_ACEOF
b78960be 21813#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 21814_ACEOF
5a2402b8 21815
c906108c 21816fi
5a2402b8
AC
21817
21818
bec39cab
AC
21819ac_sources="$files"
21820ac_dests="$links"
21821while test -n "$ac_sources"; do
21822 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21823 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21824 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21825done
21826 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
21827
21828
c906108c
SS
21829
21830
c906108c 21831
c906108c 21832
bec39cab
AC
21833cat >>confdefs.h <<\_ACEOF
21834#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21835_ACEOF
c906108c 21836
234b45d4 21837
234b45d4
KB
21838
21839
21840
bec39cab 21841# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4
KB
21842if test "${with_libiconv_prefix+set}" = set; then
21843 withval="$with_libiconv_prefix"
bec39cab 21844
234b45d4
KB
21845 for dir in `echo "$withval" | tr : ' '`; do
21846 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21847 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21848 done
234b45d4 21849
bec39cab 21850fi;
234b45d4 21851
bec39cab
AC
21852 echo "$as_me:$LINENO: checking for iconv" >&5
21853echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21854if test "${am_cv_func_iconv+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 21856else
bec39cab 21857
234b45d4
KB
21858 am_cv_func_iconv="no, consider installing GNU libiconv"
21859 am_cv_lib_iconv=no
bec39cab
AC
21860 cat >conftest.$ac_ext <<_ACEOF
21861/* confdefs.h. */
21862_ACEOF
21863cat confdefs.h >>conftest.$ac_ext
21864cat >>conftest.$ac_ext <<_ACEOF
21865/* end confdefs.h. */
234b45d4
KB
21866#include <stdlib.h>
21867#include <iconv.h>
bec39cab
AC
21868int
21869main ()
21870{
234b45d4
KB
21871iconv_t cd = iconv_open("","");
21872 iconv(cd,NULL,NULL,NULL,NULL);
21873 iconv_close(cd);
bec39cab
AC
21874 ;
21875 return 0;
21876}
21877_ACEOF
21878rm -f conftest.$ac_objext conftest$ac_exeext
21879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21880 (eval $ac_link) 2>conftest.er1
21881 ac_status=$?
21882 grep -v '^ *+' conftest.er1 >conftest.err
21883 rm -f conftest.er1
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } &&
21887 { ac_try='test -z "$ac_c_werror_flag"
21888 || test ! -s conftest.err'
21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890 (eval $ac_try) 2>&5
21891 ac_status=$?
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; } &&
21894 { ac_try='test -s conftest$ac_exeext'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21897 ac_status=$?
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
234b45d4
KB
21900 am_cv_func_iconv=yes
21901else
bec39cab
AC
21902 echo "$as_me: failed program was:" >&5
21903sed 's/^/| /' conftest.$ac_ext >&5
21904
234b45d4 21905fi
bec39cab
AC
21906rm -f conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21908 if test "$am_cv_func_iconv" != yes; then
21909 am_save_LIBS="$LIBS"
21910 LIBS="$LIBS -liconv"
bec39cab
AC
21911 cat >conftest.$ac_ext <<_ACEOF
21912/* confdefs.h. */
21913_ACEOF
21914cat confdefs.h >>conftest.$ac_ext
21915cat >>conftest.$ac_ext <<_ACEOF
21916/* end confdefs.h. */
234b45d4
KB
21917#include <stdlib.h>
21918#include <iconv.h>
bec39cab
AC
21919int
21920main ()
21921{
234b45d4
KB
21922iconv_t cd = iconv_open("","");
21923 iconv(cd,NULL,NULL,NULL,NULL);
21924 iconv_close(cd);
bec39cab
AC
21925 ;
21926 return 0;
21927}
21928_ACEOF
21929rm -f conftest.$ac_objext conftest$ac_exeext
21930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21931 (eval $ac_link) 2>conftest.er1
21932 ac_status=$?
21933 grep -v '^ *+' conftest.er1 >conftest.err
21934 rm -f conftest.er1
21935 cat conftest.err >&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } &&
21938 { ac_try='test -z "$ac_c_werror_flag"
21939 || test ! -s conftest.err'
21940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941 (eval $ac_try) 2>&5
21942 ac_status=$?
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); }; } &&
21945 { ac_try='test -s conftest$ac_exeext'
21946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947 (eval $ac_try) 2>&5
21948 ac_status=$?
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; }; then
234b45d4
KB
21951 am_cv_lib_iconv=yes
21952 am_cv_func_iconv=yes
21953else
bec39cab
AC
21954 echo "$as_me: failed program was:" >&5
21955sed 's/^/| /' conftest.$ac_ext >&5
21956
234b45d4 21957fi
bec39cab
AC
21958rm -f conftest.err conftest.$ac_objext \
21959 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21960 LIBS="$am_save_LIBS"
21961 fi
bec39cab
AC
21962
21963fi
21964echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21965echo "${ECHO_T}$am_cv_func_iconv" >&6
21966 if test "$am_cv_func_iconv" = yes; then
21967
21968cat >>confdefs.h <<\_ACEOF
21969#define HAVE_ICONV 1
21970_ACEOF
21971
21972 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21973echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21974 if test "${am_cv_proto_iconv+set}" = set; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21976else
21977
21978 cat >conftest.$ac_ext <<_ACEOF
21979/* confdefs.h. */
21980_ACEOF
21981cat confdefs.h >>conftest.$ac_ext
21982cat >>conftest.$ac_ext <<_ACEOF
21983/* end confdefs.h. */
21984
21985#include <stdlib.h>
21986#include <iconv.h>
21987extern
21988#ifdef __cplusplus
21989"C"
21990#endif
21991#if defined(__STDC__) || defined(__cplusplus)
21992size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21993#else
21994size_t iconv();
21995#endif
21996
21997int
21998main ()
21999{
22000
22001 ;
22002 return 0;
22003}
22004_ACEOF
22005rm -f conftest.$ac_objext
22006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22007 (eval $ac_compile) 2>conftest.er1
22008 ac_status=$?
22009 grep -v '^ *+' conftest.er1 >conftest.err
22010 rm -f conftest.er1
22011 cat conftest.err >&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } &&
22014 { ac_try='test -z "$ac_c_werror_flag"
22015 || test ! -s conftest.err'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; } &&
22021 { ac_try='test -s conftest.$ac_objext'
22022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22024 ac_status=$?
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; }; then
22027 am_cv_proto_iconv_arg1=""
22028else
22029 echo "$as_me: failed program was:" >&5
22030sed 's/^/| /' conftest.$ac_ext >&5
22031
22032am_cv_proto_iconv_arg1="const"
22033fi
22034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22035 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);"
22036fi
22037
22038 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22039 echo "$as_me:$LINENO: result: ${ac_t:-
22040 }$am_cv_proto_iconv" >&5
22041echo "${ECHO_T}${ac_t:-
22042 }$am_cv_proto_iconv" >&6
22043
22044cat >>confdefs.h <<_ACEOF
22045#define ICONV_CONST $am_cv_proto_iconv_arg1
22046_ACEOF
22047
22048 fi
22049 LIBICONV=
22050 if test "$am_cv_lib_iconv" = yes; then
22051 LIBICONV="-liconv"
22052 fi
22053
22054
22055
22056 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
22057 ac_config_commands="$ac_config_commands default"
22058cat >confcache <<\_ACEOF
22059# This file is a shell script that caches the results of configure
22060# tests run on this system so they can be shared between configure
22061# scripts and configure runs, see configure's option --config-cache.
22062# It is not useful on other systems. If it contains results you don't
22063# want to keep, you may remove or edit it.
22064#
22065# config.status only pays attention to the cache file if you give it
22066# the --recheck option to rerun configure.
22067#
22068# `ac_cv_env_foo' variables (set or unset) will be overridden when
22069# loading this file, other *unset* `ac_cv_foo' will be assigned the
22070# following values.
22071
22072_ACEOF
22073
22074# The following way of writing the cache mishandles newlines in values,
22075# but we know of no workaround that is simple, portable, and efficient.
22076# So, don't put newlines in cache variables' values.
22077# Ultrix sh set writes to stderr and can't be redirected directly,
22078# and sets the high bit in the cache file unless we assign to the vars.
22079{
22080 (set) 2>&1 |
22081 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22082 *ac_space=\ *)
22083 # `set' does not quote correctly, so add quotes (double-quote
22084 # substitution turns \\\\ into \\, and sed turns \\ into \).
22085 sed -n \
22086 "s/'/'\\\\''/g;
22087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22088 ;;
22089 *)
22090 # `set' quotes correctly as required by POSIX, so do not add quotes.
22091 sed -n \
22092 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22093 ;;
22094 esac;
22095} |
22096 sed '
22097 t clear
22098 : clear
22099 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22100 t end
22101 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22102 : end' >>confcache
22103if diff $cache_file confcache >/dev/null 2>&1; then :; else
22104 if test -w $cache_file; then
22105 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22106 cat confcache >$cache_file
22107 else
22108 echo "not updating unwritable cache $cache_file"
22109 fi
22110fi
22111rm -f confcache
22112
22113test "x$prefix" = xNONE && prefix=$ac_default_prefix
22114# Let make expand exec_prefix.
22115test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22116
22117# VPATH may cause trouble with some makes, so we remove $(srcdir),
22118# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22119# trailing colons and then remove the whole line if VPATH becomes empty
22120# (actually we leave an empty line to preserve line numbers).
22121if test "x$srcdir" = x.; then
22122 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22123s/:*\$(srcdir):*/:/;
22124s/:*\${srcdir}:*/:/;
22125s/:*@srcdir@:*/:/;
22126s/^\([^=]*=[ ]*\):*/\1/;
22127s/:*$//;
22128s/^[^=]*=[ ]*$//;
22129}'
22130fi
22131
22132DEFS=-DHAVE_CONFIG_H
22133
22134ac_libobjs=
22135ac_ltlibobjs=
22136for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22137 # 1. Remove the extension, and $U if already installed.
22138 ac_i=`echo "$ac_i" |
22139 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22140 # 2. Add them.
22141 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22142 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22143done
22144LIBOBJS=$ac_libobjs
22145
22146LTLIBOBJS=$ac_ltlibobjs
22147
22148
85981d60
AC
22149if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22150 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22151Usually this means the macro was only invoked conditionally." >&5
22152echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22153Usually this means the macro was only invoked conditionally." >&2;}
22154 { (exit 1); exit 1; }; }
22155fi
bec39cab
AC
22156
22157: ${CONFIG_STATUS=./config.status}
22158ac_clean_files_save=$ac_clean_files
22159ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22160{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22161echo "$as_me: creating $CONFIG_STATUS" >&6;}
22162cat >$CONFIG_STATUS <<_ACEOF
22163#! $SHELL
22164# Generated by $as_me.
22165# Run this file to recreate the current configuration.
22166# Compiler output produced by configure, useful for debugging
22167# configure, is in config.log if it exists.
22168
22169debug=false
22170ac_cs_recheck=false
22171ac_cs_silent=false
22172SHELL=\${CONFIG_SHELL-$SHELL}
22173_ACEOF
22174
22175cat >>$CONFIG_STATUS <<\_ACEOF
22176## --------------------- ##
22177## M4sh Initialization. ##
22178## --------------------- ##
22179
22180# Be Bourne compatible
22181if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22182 emulate sh
22183 NULLCMD=:
22184 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22185 # is contrary to our usage. Disable this feature.
22186 alias -g '${1+"$@"}'='"$@"'
22187elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22188 set -o posix
22189fi
22190DUALCASE=1; export DUALCASE # for MKS sh
22191
22192# Support unset when possible.
22193if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22194 as_unset=unset
22195else
22196 as_unset=false
22197fi
22198
22199
22200# Work around bugs in pre-3.0 UWIN ksh.
22201$as_unset ENV MAIL MAILPATH
22202PS1='$ '
22203PS2='> '
22204PS4='+ '
22205
22206# NLS nuisances.
22207for as_var in \
22208 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22209 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22210 LC_TELEPHONE LC_TIME
22211do
22212 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22213 eval $as_var=C; export $as_var
22214 else
22215 $as_unset $as_var
22216 fi
22217done
22218
22219# Required to use basename.
22220if expr a : '\(a\)' >/dev/null 2>&1; then
22221 as_expr=expr
22222else
22223 as_expr=false
22224fi
22225
22226if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22227 as_basename=basename
22228else
22229 as_basename=false
22230fi
22231
22232
22233# Name of the executable.
22234as_me=`$as_basename "$0" ||
22235$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22236 X"$0" : 'X\(//\)$' \| \
22237 X"$0" : 'X\(/\)$' \| \
22238 . : '\(.\)' 2>/dev/null ||
22239echo X/"$0" |
22240 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22241 /^X\/\(\/\/\)$/{ s//\1/; q; }
22242 /^X\/\(\/\).*/{ s//\1/; q; }
22243 s/.*/./; q'`
22244
22245
22246# PATH needs CR, and LINENO needs CR and PATH.
22247# Avoid depending upon Character Ranges.
22248as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22249as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22250as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22251as_cr_digits='0123456789'
22252as_cr_alnum=$as_cr_Letters$as_cr_digits
22253
22254# The user is always right.
22255if test "${PATH_SEPARATOR+set}" != set; then
22256 echo "#! /bin/sh" >conf$$.sh
22257 echo "exit 0" >>conf$$.sh
22258 chmod +x conf$$.sh
22259 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22260 PATH_SEPARATOR=';'
22261 else
22262 PATH_SEPARATOR=:
22263 fi
22264 rm -f conf$$.sh
22265fi
22266
22267
22268 as_lineno_1=$LINENO
22269 as_lineno_2=$LINENO
22270 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22271 test "x$as_lineno_1" != "x$as_lineno_2" &&
22272 test "x$as_lineno_3" = "x$as_lineno_2" || {
22273 # Find who we are. Look in the path if we contain no path at all
22274 # relative or not.
22275 case $0 in
22276 *[\\/]* ) as_myself=$0 ;;
22277 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22278for as_dir in $PATH
22279do
22280 IFS=$as_save_IFS
22281 test -z "$as_dir" && as_dir=.
22282 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22283done
22284
22285 ;;
22286 esac
22287 # We did not find ourselves, most probably we were run as `sh COMMAND'
22288 # in which case we are not to be found in the path.
22289 if test "x$as_myself" = x; then
22290 as_myself=$0
22291 fi
22292 if test ! -f "$as_myself"; then
22293 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22294echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22295 { (exit 1); exit 1; }; }
22296 fi
22297 case $CONFIG_SHELL in
22298 '')
22299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22300for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22301do
22302 IFS=$as_save_IFS
22303 test -z "$as_dir" && as_dir=.
22304 for as_base in sh bash ksh sh5; do
22305 case $as_dir in
22306 /*)
22307 if ("$as_dir/$as_base" -c '
22308 as_lineno_1=$LINENO
22309 as_lineno_2=$LINENO
22310 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22311 test "x$as_lineno_1" != "x$as_lineno_2" &&
22312 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22313 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22314 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22315 CONFIG_SHELL=$as_dir/$as_base
22316 export CONFIG_SHELL
22317 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22318 fi;;
22319 esac
22320 done
22321done
22322;;
22323 esac
22324
22325 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22326 # uniformly replaced by the line number. The first 'sed' inserts a
22327 # line-number line before each line; the second 'sed' does the real
22328 # work. The second script uses 'N' to pair each line-number line
22329 # with the numbered line, and appends trailing '-' during
22330 # substitution so that $LINENO is not a special case at line end.
22331 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22332 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22333 sed '=' <$as_myself |
22334 sed '
22335 N
22336 s,$,-,
22337 : loop
22338 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22339 t loop
22340 s,-$,,
22341 s,^['$as_cr_digits']*\n,,
22342 ' >$as_me.lineno &&
22343 chmod +x $as_me.lineno ||
22344 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22345echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22346 { (exit 1); exit 1; }; }
22347
22348 # Don't try to exec as it changes $[0], causing all sort of problems
22349 # (the dirname of $[0] is not the place where we might find the
22350 # original and so on. Autoconf is especially sensible to this).
22351 . ./$as_me.lineno
22352 # Exit status is that of the last command.
22353 exit
22354}
22355
22356
22357case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22358 *c*,-n*) ECHO_N= ECHO_C='
22359' ECHO_T=' ' ;;
22360 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22361 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22362esac
22363
22364if expr a : '\(a\)' >/dev/null 2>&1; then
22365 as_expr=expr
22366else
22367 as_expr=false
22368fi
22369
22370rm -f conf$$ conf$$.exe conf$$.file
22371echo >conf$$.file
22372if ln -s conf$$.file conf$$ 2>/dev/null; then
22373 # We could just check for DJGPP; but this test a) works b) is more generic
22374 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22375 if test -f conf$$.exe; then
22376 # Don't use ln at all; we don't have any links
22377 as_ln_s='cp -p'
22378 else
22379 as_ln_s='ln -s'
22380 fi
22381elif ln conf$$.file conf$$ 2>/dev/null; then
22382 as_ln_s=ln
22383else
22384 as_ln_s='cp -p'
22385fi
22386rm -f conf$$ conf$$.exe conf$$.file
22387
22388if mkdir -p . 2>/dev/null; then
22389 as_mkdir_p=:
22390else
22391 test -d ./-p && rmdir ./-p
22392 as_mkdir_p=false
22393fi
22394
22395as_executable_p="test -f"
22396
22397# Sed expression to map a string onto a valid CPP name.
22398as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22399
22400# Sed expression to map a string onto a valid variable name.
22401as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22402
22403
22404# IFS
22405# We need space, tab and new line, in precisely that order.
22406as_nl='
22407'
22408IFS=" $as_nl"
22409
22410# CDPATH.
22411$as_unset CDPATH
22412
22413exec 6>&1
22414
22415# Open the log real soon, to keep \$[0] and so on meaningful, and to
22416# report actual input values of CONFIG_FILES etc. instead of their
22417# values after options handling. Logging --version etc. is OK.
22418exec 5>>config.log
22419{
22420 echo
22421 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22422## Running $as_me. ##
22423_ASBOX
22424} >&5
22425cat >&5 <<_CSEOF
22426
22427This file was extended by $as_me, which was
22428generated by GNU Autoconf 2.59. Invocation command line was
22429
22430 CONFIG_FILES = $CONFIG_FILES
22431 CONFIG_HEADERS = $CONFIG_HEADERS
22432 CONFIG_LINKS = $CONFIG_LINKS
22433 CONFIG_COMMANDS = $CONFIG_COMMANDS
22434 $ $0 $@
22435
22436_CSEOF
22437echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22438echo >&5
22439_ACEOF
22440
22441# Files that config.status was made for.
22442if test -n "$ac_config_files"; then
22443 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22444fi
22445
22446if test -n "$ac_config_headers"; then
22447 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22448fi
22449
22450if test -n "$ac_config_links"; then
22451 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
234b45d4
KB
22452fi
22453
bec39cab
AC
22454if test -n "$ac_config_commands"; then
22455 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22456fi
234b45d4 22457
bec39cab 22458cat >>$CONFIG_STATUS <<\_ACEOF
234b45d4 22459
bec39cab
AC
22460ac_cs_usage="\
22461\`$as_me' instantiates files from templates according to the
22462current configuration.
234b45d4 22463
bec39cab 22464Usage: $0 [OPTIONS] [FILE]...
234b45d4 22465
bec39cab
AC
22466 -h, --help print this help, then exit
22467 -V, --version print version number, then exit
22468 -q, --quiet do not print progress messages
22469 -d, --debug don't remove temporary files
22470 --recheck update $as_me by reconfiguring in the same conditions
22471 --file=FILE[:TEMPLATE]
22472 instantiate the configuration file FILE
22473 --header=FILE[:TEMPLATE]
22474 instantiate the configuration header FILE
234b45d4 22475
bec39cab
AC
22476Configuration files:
22477$config_files
234b45d4 22478
bec39cab
AC
22479Configuration headers:
22480$config_headers
234b45d4 22481
bec39cab
AC
22482Configuration links:
22483$config_links
234b45d4 22484
bec39cab
AC
22485Configuration commands:
22486$config_commands
22487
22488Report bugs to <bug-autoconf@gnu.org>."
22489_ACEOF
22490
22491cat >>$CONFIG_STATUS <<_ACEOF
22492ac_cs_version="\\
22493config.status
22494configured by $0, generated by GNU Autoconf 2.59,
22495 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22496
22497Copyright (C) 2003 Free Software Foundation, Inc.
22498This config.status script is free software; the Free Software Foundation
22499gives unlimited permission to copy, distribute and modify it."
22500srcdir=$srcdir
22501INSTALL="$INSTALL"
22502_ACEOF
22503
22504cat >>$CONFIG_STATUS <<\_ACEOF
22505# If no file are specified by the user, then we need to provide default
22506# value. By we need to know if files were specified by the user.
22507ac_need_defaults=:
22508while test $# != 0
22509do
22510 case $1 in
22511 --*=*)
22512 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22513 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22514 ac_shift=:
c906108c 22515 ;;
bec39cab
AC
22516 -*)
22517 ac_option=$1
22518 ac_optarg=$2
22519 ac_shift=shift
c906108c 22520 ;;
bec39cab
AC
22521 *) # This is not an option, so the user has probably given explicit
22522 # arguments.
22523 ac_option=$1
22524 ac_need_defaults=false;;
22525 esac
c906108c 22526
bec39cab
AC
22527 case $ac_option in
22528 # Handling of the options.
22529_ACEOF
22530cat >>$CONFIG_STATUS <<\_ACEOF
22531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22532 ac_cs_recheck=: ;;
22533 --version | --vers* | -V )
22534 echo "$ac_cs_version"; exit 0 ;;
22535 --he | --h)
22536 # Conflict between --help and --header
22537 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22538Try \`$0 --help' for more information." >&5
22539echo "$as_me: error: ambiguous option: $1
22540Try \`$0 --help' for more information." >&2;}
22541 { (exit 1); exit 1; }; };;
22542 --help | --hel | -h )
22543 echo "$ac_cs_usage"; exit 0 ;;
22544 --debug | --d* | -d )
22545 debug=: ;;
22546 --file | --fil | --fi | --f )
22547 $ac_shift
22548 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22549 ac_need_defaults=false;;
22550 --header | --heade | --head | --hea )
22551 $ac_shift
22552 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22553 ac_need_defaults=false;;
22554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22555 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22556 ac_cs_silent=: ;;
c906108c 22557
bec39cab
AC
22558 # This is an error.
22559 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22560Try \`$0 --help' for more information." >&5
22561echo "$as_me: error: unrecognized option: $1
22562Try \`$0 --help' for more information." >&2;}
22563 { (exit 1); exit 1; }; } ;;
c906108c 22564
bec39cab 22565 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 22566
bec39cab
AC
22567 esac
22568 shift
22569done
c906108c 22570
bec39cab 22571ac_configure_extra_args=
c906108c 22572
bec39cab
AC
22573if $ac_cs_silent; then
22574 exec 6>/dev/null
22575 ac_configure_extra_args="$ac_configure_extra_args --silent"
22576fi
c906108c 22577
bec39cab
AC
22578_ACEOF
22579cat >>$CONFIG_STATUS <<_ACEOF
22580if \$ac_cs_recheck; then
22581 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22582 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22583fi
22584
22585_ACEOF
22586
22587cat >>$CONFIG_STATUS <<_ACEOF
c906108c 22588#
bec39cab 22589# INIT-COMMANDS section.
c906108c 22590#
c906108c 22591
bec39cab
AC
22592
22593gdb_host_cpu=$gdb_host_cpu
22594gdb_target_cpu=$gdb_target_cpu
22595nativefile=$nativefile
22596
22597
22598_ACEOF
22599
22600
22601
22602cat >>$CONFIG_STATUS <<\_ACEOF
22603for ac_config_target in $ac_config_targets
c906108c 22604do
bec39cab
AC
22605 case "$ac_config_target" in
22606 # Handling of arguments.
22607 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22608 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22609 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22610 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22611 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22612 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22613echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22614 { (exit 1); exit 1; }; };;
c906108c
SS
22615 esac
22616done
22617
bec39cab
AC
22618# If the user did not use the arguments to specify the items to instantiate,
22619# then the envvar interface is used. Set only those that are not.
22620# We use the long form for the default assignment because of an extremely
22621# bizarre bug on SunOS 4.1.3.
22622if $ac_need_defaults; then
22623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22625 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22627fi
22628
22629# Have a temporary directory for convenience. Make it in the build tree
22630# simply because there is no reason to put it here, and in addition,
22631# creating and moving files from /tmp can sometimes cause problems.
22632# Create a temporary directory, and hook for its removal unless debugging.
22633$debug ||
22634{
22635 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22636 trap '{ (exit 1); exit 1; }' 1 2 13 15
22637}
c906108c 22638
bec39cab 22639# Create a (secure) tmp directory for tmp files.
c906108c 22640
bec39cab
AC
22641{
22642 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22643 test -n "$tmp" && test -d "$tmp"
22644} ||
22645{
22646 tmp=./confstat$$-$RANDOM
22647 (umask 077 && mkdir $tmp)
22648} ||
22649{
22650 echo "$me: cannot create a temporary directory in ." >&2
22651 { (exit 1); exit 1; }
22652}
22653
22654_ACEOF
22655
22656cat >>$CONFIG_STATUS <<_ACEOF
22657
22658#
22659# CONFIG_FILES section.
22660#
22661
22662# No need to generate the scripts if there are no CONFIG_FILES.
22663# This happens for instance when ./config.status config.h
22664if test -n "\$CONFIG_FILES"; then
22665 # Protect against being on the right side of a sed subst in config.status.
22666 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22667 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22668s,@SHELL@,$SHELL,;t t
22669s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22670s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22671s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22672s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22673s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22674s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22675s,@exec_prefix@,$exec_prefix,;t t
22676s,@prefix@,$prefix,;t t
22677s,@program_transform_name@,$program_transform_name,;t t
22678s,@bindir@,$bindir,;t t
22679s,@sbindir@,$sbindir,;t t
22680s,@libexecdir@,$libexecdir,;t t
22681s,@datadir@,$datadir,;t t
22682s,@sysconfdir@,$sysconfdir,;t t
22683s,@sharedstatedir@,$sharedstatedir,;t t
22684s,@localstatedir@,$localstatedir,;t t
22685s,@libdir@,$libdir,;t t
22686s,@includedir@,$includedir,;t t
22687s,@oldincludedir@,$oldincludedir,;t t
22688s,@infodir@,$infodir,;t t
22689s,@mandir@,$mandir,;t t
22690s,@build_alias@,$build_alias,;t t
22691s,@host_alias@,$host_alias,;t t
22692s,@target_alias@,$target_alias,;t t
22693s,@DEFS@,$DEFS,;t t
22694s,@ECHO_C@,$ECHO_C,;t t
22695s,@ECHO_N@,$ECHO_N,;t t
22696s,@ECHO_T@,$ECHO_T,;t t
22697s,@LIBS@,$LIBS,;t t
22698s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22699s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22700s,@MAINT@,$MAINT,;t t
22701s,@CC@,$CC,;t t
22702s,@CFLAGS@,$CFLAGS,;t t
22703s,@LDFLAGS@,$LDFLAGS,;t t
22704s,@CPPFLAGS@,$CPPFLAGS,;t t
22705s,@ac_ct_CC@,$ac_ct_CC,;t t
22706s,@EXEEXT@,$EXEEXT,;t t
22707s,@OBJEXT@,$OBJEXT,;t t
22708s,@CPP@,$CPP,;t t
22709s,@EGREP@,$EGREP,;t t
22710s,@build@,$build,;t t
22711s,@build_cpu@,$build_cpu,;t t
22712s,@build_vendor@,$build_vendor,;t t
22713s,@build_os@,$build_os,;t t
22714s,@host@,$host,;t t
22715s,@host_cpu@,$host_cpu,;t t
22716s,@host_vendor@,$host_vendor,;t t
22717s,@host_os@,$host_os,;t t
22718s,@target@,$target,;t t
22719s,@target_cpu@,$target_cpu,;t t
22720s,@target_vendor@,$target_vendor,;t t
22721s,@target_os@,$target_os,;t t
c21a4eee 22722s,@SET_MAKE@,$SET_MAKE,;t t
bec39cab
AC
22723s,@RANLIB@,$RANLIB,;t t
22724s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
bec39cab
AC
22725s,@ALLOCA@,$ALLOCA,;t t
22726s,@USE_NLS@,$USE_NLS,;t t
22727s,@MSGFMT@,$MSGFMT,;t t
22728s,@GMSGFMT@,$GMSGFMT,;t t
22729s,@XGETTEXT@,$XGETTEXT,;t t
22730s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22731s,@CATALOGS@,$CATALOGS,;t t
22732s,@CATOBJEXT@,$CATOBJEXT,;t t
22733s,@DATADIRNAME@,$DATADIRNAME,;t t
22734s,@GMOFILES@,$GMOFILES,;t t
22735s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22736s,@INTLDEPS@,$INTLDEPS,;t t
22737s,@INTLLIBS@,$INTLLIBS,;t t
22738s,@INTLOBJS@,$INTLOBJS,;t t
22739s,@POFILES@,$POFILES,;t t
22740s,@POSUB@,$POSUB,;t t
22741s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22742s,@GT_NO@,$GT_NO,;t t
22743s,@GT_YES@,$GT_YES,;t t
22744s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22745s,@l@,$l,;t t
22746s,@localedir@,$localedir,;t t
22747s,@PACKAGE@,$PACKAGE,;t t
22748s,@subdirs@,$subdirs,;t t
22749s,@AWK@,$AWK,;t t
22750s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22751s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22752s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22753s,@LN_S@,$LN_S,;t t
22754s,@YACC@,$YACC,;t t
22755s,@AR@,$AR,;t t
22756s,@ac_ct_AR@,$ac_ct_AR,;t t
22757s,@DLLTOOL@,$DLLTOOL,;t t
22758s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22759s,@WINDRES@,$WINDRES,;t t
22760s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22761s,@MIG@,$MIG,;t t
22762s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22763s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22764s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22765s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22766s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22767s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22768s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22769s,@WIN32LIBS@,$WIN32LIBS,;t t
22770s,@LIBGUI@,$LIBGUI,;t t
22771s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22772s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22773s,@TCL_VERSION@,$TCL_VERSION,;t t
22774s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22775s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22776s,@TCL_CC@,$TCL_CC,;t t
22777s,@TCL_DEFS@,$TCL_DEFS,;t t
22778s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22779s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22780s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22781s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22782s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22783s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22784s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22785s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22786s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22787s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22788s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22789s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22790s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22791s,@TK_VERSION@,$TK_VERSION,;t t
22792s,@TK_DEFS@,$TK_DEFS,;t t
22793s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22794s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22795s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22796s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22797s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22798s,@TCLHDIR@,$TCLHDIR,;t t
22799s,@TKHDIR@,$TKHDIR,;t t
22800s,@ITCLHDIR@,$ITCLHDIR,;t t
22801s,@ITKHDIR@,$ITKHDIR,;t t
22802s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22803s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22804s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22805s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22806s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22807s,@ITK_VERSION@,$ITK_VERSION,;t t
22808s,@ITK_DEFS@,$ITK_DEFS,;t t
22809s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22810s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22811s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22812s,@X_CFLAGS@,$X_CFLAGS,;t t
22813s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22814s,@X_LIBS@,$X_LIBS,;t t
22815s,@TCL_DEPS@,$TCL_DEPS,;t t
22816s,@TK_DEPS@,$TK_DEPS,;t t
22817s,@ITCLLIB@,$ITCLLIB,;t t
22818s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22819s,@ITKLIB@,$ITKLIB,;t t
22820s,@ITK_DEPS@,$ITK_DEPS,;t t
22821s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22822s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22823s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22824s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22825s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22826s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22827s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22828s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22829s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22830s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22831s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22832s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22833s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22834s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22835s,@target_subdir@,$target_subdir,;t t
22836s,@frags@,$frags,;t t
22837s,@xm_h@,$xm_h,;t t
22838s,@tm_h@,$tm_h,;t t
22839s,@nm_h@,$nm_h,;t t
22840s,@LIBICONV@,$LIBICONV,;t t
22841s,@LIBOBJS@,$LIBOBJS,;t t
22842s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 22843/@host_makefile_frag@/r $host_makefile_frag
bec39cab 22844s,@host_makefile_frag@,,;t t
c906108c 22845/@target_makefile_frag@/r $target_makefile_frag
bec39cab 22846s,@target_makefile_frag@,,;t t
c906108c 22847CEOF
bec39cab
AC
22848
22849_ACEOF
22850
22851 cat >>$CONFIG_STATUS <<\_ACEOF
22852 # Split the substitutions into bite-sized pieces for seds with
22853 # small command number limits, like on Digital OSF/1 and HP-UX.
22854 ac_max_sed_lines=48
22855 ac_sed_frag=1 # Number of current file.
22856 ac_beg=1 # First line for current file.
22857 ac_end=$ac_max_sed_lines # Line after last line for current file.
22858 ac_more_lines=:
22859 ac_sed_cmds=
22860 while $ac_more_lines; do
22861 if test $ac_beg -gt 1; then
22862 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22863 else
22864 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22865 fi
22866 if test ! -s $tmp/subs.frag; then
22867 ac_more_lines=false
c906108c 22868 else
bec39cab
AC
22869 # The purpose of the label and of the branching condition is to
22870 # speed up the sed processing (if there are no `@' at all, there
22871 # is no need to browse any of the substitutions).
22872 # These are the two extra sed commands mentioned above.
22873 (echo ':t
22874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22875 if test -z "$ac_sed_cmds"; then
22876 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22877 else
22878 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22879 fi
22880 ac_sed_frag=`expr $ac_sed_frag + 1`
22881 ac_beg=$ac_end
22882 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 22883 fi
bec39cab
AC
22884 done
22885 if test -z "$ac_sed_cmds"; then
22886 ac_sed_cmds=cat
c906108c 22887 fi
bec39cab 22888fi # test -n "$CONFIG_FILES"
c906108c 22889
bec39cab
AC
22890_ACEOF
22891cat >>$CONFIG_STATUS <<\_ACEOF
22892for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 22893 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22894 case $ac_file in
22895 - | *:- | *:-:* ) # input from stdin
22896 cat >$tmp/stdin
22897 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22899 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22901 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22902 esac
22903
bec39cab
AC
22904 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22905 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22906$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22907 X"$ac_file" : 'X\(//\)[^/]' \| \
22908 X"$ac_file" : 'X\(//\)$' \| \
22909 X"$ac_file" : 'X\(/\)' \| \
22910 . : '\(.\)' 2>/dev/null ||
22911echo X"$ac_file" |
22912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22914 /^X\(\/\/\)$/{ s//\1/; q; }
22915 /^X\(\/\).*/{ s//\1/; q; }
22916 s/.*/./; q'`
22917 { if $as_mkdir_p; then
22918 mkdir -p "$ac_dir"
c906108c 22919 else
bec39cab
AC
22920 as_dir="$ac_dir"
22921 as_dirs=
22922 while test ! -d "$as_dir"; do
22923 as_dirs="$as_dir $as_dirs"
22924 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22926 X"$as_dir" : 'X\(//\)[^/]' \| \
22927 X"$as_dir" : 'X\(//\)$' \| \
22928 X"$as_dir" : 'X\(/\)' \| \
22929 . : '\(.\)' 2>/dev/null ||
22930echo X"$as_dir" |
22931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22933 /^X\(\/\/\)$/{ s//\1/; q; }
22934 /^X\(\/\).*/{ s//\1/; q; }
22935 s/.*/./; q'`
22936 done
22937 test ! -n "$as_dirs" || mkdir $as_dirs
22938 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22939echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22940 { (exit 1); exit 1; }; }; }
c906108c 22941
bec39cab
AC
22942 ac_builddir=.
22943
22944if test "$ac_dir" != .; then
22945 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22946 # A "../" for each directory in $ac_dir_suffix.
22947 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22948else
22949 ac_dir_suffix= ac_top_builddir=
22950fi
22951
22952case $srcdir in
22953 .) # No --srcdir option. We are building in place.
22954 ac_srcdir=.
22955 if test -z "$ac_top_builddir"; then
22956 ac_top_srcdir=.
22957 else
22958 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22959 fi ;;
22960 [\\/]* | ?:[\\/]* ) # Absolute path.
22961 ac_srcdir=$srcdir$ac_dir_suffix;
22962 ac_top_srcdir=$srcdir ;;
c906108c 22963 *) # Relative path.
bec39cab
AC
22964 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22965 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22966esac
22967
22968# Do not use `cd foo && pwd` to compute absolute paths, because
22969# the directories may not exist.
22970case `pwd` in
22971.) ac_abs_builddir="$ac_dir";;
22972*)
22973 case "$ac_dir" in
22974 .) ac_abs_builddir=`pwd`;;
22975 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22976 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22977 esac;;
22978esac
22979case $ac_abs_builddir in
22980.) ac_abs_top_builddir=${ac_top_builddir}.;;
22981*)
22982 case ${ac_top_builddir}. in
22983 .) ac_abs_top_builddir=$ac_abs_builddir;;
22984 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22985 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22986 esac;;
22987esac
22988case $ac_abs_builddir in
22989.) ac_abs_srcdir=$ac_srcdir;;
22990*)
22991 case $ac_srcdir in
22992 .) ac_abs_srcdir=$ac_abs_builddir;;
22993 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22994 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22995 esac;;
22996esac
22997case $ac_abs_builddir in
22998.) ac_abs_top_srcdir=$ac_top_srcdir;;
22999*)
23000 case $ac_top_srcdir in
23001 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23002 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23003 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23004 esac;;
23005esac
c906108c 23006
c906108c 23007
bec39cab
AC
23008 case $INSTALL in
23009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23010 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
23011 esac
23012
bec39cab
AC
23013 if test x"$ac_file" != x-; then
23014 { echo "$as_me:$LINENO: creating $ac_file" >&5
23015echo "$as_me: creating $ac_file" >&6;}
23016 rm -f "$ac_file"
23017 fi
23018 # Let's still pretend it is `configure' which instantiates (i.e., don't
23019 # use $as_me), people would be surprised to read:
23020 # /* config.h. Generated by config.status. */
23021 if test x"$ac_file" = x-; then
23022 configure_input=
23023 else
23024 configure_input="$ac_file. "
23025 fi
23026 configure_input=$configure_input"Generated from `echo $ac_file_in |
23027 sed 's,.*/,,'` by configure."
23028
23029 # First look for the input files in the build tree, otherwise in the
23030 # src tree.
23031 ac_file_inputs=`IFS=:
23032 for f in $ac_file_in; do
23033 case $f in
23034 -) echo $tmp/stdin ;;
23035 [\\/$]*)
23036 # Absolute (can't be DOS-style, as IFS=:)
23037 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23038echo "$as_me: error: cannot find input file: $f" >&2;}
23039 { (exit 1); exit 1; }; }
23040 echo "$f";;
23041 *) # Relative
23042 if test -f "$f"; then
23043 # Build tree
23044 echo "$f"
23045 elif test -f "$srcdir/$f"; then
23046 # Source tree
23047 echo "$srcdir/$f"
23048 else
23049 # /dev/null tree
23050 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23051echo "$as_me: error: cannot find input file: $f" >&2;}
23052 { (exit 1); exit 1; }; }
23053 fi;;
23054 esac
23055 done` || { (exit 1); exit 1; }
23056_ACEOF
23057cat >>$CONFIG_STATUS <<_ACEOF
23058 sed "$ac_vpsub
23059$extrasub
23060_ACEOF
23061cat >>$CONFIG_STATUS <<\_ACEOF
23062:t
23063/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23064s,@configure_input@,$configure_input,;t t
23065s,@srcdir@,$ac_srcdir,;t t
23066s,@abs_srcdir@,$ac_abs_srcdir,;t t
23067s,@top_srcdir@,$ac_top_srcdir,;t t
23068s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23069s,@builddir@,$ac_builddir,;t t
23070s,@abs_builddir@,$ac_abs_builddir,;t t
23071s,@top_builddir@,$ac_top_builddir,;t t
23072s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23073s,@INSTALL@,$ac_INSTALL,;t t
23074" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23075 rm -f $tmp/stdin
23076 if test x"$ac_file" != x-; then
23077 mv $tmp/out $ac_file
23078 else
23079 cat $tmp/out
23080 rm -f $tmp/out
23081 fi
23082
23083done
23084_ACEOF
23085cat >>$CONFIG_STATUS <<\_ACEOF
23086
23087#
23088# CONFIG_HEADER section.
23089#
c906108c
SS
23090
23091# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23092# NAME is the cpp macro being defined and VALUE is the value it is being given.
23093#
23094# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
23095ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23096ac_dB='[ ].*$,\1#\2'
23097ac_dC=' '
23098ac_dD=',;t'
23099# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23100ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23101ac_uB='$,\1#\2define\3'
c906108c 23102ac_uC=' '
bec39cab
AC
23103ac_uD=',;t'
23104
23105for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 23106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
23107 case $ac_file in
23108 - | *:- | *:-:* ) # input from stdin
23109 cat >$tmp/stdin
23110 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23111 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23112 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23113 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23114 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
23115 esac
23116
bec39cab
AC
23117 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23118echo "$as_me: creating $ac_file" >&6;}
23119
23120 # First look for the input files in the build tree, otherwise in the
23121 # src tree.
23122 ac_file_inputs=`IFS=:
23123 for f in $ac_file_in; do
23124 case $f in
23125 -) echo $tmp/stdin ;;
23126 [\\/$]*)
23127 # Absolute (can't be DOS-style, as IFS=:)
23128 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23129echo "$as_me: error: cannot find input file: $f" >&2;}
23130 { (exit 1); exit 1; }; }
23131 # Do quote $f, to prevent DOS paths from being IFS'd.
23132 echo "$f";;
23133 *) # Relative
23134 if test -f "$f"; then
23135 # Build tree
23136 echo "$f"
23137 elif test -f "$srcdir/$f"; then
23138 # Source tree
23139 echo "$srcdir/$f"
23140 else
23141 # /dev/null tree
23142 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23143echo "$as_me: error: cannot find input file: $f" >&2;}
23144 { (exit 1); exit 1; }; }
23145 fi;;
23146 esac
23147 done` || { (exit 1); exit 1; }
23148 # Remove the trailing spaces.
23149 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23150
23151_ACEOF
23152
23153# Transform confdefs.h into two sed scripts, `conftest.defines' and
23154# `conftest.undefs', that substitutes the proper values into
23155# config.h.in to produce config.h. The first handles `#define'
23156# templates, and the second `#undef' templates.
23157# And first: Protect against being on the right side of a sed subst in
23158# config.status. Protect against being in an unquoted here document
23159# in config.status.
23160rm -f conftest.defines conftest.undefs
23161# Using a here document instead of a string reduces the quoting nightmare.
23162# Putting comments in sed scripts is not portable.
23163#
23164# `end' is used to avoid that the second main sed command (meant for
23165# 0-ary CPP macros) applies to n-ary macro definitions.
23166# See the Autoconf documentation for `clear'.
23167cat >confdef2sed.sed <<\_ACEOF
23168s/[\\&,]/\\&/g
23169s,[\\$`],\\&,g
23170t clear
23171: clear
23172s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23173t end
23174s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23175: end
23176_ACEOF
23177# If some macros were called several times there might be several times
23178# the same #defines, which is useless. Nevertheless, we may not want to
23179# sort them, since we want the *last* AC-DEFINE to be honored.
23180uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23181sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23182rm -f confdef2sed.sed
c906108c
SS
23183
23184# This sed command replaces #undef with comments. This is necessary, for
23185# example, in the case of _POSIX_SOURCE, which is predefined and required
23186# on some systems where configure will not decide to define it.
bec39cab
AC
23187cat >>conftest.undefs <<\_ACEOF
23188s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23189_ACEOF
23190
23191# Break up conftest.defines because some shells have a limit on the size
23192# of here documents, and old seds have small limits too (100 cmds).
23193echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23194echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23195echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23196echo ' :' >>$CONFIG_STATUS
23197rm -f conftest.tail
23198while grep . conftest.defines >/dev/null
23199do
23200 # Write a limited-size here document to $tmp/defines.sed.
23201 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23202 # Speed up: don't consider the non `#define' lines.
23203 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23204 # Work around the forget-to-reset-the-flag bug.
23205 echo 't clr' >>$CONFIG_STATUS
23206 echo ': clr' >>$CONFIG_STATUS
23207 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23208 echo 'CEOF
23209 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23210 rm -f $tmp/in
23211 mv $tmp/out $tmp/in
23212' >>$CONFIG_STATUS
23213 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23214 rm -f conftest.defines
23215 mv conftest.tail conftest.defines
23216done
23217rm -f conftest.defines
23218echo ' fi # grep' >>$CONFIG_STATUS
23219echo >>$CONFIG_STATUS
c906108c 23220
bec39cab
AC
23221# Break up conftest.undefs because some shells have a limit on the size
23222# of here documents, and old seds have small limits too (100 cmds).
23223echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 23224rm -f conftest.tail
bec39cab 23225while grep . conftest.undefs >/dev/null
c906108c 23226do
bec39cab
AC
23227 # Write a limited-size here document to $tmp/undefs.sed.
23228 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23229 # Speed up: don't consider the non `#undef'
23230 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23231 # Work around the forget-to-reset-the-flag bug.
23232 echo 't clr' >>$CONFIG_STATUS
23233 echo ': clr' >>$CONFIG_STATUS
23234 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 23235 echo 'CEOF
bec39cab
AC
23236 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23237 rm -f $tmp/in
23238 mv $tmp/out $tmp/in
23239' >>$CONFIG_STATUS
23240 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23241 rm -f conftest.undefs
23242 mv conftest.tail conftest.undefs
23243done
23244rm -f conftest.undefs
23245
23246cat >>$CONFIG_STATUS <<\_ACEOF
23247 # Let's still pretend it is `configure' which instantiates (i.e., don't
23248 # use $as_me), people would be surprised to read:
23249 # /* config.h. Generated by config.status. */
23250 if test x"$ac_file" = x-; then
23251 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 23252 else
bec39cab 23253 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 23254 fi
bec39cab
AC
23255 cat $tmp/in >>$tmp/config.h
23256 rm -f $tmp/in
23257 if test x"$ac_file" != x-; then
23258 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23259 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23260echo "$as_me: $ac_file is unchanged" >&6;}
23261 else
23262 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23263$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23264 X"$ac_file" : 'X\(//\)[^/]' \| \
23265 X"$ac_file" : 'X\(//\)$' \| \
23266 X"$ac_file" : 'X\(/\)' \| \
23267 . : '\(.\)' 2>/dev/null ||
23268echo X"$ac_file" |
23269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23271 /^X\(\/\/\)$/{ s//\1/; q; }
23272 /^X\(\/\).*/{ s//\1/; q; }
23273 s/.*/./; q'`
23274 { if $as_mkdir_p; then
23275 mkdir -p "$ac_dir"
23276 else
23277 as_dir="$ac_dir"
23278 as_dirs=
23279 while test ! -d "$as_dir"; do
23280 as_dirs="$as_dir $as_dirs"
23281 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23282$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23283 X"$as_dir" : 'X\(//\)[^/]' \| \
23284 X"$as_dir" : 'X\(//\)$' \| \
23285 X"$as_dir" : 'X\(/\)' \| \
23286 . : '\(.\)' 2>/dev/null ||
23287echo X"$as_dir" |
23288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23290 /^X\(\/\/\)$/{ s//\1/; q; }
23291 /^X\(\/\).*/{ s//\1/; q; }
23292 s/.*/./; q'`
23293 done
23294 test ! -n "$as_dirs" || mkdir $as_dirs
23295 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23296echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23297 { (exit 1); exit 1; }; }; }
c906108c 23298
bec39cab
AC
23299 rm -f $ac_file
23300 mv $tmp/config.h $ac_file
23301 fi
23302 else
23303 cat $tmp/config.h
23304 rm -f $tmp/config.h
23305 fi
23306done
23307_ACEOF
23308cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23309
bec39cab
AC
23310#
23311# CONFIG_LINKS section.
23312#
c906108c 23313
bec39cab
AC
23314for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23315 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23316 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 23317
bec39cab
AC
23318 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23319echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
23320
23321 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
23322 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23323echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23324 { (exit 1); exit 1; }; }
c906108c
SS
23325 fi
23326 rm -f $ac_dest
23327
23328 # Make relative symlinks.
bec39cab
AC
23329 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23330$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23331 X"$ac_dest" : 'X\(//\)[^/]' \| \
23332 X"$ac_dest" : 'X\(//\)$' \| \
23333 X"$ac_dest" : 'X\(/\)' \| \
23334 . : '\(.\)' 2>/dev/null ||
23335echo X"$ac_dest" |
23336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23338 /^X\(\/\/\)$/{ s//\1/; q; }
23339 /^X\(\/\).*/{ s//\1/; q; }
23340 s/.*/./; q'`
23341 { if $as_mkdir_p; then
23342 mkdir -p "$ac_dest_dir"
c906108c 23343 else
bec39cab
AC
23344 as_dir="$ac_dest_dir"
23345 as_dirs=
23346 while test ! -d "$as_dir"; do
23347 as_dirs="$as_dir $as_dirs"
23348 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23349$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23350 X"$as_dir" : 'X\(//\)[^/]' \| \
23351 X"$as_dir" : 'X\(//\)$' \| \
23352 X"$as_dir" : 'X\(/\)' \| \
23353 . : '\(.\)' 2>/dev/null ||
23354echo X"$as_dir" |
23355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23357 /^X\(\/\/\)$/{ s//\1/; q; }
23358 /^X\(\/\).*/{ s//\1/; q; }
23359 s/.*/./; q'`
23360 done
23361 test ! -n "$as_dirs" || mkdir $as_dirs
23362 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23363echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23364 { (exit 1); exit 1; }; }; }
23365
23366 ac_builddir=.
23367
23368if test "$ac_dest_dir" != .; then
23369 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23370 # A "../" for each directory in $ac_dir_suffix.
23371 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23372else
23373 ac_dir_suffix= ac_top_builddir=
23374fi
23375
23376case $srcdir in
23377 .) # No --srcdir option. We are building in place.
23378 ac_srcdir=.
23379 if test -z "$ac_top_builddir"; then
23380 ac_top_srcdir=.
23381 else
23382 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23383 fi ;;
23384 [\\/]* | ?:[\\/]* ) # Absolute path.
23385 ac_srcdir=$srcdir$ac_dir_suffix;
23386 ac_top_srcdir=$srcdir ;;
23387 *) # Relative path.
23388 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23389 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23390esac
23391
23392# Do not use `cd foo && pwd` to compute absolute paths, because
23393# the directories may not exist.
23394case `pwd` in
23395.) ac_abs_builddir="$ac_dest_dir";;
23396*)
23397 case "$ac_dest_dir" in
23398 .) ac_abs_builddir=`pwd`;;
23399 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23400 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23401 esac;;
23402esac
23403case $ac_abs_builddir in
23404.) ac_abs_top_builddir=${ac_top_builddir}.;;
23405*)
23406 case ${ac_top_builddir}. in
23407 .) ac_abs_top_builddir=$ac_abs_builddir;;
23408 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23409 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23410 esac;;
23411esac
23412case $ac_abs_builddir in
23413.) ac_abs_srcdir=$ac_srcdir;;
23414*)
23415 case $ac_srcdir in
23416 .) ac_abs_srcdir=$ac_abs_builddir;;
23417 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23418 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23419 esac;;
23420esac
23421case $ac_abs_builddir in
23422.) ac_abs_top_srcdir=$ac_top_srcdir;;
23423*)
23424 case $ac_top_srcdir in
23425 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23426 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23427 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23428 esac;;
23429esac
c906108c 23430
bec39cab
AC
23431
23432 case $srcdir in
23433 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23434 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
23435 esac
23436
bec39cab
AC
23437 # Try a symlink, then a hard link, then a copy.
23438 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23439 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23440 cp -p $srcdir/$ac_source $ac_dest ||
23441 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23442echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23443 { (exit 1); exit 1; }; }
c906108c 23444done
bec39cab
AC
23445_ACEOF
23446cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23447
bec39cab
AC
23448#
23449# CONFIG_COMMANDS section.
23450#
23451for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23452 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23453 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23454 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23455$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23456 X"$ac_dest" : 'X\(//\)[^/]' \| \
23457 X"$ac_dest" : 'X\(//\)$' \| \
23458 X"$ac_dest" : 'X\(/\)' \| \
23459 . : '\(.\)' 2>/dev/null ||
23460echo X"$ac_dest" |
23461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23463 /^X\(\/\/\)$/{ s//\1/; q; }
23464 /^X\(\/\).*/{ s//\1/; q; }
23465 s/.*/./; q'`
23466 { if $as_mkdir_p; then
23467 mkdir -p "$ac_dir"
23468 else
23469 as_dir="$ac_dir"
23470 as_dirs=
23471 while test ! -d "$as_dir"; do
23472 as_dirs="$as_dir $as_dirs"
23473 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23474$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23475 X"$as_dir" : 'X\(//\)[^/]' \| \
23476 X"$as_dir" : 'X\(//\)$' \| \
23477 X"$as_dir" : 'X\(/\)' \| \
23478 . : '\(.\)' 2>/dev/null ||
23479echo X"$as_dir" |
23480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23482 /^X\(\/\/\)$/{ s//\1/; q; }
23483 /^X\(\/\).*/{ s//\1/; q; }
23484 s/.*/./; q'`
23485 done
23486 test ! -n "$as_dirs" || mkdir $as_dirs
23487 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23488echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23489 { (exit 1); exit 1; }; }; }
23490
23491 ac_builddir=.
23492
23493if test "$ac_dir" != .; then
23494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23495 # A "../" for each directory in $ac_dir_suffix.
23496 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23497else
23498 ac_dir_suffix= ac_top_builddir=
23499fi
23500
23501case $srcdir in
23502 .) # No --srcdir option. We are building in place.
23503 ac_srcdir=.
23504 if test -z "$ac_top_builddir"; then
23505 ac_top_srcdir=.
23506 else
23507 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23508 fi ;;
23509 [\\/]* | ?:[\\/]* ) # Absolute path.
23510 ac_srcdir=$srcdir$ac_dir_suffix;
23511 ac_top_srcdir=$srcdir ;;
23512 *) # Relative path.
23513 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23514 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23515esac
23516
23517# Do not use `cd foo && pwd` to compute absolute paths, because
23518# the directories may not exist.
23519case `pwd` in
23520.) ac_abs_builddir="$ac_dir";;
23521*)
23522 case "$ac_dir" in
23523 .) ac_abs_builddir=`pwd`;;
23524 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23525 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23526 esac;;
23527esac
23528case $ac_abs_builddir in
23529.) ac_abs_top_builddir=${ac_top_builddir}.;;
23530*)
23531 case ${ac_top_builddir}. in
23532 .) ac_abs_top_builddir=$ac_abs_builddir;;
23533 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23534 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23535 esac;;
23536esac
23537case $ac_abs_builddir in
23538.) ac_abs_srcdir=$ac_srcdir;;
23539*)
23540 case $ac_srcdir in
23541 .) ac_abs_srcdir=$ac_abs_builddir;;
23542 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23543 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23544 esac;;
23545esac
23546case $ac_abs_builddir in
23547.) ac_abs_top_srcdir=$ac_top_srcdir;;
23548*)
23549 case $ac_top_srcdir in
23550 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23551 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23552 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23553 esac;;
23554esac
c906108c 23555
c906108c 23556
bec39cab
AC
23557 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23558echo "$as_me: executing $ac_dest commands" >&6;}
23559 case $ac_dest in
23560 default )
c906108c 23561
2c0fc042 23562sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
23563/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23564/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23565mv -f Makefile.tmp Makefile
23566
2acceee2 23567
c906108c
SS
23568case x$CONFIG_HEADERS in
23569xconfig.h:config.in)
23570echo > stamp-h ;;
23571esac
bec39cab
AC
23572 ;;
23573 esac
23574done
23575_ACEOF
c906108c 23576
bec39cab
AC
23577cat >>$CONFIG_STATUS <<\_ACEOF
23578
23579{ (exit 0); exit 0; }
23580_ACEOF
c906108c 23581chmod +x $CONFIG_STATUS
bec39cab
AC
23582ac_clean_files=$ac_clean_files_save
23583
23584
23585# configure is writing to config.log, and then calls config.status.
23586# config.status does its own redirection, appending to config.log.
23587# Unfortunately, on DOS this fails, as config.log is still kept open
23588# by configure, so config.status won't be able to write to it; its
23589# output is simply discarded. So we exec the FD to /dev/null,
23590# effectively closing config.log, so it can be properly (re)opened and
23591# appended to by config.status. When coming back to configure, we
23592# need to make the FD available again.
23593if test "$no_create" != yes; then
23594 ac_cs_success=:
23595 ac_config_status_args=
23596 test "$silent" = yes &&
23597 ac_config_status_args="$ac_config_status_args --quiet"
23598 exec 5>/dev/null
23599 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23600 exec 5>>config.log
23601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23602 # would make configure fail if this is the last instruction.
23603 $ac_cs_success || { (exit 1); exit 1; }
23604fi
c906108c 23605
bec39cab
AC
23606#
23607# CONFIG_SUBDIRS section.
23608#
c906108c
SS
23609if test "$no_recursion" != yes; then
23610
23611 # Remove --cache-file and --srcdir arguments so they do not pile up.
23612 ac_sub_configure_args=
23613 ac_prev=
23614 for ac_arg in $ac_configure_args; do
23615 if test -n "$ac_prev"; then
23616 ac_prev=
23617 continue
23618 fi
bec39cab 23619 case $ac_arg in
c906108c
SS
23620 -cache-file | --cache-file | --cache-fil | --cache-fi \
23621 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23622 ac_prev=cache_file ;;
23623 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
23624 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23625 | --c=*)
23626 ;;
23627 --config-cache | -C)
c906108c
SS
23628 ;;
23629 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23630 ac_prev=srcdir ;;
23631 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23632 ;;
bec39cab
AC
23633 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23634 ac_prev=prefix ;;
23635 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23636 ;;
c906108c
SS
23637 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23638 esac
23639 done
23640
bec39cab
AC
23641 # Always prepend --prefix to ensure using the same prefix
23642 # in subdir configurations.
23643 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23644
23645 ac_popdir=`pwd`
23646 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
23647
23648 # Do not complain, so a configure script can configure whichever
23649 # parts of a large source tree are present.
bec39cab 23650 test -d $srcdir/$ac_dir || continue
c906108c 23651
bec39cab
AC
23652 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23653echo "$as_me: configuring in $ac_dir" >&6;}
23654 { if $as_mkdir_p; then
23655 mkdir -p "$ac_dir"
23656 else
23657 as_dir="$ac_dir"
23658 as_dirs=
23659 while test ! -d "$as_dir"; do
23660 as_dirs="$as_dir $as_dirs"
23661 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23662$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23663 X"$as_dir" : 'X\(//\)[^/]' \| \
23664 X"$as_dir" : 'X\(//\)$' \| \
23665 X"$as_dir" : 'X\(/\)' \| \
23666 . : '\(.\)' 2>/dev/null ||
23667echo X"$as_dir" |
23668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23670 /^X\(\/\/\)$/{ s//\1/; q; }
23671 /^X\(\/\).*/{ s//\1/; q; }
23672 s/.*/./; q'`
23673 done
23674 test ! -n "$as_dirs" || mkdir $as_dirs
23675 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23676echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23677 { (exit 1); exit 1; }; }; }
c906108c 23678
bec39cab
AC
23679 ac_builddir=.
23680
23681if test "$ac_dir" != .; then
23682 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23683 # A "../" for each directory in $ac_dir_suffix.
23684 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23685else
23686 ac_dir_suffix= ac_top_builddir=
23687fi
23688
23689case $srcdir in
23690 .) # No --srcdir option. We are building in place.
23691 ac_srcdir=.
23692 if test -z "$ac_top_builddir"; then
23693 ac_top_srcdir=.
23694 else
23695 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23696 fi ;;
23697 [\\/]* | ?:[\\/]* ) # Absolute path.
23698 ac_srcdir=$srcdir$ac_dir_suffix;
23699 ac_top_srcdir=$srcdir ;;
23700 *) # Relative path.
23701 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23702 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23703esac
c906108c 23704
bec39cab
AC
23705# Do not use `cd foo && pwd` to compute absolute paths, because
23706# the directories may not exist.
23707case `pwd` in
23708.) ac_abs_builddir="$ac_dir";;
23709*)
23710 case "$ac_dir" in
23711 .) ac_abs_builddir=`pwd`;;
23712 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23713 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23714 esac;;
23715esac
23716case $ac_abs_builddir in
23717.) ac_abs_top_builddir=${ac_top_builddir}.;;
23718*)
23719 case ${ac_top_builddir}. in
23720 .) ac_abs_top_builddir=$ac_abs_builddir;;
23721 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23722 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23723 esac;;
23724esac
23725case $ac_abs_builddir in
23726.) ac_abs_srcdir=$ac_srcdir;;
23727*)
23728 case $ac_srcdir in
23729 .) ac_abs_srcdir=$ac_abs_builddir;;
23730 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23731 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23732 esac;;
23733esac
23734case $ac_abs_builddir in
23735.) ac_abs_top_srcdir=$ac_top_srcdir;;
23736*)
23737 case $ac_top_srcdir in
23738 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23739 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23740 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23741 esac;;
23742esac
c906108c 23743
c906108c 23744
bec39cab 23745 cd $ac_dir
c906108c
SS
23746
23747 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
23748 if test -f $ac_srcdir/configure.gnu; then
23749 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23750 elif test -f $ac_srcdir/configure; then
23751 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23752 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
23753 ac_sub_configure=$ac_configure
23754 else
bec39cab
AC
23755 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23756echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
23757 ac_sub_configure=
23758 fi
23759
23760 # The recursion is here.
23761 if test -n "$ac_sub_configure"; then
c906108c 23762 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
23763 case $cache_file in
23764 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 23765 *) # Relative path.
bec39cab 23766 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 23767 esac
c906108c 23768
bec39cab
AC
23769 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23770echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 23771 # The eval makes quoting arguments work.
bec39cab
AC
23772 eval $ac_sub_configure $ac_sub_configure_args \
23773 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23774 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23775echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23776 { (exit 1); exit 1; }; }
c906108c
SS
23777 fi
23778
23779 cd $ac_popdir
23780 done
23781fi
23782
23783
23784exit 0
This page took 1.876594 seconds and 4 git commands to generate.